|
|
(self.webpackChunk=self.webpackChunk||[]).push([[1981],{86504:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},14051:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},89699:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},76466:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},55143:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},37364:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},14726:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},21646:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},20970:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},23001:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},53570:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},39338:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},81132:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},88627:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},1040:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},385:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},38226:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},56981:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(oe,Re){return zt.createElement(Ut.Z,(0,At.Z)({},oe,{ref:Re,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft},79906:function(){"use strict"},44383:function(){"use strict"},93938:function(On,Cn){"use strict";Cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},57534:function(On,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},63593:function(On,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},37404:function(){"use strict";function On(Nt,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Nt,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(On.prototype,"name",{get:function(){return this._name},set:function(Nt){if(typeof Nt!="string"||Nt==="")throw new Error("Shape name must be a valid string.");this._name=Nt}}),Object.defineProperty(On.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("The default value must be a real number, not: "+Nt);this._defaultValue=Nt}}),Object.defineProperty(On.prototype,"minimum",{get:function(){return this._minimum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Minimum must be a real number, not: "+Nt);this._minimum=Nt}}),Object.defineProperty(On.prototype,"maximum",{get:function(){return this._maximum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Maximum must be a real number, not: "+Nt);this._maximum=Nt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Nt,et){var nt=go.Shape._FigureParameters[Nt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Nt,et,nt){if(!(nt instanceof On))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Nt];ht||(ht=[],go.Shape._FigureParameters[Nt]=ht),ht[et]=nt};var Cn=[];function yt(Nt,et){var nt=Cn.pop();return nt===void 0?new go.Point(Nt,et):(nt.x=Nt,nt.y=et,nt)}function At(){var Nt=Cn.pop();return Nt===void 0?new go.Point:Nt}function zt(Nt){Cn.push(Nt)}function re(Nt,et,nt,ht,st,gt,mt,Pt,kt){kt||(kt=new go.Point);var wt=Nt-nt,Ot=st-mt,jt=NaN,Ht=NaN;if(wt===0)if(Ot===0)Nt===nt&&(jt=Nt,Ht=et);else{var $t=(gt-Pt)/Ot,ye=gt-$t*st;jt=Nt,Ht=$t*jt+ye}else if(Ot===0){var Yt=(et-ht)/wt,Ge=et-Yt*Nt;jt=st,Ht=Yt*jt+Ge}else{var Yt=(et-ht)/wt,$t=(gt-Pt)/Ot,Ge=et-Yt*Nt,ye=gt-$t*st;jt=(ye-Ge)/(Yt-$t),Ht=Yt*jt+Ge}return kt.x=jt,kt.y=Ht,kt}function Ae(Nt,et,nt,ht,st,gt,mt,Pt,kt,wt,Ot,jt,Ht,$t){var ye=1-kt,Yt=kt,Ge=Nt*ye+nt*Yt,ce=et*ye+ht*Yt,$e=nt*ye+st*Yt,Ue=ht*ye+gt*Yt,Ke=st*ye+mt*Yt,tn=gt*ye+Pt*Yt,Tn=Ge*ye+$e*Yt,ve=ce*ye+Ue*Yt,Zt=$e*ye+Ke*Yt,en=Ue*ye+tn*Yt,Kn=Tn*ye+Zt*Yt,ii=ve*ye+en*Yt;wt.x=Ge,wt.y=ce,Ot.x=Tn,Ot.y=ve,jt.x=Kn,jt.y=ii,Ht.x=Zt,Ht.y=en,$t.x=Ke,$t.y=tn}var Ut=new go.Spot(.156,.156),ne=new go.Spot(.844,.844),Ft=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new On("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Ft,gt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-st,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,st,nt,0,nt-st)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()));return st>1&&(gt.spot1=new go.Spot(0,0,st,st),gt.spot2=new go.Spot(1,1,-st,-st)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Nt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Nt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Nt,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Nt,et,nt){var ht=et/2,st=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return st.spot1=Ut,st.spot2=ne,st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Line1",function(Nt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Nt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Ft*et,0,et,(1-Ft)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Ft*nt,(1-Ft)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Ft*nt,Ft*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Ft)*et,0,0,(1-Ft)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new On("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et:ht>et&&(ht=et);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new On("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new On("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)?ht=20:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())):gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}});var De=[];function Pe(){var Nt=De.pop();return Nt===void 0?[]:Nt}function oe(Nt){Nt.length=0,De.push(Nt)}function Re(Nt){for(var et=Pe(),nt=.5,ht=.5,st=Math.PI*1.5,gt=0,mt=0;mt<Nt;mt++)gt=2*Math.PI/Nt*mt+st,et[mt]=new go.Point(ht+nt*Math.cos(gt),ht+nt*Math.sin(gt));return et.push(et[0]),et}function de(Nt){var et=be(Nt),nt=Pe();nt[0]=et[0];for(var ht=1,st=1;ht<et.length;ht+=2,st+=3)nt[st]=et[ht],nt[st+1]=et[ht],nt[st+2]=et[ht+1];return oe(et),nt}function be(Nt){for(var et=Re(Nt),nt=Pe(),ht=Math.floor(et.length/2),st=et.length-1,gt=Nt%2===0?2:1,mt=0;mt<st;mt++){var Pt=et[mt],kt=et[mt+1],wt=et[(ht+mt-1)%st],Ot=et[(ht+mt+gt)%st];nt[mt*2]=Pt,nt[mt*2+1]=re(Pt.x,Pt.y,wt.x,wt.y,kt.x,kt.y,Ot.x,Ot.y,new go.Point)}return nt[nt.length]=nt[0],oe(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Nt,et,nt){var ht=Re(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<5;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.2,.22),st.spot2=new go.Spot(.8,.9),st}),go.Shape.defineFigureGenerator("Hexagon",function(Nt,et,nt){var ht=Re(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<6;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.07,.25),st.spot2=new go.Spot(.93,.75),st}),go.Shape.defineFigureGenerator("Heptagon",function(Nt,et,nt){var ht=Re(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<7;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.2,.15),st.spot2=new go.Spot(.8,.85),st}),go.Shape.defineFigureGenerator("Octagon",function(Nt,et,nt){var ht=Re(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<8;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.85),st}),go.Shape.defineFigureGenerator("Nonagon",function(Nt,et,nt){var ht=Re(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<9;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.17,.13),st.spot2=new go.Spot(.82,.82),st}),go.Shape.defineFigureGenerator("Decagon",function(Nt,et,nt){var ht=Re(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("Dodecagon",function(Nt,et,nt){var ht=Re(12),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("FivePointedStar",function(Nt,et,nt){var ht=be(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.266,.333),st.spot2=new go.Spot(.733,.733),st}),go.Shape.defineFigureGenerator("SixPointedStar",function(Nt,et,nt){var ht=be(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.17,.25),st.spot2=new go.Spot(.83,.75),st}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Nt,et,nt){var ht=be(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<14;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("EightPointedStar",function(Nt,et,nt){var ht=be(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<16;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("NinePointedStar",function(Nt,et,nt){var ht=be(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<18;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("TenPointedStar",function(Nt,et,nt){var ht=be(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<20;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*et,ht[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.281,.261),st.spot2=new go.Spot(.723,.748),st}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Nt,et,nt){var ht=de(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Nt,et,nt){var ht=de(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.17,.222),st.spot2=new go.Spot(.833,.777),st}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Nt,et,nt){var ht=de(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Nt,et,nt){var ht=de(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Nt,et,nt){var ht=de(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Nt,et,nt){var ht=de(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*et,ht[mt+2].y*nt,ht[mt].x*et,ht[mt].y*nt,ht[mt+1].x*et,ht[mt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.setFigureParameter("FramedRectangle",0,new On("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new On("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN,st=Nt?Nt.parameter2:NaN;isNaN(ht)&&(ht=8),isNaN(st)&&(st=8);var gt=new go.Geometry,mt=new go.PathFigure(0,0,!0);return gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht<et/2&&st<nt/2&&(mt.add(new go.PathSegment(go.PathSegment.Move,ht,st)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,nt-st)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,nt-st)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,st).close())),gt.setSpots(0,0,1,1,ht,st,-ht,-st),gt}),go.Shape.setFigureParameter("Ring",0,new On("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var st=et/2,gt=new go.Geometry,mt=new go.PathFigure(et,et/2,!0);gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close());var Pt=Math.max(st-ht,0);return Pt>0&&(mt.add(new go.PathSegment(go.PathSegment.Move,et/2+Pt,et/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,st,st,Pt,Pt).close())),gt.spot1=Ut,gt.spot2=ne,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Nt,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new On("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new On("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN,st=Nt?Nt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(st)&&(st=315);var gt=ht%360;gt<0&&(gt+=360);var mt=st%360,Pt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Pt,Pt).add(new go.PathSegment(go.PathSegment.Arc,gt,mt,Pt,Pt,Pt,Pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Nt,et,nt){var ht=Ft/Math.SQRT2*.5,st=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,st*et,gt*nt,et,(1-ht)*nt,(st+ht)*et,(gt+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var st=Math.min(ht,et)/2,gt=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,mt-st)).add(new go.PathSegment(go.PathSegment.Line,et,mt-st)).add(new go.PathSegment(go.PathSegment.Line,et,mt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,mt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,mt+st)).add(new go.PathSegment(go.PathSegment.Line,0,mt+st)).add(new go.PathSegment(go.PathSegment.Line,0,mt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,mt-st).close()))}),go.Shape.setFigureParameter("ThinCross",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=Math.min(ht,et)/2,gt=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,mt-st)).add(new go.PathSegment(go.PathSegment.Line,et,mt-st)).add(new go.PathSegment(go.PathSegment.Line,et,mt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,mt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,mt+st)).add(new go.PathSegment(go.PathSegment.Line,0,mt+st)).add(new go.PathSegment(go.PathSegment.Line,0,mt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,mt-st).close()))}),go.Shape.setFigureParameter("ThickX",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var st=new go.Geometry(go.Geometry.Rectangle);return st.startX=0,st.startY=0,st.endX=et,st.endY=nt,st}else{var gt=et/2,mt=nt/2,Pt=Math.atan2(nt,et),kt=ht-Math.min(Math.cos(Pt)*ht/2,gt),wt=ht-Math.min(Math.sin(Pt)*ht/2,mt),st=new go.Geometry,Ot=new go.PathFigure(kt,0,!0);return st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.2*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-kt,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-kt,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.8*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,kt,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),st}}),go.Shape.setFigureParameter("ThinX",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=new go.Geometry,gt=new go.PathFigure(.1*et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),st}),go.Shape.setFigureParameter("SquareIBeam",0,new On("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),st}),go.Shape.setFigureParameter("RoundedIBeam",0,new On("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.5);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st}),go.Shape.defineFigureGenerator("HalfEllipse",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Ft*et,0,et,(.5-Ft/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Ft/2)*nt,Ft*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.4*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var gt=.2,mt=.3,Pt=0,kt=gt*Ft;return st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+gt+Pt)*nt,(.5-gt+mt)*et,(.5+kt+Pt)*nt,(.5-kt+mt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*et,(.5+Pt)*nt,(.5+kt+mt)*et,(.5+gt+Pt)*nt,(.5+gt+mt)*et,(.5+kt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+Pt)*nt,(1-.5+gt+mt)*et,(.5-kt+Pt)*nt,(.5+kt+mt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-kt+mt)*et,(.5-gt+Pt)*nt,(.5-gt+mt+.05)*et,(.5-kt+Pt-.02)*nt)),gt=.2,mt=0,Pt=-.3,kt=gt*Ft,st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*et,(.5+Pt)*nt,(.5+kt+mt)*et,(.5+gt+Pt)*nt,(.5+gt+mt)*et,(.5+kt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+Pt)*nt,(1-.5+gt+mt)*et,(.5-kt+Pt)*nt,(.5+kt+mt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*et,(.5+Pt)*nt,(.5-kt+mt)*et,(.5-gt+Pt)*nt,(.5-gt+mt)*et,(.5-kt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-kt+mt)*et,(.5+gt+Pt)*nt,(.5-gt+mt)*et,(.5+kt+Pt)*nt,(.5-kt+mt)*et,(.5+gt+Pt)*nt)),gt=.2,mt=-.3,Pt=0,kt=gt*Ft,st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+Pt)*nt,(1-.5+gt+mt-.05)*et,(.5-kt+Pt-.02)*nt,(.5+kt+mt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*et,(.5+Pt)*nt,(.5-kt+mt)*et,(.5-gt+Pt)*nt,(.5-gt+mt)*et,(.5-kt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+gt+Pt)*nt,(.5-gt+mt)*et,(.5+kt+Pt)*nt,(.5-kt+mt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+kt+mt)*et,(.5+gt+Pt)*nt,(.5+gt+mt)*et,(.5+kt+Pt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),st.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var gt=.1,mt=.5,Pt=.25;return st.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*et,Pt*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*mt,nt*Pt,gt*et,gt*et).close()),st=new go.PathFigure(et*.5,0,!1),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Pt=.75,st=new go.PathFigure((mt+gt)*et,Pt*nt,!0),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*mt,nt*Pt,gt*et,gt*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Nt,et,nt){var ht=.8535533905932737,st=.5*et,gt=.5*nt;return new go.Geometry().add(new go.PathFigure(st,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,st,gt,st,gt)).add(new go.PathSegment(go.PathSegment.Line,st,nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,mt=.5,Pt=.5,kt=new go.PathFigure(mt*et,(Pt-gt)*nt);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),gt=.4,st=Ft*.4;var wt=At(),Ot=At(),jt=At(),Ht=At();Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.42,wt,Ot,jt,Ht,Ht);var $t=At(),ye=At(),Yt=At();Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.58,Ht,Ht,Yt,$t,ye);var Ge=At(),ce=At(),$e=At();Ae(mt,Pt+gt,mt-st,Pt+gt,mt-gt,Pt+st,mt-gt,Pt,.42,Ge,ce,$e,Ht,Ht);var Ue=At(),Ke=At(),tn=At();return Ae(mt,Pt+gt,mt-st,Pt+gt,mt-gt,Pt+st,mt-gt,Pt,.58,Ht,Ht,tn,Ue,Ke),kt.add(new go.PathSegment(go.PathSegment.Move,tn.x*et,tn.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,Ue.x*et,Ue.y*nt,Ke.x*et,Ke.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*nt,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,tn.x*et,tn.y*nt).close()),kt.add(new go.PathSegment(go.PathSegment.Move,$e.x*et,$e.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,Yt.x*et,Yt.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,$t.x*et,$t.y*nt,ye.x*et,ye.y*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*et,$e.y*nt,Ge.x*et,Ge.y*nt,ce.x*et,ce.y*nt).close()),zt(wt),zt(Ot),zt(jt),zt(Ht),zt($t),zt(ye),zt(Yt),zt(Ge),zt(ce),zt($e),zt(Ue),zt(Ke),zt(tn),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var st=(et-ht)/2,gt=st+ht;return new go.Geometry().add(new go.PathFigure(gt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,st,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.4,gt=.4,mt=.5,Pt=.5,kt=At(),wt=At(),Ot=At(),jt=At(),Ht=new go.PathFigure((mt-gt)*et,Pt*nt,!1);ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt)),Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.44,Ot,jt,wt,kt,kt),Ht.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt));var $t=yt(wt.x,wt.y);Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.56,kt,kt,wt,Ot,jt);var ye=yt(wt.x,wt.y);Ht.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.95*.9)*et,$t.y*.1*nt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,$t.y*.1*nt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),Ht.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),Ht.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*et,.15*nt)),Ht.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*et,(ye.y*.1+.05*.9)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Line,ye.x*et,ye.y*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt)),gt=.35,st=Ft*.35;var Yt=new go.PathFigure(mt*et,(Pt-gt)*nt,!1);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt));var Ge=new go.PathFigure((mt-gt)*et,Pt*nt,!1);return ht.add(Ge),zt(kt),zt(wt),zt(Ot),zt(jt),zt($t),zt(ye),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Nt,et,nt){var ht=new go.Geometry,st=.375,gt=0,mt=-.125,Pt=st*Ft,kt=new go.PathFigure((.525+gt)*et,(.5+st+mt)*nt,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+mt)*nt,(.5+Pt+gt)*et,(.5+st+mt)*nt,(.5+st+gt)*et,(.5+Pt+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+mt)*nt,(1-.5+st+gt)*et,(.5-Pt+mt)*nt,(.5+Pt+gt)*et,(.5-st+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+mt)*nt,(.5-Pt+gt)*et,(.5-st+mt)*nt,(.5-st+gt)*et,(.5-Pt+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*et,(.5+st+mt)*nt,(.5-st+gt)*et,(.5+Pt+mt)*nt,(.5-Pt+gt)*et,(.5+st+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),st=.325,gt=0,mt=-.125,Pt=st*Ft;var kt=new go.PathFigure((1-.5+st+gt)*et,(.5+mt)*nt,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5+st+mt)*nt,(.5+st+gt)*et,(.5+Pt+mt)*nt,(.5+Pt+gt)*et,(.5+st+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+mt)*nt,(.5-Pt+gt)*et,(.5+st+mt)*nt,(.5-st+gt)*et,(.5+Pt+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+mt)*nt,(.5-st+gt)*et,(.5-Pt+mt)*nt,(.5-Pt+gt)*et,(.5-st+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+mt)*nt,(.5+Pt+gt)*et,(.5-st+mt)*nt,(1-.5+st+gt)*et,(.5-Pt+mt)*nt));var kt=new go.PathFigure((.525+gt)*et,(.5+st+mt)*nt,!1);return ht.add(kt),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Nt,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Nt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Nt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new On("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new On("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=.3);var gt=(1-ht)*et,mt=(.5-st/2)*nt,Pt=(.5+st/2)*nt,kt=new go.Geometry,wt=new go.PathFigure(0,mt,!0);kt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),kt.spot1=new go.Spot(0,mt/nt);var Ot=re(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,At());return kt.spot2=new go.Spot(Ot.x,Ot.y),zt(Ot),kt}),go.Shape.setFigureParameter("Arrow2",0,new On("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new On("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var st=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=30),st=Math.min(st,nt/2);var gt=et-ht,mt=(nt-st)/2,Pt=mt+st,kt=new go.Geometry,wt=new go.PathFigure(0,mt,!0);kt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),kt.spot1=new go.Spot(0,mt/nt);var Ot=re(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,At());return kt.spot2=new go.Spot(Ot.x,Ot.y),zt(Ot),kt}),go.Shape.defineFigureGenerator("Chevron",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new On("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,mt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);mt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var kt=re(0,.5,.3,0,0,st/nt,.1,st/nt,At());return mt.spot1=new go.Spot(kt.x,kt.y),kt=re(.7,1,1,.5,0,gt/nt,1,gt/nt,kt),mt.spot2=new go.Spot(kt.x,kt.y),zt(kt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new On("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new On("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,mt=gt+ht,Pt=(nt-st)/2,kt=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,mt=gt+ht,Pt=0,kt=nt):(gt=0,mt=nt,Pt=0,kt=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close());var jt=re(0,.5,.3,Pt/nt,0,gt/nt,1,gt/nt,At());return wt.spot1=new go.Spot(jt.x,jt.y),jt=re(.7,kt/nt,1,.5,0,mt/nt,1,mt/nt,jt),wt.spot2=new go.Spot(jt.x,jt.y),zt(jt),wt}),go.Shape.setFigureParameter("IBeamArrow",0,new On("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,mt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);mt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(0,st/nt);var kt=re(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return mt.spot2=new go.Spot(kt.x,kt.y),zt(kt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new On("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new On("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,mt=gt+ht,Pt=(nt-st)/2,kt=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,mt=gt+ht,Pt=0,kt=nt):(gt=0,mt=nt,Pt=0,kt=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close()),wt.spot1=new go.Spot(0,gt/nt);var jt=re(.7,kt/nt,1,.5,0,mt/nt,1,mt/nt,At());return wt.spot2=new go.Spot(jt.x,jt.y),zt(jt),wt}),go.Shape.setFigureParameter("Pointer",0,new On("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.1);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),st.spot1=new go.Spot(ht,.35);var mt=re(.2,.65,1,.65,0,1,1,.5,At());return st.spot2=new go.Spot(mt.x,mt.y),zt(mt),st}),go.Shape.setFigureParameter("RoundedPointer",0,new On("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st.spot1=new go.Spot(ht,.35);var mt=re(0,.65,1,.65,0,1,1,.5,At());return st.spot2=new go.Spot(mt.x,mt.y),zt(mt),st}),go.Shape.setFigureParameter("SplitEndArrow",0,new On("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.4);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,mt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);mt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,.3);var kt=re(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return mt.spot2=new go.Spot(kt.x,kt.y),zt(kt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new On("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=50);var st=(nt-ht)/2,gt=st+ht;ht>nt&&(st=0,gt=nt);var mt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);mt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,st/nt);var kt=re(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return mt.spot2=new go.Spot(kt.x,kt.y),zt(kt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new On("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.7);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(ht,1),st}),go.Shape.defineFigureGenerator("Cone1",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,mt=new go.PathFigure(0,.9*nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.9*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var gt=new go.PathFigure(0,.9*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.3*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var gt=new go.PathFigure(0,.3*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Ft*.5,mt=new go.PathFigure(0,ht,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ft*ht,(.5-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+gt)*et,0,1*et,Ft*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Ft*ht,(.5+gt)*et,1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,1*nt,0,nt-Ft*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var Pt=new go.PathFigure(et,ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-Ft*ht,(.5+gt)*et,2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*et,2*ht,0,2*ht-Ft*ht)),st.spot1=new go.Spot(0,0,0,2*ht),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder2",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Ft*.5,mt=new go.PathFigure(0,nt-ht,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ft*ht,(.5-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+gt)*et,0,et,Ft*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Ft*ht,(.5+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,nt,0,nt-Ft*ht));var Pt=new go.PathFigure(0,nt-ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-Ft*ht,(.5-gt)*et,nt-2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+gt)*et,nt-2*ht,et,nt-ht-Ft*ht)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,0,-2*ht),st}),go.Shape.defineFigureGenerator("Cylinder3",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Ft*.5,mt=new go.PathFigure(ht,0,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ft*ht,0,et,(.5-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Ft*ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ft*ht,nt,0,(.5+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Ft*ht,0));var Pt=new go.PathFigure(ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+Ft*ht,0,2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+gt)*nt,ht+Ft*ht,nt)),st.spot1=new go.Spot(0,0,2*ht,0),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder4",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Ft*.5,mt=new go.PathFigure(et-ht,0,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ft*ht,0,et,(.5-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Ft*ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ft*ht,nt,0,(.5+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Ft*ht,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var Pt=new go.PathFigure(et-ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-Ft*ht,0,et-2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+gt)*nt,et-ht-Ft*ht,nt)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,-2*ht,0),st}),go.Shape.defineFigureGenerator("Prism1",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Nt,et,nt){var ht=new go.Geometry,st=.2,gt=.1,mt=Ft*st,Pt=Ft*gt,kt=.5,wt=.1,Ot=new go.PathFigure(kt*et,(wt+gt)*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(kt-st)*et,wt*nt,(kt-mt)*et,(wt+gt)*nt,(kt-st)*et,(wt+Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-gt)*nt,(kt-st)*et,(wt-Pt)*nt,(kt-mt)*et,(wt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(kt+st)*et,wt*nt,(kt+mt)*et,(wt-gt)*nt,(kt+st)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt+gt)*nt,(kt+st)*et,(wt+Pt)*nt,(kt+mt)*et,(wt+gt)*nt));var jt=.05,Ht=Ft*jt;kt=.05,wt=.25;var $t=new go.PathFigure(.5*et,.2*nt,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),kt=.95,wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt+jt)*et,wt*nt,(kt+Ht)*et,(wt-jt)*nt,(kt+jt)*et,(wt-Ht)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),jt=.025,Ht=Ft*jt,kt=.825,wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-jt)*nt,(kt+jt)*et,(wt-Ht)*nt,(kt+Ht)*et,(wt-jt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-jt)*et,wt*nt,(kt-Ht)*et,(wt-jt)*nt,(kt-jt)*et,(wt-Ht)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),jt=.05,Ht=Ft*jt,kt=.5,wt=.7,$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-jt)*nt,(kt+jt)*et,(wt-Ht)*nt,(kt+Ht)*et,(wt-jt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-jt)*et,wt*nt,(kt-Ht)*et,(wt-jt)*nt,(kt-jt)*et,(wt-Ht)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),jt=.025,Ht=Ft*jt,kt=.175,wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-jt)*nt,(kt+jt)*et,(wt-Ht)*nt,(kt+Ht)*et,(wt-jt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-jt)*et,wt*nt,(kt-Ht)*et,(wt-jt)*nt,(kt-jt)*et,(wt-Ht)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),jt=.05,Ht=Ft*jt,kt=.05,wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-jt)*nt,(kt-jt)*et,(wt-Ht)*nt,(kt-Ht)*et,(wt-jt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new On("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=new go.Spot(0,ht),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Collate",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var gt=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,st*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,mt=new go.PathFigure(et,.1*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+gt)*nt,(.5+st)*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-st)*et,.4*nt,0,(.3+gt)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,mt=new go.PathFigure(et,.1*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)?st=.2:st<.15&&(st=.15);var gt=Ft*.2,mt=new go.PathFigure(0,.2*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-gt)*nt,(.2-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+gt)*et,0,et,(.2-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+gt)*nt,(.8+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-gt)*et,nt,0,(.8+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Pt=new go.PathFigure(0,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;(isNaN(st)||st<.1)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,st*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Nt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;(isNaN(st)||st<.2)&&(st=.2);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(st*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,st*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.75*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var gt=new go.PathFigure(et,.5*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var mt=new go.PathFigure(et,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.1);var mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,gt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Nt,et,nt){var ht=new go.Geometry,st=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=Ft*.5,Pt=.5,kt=new go.PathFigure(et,Pt*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,nt,et,(Pt+mt)*nt,(Pt+mt)*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,Pt*nt,(Pt-mt)*et,nt,0,(Pt+mt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,0,0,(Pt-mt)*nt,(Pt-mt)*et,0)),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,Pt*nt,(Pt+mt)*et,0,et,(Pt-mt)*nt));var wt=new go.PathFigure((gt+st)*et,(gt+st)*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,gt*et,(gt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,(gt+st)*et,gt*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Nt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var gt=new go.PathFigure(.1*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,mt=new go.PathFigure(.5*et,nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*et,.9*nt,et,(gt+st)*nt,(gt+st)*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.7);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,st*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Nt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var gt=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.1*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var gt=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=1-st,mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Pt=new go.PathFigure(.5*st*et,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*st)*et,st*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,mt=new go.PathFigure(et,gt*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Nt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure((1-st)*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,st*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(st*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(0,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(st*et,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var mt=new go.PathFigure(st*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),ht.spot1=new go.Spot(st,0),ht.spot2=new go.Spot(1-st,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Nt,et,nt){var ht=new go.Geometry,st=Nt?Nt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+st)*et,0,et,(.5-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+st)*nt,(.5+st)*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,mt=new go.PathFigure(et,gt*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,gt*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt));var kt=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.1,gt=.1,mt=.9,Pt=.5,kt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),kt.add(new go.PathSegment(go.PathSegment.Line,0,0)),kt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var wt=new go.PathFigure((mt+gt)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,(mt+st)*et,(Pt-gt)*nt,(mt+gt)*et,(Pt-st)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.4,mt=Ft*.1,Pt=.1,kt=.9,wt=.5,Ot=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+gt)*nt,(.4+st)*et,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+st)*et,0,.8*et,(.5-gt)*nt));var jt=new go.PathFigure((kt+Pt)*et,wt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt+Pt)*nt,(kt+Pt)*et,(wt+mt)*nt,(kt+mt)*et,(wt+Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt)*et,wt*nt,(kt-mt)*et,(wt+Pt)*nt,(kt-Pt)*et,(wt+mt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-Pt)*nt,(kt-Pt)*et,(wt-mt)*nt,(kt-mt)*et,(wt-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt)*et,wt*nt,(kt+mt)*et,(wt-Pt)*nt,(kt+Pt)*et,(wt-mt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,mt=0,Pt=.5,kt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=Ft*.1,mt=.9,Pt=.5;var wt=new go.PathFigure((mt-st)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,mt=0,Pt=.5,kt=new go.PathFigure(0,0,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+gt+gt)*et,(Pt-st)*nt,.8*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Pt+gt)*nt,(mt+gt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,mt=.2,Pt=.5,kt=new go.PathFigure(.1*et,0,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=Ft*.1,mt=.9,Pt=.5;var Ot=new go.PathFigure((mt-st)*et,Pt*nt,!0);return ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,mt=.2,Pt=.5,kt=new go.PathFigure(.1*et,0,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.2*et,0,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+gt)*et,(Pt-st)*nt,.9*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.1,gt=.1,mt=.1,Pt=.5,kt=new go.PathFigure((mt-st*.5)*et,nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-st)*et,nt,(mt-gt)*et,0)),mt=.3,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+st)*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-st)*et,nt,(mt-gt)*et,0)),mt=.5,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+st)*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-st)*et,nt,(mt-gt)*et,0)),mt=.7,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+st)*et,nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-st)*et,nt,(mt-gt)*et,0)),mt=.9,kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st*.5)*et,nt,(mt+gt)*et,0,(mt+st)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,mt=.5,Pt=.5,kt=new go.PathFigure((mt-gt)*et,Pt*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,(mt+st)*et,(Pt-gt)*nt,(mt+gt)*et,(Pt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*et,Pt*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*et,Pt*nt,mt*et,(Pt-gt)*nt,mt*et,(Pt+gt)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Nt,et,nt){var ht=new go.Geometry,st=et,gt=nt;et=et*.38,nt=nt*.6;var mt=Ft*.8,Pt=.8,kt=0,wt=.5,Ot=(st-et)/2,jt=(gt-nt)/2,Ht=new go.PathFigure(kt*et+Ot,(wt+Pt)*nt+jt,!0);ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt)*et+Ot,wt*nt+jt,(kt-mt)*et+Ot,(wt+Pt)*nt+jt,(kt-Pt)*et+Ot,(wt+mt)*nt+jt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt-Pt)*nt+jt,(kt-Pt)*et+Ot,(wt-mt)*nt+jt,(kt-mt)*et+Ot,(wt-Pt)*nt+jt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt+mt*.5)*et+Ot,wt*nt+jt,kt*et+Ot,(wt-Pt)*nt+jt,(kt-Pt+mt*.5)*et+Ot,(wt-mt)*nt+jt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt+Pt)*nt+jt,(kt-Pt+mt*.5)*et+Ot,(wt+mt)*nt+jt,kt*et+Ot,(wt+Pt)*nt+jt).close()),mt=Ft*.4,Pt=.4,kt=.2,wt=.5;var $t=new go.PathFigure(kt*et+Ot,(wt+Pt)*nt+jt,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt)*et+Ot,wt*nt+jt,(kt-mt)*et+Ot,(wt+Pt)*nt+jt,(kt-Pt)*et+Ot,(wt+mt)*nt+jt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt-Pt)*nt+jt,(kt-Pt)*et+Ot,(wt-mt)*nt+jt,(kt-mt)*et+Ot,(wt-Pt)*nt+jt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt+mt*.5)*et+Ot,wt*nt+jt,kt*et+Ot,(wt-Pt)*nt+jt,(kt-Pt+mt*.5)*et+Ot,(wt-mt)*nt+jt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt+Pt)*nt+jt,(kt-Pt+mt*.5)*et+Ot,(wt+mt)*nt+jt,kt*et+Ot,(wt+Pt)*nt+jt).close()),mt=Ft*.2,Pt=.2,kt=.5,wt=.5;var ye=new go.PathFigure((kt-Pt)*et+Ot,wt*nt+jt,!0);ht.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt-Pt)*nt+jt,(kt-Pt)*et+Ot,(wt-mt)*nt+jt,(kt-mt)*et+Ot,(wt-Pt)*nt+jt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt)*et+Ot,wt*nt+jt,(kt+mt)*et+Ot,(wt-Pt)*nt+jt,(kt+Pt)*et+Ot,(wt-mt)*nt+jt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt+Pt)*nt+jt,(kt+Pt)*et+Ot,(wt+mt)*nt+jt,(kt+mt)*et+Ot,(wt+Pt)*nt+jt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(kt-Pt)*et+Ot,wt*nt+jt,(kt-mt)*et+Ot,(wt+Pt)*nt+jt,(kt-Pt)*et+Ot,(wt+mt)*nt+jt)),mt=Ft*.4,Pt=.4,kt=.8,wt=.5;var Yt=new go.PathFigure(kt*et+Ot,(wt-Pt)*nt+jt,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt)*et+Ot,wt*nt+jt,(kt+mt)*et+Ot,(wt-Pt)*nt+jt,(kt+Pt)*et+Ot,(wt-mt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt+Pt)*nt+jt,(kt+Pt)*et+Ot,(wt+mt)*nt+jt,(kt+mt)*et+Ot,(wt+Pt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt-mt*.5)*et+Ot,wt*nt+jt,kt*et+Ot,(wt+Pt)*nt+jt,(kt+Pt-mt*.5)*et+Ot,(wt+mt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt-Pt)*nt+jt,(kt+Pt-mt*.5)*et+Ot,(wt-mt)*nt+jt,kt*et+Ot,(wt-Pt)*nt+jt).close()),mt=Ft*.8,Pt=.8,kt=1,wt=.5;var Ge=new go.PathFigure(kt*et+Ot,(wt-Pt)*nt+jt,!0);return ht.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt)*et+Ot,wt*nt+jt,(kt+mt)*et+Ot,(wt-Pt)*nt+jt,(kt+Pt)*et+Ot,(wt-mt)*nt+jt)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt+Pt)*nt+jt,(kt+Pt)*et+Ot,(wt+mt)*nt+jt,(kt+mt)*et+Ot,(wt+Pt)*nt+jt)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(kt+Pt-mt*.5)*et+Ot,wt*nt+jt,kt*et+Ot,(wt+Pt)*nt+jt,(kt+Pt-mt*.5)*et+Ot,(wt+mt)*nt+jt)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,kt*et+Ot,(wt-Pt)*nt+jt,(kt+Pt-mt*.5)*et+Ot,(wt-mt)*nt+jt,kt*et+Ot,(wt-Pt)*nt+jt).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.35*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var gt=new go.PathFigure(.1*et,nt,!0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var mt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Pt=new go.PathFigure(0,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Nt,et,nt){var ht=new go.Geometry,st=Ft*.4,gt=.4,mt=.5,Pt=.5,kt=At(),wt=At(),Ot=At(),jt=At();Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.5,kt,kt,wt,Ot,jt);var Ht=yt(wt.x,wt.y),$t=new go.PathFigure(wt.x*et,wt.y*nt,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,(mt-st)*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt)),Ae(mt-gt,Pt,mt-gt,Pt-st,mt-st,Pt-gt,mt,Pt-gt,.5,Ot,jt,wt,kt,kt),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),st=Ft*.3,gt=.3,Ae(mt-gt,Pt,mt-gt,Pt-st,mt-st,Pt-gt,mt,Pt-gt,.5,Ot,jt,wt,kt,kt),$t.add(new go.PathSegment(go.PathSegment.Line,wt.x*et,wt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,Pt*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+gt)*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,Pt*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),Ae(mt,Pt-gt,mt+st,Pt-gt,mt+gt,Pt-st,mt+gt,Pt,.5,kt,kt,wt,Ot,jt),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt).close());var $t=new go.PathFigure(.45*et,0,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),zt(kt),zt(wt),zt(Ot),zt(jt),zt(Ht),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt/2,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function gt(mt,Pt,kt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+Pt)*et,(.8+kt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+Pt)*et,(.5+kt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+Pt)*et,(.5+kt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+Pt)*et,(.8+kt)*nt).close())}return gt(st,0,0),gt(st,.4,0),gt(st,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.37*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=0,mt=0,Pt=st*Ft,kt=.4*Math.SQRT2/2+.5,wt=.5-.5*Math.SQRT2/2,Ot=1,jt=.5,Ht=.5,$t=0,ye=new go.PathFigure(kt*et,(1-wt)*nt,!1);return ht.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,jt*nt,Ot*et,.7*nt,Ot*et,jt*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+gt)*et,($t+gt)*nt,(.5+st+gt)*et,(.5-Pt+gt)*nt,(.5+Pt+gt)*et,(.5-st+gt)*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+mt)*nt,(.5-Pt+gt)*et,(.5-st+mt)*nt,(.5-st+gt)*et,(.5-Pt+mt)*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*et,.9*nt,(.5-st+gt)*et,(.5+Pt+mt)*nt,(.5-Pt+gt)*et,.9*nt)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*et,.8*nt)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*et,.9*nt)),ye.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var mt=new go.PathFigure(0,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var st=new go.PathFigure(0,.2*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.7*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var gt=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var mt=.5-.285,Pt=.5,kt=mt,wt=Math.PI/4,Ot=4*(1-Math.cos(wt))/(3*Math.sin(wt)),jt=Ot*.5,Ht=mt,$t=mt,ye=Ot*Ht,Yt=Ot*$t;gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ht)*et,kt*nt,(Pt-(ye+Ht)/2)*et,(kt+($t+Yt)/2)*nt,(Pt-Ht)*et,(kt+Yt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(kt-$t)*nt,(Pt-Ht)*et,(kt-Yt)*nt,(Pt-ye)*et,(kt-$t)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+Ht)*et,kt*nt,(Pt+ye)*et,(kt-$t)*nt,(Pt+Ht)*et,(kt-Yt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Pt+Ht)*et,(kt+Yt)*nt,(Pt+(ye+Ht)/2)*et,(kt+($t+Yt)/2)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Ge=new go.PathFigure(.2*et,nt,!1);ht.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var ce=new go.PathFigure(.8*et,nt,!1);return ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var gt=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var mt=new go.PathFigure(.1*et,nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.05*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var gt=.05;return st.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*et,.875*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,gt*et,gt*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.45*et,.95*nt,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var gt=new go.PathFigure(.475*et,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var mt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,mt=new go.PathFigure(et,st*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,nt,et,(st+gt)*nt,(st+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,st*nt,(st-gt)*et,nt,0,(st+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,0,0,(st-gt)*nt,(st-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,st*nt,(st+gt)*et,0,et,(st-gt)*nt));var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.15*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.85*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.15*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,.15*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(0,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var gt=new go.PathFigure(0,.2*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var mt=new go.PathFigure(0,.6*nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.15*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var gt=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(et,.8*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var mt=.1,Pt=Ft*.1,kt=.2,wt=.9,Ot=new go.PathFigure((kt-mt)*et,wt*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-mt)*nt,(kt-mt)*et,(wt-Pt)*nt,(kt-Pt)*et,(wt-mt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(kt+mt)*et,wt*nt,(kt+Pt)*et,(wt-mt)*nt,(kt+mt)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt+mt)*nt,(kt+mt)*et,(wt+Pt)*nt,(kt+Pt)*et,(wt+mt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(kt-mt)*et,wt*nt,(kt-Pt)*et,(wt+mt)*nt,(kt-mt)*et,(wt+Pt)*nt).close()),mt=.1,Pt=Ft*.1,kt=.8,wt=.9;var jt=new go.PathFigure((kt-mt)*et,wt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt-mt)*nt,(kt-mt)*et,(wt-Pt)*nt,(kt-Pt)*et,(wt-mt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+mt)*et,wt*nt,(kt+Pt)*et,(wt-mt)*nt,(kt+mt)*et,(wt-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(wt+mt)*nt,(kt+mt)*et,(wt+Pt)*nt,(kt+Pt)*et,(wt+mt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-mt)*et,wt*nt,(kt-Pt)*et,(wt+mt)*nt,(kt-mt)*et,(wt+Pt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var mt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Pt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var kt=.1,wt=Ft*.1,Ot=.1,jt=.9,Ht=new go.PathFigure((Ot-kt)*et,jt*nt,!0);ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-kt)*nt,(Ot-kt)*et,(jt-wt)*nt,(Ot-wt)*et,(jt-kt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+kt)*et,jt*nt,(Ot+wt)*et,(jt-kt)*nt,(Ot+kt)*et,(jt-wt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+kt)*nt,(Ot+kt)*et,(jt+wt)*nt,(Ot+wt)*et,(jt+kt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-kt)*et,jt*nt,(Ot-wt)*et,(jt+kt)*nt,(Ot-kt)*et,(jt+wt)*nt)),kt=.1,wt=Ft*.1,Ot=.4,jt=.9;var $t=new go.PathFigure((Ot-kt)*et,jt*nt,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-kt)*nt,(Ot-kt)*et,(jt-wt)*nt,(Ot-wt)*et,(jt-kt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+kt)*et,jt*nt,(Ot+wt)*et,(jt-kt)*nt,(Ot+kt)*et,(jt-wt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+kt)*nt,(Ot+kt)*et,(jt+wt)*nt,(Ot+wt)*et,(jt+kt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-kt)*et,jt*nt,(Ot-wt)*et,(jt+kt)*nt,(Ot-kt)*et,(jt+wt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.4*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var gt=new go.PathFigure(.45*et,.7*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var mt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Ot=.05,jt=Ft*.05,Ht=.175,$t=.95,Pt=new go.PathFigure((Ht-Ot)*et,$t*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t-Ot)*nt,(Ht-Ot)*et,($t-jt)*nt,(Ht-jt)*et,($t-Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Ot)*et,$t*nt,(Ht+jt)*et,($t-Ot)*nt,(Ht+Ot)*et,($t-jt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t+Ot)*nt,(Ht+Ot)*et,($t+jt)*nt,(Ht+jt)*et,($t+Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Ot)*et,$t*nt,(Ht-jt)*et,($t+Ot)*nt,(Ht-Ot)*et,($t+jt)*nt));var Ot=.05,jt=Ft*.05,Ht=.375,$t=.95,kt=new go.PathFigure((Ht-Ot)*et,$t*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t-Ot)*nt,(Ht-Ot)*et,($t-jt)*nt,(Ht-jt)*et,($t-Ot)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Ot)*et,$t*nt,(Ht+jt)*et,($t-Ot)*nt,(Ht+Ot)*et,($t-jt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t+Ot)*nt,(Ht+Ot)*et,($t+jt)*nt,(Ht+jt)*et,($t+Ot)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Ot)*et,$t*nt,(Ht-jt)*et,($t+Ot)*nt,(Ht-Ot)*et,($t+jt)*nt));var Ot=.05,jt=Ft*.05,Ht=.625,$t=.95,wt=new go.PathFigure((Ht-Ot)*et,$t*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t-Ot)*nt,(Ht-Ot)*et,($t-jt)*nt,(Ht-jt)*et,($t-Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Ot)*et,$t*nt,(Ht+jt)*et,($t-Ot)*nt,(Ht+Ot)*et,($t-jt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t+Ot)*nt,(Ht+Ot)*et,($t+jt)*nt,(Ht+jt)*et,($t+Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Ot)*et,$t*nt,(Ht-jt)*et,($t+Ot)*nt,(Ht-Ot)*et,($t+jt)*nt));var Ot=.05,jt=Ft*.05,Ht=.825,$t=.95,ye=new go.PathFigure((Ht-Ot)*et,$t*nt,!0);ht.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t-Ot)*nt,(Ht-Ot)*et,($t-jt)*nt,(Ht-jt)*et,($t-Ot)*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Ot)*et,$t*nt,(Ht+jt)*et,($t-Ot)*nt,(Ht+Ot)*et,($t-jt)*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,($t+Ot)*nt,(Ht+Ot)*et,($t+jt)*nt,(Ht+jt)*et,($t+Ot)*nt)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Ot)*et,$t*nt,(Ht-jt)*et,($t+Ot)*nt,(Ht-Ot)*et,($t+jt)*nt).close());var Yt=new go.PathFigure(0,nt,!1);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(.15*et,nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Pt=.05,kt=Ft*.05,wt=.35,Ot=.775,jt=new go.PathFigure((wt-Pt)*et,Ot*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot-Pt)*nt,(wt-Pt)*et,(Ot-kt)*nt,(wt-kt)*et,(Ot-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+Pt)*et,Ot*nt,(wt+kt)*et,(Ot-Pt)*nt,(wt+Pt)*et,(Ot-kt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot+Pt)*nt,(wt+Pt)*et,(Ot+kt)*nt,(wt+kt)*et,(Ot+Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-Pt)*et,Ot*nt,(wt-kt)*et,(Ot+Pt)*nt,(wt-Pt)*et,(Ot+kt)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Nt,et,nt){var ht=new go.Geometry,st=.3,gt=Ft*.3,mt=.5,Pt=.7,kt=new go.PathFigure((mt-st)*et,Pt*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(0,.7*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var gt=new go.PathFigure(0,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,mt=.5,Pt=.5,kt=new go.PathFigure((mt-st)*et,Pt*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.1*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Nt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,mt=.5,Pt=.5,kt=new go.PathFigure((mt-st)*et,Pt*nt,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt).close()),st=.05,gt=Ft*.05,mt=.5,Pt=.8;var wt=new go.PathFigure((mt-st)*et,Pt*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt-st)*nt,(mt-st)*et,(Pt-gt)*nt,(mt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+st)*et,Pt*nt,(mt+gt)*et,(Pt-st)*nt,(mt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Pt+st)*nt,(mt+st)*et,(Pt+gt)*nt,(mt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-st)*et,Pt*nt,(mt-gt)*et,(Pt+st)*nt,(mt-st)*et,(Pt+gt)*nt).close()),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var gt=new go.PathFigure(0,nt*.6,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var gt=new go.PathFigure(.126*et,.85*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var mt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Pt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var kt=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var gt=new go.PathFigure(et*.204,nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var mt=new go.PathFigure(et*.408,nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Pt=new go.PathFigure(et*.612,nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var kt=new go.PathFigure(et*.816,nt,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),kt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),kt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var gt=new go.PathFigure(et*.055,.07*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var mt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Pt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var kt=new go.PathFigure(et*1,0,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),kt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.55*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*.5,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var gt=new go.PathFigure(0,0,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var mt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var kt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),kt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),kt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Nt,et,nt){var ht=new go.Geometry,st=8,gt=st*Ft,mt=new go.PathFigure(st,0,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,st)),mt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,gt,gt,0).close());var Pt=new go.PathFigure(et*.83,0,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var kt=new go.PathFigure(et*.83,nt*1,!1);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var wt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Nt,et,nt){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Ft,gt=nt*.8,mt=new go.Geometry,Pt=new go.PathFigure(ht,0,!0);return mt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt-ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,gt,et,gt-st,et-st,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,st,gt,0,gt-st)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()),st>1?(mt.spot1=new go.Spot(0,0,st,st),mt.spot2=new go.Spot(1,.8,-st,-st)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.45,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var gt=new go.PathFigure(et*1,nt*.55,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var gt=new go.PathFigure(et*.1,nt*.2,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var mt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Nt,et,nt){var ht=new go.Geometry,st=15,gt=st*Ft,mt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),gt>1?(ht.spot1=new go.Spot(0,0,gt,gt),ht.spot2=new go.Spot(1,1,-gt,-gt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var mt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;return st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var mt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var gt=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Nt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,nt*0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 On={},Cn="5.0",yt={},At=null,zt=!1,re=!1,Ae=null,Ut=!1,ne=null,Ft=null,De=0;De<arguments.length;De++){var Pe=arguments[De];if(Pe!==null)switch(typeof Pe){case"number":Cn=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=Pe:Ae=Pe;break;case"object":typeof Pe.is3D!="undefined"?At=Pe:yt=Pe;break;case"boolean":zt=Pe,re=!0;break}}At===null&&(At={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},yt.material_id!==void 0&&!re&&(zt=!0)),Ae!==null&&yt.id===void 0&&(yt.id=Ae);var oe="",Re="",de=!1,be=null,Nt=null,et=null,nt=!1,ht=null,st=null,gt=null,mt=null,Pt=null;yt.height!==void 0&&(yt.height=Math.round(yt.height)),yt.width!==void 0&&(yt.width=Math.round(yt.width));var kt=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};On.setHTML5Codebase=function(Be,on){Ft=Be,en(Be,on)},On.setJavaCodebase=On.setJavaCodebaseVersion=On.isCompiledInstalled=On.setPreCompiledScriptPath=On.setPreCompiledResourcePath=function(){},On.setHTML5CodebaseVersion=function(Be,on){var un=parseFloat(Be);if(un!==NaN&&un<5){console.log("The GeoGebra HTML5 codebase version "+un+" is deprecated. Using version latest instead.");return}ne=Be,Zt(Be,on)},On.getHTML5CodebaseVersion=function(){return Nt},On.getParameters=function(){return yt},On.setFontsCSSURL=function(Be){mt=Be},On.setGiacJSURL=function(Be){},On.setJNLPFile=function(Be){oe=Be},On.setJNLPBaseDir=function(Be){},On.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var on="auto",un=yt.id,Jn,nn=!1,Gn=0;Gn<arguments.length;Gn++){var pe=arguments[Gn];typeof pe=="string"?(pe=pe.toLowerCase(),pe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?on=pe:un=arguments[Gn]):typeof pe=="boolean"?nn=pe:pe instanceof HTMLElement&&(Jn=pe)}Xn();function Xn(){if(!Ut){setTimeout(Xn,200);return}on=Tn(on);var oi=Jn||document.getElementById(un);if(!oi){console.log("possibly bug on ajax loading? ");return}if(On.removeExistingApplet(oi,!1),yt.width===void 0&&oi.clientWidth&&(yt.width=oi.clientWidth),yt.height===void 0&&oi.clientHeight&&(yt.height=oi.clientHeight),!(yt.width&&yt.height)&&on==="html5"&&(delete yt.width,delete yt.height),be=on,on==="screenshot")ce(oi,yt);else{var te=!1;yt.hasOwnProperty("playButton")&&yt.playButton||yt.hasOwnProperty("clickToLoad")&&yt.clickToLoad?te=!0:yt.hasOwnProperty("playButtonAutoDecide")&&yt.playButtonAutoDecide&&(te=(!wt()||Be())&&Ot()),te?(be="screenshot",Ue(oi,yt,nn,on)):Ge(oi,yt,nn)}}};function wt(){try{return window.self!==window.top}catch(Be){return!0}}function Ot(){return yt.hasOwnProperty("screenshotGenerator")&&yt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}On.getViews=function(){return At},On.isJavaInstalled=function(){return!1};var jt=function(Be){var on=function(Gn){var pe=JSON.parse(Gn),Xn=function(bt){return bt.type=="G"||bt.type=="E"},oi=pe.elements?pe.elements.filter(Xn)[0]:pe;if(!oi||!oi.url){un();return}yt.fileName=oi.url,Ht(oi.settings||{}),At.is3D=!0;var te="https://www.geogebra.org/images/";On.setPreviewImage(ht||oi.previewUrl,te+"GeoGebra_loading.png",te+"applet_play.png"),Be()},un=function(){yt.onError&&yt.onError(),Kn("Error: Fetching material (id "+yt.material_id+") failed.",yt)},Jn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nn="/materials/"+yt.material_id+"?scope=basic";$t("https://"+Jn+"/api/proxy.php?path="+encodeURIComponent(nn),on,un)};function Ht(Be){var on=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(un){Be[un]=!!Be[un]}),on.forEach(function(un){yt[un]===void 0&&Be[un]!==void 0&&(yt[un]=Be[un])}),yt.showToolBarHelp===void 0&&(yt.showToolBarHelp=yt.showToolBar)}function $t(Be,on,un){var Jn=new XMLHttpRequest;Jn.open("GET",Be),Jn.onload=function(){on(Jn.responseText)},Jn.onerror=un,Jn.send()}On.isHTML5Installed=function(){return!0},On.getLoadedAppletType=function(){return be},On.setPreviewImage=function(Be,on,un){ht=Be,st=on,gt=un},On.removeExistingApplet=function(Be,on){var un;typeof Be=="string"&&(Be=document.getElementById(Be)),be=null;var Jn=null;for(un=0;un<Be.childNodes.length;un++){var nn=Be.childNodes[un],Gn=nn.className;Gn==="applet_screenshot"?on?(nn.style.display="block",be="screenshot"):nn.style.display="none":Gn!=="applet_scaler prerender"&&(Be.removeChild(nn),Jn=Gn&&Gn.indexOf("appletParameters")!=-1?nn.id:null,un--)}var pe=yt.id!==void 0?yt.id:Jn,Xn=window[pe];Xn&&typeof Xn.getBase64=="function"&&(Xn.remove(),window[pe]=null)},On.refreshHitPoints=function(){if(kt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Be=On.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},On.startAnimation=function(){var Be=On.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},On.stopAnimation=function(){var Be=On.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},On.getAppletObject=function(){var Be=yt.id!==void 0?yt.id:"ggbApplet";return window[Be]},On.resize=function(){};var ye=function(Be,on,un){var Jn=document.createElement("param");Jn.setAttribute("name",on),Jn.setAttribute("value",un),Be.appendChild(Jn)},Yt=function(Be){return Be&&Be!=="false"},Ge=function(Be,on,un){kt(Nt)<=4.2&&(un=!0);var Jn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Nt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Jn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nn=document.createElement("div");nn.classList.add("appletParameters","notranslate");var Gn=on.width,pe=on.height;if(on.disableAutoScale=on.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():on.disableAutoScale,on.width!==void 0)if(kt(Nt)<=4.4)Yt(on.showToolBar)&&(on.height-=7),Yt(on.showAlgebraInput)&&(on.height-=37),on.width<605&&Yt(on.showToolBar)&&(on.width=605,Gn=605);else{var Xn=100;(Yt(on.showToolBar)||Yt(on.showMenuBar))&&(on.hasOwnProperty("customToolBar")&&(on.customToolbar=on.customToolBar),Xn=Yt(on.showMenuBar)?245:155),Gn<Xn&&(on.width=Xn,Gn=Xn)}nn.style.border="none",nn.style.display="inline-block";for(var oi in on)on.hasOwnProperty(oi)&&oi!=="appletOnLoad"&&nn.setAttribute("data-param-"+oi,on[oi]);mt&&nn.setAttribute("data-param-fontscssurl",mt),On.resize=function(){GGBAppletUtils.responsiveResize(Be,on)},window.addEventListener("resize",function(se){On.resize()});var te=typeof on.appletOnLoad=="function"?on.appletOnLoad:function(){};if(!un&&on.width!==void 0){on.hasOwnProperty("showSplash")||nn.setAttribute("data-param-showSplash","false");var bt=Be.querySelector(".applet_scaler.prerender"),xt=bt!==null;if(xt)var Tt=bt.querySelector(".ggb_preview");else{var Tt=tn(Gn,pe,on.borderColor,!1);bt=document.createElement("div"),bt.className="applet_scaler",bt.style.position="relative",bt.style.display="block",bt.style.width=Gn+"px",bt.style.height=pe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),kt(Nt)>=5?(on.appletOnLoad=function(se){var ke=Be.querySelector(".ggb_preview");ke&&ke.parentNode.removeChild(ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bt),window.GGBT_wsf_view&&$(window).trigger("resize"),te(se)},xt||bt.appendChild(Tt)):nn.appendChild(Tt),bt.appendChild(nn),xt||Be.appendChild(bt),setTimeout(function(){On.resize()},1)}else{var Bt=document.createElement("div");Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.appendChild(nn),Be.appendChild(Bt),on.appletOnLoad=function(se){On.resize(),te(se)}}function St(se,ke){ke&&typeof ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(se,ke.appletOnLoad):renderGGBElement(se),Kn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ke)}function he(se,ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:se,params:ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(vn){St(vn.article,vn.params)}),html5AppletsToProcess=null)},kt(Nt)<5&&(se.className+=" geogebraweb")):St(se,ke)}if(Jn){scriptLoadStarted=!0;for(var Le=0;Le<nn.childNodes.length;Le++){var Gt=nn.childNodes[Le].tagName;Gt==="TABLE"&&(nn.removeChild(nn.childNodes[Le]),Le--)}if(ggbHTML5LoadedScript!==null){var ee=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ee!=null&&ee.parentNode.removeChild(ee)}var xe=document.createElement("script"),we=function(){he(nn,on)};xe.src=Re+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Nt,ggbHTML5LoadedScript=xe.src,Kn("GeoGebra HTML5 codebase loaded: '"+Re+"'.",on),!Ft&&(!ne||ne=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),we()):Re.requirejs?__webpack_require__.e(7374).then(function(){var se=[__webpack_require__(97374)];we.apply(null,se)}.bind(this)).catch(__webpack_require__.oe):(xe.onload=we,Be.appendChild(xe))}else he(nn,on);on.height=pe,on.width=Gn},ce=function(Be,on,un){var Jn=tn(on.width,on.height,on.borderColor,un),nn=document.createElement("div");nn.style.position="relative",nn.style.display="block",nn.style.width=on.width+"px",nn.style.height=on.height+"px",nn.className="applet_screenshot applet_scaler"+(un?" applet_screenshot_play":""),nn.appendChild(Jn);var Gn=GGBAppletUtils.getScale(on,Be,un);un?(Be.appendChild(Ke()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nn,"66%"),Be.appendChild(nn),Gn!==1&&!isNaN(Gn)&&(GGBAppletUtils.scaleElement(nn,Gn),nn.style.width=on.width+"px",nn.style.height=on.height+"px",nn.parentNode.style.width=on.width*Gn+"px",nn.parentNode.style.height=on.height*Gn+"px"),On.resize=function(){$e(Be,Jn,nn,un)},window.addEventListener("resize",function(pe){On.resize()}),On.resize()};function $e(Be,on,un,Jn){if(Be.contains(on)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var nn=GGBAppletUtils.getScale(yt,Be,Jn);un.parentNode!==null&&(!isNaN(nn)&&nn!==1?(GGBAppletUtils.scaleElement(un,nn),un.parentNode.style.width=yt.width*nn+"px",un.parentNode.style.height=yt.height*nn+"px"):(GGBAppletUtils.scaleElement(un,1),un.parentNode.style.width=yt.width+"px",un.parentNode.style.height=yt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}On.onExitFullscreen=function(Be,on){on.appendChild(Be)};var Ue=function(Be,on,un,Jn){ce(Be,on,!0);for(var nn=function(){var Xn=[];for(pe=0;pe<Be.childNodes.length;pe++)Xn.push(Be.childNodes[pe]);if(window.GGBT_wsf_view){var oi=window.GGBT_wsf_view.renderFullScreen(Be,on.id),te=document.getElementById("fullscreencontainer"),bt=jQuery(Be).find(".fullscreencontent");bt.length>0?(oi.remove(),bt.attr("id","fullscreencontent").show(),jQuery(te).append(bt),window.dispatchEvent(new Event("resize"))):Ge(oi,on,!1),window.GGBT_wsf_view.launchFullScreen(te)}else be=Jn,Ge(Be,on,!1);if(!window.GGBT_wsf_view)for(pe=0;pe<Xn.length;pe++)Be.removeChild(Xn[pe])},Gn=Be.getElementsByClassName("ggb_preview_play"),pe=0;pe<Gn.length;pe++)Gn[pe].addEventListener("click",nn,!1),Gn[pe].addEventListener("ontouchstart",nn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),Ot()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var on='.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");}',un=document.createElement("style");un.styleSheet?un.styleSheet.cssText=on:un.appendChild(document.createTextNode(on)),document.getElementsByTagName("head")[0].appendChild(un)}return Be},tn=function(Be,on,un,Jn){var nn=document.createElement("div");nn.className="ggb_preview",nn.style.position="absolute",nn.style.zIndex="90",nn.style.width=Be-2+"px",nn.style.height=on-2+"px",nn.style.top="0px",nn.style.left="0px",nn.style.overflow="hidden",nn.style.backgroundColor="white";var Gn="lightgrey";un!==void 0&&(un==="none"?Gn="transparent":Gn=un),nn.style.border="1px solid "+Gn;var pe=document.createElement("img");if(pe.style.position="relative",pe.style.zIndex="1000",pe.style.top="-1px",pe.style.left="-1px",ht!==null&&pe.setAttribute("src",ht),pe.style.opacity=.7,st!==null){var Xn,oi,te;if(!Jn){Xn=document.createElement("img"),Xn.style.position="absolute",Xn.style.zIndex="1001",Xn.style.opacity=1,pe.style.opacity=.3,oi=360,oi>Be/4*3&&(oi=Be/4*3),te=oi/5.8,Xn.setAttribute("src",st),Xn.setAttribute("width",oi),Xn.setAttribute("height",te);var bt=(Be-oi)/2,xt=(on-te)/2;Xn.style.left=bt+"px",Xn.style.top=xt+"px",nn.appendChild(Xn)}}return nn.appendChild(pe),nn},Tn=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],Zt=function(Be,on){if(Nt=Be,on){en(Nt,!0);return}var un=!zt;if(un){var Jn=kt(Nt);!isNaN(Jn)&&Jn<4.4&&(un=!1)}var nn,Gn;window.location.protocol.substr(0,4)==="http"?nn=window.location.protocol:nn="http:";var pe=Nt.indexOf("//");pe>0?Gn=Nt:pe===0?Gn=nn+Nt:Gn="https://www.geogebra.org/apps/5.2.814.0/";for(var Xn in ve)if(Nt.slice(ve[Xn].length*-1)===ve[Xn]||Nt.slice((ve[Xn].length+1)*-1)===ve[Xn]+"/"){en(Gn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&un&&!At.is3D&&!At.AV&&!At.SV&&!At.CV&&!At.EV2&&!At.CP&&!At.PC&&!At.DA&&!At.FI&&!At.PV&&!Yt(yt.showToolBar)&&!Yt(yt.showMenuBar)&&!Yt(yt.showAlgebraInput)&&!Yt(yt.enableRightClick)&&(!yt.appName||yt.appName=="classic")?Gn+="webSimple/":Gn+="web3d/",en(Gn,!1)},en=function(Be,on){if(Be.requirejs){Re=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),Re=Be,on===null&&(on=Be.indexOf("http")===-1),de=on,et="web.nocache.js",nt=!1;var un=Re.split("/");un.length>1&&(!on&&un[un.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):ve.indexOf(un[un.length-2])>=0&&(et=un[un.length-2]+".nocache.js")),un=Be.split("/"),Nt=un[un.length-3],Nt.substr(0,4)==="test"?Nt=Nt.substr(4,1)+"."+Nt.substr(5,1):(Nt.substr(0,3)==="war"||Nt.substr(0,4)==="beta")&&(Nt="5.0");var Jn=parseFloat(Nt);Jn!==NaN&&Jn<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Jn+" is deprecated. Using version latest instead."),Zt("5.0",on))},Kn=function(Be,on){window.console&&window.console.log&&(!on||typeof on.showLogging=="undefined"||on.showLogging&&on.showLogging!=="false")&&console.log(Be)};yt.material_id!==void 0?jt(ii):ii();function ii(){var Be=Cn;ne!==null?Be=ne:parseFloat(Be)<5&&(Be="5.0"),Zt(Be,!1),Ft!==null&&en(Ft,de),Ut=!0}return On},GGBAppletUtils=function(){"use strict";function On(){return window.GGBT_wsf_edit!==void 0}function Cn(Ut,ne){ne!=1?(Ut.style.transformOrigin="0% 0% 0px",Ut.style.webkitTransformOrigin="0% 0% 0px",Ut.style.transform="scale("+ne+","+ne+")",Ut.style.webkitTransform="scale("+ne+","+ne+")",Ut.style.maxWidth="initial",Ut.querySelector(".ggb_preview")!==null&&(Ut.querySelector(".ggb_preview").style.maxWidth="initial"),Ut.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ut.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ut.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ut.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ut.style.transform="none",Ut.style.webkitTransform="none")}function yt(Ut,ne,Ft,De,Pe,oe){var Re=null;if(oe!=null&&oe!="")for(var de=Ut.parentNode;de!=null;)if((" "+de.className+" ").indexOf(" "+oe+" ")>-1){Re=de;break}else de=de.parentNode;var be=0,Nt=0,et=0,nt=0,ht=0,st=0,gt=0;if(Re)be=Re.offsetWidth,Nt=Math.max(De?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(be=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=be):(be=window.innerWidth,Nt=window.innerHeight,et=window.innerWidth),Ut){var mt=Ut.getBoundingClientRect();mt.left>0&&mt.left<=be&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(ht=be-mt.width-mt.left,st=et<=480?10:30):(st=mt.left,ht=et<=480?10:30),nt=st+ht)}if(Ut&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=Ut.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,gt=40)}}return Ut&&((Ft===void 0||!Ft)&&ne>0&&ne+nt<be?be=ne:be-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ft===void 0||!Ft)&&(Nt-=gt)),{width:be,height:Nt}}function At(Ut,ne,Ft,De,Pe){if(Ut.isScreenshoGenerator)return 1;var oe=De!==void 0&&De,Re=Ut.noScaleMargin!=null&&Ut.noScaleMargin,de=function(Pt){return Pt&&Pt!=="false"},be=de(Ut.autoHeight),Nt=yt(ne,Ut.width,Ft,be,oe&&window.GGBT_wsf_view||Re,Pe),et=parseInt(Nt.width),nt=Ut.width,ht=Ut.height;if(nt===void 0){var st=ne.querySelector(".appletParameters");st&&(nt=st.offsetWidth,ht=st.offsetHeight)}var gt=et/nt,mt=oe?1:Nt.height/ht;return Ft!==void 0&&!Ft&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function zt(Ut,ne,Ft){var De=1,Pe,oe=!1;if(Ut.hasOwnProperty("allowUpscale")&&(oe=Ut.allowUpscale),Ut.hasOwnProperty("scale")&&(De=parseFloat(Ut.scale),(isNaN(De)||De===null||De===0)&&(De=1),De>1&&(oe=!0)),ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(Ut.hasOwnProperty("disableAutoScale")&&Ut.disableAutoScale))Pe=At(Ut,ne,oe,Ft,Ut.scaleContainerClass);else return De;return oe&&(!Ut.hasOwnProperty("scale")||De===1)?Pe:Math.min(De,Pe)}function re(Ut){var ne=Math.min(window.innerWidth,document.documentElement.clientWidth),Ft=Math.min(window.innerHeight,document.documentElement.clientHeight),De=Ut.getBoundingClientRect(),Pe=(ne-De.width)/2,oe=(Ft-De.height)/2;oe<0&&(oe=0),Ut.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?Ut.style.left="40px":Ut.style.left=Pe+"px",Ut.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?Ut.style.top="40px":Ut.style.top=oe+"px",Ut.style.left=Pe+"px")}function Ae(Ut,ne){var Ft=Ut.querySelector(".appletParameters");if(Ft){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ne.id!==Ft.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ut)}if(Ft.parentElement&&/fullscreen/.test(Ft.parentElement.className))return;var De=zt(ne,Ut);On()&&Ft.setAttribute("data-param-scale",De);for(var Pe=null,oe=0;oe<Ut.childNodes.length;oe++)if(Ut.childNodes[oe].className!==void 0&&Ut.childNodes[oe].className.match(/^applet_scaler/)){Pe=Ut.childNodes[oe];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var Re=ne.id!==void 0?ne.id:"ggbApplet",de=window[Re];(de==null||!de.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(De)&&De!==1?(Pe.parentNode.style.width=ne.width*De+"px",Pe.parentNode.style.height=ne.height*De+"px",Cn(Pe,De)):(Cn(Pe,1),Pe.parentNode.style.width=ne.width+"px",Pe.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&re(Ut),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ft).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:On,positionCenter:re,getScale:zt,scaleElement:Cn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var On=n.location.search;return On.indexOf(J)!=-1||On.indexOf(K)!=-1}function q(On,Cn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(On){var Cn=s[L].bindings;s[L].bindings=function(){for(var yt=Cn?Cn():{},At=On[webModule.__softPermutationId],zt=O;zt<At.length;zt++){var re=At[zt];yt[re[O]]=re[P]}return yt}};var t;function u(){return v(),t}function v(){if(!t){var On=o.createElement(Q);if(On.id=L,On.style.cssText=R+S,On.tabIndex=-1,o.body.appendChild(On),t=On.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(On){function Cn(At){function zt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var re=zt();if(re){At();return}function Ae(){if(!re){if(!zt())return;re=!0,At(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),Ut&&clearInterval(Ut)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var Ut=setInterval(function(){Ae()},$)}function yt(At){var zt=u(),re=zt.body,Ae=zt.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=At,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+At))}),re.appendChild(Ae)}Cn(function(){yt(On)})}webModule.__startLoadingFragment=function(On){return C(On)},webModule.__installRunAsyncCode=function(On){var Cn=u(),yt=Cn.body,At=Cn.createElement(_);At.language=ab,At.text=On,yt.appendChild(At),yt.removeChild(At)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(On){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(On){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(On){var Cn=c[On];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function On(Ut){var ne=Ut.lastIndexOf(rb);ne==-1&&(ne=Ut.length);var Ft=Ut.indexOf(sb);Ft==-1&&(Ft=Ut.length);var De=Ut.lastIndexOf(tb,Math.min(Ft,ne));return De>=O?Ut.substring(O,De+P):W}function Cn(Ut){if(!Ut.match(/^\w+:\/\//)){var ne=o.createElement(ub);ne.src=Ut+vb,Ut=On(ne.src)}return Ut}function yt(){var Ut=__gwt_getMetaProperty(wb);return Ut!=null?Ut:W}function At(){for(var Ut=o.getElementsByTagName(_),ne=O;ne<Ut.length;++ne)if(Ut[ne].src.indexOf(xb)!=-1)return On(Ut[ne].src);return W}function zt(){var Ut=o.getElementsByTagName(yb);return Ut.length>O?Ut[Ut.length-P].href:W}function re(){var Ut=o.location;return Ut.href==Ut.protocol+zb+Ut.host+Ut.pathname+Ut.search+Ut.hash}var Ae=yt();return Ae==W&&(Ae=At()),Ae==W&&(Ae=zt()),Ae==W&&re()&&(Ae=On(o.location.href)),Ae=Cn(Ae),Ae}function C(On){return On.match(/^\//)||On.match(/^[a-zA-Z]+:\/\//)?On:webModule.__moduleBase+On}function D(){var On=[],Cn=O,yt=[],At=[];function zt(Ut){var ne=At[Ut](),Ft=yt[Ut];if(ne in Ft)return ne;var De=[];for(var Pe in Ft)De[Ft[Pe]]=Pe;throw r&&r(Ut,De,ne),null}if(__gwt_isKnownPropertyValue=function(Ut,ne){return ne in yt[Ut]},webModule.__getPropMap=function(){var Ut={};for(var ne in yt)yt.hasOwnProperty(ne)&&(Ut[ne]=zt(ne));return Ut},webModule.__computePropValue=zt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var re;try{re=Cb;var Ae=re.indexOf(Db);Ae!=-1&&(Cn=parseInt(re.substring(Ae+P),$),re=re.substring(O,Ae))}catch(Ut){}return webModule.__softPermutationId=Cn,C(re+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(On,Cn,yt){"use strict";yt.d(Cn,{Ax:function(){return Ae},Ds:function(){return Ut},KI:function(){return Ft},SI:function(){return re},f1:function(){return zt}});var At=yt(10148);function zt(De){let Pe=!0;if(De.length>0){for(let oe=0;oe<De.length;oe++)if(De[oe].compile_success==0||!De[oe].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function re(De,Pe=""){let oe=[];for(let Re=0;Re<De.length;Re++){let de=De[Re],be=Pe?`${Pe}/${de.name}`:`${de.name}`;oe.push({title:de.name,type:de.type,isLeaf:de.type!=="tree",key:be})}return oe}function Ae(De,Pe,oe){for(let Re=0;Re<De.length;Re++){let de=De[Re];if(de.key===Pe){de.children=oe;break}de.children&&Ae(de.children,Pe,oe)}return De}function Ut(De,Pe,oe){let Re;return function(){let de=this,be=arguments,Nt=function(){Re=null,oe||De.apply(de,be)},et=oe&&!Re;clearTimeout(Re),Re=setTimeout(Nt,Pe),et&&De.apply(de,be)}}const ne=!0,Ft=At.Z.API_SERVER},12963:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Re}});var At=yt(59301),zt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=yt(92310),Ae=yt.n(re),Ut=yt(71418),ne=yt(2859),Ft=yt(70635),De=yt(58130),Pe=(de,be,Nt)=>new Promise((et,nt)=>{var ht=mt=>{try{gt(Nt.next(mt))}catch(Pt){nt(Pt)}},st=mt=>{try{gt(Nt.throw(mt))}catch(Pt){nt(Pt)}},gt=mt=>mt.done?et(mt.value):Promise.resolve(mt.value).then(ht,st);gt((Nt=Nt.apply(de,be)).next())}),Re=({data:de,className:be,fullWidth:Nt,style:et={},onClose:nt,onOk:ht,showFullTools:st,noAssociationId:gt})=>{const mt=(0,At.useRef)(null),Pt=(0,At.useRef)(null),kt=(0,At.useRef)(null),wt=(0,At.useRef)(null),[Ot,jt]=(0,At.useState)(!1),[Ht,$t]=(0,At.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,At.useEffect)(()=>{kt.current||(kt.current=document.createElement("style"),document.head.appendChild(kt.current)),de!=null&&de.visible?(document.body.setAttribute("data-custom","y-hidden"),kt.current.innerHTML=" html { overflow-y: hidden; }",de!=null&&de.src&&ye()):(document.body.removeAttribute("data-custom"),kt.current&&(document.head.removeChild(kt.current),kt.current=null))},[de==null?void 0:de.visible]);const ye=()=>Pe(void 0,null,function*(){jt(!0),$t("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $e=yield(0,De.ZJ)(de==null?void 0:de.src);mt.current.src="",mt.current.src=$e,mt.current.onload=function(){ce()},jt(!1),$t("")}),Yt=$e=>Pe(void 0,null,function*(){jt(!0),$t("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,Ft.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:de.title,file:$e.dataUrl}});Ue!=null&&Ue.id&&!gt?(yield(0,Ft.ZP)(`/api/attachments/${de.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify($e.state)}})).status===0&&ht():Ue!=null&&Ue.id&&ht(Ue),jt(!1),$t("")}),Ge=()=>{const $e=document.querySelector('a[href="https://markerjs.com/"]');$e&&$e.parentNode&&($e.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(Ke=>{const tn=document.querySelector(Ke.name);tn&&tn.setAttribute("title",Ke.title)})},ce=()=>{Pt.current=new ne.hP(mt.current),Pt.current.targetRoot=wt.current,Pt.current.addEventListener("render",Yt),Pt.current.addEventListener("beforeclose",nt),st&&(Pt.current.availableMarkerTypes=Pt.current.ALL_MARKER_TYPES,Pt.current.uiStyleSettings.redoButtonVisible=!0,Pt.current.uiStyleSettings.notesButtonVisible=!0,Pt.current.uiStyleSettings.zoomButtonVisible=!0,Pt.current.uiStyleSettings.zoomOutButtonVisible=!0,Pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pt.current.uiStyleSettings,Pt.current.show(),de!=null&&de.snapshotData&&Pt.current.restoreState(de.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return At.createElement(At.Fragment,null,(de==null?void 0:de.visible)&&At.createElement(Ut.Z,{spinning:Ot,tip:Ht,style:{position:"absolute"}},At.createElement("div",{ref:wt,className:Ae()(zt.imageDimensions,be,Nt?zt.fullWidth:""),style:et},At.createElement("img",{className:zt.img,ref:mt}))))}},75890:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(95237),re=yt(43604),Ae=yt(99313),Ut=yt(3113),ne=yt(25711),Ft=yt(93938),De=yt(48136),Pe=yt(59301);const oe=(0,At.forwardRef)(({callback:Re,showSaveButton:de,value:be=""},Nt)=>{const et=(0,At.useRef)(),nt=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ht=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],st=Pt=>{et.current.setValue(et.current.getValue()+" "+Pt.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(zt.Z,{className:Ft.Z.lists,gutter:[10,10]},nt.map((Pt,kt)=>Pe.createElement(re.Z,{flex:"110px",className:Ft.Z.item},Pe.createElement("div",null,Pe.createElement(ne.Z,{value:`$$${Pt.value}$$`}),Pt.name),Pe.createElement("div",{className:Ft.Z.children},Pt.children.map((wt,Ot)=>Pe.createElement("div",{key:Ot},Pe.createElement("h1",null,wt.name),Pe.createElement(zt.Z,{gutter:[10,10]},wt.data.map((jt,Ht)=>Pe.createElement(re.Z,{key:Ht,onClick:()=>st(jt),className:Ft.Z.diamond},Pe.createElement(ne.Z,{value:"`$$"+jt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(zt.Z,{className:Ft.Z.lists,gutter:[10,10]},ht.map((Pt,kt)=>Pe.createElement(re.Z,{flex:"110px",className:Ft.Z.item},Pe.createElement("div",null,Pe.createElement(ne.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Pe.createElement("div",{className:Ft.Z.children},Pt.children.map((wt,Ot)=>Pe.createElement("div",{key:Ot},wt.name&&Pe.createElement("h1",null,wt.name),Pe.createElement(zt.Z,{gutter:[10,10]},wt.data.map((jt,Ht)=>Pe.createElement(re.Z,{key:Ht,onClick:()=>st(jt),className:Ft.Z.diamond},Pe.createElement(ne.Z,{value:"`$$"+jt.value+"$$`"}))))))))))}],mt=()=>{var Pt=document.createElement("div");Pt.innerHTML=et.current.getValue();var kt=Pt.innerText;return Re&&Re(kt),kt};return(0,At.useImperativeHandle)(Nt,()=>({getData:mt})),Pe.createElement("div",{className:Ft.Z.mathWrap},Pe.createElement(Ae.default,{defaultActiveKey:"1",items:gt}),Pe.createElement("math-field",{locale:"zh_cn",className:Ft.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},be||""),de&&Pe.createElement("div",{className:Ft.Z.button},Pe.createElement(Ut.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=oe},97267:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(93314),re=yt(3113),Ae=Object.defineProperty,Ut=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,oe=(Nt,et,nt)=>et in Nt?Ae(Nt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Nt[et]=nt,Re=(Nt,et)=>{for(var nt in et||(et={}))De.call(et,nt)&&oe(Nt,nt,et[nt]);if(Ft)for(var nt of Ft(et))Pe.call(et,nt)&&oe(Nt,nt,et[nt]);return Nt},de=(Nt,et)=>Ut(Nt,ne(et));const be=({img:Nt,buttonProps:et={},styles:nt={},customText:ht,ButtonText:st,ButtonClick:gt,Buttonclass:mt,ButtonTwo:Pt,imgStyles:kt,loading:wt=!1})=>At.createElement("section",{className:"tc animated fadeIn",style:Re(Re({},{color:"#999",margin:"100px auto",visibility:wt?"hidden":"visible"}),nt)},At.createElement("img",{src:Nt||zt,style:de(Re({},kt),{pointerEvents:"none",userSelect:"none"})}),At.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),st&&At.createElement(re.ZP,Re({className:mt,onClick:gt},et),st),Pt&&Pt);Cn.Z=be},46898:function(On,Cn,yt){"use strict";yt.d(Cn,{Q:function(){return ne}});var At=yt(59301),zt=yt(57809),re=yt(5112),Ae=yt(88897),Ut=yt(59301),ne=(De=>(De[De.Number=1]="Number",De[De.Percent=2]="Percent",De))(ne||{});const Ft=({value:De,onChange:Pe,disabled:oe,hidePercentOption:Re=!1,percentType:de="select"})=>{const be=(0,At.useMemo)(()=>Re?1:2,[Re]),[Nt,et]=(0,At.useState)(be);console.log(Nt);const nt=st=>De.type===1?`${st}\u5206`:`${st}%`,ht=(0,At.useCallback)(st=>{if(Nt===1){const gt=st.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return st.replace("%","")},[Nt]);return(0,At.useEffect)(()=>{et(De.type)},[De]),Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},de=="select"&&Ut.createElement(zt.default,{size:"large",onChange:st=>{et(st),Pe({type:st,inputValue:st===1?5:20})},value:Nt||be,style:{width:100},options:Re?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:oe}),de=="radio"&&Ut.createElement(re.ZP.Group,{size:"large",onChange:st=>{const gt=st.target.value;et(gt),Pe({type:gt,inputValue:gt===1?5:20})},value:Nt||be,disabled:oe},!Re&&Ut.createElement(re.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Ut.createElement(re.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),de=="radio"&&Ut.createElement("div",{style:{marginRight:"10px",color:"#000000"}},De.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Ut.createElement(Ae.Z,{size:"large",disabled:oe,value:De.inputValue,style:{width:"120px"},parser:ht,addonAfter:De.type===1?"\u5206":"%",max:Nt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:st=>{Pe({type:Nt,inputValue:st})}}),de=="radio"&&De.type==2&&Ut.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Cn.Z=Ft},79646:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return mt}});var At=yt(59301),zt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},re=yt(3113),Ae=yt(12497),Ut=yt(48551),ne=yt(6848),Ft=yt(58130),De=yt(79124),Pe=yt(97267),oe=yt(10148),Re=yt(63486),de=yt(59301),be=Object.defineProperty,Nt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Pt,kt,wt)=>kt in Pt?be(Pt,kt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Pt[kt]=wt,st=(Pt,kt)=>{for(var wt in kt||(kt={}))et.call(kt,wt)&&ht(Pt,wt,kt[wt]);if(Nt)for(var wt of Nt(kt))nt.call(kt,wt)&&ht(Pt,wt,kt[wt]);return Pt},gt=(Pt,kt,wt)=>new Promise((Ot,jt)=>{var Ht=Yt=>{try{ye(wt.next(Yt))}catch(Ge){jt(Ge)}},$t=Yt=>{try{ye(wt.throw(Yt))}catch(Ge){jt(Ge)}},ye=Yt=>Yt.done?Ot(Yt.value):Promise.resolve(Yt.value).then(Ht,$t);ye((wt=wt.apply(Pt,kt)).next())}),mt=({editOffice:Pt="view",data:kt,theme:wt,type:Ot,filename:jt,monacoEditor:Ht,className:$t,style:ye,close:Yt,onClose:Ge,hasMask:ce,disabledDownload:$e,onImgDimensions:Ue,showNodata:Ke,recordInfo:tn})=>{const[Tn,ve]=(0,At.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,en]=(0,At.useState)(""),[Kn,ii]=(0,At.useState)(),Be=window.ENV==="build"?"/react/build":"",on=location.host.startsWith("localhost")?oe.Z.PROXY_SERVER:oe.Z.API_SERVER,Jn=10*(1024*1024),nn=(0,At.useRef)();kt!=null&&kt.startsWith("/api")&&Ot!=="txt"&&(kt=oe.Z.API_SERVER+kt);const Gn=te=>te.substring(te.lastIndexOf("/")+1).split(".").pop();jt&&Ht&&(Ht.filename=jt),(0,At.useEffect)(()=>{var te,bt;const xt=(bt=(te=document.cookie)==null?void 0:te.replace(/\s/g,""))==null?void 0:bt.split(";");xt==null||xt.map(Tt=>{let Bt=Tt.split("=");Bt[0]==="_educoder_session"&&en(Bt[1])})},[]),(0,At.useEffect)(()=>{Ot==="office"&&(kt.indexOf("bigfilescdn.")>-1||kt.indexOf("bigfiles1")>-1?ii({url:kt,fileType:Gn(kt),model:kt.indexOf("model=edit")?"edit":"view"}):pe())},[Ot,kt]);const pe=()=>gt(void 0,null,function*(){console.log("data:",kt);let te=kt;kt.startsWith("http")||(te=location.origin+te);let bt=new URL(te).pathname.split("/").pop();const xt=yield(0,De.gJ)({attachment_id:bt});xt.url=on+xt.url,ii(xt)}),Xn=()=>{if(kt.startsWith("http")||kt.startsWith("blob:")){oi();return}(0,Ft.Sv)(jt||"educoder",kt,jt)},oi=()=>{tn&&(0,Re.fc)({id:tn==null?void 0:tn.id,watch_type:1,course_id:tn==null?void 0:tn.course_id}),(0,Ft.Nd)(jt||"educoder",decodeURIComponent(kt))};return de.createElement("div",{style:st({},ye||{}),className:`${ce&&zt.bgBlack} ${Ot?zt.wrp:"hide"}`},Yt&&de.createElement("div",{className:zt.close,ref:nn},!!Ue&&de.createElement(ne.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>nn.current},de.createElement("span",{onClick:()=>{Ge(),Ue()}},de.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&de.createElement(ne.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>nn.current},de.createElement("span",{onClick:oi},de.createElement("i",{className:"icon-quxiaozhiding"}))),de.createElement(ne.Z,{title:"\u5173\u95ED",getPopupContainer:()=>nn.current},de.createElement("span",{className:"",onClick:Ge},de.createElement("i",{className:"icon-guanbi1"})))),de.createElement("div",{className:`${zt[$t]} ${$t} ${zt.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&de.createElement(de.Fragment,null,de.createElement(Ut.ZP,st({},Ht)))),Ot==="audio"&&de.createElement("audio",{src:`${(kt==null?void 0:kt.indexOf("http://"))>-1||(kt==null?void 0:kt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${kt}`,autoPlay:!0}),Ot==="video"&&de.createElement(de.Fragment,null,(kt==null?void 0:kt.indexOf("http"))>-1?de.createElement("video",{controls:!0,src:`${kt}`,autoPlay:!0}):de.createElement("video",{controls:!0,src:`data:video/mp4;base64,${kt}`,autoPlay:!0})),Ot==="office"&&Kn&&de.createElement("iframe",{src:`${Be}/office.html?key=${Kn.key}&url=${btoa(Kn.url)}&callbackUrl=${on+(Kn.callbackUrl||"")}&fileType=${Kn.fileType}&title=${Kn.title||""}&model=${Pt}&officeServer=${oe.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),Ot==="html"&&de.createElement("iframe",{src:kt+"&disposition=inline"}),Ot==="pdf"&&de.createElement("iframe",{src:`${Be}/js/pdfview/index.html?filename=${jt||"educoder.pdf"}&url=${encodeURIComponent(kt)}&disabledDownload=${!!$e}`}),Ot==="image"&&de.createElement("img",{src:`${(kt==null?void 0:kt.indexOf("http://"))>-1||(kt==null?void 0:kt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${kt}`}),(Ot==="other"||Ot==="download")&&de.createElement(de.Fragment,null,Ke?de.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:de.createElement(re.ZP,{icon:de.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Xn,disabled:$e},"\u4E0B\u8F7D")}):de.createElement(re.ZP,{type:"primary",size:"middle",onClick:Xn,disabled:$e},de.createElement(Ae.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(On,Cn,yt){"use strict";yt.d(Cn,{z:function(){return Ot},Z:function(){return jt}});var At=yt(59301),zt=yt(1751),re=yt(31087),Ae=yt(64018),Ut=yt(40846),ne=yt(10148),Ft=yt(58130),De=yt(15342),Pe=yt(1012),oe=yt(79646),Re=yt(59301),be=({html:Ht})=>{const $t=(0,At.useRef)(null),ye=(0,At.useRef)(null),Yt=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,At.useEffect)(()=>{const Ge=$t.current.attachShadow({mode:"open"});ye.current=document.createElement("div"),ye.current.className="markdown-body",ye.current.innerHTML=Ht,Ge.appendChild(ye.current);const ce=document.createElement("style");return ce.textContent=Yt,Ge.appendChild(ce),()=>{Ge.innerHTML=""}},[]),(0,At.useEffect)(()=>{ye.current&&(ye.current.innerHTML=Ht)},[Ht]),Re.createElement("div",{ref:$t})},Nt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,st=(Ht,$t,ye)=>$t in Ht?Nt(Ht,$t,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Ht[$t]=ye,gt=(Ht,$t)=>{for(var ye in $t||($t={}))nt.call($t,ye)&&st(Ht,ye,$t[ye]);if(et)for(var ye of et($t))ht.call($t,ye)&&st(Ht,ye,$t[ye]);return Ht};const mt="@\u2581\u2581@",Pt="@\u2581@",kt=/<pre[^>]*>/g;function wt(Ht){let $t=document.createElement("div");return $t.innerHTML=Ht,$t.childNodes.length===0?"":$t.childNodes[0].nodeValue}const Ot=(Ht,$t)=>{Ht=Ht||"";const ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ce=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $t?Ht.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ye,($e,Ue,Ke,tn,Tn,ve,Zt)=>{const en=Ue||tn||ve,Kn=Ke||Tn||Zt||"?";return ne.Z.API_SERVER+"/api/attachments/"+en+Kn+"&t="+(0,Ft.Jn)(en,Date.now())+($e.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ht=Ht.replace(ce,($e,Ue,Ke,tn,Tn,ve,Zt)=>{const en=Ue||tn||ve,Kn=Ke||Tn||Zt||"?";return ne.Z.API_SERVER+"/attachments/download/"+en+Kn+"&t="+(0,Ft.Jn)(en,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(ye,($e,Ue,Ke,tn,Tn,ve,Zt)=>{const en=Ue||tn||ve,Kn=Ke||Tn||Zt||"?";return ne.Z.API_SERVER+"/api/attachments/"+en+Kn+"&t="+(0,Ft.Jn)(en,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(Yt,($e,Ue,Ke,tn,Tn)=>{const ve=Ue||tn,Zt=Ke||Tn||"";return'"'+ne.Z.API_SERVER+"/api/attachments/"+ve+Zt+ve+Zt+"&t="+(0,Ft.Jn)(ve,Date.now())}).replace(Ge,($e,Ue,Ke,tn,Tn)=>{const ve=Ue||tn,Zt=Ke||Tn||"";return"("+ne.Z.API_SERVER+"/files/uploads/"+ve+Zt+ve+Zt+"&t="+(0,Ft.Jn)(ve,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,`
|
|
|
`),Ht)};var jt=({value:Ht="",className:$t,showTextOnly:ye,showLines:Yt,style:Ge={},stylesPrev:ce={},highlightKeywords:$e,showProgramFill:Ue,isProgramFill:Ke,disabledFill:tn=!1,programFillValue:Tn,onFillChange:ve=Kn=>{},onFillBlur:Zt=()=>{},onFillFocus:en=()=>{}})=>{let Kn=String(Ht);const[ii,Be]=(0,At.useState)(""),[on,un]=(0,At.useState)("office"),[Jn,nn]=(0,At.useState)([]),Gn=(0,At.useRef)("a"+(0,Pe.Z)()),pe={},Xn=(xe,we,se)=>{const ke=document.createElement(xe===Pt?"input":"textarea");ke.style.width="100%",ke.style.height=xe===Pt?"40px":"151px",ke.rows=5,ke.spellcheck=!1,ke.name="edu-program-fill",ke.placeholder="\u8BF7\u8F93\u5165",ke.dataset.id=we;const vn=Object.keys(pe).length;return pe[vn]=ke,`<span class="edu-program-fill-wrap ${xe===Pt?"":"show"}" style="width:${xe===Pt?"400px":"100%"}" title=${se||""}><span>${ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function oi(xe){return xe=xe.replace(/!\[.*?\]\(.*?\)/g,""),xe=xe.replace(/\[.*?\]\(.*?\)/g,""),xe=xe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),xe=xe.replace(/<embed.*?>/g,""),xe=xe.replace(/<img.*?>/g,""),xe=xe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),xe=xe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),xe=xe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),xe=xe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),xe}const te=xe=>xe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(we,se){let ke=se.replace(/(\n|\r)/g,"").split("}"),vn=[];return ke.map(cn=>{cn!=""&&vn.push(`.${Gn.current} ${cn}`)}),`<style>${vn.join("}")}</style>`}),bt=(0,At.useMemo)(()=>{try{const ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,vn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,cn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Je=/\(\/attachments\/download\//g;Kn=Kn.replace(Je,"("+ne.Z.API_SERVER+"/attachments/download/").replace(ke,"("+ne.Z.API_SERVER+"/api/attachments/").replace(vn,'"'+ne.Z.API_SERVER+"/api/attachments/").replace(cn,'"'+ne.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(Ue){let ke=-1;return Kn=Kn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(vn,cn,Je){var hn;return++ke,Xn(vn,ke,(hn=Tn==null?void 0:Tn[ke])==null?void 0:hn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${te(Kn||"")}</pre>`}let xe=te(Kn);xe=(0,re.ZP)(xe);const we=(0,re.ez)();Kn.match(/\[TOC\]/)&&(xe=xe.replace("<p>[TOC]</p>",(0,re.Qv)()),(0,re.Iy)()),xe=xe.replace(/(__special_katext_id_\d+__)/g,(ke,vn)=>{const{type:cn,expression:Je}=we[vn];return(0,De.renderToString)(wt(Je)||"",{displayMode:cn==="block",throwOnError:!1,output:"html"})}),xe=xe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const se=document.createElement("div");if(se.innerHTML=xe,ye)return se.innerText;if($e){const ke=$e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return St(se,ke),se.innerHTML}return setTimeout(()=>Gt(),500),se.innerHTML},[Kn,$e]);(0,At.useEffect)(()=>{he.current&&he.current.querySelectorAll(["input","textarea"]).forEach(we=>{we.oninput=xt,we.onblur=Tt,we.onfocus=Bt})},[Jn]),(0,At.useEffect)(()=>{var xe,we,se,ke,vn;if(Tn!=null&&Tn.length)try{const cn=he.current.querySelectorAll(".edu-program-fill-score"),Je=he.current.querySelectorAll('[name="edu-program-fill"]');for(const[hn,Vn]of Je.entries())Vn.value=((xe=Tn==null?void 0:Tn[hn])==null?void 0:xe.value)||"",((we=Tn==null?void 0:Tn[hn])==null?void 0:we.type)==="warning"?Vn.className="program-fill-warning":((se=Tn==null?void 0:Tn[hn])==null?void 0:se.type)==="success"?Vn.className="program-fill-success":Vn.className="";for(const[hn,Vn]of cn.entries())Vn.innerHTML=(ke=Tn==null?void 0:Tn[hn])!=null&&ke.score?`${(vn=Tn==null?void 0:Tn[hn])==null?void 0:vn.score}\u5206`:"";nn(Tn)}catch(cn){console.log(cn,"error")}},[Tn]);const xt=xe=>{Jn[xe.target.dataset.id]=Jn[xe.target.dataset.id]||{},Jn[xe.target.dataset.id].value=xe.target.value,nn([...Jn]),ve(Jn,xe.target.dataset.id)},Tt=xe=>{Jn[xe.target.dataset.id]=Jn[xe.target.dataset.id]||{},Jn[xe.target.dataset.id].value=xe.target.value,nn([...Jn]),Zt(Jn,xe.target.dataset.id)},Bt=xe=>{Jn[xe.target.dataset.id]=Jn[xe.target.dataset.id]||{},Jn[xe.target.dataset.id].value=xe.target.value,nn([...Jn]),en(Jn,xe.target.dataset.id)};function St(xe,we){return xe.childNodes.forEach(se=>{var ke;if(se.childNodes.length>0)St(se,we);else if(se.nodeName!=="IMG")if(se.innerHTML)se.innerHTML=(ke=se.innerHTML)==null?void 0:ke.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const vn=document.createElement("span");vn.innerHTML=se.textContent.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),se.replaceWith(vn)}})}const he=(0,At.useRef)();re.jb.WebkitLineClamp=Yt,Yt&&(Ge=gt(gt({},Ge),re.jb));function Le(xe){let we=xe.target;if(we.tagName.toUpperCase()==="A"){let se=we.getAttribute("href");if(se.indexOf("office")>-1)xe.preventDefault(),Be(se),un("office");else if(se.indexOf("application/pdf")>-1)xe.preventDefault(),Be(se),un("pdf");else if(se.indexOf("text/html")>-1)xe.preventDefault(),Be(se),un("html");else if(se.startsWith("#")){xe.preventDefault();let ke=document.getElementById(se.replace("#",""));ke&&ke.scrollIntoView(!0)}}}const Gt=()=>{var xe;const we=(xe=he.current)==null?void 0:xe.querySelectorAll("video");we==null||we.forEach(se=>{if(se.oncontextmenu=()=>!1,se.src.indexOf(".m3u8")>-1&&!se.canPlayType("application/vnd.apple.mpegurl")){if(Ut.ZP.isSupported()){var ke=new Ut.ZP;ke.loadSource(se.src),ke.attachMedia(se)}}})};(0,At.useEffect)(()=>{if(he.current&&bt&&bt.match(kt)&&window.PR.prettyPrint(),he.current)return he.current.addEventListener("click",Le),()=>{var xe;(xe=he.current)==null||xe.removeEventListener("click",Le),(0,re.AL)(),(0,re.Iy)()}},[bt,he.current,Le]),(0,At.useEffect)(()=>{var xe;const we=se=>{se.preventDefault(),se.clipboardData.setData("text",window.getSelection().toString())};return(xe=he.current)==null||xe.addEventListener("copy",we),()=>{var se;(se=he.current)==null||se.removeEventListener("copy",we)}},[he.current]);const ee=xe=>/<style[\s\S]*?>/i.test(xe||"");return At.createElement(At.Fragment,null,ye&&At.createElement("div",{ref:he},bt),!ye&&!ee(bt)&&At.createElement("div",{ref:he,style:gt({},Ge),className:`${$t||""} ${tn?"disabled-fill":""} markdown-body ${Gn.current}`,dangerouslySetInnerHTML:{__html:bt}}),!ye&&ee(bt)&&At.createElement(be,{html:bt}),At.createElement(oe.Z,{close:!0,data:ii,type:ii!=null&&ii.length?on:"",style:gt({},ce),onClose:()=>Be("")}))}},83476:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(59301),zt={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},re=yt(43418),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ne=(Pe,oe,Re)=>new Promise((de,be)=>{var Nt=ht=>{try{nt(Re.next(ht))}catch(st){be(st)}},et=ht=>{try{nt(Re.throw(ht))}catch(st){be(st)}},nt=ht=>ht.done?de(ht.value):Promise.resolve(ht.value).then(Nt,et);nt((Re=Re.apply(Pe,oe)).next())}),De=({type:Pe,resdata:oe,onok:Re,oktext:de,okloading:be})=>{const[Nt,et]=(0,At.useState)(!1),{can_copy_list:nt,can_copy_num:ht,challenge_type:st,course_data_list:gt,no_copy_list:mt,no_copy_num:Pt,no_use_list:kt,no_use_num:wt,repeat_shixun_num:Ot,student_count:jt,total_num:Ht,use_num:$t}=oe;let ye=ht>0||Pe==="exercise";(0,At.useEffect)(()=>{(oe==null?void 0:oe.student_count)>0&&et(!0)},[oe]),console.log("---11",be),(0,At.useEffect)(()=>{be||et(!1)},[be]);const Yt=()=>{if(Pe==="exercise"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Pe==="exercise"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixun"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixun"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="subject"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="subject"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",At.createElement("span",{className:zt.orangeColor},jt)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",At.createElement("span",{className:zt.orangeColor},$t)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="exercisepush")return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Pe==="shixunpush"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixunpush"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},jt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",At.createElement("span",{className:zt.orangeColor},$t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ge=()=>{if(Pe==="exercise"||Pe==="subject"||Pe==="exercisepush"||Pe==="shixunpush")return At.createElement("div",{style:{marginTop:20}},Pt>0&&At.createElement("div",null,At.createElement("span",{className:zt.flex},At.createElement("img",{src:Ut,style:{width:14}}),At.createElement("span",{className:zt.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),At.createElement("div",{className:zt.statusbody},Pe==="exercise"&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Pe==="subject"||Pe==="exercisepush")&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye&&At.createElement("span",{className:zt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Pe==="shixunpush"&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye&&At.createElement("span",{className:zt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),At.createElement("div",null,mt==null?void 0:mt.map((ce,$e)=>At.createElement("a",{href:`/shixuns/${ce.identifier}/challenges`,target:"_blank"},"\u300A",ce==null?void 0:ce.name,"\u300B",$e+1!==Pt&&"\u3001"))))),ht>0&&At.createElement("div",{style:{marginTop:20}},At.createElement("span",{className:zt.flex},At.createElement("img",{src:Ae,style:{width:14}}),At.createElement("span",{className:zt.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),At.createElement("div",{className:zt.statusbody},Pe==="exercise"&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Pe==="subject"||Pe==="exercisepush")&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Pe==="shixunpush"&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),At.createElement("div",null,nt==null?void 0:nt.map((ce,$e)=>At.createElement("a",{href:`/shixuns/${ce.identifier}/challenges`,target:"_blank"},"\u300A",ce==null?void 0:ce.name,"\u300B",$e+1!==ht&&"\u3001"))))));if(Pe==="shixun")return At.createElement("div",{style:{marginTop:20}},ht>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return At.createElement(re.default,{open:Nt,onCancel:()=>{et(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ye&&"none"}},zIndex:1003,confirmLoading:be,okText:ye?de:"\u6211\u77E5\u9053\u4E86",onOk:()=>ne(void 0,null,function*(){ye?yield Re([...nt,...kt]):et(!1)})},At.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Yt(),Ge()))}},1568:function(On,Cn,yt){"use strict";yt.d(Cn,{h:function(){return Pt}});var At=yt(59301),zt=yt(57809),re=yt(78241),Ae=yt(3113),Ut=yt(89780),ne=yt.n(Ut),Ft=yt(79906),De=yt(44383),Pe=Object.defineProperty,oe=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,et=(kt,wt,Ot)=>wt in kt?Pe(kt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):kt[wt]=Ot,nt=(kt,wt)=>{for(var Ot in wt||(wt={}))be.call(wt,Ot)&&et(kt,Ot,wt[Ot]);if(de)for(var Ot of de(wt))Nt.call(wt,Ot)&&et(kt,Ot,wt[Ot]);return kt},ht=(kt,wt)=>oe(kt,Re(wt));const st=zt.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},mt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Cn.Z=({callback:kt,onCancel:wt})=>{const[Ot,jt]=(0,At.useState)("python");function Ht(ye){jt(mt[ye][1])}function $t(ye){kt(ye)}return At.createElement(re.default,ht(nt({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$t,style:{width:500}}),At.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},At.createElement(zt.default,{getPopupContainer:ye=>ye.parentNode,onChange:Ht},Object.keys(mt).map(ye=>At.createElement(st,{key:ye,value:ye},mt[ye][0])))),At.createElement(re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},At.createElement(Pt,{mode:Ot})),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Ae.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))};function Pt({value:kt,onChange:wt,mode:Ot,options:jt={}}){const Ht=(0,At.useRef)(),[$t,ye]=(0,At.useState)();return(0,At.useEffect)(()=>{if($t){let Yt=function(Ge){const ce=Ge.getValue();wt&&wt(ce)};return $t.on("change",Yt),()=>{$t.off("change",Yt)}}},[$t,wt]),(0,At.useEffect)(()=>{$t&&$t.setOption("mode",Ot)},[$t,Ot]),(0,At.useEffect)(()=>{$t&&(kt!==$t.getValue()||kt==="")&&setTimeout(()=>{$t.setValue(kt||"")},300)},[$t,kt]),(0,At.useEffect)(()=>{if(Ht.current&&!$t){const Yt=ne().fromTextArea(Ht.current,nt({mode:Ot,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},jt));ye(Yt)}},[Ht.current,$t]),At.createElement("div",{className:"my-codemirror-container"},At.createElement("textarea",{ref:Ht}))}},23469:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Gr}});var At=yt(59301),zt=yt(89780),re=yt.n(zt),Ae=yt(76374),Ut=yt(79906),ne=yt(6313),Ft=yt(25717),De=yt(99498),Pe=yt(25419),oe=yt(67549),Re=yt(25711),de=({value:Ln="",className:fn,showTextOnly:Ze,showLines:fe,style:Sn={}})=>{const In=(0,At.useMemo)(()=>"",[Ln]);return At.createElement(At.Fragment,null,At.createElement("div",{dangerouslySetInnerHTML:{__html:In}}))},be=yt(59301),Nt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(Ln,fn,Ze)=>fn in Ln?Nt(Ln,fn,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ln[fn]=Ze,Pt=(Ln,fn)=>{for(var Ze in fn||(fn={}))st.call(fn,Ze)&&mt(Ln,Ze,fn[Ze]);if(ht)for(var Ze of ht(fn))gt.call(fn,Ze)&&mt(Ln,Ze,fn[Ze]);return Ln},kt=(Ln,fn)=>et(Ln,nt(fn));let wt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ot({onActionCallback:Ln,title:fn,icon:Ze,actionName:fe,className:Sn="",children:In}){function Fe(){Ln(fe)}return be.createElement("a",{title:fn,className:Sn,onClick:Fe},be.createElement("i",{className:`${Ze}`}),In)}var jt=({watch:Ln,showNullButton:fn,showNullProgramButton:Ze,onActionCallback:fe,fullScreen:Sn,insertTemp:In,hidetoolBar:Fe,extraUse:ue})=>{const pn=[...wt,{title:`${Ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return be.createElement("ul",{className:"markdown-toolbar-container"},!Fe&&pn.map((Un,Oi)=>be.createElement("li",{key:Oi},Un.actionName?be.createElement(Ot,kt(Pt({},Un),{onActionCallback:fe})):be.createElement("span",{className:"v-line"}))),fn?be.createElement("li",null,be.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:fe},be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ze?be.createElement(be.Fragment,null,be.createElement("li",null,be.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:fe},be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),be.createElement("li",null,be.createElement(Ot,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:fe},be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,In&&be.createElement("li",null,be.createElement(Ot,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${In}`,onActionCallback:fe},be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ue&&be.createElement("li",null,ue),be.createElement("li",{className:"btn-full-screen"},be.createElement(Ot,{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:fe})))},Ht=yt(50474),$t=yt(78241),ye=yt(92832),Yt=yt(3113),Ge=Object.defineProperty,ce=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Tn=(Ln,fn,Ze)=>fn in Ln?Ge(Ln,fn,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ln[fn]=Ze,ve=(Ln,fn)=>{for(var Ze in fn||(fn={}))Ke.call(fn,Ze)&&Tn(Ln,Ze,fn[Ze]);if(Ue)for(var Ze of Ue(fn))tn.call(fn,Ze)&&Tn(Ln,Ze,fn[Ze]);return Ln},Zt=(Ln,fn)=>ce(Ln,$e(fn));const en={labelCol:{span:4},wrapperCol:{span:20}};var Kn=({callback:Ln,onCancel:fn})=>{function Ze(fe){Ln(fe)}return At.createElement($t.default,Zt(ve({},en),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ze,style:{width:500}}),At.createElement($t.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},At.createElement(ye.default,null)),At.createElement($t.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},At.createElement(ye.default,null)),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Yt.ZP,{type:"ghost",onClick:fn},"\u53D6\u6D88")))},ii=yt(1568),Be=yt(56701),on=yt(43418),un=yt(95237),Jn=yt(12963),nn=yt(59301),Gn=({callback:Ln,onCancel:fn})=>{const Ze=document.createElement("canvas"),fe=Ze.getContext("2d");Ze.width=1e3,Ze.height=800,fe.fillStyle="#ffffff",fe.fillRect(0,0,Ze.width,Ze.height);const Sn=Ze.toDataURL("image/png");return nn.createElement(on.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nn.createElement(un.Z,{style:{height:"100vh"}},nn.createElement(Jn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:In=>{Ln({src:In.url})},onClose:fn})))},pe=yt(12378);function Xn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Xn,go.CommandHandler),Xn.prototype.canAlignSelection=function(){var Ln=this.diagram;return!(Ln===null||Ln.isReadOnly||Ln.isModelReadOnly||Ln.selection.count<2)},Xn.prototype.alignLeft=function(){var Ln=this.diagram;Ln.startTransaction("aligning left");var fn=1/0;Ln.selection.each(function(Ze){Ze instanceof go.Link||(fn=Math.min(Ze.position.x,fn))}),Ln.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(fn,Ze.position.y))}),Ln.commitTransaction("aligning left")},Xn.prototype.alignRight=function(){var Ln=this.diagram;Ln.startTransaction("aligning right");var fn=-1/0;Ln.selection.each(function(Ze){if(!(Ze instanceof go.Link)){var fe=Ze.actualBounds.x+Ze.actualBounds.width;fn=Math.max(fe,fn)}}),Ln.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(fn-Ze.actualBounds.width,Ze.position.y))}),Ln.commitTransaction("aligning right")},Xn.prototype.alignTop=function(){var Ln=this.diagram;Ln.startTransaction("alignTop");var fn=1/0;Ln.selection.each(function(Ze){Ze instanceof go.Link||(fn=Math.min(Ze.position.y,fn))}),Ln.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Ze.position.x,fn))}),Ln.commitTransaction("alignTop")},Xn.prototype.alignBottom=function(){var Ln=this.diagram;Ln.startTransaction("aligning bottom");var fn=-1/0;Ln.selection.each(function(Ze){if(!(Ze instanceof go.Link)){var fe=Ze.actualBounds.y+Ze.actualBounds.height;fn=Math.max(fe,fn)}}),Ln.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Ze.actualBounds.x,fn-Ze.actualBounds.height))}),Ln.commitTransaction("aligning bottom")},Xn.prototype.alignCenterX=function(){var Ln=this.diagram,fn=Ln.selection.first();if(fn){Ln.startTransaction("aligning Center X");var Ze=fn.actualBounds.x+fn.actualBounds.width/2;Ln.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(Ze-fe.actualBounds.width/2,fe.actualBounds.y))}),Ln.commitTransaction("aligning Center X")}},Xn.prototype.alignCenterY=function(){var Ln=this.diagram,fn=Ln.selection.first();if(fn){Ln.startTransaction("aligning Center Y");var Ze=fn.actualBounds.y+fn.actualBounds.height/2;Ln.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,Ze-fe.actualBounds.height/2))}),Ln.commitTransaction("aligning Center Y")}},Xn.prototype.alignColumn=function(Ln){var fn=this.diagram;fn.startTransaction("align Column"),Ln===void 0&&(Ln=0),Ln=parseFloat(Ln);var Ze=new Array;fn.selection.each(function(ue){ue instanceof go.Link||Ze.push(ue)});for(var fe=0;fe<Ze.length-1;fe++){var Sn=Ze[fe],In=Sn.actualBounds.y+Sn.actualBounds.height+Ln,Fe=Ze[fe+1];Fe.move(new go.Point(Sn.actualBounds.x,In))}fn.commitTransaction("align Column")},Xn.prototype.alignRow=function(Ln){Ln===void 0&&(Ln=0),Ln=parseFloat(Ln);var fn=this.diagram;fn.startTransaction("align Row");var Ze=new Array;fn.selection.each(function(ue){ue instanceof go.Link||Ze.push(ue)});for(var fe=0;fe<Ze.length-1;fe++){var Sn=Ze[fe],In=Sn.actualBounds.x+Sn.actualBounds.width+Ln,Fe=Ze[fe+1];Fe.move(new go.Point(In,Sn.actualBounds.y))}fn.commitTransaction("align Row")},Xn.prototype.canRotate=function(Ln){var fn=this.diagram;return!(fn===null||fn.isReadOnly||fn.isModelReadOnly||fn.selection.count<1)},Xn.prototype.rotate=function(Ln){Ln===void 0&&(Ln=90);var fn=this.diagram;fn.startTransaction("rotate "+Ln.toString());var fn=this.diagram;fn.selection.each(function(Ze){Ze instanceof go.Link||Ze instanceof go.Group||(Ze.angle+=Ln)}),fn.commitTransaction("rotate "+Ln.toString())},Xn.prototype.pullToFront=function(){var Ln=this.diagram;Ln.startTransaction("pullToFront");var fn=new go.Map;Ln.selection.each(function(Ze){fn.set(Ze.layer,0)}),fn.iteratorKeys.each(function(Ze){var fe=0;Ze.parts.each(function(Sn){if(!Sn.isSelected){var In=Sn.zOrder;isNaN(In)?Sn.zOrder=0:fe=Math.max(fe,In)}}),fn.set(Ze,fe)}),Ln.selection.each(function(Ze){Xn._assignZOrder(Ze,fn.get(Ze.layer)+1)}),Ln.commitTransaction("pullToFront")},Xn.prototype.pushToBack=function(){var Ln=this.diagram;Ln.startTransaction("pushToBack");var fn=new go.Map;Ln.selection.each(function(Ze){fn.set(Ze.layer,0)}),fn.iteratorKeys.each(function(Ze){var fe=0;Ze.parts.each(function(Sn){if(!Sn.isSelected){var In=Sn.zOrder;isNaN(In)?Sn.zOrder=0:fe=Math.min(fe,In)}}),fn.set(Ze,fe)}),Ln.selection.each(function(Ze){Xn._assignZOrder(Ze,fn.get(Ze.layer)-1-Xn._findGroupDepth(Ze))}),Ln.commitTransaction("pushToBack")},Xn._assignZOrder=function(Ln,fn,Ze){Ze===void 0&&(Ze=Ln),Ln.layer===Ze.layer&&(Ln.zOrder=fn),Ln instanceof go.Group&&Ln.memberParts.each(function(fe){Xn._assignZOrder(fe,fn+1,Ze)})},Xn._findGroupDepth=function(Ln){if(Ln instanceof go.Group){var fn=0;return Ln.memberParts.each(function(Ze){fn=Math.max(fn,Xn._findGroupDepth(Ze))}),fn+1}else return 0},Xn.prototype.doKeyDown=function(){var Ln=this.diagram;if(Ln!==null){var fn=Ln.lastInput;if(fn.key==="Up"||fn.key==="Down"||fn.key==="Left"||fn.key==="Right"){var Ze=this.arrowKeyBehavior;if(Ze==="none")return;if(Ze==="select"){this._arrowKeySelect();return}else if(Ze==="move"){this._arrowKeyMove();return}else if(Ze==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Xn.prototype._getAllParts=function(){var Ln=new Array;return this.diagram.nodes.each(function(fn){Ln.push(fn)}),this.diagram.parts.each(function(fn){Ln.push(fn)}),Ln},Xn.prototype._arrowKeyMove=function(){var Ln=this.diagram,fn=Ln.lastInput,Ze=0,fe=0;if(fn.control||fn.meta)Ze=1,fe=1;else if(Ln.grid!==null){var Sn=Ln.grid.gridCellSize;fe=Sn.width,Ze=Sn.height}Ln.startTransaction("arrowKeyMove"),Ln.selection.each(function(In){fn.key==="Up"?In.move(new go.Point(In.actualBounds.x,In.actualBounds.y-Ze)):fn.key==="Down"?In.move(new go.Point(In.actualBounds.x,In.actualBounds.y+Ze)):fn.key==="Left"?In.move(new go.Point(In.actualBounds.x-fe,In.actualBounds.y)):fn.key==="Right"&&In.move(new go.Point(In.actualBounds.x+fe,In.actualBounds.y))}),Ln.commitTransaction("arrowKeyMove")},Xn.prototype._arrowKeySelect=function(){var Ln=this.diagram,fn=Ln.lastInput,Ze=null;fn.key==="Up"?Ze=this._findNearestPartTowards(270):fn.key==="Down"?Ze=this._findNearestPartTowards(90):fn.key==="Left"?Ze=this._findNearestPartTowards(180):fn.key==="Right"&&(Ze=this._findNearestPartTowards(0)),Ze!==null&&(fn.shift?Ze.isSelected=!0:fn.control||fn.meta?Ze.isSelected=!Ze.isSelected:Ln.select(Ze))},Xn.prototype._findNearestPartTowards=function(Ln){var fn=this.diagram.selection.first();if(fn===null)return null;for(var Ze=fn.actualBounds.center,fe=this._getAllParts(),Sn=1/0,In=fn,Fe=0;Fe<fe.length;Fe++){var ue=fe[Fe];if(ue!==fn&&ue.canSelect()){var pn=ue.actualBounds.center,Un=Ze.directionPoint(pn),Oi=this._angleCloseness(Un,Ln);if(Oi<=45){var Pn=Ze.distanceSquaredPoint(pn);Pn*=1+Math.sin(Oi*Math.PI/180),Pn<Sn&&(Sn=Pn,In=ue)}}}return In},Xn.prototype._angleCloseness=function(Ln,fn){return Math.min(Math.abs(fn-Ln),Math.min(Math.abs(fn+360-Ln),Math.abs(fn-360-Ln)))},Xn.prototype._arrowKeyTree=function(){var Ln=this.diagram,fn=Ln.selection.first();if(fn instanceof go.Node){var Ze=Ln.lastInput;if(Ze.key==="Right"){if(!fn.isTreeLeaf)if(!fn.isTreeExpanded)Ln.commandHandler.canExpandTree(fn)&&Ln.commandHandler.expandTree(fn);else{var fe=this._sortTreeChildrenByY(fn).first();fe!==null&&Ln.select(fe)}}else if(Ze.key==="Left")if(!fn.isTreeLeaf&&fn.isTreeExpanded)Ln.commandHandler.canCollapseTree(fn)&&Ln.commandHandler.collapseTree(fn);else{var Sn=fn.findTreeParentNode();Sn!==null&&Ln.select(Sn)}else if(Ze.key==="Up"){var Sn=fn.findTreeParentNode();if(Sn!==null){var In=this._sortTreeChildrenByY(Sn),Fe=In.indexOf(fn);if(Fe>0){for(var ue=In.elt(Fe-1);ue!==null&&ue.isTreeExpanded&&!ue.isTreeLeaf;){var pn=this._sortTreeChildrenByY(ue);ue=pn.last()}ue!==null&&Ln.select(ue)}else Ln.select(Sn)}}else if(Ze.key==="Down")if(fn.isTreeExpanded&&!fn.isTreeLeaf){var fe=this._sortTreeChildrenByY(fn).first();fe!==null&&Ln.select(fe)}else for(;fn!==null;){var Sn=fn.findTreeParentNode();if(Sn===null)break;var In=this._sortTreeChildrenByY(Sn),Fe=In.indexOf(fn);if(Fe<In.length-1){Ln.select(In.elt(Fe+1));break}else fn=Sn}var Un=Ln.selection.first();Un!==null&&Ln.scrollToRect(Un.actualBounds)}},Xn.prototype._sortTreeChildrenByY=function(Ln){var fn=new go.List().addAll(Ln.findTreeChildrenNodes());return fn.sort(function(Ze,fe){var Sn=Ze.location,In=fe.location;return Sn.y<In.y?-1:Sn.y>In.y?1:Sn.x<In.x?-1:Sn.x>In.x?1:0}),fn},Xn.prototype.copyToClipboard=function(Ln){go.CommandHandler.prototype.copyToClipboard.call(this,Ln),this._lastPasteOffset.set(this.pasteOffset)},Xn.prototype.pasteFromClipboard=function(){var Ln=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ln,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ln},Object.defineProperty(Xn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ln){if(Ln!=="move"&&Ln!=="select"&&Ln!=="scroll"&&Ln!=="tree"&&Ln!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ln);this._arrowKeyBehavior=Ln}}),Object.defineProperty(Xn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ln){if(!(Ln instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ln);this._pasteOffset.set(Ln)}});var oi=Xn,te=yt(37404),bt=yt(43604),xt=yt(70635),Tt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Bt=yt(59301),St=(Ln,fn,Ze)=>new Promise((fe,Sn)=>{var In=pn=>{try{ue(Ze.next(pn))}catch(Un){Sn(Un)}},Fe=pn=>{try{ue(Ze.throw(pn))}catch(Un){Sn(Un)}},ue=pn=>pn.done?fe(pn.value):Promise.resolve(pn.value).then(In,Fe);ue((Ze=Ze.apply(Ln,fn)).next())});function he({onCancel:Ln,callback:fn}){let Ze=(0,At.useRef)(),fe=(0,At.useRef)(),Sn=(0,At.useRef)(),In=(0,At.useRef)(!1);const Fe=(0,At.useRef)(!1),[ue,pn]=(0,At.useState)(0);function Un(){const Pn=pe.bx.make,Ce={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"};Ze.current=new pe.S0(fe.current,{padding:20,grid:Pn(pe.s_,"Grid",Pn(pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Oe=>{var xi=Oe.diagram.commandHandler.addTopLevelParts(Oe.diagram.selection,!0);xi||Oe.diagram.currentTool.doCancel()},commandHandler:Pn(oi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Oe=>{var xi=Oe.subject;xi.location=xi.location.copy().snapToGridPoint(Oe.diagram.grid.gridOrigin,Oe.diagram.grid.gridCellSize),setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Oe=>{var xi=Oe.subject;setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Oe=>{var xi=Oe.parameter.part;xi.invalidateConnectedLinks();var Vi=Oe.subject;Oe.diagram.toolManager.linkingTool.isForwards?Vi.toNode.invalidateConnectedLinks():Vi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ze.current.nodeTemplate=Pn(pe.NB,"Auto",{locationSpot:pe.z6.Center,locationObjectName:"SHAPE",desiredSize:new pe.$u(120,60),minSize:new pe.$u(40,40),resizable:!0,resizeCellSize:new pe.$u(10,10),rotatable:!0},new pe.KX("location","loc",pe.E9.parse).makeTwoWay(pe.E9.stringify),new pe.KX("desiredSize","size",pe.$u.parse).makeTwoWay(pe.$u.stringify),Pn(pe.bn,{name:"SHAPE",fill:Ce.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pe.z6.AllSides,toSpot:pe.z6.AllSides},new pe.KX("figure"),new pe.KX("fill"),new pe.KX("stroke","borderColor"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Pn(pe.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pn(pe.al,{margin:1,textAlign:"center",overflow:pe.al.OverflowEllipsis,editable:!0},new pe.KX("text").makeTwoWay(),new pe.KX("stroke","color"))),Ze.current.nodeTemplate.toolTip=Pn("ToolTip",Pn(pe.s_,"Vertical",{maxSize:new pe.$u(200,NaN)},Pn(pe.al,{font:"bold 10pt sans-serif",textAlign:"center"},new pe.KX("text")),Pn(pe.al,{font:"10pt sans-serif",textAlign:"center"},new pe.KX("text","details"))));function Rn(Oe,xi){var Vi=(Ti,Sr)=>{Ti.handled=!0,Ti.diagram.model.commit(yr=>{var Dr=Sr.part.adornedPart,ir=new pe.E9().setRectSpot(Dr.actualBounds,Oe);ir.subtract(Dr.location),ir.scale(2,2),ir.x+=Math.sign(ir.x)*130,ir.y+=Math.sign(ir.y)*130,ir.add(Dr.location),ir.snapToGridPoint(Ti.diagram.grid.gridOrigin,Ti.diagram.grid.gridCellSize);var zi=yr.copyNodeData(Dr.data);yr.setGroupKeyForNodeData(zi,yr.getGroupKeyForNodeData(Dr.data)),yr.addNodeData(zi);var Kr={from:Dr.key,to:yr.getKeyForNodeData(zi)};yr.addLinkData(Kr);var wn=Ti.diagram.findNodeForData(zi);wn.location=ir,Ti.diagram.select(wn),setTimeout(()=>{Ti.diagram.commandHandler.editTextBlock()},20)})};return Pn(pe.bn,{figure:xi,alignment:Oe,alignmentFocus:Oe.opposite(),width:Oe.equals(pe.z6.Top)||Oe.equals(pe.z6.Bottom)?25:18,height:Oe.equals(pe.z6.Top)||Oe.equals(pe.z6.Bottom)?18:25,fill:"orange",stroke:Ce.white,strokeWidth:4,mouseEnter:(Ti,Sr)=>Sr.fill="dodgerblue",mouseLeave:(Ti,Sr)=>Sr.fill="orange",isActionable:!0,click:Vi,contextClick:Vi})}function pi(Oe){return Pn(pe.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:(xi,Vi)=>Vi.fill="dodgerblue",mouseLeave:(xi,Vi)=>Vi.fill="orange",click:(xi,Vi)=>{xi.diagram.commandHandler.showContextMenu(Vi.part.adornedPart)}},Oe||{})}Ze.current.nodeTemplate.selectionAdornmentTemplate=Pn(pe.uz,"Spot",Pn(pe.Vm,{padding:10}),Rn(pe.z6.Top,"TriangleUp"),Rn(pe.z6.Left,"TriangleLeft"),Rn(pe.z6.Right,"TriangleRight"),Rn(pe.z6.Bottom,"TriangleDown"),pi({alignment:new pe.z6(.75,0)}));function Bi(Oe,xi){return(Vi,Ti)=>{Vi.handled=!0,Vi.diagram.model.commit(Sr=>{Sr.set(Ti.part.adornedPart.data,Oe,xi)})}}function je(Oe,xi){return xi||(xi="color"),Pn(pe.bn,{width:16,height:16,stroke:"lightgray",fill:Oe,margin:1,background:"transparent",mouseEnter:(Vi,Ti)=>Ti.stroke="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.stroke="lightgray",click:Bi(xi,Oe),contextClick:Bi(xi,Oe)})}function yn(){return[Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",je(Ce.white,"fill"),je(Ce.beige,"fill"),je(Ce.extralightblue,"fill"),je(Ce.extralightred,"fill"))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",je(Ce.lightgray,"fill"),je(Ce.lightgreen,"fill"),je(Ce.lightblue,"fill"),je(Ce.lightred,"fill")))]}function He(){return[Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",je(Ce.black),je(Ce.green),je(Ce.blue),je(Ce.red))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",je(Ce.white),je(Ce.magenta),je(Ce.purple),je(Ce.orange)))]}function an(Oe,xi){return xi||(xi="thickness"),Pn(pe.bn,"LineH",{width:16,height:16,strokeWidth:Oe,margin:1,background:"transparent",mouseEnter:(Vi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.background="transparent",click:Bi(xi,Oe),contextClick:Bi(xi,Oe)})}function gn(Oe,xi){return xi||(xi="dash"),Pn(pe.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Oe,margin:1,background:"transparent",mouseEnter:(Vi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.background="transparent",click:Bi(xi,Oe),contextClick:Bi(xi,Oe)})}function sn(){return[Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",an(1),an(2),an(3),an(4))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",gn(null),gn([2,4]),gn([4,4])))]}function bn(Oe,xi){return xi||(xi="figure"),Pn(pe.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Oe,margin:1,background:"transparent",mouseEnter:(Vi,Ti)=>Ti.fill="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.fill="lightgray",click:Bi(xi,Oe),contextClick:Bi(xi,Oe)})}Ze.current.nodeTemplate.contextMenu=Pn("ContextMenu",Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",bn("Rectangle"),bn("RoundedRectangle"),bn("Ellipse"),bn("Diamond"))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",bn("Parallelogram2"),bn("ManualOperation"),bn("Procedure"),bn("Cylinder1"))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",bn("Terminator"),bn("CreateRequest"),bn("Document"),bn("TriangleDown"))),yn(),He(),sn()),Ze.current.groupTemplate=Pn(pe.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:pe.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Oe,xi)=>{var Vi=xi.addMembers(xi.diagram.selection,!0);Vi||xi.diagram.currentTool.doCancel()},avoidable:!1},new pe.KX("location","loc",pe.E9.parse).makeTwoWay(pe.E9.stringify),Pn(pe.s_,"Auto",{name:"BODY"},Pn(pe.bn,{parameter1:10,fill:Ce.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pe.z6.AllSides,toSpot:pe.z6.AllSides},new pe.KX("fill"),new pe.KX("stroke","color"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Pn(pe.Vm,{background:"transparent",margin:20})),Pn(pe.al,{alignment:pe.z6.Top,alignmentFocus:pe.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new pe.KX("text"),new pe.KX("stroke","color"))),Ze.current.groupTemplate.selectionAdornmentTemplate=Pn(pe.uz,"Spot",Pn(pe.s_,"Auto",Pn(pe.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pn(pe.Vm,{margin:1.5})),pi({alignment:pe.z6.TopRight,alignmentFocus:pe.z6.BottomRight})),Ze.current.groupTemplate.contextMenu=Pn("ContextMenu",yn(),He(),sn()),Ze.current.linkTemplate=Pn(pe.rU,{layerName:"Foreground",routing:pe.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new pe.KX("fromSpot","fromSpot",pe.z6.parse),new pe.KX("toSpot","toSpot",pe.z6.parse),new pe.KX("fromShortLength","dir",Oe=>Oe>=1?10:0),new pe.KX("toShortLength","dir",Oe=>Oe>=1?10:0),new pe.KX("points").makeTwoWay(),Pn(pe.bn,{strokeWidth:2},new pe.KX("stroke","color"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Pn(pe.bn,{segmentIndex:0,segmentOffset:new pe.E9(15,0),segmentOrientation:pe.rU.OrientAlong,alignmentFocus:pe.z6.Right,figure:"circle",width:10,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",Oe=>Oe===1)),Pn(pe.bn,{segmentIndex:-1,segmentOffset:new pe.E9(-10,6),segmentOrientation:pe.rU.OrientPlus90,alignmentFocus:pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",Oe=>Oe>=1),new pe.KX("width","thickness",Oe=>7+3*Oe),new pe.KX("height","thickness",Oe=>7+3*Oe),new pe.KX("segmentOffset","thickness",Oe=>new pe.E9(-15,4+1.5*Oe))),Pn(pe.bn,{segmentIndex:0,segmentOffset:new pe.E9(15,-6),segmentOrientation:pe.rU.OrientMinus90,alignmentFocus:pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",Oe=>Oe===2),new pe.KX("width","thickness",Oe=>7+3*Oe),new pe.KX("height","thickness",Oe=>7+3*Oe),new pe.KX("segmentOffset","thickness",Oe=>new pe.E9(-15,4+1.5*Oe))),Pn(pe.al,{alignmentFocus:new pe.z6(0,1,-4,0),editable:!0},new pe.KX("text").makeTwoWay(),new pe.KX("stroke","color"))),Ze.current.linkTemplate.selectionAdornmentTemplate=Pn(pe.uz,Pn(pe.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fn(2)},new pe.KX("pathPattern","thickness",Fn)),pi({alignmentFocus:new pe.z6(0,0,-6,-4)}));function Fn(Oe){return Pn(pe.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Oe+4).toString()+" H3"})}function Wn(Oe){var xi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Oe===0?xi="M0 0 M16 16 M0 8 L16 8":Oe===2&&(xi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pn(pe.bn,{geometryString:xi,margin:2,background:"transparent",mouseEnter:(Vi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.background="transparent",click:Bi("dir",Oe),contextClick:Bi("dir",Oe)})}function qn(Oe){var xi=(Vi,Ti)=>{Vi.handled=!0,Vi.diagram.model.commit(Sr=>{var yr=Ti.part.adornedPart;Sr.set(yr.data,Oe?"toSpot":"fromSpot",pe.z6.stringify(pe.z6.AllSides)),(Oe?yr.toNode:yr.fromNode).invalidateConnectedLinks()})};return Pn(pe.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Vi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Vi,Ti)=>Ti.background="transparent",click:xi,contextClick:xi})}function Bn(Oe,xi){var Vi=0,Ti=pe.z6.RightSide;Oe.equals(pe.z6.Top)?(Vi=270,Ti=pe.z6.TopSide):Oe.equals(pe.z6.Left)?(Vi=180,Ti=pe.z6.LeftSide):Oe.equals(pe.z6.Bottom)&&(Vi=90,Ti=pe.z6.BottomSide),xi||(Vi-=180);var Sr=(yr,Dr)=>{yr.handled=!0,yr.diagram.model.commit(ir=>{var zi=Dr.part.adornedPart;ir.set(zi.data,xi?"toSpot":"fromSpot",pe.z6.stringify(Ti)),(xi?zi.toNode:zi.fromNode).invalidateConnectedLinks()})};return Pn(pe.bn,{alignment:Oe,alignmentFocus:Oe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Vi,background:"transparent",mouseEnter:(yr,Dr)=>Dr.background="dodgerblue",mouseLeave:(yr,Dr)=>Dr.background="transparent",click:Sr,contextClick:Sr})}Ze.current.linkTemplate.contextMenu=Pn("ContextMenu",He(),sn(),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",Wn(0),Wn(1),Wn(2))),Pn("ContextMenuButton",Pn(pe.s_,"Horizontal",Pn(pe.s_,"Spot",qn(!1),Bn(pe.z6.Top,!1),Bn(pe.z6.Left,!1),Bn(pe.z6.Right,!1),Bn(pe.z6.Bottom,!1)),Pn(pe.s_,"Spot",{margin:new pe.Zt(0,0,0,2)},qn(!0),Bn(pe.z6.Top,!0),Bn(pe.z6.Left,!0),Bn(pe.z6.Right,!0),Bn(pe.z6.Bottom,!0)))));const ai=`{ "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 Wi=["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 Mr(Oe){return console.log("shapeName:",Oe),Wi.indexOf(Oe)>=0}var nr=new pe.YI(Sn.current,{maxSelectionCount:1,linkTemplate:Pn(pe.rU,{locationSpot:pe.z6.Center,selectionAdornmentTemplate:Pn(pe.uz,"Link",{locationSpot:pe.z6.Center},Pn(pe.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pn(pe.bn,{toArrow:"Standard",stroke:null}))},{routing:pe.rU.AvoidsNodes,curve:pe.rU.JumpOver,corner:5,toShortLength:4},new pe.KX("points"),Pn(pe.bn,{isPanelMain:!0,strokeWidth:2}),Pn(pe.bn,{toArrow:"Standard",stroke:null})),model:new pe.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...pe.bn.getFigureGenerators().toArray().map(Oe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Oe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ze.current.addDiagramListener("TextEdited",function(Oe){var xi;const Vi=Oe.subject.part;var Ti=(xi=document.activeElement)==null?void 0:xi.value;typeof Ti=="string"&&Ti.trim()===""&&Ze.current.model.commit(function(Sr){Sr.set(Vi.data,"text","\u672A\u547D\u540D"),Ze.current.commandHandler.stopCommand()},"increment")}),nr.nodeTemplate=Pn(pe.NB,"Auto",{locationSpot:pe.z6.Center},new pe.KX("location","location",pe.E9.parse).makeTwoWay(pe.E9.stringify),Pn(pe.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 pe.KX("stroke").makeTwoWay(),new pe.KX("fill").makeTwoWay(),new pe.KX("figure")),Pn(pe.al,{margin:new pe.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new pe.$u(16,16),maxSize:new pe.$u(10,NaN),textAlign:"center",editable:!0},new pe.KX("key").makeTwoWay())),setTimeout(()=>{Ze.current.grid=Pn(pe.s_,"Grid",Pn(pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ze.current.grid.visible=!0,Ze.current.grid.gridCellStroke="darkgray",Ze.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ze.current,Ze.current}const Oi=()=>St(this,null,function*(){var Pn=Ze.current.makeImage();const Ce=yield(0,xt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pn.src}});fn({src:Ce.url})});return(0,At.useEffect)(()=>(setTimeout(()=>{Un()},500),pn(ue+1),()=>{Ze.current=null}),[]),Bt.createElement("div",{ref:Fe,className:In.current?`${Tt.maxH60} body-overflow-initial`:"body-overflow-initial"},Bt.createElement(on.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ue,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Bt.createElement(un.Z,null,Bt.createElement(bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Bt.createElement(bt.Z,{onClick:()=>{var Pn,Ce,Rn=Ze.current.selection.first();if(In.current=!In.current,document.activeElement&&Rn){let pi=(Ce=(Pn=document.activeElement)==null?void 0:Pn.value)==null?void 0:Ce.trim();typeof pi=="string"&&Ze.current.model.commit(function(Bi){Bi.set(Rn.data,"text",pi||"\u672A\u547D\u540D"),Ze.current.commandHandler.stopCommand()},"increment")}pn(ue+1)}},Bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ln},Bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Tt.flowChartWrp},Bt.createElement("div",{style:{display:"flex",height:"100%"}},Bt.createElement("div",{style:{width:"300px",height:"100%"}},Bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Tt.myPaletteDiv,ref:Sn})),Bt.createElement("div",{style:{flex:1,position:"relative"}},Bt.createElement("div",{ref:fe,style:{height:"80vh"}}))),Bt.createElement("div",{className:"tr"},Bt.createElement(Yt.ZP,{size:"large",onClick:Oi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Le=he,Gt=yt(5112),ee=yt(88897);const xe=Gt.ZP.Group,we={margin:"0 8px"};var se=({callback:Ln,onCancel:fn})=>{function Ze(fe){Ln(fe)}return At.createElement($t.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ze},At.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},At.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),At.createElement("span",{style:we},"\u884C\u6570"),At.createElement($t.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},At.createElement(ee.Z,null)),At.createElement("span",{style:we},"\u5217\u6570"),At.createElement($t.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},At.createElement(ee.Z,null))),At.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},At.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),At.createElement($t.default.Item,{name:"align"},At.createElement(xe,null,At.createElement(Gt.ZP,{value:"default"},At.createElement("i",{className:"fa fa-align-justify"})),At.createElement(Gt.ZP,{value:"left"},At.createElement("i",{className:"fa fa-align-left"})),At.createElement(Gt.ZP,{value:"center"},At.createElement("i",{className:"fa fa-align-center"})),At.createElement(Gt.ZP,{value:"right"},At.createElement("i",{className:"fa fa-align-right"}))))),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Yt.ZP,{type:"ghost",onClick:fn},"\u53D6\u6D88")))},ke=yt(78673),vn=yt(98598),cn=yt.n(vn),hn=(0,At.forwardRef)(({use3d:Ln,width:fn,height:Ze,callback:fe,showSaveButton:Sn},In)=>{const Fe=(0,At.useRef)(),ue=(0,At.useRef)(),[pn,Un]=(0,At.useState)(!1),Oi=(0,At.useRef)({id:Fe,appName:"graphing",width:fn||1e3,height:Ze||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,At.useEffect)(()=>{ue.current=new(cn())(Oi.current,!0),window.onload=function(){ue.current.inject("applet_container")}},[]);const Pn=()=>{var Ce=window.ggbApplet.getPNGBase64(1,!0,72);return fe&&fe(Ce),Ce};return(0,At.useEffect)(()=>{Oi.current.appName=pn?"3D":"graphing",ue.current.inject("applet_container")},[pn]),(0,At.useEffect)(()=>{Un(Ln)},[Ln]),(0,At.useImperativeHandle)(In,()=>({getImgData:Pn})),At.createElement(At.Fragment,null,At.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Fe}),At.createElement(un.Z,{align:"middle"},At.createElement(bt.Z,{flex:1},At.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:pn,onChange:Ce=>Un(Ce)})),At.createElement(bt.Z,null,At.createElement(Yt.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Vn=yt(75890),Se=yt(8591);const qe="link",Qe="upload-image",Nn="add-flowchart",hi="draw-image",mi="add-flowchart",gi="code-block",Pi="add-table",_i="------------",vr={default:_i,left:`:${_i}`,center:`:${_i}:`,right:`${_i}:`};var gr=yt(91300);function fr(){}let eo=0;const Jr=1e4,Xi="\u2581",$r="@\u2581\u2581@",Ki="@\u2581@",Lt=`
|
|
|
**\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`,li=["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 vi(Ln){return/^\d+$/.test(Ln)?`${Ln}px`:Ln}const hr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qi={[hr+"-B"]:"bold",[hr+"-I"]:"italic"},Zr={[qe]:"\u6DFB\u52A0\u94FE\u63A5",[gi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Qe]:"\u6DFB\u52A0\u56FE\u7247",[hi]:"\u6DFB\u52A0\u753B\u56FE",[Nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Pi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Gr=({defaultValue:Ln="",onChange:fn,width:Ze="100%",height:fe=400,miniToolbar:Sn=!1,isFocus:In=!1,watch:Fe,insertTemp:ue,mode:pn="markdown",id:Un="markdown-editor-id",showResizeBar:Oi=!1,noStorage:Pn=!1,showNullButton:Ce=!1,showNullProgramButton:Rn=!1,hidetoolBar:pi=!1,fullScreen:Bi=!1,onBlur:je,onCMBeforeChange:yn,onFullScreen:He,className:an="",disablePaste:gn=!1,disabled:sn=!1,disabledFill:bn=!1,placeholder:Fn="",values:Wn="",extraUse:qn})=>{const[Bn,ai]=(0,At.useState)(null),[Wi,Mr]=(0,At.useState)(Ln),[nr,Oe]=(0,At.useState)(Fe),[xi,Vi]=(0,At.useState)(Bi),[Ti,Sr]=(0,At.useState)(""),[yr,Dr]=(0,At.useState)(0),[ir,zi]=(0,At.useState)(fe),[Kr,wn]=(0,At.useState)(!1),[To,An]=(0,At.useState)(0),[Or,Qo]=(0,At.useState)(0),uo=(0,At.useRef)(),Fa=(0,At.useRef)(),Vo=(0,At.useRef)(),dr=(0,At.useRef)();(0,At.useEffect)(()=>{const Ui=window.scrollY||window.pageYOffset;Mr(Wn),Bn==null||Bn.setValue(Wn),window.scrollTo(0,Ui)},[Wn]),(0,At.useEffect)(()=>{He==null||He(xi)},[xi]),(0,At.useEffect)(()=>{if(uo.current){let Ui=function(Er,ei){var Ho;if(gn){ei.preventDefault();return}const $o=ei.clipboardData;if($o){const Na=$o.types.toString(),ua=$o.items;if(Na==="Files"||$o.types.indexOf("Files")>-1){if(ei.preventDefault(),pn=="stex")return;try{let Ia=ua[1];((Ho=ua[0])==null?void 0:Ho.kind)==="file"&&(Ia=ua[0]);const Ra=Ia.getAsFile(),ys=Ra.name.split(".").pop();(0,Be.I)(Ra,Ds=>{var _s,Ys,ln;Ds.id?((_s=Ra==null?void 0:Ra.type)==null?void 0:_s.indexOf("image"))>-1?$i.replaceSelection(``):((Ys=Ra==null?void 0:Ra.type)==null?void 0:Ys.indexOf("video"))>-1?$i.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ds.id}"></video>`):((ln=Ra==null?void 0:Ra.type)==null?void 0:ln.indexOf("pdf"))>-1?$i.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=${Ra.type}&disposition=inline" target="_blank">${Ra.name}</a>`):li.includes(ys)?$i.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=office&disposition=inline" target="_blank">${Ra.name}</a>`):$i.replaceSelection(`[${Ra.name}](/api/attachments/${Ds.id}?type=${Ds.content_type})`):(Ds==null?void 0:Ds.status)===401&&(document.location.href="/user/login")})}catch(Ia){Se.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $i=re().fromTextArea(uo.current,{mode:pn,lineNumbers:!Sn,lineWrapping:!0,value:Ln,autoCloseTags:!0,autoCloseBrackets:!0});return $i.on("keyup",function(Er,ei){ei.keyCode===8&&(Er.getValue()==""?$i.setOption("placeholder",Fn):$i.setOption("placeholder",null))}),$i.on("keydown",function(Er,ei){if(ei.keyCode===8){var Ho=io(Er);Ho&&ei.preventDefault()}}),In&&$i.focus(),$i.on("paste",Ui),sn&&$i.on("beforeChange",function(Er,ei){(ei.origin==="paste"||ei.origin==="+input")&&ei.cancel()}),ai($i),()=>{$i.off("paste",Ui)}}},[]);const or=(0,At.useCallback)(()=>{if(Fa.current)try{}catch(Ui){console.log(Ui,"---- to set md editor body height")}},[ir,Fa,xi]);(0,At.useEffect)(()=>{function Ui(){let $i=new Ae.Z(Er=>{for(let ei of Er)(ei.target.offsetHeight>0||ei.target.offsetWidth>0)&&(or(),Bn.setSize("100%","100%"),Bn.refresh())});return $i.observe(uo.current.parentElement),$i}if(Bn){const $i=Ui();return()=>{var Er,ei;(Er=uo.current)!=null&&Er.parentElement&&$i.unobserve((ei=uo.current)==null?void 0:ei.parentElement)}}},[Bn,or]),(0,At.useEffect)(()=>{if(Bn){let Ui=[];for(const[$i,Er]of Object.entries(qi)){let ei={[$i]:()=>{Co(Er)}};Ui.push(ei),Bn.addKeyMap(ei)}return()=>{for(let $i of Ui)Bn.removeKeyMap($i)}}},[Bn]),(0,At.useEffect)(()=>{Bi!==xi&&Vi(Bi)},[Bi]),(0,gr.Z)(()=>{if(!Pn&&yr>0){let Ui=new Date().getTime(),$i=window.sessionStorage.getItem(Un);Ui>=yr+Jr&&(!$i||$i!==Wi)&&(window.sessionStorage.setItem(Un,Wi),wn(!0))}},Jr),(0,At.useEffect)(()=>{Oe(Fe)},[Bn,Fe]),(0,At.useEffect)(()=>{Bn&&In&&Bn.focus()},[Bn,In]),(0,At.useEffect)(()=>{if(nr&&Bn){let Ui=function(Er){let ei=Er.target;if(dr.current){let Ho=ei.scrollTop/ei.scrollHeight;dr.current.scrollTop=dr.current.scrollHeight*Ho}};const $i=Bn.getScrollerElement();return $i.addEventListener("scroll",Ui),()=>{$i.removeEventListener("scroll",Ui)}}},[Bn,nr]),(0,At.useEffect)(()=>{if(Bn&&yn){let Ui=function($i,Er){yn($i,Er)};return Bn.on("beforeChange",Ui),()=>{Bn.off("beforeChange",Ui)}}},[Bn,yn]),(0,At.useEffect)(()=>{if(Bn&&je){let Ui=function(){je(Bn.getValue())};return Bn.on("blur",Ui),()=>{Bn.off("blur",Ui)}}},[Bn,je]);function io(Ui,$i){var Er=Ui.getDoc(),ei=Er.getCursor(),Ho=Er.getLine(ei.line),$o=Ho.charAt(ei.ch-1),Na=Ho.lastIndexOf("@\u2581@",ei.ch),ua=Ho.lastIndexOf("@\u2581\u2581@",ei.ch),Ia=Na>ua?Na:ua,Ra=Na>ua?3:4;if($r.indexOf($o)===-1)return null;if(console.log("change1:",$i,Ui,Ho,ei,Ia,Na,ua,$o),Ia>=0&&ei.ch-Ia<5){var ys=Ia+Ra;return Er.replaceRange("",{line:ei.line,ch:Ia},{line:ei.line,ch:ys}),{line:ei.line,ch:ys}}return null}(0,At.useEffect)(()=>{if(Bn){let Ui=function($i,Er){const ei=$i.getValue();Mr(ei),Dr(new Date().getTime()),$i.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),fn&&(Rn?fn(ei,fa(ei)):fn(ei))};return Bn.on("change",Ui),()=>{Bn.off("change",Ui)}}},[Bn,fn]),(0,At.useEffect)(()=>{if(Bn)if(Ln==null)Bn.setValue(""),Mr("");else{const Ui=window.scrollY||window.pageYOffset;Ln!==Bn.getValue()&&(Bn.setValue(Ln),Mr(Ln),Bn.setCursor(sn?1:Bn.lineCount(),0),window.scrollTo(0,Ui))}},[Bn,Ln]);const Co=(0,At.useCallback)(Ui=>{const $i=Bn.getCursor(),Er=Bn.getSelection();let ei=Er.split(`
|
|
|
`);switch(Ui){case"bold":return Bn.replaceSelection("**"+Er+"**"),Er===""&&Bn.setCursor($i.line,$i.ch+2),Bn.focus();case"italic":return Bn.replaceSelection("*"+Er+"*"),Er===""&&Bn.setCursor($i.line,$i.ch+1),Bn.focus();case"code":return Bn.replaceSelection("`"+Er+"`"),Er===""&&Bn.setCursor($i.line,$i.ch+1),Bn.focus();case"inline-latex":return Sr("inline-latex"),Bn.focus();case"latex":return Bn.replaceSelection("```latex\n"+Er+"\n```"),Bn.setCursor($i.line+1,Er.length+1),Bn.focus();case"line-break":return Bn.replaceSelection(`<br/>
|
|
|
`),Bn.focus();case"list-ul":return Er===""?Bn.replaceSelection("- "+Er):Bn.replaceSelection(ei.map(Ho=>Ho===""?"":`- ${Ho}`).join(`
|
|
|
`)),Bn.focus();case"list-ol":return Er===""?Bn.replaceSelection("1. "+Er):Bn.replaceSelection(ei.map((Ho,$o)=>Ho===""?"":`${$o+1}. ${Ho}`).join(`
|
|
|
`)),Bn.focus();case"add-null-ch":return Er===""&&Bn.setCursor($i.line,$i.ch),Bn.replaceSelection(Xi),Bn.focus();case"add-signal":return Er===""&&Bn.setCursor($i.line,$i.ch),Bn.replaceSelection(Ki),Bn.focus();case"add-multiple":return Er===""&&Bn.setCursor($i.line,$i.ch),Bn.replaceSelection($r),Bn.focus();case"inster-template-1":return Er===""&&Bn.setCursor($i.line,$i.ch),Bn.replaceSelection(Lt),Bn.focus();case"eraser":return Bn.setValue(""),Bn.focus();case"trigger-watch":return Oe(!nr),Bn.focus();case"trigger-full-screen":return Vi(!xi),Bn.focus();case qe:Sr(qe);return;case gi:Sr(gi);return;case Qe:Sr(Qe);return;case hi:Sr(hi);return;case"maths-latex":Sr("maths-latex");return;case Nn:Sr(Nn);return;case Pi:Sr(Pi);return;default:throw new Error}},[Bn,nr,xi]),Ci=(0,At.useCallback)((Ui,$i)=>{var Er,ei,Ho,$o,Na,ua;switch(Sr(""),Ti){case qe:const{title:_s,link:Ys}=Ui;return Bn.replaceSelection(`[${_s}](${Ys})`),Bn.focus();case gi:const{language:ln,content:js}=Ui;return Bn.replaceSelection(["```"+ln,js,"```"].join(`
|
|
|
`)),Bn.focus();case"maths-latex":for(var Ia=atob(Ui),Ra=new Uint8Array(Ia.length),ys=0;ys<Ia.length;ys++)Ra[ys]=Ia.charCodeAt(ys);var Ds=new Blob([Ra],{type:"image/png"});(0,Be.I)(Ds,bs=>{bs.id?Bn.replaceSelection(``):(bs==null?void 0:bs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Bn.replaceSelection("`$$"+Ui+"$$`");break;case Qe:case hi:case mi:const{src:au,alt:su}=Ui,ko=$i,ga=(Ho=(ei=(Er=ko==null?void 0:ko.name)==null?void 0:Er.split("."))==null?void 0:ei.pop)==null?void 0:Ho.call(ei);return(($o=ko==null?void 0:ko.type)==null?void 0:$o.indexOf("image"))>-1||!(ko!=null&&ko.type)?su?Bn.replaceSelection(``):Bn.replaceSelection(``):((Na=ko==null?void 0:ko.type)==null?void 0:Na.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="${au}"></video>`):((ua=ko==null?void 0:ko.type)==null?void 0:ua.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="${au}?type=${ko.type}&disposition=inline" target="_blank">${ko.name}</a>`):li.includes(ga)?Bn.replaceSelection(`<a href="${au}?type=office&disposition=inline" target="_blank">${ko.name}</a>`):Bn.replaceSelection(`[${ko.name}](${au})`),Bn.focus();case Pi:const{row:os,col:pa,align:Fo}=Ui;let sa=`
|
|
|
`;for(let bs=0;bs<os;bs++){let no=[],Ro=[];for(let Oo=0;Oo<pa;Oo++)bs===1&&Ro.push(vr[Fo]),no.push(" ");bs===1&&(sa+=`| ${Ro.join(" | ")} |
|
|
|
`),sa+=`| ${no.join(pa===1?"":" | ")} |
|
|
|
`}return Bn.replaceSelection(sa+`
|
|
|
`),Bn.focus();default:throw new Error}},[Bn,Ti]),Vt=(0,At.useMemo)(()=>{switch(Ti){case qe:return At.createElement(Kn,{callback:Ci,onCancel:qr});case gi:return At.createElement(ii.Z,{callback:Ci,onCancel:qr});case Qe:return At.createElement(Be.Z,{callback:Ci,onCancel:qr});case Nn:return At.createElement(Le,{callback:Ci,onCancel:qr});case Pi:return At.createElement(se,{callback:Ci,onCancel:qr});case"maths-latex":return At.createElement(hn,{showSaveButton:!0,callback:Ci});case"inline-latex":return At.createElement(Vn.Z,{showSaveButton:!0,callback:Ci});default:return null}},[Ti]);function qr(){Sr("")}(0,At.useEffect)(()=>{if(Vo.current){let Ui=function(Na){Ho=!0,$o=Na.pageY},$i=function(){Ho=!1},Er=function(Na){if(Ho){let ua=Na.pageY-$o;ua<0&&(ua=0),ua>300&&(ua=300);let Ia=fe+ua+"px";zi(Ia)}},ei=Vo.current,Ho=!1,$o=0;return ei.addEventListener("mousedown",Ui),document.addEventListener("mousemove",Er),document.addEventListener("mouseup",$i),()=>{ei.removeEventListener("mousedown",Ui),document.removeEventListener("mousemove",Er),document.removeEventListener("mouseup",$i)}}},[Bn,Vo]),(0,At.useEffect)(()=>{zi(fe)},[fe]);const da=vi(Ze),ao=vi(ir),_o={width:da,height:ao},ca=(0,At.useMemo)(()=>{if(yr){let Ui=new Date(yr),$i=Ui.getHours(),Er=Ui.getMinutes(),ei=Ui.getSeconds();return $i=$i<10?"0"+$i:$i,Er=Er<10?"0"+Er:Er,ei=ei<10?"0"+ei:ei,`${$i}:${Er}:${ei}`}return 0},[yr]),fa=Ui=>{const $i=[];if(Rn){let Er=-1;Ui=Ui.replace(/(@▁▁@|@▁@)/g,function(ei,Ho,$o){$i.push({multiLine:ei!==Ki})})}return $i};function Vr(){window.sessionStorage.removeItem(Un),wn(!1),Dr(0)}function Ar(){wn(!1),Dr(0),Bn.setValue(window.sessionStorage.getItem(Un))}(0,At.useEffect)(()=>{Zr[Ti]&&Ti!==hi&&Ti!==Nn&&setTimeout(()=>{const Ui=document.getElementsByClassName("markdown-popup-form")[0],$i=window.innerWidth/2-Ui.offsetWidth/2,Er=window.innerHeight/2-Ui.offsetHeight/2;An($i),Qo(Er)},0)},[Ti]);const Cr=Ui=>{Ui.preventDefault();const $i=Ui.clientX-To,Er=Ui.clientY-Or;document.body.onmousemove=ei=>{let Ho=ei.clientX-$i,$o=ei.clientY-Er;const Na=document.getElementsByClassName("markdown-popup-form")[0],ua=window.innerWidth-Na.offsetWidth,Ia=window.innerHeight-Na.offsetHeight;Ho=Math.max(0,Math.min(Ho,ua)),$o=Math.max(0,Math.min($o,Ia)),Do(ei.clientX,ei.clientY,$i,Er)&&(An(Ho),Qo($o))},document.body.onmouseup=function(){document.body.onmousemove=null}},Do=(Ui,$i,Er,ei)=>{const Ho=document.body.clientHeight,$o=document.body.clientWidth;return Ui<20&&Er>Ui||Ui>$o-20&&Er<Ui||$i<20&&ei>$i||$i>Ho-20&&ei<$i?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return At.createElement(At.Fragment,null,At.createElement("div",{className:"markdown-editor-wrapper",ref:Fa},At.createElement("div",{className:`markdown-editor-container ${an} ${nr?"on-preview":""} ${Sn?"mini":""} ${xi?"full-screen":""}`,style:_o},At.createElement(jt,{insertTemp:ue,watch:nr,fullScreen:xi,showNullButton:Ce,showNullProgramButton:Rn,onActionCallback:Co,hidetoolBar:pi,extraUse:qn}),At.createElement("div",{className:"markdown-editor-body"},At.createElement("div",{className:"codemirror-container"},At.createElement("textarea",{ref:uo,placeholder:Fn})),nr?At.createElement("div",{ref:dr,className:"preview-container"},pn==="stex"&&At.createElement(de,{value:Wi}),pn!=="stex"&&At.createElement(Re.Z,{disabledFill:bn,showProgramFill:Rn,value:Wi})):null))),Oi?At.createElement("a",{ref:Vo,className:"editor-resize"}):null,Ti===hi&&At.createElement(Gn,{callback:Ci,onCancel:qr}),Ti===Nn&&At.createElement(Le,{callback:Ci,onCancel:qr}),At.createElement(Ht.Z,null,Zr[Ti]&&Ti!==hi&&Ti!==Nn?At.createElement(on.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:To,top:Or},title:At.createElement("div",{style:{cursor:"move"},onMouseDown:Cr},Zr[Ti]),open:!0,onCancel:qr,footer:null,destroyOnClose:!0,width:Ti===Nn?"1200px":null,height:Ti===Nn?"80vh":null,className:"markdown-popup-form"},Vt):null))}},56701:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return mt},I:function(){return kt}});var At=yt(78241),zt=yt(8591),re=yt(92832),Ae=yt(3113),Ut=yt(58788),ne=yt(59301),Ft=yt(59301),De=Object.defineProperty,Pe=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Nt=(wt,Ot,jt)=>Ot in wt?De(wt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:jt}):wt[Ot]=jt,et=(wt,Ot)=>{for(var jt in Ot||(Ot={}))de.call(Ot,jt)&&Nt(wt,jt,Ot[jt]);if(Re)for(var jt of Re(Ot))be.call(Ot,jt)&&Nt(wt,jt,Ot[jt]);return wt},nt=(wt,Ot)=>Pe(wt,oe(Ot));const{useForm:ht}=At.default,st={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var mt=({callback:wt,onCancel:Ot})=>{const[jt]=ht();let Ht=(0,ne.useRef)();function $t(Ge){wt(Ge,Ht.current)}function ye(Ge,ce){if(Ge.status===-1){zt.ZP.error(Ge.message);return}jt.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:ce.type})}function Yt(Ge){let ce=Ge.target.files[0];Ht.current=ce,kt(ce,ye)}return Ft.createElement(At.default,nt(et({form:jt},gt),{className:"upload-image-panel",onFinish:$t,style:{width:470,overflow:"hidden"}}),Ft.createElement(At.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ft.createElement("div",{className:"flex-container"},Ft.createElement(At.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ft.createElement(re.default,{style:st})),Ft.createElement(Pt,{onFileChange:Yt}))),Ft.createElement(At.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ft.createElement(re.default,{style:{width:264}})),Ft.createElement(At.default.Item,{style:{textAlign:"right"}},Ft.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ae.ZP,{type:"default",onClick:Ot},"\u53D6\u6D88")))};function Pt({onFileChange:wt}){return Ft.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ft.createElement("input",{type:"file",onChange:wt}))}function kt(wt,Ot){if(!wt)throw new String("\u6CA1\u6709\u6587\u4EF6");let jt=new FormData;jt.append("editormd-image-file",wt),jt.append("file_param_name","editormd-image-file"),jt.append("byxhr","true");var Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function($t){Ot(JSON.parse($t.target.responseText),wt)},!1),Ht.addEventListener("error",function($t){console.error($t)},!1),Ht.open("POST",`${Ut.KI}/api/attachments.json`),Ht.send(jt)}},50474:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return re}});var At=yt(59301),zt=yt(4676);class re extends At.Component{constructor(Ut){super(Ut);const ne=window.document;this.node=ne.createElement("div"),ne.body.appendChild(this.node)}render(){const{children:Ut}=this.props;return(0,zt.createPortal)(Ut,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(On,Cn,yt){"use strict";yt.d(Cn,{SV:function(){return he},ZP:function(){return St}});var At=yt(59301),zt=yt(76374);const re={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"]},Ae={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"]},Ut={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(`
|
|
|
`)}]},ne={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(`
|
|
|
`)}]},Ft={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 De=yt(86061),Pe=yt.n(De),oe=Object.defineProperty,Re=Object.defineProperties,de=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(Le,Gt,ee)=>Gt in Le?oe(Le,Gt,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Le[Gt]=ee,ht=(Le,Gt)=>{for(var ee in Gt||(Gt={}))Nt.call(Gt,ee)&&nt(Le,ee,Gt[ee]);if(be)for(var ee of be(Gt))et.call(Gt,ee)&&nt(Le,ee,Gt[ee]);return Le},st=(Le,Gt)=>Re(Le,de(Gt)),gt=(Le,Gt,ee)=>new Promise((xe,we)=>{var se=cn=>{try{vn(ee.next(cn))}catch(Je){we(Je)}},ke=cn=>{try{vn(ee.throw(cn))}catch(Je){we(Je)}},vn=cn=>cn.done?xe(cn.value):Promise.resolve(cn.value).then(se,ke);vn((ee=ee.apply(Le,Gt)).next())});const mt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Pt=(Le,Gt)=>Gt.map(ee=>({label:ee,kind:Le.languages.CompletionItemKind.Keyword,insertText:ee})),kt=Le=>Object.keys(mt.tables).map(Gt=>({label:Gt,kind:Le.languages.CompletionItemKind.Variable,insertText:Gt})),wt=(Le,Gt)=>{const ee=mt.tables[Le];return ee?ee.map(xe=>({label:xe,kind:Gt.languages.CompletionItemKind.Field,insertText:xe})):[]};function Ot(Le,Gt,ee,xe,we){let se=Gt.getWordUntilPosition(ee),ke={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:se.startColumn,endColumn:se.endColumn},vn=xe.map(cn=>({label:cn,kind:Le.languages.CompletionItemKind.Keyword,insertText:cn,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}));return we.map(cn=>{vn.push(st(ht({},cn),{range:ke}))}),vn}var jt=Le=>{mt.languages.map(we=>(Le.languages.registerDocumentFormattingEditProvider(we,{provideDocumentFormattingEdits(se,ke,vn){return gt(this,null,function*(){const cn=Pe()(se.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:se.getFullModelRange(),text:cn}]})}}),we));const Gt=Ut.quickKey.map(we=>({label:we.label,kind:Le.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ee=ne.quickKey.map(we=>({label:we.label,kind:Le.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet})),xe=Ae.quickKey.map(we=>({label:we.label,kind:Le.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Le.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,se){var ke=we.getWordUntilPosition(se),vn={startLineNumber:se.lineNumber,endLineNumber:se.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},cn=we.getLineContent(se.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...Ut.keywords.map(Je=>({label:Je,kind:Le.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn})),...Ut.quickKey.map(Je=>({label:Je.label,kind:Le.languages.CompletionItemKind.Function,documentation:Je.content,insertText:cn.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn}))]}}}),Le.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(we,se){var ke=we.getWordUntilPosition(se),vn={startLineNumber:se.lineNumber,endLineNumber:se.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn};return{suggestions:[...re.keywords.map(cn=>({label:cn,kind:Le.languages.CompletionItemKind.Function,documentation:cn,insertText:cn,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn}))]}}}),Le.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,se){var ke=we.getWordUntilPosition(se),vn={startLineNumber:se.lineNumber,endLineNumber:se.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},cn=we.getLineContent(se.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...Ae.keywords.map(Je=>({label:Je,kind:Le.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn})),...Ae.quickKey.map(Je=>({label:Je.label,kind:Le.languages.CompletionItemKind.Function,documentation:Je.content,insertText:cn.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn}))]}}}),Le.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(we,se){var ke=we.getWordUntilPosition(se),vn={startLineNumber:se.lineNumber,endLineNumber:se.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},cn=we.getLineContent(se.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...Ft.keywords.map(Je=>({label:Je,kind:Le.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn})),...Ft.quickKey.map(Je=>({label:Je.label,kind:Le.languages.CompletionItemKind.Function,documentation:Je.content,insertText:cn.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn}))]}}}),Le.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,se){var ke=we.getWordUntilPosition(se),vn={startLineNumber:se.lineNumber,endLineNumber:se.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},cn=we.getLineContent(se.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...ne.keywords.map(Je=>({label:Je,kind:Le.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn})),...ne.quickKey.map(Je=>({label:Je.label,kind:Le.languages.CompletionItemKind.Function,documentation:Je.content,insertText:cn.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:Le.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vn}))]}}})};const Ht="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var $t=Object.defineProperty,ye=(Le,Gt,ee)=>Gt in Le?$t(Le,Gt,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Le[Gt]=ee,Yt=(Le,Gt,ee)=>ye(Le,typeof Gt!="symbol"?Gt+"":Gt,ee);const Ge=class px{constructor(Gt,ee,xe){this.placeholder=Gt,this.editor=ee,this.monaco=xe,ee.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Yt(Ge,"ID","editor.widget.placeholderHint");var $e=Ge,Ue=yt(96236),Ke=yt(8591),tn=yt(6848),Tn=yt(89392),ve=yt(86766),Zt=yt(56102),en=Object.defineProperty,Kn=Object.defineProperties,ii=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Jn=(Le,Gt,ee)=>Gt in Le?en(Le,Gt,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Le[Gt]=ee,nn=(Le,Gt)=>{for(var ee in Gt||(Gt={}))on.call(Gt,ee)&&Jn(Le,ee,Gt[ee]);if(Be)for(var ee of Be(Gt))un.call(Gt,ee)&&Jn(Le,ee,Gt[ee]);return Le},Gn=(Le,Gt)=>Kn(Le,ii(Gt)),pe=(Le,Gt)=>{var ee={};for(var xe in Le)on.call(Le,xe)&&Gt.indexOf(xe)<0&&(ee[xe]=Le[xe]);if(Le!=null&&Be)for(var xe of Be(Le))Gt.indexOf(xe)<0&&un.call(Le,xe)&&(ee[xe]=Le[xe]);return ee},Xn=(Le,Gt,ee)=>new Promise((xe,we)=>{var se=cn=>{try{vn(ee.next(cn))}catch(Je){we(Je)}},ke=cn=>{try{vn(ee.throw(cn))}catch(Je){we(Je)}},vn=cn=>cn.done?xe(cn.value):Promise.resolve(cn.value).then(se,ke);vn((ee=ee.apply(Le,Gt)).next())});function oi(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}function te(){}let bt=!1;const xt={"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 Tt(Le=[]){let Gt=Le;if(Array.isArray(Le)){for(let ee=0;ee<Le.length;ee++){let xe=xt[Le[ee]];if(xe)return xe}return Gt[0]}return xt[Gt]||Gt}let Bt=null;var St=Le=>{var Gt=Le,{width:ee="100%",height:xe="100%",value:we,language:se="javascript",style:ke={},options:vn={},overrideServices:cn={},theme:Je="vs-dark",onEditBlur:hn,isCopy:Vn=!1,onSave:Se,autoHeight:qe=!1,forbidCopy:Qe=!1,onChange:Nn=te,editorDidMount:hi=te,onFocus:mi=te,onBreakPoint:gi=te,breakPointValue:Pi=[],filename:_i="educoder.txt",errorLine:vr,errorContent:gr="",highlightLine:fr,openBreakPoint:eo=!1,placeholder:Jr=""}=Gt,Xi=pe(Gt,["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 $r=(0,At.useRef)(),Ki=(0,At.useRef)({}),Lt=(0,At.useRef)(),li=(0,At.useRef)(),vi=(0,At.useRef)([]),Lr=(0,At.useRef)(!1),hr=(0,At.useRef)(),qi=(0,At.useRef)(),Zr=(0,At.useRef)(!1),[Gr,Ln]=(0,At.useState)(!1);function fn(){let je;return $r.current&&(je=new zt.Z(yn=>{for(let He of yn)(He.target.offsetHeight>0||He.target.offsetWidth>0)&&Ki.current.instance.layout()}),je.observe($r.current)),je}function Ze(){Ke.ZP.warning({content:decodeURIComponent(Ht),key:"monaco-editor-tip"})}const fe=()=>{let je=Ki.current.instance;if(we!=null&&je&&Gr){const yn=je.getModel();yn&&we!==yn.getValue()&&(bt=!0,yn.setValue(we),je.layout(),bt=!1)}};(0,At.useEffect)(()=>{const je=ve.Z.subscribe("formatDocument",yn=>{var He;let an=Ki.current.instance;(He=an==null?void 0:an.getAction)==null||He.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{Nn(yn)},je},[]),(0,At.useEffect)(()=>{var je;let yn=Ki.current.instance;li.current&&clearTimeout(li.current),li.current=setTimeout(()=>{fe()},500),we&&(we!=null&&we.length)&&((je=yn==null?void 0:yn.updateOptions)==null||je.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(we.split(/\r\n|\r|\n/g).length))+3,5)}))},[we,Gr,Ki.current]),(0,At.useEffect)(()=>{if(vr&&Ki.current&&Ki.current.instance){let yn=Ki.current.instance;yn.changeViewZones(function(He){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=gr,He.addZone({afterLineNumber:vr||11,heightInLines:3,domNode:an})});var je={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}};yn.addOverlayWidget(je),yn.revealPositionInCenter({lineNumber:20,column:1})}},[vr,Ki.current,Gr]);const Sn=(je="",yn)=>{if(!je||je.trim()==="")return!0;const an=Ki.current.instance.getModel().getLineTokens(yn);let gn=!1;for(let sn=0;sn<2;sn++)an.getStandardTokenType(sn)===1&&(gn=!0);return gn};(0,At.useEffect)(()=>{var je;const yn=(je=Ki.current)==null?void 0:je.instance;if(yn&&Gr&&Qe){const He=yn.onDidBlurEditorWidget(()=>{Zr.current=!1}),an=yn.onDidFocusEditorText(()=>{Zr.current=!0});return()=>{He.dispose(),an.dispose()}}},[Ki.current,Gr,Qe]),(0,At.useEffect)(()=>{var je;if((je=Ki.current)!=null&&je.instance&&Gr&&eo){let yn=Ki.current.instance,He=yn.getModel();if(!He)return;(()=>{var nr;let Oe=[],xi=[];const Vi=He.getAllDecorations();for(let Sr of Vi)Sr.options.className==="highlighted-line"&&(Oe.push((nr=Sr==null?void 0:Sr.range)==null?void 0:nr.startLineNumber),xi.push(Sr==null?void 0:Sr.id));if(fr===Oe[0])return;He.deltaDecorations(xi,[]);const Ti=He.getLineCount();fr&&fr<=Ti&&(yn.deltaDecorations([],[{range:new Bt.Range(fr,1,fr,He.getLineMaxColumn(fr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(fr))})();const gn=(nr=!1)=>{var Oe;let xi=[],Vi=[];const Ti=He.getAllDecorations();for(let Sr of Ti)Sr.options.linesDecorationsClassName==="breakpoints-select"&&(xi.push((Oe=Sr==null?void 0:Sr.range)==null?void 0:Oe.startLineNumber),Vi.push(Sr==null?void 0:Sr.id));if(nr)return{lines:xi,ids:Vi};gi(xi)},sn=nr=>Xn(void 0,null,function*(){let Oe={range:new Bt.Range(nr,1,nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield He.deltaDecorations([],[Oe]),gn()}),bn=nr=>Xn(void 0,null,function*(){let Oe=[];const xi=yn.getLineDecorations(nr);for(let Vi of xi)Vi.options.linesDecorationsClassName==="breakpoints-select"&&Oe.push(Vi.id);yield He.deltaDecorations(Oe,[]),gn()}),Fn=nr=>{let Oe=yn.getLineDecorations(nr);for(let xi of Oe)if(xi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Tn.isEqual)(Pi,gn(!0).lines)){He.deltaDecorations(gn(!0).ids,[]);const nr=Pi.map(Oe=>({range:new Bt.Range(Oe,1,Oe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));He.deltaDecorations([],nr)}const Wn=yn.onDidChangeModelContent(nr=>{let Oe=yn.getPosition();if(Oe){let xi=Oe.lineNumber;clearTimeout(qi.current),qi.current=setTimeout(()=>{Sn(He.getLineContent(xi),xi)?bn(xi):Fn(xi)?(bn(xi),sn(xi)):gn()},100)}}),qn=yn.onMouseDown(nr=>{var Oe,xi,Vi;if(nr.target.detail&&((Vi=(xi=(Oe=nr.target)==null?void 0:Oe.element)==null?void 0:xi.className)!=null&&Vi.includes("line-numbers"))){let Ti=nr.target.position.lineNumber;if(Sn(He.getLineContent(Ti),Ti))return;Fn(Ti)?bn(Ti):sn(Ti)}}),Bn=nr=>{let Oe={range:new Bt.Range(nr,1,nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vi.current=yn.deltaDecorations(vi.current,[Oe])},ai=()=>{vi.current=yn.deltaDecorations(vi.current,[])},Wi=yn.onMouseMove(nr=>{var Oe,xi,Vi;if(ai(),nr.target.detail&&((Vi=(xi=(Oe=nr.target)==null?void 0:Oe.element)==null?void 0:xi.className)!=null&&Vi.includes("line-numbers"))){let Ti=nr.target.position.lineNumber;if(Sn(He.getLineContent(Ti),Ti))return;Bn(Ti)}}),Mr=yn.onMouseLeave(()=>{ai()});return()=>{Wn.dispose(),qn.dispose(),Wi.dispose(),Mr.dispose()}}},[Ki.current,Gr,Pi,fr,eo,se]),(0,At.useEffect)(()=>{var je;(je=Ki.current)!=null&&je.instance&&eo&&Ki.current.instance.setPosition({lineNumber:0,column:0})},[fr]);function In(){let je=Ki.current.instance;if(je){const yn=je.getSelection(),He=Ki.current.pastePos||{},an=new Bt.Range(He.startLineNumber||yn.endLineNumber,He.startColumn||yn.endColumn,He.endLineNumber||yn.endLineNumber,He.endColumn||yn.endColumn);setTimeout(()=>{je.executeEdits("",[{range:an,text:""}])},300)}}function Fe(je){(window.navigator.platform.match("Mac")?je.metaKey:je.ctrlKey)&&je.keyCode==83&&(je.preventDefault(),Se())}const ue=()=>{if(qe&&Ki.current.instance){const je=Ki.current.instance.getContentHeight();pi(je<xe?xe:je)}else pi(xe)};function pn(je){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),je.dispatchEvent(yn)}const Un=je=>{if(!Zr.current)return;const{keyCode:yn,ctrlKey:He,metaKey:an,target:gn,type:sn}=je;return(sn==="paste"||(yn===67||yn===86)&&(an||He))&&gn.nodeName==="TEXTAREA"&&(Ze(),je.preventDefault()),!1};function Oi(je,yn){var He=window.URL||window.webkitURL||window,an=new Blob([yn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=He.createObjectURL(an),gn.download=je,pn(gn)}(0,At.useEffect)(()=>{ue()},[ue]),(0,At.useEffect)(()=>{$r.current&&!Gr&&Promise.all([yt.e(8909),yt.e(1810)]).then(yt.bind(yt,71448)).then(je=>{try{Bt=je,Ki.current.instance=Bt.editor.create($r.current,{value:we,language:Tt(se),theme:Je,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},cn);const yn=Ki.current.instance;let gn=[...Ue.BH._menuItems].find(Wn=>Wn[0]._debugName=="EditorContext")[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bn=(Wn,qn)=>{var Bn,ai;let Wi=Wn._first;do qn.includes((ai=(Bn=Wi.element)==null?void 0:Bn.command)==null?void 0:ai.id)&&Wn._remove(Wi);while(Wi=Wi.next)};if(hi(yn,Bt),setTimeout(()=>{ue(),Ki.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Oi(_i||"educoder.txt",yn.getValue())}})},500),Ki.current.subscription=yn.onDidChangeModelContent(Wn=>{Lr.current?clearTimeout(hr.current):(ue(),Nn(yn.getValue(),Wn)),hr.current=setTimeout(()=>{Lr.current=!1},500)}),window.Monaco||jt(Bt,Tt(se)),Qe&&(bn(gn,sn),$r.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Un),window.removeEventListener("paste",Un),window.addEventListener("keydown",Un),window.addEventListener("paste",Un)),window.Monaco=Bt,hn&&yn.onDidBlurEditorWidget(()=>{hn(yn.getValue())}),mi&&yn.onDidFocusEditorText(()=>{mi(yn.getValue())}),Qe)try{yn.onDidPaste(Wn=>{const qn=yn.getSelection(),Bn=Ki.current.pastePos||{},ai=new Bt.Range(Bn.startLineNumber||qn.endLineNumber,Bn.startColumn||qn.endColumn,Bn.endLineNumber||qn.endLineNumber,Bn.endColumn||qn.endColumn);yn.executeEdits("",[{range:Wn.range,text:""}])})}catch(Wn){}let Fn=fn();return Jr&&typeof Jr=="string"&&new $e(Jr,yn,Bt),Ln(!0),()=>{const Wn=Ki.current.instance;Wn.dispose();const qn=Wn.getModel();qn&&qn.dispose(),Ki.current.subscription&&Ki.current.subscription.dispose(),Fn.unobserve($r.current)}}catch(yn){}})},[]),(0,At.useEffect)(()=>{if(Ki.current.instance&&Gr)return document.addEventListener("keydown",Fe,!1),()=>{document.removeEventListener("keydown",Fe)}},[Se,Gr]),(0,At.useEffect)(()=>{let je=Ki.current.instance;if(je&&Gr){let yn=Tt(se);Bt.editor.setModelLanguage(je.getModel(),yn)}},[se,Gr]),(0,At.useEffect)(()=>{Ki.current.instance&&Gr&&Bt.editor.setTheme(Je)},[Je,Gr]),(0,At.useEffect)(()=>{let je=Ki.current.instance;Lt.current=vn,je&&Gr&&(je.updateOptions(nn({},vn)),setTimeout(()=>{je.getModel().updateOptions(nn({},vn))},200))},[JSON.stringify(vn),Gr]),(0,At.useEffect)(()=>{let je=Ki.current.instance;je&&Gr&&je.layout()},[ee,xe,Gr]);const[Pn,Ce]=(0,At.useState)(oi(ee)),[Rn,pi]=(0,At.useState)(oi(xe)),Bi=Gn(nn({},ke),{width:Pn,height:Rn,position:"relative"});return At.createElement("div",{className:"my-monaco-editor",ref:$r,style:Bi},Vn&&At.createElement(Zt.CopyToClipboard,{text:we,onCopy:()=>Ke.ZP.success("\u590D\u5236\u6210\u529F")},At.createElement(tn.Z,{title:"\u590D\u5236\u4EE3\u7801"},At.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},At.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function he({width:Le="100%",height:Gt="100%",original:ee,modified:xe,language:we,options:se={}}){const ke=(0,At.useRef)(),[vn,cn]=(0,At.useState)(null);function Je(qe){let Qe;return ke.current&&(Qe=new zt.Z(Nn=>{for(let hi of Nn)(hi.target.offsetHeight>0||hi.target.offsetWidth>0)&&qe.layout()}),Qe.observe(ke.current)),Qe}(0,At.useEffect)(()=>(ke.current&&Promise.all([yt.e(8909),yt.e(9404)]).then(yt.bind(yt,2550)).then(qe=>{Bt=qe;const Qe=Bt.editor.createDiffEditor(ke.current,Gn(nn({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},se),{wordWrap:!0}));cn(Qe);let Nn=Je(Qe);return()=>{Qe.dispose();const hi=Qe.getModel();hi&&hi.dispose(),Nn.unobserve(ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,At.useEffect)(()=>{vn&&vn.setModel({original:Bt.editor.createModel(ee,we),modified:Bt.editor.createModel(xe,we)})},[ee,xe,we,vn]);const hn=oi(Le),Vn=oi(Gt),Se={width:hn,height:Vn};return At.createElement("div",{className:"my-diff-editor",ref:ke,style:Se})}},91300:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return zt}});var At=yt(59301);function zt(re,Ae){const Ut=(0,At.useRef)();(0,At.useEffect)(()=>{Ut.current=re}),(0,At.useEffect)(()=>{function ne(){Ut.current()}if(Ae!==null){let Ft=setInterval(ne,Ae);return()=>clearInterval(Ft)}},[Ae])}},66539:function(On,Cn,yt){"use strict";yt.d(Cn,{Q8:function(){return Zt},d0:function(){return en},w6:function(){return ve}});var At=yt(59301),zt=yt(251),re=yt(57809),Ae=yt(8591),Ut=yt(43418),ne=yt(5112),Ft=yt(95237),De=yt(43604),Pe=yt(6848),oe=yt(24905),Re=yt(3113),de=yt(61186),be=yt.n(de),Nt=yt(2119),et=yt(70635),nt=yt(89392),ht=yt.n(nt),st=yt(58130),gt=yt(57534),mt=yt(42203),Pt=yt(46898),kt=yt(18032),wt=yt(30738),Ot=yt(83476),jt=yt(20387),Ht=yt(59301),$t=Object.defineProperty,ye=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ue=(un,Jn,nn)=>Jn in un?$t(un,Jn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):un[Jn]=nn,Ke=(un,Jn)=>{for(var nn in Jn||(Jn={}))ce.call(Jn,nn)&&Ue(un,nn,Jn[nn]);if(Ge)for(var nn of Ge(Jn))$e.call(Jn,nn)&&Ue(un,nn,Jn[nn]);return un},tn=(un,Jn)=>ye(un,Yt(Jn)),Tn=(un,Jn,nn)=>new Promise((Gn,pe)=>{var Xn=bt=>{try{te(nn.next(bt))}catch(xt){pe(xt)}},oi=bt=>{try{te(nn.throw(bt))}catch(xt){pe(xt)}},te=bt=>bt.done?Gn(bt.value):Promise.resolve(bt.value).then(Xn,oi);te((nn=nn.apply(un,Jn)).next())});function ve(un,Jn){const nn=[];for(let Gn=un;Gn<Jn;Gn++)nn.push(Gn);return nn}const Zt=(un,Jn,nn)=>{const Gn=un<be()().startOf("day"),pe=un>be()(Jn).endOf("day"),Xn=un<be()(nn).startOf("day");return Jn?nn?be()()<=be()(nn)?Xn||pe:Gn||pe:un&&Gn||pe:nn&&be()()<=be()(nn)?Xn:Gn},en=(un,Jn)=>{const nn=parseInt(be()(un).format("HH")),Gn=parseInt(be()().format("HH")),pe=parseInt(be()().format("mm"));if(!un)return{disabledHours:()=>ve(0,Gn),disabledMinutes:()=>ve(0,pe)};if(Jn){const Xn=parseInt(be()(Jn).format("HH")),oi=parseInt(be()(Jn).format("mm"));return be()(un).isSame(be()(Jn),"day")?{disabledHours:()=>ve(0,Xn),disabledMinutes:()=>nn<=Xn?ve(0,oi):[]}:void 0}if(be()(un).isSame(be()(),"day"))return{disabledHours:()=>ve(0,Gn),disabledMinutes:()=>be()(un).isSame(be()(),"hour")&&nn<=Gn?ve(0,pe):[]}},Kn=(un,Jn)=>un==null?void 0:un.map(nn=>{var Gn;return(Gn=Jn==null?void 0:Jn.find(pe=>pe.value===nn))==null?void 0:Gn.id}),{RangePicker:ii}=zt.default,{Option:Be}=re.default,on=({shixunHomeworks:un,loading:Jn,dispatch:nn,classroomList:Gn,user:pe})=>{var Xn,oi,te,bt,xt,Tt,Bt,St,he;const Le=(0,mt.useParams)(),{workSetting:Gt,workList:ee,shixunWorkList:xe,headerInfo:we,changeData:se}=un,[ke,vn]=(0,At.useState)(!1),[cn,Je]=(0,At.useState)(!1);let[hn,Vn]=(0,At.useState)([]),[Se,qe]=(0,At.useState)([]),[Qe,Nn]=(0,At.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pt.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[hi,mi]=(0,At.useState)({}),[gi,Pi]=(0,At.useState)({});(0,At.useEffect)(()=>()=>{Vn([])},[]),(0,At.useEffect)(()=>{vn(!(0,Nt.GJ)())},[(0,Nt.GJ)()]);const _i=()=>{nn({type:"shixunHomeworks/getWorkSetting",payload:Ke({},Le)})};(0,At.useEffect)(()=>{if(!(Gt!=null&&Gt.course_id))return;Object.keys(Qe).map(function(vi){Qe[vi]=Gt[vi]}),(!Qe.allow_late||!Qe.unified_late)&&(Qe.late_penalty=20,Qe.penalty_type=Pt.Q.Percent),Qe.unified_setting||(Qe.unified_late=!1,Qe.unified_anonymous_comment=!1,Qe.unified_anonymous_appeal=!1),hn=JSON.parse(JSON.stringify(Gt.group_settings.map(vi=>tn(Ke({},vi),{group_name:[vi.group_name]})).filter(vi=>vi.publish_time!==null))),Se=JSON.parse(JSON.stringify(Gt.allow_late_settings.map(vi=>tn(Ke({},vi),{group_name:[vi.group_name]})).filter(vi=>vi.late_time!==null))),Nn(Ke({},Qe));const li=(0,st.QE)((hn==null?void 0:hn.length)>0?hn:[]);Vn([...li]),(Se==null?void 0:Se.length)<=0?qe([{penalty_type:Pt.Q.Percent,late_penalty:20}]):qe([...Se])},[Gt]);const vr=()=>Tn(void 0,null,function*(){var li,vi;if(((li=pe==null?void 0:pe.userInfo)==null?void 0:li.user_status)===2){(0,kt.Rd)();return}const Lr=JSON.parse(JSON.stringify(Qe));if(Lr.challenge_settings.filter(qi=>!qi.hide),Lr.categoryId=Le.categoryId,(vi=Lr.challenge_settings)!=null&&vi.every(qi=>!qi.checked)){Ae.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(hn),!Qe.unified_setting)hn=hn==null?void 0:hn.map(qi=>{var Zr;if(!qi.publish_time||!qi.end_time)throw Ae.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(!qi.group_name)throw Ae.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qi.group_name=typeof(qi==null?void 0:qi.group_name)=="string"?[qi==null?void 0:qi.group_name]:qi==null?void 0:qi.group_name,qi.group_id=(Zr=Gt.group_settings)==null?void 0:Zr.filter(Gr=>{var Ln;return(Ln=qi==null?void 0:qi.group_name)==null?void 0:Ln.includes(Gr.group_name)}).map(Gr=>Gr.group_id||Gr.id).toString().split(","),qi});else if(!Qe.publish_time||!Qe.end_time)throw Ae.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(Lr.group_settings=hn,Qe.allow_late)if(Qe.unified_late){if(Qe.late_penalty===null||Qe.late_penalty===void 0||Qe.late_penalty<0||Qe.late_penalty>100)throw Ae.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(!Qe.late_time)throw Ae.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 Se=Se==null?void 0:Se.map(qi=>{var Zr,Gr;if(qi.late_penalty===null||qi.late_penalty===void 0||qi.late_penalty<0||qi.late_penalty>100)throw Ae.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(!qi.late_time)throw Ae.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(!qi.group_name)throw Ae.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qi.group_name=typeof(qi==null?void 0:qi.group_name)=="string"?[qi==null?void 0:qi.group_name]:qi==null?void 0:qi.group_name,qi.group_id=(Gr=(Zr=qi==null?void 0:qi.group_name)==null?void 0:Zr.map(Ln=>{var fn,Ze;let fe=(Ze=(fn=Gt.group_settings)==null?void 0:fn.filter(Sn=>(Sn==null?void 0:Sn.group_name)===Ln))==null?void 0:Ze[0];return fe==null?void 0:fe.group_id}))==null?void 0:Gr.toString().split(","),qi}),Lr.allow_late_settings=Se;let hr=yield(0,jt.Tr)({homework_common_ids:[parseInt(Le.categoryId)],course_id:Le.coursesId,type:"homework_common"});(hr==null?void 0:hr.student_count)===0?gr(Lr):(Pi(Lr),mi(hr))}),gr=li=>{var vi;if(li.total_score===null){Ae.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(li!=null&&li.work_efficiency&&li.eff_score===null){Ae.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Lr=li.challenge_settings.reduce((Zr,Gr)=>Zr+Number(Gr.challenge_score),0);if((Lr==null?void 0:Lr.toFixed(10))!==((vi=li.total_score-li.eff_score)==null?void 0:vi.toFixed(10))){Ae.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${li.total_score}\u5206`);return}const hr={shixun_evaluation:li.shixun_evaluation,challenge_settings:li.challenge_settings};let qi=()=>{var Zr;const Gr=()=>Tn(void 0,null,function*(){Je(!0),(yield(0,et.ZP)(`/api/homework_commons/${Le.categoryId}/publish_setting.json`,{method:"post",body:Ke({},li)})).status===0&&(Ae.ZP.success("\u66F4\u65B0\u6210\u529F"),_i(),nn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Ke({},Le)})),Je(!1)});!(0,nt.isEqual)(se,hr)&&!((Zr=we==null?void 0:we.homework_status)!=null&&Zr.includes("\u672A\u53D1\u5E03"))?Ut.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:Gr}):Gr()};Gt!=null&&Gt.high_resources_consume&&!(Gt!=null&&Gt.high_resources_consume_permission)?nn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Le.coursesId,type:"shixun",type_id:Le.categoryId,name:Gt.homework_name,fn:()=>{qi()}}}):qi()},fr=(li,vi,Lr="group_id")=>{var hr;return vi?vi.find(qi=>qi[Lr]===li):(hr=Gt==null?void 0:Gt.group_settings)==null?void 0:hr.find(qi=>qi.group_id[0]===li)},eo=(Gt==null?void 0:Gt.allow_late)||(Gt==null?void 0:Gt.anonymous_comment),Jr=li=>{var vi,Lr;const hr=fr(li,Gt==null?void 0:Gt.allow_late_settings,"id"),qi=fr(li,Gt==null?void 0:Gt.anonymous_comment_settings),Zr=fr(li);return(Gt==null?void 0:Gt.allow_late)&&hr&&be()(hr==null?void 0:hr.late_time)<=be()()||(Gt==null?void 0:Gt.anonymous_comment)&&qi&&(qi==null?void 0:qi.evaluation_start)!==null||((Lr=(be()(Zr==null?void 0:Zr.end_time)<=be()()&&((vi=Gt==null?void 0:Gt.allow_late_settings)==null?void 0:vi.filter(Gr=>Gr.group_id.includes(li))))[0])==null?void 0:Lr.late_time)!=null},Xi=(0,At.useMemo)(()=>(Gt==null?void 0:Gt.allow_late)||(Gt==null?void 0:Gt.all_group_late),[Gt,we]),$r=Gt==null?void 0:Gt.anonymous_comment,Ki=li=>{if(!li)return!1;const vi=fr(li,Gt==null?void 0:Gt.anonymous_comment_settings);return(Gt==null?void 0:Gt.anonymous_comment)&&vi&&(vi==null?void 0:vi.evaluation_start)!==null},Lt=(li,vi)=>{var Lr,hr,qi,Zr,Gr;li!=null&&li.group_id||(li.group_id=Kn(li==null?void 0:li.group_name,Gt==null?void 0:Gt.group_settings)),nn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:li,index:vi,rangePickerDisabled:(hr=(Lr=li==null?void 0:li.group_id)==null?void 0:Lr[0])!=null&&hr.publish_time?ke||(be()()<=be()((Zr=fr((qi=li==null?void 0:li.group_id)==null?void 0:qi[0]))==null?void 0:Zr.publish_time)?!1:[!0,Jr((Gr=li==null?void 0:li.group_id)==null?void 0:Gr[0])]):!1,disabledDate:Gt==null?void 0:Gt.course_end_date}})};return Ht.createElement("section",{className:gt.Z.form},Ht.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ht.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")),Ht.createElement("div",null,Ht.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ht.createElement(ne.ZP.Group,{disabled:ke||!((Xn=we==null?void 0:we.homework_status)!=null&&Xn.includes("\u672A\u53D1\u5E03"))||(0,Nt.Rm)()&&!((oi=Gn.AssistantObject.practice)!=null&&oi.can_publish),value:Qe.unified_setting,onChange:li=>{var vi;if(!((vi=we==null?void 0:we.homework_status)!=null&&vi.includes("\u672A\u53D1\u5E03"))){Ae.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Qe.unified_setting=!Qe.unified_setting,Qe.unified_setting||(Qe.unified_late=!1,qe([{late_penalty:5}])),Nn(Object.assign({},Qe)),Qe.unified_setting===!1&&hn==""){Vn(hn.concat({}));return}Qe.unified_setting&&(Vn([]),qe([{late_penalty:5}]))}},Ht.createElement(ne.ZP,{value:!0,disabled:ke||!(Gt!=null&&Gt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ht.createElement(ne.ZP,{disabled:ke||!((te=Gt==null?void 0:Gt.group_settings)!=null&&te.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((bt=Gt==null?void 0:Gt.group_settings)==null?void 0:bt.length)===0&&Ht.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")),Qe.unified_setting&&Ht.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ht.createElement(Ft.Z,{align:"middle"},Ht.createElement(De.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ht.createElement(De.Z,{className:"ml10"},Ht.createElement(zt.default,{size:"large",disabled:ke||!((xt=we==null?void 0:we.homework_status)!=null&&xt.includes("\u672A\u53D1\u5E03")||(Tt=we==null?void 0:we.homework_status)!=null&&Tt.includes("\u672A\u5F00\u59CB"))||(0,Nt.Rm)()&&!((Bt=Gn.AssistantObject.practice)!=null&&Bt.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:li=>Zt(li,Gt==null?void 0:Gt.course_end_date),disabledTime:li=>en(li),value:Qe.publish_time?be()(Qe.publish_time):"",onChange:(li,vi)=>{Qe.publish_time=vi,(Qe.end_time==""||!Qe.end_time)&&Qe.unified_setting&&(Qe.end_time=be()(li).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Nn(Object.assign({},Qe))}}))),Ht.createElement(Ft.Z,{align:"middle",className:"pl30"},Ht.createElement(De.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ht.createElement(De.Z,{className:"ml10"},Ht.createElement(zt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:be()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Gt==null?void 0:Gt.allow_late)&&(Gt==null?void 0:Gt.homework_status.includes("\u5DF2\u622A\u6B62"))||ke||(Gt==null?void 0:Gt.allow_late)&&be()()>=be()(Gt==null?void 0:Gt.end_time)||(0,Nt.Rm)()&&!((St=Gn.AssistantObject.practice)!=null&&St.can_publish),disabledDate:li=>Zt(li,Gt==null?void 0:Gt.course_end_date,Qe.publish_time),disabledTime:li=>en(li,Qe.publish_time),value:Qe.end_time?be()(Qe.end_time):"",onChange:(li,vi)=>{Qe.end_time=vi,Nn(Object.assign({},Qe))}})))),!Qe.unified_setting&&(hn==null?void 0:hn.length)>0&&Ht.createElement(Ft.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},hn&&hn.map(function(li,vi){var Lr,hr,qi,Zr,Gr,Ln,fn;return Ht.createElement(De.Z,{span:24,key:vi},Ht.createElement(Ft.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:vi==(hn==null?void 0:hn.length)-1?"0px":"10px"}},Ht.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",vi+1),Ht.createElement(re.default,{disabled:ke||((Lr=we==null?void 0:we.homework_status)!=null&&Lr.includes("\u672A\u53D1\u5E03")&&li.id||be()()<be()(li==null?void 0:li.publish_time)?!1:!!(li!=null&&li.publish_time))||(0,Nt.Rm)()&&!((hr=Gn.AssistantObject.practice)!=null&&hr.can_publish),mode:"multiple",className:gt.Z.multiple_select,style:{width:"250px"},value:li.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Ze=>{var fe;if((0,Nt.Rm)()&&!((fe=Gn.AssistantObject.practice)!=null&&fe.can_publish)){Ae.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}hn[vi].group_name=Ze,hn[vi].group_id=li.group_id;const Sn=(0,nt.flattenDeep)(hn.map(Fe=>Fe.group_name)),In=Se.map(Fe=>{let ue=(Fe==null?void 0:Fe.group_name)||[];return tn(Ke({},Fe),{group_name:(0,nt.remove)(ue,pn=>Sn.includes(pn))})});qe(In),Vn(hn.slice())},maxTagCount:4,maxTagPlaceholder:Ze=>Ht.createElement("div",{style:{cursor:"pointer"},onClick:()=>Lt(li,vi)},"+",Ze==null?void 0:Ze.length)},Gt.group_settings&&Gt.group_settings.map(function(Ze){if(!hn.map(Sn=>Sn.group_name).flat().includes(Ze.group_name))return Ht.createElement(Be,{value:Ze.group_name,key:Ze.id},Ze.group_name)})),Ht.createElement("div",{className:"ml20"},Ht.createElement(ii,{size:"large",ranges:{\u6B64\u523B:[li.publish_time?be()(li.publish_time):be()(),be()()]},allowClear:!1,disabled:ke||(be()()<=be()((Zr=fr((qi=li==null?void 0:li.group_id)==null?void 0:qi[0]))==null?void 0:Zr.publish_time)?!1:[!0,Jr((Gr=li==null?void 0:li.group_id)==null?void 0:Gr[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:Ze=>Zt(Ze,Gt==null?void 0:Gt.course_end_date),disabledTime:Ze=>en(Ze),showTime:{showNow:!0,format:"HH:mm",defaultValue:[be()((0,st.U6)(),"HH:mm"),be()((0,st.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[li.publish_time?be()(li.publish_time):void 0,li.end_time?be()(li.end_time):void 0],onChange:(Ze,fe)=>{var Sn;if((0,Nt.Rm)()&&!((Sn=Gn.AssistantObject.practice)!=null&&Sn.can_publish)){Ae.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}hn[vi].publish_time=fe[0],!li.end_time&&fe[0]?hn[vi].end_time=be()(fe[0]).add(7,"days"):hn[vi].end_time=fe[1],Vn([...hn])},onCalendarChange:(Ze,fe,Sn)=>{if(fe!=null&&fe[0]&&!fe[1]){const In=be()(fe[0]).add(7,"days");hn[vi].publish_time=fe[0],hn[vi].end_time=In,Vn([...hn])}}})),!ke&&Ht.createElement("div",{style:{display:"flex",width:"50px"}},((Ln=li==null?void 0:li.group_id)==null?void 0:Ln.length)>1&&Ht.createElement(Pe.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ht.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Lt(li,vi)})),hn.length<((fn=Gt==null?void 0:Gt.group_settings)==null?void 0:fn.length)&&Ht.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Ze;if((0,Nt.Rm)()&&!((Ze=Gn.AssistantObject.practice)!=null&&Ze.can_publish)){Ae.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}Vn(hn.concat({}))}}),((li==null?void 0:li.publish_time)&&be()()<be()(li==null?void 0:li.publish_time)||!(li!=null&&li.publish_time))&&vi!=0&&Ht.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Ze=(0,nt.cloneDeep)(Se);Ze.forEach((fe,Sn)=>{fe.group_name&&(fe.group_name=fe.group_name.filter(In=>{var Fe;return!((Fe=hn[vi].group_name)!=null&&Fe.includes(In))}))}),hn=hn.filter((fe,Sn)=>vi!==Sn),qe(Ze),Vn(hn.slice()),setTimeout(()=>Vn(hn.slice()),10)}}))))}))),Ht.createElement(Ft.Z,null,Ht.createElement(De.Z,null,Ht.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ht.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"))),Ht.createElement(De.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ht.createElement(oe.default,{checked:Qe.allow_late,disabled:ke||Xi,onChange:li=>{var vi;if((0,Nt.Rm)()&&!((vi=Gn.AssistantObject.practice)!=null&&vi.can_late)){Ae.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}li.target.checked&&Ut.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ht.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ht.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"),Ht.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ht.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"))}),Qe.allow_late=!Qe.allow_late,Se==""&&qe([{late_penalty:5}]),Nn(Object.assign({},Qe))}},Ht.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Qe==null?void 0:Qe.allow_late)&&Ht.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ht.createElement("div",{style:{display:"flex"}},Ht.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ht.createElement(ne.ZP.Group,{style:{marginLeft:"20px"},disabled:ke||(Gt==null?void 0:Gt.anonymous_comment)||(Gt==null?void 0:Gt.allow_late),value:Qe.unified_late,onChange:li=>{var vi;if((0,Nt.Rm)()&&!((vi=Gn.AssistantObject.practice)!=null&&vi.can_late)){Ae.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}Qe.unified_late=li.target.value,Se==""&&!li.target.value&&qe([{penalty_type:Pt.Q.Percent,late_penalty:20}]),Nn(Ke({},Qe))}},(Qe==null?void 0:Qe.unified_setting)&&Ht.createElement(ne.ZP,{value:!0,disabled:!(Gt!=null&&Gt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((he=Gt==null?void 0:Gt.group_settings)==null?void 0:he.length)>0&&Ht.createElement(ne.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Qe!=null&&Qe.unified_late?Ht.createElement(Ht.Fragment,null,Ht.createElement(Ft.Z,{align:"middle",style:{marginTop:"10px"}},Ht.createElement(De.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ht.createElement(De.Z,{className:"ml20"},Ht.createElement(Pt.Z,{disabled:ke||$r,value:{type:Qe.penalty_type,inputValue:Qe.late_penalty},onChange:li=>{var vi;if((0,Nt.Rm)()&&!((vi=Gn.AssistantObject.practice)!=null&&vi.can_late)){Ae.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}Nn(tn(Ke({},Qe),{late_penalty:li.inputValue,penalty_type:li.type}))}})),Ht.createElement(De.Z,{flex:"1",className:"ml5"},Ht.createElement("span",{className:"c-grey-c ml10"},Qe.penalty_type===Pt.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ht.createElement(Ft.Z,{align:"middle",style:{marginTop:"15px"}},Ht.createElement(De.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ht.createElement(De.Z,{className:"ml20"},Ht.createElement(zt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:be()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ke||$r,value:Qe.late_time?be()(Qe.late_time):"",disabledDate:li=>Zt(li,Gt==null?void 0:Gt.course_end_date),onChange:(li,vi)=>{var Lr;if((0,Nt.Rm)()&&!((Lr=Gn.AssistantObject.practice)!=null&&Lr.can_late)){Ae.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}Qe.late_time=vi,Nn(Object.assign({},Qe))}})))):Se.map(function(li,vi){var Lr;return Ht.createElement(De.Z,{span:24,key:vi},Ht.createElement(Ft.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ht.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",vi+1),Ht.createElement(re.default,{disabled:ke||!((Lr=we==null?void 0:we.homework_status)!=null&&Lr.includes("\u672A\u53D1\u5E03"))&&li.id||(Gt==null?void 0:Gt.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof li.group_name=="string"?[li.group_name]:li.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:hr=>{var qi;if((0,Nt.Rm)()&&!((qi=Gn.AssistantObject.practice)!=null&&qi.can_late)){Ae.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}Se[vi].group_name=hr,Se[vi].group_id=li.group_id,qe(Se.slice())}},Gt.group_settings&&Gt.group_settings.map(function(hr){const qi=Se.map(Gr=>Gr.group_name).flat(),Zr=hn.map(Gr=>Gr.group_name).flat();if(Qe!=null&&Qe.unified_setting){if(!qi.includes(hr.group_name))return Ht.createElement(Be,{value:hr.group_name,key:hr.id},hr.group_name)}else if(Zr.includes(hr.group_name)&&!qi.includes(hr.group_name))return Ht.createElement(Be,{value:hr.group_name,key:hr.id},hr.group_name)})),Ht.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ht.createElement(Pt.Z,{disabled:ke||Ki(li.id),value:{type:li.penalty_type,inputValue:li.late_penalty},onChange:hr=>{var qi;if((0,Nt.Rm)()&&!((qi=Gn.AssistantObject.practice)!=null&&qi.can_late)){Ae.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}Se[vi].late_penalty=hr.inputValue,Se[vi].penalty_type=hr.type,qe([...Se])}}),Ht.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ht.createElement(zt.default,{size:"large",disabled:ke||Ki(li.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:be()((0,st.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:hr=>Zt(hr,Gt==null?void 0:Gt.course_end_date),format:"YYYY-MM-DD HH:mm",value:li!=null&&li.late_time?be()(li.late_time):void 0,onChange:(hr,qi)=>{var Zr;if((0,Nt.Rm)()&&!((Zr=Gn.AssistantObject.practice)!=null&&Zr.can_late)){Ae.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}Se[vi].late_time=qi,qe([...Se])}}),!ke&&Ht.createElement("div",{style:{display:"flex",width:"50px"}},Ht.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var hr;if((0,Nt.Rm)()&&!((hr=Gn.AssistantObject.practice)!=null&&hr.can_late)){Ae.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}qe(Se.concat({penalty_type:Pt.Q.Percent,late_penalty:20}))}}),vi>0&&!li.id&&Ht.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var hr;if((0,Nt.Rm)()&&!((hr=Gn.AssistantObject.practice)!=null&&hr.can_late)){Ae.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}Se=Se.filter((qi,Zr)=>vi!==Zr),qe(Se.slice()),setTimeout(()=>qe(Se.slice()),10)}}))))})),!ke&&Ht.createElement(Ht.Fragment,null,Ht.createElement(Re.ZP,{type:"primary",size:"large",loading:cn,style:{width:"138px",marginTop:"30px"},onClick:()=>vr()},"\u4FDD\u5B58")),Ht.createElement(wt.Z,{onConfirm:(li,vi)=>{hn.splice(li,0,...vi),hn.splice(li+vi.length,1);const Lr=(0,st.QE)([...hn]);Vn([...Lr])}}),Ht.createElement(Ot.Z,{resdata:hi,type:"shixun",okloading:cn,oktext:(hi==null?void 0:hi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:li=>Tn(void 0,null,function*(){Je(!0);let vi=yield(0,et.ZP)(`/api/courses/${Le.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Le.categoryId)]}});Je(!1),(vi==null?void 0:vi.status)===0&&gr(gi)})}))};Cn.ZP=(0,mt.connect)(({shixunHomeworks:un,classroomList:Jn,loading:nn,user:Gn})=>({shixunHomeworks:un,classroomList:Jn,loading:nn.effects,user:Gn}))(on)},68641:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(41889),re=yt(78241),Ae=yt(43418),Ut=yt(8591),ne=yt(36546),Ft=yt(42203),De=yt(10148),Pe=yt(63593),oe=yt(70635),Re=yt(61186),de=yt.n(Re),be=yt(58130),Nt=yt(59301),et=Object.defineProperty,nt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,gt=(Ot,jt,Ht)=>jt in Ot?et(Ot,jt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ot[jt]=Ht,mt=(Ot,jt)=>{for(var Ht in jt||(jt={}))ht.call(jt,Ht)&>(Ot,Ht,jt[Ht]);if(nt)for(var Ht of nt(jt))st.call(jt,Ht)&>(Ot,Ht,jt[Ht]);return Ot},Pt=(Ot,jt,Ht)=>new Promise(($t,ye)=>{var Yt=$e=>{try{ce(Ht.next($e))}catch(Ue){ye(Ue)}},Ge=$e=>{try{ce(Ht.throw($e))}catch(Ue){ye(Ue)}},ce=$e=>$e.done?$t($e.value):Promise.resolve($e.value).then(Yt,Ge);ce((Ht=Ht.apply(Ot,jt)).next())});const{Dragger:kt}=zt.default,wt=({classroomList:Ot,dispatch:jt,onOk:Ht})=>{const $t=(0,Ft.useParams)(),[ye]=re.default.useForm(),[Yt,Ge]=(0,At.useState)(),[ce,$e]=(0,At.useState)(!1),Ue={height:100,onRemove:()=>{Ge("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ke=>Pt(void 0,null,function*(){return Ge(Ke),!1})};return(0,At.useEffect)(()=>{ye.setFieldsValue({publish_time:de()(de()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:de()(de()(new Date((0,be.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Nt.createElement(Ae.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Ot.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:ce},onOk:()=>Pt(void 0,null,function*(){ye.submit()}),onCancel:()=>{ye.resetFields(),jt({type:"classroomList/setActionTabs",payload:{}})}},Nt.createElement(re.default,{form:ye,onFinish:Ke=>Pt(void 0,null,function*(){var tn,Tn,ve;if(!(Yt!=null&&Yt.size)){Ut.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}$e(!0);let Zt=new FormData;Zt.append("type",Ot.actionTabs.type),Zt.append("file",Yt);let en;window.location.href.indexOf("exercise")>-1?en=`/api/exercises/${Ot.actionTabs.id}/supplement_score.json`:en=`/api/homework_commons/${Ot.actionTabs.id}/supplement_score.json`;let Kn=yield(0,oe.ZP)(en,{method:"post",body:Zt},!0);$e(!1),(Kn==null?void 0:Kn.status)===0&&(Ht(),ye.resetFields(),jt({type:"classroomList/setActionTabs",payload:{}}),((Tn=(tn=Kn==null?void 0:Kn.data)==null?void 0:tn.fail)==null?void 0:Tn.length)>0&&Ae.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Nt.createElement(ne.default,{pagination:!1,dataSource:(ve=Kn==null?void 0:Kn.data)==null?void 0:ve.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,be.FH)("",De.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Ot.actionTabs.type}`)}}))})},Nt.createElement(re.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Ot.actionTabs.name),Nt.createElement(re.default.Item,{style:{marginBottom:0},label:Nt.createElement("div",null,Nt.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Nt.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Nt.createElement("div",null,Nt.createElement("a",{download:"\u6A21\u7248.xlsx",className:Pe.Z.downloadbutton,href:De.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Ot.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Nt.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Nt.createElement(re.default.Item,{style:{marginBottom:0}},Nt.createElement(kt,mt({},Ue),Nt.createElement("a",{className:Pe.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Nt.createElement("br",null),Nt.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Cn.Z=(0,Ft.connect)(({classroomList:Ot})=>({classroomList:Ot}))(wt)},30738:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return ht}});var At=yt(59301),zt=yt(42203),re=yt(251),Ae=yt(43418),Ut=yt(92832),ne=yt(8591),Ft=yt(95237),De=yt(43604),Pe={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},oe=yt(61186),Re=yt.n(oe),de=yt(58130),be=yt(97267),Nt=yt(59301);const{RangePicker:et}=re.default,nt=({dispatch:st,classroomList:gt,onConfirm:mt})=>{const[Pt,kt]=(0,At.useState)([]),[wt,Ot]=(0,At.useState)([]),[jt,Ht]=(0,At.useState)(""),[$t,ye]=(0,At.useState)([!1,!1]);(0,At.useEffect)(()=>{var ce,$e,Ue,Ke;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((ce=gt.actionTabs)==null?void 0:ce.rangePickerDisabled),($e=gt.actionTabs)!=null&&$e.rangePickerDisabled?ye((Ue=gt.actionTabs)==null?void 0:Ue.rangePickerDisabled):ye([!1,!1]);let tn=gt.actionTabs.data,Tn=(Ke=tn==null?void 0:tn.group_name)==null?void 0:Ke.map((ve,Zt)=>{var en;return{group_id:tn==null?void 0:tn.group_id[Zt],group_name:tn==null?void 0:tn.group_name[Zt],is_admin:tn==null?void 0:tn.is_admin,end_time:tn==null?void 0:tn.end_time,publish_time:Array.isArray(tn==null?void 0:tn.publish_time)?(en=tn==null?void 0:tn.publish_time)==null?void 0:en[0]:tn==null?void 0:tn.publish_time}});Tn&&(kt([...Tn]),Ot([...Tn]))}},[gt.actionTabs]);const Yt=()=>{st({type:"classroomList/setActionTabs",payload:{}}),Ht("")},Ge=ce=>{if(ce){const $e=wt==null?void 0:wt.filter(Ue=>{var Ke,tn;return(tn=(Ke=Ue==null?void 0:Ue.group_name)==null?void 0:Ke.toLowerCase())==null?void 0:tn.includes(ce==null?void 0:ce.toLowerCase())});kt($e)}else kt(wt)};return Nt.createElement(Ae.default,{width:980,title:Nt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Nt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Nt.createElement("span",{className:Pe.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Nt.createElement(Ut.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:jt,onChange:ce=>{Ht(ce.target.value.trim()),Ge(ce.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Yt(),onOk:()=>{var ce;if(wt.some(Ue=>!Ue.end_time||!Ue.publish_time)){ne.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}mt((ce=gt.actionTabs)==null?void 0:ce.index,wt),Yt()}},Nt.createElement("div",{className:Pe.modal_con},Nt.createElement(Ft.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Pt==null?void 0:Pt.length)>0?Pt.map(function(ce,$e){return Nt.createElement(De.Z,{span:24,key:$e},Nt.createElement(Ft.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:$e==(Pt==null?void 0:Pt.length)-1?"0px":"10px"}},Nt.createElement("div",{className:Pe.multiple_select,title:ce==null?void 0:ce.group_name},ce==null?void 0:ce.group_name),Nt.createElement("div",{className:"ml20"},Nt.createElement(et,{size:"large",allowClear:!1,disabled:$t,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:Ue=>{var Ke;return(0,de.Q8)(Ue,(Ke=gt.actionTabs)==null?void 0:Ke.disabledDate)},disabledTime:Ue=>(0,de.d0)(Ue),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Re()((0,de.U6)(),"HH:mm"),Re()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(ce==null?void 0:ce.publish_time)&&[Re()(ce==null?void 0:ce.publish_time),ce!=null&&ce.end_time?Re()(ce==null?void 0:ce.end_time):void 0],onChange:(Ue,Ke)=>{Pt[$e].publish_time=Ke[0],Pt[$e].end_time=Ke[1],kt([...Pt]),wt.forEach(tn=>{tn.group_id===(ce==null?void 0:ce.group_id)&&(tn.publish_time=Ke[0],tn.end_time=Ke[1])}),Ot([...wt])},onCalendarChange:(Ue,Ke,tn)=>{if(Ke!=null&&Ke[0]&&!Ke[1]){const Tn=Re()(Ke[0]).add(7,"days");Pt[$e].publish_time=Ke[0],Pt[$e].end_time=Tn,kt([...Pt]),wt.forEach(ve=>{ve.group_id===(ce==null?void 0:ce.group_id)&&(ve.publish_time=Ke[0],ve.end_time=Tn)}),Ot([...wt])}}})),$t[0]?Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Pt.splice($e,1),kt([...Pt]),wt.forEach((Ue,Ke)=>{Ue.group_id===(ce==null?void 0:ce.group_id)&&wt.splice(Ke,1)}),Ot([...wt])}})))}):Nt.createElement(be.Z,null))))};var ht=(0,zt.connect)(({classroomList:st})=>({classroomList:st}))(nt)},31087:function(On,Cn,yt){"use strict";yt.d(Cn,{AL:function(){return Pt},Iy:function(){return Re},Qv:function(){return Nt},ez:function(){return mt},jb:function(){return de}});var At=yt(32834),zt=yt.n(At),re=yt(11690),Ae=yt.n(re);let Ut=1;function ne(Ht,$t){const ye=Ht.match(/^(\s+)(?:```)/);if(ye===null)return $t;const Yt=ye[1];return $t.split(`
|
|
|
`).map(Ge=>{const ce=Ge.match(/^\s+/);if(ce===null)return Ge;const[$e]=ce;return $e.length>=Yt.length?Ge.slice(Yt.length):Ge}).join(`
|
|
|
`)}let Ft=[],De=["<ul>"];const Pe=new(zt()).Renderer,oe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Re(){Ft.length=0,De=["<ul>"]}const de={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function be(Ht,$t,ye,Yt){if($t>=Ht.length||Ht[$t].level<=ye)return $t;var Ge=Ht[$t];Yt.push("<li><a href='#"+Ut+Ge.anchor+"'>"+Ge.text+"</a>"),$t++;var ce=[];return $t=be(Ht,$t,Ge.level,ce),ce.length>0&&(Yt.push("<ul>"),ce.forEach(function($e){Yt.push($e)}),Yt.push("</ul>")),Yt.push("</li>"),$t=be(Ht,$t,ye,Yt),$t}function Nt(){return be(Ft,0,0,De),De.push("</ul>"),De.join("")}const et={heading(Ht){const $t=oe.exec(Ht);if(Ut+=1,$t)return{type:"heading",raw:$t[0],depth:$t[1].length,text:$t[2]}},fences(Ht){const $t=this.rules.block.fences.exec(Ht);if($t){const ye=$t[0];let Yt=ne(ye,$t[3]||"");const Ge=$t[2]?$t[2].trim():$t[2];if(["latex","katex","math"].indexOf(Ge)>=0){const ce=st(),$e=Yt;Yt=ce,gt[ce]={type:"block",expression:$e}}return{type:"code",raw:ye,lang:Ge,text:Yt}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const st=()=>`__special_katext_id_${ht++}__`;let gt={};function mt(){return gt}function Pt(){ht=0,gt={}}function kt(Ht){return Ht=Ht.replace(nt,($t,ye)=>{const Yt=st();return gt[Yt]={type:"inline",expression:ye},Yt}),Ht}const wt=Pe.listitem;Pe.listitem=function(Ht){return wt(kt(Ht))};const Ot=Pe.paragraph;Pe.paragraph=function(Ht){return Ot(kt(Ht))};const jt=Pe.tablecell;Pe.tablecell=function(Ht,$t){return jt(kt(Ht),$t)},Pe.code=function(Ht,$t,ye){const Yt=($t||"").match(/\S*/)[0];return Yt?["latex","katex","math"].indexOf(Yt)>=0?`<p class='editormd-tex'>${Ht}</p>`:`<pre class="prettyprint linenums"><code class="language-${$t}">${ye?Ht:(0,re.escape)(Ht,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ye?Ht:(0,re.escape)(Ht,!0))+"</code></pre>"},Pe.heading=function(Ht,$t,ye){let Yt=this.options.headerPrefix+ye.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ft.push({anchor:Yt,level:$t,text:Ht}),"<h"+$t+' id="'+Ut+Yt+'">'+Ht+"</h"+$t+">"},zt().setOptions({silent:!0,gfm:!0,pedantic:!1}),zt().use({tokenizer:et,renderer:Pe}),Cn.ZP=zt()},18032:function(On,Cn,yt){"use strict";yt.d(Cn,{rX:function(){return Pt},pW:function(){return kt},gy:function(){return wt},xY:function(){return mt},O5:function(){return gt},tJ:function(){return Nt},o1:function(){return et},Rd:function(){return st}});var At=yt(42203),zt=yt(43418),re=yt(28103),Ae=yt(8591),Ut=yt(2119),ne=yt(58130),Ft=yt(14726),De=yt(25510),Pe="data:image/png;base64,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",oe=yt.p+"static/newqrcode.a8740efb.png",Re=yt(32637),de=yt(59301),be=(Ot,jt,Ht)=>new Promise(($t,ye)=>{var Yt=$e=>{try{ce(Ht.next($e))}catch(Ue){ye(Ue)}},Ge=$e=>{try{ce(Ht.throw($e))}catch(Ue){ye(Ue)}},ce=$e=>$e.done?$t($e.value):Promise.resolve($e.value).then(Yt,Ge);ce((Ht=Ht.apply(Ot,jt)).next())});const Nt=(Ot,jt=!1)=>!!(et(Ot)&&nt(jt)),et=Ot=>(0,Ut.bg)()?!0:(Ot({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=(Ot=!1)=>{var jt;const{user:Ht}=(0,At.getDvaApp)()._store.getState();return(jt=Ht.userInfo)!=null&&jt.profile_completed?!0:(zt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ne.xg)("/account/profile/edit"),ht()}}),!1)},ht=()=>{zt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},st=()=>{zt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:de.createElement("div",{style:{textAlign:"center"}},de.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"),de.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Re}),de.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},gt=()=>{var Ot;const{user:jt}=(0,At.getDvaApp)()._store.getState();return(Ot=jt.userInfo)!=null&&Ot.professional_certification?!0:(zt.default.confirm({title:"\u63D0\u793A",centered:!0,content:de.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,ne.xg)("/account/certification")}}),!1)},mt=()=>(0,Ut.V9)()?!0:(zt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:de.createElement("div",{className:"tc",style:{marginLeft:-38}},de.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),de.createElement("img",{src:oe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pt=(Ot,jt)=>Ot?!0:(zt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:de.createElement("div",null,de.createElement("p",null,jt||"\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"),de.createElement("div",{style:{marginLeft:"110px"}},de.createElement("img",{src:Pe,width:200}),de.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ne.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),kt=Ot=>{zt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:de.createElement("div",null,de.createElement("div",null,de.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"),de.createElement(re.Z,null),de.createElement("p",{style:{color:"#666666",fontSize:12}}," ",de.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 ",de.createElement("a",null,Ot),"\u5929\u3002"),de.createElement("p",{style:{color:"#666666",fontSize:12}}," ",de.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")),de.createElement("div",{style:{textAlign:"center",marginTop:30}},de.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:De,alt:"\u4E8C\u7EF4\u7801",width:160})))})},wt=(Ot,jt="")=>{const{shixunsDetail:{detail:Ht}}=(0,At.getDvaApp)()._store.getState();if((Ht==null?void 0:Ht.public)===2||(Ht==null?void 0:Ht.public)===1||(Ht==null?void 0:Ht.shixun_status)===3){let $t="";return(Ht==null?void 0:Ht.public)===2&&($t="\u5DF2\u516C\u5F00"),(Ht==null?void 0:Ht.public)===1&&($t="\u5F85\u5BA1\u6838"),(Ht==null?void 0:Ht.shixun_status)===3&&($t="\u5DF2\u5173\u95ED"),zt.default.info({centered:!0,icon:de.createElement(Ft.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:de.createElement("div",{className:"tc",style:{marginLeft:-38}},de.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},de.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",$t,"\uFF0C",jt,"\u3002"),de.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),de.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:De,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ht==null?void 0:Ht.shixun_status)===2?(zt.default.confirm({centered:!0,icon:de.createElement(Ft.Z,null),title:"\u63D0\u793A",content:de.createElement("div",null,de.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",jt,"\u3002"),de.createElement("br",null),de.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{zt.default.confirm({width:440,centered:!0,icon:de.createElement(Ft.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:()=>be(void 0,null,function*(){(yield Ot({type:"shixunsDetail/cancelRelease",payload:{id:Ht==null?void 0:Ht.identifier}})).status!==401&&(Ae.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ot({type:"shixunsDetail/getShixunsDetail",payload:{id:Ht==null?void 0:Ht.identifier}}),Ot({type:"practiceSetting/getCommonData",payload:{id:Ht==null?void 0:Ht.identifier}}))})})}}),!0):!1}},50371:function(On,Cn){"use strict";function yt(){const At=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let zt=1;zt<arguments.length;zt++){const re=zt<0||arguments.length<=zt?void 0:arguments[zt];re&&Object.keys(re).forEach(Ae=>{const Ut=re[Ae];Ut!==void 0&&(At[Ae]=Ut)})}return At}Cn.Z=yt},13845:function(On,Cn,yt){"use strict";yt.d(Cn,{F:function(){return At},Z:function(){return zt}});function At(re){return re!=null&&re===re.window}function zt(re,Ae){var Ut,ne;if(typeof window=="undefined")return 0;const Ft=Ae?"scrollTop":"scrollLeft";let De=0;return At(re)?De=re[Ae?"pageYOffset":"pageXOffset"]:re instanceof Document?De=re.documentElement[Ft]:(re instanceof HTMLElement||re)&&(De=re[Ft]),re&&!At(re)&&typeof De!="number"&&(De=(ne=((Ut=re.ownerDocument)!==null&&Ut!==void 0?Ut:re).documentElement)===null||ne===void 0?void 0:ne[Ft]),De}},56762:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return zt}});var At=yt(59301);function zt(){const[,re]=At.useReducer(Ae=>Ae+1,0);return re}},68031:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Ae}});var At=yt(23073);function zt(Ut,ne,Ft,De){const Pe=Ft-ne;return Ut/=De/2,Ut<1?Pe/2*Ut*Ut*Ut+ne:Pe/2*((Ut-=2)*Ut*Ut+2)+ne}var re=yt(13845);function Ae(Ut){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:De,duration:Pe=450}=ne,oe=Ft(),Re=(0,re.Z)(oe,!0),de=Date.now(),be=()=>{const et=Date.now()-de,nt=zt(et>Pe?Pe:et,Re,Ut,Pe);(0,re.F)(oe)?oe.scrollTo(window.pageXOffset,nt):oe instanceof Document||oe.constructor.name==="HTMLDocument"?oe.documentElement.scrollTop=nt:oe.scrollTop=nt,et<Pe?(0,At.Z)(be):typeof De=="function"&&De()};(0,At.Z)(be)}},24905:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return Ot}});var At=yt(92310),zt=yt.n(At),re=yt(5630),Ae=yt(59301),Ut=yt(36355),ne=yt(1684),Ft=yt(32441),Pe=Ae.createContext(null),oe=yt(98447),Re=yt(14088),de=yt(4572),be=function(jt,Ht){var $t={};for(var ye in jt)Object.prototype.hasOwnProperty.call(jt,ye)&&Ht.indexOf(ye)<0&&($t[ye]=jt[ye]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ye=Object.getOwnPropertySymbols(jt);Yt<ye.length;Yt++)Ht.indexOf(ye[Yt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ye[Yt])&&($t[ye[Yt]]=jt[ye[Yt]]);return $t};const Nt=(jt,Ht)=>{var $t;const{prefixCls:ye,className:Yt,rootClassName:Ge,children:ce,indeterminate:$e=!1,style:Ue,onMouseEnter:Ke,onMouseLeave:tn,skipGroup:Tn=!1,disabled:ve}=jt,Zt=be(jt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:en,direction:Kn,checkbox:ii}=Ae.useContext(Ut.E_),Be=Ae.useContext(Pe),{isFormItemInput:on}=Ae.useContext(Ft.aM),un=Ae.useContext(ne.Z),Jn=($t=(Be==null?void 0:Be.disabled)||ve)!==null&&$t!==void 0?$t:un,nn=Ae.useRef(Zt.value);Ae.useEffect(()=>{Be==null||Be.registerValue(Zt.value)},[]),Ae.useEffect(()=>{if(!Tn)return Zt.value!==nn.current&&(Be==null||Be.cancelValue(nn.current),Be==null||Be.registerValue(Zt.value),nn.current=Zt.value),()=>Be==null?void 0:Be.cancelValue(Zt.value)},[Zt.value]);const Gn=en("checkbox",ye),[pe,Xn]=(0,oe.ZP)(Gn),oi=Object.assign({},Zt);Be&&!Tn&&(oi.onChange=function(){Zt.onChange&&Zt.onChange.apply(Zt,arguments),Be.toggleOption&&Be.toggleOption({label:ce,value:Zt.value})},oi.name=Be.name,oi.checked=Be.value.includes(Zt.value));const te=zt()(`${Gn}-wrapper`,{[`${Gn}-rtl`]:Kn==="rtl",[`${Gn}-wrapper-checked`]:oi.checked,[`${Gn}-wrapper-disabled`]:Jn,[`${Gn}-wrapper-in-form-item`]:on},ii==null?void 0:ii.className,Yt,Ge,Xn),bt=zt()({[`${Gn}-indeterminate`]:$e},de.A,Xn),xt=$e?"mixed":void 0;return pe(Ae.createElement(Re.Z,{component:"Checkbox",disabled:Jn},Ae.createElement("label",{className:te,style:Object.assign(Object.assign({},ii==null?void 0:ii.style),Ue),onMouseEnter:Ke,onMouseLeave:tn},Ae.createElement(re.Z,Object.assign({"aria-checked":xt},oi,{prefixCls:Gn,className:bt,disabled:Jn,ref:Ht})),ce!==void 0&&Ae.createElement("span",null,ce))))};var nt=Ae.forwardRef(Nt),ht=yt(26390),st=yt(64002),gt=function(jt,Ht){var $t={};for(var ye in jt)Object.prototype.hasOwnProperty.call(jt,ye)&&Ht.indexOf(ye)<0&&($t[ye]=jt[ye]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ye=Object.getOwnPropertySymbols(jt);Yt<ye.length;Yt++)Ht.indexOf(ye[Yt])<0&&Object.prototype.propertyIsEnumerable.call(jt,ye[Yt])&&($t[ye[Yt]]=jt[ye[Yt]]);return $t};const mt=(jt,Ht)=>{const{defaultValue:$t,children:ye,options:Yt=[],prefixCls:Ge,className:ce,rootClassName:$e,style:Ue,onChange:Ke}=jt,tn=gt(jt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Tn,direction:ve}=Ae.useContext(Ut.E_),[Zt,en]=Ae.useState(tn.value||$t||[]),[Kn,ii]=Ae.useState([]);Ae.useEffect(()=>{"value"in tn&&en(tn.value||[])},[tn.value]);const Be=Ae.useMemo(()=>Yt.map(Tt=>typeof Tt=="string"||typeof Tt=="number"?{label:Tt,value:Tt}:Tt),[Yt]),on=Tt=>{ii(Bt=>Bt.filter(St=>St!==Tt))},un=Tt=>{ii(Bt=>[].concat((0,ht.Z)(Bt),[Tt]))},Jn=Tt=>{const Bt=Zt.indexOf(Tt.value),St=(0,ht.Z)(Zt);Bt===-1?St.push(Tt.value):St.splice(Bt,1),"value"in tn||en(St),Ke==null||Ke(St.filter(he=>Kn.includes(he)).sort((he,Le)=>{const Gt=Be.findIndex(xe=>xe.value===he),ee=Be.findIndex(xe=>xe.value===Le);return Gt-ee}))},nn=Tn("checkbox",Ge),Gn=`${nn}-group`,[pe,Xn]=(0,oe.ZP)(nn),oi=(0,st.Z)(tn,["value","disabled"]),te=Yt.length?Be.map(Tt=>Ae.createElement(nt,{prefixCls:nn,key:Tt.value.toString(),disabled:"disabled"in Tt?Tt.disabled:tn.disabled,value:Tt.value,checked:Zt.includes(Tt.value),onChange:Tt.onChange,className:`${Gn}-item`,style:Tt.style,title:Tt.title},Tt.label)):ye,bt={toggleOption:Jn,value:Zt,disabled:tn.disabled,name:tn.name,registerValue:un,cancelValue:on},xt=zt()(Gn,{[`${Gn}-rtl`]:ve==="rtl"},ce,$e,Xn);return pe(Ae.createElement("div",Object.assign({className:xt,style:Ue},oi,{ref:Ht}),Ae.createElement(Pe.Provider,{value:bt},te)))},Pt=Ae.forwardRef(mt);var kt=Ae.memo(Pt);const wt=nt;wt.Group=kt,wt.__ANT_CHECKBOX=!0;var Ot=wt},98447:function(On,Cn,yt){"use strict";yt.d(Cn,{C2:function(){return Ut}});var At=yt(17313),zt=yt(37613),re=yt(83116);const Ae=ne=>{const{checkboxCls:Ft}=ne,De=`${Ft}-wrapper`;return[{[`${Ft}-group`]:Object.assign(Object.assign({},(0,At.Wf)(ne)),{display:"inline-flex",flexWrap:"wrap",columnGap:ne.marginXS,[`> ${ne.antCls}-row`]:{flex:1}}),[De]:Object.assign(Object.assign({},(0,At.Wf)(ne)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${De}`]:{marginInlineStart:0},[`&${De}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ft]:Object.assign(Object.assign({},(0,At.Wf)(ne)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ne.borderRadiusSM,alignSelf:"center",[`${Ft}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ft}-inner`]:Object.assign({},(0,At.oN)(ne))},[`${Ft}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ne.checkboxSize,height:ne.checkboxSize,direction:"ltr",backgroundColor:ne.colorBgContainer,border:`${ne.lineWidth}px ${ne.lineType} ${ne.colorBorder}`,borderRadius:ne.borderRadiusSM,borderCollapse:"separate",transition:`all ${ne.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ne.checkboxSize/14*5,height:ne.checkboxSize/14*8,border:`${ne.lineWidthBold}px solid ${ne.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ne.motionDurationFast} ${ne.motionEaseInBack}, opacity ${ne.motionDurationFast}`}},"& + span":{paddingInlineStart:ne.paddingXS,paddingInlineEnd:ne.paddingXS}})},{[`
|
|
|
${De}:not(${De}-disabled),
|
|
|
${Ft}:not(${Ft}-disabled)
|
|
|
`]:{[`&:hover ${Ft}-inner`]:{borderColor:ne.colorPrimary}},[`${De}:not(${De}-disabled)`]:{[`&:hover ${Ft}-checked:not(${Ft}-disabled) ${Ft}-inner`]:{backgroundColor:ne.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ft}-checked:not(${Ft}-disabled):after`]:{borderColor:ne.colorPrimaryHover}}},{[`${Ft}-checked`]:{[`${Ft}-inner`]:{backgroundColor:ne.colorPrimary,borderColor:ne.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ne.motionDurationMid} ${ne.motionEaseOutBack} ${ne.motionDurationFast}`}}},[`
|
|
|
${De}-checked:not(${De}-disabled),
|
|
|
${Ft}-checked:not(${Ft}-disabled)
|
|
|
`]:{[`&:hover ${Ft}-inner`]:{backgroundColor:ne.colorPrimaryHover,borderColor:"transparent"}}},{[Ft]:{"&-indeterminate":{[`${Ft}-inner`]:{backgroundColor:ne.colorBgContainer,borderColor:ne.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ne.fontSizeLG/2,height:ne.fontSizeLG/2,backgroundColor:ne.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${De}-disabled`]:{cursor:"not-allowed"},[`${Ft}-disabled`]:{[`&, ${Ft}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ft}-inner`]:{background:ne.colorBgContainerDisabled,borderColor:ne.colorBorder,"&:after":{borderColor:ne.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ne.colorTextDisabled},[`&${Ft}-indeterminate ${Ft}-inner::after`]:{background:ne.colorTextDisabled}}}]};function Ut(ne,Ft){const De=(0,zt.TS)(Ft,{checkboxCls:`.${ne}`,checkboxSize:Ft.controlInteractiveSize});return[Ae(De)]}Cn.ZP=(0,re.Z)("Checkbox",(ne,Ft)=>{let{prefixCls:De}=Ft;return[Ut(De,ne)]})},93891:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(36355),re=yt(64165);const Ae=Ut=>{const{componentName:ne}=Ut,{getPrefixCls:Ft}=(0,At.useContext)(zt.E_),De=Ft("empty");switch(ne){case"Table":case"List":return At.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return At.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE,className:`${De}-small`});default:return At.createElement(re.Z,null)}};Cn.Z=Ae},251:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return Us}});var At=yt(61186),zt=yt.n(At),re=yt(51395),Ae=yt(90111),Ut=yt.n(Ae),ne=yt(58319),Ft=yt.n(ne),De=yt(23250),Pe=yt.n(De),oe=yt(74959),Re=yt.n(oe),de=yt(10238),be=yt.n(de),Nt=yt(33656),et=yt.n(Nt);zt().extend(et()),zt().extend(be()),zt().extend(Ut()),zt().extend(Ft()),zt().extend(Pe()),zt().extend(Re()),zt().extend(function(It,Kt){var _t=Kt.prototype,ze=_t.format;_t.format=function(dn){var mn=(dn||"").replace("Wo","wo");return ze.bind(this)(mn)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ht=function(Kt){var _t=nt[Kt];return _t||Kt.split("_")[0]},st=function(){(0,re.ET)(!1,"Not match any format. Please help to fire a issue about this.")},gt={getNow:function(){return zt()()},getFixedDate:function(Kt){return zt()(Kt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Kt){return Kt.endOf("month")},getWeekDay:function(Kt){var _t=Kt.locale("en");return _t.weekday()+_t.localeData().firstDayOfWeek()},getYear:function(Kt){return Kt.year()},getMonth:function(Kt){return Kt.month()},getDate:function(Kt){return Kt.date()},getHour:function(Kt){return Kt.hour()},getMinute:function(Kt){return Kt.minute()},getSecond:function(Kt){return Kt.second()},addYear:function(Kt,_t){return Kt.add(_t,"year")},addMonth:function(Kt,_t){return Kt.add(_t,"month")},addDate:function(Kt,_t){return Kt.add(_t,"day")},setYear:function(Kt,_t){return Kt.year(_t)},setMonth:function(Kt,_t){return Kt.month(_t)},setDate:function(Kt,_t){return Kt.date(_t)},setHour:function(Kt,_t){return Kt.hour(_t)},setMinute:function(Kt,_t){return Kt.minute(_t)},setSecond:function(Kt,_t){return Kt.second(_t)},isAfter:function(Kt,_t){return Kt.isAfter(_t)},isValidate:function(Kt){return Kt.isValid()},locale:{getWeekFirstDay:function(Kt){return zt()().locale(ht(Kt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Kt,_t){return _t.locale(ht(Kt)).weekday(0)},getWeek:function(Kt,_t){return _t.locale(ht(Kt)).week()},getShortWeekDays:function(Kt){return zt()().locale(ht(Kt)).localeData().weekdaysMin()},getShortMonths:function(Kt){return zt()().locale(ht(Kt)).localeData().monthsShort()},format:function(Kt,_t,ze){return _t.locale(ht(Kt)).format(ze)},parse:function(Kt,_t,ze){for(var We=ht(Kt),dn=0;dn<ze.length;dn+=1){var mn=ze[dn],Zn=_t;if(mn.includes("wo")||mn.includes("Wo")){for(var Qn=Zn.split("-")[0],di=Zn.split("-")[1],Ri=zt()(Qn,"YYYY").startOf("year").locale(We),ui=0;ui<=52;ui+=1){var Mi=Ri.add(ui,"week");if(Mi.format("Wo")===di)return Mi}return st(),null}var si=zt()(Zn,mn,!0).locale(We);if(si.isValid())return si}return _t&&st(),null}}},mt=gt,Pt=yt(53487),kt=yt(5891),wt=yt(59301),Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},jt=Ot,Ht=yt(31533),$t=function(Kt,_t){return wt.createElement(Ht.Z,(0,kt.Z)({},Kt,{ref:_t,icon:jt}))},ye=wt.forwardRef($t),Yt=ye,Ge={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"},ce=Ge,$e=function(Kt,_t){return wt.createElement(Ht.Z,(0,kt.Z)({},Kt,{ref:_t,icon:ce}))},Ue=wt.forwardRef($e),Ke=Ue,tn=yt(37637),Tn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ve=Tn,Zt=function(Kt,_t){return wt.createElement(Ht.Z,(0,kt.Z)({},Kt,{ref:_t,icon:ve}))},en=wt.forwardRef(Zt),Kn=en,ii=yt(92310),Be=yt.n(ii),on=yt(79545),un=yt(68550),Jn=yt(21882),nn=yt(17928),Gn=yt(7711),pe=yt(80962),Xn=yt(57259),oi=yt(29043),te=yt(35788),bt=yt(36994),xt=yt(79722),Tt=yt(51346),Bt=10,St=Bt*10,he=7;function Le(It,Kt){if(!It&&!Kt)return!0;if(!It||!Kt)return!1}function Gt(It,Kt,_t){var ze=Le(Kt,_t);if(typeof ze=="boolean")return ze;var We=Math.floor(It.getYear(Kt)/10),dn=Math.floor(It.getYear(_t)/10);return We===dn}function ee(It,Kt,_t){var ze=Le(Kt,_t);return typeof ze=="boolean"?ze:It.getYear(Kt)===It.getYear(_t)}function xe(It,Kt){var _t=Math.floor(It.getMonth(Kt)/3);return _t+1}function we(It,Kt,_t){var ze=Le(Kt,_t);return typeof ze=="boolean"?ze:ee(It,Kt,_t)&&xe(It,Kt)===xe(It,_t)}function se(It,Kt,_t){var ze=Le(Kt,_t);return typeof ze=="boolean"?ze:ee(It,Kt,_t)&&It.getMonth(Kt)===It.getMonth(_t)}function ke(It,Kt,_t){var ze=Le(Kt,_t);return typeof ze=="boolean"?ze:It.getYear(Kt)===It.getYear(_t)&&It.getMonth(Kt)===It.getMonth(_t)&&It.getDate(Kt)===It.getDate(_t)}function vn(It,Kt,_t){var ze=Le(Kt,_t);return typeof ze=="boolean"?ze:It.getHour(Kt)===It.getHour(_t)&&It.getMinute(Kt)===It.getMinute(_t)&&It.getSecond(Kt)===It.getSecond(_t)}function cn(It,Kt,_t,ze){var We=Le(_t,ze);return typeof We=="boolean"?We:ee(It,_t,ze)&&It.locale.getWeek(Kt,_t)===It.locale.getWeek(Kt,ze)}function Je(It,Kt,_t){return ke(It,Kt,_t)&&vn(It,Kt,_t)}function hn(It,Kt,_t,ze){return!Kt||!_t||!ze?!1:!ke(It,Kt,ze)&&!ke(It,_t,ze)&&It.isAfter(ze,Kt)&&It.isAfter(_t,ze)}function Vn(It,Kt,_t){var ze=Kt.locale.getWeekFirstDay(It),We=Kt.setDate(_t,1),dn=Kt.getWeekDay(We),mn=Kt.addDate(We,ze-dn);return Kt.getMonth(mn)===Kt.getMonth(_t)&&Kt.getDate(mn)>1&&(mn=Kt.addDate(mn,-7)),mn}function Se(It,Kt,_t){var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Kt){case"year":return _t.addYear(It,ze*10);case"quarter":case"month":return _t.addYear(It,ze);default:return _t.addMonth(It,ze)}}function qe(It,Kt){var _t=Kt.generateConfig,ze=Kt.locale,We=Kt.format;return typeof We=="function"?We(It):_t.locale.format(ze.locale,It,We)}function Qe(It,Kt){var _t=Kt.generateConfig,ze=Kt.locale,We=Kt.formatList;return!It||typeof We[0]=="function"?null:_t.locale.parse(ze.locale,It,We)}function Nn(It){var Kt=It.cellDate,_t=It.mode,ze=It.disabledDate,We=It.generateConfig;if(!ze)return!1;var dn=function(Ji,zn,Ai){for(var Qi=zn;Qi<=Ai;){var jr=void 0;switch(Ji){case"date":{if(jr=We.setDate(Kt,Qi),!ze(jr))return!1;break}case"month":{if(jr=We.setMonth(Kt,Qi),!Nn({cellDate:jr,mode:"month",generateConfig:We,disabledDate:ze}))return!1;break}case"year":{if(jr=We.setYear(Kt,Qi),!Nn({cellDate:jr,mode:"year",generateConfig:We,disabledDate:ze}))return!1;break}}Qi+=1}return!0};switch(_t){case"date":case"week":return ze(Kt);case"month":{var mn=1,Zn=We.getDate(We.getEndDate(Kt));return dn("date",mn,Zn)}case"quarter":{var Qn=Math.floor(We.getMonth(Kt)/3)*3,di=Qn+2;return dn("month",Qn,di)}case"year":return dn("month",0,11);case"decade":{var Ri=We.getYear(Kt),ui=Math.floor(Ri/Bt)*Bt,Mi=ui+Bt-1;return dn("year",ui,Mi)}}}function hi(It,Kt){var _t=Kt.formatList,ze=Kt.generateConfig,We=Kt.locale;return(0,xt.Z)(function(){if(!It)return[[""],""];for(var dn="",mn=[],Zn=0;Zn<_t.length;Zn+=1){var Qn=_t[Zn],di=qe(It,{generateConfig:ze,locale:We,format:Qn});mn.push(di),Zn===0&&(dn=di)}return[mn,dn]},[It,_t,We],function(dn,mn){return!Je(ze,dn[0],mn[0])||!(0,Tt.Z)(dn[1],mn[1],!0)||!(0,Tt.Z)(dn[2],mn[2],!0)})}function mi(It,Kt){var _t=Kt.formatList,ze=Kt.generateConfig,We=Kt.locale,dn=(0,wt.useState)(null),mn=(0,oi.Z)(dn,2),Zn=mn[0],Qn=mn[1],di=(0,wt.useRef)(null);function Ri(Ai){var Qi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(di.current),Qi){Qn(Ai);return}di.current=requestAnimationFrame(function(){Qn(Ai)})}var ui=hi(Zn,{formatList:_t,generateConfig:ze,locale:We}),Mi=(0,oi.Z)(ui,2),si=Mi[1];function Ji(Ai){Ri(Ai)}function zn(){var Ai=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ri(null,Ai)}return(0,wt.useEffect)(function(){zn(!0)},[It]),(0,wt.useEffect)(function(){return function(){return cancelAnimationFrame(di.current)}},[]),[si,Ji,zn]}var gi=yt(85108),Pi=yt(23073),_i=yt(26390),vr=yt(48886),gr=new Map;function fr(It,Kt){var _t;function ze(){(0,vr.Z)(It)?Kt():_t=(0,Pi.Z)(function(){ze()})}return ze(),function(){Pi.Z.cancel(_t)}}function eo(It,Kt,_t){if(gr.get(It)&&cancelAnimationFrame(gr.get(It)),_t<=0){gr.set(It,requestAnimationFrame(function(){It.scrollTop=Kt}));return}var ze=Kt-It.scrollTop,We=ze/_t*10;gr.set(It,requestAnimationFrame(function(){It.scrollTop+=We,It.scrollTop!==Kt&&eo(It,Kt,_t-10)}))}function Jr(It,Kt){var _t=Kt.onLeftRight,ze=Kt.onCtrlLeftRight,We=Kt.onUpDown,dn=Kt.onPageUpDown,mn=Kt.onEnter,Zn=It.which,Qn=It.ctrlKey,di=It.metaKey;switch(Zn){case gi.Z.LEFT:if(Qn||di){if(ze)return ze(-1),!0}else if(_t)return _t(-1),!0;break;case gi.Z.RIGHT:if(Qn||di){if(ze)return ze(1),!0}else if(_t)return _t(1),!0;break;case gi.Z.UP:if(We)return We(-1),!0;break;case gi.Z.DOWN:if(We)return We(1),!0;break;case gi.Z.PAGE_UP:if(dn)return dn(-1),!0;break;case gi.Z.PAGE_DOWN:if(dn)return dn(1),!0;break;case gi.Z.ENTER:if(mn)return mn(),!0;break}return!1}function Xi(It,Kt,_t,ze){var We=It;if(!We)switch(Kt){case"time":We=ze?"hh:mm:ss a":"HH:mm:ss";break;case"week":We="gggg-wo";break;case"month":We="YYYY-MM";break;case"quarter":We="YYYY-[Q]Q";break;case"year":We="YYYY";break;default:We=_t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return We}function $r(It,Kt,_t){var ze=It==="time"?8:10,We=typeof Kt=="function"?Kt(_t.getNow()).length:Kt.length;return Math.max(ze,We)+2}var Ki=null,Lt=new Set;function li(It){return!Ki&&typeof window!="undefined"&&window.addEventListener&&(Ki=function(_t){(0,_i.Z)(Lt).forEach(function(ze){ze(_t)})},window.addEventListener("mousedown",Ki)),Lt.add(It),function(){Lt.delete(It),Lt.size===0&&(window.removeEventListener("mousedown",Ki),Ki=null)}}function vi(It){var Kt=It.target;if(It.composed&&Kt.shadowRoot){var _t;return((_t=It.composedPath)===null||_t===void 0?void 0:_t.call(It)[0])||Kt}return Kt}var Lr=function(Kt){return Kt==="month"||Kt==="date"?"year":Kt},hr=function(Kt){return Kt==="date"?"month":Kt},qi=function(Kt){return Kt==="month"||Kt==="date"?"quarter":Kt},Zr=function(Kt){return Kt==="date"?"week":Kt},Gr={year:Lr,month:hr,quarter:qi,week:Zr,time:null,date:null};function Ln(It,Kt){return It.some(function(_t){return _t&&_t.contains(Kt)})}function fn(It){var Kt=It.open,_t=It.value,ze=It.isClickOutside,We=It.triggerOpen,dn=It.forwardKeyDown,mn=It.onKeyDown,Zn=It.blurToCancel,Qn=It.onSubmit,di=It.onCancel,Ri=It.onFocus,ui=It.onBlur,Mi=It.changeOnBlur,si=(0,wt.useState)(!1),Ji=(0,oi.Z)(si,2),zn=Ji[0],Ai=Ji[1],Qi=(0,wt.useState)(!1),jr=(0,oi.Z)(Qi,2),Nr=jr[0],Yr=jr[1],Ur=(0,wt.useRef)(!1),Hr=(0,wt.useRef)(!1),ji=(0,wt.useRef)(!1),Yo={onMouseDown:function(){Ai(!0),We(!0)},onKeyDown:function(ea){var ka=function(){ji.current=!0};if(mn(ea,ka),!ji.current){switch(ea.which){case gi.Z.ENTER:{Kt?Qn()!==!1&&Ai(!0):We(!0),ea.preventDefault();return}case gi.Z.TAB:{zn&&Kt&&!ea.shiftKey?(Ai(!1),ea.preventDefault()):!zn&&Kt&&!dn(ea)&&ea.shiftKey&&(Ai(!0),ea.preventDefault());return}case gi.Z.ESC:{Ai(!0),di();return}}!Kt&&![gi.Z.SHIFT].includes(ea.which)?We(!0):zn||dn(ea)}},onFocus:function(ea){Ai(!0),Yr(!0),Ri&&Ri(ea)},onBlur:function(ea){if(Ur.current||!ze(document.activeElement)){Ur.current=!1;return}Zn?setTimeout(function(){for(var ka=document,La=ka.activeElement;La&&La.shadowRoot;)La=La.shadowRoot.activeElement;ze(La)&&di()},0):Kt&&(We(!1),Hr.current&&Qn()),Yr(!1),ui==null||ui(ea)}};return(0,wt.useEffect)(function(){Hr.current=!1},[Kt]),(0,wt.useEffect)(function(){Hr.current=!0},[_t]),(0,wt.useEffect)(function(){return li(function(zo){var ea=vi(zo),ka=ze(ea);Kt&&(ka?!Mi&&(!Nr||ka)&&We(!1):(Ur.current=!0,(0,Pi.Z)(function(){Ur.current=!1})))})}),[Yo,{focused:Nr,typing:zn}]}function Ze(It,Kt){return wt.useMemo(function(){return It||(Kt?((0,re.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Kt).map(function(_t){var ze=(0,oi.Z)(_t,2),We=ze[0],dn=ze[1];return{label:We,value:dn}})):[])},[It,Kt])}var fe=yt(28800);function Sn(It){var Kt=It.valueTexts,_t=It.onTextChange,ze=wt.useState(""),We=(0,oi.Z)(ze,2),dn=We[0],mn=We[1],Zn=wt.useRef([]);Zn.current=Kt;function Qn(Ri){mn(Ri),_t(Ri)}function di(){mn(Zn.current[0])}return(0,fe.Z)(function(){Kt.every(function(Ri){return Ri!==dn})&&di()},[Kt.join("||")]),[dn,Qn,di]}var In=wt.createContext({}),Fe=In,ue=yt(80665);function pn(It){var Kt=It.cellRender,_t=It.monthCellRender,ze=It.dateRender,We=wt.useMemo(function(){if(Kt)return Kt;if(!(!_t&&!ze))return function(dn,mn){var Zn=dn;return ze&&mn.type==="date"?ze(Zn,mn.today):_t&&mn.type==="month"?_t(Zn,mn.locale):mn.originNode}},[Kt,_t,ze]);return We}function Un(It,Kt){for(var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ze=String(It);ze.length<Kt;)ze="".concat(_t).concat(It);return ze}var Oi=function(){for(var Kt=arguments.length,_t=new Array(Kt),ze=0;ze<Kt;ze++)_t[ze]=arguments[ze];return _t};function Pn(It){return It==null?[]:Array.isArray(It)?It:[It]}function Ce(It,Kt){return It?It[Kt]:null}function Rn(It,Kt,_t){var ze=[Ce(It,0),Ce(It,1)];return ze[_t]=typeof Kt=="function"?Kt(ze[_t]):Kt,!ze[0]&&!ze[1]?null:ze}function pi(It){return typeof It=="function"?It():It}function Bi(It){var Kt=It.cellPrefixCls,_t=It.generateConfig,ze=It.rangedValue,We=It.hoverRangedValue,dn=It.isInView,mn=It.isSameCell,Zn=It.offsetCell,Qn=It.today,di=It.value;function Ri(ui){var Mi,si=Zn(ui,-1),Ji=Zn(ui,1),zn=Ce(ze,0),Ai=Ce(ze,1),Qi=Ce(We,0),jr=Ce(We,1),Nr=hn(_t,Qi,jr,ui);function Yr(ea){return mn(zn,ea)}function Ur(ea){return mn(Ai,ea)}var Hr=mn(Qi,ui),ji=mn(jr,ui),Yo=(Nr||ji)&&(!dn(si)||Ur(si)),zo=(Nr||Hr)&&(!dn(Ji)||Yr(Ji));return Mi={},(0,pe.Z)(Mi,"".concat(Kt,"-in-view"),dn(ui)),(0,pe.Z)(Mi,"".concat(Kt,"-in-range"),hn(_t,zn,Ai,ui)),(0,pe.Z)(Mi,"".concat(Kt,"-range-start"),Yr(ui)),(0,pe.Z)(Mi,"".concat(Kt,"-range-end"),Ur(ui)),(0,pe.Z)(Mi,"".concat(Kt,"-range-start-single"),Yr(ui)&&!Ai),(0,pe.Z)(Mi,"".concat(Kt,"-range-end-single"),Ur(ui)&&!zn),(0,pe.Z)(Mi,"".concat(Kt,"-range-start-near-hover"),Yr(ui)&&(mn(si,Qi)||hn(_t,Qi,jr,si))),(0,pe.Z)(Mi,"".concat(Kt,"-range-end-near-hover"),Ur(ui)&&(mn(Ji,jr)||hn(_t,Qi,jr,Ji))),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover"),Nr),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-start"),Hr),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-end"),ji),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-edge-start"),Yo),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-edge-end"),zo),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-edge-start-near-range"),Yo&&mn(si,Ai)),(0,pe.Z)(Mi,"".concat(Kt,"-range-hover-edge-end-near-range"),zo&&mn(Ji,zn)),(0,pe.Z)(Mi,"".concat(Kt,"-today"),mn(Qn,ui)),(0,pe.Z)(Mi,"".concat(Kt,"-selected"),mn(di,ui)),Mi}return Ri}var je=wt.createContext({}),yn=je;function He(It,Kt,_t,ze,We){var dn=It.setHour(Kt,_t);return dn=It.setMinute(dn,ze),dn=It.setSecond(dn,We),dn}function an(It,Kt,_t){if(!_t)return Kt;var ze=Kt;return ze=It.setHour(ze,It.getHour(_t)),ze=It.setMinute(ze,It.getMinute(_t)),ze=It.setSecond(ze,It.getSecond(_t)),ze}function gn(It,Kt,_t,ze,We,dn){var mn=Math.floor(It/ze)*ze;if(mn<It)return[mn,60-We,60-dn];var Zn=Math.floor(Kt/We)*We;if(Zn<Kt)return[mn,Zn,60-dn];var Qn=Math.floor(_t/dn)*dn;return[mn,Zn,Qn]}function sn(It,Kt){var _t=It.getYear(Kt),ze=It.getMonth(Kt)+1,We=It.getEndDate(It.getFixedDate("".concat(_t,"-").concat(ze,"-01"))),dn=It.getDate(We),mn=ze<10?"0".concat(ze):"".concat(ze);return"".concat(_t,"-").concat(mn,"-").concat(dn)}function bn(It){for(var Kt=It.prefixCls,_t=It.disabledDate,ze=It.onSelect,We=It.picker,dn=It.rowNum,mn=It.colNum,Zn=It.prefixColumn,Qn=It.rowClassName,di=It.baseDate,Ri=It.getCellClassName,ui=It.getCellText,Mi=It.getCellNode,si=It.getCellDate,Ji=It.generateConfig,zn=It.titleCell,Ai=It.headerCells,Qi=wt.useContext(Fe),jr=Qi.onDateMouseEnter,Nr=Qi.onDateMouseLeave,Yr=Qi.mode,Ur="".concat(Kt,"-cell"),Hr=[],ji=0;ji<dn;ji+=1){for(var Yo=[],zo=void 0,ea=function(){var Sa,ts=ji*mn+ka,ma=si(di,ts),ra=Nn({cellDate:ma,mode:Yr,disabledDate:_t,generateConfig:Ji});ka===0&&(zo=ma,Zn&&Yo.push(Zn(zo)));var xa=zn&&zn(ma),Ua=wt.createElement("div",{className:"".concat(Ur,"-inner")},ui(ma));Yo.push(wt.createElement("td",{key:ka,title:xa,className:Be()(Ur,(0,Xn.Z)((Sa={},(0,pe.Z)(Sa,"".concat(Ur,"-disabled"),ra),(0,pe.Z)(Sa,"".concat(Ur,"-start"),ui(ma)===1||We==="year"&&Number(xa)%10===0),(0,pe.Z)(Sa,"".concat(Ur,"-end"),xa===sn(Ji,ma)||We==="year"&&Number(xa)%10===9),Sa),Ri(ma))),onClick:function(){ra||ze(ma)},onMouseEnter:function(){!ra&&jr&&jr(ma)},onMouseLeave:function(){!ra&&Nr&&Nr(ma)}},Mi?Mi(ma,Ua):Ua))},ka=0;ka<mn;ka+=1)ea();Hr.push(wt.createElement("tr",{key:ji,className:Qn&&Qn(zo)},Yo))}return wt.createElement("div",{className:"".concat(Kt,"-body")},wt.createElement("table",{className:"".concat(Kt,"-content")},Ai&&wt.createElement("thead",null,wt.createElement("tr",null,Ai)),wt.createElement("tbody",null,Hr)))}function Fn(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.prefixColumn,We=It.locale,dn=It.rowCount,mn=It.viewDate,Zn=It.value,Qn=It.cellRender,di=It.isSameCell,Ri=wt.useContext(yn),ui=Ri.rangedValue,Mi=Ri.hoverRangedValue,si=Vn(We.locale,_t,mn),Ji="".concat(Kt,"-cell"),zn=_t.locale.getWeekFirstDay(We.locale),Ai=_t.getNow(),Qi=[],jr=We.shortWeekDays||(_t.locale.getShortWeekDays?_t.locale.getShortWeekDays(We.locale):[]);ze&&Qi.push(wt.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Nr=0;Nr<he;Nr+=1)Qi.push(wt.createElement("th",{key:Nr},jr[(Nr+zn)%he]));var Yr=Bi({cellPrefixCls:Ji,today:Ai,value:Zn,generateConfig:_t,rangedValue:ze?null:ui,hoverRangedValue:ze?null:Mi,isSameCell:di||function(Hr,ji){return ke(_t,Hr,ji)},isInView:function(ji){return se(_t,ji,mn)},offsetCell:function(ji,Yo){return _t.addDate(ji,Yo)}}),Ur=Qn?function(Hr,ji){return Qn(Hr,{originNode:ji,today:Ai,type:"date",locale:We})}:void 0;return wt.createElement(bn,(0,kt.Z)({},It,{rowNum:dn,colNum:he,baseDate:si,getCellNode:Ur,getCellText:_t.getDate,getCellClassName:Yr,getCellDate:_t.addDate,titleCell:function(ji){return qe(ji,{locale:We,format:"YYYY-MM-DD",generateConfig:_t})},headerCells:Qi}))}var Wn=Fn,qn={visibility:"hidden"};function Bn(It){var Kt=It.prefixCls,_t=It.prevIcon,ze=_t===void 0?"\u2039":_t,We=It.nextIcon,dn=We===void 0?"\u203A":We,mn=It.superPrevIcon,Zn=mn===void 0?"\xAB":mn,Qn=It.superNextIcon,di=Qn===void 0?"\xBB":Qn,Ri=It.onSuperPrev,ui=It.onSuperNext,Mi=It.onPrev,si=It.onNext,Ji=It.children,zn=wt.useContext(Fe),Ai=zn.hideNextBtn,Qi=zn.hidePrevBtn;return wt.createElement("div",{className:Kt},Ri&&wt.createElement("button",{type:"button",onClick:Ri,tabIndex:-1,className:"".concat(Kt,"-super-prev-btn"),style:Qi?qn:{}},Zn),Mi&&wt.createElement("button",{type:"button",onClick:Mi,tabIndex:-1,className:"".concat(Kt,"-prev-btn"),style:Qi?qn:{}},ze),wt.createElement("div",{className:"".concat(Kt,"-view")},Ji),si&&wt.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Kt,"-next-btn"),style:Ai?qn:{}},dn),ui&&wt.createElement("button",{type:"button",onClick:ui,tabIndex:-1,className:"".concat(Kt,"-super-next-btn"),style:Ai?qn:{}},di))}var ai=Bn;function Wi(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.locale,We=It.viewDate,dn=It.onNextMonth,mn=It.onPrevMonth,Zn=It.onNextYear,Qn=It.onPrevYear,di=It.onYearClick,Ri=It.onMonthClick,ui=wt.useContext(Fe),Mi=ui.hideHeader;if(Mi)return null;var si="".concat(Kt,"-header"),Ji=ze.shortMonths||(_t.locale.getShortMonths?_t.locale.getShortMonths(ze.locale):[]),zn=_t.getMonth(We),Ai=wt.createElement("button",{type:"button",key:"year",onClick:di,tabIndex:-1,className:"".concat(Kt,"-year-btn")},qe(We,{locale:ze,format:ze.yearFormat,generateConfig:_t})),Qi=wt.createElement("button",{type:"button",key:"month",onClick:Ri,tabIndex:-1,className:"".concat(Kt,"-month-btn")},ze.monthFormat?qe(We,{locale:ze,format:ze.monthFormat,generateConfig:_t}):Ji[zn]),jr=ze.monthBeforeYear?[Qi,Ai]:[Ai,Qi];return wt.createElement(ai,(0,kt.Z)({},It,{prefixCls:si,onSuperPrev:Qn,onPrev:mn,onNext:dn,onSuperNext:Zn}),jr)}var Mr=Wi,nr=6;function Oe(It){var Kt=It.prefixCls,_t=It.panelName,ze=_t===void 0?"date":_t,We=It.keyboardConfig,dn=It.active,mn=It.operationRef,Zn=It.generateConfig,Qn=It.value,di=It.viewDate,Ri=It.onViewDateChange,ui=It.onPanelChange,Mi=It.onSelect,si="".concat(Kt,"-").concat(ze,"-panel");mn.current={onKeyDown:function(Qi){return Jr(Qi,(0,Xn.Z)({onLeftRight:function(Nr){Mi(Zn.addDate(Qn||di,Nr),"key")},onCtrlLeftRight:function(Nr){Mi(Zn.addYear(Qn||di,Nr),"key")},onUpDown:function(Nr){Mi(Zn.addDate(Qn||di,Nr*he),"key")},onPageUpDown:function(Nr){Mi(Zn.addMonth(Qn||di,Nr),"key")}},We))}};var Ji=function(Qi){var jr=Zn.addYear(di,Qi);Ri(jr),ui(null,jr)},zn=function(Qi){var jr=Zn.addMonth(di,Qi);Ri(jr),ui(null,jr)};return wt.createElement("div",{className:Be()(si,(0,pe.Z)({},"".concat(si,"-active"),dn))},wt.createElement(Mr,(0,kt.Z)({},It,{prefixCls:Kt,value:Qn,viewDate:di,onPrevYear:function(){Ji(-1)},onNextYear:function(){Ji(1)},onPrevMonth:function(){zn(-1)},onNextMonth:function(){zn(1)},onMonthClick:function(){ui("month",di)},onYearClick:function(){ui("year",di)}})),wt.createElement(Wn,(0,kt.Z)({},It,{onSelect:function(Qi){return Mi(Qi,"mouse")},prefixCls:Kt,value:Qn,viewDate:di,rowCount:nr})))}var xi=Oe;function Vi(It){var Kt=wt.useContext(Fe),_t=Kt.hideHeader;if(_t)return null;var ze=It.prefixCls,We=It.generateConfig,dn=It.locale,mn=It.value,Zn=It.format,Qn="".concat(ze,"-header");return wt.createElement(ai,{prefixCls:Qn},mn?qe(mn,{locale:dn,format:Zn,generateConfig:We}):"\xA0")}var Ti=Vi;function Sr(It){var Kt=It.value,_t=It.generateConfig,ze=It.disabledMinutes,We=It.disabledSeconds,dn=It.minutes,mn=It.seconds,Zn=It.use12Hours,Qn=function(Ri,ui,Mi,si){var Ji=_t.getNow(),zn=Kt||Ji,Ai=ui<0?_t.getHour(Ji):ui,Qi=Mi<0?_t.getMinute(Ji):Mi,jr=si<0?_t.getSecond(Ji):si,Nr=ze&&ze(Ai);if(Nr!=null&&Nr.includes(Qi)){var Yr=dn.find(function(ji){return!Nr.includes(ji.value)});if(Yr)Qi=Yr.value;else return null}var Ur=We&&We(Ai,Qi);if(Ur!=null&&Ur.includes(jr)){var Hr=mn.find(function(ji){return!Ur.includes(ji.value)});if(Hr)jr=Hr.value;else return null}return zn=He(_t,zn,!Zn||!Ri?Ai:Ai+12,Qi,jr),zn};return Qn}function yr(It){var Kt=It.prefixCls,_t=It.units,ze=It.onSelect,We=It.value,dn=It.active,mn=It.hideDisabledOptions,Zn=It.info,Qn=It.type,di="".concat(Kt,"-cell"),Ri=wt.useContext(Fe),ui=Ri.open,Mi=(0,wt.useRef)(null),si=(0,wt.useRef)(new Map),Ji=(0,wt.useRef)();return(0,wt.useLayoutEffect)(function(){var zn=si.current.get(We);zn&&ui!==!1&&eo(Mi.current,zn.offsetTop,120)},[We]),(0,wt.useLayoutEffect)(function(){if(ui){var zn=si.current.get(We);zn&&(Ji.current=fr(zn,function(){eo(Mi.current,zn.offsetTop,0)}))}return function(){var Ai;(Ai=Ji.current)===null||Ai===void 0||Ai.call(Ji)}},[ui]),wt.createElement("ul",{className:Be()("".concat(Kt,"-column"),(0,pe.Z)({},"".concat(Kt,"-column-active"),dn)),ref:Mi,style:{position:"relative"}},_t.map(function(zn){var Ai;return mn&&zn.disabled?null:wt.createElement("li",{key:zn.value,ref:function(jr){si.current.set(zn.value,jr)},className:Be()(di,(Ai={},(0,pe.Z)(Ai,"".concat(di,"-disabled"),zn.disabled),(0,pe.Z)(Ai,"".concat(di,"-selected"),We===zn.value),Ai)),onClick:function(){zn.disabled||ze(zn.value)}},Zn.cellRender?Zn.cellRender(zn.value,{today:Zn.today,locale:Zn.locale,originNode:wt.createElement("div",{className:"".concat(di,"-inner")},zn.label),type:"time",subType:Qn}):wt.createElement("div",{className:"".concat(di,"-inner")},zn.label))}))}var Dr=yr;function ir(It,Kt){if(It.length!==Kt.length)return!0;for(var _t=0;_t<It.length;_t+=1)if(It[_t].disabled!==Kt[_t].disabled)return!0;return!1}function zi(It,Kt,_t,ze){for(var We=[],dn=_t>=1?_t|0:1,mn=It;mn<=Kt;mn+=dn)We.push({label:Un(mn,2),value:mn,disabled:(ze||[]).includes(mn)});return We}function Kr(It){var Kt=It.generateConfig,_t=It.prefixCls,ze=It.operationRef,We=It.activeColumnIndex,dn=It.value,mn=It.showHour,Zn=It.showMinute,Qn=It.showSecond,di=It.use12Hours,Ri=It.hourStep,ui=Ri===void 0?1:Ri,Mi=It.minuteStep,si=Mi===void 0?1:Mi,Ji=It.secondStep,zn=Ji===void 0?1:Ji,Ai=It.disabledHours,Qi=It.disabledMinutes,jr=It.disabledSeconds,Nr=It.disabledTime,Yr=It.hideDisabledOptions,Ur=It.onSelect,Hr=It.cellRender,ji=It.locale,Yo=[],zo="".concat(_t,"-content"),ea="".concat(_t,"-time-panel"),ka,La=dn?Kt.getHour(dn):-1,Sa=La,ts=dn?Kt.getMinute(dn):-1,ma=dn?Kt.getSecond(dn):-1,ra=Kt.getNow(),xa=wt.useMemo(function(){if(Nr){var jn=Nr(ra);return[jn.disabledHours,jn.disabledMinutes,jn.disabledSeconds]}return[Ai,Qi,jr]},[Ai,Qi,jr,Nr,ra]),Ua=(0,oi.Z)(xa,3),es=Ua[0],za=Ua[1],wa=Ua[2],Ms=zi(0,23,ui,es&&es()),tl=(0,xt.Z)(function(){return Ms},Ms,ir);di&&(ka=Sa>=12,Sa%=12);var Xt=wt.useMemo(function(){if(!di)return[!1,!1];var jn=[!0,!0];return tl.forEach(function(ti){var Li=ti.disabled,bi=ti.value;Li||(bi>=12?jn[1]=!1:jn[0]=!1)}),jn},[di,tl]),ie=(0,oi.Z)(Xt,2),Te=ie[0],Ie=ie[1],_e=wt.useMemo(function(){return di?tl.filter(ka?function(jn){return jn.value>=12}:function(jn){return jn.value<12}).map(function(jn){var ti=jn.value%12,Li=ti===0?"12":Un(ti,2);return(0,Xn.Z)((0,Xn.Z)({},jn),{},{label:Li,value:ti})}):tl},[di,ka,tl]),Ve=zi(0,59,si,za&&za(La)),Mn=zi(0,59,zn,wa&&wa(La,ts)),En=Sr({value:dn,generateConfig:Kt,disabledMinutes:za,disabledSeconds:wa,minutes:Ve,seconds:Mn,use12Hours:di});ze.current={onUpDown:function(ti){var Li=Yo[We];if(Li)for(var bi=Li.units.findIndex(function(rr){return rr.value===Li.value}),yi=Li.units.length,Yi=1;Yi<yi;Yi+=1){var wi=Li.units[(bi+ti*Yi+yi)%yi];if(wi.disabled!==!0){Li.onSelect(wi.value);break}}}};function xn(jn,ti,Li,bi,yi){jn!==!1&&Yo.push({node:wt.cloneElement(ti,{prefixCls:ea,value:Li,active:We===Yo.length,onSelect:yi,units:bi,hideDisabledOptions:Yr}),onSelect:yi,value:Li,units:bi})}xn(mn,wt.createElement(Dr,{key:"hour",type:"hour",info:{today:ra,locale:ji,cellRender:Hr}}),Sa,_e,function(jn){Ur(En(ka,jn,ts,ma),"mouse")}),xn(Zn,wt.createElement(Dr,{key:"minute",type:"minute",info:{today:ra,locale:ji,cellRender:Hr}}),ts,Ve,function(jn){Ur(En(ka,Sa,jn,ma),"mouse")}),xn(Qn,wt.createElement(Dr,{key:"second",type:"second",info:{today:ra,locale:ji,cellRender:Hr}}),ma,Mn,function(jn){Ur(En(ka,Sa,ts,jn),"mouse")});var ri=-1;return typeof ka=="boolean"&&(ri=ka?1:0),xn(di===!0,wt.createElement(Dr,{key:"meridiem",type:"meridiem",info:{today:ra,locale:ji,cellRender:Hr}}),ri,[{label:"AM",value:0,disabled:Te},{label:"PM",value:1,disabled:Ie}],function(jn){Ur(En(!!jn,Sa,ts,ma),"mouse")}),wt.createElement("div",{className:zo},Yo.map(function(jn){var ti=jn.node;return ti}))}var wn=Kr,To=function(Kt){return Kt.filter(function(_t){return _t!==!1}).length};function An(It){var Kt=It.generateConfig,_t=It.format,ze=_t===void 0?"HH:mm:ss":_t,We=It.prefixCls,dn=It.active,mn=It.operationRef,Zn=It.showHour,Qn=It.showMinute,di=It.showSecond,Ri=It.use12Hours,ui=Ri===void 0?!1:Ri,Mi=It.onSelect,si=It.value,Ji="".concat(We,"-time-panel"),zn=wt.useRef(),Ai=wt.useState(-1),Qi=(0,oi.Z)(Ai,2),jr=Qi[0],Nr=Qi[1],Yr=To([Zn,Qn,di,ui]);return mn.current={onKeyDown:function(Hr){return Jr(Hr,{onLeftRight:function(Yo){Nr((jr+Yo+Yr)%Yr)},onUpDown:function(Yo){jr===-1?Nr(0):zn.current&&zn.current.onUpDown(Yo)},onEnter:function(){Mi(si||Kt.getNow(),"key"),Nr(-1)}})},onBlur:function(){Nr(-1)}},wt.createElement("div",{className:Be()(Ji,(0,pe.Z)({},"".concat(Ji,"-active"),dn))},wt.createElement(Ti,(0,kt.Z)({},It,{format:ze,prefixCls:We})),wt.createElement(wn,(0,kt.Z)({},It,{prefixCls:We,activeColumnIndex:jr,operationRef:zn})))}var Or=An,Qo=Oi("date","time");function uo(It){var Kt=It.prefixCls,_t=It.operationRef,ze=It.generateConfig,We=It.value,dn=It.defaultValue,mn=It.disabledTime,Zn=It.showTime,Qn=It.onSelect,di=It.cellRender,Ri="".concat(Kt,"-datetime-panel"),ui=wt.useState(null),Mi=(0,oi.Z)(ui,2),si=Mi[0],Ji=Mi[1],zn=wt.useRef({}),Ai=wt.useRef({}),Qi=(0,ue.Z)(Zn)==="object"?(0,Xn.Z)({},Zn):{};function jr(Hr){var ji=Qo.indexOf(si)+Hr,Yo=Qo[ji]||null;return Yo}var Nr=function(ji){Ai.current.onBlur&&Ai.current.onBlur(ji),Ji(null)};_t.current={onKeyDown:function(ji){if(ji.which===gi.Z.TAB){var Yo=jr(ji.shiftKey?-1:1);return Ji(Yo),Yo&&ji.preventDefault(),!0}if(si){var zo=si==="date"?zn:Ai;return zo.current&&zo.current.onKeyDown&&zo.current.onKeyDown(ji),!0}return[gi.Z.LEFT,gi.Z.RIGHT,gi.Z.UP,gi.Z.DOWN].includes(ji.which)?(Ji("date"),!0):!1},onBlur:Nr,onClose:Nr};var Yr=function(ji,Yo){var zo=ji;Yo==="date"&&!We&&Qi.defaultValue?(zo=ze.setHour(zo,ze.getHour(Qi.defaultValue)),zo=ze.setMinute(zo,ze.getMinute(Qi.defaultValue)),zo=ze.setSecond(zo,ze.getSecond(Qi.defaultValue))):Yo==="time"&&!We&&dn&&(zo=ze.setYear(zo,ze.getYear(dn)),zo=ze.setMonth(zo,ze.getMonth(dn)),zo=ze.setDate(zo,ze.getDate(dn))),Qn&&Qn(zo,"mouse")},Ur=mn?mn(We||null):{};return wt.createElement("div",{className:Be()(Ri,(0,pe.Z)({},"".concat(Ri,"-active"),si))},wt.createElement(xi,(0,kt.Z)({},It,{cellRender:di,operationRef:zn,active:si==="date",onSelect:function(ji){Yr(an(ze,ji,!We&&(0,ue.Z)(Zn)==="object"?Zn.defaultValue:null),"date")}})),wt.createElement(Or,(0,kt.Z)({},It,{cellRender:di?function(Hr,ji){return di(Hr,(0,Xn.Z)((0,Xn.Z)({},ji),{},{type:"time"}))}:void 0,format:void 0},Qi,Ur,{disabledTime:null,defaultValue:void 0,operationRef:Ai,active:si==="time",onSelect:function(ji){Yr(ji,"time")}})))}var Fa=uo;function Vo(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.viewDate,We=It.onPrevDecades,dn=It.onNextDecades,mn=wt.useContext(Fe),Zn=mn.hideHeader;if(Zn)return null;var Qn="".concat(Kt,"-header"),di=_t.getYear(ze),Ri=Math.floor(di/St)*St,ui=Ri+St-1;return wt.createElement(ai,(0,kt.Z)({},It,{prefixCls:Qn,onSuperPrev:We,onSuperNext:dn}),Ri,"-",ui)}var dr=Vo,or=3,io=4;function Co(It){var Kt=Bt-1,_t=It.prefixCls,ze=It.viewDate,We=It.generateConfig,dn=It.cellRender,mn=It.locale,Zn="".concat(_t,"-cell"),Qn=We.getYear(ze),di=Math.floor(Qn/Bt)*Bt,Ri=Math.floor(Qn/St)*St,ui=Ri+St-1,Mi=We.setYear(ze,Ri-Math.ceil((or*io*Bt-St)/2)),si=function(Ai){var Qi,jr=We.getYear(Ai),Nr=jr+Kt;return Qi={},(0,pe.Z)(Qi,"".concat(Zn,"-in-view"),Ri<=jr&&Nr<=ui),(0,pe.Z)(Qi,"".concat(Zn,"-selected"),jr===di),Qi},Ji=dn?function(zn,Ai){return dn(zn,{originNode:Ai,today:We.getNow(),type:"decade",locale:mn})}:void 0;return wt.createElement(bn,(0,kt.Z)({},It,{rowNum:io,colNum:or,baseDate:Mi,getCellNode:Ji,getCellText:function(Ai){var Qi=We.getYear(Ai);return"".concat(Qi,"-").concat(Qi+Kt)},getCellClassName:si,getCellDate:function(Ai,Qi){return We.addYear(Ai,Qi*Bt)}}))}var Ci=Co;function Vt(It){var Kt=It.prefixCls,_t=It.onViewDateChange,ze=It.generateConfig,We=It.viewDate,dn=It.operationRef,mn=It.onSelect,Zn=It.onPanelChange,Qn="".concat(Kt,"-decade-panel");dn.current={onKeyDown:function(Mi){return Jr(Mi,{onLeftRight:function(Ji){mn(ze.addYear(We,Ji*Bt),"key")},onCtrlLeftRight:function(Ji){mn(ze.addYear(We,Ji*St),"key")},onUpDown:function(Ji){mn(ze.addYear(We,Ji*Bt*or),"key")},onEnter:function(){Zn("year",We)}})}};var di=function(Mi){var si=ze.addYear(We,Mi*St);_t(si),Zn(null,si)},Ri=function(Mi){mn(Mi,"mouse"),Zn("year",Mi)};return wt.createElement("div",{className:Qn},wt.createElement(dr,(0,kt.Z)({},It,{prefixCls:Kt,onPrevDecades:function(){di(-1)},onNextDecades:function(){di(1)}})),wt.createElement(Ci,(0,kt.Z)({},It,{prefixCls:Kt,onSelect:Ri})))}var qr=Vt;function da(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.locale,We=It.viewDate,dn=It.onNextYear,mn=It.onPrevYear,Zn=It.onYearClick,Qn=wt.useContext(Fe),di=Qn.hideHeader;if(di)return null;var Ri="".concat(Kt,"-header");return wt.createElement(ai,(0,kt.Z)({},It,{prefixCls:Ri,onSuperPrev:mn,onSuperNext:dn}),wt.createElement("button",{type:"button",onClick:Zn,className:"".concat(Kt,"-year-btn")},qe(We,{locale:ze,format:ze.yearFormat,generateConfig:_t})))}var ao=da,_o=3,ca=4;function fa(It){var Kt=It.prefixCls,_t=It.locale,ze=It.value,We=It.viewDate,dn=It.generateConfig,mn=It.cellRender,Zn=wt.useContext(yn),Qn=Zn.rangedValue,di=Zn.hoverRangedValue,Ri="".concat(Kt,"-cell"),ui=Bi({cellPrefixCls:Ri,value:ze,generateConfig:dn,rangedValue:Qn,hoverRangedValue:di,isSameCell:function(Ai,Qi){return se(dn,Ai,Qi)},isInView:function(){return!0},offsetCell:function(Ai,Qi){return dn.addMonth(Ai,Qi)}}),Mi=_t.shortMonths||(dn.locale.getShortMonths?dn.locale.getShortMonths(_t.locale):[]),si=dn.setMonth(We,0),Ji=mn?function(zn,Ai){return mn(zn,{originNode:Ai,locale:_t,today:dn.getNow(),type:"month"})}:void 0;return wt.createElement(bn,(0,kt.Z)({},It,{rowNum:ca,colNum:_o,baseDate:si,getCellNode:Ji,getCellText:function(Ai){return _t.monthFormat?qe(Ai,{locale:_t,format:_t.monthFormat,generateConfig:dn}):Mi[dn.getMonth(Ai)]},getCellClassName:ui,getCellDate:dn.addMonth,titleCell:function(Ai){return qe(Ai,{locale:_t,format:"YYYY-MM",generateConfig:dn})}}))}var Vr=fa;function Ar(It){var Kt=It.prefixCls,_t=It.operationRef,ze=It.onViewDateChange,We=It.generateConfig,dn=It.value,mn=It.viewDate,Zn=It.onPanelChange,Qn=It.onSelect,di="".concat(Kt,"-month-panel");_t.current={onKeyDown:function(Mi){return Jr(Mi,{onLeftRight:function(Ji){Qn(We.addMonth(dn||mn,Ji),"key")},onCtrlLeftRight:function(Ji){Qn(We.addYear(dn||mn,Ji),"key")},onUpDown:function(Ji){Qn(We.addMonth(dn||mn,Ji*_o),"key")},onEnter:function(){Zn("date",dn||mn)}})}};var Ri=function(Mi){var si=We.addYear(mn,Mi);ze(si),Zn(null,si)};return wt.createElement("div",{className:di},wt.createElement(ao,(0,kt.Z)({},It,{prefixCls:Kt,onPrevYear:function(){Ri(-1)},onNextYear:function(){Ri(1)},onYearClick:function(){Zn("year",mn)}})),wt.createElement(Vr,(0,kt.Z)({},It,{prefixCls:Kt,onSelect:function(Mi){Qn(Mi,"mouse"),Zn("date",Mi)}})))}var Cr=Ar;function Do(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.locale,We=It.viewDate,dn=It.onNextYear,mn=It.onPrevYear,Zn=It.onYearClick,Qn=wt.useContext(Fe),di=Qn.hideHeader;if(di)return null;var Ri="".concat(Kt,"-header");return wt.createElement(ai,(0,kt.Z)({},It,{prefixCls:Ri,onSuperPrev:mn,onSuperNext:dn}),wt.createElement("button",{type:"button",onClick:Zn,className:"".concat(Kt,"-year-btn")},qe(We,{locale:ze,format:ze.yearFormat,generateConfig:_t})))}var Ui=Do,$i=4,Er=1;function ei(It){var Kt=It.prefixCls,_t=It.locale,ze=It.value,We=It.viewDate,dn=It.generateConfig,mn=It.cellRender,Zn=wt.useContext(yn),Qn=Zn.rangedValue,di=Zn.hoverRangedValue,Ri="".concat(Kt,"-cell"),ui=Bi({cellPrefixCls:Ri,value:ze,generateConfig:dn,rangedValue:Qn,hoverRangedValue:di,isSameCell:function(zn,Ai){return we(dn,zn,Ai)},isInView:function(){return!0},offsetCell:function(zn,Ai){return dn.addMonth(zn,Ai*3)}}),Mi=dn.setDate(dn.setMonth(We,0),1),si=mn?function(Ji,zn){return mn(Ji,{originNode:zn,locale:_t,today:dn.getNow(),type:"quarter"})}:void 0;return wt.createElement(bn,(0,kt.Z)({},It,{rowNum:Er,colNum:$i,baseDate:Mi,getCellNode:si,getCellText:function(zn){return qe(zn,{locale:_t,format:_t.quarterFormat||"[Q]Q",generateConfig:dn})},getCellClassName:ui,getCellDate:function(zn,Ai){return dn.addMonth(zn,Ai*3)},titleCell:function(zn){return qe(zn,{locale:_t,format:"YYYY-[Q]Q",generateConfig:dn})}}))}var Ho=ei;function $o(It){var Kt=It.prefixCls,_t=It.operationRef,ze=It.onViewDateChange,We=It.generateConfig,dn=It.value,mn=It.viewDate,Zn=It.onPanelChange,Qn=It.onSelect,di="".concat(Kt,"-quarter-panel");_t.current={onKeyDown:function(Mi){return Jr(Mi,{onLeftRight:function(Ji){Qn(We.addMonth(dn||mn,Ji*3),"key")},onCtrlLeftRight:function(Ji){Qn(We.addYear(dn||mn,Ji),"key")},onUpDown:function(Ji){Qn(We.addYear(dn||mn,Ji),"key")}})}};var Ri=function(Mi){var si=We.addYear(mn,Mi);ze(si),Zn(null,si)};return wt.createElement("div",{className:di},wt.createElement(Ui,(0,kt.Z)({},It,{prefixCls:Kt,onPrevYear:function(){Ri(-1)},onNextYear:function(){Ri(1)},onYearClick:function(){Zn("year",mn)}})),wt.createElement(Ho,(0,kt.Z)({},It,{prefixCls:Kt,onSelect:function(Mi){Qn(Mi,"mouse")}})))}var Na=$o;function ua(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.locale,We=It.value,dn=It.disabledDate,mn=It.onSelect,Zn=wt.useContext(yn),Qn=Zn.rangedValue,di=Zn.hoverRangedValue,Ri=wt.useContext(Fe),ui=Ri.onDateMouseEnter,Mi=Ri.onDateMouseLeave,si=(di==null?void 0:di[0])||(Qn==null?void 0:Qn[0]),Ji=(di==null?void 0:di[1])||(Qn==null?void 0:Qn[1]),zn="".concat(Kt,"-cell"),Ai=function(Yr){var Ur=Nn({cellDate:Yr,mode:"week",disabledDate:dn,generateConfig:_t});return wt.createElement("td",{key:"week",className:Be()(zn,"".concat(zn,"-week")),onClick:function(){Ur||mn(Yr,"mouse")},onMouseEnter:function(){!Ur&&ui&&ui(Yr)},onMouseLeave:function(){!Ur&&Mi&&Mi(Yr)}},wt.createElement("div",{className:"".concat(zn,"-inner")},_t.locale.getWeek(ze.locale,Yr)))},Qi="".concat(Kt,"-week-panel-row"),jr=function(Yr){var Ur,Hr=cn(_t,ze.locale,si,Yr),ji=cn(_t,ze.locale,Ji,Yr);return Be()(Qi,(Ur={},(0,pe.Z)(Ur,"".concat(Qi,"-selected"),!Qn&&cn(_t,ze.locale,We,Yr)),(0,pe.Z)(Ur,"".concat(Qi,"-range-start"),Hr),(0,pe.Z)(Ur,"".concat(Qi,"-range-end"),ji),(0,pe.Z)(Ur,"".concat(Qi,"-range-hover"),!Hr&&!ji&&hn(_t,si,Ji,Yr)),Ur))};return wt.createElement(xi,(0,kt.Z)({},It,{panelName:"week",prefixColumn:Ai,rowClassName:jr,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Ia=ua,Ra=10;function ys(It){var Kt=It.prefixCls,_t=It.generateConfig,ze=It.viewDate,We=It.onPrevDecade,dn=It.onNextDecade,mn=It.onDecadeClick,Zn=wt.useContext(Fe),Qn=Zn.hideHeader;if(Qn)return null;var di="".concat(Kt,"-header"),Ri=_t.getYear(ze),ui=Math.floor(Ri/Ra)*Ra,Mi=ui+Ra-1;return wt.createElement(ai,(0,kt.Z)({},It,{prefixCls:di,onSuperPrev:We,onSuperNext:dn}),wt.createElement("button",{type:"button",onClick:mn,className:"".concat(Kt,"-decade-btn")},ui,"-",Mi))}var Ds=ys,_s=3,Ys=4;function ln(It){var Kt=It.prefixCls,_t=It.value,ze=It.viewDate,We=It.locale,dn=It.generateConfig,mn=It.cellRender,Zn=wt.useContext(yn),Qn=Zn.rangedValue,di=Zn.hoverRangedValue,Ri="".concat(Kt,"-cell"),ui=dn.getYear(ze),Mi=Math.floor(ui/Ra)*Ra,si=Mi+Ra-1,Ji=dn.setYear(ze,Mi-Math.ceil((_s*Ys-Ra)/2)),zn=dn.getNow(),Ai=function(Yr){var Ur=dn.getYear(Yr);return Mi<=Ur&&Ur<=si},Qi=Bi({cellPrefixCls:Ri,value:_t,generateConfig:dn,rangedValue:Qn,hoverRangedValue:di,isSameCell:function(Yr,Ur){return ee(dn,Yr,Ur)},isInView:Ai,offsetCell:function(Yr,Ur){return dn.addYear(Yr,Ur)}}),jr=mn?function(Nr,Yr){return mn(Nr,{originNode:Yr,today:zn,type:"year",locale:We})}:void 0;return wt.createElement(bn,(0,kt.Z)({},It,{rowNum:Ys,colNum:_s,baseDate:Ji,getCellNode:jr,getCellText:dn.getYear,getCellClassName:Qi,getCellDate:dn.addYear,titleCell:function(Yr){return qe(Yr,{locale:We,format:"YYYY",generateConfig:dn})}}))}var js=ln;function au(It){var Kt=It.prefixCls,_t=It.operationRef,ze=It.onViewDateChange,We=It.generateConfig,dn=It.value,mn=It.viewDate,Zn=It.sourceMode,Qn=It.onSelect,di=It.onPanelChange,Ri="".concat(Kt,"-year-panel");_t.current={onKeyDown:function(si){return Jr(si,{onLeftRight:function(zn){Qn(We.addYear(dn||mn,zn),"key")},onCtrlLeftRight:function(zn){Qn(We.addYear(dn||mn,zn*Ra),"key")},onUpDown:function(zn){Qn(We.addYear(dn||mn,zn*_s),"key")},onEnter:function(){di(Zn==="date"?"date":"month",dn||mn)}})}};var ui=function(si){var Ji=We.addYear(mn,si*10);ze(Ji),di(null,Ji)};return wt.createElement("div",{className:Ri},wt.createElement(Ds,(0,kt.Z)({},It,{prefixCls:Kt,onPrevDecade:function(){ui(-1)},onNextDecade:function(){ui(1)},onDecadeClick:function(){di("decade",mn)}})),wt.createElement(js,(0,kt.Z)({},It,{prefixCls:Kt,onSelect:function(si){di(Zn==="date"?"date":"month",si),Qn(si,"mouse")}})))}var su=au;function ko(It,Kt,_t){return _t?wt.createElement("div",{className:"".concat(It,"-footer-extra")},_t(Kt)):null}function ga(It){var Kt=It.prefixCls,_t=It.components,ze=_t===void 0?{}:_t,We=It.needConfirmButton,dn=It.onNow,mn=It.onOk,Zn=It.okDisabled,Qn=It.showNow,di=It.locale,Ri,ui;if(We){var Mi=ze.button||"button";dn&&Qn!==!1&&(Ri=wt.createElement("li",{className:"".concat(Kt,"-now")},wt.createElement("a",{className:"".concat(Kt,"-now-btn"),onClick:dn},di.now))),ui=We&&wt.createElement("li",{className:"".concat(Kt,"-ok")},wt.createElement(Mi,{disabled:Zn,onClick:mn},di.ok))}return!Ri&&!ui?null:wt.createElement("ul",{className:"".concat(Kt,"-ranges")},Ri,ui)}var os=["date","month"];function pa(It){var Kt,_t=It,ze=_t.prefixCls,We=ze===void 0?"rc-picker":ze,dn=_t.className,mn=_t.style,Zn=_t.locale,Qn=_t.generateConfig,di=_t.value,Ri=_t.defaultValue,ui=_t.pickerValue,Mi=_t.defaultPickerValue,si=_t.disabledDate,Ji=_t.mode,zn=_t.picker,Ai=zn===void 0?"date":zn,Qi=_t.tabIndex,jr=Qi===void 0?0:Qi,Nr=_t.showNow,Yr=_t.showTime,Ur=_t.showToday,Hr=_t.renderExtraFooter,ji=_t.hideHeader,Yo=_t.onSelect,zo=_t.onChange,ea=_t.onPanelChange,ka=_t.onMouseDown,La=_t.onPickerValueChange,Sa=_t.onOk,ts=_t.components,ma=_t.direction,ra=_t.hourStep,xa=ra===void 0?1:ra,Ua=_t.minuteStep,es=Ua===void 0?1:Ua,za=_t.secondStep,wa=za===void 0?1:za,Ms=_t.dateRender,tl=_t.monthCellRender,Xt=_t.cellRender,ie=Ai==="date"&&!!Yr||Ai==="time",Te=24%xa===0,Ie=60%es===0,_e=60%wa===0,Ve=wt.useContext(Fe),Mn=Ve.operationRef,En=Ve.onSelect,xn=Ve.hideRanges,ri=Ve.defaultOpenValue,jn=wt.useContext(yn),ti=jn.inRange,Li=jn.panelPosition,bi=jn.rangedValue,yi=jn.hoverRangedValue,Yi=wt.useRef({}),wi=wt.useRef(!0),rr=(0,te.Z)(null,{value:di,defaultValue:Ri,postState:function(ki){return!ki&&ri&&Ai==="time"?ri:ki}}),tr=(0,oi.Z)(rr,2),lr=tr[0],Xr=tr[1],so=(0,te.Z)(null,{value:ui,defaultValue:Mi||lr,postState:function(ki){var xr=Qn.getNow();if(!ki)return xr;if(!lr&&Yr){var Ao=(0,ue.Z)(Yr)==="object"?Yr.defaultValue:Ri;return an(Qn,Array.isArray(ki)?ki[0]:ki,Ao||xr)}return Array.isArray(ki)?ki[0]:ki}}),pr=(0,oi.Z)(so,2),Fr=pr[0],bo=pr[1],ur=function(ki){bo(ki),La&&La(ki)},Ir=function(ki){var xr=Gr[Ai];return xr?xr(ki):ki},mr=(0,te.Z)(function(){return Ai==="time"?"time":Ir("date")},{value:Ji}),Gi=(0,oi.Z)(mr,2),ar=Gi[0],Rr=Gi[1];wt.useEffect(function(){Rr(Ai)},[Ai]);var lo=wt.useState(function(){return ar}),co=(0,oi.Z)(lo,2),sr=co[0],Eo=co[1],Io=function(ki,xr){var Ao=Ir(ki||ar);Eo(ar),Rr(Ao),ea&&(ar!==Ao||Je(Qn,Fr,Fr))&&ea(xr,Ao)},Wo=function(ki,xr){var Ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(ar===Ai||Ao)&&(Xr(ki),Yo&&Yo(ki),En&&En(ki,xr),zo&&!Je(Qn,ki,lr)&&!(si!=null&&si(ki))&&zo(ki))},jo=function(ki){if(os.includes(ar)){var xr,Ao,Uo=ar==="date";switch(ki===gi.Z.PAGE_UP||ki===gi.Z.PAGE_DOWN?Ao=Uo?Qn.addMonth:Qn.addYear:Ao=Uo?Qn.addDate:Qn.addMonth,ki){case gi.Z.LEFT:case gi.Z.PAGE_UP:xr=Ao(Fr,-1);break;case gi.Z.RIGHT:case gi.Z.PAGE_DOWN:xr=Ao(Fr,1);break;case gi.Z.UP:case gi.Z.DOWN:xr=Ao(Fr,Number("".concat(ki===gi.Z.UP?"-":"").concat(Uo?he:_o)));break}if(xr)return!(si!=null&&si(xr))}return!0},ja=function(ki){if(Yi.current&&Yi.current.onKeyDown){var xr=!0,Ao=ki.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(Ao)&&(ki.preventDefault(),Ao!==gi.Z.ENTER&&jr===0&&(xr=jo(Ao))),xr)return Yi.current.onKeyDown(ki)}return(0,re.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(ki){Yi.current&&Yi.current.onBlur&&Yi.current.onBlur(ki)};Mn&&Li!=="right"&&(Mn.current={onKeyDown:ja,onClose:function(){Yi.current&&Yi.current.onClose&&Yi.current.onClose()}}),wt.useEffect(function(){di&&!wi.current&&bo(di)},[di]),wt.useEffect(function(){wi.current=!1},[]);var wo,_r=pn({cellRender:Xt,monthCellRender:tl,dateRender:Ms}),mo=(0,Xn.Z)((0,Xn.Z)({},It),{},{cellRender:_r,operationRef:Yi,prefixCls:We,viewDate:Fr,value:lr,onViewDateChange:ur,sourceMode:sr,onPanelChange:Io,disabledDate:si});switch(delete mo.onChange,delete mo.onSelect,ar){case"decade":wo=wt.createElement(qr,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;case"year":wo=wt.createElement(su,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;case"month":wo=wt.createElement(Cr,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;case"quarter":wo=wt.createElement(Na,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;case"week":wo=wt.createElement(Ia,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;case"time":delete mo.showTime,wo=wt.createElement(Or,(0,kt.Z)({},mo,(0,ue.Z)(Yr)==="object"?Yr:null,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}));break;default:Yr?wo=wt.createElement(Fa,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}})):wo=wt.createElement(xi,(0,kt.Z)({},mo,{onSelect:function(ki,xr){ur(ki),Wo(ki,xr)}}))}var Da,Pa,Ga=function(){var ki=Qn.getNow(),xr=gn(Qn.getHour(ki),Qn.getMinute(ki),Qn.getSecond(ki),Te?xa:1,Ie?es:1,_e?wa:1),Ao=He(Qn,ki,xr[0],xr[1],xr[2]);Wo(Ao,"submit")};xn||(Da=ko(We,ar,Hr),Yr&&ar!=="date"?Pa=null:Pa=ga({prefixCls:We,components:ts,needConfirmButton:ie,okDisabled:!lr||si&&si(lr),locale:Zn,showNow:Nr,onNow:ie&&Ga,onOk:function(){lr&&(Wo(lr,"submit",!0),Sa&&Sa(lr))}}));var yo;if(Ur&&ar==="date"&&Ai==="date"&&!Yr){var ro=Qn.getNow(),Po="".concat(We,"-today-btn"),Qr=si&&si(ro);yo=wt.createElement("a",{className:Be()(Po,Qr&&"".concat(Po,"-disabled")),"aria-disabled":Qr,onClick:function(){Qr||Wo(ro,"mouse",!0)}},Zn.today)}return wt.createElement(Fe.Provider,{value:(0,Xn.Z)((0,Xn.Z)({},Ve),{},{mode:ar,hideHeader:"hideHeader"in It?ji:Ve.hideHeader,hidePrevBtn:ti&&Li==="right",hideNextBtn:ti&&Li==="left"})},wt.createElement("div",{tabIndex:jr,className:Be()("".concat(We,"-panel"),dn,(Kt={},(0,pe.Z)(Kt,"".concat(We,"-panel-has-range"),bi&&bi[0]&&bi[1]),(0,pe.Z)(Kt,"".concat(We,"-panel-has-range-hover"),yi&&yi[0]&&yi[1]),(0,pe.Z)(Kt,"".concat(We,"-panel-rtl"),ma==="rtl"),Kt)),style:mn,onKeyDown:ja,onBlur:qo,onMouseDown:ka},wo,Da||Pa||yo?wt.createElement("div",{className:"".concat(We,"-footer")},Da,Pa,yo):null))}var Fo=pa,sa=yt(35593),bs={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 no(It){var Kt,_t=It.prefixCls,ze=It.popupElement,We=It.popupStyle,dn=It.visible,mn=It.dropdownClassName,Zn=It.dropdownAlign,Qn=It.transitionName,di=It.getPopupContainer,Ri=It.children,ui=It.range,Mi=It.popupPlacement,si=It.direction,Ji="".concat(_t,"-dropdown"),zn=function(){return Mi!==void 0?Mi:si==="rtl"?"bottomRight":"bottomLeft"};return wt.createElement(sa.Z,{showAction:[],hideAction:[],popupPlacement:zn(),builtinPlacements:bs,prefixCls:Ji,popupTransitionName:Qn,popup:ze,popupAlign:Zn,popupVisible:dn,popupClassName:Be()(mn,(Kt={},(0,pe.Z)(Kt,"".concat(Ji,"-range"),ui),(0,pe.Z)(Kt,"".concat(Ji,"-rtl"),si==="rtl"),Kt)),popupStyle:We,getPopupContainer:di},Ri)}var Ro=no;function Oo(It){var Kt=It.prefixCls,_t=It.presets,ze=It.onClick,We=It.onHover;return _t.length?wt.createElement("div",{className:"".concat(Kt,"-presets")},wt.createElement("ul",null,_t.map(function(dn,mn){var Zn=dn.label,Qn=dn.value;return wt.createElement("li",{key:mn,onClick:function(){return ze==null?void 0:ze(pi(Qn))},onMouseEnter:function(){return We==null?void 0:We(pi(Qn))},onMouseLeave:function(){return We==null?void 0:We(null)}},Zn)}))):null}function Zi(It){var Kt=It.picker,_t=It.disabledHours,ze=It.disabledMinutes,We=It.disabledSeconds;Kt==="time"&&(_t||ze||We)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function cs(It,Kt,_t){var ze=(0,ue.Z)(Kt)==="object"?Kt.clearIcon:_t;return ze||wt.createElement("span",{className:"".concat(It,"-clear-btn")})}function Ss(It){var Kt,_t=It,ze=_t.prefixCls,We=ze===void 0?"rc-picker":ze,dn=_t.id,mn=_t.name,Zn=_t.tabIndex,Qn=_t.style,di=_t.className,Ri=_t.dropdownClassName,ui=_t.dropdownAlign,Mi=_t.popupStyle,si=_t.transitionName,Ji=_t.generateConfig,zn=_t.locale,Ai=_t.inputReadOnly,Qi=_t.allowClear,jr=_t.autoFocus,Nr=_t.showTime,Yr=_t.picker,Ur=Yr===void 0?"date":Yr,Hr=_t.format,ji=_t.use12Hours,Yo=_t.value,zo=_t.defaultValue,ea=_t.presets,ka=_t.open,La=_t.defaultOpen,Sa=_t.defaultOpenValue,ts=_t.suffixIcon,ma=_t.clearIcon,ra=_t.disabled,xa=_t.disabledDate,Ua=_t.placeholder,es=_t.getPopupContainer,za=_t.pickerRef,wa=_t.panelRender,Ms=_t.onChange,tl=_t.onOpenChange,Xt=_t.onFocus,ie=_t.onBlur,Te=_t.onMouseDown,Ie=_t.onMouseUp,_e=_t.onMouseEnter,Ve=_t.onMouseLeave,Mn=_t.onContextMenu,En=_t.onClick,xn=_t.onKeyDown,ri=_t.onSelect,jn=_t.direction,ti=_t.autoComplete,Li=ti===void 0?"off":ti,bi=_t.inputRender,yi=_t.changeOnBlur,Yi=wt.useRef(null),wi=Ur==="date"&&!!Nr||Ur==="time",rr=Ze(ea),tr=Pn(Xi(Hr,Ur,Nr,ji)),lr=wt.useRef(null),Xr=wt.useRef(null),so=wt.useRef(null),pr=(0,te.Z)(null,{value:Yo,defaultValue:zo}),Fr=(0,oi.Z)(pr,2),bo=Fr[0],ur=Fr[1],Ir=wt.useState(bo),mr=(0,oi.Z)(Ir,2),Gi=mr[0],ar=mr[1],Rr=wt.useRef(null),lo=(0,te.Z)(!1,{value:ka,defaultValue:La,postState:function(So){return ra?!1:So},onChange:function(So){tl&&tl(So),!So&&Rr.current&&Rr.current.onClose&&Rr.current.onClose()}}),co=(0,oi.Z)(lo,2),sr=co[0],Eo=co[1],Io=hi(Gi,{formatList:tr,generateConfig:Ji,locale:zn}),Wo=(0,oi.Z)(Io,2),jo=Wo[0],ja=Wo[1],qo=Sn({valueTexts:jo,onTextChange:function(So){var gs=Qe(So,{locale:zn,formatList:tr,generateConfig:Ji});gs&&(!xa||!xa(gs))&&ar(gs)}}),wo=(0,oi.Z)(qo,3),_r=wo[0],mo=wo[1],Da=wo[2],Pa=function(So){ar(So),ur(So),Ms&&!Je(Ji,bo,So)&&Ms(So,So?qe(So,{generateConfig:Ji,locale:zn,format:tr[0]}):"")},Ga=function(So){ra&&So||Eo(So)},yo=function(So){return sr&&Rr.current&&Rr.current.onKeyDown?Rr.current.onKeyDown(So):((0,re.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ro=function(){for(var So=arguments.length,gs=new Array(So),Is=0;Is<So;Is++)gs[Is]=arguments[Is];En==null||En.apply(void 0,gs),Yi.current&&(Yi.current.focus(),Ga(!0))},Po=function(So){yi&&Pa(Gi),ie==null||ie(So)},Qr=fn({blurToCancel:wi,open:sr,value:_r,triggerOpen:Ga,forwardKeyDown:yo,isClickOutside:function(So){return!Ln([lr.current,Xr.current,so.current],So)},onSubmit:function(){return!Gi||xa&&xa(Gi)?!1:(Pa(Gi),Ga(!1),Da(),!0)},onCancel:function(){Ga(!1),ar(bo),Da()},onKeyDown:function(So,gs){xn==null||xn(So,gs)},onFocus:Xt,onBlur:Po,changeOnBlur:yi}),Br=(0,oi.Z)(Qr,2),ki=Br[0],xr=Br[1],Ao=xr.focused,Uo=xr.typing;wt.useEffect(function(){sr||(ar(bo),!jo.length||jo[0]===""?mo(""):ja!==_r&&Da())},[sr,jo]),wt.useEffect(function(){sr||Da()},[Ur]),wt.useEffect(function(){ar(bo)},[bo]),za&&(za.current={focus:function(){var So;(So=Yi.current)===null||So===void 0||So.focus()},blur:function(){var So;(So=Yi.current)===null||So===void 0||So.blur()}});var Xs=mi(_r,{formatList:tr,generateConfig:Ji,locale:zn}),As=(0,oi.Z)(Xs,3),sl=As[0],ya=As[1],Ba=As[2],fo=(0,Xn.Z)((0,Xn.Z)({},It),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Bs=wt.createElement("div",{className:"".concat(We,"-panel-layout")},wt.createElement(Oo,{prefixCls:We,presets:rr,onClick:function(So){Pa(So),Ga(!1)}}),wt.createElement(Fo,(0,kt.Z)({},fo,{generateConfig:Ji,className:Be()((0,pe.Z)({},"".concat(We,"-panel-focused"),!Uo)),value:Gi,locale:zn,tabIndex:-1,onSelect:function(So){ri==null||ri(So),ar(So)},direction:jn,onPanelChange:function(So,gs){var Is=It.onPanelChange;Ba(!0),Is==null||Is(So,gs)}})));wa&&(Bs=wa(Bs));var ll=wt.createElement("div",{className:"".concat(We,"-panel-container"),ref:lr,onMouseDown:function(So){So.preventDefault()}},Bs),Ma;ts&&(Ma=wt.createElement("span",{className:"".concat(We,"-suffix"),onMouseDown:function(So){So.preventDefault()}},ts));var Ha=cs(We,Qi,ma),Ka=wt.createElement("span",{onMouseDown:function(So){So.preventDefault(),So.stopPropagation()},onMouseUp:function(So){So.preventDefault(),So.stopPropagation(),Pa(null),Ga(!1)},className:"".concat(We,"-clear"),role:"button"},Ha),us=!!Qi&&bo&&!ra,Os=(0,Xn.Z)((0,Xn.Z)((0,Xn.Z)({id:dn,tabIndex:Zn,disabled:ra,readOnly:Ai||typeof tr[0]=="function"||!Uo,value:sl||_r,onChange:function(So){mo(So.target.value)},autoFocus:jr,placeholder:Ua,ref:Yi,title:_r},ki),{},{size:$r(Ur,tr[0],Ji),name:mn},(0,bt.Z)(It,{aria:!0,data:!0})),{},{autoComplete:Li}),na=bi?bi(Os):wt.createElement("input",Os),Xa=function(So,gs){(gs==="submit"||gs!=="key"&&!wi)&&(Pa(So),Ga(!1))},Hs=jn==="rtl"?"bottomRight":"bottomLeft";return wt.createElement(Fe.Provider,{value:{operationRef:Rr,hideHeader:Ur==="time",onSelect:Xa,open:sr,defaultOpenValue:Sa,onDateMouseEnter:ya,onDateMouseLeave:Ba}},wt.createElement(Ro,{visible:sr,popupElement:ll,popupStyle:Mi,prefixCls:We,dropdownClassName:Ri,dropdownAlign:ui,getPopupContainer:es,transitionName:si,popupPlacement:Hs,direction:jn},wt.createElement("div",{ref:so,className:Be()(We,di,(Kt={},(0,pe.Z)(Kt,"".concat(We,"-disabled"),ra),(0,pe.Z)(Kt,"".concat(We,"-focused"),Ao),(0,pe.Z)(Kt,"".concat(We,"-rtl"),jn==="rtl"),Kt)),style:Qn,onMouseDown:Te,onMouseUp:Ie,onMouseEnter:_e,onMouseLeave:Ve,onContextMenu:Mn,onClick:ro},wt.createElement("div",{className:Be()("".concat(We,"-input"),(0,pe.Z)({},"".concat(We,"-input-placeholder"),!!sl)),ref:Xr},na,Ma,us&&Ka))))}var dl=function(It){(0,nn.Z)(_t,It);var Kt=(0,Gn.Z)(_t);function _t(){var ze;(0,on.Z)(this,_t);for(var We=arguments.length,dn=new Array(We),mn=0;mn<We;mn++)dn[mn]=arguments[mn];return ze=Kt.call.apply(Kt,[this].concat(dn)),(0,pe.Z)((0,Jn.Z)(ze),"pickerRef",wt.createRef()),(0,pe.Z)((0,Jn.Z)(ze),"focus",function(){ze.pickerRef.current&&ze.pickerRef.current.focus()}),(0,pe.Z)((0,Jn.Z)(ze),"blur",function(){ze.pickerRef.current&&ze.pickerRef.current.blur()}),ze}return(0,un.Z)(_t,[{key:"render",value:function(){return wt.createElement(Ss,(0,kt.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_t}(wt.Component),lu=dl;function wu(It,Kt){var _t=It.picker,ze=It.locale,We=It.selectedValue,dn=It.disabledDate,mn=It.disabled,Zn=It.generateConfig,Qn=Ce(We,0),di=Ce(We,1);function Ri(zn){return Zn.locale.getWeekFirstDate(ze.locale,zn)}function ui(zn){var Ai=Zn.getYear(zn),Qi=Zn.getMonth(zn);return Ai*100+Qi}function Mi(zn){var Ai=Zn.getYear(zn),Qi=xe(Zn,zn);return Ai*10+Qi}var si=wt.useCallback(function(zn){if(mn[0]||dn&&dn(zn))return!0;if(mn[1]&&di)return!ke(Zn,zn,di)&&Zn.isAfter(zn,di);if(!Kt&&di)switch(_t){case"quarter":return Mi(zn)>Mi(di);case"month":return ui(zn)>ui(di);case"week":return Ri(zn)>Ri(di);default:return!ke(Zn,zn,di)&&Zn.isAfter(zn,di)}return!1},[dn,mn[1],di,Kt]),Ji=wt.useCallback(function(zn){if(mn[1]||dn&&dn(zn))return!0;if(mn[0]&&Qn)return!ke(Zn,zn,di)&&Zn.isAfter(Qn,zn);if(!Kt&&Qn)switch(_t){case"quarter":return Mi(zn)<Mi(Qn);case"month":return ui(zn)<ui(Qn);case"week":return Ri(zn)<Ri(Qn);default:return!ke(Zn,zn,Qn)&&Zn.isAfter(Qn,zn)}return!1},[dn,mn[0],Qn,Kt]);return[si,Ji]}var Fi=yt(80764),Ya=yt(8107);function Es(It,Kt,_t,ze,We,dn,mn,Zn,Qn,di){var Ri=wt.useState(!1),ui=(0,oi.Z)(Ri,2),Mi=ui[0],si=ui[1],Ji=(0,Fi.useMergedState)(It||!1,{value:Kt}),zn=(0,oi.Z)(Ji,2),Ai=zn[0],Qi=zn[1],jr=(0,Fi.useMergedState)(It||!1,{value:Kt,onChange:function(xa){di==null||di(xa)}}),Nr=(0,oi.Z)(jr,2),Yr=Nr[0],Ur=Nr[1],Hr=(0,Fi.useMergedState)(0,{value:_t}),ji=(0,oi.Z)(Hr,2),Yo=ji[0],zo=ji[1],ea=wt.useState(null),ka=(0,oi.Z)(ea,2),La=ka[0],Sa=ka[1];wt.useEffect(function(){Yr&&si(!0)},[Yr]);var ts=function(xa){return xa===0?1:0},ma=(0,Ya.Z)(function(ra,xa,Ua){if(xa===!1)Ur(ra);else if(ra){zo(xa),Ur(ra);var es=ts(xa);!Yr||![mn,Zn][es]?Sa(es):(si(!1),La!==null&&Sa(null))}else if(Ua==="confirm"||Ua==="blur"&&ze){var za=Ai?ts(xa):La;za!==null&&(si(!1),zo(za)),Sa(null),za!==null&&!Qn[za]?(0,Pi.Z)(function(){var wa,Ms=[We,dn][za];(wa=Ms.current)===null||wa===void 0||wa.focus()}):Ur(!1)}else Ur(!1),Qi(!1)});return[Yr,Yo,Mi,ma]}function Jl(It,Kt,_t,ze){var We=Se(It,_t,ze,1);function dn(mn){return mn(It,Kt)?"same":mn(We,Kt)?"closing":"far"}switch(_t){case"year":return dn(function(mn,Zn){return Gt(ze,mn,Zn)});case"quarter":case"month":return dn(function(mn,Zn){return ee(ze,mn,Zn)});default:return dn(function(mn,Zn){return se(ze,mn,Zn)})}}function uu(It,Kt,_t,ze){var We=Ce(It,0),dn=Ce(It,1);if(Kt===0)return We;if(We&&dn){var mn=Jl(We,dn,_t,ze);switch(mn){case"same":return We;case"closing":return We;default:return Se(dn,_t,ze,-1)}}return We}function hu(It){var Kt=It.values,_t=It.picker,ze=It.defaultDates,We=It.generateConfig,dn=wt.useState(function(){return[Ce(ze,0),Ce(ze,1)]}),mn=(0,oi.Z)(dn,2),Zn=mn[0],Qn=mn[1],di=wt.useState(null),Ri=(0,oi.Z)(di,2),ui=Ri[0],Mi=Ri[1],si=Ce(Kt,0),Ji=Ce(Kt,1);function zn(Qi){return Zn[Qi]?Zn[Qi]:Ce(ui,Qi)||uu(Kt,Qi,_t,We)||si||Ji||We.getNow()}function Ai(Qi,jr){if(Qi){var Nr=Rn(ui,Qi,jr);Qn(Rn(Zn,null,jr)||[null,null]);var Yr=(jr+1)%2;Ce(Kt,Yr)||(Nr=Rn(Nr,Qi,Yr)),Mi(Nr)}else(si||Ji)&&Mi(null)}return[zn,Ai]}function ho(It,Kt){return It&&It[0]&&It[1]&&Kt.isAfter(It[0],It[1])?[It[1],It[0]]:It}function Sh(It,Kt,_t,ze){return!!(It||ze&&ze[Kt]||_t[(Kt+1)%2])}function El(It){var Kt,_t,ze,We=It,dn=We.prefixCls,mn=dn===void 0?"rc-picker":dn,Zn=We.id,Qn=We.style,di=We.className,Ri=We.popupStyle,ui=We.dropdownClassName,Mi=We.transitionName,si=We.dropdownAlign,Ji=We.getPopupContainer,zn=We.generateConfig,Ai=We.locale,Qi=We.placeholder,jr=We.autoFocus,Nr=We.disabled,Yr=We.format,Ur=We.picker,Hr=Ur===void 0?"date":Ur,ji=We.showTime,Yo=We.use12Hours,zo=We.separator,ea=zo===void 0?"~":zo,ka=We.value,La=We.defaultValue,Sa=We.defaultPickerValue,ts=We.open,ma=We.defaultOpen,ra=We.disabledDate,xa=We.disabledTime,Ua=We.dateRender,es=We.monthCellRender,za=We.cellRender,wa=We.panelRender,Ms=We.presets,tl=We.ranges,Xt=We.allowEmpty,ie=We.allowClear,Te=We.suffixIcon,Ie=We.clearIcon,_e=We.pickerRef,Ve=We.inputReadOnly,Mn=We.mode,En=We.renderExtraFooter,xn=We.onChange,ri=We.onOpenChange,jn=We.onPanelChange,ti=We.onCalendarChange,Li=We.onFocus,bi=We.onBlur,yi=We.onMouseDown,Yi=We.onMouseUp,wi=We.onMouseEnter,rr=We.onMouseLeave,tr=We.onClick,lr=We.onOk,Xr=We.onKeyDown,so=We.components,pr=We.order,Fr=We.direction,bo=We.activePickerIndex,ur=We.autoComplete,Ir=ur===void 0?"off":ur,mr=We.changeOnBlur,Gi=Hr==="date"&&!!ji||Hr==="time",ar=(0,wt.useRef)(null),Rr=(0,wt.useRef)(null),lo=(0,wt.useRef)(null),co=(0,wt.useRef)(null),sr=(0,wt.useRef)(null),Eo=(0,wt.useRef)(null),Io=(0,wt.useRef)(null),Wo=(0,wt.useRef)(null),jo=Pn(Xi(Yr,Hr,ji,Yo)),ja=(0,wt.useRef)(null),qo=wt.useMemo(function(){return Array.isArray(Nr)?Nr:[Nr||!1,Nr||!1]},[Nr]),wo=(0,te.Z)(null,{value:ka,defaultValue:La,postState:function(Lo){return Hr==="time"&&!pr?Lo:ho(Lo,zn)}}),_r=(0,oi.Z)(wo,2),mo=_r[0],Da=_r[1],Pa=hu({values:mo,picker:Hr,defaultDates:Sa,generateConfig:zn}),Ga=(0,oi.Z)(Pa,2),yo=Ga[0],ro=Ga[1],Po=(0,te.Z)(mo,{postState:function(Lo){var Xo=Lo;if(qo[0]&&qo[1])return Xo;for(var Va=0;Va<2;Va+=1)qo[Va]&&!Xo&&!Ce(Xo,Va)&&!Ce(Xt,Va)&&(Xo=Rn(Xo,zn.getNow(),Va));return Xo}}),Qr=(0,oi.Z)(Po,2),Br=Qr[0],ki=Qr[1],xr=(0,te.Z)([Hr,Hr],{value:Mn}),Ao=(0,oi.Z)(xr,2),Uo=Ao[0],Xs=Ao[1];(0,wt.useEffect)(function(){Xs([Hr,Hr])},[Hr]);var As=function(Lo,Xo){Xs(Lo),jn&&jn(Xo,Lo)},sl=Es(ma,ts,bo,mr,Eo,Io,Ce(Br,0),Ce(Br,1),qo,ri),ya=(0,oi.Z)(sl,4),Ba=ya[0],fo=ya[1],Bs=ya[2],ll=ya[3],Ma=Ba&&fo===0,Ha=Ba&&fo===1,Ka=wu({picker:Hr,selectedValue:Br,locale:Ai,disabled:qo,disabledDate:ra,generateConfig:zn},!Ba||Bs),us=(0,oi.Z)(Ka,2),Os=us[0],na=us[1],Xa=(0,wt.useState)(0),Hs=(0,oi.Z)(Xa,2),Oa=Hs[0],So=Hs[1];(0,wt.useEffect)(function(){!Ba&&ar.current&&So(ar.current.offsetWidth)},[Ba]);function gs(Qa){ll(!0,Qa,"open"),(0,Pi.Z)(function(){var Lo,Xo=[Eo,Io][Qa];(Lo=Xo.current)===null||Lo===void 0||Lo.focus()},0)}function Is(Qa,Lo){var Xo=Qa,Va=Ce(Xo,0),Qs=Ce(Xo,1);Va&&Qs&&zn.isAfter(Va,Qs)&&(Hr==="week"&&!cn(zn,Ai.locale,Va,Qs)||Hr==="quarter"&&!we(zn,Va,Qs)||Hr!=="week"&&Hr!=="quarter"&&Hr!=="time"&&!ke(zn,Va,Qs)?Lo===0?(Xo=[Va,null],Qs=null):(Va=null,Xo=[null,Qs]):(Hr!=="time"||pr!==!1)&&(Xo=ho(Xo,zn))),ki(Xo);var ad=Xo&&Xo[0]?qe(Xo[0],{generateConfig:zn,locale:Ai,format:jo[0]}):"",Rl=Xo&&Xo[1]?qe(Xo[1],{generateConfig:zn,locale:Ai,format:jo[0]}):"";if(ti){var Wh={range:Lo===0?"start":"end"};ti(Xo,[ad,Rl],Wh)}var uh=Sh(Va,0,qo,Xt),cc=Sh(Qs,1,qo,Xt),Zh=Xo===null||uh&&cc;Zh&&(Da(Xo),xn&&(!Je(zn,Ce(mo,0),Va)||!Je(zn,Ce(mo,1),Qs))&&xn(Xo,[ad,Rl]))}var bu=function(Lo){return Ba&&ja.current&&ja.current.onKeyDown?ja.current.onKeyDown(Lo):((0,re.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},$l={formatList:jo,generateConfig:zn,locale:Ai},Wa=hi(Ce(Br,0),$l),ul=(0,oi.Z)(Wa,2),ss=ul[0],ns=ul[1],du=hi(Ce(Br,1),$l),ah=(0,oi.Z)(du,2),Ol=ah[0],Ku=ah[1],Vu=function(Lo,Xo){var Va=Qe(Lo,{locale:Ai,formatList:jo,generateConfig:zn}),Qs=Xo===0?Os:na;Va&&!Qs(Va)&&(ki(Rn(Br,Va,Xo)),ro(Va,Xo))},ql=Sn({valueTexts:ss,onTextChange:function(Lo){return Vu(Lo,0)}}),Ca=(0,oi.Z)(ql,3),Ja=Ca[0],Ws=Ca[1],is=Ca[2],ba=Sn({valueTexts:Ol,onTextChange:function(Lo){return Vu(Lo,1)}}),Zs=(0,oi.Z)(ba,3),Sl=Zs[0],Eu=Zs[1],ac=Zs[2],Ye=(0,wt.useState)(null),wh=(0,oi.Z)(Ye,2),sh=wh[0],Rc=wh[1],vd=(0,wt.useState)(null),Rh=(0,oi.Z)(vd,2),Ph=Rh[0],cf=Rh[1],fl=mi(Ja,{formatList:jo,generateConfig:zn,locale:Ai}),id=(0,oi.Z)(fl,3),Od=id[0],Id=id[1],Rd=id[2],ff=mi(Sl,{formatList:jo,generateConfig:zn,locale:Ai}),zd=(0,oi.Z)(ff,3),jd=zd[0],cu=zd[1],zh=zd[2],zc=function(Lo){cf(Rn(Br,Lo,fo)),fo===0?Id(Lo):cu(Lo)},Yu=function(){cf(Rn(Br,null,fo)),fo===0?Rd():zh()},jh=wt.useState(Ba),rd=(0,oi.Z)(jh,2),od=rd[0],Il=rd[1];wt.useEffect(function(){Il(Ba)},[Ba]);var sc=function(Lo){if(mr&&od){var Xo=Ce(Br,fo);Xo&&Is(Br,fo)}return bi==null?void 0:bi(Lo)},Hd=function(Lo,Xo){return{blurToCancel:!mr&&Gi,forwardKeyDown:bu,onBlur:sc,isClickOutside:function(Qs){return!Ln([Rr.current,lo.current,co.current,ar.current],Qs)},onFocus:function(Qs){Li&&Li(Qs)},triggerOpen:function(Qs){Qs?ll(Qs,Lo,"open"):ll(Qs,Ce(Br,Lo)?Lo:!1,"blur")},onSubmit:function(){if(!Br||ra&&ra(Br[Lo]))return!1;Is(Br,Lo),Xo(),ll(!1,fo,"confirm")},onCancel:function(){ll(!1,Lo,"cancel"),ki(mo),Xo()}}},_l={onKeyDown:function(Lo,Xo){Xr==null||Xr(Lo,Xo)},changeOnBlur:mr},yd=fn((0,Xn.Z)((0,Xn.Z)({},Hd(0,is)),{},{open:Ma,value:Ja},_l)),Wd=(0,oi.Z)(yd,2),lc=Wd[0],Ch=Wd[1],xl=Ch.focused,Zd=Ch.typing,Js=fn((0,Xn.Z)((0,Xn.Z)({},Hd(1,ac)),{},{open:Ha,value:Sl},_l)),Ta=(0,oi.Z)(Js,2),hs=Ta[0],gl=Ta[1],fu=gl.focused,gu=gl.typing,uc=function(Lo){tr&&tr(Lo),!Ba&&!Eo.current.contains(Lo.target)&&!Io.current.contains(Lo.target)&&(qo[0]?qo[1]||gs(1):gs(0))},Hh=function(Lo){yi&&yi(Lo),Ba&&(xl||fu)&&!Eo.current.contains(Lo.target)&&!Io.current.contains(Lo.target)&&Lo.preventDefault()},Gd=mo&&mo[0]?qe(mo[0],{locale:Ai,format:"YYYYMMDDHHmmss",generateConfig:zn}):"",Du=mo&&mo[1]?qe(mo[1],{locale:Ai,format:"YYYYMMDDHHmmss",generateConfig:zn}):"";(0,wt.useEffect)(function(){Ba||(ki(mo),!ss.length||ss[0]===""?Ws(""):ns!==Ja&&is(),!Ol.length||Ol[0]===""?Eu(""):Ku!==Sl&&ac())},[Ba,ss,Ol]),(0,wt.useEffect)(function(){ki(mo)},[Gd,Du]);var Uu=pn({cellRender:za,monthCellRender:es,dateRender:Ua}),gf=wt.useMemo(function(){if(Uu)return function(Qa,Lo){return Uu(Qa,(0,Xn.Z)((0,Xn.Z)({},Lo),{},{range:fo?"end":"start"}))}},[fo,Uu]);_e&&(_e.current={focus:function(){Eo.current&&Eo.current.focus()},blur:function(){Eo.current&&Eo.current.blur(),Io.current&&Io.current.blur()}});var pf=Ze(Ms,tl);function hc(){var Qa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Lo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xo=null;Ba&&Ph&&Ph[0]&&Ph[1]&&zn.isAfter(Ph[1],Ph[0])&&(Xo=Ph);var Va=ji;if(ji&&(0,ue.Z)(ji)==="object"&&ji.defaultValue){var Qs=ji.defaultValue;Va=(0,Xn.Z)((0,Xn.Z)({},ji),{},{defaultValue:Ce(Qs,fo)||void 0})}return wt.createElement(yn.Provider,{value:{inRange:!0,panelPosition:Qa,rangedValue:sh||Br,hoverRangedValue:Xo}},wt.createElement(Fo,(0,kt.Z)({},It,Lo,{cellRender:gf,showTime:Va,mode:Uo[fo],generateConfig:zn,style:void 0,direction:Fr,disabledDate:fo===0?Os:na,disabledTime:function(Rl){return xa?xa(Rl,fo===0?"start":"end"):!1},className:Be()((0,pe.Z)({},"".concat(mn,"-panel-focused"),fo===0?!Zd:!gu)),value:Ce(Br,fo),locale:Ai,tabIndex:-1,onPanelChange:function(Rl,Wh){fo===0&&Rd(!0),fo===1&&zh(!0),As(Rn(Uo,Wh,fo),Rn(Br,Rl,fo));var uh=Rl;Qa==="right"&&Uo[fo]===Wh&&(uh=Se(uh,Wh,zn,-1)),ro(uh,fo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:fo===0?Ce(Br,1):Ce(Br,0)})))}var Bu=0,mf=0;if(fo&&lo.current&&sr.current&&Rr.current&&Wo.current){Bu=lo.current.offsetWidth+sr.current.offsetWidth;var Wf=Wo.current.offsetLeft>Bu?Wo.current.offsetLeft-Bu:Wo.current.offsetLeft,vf=Rr.current.offsetWidth,lh=Wo.current.offsetWidth;vf&&lh&&Bu>vf-lh-(Fr==="rtl"?0:Wf)&&(mf=Bu)}var Sg=Fr==="rtl"?{right:Bu}:{left:Bu};function Zf(){var Qa,Lo=ko(mn,Uo[fo],En),Xo=ga({prefixCls:mn,components:so,needConfirmButton:Gi,okDisabled:!Ce(Br,fo)||ra&&ra(Br[fo]),locale:Ai,onOk:function(){var hh=Ce(Br,fo);hh&&(Is(Br,fo),lr==null||lr(Br),ll(!1,fo,"confirm"))}});if(Hr!=="time"&&!ji){var Va=yo(fo),Qs=Se(Va,Hr,zn),ad=Uo[fo],Rl=ad===Hr,Wh=hc(Rl?"left":!1,{pickerValue:Va,onPickerValueChange:function(hh){ro(hh,fo)}}),uh=hc("right",{pickerValue:Qs,onPickerValueChange:function(hh){ro(Se(hh,Hr,zn,-1),fo)}});Fr==="rtl"?Qa=wt.createElement(wt.Fragment,null,uh,Rl&&Wh):Qa=wt.createElement(wt.Fragment,null,Wh,Rl&&uh)}else Qa=hc();var cc=wt.createElement("div",{className:"".concat(mn,"-panel-layout")},wt.createElement(Oo,{prefixCls:mn,presets:pf,onClick:function(hh){Is(hh,null),ll(!1,fo,"preset")},onHover:function(hh){Rc(hh)}}),wt.createElement("div",null,wt.createElement("div",{className:"".concat(mn,"-panels")},Qa),(Lo||Xo)&&wt.createElement("div",{className:"".concat(mn,"-footer")},Lo,Xo)));return wa&&(cc=wa(cc)),wt.createElement("div",{className:"".concat(mn,"-panel-container"),style:{marginLeft:mf},ref:Rr,onMouseDown:function(hh){hh.preventDefault()}},cc)}var dc=wt.createElement("div",{className:Be()("".concat(mn,"-range-wrapper"),"".concat(mn,"-").concat(Hr,"-range-wrapper")),style:{minWidth:Oa}},wt.createElement("div",{ref:Wo,className:"".concat(mn,"-range-arrow"),style:Sg}),Zf()),Sd;Te&&(Sd=wt.createElement("span",{className:"".concat(mn,"-suffix"),onMouseDown:function(Lo){Lo.preventDefault()}},Te));var Gf=cs(mn,ie,Ie),bh=wt.createElement("span",{onMouseDown:function(Lo){Lo.preventDefault(),Lo.stopPropagation()},onMouseUp:function(Lo){Lo.preventDefault(),Lo.stopPropagation();var Xo=mo;qo[0]||(Xo=Rn(Xo,null,0)),qo[1]||(Xo=Rn(Xo,null,1)),Is(Xo,null),ll(!1,fo,"clear")},className:"".concat(mn,"-clear"),role:"button"},Gf),Kf=ie&&(Ce(mo,0)&&!qo[0]||Ce(mo,1)&&!qo[1]),jc={size:$r(Hr,jo[0],zn)},yf=0,Hc=0;lo.current&&co.current&&sr.current&&(fo===0?Hc=lo.current.offsetWidth:(yf=Bu,Hc=co.current.offsetWidth));var Vf=Fr==="rtl"?{right:yf}:{left:yf},sp=function(Lo,Xo){var Va=Rn(Br,Lo,fo);if(Xo==="submit"||Xo!=="key"&&!Gi){Is(Va,fo),fo===0?Rd():zh();var Qs=fo===0?1:0;qo[Qs]?ll(!1,!1,"confirm"):ll(!1,fo,"confirm")}else ki(Va)};return wt.createElement(Fe.Provider,{value:{operationRef:ja,hideHeader:Hr==="time",onDateMouseEnter:zc,onDateMouseLeave:Yu,hideRanges:!0,onSelect:sp,open:Ba}},wt.createElement(Ro,{visible:Ba,popupElement:dc,popupStyle:Ri,prefixCls:mn,dropdownClassName:ui,dropdownAlign:si,getPopupContainer:Ji,transitionName:Mi,range:!0,direction:Fr},wt.createElement("div",(0,kt.Z)({ref:ar,className:Be()(mn,"".concat(mn,"-range"),di,(Kt={},(0,pe.Z)(Kt,"".concat(mn,"-disabled"),qo[0]&&qo[1]),(0,pe.Z)(Kt,"".concat(mn,"-focused"),fo===0?xl:fu),(0,pe.Z)(Kt,"".concat(mn,"-rtl"),Fr==="rtl"),Kt)),style:Qn,onClick:uc,onMouseEnter:wi,onMouseLeave:rr,onMouseDown:Hh,onMouseUp:Yi},(0,bt.Z)(It,{aria:!0,data:!0})),wt.createElement("div",{className:Be()("".concat(mn,"-input"),(_t={},(0,pe.Z)(_t,"".concat(mn,"-input-active"),fo===0),(0,pe.Z)(_t,"".concat(mn,"-input-placeholder"),!!Od),_t)),ref:lo},wt.createElement("input",(0,kt.Z)({id:Zn,disabled:qo[0],readOnly:Ve||typeof jo[0]=="function"||!Zd,value:Od||Ja,onChange:function(Lo){Ws(Lo.target.value)},autoFocus:jr,placeholder:Ce(Qi,0)||"",ref:Eo},lc,jc,{autoComplete:Ir}))),wt.createElement("div",{className:"".concat(mn,"-range-separator"),ref:sr},ea),wt.createElement("div",{className:Be()("".concat(mn,"-input"),(ze={},(0,pe.Z)(ze,"".concat(mn,"-input-active"),fo===1),(0,pe.Z)(ze,"".concat(mn,"-input-placeholder"),!!jd),ze)),ref:co},wt.createElement("input",(0,kt.Z)({disabled:qo[1],readOnly:Ve||typeof jo[0]=="function"||!gu,value:jd||Sl,onChange:function(Lo){Eu(Lo.target.value)},placeholder:Ce(Qi,1)||"",ref:Io},hs,jc,{autoComplete:Ir}))),wt.createElement("div",{className:"".concat(mn,"-active-bar"),style:(0,Xn.Z)((0,Xn.Z)({},Vf),{},{width:Hc,position:"absolute"})}),Sd,Kf&&bh)))}var Ll=function(It){(0,nn.Z)(_t,It);var Kt=(0,Gn.Z)(_t);function _t(){var ze;(0,on.Z)(this,_t);for(var We=arguments.length,dn=new Array(We),mn=0;mn<We;mn++)dn[mn]=arguments[mn];return ze=Kt.call.apply(Kt,[this].concat(dn)),(0,pe.Z)((0,Jn.Z)(ze),"pickerRef",wt.createRef()),(0,pe.Z)((0,Jn.Z)(ze),"focus",function(){ze.pickerRef.current&&ze.pickerRef.current.focus()}),(0,pe.Z)((0,Jn.Z)(ze),"blur",function(){ze.pickerRef.current&&ze.pickerRef.current.blur()}),ze}return(0,un.Z)(_t,[{key:"render",value:function(){return wt.createElement(El,(0,kt.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_t}(wt.Component),ml=Ll,Zu=lu,Pu=yt(19080),vl=yt(36355),Ml=yt(1684),Bh=yt(19716),_h=yt(32441),Oh=yt(9763),gd=yt(33234),Ih=yt(48183),Gu=yt(64993),Dl=yt(9937),Bl=yt(17313),pd=yt(47585),td=yt(74207),Cu=yt(13826),Bo=yt(92899),ha=yt(37613),cl=yt(83116);const xs=(It,Kt,_t,ze)=>{const{lineHeight:We}=It,dn=Math.floor(_t*We)+2,mn=Math.max((Kt-dn)/2,0),Zn=Math.max(Kt-dn-mn,0);return{padding:`${mn}px ${ze}px ${Zn}px`}},ws=It=>{const{componentCls:Kt,pickerCellCls:_t,pickerCellInnerCls:ze,cellHeight:We,motionDurationSlow:dn,borderRadiusSM:mn,motionDurationMid:Zn,cellHoverBg:Qn,lineWidth:di,lineType:Ri,colorPrimary:ui,cellActiveWithRangeBg:Mi,colorTextLightSolid:si,controlHeightSM:Ji,cellRangeBorderColor:zn,pickerCellBorderGap:Ai,cellHoverWithRangeBg:Qi,cellWidth:jr,colorTextDisabled:Nr,cellBgDisabled:Yr}=It;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:We,transform:"translateY(-50%)",transition:`all ${dn}`,content:'""'},[ze]:{position:"relative",zIndex:2,display:"inline-block",minWidth:We,height:We,lineHeight:`${We}px`,borderRadius:mn,transition:`background ${Zn}, border ${Zn}`},"&-range-hover-start, &-range-hover-end":{[ze]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${_t}-in-view),
|
|
|
&:hover:not(${_t}-selected):not(${_t}-range-start):not(${_t}-range-end):not(${_t}-range-hover-start):not(${_t}-range-hover-end)`]:{[ze]:{background:Qn}},[`&-in-view${_t}-today ${ze}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${di}px ${Ri} ${ui}`,borderRadius:mn,content:'""'}},[`&-in-view${_t}-in-range`]:{position:"relative","&::before":{background:Mi}},[`&-in-view${_t}-selected ${ze},
|
|
|
&-in-view${_t}-range-start ${ze},
|
|
|
&-in-view${_t}-range-end ${ze}`]:{color:si,background:ui},[`&-in-view${_t}-range-start:not(${_t}-range-start-single),
|
|
|
&-in-view${_t}-range-end:not(${_t}-range-end-single)`]:{"&::before":{background:Mi}},[`&-in-view${_t}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${_t}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${_t}-range-hover-start:not(${_t}-in-range):not(${_t}-range-start):not(${_t}-range-end),
|
|
|
&-in-view${_t}-range-hover-end:not(${_t}-in-range):not(${_t}-range-start):not(${_t}-range-end),
|
|
|
&-in-view${_t}-range-hover-start${_t}-range-start-single,
|
|
|
&-in-view${_t}-range-hover-start${_t}-range-start${_t}-range-end${_t}-range-end-near-hover,
|
|
|
&-in-view${_t}-range-hover-end${_t}-range-start${_t}-range-end${_t}-range-start-near-hover,
|
|
|
&-in-view${_t}-range-hover-end${_t}-range-end-single,
|
|
|
&-in-view${_t}-range-hover:not(${_t}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Ji,borderTop:`${di}px dashed ${zn}`,borderBottom:`${di}px dashed ${zn}`,transform:"translateY(-50%)",transition:`all ${dn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Ai},[`&-in-view${_t}-in-range${_t}-range-hover::before,
|
|
|
&-in-view${_t}-in-range${_t}-range-hover-start::before,
|
|
|
&-in-view${_t}-in-range${_t}-range-hover-end::before,
|
|
|
&-in-view${_t}-range-start${_t}-range-hover::before,
|
|
|
&-in-view${_t}-range-end${_t}-range-hover::before,
|
|
|
&-in-view${_t}-range-start:not(${_t}-range-start-single)${_t}-range-hover-start::before,
|
|
|
&-in-view${_t}-range-end:not(${_t}-range-end-single)${_t}-range-hover-end::before,
|
|
|
${Kt}-panel
|
|
|
> :not(${Kt}-date-panel)
|
|
|
&-in-view${_t}-in-range${_t}-range-hover-start::before,
|
|
|
${Kt}-panel
|
|
|
> :not(${Kt}-date-panel)
|
|
|
&-in-view${_t}-in-range${_t}-range-hover-end::before`]:{background:Qi},[`&-in-view${_t}-range-start:not(${_t}-range-start-single):not(${_t}-range-end) ${ze}`]:{borderStartStartRadius:mn,borderEndStartRadius:mn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${_t}-range-end:not(${_t}-range-end-single):not(${_t}-range-start) ${ze}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:mn,borderEndEndRadius:mn},[`&-range-hover${_t}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${_t}-range-hover:first-child::after,
|
|
|
tr > &-in-view${_t}-range-hover-end:first-child::after,
|
|
|
&-in-view${_t}-start${_t}-range-hover-edge-start${_t}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${_t}-range-hover-edge-start:not(${_t}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${_t}-range-hover-start::after`]:{insetInlineStart:(jr-We)/2,borderInlineStart:`${di}px dashed ${zn}`,borderStartStartRadius:mn,borderEndStartRadius:mn},[`tr > &-in-view${_t}-range-hover:last-child::after,
|
|
|
tr > &-in-view${_t}-range-hover-start:last-child::after,
|
|
|
&-in-view${_t}-end${_t}-range-hover-edge-end${_t}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${_t}-range-hover-edge-end:not(${_t}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${_t}-range-hover-end::after`]:{insetInlineEnd:(jr-We)/2,borderInlineEnd:`${di}px dashed ${zn}`,borderStartEndRadius:mn,borderEndEndRadius:mn},"&-disabled":{color:Nr,pointerEvents:"none",[ze]:{background:"transparent"},"&::before":{background:Yr}},[`&-disabled${_t}-today ${ze}::before`]:{borderColor:Nr}}},_a=It=>{const{componentCls:Kt,pickerCellCls:_t,pickerCellInnerCls:ze,pickerYearMonthCellWidth:We,pickerControlIconSize:dn,cellWidth:mn,paddingSM:Zn,paddingXS:Qn,paddingXXS:di,colorBgContainer:Ri,lineWidth:ui,lineType:Mi,borderRadiusLG:si,colorPrimary:Ji,colorTextHeading:zn,colorSplit:Ai,pickerControlIconBorderWidth:Qi,colorIcon:jr,textHeight:Nr,motionDurationMid:Yr,colorIconHover:Ur,fontWeightStrong:Hr,cellHeight:ji,pickerCellPaddingVertical:Yo,colorTextDisabled:zo,colorText:ea,fontSize:ka,cellHoverWithRangeBg:La,motionDurationSlow:Sa,withoutTimeCellHeight:ts,pickerQuarterPanelContentHeight:ma,colorLink:ra,colorLinkActive:xa,colorLinkHover:Ua,cellRangeBorderColor:es,borderRadiusSM:za,colorTextLightSolid:wa,cellHoverBg:Ms,timeColumnHeight:tl,timeColumnWidth:Xt,timeCellHeight:ie,controlItemBgActive:Te,marginXXS:Ie,pickerDatePanelPaddingHorizontal:_e}=It,Ve=mn*7+_e*2,Mn=(Ve-Qn*2)/3-We-Zn,En=(Ve-Qn*2)/4-We;return{[Kt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ri,border:`${ui}px ${Mi} ${Ai}`,borderRadius:si,outline:"none","&-focused":{borderColor:Ji},"&-rtl":{direction:"rtl",[`${Kt}-prev-icon,
|
|
|
${Kt}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Kt}-next-icon,
|
|
|
${Kt}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Ve},"&-header":{display:"flex",padding:`0 ${Qn}px`,color:zn,borderBottom:`${ui}px ${Mi} ${Ai}`,"> *":{flex:"none"},button:{padding:0,color:jr,lineHeight:`${Nr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Yr}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:ka,"&:hover":{color:Ur}},"&-view":{flex:"auto",fontWeight:Hr,lineHeight:`${Nr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Qn},"&:hover":{color:Ji}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:dn,height:dn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:dn,height:dn,border:"0 solid currentcolor",borderBlockStartWidth:Qi,borderBlockEndWidth:0,borderInlineStartWidth:Qi,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(dn/2),insetInlineStart:Math.ceil(dn/2),display:"inline-block",width:dn,height:dn,border:"0 solid currentcolor",borderBlockStartWidth:Qi,borderBlockEndWidth:0,borderInlineStartWidth:Qi,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ji,fontWeight:"normal"},th:{height:ji+Yo*2,color:ea,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Yo}px 0`,color:zo,cursor:"pointer","&-in-view":{color:ea}},ws(It)),[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start ${ze},
|
|
|
&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${ze}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:La,transition:`all ${Sa}`,content:'""'}},[`&-date-panel
|
|
|
${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start
|
|
|
${ze}::after`]:{insetInlineEnd:-(mn-ji)/2,insetInlineStart:0},[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${ze}::after`]:{insetInlineEnd:0,insetInlineStart:-(mn-ji)/2},[`&-range-hover${Kt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-content`]:{height:ts*4},[ze]:{padding:`0 ${Qn}px`}},"&-quarter-panel":{[`${Kt}-content`]:{height:ma},[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:En,borderInlineStart:`${ui}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:En,borderInlineEnd:`${ui}px dashed ${es}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:En,borderInlineEnd:`${ui}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:En,borderInlineStart:`${ui}px dashed ${es}`}}},[`&-panel ${Kt}-footer`]:{borderTop:`${ui}px ${Mi} ${Ai}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Nr-2*ui}px`,textAlign:"center","&-extra":{padding:`0 ${Zn}px`,lineHeight:`${Nr-2*ui}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${ui}px ${Mi} ${Ai}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ra,"&:hover":{color:Ua},"&:active":{color:xa},[`&${Kt}-today-btn-disabled`]:{color:zo,cursor:"not-allowed"}},"&-decade-panel":{[ze]:{padding:`0 ${Qn/2}px`},[`${Kt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-body`]:{padding:`0 ${Qn}px`},[ze]:{width:We},[`${Kt}-cell-range-hover-start::after`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za}},[`${Kt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:Mn,borderInlineStart:`${ui}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:Mn,borderInlineEnd:`${ui}px dashed ${es}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:Mn,borderInlineEnd:`${ui}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:Mn,borderInlineStart:`${ui}px dashed ${es}`}}},"&-week-panel":{[`${Kt}-body`]:{padding:`${Qn}px ${Zn}px`},[`${Kt}-cell`]:{[`&:hover ${ze},
|
|
|
&-selected ${ze},
|
|
|
${ze}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Yr}`},"&:first-child:before":{borderStartStartRadius:za,borderEndStartRadius:za},"&:last-child:before":{borderStartEndRadius:za,borderEndEndRadius:za}},"&:hover td":{"&:before":{background:Ms}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${_t}`]:{"&:before":{background:Ji},[`&${Kt}-cell-week`]:{color:new Gu.C(wa).setAlpha(.5).toHexString()},[ze]:{color:wa}}},"&-range-hover td:before":{background:Te}}},"&-date-panel":{[`${Kt}-body`]:{padding:`${Qn}px ${_e}px`},[`${Kt}-content`]:{width:mn*7,th:{width:mn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Kt}-time-panel`]:{borderInlineStart:`${ui}px ${Mi} ${Ai}`},[`${Kt}-date-panel,
|
|
|
${Kt}-time-panel`]:{transition:`opacity ${Sa}`},"&-active":{[`${Kt}-date-panel,
|
|
|
${Kt}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Kt}-content`]:{display:"flex",flex:"auto",height:tl},"&-column":{flex:"1 0 auto",width:Xt,margin:`${di}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Yr}`,overflowX:"hidden","&::after":{display:"block",height:tl-ie,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ui}px ${Mi} ${Ai}`},"&-active":{background:new Gu.C(Te).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Kt}-time-panel-cell`]:{marginInline:Ie,[`${Kt}-time-panel-cell-inner`]:{display:"block",width:Xt-2*Ie,height:ie,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Xt-ie)/2,color:ea,lineHeight:`${ie}px`,borderRadius:za,cursor:"pointer",transition:`background ${Yr}`,"&:hover":{background:Ms}},"&-selected":{[`${Kt}-time-panel-cell-inner`]:{background:Te}},"&-disabled":{[`${Kt}-time-panel-cell-inner`]:{color:zo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Kt}-time-panel-column:after`]:{height:tl-ie+di*2}}}},ls=It=>{const{componentCls:Kt,colorBgContainer:_t,colorError:ze,errorActiveShadow:We,colorWarning:dn,warningActiveShadow:mn}=It;return{[`${Kt}:not(${Kt}-disabled)`]:{[`&${Kt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:_t,borderColor:ze},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,ha.TS)(It,{activeBorderColor:ze,activeShadow:We}))),[`${Kt}-active-bar`]:{background:ze}},[`&${Kt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:_t,borderColor:dn},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,ha.TS)(It,{activeBorderColor:dn,activeShadow:mn}))),[`${Kt}-active-bar`]:{background:dn}}}}},Ls=It=>{const{componentCls:Kt,antCls:_t,controlHeight:ze,fontSize:We,paddingInline:dn,colorBgContainer:mn,lineWidth:Zn,lineType:Qn,colorBorder:di,borderRadius:Ri,motionDurationMid:ui,colorBgContainerDisabled:Mi,colorTextDisabled:si,colorTextPlaceholder:Ji,controlHeightLG:zn,fontSizeLG:Ai,controlHeightSM:Qi,paddingInlineSM:jr,paddingXS:Nr,marginXS:Yr,colorTextDescription:Ur,lineWidthBold:Hr,lineHeight:ji,colorPrimary:Yo,motionDurationSlow:zo,zIndexPopup:ea,paddingXXS:ka,paddingSM:La,textHeight:Sa,cellActiveWithRangeBg:ts,colorPrimaryBorder:ma,sizePopupArrow:ra,borderRadiusXS:xa,borderRadiusOuter:Ua,colorBgElevated:es,borderRadiusLG:za,boxShadowSecondary:wa,borderRadiusSM:Ms,colorSplit:tl,cellHoverBg:Xt,presetsWidth:ie,presetsMaxWidth:Te,boxShadowPopoverArrow:Ie,colorTextQuaternary:_e}=It;return[{[Kt]:Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(It)),xs(It,ze,We,dn)),{position:"relative",display:"inline-flex",alignItems:"center",background:mn,lineHeight:1,border:`${Zn}px ${Qn} ${di}`,borderRadius:Ri,transition:`border ${ui}, box-shadow ${ui}`,"&:hover, &-focused":Object.assign({},(0,Dl.pU)(It)),"&-focused":Object.assign({},(0,Dl.M1)(It)),[`&${Kt}-disabled`]:{background:Mi,borderColor:di,cursor:"not-allowed",[`${Kt}-suffix`]:{color:_e}},[`&${Kt}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Kt}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Dl.ik)(It)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Kt}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Ji}}},"&-large":Object.assign(Object.assign({},xs(It,zn,Ai,dn)),{[`${Kt}-input > input`]:{fontSize:Ai}}),"&-small":Object.assign({},xs(It,Qi,We,jr)),[`${Kt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Nr/2,color:si,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Yr}}},[`${Kt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:si,lineHeight:1,background:mn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${ui}, color ${ui}`,"> *":{verticalAlign:"top"},"&:hover":{color:Ur}},[`${Kt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Ai,color:si,fontSize:Ai,verticalAlign:"top",cursor:"default",[`${Kt}-focused &`]:{color:Ur},[`${Kt}-range-separator &`]:{[`${Kt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Kt}-clear`]:{insetInlineEnd:dn},"&:hover":{[`${Kt}-clear`]:{opacity:1}},[`${Kt}-active-bar`]:{bottom:-Zn,height:Hr,marginInlineStart:dn,background:Yo,opacity:0,transition:`all ${zo} ease-out`,pointerEvents:"none"},[`&${Kt}-focused`]:{[`${Kt}-active-bar`]:{opacity:1}},[`${Kt}-range-separator`]:{alignItems:"center",padding:`0 ${Nr}px`,lineHeight:1},[`&${Kt}-small`]:{[`${Kt}-clear`]:{insetInlineEnd:jr},[`${Kt}-active-bar`]:{marginInlineStart:jr}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(It)),_a(It)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ea,[`&${Kt}-dropdown-hidden`]:{display:"none"},[`&${Kt}-dropdown-placement-bottomLeft`]:{[`${Kt}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Kt}-dropdown-placement-topLeft`]:{[`${Kt}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${_t}-slide-up-enter${_t}-slide-up-enter-active${Kt}-dropdown-placement-topLeft,
|
|
|
&${_t}-slide-up-enter${_t}-slide-up-enter-active${Kt}-dropdown-placement-topRight,
|
|
|
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Kt}-dropdown-placement-topLeft,
|
|
|
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Kt}-dropdown-placement-topRight`]:{animationName:Cu.Qt},[`&${_t}-slide-up-enter${_t}-slide-up-enter-active${Kt}-dropdown-placement-bottomLeft,
|
|
|
&${_t}-slide-up-enter${_t}-slide-up-enter-active${Kt}-dropdown-placement-bottomRight,
|
|
|
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Kt}-dropdown-placement-bottomLeft,
|
|
|
&${_t}-slide-up-appear${_t}-slide-up-appear-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Cu.fJ},[`&${_t}-slide-up-leave${_t}-slide-up-leave-active${Kt}-dropdown-placement-topLeft,
|
|
|
&${_t}-slide-up-leave${_t}-slide-up-leave-active${Kt}-dropdown-placement-topRight`]:{animationName:Cu.ly},[`&${_t}-slide-up-leave${_t}-slide-up-leave-active${Kt}-dropdown-placement-bottomLeft,
|
|
|
&${_t}-slide-up-leave${_t}-slide-up-leave-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Cu.Uw},[`${Kt}-panel > ${Kt}-time-panel`]:{paddingTop:ka},[`${Kt}-ranges`]:{marginBottom:0,padding:`${ka}px ${La}px`,overflow:"hidden",lineHeight:`${Sa-2*Zn-Nr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Kt}-preset > ${_t}-tag-blue`]:{color:Yo,background:ts,borderColor:ma,cursor:"pointer"},[`${Kt}-ok`]:{marginInlineStart:"auto"}},[`${Kt}-range-wrapper`]:{display:"flex",position:"relative"},[`${Kt}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:dn*1.5,transition:`left ${zo} ease-out`},(0,pd.r)(ra,xa,Ua,es,Ie)),[`${Kt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:es,borderRadius:za,boxShadow:wa,transition:`margin ${zo}`,[`${Kt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Kt}-presets`]:{display:"flex",flexDirection:"column",minWidth:ie,maxWidth:Te,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Nr,borderInlineEnd:`${Zn}px ${Qn} ${tl}`,li:Object.assign(Object.assign({},Bl.vS),{borderRadius:Ms,paddingInline:Nr,paddingBlock:(Qi-Math.round(We*ji))/2,cursor:"pointer",transition:`all ${zo}`,"+ li":{marginTop:Yr},"&:hover":{background:Xt}})}},[`${Kt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Kt}-panel`]:{borderWidth:`0 0 ${Zn}px`},"&:last-child":{[`${Kt}-panel`]:{borderWidth:0}}},[`${Kt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Kt}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:di}}}}),"&-dropdown-range":{padding:`${ra*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Kt}-separator`]:{transform:"rotate(180deg)"},[`${Kt}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Cu.oN)(It,"slide-up"),(0,Cu.oN)(It,"slide-down"),(0,Bo.Fm)(It,"move-up"),(0,Bo.Fm)(It,"move-down")]},Ps=It=>{const{componentCls:Kt,controlHeightLG:_t,paddingXXS:ze,padding:We}=It;return{pickerCellCls:`${Kt}-cell`,pickerCellInnerCls:`${Kt}-cell-inner`,pickerYearMonthCellWidth:_t*1.5,pickerQuarterPanelContentHeight:_t*1.4,pickerCellPaddingVertical:ze+ze/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:We+ze/2}},ih=It=>({cellHoverBg:It.controlItemBgHover,cellActiveWithRangeBg:It.controlItemBgActive,cellHoverWithRangeBg:new Gu.C(It.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Gu.C(It.colorPrimary).lighten(20).toHexString(),cellBgDisabled:It.colorBgContainerDisabled,timeColumnWidth:It.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:It.controlHeightSM*1.5,cellHeight:It.controlHeightSM,textHeight:It.controlHeightLG,withoutTimeCellHeight:It.controlHeightLG*1.65});var Ql=(0,cl.Z)("DatePicker",It=>{const Kt=(0,ha.TS)((0,Dl.e5)(It),Ps(It));return[Ls(Kt),ls(Kt),(0,td.c)(It,{focusElCls:`${It.componentCls}-focused`})]},It=>Object.assign(Object.assign(Object.assign({},(0,Dl.TM)(It)),ih(It)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:It.zIndexPopupBase+50}));function fs(It,Kt,_t){return _t!==void 0?_t:Kt==="year"&&It.lang.yearPlaceholder?It.lang.yearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.quarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.monthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.weekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.placeholder:It.lang.placeholder}function ic(It,Kt,_t){return _t!==void 0?_t:Kt==="year"&&It.lang.yearPlaceholder?It.lang.rangeYearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.rangeQuarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.rangeMonthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.rangeWeekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.rangePlaceholder:It.lang.rangePlaceholder}function md(It,Kt){const _t={adjustX:1,adjustY:1};switch(Kt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:_t};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:_t};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:_t};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:_t};default:return{points:It==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:_t}}}function ed(It){return It?Array.isArray(It)?It:[It]:[]}function kr(It){const{format:Kt,picker:_t,showHour:ze,showMinute:We,showSecond:dn,use12Hours:mn}=It,Zn=ed(Kt)[0],Qn=Object.assign({},It);return Kt&&Array.isArray(Kt)&&(Qn.format=Zn),Zn&&typeof Zn=="string"&&(!Zn.includes("s")&&dn===void 0&&(Qn.showSecond=!1),!Zn.includes("m")&&We===void 0&&(Qn.showMinute=!1),!Zn.includes("H")&&!Zn.includes("h")&&!Zn.includes("K")&&!Zn.includes("k")&&ze===void 0&&(Qn.showHour=!1),(Zn.includes("a")||Zn.includes("A"))&&mn===void 0&&(Qn.use12Hours=!0)),_t==="time"?Qn:(typeof Zn=="function"&&delete Qn.format,{showTime:Qn})}function nd(It,Kt,_t){if(It===!1)return!1;const ze={clearIcon:Kt!=null?Kt:_t};return typeof It=="object"?Object.assign(Object.assign({},ze),It):ze}var Ne=yt(3113);function ni(It){return wt.createElement(Ne.ZP,Object.assign({size:"small",type:"primary"},It))}var rc={button:ni},rh=function(It,Kt){var _t={};for(var ze in It)Object.prototype.hasOwnProperty.call(It,ze)&&Kt.indexOf(ze)<0&&(_t[ze]=It[ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ze=Object.getOwnPropertySymbols(It);We<ze.length;We++)Kt.indexOf(ze[We])<0&&Object.prototype.propertyIsEnumerable.call(It,ze[We])&&(_t[ze[We]]=It[ze[We]]);return _t};function oh(It){return(0,wt.forwardRef)((_t,ze)=>{const{prefixCls:We,getPopupContainer:dn,className:mn,placement:Zn,size:Qn,disabled:di,bordered:Ri=!0,placeholder:ui,popupClassName:Mi,dropdownClassName:si,status:Ji,clearIcon:zn,allowClear:Ai,rootClassName:Qi}=_t,jr=rh(_t,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Nr=wt.useRef(null),{getPrefixCls:Yr,direction:Ur,getPopupContainer:Hr}=(0,wt.useContext)(vl.E_),ji=Yr("picker",We),{compactSize:Yo,compactItemClassnames:zo}=(0,gd.ri)(ji,Ur),{format:ea,showTime:ka,picker:La}=_t,Sa=Yr(),[ts,ma]=Ql(ji),ra=Object.assign(Object.assign({},ka?kr(Object.assign({format:ea,picker:La},ka)):{}),La==="time"?kr(Object.assign(Object.assign({format:ea},_t),{picker:La})):{}),xa=(0,Bh.Z)(Ie=>{var _e;return(_e=Qn!=null?Qn:Yo)!==null&&_e!==void 0?_e:Ie}),Ua=wt.useContext(Ml.Z),es=di!=null?di:Ua,za=(0,wt.useContext)(_h.aM),{hasFeedback:wa,status:Ms,feedbackIcon:tl}=za,Xt=wt.createElement(wt.Fragment,null,La==="time"?wt.createElement(Ke,null):wt.createElement(Yt,null),wa&&tl);(0,wt.useImperativeHandle)(ze,()=>({focus:()=>{var Ie;return(Ie=Nr.current)===null||Ie===void 0?void 0:Ie.focus()},blur:()=>{var Ie;return(Ie=Nr.current)===null||Ie===void 0?void 0:Ie.blur()}}));const[ie]=(0,Oh.Z)("Calendar",Ih.Z),Te=Object.assign(Object.assign({},ie),_t.locale);return ts(wt.createElement(ml,Object.assign({separator:wt.createElement("span",{"aria-label":"to",className:`${ji}-separator`},wt.createElement(Kn,null)),disabled:es,ref:Nr,dropdownAlign:md(Ur,Zn),placeholder:ic(Te,La,ui),suffixIcon:Xt,prevIcon:wt.createElement("span",{className:`${ji}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${ji}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${ji}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${ji}-super-next-icon`}),transitionName:`${Sa}-slide-up`},jr,ra,{className:Be()({[`${ji}-${xa}`]:xa,[`${ji}-borderless`]:!Ri},(0,Pu.Z)(ji,(0,Pu.F)(Ms,Ji),wa),ma,zo,mn,Qi),locale:Te.lang,prefixCls:ji,getPopupContainer:dn||Hr,generateConfig:It,components:rc,direction:Ur,dropdownClassName:Be()(ma,Mi||si,Qi),allowClear:nd(Ai,zn,wt.createElement(tn.Z,null))})))})}var xh=function(It,Kt){var _t={};for(var ze in It)Object.prototype.hasOwnProperty.call(It,ze)&&Kt.indexOf(ze)<0&&(_t[ze]=It[ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ze=Object.getOwnPropertySymbols(It);We<ze.length;We++)Kt.indexOf(ze[We])<0&&Object.prototype.propertyIsEnumerable.call(It,ze[We])&&(_t[ze[We]]=It[ze[We]]);return _t};function oc(It){function Kt(Qn,di){const Ri=di==="TimePicker"?"timePicker":"datePicker",ui=(0,wt.forwardRef)((Mi,si)=>{const{prefixCls:Ji,getPopupContainer:zn,style:Ai,className:Qi,rootClassName:jr,size:Nr,bordered:Yr=!0,placement:Ur,placeholder:Hr,popupClassName:ji,dropdownClassName:Yo,disabled:zo,status:ea,clearIcon:ka,allowClear:La}=Mi,Sa=xh(Mi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ts,direction:ma,getPopupContainer:ra,[Ri]:xa}=(0,wt.useContext)(vl.E_),Ua=ts("picker",Ji),{compactSize:es,compactItemClassnames:za}=(0,gd.ri)(Ua,ma),wa=wt.useRef(null),{format:Ms,showTime:tl}=Mi,[Xt,ie]=Ql(Ua);(0,wt.useImperativeHandle)(si,()=>({focus:()=>{var wi;return(wi=wa.current)===null||wi===void 0?void 0:wi.focus()},blur:()=>{var wi;return(wi=wa.current)===null||wi===void 0?void 0:wi.blur()}}));const Te={showToday:!0};let Ie={};Qn&&(Ie.picker=Qn);const _e=Qn||Mi.picker;Ie=Object.assign(Object.assign(Object.assign({},Ie),tl?kr(Object.assign({format:Ms,picker:_e},tl)):{}),_e==="time"?kr(Object.assign(Object.assign({format:Ms},Mi),{picker:_e})):{});const Ve=ts(),Mn=(0,Bh.Z)(wi=>{var rr;return(rr=Nr!=null?Nr:es)!==null&&rr!==void 0?rr:wi}),En=wt.useContext(Ml.Z),xn=zo!=null?zo:En,ri=(0,wt.useContext)(_h.aM),{hasFeedback:jn,status:ti,feedbackIcon:Li}=ri,bi=wt.createElement(wt.Fragment,null,_e==="time"?wt.createElement(Ke,null):wt.createElement(Yt,null),jn&&Li),[yi]=(0,Oh.Z)("DatePicker",Ih.Z),Yi=Object.assign(Object.assign({},yi),Mi.locale);return Xt(wt.createElement(Zu,Object.assign({ref:wa,placeholder:fs(Yi,_e,Hr),suffixIcon:bi,dropdownAlign:md(ma,Ur),prevIcon:wt.createElement("span",{className:`${Ua}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${Ua}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${Ua}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${Ua}-super-next-icon`}),transitionName:`${Ve}-slide-up`},Te,Sa,Ie,{locale:Yi.lang,className:Be()({[`${Ua}-${Mn}`]:Mn,[`${Ua}-borderless`]:!Yr},(0,Pu.Z)(Ua,(0,Pu.F)(ti,ea),jn),ie,za,xa==null?void 0:xa.className,Qi,jr),style:Object.assign(Object.assign({},xa==null?void 0:xa.style),Ai),prefixCls:Ua,getPopupContainer:zn||ra,generateConfig:It,components:rc,direction:ma,disabled:xn,dropdownClassName:Be()(ie,jr,ji||Yo),allowClear:nd(La,ka,wt.createElement(tn.Z,null))})))});return di&&(ui.displayName=di),ui}const _t=Kt(),ze=Kt("week","WeekPicker"),We=Kt("month","MonthPicker"),dn=Kt("year","YearPicker"),mn=Kt("time","TimePicker"),Zn=Kt("quarter","QuarterPicker");return{DatePicker:_t,WeekPicker:ze,MonthPicker:We,YearPicker:dn,TimePicker:mn,QuarterPicker:Zn}}const Bd=null;function Cs(It){const{DatePicker:Kt,WeekPicker:_t,MonthPicker:ze,YearPicker:We,TimePicker:dn,QuarterPicker:mn}=oc(It),Zn=oh(It),Qn=Kt;return Qn.WeekPicker=_t,Qn.MonthPicker=ze,Qn.YearPicker=We,Qn.RangePicker=Zn,Qn.TimePicker=dn,Qn.QuarterPicker=mn,Qn}var vo=Cs;const il=vo(mt);function yl(It){const Kt=md(It.direction,It.placement);return Kt.overflow.adjustY=!1,Kt.overflow.adjustX=!1,Object.assign(Object.assign({},It),{dropdownAlign:Kt})}const as=(0,Pt.Z)(il,"picker",null,yl);il._InternalPanelDoNotUseOrYouWillBeFired=as;const ta=(0,Pt.Z)(il.RangePicker,"picker",null,yl);il._InternalRangePanelDoNotUseOrYouWillBeFired=ta,il.generatePicker=vo;var Us=il},28103:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return de}});var At=yt(92310),zt=yt.n(At),re=yt(59301),Ae=yt(36355),Ut=yt(17313),ne=yt(83116),Ft=yt(37613);const De=be=>{const{componentCls:Nt,sizePaddingEdgeHorizontal:et,colorSplit:nt,lineWidth:ht,textPaddingInline:st,orientationMargin:gt,verticalMarginInline:mt}=be;return{[Nt]:Object.assign(Object.assign({},(0,Ut.Wf)(be)),{borderBlockStart:`${ht}px solid ${nt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:mt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ht}px solid ${nt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Nt}-with-text`]:{display:"flex",alignItems:"center",margin:`${be.dividerHorizontalWithTextGutterMargin}px 0`,color:be.colorTextHeading,fontWeight:500,fontSize:be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${nt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ht}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Nt}-with-text-left`]:{"&::before":{width:`${gt*100}%`},"&::after":{width:`${100-gt*100}%`}},[`&-horizontal${Nt}-with-text-right`]:{"&::before":{width:`${100-gt*100}%`},"&::after":{width:`${gt*100}%`}},[`${Nt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:st},"&-dashed":{background:"none",borderColor:nt,borderStyle:"dashed",borderWidth:`${ht}px 0 0`},[`&-horizontal${Nt}-with-text${Nt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Nt}-dashed`]:{borderInlineStartWidth:ht,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Nt}-with-text`]:{color:be.colorText,fontWeight:"normal",fontSize:be.fontSize},[`&-horizontal${Nt}-with-text-left${Nt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Nt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Nt}-with-text-right${Nt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Nt}-inner-text`]:{paddingInlineEnd:et}}})}};var Pe=(0,ne.Z)("Divider",be=>{const Nt=(0,Ft.TS)(be,{dividerHorizontalWithTextGutterMargin:be.margin,dividerHorizontalGutterMargin:be.marginLG,sizePaddingEdgeHorizontal:0});return[De(Nt)]},be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:be.marginXS})),oe=function(be,Nt){var et={};for(var nt in be)Object.prototype.hasOwnProperty.call(be,nt)&&Nt.indexOf(nt)<0&&(et[nt]=be[nt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(be);ht<nt.length;ht++)Nt.indexOf(nt[ht])<0&&Object.prototype.propertyIsEnumerable.call(be,nt[ht])&&(et[nt[ht]]=be[nt[ht]]);return et},de=be=>{const{getPrefixCls:Nt,direction:et,divider:nt}=re.useContext(Ae.E_),{prefixCls:ht,type:st="horizontal",orientation:gt="center",orientationMargin:mt,className:Pt,rootClassName:kt,children:wt,dashed:Ot,plain:jt,style:Ht}=be,$t=oe(be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ye=Nt("divider",ht),[Yt,Ge]=Pe(ye),ce=gt.length>0?`-${gt}`:gt,$e=!!wt,Ue=gt==="left"&&mt!=null,Ke=gt==="right"&&mt!=null,tn=zt()(ye,nt==null?void 0:nt.className,Ge,`${ye}-${st}`,{[`${ye}-with-text`]:$e,[`${ye}-with-text${ce}`]:$e,[`${ye}-dashed`]:!!Ot,[`${ye}-plain`]:!!jt,[`${ye}-rtl`]:et==="rtl",[`${ye}-no-default-orientation-margin-left`]:Ue,[`${ye}-no-default-orientation-margin-right`]:Ke},Pt,kt),Tn=re.useMemo(()=>typeof mt=="number"?mt:/^\d+$/.test(mt)?Number(mt):mt,[mt]),ve=Object.assign(Object.assign({},Ue&&{marginLeft:Tn}),Ke&&{marginRight:Tn});return Yt(re.createElement("div",Object.assign({className:tn,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Ht)},$t,{role:"separator"}),wt&&st!=="vertical"&&re.createElement("span",{className:`${ye}-inner-text`,style:ve},wt)))}},91857:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(38226),re=yt(92310),Ae=yt.n(re),Ut=yt(31561),ne=yt(80764),Ft=yt(35788),De=yt(64002),Pe=yt(79676),oe=yt(53487),Re=yt(92343),de=yt(36355),be=yt(20834),Nt=yt(40875),et=yt(88088),nt=yt(47211);const ht=null,st=kt=>{const{menu:wt,arrow:Ot,prefixCls:jt,children:Ht,trigger:$t,disabled:ye,dropdownRender:Yt,getPopupContainer:Ge,overlayClassName:ce,rootClassName:$e,open:Ue,onOpenChange:Ke,visible:tn,onVisibleChange:Tn,mouseEnterDelay:ve=.15,mouseLeaveDelay:Zt=.1,autoAdjustOverflow:en=!0,placement:Kn="",overlay:ii,transitionName:Be}=kt,{getPopupContainer:on,getPrefixCls:un,direction:Jn}=At.useContext(de.E_),nn=At.useMemo(()=>{const se=un();return Be!==void 0?Be:Kn.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[un,Kn,Be]),Gn=At.useMemo(()=>Kn?Kn.includes("Center")?Kn.slice(0,Kn.indexOf("Center")):Kn:Jn==="rtl"?"bottomRight":"bottomLeft",[Kn,Jn]),pe=un("dropdown",jt),[Xn,oi]=(0,nt.Z)(pe),[,te]=(0,et.Z)(),bt=At.Children.only(Ht),xt=(0,Re.Tm)(bt,{className:Ae()(`${pe}-trigger`,{[`${pe}-rtl`]:Jn==="rtl"},bt.props.className),disabled:ye}),Tt=ye?[]:$t;let Bt;Tt&&Tt.includes("contextMenu")&&(Bt=!0);const[St,he]=(0,Ft.Z)(!1,{value:Ue!=null?Ue:tn}),Le=(0,ne.useEvent)(se=>{Ke==null||Ke(se),Tn==null||Tn(se),he(se)}),Gt=Ae()(ce,$e,oi,{[`${pe}-rtl`]:Jn==="rtl"}),ee=(0,Pe.Z)({arrowPointAtCenter:typeof Ot=="object"&&Ot.pointAtCenter,autoAdjustOverflow:en,offset:te.marginXXS,arrowWidth:Ot?te.sizePopupArrow:0,borderRadius:te.borderRadius}),xe=At.useCallback(()=>{he(!1)},[]),we=()=>{let se;return wt!=null&&wt.items?se=At.createElement(be.default,Object.assign({},wt)):typeof ii=="function"?se=ii():se=ii,Yt&&(se=Yt(se)),se=At.Children.only(typeof se=="string"?At.createElement("span",null,se):se),At.createElement(Nt.J,{prefixCls:`${pe}-menu`,expandIcon:At.createElement("span",{className:`${pe}-menu-submenu-arrow`},At.createElement(zt.Z,{className:`${pe}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:xe,validator:ke=>{let{mode:vn}=ke}},se)};return Xn(At.createElement(Ut.Z,Object.assign({alignPoint:Bt},(0,De.Z)(kt,["rootClassName"]),{mouseEnterDelay:ve,mouseLeaveDelay:Zt,visible:St,builtinPlacements:ee,arrow:!!Ot,overlayClassName:Gt,prefixCls:pe,getPopupContainer:Ge||on,transitionName:nn,trigger:Tt,overlay:we,placement:Gn,onVisibleChange:Le}),xt))};function gt(kt){return Object.assign(Object.assign({},kt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const mt=(0,oe.Z)(st,"dropdown",kt=>kt,gt),Pt=kt=>At.createElement(mt,Object.assign({},kt),At.createElement("span",null));st._InternalPanelDoNotUseOrYouWillBeFired=Pt,Cn.Z=st},38854:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return et}});var At=yt(91857),zt=yt(92310),re=yt.n(zt),Ae=yt(59301),Ut=yt(24764),ne=yt(3113),Ft=yt(36355),De=yt(81327),Pe=yt(33234),oe=yt(47211),Re=function(nt,ht){var st={};for(var gt in nt)Object.prototype.hasOwnProperty.call(nt,gt)&&ht.indexOf(gt)<0&&(st[gt]=nt[gt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,gt=Object.getOwnPropertySymbols(nt);mt<gt.length;mt++)ht.indexOf(gt[mt])<0&&Object.prototype.propertyIsEnumerable.call(nt,gt[mt])&&(st[gt[mt]]=nt[gt[mt]]);return st};const de=nt=>{const{getPopupContainer:ht,getPrefixCls:st,direction:gt}=Ae.useContext(Ft.E_),{prefixCls:mt,type:Pt="default",danger:kt,disabled:wt,loading:Ot,onClick:jt,htmlType:Ht,children:$t,className:ye,menu:Yt,arrow:Ge,autoFocus:ce,overlay:$e,trigger:Ue,align:Ke,open:tn,onOpenChange:Tn,placement:ve,getPopupContainer:Zt,href:en,icon:Kn=Ae.createElement(Ut.Z,null),title:ii,buttonsRender:Be=we=>we,mouseEnterDelay:on,mouseLeaveDelay:un,overlayClassName:Jn,overlayStyle:nn,destroyPopupOnHide:Gn,dropdownRender:pe}=nt,Xn=Re(nt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),oi=st("dropdown",mt),te=`${oi}-button`,[bt,xt]=(0,oe.Z)(oi),Tt={menu:Yt,arrow:Ge,autoFocus:ce,align:Ke,disabled:wt,trigger:wt?[]:Ue,onOpenChange:Tn,getPopupContainer:Zt||ht,mouseEnterDelay:on,mouseLeaveDelay:un,overlayClassName:Jn,overlayStyle:nn,destroyPopupOnHide:Gn,dropdownRender:pe},{compactSize:Bt,compactItemClassnames:St}=(0,Pe.ri)(oi,gt),he=re()(te,St,ye,xt);"overlay"in nt&&(Tt.overlay=$e),"open"in nt&&(Tt.open=tn),"placement"in nt?Tt.placement=ve:Tt.placement=gt==="rtl"?"bottomLeft":"bottomRight";const Le=Ae.createElement(ne.ZP,{type:Pt,danger:kt,disabled:wt,loading:Ot,onClick:jt,htmlType:Ht,href:en,title:ii},$t),Gt=Ae.createElement(ne.ZP,{type:Pt,danger:kt,icon:Kn}),[ee,xe]=Be([Le,Gt]);return bt(Ae.createElement(De.Z.Compact,Object.assign({className:he,size:Bt,block:!0},Xn),ee,Ae.createElement(At.Z,Object.assign({},Tt),xe)))};de.__ANT_BUTTON=!0;var be=de;const Nt=At.Z;Nt.Button=be;var et=Nt},47211:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Re}});var At=yt(17313),zt=yt(13826),re=yt(92899),Ae=yt(29878),Ut=yt(19447),ne=yt(83116),Ft=yt(37613),Pe=de=>{const{componentCls:be,menuCls:Nt,colorError:et,colorTextLightSolid:nt}=de,ht=`${Nt}-item`;return{[`${be}, ${be}-menu-submenu`]:{[`${Nt} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const oe=de=>{const{componentCls:be,menuCls:Nt,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:st,iconCls:gt,motionDurationMid:mt,dropdownPaddingVertical:Pt,fontSize:kt,dropdownEdgeChildPadding:wt,colorTextDisabled:Ot,fontSizeIcon:jt,controlPaddingHorizontal:Ht,colorBgElevated:$t}=de;return[{[be]:Object.assign(Object.assign({},(0,At.Wf)(de)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${st}-btn`]:{[`& > ${gt}-down, & > ${st}-btn-icon > ${gt}-down`]:{fontSize:jt}},[`${be}-wrap`]:{position:"relative",[`${st}-btn > ${gt}-down`]:{fontSize:jt},[`${gt}-down::before`]:{transition:`transform ${mt}`}},[`${be}-wrap-open`]:{[`${gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${st}-slide-down-enter${st}-slide-down-enter-active${be}-placement-bottomLeft,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${be}-placement-bottomLeft,
|
|
|
&${st}-slide-down-enter${st}-slide-down-enter-active${be}-placement-bottom,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${be}-placement-bottom,
|
|
|
&${st}-slide-down-enter${st}-slide-down-enter-active${be}-placement-bottomRight,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${be}-placement-bottomRight`]:{animationName:zt.fJ},[`&${st}-slide-up-enter${st}-slide-up-enter-active${be}-placement-topLeft,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${be}-placement-topLeft,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${be}-placement-top,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${be}-placement-top,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${be}-placement-topRight,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${be}-placement-topRight`]:{animationName:zt.Qt},[`&${st}-slide-down-leave${st}-slide-down-leave-active${be}-placement-bottomLeft,
|
|
|
&${st}-slide-down-leave${st}-slide-down-leave-active${be}-placement-bottom,
|
|
|
&${st}-slide-down-leave${st}-slide-down-leave-active${be}-placement-bottomRight`]:{animationName:zt.Uw},[`&${st}-slide-up-leave${st}-slide-up-leave-active${be}-placement-topLeft,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${be}-placement-top,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${be}-placement-topRight`]:{animationName:zt.ly}})},(0,Ut.ZP)(de,{colorBg:$t,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${be} ${Nt}`]:{position:"relative",margin:0},[`${Nt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${be}, ${be}-menu-submenu`]:{[Nt]:Object.assign(Object.assign({padding:wt,listStyleType:"none",backgroundColor:$t,backgroundClip:"padding-box",borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary},(0,At.Qy)(de)),{[`${Nt}-item-group-title`]:{padding:`${Pt}px ${Ht}px`,color:de.colorTextDescription,transition:`all ${mt}`},[`${Nt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Nt}-item-icon`]:{minWidth:kt,marginInlineEnd:de.marginXS,fontSize:de.fontSizeSM},[`${Nt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${mt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Nt}-item, ${Nt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pt}px ${Ht}px`,color:de.colorText,fontWeight:"normal",fontSize:kt,lineHeight:de.lineHeight,cursor:"pointer",transition:`all ${mt}`,borderRadius:de.borderRadiusSM,"&:hover, &-active":{backgroundColor:de.controlItemBgHover}},(0,At.Qy)(de)),{"&-selected":{color:de.colorPrimary,backgroundColor:de.controlItemBgActive,"&:hover, &-active":{backgroundColor:de.controlItemBgActiveHover}},"&-disabled":{color:Ot,cursor:"not-allowed","&:hover":{color:Ot,backgroundColor:$t,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${de.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:de.colorSplit},[`${be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:de.paddingXS,[`${be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:de.colorTextDescription,fontSize:jt,fontStyle:"normal"}}}),[`${Nt}-item-group-list`]:{margin:`0 ${de.marginXS}px`,padding:0,listStyle:"none"},[`${Nt}-submenu-title`]:{paddingInlineEnd:Ht+de.fontSizeSM},[`${Nt}-submenu-vertical`]:{position:"relative"},[`${Nt}-submenu${Nt}-submenu-disabled ${be}-menu-submenu-title`]:{[`&, ${be}-menu-submenu-arrow-icon`]:{color:Ot,backgroundColor:$t,cursor:"not-allowed"}},[`${Nt}-submenu-selected ${be}-menu-submenu-title`]:{color:de.colorPrimary}})}},[(0,zt.oN)(de,"slide-up"),(0,zt.oN)(de,"slide-down"),(0,re.Fm)(de,"move-up"),(0,re.Fm)(de,"move-down"),(0,Ae._y)(de,"zoom-big")]]};var Re=(0,ne.Z)("Dropdown",(de,be)=>{let{rootPrefixCls:Nt}=be;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:st,lineHeight:gt,paddingXXS:mt,componentCls:Pt,borderRadiusLG:kt}=de,wt=(ht-st*gt)/2,{dropdownArrowOffset:Ot}=(0,Ut.fS)({contentRadius:kt}),jt=(0,Ft.TS)(de,{menuCls:`${Pt}-menu`,rootPrefixCls:Nt,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:Ot,dropdownPaddingVertical:wt,dropdownEdgeChildPadding:mt});return[oe(jt),Pe(jt)]},de=>({zIndexPopup:de.zIndexPopupBase+50}))},64165:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return mt}});var At=yt(92310),zt=yt.n(At),re=yt(59301),Ae=yt(36355),Ut=yt(9763),ne=yt(64993),Ft=yt(88088),Pe=()=>{const[,Pt]=(0,Ft.Z)(),wt=new ne.C(Pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:wt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{fill:"none",fillRule:"evenodd"},re.createElement("g",{transform:"translate(24 31.67)"},re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),re.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"}),re.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)"}),re.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"}),re.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"})),re.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"}),re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Re=()=>{const[,Pt]=(0,Ft.Z)(),{colorFill:kt,colorFillTertiary:wt,colorFillQuaternary:Ot,colorBgContainer:jt}=Pt,{borderColor:Ht,shadowColor:$t,contentColor:ye}=(0,re.useMemo)(()=>({borderColor:new ne.C(kt).onBackground(jt).toHexShortString(),shadowColor:new ne.C(wt).onBackground(jt).toHexShortString(),contentColor:new ne.C(Ot).onBackground(jt).toHexShortString()}),[kt,wt,Ot,jt]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:$t,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:Ht},re.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"}),re.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:ye}))))},de=yt(83116),be=yt(37613);const Nt=Pt=>{const{componentCls:kt,margin:wt,marginXS:Ot,marginXL:jt,fontSize:Ht,lineHeight:$t}=Pt;return{[kt]:{marginInline:Ot,fontSize:Ht,lineHeight:$t,textAlign:"center",[`${kt}-image`]:{height:Pt.emptyImgHeight,marginBottom:Ot,opacity:Pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${kt}-description`]:{color:Pt.colorText},[`${kt}-footer`]:{marginTop:wt},"&-normal":{marginBlock:jt,color:Pt.colorTextDisabled,[`${kt}-description`]:{color:Pt.colorTextDisabled},[`${kt}-image`]:{height:Pt.emptyImgHeightMD}},"&-small":{marginBlock:Ot,color:Pt.colorTextDisabled,[`${kt}-image`]:{height:Pt.emptyImgHeightSM}}}}};var et=(0,de.Z)("Empty",Pt=>{const{componentCls:kt,controlHeightLG:wt}=Pt,Ot=(0,be.TS)(Pt,{emptyImgCls:`${kt}-img`,emptyImgHeight:wt*2.5,emptyImgHeightMD:wt,emptyImgHeightSM:wt*.875});return[Nt(Ot)]}),nt=function(Pt,kt){var wt={};for(var Ot in Pt)Object.prototype.hasOwnProperty.call(Pt,Ot)&&kt.indexOf(Ot)<0&&(wt[Ot]=Pt[Ot]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Ot=Object.getOwnPropertySymbols(Pt);jt<Ot.length;jt++)kt.indexOf(Ot[jt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Ot[jt])&&(wt[Ot[jt]]=Pt[Ot[jt]]);return wt};const ht=re.createElement(Pe,null),st=re.createElement(Re,null),gt=Pt=>{var{className:kt,rootClassName:wt,prefixCls:Ot,image:jt=ht,description:Ht,children:$t,imageStyle:ye,style:Yt}=Pt,Ge=nt(Pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ce,direction:$e,empty:Ue}=re.useContext(Ae.E_),Ke=ce("empty",Ot),[tn,Tn]=et(Ke),[ve]=(0,Ut.Z)("Empty"),Zt=typeof Ht!="undefined"?Ht:ve==null?void 0:ve.description,en=typeof Zt=="string"?Zt:"empty";let Kn=null;return typeof jt=="string"?Kn=re.createElement("img",{alt:en,src:jt}):Kn=jt,tn(re.createElement("div",Object.assign({className:zt()(Tn,Ke,Ue==null?void 0:Ue.className,{[`${Ke}-normal`]:jt===st,[`${Ke}-rtl`]:$e==="rtl"},kt,wt),style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),Yt)},Ge),re.createElement("div",{className:`${Ke}-image`,style:ye},Kn),Zt&&re.createElement("div",{className:`${Ke}-description`},Zt),$t&&re.createElement("div",{className:`${Ke}-footer`},$t)))};gt.PRESENTED_IMAGE_DEFAULT=ht,gt.PRESENTED_IMAGE_SIMPLE=st;var mt=gt},78241:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return Ze}});var At=yt(26390),zt=yt(92310),re=yt.n(zt),Ae=yt(43469),Ut=yt(59301),ne=yt(62892),Ft=yt(32441);function De(fe){const[Sn,In]=Ut.useState(fe);return Ut.useEffect(()=>{const Fe=setTimeout(()=>{In(fe)},fe.length?0:10);return()=>{clearTimeout(Fe)}},[fe]),Sn}var Pe=yt(17313),oe=yt(29878),Re=yt(8378),de=yt(37613),be=yt(83116),et=fe=>{const{componentCls:Sn}=fe,In=`${Sn}-show-help`,Fe=`${Sn}-show-help-item`;return{[In]:{transition:`opacity ${fe.motionDurationSlow} ${fe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Fe]:{overflow:"hidden",transition:`height ${fe.motionDurationSlow} ${fe.motionEaseInOut},
|
|
|
opacity ${fe.motionDurationSlow} ${fe.motionEaseInOut},
|
|
|
transform ${fe.motionDurationSlow} ${fe.motionEaseInOut} !important`,[`&${Fe}-appear, &${Fe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Fe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=fe=>({legend:{display:"block",width:"100%",marginBottom:fe.marginLG,padding:0,color:fe.colorTextDescription,fontSize:fe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`},label:{fontSize:fe.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${fe.controlOutlineWidth}px ${fe.controlOutline}`},output:{display:"block",paddingTop:15,color:fe.colorText,fontSize:fe.fontSize,lineHeight:fe.lineHeight}}),ht=(fe,Sn)=>{const{formItemCls:In}=fe;return{[In]:{[`${In}-label > label`]:{height:Sn},[`${In}-control-input`]:{minHeight:Sn}}}},st=fe=>{const{componentCls:Sn}=fe;return{[fe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(fe)),nt(fe)),{[`${Sn}-text`]:{display:"inline-block",paddingInlineEnd:fe.paddingSM},"&-small":Object.assign({},ht(fe,fe.controlHeightSM)),"&-large":Object.assign({},ht(fe,fe.controlHeightLG))})}},gt=fe=>{const{formItemCls:Sn,iconCls:In,componentCls:Fe,rootPrefixCls:ue,labelRequiredMarkColor:pn,labelColor:Un,labelFontSize:Oi,labelHeight:Pn,labelColonMarginInlineStart:Ce,labelColonMarginInlineEnd:Rn,itemMarginBottom:pi}=fe;return{[Sn]:Object.assign(Object.assign({},(0,Pe.Wf)(fe)),{marginBottom:pi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ue}-row`]:{display:"none"},"&-has-warning":{[`${Sn}-split`]:{color:fe.colorError}},"&-has-error":{[`${Sn}-split`]:{color:fe.colorWarning}},[`${Sn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${fe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Pn,color:Un,fontSize:Oi,[`> ${In}`]:{fontSize:fe.fontSize,verticalAlign:"top"},[`&${Sn}-required:not(${Sn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:fe.marginXXS,color:pn,fontSize:fe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Fe}-hide-required-mark &`]:{display:"none"}},[`${Sn}-optional`]:{display:"inline-block",marginInlineStart:fe.marginXXS,color:fe.colorTextDescription,[`${Fe}-hide-required-mark &`]:{display:"none"}},[`${Sn}-tooltip`]:{color:fe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:fe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ce,marginInlineEnd:Rn},[`&${Sn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Sn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ue}-col-'"]):not([class*="' ${ue}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:fe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Sn]:{"&-explain, &-extra":{clear:"both",color:fe.colorTextDescription,fontSize:fe.fontSize,lineHeight:fe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:fe.controlHeightSM,transition:`color ${fe.motionDurationMid} ${fe.motionEaseOut}`},"&-explain":{"&-error":{color:fe.colorError},"&-warning":{color:fe.colorWarning}}},[`&-with-help ${Sn}-explain`]:{height:"auto",opacity:1},[`${Sn}-feedback-icon`]:{fontSize:fe.fontSize,textAlign:"center",visibility:"visible",animationName:oe.kr,animationDuration:fe.motionDurationMid,animationTimingFunction:fe.motionEaseOutBack,pointerEvents:"none","&-success":{color:fe.colorSuccess},"&-error":{color:fe.colorError},"&-warning":{color:fe.colorWarning},"&-validating":{color:fe.colorPrimary}}})}},mt=fe=>{const{componentCls:Sn,formItemCls:In}=fe;return{[`${Sn}-horizontal`]:{[`${In}-label`]:{flexGrow:0},[`${In}-control`]:{flex:"1 1 0",minWidth:0},[`${In}-label[class$='-24'], ${In}-label[class*='-24 ']`]:{[`& + ${In}-control`]:{minWidth:"unset"}}}}},Pt=fe=>{const{componentCls:Sn,formItemCls:In}=fe;return{[`${Sn}-inline`]:{display:"flex",flexWrap:"wrap",[In]:{flex:"none",marginInlineEnd:fe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${In}-label,
|
|
|
> ${In}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${In}-label`]:{flex:"none"},[`${Sn}-text`]:{display:"inline-block"},[`${In}-has-feedback`]:{display:"inline-block"}}}}},kt=fe=>({padding:fe.verticalLabelPadding,margin:fe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),wt=fe=>{const{componentCls:Sn,formItemCls:In,rootPrefixCls:Fe}=fe;return{[`${In} ${In}-label`]:kt(fe),[Sn]:{[In]:{flexWrap:"wrap",[`${In}-label, ${In}-control`]:{[`&:not([class*=" ${Fe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=fe=>{const{componentCls:Sn,formItemCls:In,rootPrefixCls:Fe}=fe;return{[`${Sn}-vertical`]:{[In]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Sn}-item-control`]:{width:"100%"}}},[`${Sn}-vertical ${In}-label,
|
|
|
.${Fe}-col-24${In}-label,
|
|
|
.${Fe}-col-xl-24${In}-label`]:kt(fe),[`@media (max-width: ${fe.screenXSMax}px)`]:[wt(fe),{[Sn]:{[`.${Fe}-col-xs-24${In}-label`]:kt(fe)}}],[`@media (max-width: ${fe.screenSMMax}px)`]:{[Sn]:{[`.${Fe}-col-sm-24${In}-label`]:kt(fe)}},[`@media (max-width: ${fe.screenMDMax}px)`]:{[Sn]:{[`.${Fe}-col-md-24${In}-label`]:kt(fe)}},[`@media (max-width: ${fe.screenLGMax}px)`]:{[Sn]:{[`.${Fe}-col-lg-24${In}-label`]:kt(fe)}}}},jt=(fe,Sn)=>(0,de.TS)(fe,{formItemCls:`${fe.componentCls}-item`,rootPrefixCls:Sn});var Ht=(0,be.Z)("Form",(fe,Sn)=>{let{rootPrefixCls:In}=Sn;const Fe=jt(fe,In);return[st(Fe),gt(Fe),et(Fe),mt(Fe),Pt(Fe),Ot(Fe),(0,Re.Z)(Fe),oe.kr]},fe=>({labelRequiredMarkColor:fe.colorError,labelColor:fe.colorTextHeading,labelFontSize:fe.fontSize,labelHeight:fe.controlHeight,labelColonMarginInlineStart:fe.marginXXS/2,labelColonMarginInlineEnd:fe.marginXS,itemMarginBottom:fe.marginLG,verticalLabelPadding:`0 0 ${fe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const $t=[];function ye(fe,Sn,In){let Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof fe=="string"?fe:`${Sn}-${Fe}`,error:fe,errorStatus:In}}var Ge=fe=>{let{help:Sn,helpStatus:In,errors:Fe=$t,warnings:ue=$t,className:pn,fieldId:Un,onVisibleChanged:Oi}=fe;const{prefixCls:Pn}=Ut.useContext(Ft.Rk),Ce=`${Pn}-item-explain`,[,Rn]=Ht(Pn),pi=(0,Ut.useMemo)(()=>(0,ne.Z)(Pn),[Pn]),Bi=De(Fe),je=De(ue),yn=Ut.useMemo(()=>Sn!=null?[ye(Sn,"help",In)]:[].concat((0,At.Z)(Bi.map((an,gn)=>ye(an,"error","error",gn))),(0,At.Z)(je.map((an,gn)=>ye(an,"warning","warning",gn)))),[Sn,In,Bi,je]),He={};return Un&&(He.id=`${Un}_help`),Ut.createElement(Ae.default,{motionDeadline:pi.motionDeadline,motionName:`${Pn}-show-help`,visible:!!yn.length,onVisibleChanged:Oi},an=>{const{className:gn,style:sn}=an;return Ut.createElement("div",Object.assign({},He,{className:re()(Ce,gn,pn,Rn),style:sn,role:"alert"}),Ut.createElement(Ae.CSSMotionList,Object.assign({keys:yn},(0,ne.Z)(Pn),{motionName:`${Pn}-show-help-item`,component:!1}),bn=>{const{key:Fn,error:Wn,errorStatus:qn,className:Bn,style:ai}=bn;return Ut.createElement("div",{key:Fn,className:re()(Bn,{[`${Ce}-${qn}`]:qn}),style:ai},Wn)}))})},ce=yt(95013),$e=yt(36355),Ue=yt(1684),Ke=yt(52946),tn=yt(19716),Tn=yt(16722);const ve=["parentNode"],Zt="form_item";function en(fe){return fe===void 0||fe===!1?[]:Array.isArray(fe)?fe:[fe]}function Kn(fe,Sn){if(!fe.length)return;const In=fe.join("_");return Sn?`${Sn}_${In}`:ve.includes(In)?`${Zt}_${In}`:In}function ii(fe,Sn,In,Fe,ue,pn){let Un=Fe;return pn!==void 0?Un=pn:In.validating?Un="validating":fe.length?Un="error":Sn.length?Un="warning":(In.touched||ue&&In.validated)&&(Un="success"),Un}function Be(fe){return en(fe).join("_")}function on(fe){const[Sn]=(0,ce.useForm)(),In=Ut.useRef({}),Fe=Ut.useMemo(()=>fe!=null?fe:Object.assign(Object.assign({},Sn),{__INTERNAL__:{itemRef:ue=>pn=>{const Un=Be(ue);pn?In.current[Un]=pn:delete In.current[Un]}},scrollToField:function(ue){let pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Un=en(ue),Oi=Kn(Un,Fe.__INTERNAL__.name),Pn=Oi?document.getElementById(Oi):null;Pn&&(0,Tn.Z)(Pn,Object.assign({scrollMode:"if-needed",block:"nearest"},pn))},getFieldInstance:ue=>{const pn=Be(ue);return In.current[pn]}}),[fe,Sn]);return[Fe]}var un=yt(28726),Jn=function(fe,Sn){var In={};for(var Fe in fe)Object.prototype.hasOwnProperty.call(fe,Fe)&&Sn.indexOf(Fe)<0&&(In[Fe]=fe[Fe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(fe);ue<Fe.length;ue++)Sn.indexOf(Fe[ue])<0&&Object.prototype.propertyIsEnumerable.call(fe,Fe[ue])&&(In[Fe[ue]]=fe[Fe[ue]]);return In};const nn=(fe,Sn)=>{const In=Ut.useContext(Ue.Z),{getPrefixCls:Fe,direction:ue,form:pn}=Ut.useContext($e.E_),{prefixCls:Un,className:Oi,rootClassName:Pn,size:Ce,disabled:Rn=In,form:pi,colon:Bi,labelAlign:je,labelWrap:yn,labelCol:He,wrapperCol:an,hideRequiredMark:gn,layout:sn="horizontal",scrollToFirstError:bn,requiredMark:Fn,onFinishFailed:Wn,name:qn,style:Bn,feedbackIcons:ai}=fe,Wi=Jn(fe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Mr=(0,tn.Z)(Ce),nr=Ut.useContext(un.Z),Oe=(0,Ut.useMemo)(()=>Fn!==void 0?Fn:pn&&pn.requiredMark!==void 0?pn.requiredMark:!gn,[gn,Fn,pn]),xi=Bi!=null?Bi:pn==null?void 0:pn.colon,Vi=Fe("form",Un),[Ti,Sr]=Ht(Vi),yr=re()(Vi,`${Vi}-${sn}`,{[`${Vi}-hide-required-mark`]:Oe===!1,[`${Vi}-rtl`]:ue==="rtl",[`${Vi}-${Mr}`]:Mr},Sr,pn==null?void 0:pn.className,Oi,Pn),[Dr]=on(pi),{__INTERNAL__:ir}=Dr;ir.name=qn;const zi=(0,Ut.useMemo)(()=>({name:qn,labelAlign:je,labelCol:He,labelWrap:yn,wrapperCol:an,vertical:sn==="vertical",colon:xi,requiredMark:Oe,itemRef:ir.itemRef,form:Dr,feedbackIcons:ai}),[qn,je,He,an,sn,xi,Oe,Dr,ai]);Ut.useImperativeHandle(Sn,()=>Dr);const Kr=(To,An)=>{if(To){let Or={block:"nearest"};typeof To=="object"&&(Or=To),Dr.scrollToField(An,Or)}},wn=To=>{if(Wn==null||Wn(To),To.errorFields.length){const An=To.errorFields[0].name;if(bn!==void 0){Kr(bn,An);return}pn&&pn.scrollToFirstError!==void 0&&Kr(pn.scrollToFirstError,An)}};return Ti(Ut.createElement(Ue.n,{disabled:Rn},Ut.createElement(Ke.q,{size:Mr},Ut.createElement(Ft.RV,Object.assign({},{validateMessages:nr}),Ut.createElement(Ft.q3.Provider,{value:zi},Ut.createElement(ce.default,Object.assign({id:qn},Wi,{name:qn,onFinishFailed:wn,form:Dr,style:Object.assign(Object.assign({},pn==null?void 0:pn.style),Bn),className:yr})))))))};var pe=Ut.forwardRef(nn),Xn=yt(12383),oi=yt(20475),te=yt(92343),bt=yt(38298);function xt(fe){if(typeof fe=="function")return fe;const Sn=(0,bt.Z)(fe);return Sn.length<=1?Sn[0]:Sn}const Tt=()=>{const{status:fe,errors:Sn=[],warnings:In=[]}=(0,Ut.useContext)(Ft.aM);return{status:fe,errors:Sn,warnings:In}};Tt.Context=Ft.aM;var Bt=Tt,St=yt(23073);function he(fe){const[Sn,In]=Ut.useState(fe),Fe=(0,Ut.useRef)(null),ue=(0,Ut.useRef)([]),pn=(0,Ut.useRef)(!1);Ut.useEffect(()=>(pn.current=!1,()=>{pn.current=!0,St.Z.cancel(Fe.current),Fe.current=null}),[]);function Un(Oi){pn.current||(Fe.current===null&&(ue.current=[],Fe.current=(0,St.Z)(()=>{Fe.current=null,In(Pn=>{let Ce=Pn;return ue.current.forEach(Rn=>{Ce=Rn(Ce)}),Ce})})),ue.current.push(Oi))}return[Sn,Un]}function Le(){const{itemRef:fe}=Ut.useContext(Ft.q3),Sn=Ut.useRef({});function In(Fe,ue){const pn=ue&&typeof ue=="object"&&ue.ref,Un=Fe.join("_");return(Sn.current.name!==Un||Sn.current.originRef!==pn)&&(Sn.current.name=Un,Sn.current.originRef=pn,Sn.current.ref=(0,oi.sQ)(fe(Fe),pn)),Sn.current.ref}return In}var Gt=yt(48886),ee=yt(28800),xe=yt(64002),we=yt(27382),se=yt(37028);const ke=fe=>{const{formItemCls:Sn}=fe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Sn}-control`]:{display:"flex"}}}};var vn=(0,be.b)(["Form","item-item"],(fe,Sn)=>{let{rootPrefixCls:In}=Sn;const Fe=jt(fe,In);return[ke(Fe)]}),Je=fe=>{const{prefixCls:Sn,status:In,wrapperCol:Fe,children:ue,errors:pn,warnings:Un,_internalItemRender:Oi,extra:Pn,help:Ce,fieldId:Rn,marginBottom:pi,onErrorVisibleChanged:Bi}=fe,je=`${Sn}-item`,yn=Ut.useContext(Ft.q3),He=Fe||yn.wrapperCol||{},an=re()(`${je}-control`,He.className),gn=Ut.useMemo(()=>Object.assign({},yn),[yn]);delete gn.labelCol,delete gn.wrapperCol;const sn=Ut.createElement("div",{className:`${je}-control-input`},Ut.createElement("div",{className:`${je}-control-input-content`},ue)),bn=Ut.useMemo(()=>({prefixCls:Sn,status:In}),[Sn,In]),Fn=pi!==null||pn.length||Un.length?Ut.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ut.createElement(Ft.Rk.Provider,{value:bn},Ut.createElement(Ge,{fieldId:Rn,errors:pn,warnings:Un,help:Ce,helpStatus:In,className:`${je}-explain-connected`,onVisibleChanged:Bi})),!!pi&&Ut.createElement("div",{style:{width:0,height:pi}})):null,Wn={};Rn&&(Wn.id=`${Rn}_extra`);const qn=Pn?Ut.createElement("div",Object.assign({},Wn,{className:`${je}-extra`}),Pn):null,Bn=Oi&&Oi.mark==="pro_table_render"&&Oi.render?Oi.render(fe,{input:sn,errorList:Fn,extra:qn}):Ut.createElement(Ut.Fragment,null,sn,Fn,qn);return Ut.createElement(Ft.q3.Provider,{value:gn},Ut.createElement(se.Z,Object.assign({},He,{className:an}),Bn),Ut.createElement(vn,{prefixCls:Sn}))},hn=yt(385),Vn=yt(31724),Se=yt(9763),qe=yt(6848),Qe=function(fe,Sn){var In={};for(var Fe in fe)Object.prototype.hasOwnProperty.call(fe,Fe)&&Sn.indexOf(Fe)<0&&(In[Fe]=fe[Fe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(fe);ue<Fe.length;ue++)Sn.indexOf(Fe[ue])<0&&Object.prototype.propertyIsEnumerable.call(fe,Fe[ue])&&(In[Fe[ue]]=fe[Fe[ue]]);return In};function Nn(fe){return fe?typeof fe=="object"&&!Ut.isValidElement(fe)?fe:{title:fe}:null}var mi=fe=>{let{prefixCls:Sn,label:In,htmlFor:Fe,labelCol:ue,labelAlign:pn,colon:Un,required:Oi,requiredMark:Pn,tooltip:Ce}=fe;var Rn;const[pi]=(0,Se.Z)("Form"),{vertical:Bi,labelAlign:je,labelCol:yn,labelWrap:He,colon:an}=Ut.useContext(Ft.q3);if(!In)return null;const gn=ue||yn||{},sn=pn||je,bn=`${Sn}-item-label`,Fn=re()(bn,sn==="left"&&`${bn}-left`,gn.className,{[`${bn}-wrap`]:!!He});let Wn=In;const qn=Un===!0||an!==!1&&Un!==!1;qn&&!Bi&&typeof In=="string"&&In.trim()!==""&&(Wn=In.replace(/[:|:]\s*$/,""));const ai=Nn(Ce);if(ai){const{icon:Oe=Ut.createElement(hn.Z,null)}=ai,xi=Qe(ai,["icon"]),Vi=Ut.createElement(qe.Z,Object.assign({},xi),Ut.cloneElement(Oe,{className:`${Sn}-item-tooltip`,title:""}));Wn=Ut.createElement(Ut.Fragment,null,Wn,Vi)}const Wi=Pn==="optional",Mr=typeof Pn=="function";Mr?Wn=Pn(Wn,{required:!!Oi}):Wi&&!Oi&&(Wn=Ut.createElement(Ut.Fragment,null,Wn,Ut.createElement("span",{className:`${Sn}-item-optional`,title:""},(pi==null?void 0:pi.optional)||((Rn=Vn.Z.Form)===null||Rn===void 0?void 0:Rn.optional))));const nr=re()({[`${Sn}-item-required`]:Oi,[`${Sn}-item-required-mark-optional`]:Wi||Mr,[`${Sn}-item-no-colon`]:!qn});return Ut.createElement(se.Z,Object.assign({},gn,{className:Fn}),Ut.createElement("label",{htmlFor:Fe,className:nr,title:typeof In=="string"?In:""},Wn))},gi=yt(5242),Pi=yt(37637),_i=yt(4715),vr=yt(78714);const gr={success:gi.Z,warning:_i.Z,error:Pi.Z,validating:vr.Z};function fr(fe){let{children:Sn,errors:In,warnings:Fe,hasFeedback:ue,validateStatus:pn,prefixCls:Un,meta:Oi,noStyle:Pn}=fe;const Ce=`${Un}-item`,{feedbackIcons:Rn}=Ut.useContext(Ft.q3),pi=ii(In,Fe,Oi,null,!!ue,pn),{isFormItemInput:Bi,status:je}=Ut.useContext(Ft.aM),yn=Ut.useMemo(()=>{var He;let an;if(ue){const bn=ue!==!0&&ue.icons||Rn,Fn=pi&&((He=bn==null?void 0:bn({status:pi,errors:In,warnings:Fe}))===null||He===void 0?void 0:He[pi]),Wn=pi&&gr[pi];an=Fn!==!1&&Wn?Ut.createElement("span",{className:re()(`${Ce}-feedback-icon`,`${Ce}-feedback-icon-${pi}`)},Fn||Ut.createElement(Wn,null)):null}let gn=!0,sn=pi||"";return Pn&&(gn=Bi,sn=(pi!=null?pi:je)||""),{status:sn,errors:In,warnings:Fe,hasFeedback:!!ue,feedbackIcon:an,isFormItemInput:gn}},[pi,ue,Pn,Bi,je]);return Ut.createElement(Ft.aM.Provider,{value:yn},Sn)}var eo=function(fe,Sn){var In={};for(var Fe in fe)Object.prototype.hasOwnProperty.call(fe,Fe)&&Sn.indexOf(Fe)<0&&(In[Fe]=fe[Fe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(fe);ue<Fe.length;ue++)Sn.indexOf(Fe[ue])<0&&Object.prototype.propertyIsEnumerable.call(fe,Fe[ue])&&(In[Fe[ue]]=fe[Fe[ue]]);return In};function Jr(fe){const{prefixCls:Sn,className:In,rootClassName:Fe,style:ue,help:pn,errors:Un,warnings:Oi,validateStatus:Pn,meta:Ce,hasFeedback:Rn,hidden:pi,children:Bi,fieldId:je,required:yn,isRequired:He,onSubItemMetaChange:an}=fe,gn=eo(fe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),sn=`${Sn}-item`,{requiredMark:bn}=Ut.useContext(Ft.q3),Fn=Ut.useRef(null),Wn=De(Un),qn=De(Oi),Bn=pn!=null,ai=!!(Bn||Un.length||Oi.length),Wi=!!Fn.current&&(0,Gt.Z)(Fn.current),[Mr,nr]=Ut.useState(null);(0,ee.Z)(()=>{if(ai&&Fn.current){const Sr=getComputedStyle(Fn.current);nr(parseInt(Sr.marginBottom,10))}},[ai,Wi]);const Oe=Sr=>{Sr||nr(null)},Vi=function(){let Sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const yr=Sr?Wn:Ce.errors,Dr=Sr?qn:Ce.warnings;return ii(yr,Dr,Ce,"",!!Rn,Pn)}(),Ti=re()(sn,In,Fe,{[`${sn}-with-help`]:Bn||Wn.length||qn.length,[`${sn}-has-feedback`]:Vi&&Rn,[`${sn}-has-success`]:Vi==="success",[`${sn}-has-warning`]:Vi==="warning",[`${sn}-has-error`]:Vi==="error",[`${sn}-is-validating`]:Vi==="validating",[`${sn}-hidden`]:pi});return Ut.createElement("div",{className:Ti,style:ue,ref:Fn},Ut.createElement(we.Z,Object.assign({className:`${sn}-row`},(0,xe.Z)(gn,["_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"])),Ut.createElement(mi,Object.assign({htmlFor:je},fe,{requiredMark:bn,required:yn!=null?yn:He,prefixCls:Sn})),Ut.createElement(Je,Object.assign({},fe,Ce,{errors:Wn,warnings:qn,prefixCls:Sn,status:Vi,help:pn,marginBottom:Mr,onErrorVisibleChanged:Oe}),Ut.createElement(Ft.qI.Provider,{value:an},Ut.createElement(fr,{prefixCls:Sn,meta:Ce,errors:Ce.errors,warnings:Ce.warnings,hasFeedback:Rn,validateStatus:Vi},Bi)))),!!Mr&&Ut.createElement("div",{className:`${sn}-margin-offset`,style:{marginBottom:-Mr}}))}const Xi="__SPLIT__",$r=null,Ki=Ut.memo(fe=>{let{children:Sn}=fe;return Sn},(fe,Sn)=>fe.value===Sn.value&&fe.update===Sn.update&&fe.childProps.length===Sn.childProps.length&&fe.childProps.every((In,Fe)=>In===Sn.childProps[Fe]));function Lt(fe){return fe!=null}function li(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function vi(fe){const{name:Sn,noStyle:In,className:Fe,dependencies:ue,prefixCls:pn,shouldUpdate:Un,rules:Oi,children:Pn,required:Ce,label:Rn,messageVariables:pi,trigger:Bi="onChange",validateTrigger:je,hidden:yn,help:He}=fe,{getPrefixCls:an}=Ut.useContext($e.E_),{name:gn}=Ut.useContext(Ft.q3),sn=xt(Pn),bn=typeof sn=="function",Fn=Ut.useContext(Ft.qI),{validateTrigger:Wn}=Ut.useContext(ce.FieldContext),qn=je!==void 0?je:Wn,Bn=Lt(Sn),ai=an("form",pn),[Wi,Mr]=Ht(ai),nr=Ut.useContext(ce.ListContext),Oe=Ut.useRef(),[xi,Vi]=he({}),[Ti,Sr]=(0,Xn.Z)(()=>li()),yr=An=>{const Or=nr==null?void 0:nr.getKey(An.name);if(Sr(An.destroy?li():An,!0),In&&He!==!1&&Fn){let Qo=An.name;if(An.destroy)Qo=Oe.current||Qo;else if(Or!==void 0){const[uo,Fa]=Or;Qo=[uo].concat((0,At.Z)(Fa)),Oe.current=Qo}Fn(An,Qo)}},Dr=(An,Or)=>{Vi(Qo=>{const uo=Object.assign({},Qo),Vo=[].concat((0,At.Z)(An.name.slice(0,-1)),(0,At.Z)(Or)).join(Xi);return An.destroy?delete uo[Vo]:uo[Vo]=An,uo})},[ir,zi]=Ut.useMemo(()=>{const An=(0,At.Z)(Ti.errors),Or=(0,At.Z)(Ti.warnings);return Object.values(xi).forEach(Qo=>{An.push.apply(An,(0,At.Z)(Qo.errors||[])),Or.push.apply(Or,(0,At.Z)(Qo.warnings||[]))}),[An,Or]},[xi,Ti.errors,Ti.warnings]),Kr=Le();function wn(An,Or,Qo){return In&&!yn?Ut.createElement(fr,{prefixCls:ai,hasFeedback:fe.hasFeedback,validateStatus:fe.validateStatus,meta:Ti,errors:ir,warnings:zi,noStyle:!0},An):Ut.createElement(Jr,Object.assign({key:"row"},fe,{className:re()(Fe,Mr),prefixCls:ai,fieldId:Or,isRequired:Qo,errors:ir,warnings:zi,meta:Ti,onSubItemMetaChange:Dr}),An)}if(!Bn&&!bn&&!ue)return Wi(wn(sn));let To={};return typeof Rn=="string"?To.label=Rn:Sn&&(To.label=String(Sn)),pi&&(To=Object.assign(Object.assign({},To),pi)),Wi(Ut.createElement(ce.Field,Object.assign({},fe,{messageVariables:To,trigger:Bi,validateTrigger:qn,onMetaChange:yr}),(An,Or,Qo)=>{const uo=en(Sn).length&&Or?Or.name:[],Fa=Kn(uo,gn),Vo=Ce!==void 0?Ce:!!(Oi&&Oi.some(io=>{if(io&&typeof io=="object"&&io.required&&!io.warningOnly)return!0;if(typeof io=="function"){const Co=io(Qo);return Co&&Co.required&&!Co.warningOnly}return!1})),dr=Object.assign({},An);let or=null;if(Array.isArray(sn)&&Bn)or=sn;else if(!(bn&&(!(Un||ue)||Bn))){if(!(ue&&!bn&&!Bn))if((0,te.l$)(sn)){const io=Object.assign(Object.assign({},sn.props),dr);if(io.id||(io.id=Fa),He||ir.length>0||zi.length>0||fe.extra){const Vt=[];(He||ir.length>0)&&Vt.push(`${Fa}_help`),fe.extra&&Vt.push(`${Fa}_extra`),io["aria-describedby"]=Vt.join(" ")}ir.length>0&&(io["aria-invalid"]="true"),Vo&&(io["aria-required"]="true"),(0,oi.Yr)(sn)&&(io.ref=Kr(uo,sn)),new Set([].concat((0,At.Z)(en(Bi)),(0,At.Z)(en(qn)))).forEach(Vt=>{io[Vt]=function(){for(var qr,da,ao,_o,ca,fa=arguments.length,Vr=new Array(fa),Ar=0;Ar<fa;Ar++)Vr[Ar]=arguments[Ar];(ao=dr[Vt])===null||ao===void 0||(qr=ao).call.apply(qr,[dr].concat(Vr)),(ca=(_o=sn.props)[Vt])===null||ca===void 0||(da=ca).call.apply(da,[_o].concat(Vr))}});const Ci=[io["aria-required"],io["aria-invalid"],io["aria-describedby"]];or=Ut.createElement(Ki,{value:dr[fe.valuePropName||"value"],update:sn,childProps:Ci},(0,te.Tm)(sn,io))}else bn&&(Un||ue)&&!Bn?or=sn(Qo):or=sn}return wn(or,Fa,Vo)}))}const Lr=vi;Lr.useStatus=Bt;var hr=Lr,qi=function(fe,Sn){var In={};for(var Fe in fe)Object.prototype.hasOwnProperty.call(fe,Fe)&&Sn.indexOf(Fe)<0&&(In[Fe]=fe[Fe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(fe);ue<Fe.length;ue++)Sn.indexOf(Fe[ue])<0&&Object.prototype.propertyIsEnumerable.call(fe,Fe[ue])&&(In[Fe[ue]]=fe[Fe[ue]]);return In},Gr=fe=>{var{prefixCls:Sn,children:In}=fe,Fe=qi(fe,["prefixCls","children"]);const{getPrefixCls:ue}=Ut.useContext($e.E_),pn=ue("form",Sn),Un=Ut.useMemo(()=>({prefixCls:pn,status:"error"}),[pn]);return Ut.createElement(ce.List,Object.assign({},Fe),(Oi,Pn,Ce)=>Ut.createElement(Ft.Rk.Provider,{value:Un},In(Oi.map(Rn=>Object.assign(Object.assign({},Rn),{fieldKey:Rn.key})),Pn,{errors:Ce.errors,warnings:Ce.warnings})))};function Ln(){const{form:fe}=(0,Ut.useContext)(Ft.q3);return fe}const fn=pe;fn.Item=hr,fn.List=Gr,fn.ErrorList=Ge,fn.useForm=on,fn.useFormInstance=Ln,fn.useWatch=ce.useWatch,fn.Provider=Ft.RV,fn.create=()=>{};var Ze=fn},8628:function(On,Cn,yt){"use strict";var At=yt(59301),zt=yt(28800),re=yt(56762),Ae=yt(69507);function Ut(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Ft=(0,At.useRef)({}),De=(0,re.Z)(),Pe=(0,Ae.ZP)();return(0,zt.Z)(()=>{const oe=Pe.subscribe(Re=>{Ft.current=Re,ne&&De()});return()=>Pe.unsubscribe(oe)},[]),Ft.current}Cn.Z=Ut},9432:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return gt},n:function(){return ht}});var At=yt(37637),zt=yt(92310),re=yt.n(zt),Ae=yt(93681),Ut=yt(20475),ne=yt(59301),Ft=yt(19080),De=yt(36355),Pe=yt(1684),oe=yt(19716),Re=yt(32441),de=yt(33234),be=yt(59412),Nt=yt(9937);function et(mt){return!!(mt.prefix||mt.suffix||mt.allowClear)}var nt=function(mt,Pt){var kt={};for(var wt in mt)Object.prototype.hasOwnProperty.call(mt,wt)&&Pt.indexOf(wt)<0&&(kt[wt]=mt[wt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,wt=Object.getOwnPropertySymbols(mt);Ot<wt.length;Ot++)Pt.indexOf(wt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(mt,wt[Ot])&&(kt[wt[Ot]]=mt[wt[Ot]]);return kt};function ht(mt,Pt){if(!mt)return;mt.focus(Pt);const{cursor:kt}=Pt||{};if(kt){const wt=mt.value.length;switch(kt){case"start":mt.setSelectionRange(0,0);break;case"end":mt.setSelectionRange(wt,wt);break;default:mt.setSelectionRange(0,wt);break}}}var gt=(0,ne.forwardRef)((mt,Pt)=>{var kt;const{prefixCls:wt,bordered:Ot=!0,status:jt,size:Ht,disabled:$t,onBlur:ye,onFocus:Yt,suffix:Ge,allowClear:ce,addonAfter:$e,addonBefore:Ue,className:Ke,style:tn,styles:Tn,rootClassName:ve,onChange:Zt,classNames:en}=mt,Kn=nt(mt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ii,direction:Be,input:on}=ne.useContext(De.E_),un=ii("input",wt),Jn=(0,ne.useRef)(null),[nn,Gn]=(0,Nt.ZP)(un),{compactSize:pe,compactItemClassnames:Xn}=(0,de.ri)(un,Be),oi=(0,oe.Z)(vn=>{var cn;return(cn=Ht!=null?Ht:pe)!==null&&cn!==void 0?cn:vn}),te=ne.useContext(Pe.Z),bt=$t!=null?$t:te,{status:xt,hasFeedback:Tt,feedbackIcon:Bt}=(0,ne.useContext)(Re.aM),St=(0,Ft.F)(xt,jt),he=et(mt)||!!Tt,Le=(0,ne.useRef)(he);(0,ne.useEffect)(()=>{var vn;he&&Le.current,Le.current=he},[he]);const Gt=(0,be.Z)(Jn,!0),ee=vn=>{Gt(),ye==null||ye(vn)},xe=vn=>{Gt(),Yt==null||Yt(vn)},we=vn=>{Gt(),Zt==null||Zt(vn)},se=(Tt||Ge)&&ne.createElement(ne.Fragment,null,Ge,Tt&&Bt);let ke;return typeof ce=="object"&&(ce!=null&&ce.clearIcon)?ke=ce:ce&&(ke={clearIcon:ne.createElement(At.Z,null)}),nn(ne.createElement(Ae.default,Object.assign({ref:(0,Ut.sQ)(Pt,Jn),prefixCls:un,autoComplete:on==null?void 0:on.autoComplete},Kn,{disabled:bt,onBlur:ee,onFocus:xe,style:Object.assign(Object.assign({},on==null?void 0:on.style),tn),styles:Object.assign(Object.assign({},on==null?void 0:on.styles),Tn),suffix:se,allowClear:ke,className:re()(Ke,ve,Xn,on==null?void 0:on.className),onChange:we,addonAfter:$e&&ne.createElement(de.BR,null,ne.createElement(Re.Ux,{override:!0,status:!0},$e)),addonBefore:Ue&&ne.createElement(de.BR,null,ne.createElement(Re.Ux,{override:!0,status:!0},Ue)),classNames:Object.assign(Object.assign(Object.assign({},en),on==null?void 0:on.classNames),{input:re()({[`${un}-sm`]:oi==="small",[`${un}-lg`]:oi==="large",[`${un}-rtl`]:Be==="rtl",[`${un}-borderless`]:!Ot},!he&&(0,Ft.Z)(un,St),en==null?void 0:en.input,(kt=on==null?void 0:on.classNames)===null||kt===void 0?void 0:kt.input,Gn)}),classes:{affixWrapper:re()({[`${un}-affix-wrapper-sm`]:oi==="small",[`${un}-affix-wrapper-lg`]:oi==="large",[`${un}-affix-wrapper-rtl`]:Be==="rtl",[`${un}-affix-wrapper-borderless`]:!Ot},(0,Ft.Z)(`${un}-affix-wrapper`,St,Tt),Gn),wrapper:re()({[`${un}-group-rtl`]:Be==="rtl"},Gn),group:re()({[`${un}-group-wrapper-sm`]:oi==="small",[`${un}-group-wrapper-lg`]:oi==="large",[`${un}-group-wrapper-rtl`]:Be==="rtl",[`${un}-group-wrapper-disabled`]:bt},(0,Ft.Z)(`${un}-group-wrapper`,St,Tt),Gn)}})))})},1643:function(On,Cn,yt){"use strict";var At=yt(37637),zt=yt(92310),re=yt.n(zt),Ae=yt(9296),Ut=yt(59301),ne=yt(19080),Ft=yt(36355),De=yt(1684),Pe=yt(19716),oe=yt(32441),Re=yt(9432),de=yt(9937),be=function(et,nt){var ht={};for(var st in et)Object.prototype.hasOwnProperty.call(et,st)&&nt.indexOf(st)<0&&(ht[st]=et[st]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(et);gt<st.length;gt++)nt.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(et,st[gt])&&(ht[st[gt]]=et[st[gt]]);return ht};const Nt=(0,Ut.forwardRef)((et,nt)=>{const{prefixCls:ht,bordered:st=!0,size:gt,disabled:mt,status:Pt,allowClear:kt,showCount:wt,classNames:Ot,rootClassName:jt,className:Ht}=et,$t=be(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ye,direction:Yt}=Ut.useContext(Ft.E_),Ge=(0,Pe.Z)(gt),ce=Ut.useContext(De.Z),$e=mt!=null?mt:ce,{status:Ue,hasFeedback:Ke,feedbackIcon:tn}=Ut.useContext(oe.aM),Tn=(0,ne.F)(Ue,Pt),ve=Ut.useRef(null);Ut.useImperativeHandle(nt,()=>{var Be;return{resizableTextArea:(Be=ve.current)===null||Be===void 0?void 0:Be.resizableTextArea,focus:on=>{var un,Jn;(0,Re.n)((Jn=(un=ve.current)===null||un===void 0?void 0:un.resizableTextArea)===null||Jn===void 0?void 0:Jn.textArea,on)},blur:()=>{var on;return(on=ve.current)===null||on===void 0?void 0:on.blur()}}});const Zt=ye("input",ht);let en;typeof kt=="object"&&(kt!=null&&kt.clearIcon)?en=kt:kt&&(en={clearIcon:Ut.createElement(At.Z,null)});const[Kn,ii]=(0,de.ZP)(Zt);return Kn(Ut.createElement(Ae.default,Object.assign({},$t,{disabled:$e,allowClear:en,className:re()(Ht,jt),classes:{affixWrapper:re()(`${Zt}-textarea-affix-wrapper`,{[`${Zt}-affix-wrapper-rtl`]:Yt==="rtl",[`${Zt}-affix-wrapper-borderless`]:!st,[`${Zt}-affix-wrapper-sm`]:Ge==="small",[`${Zt}-affix-wrapper-lg`]:Ge==="large",[`${Zt}-textarea-show-count`]:wt},(0,ne.Z)(`${Zt}-affix-wrapper`,Tn),ii)},classNames:Object.assign(Object.assign({},Ot),{textarea:re()({[`${Zt}-borderless`]:!st,[`${Zt}-sm`]:Ge==="small",[`${Zt}-lg`]:Ge==="large"},(0,ne.Z)(Zt,Tn),ii,Ot==null?void 0:Ot.textarea)}),prefixCls:Zt,suffix:Ke&&Ut.createElement("span",{className:`${Zt}-textarea-suffix`},tn),showCount:wt,ref:ve})))});Cn.Z=Nt},59412:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return zt}});var At=yt(59301);function zt(re,Ae){const Ut=(0,At.useRef)([]),ne=()=>{Ut.current.push(setTimeout(()=>{var Ft,De,Pe,oe;!((Ft=re.current)===null||Ft===void 0)&&Ft.input&&((De=re.current)===null||De===void 0?void 0:De.input.getAttribute("type"))==="password"&&(!((Pe=re.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((oe=re.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,At.useEffect)(()=>(Ae&&ne(),()=>Ut.current.forEach(Ft=>{Ft&&clearTimeout(Ft)})),[]),ne}},92832:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return Ge}});var At=yt(92310),zt=yt.n(At),re=yt(59301),Ae=yt(36355),Ut=yt(32441),ne=yt(9937),De=ce=>{const{getPrefixCls:$e,direction:Ue}=(0,re.useContext)(Ae.E_),{prefixCls:Ke,className:tn}=ce,Tn=$e("input-group",Ke),ve=$e("input"),[Zt,en]=(0,ne.ZP)(ve),Kn=zt()(Tn,{[`${Tn}-lg`]:ce.size==="large",[`${Tn}-sm`]:ce.size==="small",[`${Tn}-compact`]:ce.compact,[`${Tn}-rtl`]:Ue==="rtl"},en,tn),ii=(0,re.useContext)(Ut.aM),Be=(0,re.useMemo)(()=>Object.assign(Object.assign({},ii),{isFormItemInput:!1}),[ii]);return Zt(re.createElement("span",{className:Kn,style:ce.style,onMouseEnter:ce.onMouseEnter,onMouseLeave:ce.onMouseLeave,onFocus:ce.onFocus,onBlur:ce.onBlur},re.createElement(Ut.aM.Provider,{value:Be},ce.children)))},Pe=yt(9432),oe=yt(21646),Re=yt(20970),de=yt(64002),be=yt(20475),Nt=yt(59412),et=function(ce,$e){var Ue={};for(var Ke in ce)Object.prototype.hasOwnProperty.call(ce,Ke)&&$e.indexOf(Ke)<0&&(Ue[Ke]=ce[Ke]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ke=Object.getOwnPropertySymbols(ce);tn<Ke.length;tn++)$e.indexOf(Ke[tn])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ke[tn])&&(Ue[Ke[tn]]=ce[Ke[tn]]);return Ue};const nt=ce=>ce?re.createElement(Re.Z,null):re.createElement(oe.Z,null),ht={click:"onClick",hover:"onMouseOver"};var gt=re.forwardRef((ce,$e)=>{const{visibilityToggle:Ue=!0}=ce,Ke=typeof Ue=="object"&&Ue.visible!==void 0,[tn,Tn]=(0,re.useState)(()=>Ke?Ue.visible:!1),ve=(0,re.useRef)(null);re.useEffect(()=>{Ke&&Tn(Ue.visible)},[Ke,Ue]);const Zt=(0,Nt.Z)(ve),en=()=>{const{disabled:bt}=ce;bt||(tn&&Zt(),Tn(xt=>{var Tt;const Bt=!xt;return typeof Ue=="object"&&((Tt=Ue.onVisibleChange)===null||Tt===void 0||Tt.call(Ue,Bt)),Bt}))},Kn=bt=>{const{action:xt="click",iconRender:Tt=nt}=ce,Bt=ht[xt]||"",St=Tt(tn),he={[Bt]:en,className:`${bt}-icon`,key:"passwordIcon",onMouseDown:Le=>{Le.preventDefault()},onMouseUp:Le=>{Le.preventDefault()}};return re.cloneElement(re.isValidElement(St)?St:re.createElement("span",null,St),he)},{className:ii,prefixCls:Be,inputPrefixCls:on,size:un}=ce,Jn=et(ce,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:nn}=re.useContext(Ae.E_),Gn=nn("input",on),pe=nn("input-password",Be),Xn=Ue&&Kn(pe),oi=zt()(pe,ii,{[`${pe}-${un}`]:!!un}),te=Object.assign(Object.assign({},(0,de.Z)(Jn,["suffix","iconRender","visibilityToggle"])),{type:tn?"text":"password",className:oi,prefixCls:Gn,suffix:Xn});return un&&(te.size=un),re.createElement(Pe.Z,Object.assign({ref:(0,be.sQ)($e,ve)},te))}),mt=yt(56981),Pt=yt(92343),kt=yt(3113),wt=yt(19716),Ot=yt(33234),jt=function(ce,$e){var Ue={};for(var Ke in ce)Object.prototype.hasOwnProperty.call(ce,Ke)&&$e.indexOf(Ke)<0&&(Ue[Ke]=ce[Ke]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ke=Object.getOwnPropertySymbols(ce);tn<Ke.length;tn++)$e.indexOf(Ke[tn])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ke[tn])&&(Ue[Ke[tn]]=ce[Ke[tn]]);return Ue},$t=re.forwardRef((ce,$e)=>{const{prefixCls:Ue,inputPrefixCls:Ke,className:tn,size:Tn,suffix:ve,enterButton:Zt=!1,addonAfter:en,loading:Kn,disabled:ii,onSearch:Be,onChange:on,onCompositionStart:un,onCompositionEnd:Jn}=ce,nn=jt(ce,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Gn,direction:pe}=re.useContext(Ae.E_),Xn=re.useRef(!1),oi=Gn("input-search",Ue),te=Gn("input",Ke),{compactSize:bt}=(0,Ot.ri)(oi,pe),xt=(0,wt.Z)(Je=>{var hn;return(hn=Tn!=null?Tn:bt)!==null&&hn!==void 0?hn:Je}),Tt=re.useRef(null),Bt=Je=>{Je&&Je.target&&Je.type==="click"&&Be&&Be(Je.target.value,Je,{source:"clear"}),on&&on(Je)},St=Je=>{var hn;document.activeElement===((hn=Tt.current)===null||hn===void 0?void 0:hn.input)&&Je.preventDefault()},he=Je=>{var hn,Vn;Be&&Be((Vn=(hn=Tt.current)===null||hn===void 0?void 0:hn.input)===null||Vn===void 0?void 0:Vn.value,Je,{source:"input"})},Le=Je=>{Xn.current||Kn||he(Je)},Gt=typeof Zt=="boolean"?re.createElement(mt.Z,null):null,ee=`${oi}-button`;let xe;const we=Zt||{},se=we.type&&we.type.__ANT_BUTTON===!0;se||we.type==="button"?xe=(0,Pt.Tm)(we,Object.assign({onMouseDown:St,onClick:Je=>{var hn,Vn;(Vn=(hn=we==null?void 0:we.props)===null||hn===void 0?void 0:hn.onClick)===null||Vn===void 0||Vn.call(hn,Je),he(Je)},key:"enterButton"},se?{className:ee,size:xt}:{})):xe=re.createElement(kt.ZP,{className:ee,type:Zt?"primary":void 0,size:xt,disabled:ii,key:"enterButton",onMouseDown:St,onClick:he,loading:Kn,icon:Gt},Zt),en&&(xe=[xe,(0,Pt.Tm)(en,{key:"addonAfter"})]);const ke=zt()(oi,{[`${oi}-rtl`]:pe==="rtl",[`${oi}-${xt}`]:!!xt,[`${oi}-with-button`]:!!Zt},tn),vn=Je=>{Xn.current=!0,un==null||un(Je)},cn=Je=>{Xn.current=!1,Jn==null||Jn(Je)};return re.createElement(Pe.Z,Object.assign({ref:(0,be.sQ)(Tt,$e),onPressEnter:Le},nn,{size:xt,onCompositionStart:vn,onCompositionEnd:cn,prefixCls:te,addonAfter:xe,suffix:ve,onChange:Bt,className:ke,disabled:ii}))}),ye=yt(1643);const Yt=Pe.Z;Yt.Group=De,Yt.Search=$t,Yt.TextArea=ye.Z,Yt.Password=gt;var Ge=Yt},71413:function(On,Cn,yt){"use strict";yt.d(Cn,{D:function(){return mt},Z:function(){return wt}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(jt,Ht){return zt.createElement(Ut.Z,(0,At.Z)({},jt,{ref:Ht,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft,Pe=yt(81132),oe=yt(38226),Re=yt(92310),de=yt.n(Re),be=yt(64002),et=Ot=>!isNaN(parseFloat(Ot))&&isFinite(Ot),nt=yt(36355),ht=yt(84966),st=function(Ot,jt){var Ht={};for(var $t in Ot)Object.prototype.hasOwnProperty.call(Ot,$t)&&jt.indexOf($t)<0&&(Ht[$t]=Ot[$t]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,$t=Object.getOwnPropertySymbols(Ot);ye<$t.length;ye++)jt.indexOf($t[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ot,$t[ye])&&(Ht[$t[ye]]=Ot[$t[ye]]);return Ht};const gt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},mt=zt.createContext({}),Pt=(()=>{let Ot=0;return function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ot+=1,`${jt}${Ot}`}})();var wt=zt.forwardRef((Ot,jt)=>{const{prefixCls:Ht,className:$t,trigger:ye,children:Yt,defaultCollapsed:Ge=!1,theme:ce="dark",style:$e={},collapsible:Ue=!1,reverseArrow:Ke=!1,width:tn=200,collapsedWidth:Tn=80,zeroWidthTriggerStyle:ve,breakpoint:Zt,onCollapse:en,onBreakpoint:Kn}=Ot,ii=st(Ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Be}=(0,zt.useContext)(ht.Gs),[on,un]=(0,zt.useState)("collapsed"in Ot?Ot.collapsed:Ge),[Jn,nn]=(0,zt.useState)(!1);(0,zt.useEffect)(()=>{"collapsed"in Ot&&un(Ot.collapsed)},[Ot.collapsed]);const Gn=(xt,Tt)=>{"collapsed"in Ot||un(xt),en==null||en(xt,Tt)},pe=(0,zt.useRef)();pe.current=xt=>{nn(xt.matches),Kn==null||Kn(xt.matches),on!==xt.matches&&Gn(xt.matches,"responsive")},(0,zt.useEffect)(()=>{function xt(Bt){return pe.current(Bt)}let Tt;if(typeof window!="undefined"){const{matchMedia:Bt}=window;if(Bt&&Zt&&Zt in gt){Tt=Bt(`(max-width: ${gt[Zt]})`);try{Tt.addEventListener("change",xt)}catch(St){Tt.addListener(xt)}xt(Tt)}}return()=>{try{Tt==null||Tt.removeEventListener("change",xt)}catch(Bt){Tt==null||Tt.removeListener(xt)}}},[Zt]),(0,zt.useEffect)(()=>{const xt=Pt("ant-sider-");return Be.addSider(xt),()=>Be.removeSider(xt)},[]);const Xn=()=>{Gn(!on,"clickTrigger")},{getPrefixCls:oi}=(0,zt.useContext)(nt.E_),te=()=>{const xt=oi("layout-sider",Ht),Tt=(0,be.Z)(ii,["collapsed"]),Bt=on?Tn:tn,St=et(Bt)?`${Bt}px`:String(Bt),he=parseFloat(String(Tn||0))===0?zt.createElement("span",{onClick:Xn,className:de()(`${xt}-zero-width-trigger`,`${xt}-zero-width-trigger-${Ke?"right":"left"}`),style:ve},ye||zt.createElement(De,null)):null,ee={expanded:Ke?zt.createElement(oe.Z,null):zt.createElement(Pe.Z,null),collapsed:Ke?zt.createElement(Pe.Z,null):zt.createElement(oe.Z,null)}[on?"collapsed":"expanded"],xe=ye!==null?he||zt.createElement("div",{className:`${xt}-trigger`,onClick:Xn,style:{width:St}},ye||ee):null,we=Object.assign(Object.assign({},$e),{flex:`0 0 ${St}`,maxWidth:St,minWidth:St,width:St}),se=de()(xt,`${xt}-${ce}`,{[`${xt}-collapsed`]:!!on,[`${xt}-has-trigger`]:Ue&&ye!==null&&!he,[`${xt}-below`]:!!Jn,[`${xt}-zero-width`]:parseFloat(St)===0},$t);return zt.createElement("aside",Object.assign({className:se},Tt,{style:we,ref:jt}),zt.createElement("div",{className:`${xt}-children`},Yt),Ue||Jn&&he?xe:null)},bt=zt.useMemo(()=>({siderCollapsed:on}),[on]);return zt.createElement(mt.Provider,{value:bt},te())})},84966:function(On,Cn,yt){"use strict";yt.d(Cn,{VY:function(){return mt},$_:function(){return gt},h4:function(){return st},Gs:function(){return be},ZP:function(){return Pt}});var At=yt(26390),zt=yt(92310),re=yt.n(zt),Ae=yt(64002),Ut=yt(59301),ne=yt(36355),Ft=yt(83116),Pe=kt=>{const{componentCls:wt,bodyBg:Ot,lightSiderBg:jt,lightTriggerBg:Ht,lightTriggerColor:$t}=kt;return{[`${wt}-sider-light`]:{background:jt,[`${wt}-sider-trigger`]:{color:$t,background:Ht},[`${wt}-sider-zero-width-trigger`]:{color:$t,background:Ht,border:`1px solid ${Ot}`,borderInlineStart:0}}}};const oe=kt=>{const{antCls:wt,componentCls:Ot,colorText:jt,triggerColor:Ht,footerBg:$t,triggerBg:ye,headerHeight:Yt,headerPadding:Ge,headerColor:ce,footerPadding:$e,triggerHeight:Ue,zeroTriggerHeight:Ke,zeroTriggerWidth:tn,motionDurationMid:Tn,motionDurationSlow:ve,fontSize:Zt,borderRadius:en,bodyBg:Kn,headerBg:ii,siderBg:Be}=kt;return{[Ot]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Kn,"&, *":{boxSizing:"border-box"},[`&${Ot}-has-sider`]:{flexDirection:"row",[`> ${Ot}, > ${Ot}-content`]:{width:0}},[`${Ot}-header, &${Ot}-footer`]:{flex:"0 0 auto"},[`${Ot}-sider`]:{position:"relative",minWidth:0,background:Be,transition:`all ${Tn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${wt}-menu${wt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ue},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ue,color:Ht,lineHeight:`${Ue}px`,textAlign:"center",background:ye,cursor:"pointer",transition:`all ${Tn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Yt,insetInlineEnd:-tn,zIndex:1,width:tn,height:Ke,color:Ht,fontSize:kt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderStartStartRadius:0,borderStartEndRadius:en,borderEndEndRadius:en,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-tn,borderStartStartRadius:en,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:en}}}}},Pe(kt)),{"&-rtl":{direction:"rtl"}}),[`${Ot}-header`]:{height:Yt,padding:Ge,color:ce,lineHeight:`${Yt}px`,background:ii,[`${wt}-menu`]:{lineHeight:"inherit"}},[`${Ot}-footer`]:{padding:$e,color:jt,fontSize:Zt,background:$t},[`${Ot}-content`]:{flex:"auto",minHeight:0}}};var Re=(0,Ft.Z)("Layout",kt=>[oe(kt)],kt=>{const{colorBgLayout:wt,controlHeight:Ot,controlHeightLG:jt,colorText:Ht,controlHeightSM:$t,marginXXS:ye,colorTextLightSolid:Yt,colorBgContainer:Ge}=kt,ce=jt*1.25;return{colorBgHeader:"#001529",colorBgBody:wt,colorBgTrigger:"#002140",bodyBg:wt,headerBg:"#001529",headerHeight:Ot*2,headerPadding:`0 ${ce}px`,headerColor:Ht,footerPadding:`${$t}px ${ce}px`,footerBg:wt,siderBg:"#001529",triggerHeight:jt+ye*2,triggerBg:"#002140",triggerColor:Yt,zeroTriggerWidth:jt,zeroTriggerHeight:jt,lightSiderBg:Ge,lightTriggerBg:Ge,lightTriggerColor:Ht}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),de=function(kt,wt){var Ot={};for(var jt in kt)Object.prototype.hasOwnProperty.call(kt,jt)&&wt.indexOf(jt)<0&&(Ot[jt]=kt[jt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,jt=Object.getOwnPropertySymbols(kt);Ht<jt.length;Ht++)wt.indexOf(jt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(kt,jt[Ht])&&(Ot[jt[Ht]]=kt[jt[Ht]]);return Ot};const be=Ut.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Nt(kt){let{suffixCls:wt,tagName:Ot,displayName:jt}=kt;return Ht=>Ut.forwardRef((ye,Yt)=>Ut.createElement(Ht,Object.assign({ref:Yt,suffixCls:wt,tagName:Ot},ye)))}const et=Ut.forwardRef((kt,wt)=>{const{prefixCls:Ot,suffixCls:jt,className:Ht,tagName:$t}=kt,ye=de(kt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Yt}=Ut.useContext(ne.E_),Ge=Yt("layout",Ot),[ce,$e]=Re(Ge),Ue=jt?`${Ge}-${jt}`:Ge;return ce(Ut.createElement($t,Object.assign({className:re()(Ot||Ue,Ht,$e),ref:wt},ye)))}),nt=Ut.forwardRef((kt,wt)=>{const{direction:Ot}=Ut.useContext(ne.E_),[jt,Ht]=Ut.useState([]),{prefixCls:$t,className:ye,rootClassName:Yt,children:Ge,hasSider:ce,tagName:$e,style:Ue}=kt,Ke=de(kt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),tn=(0,Ae.Z)(Ke,["suffixCls"]),{getPrefixCls:Tn,layout:ve}=Ut.useContext(ne.E_),Zt=Tn("layout",$t),[en,Kn]=Re(Zt),ii=re()(Zt,{[`${Zt}-has-sider`]:typeof ce=="boolean"?ce:jt.length>0,[`${Zt}-rtl`]:Ot==="rtl"},ve==null?void 0:ve.className,ye,Yt,Kn),Be=Ut.useMemo(()=>({siderHook:{addSider:on=>{Ht(un=>[].concat((0,At.Z)(un),[on]))},removeSider:on=>{Ht(un=>un.filter(Jn=>Jn!==on))}}}),[]);return en(Ut.createElement(be.Provider,{value:Be},Ut.createElement($e,Object.assign({ref:wt,className:ii,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),Ue)},tn),Ge)))}),ht=Nt({tagName:"div",displayName:"Layout"})(nt),st=Nt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),gt=Nt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),mt=Nt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var Pt=ht},40875:function(On,Cn,yt){"use strict";yt.d(Cn,{J:function(){return ne}});var At=yt(59301),zt=yt(33234),re=yt(80764),Ae=function(Ft,De){var Pe={};for(var oe in Ft)Object.prototype.hasOwnProperty.call(Ft,oe)&&De.indexOf(oe)<0&&(Pe[oe]=Ft[oe]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,oe=Object.getOwnPropertySymbols(Ft);Re<oe.length;Re++)De.indexOf(oe[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ft,oe[Re])&&(Pe[oe[Re]]=Ft[oe[Re]]);return Pe};const Ut=At.createContext(null),ne=At.forwardRef((Ft,De)=>{const{children:Pe}=Ft,oe=Ae(Ft,["children"]),Re=At.useContext(Ut),de=At.useMemo(()=>Object.assign(Object.assign({},Re),oe),[Re,oe.prefixCls,oe.mode,oe.selectable]);return At.createElement(Ut.Provider,{value:de},At.createElement(zt.BR,null,(0,re.supportNodeRef)(Pe)?At.cloneElement(Pe,{ref:De}):Pe))});Cn.Z=Ut},20834:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return bt}});var At=yt(22798),zt=yt(59301),re=yt(71413),Ae=yt(92310),Ut=yt.n(Ae),ne=yt(36355),Ft=function(xt,Tt){var Bt={};for(var St in xt)Object.prototype.hasOwnProperty.call(xt,St)&&Tt.indexOf(St)<0&&(Bt[St]=xt[St]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,St=Object.getOwnPropertySymbols(xt);he<St.length;he++)Tt.indexOf(St[he])<0&&Object.prototype.propertyIsEnumerable.call(xt,St[he])&&(Bt[St[he]]=xt[St[he]]);return Bt},Pe=xt=>{const{prefixCls:Tt,className:Bt,dashed:St}=xt,he=Ft(xt,["prefixCls","className","dashed"]),{getPrefixCls:Le}=zt.useContext(ne.E_),Gt=Le("menu",Tt),ee=Ut()({[`${Gt}-item-divider-dashed`]:!!St},Bt);return zt.createElement(At.iz,Object.assign({className:ee},he))},oe=yt(38298),Re=yt(64002),de=yt(6848),be=yt(92343),et=(0,zt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=xt=>{var Tt;const{className:Bt,children:St,icon:he,title:Le,danger:Gt}=xt,{prefixCls:ee,firstLevel:xe,direction:we,disableMenuItemTitleTooltip:se,inlineCollapsed:ke}=zt.useContext(et),vn=qe=>{const Qe=zt.createElement("span",{className:`${ee}-title-content`},St);return(!he||(0,be.l$)(St)&&St.type==="span")&&St&&qe&&xe&&typeof St=="string"?zt.createElement("div",{className:`${ee}-inline-collapsed-noicon`},St.charAt(0)):Qe},{siderCollapsed:cn}=zt.useContext(re.D);let Je=Le;typeof Le=="undefined"?Je=xe?St:"":Le===!1&&(Je="");const hn={title:Je};!cn&&!ke&&(hn.title=null,hn.open=!1);const Vn=(0,oe.Z)(St).length;let Se=zt.createElement(At.ck,Object.assign({},(0,Re.Z)(xt,["title","icon","danger"]),{className:Ut()({[`${ee}-item-danger`]:Gt,[`${ee}-item-only-child`]:(he?Vn+1:Vn)===1},Bt),title:typeof Le=="string"?Le:void 0}),(0,be.Tm)(he,{className:Ut()((0,be.l$)(he)?(Tt=he.props)===null||Tt===void 0?void 0:Tt.className:"",`${ee}-item-icon`)}),vn(ke));return se||(Se=zt.createElement(de.Z,Object.assign({},hn,{placement:we==="rtl"?"left":"right",overlayClassName:`${ee}-inline-collapsed-tooltip`}),Se)),Se},gt=xt=>{var Tt;const{popupClassName:Bt,icon:St,title:he,theme:Le}=xt,Gt=zt.useContext(et),{prefixCls:ee,inlineCollapsed:xe,theme:we}=Gt,se=(0,At.Xl)();let ke;if(!St)ke=xe&&!se.length&&he&&typeof he=="string"?zt.createElement("div",{className:`${ee}-inline-collapsed-noicon`},he.charAt(0)):zt.createElement("span",{className:`${ee}-title-content`},he);else{const cn=(0,be.l$)(he)&&he.type==="span";ke=zt.createElement(zt.Fragment,null,(0,be.Tm)(St,{className:Ut()((0,be.l$)(St)?(Tt=St.props)===null||Tt===void 0?void 0:Tt.className:"",`${ee}-item-icon`)}),cn?he:zt.createElement("span",{className:`${ee}-title-content`},he))}const vn=zt.useMemo(()=>Object.assign(Object.assign({},Gt),{firstLevel:!1}),[Gt]);return zt.createElement(et.Provider,{value:vn},zt.createElement(At.Wd,Object.assign({},(0,Re.Z)(xt,["icon"]),{title:ke,popupClassName:Ut()(ee,Bt,`${ee}-${Le||we}`)})))},mt=yt(24764),Pt=yt(80764),kt=yt(62892),wt=yt(40875),Ot=function(xt,Tt){var Bt={};for(var St in xt)Object.prototype.hasOwnProperty.call(xt,St)&&Tt.indexOf(St)<0&&(Bt[St]=xt[St]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,St=Object.getOwnPropertySymbols(xt);he<St.length;he++)Tt.indexOf(St[he])<0&&Object.prototype.propertyIsEnumerable.call(xt,St[he])&&(Bt[St[he]]=xt[St[he]]);return Bt};function jt(xt){return(xt||[]).map((Tt,Bt)=>{if(Tt&&typeof Tt=="object"){const St=Tt,{label:he,children:Le,key:Gt,type:ee}=St,xe=Ot(St,["label","children","key","type"]),we=Gt!=null?Gt:`tmp-${Bt}`;return Le||ee==="group"?ee==="group"?zt.createElement(At.BW,Object.assign({key:we},xe,{title:he}),jt(Le)):zt.createElement(gt,Object.assign({key:we},xe,{title:he}),jt(Le)):ee==="divider"?zt.createElement(Pe,Object.assign({key:we},xe)):zt.createElement(ht,Object.assign({key:we},xe),he)}return null}).filter(Tt=>Tt)}function Ht(xt){return zt.useMemo(()=>xt&&jt(xt),[xt])}var $t=yt(64993),ye=yt(17313),Yt=yt(8378),Ge=yt(13826),ce=yt(29878),$e=yt(83116),Ue=yt(37613),tn=xt=>{const{componentCls:Tt,motionDurationSlow:Bt,horizontalLineHeight:St,colorSplit:he,lineWidth:Le,lineType:Gt,itemPaddingInline:ee}=xt;return{[`${Tt}-horizontal`]:{lineHeight:St,border:0,borderBottom:`${Le}px ${Gt} ${he}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Tt}-item, ${Tt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ee},[`> ${Tt}-item:hover,
|
|
|
> ${Tt}-item-active,
|
|
|
> ${Tt}-submenu ${Tt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Tt}-item, ${Tt}-submenu-title`]:{transition:[`border-color ${Bt}`,`background ${Bt}`].join(",")},[`${Tt}-submenu-arrow`]:{display:"none"}}}},ve=xt=>{let{componentCls:Tt,menuArrowOffset:Bt}=xt;return{[`${Tt}-rtl`]:{direction:"rtl"},[`${Tt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Tt}-rtl${Tt}-vertical,
|
|
|
${Tt}-submenu-rtl ${Tt}-vertical`]:{[`${Tt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Bt})`},"&::after":{transform:`rotate(45deg) translateY(${Bt})`}}}}};const Zt=xt=>Object.assign({},(0,ye.oN)(xt));var Kn=(xt,Tt)=>{const{componentCls:Bt,itemColor:St,itemSelectedColor:he,groupTitleColor:Le,itemBg:Gt,subMenuItemBg:ee,itemSelectedBg:xe,activeBarHeight:we,activeBarWidth:se,activeBarBorderWidth:ke,motionDurationSlow:vn,motionEaseInOut:cn,motionEaseOut:Je,itemPaddingInline:hn,motionDurationMid:Vn,itemHoverColor:Se,lineType:qe,colorSplit:Qe,itemDisabledColor:Nn,dangerItemColor:hi,dangerItemHoverColor:mi,dangerItemSelectedColor:gi,dangerItemActiveBg:Pi,dangerItemSelectedBg:_i,itemHoverBg:vr,itemActiveBg:gr,menuSubMenuBg:fr,horizontalItemSelectedColor:eo,horizontalItemSelectedBg:Jr,horizontalItemBorderRadius:Xi,horizontalItemHoverBg:$r,popupBg:Ki}=xt;return{[`${Bt}-${Tt}, ${Bt}-${Tt} > ${Bt}`]:{color:St,background:Gt,[`&${Bt}-root:focus-visible`]:Object.assign({},Zt(xt)),[`${Bt}-item-group-title`]:{color:Le},[`${Bt}-submenu-selected`]:{[`> ${Bt}-submenu-title`]:{color:he}},[`${Bt}-item-disabled, ${Bt}-submenu-disabled`]:{color:`${Nn} !important`},[`${Bt}-item:not(${Bt}-item-selected):not(${Bt}-submenu-selected)`]:{[`&:hover, > ${Bt}-submenu-title:hover`]:{color:Se}},[`&:not(${Bt}-horizontal)`]:{[`${Bt}-item:not(${Bt}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:gr}},[`${Bt}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:gr}}},[`${Bt}-item-danger`]:{color:hi,[`&${Bt}-item:hover`]:{[`&:not(${Bt}-item-selected):not(${Bt}-submenu-selected)`]:{color:mi}},[`&${Bt}-item:active`]:{background:Pi}},[`${Bt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Bt}-item-selected`]:{color:he,[`&${Bt}-item-danger`]:{color:gi},"a, a:hover":{color:"inherit"}},[`& ${Bt}-item-selected`]:{backgroundColor:xe,[`&${Bt}-item-danger`]:{backgroundColor:_i}},[`${Bt}-item, ${Bt}-submenu-title`]:{[`&:not(${Bt}-item-disabled):focus-visible`]:Object.assign({},Zt(xt))},[`&${Bt}-submenu > ${Bt}`]:{backgroundColor:fr},[`&${Bt}-popup > ${Bt}`]:{backgroundColor:Ki},[`&${Bt}-horizontal`]:Object.assign(Object.assign({},Tt==="dark"?{borderBottom:0}:{}),{[`> ${Bt}-item, > ${Bt}-submenu`]:{top:ke,marginTop:-ke,marginBottom:0,borderRadius:Xi,"&::after":{position:"absolute",insetInline:hn,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${vn} ${cn}`,content:'""'},"&:hover, &-active, &-open":{background:$r,"&::after":{borderBottomWidth:we,borderBottomColor:eo}},"&-selected":{color:eo,backgroundColor:Jr,"&:hover":{backgroundColor:Jr},"&::after":{borderBottomWidth:we,borderBottomColor:eo}}}}),[`&${Bt}-root`]:{[`&${Bt}-inline, &${Bt}-vertical`]:{borderInlineEnd:`${ke}px ${qe} ${Qe}`}},[`&${Bt}-inline`]:{[`${Bt}-sub${Bt}-inline`]:{background:ee},[`${Bt}-item, ${Bt}-submenu-title`]:ke&&se?{width:`calc(100% + ${ke}px)`}:{},[`${Bt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${se}px solid ${he}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vn} ${Je}`,`opacity ${Vn} ${Je}`].join(","),content:'""'},[`&${Bt}-item-danger`]:{"&::after":{borderInlineEndColor:gi}}},[`${Bt}-selected, ${Bt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vn} ${cn}`,`opacity ${Vn} ${cn}`].join(",")}}}}}};const ii=xt=>{const{componentCls:Tt,itemHeight:Bt,itemMarginInline:St,padding:he,menuArrowSize:Le,marginXS:Gt,itemMarginBlock:ee}=xt,xe=he+Le+Gt;return{[`${Tt}-item`]:{position:"relative",overflow:"hidden"},[`${Tt}-item, ${Tt}-submenu-title`]:{height:Bt,lineHeight:`${Bt}px`,paddingInline:he,overflow:"hidden",textOverflow:"ellipsis",marginInline:St,marginBlock:ee,width:`calc(100% - ${St*2}px)`},[`> ${Tt}-item,
|
|
|
> ${Tt}-submenu > ${Tt}-submenu-title`]:{height:Bt,lineHeight:`${Bt}px`},[`${Tt}-item-group-list ${Tt}-submenu-title,
|
|
|
${Tt}-submenu-title`]:{paddingInlineEnd:xe}}};var on=xt=>{const{componentCls:Tt,iconCls:Bt,itemHeight:St,colorTextLightSolid:he,dropdownWidth:Le,controlHeightLG:Gt,motionDurationMid:ee,motionEaseOut:xe,paddingXL:we,itemMarginInline:se,fontSizeLG:ke,motionDurationSlow:vn,paddingXS:cn,boxShadowSecondary:Je,collapsedWidth:hn,collapsedIconSize:Vn}=xt,Se={height:St,lineHeight:`${St}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Tt]:{"&-inline, &-vertical":Object.assign({[`&${Tt}-root`]:{boxShadow:"none"}},ii(xt))},[`${Tt}-submenu-popup`]:{[`${Tt}-vertical`]:Object.assign(Object.assign({},ii(xt)),{boxShadow:Je})}},{[`${Tt}-submenu-popup ${Tt}-vertical${Tt}-sub`]:{minWidth:Le,maxHeight:`calc(100vh - ${Gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Tt}-inline`]:{width:"100%",[`&${Tt}-root`]:{[`${Tt}-item, ${Tt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vn}`,`background ${vn}`,`padding ${ee} ${xe}`].join(","),[`> ${Tt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Tt}-sub${Tt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Tt}-submenu > ${Tt}-submenu-title`]:Se,[`& ${Tt}-item-group-title`]:{paddingInlineStart:we}},[`${Tt}-item`]:Se}},{[`${Tt}-inline-collapsed`]:{width:hn,[`&${Tt}-root`]:{[`${Tt}-item, ${Tt}-submenu ${Tt}-submenu-title`]:{[`> ${Tt}-inline-collapsed-noicon`]:{fontSize:ke,textAlign:"center"}}},[`> ${Tt}-item,
|
|
|
> ${Tt}-item-group > ${Tt}-item-group-list > ${Tt}-item,
|
|
|
> ${Tt}-item-group > ${Tt}-item-group-list > ${Tt}-submenu > ${Tt}-submenu-title,
|
|
|
> ${Tt}-submenu > ${Tt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ke/2}px - ${se}px)`,textOverflow:"clip",[`
|
|
|
${Tt}-submenu-arrow,
|
|
|
${Tt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Tt}-item-icon, ${Bt}`]:{margin:0,fontSize:Vn,lineHeight:`${St}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Tt}-item-icon, ${Bt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Tt}-item-icon, ${Bt}`]:{display:"none"},"a, a:hover":{color:he}},[`${Tt}-item-group-title`]:Object.assign(Object.assign({},ye.vS),{paddingInline:cn})}}]};const un=xt=>{const{componentCls:Tt,motionDurationSlow:Bt,motionDurationMid:St,motionEaseInOut:he,motionEaseOut:Le,iconCls:Gt,iconSize:ee,iconMarginInlineEnd:xe}=xt;return{[`${Tt}-item, ${Tt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Bt}`,`background ${Bt}`,`padding ${Bt} ${he}`].join(","),[`${Tt}-item-icon, ${Gt}`]:{minWidth:ee,fontSize:ee,transition:[`font-size ${St} ${Le}`,`margin ${Bt} ${he}`,`color ${Bt}`].join(","),"+ span":{marginInlineStart:xe,opacity:1,transition:[`opacity ${Bt} ${he}`,`margin ${Bt}`,`color ${Bt}`].join(",")}},[`${Tt}-item-icon`]:Object.assign({},(0,ye.Ro)()),[`&${Tt}-item-only-child`]:{[`> ${Gt}, > ${Tt}-item-icon`]:{marginInlineEnd:0}}},[`${Tt}-item-disabled, ${Tt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Tt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jn=xt=>{const{componentCls:Tt,motionDurationSlow:Bt,motionEaseInOut:St,borderRadius:he,menuArrowSize:Le,menuArrowOffset:Gt}=xt;return{[`${Tt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xt.margin,width:Le,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Bt} ${St}, opacity ${Bt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Le*.6,height:Le*.15,backgroundColor:"currentcolor",borderRadius:he,transition:[`background ${Bt} ${St}`,`transform ${Bt} ${St}`,`top ${Bt} ${St}`,`color ${Bt} ${St}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Gt})`},"&::after":{transform:`rotate(-45deg) translateY(${Gt})`}}}}},nn=xt=>{const{antCls:Tt,componentCls:Bt,fontSize:St,motionDurationSlow:he,motionDurationMid:Le,motionEaseInOut:Gt,paddingXS:ee,padding:xe,colorSplit:we,lineWidth:se,zIndexPopup:ke,borderRadiusLG:vn,subMenuItemBorderRadius:cn,menuArrowSize:Je,menuArrowOffset:hn,lineType:Vn,menuPanelMaskInset:Se,groupTitleLineHeight:qe,groupTitleFontSize:Qe}=xt;return[{"":{[`${Bt}`]:Object.assign(Object.assign({},(0,ye.dF)()),{"&-hidden":{display:"none"}})},[`${Bt}-submenu-hidden`]:{display:"none"}},{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(xt)),(0,ye.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:St,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${he} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Bt}-item`]:{flex:"none"}},[`${Bt}-item, ${Bt}-submenu, ${Bt}-submenu-title`]:{borderRadius:xt.itemBorderRadius},[`${Bt}-item-group-title`]:{padding:`${ee}px ${xe}px`,fontSize:Qe,lineHeight:qe,transition:`all ${he}`},[`&-horizontal ${Bt}-submenu`]:{transition:[`border-color ${he} ${Gt}`,`background ${he} ${Gt}`].join(",")},[`${Bt}-submenu, ${Bt}-submenu-inline`]:{transition:[`border-color ${he} ${Gt}`,`background ${he} ${Gt}`,`padding ${Le} ${Gt}`].join(",")},[`${Bt}-submenu ${Bt}-sub`]:{cursor:"initial",transition:[`background ${he} ${Gt}`,`padding ${he} ${Gt}`].join(",")},[`${Bt}-title-content`]:{transition:`color ${he}`},[`${Bt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Bt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:Vn,borderWidth:0,borderTopWidth:se,marginBlock:se,padding:0,"&-dashed":{borderStyle:"dashed"}}}),un(xt)),{[`${Bt}-item-group`]:{[`${Bt}-item-group-list`]:{margin:0,padding:0,[`${Bt}-item, ${Bt}-submenu-title`]:{paddingInline:`${St*2}px ${xe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ke,borderRadius:vn,boxShadow:"none",transformOrigin:"0 0",[`&${Bt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Se}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Se},"\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:xt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xt.paddingXS},[`> ${Bt}`]:Object.assign(Object.assign(Object.assign({borderRadius:vn},un(xt)),Jn(xt)),{[`${Bt}-item, ${Bt}-submenu > ${Bt}-submenu-title`]:{borderRadius:cn},[`${Bt}-submenu-title::after`]:{transition:`transform ${he} ${Gt}`}})}}),Jn(xt)),{[`&-inline-collapsed ${Bt}-submenu-arrow,
|
|
|
&-inline ${Bt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${hn})`},"&::after":{transform:`rotate(45deg) translateX(-${hn})`}},[`${Bt}-submenu-open${Bt}-submenu-inline > ${Bt}-submenu-title > ${Bt}-submenu-arrow`]:{transform:`translateY(-${Je*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${hn})`},"&::before":{transform:`rotate(45deg) translateX(${hn})`}}})},{[`${Tt}-layout-header`]:{[Bt]:{lineHeight:"inherit"}}}]};var Gn=(xt,Tt)=>(0,$e.Z)("Menu",St=>{if(Tt===!1)return[];const{colorBgElevated:he,colorPrimary:Le,colorTextLightSolid:Gt,controlHeightLG:ee,fontSize:xe,darkItemColor:we,darkDangerItemColor:se,darkItemBg:ke,darkSubMenuItemBg:vn,darkItemSelectedColor:cn,darkItemSelectedBg:Je,darkDangerItemSelectedBg:hn,darkItemHoverBg:Vn,darkGroupTitleColor:Se,darkItemHoverColor:qe,darkItemDisabledColor:Qe,darkDangerItemHoverColor:Nn,darkDangerItemSelectedColor:hi,darkDangerItemActiveBg:mi}=St,gi=xe/7*5,Pi=(0,Ue.TS)(St,{menuArrowSize:gi,menuHorizontalHeight:ee*1.15,menuArrowOffset:`${gi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:he}),_i=(0,Ue.TS)(Pi,{itemColor:we,itemHoverColor:qe,groupTitleColor:Se,itemSelectedColor:cn,itemBg:ke,popupBg:ke,subMenuItemBg:vn,itemActiveBg:"transparent",itemSelectedBg:Je,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Vn,itemDisabledColor:Qe,dangerItemColor:se,dangerItemHoverColor:Nn,dangerItemSelectedColor:hi,dangerItemActiveBg:mi,dangerItemSelectedBg:hn,menuSubMenuBg:vn,horizontalItemSelectedColor:Gt,horizontalItemSelectedBg:Le});return[nn(Pi),tn(Pi),on(Pi),Kn(Pi,"light"),Kn(_i,"dark"),ve(Pi),(0,Yt.Z)(Pi),(0,Ge.oN)(Pi,"slide-up"),(0,Ge.oN)(Pi,"slide-down"),(0,ce._y)(Pi,"zoom-big")]},St=>{const{colorPrimary:he,colorError:Le,colorTextDisabled:Gt,colorErrorBg:ee,colorText:xe,colorTextDescription:we,colorBgContainer:se,colorFillAlter:ke,colorFillContent:vn,lineWidth:cn,lineWidthBold:Je,controlItemBgActive:hn,colorBgTextHover:Vn,controlHeightLG:Se,lineHeight:qe,colorBgElevated:Qe,marginXXS:Nn,padding:hi,fontSize:mi,controlHeightSM:gi,fontSizeLG:Pi,colorTextLightSolid:_i,colorErrorHover:vr}=St,gr=new $t.C(_i).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:St.zIndexPopupBase+50,radiusItem:St.borderRadiusLG,itemBorderRadius:St.borderRadiusLG,radiusSubMenuItem:St.borderRadiusSM,subMenuItemBorderRadius:St.borderRadiusSM,colorItemText:xe,itemColor:xe,colorItemTextHover:xe,itemHoverColor:xe,colorItemTextHoverHorizontal:he,horizontalItemHoverColor:he,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:he,itemSelectedColor:he,colorItemTextSelectedHorizontal:he,horizontalItemSelectedColor:he,colorItemBg:se,itemBg:se,colorItemBgHover:Vn,itemHoverBg:Vn,colorItemBgActive:vn,itemActiveBg:hn,colorSubItemBg:ke,subMenuItemBg:ke,colorItemBgSelected:hn,itemSelectedBg:hn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Je,activeBarHeight:Je,colorActiveBarBorderSize:cn,activeBarBorderWidth:cn,colorItemTextDisabled:Gt,itemDisabledColor:Gt,colorDangerItemText:Le,dangerItemColor:Le,colorDangerItemTextHover:Le,dangerItemHoverColor:Le,colorDangerItemTextSelected:Le,dangerItemSelectedColor:Le,colorDangerItemBgActive:ee,dangerItemActiveBg:ee,colorDangerItemBgSelected:ee,dangerItemSelectedBg:ee,itemMarginInline:St.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Se,groupTitleLineHeight:qe,collapsedWidth:Se*2,popupBg:Qe,itemMarginBlock:Nn,itemPaddingInline:hi,horizontalLineHeight:`${Se*1.15}px`,iconSize:mi,iconMarginInlineEnd:gi-mi,collapsedIconSize:Pi,groupTitleFontSize:mi,darkItemDisabledColor:new $t.C(_i).setAlpha(.25).toRgbString(),darkItemColor:gr,darkDangerItemColor:Le,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_i,darkItemSelectedBg:he,darkDangerItemSelectedBg:Le,darkItemHoverBg:"transparent",darkGroupTitleColor:gr,darkItemHoverColor:_i,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:_i,darkDangerItemActiveBg:Le}},{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"]]})(xt),pe=function(xt,Tt){var Bt={};for(var St in xt)Object.prototype.hasOwnProperty.call(xt,St)&&Tt.indexOf(St)<0&&(Bt[St]=xt[St]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,St=Object.getOwnPropertySymbols(xt);he<St.length;he++)Tt.indexOf(St[he])<0&&Object.prototype.propertyIsEnumerable.call(xt,St[he])&&(Bt[St[he]]=xt[St[he]]);return Bt},oi=(0,zt.forwardRef)((xt,Tt)=>{var Bt,St;const he=zt.useContext(wt.Z),Le=he||{},{getPrefixCls:Gt,getPopupContainer:ee,direction:xe,menu:we}=zt.useContext(ne.E_),se=Gt(),{prefixCls:ke,className:vn,style:cn,theme:Je="light",expandIcon:hn,_internalDisableMenuItemTitleTooltip:Vn,inlineCollapsed:Se,siderCollapsed:qe,items:Qe,children:Nn,rootClassName:hi,mode:mi,selectable:gi,onClick:Pi,overflowedIndicatorPopupClassName:_i}=xt,vr=pe(xt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gr=(0,Re.Z)(vr,["collapsedWidth"]),fr=Ht(Qe)||Nn;(Bt=Le.validator)===null||Bt===void 0||Bt.call(Le,{mode:mi});const eo=(0,Pt.useEvent)(function(){var Zr;Pi==null||Pi.apply(void 0,arguments),(Zr=Le.onClick)===null||Zr===void 0||Zr.call(Le)}),Jr=Le.mode||mi,Xi=gi!=null?gi:Le.selectable,$r=zt.useMemo(()=>qe!==void 0?qe:Se,[Se,qe]),Ki={horizontal:{motionName:`${se}-slide-up`},inline:(0,kt.Z)(se),other:{motionName:`${se}-zoom-big`}},Lt=Gt("menu",ke||Le.prefixCls),[li,vi]=Gn(Lt,!he),Lr=Ut()(`${Lt}-${Je}`,we==null?void 0:we.className,vn);let hr;if(typeof hn=="function")hr=hn;else if(hn===null||hn===!1)hr=null;else if(Le.expandIcon===null||Le.expandIcon===!1)hr=null;else{const Zr=hn!=null?hn:Le.expandIcon;hr=(0,be.Tm)(Zr,{className:Ut()(`${Lt}-submenu-expand-icon`,(0,be.l$)(Zr)?(St=Zr.props)===null||St===void 0?void 0:St.className:"")})}const qi=zt.useMemo(()=>({prefixCls:Lt,inlineCollapsed:$r||!1,direction:xe,firstLevel:!0,theme:Je,mode:Jr,disableMenuItemTitleTooltip:Vn}),[Lt,$r,xe,Vn,Je]);return li(zt.createElement(wt.Z.Provider,{value:null},zt.createElement(et.Provider,{value:qi},zt.createElement(At.ZP,Object.assign({getPopupContainer:ee,overflowedIndicator:zt.createElement(mt.Z,null),overflowedIndicatorPopupClassName:Ut()(Lt,`${Lt}-${Je}`,_i),mode:Jr,selectable:Xi,onClick:eo},gr,{inlineCollapsed:$r,style:Object.assign(Object.assign({},we==null?void 0:we.style),cn),className:Lr,prefixCls:Lt,direction:xe,defaultMotions:Ki,expandIcon:hr,ref:Tt,rootClassName:Ut()(hi,vi)}),fr))))});const te=(0,zt.forwardRef)((xt,Tt)=>{const Bt=(0,zt.useRef)(null),St=zt.useContext(re.D);return(0,zt.useImperativeHandle)(Tt,()=>({menu:Bt.current,focus:he=>{var Le;(Le=Bt.current)===null||Le===void 0||Le.focus(he)}})),zt.createElement(oi,Object.assign({ref:Bt},xt,St))});te.Item=ht,te.SubMenu=gt,te.Divider=Pe,te.ItemGroup=At.BW;var bt=te},19871:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Le}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(ee,xe){return zt.createElement(Ut.Z,(0,At.Z)({},ee,{ref:xe,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft,Pe=yt(55143),oe=yt(81132),Re=yt(38226),de=yt(92310),be=yt.n(de),Nt=yt(80962),et=yt(57259),nt=yt(79545),ht=yt(68550),st=yt(17928),gt=yt(7711),mt=yt(36994),Pt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},kt=Pt,wt=yt(91735),Ot=function(Gt){(0,st.Z)(xe,Gt);var ee=(0,gt.Z)(xe);function xe(){var we;(0,nt.Z)(this,xe);for(var se=arguments.length,ke=new Array(se),vn=0;vn<se;vn++)ke[vn]=arguments[vn];return we=ee.call.apply(ee,[this].concat(ke)),we.state={goInputText:""},we.getValidValue=function(){var cn=we.state.goInputText;return!cn||Number.isNaN(cn)?void 0:Number(cn)},we.buildOptionText=function(cn){return"".concat(cn," ").concat(we.props.locale.items_per_page)},we.changeSize=function(cn){we.props.changeSize(Number(cn))},we.handleChange=function(cn){we.setState({goInputText:cn.target.value})},we.handleBlur=function(cn){var Je=we.props,hn=Je.goButton,Vn=Je.quickGo,Se=Je.rootPrefixCls,qe=we.state.goInputText;hn||qe===""||(we.setState({goInputText:""}),!(cn.relatedTarget&&(cn.relatedTarget.className.indexOf("".concat(Se,"-item-link"))>=0||cn.relatedTarget.className.indexOf("".concat(Se,"-item"))>=0))&&Vn(we.getValidValue()))},we.go=function(cn){var Je=we.state.goInputText;Je!==""&&(cn.keyCode===kt.ENTER||cn.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,ht.Z)(xe,[{key:"getPageSizeOptions",value:function(){var se=this.props,ke=se.pageSize,vn=se.pageSizeOptions;return vn.some(function(cn){return cn.toString()===ke.toString()})?vn:vn.concat([ke.toString()]).sort(function(cn,Je){var hn=Number.isNaN(Number(cn))?0:Number(cn),Vn=Number.isNaN(Number(Je))?0:Number(Je);return hn-Vn})}},{key:"render",value:function(){var se=this,ke=this.props,vn=ke.pageSize,cn=ke.locale,Je=ke.rootPrefixCls,hn=ke.changeSize,Vn=ke.quickGo,Se=ke.goButton,qe=ke.selectComponentClass,Qe=ke.buildOptionText,Nn=ke.selectPrefixCls,hi=ke.disabled,mi=this.state.goInputText,gi="".concat(Je,"-options"),Pi=qe,_i=null,vr=null,gr=null;if(!hn&&!Vn)return null;var fr=this.getPageSizeOptions();if(hn&&Pi){var eo=fr.map(function(Jr,Xi){return zt.createElement(Pi.Option,{key:Xi,value:Jr.toString()},(Qe||se.buildOptionText)(Jr))});_i=zt.createElement(Pi,{disabled:hi,prefixCls:Nn,showSearch:!1,className:"".concat(gi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(vn||fr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Xi){return Xi.parentNode},"aria-label":cn.page_size,defaultOpen:!1},eo)}return Vn&&(Se&&(gr=typeof Se=="boolean"?zt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:hi,className:"".concat(gi,"-quick-jumper-button")},cn.jump_to_confirm):zt.createElement("span",{onClick:this.go,onKeyUp:this.go},Se)),vr=zt.createElement("div",{className:"".concat(gi,"-quick-jumper")},cn.jump_to,zt.createElement("input",{disabled:hi,type:"text",value:mi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":cn.page}),cn.page,gr)),zt.createElement("li",{className:"".concat(gi)},_i,vr)}}]),xe}(zt.Component);Ot.defaultProps={pageSizeOptions:["10","20","50","100"]};var jt=Ot,Ht=function(ee){var xe,we=ee.rootPrefixCls,se=ee.page,ke=ee.active,vn=ee.className,cn=ee.showTitle,Je=ee.onClick,hn=ee.onKeyPress,Vn=ee.itemRender,Se="".concat(we,"-item"),qe=be()(Se,"".concat(Se,"-").concat(se),(xe={},(0,Nt.Z)(xe,"".concat(Se,"-active"),ke),(0,Nt.Z)(xe,"".concat(Se,"-disabled"),!se),(0,Nt.Z)(xe,ee.className,vn),xe)),Qe=function(){Je(se)},Nn=function(gi){hn(gi,Je,se)},hi=Vn(se,"page",zt.createElement("a",{rel:"nofollow"},se));return hi?zt.createElement("li",{title:cn?se.toString():null,className:qe,onClick:Qe,onKeyPress:Nn,tabIndex:0},hi):null},$t=Ht;function ye(){}function Yt(Gt){var ee=Number(Gt);return typeof ee=="number"&&!Number.isNaN(ee)&&isFinite(ee)&&Math.floor(ee)===ee}var Ge=function(ee,xe,we){return we};function ce(Gt,ee,xe){var we=typeof Gt=="undefined"?ee.pageSize:Gt;return Math.floor((xe.total-1)/we)+1}var $e=function(Gt){(0,st.Z)(xe,Gt);var ee=(0,gt.Z)(xe);function xe(we){var se;(0,nt.Z)(this,xe),se=ee.call(this,we),se.paginationNode=zt.createRef(),se.getJumpPrevPage=function(){return Math.max(1,se.state.current-(se.props.showLessItems?3:5))},se.getJumpNextPage=function(){return Math.min(ce(void 0,se.state,se.props),se.state.current+(se.props.showLessItems?3:5))},se.getItemIcon=function(hn,Vn){var Se=se.props.prefixCls,qe=hn||zt.createElement("button",{type:"button","aria-label":Vn,className:"".concat(Se,"-item-link")});return typeof hn=="function"&&(qe=zt.createElement(hn,(0,et.Z)({},se.props))),qe},se.isValid=function(hn){var Vn=se.props.total;return Yt(hn)&&hn!==se.state.current&&Yt(Vn)&&Vn>0},se.shouldDisplayQuickJumper=function(){var hn=se.props,Vn=hn.showQuickJumper,Se=hn.total,qe=se.state.pageSize;return Se<=qe?!1:Vn},se.handleKeyDown=function(hn){(hn.keyCode===kt.ARROW_UP||hn.keyCode===kt.ARROW_DOWN)&&hn.preventDefault()},se.handleKeyUp=function(hn){var Vn=se.getValidValue(hn),Se=se.state.currentInputValue;Vn!==Se&&se.setState({currentInputValue:Vn}),hn.keyCode===kt.ENTER?se.handleChange(Vn):hn.keyCode===kt.ARROW_UP?se.handleChange(Vn-1):hn.keyCode===kt.ARROW_DOWN&&se.handleChange(Vn+1)},se.handleBlur=function(hn){var Vn=se.getValidValue(hn);se.handleChange(Vn)},se.changePageSize=function(hn){var Vn=se.state.current,Se=ce(hn,se.state,se.props);Vn=Vn>Se?Se:Vn,Se===0&&(Vn=se.state.current),typeof hn=="number"&&("pageSize"in se.props||se.setState({pageSize:hn}),"current"in se.props||se.setState({current:Vn,currentInputValue:Vn})),se.props.onShowSizeChange(Vn,hn),"onChange"in se.props&&se.props.onChange&&se.props.onChange(Vn,hn)},se.handleChange=function(hn){var Vn=se.props,Se=Vn.disabled,qe=Vn.onChange,Qe=se.state,Nn=Qe.pageSize,hi=Qe.current,mi=Qe.currentInputValue;if(se.isValid(hn)&&!Se){var gi=ce(void 0,se.state,se.props),Pi=hn;return hn>gi?Pi=gi:hn<1&&(Pi=1),"current"in se.props||se.setState({current:Pi}),Pi!==mi&&se.setState({currentInputValue:Pi}),qe(Pi,Nn),Pi}return hi},se.prev=function(){se.hasPrev()&&se.handleChange(se.state.current-1)},se.next=function(){se.hasNext()&&se.handleChange(se.state.current+1)},se.jumpPrev=function(){se.handleChange(se.getJumpPrevPage())},se.jumpNext=function(){se.handleChange(se.getJumpNextPage())},se.hasPrev=function(){return se.state.current>1},se.hasNext=function(){return se.state.current<ce(void 0,se.state,se.props)},se.runIfEnter=function(hn,Vn){if(hn.key==="Enter"||hn.charCode===13){for(var Se=arguments.length,qe=new Array(Se>2?Se-2:0),Qe=2;Qe<Se;Qe++)qe[Qe-2]=arguments[Qe];Vn.apply(void 0,qe)}},se.runIfEnterPrev=function(hn){se.runIfEnter(hn,se.prev)},se.runIfEnterNext=function(hn){se.runIfEnter(hn,se.next)},se.runIfEnterJumpPrev=function(hn){se.runIfEnter(hn,se.jumpPrev)},se.runIfEnterJumpNext=function(hn){se.runIfEnter(hn,se.jumpNext)},se.handleGoTO=function(hn){(hn.keyCode===kt.ENTER||hn.type==="click")&&se.handleChange(se.state.currentInputValue)},se.renderPrev=function(hn){var Vn=se.props,Se=Vn.prevIcon,qe=Vn.itemRender,Qe=qe(hn,"prev",se.getItemIcon(Se,"prev page")),Nn=!se.hasPrev();return(0,zt.isValidElement)(Qe)?(0,zt.cloneElement)(Qe,{disabled:Nn}):Qe},se.renderNext=function(hn){var Vn=se.props,Se=Vn.nextIcon,qe=Vn.itemRender,Qe=qe(hn,"next",se.getItemIcon(Se,"next page")),Nn=!se.hasNext();return(0,zt.isValidElement)(Qe)?(0,zt.cloneElement)(Qe,{disabled:Nn}):Qe};var ke=we.onChange!==ye,vn="current"in we;vn&&!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 cn=we.defaultCurrent;"current"in we&&(cn=we.current);var Je=we.defaultPageSize;return"pageSize"in we&&(Je=we.pageSize),cn=Math.min(cn,ce(Je,void 0,we)),se.state={current:cn,currentInputValue:cn,pageSize:Je},se}return(0,ht.Z)(xe,[{key:"componentDidUpdate",value:function(se,ke){var vn=this.props.prefixCls;if(ke.current!==this.state.current&&this.paginationNode.current){var cn=this.paginationNode.current.querySelector(".".concat(vn,"-item-").concat(ke.current));if(cn&&document.activeElement===cn){var Je;cn==null||(Je=cn.blur)===null||Je===void 0||Je.call(cn)}}}},{key:"getValidValue",value:function(se){var ke=se.target.value,vn=ce(void 0,this.state,this.props),cn=this.state.currentInputValue,Je;return ke===""?Je=ke:Number.isNaN(Number(ke))?Je=cn:ke>=vn?Je=vn:Je=Number(ke),Je}},{key:"getShowSizeChanger",value:function(){var se=this.props,ke=se.showSizeChanger,vn=se.total,cn=se.totalBoundaryShowSizeChanger;return typeof ke!="undefined"?ke:vn>cn}},{key:"render",value:function(){var se=this.props,ke=se.prefixCls,vn=se.className,cn=se.style,Je=se.disabled,hn=se.hideOnSinglePage,Vn=se.total,Se=se.locale,qe=se.showQuickJumper,Qe=se.showLessItems,Nn=se.showTitle,hi=se.showTotal,mi=se.simple,gi=se.itemRender,Pi=se.showPrevNextJumpers,_i=se.jumpPrevIcon,vr=se.jumpNextIcon,gr=se.selectComponentClass,fr=se.selectPrefixCls,eo=se.pageSizeOptions,Jr=this.state,Xi=Jr.current,$r=Jr.pageSize,Ki=Jr.currentInputValue;if(hn===!0&&Vn<=$r)return null;var Lt=ce(void 0,this.state,this.props),li=[],vi=null,Lr=null,hr=null,qi=null,Zr=null,Gr=qe&&qe.goButton,Ln=Qe?1:2,fn=Xi-1>0?Xi-1:0,Ze=Xi+1<Lt?Xi+1:Lt,fe=(0,mt.Z)(this.props,{aria:!0,data:!0}),Sn=hi&&zt.createElement("li",{className:"".concat(ke,"-total-text")},hi(Vn,[Vn===0?0:(Xi-1)*$r+1,Xi*$r>Vn?Vn:Xi*$r]));if(mi){Gr&&(typeof Gr=="boolean"?Zr=zt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Se.jump_to_confirm):Zr=zt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Gr),Zr=zt.createElement("li",{title:Nn?"".concat(Se.jump_to).concat(Xi,"/").concat(Lt):null,className:"".concat(ke,"-simple-pager")},Zr));var In=this.renderPrev(fn);return zt.createElement("ul",(0,At.Z)({className:be()(ke,"".concat(ke,"-simple"),(0,Nt.Z)({},"".concat(ke,"-disabled"),Je),vn),style:cn,ref:this.paginationNode},fe),Sn,In?zt.createElement("li",{title:Nn?Se.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:be()("".concat(ke,"-prev"),(0,Nt.Z)({},"".concat(ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},In):null,zt.createElement("li",{title:Nn?"".concat(Xi,"/").concat(Lt):null,className:"".concat(ke,"-simple-pager")},zt.createElement("input",{type:"text",value:Ki,disabled:Je,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),zt.createElement("span",{className:"".concat(ke,"-slash")},"/"),Lt),zt.createElement("li",{title:Nn?Se.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:be()("".concat(ke,"-next"),(0,Nt.Z)({},"".concat(ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ze)),Zr)}if(Lt<=3+Ln*2){var Fe={locale:Se,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Nn,itemRender:gi};Lt||li.push(zt.createElement($t,(0,At.Z)({},Fe,{key:"noPager",page:1,className:"".concat(ke,"-item-disabled")})));for(var ue=1;ue<=Lt;ue+=1){var pn=Xi===ue;li.push(zt.createElement($t,(0,At.Z)({},Fe,{key:ue,page:ue,active:pn})))}}else{var Un=Qe?Se.prev_3:Se.prev_5,Oi=Qe?Se.next_3:Se.next_5,Pn=gi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(_i,"prev page")),Ce=gi(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));Pi&&(vi=Pn?zt.createElement("li",{title:Nn?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:be()("".concat(ke,"-jump-prev"),(0,Nt.Z)({},"".concat(ke,"-jump-prev-custom-icon"),!!_i))},Pn):null,Lr=Ce?zt.createElement("li",{title:Nn?Oi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:be()("".concat(ke,"-jump-next"),(0,Nt.Z)({},"".concat(ke,"-jump-next-custom-icon"),!!vr))},Ce):null),qi=zt.createElement($t,{locale:Se,last:!0,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Lt,page:Lt,active:!1,showTitle:Nn,itemRender:gi}),hr=zt.createElement($t,{locale:Se,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Nn,itemRender:gi});var Rn=Math.max(1,Xi-Ln),pi=Math.min(Xi+Ln,Lt);Xi-1<=Ln&&(pi=1+Ln*2),Lt-Xi<=Ln&&(Rn=Lt-Ln*2);for(var Bi=Rn;Bi<=pi;Bi+=1){var je=Xi===Bi;li.push(zt.createElement($t,{locale:Se,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bi,page:Bi,active:je,showTitle:Nn,itemRender:gi}))}Xi-1>=Ln*2&&Xi!==3&&(li[0]=(0,zt.cloneElement)(li[0],{className:"".concat(ke,"-item-after-jump-prev")}),li.unshift(vi)),Lt-Xi>=Ln*2&&Xi!==Lt-2&&(li[li.length-1]=(0,zt.cloneElement)(li[li.length-1],{className:"".concat(ke,"-item-before-jump-next")}),li.push(Lr)),Rn!==1&&li.unshift(hr),pi!==Lt&&li.push(qi)}var yn=!this.hasPrev()||!Lt,He=!this.hasNext()||!Lt,an=this.renderPrev(fn),gn=this.renderNext(Ze);return zt.createElement("ul",(0,At.Z)({className:be()(ke,vn,(0,Nt.Z)({},"".concat(ke,"-disabled"),Je)),style:cn,ref:this.paginationNode},fe),Sn,an?zt.createElement("li",{title:Nn?Se.prev_page:null,onClick:this.prev,tabIndex:yn?null:0,onKeyPress:this.runIfEnterPrev,className:be()("".concat(ke,"-prev"),(0,Nt.Z)({},"".concat(ke,"-disabled"),yn)),"aria-disabled":yn},an):null,li,gn?zt.createElement("li",{title:Nn?Se.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:be()("".concat(ke,"-next"),(0,Nt.Z)({},"".concat(ke,"-disabled"),He)),"aria-disabled":He},gn):null,zt.createElement(jt,{disabled:Je,locale:Se,rootPrefixCls:ke,selectComponentClass:gr,selectPrefixCls:fr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Xi,pageSize:$r,pageSizeOptions:eo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Gr}))}}],[{key:"getDerivedStateFromProps",value:function(se,ke){var vn={};if("current"in se&&(vn.current=se.current,se.current!==ke.current&&(vn.currentInputValue=vn.current)),"pageSize"in se&&se.pageSize!==ke.pageSize){var cn=ke.current,Je=ce(se.pageSize,ke,se);cn=cn>Je?Je:cn,"current"in se||(vn.current=cn,vn.currentInputValue=cn),vn.pageSize=se.pageSize}return vn}}]),xe}(zt.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ye,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ye,locale:wt.Z,style:{},itemRender:Ge,totalBoundaryShowSizeChanger:50};var Ue=$e,Ke=yt(22075),tn=yt(36355),Tn=yt(19716),ve=yt(8628),Zt=yt(9763),en=yt(57809);const Kn=Gt=>zt.createElement(en.default,Object.assign({},Gt,{showSearch:!0,size:"small"})),ii=Gt=>zt.createElement(en.default,Object.assign({},Gt,{showSearch:!0,size:"middle"}));Kn.Option=en.default.Option,ii.Option=en.default.Option;var Be=yt(9937),on=yt(17313),un=yt(83116),Jn=yt(37613);const nn=Gt=>{const{componentCls:ee}=Gt;return{[`${ee}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ee}-item-link`]:{color:Gt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ee}-item-link`]:{color:Gt.colorTextDisabled,cursor:"not-allowed"}}},[`&${ee}-disabled`]:{cursor:"not-allowed",[`${ee}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Gt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Gt.colorBorder,backgroundColor:Gt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Gt.itemActiveBgDisabled},a:{color:Gt.itemActiveColorDisabled}}},[`${ee}-item-link`]:{color:Gt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ee}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ee}-simple-pager`]:{color:Gt.colorTextDisabled},[`${ee}-jump-prev, ${ee}-jump-next`]:{[`${ee}-item-link-icon`]:{opacity:0},[`${ee}-item-ellipsis`]:{opacity:1}}},[`&${ee}-simple`]:{[`${ee}-prev, ${ee}-next`]:{[`&${ee}-disabled ${ee}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Gn=Gt=>{const{componentCls:ee}=Gt;return{[`&${ee}-mini ${ee}-total-text, &${ee}-mini ${ee}-simple-pager`]:{height:Gt.itemSizeSM,lineHeight:`${Gt.itemSizeSM}px`},[`&${ee}-mini ${ee}-item`]:{minWidth:Gt.itemSizeSM,height:Gt.itemSizeSM,margin:0,lineHeight:`${Gt.itemSizeSM-2}px`},[`&${ee}-mini:not(${ee}-disabled) ${ee}-item:not(${ee}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Gt.colorBgTextHover},"&:active":{backgroundColor:Gt.colorBgTextActive}},[`&${ee}-mini ${ee}-prev, &${ee}-mini ${ee}-next`]:{minWidth:Gt.itemSizeSM,height:Gt.itemSizeSM,margin:0,lineHeight:`${Gt.itemSizeSM}px`},[`&${ee}-mini:not(${ee}-disabled)`]:{[`${ee}-prev, ${ee}-next`]:{[`&:hover ${ee}-item-link`]:{backgroundColor:Gt.colorBgTextHover},[`&:active ${ee}-item-link`]:{backgroundColor:Gt.colorBgTextActive},[`&${ee}-disabled:hover ${ee}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ee}-mini ${ee}-prev ${ee}-item-link,
|
|
|
&${ee}-mini ${ee}-next ${ee}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Gt.itemSizeSM,lineHeight:`${Gt.itemSizeSM}px`}},[`&${ee}-mini ${ee}-jump-prev, &${ee}-mini ${ee}-jump-next`]:{height:Gt.itemSizeSM,marginInlineEnd:0,lineHeight:`${Gt.itemSizeSM}px`},[`&${ee}-mini ${ee}-options`]:{marginInlineStart:Gt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Gt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Gt.itemSizeSM,lineHeight:`${Gt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Be.x0)(Gt)),{width:Gt.paginationMiniQuickJumperInputWidth,height:Gt.controlHeightSM})}}}},pe=Gt=>{const{componentCls:ee}=Gt;return{[`
|
|
|
&${ee}-simple ${ee}-prev,
|
|
|
&${ee}-simple ${ee}-next
|
|
|
`]:{height:Gt.itemSizeSM,lineHeight:`${Gt.itemSizeSM}px`,verticalAlign:"top",[`${ee}-item-link`]:{height:Gt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Gt.colorBgTextHover},"&:active":{backgroundColor:Gt.colorBgTextActive},"&::after":{height:Gt.itemSizeSM,lineHeight:`${Gt.itemSizeSM}px`}}},[`&${ee}-simple ${ee}-simple-pager`]:{display:"inline-block",height:Gt.itemSizeSM,marginInlineEnd:Gt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Gt.marginXS,padding:`0 ${Gt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Gt.itemInputBg,border:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorBorder}`,borderRadius:Gt.borderRadius,outline:"none",transition:`border-color ${Gt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Gt.colorPrimary},"&:focus":{borderColor:Gt.colorPrimaryHover,boxShadow:`${Gt.inputOutlineOffset}px 0 ${Gt.controlOutlineWidth}px ${Gt.controlOutline}`},"&[disabled]":{color:Gt.colorTextDisabled,backgroundColor:Gt.colorBgContainerDisabled,borderColor:Gt.colorBorder,cursor:"not-allowed"}}}}},Xn=Gt=>{const{componentCls:ee}=Gt;return{[`${ee}-jump-prev, ${ee}-jump-next`]:{outline:0,[`${ee}-item-container`]:{position:"relative",[`${ee}-item-link-icon`]:{color:Gt.colorPrimary,fontSize:Gt.fontSizeSM,opacity:0,transition:`all ${Gt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ee}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Gt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Gt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Gt.paginationEllipsisTextIndent,opacity:1,transition:`all ${Gt.motionDurationMid}`}},"&:hover":{[`${ee}-item-link-icon`]:{opacity:1},[`${ee}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ee}-prev,
|
|
|
${ee}-jump-prev,
|
|
|
${ee}-jump-next
|
|
|
`]:{marginInlineEnd:Gt.marginXS},[`
|
|
|
${ee}-prev,
|
|
|
${ee}-next,
|
|
|
${ee}-jump-prev,
|
|
|
${ee}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Gt.itemSize,height:Gt.itemSize,color:Gt.colorText,fontFamily:Gt.fontFamily,lineHeight:`${Gt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Gt.borderRadius,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`},[`${ee}-prev, ${ee}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Gt.colorText,cursor:"pointer",userSelect:"none"},[`${ee}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Gt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Gt.lineWidth}px ${Gt.lineType} transparent`,borderRadius:Gt.borderRadius,outline:"none",transition:`all ${Gt.motionDurationMid}`},[`&:hover ${ee}-item-link`]:{backgroundColor:Gt.colorBgTextHover},[`&:active ${ee}-item-link`]:{backgroundColor:Gt.colorBgTextActive},[`&${ee}-disabled:hover`]:{[`${ee}-item-link`]:{backgroundColor:"transparent"}}},[`${ee}-slash`]:{marginInlineEnd:Gt.paginationSlashMarginInlineEnd,marginInlineStart:Gt.paginationSlashMarginInlineStart},[`${ee}-options`]:{display:"inline-block",marginInlineStart:Gt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Gt.controlHeight,marginInlineStart:Gt.marginXS,lineHeight:`${Gt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Be.ik)(Gt)),{width:Gt.controlHeightLG*1.25,height:Gt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Gt.marginXS,marginInlineEnd:Gt.marginXS})}}}},oi=Gt=>{const{componentCls:ee}=Gt;return{[`${ee}-item`]:{display:"inline-block",minWidth:Gt.itemSize,height:Gt.itemSize,marginInlineEnd:Gt.marginXS,fontFamily:Gt.fontFamily,lineHeight:`${Gt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Gt.lineWidth}px ${Gt.lineType} transparent`,borderRadius:Gt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Gt.paginationItemPaddingInline}px`,color:Gt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ee}-item-active)`]:{"&:hover":{transition:`all ${Gt.motionDurationMid}`,backgroundColor:Gt.colorBgTextHover},"&:active":{backgroundColor:Gt.colorBgTextActive}},"&-active":{fontWeight:Gt.fontWeightStrong,backgroundColor:Gt.itemActiveBg,borderColor:Gt.colorPrimary,a:{color:Gt.colorPrimary},"&:hover":{borderColor:Gt.colorPrimaryHover},"&:hover a":{color:Gt.colorPrimaryHover}}}}},te=Gt=>{const{componentCls:ee}=Gt;return{[ee]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(Gt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ee}-total-text`]:{display:"inline-block",height:Gt.itemSize,marginInlineEnd:Gt.marginXS,lineHeight:`${Gt.itemSize-2}px`,verticalAlign:"middle"}}),oi(Gt)),Xn(Gt)),pe(Gt)),Gn(Gt)),nn(Gt)),{[`@media only screen and (max-width: ${Gt.screenLG}px)`]:{[`${ee}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Gt.screenSM}px)`]:{[`${ee}-options`]:{display:"none"}}}),[`&${Gt.componentCls}-rtl`]:{direction:"rtl"}}},bt=Gt=>{const{componentCls:ee}=Gt;return{[`${ee}${ee}-disabled:not(${ee}-mini)`]:{"&, &:hover":{[`${ee}-item-link`]:{borderColor:Gt.colorBorder}},"&:focus-visible":{[`${ee}-item-link`]:{borderColor:Gt.colorBorder}},[`${ee}-item, ${ee}-item-link`]:{backgroundColor:Gt.colorBgContainerDisabled,borderColor:Gt.colorBorder,[`&:hover:not(${ee}-item-active)`]:{backgroundColor:Gt.colorBgContainerDisabled,borderColor:Gt.colorBorder,a:{color:Gt.colorTextDisabled}},[`&${ee}-item-active`]:{backgroundColor:Gt.itemActiveBgDisabled}},[`${ee}-prev, ${ee}-next`]:{"&:hover button":{backgroundColor:Gt.colorBgContainerDisabled,borderColor:Gt.colorBorder,color:Gt.colorTextDisabled},[`${ee}-item-link`]:{backgroundColor:Gt.colorBgContainerDisabled,borderColor:Gt.colorBorder}}},[`${ee}:not(${ee}-mini)`]:{[`${ee}-prev, ${ee}-next`]:{"&:hover button":{borderColor:Gt.colorPrimaryHover,backgroundColor:Gt.itemBg},[`${ee}-item-link`]:{backgroundColor:Gt.itemLinkBg,borderColor:Gt.colorBorder},[`&:hover ${ee}-item-link`]:{borderColor:Gt.colorPrimary,backgroundColor:Gt.itemBg,color:Gt.colorPrimary},[`&${ee}-disabled`]:{[`${ee}-item-link`]:{borderColor:Gt.colorBorder,color:Gt.colorTextDisabled}}},[`${ee}-item`]:{backgroundColor:Gt.itemBg,border:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorBorder}`,[`&:hover:not(${ee}-item-active)`]:{borderColor:Gt.colorPrimary,backgroundColor:Gt.itemBg,a:{color:Gt.colorPrimary}},"&-active":{borderColor:Gt.colorPrimary}}}}},xt=Gt=>{const{componentCls:ee}=Gt;return{[`${ee}:not(${ee}-disabled)`]:{[`${ee}-item`]:Object.assign({},(0,on.Qy)(Gt)),[`${ee}-jump-prev, ${ee}-jump-next`]:{"&:focus-visible":Object.assign({[`${ee}-item-link-icon`]:{opacity:1},[`${ee}-item-ellipsis`]:{opacity:0}},(0,on.oN)(Gt))},[`${ee}-prev, ${ee}-next`]:{[`&:focus-visible ${ee}-item-link`]:Object.assign({},(0,on.oN)(Gt))}}}};var Tt=(0,un.Z)("Pagination",Gt=>{const ee=(0,Jn.TS)(Gt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Gt.marginXXS/2,paginationMiniQuickJumperInputWidth:Gt.controlHeightLG*1.1,paginationItemPaddingInline:Gt.marginXXS*1.5,paginationEllipsisLetterSpacing:Gt.marginXXS/2,paginationSlashMarginInlineStart:Gt.marginXXS,paginationSlashMarginInlineEnd:Gt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Be.e5)(Gt),(0,Be.TM)(Gt));return[te(ee),xt(ee),Gt.wireframe&&bt(ee)]},Gt=>({itemBg:Gt.colorBgContainer,itemSize:Gt.controlHeight,itemSizeSM:Gt.controlHeightSM,itemActiveBg:Gt.colorBgContainer,itemLinkBg:Gt.colorBgContainer,itemActiveColorDisabled:Gt.colorTextDisabled,itemActiveBgDisabled:Gt.controlItemBgActiveDisabled,itemInputBg:Gt.colorBgContainer,miniOptionsSizeChangerTop:0})),Bt=function(Gt,ee){var xe={};for(var we in Gt)Object.prototype.hasOwnProperty.call(Gt,we)&&ee.indexOf(we)<0&&(xe[we]=Gt[we]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,we=Object.getOwnPropertySymbols(Gt);se<we.length;se++)ee.indexOf(we[se])<0&&Object.prototype.propertyIsEnumerable.call(Gt,we[se])&&(xe[we[se]]=Gt[we[se]]);return xe},he=Gt=>{const{prefixCls:ee,selectPrefixCls:xe,className:we,rootClassName:se,style:ke,size:vn,locale:cn,selectComponentClass:Je,responsive:hn,showSizeChanger:Vn}=Gt,Se=Bt(Gt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:qe}=(0,ve.Z)(hn),{getPrefixCls:Qe,direction:Nn,pagination:hi={}}=zt.useContext(tn.E_),mi=Qe("pagination",ee),[gi,Pi]=Tt(mi),_i=Vn!=null?Vn:hi.showSizeChanger,vr=zt.useMemo(()=>{const Lt=zt.createElement("span",{className:`${mi}-item-ellipsis`},"\u2022\u2022\u2022"),li=zt.createElement("button",{className:`${mi}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?zt.createElement(Re.Z,null):zt.createElement(oe.Z,null)),vi=zt.createElement("button",{className:`${mi}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?zt.createElement(oe.Z,null):zt.createElement(Re.Z,null)),Lr=zt.createElement("a",{className:`${mi}-item-link`},zt.createElement("div",{className:`${mi}-item-container`},Nn==="rtl"?zt.createElement(Pe.Z,{className:`${mi}-item-link-icon`}):zt.createElement(De,{className:`${mi}-item-link-icon`}),Lt)),hr=zt.createElement("a",{className:`${mi}-item-link`},zt.createElement("div",{className:`${mi}-item-container`},Nn==="rtl"?zt.createElement(De,{className:`${mi}-item-link-icon`}):zt.createElement(Pe.Z,{className:`${mi}-item-link-icon`}),Lt));return{prevIcon:li,nextIcon:vi,jumpPrevIcon:Lr,jumpNextIcon:hr}},[Nn,mi]),[gr]=(0,Zt.Z)("Pagination",Ke.Z),fr=Object.assign(Object.assign({},gr),cn),eo=(0,Tn.Z)(vn),Jr=eo==="small"||!!(qe&&!eo&&hn),Xi=Qe("select",xe),$r=be()({[`${mi}-mini`]:Jr,[`${mi}-rtl`]:Nn==="rtl"},hi==null?void 0:hi.className,we,se,Pi),Ki=Object.assign(Object.assign({},hi==null?void 0:hi.style),ke);return gi(zt.createElement(Ue,Object.assign({},vr,Se,{style:Ki,prefixCls:mi,selectPrefixCls:Xi,className:$r,selectComponentClass:Je||(Jr?Kn:ii),locale:fr,showSizeChanger:_i})))},Le=he},93948:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Vn}});var At=yt(59301),zt=yt(5242),re=yt(89699),Ae=yt(37637),Ut=yt(77318),ne=yt(92310),Ft=yt.n(ne),De=yt(64002),Pe=yt(36355),oe=yt(5891),Re=yt(57259),de=yt(19149),be={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Nt=function(){var qe=(0,At.useRef)([]),Qe=(0,At.useRef)(null);return(0,At.useEffect)(function(){var Nn=Date.now(),hi=!1;qe.current.forEach(function(mi){if(mi){hi=!0;var gi=mi.style;gi.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&Nn-Qe.current<100&&(gi.transitionDuration="0s, 0s")}}),hi&&(Qe.current=Date.now())}),qe.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nt=function(qe){var Qe=(0,Re.Z)((0,Re.Z)({},be),qe),Nn=Qe.className,hi=Qe.percent,mi=Qe.prefixCls,gi=Qe.strokeColor,Pi=Qe.strokeLinecap,_i=Qe.strokeWidth,vr=Qe.style,gr=Qe.trailColor,fr=Qe.trailWidth,eo=Qe.transition,Jr=(0,de.Z)(Qe,et);delete Jr.gapPosition;var Xi=Array.isArray(hi)?hi:[hi],$r=Array.isArray(gi)?gi:[gi],Ki=Nt(),Lt=_i/2,li=100-_i/2,vi="M ".concat(Pi==="round"?Lt:0,",").concat(Lt,`
|
|
|
L `).concat(Pi==="round"?li:100,",").concat(Lt),Lr="0 0 100 ".concat(_i),hr=0;return At.createElement("svg",(0,oe.Z)({className:Ft()("".concat(mi,"-line"),Nn),viewBox:Lr,preserveAspectRatio:"none",style:vr},Jr),At.createElement("path",{className:"".concat(mi,"-line-trail"),d:vi,strokeLinecap:Pi,stroke:gr,strokeWidth:fr||_i,fillOpacity:"0"}),Xi.map(function(qi,Zr){var Gr=1;switch(Pi){case"round":Gr=1-_i/100;break;case"square":Gr=1-_i/2/100;break;default:Gr=1;break}var Ln={strokeDasharray:"".concat(qi*Gr,"px, 100px"),strokeDashoffset:"-".concat(hr,"px"),transition:eo||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fn=$r[Zr]||$r[$r.length-1];return hr+=qi,At.createElement("path",{key:Zr,className:"".concat(mi,"-line-path"),d:vi,strokeLinecap:Pi,stroke:fn,strokeWidth:_i,fillOpacity:"0",ref:function(fe){Ki[Zr]=fe},style:Ln})}))},ht=nt,st=yt(80665),gt=yt(29043),mt=yt(87746),Pt=0,kt=(0,mt.Z)();function wt(){var Se;return kt?(Se=Pt,Pt+=1):Se="TEST_OR_SSR",Se}var Ot=function(Se){var qe=At.useState(),Qe=(0,gt.Z)(qe,2),Nn=Qe[0],hi=Qe[1];return At.useEffect(function(){hi("rc_progress_".concat(wt()))},[]),Se||Nn},jt=function(qe){var Qe=qe.bg,Nn=qe.children;return At.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},Nn)};function Ht(Se,qe){return Object.keys(Se).map(function(Qe){var Nn=parseFloat(Qe),hi="".concat(Math.floor(Nn*qe),"%");return"".concat(Se[Qe]," ").concat(hi)})}var $t=At.forwardRef(function(Se,qe){var Qe=Se.prefixCls,Nn=Se.color,hi=Se.gradientId,mi=Se.radius,gi=Se.style,Pi=Se.ptg,_i=Se.strokeLinecap,vr=Se.strokeWidth,gr=Se.size,fr=Se.gapDegree,eo=Nn&&(0,st.Z)(Nn)==="object",Jr=eo?"#FFF":void 0,Xi=gr/2,$r=At.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:mi,cx:Xi,cy:Xi,stroke:Jr,strokeLinecap:_i,strokeWidth:vr,opacity:Pi===0?0:1,style:gi,ref:qe});if(!eo)return $r;var Ki="".concat(hi,"-conic"),Lt=fr?"".concat(180+fr/2,"deg"):"0deg",li=Ht(Nn,(360-fr)/360),vi=Ht(Nn,1),Lr="conic-gradient(from ".concat(Lt,", ").concat(li.join(", "),")"),hr="linear-gradient(to ".concat(fr?"bottom":"top",", ").concat(vi.join(", "),")");return At.createElement(At.Fragment,null,At.createElement("mask",{id:Ki},$r),At.createElement("foreignObject",{x:0,y:0,width:gr,height:gr,mask:"url(#".concat(Ki,")")},At.createElement(jt,{bg:hr},At.createElement(jt,{bg:Lr}))))}),ye=$t,Yt=100,Ge=function(qe,Qe,Nn,hi,mi,gi,Pi,_i,vr,gr){var fr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,eo=Nn/100*360*((360-gi)/360),Jr=gi===0?0:{bottom:0,top:180,left:90,right:-90}[Pi],Xi=(100-hi)/100*Qe;vr==="round"&&hi!==100&&(Xi+=gr/2,Xi>=Qe&&(Xi=Qe-.01));var $r=Yt/2;return{stroke:typeof _i=="string"?_i:void 0,strokeDasharray:"".concat(Qe,"px ").concat(qe),strokeDashoffset:Xi+fr,transform:"rotate(".concat(mi+eo+Jr,"deg)"),transformOrigin:"".concat($r,"px ").concat($r,"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}},ce=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $e(Se){var qe=Se!=null?Se:[];return Array.isArray(qe)?qe:[qe]}var Ue=function(qe){var Qe=(0,Re.Z)((0,Re.Z)({},be),qe),Nn=Qe.id,hi=Qe.prefixCls,mi=Qe.steps,gi=Qe.strokeWidth,Pi=Qe.trailWidth,_i=Qe.gapDegree,vr=_i===void 0?0:_i,gr=Qe.gapPosition,fr=Qe.trailColor,eo=Qe.strokeLinecap,Jr=Qe.style,Xi=Qe.className,$r=Qe.strokeColor,Ki=Qe.percent,Lt=(0,de.Z)(Qe,ce),li=Yt/2,vi=Ot(Nn),Lr="".concat(vi,"-gradient"),hr=li-gi/2,qi=Math.PI*2*hr,Zr=vr>0?90+vr/2:-90,Gr=qi*((360-vr)/360),Ln=(0,st.Z)(mi)==="object"?mi:{count:mi,space:2},fn=Ln.count,Ze=Ln.space,fe=$e(Ki),Sn=$e($r),In=Sn.find(function(Ce){return Ce&&(0,st.Z)(Ce)==="object"}),Fe=In&&(0,st.Z)(In)==="object",ue=Fe?"butt":eo,pn=Ge(qi,Gr,0,100,Zr,vr,gr,fr,ue,gi),Un=Nt(),Oi=function(){var Rn=0;return fe.map(function(pi,Bi){var je=Sn[Bi]||Sn[Sn.length-1],yn=Ge(qi,Gr,Rn,pi,Zr,vr,gr,je,ue,gi);return Rn+=pi,At.createElement(ye,{key:Bi,color:je,ptg:pi,radius:hr,prefixCls:hi,gradientId:Lr,style:yn,strokeLinecap:ue,strokeWidth:gi,gapDegree:vr,ref:function(an){Un[Bi]=an},size:Yt})}).reverse()},Pn=function(){var Rn=Math.round(fn*(fe[0]/100)),pi=100/fn,Bi=0;return new Array(fn).fill(null).map(function(je,yn){var He=yn<=Rn-1?Sn[0]:fr,an=He&&(0,st.Z)(He)==="object"?"url(#".concat(Lr,")"):void 0,gn=Ge(qi,Gr,Bi,pi,Zr,vr,gr,He,"butt",gi,Ze);return Bi+=(Gr-gn.strokeDashoffset+Ze)*100/Gr,At.createElement("circle",{key:yn,className:"".concat(hi,"-circle-path"),r:hr,cx:li,cy:li,stroke:an,strokeWidth:gi,opacity:1,style:gn,ref:function(bn){Un[yn]=bn}})})};return At.createElement("svg",(0,oe.Z)({className:Ft()("".concat(hi,"-circle"),Xi),viewBox:"0 0 ".concat(Yt," ").concat(Yt),style:Jr,id:Nn,role:"presentation"},Lt),!fn&&At.createElement("circle",{className:"".concat(hi,"-circle-trail"),r:hr,cx:li,cy:li,stroke:fr,strokeLinecap:ue,strokeWidth:Pi||gi,style:pn}),fn?Pn():Oi())},Ke=Ue,tn={Line:ht,Circle:Ke},Tn=yt(6848),ve=yt(93398);function Zt(Se){return!Se||Se<0?0:Se>100?100:Se}function en(Se){let{success:qe,successPercent:Qe}=Se,Nn=Qe;return qe&&"progress"in qe&&(Nn=qe.progress),qe&&"percent"in qe&&(Nn=qe.percent),Nn}const Kn=Se=>{let{percent:qe,success:Qe,successPercent:Nn}=Se;const hi=Zt(en({success:Qe,successPercent:Nn}));return[hi,Zt(Zt(qe)-hi)]},ii=Se=>{let{success:qe={},strokeColor:Qe}=Se;const{strokeColor:Nn}=qe;return[Nn||ve.presetPrimaryColors.green,Qe||null]},Be=(Se,qe,Qe)=>{var Nn,hi,mi,gi;let Pi=-1,_i=-1;if(qe==="step"){const vr=Qe.steps,gr=Qe.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?(Pi=Se==="small"?2:14,_i=gr!=null?gr:8):typeof Se=="number"?[Pi,_i]=[Se,Se]:[Pi=14,_i=8]=Se,Pi*=vr}else if(qe==="line"){const vr=Qe==null?void 0:Qe.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?_i=vr||(Se==="small"?6:8):typeof Se=="number"?[Pi,_i]=[Se,Se]:[Pi=-1,_i=8]=Se}else(qe==="circle"||qe==="dashboard")&&(typeof Se=="string"||typeof Se=="undefined"?[Pi,_i]=Se==="small"?[60,60]:[120,120]:typeof Se=="number"?[Pi,_i]=[Se,Se]:(Pi=(hi=(Nn=Se[0])!==null&&Nn!==void 0?Nn:Se[1])!==null&&hi!==void 0?hi:120,_i=(gi=(mi=Se[0])!==null&&mi!==void 0?mi:Se[1])!==null&&gi!==void 0?gi:120));return[Pi,_i]},on=3,un=Se=>on/Se*100;var nn=Se=>{const{prefixCls:qe,trailColor:Qe=null,strokeLinecap:Nn="round",gapPosition:hi,gapDegree:mi,width:gi=120,type:Pi,children:_i,success:vr,size:gr=gi}=Se,[fr,eo]=Be(gr,"circle");let{strokeWidth:Jr}=Se;Jr===void 0&&(Jr=Math.max(un(fr),6));const Xi={width:fr,height:eo,fontSize:fr*.15+6},$r=At.useMemo(()=>{if(mi||mi===0)return mi;if(Pi==="dashboard")return 75},[mi,Pi]),Ki=hi||Pi==="dashboard"&&"bottom"||void 0,Lt=Object.prototype.toString.call(Se.strokeColor)==="[object Object]",li=ii({success:vr,strokeColor:Se.strokeColor}),vi=Ft()(`${qe}-inner`,{[`${qe}-circle-gradient`]:Lt}),Lr=At.createElement(Ke,{percent:Kn(Se),strokeWidth:Jr,trailWidth:Jr,strokeColor:li,strokeLinecap:Nn,trailColor:Qe,prefixCls:qe,gapDegree:$r,gapPosition:Ki});return At.createElement("div",{className:vi,style:Xi},fr<=20?At.createElement(Tn.Z,{title:_i},At.createElement("span",null,Lr)):At.createElement(At.Fragment,null,Lr,_i))},Gn=function(Se,qe){var Qe={};for(var Nn in Se)Object.prototype.hasOwnProperty.call(Se,Nn)&&qe.indexOf(Nn)<0&&(Qe[Nn]=Se[Nn]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hi=0,Nn=Object.getOwnPropertySymbols(Se);hi<Nn.length;hi++)qe.indexOf(Nn[hi])<0&&Object.prototype.propertyIsEnumerable.call(Se,Nn[hi])&&(Qe[Nn[hi]]=Se[Nn[hi]]);return Qe};const pe=Se=>{let qe=[];return Object.keys(Se).forEach(Qe=>{const Nn=parseFloat(Qe.replace(/%/g,""));isNaN(Nn)||qe.push({key:Nn,value:Se[Qe]})}),qe=qe.sort((Qe,Nn)=>Qe.key-Nn.key),qe.map(Qe=>{let{key:Nn,value:hi}=Qe;return`${hi} ${Nn}%`}).join(", ")},Xn=(Se,qe)=>{const{from:Qe=ve.presetPrimaryColors.blue,to:Nn=ve.presetPrimaryColors.blue,direction:hi=qe==="rtl"?"to left":"to right"}=Se,mi=Gn(Se,["from","to","direction"]);if(Object.keys(mi).length!==0){const gi=pe(mi);return{backgroundImage:`linear-gradient(${hi}, ${gi})`}}return{backgroundImage:`linear-gradient(${hi}, ${Qe}, ${Nn})`}};var te=Se=>{const{prefixCls:qe,direction:Qe,percent:Nn,size:hi,strokeWidth:mi,strokeColor:gi,strokeLinecap:Pi="round",children:_i,trailColor:vr=null,success:gr}=Se,fr=gi&&typeof gi!="string"?Xn(gi,Qe):{backgroundColor:gi},eo=Pi==="square"||Pi==="butt"?0:void 0,Jr={backgroundColor:vr||void 0,borderRadius:eo},Xi=hi!=null?hi:[-1,mi||(hi==="small"?6:8)],[$r,Ki]=Be(Xi,"line",{strokeWidth:mi}),Lt=Object.assign({width:`${Zt(Nn)}%`,height:Ki,borderRadius:eo},fr),li=en(Se),vi={width:`${Zt(li)}%`,height:Ki,borderRadius:eo,backgroundColor:gr==null?void 0:gr.strokeColor},Lr={width:$r<0?"100%":$r,height:Ki};return At.createElement(At.Fragment,null,At.createElement("div",{className:`${qe}-outer`,style:Lr},At.createElement("div",{className:`${qe}-inner`,style:Jr},At.createElement("div",{className:`${qe}-bg`,style:Lt}),li!==void 0?At.createElement("div",{className:`${qe}-success-bg`,style:vi}):null)),_i)},xt=Se=>{const{size:qe,steps:Qe,percent:Nn=0,strokeWidth:hi=8,strokeColor:mi,trailColor:gi=null,prefixCls:Pi,children:_i}=Se,vr=Math.round(Qe*(Nn/100)),gr=qe==="small"?2:14,fr=qe!=null?qe:[gr,hi],[eo,Jr]=Be(fr,"step",{steps:Qe,strokeWidth:hi}),Xi=eo/Qe,$r=new Array(Qe);for(let Ki=0;Ki<Qe;Ki++){const Lt=Array.isArray(mi)?mi[Ki]:mi;$r[Ki]=At.createElement("div",{key:Ki,className:Ft()(`${Pi}-steps-item`,{[`${Pi}-steps-item-active`]:Ki<=vr-1}),style:{backgroundColor:Ki<=vr-1?Lt:gi,width:Xi,height:Jr}})}return At.createElement("div",{className:`${Pi}-steps-outer`},$r,_i)},Tt=yt(88252),Bt=yt(17313),St=yt(83116),he=yt(37613);const Le=Se=>{const qe=Se?"100%":"-100%";return new Tt.Keyframes(`antProgress${Se?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${qe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${qe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Gt=Se=>{const{componentCls:qe,iconCls:Qe}=Se;return{[qe]:Object.assign(Object.assign({},(0,Bt.Wf)(Se)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Se.fontSize,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS},[`${qe}-outer`]:{display:"inline-block",width:"100%"},[`&${qe}-show-info`]:{[`${qe}-outer`]:{marginInlineEnd:`calc(-2em - ${Se.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Se.paddingXS}px)`}},[`${qe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Se.remainingColor,borderRadius:Se.lineBorderRadius},[`${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:Se.defaultColor}},[`${qe}-success-bg, ${qe}-bg`]:{position:"relative",backgroundColor:Se.defaultColor,borderRadius:Se.lineBorderRadius,transition:`all ${Se.motionDurationSlow} ${Se.motionEaseInOutCirc}`},[`${qe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Se.colorSuccess},[`${qe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Se.marginXS,color:Se.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:Se.fontSize}},[`&${qe}-status-active`]:{[`${qe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Se.colorBgContainer,borderRadius:Se.lineBorderRadius,opacity:0,animationName:Le(),animationDuration:Se.progressActiveMotionDuration,animationTimingFunction:Se.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${qe}-rtl${qe}-status-active`]:{[`${qe}-bg::before`]:{animationName:Le(!0)}},[`&${qe}-status-exception`]:{[`${qe}-bg`]:{backgroundColor:Se.colorError},[`${qe}-text`]:{color:Se.colorError}},[`&${qe}-status-exception ${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:Se.colorError}},[`&${qe}-status-success`]:{[`${qe}-bg`]:{backgroundColor:Se.colorSuccess},[`${qe}-text`]:{color:Se.colorSuccess}},[`&${qe}-status-success ${qe}-inner:not(${qe}-circle-gradient)`]:{[`${qe}-circle-path`]:{stroke:Se.colorSuccess}}})}},ee=Se=>{const{componentCls:qe,iconCls:Qe}=Se;return{[qe]:{[`${qe}-circle-trail`]:{stroke:Se.remainingColor},[`&${qe}-circle ${qe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${qe}-circle ${qe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Se.circleTextColor,fontSize:Se.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qe]:{fontSize:`${Se.fontSize/Se.fontSizeSM}em`}},[`${qe}-circle&-status-exception`]:{[`${qe}-text`]:{color:Se.colorError}},[`${qe}-circle&-status-success`]:{[`${qe}-text`]:{color:Se.colorSuccess}}},[`${qe}-inline-circle`]:{lineHeight:1,[`${qe}-inner`]:{verticalAlign:"bottom"}}}},xe=Se=>{const{componentCls:qe}=Se;return{[qe]:{[`${qe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Se.progressStepMinWidth,marginInlineEnd:Se.progressStepMarginInlineEnd,backgroundColor:Se.remainingColor,transition:`all ${Se.motionDurationSlow}`,"&-active":{backgroundColor:Se.defaultColor}}}}}},we=Se=>{const{componentCls:qe,iconCls:Qe}=Se;return{[qe]:{[`${qe}-small&-line, ${qe}-small&-line ${qe}-text ${Qe}`]:{fontSize:Se.fontSizeSM}}}};var se=(0,St.Z)("Progress",Se=>{const qe=Se.marginXXS/2,Qe=(0,he.TS)(Se,{progressStepMarginInlineEnd:qe,progressStepMinWidth:qe,progressActiveMotionDuration:"2.4s"});return[Gt(Qe),ee(Qe),xe(Qe),we(Qe)]},Se=>({circleTextColor:Se.colorText,defaultColor:Se.colorInfo,remainingColor:Se.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ke=function(Se,qe){var Qe={};for(var Nn in Se)Object.prototype.hasOwnProperty.call(Se,Nn)&&qe.indexOf(Nn)<0&&(Qe[Nn]=Se[Nn]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hi=0,Nn=Object.getOwnPropertySymbols(Se);hi<Nn.length;hi++)qe.indexOf(Nn[hi])<0&&Object.prototype.propertyIsEnumerable.call(Se,Nn[hi])&&(Qe[Nn[hi]]=Se[Nn[hi]]);return Qe};const vn=null,cn=["normal","exception","active","success"];var hn=At.forwardRef((Se,qe)=>{const{prefixCls:Qe,className:Nn,rootClassName:hi,steps:mi,strokeColor:gi,percent:Pi=0,size:_i="default",showInfo:vr=!0,type:gr="line",status:fr,format:eo,style:Jr}=Se,Xi=ke(Se,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),$r=At.useMemo(()=>{var fe,Sn;const In=en(Se);return parseInt(In!==void 0?(fe=In!=null?In:0)===null||fe===void 0?void 0:fe.toString():(Sn=Pi!=null?Pi:0)===null||Sn===void 0?void 0:Sn.toString(),10)},[Pi,Se.success,Se.successPercent]),Ki=At.useMemo(()=>!cn.includes(fr)&&$r>=100?"success":fr||"normal",[fr,$r]),{getPrefixCls:Lt,direction:li,progress:vi}=At.useContext(Pe.E_),Lr=Lt("progress",Qe),[hr,qi]=se(Lr),Zr=At.useMemo(()=>{if(!vr)return null;const fe=en(Se);let Sn;const In=eo||(ue=>`${ue}%`),Fe=gr==="line";return eo||Ki!=="exception"&&Ki!=="success"?Sn=In(Zt(Pi),Zt(fe)):Ki==="exception"?Sn=Fe?At.createElement(Ae.Z,null):At.createElement(Ut.Z,null):Ki==="success"&&(Sn=Fe?At.createElement(zt.Z,null):At.createElement(re.Z,null)),At.createElement("span",{className:`${Lr}-text`,title:typeof Sn=="string"?Sn:void 0},Sn)},[vr,Pi,$r,Ki,gr,Lr,eo]),Gr=Array.isArray(gi)?gi[0]:gi,Ln=typeof gi=="string"||Array.isArray(gi)?gi:void 0;let fn;gr==="line"?fn=mi?At.createElement(xt,Object.assign({},Se,{strokeColor:Ln,prefixCls:Lr,steps:mi}),Zr):At.createElement(te,Object.assign({},Se,{strokeColor:Gr,prefixCls:Lr,direction:li}),Zr):(gr==="circle"||gr==="dashboard")&&(fn=At.createElement(nn,Object.assign({},Se,{strokeColor:Gr,prefixCls:Lr,progressStatus:Ki}),Zr));const Ze=Ft()(Lr,`${Lr}-status-${Ki}`,`${Lr}-${gr==="dashboard"&&"circle"||mi&&"steps"||gr}`,{[`${Lr}-inline-circle`]:gr==="circle"&&Be(_i,"circle")[0]<=20,[`${Lr}-show-info`]:vr,[`${Lr}-${_i}`]:typeof _i=="string",[`${Lr}-rtl`]:li==="rtl"},vi==null?void 0:vi.className,Nn,hi,qi);return hr(At.createElement("div",Object.assign({ref:qe,style:Object.assign(Object.assign({},vi==null?void 0:vi.style),Jr),className:Ze,role:"progressbar","aria-valuenow":$r},(0,De.Z)(Xi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),fn))}),Vn=hn},57809:function(On,Cn,yt){"use strict";var At=yt(92310),zt=yt.n(At),re=yt(77861),Ae=yt(64002),Ut=yt(59301),ne=yt(53487),Ft=yt(62892),De=yt(19080),Pe=yt(36355),oe=yt(1684),Re=yt(93891),de=yt(19716),be=yt(32441),Nt=yt(33234),et=yt(14154),nt=yt(58582),ht=yt(84443),st=yt(66339),gt=function(Ot,jt){var Ht={};for(var $t in Ot)Object.prototype.hasOwnProperty.call(Ot,$t)&&jt.indexOf($t)<0&&(Ht[$t]=Ot[$t]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,$t=Object.getOwnPropertySymbols(Ot);ye<$t.length;ye++)jt.indexOf($t[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ot,$t[ye])&&(Ht[$t[ye]]=Ot[$t[ye]]);return Ht};const mt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pt=(Ot,jt)=>{var Ht,{prefixCls:$t,bordered:ye=!0,className:Yt,rootClassName:Ge,getPopupContainer:ce,popupClassName:$e,dropdownClassName:Ue,listHeight:Ke=256,placement:tn,listItemHeight:Tn=24,size:ve,disabled:Zt,notFoundContent:en,status:Kn,builtinPlacements:ii,dropdownMatchSelectWidth:Be,popupMatchSelectWidth:on,direction:un,style:Jn,allowClear:nn}=Ot,Gn=gt(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:pe,getPrefixCls:Xn,renderEmpty:oi,direction:te,virtual:bt,popupMatchSelectWidth:xt,popupOverflow:Tt,select:Bt}=Ut.useContext(Pe.E_),St=Xn("select",$t),he=Xn(),Le=un!=null?un:te,{compactSize:Gt,compactItemClassnames:ee}=(0,Nt.ri)(St,Le),[xe,we]=(0,et.Z)(St),se=Ut.useMemo(()=>{const{mode:Ki}=Gn;if(Ki!=="combobox")return Ki===mt?"combobox":Ki},[Gn.mode]),ke=se==="multiple"||se==="tags",vn=(0,ht.Z)(Gn.suffixIcon,Gn.showArrow),cn=(Ht=on!=null?on:Be)!==null&&Ht!==void 0?Ht:xt,{status:Je,hasFeedback:hn,isFormItemInput:Vn,feedbackIcon:Se}=Ut.useContext(be.aM),qe=(0,De.F)(Je,Kn);let Qe;en!==void 0?Qe=en:se==="combobox"?Qe=null:Qe=(oi==null?void 0:oi("Select"))||Ut.createElement(Re.Z,{componentName:"Select"});const{suffixIcon:Nn,itemIcon:hi,removeIcon:mi,clearIcon:gi}=(0,st.Z)(Object.assign(Object.assign({},Gn),{multiple:ke,hasFeedback:hn,feedbackIcon:Se,showSuffixIcon:vn,prefixCls:St,showArrow:Gn.showArrow,componentName:"Select"})),Pi=nn===!0?{clearIcon:gi}:nn,_i=(0,Ae.Z)(Gn,["suffixIcon","itemIcon"]),vr=zt()($e||Ue,{[`${St}-dropdown-${Le}`]:Le==="rtl"},Ge,we),gr=(0,de.Z)(Ki=>{var Lt;return(Lt=ve!=null?ve:Gt)!==null&&Lt!==void 0?Lt:Ki}),fr=Ut.useContext(oe.Z),eo=Zt!=null?Zt:fr,Jr=zt()({[`${St}-lg`]:gr==="large",[`${St}-sm`]:gr==="small",[`${St}-rtl`]:Le==="rtl",[`${St}-borderless`]:!ye,[`${St}-in-form-item`]:Vn},(0,De.Z)(St,qe,hn),ee,Bt==null?void 0:Bt.className,Yt,Ge,we),Xi=Ut.useMemo(()=>tn!==void 0?tn:Le==="rtl"?"bottomRight":"bottomLeft",[tn,Le]),$r=(0,nt.Z)(ii,Tt);return xe(Ut.createElement(re.ZP,Object.assign({ref:jt,virtual:bt,showSearch:Bt==null?void 0:Bt.showSearch},_i,{style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Jn),dropdownMatchSelectWidth:cn,builtinPlacements:$r,transitionName:(0,Ft.m)(he,"slide-up",Gn.transitionName),listHeight:Ke,listItemHeight:Tn,mode:se,prefixCls:St,placement:Xi,direction:Le,suffixIcon:Nn,menuItemSelectedIcon:hi,removeIcon:mi,allowClear:Pi,notFoundContent:Qe,className:Jr,getPopupContainer:ce||pe,dropdownClassName:vr,disabled:eo})))},kt=Ut.forwardRef(Pt),wt=(0,ne.Z)(kt);kt.SECRET_COMBOBOX_MODE_DO_NOT_USE=mt,kt.Option=re.Wx,kt.OptGroup=re.Xo,kt._InternalPanelDoNotUseOrYouWillBeFired=wt,Cn.default=kt},14154:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return kt}});var At=yt(17313),zt=yt(74207),re=yt(37613),Ae=yt(83116),Ut=yt(13826),ne=yt(92899);const Ft=wt=>{const{optionHeight:Ot,optionFontSize:jt,optionLineHeight:Ht,optionPadding:$t}=wt;return{position:"relative",display:"block",minHeight:Ot,padding:$t,color:wt.colorText,fontWeight:"normal",fontSize:jt,lineHeight:Ht,boxSizing:"border-box"}};var Pe=wt=>{const{antCls:Ot,componentCls:jt}=wt,Ht=`${jt}-item`,$t=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,ye=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,Yt=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,Ge=`${jt}-dropdown-placement-`;return[{[`${jt}-dropdown`]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{position:"absolute",top:-9999,zIndex:wt.zIndexPopup,boxSizing:"border-box",padding:wt.paddingXXS,overflow:"hidden",fontSize:wt.fontSize,fontVariant:"initial",backgroundColor:wt.colorBgElevated,borderRadius:wt.borderRadiusLG,outline:"none",boxShadow:wt.boxShadowSecondary,[`
|
|
|
${$t}${Ge}bottomLeft,
|
|
|
${ye}${Ge}bottomLeft
|
|
|
`]:{animationName:Ut.fJ},[`
|
|
|
${$t}${Ge}topLeft,
|
|
|
${ye}${Ge}topLeft,
|
|
|
${$t}${Ge}topRight,
|
|
|
${ye}${Ge}topRight
|
|
|
`]:{animationName:Ut.Qt},[`${Yt}${Ge}bottomLeft`]:{animationName:Ut.Uw},[`
|
|
|
${Yt}${Ge}topLeft,
|
|
|
${Yt}${Ge}topRight
|
|
|
`]:{animationName:Ut.ly},"&-hidden":{display:"none"},[`${Ht}`]:Object.assign(Object.assign({},Ft(wt)),{cursor:"pointer",transition:`background ${wt.motionDurationSlow} ease`,borderRadius:wt.borderRadiusSM,"&-group":{color:wt.colorTextDescription,fontSize:wt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},At.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ht}-option-disabled)`]:{backgroundColor:wt.optionActiveBg},[`&-selected:not(${Ht}-option-disabled)`]:{color:wt.optionSelectedColor,fontWeight:wt.optionSelectedFontWeight,backgroundColor:wt.optionSelectedBg,[`${Ht}-option-state`]:{color:wt.colorPrimary}},"&-disabled":{[`&${Ht}-option-selected`]:{backgroundColor:wt.colorBgContainerDisabled},color:wt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:wt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ut.oN)(wt,"slide-up"),(0,Ut.oN)(wt,"slide-down"),(0,ne.Fm)(wt,"move-up"),(0,ne.Fm)(wt,"move-down")]};const oe=2,Re=wt=>{let{controlHeightSM:Ot,controlHeight:jt,lineWidth:Ht}=wt;const $t=(jt-Ot)/2-Ht,ye=Math.ceil($t/2);return[$t,ye]};function de(wt,Ot){const{componentCls:jt,iconCls:Ht}=wt,$t=`${jt}-selection-overflow`,ye=wt.multipleSelectItemHeight,[Yt]=Re(wt),Ge=Ot?`${jt}-${Ot}`:"";return{[`${jt}-multiple${Ge}`]:{fontSize:wt.fontSize,[$t]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${jt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Yt-oe}px ${oe*2}px`,borderRadius:wt.borderRadius,[`${jt}-show-search&`]:{cursor:"text"},[`${jt}-disabled&`]:{background:wt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe}px 0`,lineHeight:`${ye}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${jt}-show-arrow ${jt}-selector,
|
|
|
&${jt}-allow-clear ${jt}-selector
|
|
|
`]:{paddingInlineEnd:wt.fontSizeIcon+wt.controlPaddingHorizontal},[`${jt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ye,marginTop:oe,marginBottom:oe,lineHeight:`${ye-wt.lineWidth*2}px`,background:wt.multipleItemBg,border:`${wt.lineWidth}px ${wt.lineType} ${wt.multipleItemBorderColor}`,borderRadius:wt.borderRadiusSM,cursor:"default",transition:`font-size ${wt.motionDurationSlow}, line-height ${wt.motionDurationSlow}, height ${wt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:oe*2,paddingInlineStart:wt.paddingXS,paddingInlineEnd:wt.paddingXS/2,[`${jt}-disabled&`]:{color:wt.multipleItemColorDisabled,borderColor:wt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:wt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,At.Ro)()),{display:"inline-flex",alignItems:"center",color:wt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ht}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt.colorIconHover}})},[`${$t}-item + ${$t}-item`]:{[`${jt}-selection-search`]:{marginInlineStart:0}},[`${jt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:wt.inputPaddingHorizontalBase-Yt,"\n &-input,\n &-mirror\n ":{height:ye,fontFamily:wt.fontFamily,lineHeight:`${ye}px`,transition:`all ${wt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${jt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:wt.inputPaddingHorizontalBase,insetInlineEnd:wt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${wt.motionDurationSlow}`}}}}var Nt=wt=>{const{componentCls:Ot}=wt,jt=(0,re.TS)(wt,{controlHeight:wt.controlHeightSM,multipleSelectItemHeight:wt.controlHeightXS,borderRadius:wt.borderRadiusSM,borderRadiusSM:wt.borderRadiusXS}),Ht=(0,re.TS)(wt,{fontSize:wt.fontSizeLG,controlHeight:wt.controlHeightLG,multipleSelectItemHeight:wt.multipleItemHeightLG,borderRadius:wt.borderRadiusLG,borderRadiusSM:wt.borderRadius}),[,$t]=Re(wt);return[de(wt),de(jt,"sm"),{[`${Ot}-multiple${Ot}-sm`]:{[`${Ot}-selection-placeholder`]:{insetInline:wt.controlPaddingHorizontalSM-wt.lineWidth},[`${Ot}-selection-search`]:{marginInlineStart:$t}}},de(Ht,"lg")]};function et(wt,Ot){const{componentCls:jt,inputPaddingHorizontalBase:Ht,borderRadius:$t}=wt,ye=wt.controlHeight-wt.lineWidth*2,Yt=Math.ceil(wt.fontSize*1.25),Ge=Ot?`${jt}-${Ot}`:"";return{[`${jt}-single${Ge}`]:{fontSize:wt.fontSize,[`${jt}-selector`]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{display:"flex",borderRadius:$t,[`${jt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ht,insetInlineEnd:Ht,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${jt}-selection-item,
|
|
|
${jt}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ye}px`,transition:`all ${wt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ye}px`}},[`${jt}-selection-item`]:{position:"relative",userSelect:"none"},[`${jt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${jt}-selection-item:after`,`${jt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${jt}-show-arrow ${jt}-selection-item,
|
|
|
&${jt}-show-arrow ${jt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Yt},[`&${jt}-open ${jt}-selection-item`]:{color:wt.colorTextPlaceholder},[`&:not(${jt}-customize-input)`]:{[`${jt}-selector`]:{width:"100%",height:wt.controlHeight,padding:`0 ${Ht}px`,[`${jt}-selection-search-input`]:{height:ye},"&:after":{lineHeight:`${ye}px`}}},[`&${jt}-customize-input`]:{[`${jt}-selector`]:{"&:after":{display:"none"},[`${jt}-selection-search`]:{position:"static",width:"100%"},[`${jt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ht}px`,"&:after":{display:"none"}}}}}}}function nt(wt){const{componentCls:Ot}=wt,jt=wt.controlPaddingHorizontalSM-wt.lineWidth;return[et(wt),et((0,re.TS)(wt,{controlHeight:wt.controlHeightSM,borderRadius:wt.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selection-search`]:{insetInlineStart:jt,insetInlineEnd:jt},[`${Ot}-selector`]:{padding:`0 ${jt}px`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:jt+wt.fontSize*1.5},[`
|
|
|
&${Ot}-show-arrow ${Ot}-selection-item,
|
|
|
&${Ot}-show-arrow ${Ot}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:wt.fontSize*1.5}}}},et((0,re.TS)(wt,{controlHeight:wt.singleItemHeightLG,fontSize:wt.fontSizeLG,borderRadius:wt.borderRadiusLG}),"lg")]}const ht=wt=>{const{componentCls:Ot,selectorBg:jt}=wt;return{position:"relative",backgroundColor:jt,border:`${wt.lineWidth}px ${wt.lineType} ${wt.colorBorder}`,transition:`all ${wt.motionDurationMid} ${wt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ot}-disabled&`]:{color:wt.colorTextDisabled,background:wt.colorBgContainerDisabled,cursor:"not-allowed",[`${Ot}-multiple&`]:{background:wt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},st=function(wt,Ot){let jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ht,borderHoverColor:$t,outlineColor:ye,antCls:Yt}=Ot,Ge=jt?{[`${Ht}-selector`]:{borderColor:$t}}:{};return{[wt]:{[`&:not(${Ht}-disabled):not(${Ht}-customize-input):not(${Yt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ge),{[`${Ht}-focused& ${Ht}-selector`]:{borderColor:$t,boxShadow:`0 0 0 ${Ot.controlOutlineWidth}px ${ye}`,outline:0},[`&:hover ${Ht}-selector`]:{borderColor:$t}})}}},gt=wt=>{const{componentCls:Ot}=wt;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},mt=wt=>{const{componentCls:Ot,inputPaddingHorizontalBase:jt,iconCls:Ht}=wt;return{[Ot]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ot}-customize-input) ${Ot}-selector`]:Object.assign(Object.assign({},ht(wt)),gt(wt)),[`${Ot}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},At.vS),[`${Ot}-selection-placeholder`]:Object.assign(Object.assign({},At.vS),{flex:1,color:wt.colorTextPlaceholder,pointerEvents:"none"}),[`${Ot}-arrow`]:Object.assign(Object.assign({},(0,At.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ht]:{verticalAlign:"top",transition:`transform ${wt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ot}-suffix)`]:{pointerEvents:"auto"}},[`${Ot}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ot}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,zIndex:1,display:"inline-block",width:wt.fontSizeIcon,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:wt.clearBg,cursor:"pointer",opacity:0,transition:`color ${wt.motionDurationMid} ease, opacity ${wt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:wt.colorTextTertiary}},"&:hover":{[`${Ot}-clear`]:{opacity:1}}}),[`${Ot}-has-feedback`]:{[`${Ot}-clear`]:{insetInlineEnd:jt+wt.fontSize+wt.paddingXS}}}},Pt=wt=>{const{componentCls:Ot}=wt;return[{[Ot]:{[`&-borderless ${Ot}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ot}-in-form-item`]:{width:"100%"}}},mt(wt),nt(wt),Nt(wt),Pe(wt),{[`${Ot}-rtl`]:{direction:"rtl"}},st(Ot,(0,re.TS)(wt,{borderHoverColor:wt.colorPrimaryHover,outlineColor:wt.controlOutline})),st(`${Ot}-status-error`,(0,re.TS)(wt,{borderHoverColor:wt.colorErrorHover,outlineColor:wt.colorErrorOutline}),!0),st(`${Ot}-status-warning`,(0,re.TS)(wt,{borderHoverColor:wt.colorWarningHover,outlineColor:wt.colorWarningOutline}),!0),(0,zt.c)(wt,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var kt=(0,Ae.Z)("Select",(wt,Ot)=>{let{rootPrefixCls:jt}=Ot;const Ht=(0,re.TS)(wt,{rootPrefixCls:jt,inputPaddingHorizontalBase:wt.paddingSM-1,multipleSelectItemHeight:wt.multipleItemHeight});return[Pt(Ht)]},wt=>{const{fontSize:Ot,lineHeight:jt,controlHeight:Ht,controlPaddingHorizontal:$t,zIndexPopupBase:ye,colorText:Yt,fontWeightStrong:Ge,controlItemBgActive:ce,controlItemBgHover:$e,colorBgContainer:Ue,colorFillSecondary:Ke,controlHeightLG:tn,controlHeightSM:Tn,colorBgContainerDisabled:ve,colorTextDisabled:Zt}=wt;return{zIndexPopup:ye+50,optionSelectedColor:Yt,optionSelectedFontWeight:Ge,optionSelectedBg:ce,optionActiveBg:$e,optionPadding:`${(Ht-Ot*jt)/2}px ${$t}px`,optionFontSize:Ot,optionLineHeight:jt,optionHeight:Ht,selectorBg:Ue,clearBg:Ue,singleItemHeightLG:tn,multipleItemBg:Ke,multipleItemBorderColor:"transparent",multipleItemHeight:Tn,multipleItemHeightLG:Ht,multipleSelectorBgDisabled:ve,multipleItemColorDisabled:Zt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return zt}});const At=re=>{const Ut={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:re==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ut),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ut),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ut),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ut),{points:["br","tr"],offset:[0,-4]})}};function zt(re,Ae){return re||At(Ae)}},84443:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return At}});function At(zt,re){return re!==void 0?re:zt!==null}},66339:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});var At=yt(89699),zt=yt(37637),re=yt(77318),Ae=yt(76995),Ut=yt(78714),ne=yt(56981),Ft=yt(59301);function De(Pe){let{suffixIcon:oe,clearIcon:Re,menuItemSelectedIcon:de,removeIcon:be,loading:Nt,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:st,feedbackIcon:gt,showArrow:mt,componentName:Pt}=Pe;const kt=Re!=null?Re:Ft.createElement(zt.Z,null),wt=$t=>oe===null&&!nt&&!mt?null:Ft.createElement(Ft.Fragment,null,st!==!1&&$t,nt&>);let Ot=null;if(oe!==void 0)Ot=wt(oe);else if(Nt)Ot=wt(Ft.createElement(Ut.Z,{spin:!0}));else{const $t=`${ht}-suffix`;Ot=ye=>{let{open:Yt,showSearch:Ge}=ye;return wt(Yt&&Ge?Ft.createElement(ne.Z,{className:$t}):Ft.createElement(Ae.Z,{className:$t}))}}let jt=null;de!==void 0?jt=de:et?jt=Ft.createElement(At.Z,null):jt=null;let Ht=null;return be!==void 0?Ht=be:Ht=Ft.createElement(re.Z,null),{clearIcon:kt,suffixIcon:Ot,itemIcon:jt,removeIcon:Ht}}},81327:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return ht}});var At=yt(59301),zt=yt(92310),re=yt.n(zt),Ae=yt(38298),Ut=yt(36355),ne=yt(33234);const Ft=At.createContext({latestIndex:0}),De=Ft.Provider;var oe=st=>{let{className:gt,index:mt,children:Pt,split:kt,style:wt}=st;const{latestIndex:Ot}=At.useContext(Ft);return Pt==null?null:At.createElement(At.Fragment,null,At.createElement("div",{className:gt,style:wt},Pt),mt<Ot&&kt&&At.createElement("span",{className:`${gt}-split`},kt))},Re=yt(2856);function de(st){return["small","middle","large"].includes(st)}function be(st){return st?typeof st=="number"&&!Number.isNaN(st):!1}var Nt=function(st,gt){var mt={};for(var Pt in st)Object.prototype.hasOwnProperty.call(st,Pt)&>.indexOf(Pt)<0&&(mt[Pt]=st[Pt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Pt=Object.getOwnPropertySymbols(st);kt<Pt.length;kt++)gt.indexOf(Pt[kt])<0&&Object.prototype.propertyIsEnumerable.call(st,Pt[kt])&&(mt[Pt[kt]]=st[Pt[kt]]);return mt};const nt=At.forwardRef((st,gt)=>{var mt,Pt;const{getPrefixCls:kt,space:wt,direction:Ot}=At.useContext(Ut.E_),{size:jt=(wt==null?void 0:wt.size)||"small",align:Ht,className:$t,rootClassName:ye,children:Yt,direction:Ge="horizontal",prefixCls:ce,split:$e,style:Ue,wrap:Ke=!1,classNames:tn,styles:Tn}=st,ve=Nt(st,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Zt,en]=Array.isArray(jt)?jt:[jt,jt],Kn=de(en),ii=de(Zt),Be=be(en),on=be(Zt),un=(0,Ae.Z)(Yt,{keepEmpty:!0}),Jn=Ht===void 0&&Ge==="horizontal"?"center":Ht,nn=kt("space",ce),[Gn,pe]=(0,Re.Z)(nn),Xn=re()(nn,wt==null?void 0:wt.className,pe,`${nn}-${Ge}`,{[`${nn}-rtl`]:Ot==="rtl",[`${nn}-align-${Jn}`]:Jn,[`${nn}-gap-row-${en}`]:Kn,[`${nn}-gap-col-${Zt}`]:ii},$t,ye),oi=re()(`${nn}-item`,(mt=tn==null?void 0:tn.item)!==null&&mt!==void 0?mt:(Pt=wt==null?void 0:wt.classNames)===null||Pt===void 0?void 0:Pt.item);let te=0;const bt=un.map((Bt,St)=>{var he,Le;Bt!=null&&(te=St);const Gt=Bt&&Bt.key||`${oi}-${St}`;return At.createElement(oe,{className:oi,key:Gt,index:St,split:$e,style:(he=Tn==null?void 0:Tn.item)!==null&&he!==void 0?he:(Le=wt==null?void 0:wt.styles)===null||Le===void 0?void 0:Le.item},Bt)}),xt=At.useMemo(()=>({latestIndex:te}),[te]);if(un.length===0)return null;const Tt={};return Ke&&(Tt.flexWrap="wrap"),!ii&&on&&(Tt.columnGap=Zt),!Kn&&Be&&(Tt.rowGap=en),Gn(At.createElement("div",Object.assign({ref:gt,className:Xn,style:Object.assign(Object.assign(Object.assign({},Tt),wt==null?void 0:wt.style),Ue)},ve),At.createElement(De,{value:xt},bt)))});nt.Compact=ne.ZP;var ht=nt},15969:function(On,Cn,yt){"use strict";yt.d(Cn,{N:function(){return At}});const At=zt=>({color:zt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${zt.motionDurationSlow}`,"&:focus, &:hover":{color:zt.colorLinkHover},"&:active":{color:zt.colorLinkActive}})},78673:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return Ge}});var At=yt(78714),zt=yt(92310),re=yt.n(zt),Ae=yt(5891),Ut=yt(80962),ne=yt(29043),Ft=yt(19149),De=yt(59301),Pe=yt(35788),oe=yt(85108),Re=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],de=De.forwardRef(function(ce,$e){var Ue,Ke=ce.prefixCls,tn=Ke===void 0?"rc-switch":Ke,Tn=ce.className,ve=ce.checked,Zt=ce.defaultChecked,en=ce.disabled,Kn=ce.loadingIcon,ii=ce.checkedChildren,Be=ce.unCheckedChildren,on=ce.onClick,un=ce.onChange,Jn=ce.onKeyDown,nn=(0,Ft.Z)(ce,Re),Gn=(0,Pe.Z)(!1,{value:ve,defaultValue:Zt}),pe=(0,ne.Z)(Gn,2),Xn=pe[0],oi=pe[1];function te(Bt,St){var he=Xn;return en||(he=Bt,oi(he),un==null||un(he,St)),he}function bt(Bt){Bt.which===oe.Z.LEFT?te(!1,Bt):Bt.which===oe.Z.RIGHT&&te(!0,Bt),Jn==null||Jn(Bt)}function xt(Bt){var St=te(!Xn,Bt);on==null||on(St,Bt)}var Tt=re()(tn,Tn,(Ue={},(0,Ut.Z)(Ue,"".concat(tn,"-checked"),Xn),(0,Ut.Z)(Ue,"".concat(tn,"-disabled"),en),Ue));return De.createElement("button",(0,Ae.Z)({},nn,{type:"button",role:"switch","aria-checked":Xn,disabled:en,className:Tt,ref:$e,onKeyDown:bt,onClick:xt}),Kn,De.createElement("span",{className:"".concat(tn,"-inner")},De.createElement("span",{className:"".concat(tn,"-inner-checked")},ii),De.createElement("span",{className:"".concat(tn,"-inner-unchecked")},Be)))});de.displayName="Switch";var be=de,Nt=yt(14088),et=yt(36355),nt=yt(1684),ht=yt(19716),st=yt(64993),gt=yt(17313),mt=yt(83116),Pt=yt(37613);const kt=ce=>{const{componentCls:$e,trackHeightSM:Ue,trackPadding:Ke,trackMinWidthSM:tn,innerMinMarginSM:Tn,innerMaxMarginSM:ve,handleSizeSM:Zt}=ce,en=`${$e}-inner`;return{[$e]:{[`&${$e}-small`]:{minWidth:tn,height:Ue,lineHeight:`${Ue}px`,[`${$e}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Tn,[`${en}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Ke*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Ke*2}px + ${ve*2}px)`},[`${en}-unchecked`]:{marginTop:-Ue,marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:Zt,height:Zt},[`${$e}-loading-icon`]:{top:(Zt-ce.switchLoadingIconSize)/2,fontSize:ce.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:Tn,paddingInlineEnd:ve,[`${en}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${en}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Ke*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Ke*2}px - ${ve*2}px)`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${Zt+Ke}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${en}`]:{[`${en}-unchecked`]:{marginInlineStart:ce.marginXXS/2,marginInlineEnd:-ce.marginXXS/2}},[`&${$e}-checked ${en}`]:{[`${en}-checked`]:{marginInlineStart:-ce.marginXXS/2,marginInlineEnd:ce.marginXXS/2}}}}}}},wt=ce=>{const{componentCls:$e,handleSize:Ue}=ce;return{[$e]:{[`${$e}-loading-icon${ce.iconCls}`]:{position:"relative",top:(Ue-ce.fontSize)/2,color:ce.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:ce.switchColor}}}},Ot=ce=>{const{componentCls:$e,motion:Ue,trackPadding:Ke,handleBg:tn,handleShadow:Tn,handleSize:ve}=ce,Zt=`${$e}-handle`;return{[$e]:{[Zt]:{position:"absolute",top:Ke,insetInlineStart:Ke,width:ve,height:ve,transition:`all ${ce.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:tn,borderRadius:ve/2,boxShadow:Tn,transition:`all ${ce.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${Zt}`]:{insetInlineStart:`calc(100% - ${ve+Ke}px)`},[`&:not(${$e}-disabled):active`]:Ue?{[`${Zt}::before`]:{insetInlineEnd:ce.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${Zt}::before`]:{insetInlineEnd:0,insetInlineStart:ce.switchHandleActiveInset}}:{}}}},jt=ce=>{const{componentCls:$e,trackHeight:Ue,trackPadding:Ke,innerMinMargin:tn,innerMaxMargin:Tn,handleSize:ve}=ce,Zt=`${$e}-inner`;return{[$e]:{[Zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Tn,paddingInlineEnd:tn,transition:`padding-inline-start ${ce.switchDuration} ease-in-out, padding-inline-end ${ce.switchDuration} ease-in-out`,[`${Zt}-checked, ${Zt}-unchecked`]:{display:"block",color:ce.colorTextLightSolid,fontSize:ce.fontSizeSM,transition:`margin-inline-start ${ce.switchDuration} ease-in-out, margin-inline-end ${ce.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Zt}-checked`]:{marginInlineStart:`calc(-100% + ${ve+Ke*2}px - ${Tn*2}px)`,marginInlineEnd:`calc(100% - ${ve+Ke*2}px + ${Tn*2}px)`},[`${Zt}-unchecked`]:{marginTop:-Ue,marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${Zt}`]:{paddingInlineStart:tn,paddingInlineEnd:Tn,[`${Zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Zt}-unchecked`]:{marginInlineStart:`calc(100% - ${ve+Ke*2}px + ${Tn*2}px)`,marginInlineEnd:`calc(-100% + ${ve+Ke*2}px - ${Tn*2}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${Zt}`]:{[`${Zt}-unchecked`]:{marginInlineStart:Ke*2,marginInlineEnd:-Ke*2}},[`&${$e}-checked ${Zt}`]:{[`${Zt}-checked`]:{marginInlineStart:-Ke*2,marginInlineEnd:Ke*2}}}}}},Ht=ce=>{const{componentCls:$e,trackHeight:Ue,trackMinWidth:Ke}=ce;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(ce)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ke,height:Ue,lineHeight:`${Ue}px`,verticalAlign:"middle",background:ce.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ce.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:ce.colorTextTertiary}}),(0,gt.Qy)(ce)),{[`&${$e}-checked`]:{background:ce.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:ce.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:ce.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}};var $t=(0,mt.Z)("Switch",ce=>{const $e=(0,Pt.TS)(ce,{switchDuration:ce.motionDurationMid,switchColor:ce.colorPrimary,switchDisabledOpacity:ce.opacityLoading,switchLoadingIconSize:ce.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ce.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ht($e),jt($e),Ot($e),wt($e),kt($e)]},ce=>{const{fontSize:$e,lineHeight:Ue,controlHeight:Ke,colorWhite:tn}=ce,Tn=$e*Ue,ve=Ke/2,Zt=2,en=Tn-Zt*2,Kn=ve-Zt*2;return{trackHeight:Tn,trackHeightSM:ve,trackMinWidth:en*2+Zt*4,trackMinWidthSM:Kn*2+Zt*2,trackPadding:Zt,handleBg:tn,handleSize:en,handleSizeSM:Kn,handleShadow:`0 2px 4px 0 ${new st.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:en/2,innerMaxMargin:en+Zt+Zt*2,innerMinMarginSM:Kn/2,innerMaxMarginSM:Kn+Zt+Zt*2}}),ye=function(ce,$e){var Ue={};for(var Ke in ce)Object.prototype.hasOwnProperty.call(ce,Ke)&&$e.indexOf(Ke)<0&&(Ue[Ke]=ce[Ke]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ke=Object.getOwnPropertySymbols(ce);tn<Ke.length;tn++)$e.indexOf(Ke[tn])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ke[tn])&&(Ue[Ke[tn]]=ce[Ke[tn]]);return Ue};const Yt=De.forwardRef((ce,$e)=>{const{prefixCls:Ue,size:Ke,disabled:tn,loading:Tn,className:ve,rootClassName:Zt,style:en}=ce,Kn=ye(ce,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ii,direction:Be,switch:on}=De.useContext(et.E_),un=De.useContext(nt.Z),Jn=(tn!=null?tn:un)||Tn,nn=ii("switch",Ue),Gn=De.createElement("div",{className:`${nn}-handle`},Tn&&De.createElement(At.Z,{className:`${nn}-loading-icon`})),[pe,Xn]=$t(nn),oi=(0,ht.Z)(Ke),te=re()(on==null?void 0:on.className,{[`${nn}-small`]:oi==="small",[`${nn}-loading`]:Tn,[`${nn}-rtl`]:Be==="rtl"},ve,Zt,Xn),bt=Object.assign(Object.assign({},on==null?void 0:on.style),en);return pe(De.createElement(Nt.Z,{component:"Switch"},De.createElement(be,Object.assign({},Kn,{prefixCls:nn,className:te,style:bt,disabled:Jn,ref:$e,loadingIcon:Gn}))))});Yt.__ANT_SWITCH=!0;var Ge=Yt},36546:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return tl}});var At={},zt="rc-table-internal-hook",re=yt(29043),Ae=yt(8107),Ut=yt(28800),ne=yt(51346),Ft=yt(59301),De=yt(4676);function Pe(Xt){var ie=Ft.createContext(void 0),Te=function(_e){var Ve=_e.value,Mn=_e.children,En=Ft.useRef(Ve);En.current=Ve;var xn=Ft.useState(function(){return{getValue:function(){return En.current},listeners:new Set}}),ri=(0,re.Z)(xn,1),jn=ri[0];return(0,Ut.Z)(function(){(0,De.unstable_batchedUpdates)(function(){jn.listeners.forEach(function(ti){ti(Ve)})})},[Ve]),Ft.createElement(ie.Provider,{value:jn},Mn)};return{Context:ie,Provider:Te,defaultValue:Xt}}function oe(Xt,ie){var Te=(0,Ae.Z)(typeof ie=="function"?ie:function(ti){if(ie===void 0)return ti;if(!Array.isArray(ie))return ti[ie];var Li={};return ie.forEach(function(bi){Li[bi]=ti[bi]}),Li}),Ie=Ft.useContext(Xt==null?void 0:Xt.Context),_e=Ie||{},Ve=_e.listeners,Mn=_e.getValue,En=Ft.useRef();En.current=Te(Ie?Mn():Xt==null?void 0:Xt.defaultValue);var xn=Ft.useState({}),ri=(0,re.Z)(xn,2),jn=ri[1];return(0,Ut.Z)(function(){if(!Ie)return;function ti(Li){var bi=Te(Li);(0,ne.Z)(En.current,bi,!0)||jn({})}return Ve.add(ti),function(){Ve.delete(ti)}},[Ie]),En.current}var Re=yt(5891),de=yt(20475);function be(){var Xt=Ft.createContext(null);function ie(){return Ft.useContext(Xt)}function Te(_e,Ve){var Mn=(0,de.Yr)(_e),En=function(ri,jn){var ti=Mn?{ref:jn}:{},Li=Ft.useRef(0),bi=Ft.useRef(ri),yi=ie();return yi!==null?Ft.createElement(_e,(0,Re.Z)({},ri,ti)):((!Ve||Ve(bi.current,ri))&&(Li.current+=1),bi.current=ri,Ft.createElement(Xt.Provider,{value:Li.current},Ft.createElement(_e,(0,Re.Z)({},ri,ti))))};return Mn?Ft.forwardRef(En):En}function Ie(_e,Ve){var Mn=(0,de.Yr)(_e),En=function(ri,jn){var ti=Mn?{ref:jn}:{};return ie(),Ft.createElement(_e,(0,Re.Z)({},ri,ti))};return Mn?Ft.memo(Ft.forwardRef(En),Ve):Ft.memo(En,Ve)}return{makeImmutable:Te,responseImmutable:Ie,useImmutableMark:ie}}var Nt=be(),et=Nt.makeImmutable,nt=Nt.responseImmutable,ht=Nt.useImmutableMark,st=be(),gt=st.makeImmutable,mt=st.responseImmutable,Pt=st.useImmutableMark,kt=Pe(),wt=kt;function Ot(Xt,ie){var Te=Ft.useRef(0);Te.current+=1;var Ie=Ft.useRef(Xt),_e=[];Object.keys(Xt||{}).map(function(Mn){var En;(Xt==null?void 0:Xt[Mn])!==((En=Ie.current)===null||En===void 0?void 0:En[Mn])&&_e.push(Mn)}),Ie.current=Xt;var Ve=Ft.useRef([]);return _e.length&&(Ve.current=_e),Ft.useDebugValue(Te.current),Ft.useDebugValue(Ve.current.join(", ")),ie&&console.log("".concat(ie,":"),Te.current,Ve.current),Te.current}var jt=null,Ht=Ft.memo(function(){var Xt=Ot();return Ft.createElement("h1",null,"Render Times: ",Xt)});Ht.displayName="RenderBlock";var $t=yt(80665),ye=yt(57259),Yt=yt(80962),Ge=yt(92310),ce=yt.n(Ge),$e=yt(79722),Ue=yt(69004),Ke=yt(51395),tn=Ft.createContext({renderWithProps:!1}),Tn=tn,ve="RC_TABLE_KEY";function Zt(Xt){return Xt==null?[]:Array.isArray(Xt)?Xt:[Xt]}function en(Xt){var ie=[],Te={};return Xt.forEach(function(Ie){for(var _e=Ie||{},Ve=_e.key,Mn=_e.dataIndex,En=Ve||Zt(Mn).join("-")||ve;Te[En];)En="".concat(En,"_next");Te[En]=!0,ie.push(En)}),ie}function Kn(Xt){return Xt!=null}function ii(Xt){return Xt&&(0,$t.Z)(Xt)==="object"&&!Array.isArray(Xt)&&!Ft.isValidElement(Xt)}function Be(Xt,ie,Te,Ie,_e,Ve){var Mn=Ft.useContext(Tn),En=Pt(),xn=(0,$e.Z)(function(){if(Kn(Ie))return[Ie];var ri=ie==null||ie===""?[]:Array.isArray(ie)?ie:[ie],jn=(0,Ue.Z)(Xt,ri),ti=jn,Li=void 0;if(_e){var bi=_e(jn,Xt,Te);ii(bi)?(ti=bi.children,Li=bi.props,Mn.renderWithProps=!0):ti=bi}return[ti,Li]},[En,Xt,Ie,ie,_e,Te],function(ri,jn){if(Ve){var ti=(0,re.Z)(ri,2),Li=ti[1],bi=(0,re.Z)(jn,2),yi=bi[1];return Ve(yi,Li)}return Mn.renderWithProps?!0:!(0,ne.Z)(ri,jn,!0)});return xn}function on(Xt,ie,Te,Ie){var _e=Xt+ie-1;return Xt<=Ie&&_e>=Te}function un(Xt,ie){return oe(wt,function(Te){var Ie=on(Xt,ie||1,Te.hoverStartRow,Te.hoverEndRow);return[Ie,Te.onHover]})}var Jn=function(ie){var Te=ie.ellipsis,Ie=ie.rowType,_e=ie.children,Ve,Mn=Te===!0?{showTitle:!0}:Te;return Mn&&(Mn.showTitle||Ie==="header")&&(typeof _e=="string"||typeof _e=="number"?Ve=_e.toString():Ft.isValidElement(_e)&&typeof _e.props.children=="string"&&(Ve=_e.props.children)),Ve};function nn(Xt){var ie,Te,Ie,_e,Ve,Mn,En,xn,ri=Xt.component,jn=Xt.children,ti=Xt.ellipsis,Li=Xt.scope,bi=Xt.prefixCls,yi=Xt.className,Yi=Xt.align,wi=Xt.record,rr=Xt.render,tr=Xt.dataIndex,lr=Xt.renderIndex,Xr=Xt.shouldCellUpdate,so=Xt.index,pr=Xt.rowType,Fr=Xt.colSpan,bo=Xt.rowSpan,ur=Xt.fixLeft,Ir=Xt.fixRight,mr=Xt.firstFixLeft,Gi=Xt.lastFixLeft,ar=Xt.firstFixRight,Rr=Xt.lastFixRight,lo=Xt.appendNode,co=Xt.additionalProps,sr=co===void 0?{}:co,Eo=Xt.isSticky,Io="".concat(bi,"-cell"),Wo=oe(wt,["supportSticky","allColumnsFixedLeft"]),jo=Wo.supportSticky,ja=Wo.allColumnsFixedLeft,qo=Be(wi,tr,lr,jn,rr,Xr),wo=(0,re.Z)(qo,2),_r=wo[0],mo=wo[1],Da={},Pa=typeof ur=="number"&&jo,Ga=typeof Ir=="number"&&jo;Pa&&(Da.position="sticky",Da.left=ur),Ga&&(Da.position="sticky",Da.right=Ir);var yo=(ie=(Te=(Ie=mo==null?void 0:mo.colSpan)!==null&&Ie!==void 0?Ie:sr.colSpan)!==null&&Te!==void 0?Te:Fr)!==null&&ie!==void 0?ie:1,ro=(_e=(Ve=(Mn=mo==null?void 0:mo.rowSpan)!==null&&Mn!==void 0?Mn:sr.rowSpan)!==null&&Ve!==void 0?Ve:bo)!==null&&_e!==void 0?_e:1,Po=un(so,ro),Qr=(0,re.Z)(Po,2),Br=Qr[0],ki=Qr[1],xr=function(fo){var Bs;wi&&ki(so,so+ro-1),sr==null||(Bs=sr.onMouseEnter)===null||Bs===void 0||Bs.call(sr,fo)},Ao=function(fo){var Bs;wi&&ki(-1,-1),sr==null||(Bs=sr.onMouseLeave)===null||Bs===void 0||Bs.call(sr,fo)};if(yo===0||ro===0)return null;var Uo=(En=sr.title)!==null&&En!==void 0?En:Jn({rowType:pr,ellipsis:ti,children:_r}),Xs=ce()(Io,yi,(xn={},(0,Yt.Z)(xn,"".concat(Io,"-fix-left"),Pa&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-left-first"),mr&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-left-last"),Gi&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-left-all"),Gi&&ja&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-right"),Ga&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-right-first"),ar&&jo),(0,Yt.Z)(xn,"".concat(Io,"-fix-right-last"),Rr&&jo),(0,Yt.Z)(xn,"".concat(Io,"-ellipsis"),ti),(0,Yt.Z)(xn,"".concat(Io,"-with-append"),lo),(0,Yt.Z)(xn,"".concat(Io,"-fix-sticky"),(Pa||Ga)&&Eo&&jo),(0,Yt.Z)(xn,"".concat(Io,"-row-hover"),!mo&&Br),xn),sr.className,mo==null?void 0:mo.className),As={};Yi&&(As.textAlign=Yi);var sl=(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Da),sr.style),As),mo==null?void 0:mo.style),ya=_r;return(0,$t.Z)(ya)==="object"&&!Array.isArray(ya)&&!Ft.isValidElement(ya)&&(ya=null),ti&&(Gi||ar)&&(ya=Ft.createElement("span",{className:"".concat(Io,"-content")},ya)),Ft.createElement(ri,(0,Re.Z)({},mo,sr,{className:Xs,style:sl,title:Uo,scope:Li,onMouseEnter:xr,onMouseLeave:Ao,colSpan:yo!==1?yo:null,rowSpan:ro!==1?ro:null}),lo,ya)}var Gn=Ft.memo(nn);function pe(Xt,ie,Te,Ie,_e,Ve){var Mn=Te[Xt]||{},En=Te[ie]||{},xn,ri;Mn.fixed==="left"?xn=Ie.left[_e==="rtl"?ie:Xt]:En.fixed==="right"&&(ri=Ie.right[_e==="rtl"?Xt:ie]);var jn=!1,ti=!1,Li=!1,bi=!1,yi=Te[ie+1],Yi=Te[Xt-1],wi=!(Ve!=null&&Ve.children);if(_e==="rtl"){if(xn!==void 0){var rr=Yi&&Yi.fixed==="left";bi=!rr&&wi}else if(ri!==void 0){var tr=yi&&yi.fixed==="right";Li=!tr&&wi}}else if(xn!==void 0){var lr=yi&&yi.fixed==="left";jn=!lr&&wi}else if(ri!==void 0){var Xr=Yi&&Yi.fixed==="right";ti=!Xr&&wi}return{fixLeft:xn,fixRight:ri,lastFixLeft:jn,firstFixRight:ti,lastFixRight:Li,firstFixLeft:bi,isSticky:Ie.isSticky}}var Xn=Ft.createContext({}),oi=Xn;function te(Xt){var ie=Xt.className,Te=Xt.index,Ie=Xt.children,_e=Xt.colSpan,Ve=_e===void 0?1:_e,Mn=Xt.rowSpan,En=Xt.align,xn=oe(wt,["prefixCls","direction"]),ri=xn.prefixCls,jn=xn.direction,ti=Ft.useContext(oi),Li=ti.scrollColumnIndex,bi=ti.stickyOffsets,yi=ti.flattenColumns,Yi=ti.columns,wi=Te+Ve-1,rr=wi+1===Li?Ve+1:Ve,tr=pe(Te,Te+rr-1,yi,bi,jn,Yi==null?void 0:Yi[Te]);return Ft.createElement(Gn,(0,Re.Z)({className:ie,index:Te,component:"td",prefixCls:ri,record:null,dataIndex:null,align:En,colSpan:rr,rowSpan:Mn,render:function(){return Ie}},tr))}var bt=yt(19149),xt=["children"];function Tt(Xt){var ie=Xt.children,Te=(0,bt.Z)(Xt,xt);return Ft.createElement("tr",Te,ie)}function Bt(Xt){var ie=Xt.children;return ie}Bt.Row=Tt,Bt.Cell=te;var St=Bt;function he(Xt){var ie=Xt.children,Te=Xt.stickyOffsets,Ie=Xt.flattenColumns,_e=Xt.columns,Ve=oe(wt,"prefixCls"),Mn=Ie.length-1,En=Ie[Mn],xn=Ft.useMemo(function(){return{stickyOffsets:Te,flattenColumns:Ie,scrollColumnIndex:En!=null&&En.scrollbar?Mn:null,columns:_e}},[En,Ie,Mn,Te,_e]);return Ft.createElement(oi.Provider,{value:xn},Ft.createElement("tfoot",{className:"".concat(Ve,"-summary")},ie))}var Le=mt(he),Gt=St,ee=yt(80764),xe=yt(29301),we=yt(48886),se=yt(24387),ke=yt(59055),vn=yt(36994);function cn(Xt,ie,Te,Ie,_e,Ve,Mn){Xt.push({record:ie,indent:Te,index:Mn});var En=Ve(ie),xn=_e==null?void 0:_e.has(En);if(ie&&Array.isArray(ie[Ie])&&xn)for(var ri=0;ri<ie[Ie].length;ri+=1)cn(Xt,ie[Ie][ri],Te+1,Ie,_e,Ve,ri)}function Je(Xt,ie,Te,Ie){var _e=Ft.useMemo(function(){if(Te!=null&&Te.size){for(var Ve=[],Mn=0;Mn<(Xt==null?void 0:Xt.length);Mn+=1){var En=Xt[Mn];cn(Ve,En,0,ie,Te,Ie,Mn)}return Ve}return Xt==null?void 0:Xt.map(function(xn,ri){return{record:xn,indent:0,index:ri}})},[Xt,ie,Te,Ie]);return _e}function hn(Xt){var ie=Xt.prefixCls,Te=Xt.children,Ie=Xt.component,_e=Xt.cellComponent,Ve=Xt.className,Mn=Xt.expanded,En=Xt.colSpan,xn=Xt.isEmpty,ri=oe(wt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),jn=ri.scrollbarSize,ti=ri.fixHeader,Li=ri.fixColumn,bi=ri.componentWidth,yi=ri.horizonScroll,Yi=Te;return(xn?yi&&bi:Li)&&(Yi=Ft.createElement("div",{style:{width:bi-(ti?jn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ie,"-expanded-row-fixed")},Yi)),Ft.createElement(Ie,{className:Ve,style:{display:Mn?null:"none"}},Ft.createElement(Gn,{component:_e,prefixCls:ie,colSpan:En},Yi))}var Vn=hn;function Se(Xt,ie,Te,Ie){var _e=oe(wt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ve=_e.flattenColumns,Mn=_e.expandableType,En=_e.expandedKeys,xn=_e.childrenColumnName,ri=_e.onTriggerExpand,jn=_e.rowExpandable,ti=_e.onRow,Li=_e.expandRowByClick,bi=_e.rowClassName,yi=Mn==="nest",Yi=Mn==="row"&&(!jn||jn(Xt)),wi=Yi||yi,rr=En&&En.has(ie),tr=xn&&Xt&&Xt[xn],lr=(0,ee.useEvent)(ri),Xr=ti==null?void 0:ti(Xt,Te),so=Xr==null?void 0:Xr.onClick,pr=function(Ir){Li&&wi&&ri(Xt,Ir);for(var mr=arguments.length,Gi=new Array(mr>1?mr-1:0),ar=1;ar<mr;ar++)Gi[ar-1]=arguments[ar];so==null||so.apply(void 0,[Ir].concat(Gi))},Fr;typeof bi=="string"?Fr=bi:typeof bi=="function"&&(Fr=bi(Xt,Te,Ie));var bo=en(Ve);return(0,ye.Z)((0,ye.Z)({},_e),{},{columnsKey:bo,nestExpandable:yi,expanded:rr,hasNestChildren:tr,record:Xt,onTriggerExpand:lr,rowSupportExpand:Yi,expandable:wi,rowProps:(0,ye.Z)((0,ye.Z)({},Xr),{},{className:ce()(Fr,Xr==null?void 0:Xr.className),onClick:pr})})}function qe(Xt,ie,Te,Ie,_e){var Ve=Xt.record,Mn=Xt.prefixCls,En=Xt.columnsKey,xn=Xt.fixedInfoList,ri=Xt.expandIconColumnIndex,jn=Xt.nestExpandable,ti=Xt.indentSize,Li=Xt.expandIcon,bi=Xt.expanded,yi=Xt.hasNestChildren,Yi=Xt.onTriggerExpand,wi=En[Te],rr=xn[Te],tr;Te===(ri||0)&&jn&&(tr=Ft.createElement(Ft.Fragment,null,Ft.createElement("span",{style:{paddingLeft:"".concat(ti*Ie,"px")},className:"".concat(Mn,"-row-indent indent-level-").concat(Ie)}),Li({prefixCls:Mn,expanded:bi,expandable:yi,record:Ve,onExpand:Yi})));var lr;return ie.onCell&&(lr=ie.onCell(Ve,_e)),{key:wi,fixedInfo:rr,appendCellNode:tr,additionalCellProps:lr||{}}}function Qe(Xt){var ie=Xt.className,Te=Xt.style,Ie=Xt.record,_e=Xt.index,Ve=Xt.renderIndex,Mn=Xt.rowKey,En=Xt.indent,xn=En===void 0?0:En,ri=Xt.rowComponent,jn=Xt.cellComponent,ti=Xt.scopeCellComponent,Li=Se(Ie,Mn,_e,xn),bi=Li.prefixCls,yi=Li.flattenColumns,Yi=Li.expandedRowClassName,wi=Li.expandedRowRender,rr=Li.rowProps,tr=Li.expanded,lr=Li.rowSupportExpand,Xr=Ft.useState(!1),so=(0,re.Z)(Xr,2),pr=so[0],Fr=so[1];Ft.useEffect(function(){tr&&Fr(!0)},[tr]);var bo=Ft.createElement(ri,(0,Re.Z)({},rr,{"data-row-key":Mn,className:ce()(ie,"".concat(bi,"-row"),"".concat(bi,"-row-level-").concat(xn),rr==null?void 0:rr.className),style:(0,ye.Z)((0,ye.Z)({},Te),rr==null?void 0:rr.style)}),yi.map(function(Gi,ar){var Rr=Gi.render,lo=Gi.dataIndex,co=Gi.className,sr=qe(Li,Gi,ar,xn,_e),Eo=sr.key,Io=sr.fixedInfo,Wo=sr.appendCellNode,jo=sr.additionalCellProps;return Ft.createElement(Gn,(0,Re.Z)({className:co,ellipsis:Gi.ellipsis,align:Gi.align,scope:Gi.rowScope,component:Gi.rowScope?ti:jn,prefixCls:bi,key:Eo,record:Ie,index:_e,renderIndex:Ve,dataIndex:lo,render:Rr,shouldCellUpdate:Gi.shouldCellUpdate},Io,{appendNode:Wo,additionalProps:jo}))})),ur;if(lr&&(pr||tr)){var Ir=wi(Ie,_e,xn+1,tr),mr=Yi&&Yi(Ie,_e,xn);ur=Ft.createElement(Vn,{expanded:tr,className:ce()("".concat(bi,"-expanded-row"),"".concat(bi,"-expanded-row-level-").concat(xn+1),mr),prefixCls:bi,component:ri,cellComponent:jn,colSpan:yi.length,isEmpty:!1},Ir)}return Ft.createElement(Ft.Fragment,null,bo,ur)}Qe.displayName="BodyRow";var Nn=mt(Qe);function hi(Xt){var ie=Xt.columnKey,Te=Xt.onColumnResize,Ie=Ft.useRef();return Ft.useEffect(function(){Ie.current&&Te(ie,Ie.current.offsetWidth)},[]),Ft.createElement(xe.Z,{data:ie},Ft.createElement("td",{ref:Ie,style:{padding:0,border:0,height:0}},Ft.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function mi(Xt){var ie=Xt.prefixCls,Te=Xt.columnsKey,Ie=Xt.onColumnResize;return Ft.createElement("tr",{"aria-hidden":"true",className:"".concat(ie,"-measure-row"),style:{height:0,fontSize:0}},Ft.createElement(xe.Z.Collection,{onBatchResize:function(Ve){Ve.forEach(function(Mn){var En=Mn.data,xn=Mn.size;Ie(En,xn.offsetWidth)})}},Te.map(function(_e){return Ft.createElement(hi,{key:_e,columnKey:_e,onColumnResize:Ie})})))}function gi(Xt){var ie=Xt.data,Te=Xt.measureColumnWidth,Ie=oe(wt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),_e=Ie.prefixCls,Ve=Ie.getComponent,Mn=Ie.onColumnResize,En=Ie.flattenColumns,xn=Ie.getRowKey,ri=Ie.expandedKeys,jn=Ie.childrenColumnName,ti=Ie.emptyNode,Li=Je(ie,jn,ri,xn),bi=Ft.useRef({renderWithProps:!1}),yi=Ve(["body","wrapper"],"tbody"),Yi=Ve(["body","row"],"tr"),wi=Ve(["body","cell"],"td"),rr=Ve(["body","cell"],"th"),tr;ie.length?tr=Li.map(function(Xr,so){var pr=Xr.record,Fr=Xr.indent,bo=Xr.index,ur=xn(pr,so);return Ft.createElement(Nn,{key:ur,rowKey:ur,record:pr,index:so,renderIndex:bo,rowComponent:Yi,cellComponent:wi,scopeCellComponent:rr,getRowKey:xn,indent:Fr})}):tr=Ft.createElement(Vn,{expanded:!0,className:"".concat(_e,"-placeholder"),prefixCls:_e,component:Yi,cellComponent:wi,colSpan:En.length,isEmpty:!0},ti);var lr=en(En);return Ft.createElement(Tn.Provider,{value:bi.current},Ft.createElement(yi,{className:"".concat(_e,"-tbody")},Te&&Ft.createElement(mi,{prefixCls:_e,columnsKey:lr,onColumnResize:Mn}),tr))}gi.displayName="Body";var Pi=mt(gi),_i=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function gr(Xt){var ie=Xt.expandable,Te=(0,bt.Z)(Xt,_i),Ie;return"expandable"in Xt?Ie=(0,ye.Z)((0,ye.Z)({},Te),ie):Ie=Te,Ie.showExpandColumn===!1&&(Ie.expandIconColumnIndex=-1),Ie}var fr=["columnType"];function eo(Xt){for(var ie=Xt.colWidths,Te=Xt.columns,Ie=Xt.columCount,_e=[],Ve=Ie||Te.length,Mn=!1,En=Ve-1;En>=0;En-=1){var xn=ie[En],ri=Te&&Te[En],jn=ri&&ri[vr];if(xn||jn||Mn){var ti=jn||{},Li=ti.columnType,bi=(0,bt.Z)(ti,fr);_e.unshift(Ft.createElement("col",(0,Re.Z)({key:En,style:{width:xn}},bi))),Mn=!0}}return Ft.createElement("colgroup",null,_e)}var Jr=eo,Xi=yt(26390),$r=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ki(Xt,ie){return(0,Ft.useMemo)(function(){for(var Te=[],Ie=0;Ie<ie;Ie+=1){var _e=Xt[Ie];if(_e!==void 0)Te[Ie]=_e;else return null}return Te},[Xt.join("_"),ie])}var Lt=Ft.forwardRef(function(Xt,ie){var Te=Xt.className,Ie=Xt.noData,_e=Xt.columns,Ve=Xt.flattenColumns,Mn=Xt.colWidths,En=Xt.columCount,xn=Xt.stickyOffsets,ri=Xt.direction,jn=Xt.fixHeader,ti=Xt.stickyTopOffset,Li=Xt.stickyBottomOffset,bi=Xt.stickyClassName,yi=Xt.onScroll,Yi=Xt.maxContentScroll,wi=Xt.children,rr=(0,bt.Z)(Xt,$r),tr=oe(wt,["prefixCls","scrollbarSize","isSticky"]),lr=tr.prefixCls,Xr=tr.scrollbarSize,so=tr.isSticky,pr=so&&!jn?0:Xr,Fr=Ft.useRef(null),bo=Ft.useCallback(function(co){(0,de.mH)(ie,co),(0,de.mH)(Fr,co)},[]);Ft.useEffect(function(){var co;function sr(Eo){var Io=Eo,Wo=Io.currentTarget,jo=Io.deltaX;jo&&(yi({currentTarget:Wo,scrollLeft:Wo.scrollLeft+jo}),Eo.preventDefault())}return(co=Fr.current)===null||co===void 0||co.addEventListener("wheel",sr),function(){var Eo;(Eo=Fr.current)===null||Eo===void 0||Eo.removeEventListener("wheel",sr)}},[]);var ur=Ft.useMemo(function(){return Ve.every(function(co){return co.width})},[Ve]),Ir=Ve[Ve.length-1],mr={fixed:Ir?Ir.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(lr,"-cell-scrollbar")}}},Gi=(0,Ft.useMemo)(function(){return pr?[].concat((0,Xi.Z)(_e),[mr]):_e},[pr,_e]),ar=(0,Ft.useMemo)(function(){return pr?[].concat((0,Xi.Z)(Ve),[mr]):Ve},[pr,Ve]),Rr=(0,Ft.useMemo)(function(){var co=xn.right,sr=xn.left;return(0,ye.Z)((0,ye.Z)({},xn),{},{left:ri==="rtl"?[].concat((0,Xi.Z)(sr.map(function(Eo){return Eo+pr})),[0]):sr,right:ri==="rtl"?co:[].concat((0,Xi.Z)(co.map(function(Eo){return Eo+pr})),[0]),isSticky:so})},[pr,xn,so]),lo=Ki(Mn,En);return Ft.createElement("div",{style:(0,ye.Z)({overflow:"hidden"},so?{top:ti,bottom:Li}:{}),ref:bo,className:ce()(Te,(0,Yt.Z)({},bi,!!bi))},Ft.createElement("table",{style:{tableLayout:"fixed",visibility:Ie||lo?null:"hidden"}},(!Ie||!Yi||ur)&&Ft.createElement(Jr,{colWidths:lo?[].concat((0,Xi.Z)(lo),[pr]):[],columCount:En+1,columns:ar}),wi((0,ye.Z)((0,ye.Z)({},rr),{},{stickyOffsets:Rr,columns:Gi,flattenColumns:ar}))))});Lt.displayName="FixedHolder";var li=Ft.memo(Lt);function vi(Xt){var ie=Xt.cells,Te=Xt.stickyOffsets,Ie=Xt.flattenColumns,_e=Xt.rowComponent,Ve=Xt.cellComponent,Mn=Xt.tdCellComponent,En=Xt.onHeaderRow,xn=Xt.index,ri=oe(wt,["prefixCls","direction"]),jn=ri.prefixCls,ti=ri.direction,Li;En&&(Li=En(ie.map(function(yi){return yi.column}),xn));var bi=en(ie.map(function(yi){return yi.column}));return Ft.createElement(_e,Li,ie.map(function(yi,Yi){var wi=yi.column,rr=pe(yi.colStart,yi.colEnd,Ie,Te,ti,wi),tr;return wi&&wi.onHeaderCell&&(tr=yi.column.onHeaderCell(wi)),Ft.createElement(Gn,(0,Re.Z)({},yi,{scope:wi.title?yi.colSpan>1?"colgroup":"col":null,ellipsis:wi.ellipsis,align:wi.align,component:wi.title?Ve:Mn,prefixCls:jn,key:bi[Yi]},rr,{additionalProps:tr,rowType:"header"}))}))}vi.displayName="HeaderRow";var Lr=vi;function hr(Xt){var ie=[];function Te(Mn,En){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ie[xn]=ie[xn]||[];var ri=En,jn=Mn.filter(Boolean).map(function(ti){var Li={key:ti.key,className:ti.className||"",children:ti.title,column:ti,colStart:ri},bi=1,yi=ti.children;return yi&&yi.length>0&&(bi=Te(yi,ri,xn+1).reduce(function(Yi,wi){return Yi+wi},0),Li.hasSubColumns=!0),"colSpan"in ti&&(bi=ti.colSpan),"rowSpan"in ti&&(Li.rowSpan=ti.rowSpan),Li.colSpan=bi,Li.colEnd=Li.colStart+bi-1,ie[xn].push(Li),ri+=bi,bi});return jn}Te(Xt,0);for(var Ie=ie.length,_e=function(En){ie[En].forEach(function(xn){!("rowSpan"in xn)&&!xn.hasSubColumns&&(xn.rowSpan=Ie-En)})},Ve=0;Ve<Ie;Ve+=1)_e(Ve);return ie}function qi(Xt){var ie=Xt.stickyOffsets,Te=Xt.columns,Ie=Xt.flattenColumns,_e=Xt.onHeaderRow,Ve=oe(wt,["prefixCls","getComponent"]),Mn=Ve.prefixCls,En=Ve.getComponent,xn=Ft.useMemo(function(){return hr(Te)},[Te]),ri=En(["header","wrapper"],"thead"),jn=En(["header","row"],"tr"),ti=En(["header","cell"],"th"),Li=En(["header","cell"],"td");return Ft.createElement(ri,{className:"".concat(Mn,"-thead")},xn.map(function(bi,yi){var Yi=Ft.createElement(Lr,{key:yi,flattenColumns:Ie,cells:bi,stickyOffsets:ie,rowComponent:jn,cellComponent:ti,tdCellComponent:Li,onHeaderRow:_e,index:yi});return Yi}))}var Zr=mt(qi),Gr=yt(38298);function Ln(Xt){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ie=="number"?ie:ie.endsWith("%")?Xt*parseFloat(ie)/100:null}function fn(Xt,ie){return Ft.useMemo(function(){if(ie&&ie>0){var Te=0,Ie=0;Xt.forEach(function(ri){var jn=Ln(ie,ri.width);jn?Te+=jn:Ie+=1});var _e=ie-Te,Ve=Ie,Mn=_e/Ie,En=0,xn=Xt.map(function(ri){var jn=(0,ye.Z)({},ri),ti=Ln(ie,jn.width);if(ti)jn.width=ti;else{var Li=Math.floor(Mn);jn.width=Ve===1?_e:Li,_e-=Li,Ve-=1}return En+=jn.width,jn});return[xn,En]}return[Xt,ie]},[Xt,ie])}var Ze=["children"],fe=["fixed"];function Sn(Xt){return(0,Gr.Z)(Xt).filter(function(ie){return Ft.isValidElement(ie)}).map(function(ie){var Te=ie.key,Ie=ie.props,_e=Ie.children,Ve=(0,bt.Z)(Ie,Ze),Mn=(0,ye.Z)({key:Te},Ve);return _e&&(Mn.children=Sn(_e)),Mn})}function In(Xt){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Xt.filter(function(Te){return Te&&(0,$t.Z)(Te)==="object"}).reduce(function(Te,Ie,_e){var Ve=Ie.fixed,Mn=Ve===!0?"left":Ve,En="".concat(ie,"-").concat(_e),xn=Ie.children;return xn&&xn.length>0?[].concat((0,Xi.Z)(Te),(0,Xi.Z)(In(xn,En).map(function(ri){return(0,ye.Z)({fixed:Mn},ri)}))):[].concat((0,Xi.Z)(Te),[(0,ye.Z)((0,ye.Z)({key:En},Ie),{},{fixed:Mn})])},[])}function Fe(Xt){for(var ie=!0,Te=0;Te<Xt.length;Te+=1){var Ie=Xt[Te];if(ie&&Ie.fixed!=="left")ie=!1;else if(!ie&&Ie.fixed==="left"){warning(!1,"Index ".concat(Te-1," of `columns` missing `fixed='left'` prop."));break}}for(var _e=!0,Ve=Xt.length-1;Ve>=0;Ve-=1){var Mn=Xt[Ve];if(_e&&Mn.fixed!=="right")_e=!1;else if(!_e&&Mn.fixed==="right"){warning(!1,"Index ".concat(Ve+1," of `columns` missing `fixed='right'` prop."));break}}}function ue(Xt){return Xt.map(function(ie){var Te=ie.fixed,Ie=(0,bt.Z)(ie,fe),_e=Te;return Te==="left"?_e="right":Te==="right"&&(_e="left"),(0,ye.Z)({fixed:_e},Ie)})}function pn(Xt,ie){var Te=Xt.prefixCls,Ie=Xt.columns,_e=Xt.children,Ve=Xt.expandable,Mn=Xt.expandedKeys,En=Xt.columnTitle,xn=Xt.getRowKey,ri=Xt.onTriggerExpand,jn=Xt.expandIcon,ti=Xt.rowExpandable,Li=Xt.expandIconColumnIndex,bi=Xt.direction,yi=Xt.expandRowByClick,Yi=Xt.columnWidth,wi=Xt.fixed,rr=Xt.scrollWidth,tr=Ft.useMemo(function(){return Ie||Sn(_e)},[Ie,_e]),lr=Ft.useMemo(function(){if(Ve){var Ir,mr=tr.slice();if(!mr.includes(At)){var Gi=Li||0;Gi>=0&&mr.splice(Gi,0,At)}var ar=mr.indexOf(At);mr=mr.filter(function(sr,Eo){return sr!==At||Eo===ar});var Rr=tr[ar],lo;(wi==="left"||wi)&&!Li?lo="left":(wi==="right"||wi)&&Li===tr.length?lo="right":lo=Rr?Rr.fixed:null;var co=(Ir={},(0,Yt.Z)(Ir,vr,{className:"".concat(Te,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Yt.Z)(Ir,"title",En),(0,Yt.Z)(Ir,"fixed",lo),(0,Yt.Z)(Ir,"className","".concat(Te,"-row-expand-icon-cell")),(0,Yt.Z)(Ir,"width",Yi),(0,Yt.Z)(Ir,"render",function(Eo,Io,Wo){var jo=xn(Io,Wo),ja=Mn.has(jo),qo=ti?ti(Io):!0,wo=jn({prefixCls:Te,expanded:ja,expandable:qo,record:Io,onExpand:ri});return yi?Ft.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},wo):wo}),Ir);return mr.map(function(sr){return sr===At?co:sr})}return tr.filter(function(sr){return sr!==At})},[Ve,tr,xn,Mn,jn,bi]),Xr=Ft.useMemo(function(){var Ir=lr;return ie&&(Ir=ie(Ir)),Ir.length||(Ir=[{render:function(){return null}}]),Ir},[ie,lr,bi]),so=Ft.useMemo(function(){return bi==="rtl"?ue(In(Xr)):In(Xr)},[Xr,bi,rr]),pr=fn(so,rr),Fr=(0,re.Z)(pr,2),bo=Fr[0],ur=Fr[1];return[Xr,bo,ur]}var Un=pn;function Oi(Xt){var ie,Te=Xt.prefixCls,Ie=Xt.record,_e=Xt.onExpand,Ve=Xt.expanded,Mn=Xt.expandable,En="".concat(Te,"-row-expand-icon");if(!Mn)return Ft.createElement("span",{className:ce()(En,"".concat(Te,"-row-spaced"))});var xn=function(jn){_e(Ie,jn),jn.stopPropagation()};return Ft.createElement("span",{className:ce()(En,(ie={},(0,Yt.Z)(ie,"".concat(Te,"-row-expanded"),Ve),(0,Yt.Z)(ie,"".concat(Te,"-row-collapsed"),!Ve),ie)),onClick:xn})}function Pn(Xt,ie,Te){var Ie=[];function _e(Ve){(Ve||[]).forEach(function(Mn,En){Ie.push(ie(Mn,En)),_e(Mn[Te])})}return _e(Xt),Ie}function Ce(Xt,ie,Te){var Ie=gr(Xt),_e=Ie.expandIcon,Ve=Ie.expandedRowKeys,Mn=Ie.defaultExpandedRowKeys,En=Ie.defaultExpandAllRows,xn=Ie.expandedRowRender,ri=Ie.onExpand,jn=Ie.onExpandedRowsChange,ti=Ie.childrenColumnName,Li=_e||Oi,bi=ti||"children",yi=Ft.useMemo(function(){return xn?"row":Xt.expandable&&Xt.internalHooks===zt&&Xt.expandable.__PARENT_RENDER_ICON__||ie.some(function(so){return so&&(0,$t.Z)(so)==="object"&&so[bi]})?"nest":!1},[!!xn,ie]),Yi=Ft.useState(function(){return Mn||(En?Pn(ie,Te,bi):[])}),wi=(0,re.Z)(Yi,2),rr=wi[0],tr=wi[1],lr=Ft.useMemo(function(){return new Set(Ve||rr||[])},[Ve,rr]),Xr=Ft.useCallback(function(so){var pr=Te(so,ie.indexOf(so)),Fr,bo=lr.has(pr);bo?(lr.delete(pr),Fr=(0,Xi.Z)(lr)):Fr=[].concat((0,Xi.Z)(lr),[pr]),tr(Fr),ri&&ri(!bo,so),jn&&jn(Fr)},[Te,lr,ie,ri,jn]);return[Ie,yi,lr,Li,bi,Xr]}function Rn(Xt,ie,Te,Ie){var _e=Xt.map(function(Ve,Mn){return pe(Mn,Mn,Xt,ie,Te,Ie==null?void 0:Ie[Mn])});return(0,$e.Z)(function(){return _e},[_e],function(Ve,Mn){return!(0,ne.Z)(Ve,Mn)})}function pi(Xt){var ie=(0,Ft.useRef)(Xt),Te=(0,Ft.useState)({}),Ie=(0,re.Z)(Te,2),_e=Ie[1],Ve=(0,Ft.useRef)(null),Mn=(0,Ft.useRef)([]);function En(xn){Mn.current.push(xn);var ri=Promise.resolve();Ve.current=ri,ri.then(function(){if(Ve.current===ri){var jn=Mn.current,ti=ie.current;Mn.current=[],jn.forEach(function(Li){ie.current=Li(ie.current)}),Ve.current=null,ti!==ie.current&&_e({})}})}return(0,Ft.useEffect)(function(){return function(){Ve.current=null}},[]),[ie.current,En]}function Bi(Xt){var ie=(0,Ft.useRef)(Xt||null),Te=(0,Ft.useRef)();function Ie(){window.clearTimeout(Te.current)}function _e(Mn){ie.current=Mn,Ie(),Te.current=window.setTimeout(function(){ie.current=null,Te.current=void 0},100)}function Ve(){return ie.current}return(0,Ft.useEffect)(function(){return Ie},[]),[_e,Ve]}function je(){var Xt=Ft.useState(-1),ie=(0,re.Z)(Xt,2),Te=ie[0],Ie=ie[1],_e=Ft.useState(-1),Ve=(0,re.Z)(_e,2),Mn=Ve[0],En=Ve[1],xn=Ft.useCallback(function(ri,jn){Ie(ri),En(jn)},[]);return[Te,Mn,xn]}var yn=yt(87746),He=(0,yn.Z)()?window:null;function an(Xt,ie){var Te=(0,$t.Z)(Xt)==="object"?Xt:{},Ie=Te.offsetHeader,_e=Ie===void 0?0:Ie,Ve=Te.offsetSummary,Mn=Ve===void 0?0:Ve,En=Te.offsetScroll,xn=En===void 0?0:En,ri=Te.getContainer,jn=ri===void 0?function(){return He}:ri,ti=jn()||He;return Ft.useMemo(function(){var Li=!!Xt;return{isSticky:Li,stickyClassName:Li?"".concat(ie,"-sticky-holder"):"",offsetHeader:_e,offsetSummary:Mn,offsetScroll:xn,container:ti}},[xn,_e,Mn,ie,ti])}function gn(Xt,ie,Te){var Ie=(0,Ft.useMemo)(function(){for(var _e=[],Ve=[],Mn=0,En=0,xn=0;xn<ie;xn+=1)if(Te==="rtl"){Ve[xn]=En,En+=Xt[xn]||0;var ri=ie-xn-1;_e[ri]=Mn,Mn+=Xt[ri]||0}else{_e[xn]=Mn,Mn+=Xt[xn]||0;var jn=ie-xn-1;Ve[jn]=En,En+=Xt[jn]||0}return{left:_e,right:Ve}},[Xt,ie,Te]);return Ie}var sn=gn;function bn(Xt){var ie=Xt.className,Te=Xt.children;return Ft.createElement("div",{className:ie},Te)}var Fn=bn,Wn=yt(8178),qn=yt(21783),Bn=function(ie,Te){var Ie,_e,Ve=ie.scrollBodyRef,Mn=ie.onScroll,En=ie.offsetScroll,xn=ie.container,ri=oe(wt,"prefixCls"),jn=((Ie=Ve.current)===null||Ie===void 0?void 0:Ie.scrollWidth)||0,ti=((_e=Ve.current)===null||_e===void 0?void 0:_e.clientWidth)||0,Li=jn&&ti*(ti/jn),bi=Ft.useRef(),yi=pi({scrollLeft:0,isHiddenScrollBar:!1}),Yi=(0,re.Z)(yi,2),wi=Yi[0],rr=Yi[1],tr=Ft.useRef({delta:0,x:0}),lr=Ft.useState(!1),Xr=(0,re.Z)(lr,2),so=Xr[0],pr=Xr[1],Fr=function(){pr(!1)},bo=function(ar){ar.persist(),tr.current.delta=ar.pageX-wi.scrollLeft,tr.current.x=0,pr(!0),ar.preventDefault()},ur=function(ar){var Rr,lo=ar||((Rr=window)===null||Rr===void 0?void 0:Rr.event),co=lo.buttons;if(!so||co===0){so&&pr(!1);return}var sr=tr.current.x+ar.pageX-tr.current.x-tr.current.delta;sr<=0&&(sr=0),sr+Li>=ti&&(sr=ti-Li),Mn({scrollLeft:sr/ti*(jn+2)}),tr.current.x=ar.pageX},Ir=function(){if(Ve.current){var ar=(0,qn.os)(Ve.current).top,Rr=ar+Ve.current.offsetHeight,lo=xn===window?document.documentElement.scrollTop+window.innerHeight:(0,qn.os)(xn).top+xn.clientHeight;Rr-(0,ke.Z)()<=lo||ar>=lo-En?rr(function(co){return(0,ye.Z)((0,ye.Z)({},co),{},{isHiddenScrollBar:!0})}):rr(function(co){return(0,ye.Z)((0,ye.Z)({},co),{},{isHiddenScrollBar:!1})})}},mr=function(ar){rr(function(Rr){return(0,ye.Z)((0,ye.Z)({},Rr),{},{scrollLeft:ar/jn*ti||0})})};return Ft.useImperativeHandle(Te,function(){return{setScrollLeft:mr}}),Ft.useEffect(function(){var Gi=(0,Wn.Z)(document.body,"mouseup",Fr,!1),ar=(0,Wn.Z)(document.body,"mousemove",ur,!1);return Ir(),function(){Gi.remove(),ar.remove()}},[Li,so]),Ft.useEffect(function(){var Gi=(0,Wn.Z)(xn,"scroll",Ir,!1),ar=(0,Wn.Z)(window,"resize",Ir,!1);return function(){Gi.remove(),ar.remove()}},[xn]),Ft.useEffect(function(){wi.isHiddenScrollBar||rr(function(Gi){var ar=Ve.current;return ar?(0,ye.Z)((0,ye.Z)({},Gi),{},{scrollLeft:ar.scrollLeft/ar.scrollWidth*ar.clientWidth}):Gi})},[wi.isHiddenScrollBar]),jn<=ti||!Li||wi.isHiddenScrollBar?null:Ft.createElement("div",{style:{height:(0,ke.Z)(),width:ti,bottom:En},className:"".concat(ri,"-sticky-scroll")},Ft.createElement("div",{onMouseDown:bo,ref:bi,className:ce()("".concat(ri,"-sticky-scroll-bar"),(0,Yt.Z)({},"".concat(ri,"-sticky-scroll-bar-active"),so)),style:{width:"".concat(Li,"px"),transform:"translate3d(".concat(wi.scrollLeft,"px, 0, 0)")}}))},ai=Ft.forwardRef(Bn);function Wi(Xt){return null}var Mr=Wi;function nr(Xt){return null}var Oe=nr,xi="rc-table",Vi=[],Ti={};function Sr(){return"No Data"}function yr(Xt){var ie,Te=(0,ye.Z)({rowKey:"key",prefixCls:xi,emptyText:Sr},Xt),Ie=Te.prefixCls,_e=Te.className,Ve=Te.rowClassName,Mn=Te.style,En=Te.data,xn=Te.rowKey,ri=Te.scroll,jn=Te.tableLayout,ti=Te.direction,Li=Te.title,bi=Te.footer,yi=Te.summary,Yi=Te.caption,wi=Te.id,rr=Te.showHeader,tr=Te.components,lr=Te.emptyText,Xr=Te.onRow,so=Te.onHeaderRow,pr=Te.internalHooks,Fr=Te.transformColumns,bo=Te.internalRefs,ur=Te.tailor,Ir=Te.sticky,mr=En||Vi,Gi=!!mr.length,ar=pr===zt,Rr=Ft.useCallback(function(Ta,hs){return(0,Ue.Z)(tr,Ta)||hs},[tr]),lo=Ft.useMemo(function(){return typeof xn=="function"?xn:function(Ta){var hs=Ta&&Ta[xn];return hs}},[xn]),co=Rr(["body"]),sr=je(),Eo=(0,re.Z)(sr,3),Io=Eo[0],Wo=Eo[1],jo=Eo[2],ja=Ce(Te,mr,lo),qo=(0,re.Z)(ja,6),wo=qo[0],_r=qo[1],mo=qo[2],Da=qo[3],Pa=qo[4],Ga=qo[5],yo=ri==null?void 0:ri.x,ro=Ft.useState(0),Po=(0,re.Z)(ro,2),Qr=Po[0],Br=Po[1],ki=Un((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Te),wo),{},{expandable:!!wo.expandedRowRender,columnTitle:wo.columnTitle,expandedKeys:mo,getRowKey:lo,onTriggerExpand:Ga,expandIcon:Da,expandIconColumnIndex:wo.expandIconColumnIndex,direction:ti,scrollWidth:ar&&ur&&typeof yo=="number"?yo:null}),ar?Fr:null),xr=(0,re.Z)(ki,3),Ao=xr[0],Uo=xr[1],Xs=xr[2],As=Xs!=null?Xs:yo,sl=Ft.useMemo(function(){return{columns:Ao,flattenColumns:Uo}},[Ao,Uo]),ya=Ft.useRef(),Ba=Ft.useRef(),fo=Ft.useRef(),Bs=Ft.useRef(),ll=Ft.useRef(),Ma=Ft.useState(!1),Ha=(0,re.Z)(Ma,2),Ka=Ha[0],us=Ha[1],Os=Ft.useState(!1),na=(0,re.Z)(Os,2),Xa=na[0],Hs=na[1],Oa=pi(new Map),So=(0,re.Z)(Oa,2),gs=So[0],Is=So[1],bu=en(Uo),$l=bu.map(function(Ta){return gs.get(Ta)}),Wa=Ft.useMemo(function(){return $l},[$l.join("_")]),ul=sn(Wa,Uo.length,ti),ss=ri&&Kn(ri.y),ns=ri&&Kn(As)||!!wo.fixed,du=ns&&Uo.some(function(Ta){var hs=Ta.fixed;return hs}),ah=Ft.useRef(),Ol=an(Ir,Ie),Ku=Ol.isSticky,Vu=Ol.offsetHeader,ql=Ol.offsetSummary,Ca=Ol.offsetScroll,Ja=Ol.stickyClassName,Ws=Ol.container,is=Ft.useMemo(function(){return yi==null?void 0:yi(mr)},[yi,mr]),ba=(ss||Ku)&&Ft.isValidElement(is)&&is.type===St&&is.props.fixed,Zs,Sl,Eu;ss&&(Sl={overflowY:"scroll",maxHeight:ri.y}),ns&&(Zs={overflowX:"auto"},ss||(Sl={overflowY:"hidden"}),Eu={width:As===!0?"auto":As,minWidth:"100%"});var ac=Ft.useCallback(function(Ta,hs){(0,we.Z)(ya.current)&&Is(function(gl){if(gl.get(Ta)!==hs){var fu=new Map(gl);return fu.set(Ta,hs),fu}return gl})},[]),Ye=Bi(null),wh=(0,re.Z)(Ye,2),sh=wh[0],Rc=wh[1];function vd(Ta,hs){hs&&(typeof hs=="function"?hs(Ta):hs.scrollLeft!==Ta&&(hs.scrollLeft=Ta,hs.scrollLeft!==Ta&&setTimeout(function(){hs.scrollLeft=Ta},0)))}var Rh=(0,Ae.Z)(function(Ta){var hs=Ta.currentTarget,gl=Ta.scrollLeft,fu=ti==="rtl",gu=typeof gl=="number"?gl:hs.scrollLeft,uc=hs||Ti;if(!Rc()||Rc()===uc){var Hh;sh(uc),vd(gu,Ba.current),vd(gu,fo.current),vd(gu,ll.current),vd(gu,(Hh=ah.current)===null||Hh===void 0?void 0:Hh.setScrollLeft)}var Gd=hs||Ba.current;if(Gd){var Du=Gd.scrollWidth,Uu=Gd.clientWidth;if(Du===Uu){us(!1),Hs(!1);return}fu?(us(-gu<Du-Uu),Hs(-gu>0)):(us(gu>0),Hs(gu<Du-Uu))}}),Ph=function(){ns&&fo.current?Rh({currentTarget:fo.current}):(us(!1),Hs(!1))},cf=function(hs){var gl=hs.width;gl!==Qr&&(Ph(),Br(ya.current?ya.current.offsetWidth:gl))},fl=Ft.useRef(!1);Ft.useEffect(function(){fl.current&&Ph()},[ns,En,Ao.length]),Ft.useEffect(function(){fl.current=!0},[]);var id=Ft.useState(0),Od=(0,re.Z)(id,2),Id=Od[0],Rd=Od[1],ff=Ft.useState(!0),zd=(0,re.Z)(ff,2),jd=zd[0],cu=zd[1];Ft.useEffect(function(){(!ur||!ar)&&(fo.current instanceof Element?Rd((0,ke.o)(fo.current).width):Rd((0,ke.o)(Bs.current).width)),cu((0,se.G)("position","sticky"))},[]),Ft.useEffect(function(){ar&&bo&&(bo.body.current=fo.current)});var zh=Ft.useCallback(function(Ta){return Ft.createElement(Ft.Fragment,null,Ft.createElement(Zr,Ta),ba==="top"&&Ft.createElement(Le,Ta,is))},[ba,is]),zc=Ft.useCallback(function(Ta){return Ft.createElement(Le,Ta,is)},[is]),Yu=Rr(["table"],"table"),jh=Ft.useMemo(function(){return jn||(du?As==="max-content"?"auto":"fixed":ss||Ku||Uo.some(function(Ta){var hs=Ta.ellipsis;return hs})?"fixed":"auto")},[ss,du,Uo,jn,Ku]),rd,od={colWidths:Wa,columCount:Uo.length,stickyOffsets:ul,onHeaderRow:so,fixHeader:ss,scroll:ri},Il=Ft.useMemo(function(){return Gi?null:typeof lr=="function"?lr():lr},[Gi,lr]),sc=Ft.createElement(Pi,{data:mr,measureColumnWidth:ss||ns||Ku}),Hd=Ft.createElement(Jr,{colWidths:Uo.map(function(Ta){var hs=Ta.width;return hs}),columns:Uo}),_l=Yi!=null?Ft.createElement("caption",{className:"".concat(Ie,"-caption")},Yi):void 0,yd=(0,vn.Z)(Te,{data:!0}),Wd=(0,vn.Z)(Te,{aria:!0});if(ss||Ku){var lc;typeof co=="function"?(lc=co(mr,{scrollbarSize:Id,ref:fo,onScroll:Rh}),od.colWidths=Uo.map(function(Ta,hs){var gl=Ta.width,fu=hs===Uo.length-1?gl-Id:gl;return typeof fu=="number"&&!Number.isNaN(fu)?fu:0})):lc=Ft.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Zs),Sl),onScroll:Rh,ref:fo,className:ce()("".concat(Ie,"-body"))},Ft.createElement(Yu,(0,Re.Z)({style:(0,ye.Z)((0,ye.Z)({},Eu),{},{tableLayout:jh})},Wd),_l,Hd,sc,!ba&&is&&Ft.createElement(Le,{stickyOffsets:ul,flattenColumns:Uo,columns:Ao},is)));var Ch=(0,ye.Z)((0,ye.Z)((0,ye.Z)({noData:!mr.length,maxContentScroll:ns&&As==="max-content"},od),sl),{},{direction:ti,stickyClassName:Ja,onScroll:Rh});rd=Ft.createElement(Ft.Fragment,null,rr!==!1&&Ft.createElement(li,(0,Re.Z)({},Ch,{stickyTopOffset:Vu,className:"".concat(Ie,"-header"),ref:Ba}),zh),lc,ba&&ba!=="top"&&Ft.createElement(li,(0,Re.Z)({},Ch,{stickyBottomOffset:ql,className:"".concat(Ie,"-summary"),ref:ll}),zc),Ku&&Ft.createElement(ai,{ref:ah,offsetScroll:Ca,scrollBodyRef:fo,onScroll:Rh,container:Ws}))}else rd=Ft.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Zs),Sl),className:ce()("".concat(Ie,"-content")),onScroll:Rh,ref:fo},Ft.createElement(Yu,(0,Re.Z)({style:(0,ye.Z)((0,ye.Z)({},Eu),{},{tableLayout:jh})},Wd),_l,Hd,rr!==!1&&Ft.createElement(Zr,(0,Re.Z)({},od,sl)),sc,is&&Ft.createElement(Le,{stickyOffsets:ul,flattenColumns:Uo,columns:Ao},is)));var xl=Ft.createElement("div",(0,Re.Z)({className:ce()(Ie,_e,(ie={},(0,Yt.Z)(ie,"".concat(Ie,"-rtl"),ti==="rtl"),(0,Yt.Z)(ie,"".concat(Ie,"-ping-left"),Ka),(0,Yt.Z)(ie,"".concat(Ie,"-ping-right"),Xa),(0,Yt.Z)(ie,"".concat(Ie,"-layout-fixed"),jn==="fixed"),(0,Yt.Z)(ie,"".concat(Ie,"-fixed-header"),ss),(0,Yt.Z)(ie,"".concat(Ie,"-fixed-column"),du),(0,Yt.Z)(ie,"".concat(Ie,"-scroll-horizontal"),ns),(0,Yt.Z)(ie,"".concat(Ie,"-has-fix-left"),Uo[0]&&Uo[0].fixed),(0,Yt.Z)(ie,"".concat(Ie,"-has-fix-right"),Uo[Uo.length-1]&&Uo[Uo.length-1].fixed==="right"),ie)),style:Mn,id:wi,ref:ya},yd),Li&&Ft.createElement(Fn,{className:"".concat(Ie,"-title")},Li(mr)),Ft.createElement("div",{ref:Bs,className:"".concat(Ie,"-container")},rd),bi&&Ft.createElement(Fn,{className:"".concat(Ie,"-footer")},bi(mr)));ns&&(xl=Ft.createElement(xe.Z,{onResize:cf},xl));var Zd=Rn(Uo,ul,ti,Ao),Js=Ft.useMemo(function(){return{scrollX:As,prefixCls:Ie,getComponent:Rr,scrollbarSize:Id,direction:ti,fixedInfoList:Zd,isSticky:Ku,supportSticky:jd,componentWidth:Qr,fixHeader:ss,fixColumn:du,horizonScroll:ns,tableLayout:jh,rowClassName:Ve,expandedRowClassName:wo.expandedRowClassName,expandIcon:Da,expandableType:_r,expandRowByClick:wo.expandRowByClick,expandedRowRender:wo.expandedRowRender,onTriggerExpand:Ga,expandIconColumnIndex:wo.expandIconColumnIndex,indentSize:wo.indentSize,allColumnsFixedLeft:Uo.every(function(Ta){return Ta.fixed==="left"}),emptyNode:Il,columns:Ao,flattenColumns:Uo,onColumnResize:ac,hoverStartRow:Io,hoverEndRow:Wo,onHover:jo,rowExpandable:wo.rowExpandable,onRow:Xr,getRowKey:lo,expandedKeys:mo,childrenColumnName:Pa}},[As,Ie,Rr,Id,ti,Zd,Ku,jd,Qr,ss,du,ns,jh,Ve,wo.expandedRowClassName,Da,_r,wo.expandRowByClick,wo.expandedRowRender,Ga,wo.expandIconColumnIndex,wo.indentSize,Il,Ao,Uo,ac,Io,Wo,jo,wo.rowExpandable,Xr,lo,mo,Pa]);return Ft.createElement(wt.Provider,{value:Js},xl)}function Dr(Xt){return gt(yr,Xt)}var ir=Dr();ir.EXPAND_COLUMN=At,ir.INTERNAL_HOOKS=zt,ir.Column=Mr,ir.ColumnGroup=Oe,ir.Summary=Gt;var zi=ir,Kr=yt(50030),wn=Pe(null),To=Pe(null);function An(Xt,ie,Te){var Ie=ie||1;return Te[Xt+Ie]-(Te[Xt]||0)}function Or(Xt){var ie=Xt.rowInfo,Te=Xt.column,Ie=Xt.colIndex,_e=Xt.indent,Ve=Xt.index,Mn=Xt.renderIndex,En=Xt.record,xn=Xt.style,ri=Xt.className,jn=Xt.inverse,ti=Xt.getHeight,Li=Te.render,bi=Te.dataIndex,yi=Te.className,Yi=Te.width,wi=oe(To,["columnsOffset"]),rr=wi.columnsOffset,tr=qe(ie,Te,Ie,_e,Ve),lr=tr.key,Xr=tr.fixedInfo,so=tr.appendCellNode,pr=tr.additionalCellProps,Fr=pr.style,bo=pr.colSpan,ur=bo===void 0?1:bo,Ir=pr.rowSpan,mr=Ir===void 0?1:Ir,Gi=Ie-1,ar=An(Gi,ur,rr),Rr=ur>1?Yi-ar:0,lo=(0,ye.Z)((0,ye.Z)((0,ye.Z)({},Fr),xn),{},{flex:"0 0 ".concat(ar,"px"),width:"".concat(ar,"px"),marginRight:Rr,pointerEvents:"auto"}),co=Ft.useMemo(function(){return jn?mr<=1:ur===0||mr===0||mr>1},[mr,ur,jn]);co?lo.visibility="hidden":jn&&(lo.height=ti==null?void 0:ti(mr));var sr=co?function(){return null}:Li,Eo={};return(mr===0||ur===0)&&(Eo.rowSpan=1,Eo.colSpan=1),Ft.createElement(Gn,(0,Re.Z)({className:ce()(yi,ri),ellipsis:Te.ellipsis,align:Te.align,scope:Te.rowScope,component:"div",prefixCls:ie.prefixCls,key:lr,record:En,index:Ve,renderIndex:Mn,dataIndex:bi,render:sr,shouldCellUpdate:Te.shouldCellUpdate},Xr,{appendNode:so,additionalProps:(0,ye.Z)((0,ye.Z)({},pr),{},{style:lo},Eo)}))}var Qo=Or,uo=["data","index","className","rowKey","style","extra","getHeight"],Fa=Ft.forwardRef(function(Xt,ie){var Te=Xt.data,Ie=Xt.index,_e=Xt.className,Ve=Xt.rowKey,Mn=Xt.style,En=Xt.extra,xn=Xt.getHeight,ri=(0,bt.Z)(Xt,uo),jn=Te.record,ti=Te.indent,Li=Te.index,bi=oe(wt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),yi=bi.scrollX,Yi=bi.flattenColumns,wi=bi.prefixCls,rr=bi.fixColumn,tr=bi.componentWidth,lr=Se(jn,Ve,Ie,ti),Xr=lr.rowSupportExpand,so=lr.expanded,pr=lr.rowProps,Fr=lr.expandedRowRender,bo=lr.expandedRowClassName,ur;if(Xr&&so){var Ir=Fr(jn,Ie,ti+1,so),mr=bo==null?void 0:bo(jn,Ie,ti),Gi={};rr&&(Gi={style:(0,Yt.Z)({},"--virtual-width","".concat(tr,"px"))});var ar="".concat(wi,"-expanded-row-cell");ur=Ft.createElement("div",{className:ce()("".concat(wi,"-expanded-row"),"".concat(wi,"-expanded-row-level-").concat(ti+1),mr)},Ft.createElement(Gn,{component:"div",prefixCls:wi,className:ce()(ar,(0,Yt.Z)({},"".concat(ar,"-fixed"),rr)),additionalProps:Gi},Ir))}var Rr=(0,ye.Z)((0,ye.Z)({},Mn),{},{width:yi});En&&(Rr.position="absolute",Rr.pointerEvents="none");var lo=Ft.createElement("div",(0,Re.Z)({},pr,ri,{ref:Xr?null:ie,className:ce()(_e,"".concat(wi,"-row"),pr==null?void 0:pr.className,(0,Yt.Z)({},"".concat(wi,"-row-extra"),En)),style:(0,ye.Z)((0,ye.Z)({},Rr),pr==null?void 0:pr.style)}),Yi.map(function(co,sr){return Ft.createElement(Qo,{key:sr,rowInfo:lr,column:co,colIndex:sr,indent:ti,index:Ie,renderIndex:Li,record:jn,inverse:En,getHeight:xn})}));return Xr?Ft.createElement("div",{ref:ie},lo,ur):lo}),Vo=mt(Fa),dr=Vo,or=Ft.forwardRef(function(Xt,ie){var Te=Xt.data,Ie=Xt.onScroll,_e=oe(wt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ve=_e.flattenColumns,Mn=_e.onColumnResize,En=_e.getRowKey,xn=_e.expandedKeys,ri=_e.prefixCls,jn=_e.childrenColumnName,ti=_e.emptyNode,Li=_e.scrollX,bi=oe(wn),yi=bi.scrollY,Yi=bi.listItemHeight,wi=Ft.useRef(),rr=Je(Te,jn,xn,En),tr=Ft.useMemo(function(){var ur=0;return Ve.map(function(Ir){var mr=Ir.width,Gi=Ir.key;return ur+=mr,[Gi,mr,ur]})},[Ve]),lr=Ft.useMemo(function(){return tr.map(function(ur){return ur[2]})},[tr]);Ft.useEffect(function(){tr.forEach(function(ur){var Ir=(0,re.Z)(ur,2),mr=Ir[0],Gi=Ir[1];Mn(mr,Gi)})},[tr]),Ft.useImperativeHandle(ie,function(){var ur={};return Object.defineProperty(ur,"scrollLeft",{get:function(){var mr;return((mr=wi.current)===null||mr===void 0?void 0:mr.getScrollInfo().x)||0},set:function(mr){var Gi;(Gi=wi.current)===null||Gi===void 0||Gi.scrollTo({left:mr})}}),ur});var Xr=function(Ir,mr){var Gi,ar=(Gi=rr[mr])===null||Gi===void 0?void 0:Gi.record,Rr=Ir.onCell;if(Rr){var lo,co=Rr(ar,mr);return(lo=co==null?void 0:co.rowSpan)!==null&&lo!==void 0?lo:1}return 1},so=function(Ir){var mr=Ir.start,Gi=Ir.end,ar=Ir.getSize,Rr=Ir.offsetY;if(Gi<0)return null;for(var lo=Ve.filter(function(yo){return Xr(yo,mr)===0}),co=mr,sr=function(ro){if(lo=lo.filter(function(Po){return Xr(Po,ro)===0}),!lo.length)return co=ro,"break"},Eo=mr;Eo>=0;Eo-=1){var Io=sr(Eo);if(Io==="break")break}for(var Wo=Ve.filter(function(yo){return Xr(yo,Gi)!==1}),jo=Gi,ja=function(ro){if(Wo=Wo.filter(function(Po){return Xr(Po,ro)!==1}),!Wo.length)return jo=Math.max(ro-1,Gi),"break"},qo=Gi;qo<rr.length;qo+=1){var wo=ja(qo);if(wo==="break")break}for(var _r=[],mo=function(ro){var Po=rr[ro];if(!Po)return"continue";Ve.some(function(Qr){return Xr(Qr,ro)>1})&&_r.push(ro)},Da=co;Da<=jo;Da+=1)var Pa=mo(Da);var Ga=_r.map(function(yo){var ro=rr[yo],Po=En(ro.record,yo),Qr=function(xr){var Ao=yo+xr-1,Uo=En(rr[Ao].record,Ao),Xs=ar(Po,Uo);return Xs.bottom-Xs.top},Br=ar(Po);return Ft.createElement(dr,{key:yo,data:ro,rowKey:Po,index:yo,style:{top:-Rr+Br.top},extra:!0,getHeight:Qr})});return Ga},pr=Ft.useMemo(function(){return{columnsOffset:lr}},[lr]),Fr="".concat(ri,"-tbody"),bo;return rr.length?bo=Ft.createElement(Kr.Z,{fullHeight:!1,ref:wi,className:ce()(Fr,"".concat(Fr,"-virtual")),height:yi,itemHeight:Yi||24,data:rr,itemKey:function(Ir){return En(Ir.record)},scrollWidth:Li,onVirtualScroll:function(Ir){var mr=Ir.x;Ie({scrollLeft:mr})},extraRender:so},function(ur,Ir,mr){var Gi=En(ur.record,Ir);return Ft.createElement(dr,(0,Re.Z)({data:ur,rowKey:Gi,index:Ir},mr))}):bo=Ft.createElement("div",{className:ce()("".concat(ri,"-placeholder"))},Ft.createElement(Gn,{component:"div",prefixCls:ri},ti)),Ft.createElement(To.Provider,{value:pr},bo)}),io=mt(or),Co=io,Ci=function(ie,Te){var Ie=Te.ref,_e=Te.onScroll;return Ft.createElement(Co,{ref:Ie,data:ie,onScroll:_e})},Vt=100;function qr(Xt){var ie=Xt.columns,Te=Xt.scroll,Ie=Xt.prefixCls,_e=Ie===void 0?xi:Ie,Ve=Xt.className,Mn=Xt.listItemHeight,En=Te||{},xn=En.x,ri=En.y;typeof xn!="number"&&(xn=((ie||[]).length+1)*Vt),typeof ri!="number"&&(ri=500);var jn=Ft.useMemo(function(){return{scrollY:ri,listItemHeight:Mn}},[ri,Mn]);return Ft.createElement(wn.Provider,{value:jn},Ft.createElement(zi,(0,Re.Z)({},Xt,{className:ce()(Ve,"".concat(_e,"-virtual")),scroll:(0,ye.Z)((0,ye.Z)({},Te),{},{x:xn}),components:{body:Ci},columns:ie,internalHooks:zt,tailor:!0})))}function da(Xt){return gt(qr,Xt)}var ao=da(),_o=null;function ca(Xt){return null}var fa=ca;function Vr(Xt){return null}var Ar=Vr,Cr=yt(64002),Do=yt(68031),Ui=yt(36355),$i=yt(93891),Er=yt(19716),ei=yt(8628),Ho=yt(31724),$o=yt(19871),Na=yt(71418),ua=yt(88088);function Ia(Xt){return function(Te){let{prefixCls:Ie,onExpand:_e,record:Ve,expanded:Mn,expandable:En}=Te;const xn=`${Ie}-row-expand-icon`;return Ft.createElement("button",{type:"button",onClick:ri=>{_e(Ve,ri),ri.stopPropagation()},className:ce()(xn,{[`${xn}-spaced`]:!En,[`${xn}-expanded`]:En&&Mn,[`${xn}-collapsed`]:En&&!Mn}),"aria-label":Mn?Xt.collapse:Xt.expand,"aria-expanded":Mn})}}var Ra=Ia;function ys(Xt,ie){return"key"in Xt&&Xt.key!==void 0&&Xt.key!==null?Xt.key:Xt.dataIndex?Array.isArray(Xt.dataIndex)?Xt.dataIndex.join("."):Xt.dataIndex:ie}function Ds(Xt,ie){return ie?`${ie}-${Xt}`:`${Xt}`}function _s(Xt,ie){return typeof Xt=="function"?Xt(ie):Xt}function Ys(Xt,ie){const Te=_s(Xt,ie);return Object.prototype.toString.call(Te)==="[object Object]"?"":Te}var ln={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"},js=ln,au=yt(31533),su=function(ie,Te){return Ft.createElement(au.Z,(0,Re.Z)({},ie,{ref:Te,icon:js}))},ko=Ft.forwardRef(su),ga=ko,os=yt(56762);function pa(Xt){const ie=Ft.useRef(Xt),Te=(0,os.Z)();return[()=>ie.current,Ie=>{ie.current=Ie,Te()}]}var Fo=yt(3113),sa=yt(24905),bs=yt(38854),no=yt(64165),Ro=yt(20834),Oo=yt(40875),Zi=yt(5112),cs=yt(99682),Ss=yt(56981),dl=yt(92832);function lu(Xt){let{value:ie,onChange:Te,filterSearch:Ie,tablePrefixCls:_e,locale:Ve}=Xt;return Ie?Ft.createElement("div",{className:`${_e}-filter-dropdown-search`},Ft.createElement(dl.default,{prefix:Ft.createElement(Ss.Z,null),placeholder:Ve.filterSearchPlaceholder,onChange:Te,value:ie,htmlSize:1,className:`${_e}-filter-dropdown-search-input`})):null}var wu=lu,Fi=yt(85108);const Ya=Xt=>{const{keyCode:ie}=Xt;ie===Fi.Z.ENTER&&Xt.stopPropagation()};var Jl=Ft.forwardRef((Xt,ie)=>Ft.createElement("div",{className:Xt.className,onClick:Te=>Te.stopPropagation(),onKeyDown:Ya,ref:ie},Xt.children));function uu(Xt){let ie=[];return(Xt||[]).forEach(Te=>{let{value:Ie,children:_e}=Te;ie.push(Ie),_e&&(ie=[].concat((0,Xi.Z)(ie),(0,Xi.Z)(uu(_e))))}),ie}function hu(Xt){return Xt.some(ie=>{let{children:Te}=ie;return Te})}function ho(Xt,ie){return typeof ie=="string"||typeof ie=="number"?ie==null?void 0:ie.toString().toLowerCase().includes(Xt.trim().toLowerCase()):!1}function Sh(Xt){let{filters:ie,prefixCls:Te,filteredKeys:Ie,filterMultiple:_e,searchValue:Ve,filterSearch:Mn}=Xt;return ie.map((En,xn)=>{const ri=String(En.value);if(En.children)return{key:ri||xn,label:En.text,popupClassName:`${Te}-dropdown-submenu`,children:Sh({filters:En.children,prefixCls:Te,filteredKeys:Ie,filterMultiple:_e,searchValue:Ve,filterSearch:Mn})};const jn=_e?sa.default:Zi.ZP,ti={key:En.value!==void 0?ri:xn,label:Ft.createElement(Ft.Fragment,null,Ft.createElement(jn,{checked:Ie.includes(ri)}),Ft.createElement("span",null,En.text))};return Ve.trim()?typeof Mn=="function"?Mn(Ve,En)?ti:null:ho(Ve,En.text)?ti:null:ti})}function El(Xt){var ie,Te;const{tablePrefixCls:Ie,prefixCls:_e,column:Ve,dropdownPrefixCls:Mn,columnKey:En,filterMultiple:xn,filterMode:ri="menu",filterSearch:jn=!1,filterState:ti,triggerFilter:Li,locale:bi,children:yi,getPopupContainer:Yi}=Xt,{filterDropdownOpen:wi,onFilterDropdownOpenChange:rr,filterResetToDefaultFilteredValue:tr,defaultFilteredValue:lr,filterDropdownVisible:Xr,onFilterDropdownVisibleChange:so}=Ve,[pr,Fr]=Ft.useState(!1),bo=!!(ti&&(!((ie=ti.filteredKeys)===null||ie===void 0)&&ie.length||ti.forceFiltered)),ur=ki=>{Fr(ki),rr==null||rr(ki),so==null||so(ki)},Ir=(Te=wi!=null?wi:Xr)!==null&&Te!==void 0?Te:pr,mr=ti==null?void 0:ti.filteredKeys,[Gi,ar]=pa(mr||[]),Rr=ki=>{let{selectedKeys:xr}=ki;ar(xr)},lo=(ki,xr)=>{let{node:Ao,checked:Uo}=xr;Rr(xn?{selectedKeys:ki}:{selectedKeys:Uo&&Ao.key?[Ao.key]:[]})};Ft.useEffect(()=>{pr&&Rr({selectedKeys:mr||[]})},[mr]);const[co,sr]=Ft.useState([]),Eo=ki=>{sr(ki)},[Io,Wo]=Ft.useState(""),jo=ki=>{const{value:xr}=ki.target;Wo(xr)};Ft.useEffect(()=>{pr||Wo("")},[pr]);const ja=ki=>{const xr=ki&&ki.length?ki:null;if(xr===null&&(!ti||!ti.filteredKeys)||(0,ne.Z)(xr,ti==null?void 0:ti.filteredKeys,!0))return null;Li({column:Ve,key:En,filteredKeys:xr})},qo=()=>{ur(!1),ja(Gi())},wo=function(){let{confirm:ki,closeDropdown:xr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ki&&ja([]),xr&&ur(!1),Wo(""),ar(tr?(lr||[]).map(Ao=>String(Ao)):[])},_r=function(){let{closeDropdown:ki}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ki&&ur(!1),ja(Gi())},mo=ki=>{ki&&mr!==void 0&&ar(mr||[]),ur(ki),!ki&&!Ve.filterDropdown&&qo()},Da=ce()({[`${Mn}-menu-without-submenu`]:!hu(Ve.filters||[])}),Pa=ki=>{if(ki.target.checked){const xr=uu(Ve==null?void 0:Ve.filters).map(Ao=>String(Ao));ar(xr)}else ar([])},Ga=ki=>{let{filters:xr}=ki;return(xr||[]).map((Ao,Uo)=>{const Xs=String(Ao.value),As={title:Ao.text,key:Ao.value!==void 0?Xs:Uo};return Ao.children&&(As.children=Ga({filters:Ao.children})),As})},yo=ki=>{var xr;return Object.assign(Object.assign({},ki),{text:ki.title,value:ki.key,children:((xr=ki.children)===null||xr===void 0?void 0:xr.map(Ao=>yo(Ao)))||[]})};let ro;if(typeof Ve.filterDropdown=="function")ro=Ve.filterDropdown({prefixCls:`${Mn}-custom`,setSelectedKeys:ki=>Rr({selectedKeys:ki}),selectedKeys:Gi(),confirm:_r,clearFilters:wo,filters:Ve.filters,visible:Ir,close:()=>{ur(!1)}});else if(Ve.filterDropdown)ro=Ve.filterDropdown;else{const ki=Gi()||[],xr=()=>(Ve.filters||[]).length===0?Ft.createElement(no.Z,{image:no.Z.PRESENTED_IMAGE_SIMPLE,description:bi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ri==="tree"?Ft.createElement(Ft.Fragment,null,Ft.createElement(wu,{filterSearch:jn,value:Io,onChange:jo,tablePrefixCls:Ie,locale:bi}),Ft.createElement("div",{className:`${Ie}-filter-dropdown-tree`},xn?Ft.createElement(sa.default,{checked:ki.length===uu(Ve.filters).length,indeterminate:ki.length>0&&ki.length<uu(Ve.filters).length,className:`${Ie}-filter-dropdown-checkall`,onChange:Pa},bi.filterCheckall):null,Ft.createElement(cs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:xn,checkStrictly:!xn,className:`${Mn}-menu`,onCheck:lo,checkedKeys:ki,selectedKeys:ki,showIcon:!1,treeData:Ga({filters:Ve.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Io.trim()?Uo=>typeof jn=="function"?jn(Io,yo(Uo)):ho(Io,Uo.title):void 0}))):Ft.createElement(Ft.Fragment,null,Ft.createElement(wu,{filterSearch:jn,value:Io,onChange:jo,tablePrefixCls:Ie,locale:bi}),Ft.createElement(Ro.default,{selectable:!0,multiple:xn,prefixCls:`${Mn}-menu`,className:Da,onSelect:Rr,onDeselect:Rr,selectedKeys:ki,getPopupContainer:Yi,openKeys:co,onOpenChange:Eo,items:Sh({filters:Ve.filters||[],filterSearch:jn,prefixCls:_e,filteredKeys:Gi(),filterMultiple:xn,searchValue:Io})})),Ao=()=>tr?(0,ne.Z)((lr||[]).map(Uo=>String(Uo)),ki,!0):ki.length===0;ro=Ft.createElement(Ft.Fragment,null,xr(),Ft.createElement("div",{className:`${_e}-dropdown-btns`},Ft.createElement(Fo.ZP,{type:"link",size:"small",disabled:Ao(),onClick:()=>wo()},bi.filterReset),Ft.createElement(Fo.ZP,{type:"primary",size:"small",onClick:qo},bi.filterConfirm)))}Ve.filterDropdown&&(ro=Ft.createElement(Oo.J,{selectable:void 0},ro));const Po=()=>Ft.createElement(Jl,{className:`${_e}-dropdown`},ro);let Qr;typeof Ve.filterIcon=="function"?Qr=Ve.filterIcon(bo):Ve.filterIcon?Qr=Ve.filterIcon:Qr=Ft.createElement(ga,null);const{direction:Br}=Ft.useContext(Ui.E_);return Ft.createElement("div",{className:`${_e}-column`},Ft.createElement("span",{className:`${Ie}-column-title`},yi),Ft.createElement(bs.Z,{dropdownRender:Po,trigger:["click"],open:Ir,onOpenChange:mo,getPopupContainer:Yi,placement:Br==="rtl"?"bottomLeft":"bottomRight"},Ft.createElement("span",{role:"button",tabIndex:-1,className:ce()(`${_e}-trigger`,{active:bo}),onClick:ki=>{ki.stopPropagation()}},Qr)))}var Ll=El;function ml(Xt,ie,Te){let Ie=[];return(Xt||[]).forEach((_e,Ve)=>{var Mn;const En=Ds(Ve,Te);if(_e.filters||"filterDropdown"in _e||"onFilter"in _e)if("filteredValue"in _e){let xn=_e.filteredValue;"filterDropdown"in _e||(xn=(Mn=xn==null?void 0:xn.map(String))!==null&&Mn!==void 0?Mn:xn),Ie.push({column:_e,key:ys(_e,En),filteredKeys:xn,forceFiltered:_e.filtered})}else Ie.push({column:_e,key:ys(_e,En),filteredKeys:ie&&_e.defaultFilteredValue?_e.defaultFilteredValue:void 0,forceFiltered:_e.filtered});"children"in _e&&(Ie=[].concat((0,Xi.Z)(Ie),(0,Xi.Z)(ml(_e.children,ie,En))))}),Ie}function Zu(Xt,ie,Te,Ie,_e,Ve,Mn,En){return Te.map((xn,ri)=>{const jn=Ds(ri,En),{filterMultiple:ti=!0,filterMode:Li,filterSearch:bi}=xn;let yi=xn;if(yi.filters||yi.filterDropdown){const Yi=ys(yi,jn),wi=Ie.find(rr=>{let{key:tr}=rr;return Yi===tr});yi=Object.assign(Object.assign({},yi),{title:rr=>Ft.createElement(Ll,{tablePrefixCls:Xt,prefixCls:`${Xt}-filter`,dropdownPrefixCls:ie,column:yi,columnKey:Yi,filterState:wi,filterMultiple:ti,filterMode:Li,filterSearch:bi,triggerFilter:Ve,locale:_e,getPopupContainer:Mn},_s(xn.title,rr))})}return"children"in yi&&(yi=Object.assign(Object.assign({},yi),{children:Zu(Xt,ie,yi.children,Ie,_e,Ve,Mn,jn)})),yi})}function Pu(Xt){const ie={};return Xt.forEach(Te=>{let{key:Ie,filteredKeys:_e,column:Ve}=Te;const{filters:Mn,filterDropdown:En}=Ve;if(En)ie[Ie]=_e||null;else if(Array.isArray(_e)){const xn=uu(Mn);ie[Ie]=xn.filter(ri=>_e.includes(String(ri)))}else ie[Ie]=null}),ie}function vl(Xt,ie){return ie.reduce((Te,Ie)=>{const{column:{onFilter:_e,filters:Ve},filteredKeys:Mn}=Ie;return _e&&Mn&&Mn.length?Te.filter(En=>Mn.some(xn=>{const ri=uu(Ve),jn=ri.findIndex(Li=>String(Li)===String(xn)),ti=jn!==-1?ri[jn]:xn;return _e(ti,En)})):Te},Xt)}const Ml=Xt=>Xt.flatMap(ie=>"children"in ie?[ie].concat((0,Xi.Z)(Ml(ie.children||[]))):[ie]);function Bh(Xt){let{prefixCls:ie,dropdownPrefixCls:Te,mergedColumns:Ie,onFilterChange:_e,getPopupContainer:Ve,locale:Mn}=Xt;const En=Ft.useMemo(()=>Ml(Ie||[]),[Ie]),[xn,ri]=Ft.useState(()=>ml(En,!0)),jn=Ft.useMemo(()=>{const yi=ml(En,!1);if(yi.length===0)return yi;let Yi=!0,wi=!0;if(yi.forEach(rr=>{let{filteredKeys:tr}=rr;tr!==void 0?Yi=!1:wi=!1}),Yi){const rr=(En||[]).map((tr,lr)=>ys(tr,Ds(lr)));return xn.filter(tr=>{let{key:lr}=tr;return rr.includes(lr)}).map(tr=>{const lr=En[rr.findIndex(Xr=>Xr===tr.key)];return Object.assign(Object.assign({},tr),{column:Object.assign(Object.assign({},tr.column),lr),forceFiltered:lr.filtered})})}return yi},[En,xn]),ti=Ft.useMemo(()=>Pu(jn),[jn]),Li=yi=>{const Yi=jn.filter(wi=>{let{key:rr}=wi;return rr!==yi.key});Yi.push(yi),ri(Yi),_e(Pu(Yi),Yi)};return[yi=>Zu(ie,Te,yi,jn,Mn,Li,Ve),jn,ti]}var _h=Bh;function Oh(Xt,ie,Te){const Ie=Ft.useRef({});function _e(Ve){if(!Ie.current||Ie.current.data!==Xt||Ie.current.childrenColumnName!==ie||Ie.current.getRowKey!==Te){let En=function(xn){xn.forEach((ri,jn)=>{const ti=Te(ri,jn);Mn.set(ti,ri),ri&&typeof ri=="object"&&ie in ri&&En(ri[ie]||[])})};const Mn=new Map;En(Xt),Ie.current={data:Xt,childrenColumnName:ie,kvMap:Mn,getRowKey:Te}}return Ie.current.kvMap.get(Ve)}return[_e]}var gd=yt(50371),Ih=function(Xt,ie){var Te={};for(var Ie in Xt)Object.prototype.hasOwnProperty.call(Xt,Ie)&&ie.indexOf(Ie)<0&&(Te[Ie]=Xt[Ie]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ie=Object.getOwnPropertySymbols(Xt);_e<Ie.length;_e++)ie.indexOf(Ie[_e])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Ie[_e])&&(Te[Ie[_e]]=Xt[Ie[_e]]);return Te};const Gu=10;function Dl(Xt,ie){const Te={current:Xt.current,pageSize:Xt.pageSize};return Object.keys(ie&&typeof ie=="object"?ie:{}).forEach(_e=>{const Ve=Xt[_e];typeof Ve!="function"&&(Te[_e]=Ve)}),Te}function Bl(Xt,ie,Te){const Ie=Te&&typeof Te=="object"?Te:{},{total:_e=0}=Ie,Ve=Ih(Ie,["total"]),[Mn,En]=(0,Ft.useState)(()=>({current:"defaultCurrent"in Ve?Ve.defaultCurrent:1,pageSize:"defaultPageSize"in Ve?Ve.defaultPageSize:Gu})),xn=(0,gd.Z)(Mn,Ve,{total:_e>0?_e:Xt}),ri=Math.ceil((_e||Xt)/xn.pageSize);xn.current>ri&&(xn.current=ri||1);const jn=(Li,bi)=>{En({current:Li!=null?Li:1,pageSize:bi||xn.pageSize})},ti=(Li,bi)=>{var yi;Te&&((yi=Te.onChange)===null||yi===void 0||yi.call(Te,Li,bi)),jn(Li,bi),ie(Li,bi||(xn==null?void 0:xn.pageSize))};return Te===!1?[{},()=>{}]:[Object.assign(Object.assign({},xn),{onChange:ti}),jn]}var pd=Bl,td=yt(76995),Cu=yt(35654),Bo=yt(90782),ha=yt(71430),cl=yt(35788);const xs={},ws="SELECT_ALL",_a="SELECT_INVERT",ls="SELECT_NONE",Ls=[],Ps=(Xt,ie)=>{let Te=[];return(ie||[]).forEach(Ie=>{Te.push(Ie),Ie&&typeof Ie=="object"&&Xt in Ie&&(Te=[].concat((0,Xi.Z)(Te),(0,Xi.Z)(Ps(Xt,Ie[Xt]))))}),Te};var Ql=(Xt,ie)=>{const{preserveSelectedRowKeys:Te,selectedRowKeys:Ie,defaultSelectedRowKeys:_e,getCheckboxProps:Ve,onChange:Mn,onSelect:En,onSelectAll:xn,onSelectInvert:ri,onSelectNone:jn,onSelectMultiple:ti,columnWidth:Li,type:bi,selections:yi,fixed:Yi,renderCell:wi,hideSelectAll:rr,checkStrictly:tr=!0}=ie||{},{prefixCls:lr,data:Xr,pageData:so,getRecordByKey:pr,getRowKey:Fr,expandType:bo,childrenColumnName:ur,locale:Ir,getPopupContainer:mr}=Xt,[Gi,ar]=(0,cl.Z)(Ie||_e||Ls,{value:Ie}),Rr=Ft.useRef(new Map),lo=(0,Ft.useCallback)(yo=>{if(Te){const ro=new Map;yo.forEach(Po=>{let Qr=pr(Po);!Qr&&Rr.current.has(Po)&&(Qr=Rr.current.get(Po)),ro.set(Po,Qr)}),Rr.current=ro}},[pr,Te]);Ft.useEffect(()=>{lo(Gi)},[Gi]);const{keyEntities:co}=(0,Ft.useMemo)(()=>{if(tr)return{keyEntities:null};let yo=Xr;if(Te){const ro=new Set(Xr.map((Qr,Br)=>Fr(Qr,Br))),Po=Array.from(Rr.current).reduce((Qr,Br)=>{let[ki,xr]=Br;return ro.has(ki)?Qr:Qr.concat(xr)},[]);yo=[].concat((0,Xi.Z)(yo),(0,Xi.Z)(Po))}return(0,ha.I8)(yo,{externalGetKey:Fr,childrenPropName:ur})},[Xr,Fr,tr,ur,Te]),sr=(0,Ft.useMemo)(()=>Ps(ur,so),[ur,so]),Eo=(0,Ft.useMemo)(()=>{const yo=new Map;return sr.forEach((ro,Po)=>{const Qr=Fr(ro,Po),Br=(Ve?Ve(ro):null)||{};yo.set(Qr,Br)}),yo},[sr,Fr,Ve]),Io=(0,Ft.useCallback)(yo=>{var ro;return!!(!((ro=Eo.get(Fr(yo)))===null||ro===void 0)&&ro.disabled)},[Eo,Fr]),[Wo,jo]=(0,Ft.useMemo)(()=>{if(tr)return[Gi||[],[]];const{checkedKeys:yo,halfCheckedKeys:ro}=(0,Bo.S)(Gi,!0,co,Io);return[yo||[],ro]},[Gi,tr,co,Io]),ja=(0,Ft.useMemo)(()=>{const yo=bi==="radio"?Wo.slice(0,1):Wo;return new Set(yo)},[Wo,bi]),qo=(0,Ft.useMemo)(()=>bi==="radio"?new Set:new Set(jo),[jo,bi]),[wo,_r]=(0,Ft.useState)(null);Ft.useEffect(()=>{ie||ar(Ls)},[!!ie]);const mo=(0,Ft.useCallback)((yo,ro)=>{let Po,Qr;lo(yo),Te?(Po=yo,Qr=yo.map(Br=>Rr.current.get(Br))):(Po=[],Qr=[],yo.forEach(Br=>{const ki=pr(Br);ki!==void 0&&(Po.push(Br),Qr.push(ki))})),ar(Po),Mn==null||Mn(Po,Qr,{type:ro})},[ar,pr,Mn,Te]),Da=(0,Ft.useCallback)((yo,ro,Po,Qr)=>{if(En){const Br=Po.map(ki=>pr(ki));En(pr(yo),ro,Br,Qr)}mo(Po,"single")},[En,pr,mo]),Pa=(0,Ft.useMemo)(()=>!yi||rr?null:(yi===!0?[ws,_a,ls]:yi).map(ro=>ro===ws?{key:"all",text:Ir.selectionAll,onSelect(){mo(Xr.map((Po,Qr)=>Fr(Po,Qr)).filter(Po=>{const Qr=Eo.get(Po);return!(Qr!=null&&Qr.disabled)||ja.has(Po)}),"all")}}:ro===_a?{key:"invert",text:Ir.selectInvert,onSelect(){const Po=new Set(ja);so.forEach((Br,ki)=>{const xr=Fr(Br,ki),Ao=Eo.get(xr);Ao!=null&&Ao.disabled||(Po.has(xr)?Po.delete(xr):Po.add(xr))});const Qr=Array.from(Po);ri&&ri(Qr),mo(Qr,"invert")}}:ro===ls?{key:"none",text:Ir.selectNone,onSelect(){jn==null||jn(),mo(Array.from(ja).filter(Po=>{const Qr=Eo.get(Po);return Qr==null?void 0:Qr.disabled}),"none")}}:ro).map(ro=>Object.assign(Object.assign({},ro),{onSelect:function(){for(var Po,Qr,Br=arguments.length,ki=new Array(Br),xr=0;xr<Br;xr++)ki[xr]=arguments[xr];(Qr=ro.onSelect)===null||Qr===void 0||(Po=Qr).call.apply(Po,[ro].concat(ki)),_r(null)}})),[yi,ja,so,Fr,ri,mo]);return[(0,Ft.useCallback)(yo=>{var ro;if(!ie)return yo.filter(Ma=>Ma!==xs);let Po=(0,Xi.Z)(yo);const Qr=new Set(ja),Br=sr.map(Fr).filter(Ma=>!Eo.get(Ma).disabled),ki=Br.every(Ma=>Qr.has(Ma)),xr=Br.some(Ma=>Qr.has(Ma)),Ao=()=>{const Ma=[];ki?Br.forEach(Ka=>{Qr.delete(Ka),Ma.push(Ka)}):Br.forEach(Ka=>{Qr.has(Ka)||(Qr.add(Ka),Ma.push(Ka))});const Ha=Array.from(Qr);xn==null||xn(!ki,Ha.map(Ka=>pr(Ka)),Ma.map(Ka=>pr(Ka))),mo(Ha,"all"),_r(null)};let Uo;if(bi!=="radio"){let Ma;if(Pa){const na={getPopupContainer:mr,items:Pa.map((Xa,Hs)=>{const{key:Oa,text:So,onSelect:gs}=Xa;return{key:Oa!=null?Oa:Hs,onClick:()=>{gs==null||gs(Br)},label:So}})};Ma=Ft.createElement("div",{className:`${lr}-selection-extra`},Ft.createElement(bs.Z,{menu:na,getPopupContainer:mr},Ft.createElement("span",null,Ft.createElement(td.Z,null))))}const Ha=sr.map((na,Xa)=>{const Hs=Fr(na,Xa),Oa=Eo.get(Hs)||{};return Object.assign({checked:Qr.has(Hs)},Oa)}).filter(na=>{let{disabled:Xa}=na;return Xa}),Ka=!!Ha.length&&Ha.length===sr.length,us=Ka&&Ha.every(na=>{let{checked:Xa}=na;return Xa}),Os=Ka&&Ha.some(na=>{let{checked:Xa}=na;return Xa});Uo=!rr&&Ft.createElement("div",{className:`${lr}-selection`},Ft.createElement(sa.default,{checked:Ka?us:!!sr.length&&ki,indeterminate:Ka?!us&&Os:!ki&&xr,onChange:Ao,disabled:sr.length===0||Ka,"aria-label":Ma?"Custom selection":"Select all",skipGroup:!0}),Ma)}let Xs;bi==="radio"?Xs=(Ma,Ha,Ka)=>{const us=Fr(Ha,Ka),Os=Qr.has(us);return{node:Ft.createElement(Zi.ZP,Object.assign({},Eo.get(us),{checked:Os,onClick:na=>na.stopPropagation(),onChange:na=>{Qr.has(us)||Da(us,!0,[us],na.nativeEvent)}})),checked:Os}}:Xs=(Ma,Ha,Ka)=>{var us;const Os=Fr(Ha,Ka),na=Qr.has(Os),Xa=qo.has(Os),Hs=Eo.get(Os);let Oa;return bo==="nest"?Oa=Xa:Oa=(us=Hs==null?void 0:Hs.indeterminate)!==null&&us!==void 0?us:Xa,{node:Ft.createElement(sa.default,Object.assign({},Hs,{indeterminate:Oa,checked:na,skipGroup:!0,onClick:So=>So.stopPropagation(),onChange:So=>{let{nativeEvent:gs}=So;const{shiftKey:Is}=gs;let bu=-1,$l=-1;if(Is&&tr){const Wa=new Set([wo,Os]);Br.some((ul,ss)=>{if(Wa.has(ul))if(bu===-1)bu=ss;else return $l=ss,!0;return!1})}if($l!==-1&&bu!==$l&&tr){const Wa=Br.slice(bu,$l+1),ul=[];na?Wa.forEach(ns=>{Qr.has(ns)&&(ul.push(ns),Qr.delete(ns))}):Wa.forEach(ns=>{Qr.has(ns)||(ul.push(ns),Qr.add(ns))});const ss=Array.from(Qr);ti==null||ti(!na,ss.map(ns=>pr(ns)),ul.map(ns=>pr(ns))),mo(ss,"multiple")}else{const Wa=Wo;if(tr){const ul=na?(0,Cu._5)(Wa,Os):(0,Cu.L0)(Wa,Os);Da(Os,!na,ul,gs)}else{const ul=(0,Bo.S)([].concat((0,Xi.Z)(Wa),[Os]),!0,co,Io),{checkedKeys:ss,halfCheckedKeys:ns}=ul;let du=ss;if(na){const ah=new Set(ss);ah.delete(Os),du=(0,Bo.S)(Array.from(ah),{checked:!1,halfCheckedKeys:ns},co,Io).checkedKeys}Da(Os,!na,du,gs)}}_r(na?null:Os)}})),checked:na}};const As=(Ma,Ha,Ka)=>{const{node:us,checked:Os}=Xs(Ma,Ha,Ka);return wi?wi(Os,Ha,Ka,us):us};if(!Po.includes(xs))if(Po.findIndex(Ma=>{var Ha;return((Ha=Ma[vr])===null||Ha===void 0?void 0:Ha.columnType)==="EXPAND_COLUMN"})===0){const[Ma,...Ha]=Po;Po=[Ma,xs].concat((0,Xi.Z)(Ha))}else Po=[xs].concat((0,Xi.Z)(Po));const sl=Po.indexOf(xs);Po=Po.filter((Ma,Ha)=>Ma!==xs||Ha===sl);const ya=Po[sl-1],Ba=Po[sl+1];let fo=Yi;fo===void 0&&((Ba==null?void 0:Ba.fixed)!==void 0?fo=Ba.fixed:(ya==null?void 0:ya.fixed)!==void 0&&(fo=ya.fixed)),fo&&ya&&((ro=ya[vr])===null||ro===void 0?void 0:ro.columnType)==="EXPAND_COLUMN"&&ya.fixed===void 0&&(ya.fixed=fo);const Bs=ce()(`${lr}-selection-col`,{[`${lr}-selection-col-with-dropdown`]:yi&&bi==="checkbox"}),ll={fixed:fo,width:Li,className:`${lr}-selection-column`,title:ie.columnTitle||Uo,render:As,onCell:ie.onCell,[vr]:{className:Bs}};return Po.map(Ma=>Ma===xs?ll:Ma)},[Fr,sr,ie,Wo,ja,qo,Li,Pa,bo,wo,Eo,ti,Da,Io]),ja]},fs=yt(86504),ic=yt(14051),md=yt(6848);const ed="ascend",kr="descend";function nd(Xt){return typeof Xt.sorter=="object"&&typeof Xt.sorter.multiple=="number"?Xt.sorter.multiple:!1}function Ne(Xt){return typeof Xt=="function"?Xt:Xt&&typeof Xt=="object"&&Xt.compare?Xt.compare:!1}function ni(Xt,ie){return ie?Xt[Xt.indexOf(ie)+1]:Xt[0]}function Ic(Xt,ie,Te){let Ie=[];function _e(Ve,Mn){Ie.push({column:Ve,key:ys(Ve,Mn),multiplePriority:nd(Ve),sortOrder:Ve.sortOrder})}return(Xt||[]).forEach((Ve,Mn)=>{const En=Ds(Mn,Te);Ve.children?("sortOrder"in Ve&&_e(Ve,En),Ie=[].concat((0,Xi.Z)(Ie),(0,Xi.Z)(Ic(Ve.children,ie,En)))):Ve.sorter&&("sortOrder"in Ve?_e(Ve,En):ie&&Ve.defaultSortOrder&&Ie.push({column:Ve,key:ys(Ve,En),multiplePriority:nd(Ve),sortOrder:Ve.defaultSortOrder}))}),Ie}function rc(Xt,ie,Te,Ie,_e,Ve,Mn,En){return(ie||[]).map((xn,ri)=>{const jn=Ds(ri,En);let ti=xn;if(ti.sorter){const Li=ti.sortDirections||_e,bi=ti.showSorterTooltip===void 0?Mn:ti.showSorterTooltip,yi=ys(ti,jn),Yi=Te.find(bo=>{let{key:ur}=bo;return ur===yi}),wi=Yi?Yi.sortOrder:null,rr=ni(Li,wi);let tr;if(xn.sortIcon)tr=xn.sortIcon({sortOrder:wi});else{const bo=Li.includes(ed)&&Ft.createElement(ic.Z,{className:ce()(`${Xt}-column-sorter-up`,{active:wi===ed})}),ur=Li.includes(kr)&&Ft.createElement(fs.Z,{className:ce()(`${Xt}-column-sorter-down`,{active:wi===kr})});tr=Ft.createElement("span",{className:ce()(`${Xt}-column-sorter`,{[`${Xt}-column-sorter-full`]:!!(bo&&ur)})},Ft.createElement("span",{className:`${Xt}-column-sorter-inner`,"aria-hidden":"true"},bo,ur))}const{cancelSort:lr,triggerAsc:Xr,triggerDesc:so}=Ve||{};let pr=lr;rr===kr?pr=so:rr===ed&&(pr=Xr);const Fr=typeof bi=="object"?bi:{title:pr};ti=Object.assign(Object.assign({},ti),{className:ce()(ti.className,{[`${Xt}-column-sort`]:wi}),title:bo=>{const ur=Ft.createElement("div",{className:`${Xt}-column-sorters`},Ft.createElement("span",{className:`${Xt}-column-title`},_s(xn.title,bo)),tr);return bi?Ft.createElement(md.Z,Object.assign({},Fr),ur):ur},onHeaderCell:bo=>{const ur=xn.onHeaderCell&&xn.onHeaderCell(bo)||{},Ir=ur.onClick,mr=ur.onKeyDown;ur.onClick=Rr=>{Ie({column:xn,key:yi,sortOrder:rr,multiplePriority:nd(xn)}),Ir==null||Ir(Rr)},ur.onKeyDown=Rr=>{Rr.keyCode===Fi.Z.ENTER&&(Ie({column:xn,key:yi,sortOrder:rr,multiplePriority:nd(xn)}),mr==null||mr(Rr))};const Gi=Ys(xn.title,{}),ar=Gi==null?void 0:Gi.toString();return wi?ur["aria-sort"]=wi==="ascend"?"ascending":"descending":ur["aria-label"]=ar||"",ur.className=ce()(ur.className,`${Xt}-column-has-sorters`),ur.tabIndex=0,xn.ellipsis&&(ur.title=(Gi!=null?Gi:"").toString()),ur}})}return"children"in ti&&(ti=Object.assign(Object.assign({},ti),{children:rc(Xt,ti.children,Te,Ie,_e,Ve,Mn,jn)})),ti})}function rh(Xt){const{column:ie,sortOrder:Te}=Xt;return{column:ie,order:Te,field:ie.dataIndex,columnKey:ie.key}}function oh(Xt){const ie=Xt.filter(Te=>{let{sortOrder:Ie}=Te;return Ie}).map(rh);return ie.length===0&&Xt.length?Object.assign(Object.assign({},rh(Xt[Xt.length-1])),{column:void 0}):ie.length<=1?ie[0]||{}:ie}function xh(Xt,ie,Te){const Ie=ie.slice().sort((Mn,En)=>En.multiplePriority-Mn.multiplePriority),_e=Xt.slice(),Ve=Ie.filter(Mn=>{let{column:{sorter:En},sortOrder:xn}=Mn;return Ne(En)&&xn});return Ve.length?_e.sort((Mn,En)=>{for(let xn=0;xn<Ve.length;xn+=1){const ri=Ve[xn],{column:{sorter:jn},sortOrder:ti}=ri,Li=Ne(jn);if(Li&&ti){const bi=Li(Mn,En,ti);if(bi!==0)return ti===ed?bi:-bi}}return 0}).map(Mn=>{const En=Mn[Te];return En?Object.assign(Object.assign({},Mn),{[Te]:xh(En,ie,Te)}):Mn}):_e}function oc(Xt){let{prefixCls:ie,mergedColumns:Te,onSorterChange:Ie,sortDirections:_e,tableLocale:Ve,showSorterTooltip:Mn}=Xt;const[En,xn]=Ft.useState(Ic(Te,!0)),ri=Ft.useMemo(()=>{let yi=!0;const Yi=Ic(Te,!1);if(!Yi.length)return En;const wi=[];function rr(lr){yi?wi.push(lr):wi.push(Object.assign(Object.assign({},lr),{sortOrder:null}))}let tr=null;return Yi.forEach(lr=>{tr===null?(rr(lr),lr.sortOrder&&(lr.multiplePriority===!1?yi=!1:tr=!0)):(tr&&lr.multiplePriority!==!1||(yi=!1),rr(lr))}),wi},[Te,En]),jn=Ft.useMemo(()=>{const yi=ri.map(Yi=>{let{column:wi,sortOrder:rr}=Yi;return{column:wi,order:rr}});return{sortColumns:yi,sortColumn:yi[0]&&yi[0].column,sortOrder:yi[0]&&yi[0].order}},[ri]);function ti(yi){let Yi;yi.multiplePriority===!1||!ri.length||ri[0].multiplePriority===!1?Yi=[yi]:Yi=[].concat((0,Xi.Z)(ri.filter(wi=>{let{key:rr}=wi;return rr!==yi.key})),[yi]),xn(Yi),Ie(oh(Yi),Yi)}return[yi=>rc(ie,yi,ri,ti,_e,Ve,Mn),ri,jn,()=>oh(ri)]}function Bd(Xt,ie){return Xt.map(Te=>{const Ie=Object.assign({},Te);return Ie.title=_s(Te.title,ie),"children"in Ie&&(Ie.children=Bd(Ie.children,ie)),Ie})}function Cs(Xt){return[Ft.useCallback(Te=>Bd(Te,Xt),[Xt])]}var vo=Dr((Xt,ie)=>{const{_renderTimes:Te}=Xt,{_renderTimes:Ie}=ie;return Te!==Ie}),il=da((Xt,ie)=>{const{_renderTimes:Te}=Xt,{_renderTimes:Ie}=ie;return Te!==Ie}),yl=yt(64993),as=yt(17313),ta=yt(83116),Us=yt(37613),Kt=Xt=>{const{componentCls:ie}=Xt,Te=`${Xt.lineWidth}px ${Xt.lineType} ${Xt.tableBorderColor}`,Ie=(_e,Ve,Mn)=>({[`&${ie}-${_e}`]:{[`> ${ie}-container`]:{[`> ${ie}-content, > ${ie}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ie}-expanded-row-fixed`]:{margin:`-${Ve}px -${Mn+Xt.lineWidth}px`}}}}}});return{[`${ie}-wrapper`]:{[`${ie}${ie}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ie}-title`]:{border:Te,borderBottom:0},[`> ${ie}-container`]:{borderInlineStart:Te,borderTop:Te,[`
|
|
|
> ${ie}-content,
|
|
|
> ${ie}-header,
|
|
|
> ${ie}-body,
|
|
|
> ${ie}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Te},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Te},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ie}-cell-fix-right-first::after`]:{borderInlineEnd:Te}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ie}-expanded-row-fixed`]:{margin:`-${Xt.tablePaddingVertical}px -${Xt.tablePaddingHorizontal+Xt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Xt.lineWidth,bottom:0,borderInlineEnd:Te,content:'""'}}}}}},[`&${ie}-scroll-horizontal`]:{[`> ${ie}-container > ${ie}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ie}-expanded-row,
|
|
|
> tr${ie}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ie("middle",Xt.tablePaddingVerticalMiddle,Xt.tablePaddingHorizontalMiddle)),Ie("small",Xt.tablePaddingVerticalSmall,Xt.tablePaddingHorizontalSmall)),{[`> ${ie}-footer`]:{border:Te,borderTop:0}}),[`${ie}-cell`]:{[`${ie}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Xt.lineWidth}px 0 ${Xt.lineWidth}px ${Xt.tableHeaderBg}`}},[`${ie}-bordered ${ie}-cell-scrollbar`]:{borderInlineEnd:Te}}}},ze=Xt=>{const{componentCls:ie}=Xt;return{[`${ie}-wrapper`]:{[`${ie}-cell-ellipsis`]:Object.assign(Object.assign({},as.vS),{wordBreak:"keep-all",[`
|
|
|
&${ie}-cell-fix-left-last,
|
|
|
&${ie}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ie}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ie}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dn=Xt=>{const{componentCls:ie}=Xt;return{[`${ie}-wrapper`]:{[`${ie}-tbody > tr${ie}-placeholder`]:{textAlign:"center",color:Xt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Xt.colorBgContainer}}}}},mn=yt(15969),Qn=Xt=>{const{componentCls:ie,antCls:Te,controlInteractiveSize:Ie,motionDurationSlow:_e,lineWidth:Ve,paddingXS:Mn,lineType:En,tableBorderColor:xn,tableExpandIconBg:ri,tableExpandColumnWidth:jn,borderRadius:ti,fontSize:Li,fontSizeSM:bi,lineHeight:yi,tablePaddingVertical:Yi,tablePaddingHorizontal:wi,tableExpandedRowBg:rr,paddingXXS:tr}=Xt,lr=Ie/2-Ve,Xr=lr*2+Ve*3,so=`${Ve}px ${En} ${xn}`,pr=tr-Ve;return{[`${ie}-wrapper`]:{[`${ie}-expand-icon-col`]:{width:jn},[`${ie}-row-expand-icon-cell`]:{textAlign:"center",[`${ie}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ie}-row-indent`]:{height:1,float:"left"},[`${ie}-row-expand-icon`]:Object.assign(Object.assign({},(0,mn.N)(Xt)),{position:"relative",float:"left",boxSizing:"border-box",width:Xr,height:Xr,padding:0,color:"inherit",lineHeight:`${Xr}px`,background:ri,border:so,borderRadius:ti,transform:`scale(${Ie/Xr})`,transition:`all ${_e}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${_e} ease-out`,content:'""'},"&::before":{top:lr,insetInlineEnd:pr,insetInlineStart:pr,height:Ve},"&::after":{top:pr,bottom:pr,insetInlineStart:lr,width:Ve,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ie}-row-indent + ${ie}-row-expand-icon`]:{marginTop:(Li*yi-Ve*3)/2-Math.ceil((bi*1.4-Ve*3)/2),marginInlineEnd:Mn},[`tr${ie}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:rr}},[`${Te}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ie}-expanded-row-fixed`]:{position:"relative",margin:`-${Yi}px -${wi}px`,padding:`${Yi}px ${wi}px`}}}},Ri=Xt=>{const{componentCls:ie,antCls:Te,iconCls:Ie,tableFilterDropdownWidth:_e,tableFilterDropdownSearchWidth:Ve,paddingXXS:Mn,paddingXS:En,colorText:xn,lineWidth:ri,lineType:jn,tableBorderColor:ti,tableHeaderIconColor:Li,fontSizeSM:bi,tablePaddingHorizontal:yi,borderRadius:Yi,motionDurationSlow:wi,colorTextDescription:rr,colorPrimary:tr,tableHeaderFilterActiveBg:lr,colorTextDisabled:Xr,tableFilterDropdownBg:so,tableFilterDropdownHeight:pr,controlItemBgHover:Fr,controlItemBgActive:bo,boxShadowSecondary:ur,filterDropdownMenuBg:Ir}=Xt,mr=`${Te}-dropdown`,Gi=`${ie}-filter-dropdown`,ar=`${Te}-tree`,Rr=`${ri}px ${jn} ${ti}`;return[{[`${ie}-wrapper`]:{[`${ie}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ie}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Mn,marginInline:`${Mn}px ${-yi/2}px`,padding:`0 ${Mn}px`,color:Li,fontSize:bi,borderRadius:Yi,cursor:"pointer",transition:`all ${wi}`,"&:hover":{color:rr,background:lr},"&.active":{color:tr}}}},{[`${Te}-dropdown`]:{[Gi]:Object.assign(Object.assign({},(0,as.Wf)(Xt)),{minWidth:_e,backgroundColor:so,borderRadius:Yi,boxShadow:ur,overflow:"hidden",[`${mr}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ir,"&:empty::after":{display:"block",padding:`${En}px 0`,color:Xr,fontSize:bi,textAlign:"center",content:'"Not Found"'}},[`${Gi}-tree`]:{paddingBlock:`${En}px 0`,paddingInline:En,[ar]:{padding:0},[`${ar}-treenode ${ar}-node-content-wrapper:hover`]:{backgroundColor:Fr},[`${ar}-treenode-checkbox-checked ${ar}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:bo}}},[`${Gi}-search`]:{padding:En,borderBottom:Rr,"&-input":{input:{minWidth:Ve},[Ie]:{color:Xr}}},[`${Gi}-checkall`]:{width:"100%",marginBottom:Mn,marginInlineStart:Mn},[`${Gi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${En-ri}px ${En}px`,overflow:"hidden",borderTop:Rr}})}},{[`${Te}-dropdown ${Gi}, ${Gi}-submenu`]:{[`${Te}-checkbox-wrapper + span`]:{paddingInlineStart:En,color:xn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Mi=Xt=>{const{componentCls:ie,lineWidth:Te,colorSplit:Ie,motionDurationSlow:_e,zIndexTableFixed:Ve,tableBg:Mn,zIndexTableSticky:En}=Xt,xn=Ie;return{[`${ie}-wrapper`]:{[`
|
|
|
${ie}-cell-fix-left,
|
|
|
${ie}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ve,background:Mn},[`
|
|
|
${ie}-cell-fix-left-first::after,
|
|
|
${ie}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Te,width:30,transform:"translateX(100%)",transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},[`${ie}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ie}-cell-fix-right-first::after,
|
|
|
${ie}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Te,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},[`${ie}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:En+1,width:30,transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ie}-ping-left`]:{[`&:not(${ie}-has-fix-left) ${ie}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${xn}`}},[`
|
|
|
${ie}-cell-fix-left-first::after,
|
|
|
${ie}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${xn}`},[`${ie}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ie}-ping-right`]:{[`&:not(${ie}-has-fix-right) ${ie}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${xn}`}},[`
|
|
|
${ie}-cell-fix-right-first::after,
|
|
|
${ie}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${xn}`}}}}},Ji=Xt=>{const{componentCls:ie,antCls:Te}=Xt;return{[`${ie}-wrapper`]:{[`${ie}-pagination${Te}-pagination`]:{margin:`${Xt.margin}px 0`},[`${ie}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Xt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ai=Xt=>{const{componentCls:ie,tableRadius:Te}=Xt;return{[`${ie}-wrapper`]:{[ie]:{[`${ie}-title, ${ie}-header`]:{borderRadius:`${Te}px ${Te}px 0 0`},[`${ie}-title + ${ie}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ie}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Te,borderStartEndRadius:Te,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Te},"> *:last-child":{borderStartEndRadius:Te}}},"&-footer":{borderRadius:`0 0 ${Te}px ${Te}px`}}}}},jr=Xt=>{const{componentCls:ie}=Xt;return{[`${ie}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ie}-pagination-left`]:{justifyContent:"flex-end"},[`${ie}-pagination-right`]:{justifyContent:"flex-start"},[`${ie}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ie}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ie}-row-indent`]:{float:"right"}}}}},Yr=Xt=>{const{componentCls:ie,antCls:Te,iconCls:Ie,fontSizeIcon:_e,padding:Ve,paddingXS:Mn,tableHeaderIconColor:En,tableHeaderIconColorHover:xn,tableSelectionColumnWidth:ri}=Xt;return{[`${ie}-wrapper`]:{[`${ie}-selection-col`]:{width:ri,[`&${ie}-selection-col-with-dropdown`]:{width:ri+_e+Ve/4}},[`${ie}-bordered ${ie}-selection-col`]:{width:ri+Mn*2,[`&${ie}-selection-col-with-dropdown`]:{width:ri+_e+Ve/4+Mn*2}},[`
|
|
|
table tr th${ie}-selection-column,
|
|
|
table tr td${ie}-selection-column
|
|
|
`]:{paddingInlineEnd:Xt.paddingXS,paddingInlineStart:Xt.paddingXS,textAlign:"center",[`${Te}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ie}-selection-column${ie}-cell-fix-left`]:{zIndex:Xt.zIndexTableFixed+1},[`table tr th${ie}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ie}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ie}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Xt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Xt.tablePaddingHorizontal/4}px`,[Ie]:{color:En,fontSize:_e,verticalAlign:"baseline","&:hover":{color:xn}}}}}},Hr=Xt=>{const{componentCls:ie}=Xt,Te=(Ie,_e,Ve,Mn)=>({[`${ie}${ie}-${Ie}`]:{fontSize:Mn,[`
|
|
|
${ie}-title,
|
|
|
${ie}-footer,
|
|
|
${ie}-cell,
|
|
|
${ie}-thead > tr > th,
|
|
|
${ie}-tbody > tr > th,
|
|
|
${ie}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${_e}px ${Ve}px`},[`${ie}-filter-trigger`]:{marginInlineEnd:`-${Ve/2}px`},[`${ie}-expanded-row-fixed`]:{margin:`-${_e}px -${Ve}px`},[`${ie}-tbody`]:{[`${ie}-wrapper:only-child ${ie}`]:{marginBlock:`-${_e}px`,marginInline:`${Xt.tableExpandColumnWidth-Ve}px -${Ve}px`}},[`${ie}-selection-column`]:{paddingInlineStart:`${Ve/4}px`}}});return{[`${ie}-wrapper`]:Object.assign(Object.assign({},Te("middle",Xt.tablePaddingVerticalMiddle,Xt.tablePaddingHorizontalMiddle,Xt.tableFontSizeMiddle)),Te("small",Xt.tablePaddingVerticalSmall,Xt.tablePaddingHorizontalSmall,Xt.tableFontSizeSmall))}},Yo=Xt=>{const{componentCls:ie,marginXXS:Te,fontSizeIcon:Ie,tableHeaderIconColor:_e,tableHeaderIconColorHover:Ve}=Xt;return{[`${ie}-wrapper`]:{[`${ie}-thead th${ie}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Xt.motionDurationSlow}`,"&:hover":{background:Xt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Xt.colorPrimary},[`
|
|
|
&${ie}-cell-fix-left:hover,
|
|
|
&${ie}-cell-fix-right:hover
|
|
|
`]:{background:Xt.tableFixedHeaderSortActiveBg}},[`${ie}-thead th${ie}-column-sort`]:{background:Xt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ie}-column-sort`]:{background:Xt.tableBodySortBg},[`${ie}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ie}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ie}-column-sorter`]:{marginInlineStart:Te,color:_e,fontSize:0,transition:`color ${Xt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ie,"&.active":{color:Xt.colorPrimary}},[`${ie}-column-sorter-up + ${ie}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ie}-column-sorters:hover ${ie}-column-sorter`]:{color:Ve}}}},ea=Xt=>{const{componentCls:ie,opacityLoading:Te,tableScrollThumbBg:Ie,tableScrollThumbBgHover:_e,tableScrollThumbSize:Ve,tableScrollBg:Mn,zIndexTableSticky:En,stickyScrollBarBorderRadius:xn}=Xt,ri=`${Xt.lineWidth}px ${Xt.lineType} ${Xt.tableBorderColor}`;return{[`${ie}-wrapper`]:{[`${ie}-sticky`]:{"&-holder":{position:"sticky",zIndex:En,background:Xt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ve}px !important`,zIndex:En,display:"flex",alignItems:"center",background:Mn,borderTop:ri,opacity:Te,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ve,backgroundColor:Ie,borderRadius:xn,transition:`all ${Xt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:_e}}}}}}},La=Xt=>{const{componentCls:ie,lineWidth:Te,tableBorderColor:Ie}=Xt,_e=`${Te}px ${Xt.lineType} ${Ie}`;return{[`${ie}-wrapper`]:{[`${ie}-summary`]:{position:"relative",zIndex:Xt.zIndexTableFixed,background:Xt.tableBg,"> tr":{"> th, > td":{borderBottom:_e}}},[`div${ie}-summary`]:{boxShadow:`0 -${Te}px 0 ${Ie}`}}}},ts=Xt=>{const{componentCls:ie}=Xt,Te=`${Xt.lineWidth}px ${Xt.lineType} ${Xt.tableBorderColor}`,Ie=`${ie}-expanded-row-cell`;return{[`${ie}-wrapper`]:{[`${ie}-tbody-virtual`]:{[`${ie}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ie}-cell`]:{borderBottom:Te},[`${ie}-expanded-row`]:{[`${Ie}${Ie}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Xt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ie}-bordered`]:{[`${ie}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Te,position:"absolute"},[`${ie}-cell`]:{borderInlineEnd:Te,[`&${ie}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Xt.lineWidth,borderInlineStart:Te}}}}}}};const ma=Xt=>{const{componentCls:ie,fontWeightStrong:Te,tablePaddingVertical:Ie,tablePaddingHorizontal:_e,lineWidth:Ve,lineType:Mn,tableBorderColor:En,tableFontSize:xn,tableBg:ri,tableRadius:jn,tableHeaderTextColor:ti,motionDurationMid:Li,tableHeaderBg:bi,tableHeaderCellSplitColor:yi,tableRowHoverBg:Yi,tableSelectedRowBg:wi,tableSelectedRowHoverBg:rr,tableFooterTextColor:tr,tableFooterBg:lr,paddingContentVerticalLG:Xr}=Xt,so=`${Ve}px ${Mn} ${En}`;return{[`${ie}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,as.dF)()),{[ie]:Object.assign(Object.assign({},(0,as.Wf)(Xt)),{fontSize:xn,background:ri,borderRadius:`${jn}px ${jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${jn}px ${jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ie}-cell,
|
|
|
${ie}-thead > tr > th,
|
|
|
${ie}-tbody > tr > th,
|
|
|
${ie}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Xr}px ${_e}px`,overflowWrap:"break-word"},[`${ie}-title`]:{padding:`${Ie}px ${_e}px`},[`${ie}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:ti,fontWeight:Te,textAlign:"start",background:bi,borderBottom:so,transition:`background ${Li} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ie}-selection-column):not(${ie}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:yi,transform:"translateY(-50%)",transition:`background-color ${Li}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ie}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Li}, border-color ${Li}`,borderBottom:so,[`
|
|
|
> ${ie}-wrapper:only-child,
|
|
|
> ${ie}-expanded-row-fixed > ${ie}-wrapper:only-child
|
|
|
`]:{[ie]:{marginBlock:`-${Ie}px`,marginInline:`${Xt.tableExpandColumnWidth-_e}px -${_e}px`,[`${ie}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:ti,fontWeight:Te,textAlign:"start",background:bi,borderBottom:so,transition:`background ${Li} ease`},[`
|
|
|
&${ie}-row:hover > th,
|
|
|
&${ie}-row:hover > td,
|
|
|
> th${ie}-cell-row-hover,
|
|
|
> td${ie}-cell-row-hover
|
|
|
`]:{background:Yi},[`&${ie}-row-selected`]:{"> th, > td":{background:wi},"&:hover > th, &:hover > td":{background:rr}}}},[`${ie}-footer`]:{padding:`${Ie}px ${_e}px`,color:tr,background:lr}})}};var ra=(0,ta.Z)("Table",Xt=>{const{colorTextHeading:ie,colorSplit:Te,colorIcon:Ie,colorIconHover:_e,opacityLoading:Ve,colorBgContainer:Mn,controlInteractiveSize:En,headerBg:xn,headerColor:ri,headerSortActiveBg:jn,headerSortHoverBg:ti,bodySortBg:Li,rowHoverBg:bi,rowSelectedBg:yi,rowSelectedHoverBg:Yi,rowExpandedBg:wi,cellPaddingBlock:rr,cellPaddingInline:tr,cellPaddingBlockMD:lr,cellPaddingInlineMD:Xr,cellPaddingBlockSM:so,cellPaddingInlineSM:pr,borderColor:Fr,footerBg:bo,footerColor:ur,headerBorderRadius:Ir,cellFontSize:mr,cellFontSizeMD:Gi,cellFontSizeSM:ar,headerSplitColor:Rr,fixedHeaderSortActiveBg:lo,headerFilterHoverBg:co,filterDropdownBg:sr,expandIconBg:Eo,selectionColumnWidth:Io,stickyScrollBarBg:Wo}=Xt,jo=new yl.C(Ie),ja=new yl.C(_e),qo=2,wo=(0,Us.TS)(Xt,{tableFontSize:mr,tableBg:Mn,tableRadius:Ir,tablePaddingVertical:rr,tablePaddingHorizontal:tr,tablePaddingVerticalMiddle:lr,tablePaddingHorizontalMiddle:Xr,tablePaddingVerticalSmall:so,tablePaddingHorizontalSmall:pr,tableBorderColor:Fr,tableHeaderTextColor:ri,tableHeaderBg:xn,tableFooterTextColor:ur,tableFooterBg:bo,tableHeaderCellSplitColor:Rr,tableHeaderSortBg:jn,tableHeaderSortHoverBg:ti,tableHeaderIconColor:jo.clone().setAlpha(jo.getAlpha()*Ve).toRgbString(),tableHeaderIconColorHover:ja.clone().setAlpha(ja.getAlpha()*Ve).toRgbString(),tableBodySortBg:Li,tableFixedHeaderSortActiveBg:lo,tableHeaderFilterActiveBg:co,tableFilterDropdownBg:sr,tableRowHoverBg:bi,tableSelectedRowBg:yi,tableSelectedRowHoverBg:Yi,zIndexTableFixed:qo,zIndexTableSticky:qo+1,tableFontSizeMiddle:Gi,tableFontSizeSmall:ar,tableSelectionColumnWidth:Io,tableExpandIconBg:Eo,tableExpandColumnWidth:En+2*Xt.padding,tableExpandedRowBg:wi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Wo,tableScrollThumbBgHover:ie,tableScrollBg:Te});return[ma(wo),Ji(wo),La(wo),Yo(wo),Ri(wo),Kt(wo),Ai(wo),Qn(wo),La(wo),dn(wo),Yr(wo),Mi(wo),ea(wo),ze(wo),Hr(wo),jr(wo),ts(wo)]},Xt=>{const{colorFillAlter:ie,colorBgContainer:Te,colorTextHeading:Ie,colorFillSecondary:_e,colorFillContent:Ve,controlItemBgActive:Mn,controlItemBgActiveHover:En,padding:xn,paddingSM:ri,paddingXS:jn,colorBorderSecondary:ti,borderRadiusLG:Li,fontSize:bi,controlHeight:yi,colorTextPlaceholder:Yi}=Xt,wi=new yl.C(_e).onBackground(Te).toHexShortString(),rr=new yl.C(Ve).onBackground(Te).toHexShortString(),tr=new yl.C(ie).onBackground(Te).toHexShortString();return{headerBg:tr,headerColor:Ie,headerSortActiveBg:wi,headerSortHoverBg:rr,bodySortBg:tr,rowHoverBg:tr,rowSelectedBg:Mn,rowSelectedHoverBg:En,rowExpandedBg:ie,cellPaddingBlock:xn,cellPaddingInline:xn,cellPaddingBlockMD:ri,cellPaddingInlineMD:jn,cellPaddingBlockSM:jn,cellPaddingInlineSM:jn,borderColor:ti,headerBorderRadius:Li,footerBg:tr,footerColor:Ie,cellFontSize:bi,cellFontSizeMD:bi,cellFontSizeSM:bi,headerSplitColor:ti,fixedHeaderSortActiveBg:wi,headerFilterHoverBg:Ve,filterDropdownMenuBg:Te,filterDropdownBg:Te,expandIconBg:Te,selectionColumnWidth:yi,stickyScrollBarBg:Yi,stickyScrollBarBorderRadius:100}});const xa=[],Ua=(Xt,ie)=>{const{prefixCls:Te,className:Ie,rootClassName:_e,style:Ve,size:Mn,bordered:En,dropdownPrefixCls:xn,dataSource:ri,pagination:jn,rowSelection:ti,rowKey:Li="key",rowClassName:bi,columns:yi,children:Yi,childrenColumnName:wi,onChange:rr,getPopupContainer:tr,loading:lr,expandIcon:Xr,expandable:so,expandedRowRender:pr,expandIconColumnIndex:Fr,indentSize:bo,scroll:ur,sortDirections:Ir,locale:mr,showSorterTooltip:Gi=!0,virtual:ar}=Xt,Rr=Ft.useMemo(()=>yi||Sn(Yi),[yi,Yi]),lo=Ft.useMemo(()=>Rr.some(Ca=>Ca.responsive),[Rr]),co=(0,ei.Z)(lo),sr=Ft.useMemo(()=>{const Ca=new Set(Object.keys(co).filter(Ja=>co[Ja]));return Rr.filter(Ja=>!Ja.responsive||Ja.responsive.some(Ws=>Ca.has(Ws)))},[Rr,co]),Eo=(0,Cr.Z)(Xt,["className","style","columns"]),{locale:Io=Ho.Z,direction:Wo,table:jo,renderEmpty:ja,getPrefixCls:qo,getPopupContainer:wo}=Ft.useContext(Ui.E_),_r=(0,Er.Z)(Mn),mo=Object.assign(Object.assign({},Io.Table),mr),Da=ri||xa,Pa=qo("table",Te),Ga=qo("dropdown",xn),yo=Object.assign({childrenColumnName:wi,expandIconColumnIndex:Fr},so),{childrenColumnName:ro="children"}=yo,Po=Ft.useMemo(()=>Da.some(Ca=>Ca==null?void 0:Ca[ro])?"nest":pr||so&&so.expandedRowRender?"row":null,[Da]),Qr={body:Ft.useRef()},Br=Ft.useMemo(()=>typeof Li=="function"?Li:Ca=>Ca==null?void 0:Ca[Li],[Li]),[ki]=Oh(Da,ro,Br),xr={},Ao=function(Ca,Ja){let Ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var is,ba,Zs;const Sl=Object.assign(Object.assign({},xr),Ca);Ws&&((is=xr.resetPagination)===null||is===void 0||is.call(xr),!((ba=Sl.pagination)===null||ba===void 0)&&ba.current&&(Sl.pagination.current=1),jn&&jn.onChange&&jn.onChange(1,(Zs=Sl.pagination)===null||Zs===void 0?void 0:Zs.pageSize)),ur&&ur.scrollToFirstRowOnChange!==!1&&Qr.body.current&&(0,Do.Z)(0,{getContainer:()=>Qr.body.current}),rr==null||rr(Sl.pagination,Sl.filters,Sl.sorter,{currentDataSource:vl(xh(Da,Sl.sorterStates,ro),Sl.filterStates),action:Ja})},Uo=(Ca,Ja)=>{Ao({sorter:Ca,sorterStates:Ja},"sort",!1)},[Xs,As,sl,ya]=oc({prefixCls:Pa,mergedColumns:sr,onSorterChange:Uo,sortDirections:Ir||["ascend","descend"],tableLocale:mo,showSorterTooltip:Gi}),Ba=Ft.useMemo(()=>xh(Da,As,ro),[Da,As]);xr.sorter=ya(),xr.sorterStates=As;const fo=(Ca,Ja)=>{Ao({filters:Ca,filterStates:Ja},"filter",!0)},[Bs,ll,Ma]=_h({prefixCls:Pa,locale:mo,dropdownPrefixCls:Ga,mergedColumns:sr,onFilterChange:fo,getPopupContainer:tr||wo}),Ha=vl(Ba,ll);xr.filters=Ma,xr.filterStates=ll;const Ka=Ft.useMemo(()=>{const Ca={};return Object.keys(Ma).forEach(Ja=>{Ma[Ja]!==null&&(Ca[Ja]=Ma[Ja])}),Object.assign(Object.assign({},sl),{filters:Ca})},[sl,Ma]),[us]=Cs(Ka),Os=(Ca,Ja)=>{Ao({pagination:Object.assign(Object.assign({},xr.pagination),{current:Ca,pageSize:Ja})},"paginate")},[na,Xa]=pd(Ha.length,Os,jn);xr.pagination=jn===!1?{}:Dl(na,jn),xr.resetPagination=Xa;const Hs=Ft.useMemo(()=>{if(jn===!1||!na.pageSize)return Ha;const{current:Ca=1,total:Ja,pageSize:Ws=Gu}=na;return Ha.length<Ja?Ha.length>Ws?Ha.slice((Ca-1)*Ws,Ca*Ws):Ha:Ha.slice((Ca-1)*Ws,Ca*Ws)},[!!jn,Ha,na&&na.current,na&&na.pageSize,na&&na.total]),[Oa,So]=Ql({prefixCls:Pa,data:Ha,pageData:Hs,getRowKey:Br,getRecordByKey:ki,expandType:Po,childrenColumnName:ro,locale:mo,getPopupContainer:tr||wo},ti),gs=(Ca,Ja,Ws)=>{let is;return typeof bi=="function"?is=ce()(bi(Ca,Ja,Ws)):is=ce()(bi),ce()({[`${Pa}-row-selected`]:So.has(Br(Ca,Ja))},is)};yo.__PARENT_RENDER_ICON__=yo.expandIcon,yo.expandIcon=yo.expandIcon||Xr||Ra(mo),Po==="nest"&&yo.expandIconColumnIndex===void 0?yo.expandIconColumnIndex=ti?1:0:yo.expandIconColumnIndex>0&&ti&&(yo.expandIconColumnIndex-=1),typeof yo.indentSize!="number"&&(yo.indentSize=typeof bo=="number"?bo:15);const Is=Ft.useCallback(Ca=>us(Oa(Bs(Xs(Ca)))),[Xs,Bs,Oa]);let bu,$l;if(jn!==!1&&(na!=null&&na.total)){let Ca;na.size?Ca=na.size:Ca=_r==="small"||_r==="middle"?"small":void 0;const Ja=ba=>Ft.createElement($o.Z,Object.assign({},na,{className:ce()(`${Pa}-pagination ${Pa}-pagination-${ba}`,na.className),size:Ca})),Ws=Wo==="rtl"?"left":"right",{position:is}=na;if(is!==null&&Array.isArray(is)){const ba=is.find(Eu=>Eu.includes("top")),Zs=is.find(Eu=>Eu.includes("bottom")),Sl=is.every(Eu=>`${Eu}`=="none");!ba&&!Zs&&!Sl&&($l=Ja(Ws)),ba&&(bu=Ja(ba.toLowerCase().replace("top",""))),Zs&&($l=Ja(Zs.toLowerCase().replace("bottom","")))}else $l=Ja(Ws)}let Wa;typeof lr=="boolean"?Wa={spinning:lr}:typeof lr=="object"&&(Wa=Object.assign({spinning:!0},lr));const[ul,ss]=ra(Pa),[,ns]=(0,ua.Z)(),du=ce()(`${Pa}-wrapper`,jo==null?void 0:jo.className,{[`${Pa}-wrapper-rtl`]:Wo==="rtl"},Ie,_e,ss),ah=Object.assign(Object.assign({},jo==null?void 0:jo.style),Ve),Ol=mr&&mr.emptyText||(ja==null?void 0:ja("Table"))||Ft.createElement($i.Z,{componentName:"Table"}),Ku=ar?il:vo,Vu={},ql=Ft.useMemo(()=>{const{fontSize:Ca,lineHeight:Ja,padding:Ws,paddingXS:is,paddingSM:ba}=ns,Zs=Math.floor(Ca*Ja);switch(_r){case"large":return Ws*2+Zs;case"small":return is*2+Zs;default:return ba*2+Zs}},[ns,_r]);return ar&&(Vu.listItemHeight=ql),ul(Ft.createElement("div",{ref:ie,className:du,style:ah},Ft.createElement(Na.Z,Object.assign({spinning:!1},Wa),bu,Ft.createElement(Ku,Object.assign({},Vu,Eo,{columns:sr,direction:Wo,expandable:yo,prefixCls:Pa,className:ce()({[`${Pa}-middle`]:_r==="middle",[`${Pa}-small`]:_r==="small",[`${Pa}-bordered`]:En,[`${Pa}-empty`]:Da.length===0}),data:Hs,rowKey:Br,rowClassName:gs,emptyText:Ol,internalHooks:zt,internalRefs:Qr,transformColumns:Is})),$l)))};var es=Ft.forwardRef(Ua);const za=(Xt,ie)=>{const Te=Ft.useRef(0);return Te.current+=1,Ft.createElement(es,Object.assign({},Xt,{ref:ie,_renderTimes:Te.current}))},wa=Ft.forwardRef(za);wa.SELECTION_COLUMN=xs,wa.EXPAND_COLUMN=At,wa.SELECTION_ALL=ws,wa.SELECTION_INVERT=_a,wa.SELECTION_NONE=ls,wa.Column=fa,wa.ColumnGroup=Ar,wa.Summary=Gt;var Ms=wa,tl=Ms},99682:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return ve}});var At=yt(99581),zt=yt(26390),re=yt(23001),Ae=yt(53570),Ut=yt(5891),ne=yt(59301),Ft={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"},De=Ft,Pe=yt(31533),oe=function(en,Kn){return ne.createElement(Pe.Z,(0,Ut.Z)({},en,{ref:Kn,icon:De}))},Re=ne.forwardRef(oe),de=Re,be=yt(92310),Nt=yt.n(be),et=yt(35654),nt=yt(71430),ht=yt(36355),st=yt(39338),gt=yt(62892),mt=yt(20648);const Pt=4;function kt(Zt){const{dropPosition:en,dropLevelOffset:Kn,prefixCls:ii,indent:Be,direction:on="ltr"}=Zt,un=on==="ltr"?"left":"right",Jn=on==="ltr"?"right":"left",nn={[un]:-Kn*Be+Pt,[Jn]:0};switch(en){case-1:nn.top=-3;break;case 1:nn.bottom=-3;break;default:nn.bottom=-3,nn[un]=Be+Pt;break}return ne.createElement("div",{style:nn,className:`${ii}-drop-indicator`})}var wt=yt(43187),jt=ne.forwardRef((Zt,en)=>{const{getPrefixCls:Kn,direction:ii,virtual:Be,tree:on}=ne.useContext(ht.E_),{prefixCls:un,className:Jn,showIcon:nn=!1,showLine:Gn,switcherIcon:pe,blockNode:Xn=!1,children:oi,checkable:te=!1,selectable:bt=!0,draggable:xt,motion:Tt,style:Bt}=Zt,St=Kn("tree",un),he=Kn(),Le=Tt!=null?Tt:Object.assign(Object.assign({},(0,gt.Z)(he)),{motionAppear:!1}),Gt=Object.assign(Object.assign({},Zt),{checkable:te,selectable:bt,showIcon:nn,motion:Le,blockNode:Xn,showLine:!!Gn,dropIndicatorRender:kt}),[ee,xe]=(0,mt.ZP)(St),we=ne.useMemo(()=>{if(!xt)return!1;let ke={};switch(typeof xt){case"function":ke.nodeDraggable=xt;break;case"object":ke=Object.assign({},xt);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||ne.createElement(st.Z,null)),ke},[xt]),se=ke=>ne.createElement(wt.Z,{prefixCls:St,switcherIcon:pe,treeNodeProps:ke,showLine:Gn});return ee(ne.createElement(At.Z,Object.assign({itemHeight:20,ref:en,virtual:Be},Gt,{style:Object.assign(Object.assign({},on==null?void 0:on.style),Bt),prefixCls:St,className:Nt()({[`${St}-icon-hide`]:!nn,[`${St}-block-node`]:Xn,[`${St}-unselectable`]:!bt,[`${St}-rtl`]:ii==="rtl"},on==null?void 0:on.className,Jn,xe),direction:ii,checkable:te&&ne.createElement("span",{className:`${St}-checkbox-inner`}),selectable:bt,switcherIcon:se,draggable:we}),oi))}),Ht;(function(Zt){Zt[Zt.None=0]="None",Zt[Zt.Start=1]="Start",Zt[Zt.End=2]="End"})(Ht||(Ht={}));function $t(Zt,en){function Kn(ii){const{key:Be,children:on}=ii;en(Be,ii)!==!1&&$t(on||[],en)}Zt.forEach(Kn)}function ye(Zt){let{treeData:en,expandedKeys:Kn,startKey:ii,endKey:Be}=Zt;const on=[];let un=Ht.None;if(ii&&ii===Be)return[ii];if(!ii||!Be)return[];function Jn(nn){return nn===ii||nn===Be}return $t(en,nn=>{if(un===Ht.End)return!1;if(Jn(nn)){if(on.push(nn),un===Ht.None)un=Ht.Start;else if(un===Ht.Start)return un=Ht.End,!1}else un===Ht.Start&&on.push(nn);return Kn.includes(nn)}),on}function Yt(Zt,en){const Kn=(0,zt.Z)(en),ii=[];return $t(Zt,(Be,on)=>{const un=Kn.indexOf(Be);return un!==-1&&(ii.push(on),Kn.splice(un,1)),!!Kn.length}),ii}var Ge=function(Zt,en){var Kn={};for(var ii in Zt)Object.prototype.hasOwnProperty.call(Zt,ii)&&en.indexOf(ii)<0&&(Kn[ii]=Zt[ii]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ii=Object.getOwnPropertySymbols(Zt);Be<ii.length;Be++)en.indexOf(ii[Be])<0&&Object.prototype.propertyIsEnumerable.call(Zt,ii[Be])&&(Kn[ii[Be]]=Zt[ii[Be]]);return Kn};function ce(Zt){const{isLeaf:en,expanded:Kn}=Zt;return en?ne.createElement(re.Z,null):Kn?ne.createElement(Ae.Z,null):ne.createElement(de,null)}function $e(Zt){let{treeData:en,children:Kn}=Zt;return en||(0,nt.zn)(Kn)}const Ue=(Zt,en)=>{var{defaultExpandAll:Kn,defaultExpandParent:ii,defaultExpandedKeys:Be}=Zt,on=Ge(Zt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const un=ne.useRef(),Jn=ne.useRef(),nn=()=>{const{keyEntities:we}=(0,nt.I8)($e(on));let se;return Kn?se=Object.keys(we):ii?se=(0,et.r7)(on.expandedKeys||Be||[],we):se=on.expandedKeys||Be,se},[Gn,pe]=ne.useState(on.selectedKeys||on.defaultSelectedKeys||[]),[Xn,oi]=ne.useState(()=>nn());ne.useEffect(()=>{"selectedKeys"in on&&pe(on.selectedKeys)},[on.selectedKeys]),ne.useEffect(()=>{"expandedKeys"in on&&oi(on.expandedKeys)},[on.expandedKeys]);const te=(we,se)=>{var ke;return"expandedKeys"in on||oi(we),(ke=on.onExpand)===null||ke===void 0?void 0:ke.call(on,we,se)},bt=(we,se)=>{var ke;const{multiple:vn}=on,{node:cn,nativeEvent:Je}=se,{key:hn=""}=cn,Vn=$e(on),Se=Object.assign(Object.assign({},se),{selected:!0}),qe=(Je==null?void 0:Je.ctrlKey)||(Je==null?void 0:Je.metaKey),Qe=Je==null?void 0:Je.shiftKey;let Nn;vn&&qe?(Nn=we,un.current=hn,Jn.current=Nn,Se.selectedNodes=Yt(Vn,Nn)):vn&&Qe?(Nn=Array.from(new Set([].concat((0,zt.Z)(Jn.current||[]),(0,zt.Z)(ye({treeData:Vn,expandedKeys:Xn,startKey:hn,endKey:un.current}))))),Se.selectedNodes=Yt(Vn,Nn)):(Nn=[hn],un.current=hn,Jn.current=Nn,Se.selectedNodes=Yt(Vn,Nn)),(ke=on.onSelect)===null||ke===void 0||ke.call(on,Nn,Se),"selectedKeys"in on||pe(Nn)},{getPrefixCls:xt,direction:Tt}=ne.useContext(ht.E_),{prefixCls:Bt,className:St,showIcon:he=!0,expandAction:Le="click"}=on,Gt=Ge(on,["prefixCls","className","showIcon","expandAction"]),ee=xt("tree",Bt),xe=Nt()(`${ee}-directory`,{[`${ee}-directory-rtl`]:Tt==="rtl"},St);return ne.createElement(jt,Object.assign({icon:ce,ref:en,blockNode:!0},Gt,{showIcon:he,expandAction:Le,prefixCls:ee,className:xe,expandedKeys:Xn,selectedKeys:Gn,onSelect:bt,onExpand:te}))};var tn=ne.forwardRef(Ue);const Tn=jt;Tn.DirectoryTree=tn,Tn.TreeNode=At.O;var ve=Tn},20648:function(On,Cn,yt){"use strict";yt.d(Cn,{TM:function(){return be},Yk:function(){return de}});var At=yt(88252),zt=yt(98447),re=yt(17313),Ae=yt(8378),Ut=yt(37613),ne=yt(83116);const Ft=new At.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),De=(Nt,et)=>({[`.${Nt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Pe=(Nt,et)=>({[`.${Nt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),oe=(Nt,et)=>{const{treeCls:nt,treeNodeCls:ht,treeNodePadding:st,titleHeight:gt,nodeSelectedBg:mt,nodeHoverBg:Pt}=et,kt=et.paddingXS;return{[nt]:Object.assign(Object.assign({},(0,re.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${nt}-rtl`]:{[`${nt}-switcher`]:{"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${nt}-active-focused)`]:Object.assign({},(0,re.oN)(et)),[`${nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${nt}-block-node`]:{[`${nt}-list-holder-inner`]:{alignItems:"stretch",[`${nt}-node-content-wrapper`]:{flex:"auto"},[`${ht}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Ft,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ht}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${st}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${nt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${nt}-node-content-wrapper`]:Object.assign({},(0,re.oN)(et)),[`&:not(${ht}-disabled).filter-node ${nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${nt}-draggable-icon`]:{flexShrink:0,width:gt,lineHeight:`${gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${ht}:hover &`]:{opacity:.45}},[`&${ht}-disabled`]:{[`${nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:gt}},[`${nt}-draggable-icon`]:{visibility:"hidden"},[`${nt}-switcher`]:Object.assign(Object.assign({},De(Nt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:gt,margin:0,lineHeight:`${gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:gt/2*.8,height:gt/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${nt}-checkbox`]:{top:"initial",marginInlineEnd:kt},[`${nt}-node-content-wrapper, ${nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:gt,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${gt}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pt},[`&${nt}-node-selected`]:{backgroundColor:mt},[`${nt}-iconEle`]:{display:"inline-block",width:gt,height:gt,lineHeight:`${gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${nt}-unselectable ${nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}-node-content-wrapper`]:Object.assign({lineHeight:`${gt}px`,userSelect:"none"},Pe(Nt,et)),[`${ht}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ht}-leaf-last`]:{[`${nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${gt/2}px !important`}}}}})}},Re=Nt=>{const{treeCls:et,treeNodeCls:nt,treeNodePadding:ht,directoryNodeSelectedBg:st,directoryNodeSelectedColor:gt}=Nt;return{[`${et}${et}-directory`]:{[nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ht,insetInlineStart:0,transition:`background-color ${Nt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Nt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Nt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:gt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:st},[`${et}-switcher`]:{color:gt},[`${et}-node-content-wrapper`]:{color:gt,background:"transparent"}}}}}},de=(Nt,et)=>{const nt=`.${Nt}`,ht=`${nt}-treenode`,st=et.paddingXS/2,gt=(0,Ut.TS)(et,{treeCls:nt,treeNodeCls:ht,treeNodePadding:st});return[oe(Nt,gt),Re(gt)]},be=Nt=>{const{controlHeightSM:et}=Nt;return{titleHeight:et,nodeHoverBg:Nt.controlItemBgHover,nodeSelectedBg:Nt.controlItemBgActive}};Cn.ZP=(0,ne.Z)("Tree",(Nt,et)=>{let{prefixCls:nt}=et;return[{[Nt.componentCls]:(0,zt.C2)(`${nt}-checkbox`,Nt)},de(nt,Nt),(0,Ae.Z)(Nt)]},Nt=>{const{colorTextLightSolid:et,colorPrimary:nt}=Nt;return Object.assign(Object.assign({},be(Nt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:nt})})},43187:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return ht}});var At=yt(5891),zt=yt(59301),re={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"},Ae=re,Ut=yt(31533),ne=function(gt,mt){return zt.createElement(Ut.Z,(0,At.Z)({},gt,{ref:mt,icon:Ae}))},Ft=zt.forwardRef(ne),De=Ft,Pe=yt(23001),oe=yt(78714),Re=yt(88627),de=yt(1040),be=yt(92310),Nt=yt.n(be),et=yt(92343),ht=st=>{const{prefixCls:gt,switcherIcon:mt,treeNodeProps:Pt,showLine:kt}=st,{isLeaf:wt,expanded:Ot,loading:jt}=Pt;if(jt)return zt.createElement(oe.Z,{className:`${gt}-switcher-loading-icon`});let Ht;if(kt&&typeof kt=="object"&&(Ht=kt.showLeafIcon),wt){if(!kt)return null;if(typeof Ht!="boolean"&&Ht){const Yt=typeof Ht=="function"?Ht(Pt):Ht,Ge=`${gt}-switcher-line-custom-icon`;return(0,et.l$)(Yt)?(0,et.Tm)(Yt,{className:Nt()(Yt.props.className||"",Ge)}):Yt}return Ht?zt.createElement(Pe.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement("span",{className:`${gt}-switcher-leaf-line`})}const $t=`${gt}-switcher-icon`,ye=typeof mt=="function"?mt(Pt):mt;return(0,et.l$)(ye)?(0,et.Tm)(ye,{className:Nt()(ye.props.className||"",$t)}):ye!==void 0?ye:kt?Ot?zt.createElement(Re.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement(de.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement(De,{className:$t})}},41889:function(On,Cn,yt){"use strict";yt.d(Cn,{default:function(){return yn}});var At=yt(59301),zt=yt(26390),re=yt(92310),Ae=yt.n(re),Ut=yt(5891),ne=yt(79545),Ft=yt(68550),De=yt(17928),Pe=yt(7711),oe=yt(80962),Re=yt(19149),de=yt(50204),be=yt(80665),Nt=yt(20959),et=yt(36994);function nt(He,an){var gn="cannot ".concat(He.method," ").concat(He.action," ").concat(an.status,"'"),sn=new Error(gn);return sn.status=an.status,sn.method=He.method,sn.url=He.action,sn}function ht(He){var an=He.responseText||He.response;if(!an)return an;try{return JSON.parse(an)}catch(gn){return an}}function st(He){var an=new XMLHttpRequest;He.onProgress&&an.upload&&(an.upload.onprogress=function(Fn){Fn.total>0&&(Fn.percent=Fn.loaded/Fn.total*100),He.onProgress(Fn)});var gn=new FormData;He.data&&Object.keys(He.data).forEach(function(bn){var Fn=He.data[bn];if(Array.isArray(Fn)){Fn.forEach(function(Wn){gn.append("".concat(bn,"[]"),Wn)});return}gn.append(bn,Fn)}),He.file instanceof Blob?gn.append(He.filename,He.file,He.file.name):gn.append(He.filename,He.file),an.onerror=function(Fn){He.onError(Fn)},an.onload=function(){return an.status<200||an.status>=300?He.onError(nt(He,an),ht(an)):He.onSuccess(ht(an),an)},an.open(He.method,He.action,!0),He.withCredentials&&"withCredentials"in an&&(an.withCredentials=!0);var sn=He.headers||{};return sn["X-Requested-With"]!==null&&an.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(sn).forEach(function(bn){sn[bn]!==null&&an.setRequestHeader(bn,sn[bn])}),an.send(gn),{abort:function(){an.abort()}}}var gt=+new Date,mt=0;function Pt(){return"rc-upload-".concat(gt,"-").concat(++mt)}var kt=yt(51395),wt=function(He,an){if(He&&an){var gn=Array.isArray(an)?an:an.split(","),sn=He.name||"",bn=He.type||"",Fn=bn.replace(/\/.*$/,"");return gn.some(function(Wn){var qn=Wn.trim();if(/^\*(\/\*)?$/.test(Wn))return!0;if(qn.charAt(0)==="."){var Bn=sn.toLowerCase(),ai=qn.toLowerCase(),Wi=[ai];return(ai===".jpg"||ai===".jpeg")&&(Wi=[".jpg",".jpeg"]),Wi.some(function(Mr){return Bn.endsWith(Mr)})}return/\/\*$/.test(qn)?Fn===qn.replace(/\/.*$/,""):bn===qn?!0:/^\w+$/.test(qn)?((0,kt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(qn,"'.Skip for check.")),!0):!1})}return!0};function Ot(He,an){var gn=He.createReader(),sn=[];function bn(){gn.readEntries(function(Fn){var Wn=Array.prototype.slice.apply(Fn);sn=sn.concat(Wn);var qn=!Wn.length;qn?an(sn):bn()})}bn()}var jt=function(an,gn,sn){var bn=function Fn(Wn,qn){Wn&&(Wn.path=qn||"",Wn.isFile?Wn.file(function(Bn){sn(Bn)&&(Wn.fullPath&&!Bn.webkitRelativePath&&(Object.defineProperties(Bn,{webkitRelativePath:{writable:!0}}),Bn.webkitRelativePath=Wn.fullPath.replace(/^\//,""),Object.defineProperties(Bn,{webkitRelativePath:{writable:!1}})),gn([Bn]))}):Wn.isDirectory&&Ot(Wn,function(Bn){Bn.forEach(function(ai){Fn(ai,"".concat(qn).concat(Wn.name,"/"))})}))};an.forEach(function(Fn){bn(Fn.webkitGetAsEntry())})},Ht=jt,$t=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ye=function(He){(0,De.Z)(gn,He);var an=(0,Pe.Z)(gn);function gn(){var sn;(0,ne.Z)(this,gn);for(var bn=arguments.length,Fn=new Array(bn),Wn=0;Wn<bn;Wn++)Fn[Wn]=arguments[Wn];return sn=an.call.apply(an,[this].concat(Fn)),sn.state={uid:Pt()},sn.reqs={},sn.fileInput=void 0,sn._isMounted=void 0,sn.onChange=function(qn){var Bn=sn.props,ai=Bn.accept,Wi=Bn.directory,Mr=qn.target.files,nr=(0,zt.Z)(Mr).filter(function(Oe){return!Wi||wt(Oe,ai)});sn.uploadFiles(nr),sn.reset()},sn.onClick=function(qn){var Bn=sn.fileInput;if(Bn){var ai=qn.target,Wi=sn.props.onClick;if(ai&&ai.tagName==="BUTTON"){var Mr=Bn.parentNode;Mr.focus(),ai.blur()}Bn.click(),Wi&&Wi(qn)}},sn.onKeyDown=function(qn){qn.key==="Enter"&&sn.onClick(qn)},sn.onFileDrop=function(qn){var Bn=sn.props.multiple;if(qn.preventDefault(),qn.type!=="dragover")if(sn.props.directory)Ht(Array.prototype.slice.call(qn.dataTransfer.items),sn.uploadFiles,function(Wi){return wt(Wi,sn.props.accept)});else{var ai=(0,zt.Z)(qn.dataTransfer.files).filter(function(Wi){return wt(Wi,sn.props.accept)});Bn===!1&&(ai=ai.slice(0,1)),sn.uploadFiles(ai)}},sn.uploadFiles=function(qn){var Bn=(0,zt.Z)(qn),ai=Bn.map(function(Wi){return Wi.uid=Pt(),sn.processFile(Wi,Bn)});Promise.all(ai).then(function(Wi){var Mr=sn.props.onBatchStart;Mr==null||Mr(Wi.map(function(nr){var Oe=nr.origin,xi=nr.parsedFile;return{file:Oe,parsedFile:xi}})),Wi.filter(function(nr){return nr.parsedFile!==null}).forEach(function(nr){sn.post(nr)})})},sn.processFile=function(){var qn=(0,Nt.Z)((0,de.Z)().mark(function Bn(ai,Wi){var Mr,nr,Oe,xi,Vi,Ti,Sr,yr,Dr;return(0,de.Z)().wrap(function(zi){for(;;)switch(zi.prev=zi.next){case 0:if(Mr=sn.props.beforeUpload,nr=ai,!Mr){zi.next=14;break}return zi.prev=3,zi.next=6,Mr(ai,Wi);case 6:nr=zi.sent,zi.next=12;break;case 9:zi.prev=9,zi.t0=zi.catch(3),nr=!1;case 12:if(nr!==!1){zi.next=14;break}return zi.abrupt("return",{origin:ai,parsedFile:null,action:null,data:null});case 14:if(Oe=sn.props.action,typeof Oe!="function"){zi.next=21;break}return zi.next=18,Oe(ai);case 18:xi=zi.sent,zi.next=22;break;case 21:xi=Oe;case 22:if(Vi=sn.props.data,typeof Vi!="function"){zi.next=29;break}return zi.next=26,Vi(ai);case 26:Ti=zi.sent,zi.next=30;break;case 29:Ti=Vi;case 30:return Sr=((0,be.Z)(nr)==="object"||typeof nr=="string")&&nr?nr:ai,Sr instanceof File?yr=Sr:yr=new File([Sr],ai.name,{type:ai.type}),Dr=yr,Dr.uid=ai.uid,zi.abrupt("return",{origin:ai,data:Ti,parsedFile:Dr,action:xi});case 35:case"end":return zi.stop()}},Bn,null,[[3,9]])}));return function(Bn,ai){return qn.apply(this,arguments)}}(),sn.saveFileInput=function(qn){sn.fileInput=qn},sn}return(0,Ft.Z)(gn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(bn){var Fn=this,Wn=bn.data,qn=bn.origin,Bn=bn.action,ai=bn.parsedFile;if(this._isMounted){var Wi=this.props,Mr=Wi.onStart,nr=Wi.customRequest,Oe=Wi.name,xi=Wi.headers,Vi=Wi.withCredentials,Ti=Wi.method,Sr=qn.uid,yr=nr||st,Dr={action:Bn,filename:Oe,data:Wn,file:ai,headers:xi,withCredentials:Vi,method:Ti||"post",onProgress:function(zi){var Kr=Fn.props.onProgress;Kr==null||Kr(zi,ai)},onSuccess:function(zi,Kr){var wn=Fn.props.onSuccess;wn==null||wn(zi,ai,Kr),delete Fn.reqs[Sr]},onError:function(zi,Kr){var wn=Fn.props.onError;wn==null||wn(zi,Kr,ai),delete Fn.reqs[Sr]}};Mr(qn),this.reqs[Sr]=yr(Dr)}}},{key:"reset",value:function(){this.setState({uid:Pt()})}},{key:"abort",value:function(bn){var Fn=this.reqs;if(bn){var Wn=bn.uid?bn.uid:bn;Fn[Wn]&&Fn[Wn].abort&&Fn[Wn].abort(),delete Fn[Wn]}else Object.keys(Fn).forEach(function(qn){Fn[qn]&&Fn[qn].abort&&Fn[qn].abort(),delete Fn[qn]})}},{key:"render",value:function(){var bn=this.props,Fn=bn.component,Wn=bn.prefixCls,qn=bn.className,Bn=bn.disabled,ai=bn.id,Wi=bn.style,Mr=bn.multiple,nr=bn.accept,Oe=bn.capture,xi=bn.children,Vi=bn.directory,Ti=bn.openFileDialogOnClick,Sr=bn.onMouseEnter,yr=bn.onMouseLeave,Dr=(0,Re.Z)(bn,$t),ir=Ae()((0,oe.Z)((0,oe.Z)((0,oe.Z)({},Wn,!0),"".concat(Wn,"-disabled"),Bn),qn,qn)),zi=Vi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Kr=Bn?{}:{onClick:Ti?this.onClick:function(){},onKeyDown:Ti?this.onKeyDown:function(){},onMouseEnter:Sr,onMouseLeave:yr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return At.createElement(Fn,(0,Ut.Z)({},Kr,{className:ir,role:"button",style:Wi}),At.createElement("input",(0,Ut.Z)({},(0,et.Z)(Dr,{aria:!0,data:!0}),{id:ai,disabled:Bn,type:"file",ref:this.saveFileInput,onClick:function(To){return To.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:nr},zi,{multiple:Mr,onChange:this.onChange},Oe!=null?{capture:Oe}:{})),xi)}}]),gn}(At.Component),Yt=ye;function Ge(){}var ce=function(He){(0,De.Z)(gn,He);var an=(0,Pe.Z)(gn);function gn(){var sn;(0,ne.Z)(this,gn);for(var bn=arguments.length,Fn=new Array(bn),Wn=0;Wn<bn;Wn++)Fn[Wn]=arguments[Wn];return sn=an.call.apply(an,[this].concat(Fn)),sn.uploader=void 0,sn.saveUploader=function(qn){sn.uploader=qn},sn}return(0,Ft.Z)(gn,[{key:"abort",value:function(bn){this.uploader.abort(bn)}},{key:"render",value:function(){return At.createElement(Yt,(0,Ut.Z)({},this.props,{ref:this.saveUploader}))}}]),gn}(At.Component);ce.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ge,onError:Ge,onSuccess:Ge,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $e=ce,Ue=$e,Ke=yt(35788),tn=yt(4676),Tn=yt(36355),ve=yt(1684),Zt=yt(9763),en=yt(31724),Kn={icon:function(an,gn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:gn}},{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:an}}]}},name:"file",theme:"twotone"},ii=Kn,Be=yt(31533),on=function(an,gn){return At.createElement(Be.Z,(0,Ut.Z)({},an,{ref:gn,icon:ii}))},un=At.forwardRef(on),Jn=un,nn=yt(78714),Gn={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"},pe=Gn,Xn=function(an,gn){return At.createElement(Be.Z,(0,Ut.Z)({},an,{ref:gn,icon:pe}))},oi=At.forwardRef(Xn),te=oi,bt={icon:function(an,gn){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:an}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:gn}},{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:gn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:gn}},{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:an}}]}},name:"picture",theme:"twotone"},xt=bt,Tt=function(an,gn){return At.createElement(Be.Z,(0,Ut.Z)({},an,{ref:gn,icon:xt}))},Bt=At.forwardRef(Tt),St=Bt,he=yt(43469),Le=yt(56762),Gt=yt(62892),ee=yt(92343),xe=yt(3113);function we(He){return Object.assign(Object.assign({},He),{lastModified:He.lastModified,lastModifiedDate:He.lastModifiedDate,name:He.name,size:He.size,type:He.type,uid:He.uid,percent:0,originFileObj:He})}function se(He,an){const gn=(0,zt.Z)(an),sn=gn.findIndex(bn=>{let{uid:Fn}=bn;return Fn===He.uid});return sn===-1?gn.push(He):gn[sn]=He,gn}function ke(He,an){const gn=He.uid!==void 0?"uid":"name";return an.filter(sn=>sn[gn]===He[gn])[0]}function vn(He,an){const gn=He.uid!==void 0?"uid":"name",sn=an.filter(bn=>bn[gn]!==He[gn]);return sn.length===an.length?null:sn}const cn=function(){const an=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),sn=an[an.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(sn)||[""])[0]},Je=He=>He.indexOf("image/")===0,hn=He=>{if(He.type&&!He.thumbUrl)return Je(He.type);const an=He.thumbUrl||He.url||"",gn=cn(an);return/^data:image\//.test(an)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(gn)?!0:!(/^data:/.test(an)||gn)},Vn=200;function Se(He){return new Promise(an=>{if(!He.type||!Je(He.type)){an("");return}const gn=document.createElement("canvas");gn.width=Vn,gn.height=Vn,gn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Vn}px; height: ${Vn}px; z-index: 9999; display: none;`,document.body.appendChild(gn);const sn=gn.getContext("2d"),bn=new Image;if(bn.onload=()=>{const{width:Fn,height:Wn}=bn;let qn=Vn,Bn=Vn,ai=0,Wi=0;Fn>Wn?(Bn=Wn*(Vn/Fn),Wi=-(Bn-qn)/2):(qn=Fn*(Vn/Wn),ai=-(qn-Bn)/2),sn.drawImage(bn,ai,Wi,qn,Bn);const Mr=gn.toDataURL();document.body.removeChild(gn),window.URL.revokeObjectURL(bn.src),an(Mr)},bn.crossOrigin="anonymous",He.type.startsWith("image/svg+xml")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&(bn.src=Fn.result)},Fn.readAsDataURL(He)}else if(He.type.startsWith("image/gif")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&an(Fn.result)},Fn.readAsDataURL(He)}else bn.src=window.URL.createObjectURL(He)})}var qe=yt(76466),Qe=yt(37364),Nn=yt(20970),hi=yt(93948),mi=yt(6848),Pi=At.forwardRef((He,an)=>{let{prefixCls:gn,className:sn,style:bn,locale:Fn,listType:Wn,file:qn,items:Bn,progress:ai,iconRender:Wi,actionIconRender:Mr,itemRender:nr,isImgUrl:Oe,showPreviewIcon:xi,showRemoveIcon:Vi,showDownloadIcon:Ti,previewIcon:Sr,removeIcon:yr,downloadIcon:Dr,onPreview:ir,onDownload:zi,onClose:Kr}=He;var wn,To;const{status:An}=qn,[Or,Qo]=At.useState(An);At.useEffect(()=>{An!=="removed"&&Qo(An)},[An]);const[uo,Fa]=At.useState(!1);At.useEffect(()=>{const Ui=setTimeout(()=>{Fa(!0)},300);return()=>{clearTimeout(Ui)}},[]);const Vo=Wi(qn);let dr=At.createElement("div",{className:`${gn}-icon`},Vo);if(Wn==="picture"||Wn==="picture-card"||Wn==="picture-circle")if(Or==="uploading"||!qn.thumbUrl&&!qn.url){const Ui=Ae()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:Or!=="uploading"});dr=At.createElement("div",{className:Ui},Vo)}else{const Ui=Oe!=null&&Oe(qn)?At.createElement("img",{src:qn.thumbUrl||qn.url,alt:qn.name,className:`${gn}-list-item-image`,crossOrigin:qn.crossOrigin}):Vo,$i=Ae()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:Oe&&!Oe(qn)});dr=At.createElement("a",{className:$i,onClick:Er=>ir(qn,Er),href:qn.url||qn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ui)}const or=Ae()(`${gn}-list-item`,`${gn}-list-item-${Or}`),io=typeof qn.linkProps=="string"?JSON.parse(qn.linkProps):qn.linkProps,Co=Vi?Mr((typeof yr=="function"?yr(qn):yr)||At.createElement(qe.Z,null),()=>Kr(qn),gn,Fn.removeFile):null,Ci=Ti&&Or==="done"?Mr((typeof Dr=="function"?Dr(qn):Dr)||At.createElement(Qe.Z,null),()=>zi(qn),gn,Fn.downloadFile):null,Vt=Wn!=="picture-card"&&Wn!=="picture-circle"&&At.createElement("span",{key:"download-delete",className:Ae()(`${gn}-list-item-actions`,{picture:Wn==="picture"})},Ci,Co),qr=Ae()(`${gn}-list-item-name`),da=qn.url?[At.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:qr,title:qn.name},io,{href:qn.url,onClick:Ui=>ir(qn,Ui)}),qn.name),Vt]:[At.createElement("span",{key:"view",className:qr,onClick:Ui=>ir(qn,Ui),title:qn.name},qn.name),Vt],ao={pointerEvents:"none",opacity:.5},_o=xi?At.createElement("a",{href:qn.url||qn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:qn.url||qn.thumbUrl?void 0:ao,onClick:Ui=>ir(qn,Ui),title:Fn.previewFile},typeof Sr=="function"?Sr(qn):Sr||At.createElement(Nn.Z,null)):null,ca=(Wn==="picture-card"||Wn==="picture-circle")&&Or!=="uploading"&&At.createElement("span",{className:`${gn}-list-item-actions`},_o,Or==="done"&&Ci,Co),{getPrefixCls:fa}=At.useContext(Tn.E_),Vr=fa(),Ar=At.createElement("div",{className:or},dr,da,ca,uo&&At.createElement(he.default,{motionName:`${Vr}-fade`,visible:Or==="uploading",motionDeadline:2e3},Ui=>{let{className:$i}=Ui;const Er="percent"in qn?At.createElement(hi.Z,Object.assign({},ai,{type:"line",percent:qn.percent,"aria-label":qn["aria-label"],"aria-labelledby":qn["aria-labelledby"]})):null;return At.createElement("div",{className:Ae()(`${gn}-list-item-progress`,$i)},Er)})),Cr=qn.response&&typeof qn.response=="string"?qn.response:((wn=qn.error)===null||wn===void 0?void 0:wn.statusText)||((To=qn.error)===null||To===void 0?void 0:To.message)||Fn.uploadError,Do=Or==="error"?At.createElement(mi.Z,{title:Cr,getPopupContainer:Ui=>Ui.parentNode},Ar):Ar;return At.createElement("div",{className:Ae()(`${gn}-list-item-container`,sn),style:bn,ref:an},nr?nr(Do,qn,Bn,{download:zi.bind(null,qn),preview:ir.bind(null,qn),remove:Kr.bind(null,qn)}):Do)});const _i=(He,an)=>{const{listType:gn="text",previewFile:sn=Se,onPreview:bn,onDownload:Fn,onRemove:Wn,locale:qn,iconRender:Bn,isImageUrl:ai=hn,prefixCls:Wi,items:Mr=[],showPreviewIcon:nr=!0,showRemoveIcon:Oe=!0,showDownloadIcon:xi=!1,removeIcon:Vi,previewIcon:Ti,downloadIcon:Sr,progress:yr={size:[-1,2],showInfo:!1},appendAction:Dr,appendActionVisible:ir=!0,itemRender:zi,disabled:Kr}=He,wn=(0,Le.Z)(),[To,An]=At.useState(!1);At.useEffect(()=>{gn!=="picture"&&gn!=="picture-card"&&gn!=="picture-circle"||(Mr||[]).forEach(ao=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ao.originFileObj instanceof File||ao.originFileObj instanceof Blob)||ao.thumbUrl!==void 0||(ao.thumbUrl="",sn&&sn(ao.originFileObj).then(_o=>{ao.thumbUrl=_o||"",wn()}))})},[gn,Mr,sn]),At.useEffect(()=>{An(!0)},[]);const Or=(ao,_o)=>{if(bn)return _o==null||_o.preventDefault(),bn(ao)},Qo=ao=>{typeof Fn=="function"?Fn(ao):ao.url&&window.open(ao.url)},uo=ao=>{Wn==null||Wn(ao)},Fa=ao=>{if(Bn)return Bn(ao,gn);const _o=ao.status==="uploading",ca=ai&&ai(ao)?At.createElement(St,null):At.createElement(Jn,null);let fa=_o?At.createElement(nn.Z,null):At.createElement(te,null);return gn==="picture"?fa=_o?At.createElement(nn.Z,null):ca:(gn==="picture-card"||gn==="picture-circle")&&(fa=_o?qn.uploading:ca),fa},Vo=(ao,_o,ca,fa)=>{const Vr={type:"text",size:"small",title:fa,onClick:Ar=>{_o(),(0,ee.l$)(ao)&&ao.props.onClick&&ao.props.onClick(Ar)},className:`${ca}-list-item-action`,disabled:Kr};if((0,ee.l$)(ao)){const Ar=(0,ee.Tm)(ao,Object.assign(Object.assign({},ao.props),{onClick:()=>{}}));return At.createElement(xe.ZP,Object.assign({},Vr,{icon:Ar}))}return At.createElement(xe.ZP,Object.assign({},Vr),At.createElement("span",null,ao))};At.useImperativeHandle(an,()=>({handlePreview:Or,handleDownload:Qo}));const{getPrefixCls:dr}=At.useContext(Tn.E_),or=dr("upload",Wi),io=dr(),Co=Ae()(`${or}-list`,`${or}-list-${gn}`),Ci=(0,zt.Z)(Mr.map(ao=>({key:ao.uid,file:ao})));let qr={motionDeadline:2e3,motionName:`${or}-${gn==="picture-card"||gn==="picture-circle"?"animate-inline":"animate"}`,keys:Ci,motionAppear:To};const da=At.useMemo(()=>{const ao=Object.assign({},(0,Gt.Z)(io));return delete ao.onAppearEnd,delete ao.onEnterEnd,delete ao.onLeaveEnd,ao},[io]);return gn!=="picture-card"&&gn!=="picture-circle"&&(qr=Object.assign(Object.assign({},da),qr)),At.createElement("div",{className:Co},At.createElement(he.CSSMotionList,Object.assign({},qr,{component:!1}),ao=>{let{key:_o,file:ca,className:fa,style:Vr}=ao;return At.createElement(Pi,{key:_o,locale:qn,prefixCls:or,className:fa,style:Vr,file:ca,items:Mr,progress:yr,listType:gn,isImgUrl:ai,showPreviewIcon:nr,showRemoveIcon:Oe,showDownloadIcon:xi,removeIcon:Vi,previewIcon:Ti,downloadIcon:Sr,iconRender:Fa,actionIconRender:Vo,itemRender:zi,onPreview:Or,onDownload:Qo,onClose:uo})}),Dr&&At.createElement(he.default,Object.assign({},qr,{visible:ir,forceRender:!0}),ao=>{let{className:_o,style:ca}=ao;return(0,ee.Tm)(Dr,fa=>({className:Ae()(fa.className,_o),style:Object.assign(Object.assign(Object.assign({},ca),{pointerEvents:_o?"none":void 0}),fa.style)}))}))};var gr=At.forwardRef(_i),fr=yt(17313),eo=yt(8378),Jr=yt(83116),Xi=yt(37613),Ki=He=>{const{componentCls:an,iconCls:gn}=He;return{[`${an}-wrapper`]:{[`${an}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:He.colorFillAlter,border:`${He.lineWidth}px dashed ${He.colorBorder}`,borderRadius:He.borderRadiusLG,cursor:"pointer",transition:`border-color ${He.motionDurationSlow}`,[an]:{padding:`${He.padding}px 0`},[`${an}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${an}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${an}-disabled):hover`]:{borderColor:He.colorPrimaryHover},[`p${an}-drag-icon`]:{marginBottom:He.margin,[gn]:{color:He.colorPrimary,fontSize:He.uploadThumbnailSize}},[`p${an}-text`]:{margin:`0 0 ${He.marginXXS}px`,color:He.colorTextHeading,fontSize:He.fontSizeLG},[`p${an}-hint`]:{color:He.colorTextDescription,fontSize:He.fontSize},[`&${an}-disabled`]:{cursor:"not-allowed",[`p${an}-drag-icon ${gn},
|
|
|
p${an}-text,
|
|
|
p${an}-hint
|
|
|
`]:{color:He.colorTextDisabled}}}}}},li=He=>{const{componentCls:an,antCls:gn,iconCls:sn,fontSize:bn,lineHeight:Fn}=He,Wn=`${an}-list-item`,qn=`${Wn}-actions`,Bn=`${Wn}-action`,ai=Math.round(bn*Fn);return{[`${an}-wrapper`]:{[`${an}-list`]:Object.assign(Object.assign({},(0,fr.dF)()),{lineHeight:He.lineHeight,[Wn]:{position:"relative",height:He.lineHeight*bn,marginTop:He.marginXS,fontSize:bn,display:"flex",alignItems:"center",transition:`background-color ${He.motionDurationSlow}`,"&:hover":{backgroundColor:He.controlItemBgHover},[`${Wn}-name`]:Object.assign(Object.assign({},fr.vS),{padding:`0 ${He.paddingXS}px`,lineHeight:Fn,flex:"auto",transition:`all ${He.motionDurationSlow}`}),[qn]:{[Bn]:{opacity:0},[`${Bn}${gn}-btn-sm`]:{height:ai,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Bn}:focus-visible,
|
|
|
&.picture ${Bn}
|
|
|
`]:{opacity:1},[sn]:{color:He.actionsColor,transition:`all ${He.motionDurationSlow}`},[`&:hover ${sn}`]:{color:He.colorText}},[`${an}-icon ${sn}`]:{color:He.colorTextDescription,fontSize:bn},[`${Wn}-progress`]:{position:"absolute",bottom:-He.uploadProgressOffset,width:"100%",paddingInlineStart:bn+He.paddingXS,fontSize:bn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Wn}:hover ${Bn}`]:{opacity:1,color:He.colorText},[`${Wn}-error`]:{color:He.colorError,[`${Wn}-name, ${an}-icon ${sn}`]:{color:He.colorError},[qn]:{[`${sn}, ${sn}:hover`]:{color:He.colorError},[Bn]:{opacity:1}}},[`${an}-list-item-container`]:{transition:`opacity ${He.motionDurationSlow}, height ${He.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vi=yt(88252),Lr=yt(1950);const hr=new vi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qi=new vi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Gr=He=>{const{componentCls:an}=He,gn=`${an}-animate-inline`;return[{[`${an}-wrapper`]:{[`${gn}-appear, ${gn}-enter, ${gn}-leave`]:{animationDuration:He.motionDurationSlow,animationTimingFunction:He.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gn}-appear, ${gn}-enter`]:{animationName:hr},[`${gn}-leave`]:{animationName:qi}}},{[`${an}-wrapper`]:(0,Lr.J$)(He)},hr,qi]},Ln=yt(93398),fn=yt(64993);const Ze=He=>{const{componentCls:an,iconCls:gn,uploadThumbnailSize:sn,uploadProgressOffset:bn}=He,Fn=`${an}-list`,Wn=`${Fn}-item`;return{[`${an}-wrapper`]:{[`
|
|
|
${Fn}${Fn}-picture,
|
|
|
${Fn}${Fn}-picture-card,
|
|
|
${Fn}${Fn}-picture-circle
|
|
|
`]:{[Wn]:{position:"relative",height:sn+He.lineWidth*2+He.paddingXS*2,padding:He.paddingXS,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadiusLG,"&:hover":{background:"transparent"},[`${Wn}-thumbnail`]:Object.assign(Object.assign({},fr.vS),{width:sn,height:sn,lineHeight:`${sn+He.paddingSM}px`,textAlign:"center",flex:"none",[gn]:{fontSize:He.fontSizeHeading2,color:He.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Wn}-progress`]:{bottom:bn,width:`calc(100% - ${He.paddingSM*2}px)`,marginTop:0,paddingInlineStart:sn+He.paddingXS}},[`${Wn}-error`]:{borderColor:He.colorError,[`${Wn}-thumbnail ${gn}`]:{[`svg path[fill='${Ln.blue[0]}']`]:{fill:He.colorErrorBg},[`svg path[fill='${Ln.blue.primary}']`]:{fill:He.colorError}}},[`${Wn}-uploading`]:{borderStyle:"dashed",[`${Wn}-name`]:{marginBottom:bn}}},[`${Fn}${Fn}-picture-circle ${Wn}`]:{[`&, &::before, ${Wn}-thumbnail`]:{borderRadius:"50%"}}}}},fe=He=>{const{componentCls:an,iconCls:gn,fontSizeLG:sn,colorTextLightSolid:bn}=He,Fn=`${an}-list`,Wn=`${Fn}-item`,qn=He.uploadPicCardSize;return{[`
|
|
|
${an}-wrapper${an}-picture-card-wrapper,
|
|
|
${an}-wrapper${an}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,fr.dF)()),{display:"inline-block",width:"100%",[`${an}${an}-select`]:{width:qn,height:qn,marginInlineEnd:He.marginXS,marginBottom:He.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:He.colorFillAlter,border:`${He.lineWidth}px dashed ${He.colorBorder}`,borderRadius:He.borderRadiusLG,cursor:"pointer",transition:`border-color ${He.motionDurationSlow}`,[`> ${an}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${an}-disabled):hover`]:{borderColor:He.colorPrimary}},[`${Fn}${Fn}-picture-card, ${Fn}${Fn}-picture-circle`]:{[`${Fn}-item-container`]:{display:"inline-block",width:qn,height:qn,marginBlock:`0 ${He.marginXS}px`,marginInline:`0 ${He.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Wn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${He.paddingXS*2}px)`,height:`calc(100% - ${He.paddingXS*2}px)`,backgroundColor:He.colorBgMask,opacity:0,transition:`all ${He.motionDurationSlow}`,content:'" "'}},[`${Wn}:hover`]:{[`&::before, ${Wn}-actions`]:{opacity:1}},[`${Wn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${He.motionDurationSlow}`,[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{zIndex:10,width:sn,margin:`0 ${He.marginXXS}px`,fontSize:sn,cursor:"pointer",transition:`all ${He.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Wn}-actions, ${Wn}-actions:hover`]:{[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{color:new fn.C(bn).setAlpha(.65).toRgbString(),"&:hover":{color:bn}}},[`${Wn}-thumbnail, ${Wn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Wn}-name`]:{display:"none",textAlign:"center"},[`${Wn}-file + ${Wn}-name`]:{position:"absolute",bottom:He.margin,display:"block",width:`calc(100% - ${He.paddingXS*2}px)`},[`${Wn}-uploading`]:{[`&${Wn}`]:{backgroundColor:He.colorFillAlter},[`&::before, ${gn}-eye, ${gn}-download, ${gn}-delete`]:{display:"none"}},[`${Wn}-progress`]:{bottom:He.marginXL,width:`calc(100% - ${He.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${an}-wrapper${an}-picture-circle-wrapper`]:{[`${an}${an}-select`]:{borderRadius:"50%"}}}};var In=He=>{const{componentCls:an}=He;return{[`${an}-rtl`]:{direction:"rtl"}}};const Fe=He=>{const{componentCls:an,colorTextDisabled:gn}=He;return{[`${an}-wrapper`]:Object.assign(Object.assign({},(0,fr.Wf)(He)),{[an]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${an}-select`]:{display:"inline-block"},[`${an}-disabled`]:{color:gn,cursor:"not-allowed"}})}};var ue=(0,Jr.Z)("Upload",He=>{const{fontSizeHeading3:an,fontSize:gn,lineHeight:sn,lineWidth:bn,controlHeightLG:Fn}=He,Wn=Math.round(gn*sn),qn=(0,Xi.TS)(He,{uploadThumbnailSize:an*2,uploadProgressOffset:Wn/2+bn,uploadPicCardSize:Fn*2.55});return[Fe(qn),Ki(qn),Ze(qn),fe(qn),li(qn),Gr(qn),In(qn),(0,eo.Z)(qn)]},He=>({actionsColor:He.colorTextDescription})),pn=function(He,an,gn,sn){function bn(Fn){return Fn instanceof gn?Fn:new gn(function(Wn){Wn(Fn)})}return new(gn||(gn=Promise))(function(Fn,Wn){function qn(Wi){try{ai(sn.next(Wi))}catch(Mr){Wn(Mr)}}function Bn(Wi){try{ai(sn.throw(Wi))}catch(Mr){Wn(Mr)}}function ai(Wi){Wi.done?Fn(Wi.value):bn(Wi.value).then(qn,Bn)}ai((sn=sn.apply(He,an||[])).next())})};const Un=`__LIST_IGNORE_${Date.now()}__`,Oi=(He,an)=>{const{fileList:gn,defaultFileList:sn,onRemove:bn,showUploadList:Fn=!0,listType:Wn="text",onPreview:qn,onDownload:Bn,onChange:ai,onDrop:Wi,previewFile:Mr,disabled:nr,locale:Oe,iconRender:xi,isImageUrl:Vi,progress:Ti,prefixCls:Sr,className:yr,type:Dr="select",children:ir,style:zi,itemRender:Kr,maxCount:wn,data:To={},multiple:An=!1,action:Or="",accept:Qo="",supportServerRender:uo=!0,rootClassName:Fa}=He,Vo=At.useContext(ve.Z),dr=nr!=null?nr:Vo,[or,io]=(0,Ke.Z)(sn||[],{value:gn,postState:ko=>ko!=null?ko:[]}),[Co,Ci]=At.useState("drop"),Vt=At.useRef(null);At.useMemo(()=>{const ko=Date.now();(gn||[]).forEach((ga,os)=>{!ga.uid&&!Object.isFrozen(ga)&&(ga.uid=`__AUTO__${ko}_${os}__`)})},[gn]);const qr=(ko,ga,os)=>{let pa=(0,zt.Z)(ga),Fo=!1;wn===1?pa=pa.slice(-1):wn&&(Fo=pa.length>wn,pa=pa.slice(0,wn)),(0,tn.flushSync)(()=>{io(pa)});const sa={file:ko,fileList:pa};os&&(sa.event=os),(!Fo||pa.some(bs=>bs.uid===ko.uid))&&(0,tn.flushSync)(()=>{ai==null||ai(sa)})},da=(ko,ga)=>pn(void 0,void 0,void 0,function*(){const{beforeUpload:os,transformFile:pa}=He;let Fo=ko;if(os){const sa=yield os(ko,ga);if(sa===!1)return!1;if(delete ko[Un],sa===Un)return Object.defineProperty(ko,Un,{value:!0,configurable:!0}),!1;typeof sa=="object"&&sa&&(Fo=sa)}return pa&&(Fo=yield pa(Fo)),Fo}),ao=ko=>{const ga=ko.filter(Fo=>!Fo.file[Un]);if(!ga.length)return;const os=ga.map(Fo=>we(Fo.file));let pa=(0,zt.Z)(or);os.forEach(Fo=>{pa=se(Fo,pa)}),os.forEach((Fo,sa)=>{let bs=Fo;if(ga[sa].parsedFile)Fo.status="uploading";else{const{originFileObj:no}=Fo;let Ro;try{Ro=new File([no],no.name,{type:no.type})}catch(Oo){Ro=new Blob([no],{type:no.type}),Ro.name=no.name,Ro.lastModifiedDate=new Date,Ro.lastModified=new Date().getTime()}Ro.uid=Fo.uid,bs=Ro}qr(bs,pa)})},_o=(ko,ga,os)=>{try{typeof ko=="string"&&(ko=JSON.parse(ko))}catch(sa){}if(!ke(ga,or))return;const pa=we(ga);pa.status="done",pa.percent=100,pa.response=ko,pa.xhr=os;const Fo=se(pa,or);qr(pa,Fo)},ca=(ko,ga)=>{if(!ke(ga,or))return;const os=we(ga);os.status="uploading",os.percent=ko.percent;const pa=se(os,or);qr(os,pa,ko)},fa=(ko,ga,os)=>{if(!ke(os,or))return;const pa=we(os);pa.error=ko,pa.response=ga,pa.status="error";const Fo=se(pa,or);qr(pa,Fo)},Vr=ko=>{let ga;Promise.resolve(typeof bn=="function"?bn(ko):bn).then(os=>{var pa;if(os===!1)return;const Fo=vn(ko,or);Fo&&(ga=Object.assign(Object.assign({},ko),{status:"removed"}),or==null||or.forEach(sa=>{const bs=ga.uid!==void 0?"uid":"name";sa[bs]===ga[bs]&&!Object.isFrozen(sa)&&(sa.status="removed")}),(pa=Vt.current)===null||pa===void 0||pa.abort(ga),qr(ga,Fo))})},Ar=ko=>{Ci(ko.type),ko.type==="drop"&&(Wi==null||Wi(ko))};At.useImperativeHandle(an,()=>({onBatchStart:ao,onSuccess:_o,onProgress:ca,onError:fa,fileList:or,upload:Vt.current}));const{getPrefixCls:Cr,direction:Do,upload:Ui}=At.useContext(Tn.E_),$i=Cr("upload",Sr),Er=Object.assign(Object.assign({onBatchStart:ao,onError:fa,onProgress:ca,onSuccess:_o},He),{data:To,multiple:An,action:Or,accept:Qo,supportServerRender:uo,prefixCls:$i,disabled:dr,beforeUpload:da,onChange:void 0});delete Er.className,delete Er.style,(!ir||dr)&&delete Er.id;const[ei,Ho]=ue($i),[$o]=(0,Zt.Z)("Upload",en.Z.Upload),{showRemoveIcon:Na,showPreviewIcon:ua,showDownloadIcon:Ia,removeIcon:Ra,previewIcon:ys,downloadIcon:Ds}=typeof Fn=="boolean"?{}:Fn,_s=(ko,ga)=>Fn?At.createElement(gr,{prefixCls:$i,listType:Wn,items:or,previewFile:Mr,onPreview:qn,onDownload:Bn,onRemove:Vr,showRemoveIcon:!dr&&Na,showPreviewIcon:ua,showDownloadIcon:Ia,removeIcon:Ra,previewIcon:ys,downloadIcon:Ds,iconRender:xi,locale:Object.assign(Object.assign({},$o),Oe),isImageUrl:Vi,progress:Ti,appendAction:ko,appendActionVisible:ga,itemRender:Kr,disabled:dr}):ko,Ys=Ae()(`${$i}-wrapper`,yr,Fa,Ho,Ui==null?void 0:Ui.className,{[`${$i}-rtl`]:Do==="rtl",[`${$i}-picture-card-wrapper`]:Wn==="picture-card",[`${$i}-picture-circle-wrapper`]:Wn==="picture-circle"}),ln=Object.assign(Object.assign({},Ui==null?void 0:Ui.style),zi);if(Dr==="drag"){const ko=Ae()(Ho,$i,`${$i}-drag`,{[`${$i}-drag-uploading`]:or.some(ga=>ga.status==="uploading"),[`${$i}-drag-hover`]:Co==="dragover",[`${$i}-disabled`]:dr,[`${$i}-rtl`]:Do==="rtl"});return ei(At.createElement("span",{className:Ys},At.createElement("div",{className:ko,style:ln,onDrop:Ar,onDragOver:Ar,onDragLeave:Ar},At.createElement(Ue,Object.assign({},Er,{ref:Vt,className:`${$i}-btn`}),At.createElement("div",{className:`${$i}-drag-container`},ir))),_s()))}const js=Ae()($i,`${$i}-select`,{[`${$i}-disabled`]:dr}),su=(ko=>At.createElement("div",{className:js,style:ko},At.createElement(Ue,Object.assign({},Er,{ref:Vt}))))(ir?void 0:{display:"none"});return ei(Wn==="picture-card"||Wn==="picture-circle"?At.createElement("span",{className:Ys},_s(su,!!ir)):At.createElement("span",{className:Ys},su,_s()))};var Ce=At.forwardRef(Oi),Rn=function(He,an){var gn={};for(var sn in He)Object.prototype.hasOwnProperty.call(He,sn)&&an.indexOf(sn)<0&&(gn[sn]=He[sn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,sn=Object.getOwnPropertySymbols(He);bn<sn.length;bn++)an.indexOf(sn[bn])<0&&Object.prototype.propertyIsEnumerable.call(He,sn[bn])&&(gn[sn[bn]]=He[sn[bn]]);return gn},Bi=At.forwardRef((He,an)=>{var{style:gn,height:sn}=He,bn=Rn(He,["style","height"]);return At.createElement(Ce,Object.assign({ref:an},bn,{type:"drag",style:Object.assign(Object.assign({},gn),{height:sn})}))});const je=Ce;je.Dragger=Bi,je.LIST_IGNORE=Un;var yn=je},99498:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){At.defineOption("placeholder","",function(De,Pe,oe){var Re=oe&&oe!=At.Init;if(Pe&&!Re)De.on("blur",Ut),De.on("change",ne),De.on("swapDoc",ne),At.on(De.getInputField(),"compositionupdate",De.state.placeholderCompose=function(){Ae(De)}),ne(De);else if(!Pe&&Re){De.off("blur",Ut),De.off("change",ne),De.off("swapDoc",ne),At.off(De.getInputField(),"compositionupdate",De.state.placeholderCompose),zt(De);var de=De.getWrapperElement();de.className=de.className.replace(" CodeMirror-empty","")}Pe&&!De.hasFocus()&&Ut(De)});function zt(De){De.state.placeholder&&(De.state.placeholder.parentNode.removeChild(De.state.placeholder),De.state.placeholder=null)}function re(De){zt(De);var Pe=De.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=De.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var oe=De.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),Pe.appendChild(oe),De.display.lineSpace.insertBefore(Pe,De.display.lineSpace.firstChild)}function Ae(De){setTimeout(function(){var Pe=!1,oe=De.getInputField();oe.nodeName=="TEXTAREA"?Pe=!oe.value:De.lineCount()==1&&(Pe=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),Pe?re(De):zt(De)},20)}function Ut(De){Ft(De)&&re(De)}function ne(De){var Pe=De.getWrapperElement(),oe=Ft(De);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?re(De):zt(De)}function Ft(De){return De.lineCount()===1&&De.getLine(0)===""}})},25717:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){var zt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=At.Pos;At.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=At.Init&&(et.removeKeyMap(Ut),et.state.closeBrackets=null),nt&&(ne(Ae(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Ut))});function Ae(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:zt[nt]}var Ut={Backspace:Pe,Enter:oe};function ne(et){for(var nt=0;nt<et.length;nt++){var ht=et.charAt(nt),st="'"+ht+"'";Ut[st]||(Ut[st]=Ft(ht))}}ne(zt.pairs+"`");function Ft(et){return function(nt){return de(nt,et)}}function De(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ht=et.getModeAt(et.getCursor());return ht.closeBrackets||nt}function Pe(et){var nt=De(et);if(!nt||et.getOption("disableInput"))return At.Pass;for(var ht=Ae(nt,"pairs"),st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return At.Pass;var mt=be(et,st[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return At.Pass}for(var gt=st.length-1;gt>=0;gt--){var Pt=st[gt].head;et.replaceRange("",re(Pt.line,Pt.ch-1),re(Pt.line,Pt.ch+1),"+delete")}}function oe(et){var nt=De(et),ht=nt&&Ae(nt,"explode");if(!ht||et.getOption("disableInput"))return At.Pass;for(var st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return At.Pass;var mt=be(et,st[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return At.Pass}et.operation(function(){var Pt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(Pt+Pt,null),et.execCommand("goCharLeft"),st=et.listSelections();for(var kt=0;kt<st.length;kt++){var wt=st[kt].head.line;et.indentLine(wt,null,!0),et.indentLine(wt+1,null,!0)}})}function Re(et){var nt=At.cmpPos(et.anchor,et.head)>0;return{anchor:new re(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new re(et.head.line,et.head.ch+(nt?1:-1))}}function de(et,nt){var ht=De(et);if(!ht||et.getOption("disableInput"))return At.Pass;var st=Ae(ht,"pairs"),gt=st.indexOf(nt);if(gt==-1)return At.Pass;for(var mt=Ae(ht,"closeBefore"),Pt=Ae(ht,"triples"),kt=st.charAt(gt+1)==nt,wt=et.listSelections(),Ot=gt%2==0,jt,Ht=0;Ht<wt.length;Ht++){var $t=wt[Ht],ye=$t.head,Yt,Ge=et.getRange(ye,re(ye.line,ye.ch+1));if(Ot&&!$t.empty())Yt="surround";else if((kt||!Ot)&&Ge==nt)kt&&Nt(et,ye)?Yt="both":Pt.indexOf(nt)>=0&&et.getRange(ye,re(ye.line,ye.ch+3))==nt+nt+nt?Yt="skipThree":Yt="skip";else if(kt&&ye.ch>1&&Pt.indexOf(nt)>=0&&et.getRange(re(ye.line,ye.ch-2),ye)==nt+nt){if(ye.ch>2&&/\bstring/.test(et.getTokenTypeAt(re(ye.line,ye.ch-2))))return At.Pass;Yt="addFour"}else if(kt){var ce=ye.ch==0?" ":et.getRange(re(ye.line,ye.ch-1),ye);if(!At.isWordChar(Ge)&&ce!=nt&&!At.isWordChar(ce))Yt="both";else return At.Pass}else if(Ot&&(Ge.length===0||/\s/.test(Ge)||mt.indexOf(Ge)>-1))Yt="both";else return At.Pass;if(!jt)jt=Yt;else if(jt!=Yt)return At.Pass}var $e=gt%2?st.charAt(gt-1):nt,Ue=gt%2?nt:st.charAt(gt+1);et.operation(function(){if(jt=="skip")et.execCommand("goCharRight");else if(jt=="skipThree")for(var Ke=0;Ke<3;Ke++)et.execCommand("goCharRight");else if(jt=="surround"){for(var tn=et.getSelections(),Ke=0;Ke<tn.length;Ke++)tn[Ke]=$e+tn[Ke]+Ue;et.replaceSelections(tn,"around"),tn=et.listSelections().slice();for(var Ke=0;Ke<tn.length;Ke++)tn[Ke]=Re(tn[Ke]);et.setSelections(tn)}else jt=="both"?(et.replaceSelection($e+Ue,null),et.triggerElectric($e+Ue),et.execCommand("goCharLeft")):jt=="addFour"&&(et.replaceSelection($e+$e+$e+$e,"before"),et.execCommand("goCharRight"))})}function be(et,nt){var ht=et.getRange(re(nt.line,nt.ch-1),re(nt.line,nt.ch+1));return ht.length==2?ht:null}function Nt(et,nt){var ht=et.getTokenAt(re(nt.line,nt.ch+1));return/\bstring/.test(ht.type)&&ht.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(On,Cn,yt){(function(At){At(yt(89780),yt(32855))})(function(At){At.defineOption("autoCloseTags",!1,function(Pe,oe,Re){if(Re!=At.Init&&Re&&Pe.removeKeyMap("autoCloseTags"),!!oe){var de={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(de["'/'"]=function(be){return ne(be)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(de["'>'"]=function(be){return Ae(be)}),Pe.addKeyMap(de)}});var zt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["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 Ae(Pe){if(Pe.getOption("disableInput"))return At.Pass;for(var oe=Pe.listSelections(),Re=[],de=Pe.getOption("autoCloseTags"),be=0;be<oe.length;be++){if(!oe[be].empty())return At.Pass;var Nt=oe[be].head,et=Pe.getTokenAt(Nt),nt=At.innerMode(Pe.getMode(),et.state),ht=nt.state,st=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ht),gt=st&&st.name;if(!gt)return At.Pass;var mt=nt.mode.configuration=="html",Pt=typeof de=="object"&&de.dontCloseTags||mt&&zt,kt=typeof de=="object"&&de.indentTags||mt&&re;et.end>Nt.ch&&(gt=gt.slice(0,gt.length-et.end+Nt.ch));var wt=gt.toLowerCase();if(!gt||et.type=="string"&&(et.end!=Nt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&st.close||et.string.indexOf("/")==Nt.ch-et.start-1||Pt&&Ft(Pt,wt)>-1||De(Pe,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],gt,Nt,!0))return At.Pass;var Ot=typeof de=="object"&&de.emptyTags;if(Ot&&Ft(Ot,gt)>-1){Re[be]={text:"/>",newPos:At.Pos(Nt.line,Nt.ch+2)};continue}var jt=kt&&Ft(kt,wt)>-1;Re[be]={indent:jt,text:">"+(jt?`
|
|
|
|
|
|
`:"")+"</"+gt+">",newPos:jt?At.Pos(Nt.line+1,0):At.Pos(Nt.line,Nt.ch+1)}}for(var Ht=typeof de=="object"&&de.dontIndentOnAutoClose,be=oe.length-1;be>=0;be--){var $t=Re[be];Pe.replaceRange($t.text,oe[be].head,oe[be].anchor,"+insert");var ye=Pe.listSelections().slice(0);ye[be]={head:$t.newPos,anchor:$t.newPos},Pe.setSelections(ye),!Ht&&$t.indent&&(Pe.indentLine($t.newPos.line,null,!0),Pe.indentLine($t.newPos.line+1,null,!0))}}function Ut(Pe,oe){for(var Re=Pe.listSelections(),de=[],be=oe?"/":"</",Nt=Pe.getOption("autoCloseTags"),et=typeof Nt=="object"&&Nt.dontIndentOnSlash,nt=0;nt<Re.length;nt++){if(!Re[nt].empty())return At.Pass;var ht=Re[nt].head,st=Pe.getTokenAt(ht),gt=At.innerMode(Pe.getMode(),st.state),mt=gt.state;if(oe&&(st.type=="string"||st.string.charAt(0)!="<"||st.start!=ht.ch-1))return At.Pass;var Pt,kt=gt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(kt&>.mode.name=="javascript")Pt=be+"script";else if(kt&>.mode.name=="css")Pt=be+"style";else{var wt=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(mt);if(!wt||wt.length&&De(Pe,wt,wt[wt.length-1],ht))return At.Pass;Pt=be+wt[wt.length-1]}Pe.getLine(ht.line).charAt(st.end)!=">"&&(Pt+=">"),de[nt]=Pt}if(Pe.replaceSelections(de),Re=Pe.listSelections(),!et)for(var nt=0;nt<Re.length;nt++)(nt==Re.length-1||Re[nt].head.line<Re[nt+1].head.line)&&Pe.indentLine(Re[nt].head.line)}function ne(Pe){return Pe.getOption("disableInput")?At.Pass:Ut(Pe,!0)}At.commands.closeTag=function(Pe){return Ut(Pe)};function Ft(Pe,oe){if(Pe.indexOf)return Pe.indexOf(oe);for(var Re=0,de=Pe.length;Re<de;++Re)if(Pe[Re]==oe)return Re;return-1}function De(Pe,oe,Re,de,be){if(!At.scanForClosingTag)return!1;var Nt=Math.min(Pe.lastLine()+1,de.line+500),et=At.scanForClosingTag(Pe,de,null,Nt);if(!et||et.tag!=Re)return!1;for(var nt=be?1:0,ht=oe.length-1;ht>=0&&oe[ht]==Re;ht--)++nt;de=et.to;for(var ht=1;ht<nt;ht++){var st=At.scanForClosingTag(Pe,de,null,Nt);if(!st||st.tag!=Re)return!1;de=st.to}return!0}})},32855:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){"use strict";var zt=At.Pos;function re(ht,st){return ht.line-st.line||ht.ch-st.ch}var Ae="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",Ut=Ae+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ne=new RegExp("<(/?)(["+Ae+"]["+Ut+"]*)","g");function Ft(ht,st,gt,mt){this.line=st,this.ch=gt,this.cm=ht,this.text=ht.getLine(st),this.min=mt?Math.max(mt.from,ht.firstLine()):ht.firstLine(),this.max=mt?Math.min(mt.to-1,ht.lastLine()):ht.lastLine()}function De(ht,st){var gt=ht.cm.getTokenTypeAt(zt(ht.line,st));return gt&&/\btag\b/.test(gt)}function Pe(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function oe(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function Re(ht){for(;;){var st=ht.text.indexOf(">",ht.ch);if(st==-1){if(Pe(ht))continue;return}if(!De(ht,st+1)){ht.ch=st+1;continue}var gt=ht.text.lastIndexOf("/",st),mt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,mt?"selfClose":"regular"}}function de(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(st==-1){if(oe(ht))continue;return}if(!De(ht,st+1)){ht.ch=st;continue}ne.lastIndex=st,ht.ch=st;var gt=ne.exec(ht.text);if(gt&>.index==st)return gt}}function be(ht){for(;;){ne.lastIndex=ht.ch;var st=ne.exec(ht.text);if(!st){if(Pe(ht))continue;return}if(!De(ht,st.index+1)){ht.ch=st.index+1;continue}return ht.ch=st.index+st[0].length,st}}function Nt(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(st==-1){if(oe(ht))continue;return}if(!De(ht,st+1)){ht.ch=st;continue}var gt=ht.text.lastIndexOf("/",st),mt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,mt?"selfClose":"regular"}}function et(ht,st){for(var gt=[];;){var mt=be(ht),Pt,kt=ht.line,wt=ht.ch-(mt?mt[0].length:0);if(!mt||!(Pt=Re(ht)))return;if(Pt!="selfClose")if(mt[1]){for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==mt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==mt[2]))return{tag:mt[2],from:zt(kt,wt),to:zt(ht.line,ht.ch)}}else gt.push(mt[2])}}function nt(ht,st){for(var gt=[];;){var mt=Nt(ht);if(!mt)return;if(mt=="selfClose"){de(ht);continue}var Pt=ht.line,kt=ht.ch,wt=de(ht);if(!wt)return;if(wt[1])gt.push(wt[2]);else{for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==wt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==wt[2]))return{tag:wt[2],from:zt(ht.line,ht.ch),to:zt(Pt,kt)}}}}At.registerHelper("fold","xml",function(ht,st){for(var gt=new Ft(ht,st.line,0);;){var mt=be(gt);if(!mt||gt.line!=st.line)return;var Pt=Re(gt);if(!Pt)return;if(!mt[1]&&Pt!="selfClose"){var kt=zt(gt.line,gt.ch),wt=et(gt,mt[2]);return wt&&re(wt.from,kt)>0?{from:kt,to:wt.from}:null}}}),At.findMatchingTag=function(ht,st,gt){var mt=new Ft(ht,st.line,st.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var Pt=Re(mt),kt=Pt&&zt(mt.line,mt.ch),wt=Pt&&de(mt);if(!(!Pt||!wt||re(mt,st)>0)){var Ot={from:zt(mt.line,mt.ch),to:kt,tag:wt[2]};return Pt=="selfClose"?{open:Ot,close:null,at:"open"}:wt[1]?{open:nt(mt,wt[2]),close:Ot,at:"close"}:(mt=new Ft(ht,kt.line,kt.ch,gt),{open:Ot,close:et(mt,wt[2]),at:"open"})}}},At.findEnclosingTag=function(ht,st,gt,mt){for(var Pt=new Ft(ht,st.line,st.ch,gt);;){var kt=nt(Pt,mt);if(!kt)break;var wt=new Ft(ht,st.line,st.ch,gt),Ot=et(wt,kt.tag);if(Ot)return{open:kt,close:Ot}}},At.scanForClosingTag=function(ht,st,gt,mt){var Pt=new Ft(ht,st.line,st.ch,mt?{from:0,to:mt}:null);return et(Pt,gt)}})},89780:function(On){(function(Cn,yt){On.exports=yt()})(this,function(){"use strict";var Cn=navigator.userAgent,yt=navigator.platform,At=/gecko\/\d/i.test(Cn),zt=/MSIE \d/.test(Cn),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Ae=/Edge\/(\d+)/.exec(Cn),Ut=zt||re||Ae,ne=Ut&&(zt?document.documentMode||6:+(Ae||re)[1]),Ft=!Ae&&/WebKit\//.test(Cn),De=Ft&&/Qt\/\d+\.\d+/.test(Cn),Pe=!Ae&&/Chrome\//.test(Cn),oe=/Opera\//.test(Cn),Re=/Apple Computer/.test(navigator.vendor),de=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),be=/PhantomJS/.test(Cn),Nt=!Ae&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),nt=Nt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),ht=Nt||/Mac/.test(yt),st=/\bCrOS\b/.test(Cn),gt=/win/i.test(yt),mt=oe&&Cn.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(oe=!1,Ft=!0);var Pt=ht&&(De||oe&&(mt==null||mt<12.11)),kt=At||Ut&&ne>=9;function wt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ot=function(it,at){var ct=it.className,dt=wt(at).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function jt(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Ht(it,at){return jt(it).appendChild(at)}function $t(it,at,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var Mt=0;Mt<at.length;++Mt)pt.appendChild(at[Mt]);return pt}function ye(it,at,ct,dt){var pt=$t(it,at,ct,dt);return pt.setAttribute("role","presentation"),pt}var Yt;document.createRange?Yt=function(it,at,ct,dt){var pt=document.createRange();return pt.setEnd(dt||it,ct),pt.setStart(it,at),pt}:Yt=function(it,at,ct){var dt=document.body.createTextRange();try{dt.moveToElementText(it.parentNode)}catch(pt){return dt}return dt.collapse(!0),dt.moveEnd("character",ct),dt.moveStart("character",at),dt};function Ge(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function ce(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function $e(it,at){var ct=it.className;wt(at).test(ct)||(it.className+=(ct?" ":"")+at)}function Ue(it,at){for(var ct=it.split(" "),dt=0;dt<ct.length;dt++)ct[dt]&&!wt(ct[dt]).test(at)&&(at+=" "+ct[dt]);return at}var Ke=function(it){it.select()};Nt?Ke=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Ut&&(Ke=function(it){try{it.select()}catch(at){}});function tn(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function Tn(it,at,ct){at||(at={});for(var dt in it)it.hasOwnProperty(dt)&&(ct!==!1||!at.hasOwnProperty(dt))&&(at[dt]=it[dt]);return at}function ve(it,at,ct,dt,pt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Mt=dt||0,Rt=pt||0;;){var qt=it.indexOf(" ",Mt);if(qt<0||qt>=at)return Rt+(at-Mt);Rt+=qt-Mt,Rt+=ct-Rt%ct,Mt=qt+1}}var Zt=function(){this.id=null,this.f=null,this.time=0,this.handler=tn(this.onTimeout,this)};Zt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Zt.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function en(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var Kn=50,ii={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},on={origin:"*mouse"},un={origin:"+move"};function Jn(it,at,ct){for(var dt=0,pt=0;;){var Mt=it.indexOf(" ",dt);Mt==-1&&(Mt=it.length);var Rt=Mt-dt;if(Mt==it.length||pt+Rt>=at)return dt+Math.min(Rt,at-pt);if(pt+=Mt-dt,pt+=ct-pt%ct,dt=Mt+1,pt>=at)return dt}}var nn=[""];function Gn(it){for(;nn.length<=it;)nn.push(pe(nn)+" ");return nn[it]}function pe(it){return it[it.length-1]}function Xn(it,at){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=at(it[dt],dt);return ct}function oi(it,at,ct){for(var dt=0,pt=ct(at);dt<it.length&&ct(it[dt])<=pt;)dt++;it.splice(dt,0,at)}function te(){}function bt(it,at){var ct;return Object.create?ct=Object.create(it):(te.prototype=it,ct=new te),at&&Tn(at,ct),ct}var xt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Tt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||xt.test(it))}function Bt(it,at){return at?at.source.indexOf("\\w")>-1&&Tt(it)?!0:at.test(it):Tt(it)}function St(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var he=/[\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 Le(it){return it.charCodeAt(0)>=768&&he.test(it)}function Gt(it,at,ct){for(;(ct<0?at>0:at<it.length)&&Le(it.charAt(at));)at+=ct;return at}function ee(it,at,ct){for(var dt=at>ct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,Mt=dt<0?Math.ceil(pt):Math.floor(pt);if(Mt==at)return it(Mt)?at:ct;it(Mt)?ct=Mt:at=Mt+dt}}function xe(it,at,ct,dt){if(!it)return dt(at,ct,"ltr",0);for(var pt=!1,Mt=0;Mt<it.length;++Mt){var Rt=it[Mt];(Rt.from<ct&&Rt.to>at||at==ct&&Rt.to==at)&&(dt(Math.max(Rt.from,at),Math.min(Rt.to,ct),Rt.level==1?"rtl":"ltr",Mt),pt=!0)}pt||dt(at,ct,"ltr")}var we=null;function se(it,at,ct){var dt;we=null;for(var pt=0;pt<it.length;++pt){var Mt=it[pt];if(Mt.from<at&&Mt.to>at)return pt;Mt.to==at&&(Mt.from!=Mt.to&&ct=="before"?dt=pt:we=pt),Mt.from==at&&(Mt.from!=Mt.to&&ct!="before"?dt=pt:we=pt)}return dt!=null?dt:we}var ke=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(me){return me<=247?it.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?at.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,Mt=/[LRr]/,Rt=/[Lb1n]/,qt=/[1n]/;function Jt(me,rn,Me){this.level=me,this.from=rn,this.to=Me}return function(me,rn){var Me=rn=="ltr"?"L":"R";if(me.length==0||rn=="ltr"&&!dt.test(me))return!1;for(var Hn=me.length,Dn=[],Ni=0;Ni<Hn;++Ni)Dn.push(ct(me.charCodeAt(Ni)));for(var Ii=0,er=Me;Ii<Hn;++Ii){var br=Dn[Ii];br=="m"?Dn[Ii]=er:er=br}for(var oo=0,Wr=Me;oo<Hn;++oo){var xo=Dn[oo];xo=="1"&&Wr=="r"?Dn[oo]="n":Mt.test(xo)&&(Wr=xo,xo=="r"&&(Dn[oo]="R"))}for(var Jo=1,zr=Dn[0];Jo<Hn-1;++Jo){var va=Dn[Jo];va=="+"&&zr=="1"&&Dn[Jo+1]=="1"?Dn[Jo]="1":va==","&&zr==Dn[Jo+1]&&(zr=="1"||zr=="n")&&(Dn[Jo]=zr),zr=va}for(var Gs=0;Gs<Hn;++Gs){var kl=Dn[Gs];if(kl==",")Dn[Gs]="N";else if(kl=="%"){var el=void 0;for(el=Gs+1;el<Hn&&Dn[el]=="%";++el);for(var Iu=Gs&&Dn[Gs-1]=="!"||el<Hn&&Dn[el]=="1"?"1":"N",pu=Gs;pu<el;++pu)Dn[pu]=Iu;Gs=el-1}}for(var Pl=0,Xu=Me;Pl<Hn;++Pl){var tu=Dn[Pl];Xu=="L"&&tu=="1"?Dn[Pl]="L":Mt.test(tu)&&(Xu=tu)}for(var Cl=0;Cl<Hn;++Cl)if(pt.test(Dn[Cl])){var qa=void 0;for(qa=Cl+1;qa<Hn&&pt.test(Dn[qa]);++qa);for(var rl=(Cl?Dn[Cl-1]:Me)=="L",zl=(qa<Hn?Dn[qa]:Me)=="L",eu=rl==zl?rl?"L":"R":Me,Gh=Cl;Gh<qa;++Gh)Dn[Gh]=eu;Cl=qa-1}for(var nl=[],Eh,hl=0;hl<Hn;)if(Rt.test(Dn[hl])){var Qf=hl;for(++hl;hl<Hn&&Rt.test(Dn[hl]);++hl);nl.push(new Jt(0,Qf,hl))}else{var dh=hl,Ju=nl.length,Ru=rn=="rtl"?1:0;for(++hl;hl<Hn&&Dn[hl]!="L";++hl);for(var Fs=dh;Fs<hl;)if(qt.test(Dn[Fs])){dh<Fs&&(nl.splice(Ju,0,new Jt(1,dh,Fs)),Ju+=Ru);var jl=Fs;for(++Fs;Fs<hl&&qt.test(Dn[Fs]);++Fs);nl.splice(Ju,0,new Jt(2,jl,Fs)),Ju+=Ru,dh=Fs}else++Fs;dh<hl&&nl.splice(Ju,0,new Jt(1,dh,hl))}return rn=="ltr"&&(nl[0].level==1&&(Eh=me.match(/^\s+/))&&(nl[0].from=Eh[0].length,nl.unshift(new Jt(0,0,Eh[0].length))),pe(nl).level==1&&(Eh=me.match(/\s+$/))&&(pe(nl).to-=Eh[0].length,nl.push(new Jt(0,Hn-Eh[0].length,Hn)))),rn=="rtl"?nl.reverse():nl}}();function vn(it,at){var ct=it.order;return ct==null&&(ct=it.order=ke(it.text,at)),ct}var cn=[],Je=function(it,at,ct){if(it.addEventListener)it.addEventListener(at,ct,!1);else if(it.attachEvent)it.attachEvent("on"+at,ct);else{var dt=it._handlers||(it._handlers={});dt[at]=(dt[at]||cn).concat(ct)}};function hn(it,at){return it._handlers&&it._handlers[at]||cn}function Vn(it,at,ct){if(it.removeEventListener)it.removeEventListener(at,ct,!1);else if(it.detachEvent)it.detachEvent("on"+at,ct);else{var dt=it._handlers,pt=dt&&dt[at];if(pt){var Mt=en(pt,ct);Mt>-1&&(dt[at]=pt.slice(0,Mt).concat(pt.slice(Mt+1)))}}}function Se(it,at){var ct=hn(it,at);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt<ct.length;++pt)ct[pt].apply(null,dt)}function qe(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),Se(it,ct||at.type,it,at),Pi(at)||at.codemirrorIgnore}function Qe(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),dt=0;dt<at.length;++dt)en(ct,at[dt])==-1&&ct.push(at[dt])}function Nn(it,at){return hn(it,at).length>0}function hi(it){it.prototype.on=function(at,ct){Je(this,at,ct)},it.prototype.off=function(at,ct){Vn(this,at,ct)}}function mi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function gi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Pi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function _i(it){mi(it),gi(it)}function vr(it){return it.target||it.srcElement}function gr(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ht&&it.ctrlKey&&at==1&&(at=3),at}var fr=function(){if(Ut&&ne<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),eo;function Jr(it){if(eo==null){var at=$t("span","\u200B");Ht(it,$t("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(eo=at.offsetWidth<=1&&at.offsetHeight>2&&!(Ut&&ne<8))}var ct=eo?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Xi;function $r(it){if(Xi!=null)return Xi;var at=Ht(it,document.createTextNode("A\u062EA")),ct=Yt(at,0,1).getBoundingClientRect(),dt=Yt(at,1,2).getBoundingClientRect();return jt(it),!ct||ct.left==ct.right?!1:Xi=dt.right-ct.right<3}var Ki=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],dt=it.length;at<=dt;){var pt=it.indexOf(`
|
|
|
`,at);pt==-1&&(pt=it.length);var Mt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=Mt.indexOf("\r");Rt!=-1?(ct.push(Mt.slice(0,Rt)),at+=Rt+1):(ct.push(Mt),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Lt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},li=function(){var it=$t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),vi=null;function Lr(it){if(vi!=null)return vi;var at=Ht(it,$t("span","x")),ct=at.getBoundingClientRect(),dt=Yt(at,0,1).getBoundingClientRect();return vi=Math.abs(ct.left-dt.left)>1}var hr={},qi={};function Zr(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),hr[it]=at}function Gr(it,at){qi[it]=at}function Ln(it){if(typeof it=="string"&&qi.hasOwnProperty(it))it=qi[it];else if(it&&typeof it.name=="string"&&qi.hasOwnProperty(it.name)){var at=qi[it.name];typeof at=="string"&&(at={name:at}),it=bt(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Ln("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Ln("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function fn(it,at){at=Ln(at);var ct=hr[at.name];if(!ct)return fn(it,"text/plain");var dt=ct(it,at);if(Ze.hasOwnProperty(at.name)){var pt=Ze[at.name];for(var Mt in pt)pt.hasOwnProperty(Mt)&&(dt.hasOwnProperty(Mt)&&(dt["_"+Mt]=dt[Mt]),dt[Mt]=pt[Mt])}if(dt.name=at.name,at.helperType&&(dt.helperType=at.helperType),at.modeProps)for(var Rt in at.modeProps)dt[Rt]=at.modeProps[Rt];return dt}var Ze={};function fe(it,at){var ct=Ze.hasOwnProperty(it)?Ze[it]:Ze[it]={};Tn(at,ct)}function Sn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var dt in at){var pt=at[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function In(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function Fe(it,at,ct){return it.startState?it.startState(at,ct):!0}var ue=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};ue.prototype.eol=function(){return this.pos>=this.string.length},ue.prototype.sol=function(){return this.pos==this.lineStart},ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ue.prototype.eat=function(it){var at=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=at==it:ct=at&&(it.test?it.test(at):it(at)),ct)return++this.pos,at},ue.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},ue.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ue.prototype.skipToEnd=function(){this.pos=this.string.length},ue.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},ue.prototype.backUp=function(it){this.pos-=it},ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ue.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ue.prototype.match=function(it,at,ct){if(typeof it=="string"){var dt=function(Rt){return ct?Rt.toLowerCase():Rt},pt=this.string.substr(this.pos,it.length);if(dt(pt)==dt(it))return at!==!1&&(this.pos+=it.length),!0}else{var Mt=this.string.slice(this.pos).match(it);return Mt&&Mt.index>0?null:(Mt&&at!==!1&&(this.pos+=Mt[0].length),Mt)}},ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},ue.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},ue.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},ue.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function pn(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],Mt=pt.chunkSize();if(at<Mt){ct=pt;break}at-=Mt}return ct.lines[at]}function Un(it,at,ct){var dt=[],pt=at.line;return it.iter(at.line,ct.line+1,function(Mt){var Rt=Mt.text;pt==ct.line&&(Rt=Rt.slice(0,ct.ch)),pt==at.line&&(Rt=Rt.slice(at.ch)),dt.push(Rt),++pt}),dt}function Oi(it,at,ct){var dt=[];return it.iter(at,ct,function(pt){dt.push(pt.text)}),dt}function Pn(it,at){var ct=at-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function Ce(it){if(it.parent==null)return null;for(var at=it.parent,ct=en(at.lines,it),dt=at.parent;dt;at=dt,dt=dt.parent)for(var pt=0;dt.children[pt]!=at;++pt)ct+=dt.children[pt].chunkSize();return ct+at.first}function Rn(it,at){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var pt=it.children[dt],Mt=pt.height;if(at<Mt){it=pt;continue t}at-=Mt,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var Rt=0;Rt<it.lines.length;++Rt){var qt=it.lines[Rt],Jt=qt.height;if(at<Jt)break;at-=Jt}return ct+Rt}function pi(it,at){return at>=it.first&&at<it.first+it.size}function Bi(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function je(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof je))return new je(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function yn(it,at){return it.line-at.line||it.ch-at.ch}function He(it,at){return it.sticky==at.sticky&&yn(it,at)==0}function an(it){return je(it.line,it.ch)}function gn(it,at){return yn(it,at)<0?at:it}function sn(it,at){return yn(it,at)<0?it:at}function bn(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Fn(it,at){if(at.line<it.first)return je(it.first,0);var ct=it.first+it.size-1;return at.line>ct?je(ct,pn(it,ct).text.length):Wn(at,pn(it,at.line).text.length)}function Wn(it,at){var ct=it.ch;return ct==null||ct>at?je(it.line,at):ct<0?je(it.line,0):it}function qn(it,at){for(var ct=[],dt=0;dt<at.length;dt++)ct[dt]=Fn(it,at[dt]);return ct}var Bn=function(it,at){this.state=it,this.lookAhead=at},ai=function(it,at,ct,dt){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};ai.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},ai.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},ai.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ai.fromSaved=function(it,at,ct){return at instanceof Bn?new ai(it,Sn(it.mode,at.state),ct,at.lookAhead):new ai(it,Sn(it.mode,at),ct)},ai.prototype.save=function(it){var at=it!==!1?Sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(at,this.maxLookAhead):at};function Wi(it,at,ct,dt){var pt=[it.state.modeGen],Mt={};Dr(it,at.text,it.doc.mode,ct,function(me,rn){return pt.push(me,rn)},Mt,dt);for(var Rt=ct.state,qt=function(me){ct.baseTokens=pt;var rn=it.state.overlays[me],Me=1,Hn=0;ct.state=!0,Dr(it,at.text,rn.mode,ct,function(Dn,Ni){for(var Ii=Me;Hn<Dn;){var er=pt[Me];er>Dn&&pt.splice(Me,1,Dn,pt[Me+1],er),Me+=2,Hn=Math.min(Dn,er)}if(Ni)if(rn.opaque)pt.splice(Ii,Me-Ii,Dn,"overlay "+Ni),Me=Ii+2;else for(;Ii<Me;Ii+=2){var br=pt[Ii+1];pt[Ii+1]=(br?br+" ":"")+"overlay "+Ni}},Mt),ct.state=Rt,ct.baseTokens=null,ct.baseTokenPos=1},Jt=0;Jt<it.state.overlays.length;++Jt)qt(Jt);return{styles:pt,classes:Mt.bgClass||Mt.textClass?Mt:null}}function Mr(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var dt=nr(it,Ce(at)),pt=at.text.length>it.options.maxHighlightLength&&Sn(it.doc.mode,dt.state),Mt=Wi(it,at,dt);pt&&(dt.state=pt),at.stateAfter=dt.save(!pt),at.styles=Mt.styles,Mt.classes?at.styleClasses=Mt.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function nr(it,at,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new ai(dt,!0,at);var Mt=ir(it,at,ct),Rt=Mt>dt.first&&pn(dt,Mt-1).stateAfter,qt=Rt?ai.fromSaved(dt,Rt,Mt):new ai(dt,Fe(dt.mode),Mt);return dt.iter(Mt,at,function(Jt){Oe(it,Jt.text,qt);var me=qt.line;Jt.stateAfter=me==at-1||me%5==0||me>=pt.viewFrom&&me<pt.viewTo?qt.save():null,qt.nextLine()}),ct&&(dt.modeFrontier=qt.line),qt}function Oe(it,at,ct,dt){var pt=it.doc.mode,Mt=new ue(at,it.options.tabSize,ct);for(Mt.start=Mt.pos=dt||0,at==""&&xi(pt,ct.state);!Mt.eol();)Vi(pt,Mt,ct.state),Mt.start=Mt.pos}function xi(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=In(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function Vi(it,at,ct,dt){for(var pt=0;pt<10;pt++){dt&&(dt[0]=In(it,ct).mode);var Mt=it.token(at,ct);if(at.pos>at.start)return Mt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Ti=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function Sr(it,at,ct,dt){var pt=it.doc,Mt=pt.mode,Rt;at=Fn(pt,at);var qt=pn(pt,at.line),Jt=nr(it,at.line,ct),me=new ue(qt.text,it.options.tabSize,Jt),rn;for(dt&&(rn=[]);(dt||me.pos<at.ch)&&!me.eol();)me.start=me.pos,Rt=Vi(Mt,me,Jt.state),dt&&rn.push(new Ti(me,Rt,Sn(pt.mode,Jt.state)));return dt?rn:new Ti(me,Rt,Jt.state)}function yr(it,at){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var dt=ct[1]?"bgClass":"textClass";at[dt]==null?at[dt]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(at[dt])||(at[dt]+=" "+ct[2])}return it}function Dr(it,at,ct,dt,pt,Mt,Rt){var qt=ct.flattenSpans;qt==null&&(qt=it.options.flattenSpans);var Jt=0,me=null,rn=new ue(at,it.options.tabSize,dt),Me,Hn=it.options.addModeClass&&[null];for(at==""&&yr(xi(ct,dt.state),Mt);!rn.eol();){if(rn.pos>it.options.maxHighlightLength?(qt=!1,Rt&&Oe(it,at,dt,rn.pos),rn.pos=at.length,Me=null):Me=yr(Vi(ct,rn,dt.state,Hn),Mt),Hn){var Dn=Hn[0].name;Dn&&(Me="m-"+(Me?Dn+" "+Me:Dn))}if(!qt||me!=Me){for(;Jt<rn.start;)Jt=Math.min(rn.start,Jt+5e3),pt(Jt,me);me=Me}rn.start=rn.pos}for(;Jt<rn.pos;){var Ni=Math.min(rn.pos,Jt+5e3);pt(Ni,me),Jt=Ni}}function ir(it,at,ct){for(var dt,pt,Mt=it.doc,Rt=ct?-1:at-(it.doc.mode.innerMode?1e3:100),qt=at;qt>Rt;--qt){if(qt<=Mt.first)return Mt.first;var Jt=pn(Mt,qt-1),me=Jt.stateAfter;if(me&&(!ct||qt+(me instanceof Bn?me.lookAhead:0)<=Mt.modeFrontier))return qt;var rn=ve(Jt.text,null,it.options.tabSize);(pt==null||dt>rn)&&(pt=qt-1,dt=rn)}return pt}function zi(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var ct=it.first,dt=at-1;dt>ct;dt--){var pt=pn(it,dt).stateAfter;if(pt&&(!(pt instanceof Bn)||dt+pt.lookAhead<at)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Kr=!1,wn=!1;function To(){Kr=!0}function An(){wn=!0}function Or(it,at,ct){this.marker=it,this.from=at,this.to=ct}function Qo(it,at){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==at)return dt}}function uo(it,at){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=at&&(ct||(ct=[])).push(it[dt]);return ct}function Fa(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function Vo(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=Mt.marker,qt=Mt.from==null||(Rt.inclusiveLeft?Mt.from<=at:Mt.from<at);if(qt||Mt.from==at&&Rt.type=="bookmark"&&(!ct||!Mt.marker.insertLeft)){var Jt=Mt.to==null||(Rt.inclusiveRight?Mt.to>=at:Mt.to>at);(dt||(dt=[])).push(new Or(Rt,Mt.from,Jt?null:Mt.to))}}return dt}function dr(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=Mt.marker,qt=Mt.to==null||(Rt.inclusiveRight?Mt.to>=at:Mt.to>at);if(qt||Mt.from==at&&Rt.type=="bookmark"&&(!ct||Mt.marker.insertLeft)){var Jt=Mt.from==null||(Rt.inclusiveLeft?Mt.from<=at:Mt.from<at);(dt||(dt=[])).push(new Or(Rt,Jt?null:Mt.from-at,Mt.to==null?null:Mt.to-at))}}return dt}function or(it,at){if(at.full)return null;var ct=pi(it,at.from.line)&&pn(it,at.from.line).markedSpans,dt=pi(it,at.to.line)&&pn(it,at.to.line).markedSpans;if(!ct&&!dt)return null;var pt=at.from.ch,Mt=at.to.ch,Rt=yn(at.from,at.to)==0,qt=Vo(ct,pt,Rt),Jt=dr(dt,Mt,Rt),me=at.text.length==1,rn=pe(at.text).length+(me?pt:0);if(qt)for(var Me=0;Me<qt.length;++Me){var Hn=qt[Me];if(Hn.to==null){var Dn=Qo(Jt,Hn.marker);Dn?me&&(Hn.to=Dn.to==null?null:Dn.to+rn):Hn.to=pt}}if(Jt)for(var Ni=0;Ni<Jt.length;++Ni){var Ii=Jt[Ni];if(Ii.to!=null&&(Ii.to+=rn),Ii.from==null){var er=Qo(qt,Ii.marker);er||(Ii.from=rn,me&&(qt||(qt=[])).push(Ii))}else Ii.from+=rn,me&&(qt||(qt=[])).push(Ii)}qt&&(qt=io(qt)),Jt&&Jt!=qt&&(Jt=io(Jt));var br=[qt];if(!me){var oo=at.text.length-2,Wr;if(oo>0&&qt)for(var xo=0;xo<qt.length;++xo)qt[xo].to==null&&(Wr||(Wr=[])).push(new Or(qt[xo].marker,null,null));for(var Jo=0;Jo<oo;++Jo)br.push(Wr);br.push(Jt)}return br}function io(it){for(var at=0;at<it.length;++at){var ct=it[at];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function Co(it,at,ct){var dt=null;if(it.iter(at.line,ct.line+1,function(Dn){if(Dn.markedSpans)for(var Ni=0;Ni<Dn.markedSpans.length;++Ni){var Ii=Dn.markedSpans[Ni].marker;Ii.readOnly&&(!dt||en(dt,Ii)==-1)&&(dt||(dt=[])).push(Ii)}}),!dt)return null;for(var pt=[{from:at,to:ct}],Mt=0;Mt<dt.length;++Mt)for(var Rt=dt[Mt],qt=Rt.find(0),Jt=0;Jt<pt.length;++Jt){var me=pt[Jt];if(!(yn(me.to,qt.from)<0||yn(me.from,qt.to)>0)){var rn=[Jt,1],Me=yn(me.from,qt.from),Hn=yn(me.to,qt.to);(Me<0||!Rt.inclusiveLeft&&!Me)&&rn.push({from:me.from,to:qt.from}),(Hn>0||!Rt.inclusiveRight&&!Hn)&&rn.push({from:qt.to,to:me.to}),pt.splice.apply(pt,rn),Jt+=rn.length-3}}return pt}function Ci(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Vt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function qr(it){return it.inclusiveLeft?-1:0}function da(it){return it.inclusiveRight?1:0}function ao(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var dt=it.find(),pt=at.find(),Mt=yn(dt.from,pt.from)||qr(it)-qr(at);if(Mt)return-Mt;var Rt=yn(dt.to,pt.to)||da(it)-da(at);return Rt||at.id-it.id}function _o(it,at){var ct=wn&&it.markedSpans,dt;if(ct)for(var pt=void 0,Mt=0;Mt<ct.length;++Mt)pt=ct[Mt],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!dt||ao(dt,pt.marker)<0)&&(dt=pt.marker);return dt}function ca(it){return _o(it,!0)}function fa(it){return _o(it,!1)}function Vr(it,at){var ct=wn&&it.markedSpans,dt;if(ct)for(var pt=0;pt<ct.length;++pt){var Mt=ct[pt];Mt.marker.collapsed&&(Mt.from==null||Mt.from<at)&&(Mt.to==null||Mt.to>at)&&(!dt||ao(dt,Mt.marker)<0)&&(dt=Mt.marker)}return dt}function Ar(it,at,ct,dt,pt){var Mt=pn(it,at),Rt=wn&&Mt.markedSpans;if(Rt)for(var qt=0;qt<Rt.length;++qt){var Jt=Rt[qt];if(Jt.marker.collapsed){var me=Jt.marker.find(0),rn=yn(me.from,ct)||qr(Jt.marker)-qr(pt),Me=yn(me.to,dt)||da(Jt.marker)-da(pt);if(!(rn>=0&&Me<=0||rn<=0&&Me>=0)&&(rn<=0&&(Jt.marker.inclusiveRight&&pt.inclusiveLeft?yn(me.to,ct)>=0:yn(me.to,ct)>0)||rn>=0&&(Jt.marker.inclusiveRight&&pt.inclusiveLeft?yn(me.from,dt)<=0:yn(me.from,dt)<0)))return!0}}}function Cr(it){for(var at;at=ca(it);)it=at.find(-1,!0).line;return it}function Do(it){for(var at;at=fa(it);)it=at.find(1,!0).line;return it}function Ui(it){for(var at,ct;at=fa(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function $i(it,at){var ct=pn(it,at),dt=Cr(ct);return ct==dt?at:Ce(dt)}function Er(it,at){if(at>it.lastLine())return at;var ct=pn(it,at),dt;if(!ei(it,ct))return at;for(;dt=fa(ct);)ct=dt.find(1,!0).line;return Ce(ct)+1}function ei(it,at){var ct=wn&&at.markedSpans;if(ct){for(var dt=void 0,pt=0;pt<ct.length;++pt)if(dt=ct[pt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&Ho(it,at,dt))return!0}}}function Ho(it,at,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return Ho(it,dt.line,Qo(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var pt=void 0,Mt=0;Mt<at.markedSpans.length;++Mt)if(pt=at.markedSpans[Mt],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&Ho(it,at,pt))return!0}function $o(it){it=Cr(it);for(var at=0,ct=it.parent,dt=0;dt<ct.lines.length;++dt){var pt=ct.lines[dt];if(pt==it)break;at+=pt.height}for(var Mt=ct.parent;Mt;ct=Mt,Mt=ct.parent)for(var Rt=0;Rt<Mt.children.length;++Rt){var qt=Mt.children[Rt];if(qt==ct)break;at+=qt.height}return at}function Na(it){if(it.height==0)return 0;for(var at=it.text.length,ct,dt=it;ct=ca(dt);){var pt=ct.find(0,!0);dt=pt.from.line,at+=pt.from.ch-pt.to.ch}for(dt=it;ct=fa(dt);){var Mt=ct.find(0,!0);at-=dt.text.length-Mt.from.ch,dt=Mt.to.line,at+=dt.text.length-Mt.to.ch}return at}function ua(it){var at=it.display,ct=it.doc;at.maxLine=pn(ct,ct.first),at.maxLineLength=Na(at.maxLine),at.maxLineChanged=!0,ct.iter(function(dt){var pt=Na(dt);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=dt)})}var Ia=function(it,at,ct){this.text=it,Vt(this,at),this.height=ct?ct(this):1};Ia.prototype.lineNo=function(){return Ce(this)},hi(Ia);function Ra(it,at,ct,dt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Ci(it),Vt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&Pn(it,pt)}function ys(it){it.parent=null,Ci(it)}var Ds={},_s={};function Ys(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?_s:Ds;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function ln(it,at){var ct=ye("span",null,null,Ft?"padding-right: .1px":null),dt={pre:ye("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var Mt=pt?at.rest[pt-1]:at.line,Rt=void 0;dt.pos=0,dt.addToken=au,$r(it.display.measure)&&(Rt=vn(Mt,it.doc.direction))&&(dt.addToken=ko(dt.addToken,Rt)),dt.map=[];var qt=at!=it.display.externalMeasured&&Ce(Mt);os(Mt,dt,Mr(it,Mt,qt)),Mt.styleClasses&&(Mt.styleClasses.bgClass&&(dt.bgClass=Ue(Mt.styleClasses.bgClass,dt.bgClass||"")),Mt.styleClasses.textClass&&(dt.textClass=Ue(Mt.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(Jr(it.display.measure))),pt==0?(at.measure.map=dt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(dt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(Ft){var Jt=dt.content.lastChild;(/\bcm-tab\b/.test(Jt.className)||Jt.querySelector&&Jt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return Se(it,"renderLine",it,at.line,dt.pre),dt.pre.className&&(dt.textClass=Ue(dt.pre.className,dt.textClass||"")),dt}function js(it){var at=$t("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function au(it,at,ct,dt,pt,Mt,Rt){if(at){var qt=it.splitSpaces?su(at,it.trailingSpace):at,Jt=it.cm.state.specialChars,me=!1,rn;if(!Jt.test(at))it.col+=at.length,rn=document.createTextNode(qt),it.map.push(it.pos,it.pos+at.length,rn),Ut&&ne<9&&(me=!0),it.pos+=at.length;else{rn=document.createDocumentFragment();for(var Me=0;;){Jt.lastIndex=Me;var Hn=Jt.exec(at),Dn=Hn?Hn.index-Me:at.length-Me;if(Dn){var Ni=document.createTextNode(qt.slice(Me,Me+Dn));Ut&&ne<9?rn.appendChild($t("span",[Ni])):rn.appendChild(Ni),it.map.push(it.pos,it.pos+Dn,Ni),it.col+=Dn,it.pos+=Dn}if(!Hn)break;Me+=Dn+1;var Ii=void 0;if(Hn[0]==" "){var er=it.cm.options.tabSize,br=er-it.col%er;Ii=rn.appendChild($t("span",Gn(br),"cm-tab")),Ii.setAttribute("role","presentation"),Ii.setAttribute("cm-text"," "),it.col+=br}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(Ii=rn.appendChild($t("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ii.setAttribute("cm-text",Hn[0]),it.col+=1):(Ii=it.cm.options.specialCharPlaceholder(Hn[0]),Ii.setAttribute("cm-text",Hn[0]),Ut&&ne<9?rn.appendChild($t("span",[Ii])):rn.appendChild(Ii),it.col+=1);it.map.push(it.pos,it.pos+1,Ii),it.pos++}}if(it.trailingSpace=qt.charCodeAt(at.length-1)==32,ct||dt||pt||me||Mt||Rt){var oo=ct||"";dt&&(oo+=dt),pt&&(oo+=pt);var Wr=$t("span",[rn],oo,Mt);if(Rt)for(var xo in Rt)Rt.hasOwnProperty(xo)&&xo!="style"&&xo!="class"&&Wr.setAttribute(xo,Rt[xo]);return it.content.appendChild(Wr)}it.content.appendChild(rn)}}function su(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,dt="",pt=0;pt<it.length;pt++){var Mt=it.charAt(pt);Mt==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(Mt="\xA0"),dt+=Mt,ct=Mt==" "}return dt}function ko(it,at){return function(ct,dt,pt,Mt,Rt,qt,Jt){pt=pt?pt+" cm-force-border":"cm-force-border";for(var me=ct.pos,rn=me+dt.length;;){for(var Me=void 0,Hn=0;Hn<at.length&&(Me=at[Hn],!(Me.to>me&&Me.from<=me));Hn++);if(Me.to>=rn)return it(ct,dt,pt,Mt,Rt,qt,Jt);it(ct,dt.slice(0,Me.to-me),pt,Mt,null,qt,Jt),Mt=null,dt=dt.slice(Me.to-me),me=Me.to}}}function ga(it,at,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function os(it,at,ct){var dt=it.markedSpans,pt=it.text,Mt=0;if(!dt){for(var Rt=1;Rt<ct.length;Rt+=2)at.addToken(at,pt.slice(Mt,Mt=ct[Rt]),Ys(ct[Rt+1],at.cm.options));return}for(var qt=pt.length,Jt=0,me=1,rn="",Me,Hn,Dn=0,Ni,Ii,er,br,oo;;){if(Dn==Jt){Ni=Ii=er=Hn="",oo=null,br=null,Dn=1/0;for(var Wr=[],xo=void 0,Jo=0;Jo<dt.length;++Jo){var zr=dt[Jo],va=zr.marker;if(va.type=="bookmark"&&zr.from==Jt&&va.widgetNode)Wr.push(va);else if(zr.from<=Jt&&(zr.to==null||zr.to>Jt||va.collapsed&&zr.to==Jt&&zr.from==Jt)){if(zr.to!=null&&zr.to!=Jt&&Dn>zr.to&&(Dn=zr.to,Ii=""),va.className&&(Ni+=" "+va.className),va.css&&(Hn=(Hn?Hn+";":"")+va.css),va.startStyle&&zr.from==Jt&&(er+=" "+va.startStyle),va.endStyle&&zr.to==Dn&&(xo||(xo=[])).push(va.endStyle,zr.to),va.title&&((oo||(oo={})).title=va.title),va.attributes)for(var Gs in va.attributes)(oo||(oo={}))[Gs]=va.attributes[Gs];va.collapsed&&(!br||ao(br.marker,va)<0)&&(br=zr)}else zr.from>Jt&&Dn>zr.from&&(Dn=zr.from)}if(xo)for(var kl=0;kl<xo.length;kl+=2)xo[kl+1]==Dn&&(Ii+=" "+xo[kl]);if(!br||br.from==Jt)for(var el=0;el<Wr.length;++el)ga(at,0,Wr[el]);if(br&&(br.from||0)==Jt){if(ga(at,(br.to==null?qt+1:br.to)-Jt,br.marker,br.from==null),br.to==null)return;br.to==Jt&&(br=!1)}}if(Jt>=qt)break;for(var Iu=Math.min(qt,Dn);;){if(rn){var pu=Jt+rn.length;if(!br){var Pl=pu>Iu?rn.slice(0,Iu-Jt):rn;at.addToken(at,Pl,Me?Me+Ni:Ni,er,Jt+Pl.length==Dn?Ii:"",Hn,oo)}if(pu>=Iu){rn=rn.slice(Iu-Jt),Jt=Iu;break}Jt=pu,er=""}rn=pt.slice(Mt,Mt=ct[me++]),Me=Ys(ct[me++],at.cm.options)}}}function pa(it,at,ct){this.line=at,this.rest=Ui(at),this.size=this.rest?Ce(pe(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=ei(it,at)}function Fo(it,at,ct){for(var dt=[],pt,Mt=at;Mt<ct;Mt=pt){var Rt=new pa(it.doc,pn(it.doc,Mt),Mt);pt=Mt+Rt.size,dt.push(Rt)}return dt}var sa=null;function bs(it){sa?sa.ops.push(it):it.ownsGroup=sa={ops:[it],delayedCallbacks:[]}}function no(it){var at=it.delayedCallbacks,ct=0;do{for(;ct<at.length;ct++)at[ct].call(null);for(var dt=0;dt<it.ops.length;dt++){var pt=it.ops[dt];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(ct<at.length)}function Ro(it,at){var ct=it.ownsGroup;if(ct)try{no(ct)}finally{sa=null,at(ct)}}var Oo=null;function Zi(it,at){var ct=hn(it,at);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),pt;sa?pt=sa.delayedCallbacks:Oo?pt=Oo:(pt=Oo=[],setTimeout(cs,0));for(var Mt=function(qt){pt.push(function(){return ct[qt].apply(null,dt)})},Rt=0;Rt<ct.length;++Rt)Mt(Rt)}}function cs(){var it=Oo;Oo=null;for(var at=0;at<it.length;++at)it[at]()}function Ss(it,at,ct,dt){for(var pt=0;pt<at.changes.length;pt++){var Mt=at.changes[pt];Mt=="text"?Fi(it,at):Mt=="gutter"?Es(it,at,ct,dt):Mt=="class"?Ya(it,at):Mt=="widget"&&Jl(it,at,dt)}at.changes=null}function dl(it){return it.node==it.text&&(it.node=$t("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Ut&&ne<8&&(it.node.style.zIndex=2)),it.node}function lu(it,at){var ct=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),at.background)ct?at.background.className=ct:(at.background.parentNode.removeChild(at.background),at.background=null);else if(ct){var dt=dl(at);at.background=dt.insertBefore($t("div",null,ct),dt.firstChild),it.display.input.setUneditable(at.background)}}function wu(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):ln(it,at)}function Fi(it,at){var ct=at.text.className,dt=wu(it,at);at.text==at.node&&(at.node=dt.pre),at.text.parentNode.replaceChild(dt.pre,at.text),at.text=dt.pre,dt.bgClass!=at.bgClass||dt.textClass!=at.textClass?(at.bgClass=dt.bgClass,at.textClass=dt.textClass,Ya(it,at)):ct&&(at.text.className=ct)}function Ya(it,at){lu(it,at),at.line.wrapClass?dl(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var ct=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=ct||""}function Es(it,at,ct,dt){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var pt=dl(at);at.gutterBackground=$t("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),pt.insertBefore(at.gutterBackground,at.text)}var Mt=at.line.gutterMarkers;if(it.options.lineNumbers||Mt){var Rt=dl(at),qt=at.gutter=$t("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(qt),Rt.insertBefore(qt,at.text),at.line.gutterClass&&(qt.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Mt||!Mt["CodeMirror-linenumbers"])&&(at.lineNumber=qt.appendChild($t("div",Bi(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Mt)for(var Jt=0;Jt<it.display.gutterSpecs.length;++Jt){var me=it.display.gutterSpecs[Jt].className,rn=Mt.hasOwnProperty(me)&&Mt[me];rn&&qt.appendChild($t("div",[rn],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[me]+"px; width: "+dt.gutterWidth[me]+"px"))}}}function Jl(it,at,ct){at.alignable&&(at.alignable=null);for(var dt=wt("CodeMirror-linewidget"),pt=at.node.firstChild,Mt=void 0;pt;pt=Mt)Mt=pt.nextSibling,dt.test(pt.className)&&at.node.removeChild(pt);hu(it,at,ct)}function uu(it,at,ct,dt){var pt=wu(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),Ya(it,at),Es(it,at,ct,dt),hu(it,at,dt),at.node}function hu(it,at,ct){if(ho(it,at.line,at,ct,!0),at.rest)for(var dt=0;dt<at.rest.length;dt++)ho(it,at.rest[dt],at,ct,!1)}function ho(it,at,ct,dt,pt){if(at.widgets)for(var Mt=dl(ct),Rt=0,qt=at.widgets;Rt<qt.length;++Rt){var Jt=qt[Rt],me=$t("div",[Jt.node],"CodeMirror-linewidget"+(Jt.className?" "+Jt.className:""));Jt.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Sh(Jt,me,ct,dt),it.display.input.setUneditable(me),pt&&Jt.above?Mt.insertBefore(me,ct.gutter||ct.text):Mt.appendChild(me),Zi(Jt,"redraw")}}function Sh(it,at,ct,dt){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(at);var pt=dt.wrapperWidth;at.style.left=dt.fixedPos+"px",it.coverGutter||(pt-=dt.gutterTotalWidth,at.style.paddingLeft=dt.gutterTotalWidth+"px"),at.style.width=pt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-dt.gutterTotalWidth+"px"))}function El(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Ge(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+at.display.wrapper.clientWidth+"px;"),Ht(at.display.measure,$t("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function Ll(it,at){for(var ct=vr(at);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function ml(it){return it.lineSpace.offsetTop}function Zu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Pu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Ht(it.measure,$t("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,dt={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(it.cachedPaddingH=dt),dt}function vl(it){return Kn-it.display.nativeBarWidth}function Ml(it){return it.display.scroller.clientWidth-vl(it)-it.display.barWidth}function Bh(it){return it.display.scroller.clientHeight-vl(it)-it.display.barHeight}function _h(it,at,ct){var dt=it.options.lineWrapping,pt=dt&&Ml(it);if(!at.measure.heights||dt&&at.measure.width!=pt){var Mt=at.measure.heights=[];if(dt){at.measure.width=pt;for(var Rt=at.text.firstChild.getClientRects(),qt=0;qt<Rt.length-1;qt++){var Jt=Rt[qt],me=Rt[qt+1];Math.abs(Jt.bottom-me.bottom)>2&&Mt.push((Jt.bottom+me.top)/2-ct.top)}}Mt.push(ct.bottom-ct.top)}}function Oh(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dt<it.rest.length;dt++)if(it.rest[dt]==at)return{map:it.measure.maps[dt],cache:it.measure.caches[dt]};for(var pt=0;pt<it.rest.length;pt++)if(Ce(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function gd(it,at){at=Cr(at);var ct=Ce(at),dt=it.display.externalMeasured=new pa(it.doc,at,ct);dt.lineN=ct;var pt=dt.built=ln(it,dt);return dt.text=pt.pre,Ht(it.display.lineMeasure,pt.pre),dt}function Ih(it,at,ct,dt){return Bl(it,Dl(it,at),ct,dt)}function Gu(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[yl(it,at)];var ct=it.display.externalMeasured;if(ct&&at>=ct.lineN&&at<ct.lineN+ct.size)return ct}function Dl(it,at){var ct=Ce(at),dt=Gu(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&(Ss(it,dt,ct,oc(it)),it.curOp.forceUpdate=!0),dt||(dt=gd(it,at));var pt=Oh(dt,at,ct);return{line:at,view:dt,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function Bl(it,at,ct,dt,pt){at.before&&(ct=-1);var Mt=ct+(dt||""),Rt;return at.cache.hasOwnProperty(Mt)?Rt=at.cache[Mt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(_h(it,at.view,at.rect),at.hasHeights=!0),Rt=Bo(it,at,ct,dt),Rt.bogus||(at.cache[Mt]=Rt)),{left:Rt.left,right:Rt.right,top:pt?Rt.rtop:Rt.top,bottom:pt?Rt.rbottom:Rt.bottom}}var pd={left:0,right:0,top:0,bottom:0};function td(it,at,ct){for(var dt,pt,Mt,Rt,qt,Jt,me=0;me<it.length;me+=3)if(qt=it[me],Jt=it[me+1],at<qt?(pt=0,Mt=1,Rt="left"):at<Jt?(pt=at-qt,Mt=pt+1):(me==it.length-3||at==Jt&&it[me+3]>at)&&(Mt=Jt-qt,pt=Mt-1,at>=Jt&&(Rt="right")),pt!=null){if(dt=it[me+2],qt==Jt&&ct==(dt.insertLeft?"left":"right")&&(Rt=ct),ct=="left"&&pt==0)for(;me&&it[me-2]==it[me-3]&&it[me-1].insertLeft;)dt=it[(me-=3)+2],Rt="left";if(ct=="right"&&pt==Jt-qt)for(;me<it.length-3&&it[me+3]==it[me+4]&&!it[me+5].insertLeft;)dt=it[(me+=3)+2],Rt="right";break}return{node:dt,start:pt,end:Mt,collapse:Rt,coverStart:qt,coverEnd:Jt}}function Cu(it,at){var ct=pd;if(at=="left")for(var dt=0;dt<it.length&&(ct=it[dt]).left==ct.right;dt++);else for(var pt=it.length-1;pt>=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function Bo(it,at,ct,dt){var pt=td(at.map,ct,dt),Mt=pt.node,Rt=pt.start,qt=pt.end,Jt=pt.collapse,me;if(Mt.nodeType==3){for(var rn=0;rn<4;rn++){for(;Rt&&Le(at.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+qt<pt.coverEnd&&Le(at.line.text.charAt(pt.coverStart+qt));)++qt;if(Ut&&ne<9&&Rt==0&&qt==pt.coverEnd-pt.coverStart?me=Mt.parentNode.getBoundingClientRect():me=Cu(Yt(Mt,Rt,qt).getClientRects(),dt),me.left||me.right||Rt==0)break;qt=Rt,Rt=Rt-1,Jt="right"}Ut&&ne<11&&(me=ha(it.display.measure,me))}else{Rt>0&&(Jt=dt="right");var Me;it.options.lineWrapping&&(Me=Mt.getClientRects()).length>1?me=Me[dt=="right"?Me.length-1:0]:me=Mt.getBoundingClientRect()}if(Ut&&ne<9&&!Rt&&(!me||!me.left&&!me.right)){var Hn=Mt.parentNode.getClientRects()[0];Hn?me={left:Hn.left,right:Hn.left+xh(it.display),top:Hn.top,bottom:Hn.bottom}:me=pd}for(var Dn=me.top-at.rect.top,Ni=me.bottom-at.rect.top,Ii=(Dn+Ni)/2,er=at.view.measure.heights,br=0;br<er.length-1&&!(Ii<er[br]);br++);var oo=br?er[br-1]:0,Wr=er[br],xo={left:(Jt=="right"?me.right:me.left)-at.rect.left,right:(Jt=="left"?me.left:me.right)-at.rect.left,top:oo,bottom:Wr};return!me.left&&!me.right&&(xo.bogus=!0),it.options.singleCursorHeightPerLine||(xo.rtop=Dn,xo.rbottom=Ni),xo}function ha(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Lr(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*dt,bottom:at.bottom*dt}}function cl(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function xs(it){it.display.externalMeasure=null,jt(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)cl(it.display.view[at])}function ws(it){xs(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function _a(){return Pe&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ls(){return Pe&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ls(it){var at=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(at+=El(it.widgets[ct]));return at}function Ps(it,at,ct,dt,pt){if(!pt){var Mt=Ls(at);ct.top+=Mt,ct.bottom+=Mt}if(dt=="line")return ct;dt||(dt="local");var Rt=$o(at);if(dt=="local"?Rt+=ml(it.display):Rt-=it.display.viewOffset,dt=="page"||dt=="window"){var qt=it.display.lineSpace.getBoundingClientRect();Rt+=qt.top+(dt=="window"?0:ls());var Jt=qt.left+(dt=="window"?0:_a());ct.left+=Jt,ct.right+=Jt}return ct.top+=Rt,ct.bottom+=Rt,ct}function ih(it,at,ct){if(ct=="div")return at;var dt=at.left,pt=at.top;if(ct=="page")dt-=_a(),pt-=ls();else if(ct=="local"||!ct){var Mt=it.display.sizer.getBoundingClientRect();dt+=Mt.left,pt+=Mt.top}var Rt=it.display.lineSpace.getBoundingClientRect();return{left:dt-Rt.left,top:pt-Rt.top}}function Ql(it,at,ct,dt,pt){return dt||(dt=pn(it.doc,at.line)),Ps(it,dt,Ih(it,dt,at.ch,pt),ct)}function fs(it,at,ct,dt,pt,Mt){dt=dt||pn(it.doc,at.line),pt||(pt=Dl(it,dt));function Rt(Ni,Ii){var er=Bl(it,pt,Ni,Ii?"right":"left",Mt);return Ii?er.left=er.right:er.right=er.left,Ps(it,dt,er,ct)}var qt=vn(dt,it.doc.direction),Jt=at.ch,me=at.sticky;if(Jt>=dt.text.length?(Jt=dt.text.length,me="before"):Jt<=0&&(Jt=0,me="after"),!qt)return Rt(me=="before"?Jt-1:Jt,me=="before");function rn(Ni,Ii,er){var br=qt[Ii],oo=br.level==1;return Rt(er?Ni-1:Ni,oo!=er)}var Me=se(qt,Jt,me),Hn=we,Dn=rn(Jt,Me,me=="before");return Hn!=null&&(Dn.other=rn(Jt,Hn,me!="before")),Dn}function ic(it,at){var ct=0;at=Fn(it.doc,at),it.options.lineWrapping||(ct=xh(it.display)*at.ch);var dt=pn(it.doc,at.line),pt=$o(dt)+ml(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function md(it,at,ct,dt,pt){var Mt=je(it,at,ct);return Mt.xRel=pt,dt&&(Mt.outside=dt),Mt}function ed(it,at,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return md(dt.first,0,null,-1,-1);var pt=Rn(dt,ct),Mt=dt.first+dt.size-1;if(pt>Mt)return md(dt.first+dt.size-1,pn(dt,Mt).text.length,null,1,1);at<0&&(at=0);for(var Rt=pn(dt,pt);;){var qt=ni(it,Rt,pt,at,ct),Jt=Vr(Rt,qt.ch+(qt.xRel>0||qt.outside>0?1:0));if(!Jt)return qt;var me=Jt.find(1);if(me.line==pt)return me;Rt=pn(dt,pt=me.line)}}function kr(it,at,ct,dt){dt-=Ls(at);var pt=at.text.length,Mt=ee(function(Rt){return Bl(it,ct,Rt-1).bottom<=dt},pt,0);return pt=ee(function(Rt){return Bl(it,ct,Rt).top>dt},Mt,pt),{begin:Mt,end:pt}}function nd(it,at,ct,dt){ct||(ct=Dl(it,at));var pt=Ps(it,at,Bl(it,ct,dt),"line").top;return kr(it,at,ct,pt)}function Ne(it,at,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>at}function ni(it,at,ct,dt,pt){pt-=$o(at);var Mt=Dl(it,at),Rt=Ls(at),qt=0,Jt=at.text.length,me=!0,rn=vn(at,it.doc.direction);if(rn){var Me=(it.options.lineWrapping?rc:Ic)(it,at,ct,Mt,rn,dt,pt);me=Me.level!=1,qt=me?Me.from:Me.to-1,Jt=me?Me.to:Me.from-1}var Hn=null,Dn=null,Ni=ee(function(Jo){var zr=Bl(it,Mt,Jo);return zr.top+=Rt,zr.bottom+=Rt,Ne(zr,dt,pt,!1)?(zr.top<=pt&&zr.left<=dt&&(Hn=Jo,Dn=zr),!0):!1},qt,Jt),Ii,er,br=!1;if(Dn){var oo=dt-Dn.left<Dn.right-dt,Wr=oo==me;Ni=Hn+(Wr?0:1),er=Wr?"after":"before",Ii=oo?Dn.left:Dn.right}else{!me&&(Ni==Jt||Ni==qt)&&Ni++,er=Ni==0?"after":Ni==at.text.length?"before":Bl(it,Mt,Ni-(me?1:0)).bottom+Rt<=pt==me?"after":"before";var xo=fs(it,je(ct,Ni,er),"line",at,Mt);Ii=xo.left,br=pt<xo.top?-1:pt>=xo.bottom?1:0}return Ni=Gt(at.text,Ni,1),md(ct,Ni,er,br,dt-Ii)}function Ic(it,at,ct,dt,pt,Mt,Rt){var qt=ee(function(Me){var Hn=pt[Me],Dn=Hn.level!=1;return Ne(fs(it,je(ct,Dn?Hn.to:Hn.from,Dn?"before":"after"),"line",at,dt),Mt,Rt,!0)},0,pt.length-1),Jt=pt[qt];if(qt>0){var me=Jt.level!=1,rn=fs(it,je(ct,me?Jt.from:Jt.to,me?"after":"before"),"line",at,dt);Ne(rn,Mt,Rt,!0)&&rn.top>Rt&&(Jt=pt[qt-1])}return Jt}function rc(it,at,ct,dt,pt,Mt,Rt){var qt=kr(it,at,dt,Rt),Jt=qt.begin,me=qt.end;/\s/.test(at.text.charAt(me-1))&&me--;for(var rn=null,Me=null,Hn=0;Hn<pt.length;Hn++){var Dn=pt[Hn];if(!(Dn.from>=me||Dn.to<=Jt)){var Ni=Dn.level!=1,Ii=Bl(it,dt,Ni?Math.min(me,Dn.to)-1:Math.max(Jt,Dn.from)).right,er=Ii<Mt?Mt-Ii+1e9:Ii-Mt;(!rn||Me>er)&&(rn=Dn,Me=er)}}return rn||(rn=pt[pt.length-1]),rn.from<Jt&&(rn={from:Jt,to:rn.to,level:rn.level}),rn.to>me&&(rn={from:rn.from,to:me,level:rn.level}),rn}var rh;function oh(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(rh==null){rh=$t("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)rh.appendChild(document.createTextNode("x")),rh.appendChild($t("br"));rh.appendChild(document.createTextNode("x"))}Ht(it.measure,rh);var ct=rh.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),jt(it.measure),ct||1}function xh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=$t("span","xxxxxxxxxx"),ct=$t("pre",[at],"CodeMirror-line-like");Ht(it.measure,ct);var dt=at.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function oc(it){for(var at=it.display,ct={},dt={},pt=at.gutters.clientLeft,Mt=at.gutters.firstChild,Rt=0;Mt;Mt=Mt.nextSibling,++Rt){var qt=it.display.gutterSpecs[Rt].className;ct[qt]=Mt.offsetLeft+Mt.clientLeft+pt,dt[qt]=Mt.clientWidth}return{fixedPos:Bd(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:at.wrapper.clientWidth}}function Bd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Cs(it){var at=oh(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/xh(it.display)-3);return function(pt){if(ei(it.doc,pt))return 0;var Mt=0;if(pt.widgets)for(var Rt=0;Rt<pt.widgets.length;Rt++)pt.widgets[Rt].height&&(Mt+=pt.widgets[Rt].height);return ct?Mt+(Math.ceil(pt.text.length/dt)||1)*at:Mt+at}}function vo(it){var at=it.doc,ct=Cs(it);at.iter(function(dt){var pt=ct(dt);pt!=dt.height&&Pn(dt,pt)})}function il(it,at,ct,dt){var pt=it.display;if(!ct&&vr(at).getAttribute("cm-not-content")=="true")return null;var Mt,Rt,qt=pt.lineSpace.getBoundingClientRect();try{Mt=at.clientX-qt.left,Rt=at.clientY-qt.top}catch(Me){return null}var Jt=ed(it,Mt,Rt),me;if(dt&&Jt.xRel>0&&(me=pn(it.doc,Jt.line).text).length==Jt.ch){var rn=ve(me,me.length,it.options.tabSize)-me.length;Jt=je(Jt.line,Math.max(0,Math.round((Mt-Pu(it.display).left)/xh(it.display))-rn))}return Jt}function yl(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,dt=0;dt<ct.length;dt++)if(at-=ct[dt].size,at<0)return dt}function as(it,at,ct,dt){at==null&&(at=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),dt||(dt=0);var pt=it.display;if(dt&&ct<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>at)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)wn&&$i(it.doc,at)<pt.viewTo&&Us(it);else if(ct<=pt.viewFrom)wn&&Er(it.doc,ct+dt)>pt.viewFrom?Us(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(at<=pt.viewFrom&&ct>=pt.viewTo)Us(it);else if(at<=pt.viewFrom){var Mt=It(it,ct,ct+dt,1);Mt?(pt.view=pt.view.slice(Mt.index),pt.viewFrom=Mt.lineN,pt.viewTo+=dt):Us(it)}else if(ct>=pt.viewTo){var Rt=It(it,at,at,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):Us(it)}else{var qt=It(it,at,at,-1),Jt=It(it,ct,ct+dt,1);qt&&Jt?(pt.view=pt.view.slice(0,qt.index).concat(Fo(it,qt.lineN,Jt.lineN)).concat(pt.view.slice(Jt.index)),pt.viewTo+=dt):Us(it)}var me=pt.externalMeasured;me&&(ct<me.lineN?me.lineN+=dt:at<me.lineN+me.size&&(pt.externalMeasured=null))}function ta(it,at,ct){it.curOp.viewChanged=!0;var dt=it.display,pt=it.display.externalMeasured;if(pt&&at>=pt.lineN&&at<pt.lineN+pt.size&&(dt.externalMeasured=null),!(at<dt.viewFrom||at>=dt.viewTo)){var Mt=dt.view[yl(it,at)];if(Mt.node!=null){var Rt=Mt.changes||(Mt.changes=[]);en(Rt,ct)==-1&&Rt.push(ct)}}}function Us(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function It(it,at,ct,dt){var pt=yl(it,at),Mt,Rt=it.display.view;if(!wn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var qt=it.display.viewFrom,Jt=0;Jt<pt;Jt++)qt+=Rt[Jt].size;if(qt!=at){if(dt>0){if(pt==Rt.length-1)return null;Mt=qt+Rt[pt].size-at,pt++}else Mt=qt-at;at+=Mt,ct+=Mt}for(;$i(it.doc,ct)!=ct;){if(pt==(dt<0?0:Rt.length-1))return null;ct+=dt*Rt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Kt(it,at,ct){var dt=it.display,pt=dt.view;pt.length==0||at>=dt.viewTo||ct<=dt.viewFrom?(dt.view=Fo(it,at,ct),dt.viewFrom=at):(dt.viewFrom>at?dt.view=Fo(it,at,dt.viewFrom).concat(dt.view):dt.viewFrom<at&&(dt.view=dt.view.slice(yl(it,at))),dt.viewFrom=at,dt.viewTo<ct?dt.view=dt.view.concat(Fo(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,yl(it,ct)))),dt.viewTo=ct}function _t(it){for(var at=it.display.view,ct=0,dt=0;dt<at.length;dt++){var pt=at[dt];!pt.hidden&&(!pt.node||pt.changes)&&++ct}return ct}function ze(it){it.display.input.showSelection(it.display.input.prepareSelection())}function We(it,at){at===void 0&&(at=!0);for(var ct=it.doc,dt={},pt=dt.cursors=document.createDocumentFragment(),Mt=dt.selection=document.createDocumentFragment(),Rt=0;Rt<ct.sel.ranges.length;Rt++)if(!(!at&&Rt==ct.sel.primIndex)){var qt=ct.sel.ranges[Rt];if(!(qt.from().line>=it.display.viewTo||qt.to().line<it.display.viewFrom)){var Jt=qt.empty();(Jt||it.options.showCursorWhenSelecting)&&dn(it,qt.head,pt),Jt||Zn(it,qt,Mt)}}return dt}function dn(it,at,ct){var dt=fs(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild($t("div","\xA0","CodeMirror-cursor"));if(pt.style.left=dt.left+"px",pt.style.top=dt.top+"px",pt.style.height=Math.max(0,dt.bottom-dt.top)*it.options.cursorHeight+"px",dt.other){var Mt=ct.appendChild($t("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Mt.style.display="",Mt.style.left=dt.other.left+"px",Mt.style.top=dt.other.top+"px",Mt.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function mn(it,at){return it.top-at.top||it.left-at.left}function Zn(it,at,ct){var dt=it.display,pt=it.doc,Mt=document.createDocumentFragment(),Rt=Pu(it.display),qt=Rt.left,Jt=Math.max(dt.sizerWidth,Ml(it)-dt.sizer.offsetLeft)-Rt.right,me=pt.direction=="ltr";function rn(Wr,xo,Jo,zr){xo<0&&(xo=0),xo=Math.round(xo),zr=Math.round(zr),Mt.appendChild($t("div",null,"CodeMirror-selected","position: absolute; left: "+Wr+`px;
|
|
|
top: `+xo+"px; width: "+(Jo==null?Jt-Wr:Jo)+`px;
|
|
|
height: `+(zr-xo)+"px"))}function Me(Wr,xo,Jo){var zr=pn(pt,Wr),va=zr.text.length,Gs,kl;function el(Pl,Xu){return Ql(it,je(Wr,Pl),"div",zr,Xu)}function Iu(Pl,Xu,tu){var Cl=nd(it,zr,null,Pl),qa=Xu=="ltr"==(tu=="after")?"left":"right",rl=tu=="after"?Cl.begin:Cl.end-(/\s/.test(zr.text.charAt(Cl.end-1))?2:1);return el(rl,qa)[qa]}var pu=vn(zr,pt.direction);return xe(pu,xo||0,Jo==null?va:Jo,function(Pl,Xu,tu,Cl){var qa=tu=="ltr",rl=el(Pl,qa?"left":"right"),zl=el(Xu-1,qa?"right":"left"),eu=xo==null&&Pl==0,Gh=Jo==null&&Xu==va,nl=Cl==0,Eh=!pu||Cl==pu.length-1;if(zl.top-rl.top<=3){var hl=(me?eu:Gh)&&nl,Qf=(me?Gh:eu)&&Eh,dh=hl?qt:(qa?rl:zl).left,Ju=Qf?Jt:(qa?zl:rl).right;rn(dh,rl.top,Ju-dh,rl.bottom)}else{var Ru,Fs,jl,xd;qa?(Ru=me&&eu&&nl?qt:rl.left,Fs=me?Jt:Iu(Pl,tu,"before"),jl=me?qt:Iu(Xu,tu,"after"),xd=me&&Gh&&Eh?Jt:zl.right):(Ru=me?Iu(Pl,tu,"before"):qt,Fs=!me&&eu&&nl?Jt:rl.right,jl=!me&&Gh&&Eh?qt:zl.left,xd=me?Iu(Xu,tu,"after"):Jt),rn(Ru,rl.top,Fs-Ru,rl.bottom),rl.bottom<zl.top&&rn(qt,rl.bottom,null,zl.top),rn(jl,zl.top,xd-jl,zl.bottom)}(!Gs||mn(rl,Gs)<0)&&(Gs=rl),mn(zl,Gs)<0&&(Gs=zl),(!kl||mn(rl,kl)<0)&&(kl=rl),mn(zl,kl)<0&&(kl=zl)}),{start:Gs,end:kl}}var Hn=at.from(),Dn=at.to();if(Hn.line==Dn.line)Me(Hn.line,Hn.ch,Dn.ch);else{var Ni=pn(pt,Hn.line),Ii=pn(pt,Dn.line),er=Cr(Ni)==Cr(Ii),br=Me(Hn.line,Hn.ch,er?Ni.text.length+1:null).end,oo=Me(Dn.line,er?0:null,Dn.ch).start;er&&(br.top<oo.top-2?(rn(br.right,br.top,null,br.bottom),rn(qt,oo.top,oo.left,oo.bottom)):rn(br.right,br.top,oo.left-br.right,br.bottom)),br.bottom<oo.top&&rn(qt,br.bottom,null,oo.top)}ct.appendChild(Mt)}function Qn(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var ct=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||Mi(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function di(it){it.state.focused||(it.display.input.focus(),ui(it))}function Ri(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Mi(it))},100)}function ui(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Se(it,"focus",it,at),it.state.focused=!0,$e(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Ft&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Qn(it))}function Mi(it,at){it.state.delayingBlurEvent||(it.state.focused&&(Se(it,"blur",it,at),it.state.focused=!1,Ot(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function si(it){for(var at=it.display,ct=at.lineDiv.offsetTop,dt=0;dt<at.view.length;dt++){var pt=at.view[dt],Mt=it.options.lineWrapping,Rt=void 0,qt=0;if(!pt.hidden){if(Ut&&ne<8){var Jt=pt.node.offsetTop+pt.node.offsetHeight;Rt=Jt-ct,ct=Jt}else{var me=pt.node.getBoundingClientRect();Rt=me.bottom-me.top,!Mt&&pt.text.firstChild&&(qt=pt.text.firstChild.getBoundingClientRect().right-me.left-1)}var rn=pt.line.height-Rt;if((rn>.005||rn<-.005)&&(Pn(pt.line,Rt),Ji(pt.line),pt.rest))for(var Me=0;Me<pt.rest.length;Me++)Ji(pt.rest[Me]);if(qt>it.display.sizerWidth){var Hn=Math.ceil(qt/xh(it.display));Hn>it.display.maxLineLength&&(it.display.maxLineLength=Hn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Ji(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var ct=it.widgets[at],dt=ct.node.parentNode;dt&&(ct.height=dt.offsetHeight)}}function zn(it,at,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-ml(it));var pt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,Mt=Rn(at,dt),Rt=Rn(at,pt);if(ct&&ct.ensure){var qt=ct.ensure.from.line,Jt=ct.ensure.to.line;qt<Mt?(Mt=qt,Rt=Rn(at,$o(pn(at,qt))+it.wrapper.clientHeight)):Math.min(Jt,at.lastLine())>=Rt&&(Mt=Rn(at,$o(pn(at,Jt))-it.wrapper.clientHeight),Rt=Jt)}return{from:Mt,to:Math.max(Rt,Mt+1)}}function Ai(it,at){if(!qe(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(at.top+dt.top<0?pt=!0:at.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!be){var Mt=$t("div","\u200B",null,`position: absolute;
|
|
|
top: `+(at.top-ct.viewOffset-ml(it.display))+`px;
|
|
|
height: `+(at.bottom-at.top+vl(it)+ct.barHeight)+`px;
|
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Mt),Mt.scrollIntoView(pt),it.display.lineSpace.removeChild(Mt)}}}function Qi(it,at,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?je(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?je(at.line,at.ch+1,"before"):at);for(var Mt=0;Mt<5;Mt++){var Rt=!1,qt=fs(it,at),Jt=!ct||ct==at?qt:fs(it,ct);pt={left:Math.min(qt.left,Jt.left),top:Math.min(qt.top,Jt.top)-dt,right:Math.max(qt.left,Jt.left),bottom:Math.max(qt.bottom,Jt.bottom)+dt};var me=Nr(it,pt),rn=it.doc.scrollTop,Me=it.doc.scrollLeft;if(me.scrollTop!=null&&(ea(it,me.scrollTop),Math.abs(it.doc.scrollTop-rn)>1&&(Rt=!0)),me.scrollLeft!=null&&(La(it,me.scrollLeft),Math.abs(it.doc.scrollLeft-Me)>1&&(Rt=!0)),!Rt)break}return pt}function jr(it,at){var ct=Nr(it,at);ct.scrollTop!=null&&ea(it,ct.scrollTop),ct.scrollLeft!=null&&La(it,ct.scrollLeft)}function Nr(it,at){var ct=it.display,dt=oh(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Mt=Bh(it),Rt={};at.bottom-at.top>Mt&&(at.bottom=at.top+Mt);var qt=it.doc.height+Zu(ct),Jt=at.top<dt,me=at.bottom>qt-dt;if(at.top<pt)Rt.scrollTop=Jt?0:at.top;else if(at.bottom>pt+Mt){var rn=Math.min(at.top,(me?qt:at.bottom)-Mt);rn!=pt&&(Rt.scrollTop=rn)}var Me=it.options.fixedGutter?0:ct.gutters.offsetWidth,Hn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Me,Dn=Ml(it)-ct.gutters.offsetWidth,Ni=at.right-at.left>Dn;return Ni&&(at.right=at.left+Dn),at.left<10?Rt.scrollLeft=0:at.left<Hn?Rt.scrollLeft=Math.max(0,at.left+Me-(Ni?0:10)):at.right>Dn+Hn-3&&(Rt.scrollLeft=at.right+(Ni?0:10)-Dn),Rt}function Yr(it,at){at!=null&&(Yo(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Ur(it){Yo(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Hr(it,at,ct){(at!=null||ct!=null)&&Yo(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function ji(it,at){Yo(it),it.curOp.scrollToPos=at}function Yo(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=ic(it,at.from),dt=ic(it,at.to);zo(it,ct,dt,at.margin)}}function zo(it,at,ct,dt){var pt=Nr(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-dt,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+dt});Hr(it,pt.scrollLeft,pt.scrollTop)}function ea(it,at){Math.abs(it.doc.scrollTop-at)<2||(At||rr(it,{top:at}),ka(it,at,!0),At&&rr(it),ri(it,100))}function ka(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function La(it,at,ct,dt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!dt)&&(it.doc.scrollLeft=at,so(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function Sa(it){var at=it.display,ct=at.gutters.offsetWidth,dt=Math.round(it.doc.height+Zu(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+vl(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var ts=function(it,at,ct){this.cm=ct;var dt=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),Je(dt,"scroll",function(){dt.clientHeight&&at(dt.scrollTop,"vertical")}),Je(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ut&&ne<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?dt+"px":"0";var pt=it.viewHeight-(at?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Mt=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Mt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:at?dt:0}},ts.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ts.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ts.prototype.zeroWidthHack=function(){var it=ht&&!de?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Zt,this.disableVert=new Zt},ts.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),Mt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);Mt!=it?it.style.pointerEvents="none":at.set(1e3,dt)}at.set(1e3,dt)},ts.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var ma=function(){};ma.prototype.update=function(){return{bottom:0,right:0}},ma.prototype.setScrollLeft=function(){},ma.prototype.setScrollTop=function(){},ma.prototype.clear=function(){};function ra(it,at){at||(at=Sa(it));var ct=it.display.barWidth,dt=it.display.barHeight;xa(it,at);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&si(it),xa(it,Sa(it)),ct=it.display.barWidth,dt=it.display.barHeight}function xa(it,at){var ct=it.display,dt=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var Ua={native:ts,null:ma};function es(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ot(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ua[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),Je(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?La(it,at):ea(it,at)},it),it.display.scrollbars.addClass&&$e(it.display.wrapper,it.display.scrollbars.addClass)}var za=0;function wa(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++za},bs(it.curOp)}function Ms(it){var at=it.curOp;at&&Ro(at,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;tl(ct)})}function tl(it){for(var at=it.ops,ct=0;ct<at.length;ct++)Xt(at[ct]);for(var dt=0;dt<at.length;dt++)ie(at[dt]);for(var pt=0;pt<at.length;pt++)Te(at[pt]);for(var Mt=0;Mt<at.length;Mt++)Ie(at[Mt]);for(var Rt=0;Rt<at.length;Rt++)_e(at[Rt])}function Xt(it){var at=it.cm,ct=at.display;Li(at),it.updateMaxLine&&ua(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new ti(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function ie(it){it.updatedDisplay=it.mustUpdate&&Yi(it.cm,it.update)}function Te(it){var at=it.cm,ct=at.display;it.updatedDisplay&&si(at),it.barMeasure=Sa(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Ih(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+vl(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Ml(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Ie(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&La(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var ct=it.focus&&it.focus==ce();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=at.doc.height)&&ra(at,it.barMeasure),it.updatedDisplay&&Xr(at,it.barMeasure),it.selectionChanged&&Qn(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),ct&&di(it.cm)}function _e(it){var at=it.cm,ct=at.display,dt=at.doc;if(it.updatedDisplay&&wi(at,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&ka(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&La(at,it.scrollLeft,!0,!0),it.scrollToPos){var pt=Qi(at,Fn(dt,it.scrollToPos.from),Fn(dt,it.scrollToPos.to),it.scrollToPos.margin);Ai(at,pt)}var Mt=it.maybeHiddenMarkers,Rt=it.maybeUnhiddenMarkers;if(Mt)for(var qt=0;qt<Mt.length;++qt)Mt[qt].lines.length||Se(Mt[qt],"hide");if(Rt)for(var Jt=0;Jt<Rt.length;++Jt)Rt[Jt].lines.length&&Se(Rt[Jt],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&Se(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function Ve(it,at){if(it.curOp)return at();wa(it);try{return at()}finally{Ms(it)}}function Mn(it,at){return function(){if(it.curOp)return at.apply(it,arguments);wa(it);try{return at.apply(it,arguments)}finally{Ms(it)}}}function En(it){return function(){if(this.curOp)return it.apply(this,arguments);wa(this);try{return it.apply(this,arguments)}finally{Ms(this)}}}function xn(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);wa(at);try{return it.apply(this,arguments)}finally{Ms(at)}}}function ri(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,tn(jn,it))}function jn(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=nr(it,at.highlightFrontier),pt=[];at.iter(dt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Mt){if(dt.line>=it.display.viewFrom){var Rt=Mt.styles,qt=Mt.text.length>it.options.maxHighlightLength?Sn(at.mode,dt.state):null,Jt=Wi(it,Mt,dt,!0);qt&&(dt.state=qt),Mt.styles=Jt.styles;var me=Mt.styleClasses,rn=Jt.classes;rn?Mt.styleClasses=rn:me&&(Mt.styleClasses=null);for(var Me=!Rt||Rt.length!=Mt.styles.length||me!=rn&&(!me||!rn||me.bgClass!=rn.bgClass||me.textClass!=rn.textClass),Hn=0;!Me&&Hn<Rt.length;++Hn)Me=Rt[Hn]!=Mt.styles[Hn];Me&&pt.push(dt.line),Mt.stateAfter=dt.save(),dt.nextLine()}else Mt.text.length<=it.options.maxHighlightLength&&Oe(it,Mt.text,dt),Mt.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return ri(it,it.options.workDelay),!0}),at.highlightFrontier=dt.line,at.modeFrontier=Math.max(at.modeFrontier,dt.line),pt.length&&Ve(it,function(){for(var Mt=0;Mt<pt.length;Mt++)ta(it,pt[Mt],"text")})}}var ti=function(it,at,ct){var dt=it.display;this.viewport=at,this.visible=zn(dt,it.doc,at),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=Ml(it),this.force=ct,this.dims=oc(it),this.events=[]};ti.prototype.signal=function(it,at){Nn(it,at)&&this.events.push(arguments)},ti.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Se.apply(null,this.events[it])};function Li(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=vl(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=vl(it)+"px",at.scrollbarsClipped=!0)}function bi(it){if(it.hasFocus())return null;var at=ce();if(!at||!Ge(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&Ge(it.display.lineDiv,dt.anchorNode)&&(ct.anchorNode=dt.anchorNode,ct.anchorOffset=dt.anchorOffset,ct.focusNode=dt.focusNode,ct.focusOffset=dt.focusOffset)}return ct}function yi(it){if(!(!it||!it.activeElt||it.activeElt==ce())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ge(document.body,it.anchorNode)&&Ge(document.body,it.focusNode))){var at=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),at.removeAllRanges(),at.addRange(ct),at.extend(it.focusNode,it.focusOffset)}}function Yi(it,at){var ct=it.display,dt=it.doc;if(at.editorIsHidden)return Us(it),!1;if(!at.force&&at.visible.from>=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&_t(it)==0)return!1;pr(it)&&(Us(it),at.dims=oc(it));var pt=dt.first+dt.size,Mt=Math.max(at.visible.from-it.options.viewportMargin,dt.first),Rt=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFrom<Mt&&Mt-ct.viewFrom<20&&(Mt=Math.max(dt.first,ct.viewFrom)),ct.viewTo>Rt&&ct.viewTo-Rt<20&&(Rt=Math.min(pt,ct.viewTo)),wn&&(Mt=$i(it.doc,Mt),Rt=Er(it.doc,Rt));var qt=Mt!=ct.viewFrom||Rt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;Kt(it,Mt,Rt),ct.viewOffset=$o(pn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Jt=_t(it);if(!qt&&Jt==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var me=bi(it);return Jt>4&&(ct.lineDiv.style.display="none"),tr(it,ct.updateLineNumbers,at.dims),Jt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,yi(me),jt(ct.cursorDiv),jt(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,qt&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,ri(it,400)),ct.updateLineNumbers=null,!0}function wi(it,at){for(var ct=at.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||at.oldDisplayWidth==Ml(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Zu(it.display)-Bh(it),ct.top)}),at.visible=zn(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else dt&&(at.visible=zn(it.display,it.doc,ct));if(!Yi(it,at))break;si(it);var pt=Sa(it);ze(it),ra(it,pt),Xr(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function rr(it,at){var ct=new ti(it,at);if(Yi(it,ct)){si(it),wi(it,ct);var dt=Sa(it);ze(it),ra(it,dt),Xr(it,dt),ct.finish()}}function tr(it,at,ct){var dt=it.display,pt=it.options.lineNumbers,Mt=dt.lineDiv,Rt=Mt.firstChild;function qt(Ni){var Ii=Ni.nextSibling;return Ft&&ht&&it.display.currentWheelTarget==Ni?Ni.style.display="none":Ni.parentNode.removeChild(Ni),Ii}for(var Jt=dt.view,me=dt.viewFrom,rn=0;rn<Jt.length;rn++){var Me=Jt[rn];if(!Me.hidden)if(!Me.node||Me.node.parentNode!=Mt){var Hn=uu(it,Me,me,ct);Mt.insertBefore(Hn,Rt)}else{for(;Rt!=Me.node;)Rt=qt(Rt);var Dn=pt&&at!=null&&at<=me&&Me.lineNumber;Me.changes&&(en(Me.changes,"gutter")>-1&&(Dn=!1),Ss(it,Me,me,ct)),Dn&&(jt(Me.lineNumber),Me.lineNumber.appendChild(document.createTextNode(Bi(it.options,me)))),Rt=Me.node.nextSibling}me+=Me.size}for(;Rt;)Rt=qt(Rt)}function lr(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Xr(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+vl(it)+"px"}function so(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var dt=Bd(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,Mt=dt+"px",Rt=0;Rt<ct.length;Rt++)if(!ct[Rt].hidden){it.options.fixedGutter&&(ct[Rt].gutter&&(ct[Rt].gutter.style.left=Mt),ct[Rt].gutterBackground&&(ct[Rt].gutterBackground.style.left=Mt));var qt=ct[Rt].alignable;if(qt)for(var Jt=0;Jt<qt.length;Jt++)qt[Jt].style.left=Mt}it.options.fixedGutter&&(at.gutters.style.left=dt+pt+"px")}}function pr(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=Bi(it.options,at.first+at.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var pt=dt.measure.appendChild($t("div",[$t("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Mt=pt.firstChild.offsetWidth,Rt=pt.offsetWidth-Mt;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(Mt,dt.lineGutter.offsetWidth-Rt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+Rt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",lr(it.display),!0}return!1}function Fr(it,at){for(var ct=[],dt=!1,pt=0;pt<it.length;pt++){var Mt=it[pt],Rt=null;if(typeof Mt!="string"&&(Rt=Mt.style,Mt=Mt.className),Mt=="CodeMirror-linenumbers")if(at)dt=!0;else continue;ct.push({className:Mt,style:Rt})}return at&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function bo(it){var at=it.gutters,ct=it.gutterSpecs;jt(at),it.lineGutter=null;for(var dt=0;dt<ct.length;++dt){var pt=ct[dt],Mt=pt.className,Rt=pt.style,qt=at.appendChild($t("div",null,"CodeMirror-gutter "+Mt));Rt&&(qt.style.cssText=Rt),Mt=="CodeMirror-linenumbers"&&(it.lineGutter=qt,qt.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",lr(it)}function ur(it){bo(it.display),as(it),so(it)}function Ir(it,at,ct,dt){var pt=this;this.input=ct,pt.scrollbarFiller=$t("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=$t("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=ye("div",null,"CodeMirror-code"),pt.selectionDiv=$t("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=$t("div",null,"CodeMirror-cursors"),pt.measure=$t("div",null,"CodeMirror-measure"),pt.lineMeasure=$t("div",null,"CodeMirror-measure"),pt.lineSpace=ye("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var Mt=ye("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=$t("div",[Mt],null,"position: relative"),pt.sizer=$t("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=$t("div",null,null,"position: absolute; height: "+Kn+"px; width: 1px;"),pt.gutters=$t("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=$t("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=$t("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Ut&&ne<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!Ft&&!(At&&nt)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=at.first,pt.reportedViewFrom=pt.reportedViewTo=at.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=Fr(dt.gutters,dt.lineNumbers),bo(pt),ct.init(pt)}var mr=0,Gi=null;Ut?Gi=-.53:At?Gi=15:Pe?Gi=-.7:Re&&(Gi=-1/3);function ar(it){var at=it.wheelDeltaX,ct=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:at,y:ct}}function Rr(it){var at=ar(it);return at.x*=Gi,at.y*=Gi,at}function lo(it,at){var ct=ar(at),dt=ct.x,pt=ct.y,Mt=it.display,Rt=Mt.scroller,qt=Rt.scrollWidth>Rt.clientWidth,Jt=Rt.scrollHeight>Rt.clientHeight;if(dt&&qt||pt&&Jt){if(pt&&ht&&Ft){t:for(var me=at.target,rn=Mt.view;me!=Rt;me=me.parentNode)for(var Me=0;Me<rn.length;Me++)if(rn[Me].node==me){it.display.currentWheelTarget=me;break t}}if(dt&&!At&&!oe&&Gi!=null){pt&&Jt&&ea(it,Math.max(0,Rt.scrollTop+pt*Gi)),La(it,Math.max(0,Rt.scrollLeft+dt*Gi)),(!pt||pt&&Jt)&&mi(at),Mt.wheelStartX=null;return}if(pt&&Gi!=null){var Hn=pt*Gi,Dn=it.doc.scrollTop,Ni=Dn+Mt.wrapper.clientHeight;Hn<0?Dn=Math.max(0,Dn+Hn-50):Ni=Math.min(it.doc.height,Ni+Hn+50),rr(it,{top:Dn,bottom:Ni})}mr<20&&(Mt.wheelStartX==null?(Mt.wheelStartX=Rt.scrollLeft,Mt.wheelStartY=Rt.scrollTop,Mt.wheelDX=dt,Mt.wheelDY=pt,setTimeout(function(){if(Mt.wheelStartX!=null){var Ii=Rt.scrollLeft-Mt.wheelStartX,er=Rt.scrollTop-Mt.wheelStartY,br=er&&Mt.wheelDY&&er/Mt.wheelDY||Ii&&Mt.wheelDX&&Ii/Mt.wheelDX;Mt.wheelStartX=Mt.wheelStartY=null,br&&(Gi=(Gi*mr+br)/(mr+1),++mr)}},200)):(Mt.wheelDX+=dt,Mt.wheelDY+=pt))}}var co=function(it,at){this.ranges=it,this.primIndex=at};co.prototype.primary=function(){return this.ranges[this.primIndex]},co.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var ct=this.ranges[at],dt=it.ranges[at];if(!He(ct.anchor,dt.anchor)||!He(ct.head,dt.head))return!1}return!0},co.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new sr(an(this.ranges[at].anchor),an(this.ranges[at].head));return new co(it,this.primIndex)},co.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},co.prototype.contains=function(it,at){at||(at=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(yn(at,dt.from())>=0&&yn(it,dt.to())<=0)return ct}return-1};var sr=function(it,at){this.anchor=it,this.head=at};sr.prototype.from=function(){return sn(this.anchor,this.head)},sr.prototype.to=function(){return gn(this.anchor,this.head)},sr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Eo(it,at,ct){var dt=it&&it.options.selectionsMayTouch,pt=at[ct];at.sort(function(Hn,Dn){return yn(Hn.from(),Dn.from())}),ct=en(at,pt);for(var Mt=1;Mt<at.length;Mt++){var Rt=at[Mt],qt=at[Mt-1],Jt=yn(qt.to(),Rt.from());if(dt&&!Rt.empty()?Jt>0:Jt>=0){var me=sn(qt.from(),Rt.from()),rn=gn(qt.to(),Rt.to()),Me=qt.empty()?Rt.from()==Rt.head:qt.from()==qt.head;Mt<=ct&&--ct,at.splice(--Mt,2,new sr(Me?rn:me,Me?me:rn))}}return new co(at,ct)}function Io(it,at){return new co([new sr(it,at||it)],0)}function Wo(it){return it.text?je(it.from.line+it.text.length-1,pe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function jo(it,at){if(yn(it,at.from)<0)return it;if(yn(it,at.to)<=0)return Wo(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,dt=it.ch;return it.line==at.to.line&&(dt+=Wo(at).ch-at.to.ch),je(ct,dt)}function ja(it,at){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var pt=it.sel.ranges[dt];ct.push(new sr(jo(pt.anchor,at),jo(pt.head,at)))}return Eo(it.cm,ct,it.sel.primIndex)}function qo(it,at,ct){return it.line==at.line?je(ct.line,it.ch-at.ch+ct.ch):je(ct.line+(it.line-at.line),it.ch)}function wo(it,at,ct){for(var dt=[],pt=je(it.first,0),Mt=pt,Rt=0;Rt<at.length;Rt++){var qt=at[Rt],Jt=qo(qt.from,pt,Mt),me=qo(Wo(qt),pt,Mt);if(pt=qt.to,Mt=me,ct=="around"){var rn=it.sel.ranges[Rt],Me=yn(rn.head,rn.anchor)<0;dt[Rt]=new sr(Me?me:Jt,Me?Jt:me)}else dt[Rt]=new sr(Jt,Jt)}return new co(dt,it.sel.primIndex)}function _r(it){it.doc.mode=fn(it.options,it.doc.modeOption),mo(it)}function mo(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,ri(it,100),it.state.modeGen++,it.curOp&&as(it)}function Da(it,at){return at.from.ch==0&&at.to.ch==0&&pe(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Pa(it,at,ct,dt){function pt(oo){return ct?ct[oo]:null}function Mt(oo,Wr,xo){Ra(oo,Wr,xo,dt),Zi(oo,"change",oo,at)}function Rt(oo,Wr){for(var xo=[],Jo=oo;Jo<Wr;++Jo)xo.push(new Ia(me[Jo],pt(Jo),dt));return xo}var qt=at.from,Jt=at.to,me=at.text,rn=pn(it,qt.line),Me=pn(it,Jt.line),Hn=pe(me),Dn=pt(me.length-1),Ni=Jt.line-qt.line;if(at.full)it.insert(0,Rt(0,me.length)),it.remove(me.length,it.size-me.length);else if(Da(it,at)){var Ii=Rt(0,me.length-1);Mt(Me,Me.text,Dn),Ni&&it.remove(qt.line,Ni),Ii.length&&it.insert(qt.line,Ii)}else if(rn==Me)if(me.length==1)Mt(rn,rn.text.slice(0,qt.ch)+Hn+rn.text.slice(Jt.ch),Dn);else{var er=Rt(1,me.length-1);er.push(new Ia(Hn+rn.text.slice(Jt.ch),Dn,dt)),Mt(rn,rn.text.slice(0,qt.ch)+me[0],pt(0)),it.insert(qt.line+1,er)}else if(me.length==1)Mt(rn,rn.text.slice(0,qt.ch)+me[0]+Me.text.slice(Jt.ch),pt(0)),it.remove(qt.line+1,Ni);else{Mt(rn,rn.text.slice(0,qt.ch)+me[0],pt(0)),Mt(Me,Hn+Me.text.slice(Jt.ch),Dn);var br=Rt(1,me.length-1);Ni>1&&it.remove(qt.line+1,Ni-1),it.insert(qt.line+1,br)}Zi(it,"change",it,at)}function Ga(it,at,ct){function dt(pt,Mt,Rt){if(pt.linked)for(var qt=0;qt<pt.linked.length;++qt){var Jt=pt.linked[qt];if(Jt.doc!=Mt){var me=Rt&&Jt.sharedHist;ct&&!me||(at(Jt.doc,me),dt(Jt.doc,pt,me))}}}dt(it,null,!0)}function yo(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,vo(it),_r(it),ro(it),it.options.lineWrapping||ua(it),it.options.mode=at.modeOption,as(it)}function ro(it){(it.doc.direction=="rtl"?$e:Ot)(it.display.lineDiv,"CodeMirror-rtl")}function Po(it){Ve(it,function(){ro(it),as(it)})}function Qr(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Br(it,at){var ct={from:an(at.from),to:Wo(at),text:Un(it,at.from,at.to)};return sl(it,ct,at.from.line,at.to.line+1),Ga(it,function(dt){return sl(dt,ct,at.from.line,at.to.line+1)},!0),ct}function ki(it){for(;it.length;){var at=pe(it);if(at.ranges)it.pop();else break}}function xr(it,at){if(at)return ki(it.done),pe(it.done);if(it.done.length&&!pe(it.done).ranges)return pe(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),pe(it.done)}function Ao(it,at,ct,dt){var pt=it.history;pt.undone.length=0;var Mt=+new Date,Rt,qt;if((pt.lastOp==dt||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>Mt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Rt=xr(pt,pt.lastOp==dt)))qt=pe(Rt.changes),yn(at.from,at.to)==0&&yn(at.from,qt.to)==0?qt.to=Wo(at):Rt.changes.push(Br(it,at));else{var Jt=pe(pt.done);for((!Jt||!Jt.ranges)&&As(it.sel,pt.done),Rt={changes:[Br(it,at)],generation:pt.generation},pt.done.push(Rt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=Mt,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=at.origin,qt||Se(it,"historyAdded")}function Uo(it,at,ct,dt){var pt=at.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Xs(it,at,ct,dt){var pt=it.history,Mt=dt&&dt.origin;ct==pt.lastSelOp||Mt&&pt.lastSelOrigin==Mt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==Mt||Uo(it,Mt,pe(pt.done),at))?pt.done[pt.done.length-1]=at:As(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=Mt,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&ki(pt.undone)}function As(it,at){var ct=pe(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function sl(it,at,ct,dt){var pt=at["spans_"+it.id],Mt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(Rt){Rt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[Mt]=Rt.markedSpans),++Mt})}function ya(it){if(!it)return null;for(var at,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?at||(at=it.slice(0,ct)):at&&at.push(it[ct]);return at?at.length?at:null:it}function Ba(it,at){var ct=at["spans_"+it.id];if(!ct)return null;for(var dt=[],pt=0;pt<at.text.length;++pt)dt.push(ya(ct[pt]));return dt}function fo(it,at){var ct=Ba(it,at),dt=or(it,at);if(!ct)return dt;if(!dt)return ct;for(var pt=0;pt<ct.length;++pt){var Mt=ct[pt],Rt=dt[pt];if(Mt&&Rt)t:for(var qt=0;qt<Rt.length;++qt){for(var Jt=Rt[qt],me=0;me<Mt.length;++me)if(Mt[me].marker==Jt.marker)continue t;Mt.push(Jt)}else Rt&&(ct[pt]=Rt)}return ct}function Bs(it,at,ct){for(var dt=[],pt=0;pt<it.length;++pt){var Mt=it[pt];if(Mt.ranges){dt.push(ct?co.prototype.deepCopy.call(Mt):Mt);continue}var Rt=Mt.changes,qt=[];dt.push({changes:qt});for(var Jt=0;Jt<Rt.length;++Jt){var me=Rt[Jt],rn=void 0;if(qt.push({from:me.from,to:me.to,text:me.text}),at)for(var Me in me)(rn=Me.match(/^spans_(\d+)$/))&&en(at,Number(rn[1]))>-1&&(pe(qt)[Me]=me[Me],delete me[Me])}}return dt}function ll(it,at,ct,dt){if(dt){var pt=it.anchor;if(ct){var Mt=yn(at,pt)<0;Mt!=yn(ct,pt)<0?(pt=at,at=ct):Mt!=yn(at,ct)<0&&(at=ct)}return new sr(pt,at)}else return new sr(ct||at,at)}function Ma(it,at,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Xa(it,new co([ll(it.sel.primary(),at,ct,pt)],0),dt)}function Ha(it,at,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),Mt=0;Mt<it.sel.ranges.length;Mt++)dt[Mt]=ll(it.sel.ranges[Mt],at[Mt],null,pt);var Rt=Eo(it.cm,dt,it.sel.primIndex);Xa(it,Rt,ct)}function Ka(it,at,ct,dt){var pt=it.sel.ranges.slice(0);pt[at]=ct,Xa(it,Eo(it.cm,pt,it.sel.primIndex),dt)}function us(it,at,ct,dt){Xa(it,Io(at,ct),dt)}function Os(it,at,ct){var dt={ranges:at.ranges,update:function(pt){this.ranges=[];for(var Mt=0;Mt<pt.length;Mt++)this.ranges[Mt]=new sr(Fn(it,pt[Mt].anchor),Fn(it,pt[Mt].head))},origin:ct&&ct.origin};return Se(it,"beforeSelectionChange",it,dt),it.cm&&Se(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=at.ranges?Eo(it.cm,dt.ranges,dt.ranges.length-1):at}function na(it,at,ct){var dt=it.history.done,pt=pe(dt);pt&&pt.ranges?(dt[dt.length-1]=at,Hs(it,at,ct)):Xa(it,at,ct)}function Xa(it,at,ct){Hs(it,at,ct),Xs(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Hs(it,at,ct){(Nn(it,"beforeSelectionChange")||it.cm&&Nn(it.cm,"beforeSelectionChange"))&&(at=Os(it,at,ct));var dt=ct&&ct.bias||(yn(at.primary().head,it.sel.primary().head)<0?-1:1);Oa(it,gs(it,at,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Ur(it.cm)}function Oa(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Qe(it.cm)),Zi(it,"cursorActivity",it))}function So(it){Oa(it,gs(it,it.sel,null,!1))}function gs(it,at,ct,dt){for(var pt,Mt=0;Mt<at.ranges.length;Mt++){var Rt=at.ranges[Mt],qt=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Mt],Jt=bu(it,Rt.anchor,qt&&qt.anchor,ct,dt),me=bu(it,Rt.head,qt&&qt.head,ct,dt);(pt||Jt!=Rt.anchor||me!=Rt.head)&&(pt||(pt=at.ranges.slice(0,Mt)),pt[Mt]=new sr(Jt,me))}return pt?Eo(it.cm,pt,at.primIndex):at}function Is(it,at,ct,dt,pt){var Mt=pn(it,at.line);if(Mt.markedSpans)for(var Rt=0;Rt<Mt.markedSpans.length;++Rt){var qt=Mt.markedSpans[Rt],Jt=qt.marker,me="selectLeft"in Jt?!Jt.selectLeft:Jt.inclusiveLeft,rn="selectRight"in Jt?!Jt.selectRight:Jt.inclusiveRight;if((qt.from==null||(me?qt.from<=at.ch:qt.from<at.ch))&&(qt.to==null||(rn?qt.to>=at.ch:qt.to>at.ch))){if(pt&&(Se(Jt,"beforeCursorEnter"),Jt.explicitlyCleared))if(Mt.markedSpans){--Rt;continue}else break;if(!Jt.atomic)continue;if(ct){var Me=Jt.find(dt<0?1:-1),Hn=void 0;if((dt<0?rn:me)&&(Me=$l(it,Me,-dt,Me&&Me.line==at.line?Mt:null)),Me&&Me.line==at.line&&(Hn=yn(Me,ct))&&(dt<0?Hn<0:Hn>0))return Is(it,Me,at,dt,pt)}var Dn=Jt.find(dt<0?-1:1);return(dt<0?me:rn)&&(Dn=$l(it,Dn,dt,Dn.line==at.line?Mt:null)),Dn?Is(it,Dn,at,dt,pt):null}}return at}function bu(it,at,ct,dt,pt){var Mt=dt||1,Rt=Is(it,at,ct,Mt,pt)||!pt&&Is(it,at,ct,Mt,!0)||Is(it,at,ct,-Mt,pt)||!pt&&Is(it,at,ct,-Mt,!0);return Rt||(it.cantEdit=!0,je(it.first,0))}function $l(it,at,ct,dt){return ct<0&&at.ch==0?at.line>it.first?Fn(it,je(at.line-1)):null:ct>0&&at.ch==(dt||pn(it,at.line)).text.length?at.line<it.first+it.size-1?je(at.line+1,0):null:new je(at.line,at.ch+ct)}function Wa(it){it.setSelection(je(it.firstLine(),0),je(it.lastLine()),Be)}function ul(it,at,ct){var dt={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return dt.canceled=!0}};return ct&&(dt.update=function(pt,Mt,Rt,qt){pt&&(dt.from=Fn(it,pt)),Mt&&(dt.to=Fn(it,Mt)),Rt&&(dt.text=Rt),qt!==void 0&&(dt.origin=qt)}),Se(it,"beforeChange",it,dt),it.cm&&Se(it.cm,"beforeChange",it.cm,dt),dt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function ss(it,at,ct){if(it.cm){if(!it.cm.curOp)return Mn(it.cm,ss)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((Nn(it,"beforeChange")||it.cm&&Nn(it.cm,"beforeChange"))&&(at=ul(it,at,!0),!at))){var dt=Kr&&!ct&&Co(it,at.from,at.to);if(dt)for(var pt=dt.length-1;pt>=0;--pt)ns(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:at.text,origin:at.origin});else ns(it,at)}}function ns(it,at){if(!(at.text.length==1&&at.text[0]==""&&yn(at.from,at.to)==0)){var ct=ja(it,at);Ao(it,at,ct,it.cm?it.cm.curOp.id:NaN),Ol(it,at,ct,or(it,at));var dt=[];Ga(it,function(pt,Mt){!Mt&&en(dt,pt.history)==-1&&(Ja(pt.history,at),dt.push(pt.history)),Ol(pt,at,null,or(pt,at))})}}function du(it,at,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,Mt,Rt=it.sel,qt=at=="undo"?pt.done:pt.undone,Jt=at=="undo"?pt.undone:pt.done,me=0;me<qt.length&&(Mt=qt[me],!(ct?Mt.ranges&&!Mt.equals(it.sel):!Mt.ranges));me++);if(me!=qt.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(Mt=qt.pop(),Mt.ranges){if(As(Mt,Jt),ct&&!Mt.equals(it.sel)){Xa(it,Mt,{clearRedo:!1});return}Rt=Mt}else if(dt){qt.push(Mt);return}else break;var rn=[];As(Rt,Jt),Jt.push({changes:rn,generation:pt.generation}),pt.generation=Mt.generation||++pt.maxGeneration;for(var Me=Nn(it,"beforeChange")||it.cm&&Nn(it.cm,"beforeChange"),Hn=function(Ii){var er=Mt.changes[Ii];if(er.origin=at,Me&&!ul(it,er,!1))return qt.length=0,{};rn.push(Br(it,er));var br=Ii?ja(it,er):pe(qt);Ol(it,er,br,fo(it,er)),!Ii&&it.cm&&it.cm.scrollIntoView({from:er.from,to:Wo(er)});var oo=[];Ga(it,function(Wr,xo){!xo&&en(oo,Wr.history)==-1&&(Ja(Wr.history,er),oo.push(Wr.history)),Ol(Wr,er,null,fo(Wr,er))})},Dn=Mt.changes.length-1;Dn>=0;--Dn){var Ni=Hn(Dn);if(Ni)return Ni.v}}}}function ah(it,at){if(at!=0&&(it.first+=at,it.sel=new co(Xn(it.sel.ranges,function(pt){return new sr(je(pt.anchor.line+at,pt.anchor.ch),je(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){as(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)ta(it.cm,dt,"gutter")}}function Ol(it,at,ct,dt){if(it.cm&&!it.cm.curOp)return Mn(it.cm,Ol)(it,at,ct,dt);if(at.to.line<it.first){ah(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var pt=at.text.length-1-(it.first-at.from.line);ah(it,pt),at={from:je(it.first,0),to:je(at.to.line+pt,at.to.ch),text:[pe(at.text)],origin:at.origin}}var Mt=it.lastLine();at.to.line>Mt&&(at={from:at.from,to:je(Mt,pn(it,Mt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=Un(it,at.from,at.to),ct||(ct=ja(it,at)),it.cm?Ku(it.cm,at,dt):Pa(it,at,dt),Hs(it,ct,Be),it.cantEdit&&bu(it,je(it.firstLine(),0))&&(it.cantEdit=!1)}}function Ku(it,at,ct){var dt=it.doc,pt=it.display,Mt=at.from,Rt=at.to,qt=!1,Jt=Mt.line;it.options.lineWrapping||(Jt=Ce(Cr(pn(dt,Mt.line))),dt.iter(Jt,Rt.line+1,function(Dn){if(Dn==pt.maxLine)return qt=!0,!0})),dt.sel.contains(at.from,at.to)>-1&&Qe(it),Pa(dt,at,ct,Cs(it)),it.options.lineWrapping||(dt.iter(Jt,Mt.line+at.text.length,function(Dn){var Ni=Na(Dn);Ni>pt.maxLineLength&&(pt.maxLine=Dn,pt.maxLineLength=Ni,pt.maxLineChanged=!0,qt=!1)}),qt&&(it.curOp.updateMaxLine=!0)),zi(dt,Mt.line),ri(it,400);var me=at.text.length-(Rt.line-Mt.line)-1;at.full?as(it):Mt.line==Rt.line&&at.text.length==1&&!Da(it.doc,at)?ta(it,Mt.line,"text"):as(it,Mt.line,Rt.line+1,me);var rn=Nn(it,"changes"),Me=Nn(it,"change");if(Me||rn){var Hn={from:Mt,to:Rt,text:at.text,removed:at.removed,origin:at.origin};Me&&Zi(it,"change",it,Hn),rn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Hn)}it.display.selForContextMenu=null}function Vu(it,at,ct,dt,pt){var Mt;dt||(dt=ct),yn(dt,ct)<0&&(Mt=[dt,ct],ct=Mt[0],dt=Mt[1]),typeof at=="string"&&(at=it.splitLines(at)),ss(it,{from:ct,to:dt,text:at,origin:pt})}function ql(it,at,ct,dt){ct<it.line?it.line+=dt:at<it.line&&(it.line=at,it.ch=0)}function Ca(it,at,ct,dt){for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=!0;if(Mt.ranges){Mt.copied||(Mt=it[pt]=Mt.deepCopy(),Mt.copied=!0);for(var qt=0;qt<Mt.ranges.length;qt++)ql(Mt.ranges[qt].anchor,at,ct,dt),ql(Mt.ranges[qt].head,at,ct,dt);continue}for(var Jt=0;Jt<Mt.changes.length;++Jt){var me=Mt.changes[Jt];if(ct<me.from.line)me.from=je(me.from.line+dt,me.from.ch),me.to=je(me.to.line+dt,me.to.ch);else if(at<=me.to.line){Rt=!1;break}}Rt||(it.splice(0,pt+1),pt=0)}}function Ja(it,at){var ct=at.from.line,dt=at.to.line,pt=at.text.length-(dt-ct)-1;Ca(it.done,ct,dt,pt),Ca(it.undone,ct,dt,pt)}function Ws(it,at,ct,dt){var pt=at,Mt=at;return typeof at=="number"?Mt=pn(it,bn(it,at)):pt=Ce(at),pt==null?null:(dt(Mt,pt)&&it.cm&&ta(it.cm,pt,ct),Mt)}function is(it){this.lines=it,this.parent=null;for(var at=0,ct=0;ct<it.length;++ct)it[ct].parent=this,at+=it[ct].height;this.height=at}is.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var ct=it,dt=it+at;ct<dt;++ct){var pt=this.lines[ct];this.height-=pt.height,ys(pt),Zi(pt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var dt=0;dt<at.length;++dt)at[dt].parent=this},iterN:function(it,at,ct){for(var dt=it+at;it<dt;++it)if(ct(this.lines[it]))return!0}};function ba(it){this.children=it;for(var at=0,ct=0,dt=0;dt<it.length;++dt){var pt=it[dt];at+=pt.chunkSize(),ct+=pt.height,pt.parent=this}this.size=at,this.height=ct,this.parent=null}ba.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var ct=0;ct<this.children.length;++ct){var dt=this.children[ct],pt=dt.chunkSize();if(it<pt){var Mt=Math.min(at,pt-it),Rt=dt.height;if(dt.removeInner(it,Mt),this.height-=Rt-dt.height,pt==Mt&&(this.children.splice(ct--,1),dt.parent=null),(at-=Mt)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof is))){var qt=[];this.collapse(qt),this.children=[new is(qt)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,ct){this.size+=at.length,this.height+=ct;for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],Mt=pt.chunkSize();if(it<=Mt){if(pt.insertInner(it,at,ct),pt.lines&&pt.lines.length>50){for(var Rt=pt.lines.length%25+25,qt=Rt;qt<pt.lines.length;){var Jt=new is(pt.lines.slice(qt,qt+=25));pt.height-=Jt.height,this.children.splice(++dt,0,Jt),Jt.parent=this}pt.lines=pt.lines.slice(0,Rt),this.maybeSpill()}break}it-=Mt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),ct=new ba(at);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=en(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var dt=new ba(it.children);dt.parent=it,it.children=[dt,ct],it=dt}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],Mt=pt.chunkSize();if(it<Mt){var Rt=Math.min(at,Mt-it);if(pt.iterN(it,Rt,ct))return!0;if((at-=Rt)==0)break;it=0}else it-=Mt}}};var Zs=function(it,at,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=at};Zs.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,ct=this.line,dt=Ce(ct);if(!(dt==null||!at)){for(var pt=0;pt<at.length;++pt)at[pt]==this&&at.splice(pt--,1);at.length||(ct.widgets=null);var Mt=El(this);Pn(ct,Math.max(0,ct.height-Mt)),it&&(Ve(it,function(){Sl(it,ct,-Mt),ta(it,dt,"widget")}),Zi(it,"lineWidgetCleared",it,this,dt))}},Zs.prototype.changed=function(){var it=this,at=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var pt=El(this)-at;pt&&(ei(this.doc,dt)||Pn(dt,dt.height+pt),ct&&Ve(ct,function(){ct.curOp.forceUpdate=!0,Sl(ct,dt,pt),Zi(ct,"lineWidgetChanged",ct,it,Ce(dt))}))},hi(Zs);function Sl(it,at,ct){$o(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Yr(it,ct)}function Eu(it,at,ct,dt){var pt=new Zs(it,ct,dt),Mt=it.cm;return Mt&&pt.noHScroll&&(Mt.display.alignWidgets=!0),Ws(it,at,"widget",function(Rt){var qt=Rt.widgets||(Rt.widgets=[]);if(pt.insertAt==null?qt.push(pt):qt.splice(Math.min(qt.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Rt,Mt&&!ei(it,Rt)){var Jt=$o(Rt)<it.scrollTop;Pn(Rt,Rt.height+El(pt)),Jt&&Yr(Mt,pt.height),Mt.curOp.forceUpdate=!0}return!0}),Mt&&Zi(Mt,"lineWidgetAdded",Mt,pt,typeof at=="number"?at:Ce(at)),pt}var ac=0,Ye=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++ac};Ye.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&wa(it),Nn(this,"clear")){var ct=this.find();ct&&Zi(this,"clear",ct.from,ct.to)}for(var dt=null,pt=null,Mt=0;Mt<this.lines.length;++Mt){var Rt=this.lines[Mt],qt=Qo(Rt.markedSpans,this);it&&!this.collapsed?ta(it,Ce(Rt),"text"):it&&(qt.to!=null&&(pt=Ce(Rt)),qt.from!=null&&(dt=Ce(Rt))),Rt.markedSpans=uo(Rt.markedSpans,qt),qt.from==null&&this.collapsed&&!ei(this.doc,Rt)&&it&&Pn(Rt,oh(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Jt=0;Jt<this.lines.length;++Jt){var me=Cr(this.lines[Jt]),rn=Na(me);rn>it.display.maxLineLength&&(it.display.maxLine=me,it.display.maxLineLength=rn,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&as(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&So(it.doc)),it&&Zi(it,"markerCleared",it,this,dt,pt),at&&Ms(it),this.parent&&this.parent.clear()}},Ye.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt<this.lines.length;++pt){var Mt=this.lines[pt],Rt=Qo(Mt.markedSpans,this);if(Rt.from!=null&&(ct=je(at?Mt:Ce(Mt),Rt.from),it==-1))return ct;if(Rt.to!=null&&(dt=je(at?Mt:Ce(Mt),Rt.to),it==1))return dt}return ct&&{from:ct,to:dt}},Ye.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,dt=this.doc.cm;!at||!dt||Ve(dt,function(){var pt=at.line,Mt=Ce(at.line),Rt=Gu(dt,Mt);if(Rt&&(cl(Rt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!ei(ct.doc,pt)&&ct.height!=null){var qt=ct.height;ct.height=null;var Jt=El(ct)-qt;Jt&&Pn(pt,pt.height+Jt)}Zi(dt,"markerChanged",dt,it)})},Ye.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||en(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Ye.prototype.detachLine=function(it){if(this.lines.splice(en(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},hi(Ye);function wh(it,at,ct,dt,pt){if(dt&&dt.shared)return Rc(it,at,ct,dt,pt);if(it.cm&&!it.cm.curOp)return Mn(it.cm,wh)(it,at,ct,dt,pt);var Mt=new Ye(it,pt),Rt=yn(at,ct);if(dt&&Tn(dt,Mt,!1),Rt>0||Rt==0&&Mt.clearWhenEmpty!==!1)return Mt;if(Mt.replacedWith&&(Mt.collapsed=!0,Mt.widgetNode=ye("span",[Mt.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Mt.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Mt.widgetNode.insertLeft=!0)),Mt.collapsed){if(Ar(it,at.line,at,ct,Mt)||at.line!=ct.line&&Ar(it,ct.line,at,ct,Mt))throw new Error("Inserting collapsed marker partially overlapping an existing one");An()}Mt.addToHistory&&Ao(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var qt=at.line,Jt=it.cm,me;if(it.iter(qt,ct.line+1,function(Me){Jt&&Mt.collapsed&&!Jt.options.lineWrapping&&Cr(Me)==Jt.display.maxLine&&(me=!0),Mt.collapsed&&qt!=at.line&&Pn(Me,0),Fa(Me,new Or(Mt,qt==at.line?at.ch:null,qt==ct.line?ct.ch:null)),++qt}),Mt.collapsed&&it.iter(at.line,ct.line+1,function(Me){ei(it,Me)&&Pn(Me,0)}),Mt.clearOnEnter&&Je(Mt,"beforeCursorEnter",function(){return Mt.clear()}),Mt.readOnly&&(To(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Mt.collapsed&&(Mt.id=++ac,Mt.atomic=!0),Jt){if(me&&(Jt.curOp.updateMaxLine=!0),Mt.collapsed)as(Jt,at.line,ct.line+1);else if(Mt.className||Mt.startStyle||Mt.endStyle||Mt.css||Mt.attributes||Mt.title)for(var rn=at.line;rn<=ct.line;rn++)ta(Jt,rn,"text");Mt.atomic&&So(Jt.doc),Zi(Jt,"markerAdded",Jt,Mt)}return Mt}var sh=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};sh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Zi(this,"clear")}},sh.prototype.find=function(it,at){return this.primary.find(it,at)},hi(sh);function Rc(it,at,ct,dt,pt){dt=Tn(dt),dt.shared=!1;var Mt=[wh(it,at,ct,dt,pt)],Rt=Mt[0],qt=dt.widgetNode;return Ga(it,function(Jt){qt&&(dt.widgetNode=qt.cloneNode(!0)),Mt.push(wh(Jt,Fn(Jt,at),Fn(Jt,ct),dt,pt));for(var me=0;me<Jt.linked.length;++me)if(Jt.linked[me].isParent)return;Rt=pe(Mt)}),new sh(Mt,Rt)}function vd(it){return it.findMarks(je(it.first,0),it.clipPos(je(it.lastLine())),function(at){return at.parent})}function Rh(it,at){for(var ct=0;ct<at.length;ct++){var dt=at[ct],pt=dt.find(),Mt=it.clipPos(pt.from),Rt=it.clipPos(pt.to);if(yn(Mt,Rt)){var qt=wh(it,Mt,Rt,dt.primary,dt.primary.type);dt.markers.push(qt),qt.parent=dt}}}function Ph(it){for(var at=function(dt){var pt=it[dt],Mt=[pt.primary.doc];Ga(pt.primary.doc,function(Jt){return Mt.push(Jt)});for(var Rt=0;Rt<pt.markers.length;Rt++){var qt=pt.markers[Rt];en(Mt,qt.doc)==-1&&(qt.parent=null,pt.markers.splice(Rt--,1))}},ct=0;ct<it.length;ct++)at(ct)}var cf=0,fl=function(it,at,ct,dt,pt){if(!(this instanceof fl))return new fl(it,at,ct,dt,pt);ct==null&&(ct=0),ba.call(this,[new is([new Ia("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Mt=je(ct,0);this.sel=Io(Mt),this.history=new Qr(null),this.id=++cf,this.modeOption=at,this.lineSep=dt,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Pa(this,{from:Mt,to:Mt,text:it}),Xa(this,Io(Mt),Be)};fl.prototype=bt(ba.prototype,{constructor:fl,iter:function(it,at,ct){ct?this.iterN(it-this.first,at-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var ct=0,dt=0;dt<at.length;++dt)ct+=at[dt].height;this.insertInner(it-this.first,at,ct)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Oi(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:xn(function(it){var at=je(this.first,0),ct=this.first+this.size-1;ss(this,{from:at,to:je(ct,pn(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Hr(this.cm,0,0),Xa(this,Io(at),Be)}),replaceRange:function(it,at,ct,dt){at=Fn(this,at),ct=ct?Fn(this,ct):at,Vu(this,it,at,ct,dt)},getRange:function(it,at,ct){var dt=Un(this,Fn(this,it),Fn(this,at));return ct===!1?dt:dt.join(ct||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(pi(this,it))return pn(this,it)},getLineNumber:function(it){return Ce(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=pn(this,it)),Cr(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Fn(this,it)},getCursor:function(it){var at=this.sel.primary(),ct;return it==null||it=="head"?ct=at.head:it=="anchor"?ct=at.anchor:it=="end"||it=="to"||it===!1?ct=at.to():ct=at.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xn(function(it,at,ct){us(this,Fn(this,typeof it=="number"?je(it,at||0):it),null,ct)}),setSelection:xn(function(it,at,ct){us(this,Fn(this,it),Fn(this,at||it),ct)}),extendSelection:xn(function(it,at,ct){Ma(this,Fn(this,it),at&&Fn(this,at),ct)}),extendSelections:xn(function(it,at){Ha(this,qn(this,it),at)}),extendSelectionsBy:xn(function(it,at){var ct=Xn(this.sel.ranges,it);Ha(this,qn(this,ct),at)}),setSelections:xn(function(it,at,ct){if(it.length){for(var dt=[],pt=0;pt<it.length;pt++)dt[pt]=new sr(Fn(this,it[pt].anchor),Fn(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Xa(this,Eo(this.cm,dt,at),ct)}}),addSelection:xn(function(it,at,ct){var dt=this.sel.ranges.slice(0);dt.push(new sr(Fn(this,it),Fn(this,at||it))),Xa(this,Eo(this.cm,dt,dt.length-1),ct)}),getSelection:function(it){for(var at=this.sel.ranges,ct,dt=0;dt<at.length;dt++){var pt=Un(this,at[dt].from(),at[dt].to());ct=ct?ct.concat(pt):pt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],ct=this.sel.ranges,dt=0;dt<ct.length;dt++){var pt=Un(this,ct[dt].from(),ct[dt].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),at[dt]=pt}return at},replaceSelection:function(it,at,ct){for(var dt=[],pt=0;pt<this.sel.ranges.length;pt++)dt[pt]=it;this.replaceSelections(dt,at,ct||"+input")},replaceSelections:xn(function(it,at,ct){for(var dt=[],pt=this.sel,Mt=0;Mt<pt.ranges.length;Mt++){var Rt=pt.ranges[Mt];dt[Mt]={from:Rt.from(),to:Rt.to(),text:this.splitLines(it[Mt]),origin:ct}}for(var qt=at&&at!="end"&&wo(this,dt,at),Jt=dt.length-1;Jt>=0;Jt--)ss(this,dt[Jt]);qt?na(this,qt):this.cm&&Ur(this.cm)}),undo:xn(function(){du(this,"undo")}),redo:xn(function(){du(this,"redo")}),undoSelection:xn(function(){du(this,"undo",!0)}),redoSelection:xn(function(){du(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,dt=0;dt<it.done.length;dt++)it.done[dt].ranges||++at;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++ct;return{undo:at,redo:ct}},clearHistory:function(){var it=this;this.history=new Qr(this.history.maxGeneration),Ga(this,function(at){return at.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(it){var at=this.history=new Qr(this.history.maxGeneration);at.done=Bs(it.done.slice(0),null,!0),at.undone=Bs(it.undone.slice(0),null,!0)},setGutterMarker:xn(function(it,at,ct){return Ws(this,it,"gutter",function(dt){var pt=dt.gutterMarkers||(dt.gutterMarkers={});return pt[at]=ct,!ct&&St(pt)&&(dt.gutterMarkers=null),!0})}),clearGutter:xn(function(it){var at=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&Ws(at,ct,"gutter",function(){return ct.gutterMarkers[it]=null,St(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!pi(this,it)||(at=it,it=pn(this,it),!it))return null}else if(at=Ce(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:xn(function(it,at,ct){return Ws(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!dt[pt])dt[pt]=ct;else{if(wt(ct).test(dt[pt]))return!1;dt[pt]+=" "+ct}return!0})}),removeLineClass:xn(function(it,at,ct){return Ws(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Mt=dt[pt];if(Mt)if(ct==null)dt[pt]=null;else{var Rt=Mt.match(wt(ct));if(!Rt)return!1;var qt=Rt.index+Rt[0].length;dt[pt]=Mt.slice(0,Rt.index)+(!Rt.index||qt==Mt.length?"":" ")+Mt.slice(qt)||null}else return!1;return!0})}),addLineWidget:xn(function(it,at,ct){return Eu(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return wh(this,Fn(this,it),Fn(this,at),ct,ct&&ct.type||"range")},setBookmark:function(it,at){var ct={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=Fn(this,it),wh(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Fn(this,it);var at=[],ct=pn(this,it.line).markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt){var pt=ct[dt];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,ct){it=Fn(this,it),at=Fn(this,at);var dt=[],pt=it.line;return this.iter(it.line,at.line+1,function(Mt){var Rt=Mt.markedSpans;if(Rt)for(var qt=0;qt<Rt.length;qt++){var Jt=Rt[qt];!(Jt.to!=null&&pt==it.line&&it.ch>=Jt.to||Jt.from==null&&pt!=it.line||Jt.from!=null&&pt==at.line&&Jt.from>=at.ch)&&(!ct||ct(Jt.marker))&&dt.push(Jt.marker.parent||Jt.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt)ct[dt].from!=null&&it.push(ct[dt].marker)}),it},posFromIndex:function(it){var at,ct=this.first,dt=this.lineSeparator().length;return this.iter(function(pt){var Mt=pt.text.length+dt;if(Mt>it)return at=it,!0;it-=Mt,++ct}),Fn(this,je(ct,at))},indexFromPos:function(it){it=Fn(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(dt){at+=dt.text.length+ct}),at},copy:function(it){var at=new fl(Oi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,ct=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var dt=new fl(Oi(this,at,ct),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:it.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Rh(dt,vd(this)),dt},unlinkDoc:function(it){if(it instanceof $a&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var ct=this.linked[at];if(ct.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),Ph(vd(this));break}}if(it.history==this.history){var dt=[it.id];Ga(it,function(pt){return dt.push(pt.id)},!0),it.history=new Qr(null),it.history.done=Bs(this.history.done,dt),it.history.undone=Bs(this.history.undone,dt)}},iterLinkedDocs:function(it){Ga(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):Ki(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:xn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&Po(this.cm))})}),fl.prototype.eachLine=fl.prototype.iter;var id=0;function Od(it){var at=this;if(ff(at),!(qe(at,it)||Ll(at.display,it))){mi(it),Ut&&(id=+new Date);var ct=il(at,it,!0),dt=it.dataTransfer.files;if(!(!ct||at.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var pt=dt.length,Mt=Array(pt),Rt=0,qt=function(){++Rt==pt&&Mn(at,function(){ct=Fn(at.doc,ct);var Dn={from:ct,to:ct,text:at.doc.splitLines(Mt.filter(function(Ni){return Ni!=null}).join(at.doc.lineSeparator())),origin:"paste"};ss(at.doc,Dn),na(at.doc,Io(Fn(at.doc,ct),Fn(at.doc,Wo(Dn))))})()},Jt=function(Dn,Ni){if(at.options.allowDropFileTypes&&en(at.options.allowDropFileTypes,Dn.type)==-1){qt();return}var Ii=new FileReader;Ii.onerror=function(){return qt()},Ii.onload=function(){var er=Ii.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(er)){qt();return}Mt[Ni]=er,qt()},Ii.readAsText(Dn)},me=0;me<dt.length;me++)Jt(dt[me],me);else{if(at.state.draggingText&&at.doc.sel.contains(ct)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var rn=it.dataTransfer.getData("Text");if(rn){var Me;if(at.state.draggingText&&!at.state.draggingText.copy&&(Me=at.listSelections()),Hs(at.doc,Io(ct,ct)),Me)for(var Hn=0;Hn<Me.length;++Hn)Vu(at.doc,"",Me[Hn].anchor,Me[Hn].head,"drag");at.replaceSelection(rn,"around","paste"),at.display.input.focus()}}catch(Dn){}}}}function Id(it,at){if(Ut&&(!it.state.draggingText||+new Date-id<100)){_i(at);return}if(!(qe(it,at)||Ll(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!Re)){var ct=$t("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),oe&&ct.parentNode.removeChild(ct)}}function Rd(it,at){var ct=il(it,at);if(ct){var dt=document.createDocumentFragment();dn(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=$t("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Ht(it.display.dragCursor,dt)}}function ff(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function zd(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),ct=[],dt=0;dt<at.length;dt++){var pt=at[dt].CodeMirror;pt&&ct.push(pt)}ct.length&&ct[0].operation(function(){for(var Mt=0;Mt<ct.length;Mt++)it(ct[Mt])})}}var jd=!1;function cu(){jd||(zh(),jd=!0)}function zh(){var it;Je(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,zd(zc)},100))}),Je(window,"blur",function(){return zd(Mi)})}function zc(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Yu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},jh=0;jh<10;jh++)Yu[jh+48]=Yu[jh+96]=String(jh);for(var rd=65;rd<=90;rd++)Yu[rd]=String.fromCharCode(rd);for(var od=1;od<=12;od++)Yu[od+111]=Yu[od+63235]="F"+od;var Il={};Il.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"},Il.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"},Il.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"},Il.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"]},Il.default=ht?Il.macDefault:Il.pcDefault;function sc(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var ct,dt,pt,Mt,Rt=0;Rt<at.length-1;Rt++){var qt=at[Rt];if(/^(cmd|meta|m)$/i.test(qt))Mt=!0;else if(/^a(lt)?$/i.test(qt))ct=!0;else if(/^(c|ctrl|control)$/i.test(qt))dt=!0;else if(/^s(hift)?$/i.test(qt))pt=!0;else throw new Error("Unrecognized modifier name: "+qt)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),Mt&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Hd(it){var at={};for(var ct in it)if(it.hasOwnProperty(ct)){var dt=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(dt=="..."){delete it[ct];continue}for(var pt=Xn(ct.split(" "),sc),Mt=0;Mt<pt.length;Mt++){var Rt=void 0,qt=void 0;Mt==pt.length-1?(qt=pt.join(" "),Rt=dt):(qt=pt.slice(0,Mt+1).join(" "),Rt="...");var Jt=at[qt];if(!Jt)at[qt]=Rt;else if(Jt!=Rt)throw new Error("Inconsistent bindings for "+qt)}delete it[ct]}for(var me in at)it[me]=at[me];return it}function _l(it,at,ct,dt){at=Ch(at);var pt=at.call?at.call(it,dt):at[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&ct(pt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return _l(it,at.fallthrough,ct,dt);for(var Mt=0;Mt<at.fallthrough.length;Mt++){var Rt=_l(it,at.fallthrough[Mt],ct,dt);if(Rt)return Rt}}}function yd(it){var at=typeof it=="string"?it:Yu[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function Wd(it,at,ct){var dt=it;return at.altKey&&dt!="Alt"&&(it="Alt-"+it),(Pt?at.metaKey:at.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(Pt?at.ctrlKey:at.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&at.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function lc(it,at){if(oe&&it.keyCode==34&&it.char)return!1;var ct=Yu[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),Wd(ct,it,at))}function Ch(it){return typeof it=="string"?Il[it]:it}function xl(it,at){for(var ct=it.doc.sel.ranges,dt=[],pt=0;pt<ct.length;pt++){for(var Mt=at(ct[pt]);dt.length&&yn(Mt.from,pe(dt).to)<=0;){var Rt=dt.pop();if(yn(Rt.from,Mt.from)<0){Mt.from=Rt.from;break}}dt.push(Mt)}Ve(it,function(){for(var qt=dt.length-1;qt>=0;qt--)Vu(it.doc,"",dt[qt].from,dt[qt].to,"+delete");Ur(it)})}function Zd(it,at,ct){var dt=Gt(it.text,at+ct,ct);return dt<0||dt>it.text.length?null:dt}function Js(it,at,ct){var dt=Zd(it,at.ch,ct);return dt==null?null:new je(at.line,dt,ct<0?"after":"before")}function Ta(it,at,ct,dt,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var Mt=vn(ct,at.doc.direction);if(Mt){var Rt=pt<0?pe(Mt):Mt[0],qt=pt<0==(Rt.level==1),Jt=qt?"after":"before",me;if(Rt.level>0||at.doc.direction=="rtl"){var rn=Dl(at,ct);me=pt<0?ct.text.length-1:0;var Me=Bl(at,rn,me).top;me=ee(function(Hn){return Bl(at,rn,Hn).top==Me},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,me),Jt=="before"&&(me=Zd(ct,me,1))}else me=pt<0?Rt.to:Rt.from;return new je(dt,me,Jt)}}return new je(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function hs(it,at,ct,dt){var pt=vn(at,it.doc.direction);if(!pt)return Js(at,ct,dt);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Mt=se(pt,ct.ch,ct.sticky),Rt=pt[Mt];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(dt>0?Rt.to>ct.ch:Rt.from<ct.ch))return Js(at,ct,dt);var qt=function(br,oo){return Zd(at,br instanceof je?br.ch:br,oo)},Jt,me=function(br){return it.options.lineWrapping?(Jt=Jt||Dl(it,at),nd(it,at,Jt,br)):{begin:0,end:at.text.length}},rn=me(ct.sticky=="before"?qt(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Rt.level==1){var Me=Rt.level==1==dt<0,Hn=qt(ct,Me?1:-1);if(Hn!=null&&(Me?Hn<=Rt.to&&Hn<=rn.end:Hn>=Rt.from&&Hn>=rn.begin)){var Dn=Me?"before":"after";return new je(ct.line,Hn,Dn)}}var Ni=function(br,oo,Wr){for(var xo=function(Gs,kl){return kl?new je(ct.line,qt(Gs,1),"before"):new je(ct.line,Gs,"after")};br>=0&&br<pt.length;br+=oo){var Jo=pt[br],zr=oo>0==(Jo.level!=1),va=zr?Wr.begin:qt(Wr.end,-1);if(Jo.from<=va&&va<Jo.to||(va=zr?Jo.from:qt(Jo.to,-1),Wr.begin<=va&&va<Wr.end))return xo(va,zr)}},Ii=Ni(Mt+dt,dt,rn);if(Ii)return Ii;var er=dt>0?rn.end:qt(rn.begin,-1);return er!=null&&!(dt>0&&er==at.text.length)&&(Ii=Ni(dt>0?0:pt.length-1,dt,me(er)),Ii)?Ii:null}var gl={selectAll:Wa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Be)},killLine:function(it){return xl(it,function(at){if(at.empty()){var ct=pn(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:je(at.head.line+1,0)}:{from:at.head,to:je(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return xl(it,function(at){return{from:je(at.from().line,0),to:Fn(it.doc,je(at.to().line+1,0))}})},delLineLeft:function(it){return xl(it,function(at){return{from:je(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return xl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return{from:dt,to:at.from()}})},delWrappedLineRight:function(it){return xl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:at.from(),to:dt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(je(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(je(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return fu(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return uc(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return gu(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},un)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},un)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return dt.ch<it.getLine(dt.line).search(/\S/)?uc(it,at.head):dt},un)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var at=[],ct=it.listSelections(),dt=it.options.tabSize,pt=0;pt<ct.length;pt++){var Mt=ct[pt].from(),Rt=ve(it.getLine(Mt.line),Mt.ch,dt);at.push(Gn(dt-Rt%dt))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Ve(it,function(){for(var at=it.listSelections(),ct=[],dt=0;dt<at.length;dt++)if(at[dt].empty()){var pt=at[dt].head,Mt=pn(it.doc,pt.line).text;if(Mt){if(pt.ch==Mt.length&&(pt=new je(pt.line,pt.ch-1)),pt.ch>0)pt=new je(pt.line,pt.ch+1),it.replaceRange(Mt.charAt(pt.ch-1)+Mt.charAt(pt.ch-2),je(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=pn(it.doc,pt.line-1).text;Rt&&(pt=new je(pt.line,1),it.replaceRange(Mt.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),je(pt.line-1,Rt.length-1),pt,"+transpose"))}}ct.push(new sr(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return Ve(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var dt=0;dt<at.length;dt++)it.indentLine(at[dt].from().line,null,!0);Ur(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function fu(it,at){var ct=pn(it.doc,at),dt=Cr(ct);return dt!=ct&&(at=Ce(dt)),Ta(!0,it,dt,at,1)}function gu(it,at){var ct=pn(it.doc,at),dt=Do(ct);return dt!=ct&&(at=Ce(dt)),Ta(!0,it,ct,at,-1)}function uc(it,at){var ct=fu(it,at.line),dt=pn(it.doc,ct.line),pt=vn(dt,it.doc.direction);if(!pt||pt[0].level==0){var Mt=Math.max(ct.ch,dt.text.search(/\S/)),Rt=at.line==ct.line&&at.ch<=Mt&&at.ch;return je(ct.line,Rt?0:Mt,ct.sticky)}return ct}function Hh(it,at,ct){if(typeof at=="string"&&(at=gl[at],!at))return!1;it.display.input.ensurePolled();var dt=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),pt=at(it)!=ii}finally{it.display.shift=dt,it.state.suppressEdits=!1}return pt}function Gd(it,at,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var pt=_l(at,it.state.keyMaps[dt],ct,it);if(pt)return pt}return it.options.extraKeys&&_l(at,it.options.extraKeys,ct,it)||_l(at,it.options.keyMap,ct,it)}var Du=new Zt;function Uu(it,at,ct,dt){var pt=it.state.keySeq;if(pt){if(yd(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Du.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),gf(it,pt+" "+at,ct,dt))return!0}return gf(it,at,ct,dt)}function gf(it,at,ct,dt){var pt=Gd(it,at,dt);return pt=="multi"&&(it.state.keySeq=at),pt=="handled"&&Zi(it,"keyHandled",it,at,ct),(pt=="handled"||pt=="multi")&&(mi(ct),Qn(it)),!!pt}function pf(it,at){var ct=lc(at,!0);return ct?at.shiftKey&&!it.state.keySeq?Uu(it,"Shift-"+ct,at,function(dt){return Hh(it,dt,!0)})||Uu(it,ct,at,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return Hh(it,dt)}):Uu(it,ct,at,function(dt){return Hh(it,dt)}):!1}function hc(it,at,ct){return Uu(it,"'"+ct+"'",at,function(dt){return Hh(it,dt,!0)})}var Bu=null;function mf(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=ce(),!qe(at,it))){Ut&&ne<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var dt=pf(at,it);oe&&(Bu=dt?ct:null,!dt&&ct==88&&!li&&(ht?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),At&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Wf(at)}}function Wf(it){var at=it.display.lineDiv;$e(at,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(Ot(at,"CodeMirror-crosshair"),Vn(document,"keyup",ct),Vn(document,"mouseover",ct))}Je(document,"keyup",ct),Je(document,"mouseover",ct)}function vf(it){it.keyCode==16&&(this.doc.sel.shift=!1),qe(this,it)}function lh(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(Ll(at.display,it)||qe(at,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(oe&&ct==Bu){Bu=null,mi(it);return}if(!(oe&&(!it.which||it.which<10)&&pf(at,it))){var pt=String.fromCharCode(dt==null?ct:dt);pt!="\b"&&(hc(at,it,pt)||at.display.input.onKeyPress(it))}}}var Sg=400,Zf=function(it,at,ct){this.time=it,this.pos=at,this.button=ct};Zf.prototype.compare=function(it,at,ct){return this.time+Sg>it&&yn(at,this.pos)==0&&ct==this.button};var dc,Sd;function Gf(it,at){var ct=+new Date;return Sd&&Sd.compare(ct,it,at)?(dc=Sd=null,"triple"):dc&&dc.compare(ct,it,at)?(Sd=new Zf(ct,it,at),dc=null,"double"):(dc=new Zf(ct,it,at),Sd=null,"single")}function bh(it){var at=this,ct=at.display;if(!(qe(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,Ll(ct,it)){Ft||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Xo(at,it)){var dt=il(at,it),pt=gr(it),Mt=dt?Gf(dt,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(dt&&Kf(at,pt,dt,Mt,it))&&(pt==1?dt?yf(at,dt,Mt,it):vr(it)==ct.scroller&&mi(it):pt==2?(dt&&Ma(at.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(kt?at.display.input.onContextMenu(it):Ri(at)))}}}function Kf(it,at,ct,dt,pt){var Mt="Click";return dt=="double"?Mt="Double"+Mt:dt=="triple"&&(Mt="Triple"+Mt),Mt=(at==1?"Left":at==2?"Middle":"Right")+Mt,Uu(it,Wd(Mt,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=gl[Rt]),!Rt)return!1;var qt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),qt=Rt(it,ct)!=ii}finally{it.state.suppressEdits=!1}return qt})}function jc(it,at,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,at,ct):{};if(pt.unit==null){var Mt=st?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=Mt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function yf(it,at,ct,dt){Ut?setTimeout(tn(di,it),0):it.curOp.focus=ce();var pt=jc(it,ct,dt),Mt=it.doc.sel,Rt;it.options.dragDrop&&fr&&!it.isReadOnly()&&ct=="single"&&(Rt=Mt.contains(at))>-1&&(yn((Rt=Mt.ranges[Rt]).from(),at)<0||at.xRel>0)&&(yn(Rt.to(),at)>0||at.xRel<0)?Hc(it,dt,at,pt):sp(it,dt,at,pt)}function Hc(it,at,ct,dt){var pt=it.display,Mt=!1,Rt=Mn(it,function(me){Ft&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Vn(pt.wrapper.ownerDocument,"mouseup",Rt),Vn(pt.wrapper.ownerDocument,"mousemove",qt),Vn(pt.scroller,"dragstart",Jt),Vn(pt.scroller,"drop",Rt),Mt||(mi(me),dt.addNew||Ma(it.doc,ct,null,null,dt.extend),Ft&&!Re||Ut&&ne==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),qt=function(me){Mt=Mt||Math.abs(at.clientX-me.clientX)+Math.abs(at.clientY-me.clientY)>=10},Jt=function(){return Mt=!0};Ft&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),Je(pt.wrapper.ownerDocument,"mouseup",Rt),Je(pt.wrapper.ownerDocument,"mousemove",qt),Je(pt.scroller,"dragstart",Jt),Je(pt.scroller,"drop",Rt),Ri(it),setTimeout(function(){return pt.input.focus()},20)}function Vf(it,at,ct){if(ct=="char")return new sr(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new sr(je(at.line,0),Fn(it.doc,je(at.line+1,0)));var dt=ct(it,at);return new sr(dt.from,dt.to)}function sp(it,at,ct,dt){var pt=it.display,Mt=it.doc;mi(at);var Rt,qt,Jt=Mt.sel,me=Jt.ranges;if(dt.addNew&&!dt.extend?(qt=Mt.sel.contains(ct),qt>-1?Rt=me[qt]:Rt=new sr(ct,ct)):(Rt=Mt.sel.primary(),qt=Mt.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Rt=new sr(ct,ct)),ct=il(it,at,!0,!0),qt=-1;else{var rn=Vf(it,ct,dt.unit);dt.extend?Rt=ll(Rt,rn.anchor,rn.head,dt.extend):Rt=rn}dt.addNew?qt==-1?(qt=me.length,Xa(Mt,Eo(it,me.concat([Rt]),qt),{scroll:!1,origin:"*mouse"})):me.length>1&&me[qt].empty()&&dt.unit=="char"&&!dt.extend?(Xa(Mt,Eo(it,me.slice(0,qt).concat(me.slice(qt+1)),0),{scroll:!1,origin:"*mouse"}),Jt=Mt.sel):Ka(Mt,qt,Rt,on):(qt=0,Xa(Mt,new co([Rt],0),on),Jt=Mt.sel);var Me=ct;function Hn(Wr){if(yn(Me,Wr)!=0)if(Me=Wr,dt.unit=="rectangle"){for(var xo=[],Jo=it.options.tabSize,zr=ve(pn(Mt,ct.line).text,ct.ch,Jo),va=ve(pn(Mt,Wr.line).text,Wr.ch,Jo),Gs=Math.min(zr,va),kl=Math.max(zr,va),el=Math.min(ct.line,Wr.line),Iu=Math.min(it.lastLine(),Math.max(ct.line,Wr.line));el<=Iu;el++){var pu=pn(Mt,el).text,Pl=Jn(pu,Gs,Jo);Gs==kl?xo.push(new sr(je(el,Pl),je(el,Pl))):pu.length>Pl&&xo.push(new sr(je(el,Pl),je(el,Jn(pu,kl,Jo))))}xo.length||xo.push(new sr(ct,ct)),Xa(Mt,Eo(it,Jt.ranges.slice(0,qt).concat(xo),qt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Wr)}else{var Xu=Rt,tu=Vf(it,Wr,dt.unit),Cl=Xu.anchor,qa;yn(tu.anchor,Cl)>0?(qa=tu.head,Cl=sn(Xu.from(),tu.anchor)):(qa=tu.anchor,Cl=gn(Xu.to(),tu.head));var rl=Jt.ranges.slice(0);rl[qt]=Qa(it,new sr(Fn(Mt,Cl),qa)),Xa(Mt,Eo(it,rl,qt),on)}}var Dn=pt.wrapper.getBoundingClientRect(),Ni=0;function Ii(Wr){var xo=++Ni,Jo=il(it,Wr,!0,dt.unit=="rectangle");if(Jo)if(yn(Jo,Me)!=0){it.curOp.focus=ce(),Hn(Jo);var zr=zn(pt,Mt);(Jo.line>=zr.to||Jo.line<zr.from)&&setTimeout(Mn(it,function(){Ni==xo&&Ii(Wr)}),150)}else{var va=Wr.clientY<Dn.top?-20:Wr.clientY>Dn.bottom?20:0;va&&setTimeout(Mn(it,function(){Ni==xo&&(pt.scroller.scrollTop+=va,Ii(Wr))}),50)}}function er(Wr){it.state.selectingText=!1,Ni=1/0,Wr&&(mi(Wr),pt.input.focus()),Vn(pt.wrapper.ownerDocument,"mousemove",br),Vn(pt.wrapper.ownerDocument,"mouseup",oo),Mt.history.lastSelOrigin=null}var br=Mn(it,function(Wr){Wr.buttons===0||!gr(Wr)?er(Wr):Ii(Wr)}),oo=Mn(it,er);it.state.selectingText=oo,Je(pt.wrapper.ownerDocument,"mousemove",br),Je(pt.wrapper.ownerDocument,"mouseup",oo)}function Qa(it,at){var ct=at.anchor,dt=at.head,pt=pn(it.doc,ct.line);if(yn(ct,dt)==0&&ct.sticky==dt.sticky)return at;var Mt=vn(pt);if(!Mt)return at;var Rt=se(Mt,ct.ch,ct.sticky),qt=Mt[Rt];if(qt.from!=ct.ch&&qt.to!=ct.ch)return at;var Jt=Rt+(qt.from==ct.ch==(qt.level!=1)?0:1);if(Jt==0||Jt==Mt.length)return at;var me;if(dt.line!=ct.line)me=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var rn=se(Mt,dt.ch,dt.sticky),Me=rn-Rt||(dt.ch-ct.ch)*(qt.level==1?-1:1);rn==Jt-1||rn==Jt?me=Me<0:me=Me>0}var Hn=Mt[Jt+(me?-1:0)],Dn=me==(Hn.level==1),Ni=Dn?Hn.from:Hn.to,Ii=Dn?"after":"before";return ct.ch==Ni&&ct.sticky==Ii?at:new sr(new je(ct.line,Ni,Ii),dt)}function Lo(it,at,ct,dt){var pt,Mt;if(at.touches)pt=at.touches[0].clientX,Mt=at.touches[0].clientY;else try{pt=at.clientX,Mt=at.clientY}catch(Hn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&mi(at);var Rt=it.display,qt=Rt.lineDiv.getBoundingClientRect();if(Mt>qt.bottom||!Nn(it,ct))return Pi(at);Mt-=qt.top-Rt.viewOffset;for(var Jt=0;Jt<it.display.gutterSpecs.length;++Jt){var me=Rt.gutters.childNodes[Jt];if(me&&me.getBoundingClientRect().right>=pt){var rn=Rn(it.doc,Mt),Me=it.display.gutterSpecs[Jt];return Se(it,ct,it,rn,Me.className,at),Pi(at)}}}function Xo(it,at){return Lo(it,at,"gutterClick",!0)}function Va(it,at){Ll(it.display,at)||Qs(it,at)||qe(it,at,"contextmenu")||kt||it.display.input.onContextMenu(at)}function Qs(it,at){return Nn(it,"gutterContextMenu")?Lo(it,at,"gutterContextMenu",!1):!1}function ad(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ws(it)}var Rl={toString:function(){return"CodeMirror.Init"}},Wh={},uh={};function cc(it){var at=it.optionHandlers;function ct(dt,pt,Mt,Rt){it.defaults[dt]=pt,Mt&&(at[dt]=Rt?function(qt,Jt,me){me!=Rl&&Mt(qt,Jt,me)}:Mt)}it.defineOption=ct,it.Init=Rl,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,_r(dt)},!0),ct("indentUnit",2,_r,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){mo(dt),ws(dt),as(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var Mt=[],Rt=dt.doc.first;dt.doc.iter(function(Jt){for(var me=0;;){var rn=Jt.text.indexOf(pt,me);if(rn==-1)break;me=rn+pt.length,Mt.push(je(Rt,rn))}Rt++});for(var qt=Mt.length-1;qt>=0;qt--)Vu(dt.doc,pt,Mt[qt],je(Mt[qt].line,Mt[qt].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,Mt){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),Mt!=Rl&&dt.refresh()}),ct("specialCharPlaceholder",js,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){ad(dt),ur(dt)},!0),ct("keyMap","default",function(dt,pt,Mt){var Rt=Ch(pt),qt=Mt!=Rl&&Ch(Mt);qt&&qt.detach&&qt.detach(dt,Rt),Rt.attach&&Rt.attach(dt,qt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,hh,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=Fr(pt,dt.options.lineNumbers),ur(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?Bd(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return ra(dt)},!0),ct("scrollbarStyle","native",function(dt){es(dt),ra(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=Fr(dt.options.gutters,pt),ur(dt)},!0),ct("firstLineNumber",1,ur,!0),ct("lineNumberFormatter",function(dt){return dt},ur,!0),ct("showCursorWhenSelecting",!1,ze,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(Mi(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,Zh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,ze,!0),ct("singleCursorHeightPerLine",!0,ze,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,mo,!0),ct("addModeClass",!1,mo,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,mo,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function Zh(it,at,ct){var dt=ct&&ct!=Rl;if(!at!=!dt){var pt=it.display.dragFunctions,Mt=at?Je:Vn;Mt(it.display.scroller,"dragstart",pt.start),Mt(it.display.scroller,"dragenter",pt.enter),Mt(it.display.scroller,"dragover",pt.over),Mt(it.display.scroller,"dragleave",pt.leave),Mt(it.display.scroller,"drop",pt.drop)}}function hh(it){it.options.lineWrapping?($e(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ot(it.display.wrapper,"CodeMirror-wrap"),ua(it)),vo(it),as(it),ws(it),setTimeout(function(){return ra(it)},100)}function $a(it,at){var ct=this;if(!(this instanceof $a))return new $a(it,at);this.options=at=at?Tn(at):{},Tn(Wh,at,!1);var dt=at.value;typeof dt=="string"?dt=new fl(dt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(dt.modeOption=at.mode),this.doc=dt;var pt=new $a.inputStyles[at.inputStyle](this),Mt=this.display=new Ir(it,dt,pt,at);Mt.wrapper.CodeMirror=this,ad(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),es(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 Zt,keySeq:null,specialChars:null},at.autofocus&&!nt&&Mt.input.focus(),Ut&&ne<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Sf(this),cu(),wa(this),this.curOp.forceUpdate=!0,yo(this,dt),at.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&ui(ct)},20):Mi(this);for(var Rt in uh)uh.hasOwnProperty(Rt)&&uh[Rt](this,at[Rt],Rl);pr(this),at.finishInit&&at.finishInit(this);for(var qt=0;qt<Wc.length;++qt)Wc[qt](this);Ms(this),Ft&&at.lineWrapping&&getComputedStyle(Mt.lineDiv).textRendering=="optimizelegibility"&&(Mt.lineDiv.style.textRendering="auto")}$a.defaults=Wh,$a.optionHandlers=uh;function Sf(it){var at=it.display;Je(at.scroller,"mousedown",Mn(it,bh)),Ut&&ne<11?Je(at.scroller,"dblclick",Mn(it,function(Jt){if(!qe(it,Jt)){var me=il(it,Jt);if(!(!me||Xo(it,Jt)||Ll(it.display,Jt))){mi(Jt);var rn=it.findWordAt(me);Ma(it.doc,rn.anchor,rn.head)}}})):Je(at.scroller,"dblclick",function(Jt){return qe(it,Jt)||mi(Jt)}),Je(at.scroller,"contextmenu",function(Jt){return Va(it,Jt)}),Je(at.input.getField(),"contextmenu",function(Jt){at.scroller.contains(Jt.target)||Va(it,Jt)});var ct,dt={end:0};function pt(){at.activeTouch&&(ct=setTimeout(function(){return at.activeTouch=null},1e3),dt=at.activeTouch,dt.end=+new Date)}function Mt(Jt){if(Jt.touches.length!=1)return!1;var me=Jt.touches[0];return me.radiusX<=1&&me.radiusY<=1}function Rt(Jt,me){if(me.left==null)return!0;var rn=me.left-Jt.left,Me=me.top-Jt.top;return rn*rn+Me*Me>20*20}Je(at.scroller,"touchstart",function(Jt){if(!qe(it,Jt)&&!Mt(Jt)&&!Xo(it,Jt)){at.input.ensurePolled(),clearTimeout(ct);var me=+new Date;at.activeTouch={start:me,moved:!1,prev:me-dt.end<=300?dt:null},Jt.touches.length==1&&(at.activeTouch.left=Jt.touches[0].pageX,at.activeTouch.top=Jt.touches[0].pageY)}}),Je(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),Je(at.scroller,"touchend",function(Jt){var me=at.activeTouch;if(me&&!Ll(at,Jt)&&me.left!=null&&!me.moved&&new Date-me.start<300){var rn=it.coordsChar(at.activeTouch,"page"),Me;!me.prev||Rt(me,me.prev)?Me=new sr(rn,rn):!me.prev.prev||Rt(me,me.prev.prev)?Me=it.findWordAt(rn):Me=new sr(je(rn.line,0),Fn(it.doc,je(rn.line+1,0))),it.setSelection(Me.anchor,Me.head),it.focus(),mi(Jt)}pt()}),Je(at.scroller,"touchcancel",pt),Je(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ea(it,at.scroller.scrollTop),La(it,at.scroller.scrollLeft,!0),Se(it,"scroll",it))}),Je(at.scroller,"mousewheel",function(Jt){return lo(it,Jt)}),Je(at.scroller,"DOMMouseScroll",function(Jt){return lo(it,Jt)}),Je(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Jt){qe(it,Jt)||_i(Jt)},over:function(Jt){qe(it,Jt)||(Rd(it,Jt),_i(Jt))},start:function(Jt){return Id(it,Jt)},drop:Mn(it,Od),leave:function(Jt){qe(it,Jt)||ff(it)}};var qt=at.input.getField();Je(qt,"keyup",function(Jt){return vf.call(it,Jt)}),Je(qt,"keydown",Mn(it,mf)),Je(qt,"keypress",Mn(it,lh)),Je(qt,"focus",function(Jt){return ui(it,Jt)}),Je(qt,"blur",function(Jt){return Mi(it,Jt)})}var Wc=[];$a.defineInitHook=function(it){return Wc.push(it)};function Al(it,at,ct,dt){var pt=it.doc,Mt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?Mt=nr(it,at).state:ct="prev");var Rt=it.options.tabSize,qt=pn(pt,at),Jt=ve(qt.text,null,Rt);qt.stateAfter&&(qt.stateAfter=null);var me=qt.text.match(/^\s*/)[0],rn;if(!dt&&!/\S/.test(qt.text))rn=0,ct="not";else if(ct=="smart"&&(rn=pt.mode.indent(Mt,qt.text.slice(me.length),qt.text),rn==ii||rn>150)){if(!dt)return;ct="prev"}ct=="prev"?at>pt.first?rn=ve(pn(pt,at-1).text,null,Rt):rn=0:ct=="add"?rn=Jt+it.options.indentUnit:ct=="subtract"?rn=Jt-it.options.indentUnit:typeof ct=="number"&&(rn=Jt+ct),rn=Math.max(0,rn);var Me="",Hn=0;if(it.options.indentWithTabs)for(var Dn=Math.floor(rn/Rt);Dn;--Dn)Hn+=Rt,Me+=" ";if(Hn<rn&&(Me+=Gn(rn-Hn)),Me!=me)return Vu(pt,Me,je(at,0),je(at,me.length),"+input"),qt.stateAfter=null,!0;for(var Ni=0;Ni<pt.sel.ranges.length;Ni++){var Ii=pt.sel.ranges[Ni];if(Ii.head.line==at&&Ii.head.ch<me.length){var er=je(at,me.length);Ka(pt,Ni,new sr(er,er));break}}}var Ou=null;function Zc(it){Ou=it}function Yf(it,at,ct,dt,pt){var Mt=it.doc;it.display.shift=!1,dt||(dt=Mt.sel);var Rt=+new Date-200,qt=pt=="paste"||it.state.pasteIncoming>Rt,Jt=Ki(at),me=null;if(qt&&dt.ranges.length>1)if(Ou&&Ou.text.join(`
|
|
|
`)==at){if(dt.ranges.length%Ou.text.length==0){me=[];for(var rn=0;rn<Ou.text.length;rn++)me.push(Mt.splitLines(Ou.text[rn]))}}else Jt.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(me=Xn(Jt,function(br){return[br]}));for(var Me=it.curOp.updateInput,Hn=dt.ranges.length-1;Hn>=0;Hn--){var Dn=dt.ranges[Hn],Ni=Dn.from(),Ii=Dn.to();Dn.empty()&&(ct&&ct>0?Ni=je(Ni.line,Ni.ch-ct):it.state.overwrite&&!qt?Ii=je(Ii.line,Math.min(pn(Mt,Ii.line).text.length,Ii.ch+pe(Jt).length)):qt&&Ou&&Ou.lineWise&&Ou.text.join(`
|
|
|
`)==Jt.join(`
|
|
|
`)&&(Ni=Ii=je(Ni.line,0)));var er={from:Ni,to:Ii,text:me?me[Hn%me.length]:Jt,origin:pt||(qt?"paste":it.state.cutIncoming>Rt?"cut":"+input")};ss(it.doc,er),Zi(it,"inputRead",it,er)}at&&!qt&&up(it,at),Ur(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Me),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function lp(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&Ve(at,function(){return Yf(at,ct,0,null,"paste")}),!0}function up(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var Mt=it.getModeAt(pt.head),Rt=!1;if(Mt.electricChars){for(var qt=0;qt<Mt.electricChars.length;qt++)if(at.indexOf(Mt.electricChars.charAt(qt))>-1){Rt=Al(it,pt.head.line,"smart");break}}else Mt.electricInput&&Mt.electricInput.test(pn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=Al(it,pt.head.line,"smart"));Rt&&Zi(it,"electricInput",it,pt.head.line)}}}function hp(it){for(var at=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var pt=it.doc.sel.ranges[dt].head.line,Mt={anchor:je(pt,0),head:je(pt+1,0)};ct.push(Mt),at.push(it.getRange(Mt.anchor,Mt.head))}return{text:at,ranges:ct}}function dp(it,at,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!at)}function cp(){var it=$t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=$t("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ft?it.style.width="1000px":it.setAttribute("wrap","off"),Nt&&(it.style.border="1px solid black"),dp(it),at}function fc(it){var at=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,pt){var Mt=this.options,Rt=Mt[dt];Mt[dt]==pt&&dt!="mode"||(Mt[dt]=pt,at.hasOwnProperty(dt)&&Mn(this,at[dt])(this,pt,Rt),Se(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,pt){this.state.keyMaps[pt?"push":"unshift"](Ch(dt))},removeKeyMap:function(dt){for(var pt=this.state.keyMaps,Mt=0;Mt<pt.length;++Mt)if(pt[Mt]==dt||pt[Mt].name==dt)return pt.splice(Mt,1),!0},addOverlay:En(function(dt,pt){var Mt=dt.token?dt:it.getMode(this.options,dt);if(Mt.startState)throw new Error("Overlays may not be stateful.");oi(this.state.overlays,{mode:Mt,modeSpec:dt,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,as(this)}),removeOverlay:En(function(dt){for(var pt=this.state.overlays,Mt=0;Mt<pt.length;++Mt){var Rt=pt[Mt].modeSpec;if(Rt==dt||typeof dt=="string"&&Rt.name==dt){pt.splice(Mt,1),this.state.modeGen++,as(this);return}}}),indentLine:En(function(dt,pt,Mt){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),pi(this.doc,dt)&&Al(this,dt,pt,Mt)}),indentSelection:En(function(dt){for(var pt=this.doc.sel.ranges,Mt=-1,Rt=0;Rt<pt.length;Rt++){var qt=pt[Rt];if(qt.empty())qt.head.line>Mt&&(Al(this,qt.head.line,dt,!0),Mt=qt.head.line,Rt==this.doc.sel.primIndex&&Ur(this));else{var Jt=qt.from(),me=qt.to(),rn=Math.max(Mt,Jt.line);Mt=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var Me=rn;Me<Mt;++Me)Al(this,Me,dt);var Hn=this.doc.sel.ranges;Jt.ch==0&&pt.length==Hn.length&&Hn[Rt].from().ch>0&&Ka(this.doc,Rt,new sr(Jt,Hn[Rt].to()),Be)}}}),getTokenAt:function(dt,pt){return Sr(this,dt,pt)},getLineTokens:function(dt,pt){return Sr(this,je(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Fn(this.doc,dt);var pt=Mr(this,pn(this.doc,dt.line)),Mt=0,Rt=(pt.length-1)/2,qt=dt.ch,Jt;if(qt==0)Jt=pt[2];else for(;;){var me=Mt+Rt>>1;if((me?pt[me*2-1]:0)>=qt)Rt=me;else if(pt[me*2+1]<qt)Mt=me+1;else{Jt=pt[me*2+2];break}}var rn=Jt?Jt.indexOf("overlay "):-1;return rn<0?Jt:rn==0?null:Jt.slice(0,rn-1)},getModeAt:function(dt){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(dt).state).mode:pt},getHelper:function(dt,pt){return this.getHelpers(dt,pt)[0]},getHelpers:function(dt,pt){var Mt=[];if(!ct.hasOwnProperty(pt))return Mt;var Rt=ct[pt],qt=this.getModeAt(dt);if(typeof qt[pt]=="string")Rt[qt[pt]]&&Mt.push(Rt[qt[pt]]);else if(qt[pt])for(var Jt=0;Jt<qt[pt].length;Jt++){var me=Rt[qt[pt][Jt]];me&&Mt.push(me)}else qt.helperType&&Rt[qt.helperType]?Mt.push(Rt[qt.helperType]):Rt[qt.name]&&Mt.push(Rt[qt.name]);for(var rn=0;rn<Rt._global.length;rn++){var Me=Rt._global[rn];Me.pred(qt,this)&&en(Mt,Me.val)==-1&&Mt.push(Me.val)}return Mt},getStateAfter:function(dt,pt){var Mt=this.doc;return dt=bn(Mt,dt==null?Mt.first+Mt.size-1:dt),nr(this,dt+1,pt).state},cursorCoords:function(dt,pt){var Mt,Rt=this.doc.sel.primary();return dt==null?Mt=Rt.head:typeof dt=="object"?Mt=Fn(this.doc,dt):Mt=dt?Rt.from():Rt.to(),fs(this,Mt,pt||"page")},charCoords:function(dt,pt){return Ql(this,Fn(this.doc,dt),pt||"page")},coordsChar:function(dt,pt){return dt=ih(this,dt,pt||"page"),ed(this,dt.left,dt.top)},lineAtHeight:function(dt,pt){return dt=ih(this,{top:dt,left:0},pt||"page").top,Rn(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,pt,Mt){var Rt=!1,qt;if(typeof dt=="number"){var Jt=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>Jt&&(dt=Jt,Rt=!0),qt=pn(this.doc,dt)}else qt=dt;return Ps(this,qt,{top:0,left:0},pt||"page",Mt||Rt).top+(Rt?this.doc.height-$o(qt):0)},defaultTextHeight:function(){return oh(this.display)},defaultCharWidth:function(){return xh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,Mt,Rt,qt){var Jt=this.display;dt=fs(this,Fn(this.doc,dt));var me=dt.bottom,rn=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Jt.sizer.appendChild(pt),Rt=="over")me=dt.top;else if(Rt=="above"||Rt=="near"){var Me=Math.max(Jt.wrapper.clientHeight,this.doc.height),Hn=Math.max(Jt.sizer.clientWidth,Jt.lineSpace.clientWidth);(Rt=="above"||dt.bottom+pt.offsetHeight>Me)&&dt.top>pt.offsetHeight?me=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=Me&&(me=dt.bottom),rn+pt.offsetWidth>Hn&&(rn=Hn-pt.offsetWidth)}pt.style.top=me+"px",pt.style.left=pt.style.right="",qt=="right"?(rn=Jt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(qt=="left"?rn=0:qt=="middle"&&(rn=(Jt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=rn+"px"),Mt&&jr(this,{left:rn,top:me,right:rn+pt.offsetWidth,bottom:me+pt.offsetHeight})},triggerOnKeyDown:En(mf),triggerOnKeyPress:En(lh),triggerOnKeyUp:vf,triggerOnMouseDown:En(bh),execCommand:function(dt){if(gl.hasOwnProperty(dt))return gl[dt].call(null,this)},triggerElectric:En(function(dt){up(this,dt)}),findPosH:function(dt,pt,Mt,Rt){var qt=1;pt<0&&(qt=-1,pt=-pt);for(var Jt=Fn(this.doc,dt),me=0;me<pt&&(Jt=Uf(this.doc,Jt,qt,Mt,Rt),!Jt.hitSide);++me);return Jt},moveH:En(function(dt,pt){var Mt=this;this.extendSelectionsBy(function(Rt){return Mt.display.shift||Mt.doc.extend||Rt.empty()?Uf(Mt.doc,Rt.head,dt,pt,Mt.options.rtlMoveVisually):dt<0?Rt.from():Rt.to()},un)}),deleteH:En(function(dt,pt){var Mt=this.doc.sel,Rt=this.doc;Mt.somethingSelected()?Rt.replaceSelection("",null,"+delete"):xl(this,function(qt){var Jt=Uf(Rt,qt.head,dt,pt,!1);return dt<0?{from:Jt,to:qt.head}:{from:qt.head,to:Jt}})}),findPosV:function(dt,pt,Mt,Rt){var qt=1,Jt=Rt;pt<0&&(qt=-1,pt=-pt);for(var me=Fn(this.doc,dt),rn=0;rn<pt;++rn){var Me=fs(this,me,"div");if(Jt==null?Jt=Me.left:Me.left=Jt,me=gc(this,Me,qt,Mt),me.hitSide)break}return me},moveV:En(function(dt,pt){var Mt=this,Rt=this.doc,qt=[],Jt=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(rn){if(Jt)return dt<0?rn.from():rn.to();var Me=fs(Mt,rn.head,"div");rn.goalColumn!=null&&(Me.left=rn.goalColumn),qt.push(Me.left);var Hn=gc(Mt,Me,dt,pt);return pt=="page"&&rn==Rt.sel.primary()&&Yr(Mt,Ql(Mt,Hn,"div").top-Me.top),Hn},un),qt.length)for(var me=0;me<Rt.sel.ranges.length;me++)Rt.sel.ranges[me].goalColumn=qt[me]}),findWordAt:function(dt){var pt=this.doc,Mt=pn(pt,dt.line).text,Rt=dt.ch,qt=dt.ch;if(Mt){var Jt=this.getHelper(dt,"wordChars");(dt.sticky=="before"||qt==Mt.length)&&Rt?--Rt:++qt;for(var me=Mt.charAt(Rt),rn=Bt(me,Jt)?function(Me){return Bt(Me,Jt)}:/\s/.test(me)?function(Me){return/\s/.test(Me)}:function(Me){return!/\s/.test(Me)&&!Bt(Me)};Rt>0&&rn(Mt.charAt(Rt-1));)--Rt;for(;qt<Mt.length&&rn(Mt.charAt(qt));)++qt}return new sr(je(dt.line,Rt),je(dt.line,qt))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):Ot(this.display.cursorDiv,"CodeMirror-overwrite"),Se(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ce()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:En(function(dt,pt){Hr(this,dt,pt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-vl(this)-this.display.barHeight,width:dt.scrollWidth-vl(this)-this.display.barWidth,clientHeight:Bh(this),clientWidth:Ml(this)}},scrollIntoView:En(function(dt,pt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:je(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=pt||0,dt.from.line!=null?ji(this,dt):zo(this,dt.from,dt.to,dt.margin)}),setSize:En(function(dt,pt){var Mt=this,Rt=function(Jt){return typeof Jt=="number"||/^\d+$/.test(String(Jt))?Jt+"px":Jt};dt!=null&&(this.display.wrapper.style.width=Rt(dt)),pt!=null&&(this.display.wrapper.style.height=Rt(pt)),this.options.lineWrapping&&xs(this);var qt=this.display.viewFrom;this.doc.iter(qt,this.display.viewTo,function(Jt){if(Jt.widgets){for(var me=0;me<Jt.widgets.length;me++)if(Jt.widgets[me].noHScroll){ta(Mt,qt,"widget");break}}++qt}),this.curOp.forceUpdate=!0,Se(this,"refresh",this)}),operation:function(dt){return Ve(this,dt)},startOperation:function(){return wa(this)},endOperation:function(){return Ms(this)},refresh:En(function(){var dt=this.display.cachedTextHeight;as(this),this.curOp.forceUpdate=!0,ws(this),Hr(this,this.doc.scrollLeft,this.doc.scrollTop),lr(this.display),(dt==null||Math.abs(dt-oh(this.display))>.5||this.options.lineWrapping)&&vo(this),Se(this,"refresh",this)}),swapDoc:En(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,dt),ws(this),this.display.input.reset(),Hr(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Zi(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},hi(it),it.registerHelper=function(dt,pt,Mt){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=Mt},it.registerGlobalHelper=function(dt,pt,Mt,Rt){it.registerHelper(dt,pt,Rt),ct[dt]._global.push({pred:Mt,val:Rt})}}function Uf(it,at,ct,dt,pt){var Mt=at,Rt=ct,qt=pn(it,at.line),Jt=pt&&it.direction=="rtl"?-ct:ct;function me(){var oo=at.line+Jt;return oo<it.first||oo>=it.first+it.size?!1:(at=new je(oo,at.ch,at.sticky),qt=pn(it,oo))}function rn(oo){var Wr;if(dt=="codepoint"){var xo=qt.text.charCodeAt(at.ch+(dt>0?0:-1));isNaN(xo)?Wr=null:Wr=new je(at.line,Math.max(0,Math.min(qt.text.length,at.ch+ct*(xo>=55296&&xo<56320?2:1))),-ct)}else pt?Wr=hs(it.cm,qt,at,ct):Wr=Js(qt,at,ct);if(Wr==null)if(!oo&&me())at=Ta(pt,it.cm,qt,at.line,Jt);else return!1;else at=Wr;return!0}if(dt=="char"||dt=="codepoint")rn();else if(dt=="column")rn(!0);else if(dt=="word"||dt=="group")for(var Me=null,Hn=dt=="group",Dn=it.cm&&it.cm.getHelper(at,"wordChars"),Ni=!0;!(ct<0&&!rn(!Ni));Ni=!1){var Ii=qt.text.charAt(at.ch)||`
|
|
|
`,er=Bt(Ii,Dn)?"w":Hn&&Ii==`
|
|
|
`?"n":!Hn||/\s/.test(Ii)?null:"p";if(Hn&&!Ni&&!er&&(er="s"),Me&&Me!=er){ct<0&&(ct=1,rn(),at.sticky="after");break}if(er&&(Me=er),ct>0&&!rn(!Ni))break}var br=bu(it,at,Mt,Rt,!0);return He(Mt,br)&&(br.hitSide=!0),br}function gc(it,at,ct,dt){var pt=it.doc,Mt=at.left,Rt;if(dt=="page"){var qt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Jt=Math.max(qt-.5*oh(it.display),3);Rt=(ct>0?at.bottom:at.top)+ct*Jt}else dt=="line"&&(Rt=ct>0?at.bottom+3:at.top-3);for(var me;me=ed(it,Mt,Rt),!!me.outside;){if(ct<0?Rt<=0:Rt>=pt.height){me.hitSide=!0;break}Rt+=ct*5}return me}var ks=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Zt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ks.prototype.init=function(it){var at=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;dp(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Mt(qt){for(var Jt=qt.target;Jt;Jt=Jt.parentNode){if(Jt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Jt.className))break}return!1}Je(pt,"paste",function(qt){!Mt(qt)||qe(dt,qt)||lp(qt,dt)||ne<=11&&setTimeout(Mn(dt,function(){return at.updateFromDOM()}),20)}),Je(pt,"compositionstart",function(qt){at.composing={data:qt.data,done:!1}}),Je(pt,"compositionupdate",function(qt){at.composing||(at.composing={data:qt.data,done:!1})}),Je(pt,"compositionend",function(qt){at.composing&&(qt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),Je(pt,"touchstart",function(){return ct.forceCompositionEnd()}),Je(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Rt(qt){if(!(!Mt(qt)||qe(dt,qt))){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()}),qt.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Jt=hp(dt);Zc({lineWise:!0,text:Jt.text}),qt.type=="cut"&&dt.operation(function(){dt.setSelections(Jt.ranges,0,Be),dt.replaceSelection("",null,"cut")})}else return;if(qt.clipboardData){qt.clipboardData.clearData();var me=Ou.text.join(`
|
|
|
`);if(qt.clipboardData.setData("Text",me),qt.clipboardData.getData("Text")==me){qt.preventDefault();return}}var rn=cp(),Me=rn.firstChild;dt.display.lineSpace.insertBefore(rn,dt.display.lineSpace.firstChild),Me.value=Ou.text.join(`
|
|
|
`);var Hn=document.activeElement;Ke(Me),setTimeout(function(){dt.display.lineSpace.removeChild(rn),Hn.focus(),Hn==pt&&ct.showPrimarySelection()},50)}}Je(pt,"copy",Rt),Je(pt,"cut",Rt)},ks.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ks.prototype.prepareSelection=function(){var it=We(this.cm,!1);return it.focus=document.activeElement==this.div,it},ks.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ks.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(at.display.viewTo==at.display.viewFrom||dt.line>=at.display.viewTo||pt.line<at.display.viewFrom){it.removeAllRanges();return}var Mt=Xf(at,it.anchorNode,it.anchorOffset),Rt=Xf(at,it.focusNode,it.focusOffset);if(!(Mt&&!Mt.bad&&Rt&&!Rt.bad&&yn(sn(Mt,Rt),dt)==0&&yn(gn(Mt,Rt),pt)==0)){var qt=at.display.view,Jt=dt.line>=at.display.viewFrom&&xg(at,dt)||{node:qt[0].measure.map[2],offset:0},me=pt.line<at.display.viewTo&&xg(at,pt);if(!me){var rn=qt[qt.length-1].measure,Me=rn.maps?rn.maps[rn.maps.length-1]:rn.map;me={node:Me[Me.length-1],offset:Me[Me.length-2]-Me[Me.length-3]}}if(!Jt||!me){it.removeAllRanges();return}var Hn=it.rangeCount&&it.getRangeAt(0),Dn;try{Dn=Yt(Jt.node,Jt.offset,me.offset,me.node)}catch(Ni){}Dn&&(!At&&at.state.focused?(it.collapse(Jt.node,Jt.offset),Dn.collapsed||(it.removeAllRanges(),it.addRange(Dn))):(it.removeAllRanges(),it.addRange(Dn)),Hn&&it.anchorNode==null?it.addRange(Hn):At&&this.startGracePeriod()),this.rememberSelection()}},ks.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},ks.prototype.showMultipleSelections=function(it){Ht(this.cm.display.cursorDiv,it.cursors),Ht(this.cm.display.selectionDiv,it.selection)},ks.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ks.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Ge(this.div,at)},ks.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ks.prototype.blur=function(){this.div.blur()},ks.prototype.getField=function(){return this.div},ks.prototype.supportsTouch=function(){return!0},ks.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Ve(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},ks.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ks.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(et&&Pe&&this.cm.display.gutterSpecs.length&&fp(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Xf(at,it.anchorNode,it.anchorOffset),dt=Xf(at,it.focusNode,it.focusOffset);ct&&dt&&Ve(at,function(){Xa(at.doc,Io(ct,dt),Be),(ct.bad||dt.bad)&&(at.curOp.selectionChanged=!0)})}}},ks.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,ct=it.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(dt.ch==0&&dt.line>it.firstLine()&&(dt=je(dt.line-1,pn(it.doc,dt.line-1).length)),pt.ch==pn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=je(pt.line+1,0)),dt.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var Mt,Rt,qt;dt.line==at.viewFrom||(Mt=yl(it,dt.line))==0?(Rt=Ce(at.view[0].line),qt=at.view[0].node):(Rt=Ce(at.view[Mt].line),qt=at.view[Mt-1].node.nextSibling);var Jt=yl(it,pt.line),me,rn;if(Jt==at.view.length-1?(me=at.viewTo-1,rn=at.lineDiv.lastChild):(me=Ce(at.view[Jt+1].line)-1,rn=at.view[Jt+1].node.previousSibling),!qt)return!1;for(var Me=it.doc.splitLines(wf(it,qt,rn,Rt,me)),Hn=Un(it.doc,je(Rt,0),je(me,pn(it.doc,me).text.length));Me.length>1&&Hn.length>1;)if(pe(Me)==pe(Hn))Me.pop(),Hn.pop(),me--;else if(Me[0]==Hn[0])Me.shift(),Hn.shift(),Rt++;else break;for(var Dn=0,Ni=0,Ii=Me[0],er=Hn[0],br=Math.min(Ii.length,er.length);Dn<br&&Ii.charCodeAt(Dn)==er.charCodeAt(Dn);)++Dn;for(var oo=pe(Me),Wr=pe(Hn),xo=Math.min(oo.length-(Me.length==1?Dn:0),Wr.length-(Hn.length==1?Dn:0));Ni<xo&&oo.charCodeAt(oo.length-Ni-1)==Wr.charCodeAt(Wr.length-Ni-1);)++Ni;if(Me.length==1&&Hn.length==1&&Rt==dt.line)for(;Dn&&Dn>dt.ch&&oo.charCodeAt(oo.length-Ni-1)==Wr.charCodeAt(Wr.length-Ni-1);)Dn--,Ni++;Me[Me.length-1]=oo.slice(0,oo.length-Ni).replace(/^\u200b+/,""),Me[0]=Me[0].slice(Dn).replace(/\u200b+$/,"");var Jo=je(Rt,Dn),zr=je(me,Hn.length?pe(Hn).length-Ni:0);if(Me.length>1||Me[0]||yn(Jo,zr))return Vu(it.doc,Me,Jo,zr,"+input"),!0},ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},ks.prototype.reset=function(){this.forceCompositionEnd()},ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ks.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},ks.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Ve(this.cm,function(){return as(it.cm)})},ks.prototype.setUneditable=function(it){it.contentEditable="false"},ks.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Mn(this.cm,Yf)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ks.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ks.prototype.onContextMenu=function(){},ks.prototype.resetPosition=function(){},ks.prototype.needsContentAttribute=!0;function xg(it,at){var ct=Gu(it,at.line);if(!ct||ct.hidden)return null;var dt=pn(it.doc,at.line),pt=Oh(ct,dt,at.line),Mt=vn(dt,it.doc.direction),Rt="left";if(Mt){var qt=se(Mt,at.ch);Rt=qt%2?"right":"left"}var Jt=td(pt.map,at.ch,Rt);return Jt.offset=Jt.collapse=="right"?Jt.end:Jt.start,Jt}function fp(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function xf(it,at){return at&&(it.bad=!0),it}function wf(it,at,ct,dt,pt){var Mt="",Rt=!1,qt=it.doc.lineSeparator(),Jt=!1;function me(Dn){return function(Ni){return Ni.id==Dn}}function rn(){Rt&&(Mt+=qt,Jt&&(Mt+=qt),Rt=Jt=!1)}function Me(Dn){Dn&&(rn(),Mt+=Dn)}function Hn(Dn){if(Dn.nodeType==1){var Ni=Dn.getAttribute("cm-text");if(Ni){Me(Ni);return}var Ii=Dn.getAttribute("cm-marker"),er;if(Ii){var br=it.findMarks(je(dt,0),je(pt+1,0),me(+Ii));br.length&&(er=br[0].find(0))&&Me(Un(it.doc,er.from,er.to).join(qt));return}if(Dn.getAttribute("contenteditable")=="false")return;var oo=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;oo&&rn();for(var Wr=0;Wr<Dn.childNodes.length;Wr++)Hn(Dn.childNodes[Wr]);/^(pre|p)$/i.test(Dn.nodeName)&&(Jt=!0),oo&&(Rt=!0)}else Dn.nodeType==3&&Me(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(at),at!=ct;)at=at.nextSibling,Jt=!1;return Mt}function Xf(it,at,ct){var dt;if(at==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return xf(it.clipPos(je(it.display.viewTo-1)),!0);at=null,ct=0}else for(dt=at;;dt=dt.parentNode){if(!dt||dt==it.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var Mt=it.display.view[pt];if(Mt.node==dt)return dm(Mt,at,ct)}}function dm(it,at,ct){var dt=it.text.firstChild,pt=!1;if(!at||!Ge(dt,at))return xf(je(Ce(it.line),0),!0);if(at==dt&&(pt=!0,at=dt.childNodes[ct],ct=0,!at)){var Mt=it.rest?pe(it.rest):it.line;return xf(je(Ce(Mt),Mt.text.length),pt)}var Rt=at.nodeType==3?at:null,qt=at;for(!Rt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Rt=at.firstChild,ct&&(ct=Rt.nodeValue.length));qt.parentNode!=dt;)qt=qt.parentNode;var Jt=it.measure,me=Jt.maps;function rn(er,br,oo){for(var Wr=-1;Wr<(me?me.length:0);Wr++)for(var xo=Wr<0?Jt.map:me[Wr],Jo=0;Jo<xo.length;Jo+=3){var zr=xo[Jo+2];if(zr==er||zr==br){var va=Ce(Wr<0?it.line:it.rest[Wr]),Gs=xo[Jo]+oo;return(oo<0||zr!=er)&&(Gs=xo[Jo+(oo?1:0)]),je(va,Gs)}}}var Me=rn(Rt,qt,ct);if(Me)return xf(Me,pt);for(var Hn=qt.nextSibling,Dn=Rt?Rt.nodeValue.length-ct:0;Hn;Hn=Hn.nextSibling){if(Me=rn(Hn,Hn.firstChild,0),Me)return xf(je(Me.line,Me.ch-Dn),pt);Dn+=Hn.textContent.length}for(var Ni=qt.previousSibling,Ii=ct;Ni;Ni=Ni.previousSibling){if(Me=rn(Ni,Ni.firstChild,-1),Me)return xf(je(Me.line,Me.ch+Ii),pt);Ii+=Ni.textContent.length}}var wl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Zt,this.hasSelection=!1,this.composing=null};wl.prototype.init=function(it){var at=this,ct=this,dt=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Nt&&(pt.style.width="0px"),Je(pt,"input",function(){Ut&&ne>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),Je(pt,"paste",function(Rt){qe(dt,Rt)||lp(Rt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function Mt(Rt){if(!qe(dt,Rt)){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var qt=hp(dt);Zc({lineWise:!0,text:qt.text}),Rt.type=="cut"?dt.setSelections(qt.ranges,null,Be):(ct.prevInput="",pt.value=qt.text.join(`
|
|
|
`),Ke(pt))}else return;Rt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}Je(pt,"cut",Mt),Je(pt,"copy",Mt),Je(it.scroller,"paste",function(Rt){if(!(Ll(it,Rt)||qe(dt,Rt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var qt=new Event("paste");qt.clipboardData=Rt.clipboardData,pt.dispatchEvent(qt)}}),Je(it.lineSpace,"selectstart",function(Rt){Ll(it,Rt)||mi(Rt)}),Je(pt,"compositionstart",function(){var Rt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Rt,range:dt.markText(Rt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},wl.prototype.createField=function(it){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},wl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,dt=We(it);if(it.options.moveInputWithCursor){var pt=fs(it,ct.sel.primary().head,"div"),Mt=at.wrapper.getBoundingClientRect(),Rt=at.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Rt.top-Mt.top)),dt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Rt.left-Mt.left))}return dt},wl.prototype.showSelection=function(it){var at=this.cm,ct=at.display;Ht(ct.cursorDiv,it.cursors),Ht(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},wl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&Ke(this.textarea),Ut&&ne>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Ut&&ne>=9&&(this.hasSelection=null))}},wl.prototype.getField=function(){return this.textarea},wl.prototype.supportsTouch=function(){return!1},wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||ce()!=this.textarea))try{this.textarea.focus()}catch(it){}},wl.prototype.blur=function(){this.textarea.blur()},wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wl.prototype.receivedFocus=function(){this.slowPoll()},wl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},wl.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var dt=at.poll();!dt&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},wl.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!at.state.focused||Lt(ct)&&!dt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!at.somethingSelected())return!1;if(Ut&&ne>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Mt=pt.charCodeAt(0);if(Mt==8203&&!dt&&(dt="\u200B"),Mt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,qt=Math.min(dt.length,pt.length);Rt<qt&&dt.charCodeAt(Rt)==pt.charCodeAt(Rt);)++Rt;return Ve(at,function(){Yf(at,pt.slice(Rt),dt.length-Rt,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
|
|
|
`)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wl.prototype.onKeyPress=function(){Ut&&ne>=9&&(this.hasSelection=null),this.fastPoll()},wl.prototype.onContextMenu=function(it){var at=this,ct=at.cm,dt=ct.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Mt=il(ct,it),Rt=dt.scroller.scrollTop;if(!Mt||oe)return;var qt=ct.options.resetSelectionOnContextMenu;qt&&ct.doc.sel.contains(Mt)==-1&&Mn(ct,Xa)(ct.doc,Io(Mt),Be);var Jt=pt.style.cssText,me=at.wrapper.style.cssText,rn=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-rn.top-5)+"px; left: "+(it.clientX-rn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ut?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Me;Ft&&(Me=window.scrollY),dt.input.focus(),Ft&&window.scrollTo(null,Me),dt.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Dn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function Hn(){if(pt.selectionStart!=null){var Ii=ct.somethingSelected(),er="\u200B"+(Ii?pt.value:"");pt.value="\u21DA",pt.value=er,at.prevInput=Ii?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=er.length,dt.selForContextMenu=ct.doc.sel}}function Dn(){if(at.contextMenuPending==Dn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=me,pt.style.cssText=Jt,Ut&&ne<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!Ut||Ut&&ne<9)&&Hn();var Ii=0,er=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?Mn(ct,Wa)(ct):Ii++<10?dt.detectingSelectAll=setTimeout(er,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(er,200)}}if(Ut&&ne>=9&&Hn(),kt){_i(it);var Ni=function(){Vn(window,"mouseup",Ni),setTimeout(Dn,20)};Je(window,"mouseup",Ni)}else setTimeout(Dn,50)},wl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},wl.prototype.setUneditable=function(){},wl.prototype.needsContentAttribute=!1;function cm(it,at){if(at=at?Tn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=ce();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=qt.getValue()}var pt;if(it.form&&(Je(it.form,"submit",dt),!at.leaveSubmitMethodAlone)){var Mt=it.form;pt=Mt.submit;try{var Rt=Mt.submit=function(){dt(),Mt.submit=pt,Mt.submit(),Mt.submit=Rt}}catch(Jt){}}at.finishInit=function(Jt){Jt.save=dt,Jt.getTextArea=function(){return it},Jt.toTextArea=function(){Jt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Jt.getWrapperElement()),it.style.display="",it.form&&(Vn(it.form,"submit",dt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var qt=$a(function(Jt){return it.parentNode.insertBefore(Jt,it.nextSibling)},at);return qt}function Pf(it){it.off=Vn,it.on=Je,it.wheelEventPixels=Rr,it.Doc=fl,it.splitLines=Ki,it.countColumn=ve,it.findColumn=Jn,it.isWordChar=Tt,it.Pass=ii,it.signal=Se,it.Line=Ia,it.changeEnd=Wo,it.scrollbarModel=Ua,it.Pos=je,it.cmpPos=yn,it.modes=hr,it.mimeModes=qi,it.resolveMode=Ln,it.getMode=fn,it.modeExtensions=Ze,it.extendMode=fe,it.copyState=Sn,it.startState=Fe,it.innerMode=In,it.commands=gl,it.keyMap=Il,it.keyName=lc,it.isModifierKey=yd,it.lookupKey=_l,it.normalizeKeyMap=Hd,it.StringStream=ue,it.SharedTextMarker=sh,it.TextMarker=Ye,it.LineWidget=Zs,it.e_preventDefault=mi,it.e_stopPropagation=gi,it.e_stop=_i,it.addClass=$e,it.contains=Ge,it.rmClass=Ot,it.keyNames=Yu}cc($a),fc($a);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in fl.prototype)fl.prototype.hasOwnProperty(Jf)&&en(Kd,Jf)<0&&($a.prototype[Jf]=function(it){return function(){return it.apply(this.doc,arguments)}}(fl.prototype[Jf]));return hi(fl),$a.inputStyles={textarea:wl,contenteditable:ks},$a.defineMode=function(it){!$a.defaults.mode&&it!="null"&&($a.defaults.mode=it),Zr.apply(this,arguments)},$a.defineMIME=Gr,$a.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),$a.defineMIME("text/plain","null"),$a.defineExtension=function(it,at){$a.prototype[it]=at},$a.defineDocExtension=function(it,at){fl.prototype[it]=at},$a.fromTextArea=cm,Pf($a),$a.version="5.58.2",$a})},25419:function(On,Cn,yt){(function(At){At(yt(89780),yt(15525),yt(98101))})(function(At){"use strict";At.defineMode("markdown",function(zt,re){var Ae=At.getMode(zt,"text/html"),Ut=Ae.name=="null";function ne(ve){if(At.findModeByName){var Zt=At.findModeByName(ve);Zt&&(ve=Zt.mime||Zt.mimes[0])}var en=At.getMode(zt,ve);return en.name=="null"?null:en}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var Ft={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 De in Ft)Ft.hasOwnProperty(De)&&re.tokenTypeOverrides[De]&&(Ft[De]=re.tokenTypeOverrides[De]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Re=/^\[(x| )\](?=\s)/i,de=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,be=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Nt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,st=" ";function gt(ve,Zt,en){return Zt.f=Zt.inline=en,en(ve,Zt)}function mt(ve,Zt,en){return Zt.f=Zt.block=en,en(ve,Zt)}function Pt(ve){return!ve||!/\S/.test(ve.string)}function kt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Ot){var Zt=Ut;if(!Zt){var en=At.innerMode(Ae,ve.htmlState);Zt=en.mode.name=="xml"&&en.state.tagStart===null&&!en.state.context&&en.state.tokenize.isInText}Zt&&(ve.f=ye,ve.block=wt,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function wt(ve,Zt){var en=ve.column()===Zt.indentation,Kn=Pt(Zt.prevLine.stream),ii=Zt.indentedCode,Be=Zt.prevLine.hr,on=Zt.list!==!1,un=(Zt.listStack[Zt.listStack.length-1]||0)+3;Zt.indentedCode=!1;var Jn=Zt.indentation;if(Zt.indentationDiff===null&&(Zt.indentationDiff=Zt.indentation,on)){for(Zt.list=null;Jn<Zt.listStack[Zt.listStack.length-1];)Zt.listStack.pop(),Zt.listStack.length?Zt.indentation=Zt.listStack[Zt.listStack.length-1]:Zt.list=!1;Zt.list!==!1&&(Zt.indentationDiff=Jn-Zt.listStack[Zt.listStack.length-1])}var nn=!Kn&&!Be&&!Zt.prevLine.header&&(!on||!ii)&&!Zt.prevLine.fencedCodeEnd,Gn=(Zt.list===!1||Be||Kn)&&Zt.indentation<=un&&ve.match(Pe),pe=null;if(Zt.indentationDiff>=4&&(ii||Zt.prevLine.fencedCodeEnd||Zt.prevLine.header||Kn))return ve.skipToEnd(),Zt.indentedCode=!0,Ft.code;if(ve.eatSpace())return null;if(en&&Zt.indentation<=un&&(pe=ve.match(de))&&pe[1].length<=6)return Zt.quote=0,Zt.header=pe[1].length,Zt.thisLine.header=!0,re.highlightFormatting&&(Zt.formatting="header"),Zt.f=Zt.inline,Ht(Zt);if(Zt.indentation<=un&&ve.eat(">"))return Zt.quote=en?1:Zt.quote+1,re.highlightFormatting&&(Zt.formatting="quote"),ve.eatSpace(),Ht(Zt);if(!Gn&&!Zt.setext&&en&&Zt.indentation<=un&&(pe=ve.match(oe))){var Xn=pe[1]?"ol":"ul";return Zt.indentation=Jn+ve.current().length,Zt.list=!0,Zt.quote=0,Zt.listStack.push(Zt.indentation),Zt.em=!1,Zt.strong=!1,Zt.code=!1,Zt.strikethrough=!1,re.taskLists&&ve.match(Re,!1)&&(Zt.taskList=!0),Zt.f=Zt.inline,re.highlightFormatting&&(Zt.formatting=["list","list-"+Xn]),Ht(Zt)}else{if(en&&Zt.indentation<=un&&(pe=ve.match(et,!0)))return Zt.quote=0,Zt.fencedEndRE=new RegExp(pe[1]+"+ *$"),Zt.localMode=re.fencedCodeBlockHighlighting&&ne(pe[2]||re.fencedCodeBlockDefaultMode),Zt.localMode&&(Zt.localState=At.startState(Zt.localMode)),Zt.f=Zt.block=jt,re.highlightFormatting&&(Zt.formatting="code-block"),Zt.code=-1,Ht(Zt);if(Zt.setext||(!nn||!on)&&!Zt.quote&&Zt.list===!1&&!Zt.code&&!Gn&&!nt.test(ve.string)&&(pe=ve.lookAhead(1))&&(pe=pe.match(be)))return Zt.setext?(Zt.header=Zt.setext,Zt.setext=0,ve.skipToEnd(),re.highlightFormatting&&(Zt.formatting="header")):(Zt.header=pe[0].charAt(0)=="="?1:2,Zt.setext=Zt.header),Zt.thisLine.header=!0,Zt.f=Zt.inline,Ht(Zt);if(Gn)return ve.skipToEnd(),Zt.hr=!0,Zt.thisLine.hr=!0,Ft.hr;if(ve.peek()==="[")return gt(ve,Zt,Ue)}return gt(ve,Zt,Zt.inline)}function Ot(ve,Zt){var en=Ae.token(ve,Zt.htmlState);if(!Ut){var Kn=At.innerMode(Ae,Zt.htmlState);(Kn.mode.name=="xml"&&Kn.state.tagStart===null&&!Kn.state.context&&Kn.state.tokenize.isInText||Zt.md_inside&&ve.current().indexOf(">")>-1)&&(Zt.f=ye,Zt.block=wt,Zt.htmlState=null)}return en}function jt(ve,Zt){var en=Zt.listStack[Zt.listStack.length-1]||0,Kn=Zt.indentation<en,ii=en+3;if(Zt.fencedEndRE&&Zt.indentation<=ii&&(Kn||ve.match(Zt.fencedEndRE))){re.highlightFormatting&&(Zt.formatting="code-block");var Be;return Kn||(Be=Ht(Zt)),Zt.localMode=Zt.localState=null,Zt.block=wt,Zt.f=ye,Zt.fencedEndRE=null,Zt.code=0,Zt.thisLine.fencedCodeEnd=!0,Kn?mt(ve,Zt,Zt.block):Be}else return Zt.localMode?Zt.localMode.token(ve,Zt.localState):(ve.skipToEnd(),Ft.code)}function Ht(ve){var Zt=[];if(ve.formatting){Zt.push(Ft.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var en=0;en<ve.formatting.length;en++)Zt.push(Ft.formatting+"-"+ve.formatting[en]),ve.formatting[en]==="header"&&Zt.push(Ft.formatting+"-"+ve.formatting[en]+"-"+ve.header),ve.formatting[en]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?Zt.push(Ft.formatting+"-"+ve.formatting[en]+"-"+ve.quote):Zt.push("error"))}if(ve.taskOpen)return Zt.push("meta"),Zt.length?Zt.join(" "):null;if(ve.taskClosed)return Zt.push("property"),Zt.length?Zt.join(" "):null;if(ve.linkHref?Zt.push(Ft.linkHref,"url"):(ve.strong&&Zt.push(Ft.strong),ve.em&&Zt.push(Ft.em),ve.strikethrough&&Zt.push(Ft.strikethrough),ve.emoji&&Zt.push(Ft.emoji),ve.linkText&&Zt.push(Ft.linkText),ve.code&&Zt.push(Ft.code),ve.image&&Zt.push(Ft.image),ve.imageAltText&&Zt.push(Ft.imageAltText,"link"),ve.imageMarker&&Zt.push(Ft.imageMarker)),ve.header&&Zt.push(Ft.header,Ft.header+"-"+ve.header),ve.quote&&(Zt.push(Ft.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?Zt.push(Ft.quote+"-"+ve.quote):Zt.push(Ft.quote+"-"+re.maxBlockquoteDepth)),ve.list!==!1){var Kn=(ve.listStack.length-1)%3;Kn?Kn===1?Zt.push(Ft.list2):Zt.push(Ft.list3):Zt.push(Ft.list1)}return ve.trailingSpaceNewLine?Zt.push("trailing-space-new-line"):ve.trailingSpace&&Zt.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),Zt.length?Zt.join(" "):null}function $t(ve,Zt){if(ve.match(Nt,!0))return Ht(Zt)}function ye(ve,Zt){var en=Zt.text(ve,Zt);if(typeof en!="undefined")return en;if(Zt.list)return Zt.list=null,Ht(Zt);if(Zt.taskList){var Kn=ve.match(Re,!0)[1]===" ";return Kn?Zt.taskOpen=!0:Zt.taskClosed=!0,re.highlightFormatting&&(Zt.formatting="task"),Zt.taskList=!1,Ht(Zt)}if(Zt.taskOpen=!1,Zt.taskClosed=!1,Zt.header&&ve.match(/^#+$/,!0))return re.highlightFormatting&&(Zt.formatting="header"),Ht(Zt);var ii=ve.next();if(Zt.linkTitle){Zt.linkTitle=!1;var Be=ii;ii==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var on="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(ve.match(new RegExp(on),!0))return Ft.linkHref}if(ii==="`"){var un=Zt.formatting;re.highlightFormatting&&(Zt.formatting="code"),ve.eatWhile("`");var Jn=ve.current().length;if(Zt.code==0&&(!Zt.quote||Jn==1))return Zt.code=Jn,Ht(Zt);if(Jn==Zt.code){var nn=Ht(Zt);return Zt.code=0,nn}else return Zt.formatting=un,Ht(Zt)}else if(Zt.code)return Ht(Zt);if(ii==="\\"&&(ve.next(),re.highlightFormatting)){var Gn=Ht(Zt),pe=Ft.formatting+"-escape";return Gn?Gn+" "+pe:pe}if(ii==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Zt.imageMarker=!0,Zt.image=!0,re.highlightFormatting&&(Zt.formatting="image"),Ht(Zt);if(ii==="["&&Zt.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Zt.imageMarker=!1,Zt.imageAltText=!0,re.highlightFormatting&&(Zt.formatting="image"),Ht(Zt);if(ii==="]"&&Zt.imageAltText){re.highlightFormatting&&(Zt.formatting="image");var Gn=Ht(Zt);return Zt.imageAltText=!1,Zt.image=!1,Zt.inline=Zt.f=Ge,Gn}if(ii==="["&&!Zt.image)return Zt.linkText&&ve.match(/^.*?\]/)||(Zt.linkText=!0,re.highlightFormatting&&(Zt.formatting="link")),Ht(Zt);if(ii==="]"&&Zt.linkText){re.highlightFormatting&&(Zt.formatting="link");var Gn=Ht(Zt);return Zt.linkText=!1,Zt.inline=Zt.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Ge:ye,Gn}if(ii==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=Yt,re.highlightFormatting&&(Zt.formatting="link");var Gn=Ht(Zt);return Gn?Gn+=" ":Gn="",Gn+Ft.linkInline}if(ii==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=Yt,re.highlightFormatting&&(Zt.formatting="link");var Gn=Ht(Zt);return Gn?Gn+=" ":Gn="",Gn+Ft.linkEmail}if(re.xml&&ii==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Xn=ve.string.indexOf(">",ve.pos);if(Xn!=-1){var oi=ve.string.substring(ve.start,Xn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(oi)&&(Zt.md_inside=!0)}return ve.backUp(1),Zt.htmlState=At.startState(Ae),mt(ve,Zt,Ot)}if(re.xml&&ii==="<"&&ve.match(/^\/\w*?>/))return Zt.md_inside=!1,"tag";if(ii==="*"||ii==="_"){for(var te=1,bt=ve.pos==1?" ":ve.string.charAt(ve.pos-2);te<3&&ve.eat(ii);)te++;var xt=ve.peek()||" ",Tt=!/\s/.test(xt)&&(!ht.test(xt)||/\s/.test(bt)||ht.test(bt)),Bt=!/\s/.test(bt)&&(!ht.test(bt)||/\s/.test(xt)||ht.test(xt)),St=null,he=null;if(te%2&&(!Zt.em&&Tt&&(ii==="*"||!Bt||ht.test(bt))?St=!0:Zt.em==ii&&Bt&&(ii==="*"||!Tt||ht.test(xt))&&(St=!1)),te>1&&(!Zt.strong&&Tt&&(ii==="*"||!Bt||ht.test(bt))?he=!0:Zt.strong==ii&&Bt&&(ii==="*"||!Tt||ht.test(xt))&&(he=!1)),he!=null||St!=null){re.highlightFormatting&&(Zt.formatting=St==null?"strong":he==null?"em":"strong em"),St===!0&&(Zt.em=ii),he===!0&&(Zt.strong=ii);var nn=Ht(Zt);return St===!1&&(Zt.em=!1),he===!1&&(Zt.strong=!1),nn}}else if(ii===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return Ht(Zt);ve.backUp(1)}if(re.strikethrough){if(ii==="~"&&ve.eatWhile(ii)){if(Zt.strikethrough){re.highlightFormatting&&(Zt.formatting="strikethrough");var nn=Ht(Zt);return Zt.strikethrough=!1,nn}else if(ve.match(/^[^\s]/,!1))return Zt.strikethrough=!0,re.highlightFormatting&&(Zt.formatting="strikethrough"),Ht(Zt)}else if(ii===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return Ht(Zt);ve.backUp(2)}}if(re.emoji&&ii===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Zt.emoji=!0,re.highlightFormatting&&(Zt.formatting="emoji");var Le=Ht(Zt);return Zt.emoji=!1,Le}return ii===" "&&(ve.match(/^ +$/,!1)?Zt.trailingSpace++:Zt.trailingSpace&&(Zt.trailingSpaceNewLine=!0)),Ht(Zt)}function Yt(ve,Zt){var en=ve.next();if(en===">"){Zt.f=Zt.inline=ye,re.highlightFormatting&&(Zt.formatting="link");var Kn=Ht(Zt);return Kn?Kn+=" ":Kn="",Kn+Ft.linkInline}return ve.match(/^[^>]+/,!0),Ft.linkInline}function Ge(ve,Zt){if(ve.eatSpace())return null;var en=ve.next();return en==="("||en==="["?(Zt.f=Zt.inline=$e(en==="("?")":"]"),re.highlightFormatting&&(Zt.formatting="link-string"),Zt.linkHref=!0,Ht(Zt)):"error"}var ce={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $e(ve){return function(Zt,en){var Kn=Zt.next();if(Kn===ve){en.f=en.inline=ye,re.highlightFormatting&&(en.formatting="link-string");var ii=Ht(en);return en.linkHref=!1,ii}return Zt.match(ce[ve]),en.linkHref=!0,Ht(en)}}function Ue(ve,Zt){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(Zt.f=Ke,ve.next(),re.highlightFormatting&&(Zt.formatting="link"),Zt.linkText=!0,Ht(Zt)):gt(ve,Zt,ye)}function Ke(ve,Zt){if(ve.match(/^\]:/,!0)){Zt.f=Zt.inline=tn,re.highlightFormatting&&(Zt.formatting="link");var en=Ht(Zt);return Zt.linkText=!1,en}return ve.match(/^([^\]\\]|\\.)+/,!0),Ft.linkText}function tn(ve,Zt){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?Zt.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Zt.f=Zt.inline=ye,Ft.linkHref+" url")}var Tn={startState:function(){return{f:wt,prevLine:{stream:null},thisLine:{stream:null},block:wt,htmlState:null,indentation:0,inline:ye,text:$t,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&At.copyState(Ae,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?At.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,Zt){if(Zt.formatting=!1,ve!=Zt.thisLine.stream){if(Zt.header=0,Zt.hr=!1,ve.match(/^\s*$/,!0))return kt(Zt),null;if(Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:ve},Zt.taskList=!1,Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,!Zt.localState&&(Zt.f=Zt.block,Zt.f!=Ot)){var en=ve.match(/^\s*/,!0)[0].replace(/\t/g,st).length;if(Zt.indentation=en,Zt.indentationDiff=null,en>0)return null}}return Zt.f(ve,Zt)},innerMode:function(ve){return ve.block==Ot?{state:ve.htmlState,mode:Ae}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Tn}},indent:function(ve,Zt,en){return ve.block==Ot&&Ae.indent?Ae.indent(ve.htmlState,Zt,en):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,Zt,en):At.Pass},blankLine:kt,getType:Ht,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Tn},"xml"),At.defineMIME("text/markdown","markdown"),At.defineMIME("text/x-markdown","markdown")})},98101:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){"use strict";At.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var zt=0;zt<At.modeInfo.length;zt++){var re=At.modeInfo[zt];re.mimes&&(re.mime=re.mimes[0])}At.findModeByMIME=function(Ae){Ae=Ae.toLowerCase();for(var Ut=0;Ut<At.modeInfo.length;Ut++){var ne=At.modeInfo[Ut];if(ne.mime==Ae)return ne;if(ne.mimes){for(var Ft=0;Ft<ne.mimes.length;Ft++)if(ne.mimes[Ft]==Ae)return ne}}if(/\+xml$/.test(Ae))return At.findModeByMIME("application/xml");if(/\+json$/.test(Ae))return At.findModeByMIME("application/json")},At.findModeByExtension=function(Ae){Ae=Ae.toLowerCase();for(var Ut=0;Ut<At.modeInfo.length;Ut++){var ne=At.modeInfo[Ut];if(ne.ext){for(var Ft=0;Ft<ne.ext.length;Ft++)if(ne.ext[Ft]==Ae)return ne}}},At.findModeByFileName=function(Ae){for(var Ut=0;Ut<At.modeInfo.length;Ut++){var ne=At.modeInfo[Ut];if(ne.file&&ne.file.test(Ae))return ne}var Ft=Ae.lastIndexOf("."),De=Ft>-1&&Ae.substring(Ft+1,Ae.length);if(De)return At.findModeByExtension(De)},At.findModeByName=function(Ae){Ae=Ae.toLowerCase();for(var Ut=0;Ut<At.modeInfo.length;Ut++){var ne=At.modeInfo[Ut];if(ne.name.toLowerCase()==Ae)return ne;if(ne.alias){for(var Ft=0;Ft<ne.alias.length;Ft++)if(ne.alias[Ft].toLowerCase()==Ae)return ne}}}})},67549:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){"use strict";At.defineMode("stex",function(zt,re){"use strict";function Ae(Nt,et){Nt.cmdState.push(et)}function Ut(Nt){return Nt.cmdState.length>0?Nt.cmdState[Nt.cmdState.length-1]:null}function ne(Nt){var et=Nt.cmdState.pop();et&&et.closeBracket()}function Ft(Nt){for(var et=Nt.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function De(Nt,et,nt){return function(){this.name=Nt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=De("importmodule","tag",["string","builtin"]),Pe.documentclass=De("documentclass","tag",["","atom"]),Pe.usepackage=De("usepackage","tag",["atom"]),Pe.begin=De("begin","tag",["atom"]),Pe.end=De("end","tag",["atom"]),Pe.label=De("label","tag",["atom"]),Pe.ref=De("ref","tag",["atom"]),Pe.eqref=De("eqref","tag",["atom"]),Pe.cite=De("cite","tag",["atom"]),Pe.bibitem=De("bibitem","tag",["atom"]),Pe.Bibitem=De("Bibitem","tag",["atom"]),Pe.RBibitem=De("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(Nt,et){Nt.f=et}function Re(Nt,et){var nt;if(Nt.match(/^\\[a-zA-Z@]+/)){var ht=Nt.current().slice(1);return nt=Pe.hasOwnProperty(ht)?Pe[ht]:Pe.DEFAULT,nt=new nt,Ae(et,nt),oe(et,be),nt.style}if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/\\]/))return"tag";if(Nt.match("\\["))return oe(et,function(gt,mt){return de(gt,mt,"\\]")}),"keyword";if(Nt.match("\\("))return oe(et,function(gt,mt){return de(gt,mt,"\\)")}),"keyword";if(Nt.match("$$"))return oe(et,function(gt,mt){return de(gt,mt,"$$")}),"keyword";if(Nt.match("$"))return oe(et,function(gt,mt){return de(gt,mt,"$")}),"keyword";var st=Nt.next();if(st=="%")return Nt.skipToEnd(),"comment";if(st=="}"||st=="]"){if(nt=Ut(et),nt)nt.closeBracket(st),oe(et,be);else return"error";return"bracket"}else return st=="{"||st=="["?(nt=Pe.DEFAULT,nt=new nt,Ae(et,nt),"bracket"):/\d/.test(st)?(Nt.eatWhile(/[\w.%]/),"atom"):(Nt.eatWhile(/[\w\-_]/),nt=Ft(et),nt.name=="begin"&&(nt.argument=Nt.current()),nt.styleIdentifier())}function de(Nt,et,nt){if(Nt.eatSpace())return null;if(nt&&Nt.match(nt))return oe(et,Re),"keyword";if(Nt.match(/^\\[a-zA-Z@]+/))return"tag";if(Nt.match(/^[a-zA-Z]+/))return"variable-2";if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/]/)||Nt.match(/^[\^_&]/))return"tag";if(Nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Nt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Nt.skipToEnd(),"comment"):"error"}function be(Nt,et){var nt=Nt.peek(),ht;return nt=="{"||nt=="["?(ht=Ut(et),ht.openBracket(nt),Nt.eat(nt),oe(et,Re),"bracket"):/[ \t\r]/.test(nt)?(Nt.eat(nt),null):(oe(et,Re),ne(et),Re(Nt,et))}return{startState:function(){var Nt=re.inMathMode?function(et,nt){return de(et,nt)}:Re;return{cmdState:[],f:Nt}},copyState:function(Nt){return{cmdState:Nt.cmdState.slice(),f:Nt.f}},token:function(Nt,et){return et.f(Nt,et)},blankLine:function(Nt){Nt.f=Re,Nt.cmdState.length=0},lineComment:"%"}}),At.defineMIME("text/x-stex","stex"),At.defineMIME("text/x-latex","stex")})},15525:function(On,Cn,yt){(function(At){At(yt(89780))})(function(At){"use strict";var zt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};At.defineMode("xml",function(Ae,Ut){var ne=Ae.indentUnit,Ft={},De=Ut.htmlMode?zt:re;for(var Pe in De)Ft[Pe]=De[Pe];for(var Pe in Ut)Ft[Pe]=Ut[Pe];var oe,Re;function de(Yt,Ge){function ce(Ke){return Ge.tokenize=Ke,Ke(Yt,Ge)}var $e=Yt.next();if($e=="<")return Yt.eat("!")?Yt.eat("[")?Yt.match("CDATA[")?ce(et("atom","]]>")):null:Yt.match("--")?ce(et("comment","-->")):Yt.match("DOCTYPE",!0,!0)?(Yt.eatWhile(/[\w\._\-]/),ce(nt(1))):null:Yt.eat("?")?(Yt.eatWhile(/[\w\._\-]/),Ge.tokenize=et("meta","?>"),"meta"):(oe=Yt.eat("/")?"closeTag":"openTag",Ge.tokenize=be,"tag bracket");if($e=="&"){var Ue;return Yt.eat("#")?Yt.eat("x")?Ue=Yt.eatWhile(/[a-fA-F\d]/)&&Yt.eat(";"):Ue=Yt.eatWhile(/[\d]/)&&Yt.eat(";"):Ue=Yt.eatWhile(/[\w\.\-:]/)&&Yt.eat(";"),Ue?"atom":"error"}else return Yt.eatWhile(/[^&<]/),null}de.isInText=!0;function be(Yt,Ge){var ce=Yt.next();if(ce==">"||ce=="/"&&Yt.eat(">"))return Ge.tokenize=de,oe=ce==">"?"endTag":"selfcloseTag","tag bracket";if(ce=="=")return oe="equals",null;if(ce=="<"){Ge.tokenize=de,Ge.state=mt,Ge.tagName=Ge.tagStart=null;var $e=Ge.tokenize(Yt,Ge);return $e?$e+" tag error":"tag error"}else return/[\'\"]/.test(ce)?(Ge.tokenize=Nt(ce),Ge.stringStartCol=Yt.column(),Ge.tokenize(Yt,Ge)):(Yt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Nt(Yt){var Ge=function(ce,$e){for(;!ce.eol();)if(ce.next()==Yt){$e.tokenize=be;break}return"string"};return Ge.isInAttribute=!0,Ge}function et(Yt,Ge){return function(ce,$e){for(;!ce.eol();){if(ce.match(Ge)){$e.tokenize=de;break}ce.next()}return Yt}}function nt(Yt){return function(Ge,ce){for(var $e;($e=Ge.next())!=null;){if($e=="<")return ce.tokenize=nt(Yt+1),ce.tokenize(Ge,ce);if($e==">")if(Yt==1){ce.tokenize=de;break}else return ce.tokenize=nt(Yt-1),ce.tokenize(Ge,ce)}return"meta"}}function ht(Yt,Ge,ce){this.prev=Yt.context,this.tagName=Ge,this.indent=Yt.indented,this.startOfLine=ce,(Ft.doNotIndent.hasOwnProperty(Ge)||Yt.context&&Yt.context.noIndent)&&(this.noIndent=!0)}function st(Yt){Yt.context&&(Yt.context=Yt.context.prev)}function gt(Yt,Ge){for(var ce;;){if(!Yt.context||(ce=Yt.context.tagName,!Ft.contextGrabbers.hasOwnProperty(ce)||!Ft.contextGrabbers[ce].hasOwnProperty(Ge)))return;st(Yt)}}function mt(Yt,Ge,ce){return Yt=="openTag"?(ce.tagStart=Ge.column(),Pt):Yt=="closeTag"?kt:mt}function Pt(Yt,Ge,ce){return Yt=="word"?(ce.tagName=Ge.current(),Re="tag",jt):Ft.allowMissingTagName&&Yt=="endTag"?(Re="tag bracket",jt(Yt,Ge,ce)):(Re="error",Pt)}function kt(Yt,Ge,ce){if(Yt=="word"){var $e=Ge.current();return ce.context&&ce.context.tagName!=$e&&Ft.implicitlyClosed.hasOwnProperty(ce.context.tagName)&&st(ce),ce.context&&ce.context.tagName==$e||Ft.matchClosing===!1?(Re="tag",wt):(Re="tag error",Ot)}else return Ft.allowMissingTagName&&Yt=="endTag"?(Re="tag bracket",wt(Yt,Ge,ce)):(Re="error",Ot)}function wt(Yt,Ge,ce){return Yt!="endTag"?(Re="error",wt):(st(ce),mt)}function Ot(Yt,Ge,ce){return Re="error",wt(Yt,Ge,ce)}function jt(Yt,Ge,ce){if(Yt=="word")return Re="attribute",Ht;if(Yt=="endTag"||Yt=="selfcloseTag"){var $e=ce.tagName,Ue=ce.tagStart;return ce.tagName=ce.tagStart=null,Yt=="selfcloseTag"||Ft.autoSelfClosers.hasOwnProperty($e)?gt(ce,$e):(gt(ce,$e),ce.context=new ht(ce,$e,Ue==ce.indented)),mt}return Re="error",jt}function Ht(Yt,Ge,ce){return Yt=="equals"?$t:(Ft.allowMissing||(Re="error"),jt(Yt,Ge,ce))}function $t(Yt,Ge,ce){return Yt=="string"?ye:Yt=="word"&&Ft.allowUnquoted?(Re="string",jt):(Re="error",jt(Yt,Ge,ce))}function ye(Yt,Ge,ce){return Yt=="string"?ye:jt(Yt,Ge,ce)}return{startState:function(Yt){var Ge={tokenize:de,state:mt,indented:Yt||0,tagName:null,tagStart:null,context:null};return Yt!=null&&(Ge.baseIndent=Yt),Ge},token:function(Yt,Ge){if(!Ge.tagName&&Yt.sol()&&(Ge.indented=Yt.indentation()),Yt.eatSpace())return null;oe=null;var ce=Ge.tokenize(Yt,Ge);return(ce||oe)&&ce!="comment"&&(Re=null,Ge.state=Ge.state(oe||ce,Yt,Ge),Re&&(ce=Re=="error"?ce+" error":Re)),ce},indent:function(Yt,Ge,ce){var $e=Yt.context;if(Yt.tokenize.isInAttribute)return Yt.tagStart==Yt.indented?Yt.stringStartCol+1:Yt.indented+ne;if($e&&$e.noIndent)return At.Pass;if(Yt.tokenize!=be&&Yt.tokenize!=de)return ce?ce.match(/^(\s*)/)[0].length:0;if(Yt.tagName)return Ft.multilineTagIndentPastTag!==!1?Yt.tagStart+Yt.tagName.length+2:Yt.tagStart+ne*(Ft.multilineTagIndentFactor||1);if(Ft.alignCDATA&&/<!\[CDATA\[/.test(Ge))return 0;var Ue=Ge&&/^<(\/)?([\w_:\.-]*)/.exec(Ge);if(Ue&&Ue[1])for(;$e;)if($e.tagName==Ue[2]){$e=$e.prev;break}else if(Ft.implicitlyClosed.hasOwnProperty($e.tagName))$e=$e.prev;else break;else if(Ue)for(;$e;){var Ke=Ft.contextGrabbers[$e.tagName];if(Ke&&Ke.hasOwnProperty(Ue[2]))$e=$e.prev;else break}for(;$e&&$e.prev&&!$e.startOfLine;)$e=$e.prev;return $e?$e.indent+ne:Yt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ft.htmlMode?"html":"xml",helperType:Ft.htmlMode?"html":"xml",skipAttribute:function(Yt){Yt.state==$t&&(Yt.state=jt)},xmlCurrentTag:function(Yt){return Yt.tagName?{name:Yt.tagName,close:Yt.type=="closeTag"}:null},xmlCurrentContext:function(Yt){for(var Ge=[],ce=Yt.context;ce;ce=ce.prev)ce.tagName&&Ge.push(ce.tagName);return Ge.reverse()}}}),At.defineMIME("text/xml","xml"),At.defineMIME("application/xml","xml"),At.mimeModes.hasOwnProperty("text/html")||At.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(On,Cn,yt){"use strict";yt.d(Cn,{$u:function(){return Pe},BD:function(){return te},E9:function(){return De},FF:function(){return eo},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return kt},NB:function(){return xe},S0:function(){return pe},UL:function(){return oe},Vk:function(){return st},Vm:function(){return se},YI:function(){return Xn},ZA:function(){return re},Zt:function(){return Re},al:function(){return St},bn:function(){return Bt},bx:function(){return bt},g2:function(){return oi},h1:function(){return $t},hD:function(){return hi},l4:function(){return ne},rU:function(){return we},s_:function(){return xt},uz:function(){return ee},z6:function(){return de}}),On=yt.hmd(On),function(){var Lt;function li(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function vi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:li(a)}}function Lr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var hr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},qi;if(typeof Object.setPrototypeOf=="function")qi=Object.setPrototypeOf;else{var Zr;t:{var Gr={a:!0},Ln={};try{Ln.__proto__=Gr,Zr=Ln.a;break t}catch(a){}Zr=!1}qi=Zr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var fn=qi;function Ze(a,y){if(a.prototype=hr(y.prototype),a.prototype.constructor=a,fn)fn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var fe=typeof yt.g!="undefined"&&yt.g!=null?yt.g:self,Sn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},In=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Fe(a,y){if(y){var x=fe;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&In(x,a,{writable:!0,value:y})}}Fe("Object.assign",function(a){return a||Sn}),Fe("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var ue=typeof globalThis=="object"&&globalThis||typeof yt.g=="object"&&yt.g.global===yt.g&&yt.g||typeof self=="object"&&self.self===self&&self||{};ue.requestAnimationFrame===void 0&&(ue.setImmediate===void 0?ue.requestAnimationFrame=function(a){ue.setTimeout(a,0)}:ue.requestAnimationFrame=ue.setImmediate);function pn(){}function Un(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&ue.clearTimeout(x),x=Oi(function(){x=-1,a.apply(b,E)},y)}}function Oi(a,y){return ue.setTimeout(a,y)}function Pn(a){return ue.document.createElement(a)}function Ce(a){throw Error(a)}function Rn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ce(a)}function pi(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Ce(x+" is not in the range "+y+": "+a)}function Bi(a){ue.console&&ue.console.log(a)}function je(a){return typeof a=="object"&&a!==null}function yn(a){return Array.isArray(a)||ue.NodeList&&a instanceof ue.NodeList||ue.HTMLCollection&&a instanceof ue.HTMLCollection}function He(a){return Array.prototype.slice.call(a)}function an(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ce("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function gn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ce("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function sn(){var a=nr.pop();return a===void 0?[]:a}function bn(a){a.length=0,nr.push(a)}function Fn(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(je(a)&&a.constructor)return Fn(a.constructor);return typeof a}function Wn(a){var y=a;return je(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 qn(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 Bn(a,y,x){Object.defineProperty(zn.prototype,a,{get:y,set:x})}function ai(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Wi=ue.navigator!==void 0&&0<ue.navigator.userAgent.indexOf("Trident/7"),Mr=ue.navigator!==void 0&&ue.navigator.platform!==void 0&&ue.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,nr=[];Object.freeze([]),pn.className="Util",pn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",pn.adym="gojs.net",pn.vfo="28e645fdb266",pn.className="Util";function Oe(a,y,x){Or(this),this.j=a,this.xa=y,this.o=x}Oe.prototype.toString=function(){return"EnumValue."+this.xa};function xi(a,y){return y==null||y===""?null:a[y]}fe.Object.defineProperties(Oe.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Oe.className="EnumValue";function Vi(){this.ew=[]}Vi.prototype.toString=function(){return this.ew.join("")},Vi.prototype.add=function(a){a!==""&&this.ew.push(a)},Vi.className="StringBuilder";function Ti(){}Ti.className="PropertyCollection";var Sr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ue.console&&ue.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function yr(){}yr.prototype.reset=function(){},yr.prototype.next=function(){return!1},yr.prototype.Ad=function(){return!1},yr.prototype.first=function(){return null},yr.prototype.any=function(){return!1},yr.prototype.all=function(){return!0},yr.prototype.each=function(){return this},yr.prototype.map=function(){return this},yr.prototype.filter=function(){return this},yr.prototype.de=function(){},yr.prototype.toString=function(){return"EmptyIterator"},fe.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset;var Dr=null;yr.className="EmptyIterator",Dr=new yr;function ir(a){this.key=-1,this.value=a}ir.prototype.reset=function(){this.key=-1},ir.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ir.prototype.Ad=function(){return this.next()},ir.prototype.first=function(){return this.key=0,this.value},ir.prototype.any=function(a){return this.key=-1,a(this.value)},ir.prototype.all=function(a){return this.key=-1,a(this.value)},ir.prototype.each=function(a){return this.key=-1,a(this.value),this},ir.prototype.map=function(a){return new ir(a(this.value))},ir.prototype.filter=function(a){return a(this.value)?new ir(this.value):Dr},ir.prototype.de=function(){this.value=null},ir.prototype.toString=function(){return"SingletonIterator("+this.value+")"},fe.Object.defineProperties(ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ir.prototype.first=ir.prototype.first,ir.prototype.hasNext=ir.prototype.Ad,ir.prototype.next=ir.prototype.next,ir.prototype.reset=ir.prototype.reset,ir.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,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},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 b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},zi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},zi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},zi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},zi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new wn,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 b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new wn,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},fe.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,b=x.length,E=0;E<b;E++)a(x[E])&&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 Kr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Kr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Kr.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)},Kr.prototype.Ad=function(){return this.next()},Kr.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},Kr.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},Kr.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},Kr.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},Kr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new wn,a.s=x,a.xb(),a.iterator},Kr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new wn,a.s=x,a.xb(),a.iterator},Kr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Kr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},fe.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset,Kr.className="ListIteratorBackwards";function wn(a){Or(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ce("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=wn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"List()#"+uo(this)},Lt.add=function(a){return a===null?this:(this._isFrozen&&Rn(this,a),this.s.push(a),this.xb(),this)},Lt.push=function(a){this.add(a)},Lt.addAll=function(a){if(a===null)return this;this._isFrozen&&Rn(this);var y=this.s;if(yn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Lt.clear=function(){this._isFrozen&&Rn(this),this.s.length=0,this.xb()},Lt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Lt.has=function(a){return this.contains(a)},Lt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Lt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&pi(a,"0 <= i < length",wn,"elt:i"),y[a]},Lt.get=function(a){return this.M(a)},Lt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&pi(a,"0 <= i < length",wn,"setElt:i"),this._isFrozen&&Rn(this,a),x[a]=y},Lt.set=function(a,y){this.cd(a,y)},Lt.first=function(){var a=this.s;return a.length===0?null:a[0]},Lt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Lt.pop=function(){this._isFrozen&&Rn(this);var a=this.s;return 0<a.length?a.pop():null},wn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},wn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},wn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},wn.prototype.map=function(a){for(var y=new wn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},wn.prototype.filter=function(a){for(var y=new wn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Lt=wn.prototype,Lt.Gb=function(a,y){0>a&&pi(a,">= 0",wn,"insertAt:i"),this._isFrozen&&Rn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&Rn(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)},Lt.delete=function(a){return this.remove(a)},Lt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&pi(a,"0 <= i < length",wn,"removeAt:i"),this._isFrozen&&Rn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Lt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Rn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},wn.prototype.copy=function(){var a=new wn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Lt=wn.prototype,Lt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Lt.Iv=function(){for(var a=new An,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Lt.sort=function(a){return this._isFrozen&&Rn(this),this.s.sort(a),this.xb(),this},Lt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Rn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&pi(y,"0 <= from < length",wn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Lt.reverse=function(){return this._isFrozen&&Rn(this),this.s.reverse(),this.xb(),this},fe.Object.defineProperties(wn.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 Dr;var a=this.Sa;return a!==null?(a.reset(),a):new zi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Dr;var a=this.Hg;return a!==null?(a.reset(),a):new Kr(this)}}}),wn.prototype.reverse=wn.prototype.reverse,wn.prototype.sortRange=wn.prototype.zi,wn.prototype.sort=wn.prototype.sort,wn.prototype.toSet=wn.prototype.Iv,wn.prototype.toArray=wn.prototype.Fa,wn.prototype.removeRange=wn.prototype.removeRange,wn.prototype.removeAt=wn.prototype.mb,wn.prototype.delete=wn.prototype.delete,wn.prototype.remove=wn.prototype.remove,wn.prototype.insertAt=wn.prototype.Gb,wn.prototype.pop=wn.prototype.pop,wn.prototype.last=wn.prototype.jc,wn.prototype.first=wn.prototype.first,wn.prototype.set=wn.prototype.set,wn.prototype.setElt=wn.prototype.cd,wn.prototype.get=wn.prototype.get,wn.prototype.elt=wn.prototype.M,wn.prototype.indexOf=wn.prototype.indexOf,wn.prototype.has=wn.prototype.has,wn.prototype.contains=wn.prototype.contains,wn.prototype.clear=wn.prototype.clear,wn.prototype.addAll=wn.prototype.addAll,wn.prototype.push=wn.prototype.push,wn.prototype.add=wn.prototype.add,wn.prototype.thaw=wn.prototype.ka,wn.prototype.freeze=wn.prototype.freeze,wn.className="List";function To(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}To.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},To.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)},To.prototype.Ad=function(){return this.next()},To.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},To.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},To.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},To.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},To.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new wn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},To.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new wn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},To.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},To.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},fe.Object.defineProperties(To.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),To.prototype.first=To.prototype.first,To.prototype.hasNext=To.prototype.Ad,To.prototype.next=To.prototype.next,To.prototype.reset=To.prototype.reset,To.className="SetIterator";function An(a){Or(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ce("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=An.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Set()#"+uo(this)},Lt.add=function(a){if(a===null)return this;this._isFrozen&&Rn(this,a);var y=a;return je(a)&&(y=Qo(a)),this.Tb[y]===void 0&&(this.Sb++,a=new io(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},Lt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Rn(this),yn(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},Lt.contains=function(a){if(a===null)return!1;var y=a;return je(a)&&(y=uo(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Lt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Lt.first=function(){var a=this.ea;return a===null?null:a.value},An.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},An.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},An.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},An.prototype.map=function(a){for(var y=new An,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},An.prototype.filter=function(a){for(var y=new An,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Lt=An.prototype,Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&Rn(this,a);var y=a;if(je(a)&&(y=uo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Lt.delete=function(a){return this.remove(a)},Lt.hp=function(a){if(a===null)return this;if(this._isFrozen&&Rn(this),yn(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},Lt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Rn(this);var y=new An;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Lt.clear=function(){this._isFrozen&&Rn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},An.prototype.copy=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},An.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},An.prototype.Hv=function(){var a=new wn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Or(a){a.__gohashid=Fa++}function Qo(a){var y=a.__gohashid;return y===void 0&&(y=Fa++,a.__gohashid=y),y}function uo(a){return a.__gohashid}fe.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Dr;var a=this.Sa;return a!==null?(a.reset(),a):new To(this)}}}),An.prototype.toList=An.prototype.Hv,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.retainAll=An.prototype.pA,An.prototype.removeAll=An.prototype.hp,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.first=An.prototype.first,An.prototype.containsAny=An.prototype.Ty,An.prototype.containsAll=An.prototype.Sy,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.addAll=An.prototype.addAll,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze;var Fa=1;An.className="Set",An.uniqueHash=Or,An.hashIdUnique=Qo,An.hashId=uo;function Vo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Vo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Vo.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)},Vo.prototype.Ad=function(){return this.next()},Vo.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},Vo.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},Vo.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},Vo.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},Vo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new wn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Vo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new wn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Vo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Vo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},fe.Object.defineProperties(Vo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Vo.prototype.first=Vo.prototype.first,Vo.prototype.hasNext=Vo.prototype.Ad,Vo.prototype.next=Vo.prototype.next,Vo.prototype.reset=Vo.prototype.reset,Vo.className="MapKeySetIterator";function dr(a){An.call(this),Or(this),this._isFrozen=!0,this.ma=a}Ze(dr,An),Lt=dr.prototype,Lt.freeze=function(){return this},Lt.ka=function(){return this},Lt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Lt.add=function(){Ce("This Set is read-only: "+this.toString())},Lt.contains=function(a){return this.ma.contains(a)},Lt.has=function(a){return this.contains(a)},Lt.remove=function(){Ce("This Set is read-only: "+this.toString())},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){Ce("This Set is read-only: "+this.toString())},Lt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},dr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},dr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},dr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},dr.prototype.map=function(a){for(var y=new An,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},dr.prototype.filter=function(a){for(var y=new An,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},dr.prototype.copy=function(){return new dr(this.ma)},dr.prototype.Iv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},dr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},dr.prototype.Hv=function(){var a=new wn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},fe.Object.defineProperties(dr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Dr:new Vo(this.ma)}}}),dr.prototype.toList=dr.prototype.Hv,dr.prototype.toArray=dr.prototype.Fa,dr.prototype.toSet=dr.prototype.Iv,dr.prototype.first=dr.prototype.first,dr.prototype.clear=dr.prototype.clear,dr.prototype.delete=dr.prototype.delete,dr.prototype.remove=dr.prototype.remove,dr.prototype.has=dr.prototype.has,dr.prototype.contains=dr.prototype.contains,dr.prototype.add=dr.prototype.add,dr.prototype.thaw=dr.prototype.ka,dr.prototype.freeze=dr.prototype.freeze,dr.className="MapKeySet";function or(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}or.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},or.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)},or.prototype.Ad=function(){return this.next()},or.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},or.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},or.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},or.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},or.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new wn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},or.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new wn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},or.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},or.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},fe.Object.defineProperties(or.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),or.prototype.first=or.prototype.first,or.prototype.hasNext=or.prototype.Ad,or.prototype.next=or.prototype.next,or.prototype.reset=or.prototype.reset,or.className="MapValueSetIterator";function io(a,y){this.key=a,this.value=y,this.ll=this.va=null}io.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},io.className="KeyValuePair";function Co(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Co.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Co.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)},Co.prototype.Ad=function(){return this.next()},Co.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},Co.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},Co.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},Co.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},Co.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new wn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Co.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new wn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Co.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Co.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},fe.Object.defineProperties(Co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Co.prototype.first=Co.prototype.first,Co.prototype.hasNext=Co.prototype.Ad,Co.prototype.next=Co.prototype.next,Co.prototype.reset=Co.prototype.reset,Co.className="MapIterator";function Ci(a){Or(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ce("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=Ci.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Map()#"+uo(this)},Lt.add=function(a,y){this._isFrozen&&Rn(this,a);var x=a;je(a)&&(x=Qo(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new io(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Lt.set=function(a,y){return this.add(a,y)},Lt.addAll=function(a){if(a===null)return this;if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Ci)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},Lt.first=function(){return this.ea},Ci.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ci.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ci.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ci.prototype.map=function(a){for(var y=new Ci,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ci.prototype.filter=function(a){for(var y=new Ci,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Lt=Ci.prototype,Lt.contains=function(a){var y=a;return je(a)&&(y=uo(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.I=function(a){var y=a;return je(a)&&(y=uo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Lt.get=function(a){return this.I(a)},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&Rn(this,a);var y=a;if(je(a)&&(y=uo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){this._isFrozen&&Rn(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()},Ci.prototype.copy=function(){var a=new Ci,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Ci.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new io(E.key,E.value),x++}return y},Ci.prototype.Lf=function(){return new dr(this)},fe.Object.defineProperties(Ci.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Dr;var a=this.Sa;return a!==null?(a.reset(),a):new Co(this)}},iteratorKeys:{get:function(){return 0>=this.count?Dr:new Vo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Dr;var a=this.jf;return a!==null?(a.reset(),a):new or(this)}}}),Ci.prototype.toKeySet=Ci.prototype.Lf,Ci.prototype.toArray=Ci.prototype.Fa,Ci.prototype.clear=Ci.prototype.clear,Ci.prototype.delete=Ci.prototype.delete,Ci.prototype.remove=Ci.prototype.remove,Ci.prototype.get=Ci.prototype.get,Ci.prototype.getValue=Ci.prototype.I,Ci.prototype.has=Ci.prototype.has,Ci.prototype.contains=Ci.prototype.contains,Ci.prototype.first=Ci.prototype.first,Ci.prototype.addAll=Ci.prototype.addAll,Ci.prototype.set=Ci.prototype.set,Ci.prototype.add=Ci.prototype.add,Ci.prototype.thaw=Ci.prototype.ka,Ci.prototype.freeze=Ci.prototype.freeze,Ci.className="Map";function Vt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ce("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var qr,da,ao,_o,ca;Vt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.copy=function(){var a=new Vt;return a.x=this.x,a.y=this.y,a},Lt=Vt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this};function fa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Vt(x,E)}return new Vt}function Vr(a){return a.x.toString()+" "+a.y.toString()}Lt.toString=function(){return"Point("+this.x+","+this.y+")"},Lt.D=function(a){return a instanceof Vt?this.x===a.x&&this.y===a.y:!1},Lt.hi=function(a,y){return this.x===a&&this.y===y},Lt.Xa=function(a){return Ne.B(this.x,a.x)&&Ne.B(this.y,a.y)},Lt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Lt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Vt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Lt=Vt.prototype,Lt.scale=function(a,y){return this.x*=a,this.y*=y,this},Lt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Lt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Lt.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},Lt.ab=function(a){return Ar(a.x-this.x,a.y-this.y)},Lt.direction=function(a,y){return Ar(a-this.x,y-this.y)};function Ar(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}Lt.Ry=function(a,y){return Ne.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Lt.fA=function(a,y,x,b){return Ne.qh(a,y,x,b,this.x,this.y,this),this},Lt.gA=function(a,y){return Ne.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Lt.uA=function(a,y,x,b){return Ne.No(this.x,this.y,a,y,x,b,this),this},Lt.vA=function(a,y){return Ne.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Lt.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},Lt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Lt.transform=function(a){return a.Ga(this),this};function Cr(a,y){return y.Cd(a),a}function Do(a,y,x,b,E,z){var tt=E-x,rt=z-b,ot=tt*tt+rt*rt;x-=a,b-=y;var lt=-x*tt-b*rt;return 0>=lt||lt>=ot?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/ot)}function Ui(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function $i(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Vt.alloc=function(){var a=Er.pop();return a===void 0?new Vt:a},Vt.allocAt=function(a,y){var x=Er.pop();return x===void 0?new Vt(a,y):(x.x=a,x.y=y,x)},Vt.free=function(a){Er.push(a)},Vt.prototype.isReal=Vt.prototype.w,Vt.prototype.setSpot=Vt.prototype.yi,Vt.prototype.setRectSpot=Vt.prototype.xi,Vt.prototype.snapToGridPoint=Vt.prototype.vA,Vt.prototype.snapToGrid=Vt.prototype.uA,Vt.prototype.projectOntoLineSegmentPoint=Vt.prototype.gA,Vt.prototype.projectOntoLineSegment=Vt.prototype.fA,Vt.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return Ne.Rl(a,y,x,b,E,z,tt,rt)},Vt.prototype.compareWithLineSegmentPoint=Vt.prototype.Ry,Vt.compareWithLineSegment=function(a,y,x,b,E,z){return Ne.Fl(a,y,x,b,E,z)},Vt.prototype.direction=Vt.prototype.direction,Vt.prototype.directionPoint=Vt.prototype.ab,Vt.prototype.normalize=Vt.prototype.normalize,Vt.prototype.distanceSquared=Vt.prototype.zd,Vt.prototype.distanceSquaredPoint=Vt.prototype.Bf,Vt.prototype.scale=Vt.prototype.scale,Vt.prototype.rotate=Vt.prototype.rotate,Vt.prototype.offset=Vt.prototype.offset,Vt.prototype.subtract=Vt.prototype.re,Vt.prototype.add=Vt.prototype.add,Vt.prototype.equalsApprox=Vt.prototype.Xa,Vt.prototype.equalTo=Vt.prototype.hi,Vt.prototype.equals=Vt.prototype.D,Vt.prototype.set=Vt.prototype.set,Vt.prototype.setTo=Vt.prototype.sg;var Er=[];Vt.className="Point",Vt.parse=fa,Vt.stringify=Vr,Vt.distanceLineSegmentSquared=Do,Vt.distanceSquared=Ui,Vt.direction=$i,Vt.Origin=qr=new Vt(0,0).ja(),Vt.InfiniteTopLeft=da=new Vt(-1/0,-1/0).ja(),Vt.InfiniteBottomRight=ao=new Vt(1/0,1/0).ja(),Vt.SixPoint=_o=new Vt(6,6).ja(),Vt.NoPoint=ca=new Vt(NaN,NaN).ja(),Vt.parse=fa,Vt.stringify=Vr,Vt.distanceLineSegmentSquared=Do,Vt.distanceSquared=Ui,Vt.direction=$i;function ei(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):Ce("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ho,$o,Na,ua,Ia,Ra,ys;ei.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.h=function(a,y){return this.width=a,this.height=y,this},ei.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ei.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.copy=function(){var a=new ei;return a.width=this.width,a.height=this.height,a},Lt=ei.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ds(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new ei(x,E)}return new ei}function _s(a){return a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Size("+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof ei?this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y){return this.width===a&&this.height===y},Lt.Xa=function(a){return Ne.B(this.width,a.width)&&Ne.B(this.height,a.height)},Lt.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},Lt.w=function(){return isFinite(this.width)&&isFinite(this.height)},ei.alloc=function(){var a=Ys.pop();return a===void 0?new ei:a},ei.free=function(a){Ys.push(a)},ei.prototype.isReal=ei.prototype.w,ei.prototype.inflate=ei.prototype.Bc,ei.prototype.equalsApprox=ei.prototype.Xa,ei.prototype.equalTo=ei.prototype.hi,ei.prototype.equals=ei.prototype.D,ei.prototype.set=ei.prototype.set,ei.prototype.setTo=ei.prototype.sg;var Ys=[];ei.className="Size",ei.parse=Ds,ei.stringify=_s,ei.ZeroSize=Ho=new ei(0,0).ja(),ei.OneSize=$o=new ei(1,1).ja(),ei.SixSize=Na=new ei(6,6).ja(),ei.EightSize=ua=new ei(8,8).ja(),ei.TenSize=Ia=new ei(10,10).ja(),ei.InfiniteSize=Ra=new ei(1/0,1/0).ja(),ei.NoSize=ys=new ei(NaN,NaN).ja(),ei.parse=Ds,ei.stringify=_s;function ln(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Vt?(x=a.x,a=a.y,y instanceof Vt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof ei?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ce("Incorrect second argument supplied to Rect constructor "+y)):Ce("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Lt=ln.prototype,Lt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function js(a,y,x){a.width=y,a.height=x}Lt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Lt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.dd=function(a){return this.x=a.x,this.y=a.y,this},Lt.tA=function(a){return this.width=a.width,this.height=a.height,this},ln.prototype.copy=function(){var a=new ln;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Lt=ln.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this};function au(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new ln(x,E,z,tt)}return new ln}function su(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof ln?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Lt.Xa=function(a){return Ne.B(this.x,a.x)&&Ne.B(this.y,a.y)&&Ne.B(this.width,a.width)&&Ne.B(this.height,a.height)};function ko(a,y){return Ne.$(a.x,y.x)&&Ne.$(a.y,y.y)&&Ne.$(a.width,y.width)&&Ne.$(a.height,y.height)}Lt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Lt.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},Lt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.Bc=function(a,y){return ga(this,y,a,y,a)},Lt.Co=function(a){return ga(this,a.top,a.right,a.bottom,a.left)},Lt.Fv=function(a){return ga(this,-a.top,-a.right,-a.bottom,-a.left)},Lt.Hz=function(a,y,x,b){return ga(this,a,y,x,b)};function ga(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Lt.Ex=function(a){return os(this,a.x,a.y,a.width,a.height)},Lt.Uu=function(a,y,x,b){return os(this,a,y,x,b)};function os(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Lt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Lt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function pa(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Lt.Ye=function(a){return Fo(this,a.x,a.y,0,0)},Lt.ed=function(a){return Fo(this,a.x,a.y,a.width,a.height)},Lt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Fo(this,a,y,x,b)};function Fo(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Lt.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 sa(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function bs(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Lt.Mz=function(){return this.width===0&&this.height===0},ln.alloc=function(){var a=Oo.pop();return a===void 0?new ln:a},ln.allocAt=function(a,y,x,b){var E=Oo.pop();return E===void 0?new ln(a,y,x,b):E.h(a,y,x,b)},ln.free=function(a){Oo.push(a)},fe.Object.defineProperties(ln.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Vt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ei(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Vt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ln.prototype.isEmpty=ln.prototype.Mz,ln.prototype.isReal=ln.prototype.w,ln.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return Ne.Fx(a,y,x,b,E,z,tt,rt)},ln.prototype.setSpot=ln.prototype.yi,ln.prototype.union=ln.prototype.Kv,ln.prototype.unionRect=ln.prototype.ed,ln.prototype.unionPoint=ln.prototype.Ye,ln.prototype.intersects=ln.prototype.Vu,ln.prototype.intersectsRect=ln.prototype.Yc,ln.prototype.intersect=ln.prototype.Uu,ln.prototype.intersectRect=ln.prototype.Ex,ln.prototype.grow=ln.prototype.Hz,ln.prototype.subtractMargin=ln.prototype.Fv,ln.prototype.addMargin=ln.prototype.Co,ln.prototype.inflate=ln.prototype.Bc,ln.prototype.offset=ln.prototype.offset,ln.prototype.contains=ln.prototype.contains,ln.prototype.containsRect=ln.prototype.Re,ln.prototype.containsPoint=ln.prototype.ca,ln.prototype.equalsApprox=ln.prototype.Xa,ln.prototype.equalTo=ln.prototype.hi,ln.prototype.equals=ln.prototype.D,ln.prototype.setSize=ln.prototype.tA,ln.prototype.setPoint=ln.prototype.dd,ln.prototype.set=ln.prototype.set,ln.prototype.setTo=ln.prototype.sg;var no=null,Ro=null,Oo=[];ln.className="Rect",ln.parse=au,ln.stringify=su,ln.contains=sa,ln.intersects=bs,ln.ZeroRect=no=new ln(0,0,0,0).ja(),ln.NoRect=Ro=new ln(NaN,NaN,NaN,NaN).ja(),ln.parse=au,ln.stringify=su,ln.contains=sa,ln.intersects=bs;function Zi(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Ce("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Zi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Zi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Zi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Zi.prototype.copy=function(){var a=new Zi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Lt=Zi.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this};function cs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Zi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Zi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Zi(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new Zi(x,E):new Zi(x,E,z,tt)}return new Zi}function Ss(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Lt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Lt.D=function(a){return a instanceof Zi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Lt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Lt.Xa=function(a){return Ne.B(this.top,a.top)&&Ne.B(this.right,a.right)&&Ne.B(this.bottom,a.bottom)&&Ne.B(this.left,a.left)},Lt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Zi.alloc=function(){var a=wu.pop();return a===void 0?new Zi:a},Zi.free=function(a){wu.push(a)},Zi.prototype.isReal=Zi.prototype.w,Zi.prototype.equalsApprox=Zi.prototype.Xa,Zi.prototype.equalTo=Zi.prototype.hi,Zi.prototype.equals=Zi.prototype.D,Zi.prototype.set=Zi.prototype.set,Zi.prototype.setTo=Zi.prototype.sg;var dl=null,lu=null,wu=[];Zi.className="Margin",Zi.parse=cs,Zi.stringify=Ss,Zi.ZeroMargin=dl=new Zi(0,0,0,0).ja(),Zi.TwoMargin=lu=new Zi(2,2,2,2).ja(),Zi.parse=cs,Zi.stringify=Ss;function Fi(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Ya,Es,Jl,uu,hu,ho,Sh,El,Ll,ml,Zu,Pu,vl,Ml,Bh,_h,Oh,gd,Ih,Gu,Dl,Bl,pd,td,Cu,Bo,ha,cl,xs,ws,_a,ls,Ls,Ps,ih,Ql;Fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.copy=function(){var a=new Fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Lt=Fi.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this};function fs(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ya;if(a==="TopLeft")return Es;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Jl;if(a==="TopRight")return uu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return hu;if(a==="Center")return ho;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Sh;if(a==="BottomLeft")return El;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ll;if(a==="BottomRight")return ml;if(a==="TopSide")return Zu;if(a==="LeftSide")return Pu;if(a==="RightSide")return vl;if(a==="BottomSide")return Ml;if(a==="TopBottomSides")return Bh;if(a==="LeftRightSides")return _h;if(a==="TopLeftSides")return Oh;if(a==="TopRightSides")return gd;if(a==="BottomLeftSides")return Ih;if(a==="BottomRightSides")return Gu;if(a==="NotTopSide")return Dl;if(a==="NotLeftSide")return Bl;if(a==="NotRightSide")return pd;if(a==="NotBottomSide")return td;if(a==="AllSides")return Cu;if(a==="Default")return Bo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new Fi(x,E,z,tt)}return new Fi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Lt.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(Ya)?"None":this.D(Es)?"TopLeft":this.D(Jl)?"Top":this.D(uu)?"TopRight":this.D(hu)?"Left":this.D(ho)?"Center":this.D(Sh)?"Right":this.D(El)?"BottomLeft":this.D(Ll)?"Bottom":this.D(ml)?"BottomRight":this.D(Zu)?"TopSide":this.D(Pu)?"LeftSide":this.D(vl)?"RightSide":this.D(Ml)?"BottomSide":this.D(Bh)?"TopBottomSides":this.D(_h)?"LeftRightSides":this.D(Oh)?"TopLeftSides":this.D(gd)?"TopRightSides":this.D(Ih)?"BottomLeftSides":this.D(Gu)?"BottomRightSides":this.D(Dl)?"NotTopSide":this.D(Bl)?"NotLeftSide":this.D(pd)?"NotRightSide":this.D(td)?"NotBottomSide":this.D(Cu)?"AllSides":this.D(Bo)?"Default":"None"},Lt.D=function(a){return a instanceof Fi?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Lt.gv=function(){return new Fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Lt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ha))a=Pu;else if(a.D(cl))a=vl;else if(a.D(xs))a=Zu;else if(a.D(ws))a=Ml;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Lt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Lt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Lt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Lt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Lt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Fi.alloc=function(){var a=ed.pop();return a===void 0?new Fi:a},Fi.free=function(a){ed.push(a)},Fi.prototype.isDefault=Fi.prototype.Xb,Fi.prototype.isNone=Fi.prototype.ys,Fi.prototype.isSide=Fi.prototype.$c,Fi.prototype.isNoSpot=Fi.prototype.Mc,Fi.prototype.isSpot=Fi.prototype.sb,Fi.prototype.includesSide=Fi.prototype.Hf,Fi.prototype.opposite=Fi.prototype.gv,Fi.prototype.equals=Fi.prototype.D,Fi.prototype.set=Fi.prototype.set,Fi.prototype.setTo=Fi.prototype.sg;var ed=[];Fi.className="Spot",Fi.parse=ic,Fi.stringify=md,Fi.None=Ya=fs(new Fi(0,0,0,0),0).ja(),Fi.Default=Bo=fs(new Fi(0,0,-1,0),-1).ja(),Fi.TopLeft=Es=new Fi(0,0,0,0).ja(),Fi.TopCenter=Jl=new Fi(.5,0,0,0).ja(),Fi.TopRight=uu=new Fi(1,0,0,0).ja(),Fi.LeftCenter=hu=new Fi(0,.5,0,0).ja(),Fi.Center=ho=new Fi(.5,.5,0,0).ja(),Fi.RightCenter=Sh=new Fi(1,.5,0,0).ja(),Fi.BottomLeft=El=new Fi(0,1,0,0).ja(),Fi.BottomCenter=Ll=new Fi(.5,1,0,0).ja(),Fi.BottomRight=ml=new Fi(1,1,0,0).ja(),Fi.MiddleTop=_a=Jl,Fi.MiddleLeft=ls=hu,Fi.MiddleRight=Ls=Sh,Fi.MiddleBottom=Ps=Ll,Fi.Top=xs=Jl,Fi.Left=ha=hu,Fi.Right=cl=Sh,Fi.Bottom=ws=Ll,Fi.TopSide=Zu=fs(new Fi(0,0,1,1),1).ja(),Fi.LeftSide=Pu=fs(new Fi(0,0,1,2),1).ja(),Fi.RightSide=vl=fs(new Fi(0,0,1,4),1).ja(),Fi.BottomSide=Ml=fs(new Fi(0,0,1,8),1).ja(),Fi.TopBottomSides=Bh=fs(new Fi(0,0,1,9),1).ja(),Fi.LeftRightSides=_h=fs(new Fi(0,0,1,6),1).ja(),Fi.TopLeftSides=Oh=fs(new Fi(0,0,1,3),1).ja(),Fi.TopRightSides=gd=fs(new Fi(0,0,1,5),1).ja(),Fi.BottomLeftSides=Ih=fs(new Fi(0,0,1,10),1).ja(),Fi.BottomRightSides=Gu=fs(new Fi(0,0,1,12),1).ja(),Fi.NotTopSide=Dl=fs(new Fi(0,0,1,14),1).ja(),Fi.NotLeftSide=Bl=fs(new Fi(0,0,1,13),1).ja(),Fi.NotRightSide=pd=fs(new Fi(0,0,1,11),1).ja(),Fi.NotBottomSide=td=fs(new Fi(0,0,1,7),1).ja(),Fi.AllSides=Cu=fs(new Fi(0,0,1,15),1).ja(),ih=new Fi(.156,.156).ja(),Ql=new Fi(.844,.844).ja(),Fi.parse=ic,Fi.stringify=md;function kr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}kr.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},kr.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},kr.prototype.copy=function(){var a=new kr;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},kr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},kr.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},kr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},kr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},kr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},kr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},kr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},kr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Lt=kr.prototype,Lt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Lt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Lt.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)},Lt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,lt=this.dx,ut=this.dy,ft=y*z+x*rt+lt,vt=y*tt+x*ot+ut,Ct=b*z+x*rt+lt,Et=b*tt+x*ot+ut;return x=y*z+E*rt+lt,y=y*tt+E*ot+ut,z=b*z+E*rt+lt,b=b*tt+E*ot+ut,E=Math.min(ft,Ct),ft=Math.max(ft,Ct),Ct=Math.min(vt,Et),vt=Math.max(vt,Et),E=Math.min(E,x),ft=Math.max(ft,x),Ct=Math.min(Ct,y),vt=Math.max(vt,y),E=Math.min(E,z),ft=Math.max(ft,z),Ct=Math.min(Ct,b),vt=Math.max(vt,b),a.h(E,Ct,ft-E,vt-Ct),a},kr.alloc=function(){var a=nd.pop();return a===void 0?new kr:a},kr.free=function(a){nd.push(a)},kr.prototype.transformRect=kr.prototype.pp,kr.prototype.transformPoint=kr.prototype.Ga,kr.prototype.scale=kr.prototype.scale,kr.prototype.translate=kr.prototype.translate,kr.prototype.rotate=kr.prototype.rotate,kr.prototype.invert=kr.prototype.Vj,kr.prototype.multiplyInverted=kr.prototype.bv,kr.prototype.multiply=kr.prototype.multiply,kr.prototype.reset=kr.prototype.reset,kr.prototype.isIdentity=kr.prototype.ws,kr.prototype.equals=kr.prototype.D,kr.prototype.setTransform=kr.prototype.setTransform,kr.prototype.set=kr.prototype.set;var nd=[];kr.className="Transform",kr.xF="54a702f3e53909c447824c6706603faf4c";var Ne={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ne.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ne.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,tt){if(0>=E&&(E=1e-6),a<x)var rt=a,ot=x;else rt=x,ot=a;if(y<b)var lt=y,ut=b;else lt=b,ut=y;if(a===x)return lt<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=ot&&y-E<=tt&&tt<=y+E;if(ot+=E,rt-=E,rt<=z&&z<=ot&&(ut+=E,lt-=E,lt<=tt&&tt<=ut))if(ot-rt>ut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft){if(Ne.Yb(a,y,tt,rt,ft,x,b)&&Ne.Yb(a,y,tt,rt,ft,E,z))return Ne.Yb(a,y,tt,rt,ft,lt,ut);var vt=(a+x)/2,Ct=(y+b)/2,Et=(x+E)/2,Dt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(vt+Et)/2,x=(Ct+Dt)/2,Et=(Et+E)/2,Dt=(Dt+z)/2;var Qt=(b+Et)/2,Wt=(x+Dt)/2;return Ne.cs(a,y,vt,Ct,b,x,Qt,Wt,ot,lt,ut,ft)||Ne.cs(Qt,Wt,Et,Dt,E,z,tt,rt,ot,lt,ut,ft)},ax:function(a,y,x,b,E,z,tt,rt,ot){var lt=(x+E)/2,ut=(b+z)/2;return ot.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,b,E,z,tt,rt){var ot=(x+E)/2,lt=(b+z)/2;return $i(((a+x)/2+ot)/2,((y+b)/2+lt)/2,(ot+(E+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ne.Yb(a,y,tt,rt,ot,x,b)&&Ne.Yb(a,y,tt,rt,ot,E,z))Fo(lt,a,y,0,0),Fo(lt,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+Ct)/2,vt=(vt+E)/2,Ct=(Ct+z)/2;var Et=(b+vt)/2,Dt=(x+Ct)/2;Ne.Dl(a,y,ut,ft,b,x,Et,Dt,ot,lt),Ne.Dl(Et,Dt,vt,Ct,E,z,tt,rt,ot,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ne.Yb(a,y,tt,rt,ot,x,b)&&Ne.Yb(a,y,tt,rt,ot,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+Ct)/2,vt=(vt+E)/2,Ct=(Ct+z)/2;var Et=(b+vt)/2,Dt=(x+Ct)/2;Ne.Qe(a,y,ut,ft,b,x,Et,Dt,ot,lt),Ne.Qe(Et,Dt,vt,Ct,E,z,tt,rt,ot,lt)}return lt},jv:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ne.Yb(a,y,E,z,lt,x,b))return Ne.Yb(a,y,E,z,lt,rt,ot);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var vt=(ut+x)/2,Ct=(ft+b)/2;return Ne.jv(a,y,ut,ft,vt,Ct,tt,rt,ot,lt)||Ne.jv(vt,Ct,x,b,E,z,tt,rt,ot,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(Ne.Yb(a,y,E,z,tt,x,b))Fo(rt,a,y,0,0),Fo(rt,E,z,0,0);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;Ne.iv(a,y,ot,lt,ut,ft,tt,rt),Ne.iv(ut,ft,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(Ne.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;Ne.ep(a,y,ot,lt,ut,ft,tt,rt),Ne.ep(ut,ft,x,b,E,z,tt,rt)}return rt},Eo:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft,vt,Ct){if(Ne.Yb(a,y,tt,rt,vt,x,b)&&Ne.Yb(a,y,tt,rt,vt,E,z))return!Ne.Rl(a,y,tt,rt,ot,lt,ut,ft)||(vt=(a-tt)*(lt-ft)-(y-rt)*(ot-ut),vt===0)?!1:(Ct.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-lt*ut))/vt,((a*rt-y*tt)*(lt-ft)-(y-rt)*(ot*ft-lt*ut))/vt),!0);var Et=(a+x)/2,Dt=(y+b)/2,Qt=(x+E)/2,Wt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Et+Qt)/2,x=(Dt+Wt)/2,Qt=(Qt+E)/2,Wt=(Wt+z)/2;var ae=(b+Qt)/2,le=(x+Wt)/2,ge=1/0,Ee=!1,Xe=0,ci=0;return Ne.Eo(a,y,Et,Dt,b,x,ae,le,ot,lt,ut,ft,vt,Ct)&&(a=(Ct.x-ot)*(Ct.x-ot)+(Ct.y-lt)*(Ct.y-lt),a<ge&&(ge=a,Ee=!0,Xe=Ct.x,ci=Ct.y)),Ne.Eo(ae,le,Qt,Wt,E,z,tt,rt,ot,lt,ut,ft,vt,Ct)&&(Ct.x-ot)*(Ct.x-ot)+(Ct.y-lt)*(Ct.y-lt)<ge&&(Ee=!0,Xe=Ct.x,ci=Ct.y),Ee&&(Ct.x=Xe,Ct.y=ci),Ee},Fo:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft,vt){var Ct=0;if(Ne.Yb(a,y,tt,rt,vt,x,b)&&Ne.Yb(a,y,tt,rt,vt,E,z)){if(vt=(a-tt)*(lt-ft)-(y-rt)*(ot-ut),vt===0)return Ct;var Et=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-lt*ut))/vt,Dt=((a*rt-y*tt)*(lt-ft)-(y-rt)*(ot*ft-lt*ut))/vt;if(Et>=ut)return Ct;if((ot>ut?ot-ut:ut-ot)<(lt>ft?lt-ft:ft-lt)){if(y<rt?(ot=y,a=rt):(ot=rt,a=y),Dt<ot||Dt>a)return Ct}else if(a<tt?(ot=a,a=tt):ot=tt,Et<ot||Et>a)return Ct;0<vt?Ct++:0>vt&&Ct--}else{Et=(a+x)/2,Dt=(y+b)/2;var Qt=(x+E)/2,Wt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Et+Qt)/2,x=(Dt+Wt)/2,Qt=(Qt+E)/2,Wt=(Wt+z)/2;var ae=(b+Qt)/2,le=(x+Wt)/2;Ct+=Ne.Fo(a,y,Et,Dt,b,x,ae,le,ot,lt,ut,ft,vt),Ct+=Ne.Fo(ae,le,Qt,Wt,E,z,tt,rt,ot,lt,ut,ft,vt)}return Ct},qh:function(a,y,x,b,E,z,tt){return Ne.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):Ne.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(tt.h(b,y),!1):E>a?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,rt,ot){return Ne.B(a,x)&&Ne.B(y,b)?(ot.h(a,y),!1):Ne.$(E,tt)?Ne.$(a,x)?(Ne.qh(a,y,x,b,E,z,ot),!1):Ne.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ot):(rt=(rt-z)/(tt-E),Ne.$(a,x)?(x=rt*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(ot.h(a,E),!1):x>y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(b-y)/(x-a),Ne.$(rt,tt)?(Ne.qh(a,y,x,b,E,z,ot),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),Ne.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(ot.h(b,y),!1):E>a?(ot.h(a,y),!1):(ot.h(E,y),!0)):Ne.qh(a,y,x,b,E,tt*(E-a)+y,ot))))},MA:function(a,y,x,b,E){return Ne.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,rt,ot,lt){function ut(Qt,Wt){var ae=(Qt-a)*(Qt-a)+(Wt-y)*(Wt-y);ae<ft&&(ft=ae,ot.h(Qt,Wt))}var ft=1/0;ut(ot.x,ot.y);var vt=0,Ct=0,Et=0,Dt=0;if(E<tt?(vt=E,Ct=tt):(vt=tt,Ct=E),z<rt?(Et=E,Dt=tt):(Et=tt,Dt=E),vt=(Ct-vt)/2+lt,lt=(Dt-Et)/2+lt,E=(E+tt)/2,z=(z+rt)/2,vt===0||lt===0)return ot;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-E)*(x-E)/(vt*vt),0>vt)return ot;vt=Math.sqrt(vt),b=-lt*vt+z,ut(x,lt*vt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(vt*vt)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(vt*vt),vt=rt*rt-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(vt*vt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>vt)return ot;vt=Math.sqrt(vt),lt=(-rt+vt)/(2*b),ut(lt,x*lt-x*a+y),vt=(-rt-vt)/(2*b),ut(vt,x*vt-x*a+y)}return ot},Ff:function(a,y,x,b,E,z,tt,rt,ot){var lt=1e21,ut=a,ft=y;if(Ne.Ve(a,y,a,b,E,z,tt,rt,ot)){var vt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z);vt<lt&&(lt=vt,ut=ot.x,ft=ot.y)}return Ne.Ve(x,y,x,b,E,z,tt,rt,ot)&&(vt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),vt<lt&&(lt=vt,ut=ot.x,ft=ot.y)),Ne.Ve(a,y,x,y,E,z,tt,rt,ot)&&(y=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),y<lt&&(lt=y,ut=ot.x,ft=ot.y)),Ne.Ve(a,b,x,b,E,z,tt,rt,ot)&&(a=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),a<lt&&(lt=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>lt},us:function(a,y,x){return Ne.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,rt){var ot=a+x,lt=y+b;return E===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=E&&E<=ot&&tt<=lt&&z>=y):z===rt?(E<tt?(rt=E,E=tt):rt=tt,y<=z&&z<=lt&&rt<=ot&&E>=a):!!(sa(a,y,x,b,E,z)||sa(a,y,x,b,tt,rt)||Ne.Rl(a,y,ot,y,E,z,tt,rt)||Ne.Rl(ot,y,ot,lt,E,z,tt,rt)||Ne.Rl(ot,lt,a,lt,E,z,tt,rt)||Ne.Rl(a,lt,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=Ne.Fl(a,y,x,b,E,z)*Ne.Fl(a,y,x,b,tt,rt)&&0>=Ne.Fl(E,z,tt,rt,a,y)*Ne.Fl(E,z,tt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var ot=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return ot=lt+rt*Math.min(b,ot),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(lt+y)/2,z.push([rt,lt,x,ot,x,ot,a,y]),z;for(;1e-5<b;)E=lt+rt*Math.min(b,ot),z.push(Ne.Vy(x,lt,E,a,y)),b-=Math.abs(E-lt),lt=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),ot=-rt,lt=tt*tt+ot*ot,ut=lt+tt*tt+ot*rt;return lt=4/3*(Math.sqrt(2*lt*ut)-ut)/(tt*rt-ot*tt),rt=tt-lt*ot,tt=ot+lt*tt,ot=-tt,lt=z+y,z=Math.cos(lt),lt=Math.sin(lt),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-tt*lt,E+rt*lt+tt*z,b+rt*z-ot*lt,E+rt*lt+ot*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var ot=tt===0?a:y,lt=tt===0?x:b;return(tt===0?E:z)&&(lt=-lt),tt=rt,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),Ne.az(ot,tt===0?a:y,lt,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var tt=y*b,rt=-z+tt,ot=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var lt=0;9999999999>lt&&(y=.5*(rt+ot),!(y===rt||y===ot));++lt){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)ot=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Ti,um:new Ti,Mf:new Ti,Nf:0,vm:100};Ne.za=Ne.AA;function ni(a){Or(this),this.l=2,a===void 0&&(a=ni.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ni.o?this.ee=new wn:(ni.V===null&&(ni.V=new wn().freeze()),this.ee=ni.V),this.aq=this.ee.Ja,this.Ip=new ln().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Es,this.gg=ml,this.Rk=this.Sk=NaN,this.Uf=Hn}ni.prototype.copy=function(){var a=new ni;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===ni.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},ni.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ni.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ni.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},ni.prototype.ka=function(){if(Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ni.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},ni.prototype.Xa=function(a){if(!(a instanceof ni))return!1;if(this.type!==a.type)return this.type===ni.j&&a.type===ni.o?Ic(this,a):a.type===ni.j&&this.type===ni.o?Ic(a,this):!1;if(this.type===ni.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ne.B(this.startX,a.startX)&&Ne.B(this.startY,a.startY)&&Ne.B(this.endX,a.endX)&&Ne.B(this.endY,a.endY)};function Ic(a,y){return a.type!==ni.j||y.type!==ni.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ne.B(a.startX,y.startX)&&Ne.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ta&&Ne.B(a.endX,y.endX)&&Ne.B(a.endY,y.endY))))}ni.ia=function(a){return a.toString()},ni.prototype.qb=function(a){a.classType===ni&&(this.type=a)},ni.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ni.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 ni.u:var y=new ln(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 ni.F:if(y=new ln(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 ni.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},ni.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},ni.parse=function(a,y){function x(){return Dt>=ge-1?!0:lt[Dt+1].match(Ee)!==null}function b(){return Dt++,lt[Dt]}function E(wr){var cr=parseFloat(b()),No=parseFloat(b());Qt===Qt.toLowerCase()&&(cr=le.x+cr,No=le.y+No),wr.h(cr,No)}function z(){return E(le),le}function tt(){return E(ae),ae}function rt(){var wr=Wt.toLowerCase();return wr!=="c"&&wr!=="s"&&wr!=="q"&&wr!=="t"?le:new Vt(2*le.x-ae.x,2*le.y-ae.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a<lt.length;a++){var ut=lt[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=sn();for(var ft="",vt=!1,Ct=0;Ct<ut.length;Ct++){var Et=ut[Ct];Et!=="."||vt?Et==="."?(ot.push(ft),ft="."):ft+=Et:(vt=!0,ft+=Et)}for(ot.push(ft),lt.splice(a,1),ut=0;ut<ot.length;ut++)lt.splice(a+ut,0,ot[ut]);a+=ot.length-1,bn(ot)}}var Dt=-1,Qt="",Wt="";ot=new Vt(0,0);var ae=new Vt(0,0),le=new Vt(0,0),ge=lt.length;a=FS(null),vt=ft=ut=!1,Ct=!0,Et=null;for(var Ee=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Dt>=ge-1);)if(Wt=Qt,Qt=b(),Qt!=="")switch(Qt.toUpperCase()){case"X":Ct=!0,ft=ut=!1;break;case"M":for(Et=z(),a.mc===null||Ct===!0?(Bg(a,Et.x,Et.y,ut,!ft,vt),Ct=!1):a.moveTo(Et.x,Et.y),ot.assign(le);!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"L":for(;!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"H":for(;!x();)le=new Vt((Qt===Qt.toLowerCase()?le.x:0)+parseFloat(b()),le.y),a.lineTo(le.x,le.y);break;case"V":for(;!x();)le=new Vt(le.x,(Qt===Qt.toLowerCase()?le.y:0)+parseFloat(b())),a.lineTo(le.x,le.y);break;case"C":for(;!x();){Et=new Vt,E(Et);var Xe=tt(),ci=z();yc(a,Et.x,Et.y,Xe.x,Xe.y,ci.x,ci.y)}break;case"S":for(;!x();)Et=rt(),Xe=tt(),ci=z(),yc(a,Et.x,Et.y,Xe.x,Xe.y,ci.x,ci.y);break;case"Q":for(;!x();)Et=tt(),Xe=z(),Zm(a,Et.x,Et.y,Xe.x,Xe.y);break;case"T":for(;!x();)ae=Et=rt(),Xe=z(),Zm(a,Et.x,Et.y,Xe.x,Xe.y);break;case"B":for(;!x();){Et=parseFloat(b()),Xe=parseFloat(b()),ci=parseFloat(b());var Ei=parseFloat(b()),Si=parseFloat(b()),$n=Si,kn=!1;x()||($n=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),Qt===Qt.toLowerCase()&&(ci+=le.x,Ei+=le.y),a.arcTo(Et,Xe,ci,Ei,Si,$n,kn)}break;case"A":for(;!x();)Et=Math.abs(parseFloat(b())),Xe=Math.abs(parseFloat(b())),ci=parseFloat(b()),Si=Ei=!1,kn=$n=0,$n=b(),$n.length===1?(Ei=!!parseFloat($n),Si=!!parseFloat(b()),$n=parseFloat(b())):$n.length===2?(Ei=!!parseFloat($n[0]),Si=!!parseFloat($n[1]),$n=parseFloat(b())):(Ei=!!parseFloat($n[0]),Si=!!parseFloat($n[1]),$n=parseFloat($n.slice(2))),kn=parseFloat(b()),Qt===Qt.toLowerCase()&&($n=le.x+$n,kn=le.y+kn),le.h($n,kn),Px(a,Et,Xe,ci,Ei,Si,$n,kn);break;case"Z":wx(a),le.assign(ot);break;case"F":for(Et="",Xe=1;lt[Dt+Xe];)if(lt[Dt+Xe]==="0")vt=!0,Xe++;else if(lt[Dt+Xe].match(/[Uu]/)!==null)Xe++;else if(lt[Dt+Xe].match(Ee)===null)Xe++;else{Et=lt[Dt+Xe];break}Et.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Et="",Xe=1;lt[Dt+Xe];)if(lt[Dt+Xe].match(/[Ff]/)!==null)Xe++;else if(lt[Dt+Xe].match(Ee)===null)Xe++;else{Et=lt[Dt+Xe];break}Et.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Gm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},ni.Ha=function(a,y){for(var x=a.length,b=Vt.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Vt.free(b)},ni.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ni.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},ni.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ni.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),rc(this,a,!1),Fo(a,0,0,0,0),a.freeze()},ni.prototype.ix=function(){var a=new ln;return rc(this,a,!0),a};function rc(a,y,x){switch(a.type){case ni.j:case ni.u:case ni.F:x?y.h(a.od,a.pd,0,0):Fo(y,a.od,a.pd,0,0),Fo(y,a.Dc,a.Ec,0,0);break;case ni.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Fo(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,lt=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case ta:case as:ot=ft.endX,lt=ft.endY,Fo(y,ot,lt,0,0);break;case Us:Ne.Dl(ot,lt,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,lt=ft.endY;break;case It:Ne.iv(ot,lt,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,lt=ft.endY;break;case Kt:case _t:var vt=ft.type===Kt?il(ft,z):yl(ft,z,ot,lt),Ct=vt.length;if(Ct===0){ot=ft.type===Kt?ft.centerX:ft.endX,lt=ft.type===Kt?ft.centerY:ft.endY,Fo(y,ot,lt,0,0);break}ft=null;for(var Et=0;Et<Ct;Et++)ft=vt[Et],Ne.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],lt=ft[7]);break;default:Ce("Unknown Segment type: "+ft.type)}}}break;default:Ce("Unknown Geometry type: "+a.type)}}ni.prototype.normalize=function(){this._isFrozen&&Rn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Vt(-a.x,-a.y)},ni.prototype.offset=function(a,y){return this._isFrozen&&Rn(this),this.transform(1,0,0,1,a,y),this},ni.prototype.scale=function(a,y){return this._isFrozen&&Rn(this),this.transform(a,0,0,y,0,0),this},ni.prototype.rotate=function(a,y,x){this._isFrozen&&Rn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=kr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),kr.free(b),this},Lt=ni.prototype,Lt.transform=function(a,y,x,b,E,z){switch(this.type){case ni.j:case ni.u:case ni.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+E,this.pd=tt*y+rt*b+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+E,this.Ec=tt*y+rt*b+z;break;case ni.o:for(var ot=this.figures.s,lt=ot.length,ut=0;ut<lt;ut++){var ft=ot[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+E,ft.startY=tt*y+rt*b+z,ft=ft.segments.s;for(var vt=ft.length,Ct=0;Ct<vt;Ct++){var Et=ft[Ct];switch(Et.type){case ta:case as:tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case Us:tt=Et.point1X,rt=Et.point1Y,Et.point1X=tt*a+rt*x+E,Et.point1Y=tt*y+rt*b+z,tt=Et.point2X,rt=Et.point2Y,Et.point2X=tt*a+rt*x+E,Et.point2Y=tt*y+rt*b+z,tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case It:tt=Et.point1X,rt=Et.point1Y,Et.point1X=tt*a+rt*x+E,Et.point1Y=tt*y+rt*b+z,tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case Kt:tt=Et.centerX,rt=Et.centerY,Et.centerX=tt*a+rt*x+E,Et.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.startAngle+=tt),0>a&&(Et.startAngle=180-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),0>b&&(Et.startAngle=-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY!==void 0&&(Et.radiusY*=Math.sqrt(y*y+b*b));break;case _t:if(tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z,Et.radiusX===0||Et.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.xAxisRotation+=tt),0>a&&(Et.xAxisRotation=180-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),0>b&&(Et.xAxisRotation=-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY*=Math.sqrt(y*y+b*b);break;default:Ce("Unknown Segment type: "+Et.type)}}}}return this._isInvalidBounds=!0,this},Lt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case ni.j:return Ne.Yb(x,b,E,z,y,a.x,a.y);case ni.u:var tt=ln.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),ln.free(tt),a;case ni.F:tt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case ni.o:return rh(this,a,y,!0,!1);default:return!1}};function rh(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,lt,ut,ft,vt=a.figures.s,Ct=vt.length,Et=0;Et<Ct;Et++){var Dt=vt[Et],Qt=!Dt.isEvenOdd;if(Dt.isFilled){if(b&&Dt.ca(z,y,x))return!0;var Wt=Dt.segments;ot=Dt.startX,lt=Dt.startY;for(var ae=ot,le=lt,ge=Wt.s,Ee=0;Ee<=Wt.length;Ee++){var Xe=void 0;if(Ee!==Wt.length){Xe=ge[Ee];var ci=Xe.type;a=Xe.endX,ft=Xe.endY}else ci=ta,a=ae,ft=le;switch(ci){case as:if(ae=oh(z,y,tt,y,ot,lt,ae,le),isNaN(ae))return!0;rt+=ae,ae=a,le=ft;break;case ta:if(ot=oh(z,y,tt,y,ot,lt,a,ft),isNaN(ot))return!0;rt+=ot;break;case Us:ut=Ne.Fo(ot,lt,Xe.point1X,Xe.point1Y,Xe.point2X,Xe.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case It:ut=Ne.Fo(ot,lt,(ot+2*Xe.point1X)/3,(lt+2*Xe.point1Y)/3,(2*Xe.point1X+a)/3,(2*Xe.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case Kt:case _t:ci=Xe.type===Kt?il(Xe,Dt):yl(Xe,Dt,ot,lt);var Ei=ci.length;if(Ei===0){if(ot=oh(z,y,tt,y,ot,lt,Xe.type===Kt?Xe.centerX:Xe.endX,Xe.type===Kt?Xe.centerY:Xe.endY),isNaN(ot))return!0;rt+=ot;break}Xe=null;for(var Si=0;Si<Ei;Si++){if(Xe=ci[Si],Si===0){if(ut=oh(z,y,tt,y,ot,lt,Xe[0],Xe[1]),isNaN(ut))return!0;rt+=ut}ut=Ne.Fo(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],tt,y,z,y,.5),rt+=ut}Xe!==null&&(a=Xe[6],ft=Xe[7]);break;default:Ce("Unknown Segment type: "+Xe.type)}ot=a,lt=ft}if(Qt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Dt.ca(z,y,E?x:x+2))return!0}return!1}function oh(a,y,x,b,E,z,tt,rt){if(Ne.Yb(E,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var lt=((a*b-y*x)*(E-tt)-(a-x)*(E*rt-z*tt))/ot;if(y=(a*b-y*x)*(z-rt)/ot,lt>=a)return 0;if((E>tt?E-tt:tt-E)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(E<tt){if(lt<E||lt>tt)return 0}else if(lt<tt||lt>E)return 0;return 0<ot?1:-1}function xh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Lt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Vt),this.type===ni.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],lt=ot.length;for(a=0;a<lt;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Lt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ni.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var rt=x[tt],ot=rt.length;for(a=0;a<ot;a++){var lt=rt[a];if(z+lt>=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=lt}}return NaN},Lt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ni.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],lt=ot.length;for(a=0;a<lt;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},Lt.xx=function(a){if(this.type===ni.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=Vt.alloc();return Ne.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,Vt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===ni.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(E=this.endY,tt!==ot||rt!==E){y=ot-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),ot),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),ot=Math.abs(b-ot),rt=Math.abs(a-rt),E=Math.abs(a-E);var lt=Math.min(tt,ot,rt,E);if(lt===rt)return b/z;if(lt===ot)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Vt.alloc(),E=1/0,rt=tt=0,ot=y.length;for(var ut=lt=0,ft=0;ft<ot;ft++)for(var vt=y[ft],Ct=x[ft],Et=vt.length,Dt=0;Dt<Et;Dt+=2){var Qt=vt[Dt],Wt=vt[Dt+1];if(Dt!==0){Ne.qh(lt,ut,Qt,Wt,a.x,a.y,b);var ae=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);ae<E&&(E=ae,tt=rt,tt+=Math.sqrt((b.x-lt)*(b.x-lt)+(b.y-ut)*(b.y-ut))),rt+=Ct[(Dt-2)/2]}lt=Qt,ut=Wt}return Vt.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function oc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===ni.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===ni.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===ni.F){var z=new Cs;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new vo(Kt);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=il(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var ot=a[rt];Ne.Qe(tt,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,b),tt=ot[6],z=ot[7]}}y.push(b),x.push(Bd(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,rt=tt,ot=z;for(var lt=E.segments.s,ut=lt.length,ft=0;ft<ut;ft++){var vt=lt[ft];switch(vt.type){case as:4<=b.length&&(y.push(b),x.push(Bd(b))),b=[],b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY,rt=tt,ot=z;break;case ta:b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY;break;case Us:Ne.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case It:Ne.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case Kt:var Ct=il(vt,E),Et=Ct.length;if(Et===0){b.push(vt.centerX),b.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var Dt=0;Dt<Et;Dt++){var Qt=Ct[Dt];Ne.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7]}break;case _t:if(Ct=yl(vt,E,tt,z),Et=Ct.length,Dt=vt.endX,Qt=vt.endY,Et===0){b.push(Dt),b.push(Qt),tt=Dt,z=Qt;break}for(Dt=0;Dt<Et;Dt++)Qt=Ct[Dt],Ne.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7];break;default:Ce("Segment not of valid type: "+vt.type)}vt.isClosed&&(b.push(rt),b.push(ot))}4<=b.length&&(y.push(b),x.push(Bd(b)))}}}function Bd(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(Ui(x,b,tt,rt))),x=tt,b=rt}return y}Lt.add=function(a){return this.ee.add(a),this},Lt.pm=function(a,y,x,b,E,z,tt,rt){return this._isFrozen&&Rn(this),this.fg=new Fi(a,y,E,z).freeze(),this.gg=new Fi(x,b,tt,rt).freeze(),this},fe.Object.defineProperties(ni.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return oc(this),this.tk}},flattenedLengths:{get:function(){return oc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ni.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===ni.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Rn(this,a),this.na=a,a===ni.o?this.ee=new wn:(ni.V===null&&(ni.V=new wn().freeze()),this.ee=ni.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Rn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Rn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Rn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Rn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Rn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Rn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Rn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Rn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ni.prototype.setSpots=ni.prototype.pm,ni.prototype.add=ni.prototype.add,ni.prototype.getFractionForPoint=ni.prototype.xx,ni.prototype.getPointAndAngleAlongPath=ni.prototype.Qu,ni.prototype.getAngleAlongPath=ni.prototype.wx,ni.prototype.getPointAlongPath=ni.prototype.Pu,ni.prototype.containsPoint=ni.prototype.ca,ni.prototype.transform=ni.prototype.transform,ni.prototype.rotate=ni.prototype.rotate,ni.prototype.scale=ni.prototype.scale,ni.prototype.offset=ni.prototype.offset,ni.prototype.normalize=ni.prototype.normalize,ni.prototype.computeBoundsWithoutOrigin=ni.prototype.ix,ni.prototype.equalsApprox=ni.prototype.Xa,ni.className="Geometry",ni.j=new Oe(ni,"Line",0),ni.u=new Oe(ni,"Rectangle",1),ni.F=new Oe(ni,"Ellipse",2),ni.o=new Oe(ni,"Path",3),ni.V=null,ni.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ni.className="Geometry",ni.stringify=ni.ia,ni.fillPath=ni.nb,ni.parse=ni.parse,ni.Line=ni.j,ni.Rectangle=ni.u,ni.Ellipse=ni.F,ni.Path=ni.o;function Cs(a,y,x,b,E){Or(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new wn,this.sr=this.pl.Ja,this.fw=null}Cs.prototype.copy=function(){var a=new Cs;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Lt=Cs.prototype,Lt.Xa=function(a){if(!(a instanceof Cs&&Ne.B(this.startX,a.startX)&&Ne.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Lt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Lt.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},Lt.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},Lt.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},Lt.add=function(a){return this.pl.add(a),this},Lt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,rt=this.segments.s,ot=rt.length,lt=0;lt<ot;lt++){var ut=rt[lt];switch(ut.type){case as:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case ta:if(Ne.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case Us:if(Ne.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case It:if(Ne.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case Kt:case _t:var ft=ut.type===Kt?il(ut,this):yl(ut,this,b,E),vt=ft.length,Ct=ut.type===Kt?ut.centerX:ut.endX,Et=ut.type===Kt?ut.centerY:ut.endY;if(vt===0){if(Ne.Yb(b,E,Ct,Et,x,a,y))return!0;b=Ct,E=Et;break}for(Ct=null,Et=0;Et<vt;Et++)if(Ct=ft[Et],Et===0&&Ne.Yb(b,E,Ct[0],Ct[1],x,a,y)||Ne.cs(Ct[0],Ct[1],Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,a,y,x))return!0;Ct!==null&&(b=Ct[6],E=Ct[7]);break;default:Ce("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&Ne.Yb(b,E,z,tt,x,a,y))return!0}return!1},fe.Object.defineProperties(Cs.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&&Rn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Rn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Rn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Rn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Rn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Rn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Cs.prototype.add=Cs.prototype.add,Cs.prototype.equalsApprox=Cs.prototype.Xa,Cs.className="PathFigure";function vo(a,y,x,b,E,z,tt,rt){Or(this),a===void 0&&(a=ta),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===_t?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Kt&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Kt&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}vo.prototype.copy=function(){var a=new vo;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},Lt=vo.prototype,Lt.Xa=function(a){if(!(a instanceof vo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case as:case ta:return Ne.B(this.endX,a.endX)&&Ne.B(this.endY,a.endY);case Us:return Ne.B(this.endX,a.endX)&&Ne.B(this.endY,a.endY)&&Ne.B(this.point1X,a.point1X)&&Ne.B(this.point1Y,a.point1Y)&&Ne.B(this.point2X,a.point2X)&&Ne.B(this.point2Y,a.point2Y);case It:return Ne.B(this.endX,a.endX)&&Ne.B(this.endY,a.endY)&&Ne.B(this.point1X,a.point1X)&&Ne.B(this.point1Y,a.point1Y);case Kt:return Ne.B(this.startAngle,a.startAngle)&&Ne.B(this.sweepAngle,a.sweepAngle)&&Ne.B(this.centerX,a.centerX)&&Ne.B(this.centerY,a.centerY)&&Ne.B(this.radiusX,a.radiusX)&&Ne.B(this.radiusY,a.radiusY);case _t:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ne.B(this.xAxisRotation,a.xAxisRotation)&&Ne.B(this.endX,a.endX)&&Ne.B(this.endY,a.endY)&&Ne.B(this.radiusX,a.radiusX)&&Ne.B(this.radiusY,a.radiusY);default:return!1}},Lt.qb=function(a){a.classType===vo&&(this.type=a)},Lt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case as:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ta:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Us:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case It:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Kt:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case _t: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":"")},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.close=function(){return this.isClosed=!0,this};function il(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Ne.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=kr.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),ni.Ha(z,tt),kr.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function yl(a,y,x,b){function E(Dt,Qt,Wt,ae){return(Dt*ae<Qt*Wt?-1:1)*Math.acos((Dt*Wt+Qt*ae)/(Math.sqrt(Dt*Dt+Qt*Qt)*Math.sqrt(Wt*Wt+ae*ae)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,rt=a.isLargeArc,ot=a.isClockwiseArc,lt=a.Dc,ut=a.Ec,ft=Math.cos(tt),vt=Math.sin(tt),Ct=ft*(x-lt)/2+vt*(b-ut)/2;tt=-vt*(x-lt)/2+ft*(b-ut)/2;var Et=Ct*Ct/(y*y)+tt*tt/(z*z);return 1<Et&&(y*=Math.sqrt(Et),z*=Math.sqrt(Et)),Et=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*Ct*Ct)/(y*y*tt*tt+z*z*Ct*Ct)),isNaN(Et)&&(Et=0),rt=Et*y*tt/z,Et=Et*-z*Ct/y,isNaN(rt)&&(rt=0),isNaN(Et)&&(Et=0),x=(x+lt)/2+ft*rt-vt*Et,b=(b+ut)/2+vt*rt+ft*Et,ut=E(1,0,(Ct-rt)/y,(tt-Et)/z),ft=(Ct-rt)/y,lt=(tt-Et)/z,Ct=(-Ct-rt)/y,rt=(-tt-Et)/z,tt=E(ft,lt,Ct,rt),Ct=(ft*Ct+lt*rt)/(Math.sqrt(ft*ft+lt*lt)*Math.sqrt(Ct*Ct+rt*rt)),-1>=Ct?tt=Math.PI:1<=Ct&&(tt=0),!ot&&0<tt&&(tt-=2*Math.PI),ot&&0>tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,Ct=y>z?z/y:1,y=Ne.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=kr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(ot,Ct),ni.Ha(y,z),kr.free(z),a.ae=y,a.ae}fe.Object.defineProperties(vo.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&&Rn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Rn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Rn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Rn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&pi(a,">= zero",vo,"radiusX"),this._isFrozen&&Rn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&pi(a,">= zero",vo,"radiusY"),this._isFrozen&&Rn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rn(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&&Rn(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&&Rn(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&&Rn(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&&Rn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),vo.prototype.equalsApprox=vo.prototype.Xa;var as=new Oe(vo,"Move",0),ta=new Oe(vo,"Line",1),Us=new Oe(vo,"Bezier",2),It=new Oe(vo,"QuadraticBezier",3),Kt=new Oe(vo,"Arc",4),_t=new Oe(vo,"SvgArc",4);vo.className="PathSegment",vo.Move=as,vo.Line=ta,vo.Bezier=Us,vo.QuadraticBezier=It,vo.Arc=Kt,vo.SvgArc=_t;function ze(){this.H=null,this.xu=new Vt(0,0).freeze(),this.mt=new Vt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}ze.prototype.copy=function(){var a=new ze;return this.clone(a)},ze.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},ze.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},ze.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},ze.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},fe.Object.defineProperties(ze.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}}}),ze.prototype.getMultiTouchDocumentPoint=ze.prototype.Bz,ze.prototype.getMultiTouchViewPoint=ze.prototype.So,ze.className="InputEvent";function We(){this.H=null,this.xa="",this.ar=this.Lr=null}We.prototype.copy=function(){var a=new We;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},We.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},fe.Object.defineProperties(We.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}}}),We.className="DiagramEvent";function dn(){this.Fm=Zn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}dn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},dn.prototype.copy=function(){var a=new dn;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=je(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=je(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=je(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=je(y)&&typeof y.J=="function"?y.J():y,a},dn.prototype.qb=function(a){a.classType===dn&&(this.change=a)},dn.prototype.toString=function(){var a="";return a=this.change===mn?a+"* ":this.change===Zn?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===mn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Wn(this.object)),this.oldValue!==null&&(a+=" old: "+Wn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Wn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},dn.prototype.I=function(a){return a?this.oldValue:this.newValue},dn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},dn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},dn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},dn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},dn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},fe.Object.defineProperties(dn.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===mn&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),dn.prototype.redo=dn.prototype.redo,dn.prototype.canRedo=dn.prototype.canRedo,dn.prototype.undo=dn.prototype.undo,dn.prototype.canUndo=dn.prototype.canUndo,dn.prototype.getParam=dn.prototype.Dz,dn.prototype.getValue=dn.prototype.I,dn.prototype.clear=dn.prototype.clear;var mn=new Oe(dn,"Transaction",-1),Zn=new Oe(dn,"Property",0),Qn=new Oe(dn,"Insert",1),di=new Oe(dn,"Remove",2);dn.className="ChangedEvent",dn.Transaction=mn,dn.Property=Zn,dn.Insert=Qn,dn.Remove=di;function Ri(){this.o=new wn().freeze(),this.xa="",this.j=!1}Ri.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Ri.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()},Ri.prototype.canUndo=function(){return this.isComplete},Ri.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()}},Ri.prototype.canRedo=function(){return this.isComplete},Ri.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()}},Ri.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ci,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Zn&&b.object){var E=y.get(b.object);E||(E=new Ci,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},fe.Object.defineProperties(Ri.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}}}),Ri.prototype.optimize=Ri.prototype.ak,Ri.prototype.redo=Ri.prototype.redo,Ri.prototype.canRedo=Ri.prototype.canRedo,Ri.prototype.undo=Ri.prototype.undo,Ri.prototype.canUndo=Ri.prototype.canUndo,Ri.prototype.clear=Ri.prototype.clear,Ri.className="Transaction";function ui(){this.Pt=new An,this.Jd=!1,this.u=new wn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new wn().freeze(),this.hl=new wn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ui.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},ui.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},ui.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Lt=ui.prototype,Lt.Xw=function(a){this.Pt.add(a)},Lt.Rx=function(a){this.Pt.remove(a)},Lt.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},Lt.eb=function(a){return a===void 0&&(a=""),Mi(this,!0,a)},Lt.Kf=function(){return Mi(this,!1,"")};function Mi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Bi("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Lt.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()}},ui.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ui.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){Bi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ui.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ui.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){Bi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ui.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new dn;for(b.change=mn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},ui.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ri);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||Bi("Change not within a transaction: "+x.toString()))}},ui.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},fe.Object.defineProperties(ui.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}}}),ui.prototype.handleChanged=ui.prototype.Tu,ui.prototype.redo=ui.prototype.redo,ui.prototype.undo=ui.prototype.undo,ui.prototype.canUndo=ui.prototype.canUndo,ui.prototype.discardHistoryAfterIndex=ui.prototype.lx,ui.prototype.rollbackTransaction=ui.prototype.Kf,ui.prototype.commitTransaction=ui.prototype.eb,ui.prototype.startTransaction=ui.prototype.Ea,ui.prototype.removeModel=ui.prototype.Rx,ui.prototype.addModel=ui.prototype.Xw,ui.prototype.clear=ui.prototype.clear,ui.className="UndoManager";function si(){Or(this),this.H=sh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ze,this.Zr=-1}si.prototype.toString=function(){return this.name!==""?this.name+" Tool":Fn(this.constructor)},si.prototype.updateAdornments=function(){},si.prototype.canStart=function(){return this.isEnabled},si.prototype.doStart=function(){},si.prototype.doActivate=function(){this.isActive=!0},si.prototype.doDeactivate=function(){this.isActive=!1},si.prototype.doStop=function(){},si.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},si.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},si.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},si.prototype.doMouseMove=function(){},si.prototype.doMouseUp=function(){this.stopTool()},si.prototype.doMouseWheel=function(){},si.prototype.canStartMultiTouch=function(){return!0},si.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Vt.allocAt(NaN,NaN)),b=y.So(1,Vt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Vt.free(x),Vt.free(b)},si.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Vt.allocAt(NaN,NaN)),b=y.So(1,Vt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Vt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Vt.free(x),Vt.free(b)},si.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},si.prototype.doKeyUp=function(){},si.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},si.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},si.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Mr?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||(Mr?y.meta:y.control)||y.shift||a.clearSelection()}},si.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Ji(a,b,x),b.handled};function Ji(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}si.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},si.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},si.prototype.doCurrentObjectChanged=function(){},si.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===jr&&!y.shift||E===Qi&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===jr&&y.shift||E===Qi&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},si.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},si.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Oi(function(){x.doWaitAfter(b)},a)},si.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ue.clearTimeout(this.Zr),this.Zr=-1},si.prototype.doWaitAfter=function(){},si.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Mo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},si.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},fe.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ye&&(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}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function zn(){si.call(this),this.name="ToolManager",this.hb=new wn,this.ob=new wn,this.Hb=new wn,this.F=this.V=850,this.o=new ei(2,2).ja(),this.Ha=5e3,this.ia=Qi,this.u=Yr,this.Mp=this.j=null,this.zj=-1}Ze(zn,si),zn.prototype.initializeStandardTools=function(){},zn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Mo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},zn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ur&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Hr){y.bubbles=!0;return}if(this.gestureBehavior===Ur)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Qi?this.mouseWheelBehavior=jr:this.mouseWheelBehavior===jr&&(this.mouseWheelBehavior=Qi)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},zn.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Hr){y.bubbles=!0;return}if(this.gestureBehavior===Ur)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Ai(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ai(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}zn.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Mo&&(y===a||y.rg(a))||this.hideToolTip()},zn.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()))},zn.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)},zn.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 Mo)||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()},zn.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Mo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof ar&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ue.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Oi(function(){E.hideToolTip()},a)}},zn.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},zn.prototype.hideToolTip=function(){this.zj!==-1&&(ue.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Mo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ar&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},zn.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},zn.prototype.doMouseWheel=function(){this.standardMouseWheel()},zn.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},zn.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},zn.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},zn.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},zn.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},fe.Object.defineProperties(zn.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 Mo?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}}}),zn.prototype.replaceStandardTool=zn.prototype.gb;var Qi=new Oe(zn,"WheelScroll",0),jr=new Oe(zn,"WheelZoom",1),Nr=new Oe(zn,"WheelNone",2),Yr=new Oe(zn,"GestureZoom",3),Ur=new Oe(zn,"GestureCancel",4),Hr=new Oe(zn,"GestureNone",5);zn.className="ToolManager",zn.WheelScroll=Qi,zn.WheelZoom=jr,zn.WheelNone=Nr,zn.GestureZoom=Yr,zn.GestureCancel=Ur,zn.GestureNone=Hr;function ji(){si.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Vt(NaN,NaN),this.Fr=new Vt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new An().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Yo;Ze(ji,si),ji.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},ji.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},ji.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Mr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ji.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ie=null,this.isActive=!0,this.tl.set(a.position),zo(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&fl(a),hc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ie=this,_e=this.diagram,this.doSimulatedDragOut()))};function zo(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof _n?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new yi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ji.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ji.prototype.Pd=function(a){return a===void 0?new Kd(qr):this.isGridSnapEnabled?new Kd(new Vt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},ji.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ea(this),Bu(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Yo.count){for(var y=Yo,x=y.length,b=0;b<x;b++){var E=y.M(b);ts(E),Sa(E),ea(E),E.diagram.ug()}y.clear()}ts(this),this.tl.h(NaN,NaN),_e!==null&&(_e.currentCursor=""),Ie=_e=null,Sa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},ji.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ea(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Ua(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ka(){var a=Ie;Sa(a),ra(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ji.prototype.doCancel=function(){Sa(this),ra(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ji.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ji.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function La(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ra(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 Ci,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof _n&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,zo(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Sa(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof _n&&(x.value.point=new Vt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ts(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function ma(a,y,x){var b=a.diagram,E=a.startPoint,z=Vt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Vt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(fl(b),b.hk())}ji.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Uu(b,a,y,this.dragOptions,x)};function ra(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof _n&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),wc(b,-E.x,-E.y)}y.bd()}}function xa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),wa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=Ua(a,E,b),!a.isActive&&Ie===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Pr)){var ot=x.mouseDragOver;ot!==null&&(ot(E),tt=!0)}if(!a.isActive&&Ie===null||(a.doDragOver(y,b),!a.isActive&&Ie===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}ji.prototype.findDragOverObject=function(a){var y=this;return Yu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Mo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ji.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Ua(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<E;tt++){var rt=a.Cg[tt],ot=rt.mouseDragLeave;if(ot!==null&&(ot(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ie===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=es(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),b=!0,!y.handled));x++);return b}function es(a){var y=a.panel;return y!==null?y:a instanceof Hi&&!(a instanceof Pr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function za(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(lt){return b.findValidLinkablePort(lt,x)});a=Vt.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var ot=rt.ga(ho,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Vt.free(a),tt}function wa(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=za(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=za(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),E.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Yi(E,tt,z,ot,rt):Yi(E,null,null,null,null)}}}}ji.prototype.doDragOver=function(){};function Ms(a,y){var x=a.diagram;a.dragsLink&&wa(a,!0),ea(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;tl(a,E,z),z=es(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ie!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof fi&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ie!==null){for(a=ln.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof fi&&Xt(x,b,a);ln.free(a)}}}function tl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Pr||(x=a.mouseDrop,x!==null&&x(y))}function Xt(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof _n},!0,function(E){return E instanceof _n},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ji.prototype.doDropOnto=function(){},ji.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(La(this,!1),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(a,this.copiedParts)):this.mayMove()?(Sa(this),ma(this,this.draggedParts,!0)):this.mayDragOut()?(La(this,!1),ma(this,this.copiedParts,!1)):Sa(this),xa(this,a.lastInput.documentPoint))}},ji.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Sa(this),La(this,!0),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Sa(this),this.mayMove()&&(ma(this,this.draggedParts,!0),xa(this,a.lastInput.documentPoint))),this.Ym=!0,Ms(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ie(this),a.Ya(),Bu(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ji.prototype.simulatedMouseMove=function(a,y,x){if(Ie===null)return!1;var b=Ie.diagram;x instanceof Ye||(x=null);var E=_e;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ie.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),_e=x,x!==null&&x!==b&&(ka(),E=x.toolManager.findTool("Dragging"),E!==null&&(Yo.contains(E)||Yo.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},ji.prototype.simulatedMouseUp=function(a,y,x){if(Ie===null)return!1;var b=_e,E=Ie.diagram;if(x===null)return Ie.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ie.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;_e=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ka(),Yo.contains(b)||Yo.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Vt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Ie,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function ie(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof fi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ji.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Mr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},ji.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},ji.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},ji.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ji.prototype.Az=function(){return Ie},ji.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ie;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ji.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),xl(a),a.animationManager.Cc(),a=Ie,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ji.prototype.doSimulatedDragLeave=function(){var a=Ie;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ji.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ie;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Te(this,y.draggedParts.Lf(),!1,a.firstInput),ma(this,this.copiedParts,!1),xa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ji.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ie;if(y!==null){var x=y.diagram;if(y.Ym=!0,Sa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Te(this,y.draggedParts.Lf(),!0,a.lastInput),ma(this,this.copiedParts,!1);var b=new An;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Ms(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Te(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=ln.alloc();E=b=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var lt=ot.value;if(lt.isVisible()){var ut=lt.location;lt=ut.x,ut=ut.y,isNaN(lt)||isNaN(ut)||(lt<b&&(b=lt),ut<E&&(E=ut),lt>tt&&(tt=lt),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,ln.free(z),z=a.Fr,tt=new Ci,rt=Vt.alloc(),ot=y.iterator;ot.next();)lt=ot.value,lt instanceof _n&<.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,wc(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(ot=x.I(lt),ot!==null&&(lt=lt.location,rt.h(z.x-(b-lt.x),z.y-(E-lt.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Vt.free(rt),a.copiedParts=tt,zo(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ji.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ji.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Vt},fe.Object.defineProperties(ji.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),ji.prototype.getDraggingSource=ji.prototype.Az;var Ie=null,_e=null;ji.className="DraggingTool",Yo=new wn,Bn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),zn.prototype.doCancel=function(){Ie!==null&&Ie.doCancel(),si.prototype.doCancel.call(this)};function Ve(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new _n,y=new Tr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Tr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new fi,y=new Tr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=$o,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new fi,y=new Tr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=$o,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 Ci,this.Of=this.gj=this.Pf=null}Ze(Ve,si),Ve.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ve.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=ei.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,ei.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ho,z=Vt.alloc(),x.location=y.ga(ho,z),Vt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Ve.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=$o,y.fromSpot=Ya,y.toSpot=Ya),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ve.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ve.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof fi){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)}},Ve.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof fi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof fi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Ve.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof fi){var ot=tt.ga(ho,Vt.alloc()),lt=x.x-ot.x,ut=x.y-ot.y;Vt.free(ot),ot=lt*lt+ut*ut,ot<b&&(lt=this.validPortsCache.I(tt),lt!==null?lt&&(y=tt,b=ot):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,b=ot):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof fi&&(x.layer===null||x.layer.allowLink))?y:null},Ve.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},Ve.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},Ve.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ve.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof fi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof fi))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Ve.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},Ve.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new An;return b.add(a),Mn(this,x,y,b)};function Mn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Mn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Mn(a,y.labeledLink,x,b))))}Ve.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Yf){if(b===dp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!En(this,a,y,x,!0)}if(b===cp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!En(this,a,y,x,!0)}if(b===lp)return a===y?a=!0:(b=new An,b.add(y),a=xn(this,b,a,y,x)),!a;if(b===up)return!En(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new An,b.add(y),a=ri(this,b,a,y,x)),!a}return!0};function En(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&En(a,tt,x,b,E)))return!0}return!1}function xn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&xn(a,y,tt,b,E)))return!0}return!1}function ri(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&ri(a,y,rt,b,E))return!0}}return!1}fe.Object.defineProperties(Ve.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}}}),Ve.className="LinkingBaseTool";function jn(){Ve.call(this),this.name="Linking",this.V={},this.F=null,this.K=ti,this.Xd=null}Ze(jn,Ve),jn.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},jn.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 fi)))return null;var x=this.direction;if(x===ti||x===Li){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===ti||x===bi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},jn.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 fi&&(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 fi&&(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)},jn.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()},jn.prototype.doStop=function(){Ve.prototype.doStop.call(this),this.startObject=null},jn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof fi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},jn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof _n)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},jn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},jn.prototype.doNoLink=function(){},fe.Object.defineProperties(jn.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 ti=new Oe(jn,"Either",0),Li=new Oe(jn,"ForwardsOnly",0),bi=new Oe(jn,"BackwardsOnly",0);jn.className="LinkingTool",jn.Either=ti,jn.ForwardsOnly=Li,jn.BackwardsOnly=bi;function yi(){Ve.call(this),this.name="Relinking";var a=new Tr;a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Tr,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ln}Ze(yi,Ve),yi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _n){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},yi.prototype.makeAdornment=function(a,y){var x=new Mo;return x.type=Yn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},yi.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},yi.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 Mo&&x.adornedPart instanceof _n))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ho),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ho),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},yi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Rg||x===Pc)&&(x=Zl),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}},yi.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()},yi.prototype.doStop=function(){Ve.prototype.doStop.call(this),this.handle=null},yi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof fi&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},yi.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},yi.prototype.doNoRelink=function(){};function Yi(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}fe.Object.defineProperties(yi.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 Mo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),yi.className="RelinkingTool",Bn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Bn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function wi(){si.call(this),this.name="LinkReshaping";var a=new Tr;a.figure="Rectangle",a.desiredSize=Na,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Tr,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Vt,this.Yq=new wn}Ze(wi,si),wi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:tr},wi.prototype.om=function(a,y){a.reshapingBehavior=y},wi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _n){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},wi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Mo,E.type=Yn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==ju)for(var rt=x+tt;rt<z-tt;rt++){var ot=this.makeResegmentHandle(a,rt);ot!==null&&(ot.segmentIndex=rt,ot.segmentFraction=.5,ot.fromMaxLinks=999,E.add(ot))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&b){ot=y.i(x);var lt=y.i(x+1);Ne.B(ot.x,lt.x)&&Ne.B(ot.y,lt.y)&&(lt=y.i(x-1)),Ne.B(ot.x,lt.x)?(this.om(rt,Xr),rt.cursor="n-resize"):Ne.B(ot.y,lt.y)&&(this.om(rt,lr),rt.cursor="w-resize")}else tt===z-1&&b?(ot=y.i(z-1),lt=y.i(z),Ne.B(ot.x,lt.x)&&Ne.B(ot.y,lt.y)&&(ot=y.i(z+1)),Ne.B(ot.x,lt.x)?(this.om(rt,Xr),rt.cursor="n-resize"):Ne.B(ot.y,lt.y)&&(this.om(rt,lr),rt.cursor="w-resize")):tt!==z&&(this.om(rt,so),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},wi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},wi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},wi.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},wi.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof _n){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},wi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},wi.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},wi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},wi.prototype.getResegmentingPoint=function(){return this.handle.ga(ho)},wi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},wi.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(rr(this,tt,b,E,z,!0)||rr(this,tt,b,E,z,!1))){var rt=y.points.copy();rr(this,tt,b,E,z,!0)?(rt.cd(x-2,new Vt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Vt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Vt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Vt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(rr(this,b,E,z,tt,!0)||rr(this,b,E,z,tt,!1))&&(rt=y.points.copy(),rr(this,b,E,z,tt,!0)?(rt.cd(x-1,new Vt(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new Vt(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new Vt((b.x+tt.x)/2,b.y)),rt.cd(x+2,new Vt((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Vt.alloc(),Ne.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Vt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function rr(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}wi.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Xr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===lr&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Xr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===lr&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),tt=y.i(b+1);Ne.B(z.x,E.x)&&Ne.B(E.y,tt.y)?(Ne.B(z.x,y.i(b-2).x)&&!Ne.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ne.B(tt.y,y.i(b+2).y)&&!Ne.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):Ne.B(z.y,E.y)&&Ne.B(E.x,tt.x)?(Ne.B(z.y,y.i(b-2).y)&&!Ne.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ne.B(tt.x,y.i(b+2).x)&&!Ne.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ne.B(z.x,E.x)&&Ne.B(E.x,tt.x)?(Ne.B(z.x,y.i(b-2).x)&&!Ne.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ne.B(tt.x,y.i(b+2).x)&&!Ne.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ne.B(z.y,E.y)&&Ne.B(E.y,tt.y)&&(Ne.B(z.y,y.i(b-2).y)&&!Ne.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ne.B(tt.y,y.i(b+2).y)&&!Ne.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(ho,Vt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Vt.alloc()),y.L(0,b.x,b.y),Vt.free(z),Vt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(ho,Vt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Vt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Vt.free(x),Vt.free(a));y.zf()},wi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case so:return a;case Xr:return new Vt(y.i(x).x,a.y);case lr:return new Vt(a.x,y.i(x).y);default:case tr:return y.i(x)}},fe.Object.defineProperties(wi.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 Mo))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}}}),wi.prototype.setReshapingBehavior=wi.prototype.om,wi.prototype.getReshapingBehavior=wi.prototype.Ru;var tr=new Oe(wi,"None",0),lr=new Oe(wi,"Horizontal",1),Xr=new Oe(wi,"Vertical",2),so=new Oe(wi,"All",3);wi.className="LinkReshapingTool",wi.None=tr,wi.Horizontal=lr,wi.Vertical=Xr,wi.All=so,Bn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function pr(){si.call(this),this.name="Resizing",this.o=new ei(1,1).freeze(),this.j=new ei(9999,9999).freeze(),this.yg=new ei(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Tr;a.alignmentFocus=ho,a.figure="Rectangle",a.desiredSize=Na,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Vt,this.Dw=new ei,this.Tn=new Vt,this.rt=new ei(0,0),this.qt=new ei(1/0,1/0),this.pt=new ei(1,1)}Ze(pr,si),pr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof _n)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),Vc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},pr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Mo,y.type=Yn.Spot,y.locationSpot=ho;var x=new Wl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Es)),y.add(this.makeHandle(a,uu)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,El)),y.add(this.makeHandle(a,_a)),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,Ps)),y.add(this.makeHandle(a,ls))}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},pr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},pr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=ho),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Yn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},pr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},pr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},pr.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},pr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Vt.free(E)}},pr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Vt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},pr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Pr){var b=new wn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},pr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=ho);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Vt.alloc(),Ne.No(a.x,a.y,rt,ot,E.width,E.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(vt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))),Vt.free(vt),a},pr.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof Tr&&(a=bv(this.adornedObject)),!(a===Ni||this.diagram.lastInput.shift)},pr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},pr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},pr.prototype.computeCellSize=function(){var a=new ei(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},fe.Object.defineProperties(pr.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Mo))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 Mo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),pr.className="ResizingTool",Bn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Fr(){si.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Vt,this.ue=null;var a=new Tr;a.figure="Ellipse",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Vt(NaN,NaN),this.u=0,this.F=50}Ze(Fr,si),Fr.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Fr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Mo,y.type=Yn.Position,y.locationSpot=ho;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Fr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Fr.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Fr.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(ho)},Fr.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Fr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Vt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Fr.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Fr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Fr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Fr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Fr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Fr.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},fe.Object.defineProperties(Fr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Mo))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 Mo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Fr.className="RotatingTool",Bn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bo(){si.call(this),this.name="ClickSelecting"}Ze(bo,si),bo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bo.className="ClickSelectingTool";function ur(){si.call(this),this.name="Action",this.pk=null}Ze(ur,si),ur.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ur.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},ur.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},ur.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},ur.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},ur.prototype.doStop=function(){this.pk=null},ur.className="ActionTool";function Ir(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Vt(0,0)}Ze(Ir,si),Ir.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)},Ir.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ir.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Hi)x.Zc()&&(fh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);je(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Vt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Vt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},fe.Object.defineProperties(Ir.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}}}),Ir.className="ClickCreatingTool";function mr(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Hi;a.layerName="Tool",a.selectable=!1;var y=new Tr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ze(mr,si),mr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},mr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},mr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},mr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=ei.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ei.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},mr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},mr.prototype.computeBoxBounds=function(){var a=this.diagram;return new ln(a.firstInput.documentPoint,a.lastInput.documentPoint)},mr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Mr?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 wn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},fe.Object.defineProperties(mr.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),mr.className="DragSelectingTool";function Gi(){si.call(this),this.name="Panning",this.Xt=new Vt,this.xy=new Vt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ue.document,"scroll",a.Kw,!1),a.stopTool()}}Ze(Gi,si),Gi.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())},Gi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ue.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Gi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Gi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Gi.prototype.doMouseMove=function(){this.move()},Gi.prototype.doMouseUp=function(){this.move(),this.stopTool()},Gi.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},fe.Object.defineProperties(Gi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Gi.className="PanningTool",Bn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Bn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Bn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Bn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Bn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ar(){this.F=this.u=this.j=this.o=null}fe.Object.defineProperties(ar.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}}}),ar.className="HTMLInfo";function Rr(a,y,x){this.text=a,this.hx=y,this.visible=x}Rr.className="ContextMenuButtonInfo";function lo(){si.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Vt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Ze(lo,si);function co(a){var y=new ar;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},jo=y,a.tu=function(){a.stopTool()},y=Pn("div");var x=Pn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Pn("style");ue.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",sr,!1),b.addEventListener(y,"selectstart",sr,!1),b.addEventListener(x,"contextmenu",sr,!1)),y.className="goCXforeground",x.className="goCXbackground",ue.document.body&&(ue.document.body.appendChild(y),ue.document.body.appendChild(x)),wo=y,qo=x,ja=!0}function sr(a){return a.preventDefault(),!1}lo.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)},lo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},lo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},lo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Ye||(a instanceof Me?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},lo.prototype.doActivate=function(){},lo.prototype.doMouseDown=function(){if(si.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Eo(this)},lo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Eo(this)};function Eo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof ar||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Io(a,!0),a.isActive||a.stopTool())}lo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Io(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=jo,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Me?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Mo&&!a.currentContextMenu.visible&&a.stopTool()}}lo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},lo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Mo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof ar&&a.show(y,x,this);this.currentContextMenu=a},lo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},lo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Mo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ar&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Wo(a){var y=new wn;return y.add(new Rr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Rr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Rr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Rr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Rr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Rr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Rr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Rr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Rr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Rr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Rr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Rr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Rr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}lo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Wo(this)),wo.innerHTML="",qo.addEventListener("pointerdown",this.tu,!1);var y=this,x=Pn("ul");x.className="goCXul",wo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=Pn("li"),z.className="goCXli";var tt=Pn("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}wo.style.display="block",qo.style.display="block"},lo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===jo){wo.style.display="none",qo.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(qo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},fe.Object.defineProperties(lo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Mo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ja===!1&&jo===null&&$a&&co(this),jo},set:function(a){a===null&&(ja=!0),jo=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var jo=null,ja=!1,qo=null,wo=null;lo.className="ContextMenuTool",Bn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _r(){si.call(this),this.name="TextEditing",this.Zh=new oa,this.ia=null,this.V=Qr,this.vj=null,this.qa=ki,this.u=1,this.F=!0,this.o=null,this.j=new ar,this.kt=null,mo(this,this.j)}Ze(_r,si);function mo(a,y){if($a){var x=Pn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(ro)):E==="Tab"?(a.acceptText(yo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==ki){var b=a.kt;a.qa===xr&&(a.qa=Ao),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==ki){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof oa&&z instanceof _r)if(z.state===Xs)x.style.border="3px solid red",x.focus();else{var tt=b.ga(ho),rt=E.position,ot=E.scale,lt=b.Df()*ot;lt<z.minimumEditorScale&&(lt=z.minimumEditorScale);var ut=b.naturalBounds.width*lt+6,ft=b.naturalBounds.height*lt+2,vt=(tt.x-rt.x)*ot;tt=(tt.y-rt.y)*ot,rt=b.verticalAlignment,ot=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*lt,ft=rt.y*ft-rt.y*ot+rt.offsetY-(.5*ft-.5*ot)-ot/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*lt+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=lt,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}_r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||sl&&sl!==this&&(sl.acceptText(Ga),sl&&sl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof oa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Qr&&!y.isSelected||this.starting===Br&&2>a.lastInput.clickCount)):!1},_r.prototype.doStart=function(){sl=this,this.textBlock!==null&&this.doActivate()},_r.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof oa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=xr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ln(this.textBlock.ga(Es),this.textBlock.ga(ml));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_r.prototype.doCancel=function(){this.stopTool()},_r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ga)},_r.prototype.acceptText=function(a){switch(a){case Ga:this.qa===As?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===xr||this.qa===Xs||this.qa===Ao)&&(this.qa=Uo,Da(this));break;case Pa:case ro:case yo:(ro!==a||this.textBlock.isMultiline!==!0)&&(this.qa===xr||this.qa===Xs||this.qa===Ao)&&(this.qa=Uo,Da(this))}};function Da(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=As,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Xs,a.doError(E,z))}}_r.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},_r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ki,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_r.prototype.doStop=function(){sl=null},_r.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},_r.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},fe.Object.defineProperties(_r.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),_r.prototype.measureTemporaryTextBlock=_r.prototype.Lx;var Pa=new Oe(_r,"LostFocus",0),Ga=new Oe(_r,"MouseDown",1),yo=new Oe(_r,"Tab",2),ro=new Oe(_r,"Enter",3),Po=new Oe(_r,"SingleClick",0),Qr=new Oe(_r,"SingleClickSelected",1),Br=new Oe(_r,"DoubleClick",2),ki=new Oe(_r,"StateNone",0),xr=new Oe(_r,"StateActive",1),Ao=new Oe(_r,"StateEditing",2),Uo=new Oe(_r,"StateValidating",3),Xs=new Oe(_r,"StateInvalid",4),As=new Oe(_r,"StateValidated",5),sl=null;_r.className="TextEditingTool",_r.LostFocus=Pa,_r.MouseDown=Ga,_r.Tab=yo,_r.Enter=ro,_r.SingleClick=Po,_r.SingleClickSelected=Qr,_r.DoubleClick=Br,_r.StateNone=ki,_r.StateActive=xr,_r.StateEditing=Ao,_r.StateValidating=Uo,_r.StateInvalid=Xs,_r.StateValidated=As,Bn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ya(a){gs||(Oa(),gs=!0),this.H=sh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Is,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new An,this.ce=new Wa,this.ce.Yd=this,this.Ei=new An,this.pu=new An,this.Sr=new An,this.pr=new An,a&&Object.assign(this,a)}ya.prototype.Xe=function(a){this.H=a},ya.prototype.canStart=function(){return!0};function Ba(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Js(a.H),a.zb=!0)}function fo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Is?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===$l&&y.vc.clear(),a.Qw=!!(a.Pk===bu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ul(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Al&&b!==null&&(delete b.start.scale,delete b.end.scale),ue.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fl(x),Od(x),a.zb=!1,y.start(),y.bc&&(Ka(a),x.Ya(),ah(y,0),xl(x,!0),us(a),x.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ll(a,y,x,b){a.isTicking||Bs(a)||y instanceof _n&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Lt=ya.prototype,Lt.fv=function(a){return this.ce.fv(a)},Lt.Xu=function(a){return this.ce.Xu(a)};function Ma(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var ot=rt.key;if(ot instanceof Me&&ot.diagram!==null||ot instanceof Ye){rt=!0;break t}}rt=!1}rt?du(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ka(E),xl(E.H),us(E)),ue.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ue.requestAnimationFrame(function(){x()}))}function Ha(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ka(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 us(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Lt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),ul(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ul(y,this.H)},Lt.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))},Lt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Xa(this,a))},Lt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ss(this.ce,y,"position",y.position,y.position),Xa(this,a))};function Os(a,y,x){!a.zb||y.D(x)||Bs(a)||(a.H.pi||(y=x.copy()),ss(a.ce,a.H,"position",y,x))}function na(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Xa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Hs(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var ot=y[0],lt=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=lt):(ut===0||ut===100)&&(ot=z,lt=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=E(x,z,ot-z,b)%360,tt=E(x,tt,lt-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function Oa(){function a(x,b,E,z,tt,rt){x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new Ci;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!0):x.location=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,rt){var ot=x.actualBounds,lt=E.actualBounds;E=lt.x+lt.width/2-ot.width/2,ot=lt.y+lt.height/2-ot.height/2,tt<rt?x.mm(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,tt,rt){x.desiredSize=new ln(z(tt,b.width,E.width-b.width,rt),z(tt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,tt,rt){x.width=z(tt,b,E-b,rt)}),y.add("height",function(x,b,E,z,tt,rt){x.height=z(tt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,tt,rt){x.fill=Hs(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=Hs(b,E,tt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,tt,rt){x.strokeWidth=z(tt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,tt,rt){x.strokeDashOffset=z(tt,b,E-b,rt)}),y.add("background",function(x,b,E,z,tt,rt){x.background=Hs(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=Hs(b,E,tt,rt,z)}),y.add("opacity",function(x,b,E,z,tt,rt){x.opacity=z(tt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,tt,rt){x.scale=z(tt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,tt,rt){x.angle=z(tt,b,E-b,rt)}),So=y}fe.Object.defineProperties(ya.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&pi(a,">= 1",ya,"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}}}),ya.prototype.stopAnimation=ya.prototype.Cc;var So=null,gs=!1,Is=new Oe(ya,"Default",1),bu=new Oe(ya,"AnimateLocations",2),$l=new Oe(ya,"None",3);ya.className="AnimationManager",ya.defineAnimationEffect=function(a,y){gs||(Oa(),gs=!0),So.add(a,y)},ya.Default=Is,ya.AnimateLocations=bu,ya.None=$l;function Wa(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Ol,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=qr,this.vc=new Ci,this.Tt=new Ci,this.yl=new An,this.Ut=new An,this.dw=fc,a&&Object.assign(this,a)}Wa.prototype.suspend=function(){this.Xk=!0},Wa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,du(this,!0),Ka(this.Yd),xl(this.H),us(this.Yd),this.H.redraw()};function ul(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Lt=Wa.prototype,Lt.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 Ye?a=x:x instanceof Me&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Is&&this===y.defaultAnimation&&(this.Lp=Ku,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Uf),Ka(y),this.yl.each(function(b){b.data=null,a.add(b)}),us(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Ma(y,this),this)},Lt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Lt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Ye?this.H=a:a instanceof Me&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Hi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ss(this,a,y,x,b,E),this};function ss(a,y,x,b,E,z){var tt=a.vc;if(y instanceof Ye&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Yd(b),av(),b=[zu.j,zu.u,zu.o,zu.F],Yd(E),av(),E=[zu.j,zu.u,zu.o,zu.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,lt=rt.end;ot[x]===void 0&&(ot[x]=ns(b)),lt[x]=ns(E)}else ot={},lt={},ot[x]=ns(b),lt[x]=ns(E),rt=ot.position,y instanceof Me&&rt instanceof Vt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(lt.position),rt=new Vu(ot,lt,z),tt.add(y,rt);tt=ot[x],tt instanceof Vt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Hi?rt.Ku.location=ns(y.location):z&&(rt.Ku[x]=ns(b))}function ns(a){return a instanceof Vt||a instanceof ei?a.copy():a}Lt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Lt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function du(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Ka(x),ah(a,E),xl(a.H,!0),us(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ah(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Me&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var ot=So,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(lt)===null||ot.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}Lt.stop=function(){return this.bc?(this.Ml(!0),this):this},Lt.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,Ka(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=So;b.next();){var tt=b.key,rt=b.value,ot=E?rt.end:rt.start,lt=E?rt.start:rt.end,ut=rt.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof Hi&&(tt.location=ut.location),rt.nv&&tt instanceof Hi&&tt.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),xl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}xl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),us(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ul(this,null),x.Ml(this),y.$b())}},Lt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Pr&&(b=y.placeholder),b!==null?(x=b.ga(Es),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Vt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Pr)for(a=a.memberParts;a.next();)b=a.value,b instanceof fi&&this.Cj(b,y)},Lt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Pr&&(x=y.placeholder),x!==null){var b=x.ga(Es);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Pr)for(a=a.memberParts;a.next();)b=a.value,b instanceof fi&&this.Aj(b,y)}},Lt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},fe.Object.defineProperties(Wa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&pi(a,">= 1",Wa,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Ce("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Wa.prototype.getTemporaryState=Wa.prototype.Ez,Wa.prototype.stop=Wa.prototype.stop,Wa.prototype.add=Wa.prototype.add,Wa.prototype.addTemporaryPart=Wa.prototype.Iy;function Ol(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ku(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Wa.className="Animation",Wa.EaseLinear=function(a,y,x,b){return x*a/b+y},Wa.EaseInOutQuad=Ol,Wa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Wa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Wa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Wa.EaseOutExpo=Ku;function Vu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Vu.className="AnimationState";function ql(a,y,x){this.xd=null,this.rf=a,this.so=x||Ja,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ws))}ql.prototype.copy=function(){var a=new ql(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 Ca(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}fe.Object.defineProperties(ql.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 Ja=new Oe(ql,"Default",1),Ws=new Oe(ql,"Immediate",2),is=new Oe(ql,"Bundled",3);ql.className="AnimationTrigger",ql.Default=Ja,ql.Immediate=Ws,ql.Bundled=is;function ba(a){Or(this),this.H=null,this.Pa=new wn,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)}Lt=ba.prototype,Lt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Cl(x)}a.clear(),this.Zq.length=0},Lt.Xe=function(a){this.H=a},Lt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Pr?E++:ot instanceof fi?b++:ot instanceof _n?z++:ot instanceof Mo?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&uo(b)&&(rt+=" #"+uo(b)),x instanceof fi?rt+=" "+Wn(b):x instanceof _n&&(rt+=" "+Wn(x.fromNode)+" "+Wn(x.toNode));return y+" "+this.Pa.count+": "+rt},Lt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Vt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||Vc(rt)!==!1)&&rt.isVisible()&&(E.assign(a),Cr(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Vt.free(E),rt}return Vt.free(E),null},Lt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof wn||b instanceof An||(b=new An),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Vt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((E!==!0||Vc(ot)!==!1)&&ot.isVisible()){z.assign(a),Cr(z,ot.oe);var lt=ot;ot.ji(z,y,x,b)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||b.add(lt))}}return Vt.free(z),b},Lt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof wn||E instanceof An||(E=new An),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||Vc(ot)!==!1)&&ot.isVisible()){var lt=ot;ot.Cf(a,y,x,b,E)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||E.add(lt))}}return E},Lt.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,ot=rt.length;ot--;){var lt=rt[ot];if((tt!==!0||Vc(lt)!==!1)&&z(lt)&<.isVisible()){var ut=lt;lt.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Lt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof wn||E instanceof An)&&(z=E),E=!0),z instanceof wn||z instanceof An||(z=new An),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Vt.alloc(),ot=Vt.alloc(),lt=this.Pa.s,ut=lt.length;ut--;){var ft=lt[ut];if((tt!==!0||Vc(ft)!==!1)&&ft.isVisible()){rt.assign(a),Cr(rt,ft.oe),ot.h(a.x+y,a.y),Cr(ot,ft.oe);var vt=ft;ft.og(rt,ot,x,b,E,z)&&(x!==null&&(vt=x(vt)),vt===null||b!==null&&!b(vt)||z.add(vt))}}return Vt.free(rt),Vt.free(ot),z},Lt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=sn();for(var E=sn(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof _n){if(tt.fd===!1)continue}else if(tt instanceof Mo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&pa(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Ov(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Ov(E[y]);bn(a),bn(E)}}};function Zs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Lt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=Zs(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=ln.alloc(),ot=0;ot<b;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(ln.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Sl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=Zs(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,lt=ln.alloc(),ut=0;ut<z;ut++){var ft=E[ut];b.contains(ft)&&a.Oj(y,ft,x,rt,ot,lt,!1)}ln.free(lt),y.globalAlpha=tt}}}Lt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!Vc(y))a.Hs(y);else{if(b!==null&&y instanceof _n&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof Lu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(qa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(qa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),qa(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Lt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Zn,a,this,y,x,b,E)},Lt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Cl(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Eu(this,a,y),a},Lt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Cl(y),a};function Eu(a,y,x){if(y=ac(a,y,x),x instanceof Pr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];if(rt===x&&(y=tt,0<=b)||0>b&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Eu(a,-1,y)}x.svg!==null&&x.svg.remove()}function ac(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rt<E&&(ot=a.M(rt).zOrder,!!isNaN(ot));)rt++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot<b)for(;;){if(rt===E||ot>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rt<E&&(ot=a.M(rt).zOrder,isNaN(ot)););}return y}fe.Object.defineProperties(ba.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===""&&Ce("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ce("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&pi(a,"0 <= value <= 1",ba,"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))}}}),ba.prototype.findObjectsNear=ba.prototype.og,ba.prototype.findObjectsIn=ba.prototype.Cf,ba.prototype.findObjectsAt=ba.prototype.ji,ba.prototype.findObjectAt=ba.prototype.ic,ba.className="Layer";function Ye(a,y){if(dm||(wl(),dm=!0),Or(this),sh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,$a){var x=this,b=function(){x.removeEventListener(ue.document,"DOMContentLoaded",b,!1),x.setRTL()};ue.document.body!==null?this.setRTL():x.addEventListener(ue.document,"DOMContentLoaded",b,!1)}this.ol=null,Zh.add("Model",Go);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===Zn&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Rc(this),this.model=hy(),this.Wg=!0,Id(this),this.layout=new Aa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new cm,a!==void 0&&(typeof a=="string"||ue.Element&&a instanceof Element?Ph(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var wh,sh;function Rc(a){a.Yd=new ya,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new wn,a.pj=new Ci,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Vt(NaN,NaN).freeze(),a.du=new Vt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Vt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new kr,a.zu=new Vt(NaN,NaN).freeze(),a.ut=new ln(NaN,NaN,NaN,NaN).freeze(),a.rj=new Zi(0,0,0,0).freeze(),a.sj=fc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Al,a.zk=Bo,a.Fg=Al,a.pq=Bo,a.yt=Es,a.Bt=Es,a.Fc=!0,a.pn=!1,a.De=new An,a.Eh=new Ci,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Zi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ze,a.bq.diagram=a,a.Qg=new ze,a.Qg.diagram=a,a.cj=new ze,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,sp(a),a.ai=new An,a.Ht=!0,a.uu=gc,a.pw=!1,a.wu=Yf,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Ci,a.Xn=new wn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Zi(5).freeze(),a.Hw=new An().freeze(),a.Nt=999999999,a.nw=new An().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 An,a.ow=new An,a.Xh=null,a.aw=new ei(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Vt,bounds:new ln,Py:new ei,bA:new ei,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ln(NaN,NaN,NaN,NaN).freeze(),a.wo=new ei(NaN,NaN).freeze(),a.Sp=new ln(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ci;var y=new fi,x=new oa;x.bind(new ps("text","",Wn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new fi,x=new oa,x.stroke="brown",x.bind(new ps("text","",Wn)),y.add(x),a.Lg.add("Comment",y),y=new fi,y.selectable=!1,y.avoidable=!1,x=new Tr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ei(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ci,y=new Pr,y.selectionObjectName="GROUPPANEL",y.type=Yn.Vertical,x=new oa,x.font="bold 12pt sans-serif",x.bind(new ps("text","",Wn)),y.add(x),x=new Yn(Yn.Auto),x.name="GROUPPANEL";var b=new Tr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Wl,b.padding=new Zi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ci,y=new _n,x=new Tr,x.isPanelMain=!0,y.add(x),x=new Tr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new _n,x=new Tr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Mo,y.type=Yn.Auto,x=new Tr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Wl,x.margin=new Zi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Mo,y.type=Yn.Link,x=new Tr,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 Go,a.toolManager=new zn,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Rh(),a.eq=null,a.fq=ca,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Vt,a.zy=500,a.wp=new Vt,a.wq=!1}Ye.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Sf=null,Wc="",vd(this,!1),this.Xn.clear(),Tg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function vd(a,y){a.animationManager.Cc(!0),a.Hw=new An().freeze(),a.nw=new An().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==E&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Tg(),a.Og.clear(),nr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Rh(){return null}Ye.prototype.reset=function(){this.clear(),this.vb=!0,Rc(this),bh(this),this.Wg=!0,Id(this),this.layout=new Aa,this.Wg=!1,this.model=hy(),this.model.undoManager=new ui,this.vb=this.rn=!1,this.N()},Ye.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ue.document.body);var y=Pn("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},Ye.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ue.document.body);var y=0;if($a){var x=hh;y=wh,x===null&&(x=hh=Pn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=wh=Pn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||Mr||(y=11)}this.Db=y,this.Gw=!0},Ye.prototype.qb=function(a){a.classType===Ye&&(this.autoScale=a)},Ye.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function Ph(a,y){if($a){if(y!=null||Ce("Diagram setup requires an argument DIV."),a.Ka!==null&&Ce("Diagram has already completed setup."),typeof y=="string"?a.Ka=ue.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ce("No DIV or DIV id supplied: "+y),a.Ka===null&&Ce("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ce("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ue.ResizeObserver){var x=Un(function(){a.$b()},250);a.ol=new ue.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ue.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ue.go;var E=new ch(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ue.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),uc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new ch(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,$a){E=Pn("div");var z=Pn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=ff,E.addEventListener("pointerdown",zd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Un(function(){a.Yh=null,a.N()},300),a.Ov=Un(function(){Od(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Il(a,tt,!0);rt.bubbles=!0;var ot=0,lt=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(lt=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(lt=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),_l(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Il(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var ot=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,ot=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,ot=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var lt=ot;ot=Hd(a,tt,!0,!1,!0,lt),yd(a,tt,ot),ot.targetDiagram=sc(tt,tt.target),ot.targetObject=null,lt||ot.clone(a.bq),lt=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(lt.x-tt.screenX)>rt||Math.abs(lt.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():_l(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Hd(a,tt,!1,!1,!1,rt[1]!==null);var ot=ue.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;ot&&ot.H&&(ut=tt,lt=ot.H),rt.targetDiagram=lt,yd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),_l(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Hd(a,tt,!1,!0,!0,!1);var lt=ue.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof Ye&<.H!==a&&yd(lt.H,tt,ot),lt===null&&(lt=tt.target),yd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=sc(tt,lt),ot.targetObject=null,a.doMouseUp(),_l(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+Jf[1]+Jf[2]+"wI"+wf.slice(1,5)]["b"+Tx.slice(1,y)](b.Z,Xf,y,y),b.Vc(!0),cf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ye.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ye.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(ue,"resize",a.Ov,!1)}function fl(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Sr&&Sr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ye.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ue.devicePixelRatio||1},Ye.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ye.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ye.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ye.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ye.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ye.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ye.prototype.doFocus=function(){this.focus()},Ye.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ue.scrollX||ue.pageXOffset,y=ue.scrollY||ue.pageYOffset;this.ta.focus(),ue.scrollTo(a,y)}},Ye.prototype.Oy=function(){this.H.R("GainedFocus")},Ye.prototype.Ny=function(){this.H.R("LostFocus")};function Od(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Al&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Id(a){var y=new ba;y.name="Background",a.Al(y),y=new ba,y.name="",a.Al(y),y=new ba,y.name="Foreground",a.Al(y),y=new ba,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ba,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ba,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 Yn(Yn.Grid);y.name="GRID";var x=new Tr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Tr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Tr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Tr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Tr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Tr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Hi,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function ff(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Hh(this.H)}function zd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Hh(this.H)}Ye.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,tt=b.x-z.left,rt=b.y-z.top,ot=b.width+z.left+z.right,lt=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var ft=E.x;b=E.y;var vt=E.width,Ct=E.height,Et=E.right,Dt=E.bottom;E=this.scale;var Qt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qt=Qt+a.scrollWidth-a.clientWidth;break;case"reverse":Qt=a.scrollWidth-Qt-a.clientWidth}var Wt=Qt;vt<ot||Ct<lt?(Qt=Vt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Wt&&(Qt.x=Wt/E+tt,this.ju=Wt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qt.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=Qt,Vt.free(Qt),this.Ee=this.qr=!1):(Qt=Vt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Qt.h(Wt+tt,this.position.y)),ut>Et&&(this.position=Qt.h(-(y.scrollWidth-this.Aa)+Wt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=Qt.h(this.position.x,a.scrollTop+rt)),z>Dt&&(this.position=Qt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Vt.free(Qt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,Et=E.right,z=b.bottom,Dt=E.bottom,tt=b.x,ft=E.x,rt=b.y,b=E.y,vt>=ot&&tt>=ft&&ut<=Et&&(x.style.width="1px"),Ct>=lt&&rt>=b&&z<=Dt&&(x.style.height="1px"))}},Ye.prototype.computeBounds=function(a){return a===void 0&&(a=new ln),Js(this),jd(this,a)};function jd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot];lt.isInDocumentBounds&<.isVisible()&&(lt=lt.actualBounds,lt.w()&&(x?(x=!1,y.assign(lt)):y.ed(lt)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Ye.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof _n||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof _n||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ln(NaN,NaN,0,0):x};function cu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Vt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ln.allocAt(0,0,b.width,b.height);var E=Vt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ln.free(b),Vt.free(E),Vt.free(x)}x=a.yh,y&&a.Fg!==Al&&(x=a.Fg);var z=x!==Al?zh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,rt=a.zk,ot=a.pq;y&&!rt.sb()&&(ot.sb()||ot.Xb())&&(rt=ot.Xb()?ho:ot),zc(a,a.documentBounds,E,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ne.B(z.x,x)&&Ne.B(z.y,b)&&Ne.B(z.width,E)&&Ne.B(z.height,tt)||a.onViewportBoundsChanged(new ln(x,b,E,tt),z,y,!1)}}function zh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/E,ot=tt/b;return y===Ou?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zc?(y=ot>rt?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=fc,this.scale=zh(this,Ou),a!==fc&&(cu(this,!1),zc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Lt=Ye.prototype,Lt.BA=function(a,y){y===void 0&&(y=Ou);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ou||y===Zc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Zc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Vt(a.x,a.y)}},Lt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Vt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Lt.zz=function(a){if(a instanceof Me){this.eq=a;var y=Vt.alloc();this.fq=this.op(a.ga(Es,y)),Vt.free(y)}else this.eq=null,this.fq=ca};function zc(a,y,x,b,E,z){var tt=Vt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var lt=Vt.alloc();lt=a.eq.ga(Es,lt),rt=lt.x-a.fq.x/a.scale,ot=lt.y-a.fq.y/a.scale,E=Ya,Vt.free(lt)}(z||a.scrollMode===fc)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ot=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(ot=Math.min(ot+b/2,y.bottom+Math.max(x,E.bottom)-b/2),ot=Math.max(ot,y.top-Math.max(x,E.top)+b/2),ot-=b/2):ot>y.top?ot=y.top:ot<y.bottom-b&&(ot=y.bottom-b)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(ot)?ot:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Os(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),bh(a),Vt.free(tt)}Lt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Yu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Hi)return a}else if(a=Yu(this,a,function(x){return x.part}),a instanceof Hi)return a;return null},Lt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Js(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Yu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Js(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Lt.lz=function(a,y,x){return y===void 0&&(y=!0),jh(this,a,function(b){return b.part},y?function(b){return b instanceof Hi&&b.canSelect()}:null,x)};function jh(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof wn||E instanceof An||(E=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Lt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof wn||b instanceof An||(b=new An),Js(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Lt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),rd(this,a,function(E){return E instanceof Hi&&(!x||E.canSelect())},y,b)},Lt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof wn||E instanceof An||(E=new An),Js(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},Lt.Nu=function(a,y,x,b,E,z){var tt=new An;Js(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var ot=rt.value;ot.visible&&ot.Nu(a,y,x,b,tt,E,z)}return tt};function rd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof wn||E instanceof An||(E=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}Lt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),od(this,a,y,function(z){return z instanceof Hi&&(!b||z.canSelect())},x,E)},Lt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof wn||E instanceof An)&&(z=E),E=!0),z instanceof wn||z instanceof An||(z=new An),Js(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function od(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof wn||E instanceof An)&&(z=E),E=!0),z instanceof wn||z instanceof An||(z=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,b,E,z)}return z}Ye.prototype.acceptEvent=function(a){return Il(this,a,a instanceof MouseEvent)};function Il(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yd(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Mr&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=sc(y,y.target),b.targetObject=null,b}function sc(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Hd(a,y,x,b,E,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Mr&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function _l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ye.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Il(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(),_l(x,a)},Ye.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(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(),_l(x,a)},Ye.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),_l(x,a)},Ye.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),_l(x,a)},Ye.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Vt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Cr(new Vt(y,a),this.Ab):new Vt(y,a)};function yd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Vt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Vt.free(y)):x.documentPoint.h(tt,rt)}function Wd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Ye.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function lc(a){a.ld||Js(a),a.Va()}Ye.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Lt=Ye.prototype,Lt.Pz=function(){return this.kg},Lt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,xl(this),this.hf=!1,this.du=new Vt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Oi(function(){b.ld=!1,Ba(y,"Model"),a(b)},1)},Lt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ue.requestAnimationFrame(function(){y.kg&&y.bd()})}},Lt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),xl(this))};function Ch(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hh(a)||(y&&Js(a),x&&cu(a,!1))}function xl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];Fs(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ot){ot.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Ch(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(lh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Js(a),z=!1,(!a.hf||a.xh)&&(a.hf?Hc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Hc(a,!1)),z=!0),a.Jk=!1,Js(a),a.ou||lc(a),Ch(a,!0,!1),tt=!1,z?(x=ln.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Zd(a)),a.R("LayoutCompleted"),Ch(a,!0,!1),ln.free(x)):x.Ok&&x.Qw&&(a.Fg!==Al?a.scale=zh(a,a.Fg):a.yh!==Al?a.scale=zh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),cu(a,!0)),z&&tt&&a.eb("Initial Layout"),Js(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Zd(a){if(a.Fg!==Al)a.scale=zh(a,a.Fg);else if(a.yh!==Al)a.scale=zh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}cu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),lh(a)}function Js(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new An,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Pr&&b.U&65536&&(b.U=b.U^65536)})}}Lt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Pr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Pr&&x.isVisible()&&Ta(this,x);for(a.reset();a.next();)x=a.value,x instanceof _n&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Mo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ta(a,y){for(var x=sn(),b=sn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Pr?(Ru(z)||jl(z)||Kc(z))&&Ta(a,z):z instanceof _n?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(bn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();bn(b)}Lt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Lt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ce("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){gu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,tt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Xy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Pf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(kr.prototype.Cd=kr.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,gu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var ot=this.Ca,lt=Math.round(rt.x*ot)/ot,ut=Math.round(rt.y*ot)/ot;for(ot!==1&&z.scale(ot),rt.x===0&&rt.y===0||z.translate(-lt,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),rt=0;rt<E;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Pf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(kr.prototype.Cd=kr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Sr&&Sr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function hs(a,y,x,b,E,z,tt,rt,ot,lt){if(a.Ka!==null){a.ta===null&&Ce("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),lt===void 0&&(lt=!1),gu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var ft=a.Wa.s,vt=ft.length;try{var Ct=new ln(z.x,z.y,b.width/E,b.height/E),Et=Ct.copy();Et.Co(x),lh(a,Et),Js(a),a.Fd(ft,vt,a,Ct),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var Dt=a.Mb;y.scale(Dt,Dt);var Qt=kr.alloc();Qt.reset(),Qt.translate(x.left,x.top),Qt.scale(E),z.x===0&&z.y===0||Qt.translate(-z.x,-z.y),y.setTransform(Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),y.yc(),y instanceof Lu&&Xy(y,Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),kr.free(Qt),gl(a,y),y.globalAlpha=a.pb;var Wt=a.Qj("Grid");if(tt){var ae=new An,le=tt.iterator;for(le.reset();le.next();){var ge=le.value;ge instanceof Hi&&(lt||ge.layer!==Wt)&&(ge.Gj(),ae.add(ge))}for(lt=0;lt<vt;lt++)Sl(ft[lt],y,a,ae,ot);ae.each(function(Xe){return Xe.Gj()})}else for(ae=0;ae<vt;ae++){var Ee=ft[ae];Ee===Wt?lt&&Ee.gc(y,a,!0):Ee.gc(y,a,ot)}a.$i=!1,a.Yf&&Pf(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),lh(a),a.ib instanceof Lu&&(a.ib.Nj.PA(),a.redraw())}}}Lt.Gf=function(a){return this.Rg[a]},Lt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Lt.Tx=function(){this.Rg=new Ti,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Mr||Wi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function gl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Lt.Ql=function(a){return this.on[a]},Lt.sA=function(a,y){this.on[a]=y},Lt.Sx=function(){this.on=new Ti,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return this.nm(a)},Lt.nm=function(a){return fu(this,a),this};function fu(a,y){var x=a instanceof Yn,b=a instanceof Ye,E;for(E in y){E===""&&Ce("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var ot=E.substring(0,rt);x?z=a.fb(ot):(z=a[ot],z==null&&(z=a.toolManager[ot])),je(z)?tt=E.substr(rt+1):Ce("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!qn(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&qn(a.toolManager,tt))z=a.toolManager;else if(b&&Qa(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Di&&tt==="Changed"){a.Pe(y[tt]);continue}else Ce('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof Me&&z.Vw(tt)}}Lt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ci,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Lt.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")},Ye.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Uf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=ln.alloc(),Kf(this,this.computeBounds(b)),ln.free(b)),b=this.ta,b===null||b instanceof sd)))){var tt=this.Mb;E=this.Aa*tt;var rt=this.ya*tt,ot=this.scale*tt;z=Math.round(Math.round(y.x*ot)-Math.round(a.x*ot)),y=Math.round(Math.round(y.y*ot)-Math.round(a.y*ot)),ot=this.jw,a=this.oy,ot.width!==E&&(ot.width=E),ot.height!==rt&&(ot.height=rt),a.clearRect(0,0,E,rt),ot=190*tt;var lt=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(E-ut),Ct=Math.floor(rt-ft);a.drawImage(b.Oa,ut,ft,vt,Ct,0,0,vt,Ct),Pf(this.Yf,this)&&a.clearRect(0,0,ot,lt),b=sn(),a=sn(),Ct=Math.abs(z),vt=Math.abs(y);var Et=ut===0?0:E-Ct;ut=Vt.allocAt(Et,0),Ct=Vt.allocAt(Ct+Et,rt),a.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)));var Dt=this.Ab;if(Dt.reset(),Dt.scale(tt,tt),this.Ca!==1&&Dt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Dt.translate(-tt.x,-tt.y),Cr(ut,Dt),Cr(Ct,Dt),b.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Et=ft===0?0:rt-vt,ut.h(0,Et),Ct.h(E,vt+Et),a.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Cr(ut,Dt),Cr(Ct,Dt),b.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Pf(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,ut.h(E,rt),Ct.h(ot+E,lt+rt),a.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Cr(ut,Dt),Cr(Ct,Dt),b.push(new ln(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)))),Vt.free(ut),Vt.free(Ct),Ch(this,!1,!0),this.Ka===null&&Ce("No div specified"),this.ta===null&&Ce("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(gu(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,ot=Math.round(z.x*tt)/tt,lt=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-ot,-lt),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)ot=a[tt],ot.width!==0&&ot.height!==0&&E.rect(Math.floor(ot.x),Math.floor(ot.y),Math.ceil(ot.width),Math.ceil(ot.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),gl(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=b,tt.visible&&tt.pb!==0){lt=Zs(tt,E),ft=tt.Zq,ft.length=0,ut=this.scale,vt=ln.alloc(),Ct=tt.Pa.s,Dt=Ct.length,Et=ot.length;for(var Qt=0;Qt<Dt;Qt++){var Wt=Ct[Qt],ae=kf(Wt,Wt.actualBounds);t:{for(var le=2/ut,ge=4/ut,Ee=0;Ee<Et;Ee++){var Xe=ot[Ee];if(Xe.width!==0&&Xe.height!==0&&ae.Vu(Xe.x-le,Xe.y-le,Xe.width+ge,Xe.height+ge)){ae=!0;break t}}ae=!1}ae&&tt.Oj(E,Wt,this,ft,ut,vt,!0)}ln.free(vt),E.globalAlpha=lt}E.restore(),E.Vc(!0),this.Yf&&Pf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}bn(b),bn(a),this.ld=!1}}else this.bd();x&&(fl(this),this.bd(),id(this,!0))}else x?(fl(this),this.bd(),id(this,!0)):this.bd()}};function gu(a){a.pn!==!1&&(a.pn=!1,uc(a,a.Aa,a.ya))}function uc(a,y,x){bh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,ot=E.clientWidth||x+tt,lt=E.clientHeight||b+rt,ut=a.viewportBounds;E=ut.x;var ft=ut.y,vt=ut.width,Ct=ut.height;if((ot!==x+tt||lt!==b+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=lt,z=a.pn=!0,bh(a)),!a.hf||!a.viewportBounds.w())return!0;var Et=a.ku,Dt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qt=a.documentBounds,Wt=0,ae=0,le=0,ge=0,Ee=ut.width,Xe=ut.height,ci=a.rj;a.contentAlignment.sb()?(Qt.width>Ee&&(Wt=ci.left,ae=ci.right),Qt.height>Xe&&(le=ci.top,ge=ci.bottom)):(Wt=ci.left,ae=ci.right,le=ci.top,ge=ci.bottom);var Ei=Qt.width+Wt+ae,Si=Qt.height+le+ge;ci=a.scale;var $n=Ei>ot/ci,kn=Si>lt/ci;if(!(z||a.gf||a.Be||$n||kn))return!0;Wt=Qt.x-Wt,ot=ut.x,ae=Qt.right+ae,lt=ut.right+tt,le=Qt.y-le;var wr=ut.y;Qt=Qt.bottom+ge,ut=ut.bottom+rt;var cr="1px";if(ge="1px",a.scrollMode===fc&&($n||kn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,Wt+1<ot&&($n=Math.max((ot-Wt)*ci+a.Aa,$n)),ae>lt+1&&($n=Math.max((ae-lt)*ci+a.Aa,$n)),Ee+tt+1<Ei&&($n=Math.max((Ei-Ee)*ci+a.Aa,$n)),cr=$n.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,le+1<wr&&($n=Math.max((wr-le)*ci+a.ya,$n)),Qt>ut+1&&($n=Math.max((Qt-ut)*ci+a.ya,$n)),Xe+rt+1<Si&&($n=Math.max((Si-Xe)*ci+a.ya,$n)),ge=$n.toString()+"px")),$n=cr!=="1px",kn=ge!=="1px",$n&&kn||!$n&&!kn||(kn&&(lt-=a.Db),$n&&(ut-=a.Db),Ei<Ee+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Wt+1<ot&&(tt=Math.max((ot-Wt)*ci+a.Aa,tt)),ae>lt+1&&(tt=Math.max((ae-lt)*ci+a.Aa,tt)),Ee+1<Ei&&(tt=Math.max((Ei-Ee)*ci+a.Aa,tt)),cr=tt.toString()+"px"),$n=cr!=="1px",tt=a.ya,$n!==a.Be&&(tt=$n?a.ya-a.Db:a.ya+a.Db),Si<Xe+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,le+1<wr&&(rt=Math.max((wr-le)*ci+tt,rt)),Qt>ut+1&&(rt=Math.max((Qt-ut)*ci+tt,rt)),Xe+1<Si&&(rt=Math.max((Si-Xe)*ci+tt,rt)),ge=rt.toString()+"px"),kn=ge!=="1px"),a.qr&&$n===a.Be&&kn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if($n!==a.Be&&(cr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=$n,Dt.style.width=cr,kn!==a.gf&&(ge==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Vt.alloc(),kn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Vt.free(rt))),z&&bh(a),a.gf=kn,Dt.style.height=ge,a.gu=!0,z&&(a.pn=!0),y=Et.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ee+1<Ei?y=(a.position.x-Wt)*ci:Wt+1<ot?y=Et.scrollWidth-Et.clientWidth:ae>lt+1&&(y=a.position.x*ci)),a.tn)switch(a.bu){case"negative":y=-(Et.scrollWidth-y-Et.clientWidth);break;case"reverse":y=Et.scrollWidth-y-Et.clientWidth}return Et.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xe+1<Si?Et.scrollTop=(a.position.y-le)*ci:le+1<wr?Et.scrollTop=Et.scrollHeight-Et.clientHeight:Qt>ut+1&&(Et.scrollTop=a.position.y*ci)),ot=a.Aa,lt=a.ya,Et.style.width=ot+(a.gf?a.Db:0)+"px",Et.style.height=lt+(a.Be?a.Db:0)+"px",x!==ot||b!==lt||a.animationManager.zb?(x=ln.allocAt(E,ft,vt,Ct),a.onViewportBoundsChanged(x,a.viewportBounds,ci,z),ln.free(x),!1):!0}Lt=Ye.prototype,Lt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ce("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&&Ce('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(Qn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Lt.oi=function(a){this.partManager.oi(a);var y=this;Lf(a,function(x){dc(y,x)}),(a instanceof Mo||a instanceof Pr&&a.placeholder!==null)&&a.v(),a.data!==null&&Lf(a,function(x){sy(y.partManager,x)}),jl(a)!==!0&&Kc(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Lt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Lf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Lt.remove=function(a){Gd(this,a,!0)};function Gd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(di,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Lt.Is=function(a,y){if(y===void 0&&(y=!1),yn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new An,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Lt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Ye.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=gf(this)),this.toolManager!==null){var E=new Ci;if(a!==null)if(yn(a))for(var z=0;z<a.length;z++)Du(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Du(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Du(this,E,a.value,x,b);for(a=this.nodes;a.next();)Du(this,E,a.value,x,b);for(a=this.links;a.next();)Du(this,E,a.value,x,b)}Uu(this,E,y,b,x)}};function Du(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=gf(a)),x instanceof fi){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Pr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Du(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,ot=tt.toNode;rt!==null&&y.contains(rt)&&ot!==null&&y.contains(ot)&&Du(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Du(a,y,x.value,b,E)}else if(x instanceof _n)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Du(a,y,x.value,b,E);else x instanceof Mo||y.add(x,a.Pd(E,x,x.location))}function Uu(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Vt.alloc(),tt=Vt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||hc(a,y);for(var rt=sn(),ot=sn(),lt=y.iterator,ut=Vt.alloc();lt.next();){var ft=lt.key,vt=lt.value;if(ft.Zc()){var Ct=mf(a,ft,y);Ct!==null?rt.push(new it(ft,vt,Ct)):(!E||ft.canMove())&&(Ct=vt.point,z.assign(Ct),a.computeMove(ft,z.add(tt),b,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new Vt),vt.shifted.assign(ut.re(Ct)))}else lt.key instanceof _n&&ot.push(lt.sa)}for(Vt.free(ut),E=rt.length,lt=0;lt<E;lt++)ft=rt[lt],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Vt),ft.node.location=z.add(ft.Su.shifted);for(E=Vt.alloc(),lt=Vt.alloc(),ft=ot.length,vt=0;vt<ft;vt++){var Et=ot[vt];if(Ct=Et.key,Ct instanceof _n)if(Ct.suspendsRouting){Ct.Tg=null,ut=Ct.fromNode;var Dt=Ct.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Dt=Et.value.point,Ct.dragComputation===null)y.add(Ct,a.Pd(b,Ct,tt)),wc(Ct,tt.x-Dt.x,tt.y-Dt.y);else{Et=Vt.allocAt(0,0),(ut=Ct.i(0))&&ut.w()&&Et.assign(ut);var Qt=ut=Vt.alloc().assign(Et).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Qt=Vt.alloc(),pf(a,Ct,ut,Qt,b)),ut.assign(Ct.dragComputation(Ct,ut,Qt)).re(Et),y.add(Ct,a.Pd(b,Ct,ut)),wc(Ct,ut.x-Dt.x,ut.y-Dt.y),Vt.free(Et),Vt.free(ut),Qt!==ut&&Vt.free(Qt)}else ut!==null&&(E.assign(ut.location),Qt=y.I(ut),Qt!==null&&E.re(Qt.point)),Dt!==null&&(lt.assign(Dt.location),Qt=y.I(Dt),Qt!==null&<.re(Qt.point)),ut!==null&&Dt!==null?E.Xa(lt)?(ut=Et.value.point,Dt=z,Dt.assign(E),Dt.re(ut),y.add(Ct,a.Pd(b,Ct,E)),wc(Ct,Dt.x,Dt.y)):(Ct.suspendsRouting=!1,Ct.bb()):(Et=Et.value.point,ut=ut!==null?E:Dt!==null?lt:tt,y.add(Ct,a.Pd(b,Ct,ut)),wc(Ct,ut.x-Et.x,ut.y-Et.y))}else(Ct.fromNode===null||Ct.toNode===null)&&(ut=Et.value.point,y.add(Ct,a.Pd(b,Ct,tt)),wc(Ct,tt.x-ut.x,tt.y-ut.y))}Vt.free(z),Vt.free(tt),Vt.free(E),Vt.free(lt),bn(rt),bn(ot),x||(Js(a),Bu(a,y))}}Ye.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Vt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Vt.alloc(),pf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ot=a.maxLocation,lt=ot.x;return isNaN(lt)&&(lt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ot=ot.y,isNaN(ot)&&(ot=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,lt)),Math.max(tt,Math.min(x.y,ot))),E!==y&&Vt.free(E),b};function gf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function pf(a,y,x,b,E){if(E===void 0&&(E=gf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,rt=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var ot=z.gridCellSize;isNaN(a)&&(a=ot.width),isNaN(y)&&(y=ot.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Vt.allocAt(0,0),z.yi(0,0,a,y,E),Ne.No(x.x,x.y,rt+z.x,tt+z.y,a,y,b),Vt.free(z)}}function hc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof _n&&(y.suspendsRouting=!0)}function Bu(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof _n&&(x.suspendsRouting=!1,Uv(x)&&x.bb())}a.Mr=!1}}function mf(a,y,x){return y=y.containingGroup,y!==null&&(a=mf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Lt=Ye.prototype,Lt.Pd=function(a,y,x){if(x===void 0)return new Kd(qr);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Kd(new Vt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Kd(x.copy())};function Wf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ce("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ce("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ce("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ce("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&Ce("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Lt.Al=function(a){Wf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Qn,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Lt.Ww=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(di,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Qn,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Lt.Cy=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(di,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Qn,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Lt.kA=function(a){if(a.diagram!==this&&Ce("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(di,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Lt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Lt.Yw=function(a){return this.pf===null&&(this.pf=new wn),this.pf.add(a),this.model.Pe(a),this},Lt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Lt.Pe=function(a){return this.zg===null&&(this.zg=new wn),this.zg.add(a),this},Lt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Lt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==mn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Lt.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new dn;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=tt,this.ds(rt)},Lt.g=function(a,y,x,b,E){this.cb(Zn,a,this,y,x,b,E)},Ye.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Zn){var E=a.object;if(Ea(E,a.propertyName,a.I(y)),E instanceof Me){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Qn){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof Yn)if(typeof rt=="number"&&ot instanceof Me){y?tt.pc(rt):tt.Gb(rt,ot);var lt=tt.part;lt!==null&<.Wb()}else typeof rt=="number"&&ot instanceof Ns&&(ot.isRow?hS(tt,rt,y?void 0:ot):dS(tt,rt,y?void 0:ot));else if(tt instanceof ba){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof Hi&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof Ye?typeof rt=="number"&&ot instanceof ba&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):Ce("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===di){var ft=a.object,vt=a.oldParam,Ct=a.oldValue;if(ft instanceof Yn)typeof vt=="number"&&Ct instanceof Me?y?ft.Gb(vt,Ct):ft.pc(vt):typeof vt=="number"&&Ct instanceof Ns&&(Ct.isRow?hS(ft,vt,y?Ct:void 0):dS(ft,vt,y?Ct:void 0));else if(ft instanceof ba){var Et=a.newParam===!0;typeof vt=="number"&&Ct instanceof Hi&&(y?0>ft.Pa.indexOf(Ct)&&ft.oi(vt,Ct,Et):(Ct.isSelected=!1,Ct.isHighlighted=!1,Ct.Wb(),ft.pc(Et?vt:-1,Ct,Et)))}else ft instanceof Ye?typeof vt=="number"&&Ct instanceof ba&&(y?(Ct.Xe(this),this.Wa.Gb(vt,Ct)):this.Wa.mb(vt)):Ce("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==mn&&Ce("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ye.prototype.eb=function(a){return this.undoManager.eb(a)},Ye.prototype.Kf=function(){return this.undoManager.Kf()},Ye.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ye.prototype.rp=function(){this.partManager.rp()};function vf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bh(a),a.N(),a.Ee=!0,b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,lt=a.contentAlignment;isNaN(rt)&&(lt.$c()?lt.Hf(Pu)?rt=0:lt.Hf(vl)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(ot)&&(lt.$c()?lt.Hf(Zu)?ot=0:lt.Hf(Ml)&&(ot=tt-1):ot=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Vt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Vt.free(z),a.Ca=x,bh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),cu(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ye.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Al||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof zn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ai(E,this)),this.vb||this.invalidateViewport(a,y),lh(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function lh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ei.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot],ut=Math.abs(lt.interval);2>ut||(pv(lt.figure)?z=z*ut/Ne.vx(z,ut):E=E*ut/Ne.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ln.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ln.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,ln.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Vt.alloc(),Ne.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ei.free(b),x.part.location=y,Vt.free(y)}}Ye.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Ye.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))},Ye.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Hi||Ce("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Hi||Ce("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ye.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Lt=Ye.prototype,Lt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Lt.Jz=function(a){a=new An().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 Hi||Ce("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Lt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Vt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Vt.free(z);return}Ce("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):Ce("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Vt.free(z)},Lt.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)},Lt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Lt.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)},Lt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,rt=y.m12,ot=y.m21,lt=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+b*ot+ut;y=x*rt+b*lt+ft;var Ct=E*tt+b*ot+ut;return a=E*rt+b*lt+ft,b=x*tt+z*ot+ut,x=x*rt+z*lt+ft,tt=E*tt+z*ot+ut,E=E*rt+z*lt+ft,z=Math.min(vt,Ct),vt=Math.max(vt,Ct),Ct=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),vt=Math.max(vt,b),Ct=Math.min(Ct,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),Ct=Math.min(Ct,E),y=Math.max(y,E),new ln(z,Ct,vt-z,y-Ct)},Lt.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),Cr(a.copy(),this.Ab)};function Sg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Zf(a){return a=Zh.get(a),a!==null?new a:new Go}Ye.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===mn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(ot){return ot.diagram=E}),a.mouseMoveTools.each(function(ot){return ot.diagram=E}),a.mouseUpTools.each(function(ot){return ot.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===mn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Js(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||fo(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(Sg(this),this.As.clear(),Ha(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Oi(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function dc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Sd(a,y[b])}function Sd(a,y){if(y instanceof iu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof An&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Gf(a,y){if(y instanceof iu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof An&&x.Bg.remove(a),Tg(b));break}}}}}Ye.prototype.Wd=function(){this.partManager.Wd()},Ye.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ye.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ye.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ye.prototype.Vb=function(a){return this.partManager.Vb(a)},Ye.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Lt=Ye.prototype,Lt.Lc=function(a){return this.partManager.Lc(a)},Lt.ii=function(a){return this.partManager.ii(a)},Lt.Kc=function(a){return this.partManager.Kc(a)},Lt.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:Lr(vi(y)))},Lt.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:Lr(vi(y)))};function bh(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Kf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),cu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Lt.Va=function(){if(this.Zi){var a=ln.alloc();Kf(this,this.computeBounds(a)),ln.free(a)}},Lt.rz=function(){for(var a=new An,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},Lt.qz=function(){return this.ai.iterator},Lt.Uz=function(a){Js(this),a&&jc(this,!0),this.ld?Hc(this,!1):(this.Jk=!0,xl(this))};function jc(a,y){for(var x=a.ai.iterator;x.next();)yf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function yf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)yf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Hc(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ba(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Vf(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Js(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||fo(z),a.aa=x}}}function Vf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vf(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Ta(a,y),E.isValidLayout=!0):a.xh=!0)}}Lt.yz=function(){for(var a=new wn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function sp(a){function y(E){var z=E.toLowerCase(),tt=new wn;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new Ci,b=new Ci;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function Qa(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Lo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ce("Unknown DiagramEvent name: "+y)}Lt.Bj=function(a,y){return a=Lo(this,a),a!==null&&a.add(y),this},Lt.am=function(a,y){a=Lo(this,a),a!==null&&a.remove(y)},Lt.R=function(a,y,x){var b=Lo(this,a),E=new We;if(E.diagram=this,a=Qa(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Xo(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Lt.Yj=function(a,y){return Va(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ye.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,a):a.assign(this.documentBounds)};function Va(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Op(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=Qs(a,x)),x===null){y=ln.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&ad(a,tt,b,y)}ln.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=ln.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof fi&&ad(a,tt,b,y);ln.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&r1(E);return E}function Qs(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Qs(a,y.containingGroup):null}function ad(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(zg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Cc,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Cc}else if(y instanceof Pr)for(y=y.memberParts;y.next();)E=y.value,E instanceof fi&&ad(a,E,x,b)}}function Rl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ye.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Wh(this)};function Wh(a){a.vk===-1&&(a.vk=Oi(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=ln.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Kf(a,y),ln.free(y),a.Fc=!0,a.bd(),Wh(a))}},a.vp))}Ye.prototype.ug=function(){this.vk!==-1&&(ue.clearTimeout(this.vk),this.vk=-1)},Ye.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=ln.allocAt(0,0,b.width*E,b.height*E);var z=Vt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(qr)||(y=new Vt(y.x+z.x/E,y.y+z.y/E)),ln.free(b),Vt.free(z),y},Lt=Ye.prototype,Lt.Cs=function(){return null},Lt.av=function(){return null},Lt.bs=function(a,y){this.pj.add(a,y)},Lt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Pr&&(y.$p=null)})};function uh(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>ot?y(x,E,rt):ue.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,ot=x.callbackTimeout||300,lt=+new Date;return ue.requestAnimationFrame(function(){b()}),null}Lt.Wz=function(a){return $a?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Lt.Jx=function(a){return a===void 0&&(a={}),uh(this,this.Xz,a)},Lt.Xz=function(a,y,x){var b=cc(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case wf+"data":E=b.getImageData(0,0,x.width,x.height);break;case wf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Ce('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function cc(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ce("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new ei(1/0,1/0):new ei(2e3,2e3));var rt=y.position||null,ot=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,Ct=y.elementFinished||null,Et=y.showTemporary;Et===void 0&&(Et=!ft),y=y.showGrid,y===void 0&&(y=Et),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new Zi(lt):lt instanceof Zi||Ce("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),ft=new ch(null,vt,void 0,!0);var Dt=ft.context;if(!(E||z||ot||rt))return ft.width=a.Aa+Math.ceil(lt.left+lt.right),ft.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=Ct,hs(a,b.context,lt,new ei(ft.width,ft.height),a.Ca,a.pa,ot,ut,Et,y),b.context):(a.Xm=!1,hs(a,Dt,lt,new ei(ft.width,ft.height),a.Ca,a.pa,ot,ut,Et,y),a.Xm=!0,ft.context);var Qt=a.Pp,Wt=a.documentBounds.copy();if(Wt.Fv(a.yb),Et)for(var ae=a.Wa.s,le=ae.length,ge=0;ge<le;ge++){var Ee=ae[ge];if(Ee.visible&&Ee.isTemporary){Ee=Ee.Pa.s;for(var Xe=Ee.length,ci=0;ci<Xe;ci++){var Ei=Ee[ci];Ei.isInDocumentBounds&&Ei.isVisible()&&(Ei=Ei.actualBounds,Ei.w()&&Wt.ed(Ei))}}}if(ae=new Vt(Wt.x,Wt.y),ot!==null){for(le=new ln(0,0,0,0),ge=!0,Ee=ot.iterator,Ee.reset();Ee.next();)Xe=Ee.value,Xe instanceof Hi&&(ci=Xe.layer,ci!==null&&!ci.visible||ci!==null&&!Et&&ci.isTemporary||!Xe.isVisible()||(Xe=Xe.actualBounds,Xe.w()&&(ge?(ge=!1,le.assign(Xe)):le.ed(Xe))));Wt.width=le.width,Wt.height=le.height,ae.x=le.x,ae.y=le.y}return rt!==null&&rt.w()&&(ae=rt,z||(z=Qt)),le=rt=0,lt!==null&&(rt=lt.left+lt.right,le=lt.top+lt.bottom),ge=Ee=0,E!==null&&(Ee=E.width,ge=E.height,isFinite(Ee)&&(Ee=Math.max(0,Ee-rt)),isFinite(ge)&&(ge=Math.max(0,ge-le))),E!==null&&z!==null?(z==="NaN"&&(z=Qt),E.w()?(E=Ee,Wt=ge):isNaN(ge)?(E=Ee,Wt=Wt.height*z):(E=Wt.width*z,Wt=ge)):E!==null?E.w()?(z=Math.min(Ee/Wt.width,ge/Wt.height),E=Ee,Wt=ge):isNaN(ge)?(z=Ee/Wt.width,E=Ee,Wt=Wt.height*z):(z=ge/Wt.height,E=Wt.width*z,Wt=ge):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Wt.width,(tt.height-le)/Wt.height),z>Qt?(z=Qt,E=Wt.width,Wt=Wt.height):(E=tt.width,Wt=tt.height)):(E=Wt.width*z,Wt=Wt.height*z):(z=Qt,E=Wt.width,Wt=Wt.height),lt!==null?(E+=rt,Wt+=le):lt=new Zi(0),tt!==null&&(Qt=tt.width,tt=tt.height,isNaN(Qt)&&(Qt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Qt)&&(E=Math.min(E,Qt)),isFinite(tt)&&(Wt=Math.min(Wt,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Wt),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=Ct,hs(a,b.context,lt,new ei(Math.ceil(E),Math.ceil(Wt)),z,ae,ot,ut,Et,y),b.context):(a.Xm=!1,hs(a,Dt,lt,new ei(Math.ceil(E),Math.ceil(Wt)),z,ae,ot,ut,Et,y),a.Xm=!0,ft.context)}fe.Object.defineProperties(Ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new sd(this,ue.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new sd(this,ue.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(ue,"resize",this.Ov,!1),this.removeEventListener(ue,"wheel",this.$j,!0),sh===this&&(sh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ph(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&pi(a,"0 <= value <= 1",Ye,"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),cu(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),cu(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),cu(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),cu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&pi(a,">= 0",Ye,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&pi(a,">= 0",Ye,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else pi(a,">= 0",Ye,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||Sg(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Ce("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=vd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ba(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Zf(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(ue,"pointermove",this.dk,!0),this.addEventListener(ue,"pointerdown",this.ui,!0),this.addEventListener(ue,"pointerup",this.fk,!0),this.addEventListener(ue,"pointerout",this.ek,!0),this.addEventListener(ue,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ue,"wheel",this.$j,!0),this.addEventListener(ue,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ue,"pointermove",this.dk,!0),this.removeEventListener(ue,"pointerdown",this.ui,!0),this.removeEventListener(ue,"pointerup",this.fk,!0),this.removeEventListener(ue,"pointerout",this.ek,!0),this.removeEventListener(ue,"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(ue,"wheel",this.$j,!0),this.removeEventListener(ue,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Vt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Os(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bh(this):(this.vb=!0,a=this.scale,zc(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Vt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Rd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Rd(this)),a.type!==Yn.Grid&&Ce("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),lh(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),bh(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||Ce("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===fc&&cu(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,cu(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,vf(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&vf(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Al&&cu(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()||Ce("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()||Ce("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):pi(a,"> 0",Ye,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):pi(a,"> 0",Ye,"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),cu(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Ce("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gc&&a!==ks&&a!==xg&&Ce("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 ei(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),fe.Object.defineProperties(Ye,{licenseKey:{get:function(){return fp.jc()},set:function(a){fp.add(a.replace(/\s/g,""))}},version:{get:function(){return xf}}}),Ye.prototype.makeImageData=Ye.prototype.Jx,Ye.prototype.makeImage=Ye.prototype.Wz,Ye.prototype.cacheGroupExternalLinks=Ye.prototype.Fu,Ye.prototype.addRenderer=Ye.prototype.bs,Ye.prototype.makeSVG=Ye.prototype.av,Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.stopAutoScroll=Ye.prototype.ug,Ye.prototype.doAutoScroll=Ye.prototype.gs,Ye.prototype.isUnoccupied=Ye.prototype.Yj,Ye.prototype.raiseDiagramEvent=Ye.prototype.R,Ye.prototype.removeDiagramListener=Ye.prototype.am,Ye.prototype.addDiagramListener=Ye.prototype.Bj,Ye.prototype.findTreeRoots=Ye.prototype.yz,Ye.prototype.layoutDiagram=Ye.prototype.Uz,Ye.prototype.findTopLevelGroups=Ye.prototype.qz,Ye.prototype.findTopLevelNodesAndLinks=Ye.prototype.rz,Ye.prototype.ensureBounds=Ye.prototype.Va,Ye.prototype.findLinksByExample=Ye.prototype.ls,Ye.prototype.findNodesByExample=Ye.prototype.ms,Ye.prototype.findLinkForData=Ye.prototype.Kc,Ye.prototype.findNodeForData=Ye.prototype.ii,Ye.prototype.findPartForData=Ye.prototype.Lc,Ye.prototype.findLinkForKey=Ye.prototype.findLinkForKey,Ye.prototype.findNodeForKey=Ye.prototype.Vb,Ye.prototype.findPartForKey=Ye.prototype.findPartForKey,Ye.prototype.rebuildParts=Ye.prototype.Wd,Ye.prototype.transformViewToDoc=Ye.prototype.Ps,Ye.prototype.transformRectDocToView=Ye.prototype.zA,Ye.prototype.transformDocToView=Ye.prototype.op,Ye.prototype.centerRect=Ye.prototype.es,Ye.prototype.scrollToRect=Ye.prototype.tv,Ye.prototype.scroll=Ye.prototype.scroll,Ye.prototype.highlightCollection=Ye.prototype.Jz,Ye.prototype.highlight=Ye.prototype.Iz,Ye.prototype.selectCollection=Ye.prototype.rA,Ye.prototype.select=Ye.prototype.select,Ye.prototype.updateAllRelationshipsFromData=Ye.prototype.rp,Ye.prototype.updateAllTargetBindings=Ye.prototype.updateAllTargetBindings,Ye.prototype.commit=Ye.prototype.commit,Ye.prototype.rollbackTransaction=Ye.prototype.Kf,Ye.prototype.commitTransaction=Ye.prototype.eb,Ye.prototype.startTransaction=Ye.prototype.Ea,Ye.prototype.raiseChanged=Ye.prototype.g,Ye.prototype.raiseChangedEvent=Ye.prototype.cb,Ye.prototype.removeChangedListener=Ye.prototype.ik,Ye.prototype.addChangedListener=Ye.prototype.Pe,Ye.prototype.removeModelChangedListener=Ye.prototype.mA,Ye.prototype.addModelChangedListener=Ye.prototype.Yw,Ye.prototype.findLayer=Ye.prototype.Qj,Ye.prototype.removeLayer=Ye.prototype.kA,Ye.prototype.addLayerAfter=Ye.prototype.Cy,Ye.prototype.addLayerBefore=Ye.prototype.Ww,Ye.prototype.addLayer=Ye.prototype.Al,Ye.prototype.moveParts=Ye.prototype.moveParts,Ye.prototype.copyParts=Ye.prototype.Kj,Ye.prototype.removeParts=Ye.prototype.Is,Ye.prototype.remove=Ye.prototype.remove,Ye.prototype.add=Ye.prototype.add,Ye.prototype.clearDelayedGeometries=Ye.prototype.bx,Ye.prototype.setProperties=Ye.prototype.nm,Ye.prototype.attach=Ye.prototype.Du,Ye.prototype.set=Ye.prototype.set,Ye.prototype.resetInputOptions=Ye.prototype.Sx,Ye.prototype.setInputOption=Ye.prototype.sA,Ye.prototype.getInputOption=Ye.prototype.Ql,Ye.prototype.resetRenderingHints=Ye.prototype.Tx,Ye.prototype.setRenderingHint=Ye.prototype.Xx,Ye.prototype.getRenderingHint=Ye.prototype.Gf,Ye.prototype.maybeUpdate=Ye.prototype.bd,Ye.prototype.requestUpdate=Ye.prototype.$b,Ye.prototype.delayInitialization=Ye.prototype.Xy,Ye.prototype.isUpdateRequested=Ye.prototype.Pz,Ye.prototype.invalidateDocumentBounds=Ye.prototype.Ya,Ye.prototype.findObjectsNear=Ye.prototype.og,Ye.prototype.findPartsNear=Ye.prototype.mz,Ye.prototype.findObjectsIn=Ye.prototype.Cf,Ye.prototype.findPartsIn=Ye.prototype.ux,Ye.prototype.findObjectsAt=Ye.prototype.ji,Ye.prototype.findPartsAt=Ye.prototype.lz,Ye.prototype.findObjectAt=Ye.prototype.ic,Ye.prototype.findPartAt=Ye.prototype.Ol,Ye.prototype.focusObject=Ye.prototype.zz,Ye.prototype.alignDocument=Ye.prototype.Jy,Ye.prototype.zoomToRect=Ye.prototype.BA,Ye.prototype.zoomToFit=Ye.prototype.zoomToFit,Ye.prototype.diagramScroll=Ye.prototype.kx,Ye.prototype.focus=Ye.prototype.focus;var Zh=new Ci,hh=null,$a=ue.document!==void 0,Sf=null,Wc="",Al=new Oe(Ye,"None",0),Ou=new Oe(Ye,"Uniform",1),Zc=new Oe(Ye,"UniformToFill",2),Yf=new Oe(Ye,"CycleAll",10),lp=new Oe(Ye,"CycleNotDirected",11),up=new Oe(Ye,"CycleNotDirectedFast",12),hp=new Oe(Ye,"CycleNotUndirected",13),dp=new Oe(Ye,"CycleDestinationTree",14),cp=new Oe(Ye,"CycleSourceTree",15),fc=new Oe(Ye,"DocumentScroll",1),Uf=new Oe(Ye,"InfiniteScroll",2),gc=new Oe(Ye,"TreeParentCollapsed",21),ks=new Oe(Ye,"AllParentsCollapsed",22),xg=new Oe(Ye,"AnyParentsCollapsed",23),fp=new wn,xf="2.3.10",wf="image",Xf=null,dm=!1;function wl(){if($a){var a=ue.document.createElement("canvas"),y=a.getContext("2d"),x=ai("7ca11abfd022028846");y[x]=ai("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",pn.Dx+"4ae6247590da4bb21c324ba3a84e385776",kr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ne.za],E=1;5>E;E++)y[ai("7ca11abfd7330390")](ai(b[E-1]),10,15*E);for(y[x]=ai("39f046ebb36e4b"),x=1;5>x;x++)y[ai("7ca11abfd7330390")](ai(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(kr.prototype.Cd=kr.prototype.Eu),Xf=a}}Ye.className="Diagram",Ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ue.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ye?y.H:null},Ye.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},Ye.useDOM=function(a){$a=a?ue.document!==void 0:!1},Ye.isUsingDOM=function(){return $a},Ye.None=Al,Ye.Uniform=Ou,Ye.UniformToFill=Zc,Ye.CycleAll=Yf,Ye.CycleNotDirected=lp,Ye.CycleNotDirectedFast=up,Ye.CycleNotUndirected=hp,Ye.CycleDestinationTree=dp,Ye.CycleSourceTree=cp,Ye.DocumentScroll=fc,Ye.InfiniteScroll=Uf,Ye.TreeParentCollapsed=gc,Ye.AllParentsCollapsed=ks,Ye.AnyParentsCollapsed=xg;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pf(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=ue[ai("76a715b2f73f148a")][ai("72ba13b5")]||"";if(a.Rc=!0,$a){var b=Ye[ai("76a115b6ed251eaf4692")];if(b)for(var E=fp.iterator;E.next()&&(b=E.value,b=ai(b).split(ai("39e9")),!(6>b.length));){var z=ai(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=ai(pn[ai("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ue[ai("74a900bae4370f8b51")][ai("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[ai("73a612b6fb191d")](ai("3aad1ab6e022098b4dc4")),z=ai(b[2]),-1<tt&&(rt=rt[ai("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[ai("76ad18b4f73e")],rt=x[ai("73a612b6fb191d")](ai("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[ai("73a612b6fb191d")](z),0>tt&&z!==ai("7da71ca0ad381e90")&&(tt=y[ai("73a612b6fb191d")](ai("76a715b2ef3e149757"))),0>tt&&(tt=y[ai("73a612b6fb191d")](ai("76a715b2ef3e149757"))),0>tt&&(tt=y[ai("73a612b6fb191d")](ai("2bfa41fdb3784bca12"))),0>tt&&(tt=x[ai("73a612b6fb191d")](ai("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[ai("73a612b6fb191d")](ai("35"))||y[ai("73a612b6fb191d")](ai("35"))===-1),!a.Rc||x[ai("73a612b6fb191d")](ai("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ai("73a612b6fb191d")](z)),!a.Rc)||(tt=ue[ai("76a715b2f73f148a")][ai("69ad17a1e03e")],rt=tt[ai("73a612b6fb191d")](ai("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[ai("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=ue.document.createElement("div");for(var ot=b[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),b="",b+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[ai("79a417a0f0181a8946")]=b,ue.document[ai("78a712aa")]){ue.document[ai("78a712aa")][ai("7bb806b6ed32388c4a875b")](tt),ot=ue.getComputedStyle(tt).getPropertyValue(ai("78a704b7e62456904c9b12701b6532a8"));var lt=ue.getComputedStyle(tt).getPropertyValue(ai("75b817b0ea2202"));if(ue.document[ai("78a712aa")][ai("68ad1bbcf533388c4a875b")](tt),ot){if(tt=ue[ai("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(ai("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[ai("76ad18b4f73e")],E=x[ai("73a612b6fb191d")](ai("35e7"))+2;E<ut;E++)y+=x[E];x=y[ai("73a612b6fb191d")](ai("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ai("73a612b6fb191d")](ai("35")))}}}return 0<a.Rc&&a!==a.wy}cm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new Vt:a,this.o=new Vt}fe.Object.defineProperties(Kd.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Jf="DraggingInfo";Kd.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ei(NaN,NaN).freeze(),this.gridSnapCellSpot=Es,this.gridSnapOrigin=new Vt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||ue.Element&&a instanceof Element)var x=Ye.call(this,a)||this;else x=Ye.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}Ze(ct,Ye);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Jl,a.layout=new ol}ct.prototype.reset=function(){Ye.prototype.reset.call(this),dt(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||ue.Element&&a instanceof Element)var x=Ye.call(this,a)||this;else x=Ye.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Hi;var E=new Tr;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Zi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new qt,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new Vt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){b.Ya(),Rt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Rt(b)},x.autoScale=Ou,x.vb=!1,y&&Object.assign(x,y),x}Ze(pt,Ye),pt.prototype.computePixelRatio=function(){return 1},pt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(gu(this),this.ql===null){var x=new ch(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Mt(this)}finally{this.ta=a,this.ib=y}}}Ye.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&Ce("No div specified"),this.ta===null&&Ce("No canvas specified"),!(this.ta instanceof sd)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){gu(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Mt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Mt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=ln.alloc().assign(a.viewportBounds).ed(y.viewportBounds),lh(y,E),ln.free(E),Js(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],ot=a;if(rt.visible&&rt.opacity!==0){var lt=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&<.layer===rt&&(rt=Zs(rt,E),lt.gc(E,ot),E.globalAlpha=rt);else{for(var ut=Zs(rt,E),ft=ot.scale,vt=ln.alloc(),Ct=rt.Pa.s,Et=Ct.length,Dt=0;Dt<Et;Dt++){var Qt=Ct[Dt];(b||Qt!==lt)&&rt.Oj(E,Qt,ot,null,ft,vt,!1)}ln.free(vt),E.globalAlpha=ut}}}}}function Rt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=ei.alloc();E.h(x.width,x.height),b.desiredSize=E,ei.free(E),a=2/a.scale,b instanceof Tr&&(b.strokeWidth=a),y.location=new Vt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return no;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Rt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},fe.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&Ce("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Rt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Rt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),pt.className="Overview";function qt(){ji.call(this),this.j=null}Ze(qt,ji),qt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Vt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Vt(a.x-this.j.x,a.y-this.j.y)),!0)},qt.prototype.doActivate=function(){this.j=null,ji.prototype.doActivate.call(this)},qt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Vt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Vt(a.x-this.j.x,a.y-this.j.y)}}},qt.className="OverviewDraggingTool";function Jt(){Or(this),this.H=sh,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=no,this.hb=!0,this.cg=null,this.ob=200}Jt.prototype.toString=function(){return"CommandHandler"},Jt.prototype.Xe=function(a){this.H=a},Jt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Mr?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Jt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Jt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof zn&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Jt.prototype.canStopCommand=function(){return!0},Jt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Jt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Jt.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 An,x=a.selection.iterator;x.next();)Yc(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Jt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Jt.prototype.copySelection=function(){var a=this.diagram,y=new An;for(a=a.selection.iterator;a.next();)Yc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Jt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Jt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Jt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Jt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Sf=null,Wc="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new wn,x.addAll(z),Sf=x,Wc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Jt.prototype.pasteFromClipboard=function(){var a=new An,y=Sf;if(y===null)return a;var x=this.diagram;if(Wc!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Jt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Uu(y,z,new Vt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Jt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Sf===null||Sf.count===0||Wc!==a.model.dataFormat)},Jt.prototype.undo=function(){this.diagram.undoManager.undo()},Jt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Jt.prototype.redo=function(){this.diagram.undoManager.redo()},Jt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Jt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Jt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Jt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Jt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Jt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Jt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Jt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ba(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=no):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),fo(y)},Jt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Jt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ot){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Ba(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=me(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ot=E.pop();0<E.length&&ot instanceof fi&&ot.isTreeExpanded&&(!(ot instanceof Pr)||ot.isSubGraphExpanded);)ot=E.pop();0<E.length?(ot instanceof Hi&&y.tv(ot.actualBounds),ot instanceof fi&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Pr&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof Hi&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Oi(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function me(a,y,x){if(y.isVisible())return x;if(y instanceof Mo)me(a,y.adornedPart,x);else if(y instanceof _n){var b=y.fromNode;b!==null&&me(a,b,x),y=y.toNode,y!==null&&me(a,y,x)}else y instanceof fi&&(b=y.labeledLink,b!==null&&me(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),me(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),me(a,y,x));return x}Jt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Hi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Jt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ba(y.animationManager,"Collapse Tree");var x=new wn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof fi&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Jt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof fi&&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 fi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Jt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ba(y.animationManager,"Expand Tree");var x=new wn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof fi&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Jt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof fi)||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 fi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Jt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new wn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new wn,ot=E.iterator;ot.next();){var lt=ot.value;z=!1;for(var ut=E.iterator;ut.next();)if(lt.Td(ut.value)){z=!0;break}z||rt.add(lt)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){E=!1;for(var vt=rt.iterator;vt.next();)if(!vt.value.Td(ft)){E=!0;break}if(E)ft=ft.containingGroup;else break}if(x instanceof Pr)fh(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ct=y.copyNodeData(x);je(Ct)&&(y.xf(Ct),b=a.ii(Ct))}if(b!==null){ft!==null&&this.isValidMember(ft,b)&&(b.containingGroup=ft);for(var Et=rt.iterator;Et.next();){var Dt=Et.value;this.isValidMember(b,Dt)&&(Dt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Jt.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 rn(a){var y=sn();for(a=a.iterator;a.next();){var x=a.value;x instanceof _n||y.push(x)}a=new An,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return bn(y),a}Jt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof _n)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Jt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new wn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Pr&&z.canUngroup()&&b.add(z)}var tt=new wn;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var lt=ot.containingGroup,ut=lt!==null&<.data!==null?x.wa(lt.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var vt=ft.value;if(vt.isSelected=!0,!(vt instanceof _n)){var Ct=vt.data;Ct!==null?x.mp(Ct,ut):vt.containingGroup=lt}}y.remove(ot)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Jt.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 Pr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.canUngroup())return!0;return!1},Jt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=rn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Jt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ba(y.animationManager,"Collapse SubGraph");var x=new wn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Pr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Jt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Pr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.isSubGraphExpanded)return!0;return!1},Jt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ba(y.animationManager,"Expand SubGraph");var x=new wn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Pr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Jt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Pr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&!y.isSubGraphExpanded)return!0;return!1},Jt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof oa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Jt.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 oa))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 oa&&x.editable}),a!==null))return!0;return!1},Jt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Me?E=a.ga(ho):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Vt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Io(x,!1,a)}},Jt.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)},Jt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Ci,a===null)return b;for(var z=a.iterator;z.next();)Du(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof _n&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},fe.Object.defineProperties(Jt.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||Ce("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}}}),Jt.className="CommandHandler",Rh=function(){return new Jt};function Me(){Or(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Vt(NaN,NaN).freeze(),this.jd=ys,this.Ab=new kr,this.wh=new kr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=dl,this.uc=new ln(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ln(NaN,NaN,NaN,NaN).freeze(),this.dc=new ln(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Hn,Dn,Ni,Ii,er,br,oo,Wr,xo,Jo;Me.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=He(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Me.prototype.Vw=function(a){var y=this.Dh;if(yn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Me.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Me.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},Me.prototype.copy=function(){return this.clone()},Lt=Me.prototype,Lt.qb=function(a){a.classType===_n?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ce("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Me&&(this.stretch=a)},Lt.toString=function(){return Fn(this.constructor)+"#"+uo(this)},Lt.th=function(){this.A!==null&&(this.A.nc=!0)};function zr(a){a.A===null?a.A=new $f:a.A.nc&&(a.A=a.A.copy())}Lt.Xc=function(){if(this.ba===null){var a=new gp;a.Xi=Ya,a.yj=Ya,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Lt.cb=function(a,y,x,b,E,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,tt),x===this&&a===Zn&&hl(this)&&va(this,rt,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Ci),tt=z.undoManager.transactionLevel===0,a.startCondition===Ws?tt=!0:a.startCondition===is&&(tt=!1),tt?(z=new Wa,Ca(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Ba(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Yn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof Yn&&Lf(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function va(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=L1(z,b,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,b)}else{if(rt=b.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,b)}tt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Lt.ks=function(a){return this.bindingId===a?this:null},Lt.g=function(a,y,x){this.cb(Zn,a,this,y,x)},Lt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new kr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Gs(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Lt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Do(a.x,a.y,0,0,0,b.height)<=y||Do(a.x,a.y,0,b.height,b.width,b.height)<=y||Do(a.x,a.y,b.width,b.height,b.width,0)<=y||Do(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Lt.se=function(){return!0},Lt.ca=function(a){var y=Vt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Vt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var ot=1/b;if(rt.width*b<E&&rt.height*b<E)return a=sa(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Vt.free(y),a}return E=!1,(this instanceof Mo||this instanceof Tr?sa(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Vt.free(y),E},Lt.gh=function(a){var y=this.naturalBounds;return sa(0,0,y.width,y.height,a.x,a.y)},Lt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ln.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Vt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Vt.free(E),ln.free(y),b},Lt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Vt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Vt.free(E),b},Lt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Vt.allocAt(0,0),E=Vt.allocAt(0,x.height),z=Vt.allocAt(x.width,x.height),tt=Vt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=ln.allocAt(0,0,x.width,x.height);var ot=Vt.allocAt(a.x,a.y);x.ca(y.Cd(ot))?rt=!0:(ot.h(a.x,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.y),x.ca(y.Cd(ot))&&(rt=!0)))),Vt.free(ot),ln.free(x),!rt&&(Ne.us(a,b,E)||Ne.us(a,E,z)||Ne.us(a,z,tt)||Ne.us(a,tt,b))&&(rt=!0)}return Vt.free(b),Vt.free(E),Vt.free(z),Vt.free(tt),rt},Lt.ga=function(a,y){if(y===void 0&&(y=new Vt),a instanceof Fi){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Lt.mi=function(a){a===void 0&&(a=new ln);var y=this.naturalBounds,x=this.oe,b=Vt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Fo(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Fo(a,b.x,b.y,0,0),Vt.free(b),a},Lt.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},Lt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Lt.qs=function(a,y){return y===void 0&&(y=new Vt),y.assign(a),this.oe.Cd(y),y},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ne.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*lt+ft,a=a*ot+y*ut+vt,y=x*rt+b*lt+ft,x=x*ot+b*ut+vt,E.h(0,0),b=this.naturalBounds,x=Ne.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},Me.prototype.measure=function(a,y,x,b){if(Ru(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Yn;switch(eu(this,!0)){case Dn:tt=E=0,rt&&(y=a=1/0);break;case Hn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case Ii:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case er:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;E>rt.width&&ot.width<rt.width&&(E=rt.width),tt>rt.height&&ot.height<rt.height&&(tt=rt.height),x=Math.max(E,ot.width),b=Math.max(tt,ot.height),rt.width<x&&(x=Math.min(ot.width,x)),rt.height<b&&(b=Math.min(ot.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Ce("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Fs(this,!1)}},Me.prototype.Wl=function(){},Me.prototype.Dd=function(){return!1},Me.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ln.alloc();z.assign(this.Ib),this.Ib.ka(),jl(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&vc(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof oa&&(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()||Ce("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),ln.free(z)},Lt=Me.prototype,Lt.eh=function(){};function kl(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=eu(a,!0),x===b&&z===E&&(y=Dn),y){case Dn:(x>b||z>E)&&(Fs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Hn:Fs(a,!0),a.measure(b,E,0,0);break;case Ii:Fs(a,!0),a.measure(b,z,0,0);break;case er:Fs(a,!0),a.measure(x,E,0,0)}}}Lt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),ko(a,y)||(x.oh(),this.Pn(x)))},Lt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof fi&&GS(a,this))},Lt.gc=function(a,y){if(!Xu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Yn&&vc(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(qa(this,a,lt,!0,!0,ot,rt),lt instanceof Zo&<.type===$u?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(qa(this,a,ut,!0,!1,ot,rt),ut instanceof Zo&&ut.type===$u?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&rl(this),lt=this.part,ot=!1;var ft=0;lt&&y.Gf("drawShadows")&&(ot=lt.isShadowed)&&(ut=lt.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var Ct=this.naturalBounds;vt=this.wh;var Et=vt.m11,Dt=vt.m21,Qt=vt.dx,Wt=vt.m12,ae=vt.m22,le=vt.dy,ge,Ee=ge=0;vt=ge*Et+Ee*Dt+Qt;var Xe=ge*Wt+Ee*ae+le;ge=Ct.width+ft,Ee=0;var ci=ge*Et+Ee*Dt+Qt;ge=ge*Wt+Ee*ae+le,Ee=Math.min(vt,ci);var Ei=Math.min(Xe,ge),Si=Math.max(vt+0,ci)-Ee,$n=Math.max(Xe+0,ge)-Ei;vt=Ee,Xe=Ei,ge=Ct.width+ft,Ee=Ct.height+ft,ci=ge*Et+Ee*Dt+Qt,ge=ge*Wt+Ee*ae+le,Ee=Math.min(vt,ci),Ei=Math.min(Xe,ge),Si=Math.max(vt+Si,ci)-Ee,$n=Math.max(Xe+$n,ge)-Ei,vt=Ee,Xe=Ei,ge=0,Ee=Ct.height+ft,ci=ge*Et+Ee*Dt+Qt,ge=ge*Wt+Ee*ae+le,Ee=Math.min(vt,ci),Ei=Math.min(Xe,ge),Si=Math.max(vt+Si,ci)-Ee,$n=Math.max(Xe+$n,ge)-Ei,vt=Ee,Xe=Ei,ft=y.viewportBounds,Ct=ft.x,Et=ft.y,vt=!(vt>ft.width+Ct||Ct>Si+vt||Xe>ft.height+Et||Et>$n+Xe)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof oa&&(a.font=this.font),vt){if(Xe=rt.se()?rt.naturalBounds:rt.actualBounds,Si=Math.max(tt.x,Xe.x),$n=Math.max(tt.y,Xe.y),ft=Math.min(tt.right,Xe.right)-Si,Ct=Math.min(tt.bottom,Xe.bottom)-$n,Et=this.tb,Et!==null&&(Si=Et.x,$n=Et.y,ft=Et.width,Ct=Et.height),Si>tt.width+tt.x||tt.x>Xe.width+Xe.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Si,$n,ft,Ct),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ot&&(Xe=lt.shadowOffset,a.Ev(Xe.x*y.scale*this.scale*y.Mb,Xe.y*y.scale*this.scale*y.Mb,lt.shadowBlur),Vd(a),a.shadowColor=lt.shadowColor)}ot&&this.shadowVisible===!0?Vd(a):ot&&this.shadowVisible===!1&&wd(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Iu(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&el(this,rt)&&this.shadowVisible===null&&wd(a),this.Ma!==null&&(a.yc(),pu(this,a,lt,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||el(this,rt))?(Eh(this,!0),this.shadowVisible===null&&wd(a)):Eh(this,!1),this.hh(a,y),ot&&this.l&512&&Vd(a),ut&&ot&&wd(a),vt&&(a.restore(),a.Vc(this instanceof Yn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function el(a,y){return y===null?!1:(vc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Yn.Auto||y.type===Yn.Spot)&&y.Pb()!==a)}Lt.Dv=function(){};function Iu(a,y,x,b){qa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Zo&&a.areaBackground.type===$u?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function pu(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,ot=x.height+E;qa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Zo&&a.Ma.type===$u?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,ot)}function Pl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Yn.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 Xu(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 b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&Pl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Vd(y),y.shadowColor=a.shadowColor}a instanceof oa&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Yn;var rt=a instanceof Yn?vc(a):!1;a.l&4096&&rl(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(pp(y,1,0,0,1,0,0),a.svg=y.ad):z?(pp(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):pp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var lt=tt.copy().Vj();y.rb.ha=[lt.m11,lt.m12,lt.m21,lt.m22,lt.dx,lt.dy],Iu(a,y,E,ot),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),pu(a,y,E,ot),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],pu(a,y,E,ot)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&Vd(y),rt&&a.shadowVisible===!0?Vd(y):rt&&a.shadowVisible===!1&&wd(y),E=a.panel,rt&&el(a,E)&&a.shadowVisible===null&&wd(y),y.Il&&(lt=x.computePixelRatio(),lt="drop-shadow("+y.shadowOffsetX/lt+"px "+y.shadowOffsetY/lt+"px "+y.shadowBlur/lt/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",lt),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",lt)),rt&&(a.Ma!==null||a.areaBackground!==null||el(a,E))?(Eh(a,!0),a.shadowVisible===null&&wd(y)):Eh(a,!1),E=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,lt=a.svg,!z&<!==null&&rt!==lt&<.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,ot,rt),tu(y,lt),!0):(a.svg=rt,tt!==null&&rt===null&&(gm(y),y.nh.pop()),rt===null||(a.$o(y,b,ot,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&Vd(y),a.Dd()&&wd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):b!==null&&Pl(a,b,rt),tt!==null&&tt(a,rt)),!0)}Lt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+Fa++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Yn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),tu(a,b)};function tu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Cl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=vi(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Lt.hh=function(){},Lt.lv=function(){this.Uc=!0},Lt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Yn?vc(this):!1;if(!(this instanceof Yn&&E))if(this instanceof iu){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof Yn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Tr){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Iu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Yn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),pu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Lt.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 qa(a,y,x,b,E,z,tt){if(x!==null){var rt=1,ot=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===mc)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var lt=a.kq();if(rt=z.width,ot=z.height,E?(rt=tt.width,ot=tt.height):b||(rt+=lt,ot+=lt),(z=y instanceof Ef)&&x.xe&&(x.type===Mg||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,vt=0,Ct=0,Et=0,Dt=0,Qt=0;if(Qt=Dt=0,E?(Dt=tt.x,Qt=tt.y):b||(Dt-=lt/2,Qt-=lt/2),ft=x.start.x*rt+x.start.offsetX,vt=x.start.y*ot+x.start.offsetY,Ct=x.end.x*rt+x.end.offsetX,Et=x.end.y*ot+x.end.offsetY,ft+=Dt,Ct+=Dt,vt+=Qt,Et+=Qt,x.type===Ud)ut=y.createLinearGradient(ft,vt,Ct,Et);else if(x.type===$u)Qt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Dt=0,Qt=Math.max(rt,ot)/2):Dt=x.startRadius,ut=y.createRadialGradient(ft,vt,Dt,Ct,Et,Qt);else if(x.type===Mg)try{ut=y.createPattern(x.pattern,"repeat")}catch(ae){ut=null}if(x.type!==Mg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===Mg&&x.yk!==-1)){x.yk=-1;var Wt=a.diagram;Wt!==null&&x.yk===-1&&Oi(function(){Wt.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}Lt.rg=function(a){if(a instanceof Yn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Lt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Lt.If=function(){for(var a=this instanceof Yn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function rl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){dh(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)}dh(a,!1),Ju(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ju(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,Ju(a,!1)))}Lt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Vt.alloc();z.yi(y,x,b,E,ho),a.rotate(this.Kb,z.x,z.y),Vt.free(z)}},Lt.v=function(a){if(!Ru(this)){a===void 0&&(a=!1),Fs(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},Lt.Uj=function(){Ru(this)||(Fs(this,!0),xd(this,!0))};function zl(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 fi&&a.Bd(),y.$b())),xd(a,!0)}}Lt.Uk=function(){!(this.l&2048)&&(dh(this,!0),Ju(this,!0))},Lt.Wu=function(){Ju(this,!0)},Lt.N=function(){var a=this.part;a!==null&&a.N()};function eu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Yn.Table?Gh(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Yn.Auto&&b.Pb()===a?nl(a,Hn,y):x===br?b!==null?b.type===Yn.Spot&&b.Pb()===a?nl(a,Hn,y):(x=b.defaultStretch,x===br?nl(a,Dn,y):nl(a,x,y)):nl(a,Dn,y):nl(a,x,y)}function Gh(a,y,x,b){var E=a.stretch;if(E!==br)return nl(a,E,b);var z=E=null;switch(y.stretch){case er:z=!0;break;case Hn:z=!0}switch(x.stretch){case Ii:E=!0;break;case Hn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Ii||y===Hn),z===null&&(z=y===er||y===Hn),E===!0&&z===!0?nl(a,Hn,b):E===!0?nl(a,Ii,b):z===!0?nl(a,er,b):nl(a,Dn,b)}function nl(a,y,x){if(x)return y;if(y===Dn||(x=a.desiredSize,x.w()))return Dn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Ii)return Dn;if(y===Hn)return er}else{if(y===er)return Dn;if(y===Hn)return Ii}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===er)return Dn;if(y===Hn)return Ii}else{if(y===Ii)return Dn;if(y===Hn)return er}return y}function Eh(a,y){a.l=y?a.l|512:a.l&-513}function hl(a){return(a.l&1024)!==0}function Qf(a,y){a.l=y?a.l|1024:a.l&-1025}function dh(a,y){a.l=y?a.l|2048:a.l&-2049}function Ju(a,y){a.l=y?a.l|4096:a.l&-4097}function Ru(a){return(a.l&8192)!==0}function Fs(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}Lt.Gj=function(){this.svg=null},Lt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Lt.Av=function(){},Lt.zv=function(a){return this.pa=a,zl(this),!0},Lt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Lt.kq=function(){return 0};function Cf(a){var y=a.part;if(y instanceof fi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||GS(y,a)}}function Uy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Yn?a instanceof fi?a.Bd():a.qm(a,function(x){Cf(x)}):Cf(a))}Lt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ps(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&cS(a)&&Ce("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new wn),this.localBindings.add(E),this},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return nv(this,a),this},Lt.apply=function(a){return a(this),this},Lt.nm=function(a){return fu(this,a),this},Lt.pz=function(){return this.ih()},Lt.ih=function(){for(var a=this instanceof Yn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Lt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ci),this.animationTriggers.add(a.propertyName,a),this};function Qu(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wg.I(a);typeof z=="function"?(x=He(arguments),b=z(x),je(b)||Ce('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=ue.go[a]}if(b===null&&(E!=null&&E.constructor||Ce("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof Ye&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Ph(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Ce("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof oa)a.text=y;else if(a instanceof Tr)a.figure=y;else if(a instanceof iu)a.source=y;else if(a instanceof Yn)y=Lh.I(y),y!==null&&(a.type=y);else if(a instanceof Zo){var x=xi(Zo,y);x!==null?a.type=x:Ce("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ni?(y=xi(ni,y),y!==null&&(a.type=y)):a instanceof vo&&(y=xi(vo,y),y!==null&&(a.type=y));else if(y instanceof Me)a instanceof Yn||Ce("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ns){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Ns?Nm(b,y):Ce("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Oe)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Rs)a.type=y;else if(y instanceof ps)a instanceof Me||a instanceof Ns?a.bind(y):Ce("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof ql)a instanceof Me?a.Jv(y):Ce("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Cs)a instanceof ni&&a.type===ni.o?a.figures.add(y):Ce("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof vo)a instanceof Cs?a.segments.add(y):Ce("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Aa)a instanceof Ye||a instanceof Pr?a.layout=y:Ce("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Zo){x=new Ti;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);fu(a,x)}else if(a instanceof Ns){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Ce("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Ce("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Ti;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);fu(a,E)}else fu(a,y);else Ce('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function pc(a,y){wg.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}fe.Object.defineProperties(Me.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&&(zr(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&&(zr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:qr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:br},set:function(a){var y=this.stretch;y!==a&&(zr(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&&(zr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&pi(a,"0 <= value <= 1",Me,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Uy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&_f(a,"GraphObject.areaBackground"),a instanceof Zo&&a.freeze(),zr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"GraphObject.background"),a instanceof Zo&&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 Hi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Vt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ce("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Uy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Tr&&this.qc(),this.g("desiredSize",b,a),hl(this)&&(a=this.part,a!==null&&(va(this,a,"width"),va(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 ei(a,this.jd.height).freeze(),this.v(),this instanceof Tr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(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 ei(this.jd.width,a).freeze(),this.v(),this instanceof Tr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ho},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(),zr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ra},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),zr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&rl(this),this.Ab}},oe:{get:function(){return this.l&4096&&rl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(zr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(zr(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()&&Ce("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),zl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&pi(a,">= 0",Me,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&pi(a,">= 1",Me,"columnSpan"),zr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&pi(a,">= 0",Me,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&pi(a,">= 1",Me,"rowSpan"),zr(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&&(zr(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 fi||Ce("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Zv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,YS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ya},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Cf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",Me,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Cf(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Cf(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&pi(a,">= 0",Me,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ya},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Cf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",Me,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Cf(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Cf(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&pi(a,">= 0",Me,"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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Me.prototype.trigger=Me.prototype.Jv,Me.prototype.findBindingPanel=Me.prototype.ih,Me.prototype.findTemplateBinder=Me.prototype.pz,Me.prototype.setProperties=Me.prototype.nm,Me.prototype.apply=Me.prototype.apply,Me.prototype.attach=Me.prototype.Du,Me.prototype.set=Me.prototype.set,Me.prototype.isEnabledObject=Me.prototype.If,Me.prototype.isVisibleObject=Me.prototype.Ed,Me.prototype.isContainedBy=Me.prototype.rg,Me.prototype.getNearestIntersectionPoint=Me.prototype.rs,Me.prototype.getLocalPoint=Me.prototype.qs,Me.prototype.getDocumentScale=Me.prototype.Df,Me.prototype.getDocumentAngle=Me.prototype.li,Me.prototype.getDocumentBounds=Me.prototype.mi,Me.prototype.getDocumentPoint=Me.prototype.ga,Me.prototype.intersectsRect=Me.prototype.Yc,Me.prototype.containedInRect=Me.prototype.fh,Me.prototype.containsRect=Me.prototype.Re,Me.prototype.containsPoint=Me.prototype.ca,Me.prototype.raiseChanged=Me.prototype.g,Me.prototype.raiseChangedEvent=Me.prototype.cb,Me.prototype.addCopyProperty=Me.prototype.Vw;var wg=null;Me.className="GraphObject",wg=new Ci,pc("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Qu(Yn,Yn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Yn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Qu(Tr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Fi(0,0,2.76142374915397,2.761423749153969),spot2:new Fi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Yn&&(x=b.fb("ButtonBorder"),x instanceof Tr)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Yn&&(x=b.fb("ButtonBorder"),x instanceof Tr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Yn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Tr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Yn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Tr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Yn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Tr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Yn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Tr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),pc("TreeExpanderButton",function(){var a=Qu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Qu(Tr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new ps("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ps("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Mo&&(x=x.adornedPart),x instanceof fi){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),pc("SubGraphExpanderButton",function(){var a=Qu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Qu(Tr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new ps("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 Mo&&(x=x.adornedPart),x instanceof Pr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),pc("ToolTip",function(){return Qu(Mo,Yn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},Qu(Tr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Fi(0,0,4,6),spot2:new Fi(1,1,-4,-4)}))}),pc("ContextMenu",function(){return Qu(Mo,Yn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},new ps("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pc("ContextMenuButton",function(){var a=Qu("Button");a.stretch=Ii;var y=a.fb("ButtonBorder");return y instanceof Tr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Fi(0,0,2,3),y.spot2=new Fi(1,1,-2,-2)),a}),pc("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Qu("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},Qu(Tr,{name:"ButtonIcon",strokeWidth:2},new ps("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Tr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),pc("CheckBoxButton",function(a){var y=fm(a);return a=Qu("Button",{desiredSize:new ei(14,14)},Qu(Tr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Hn,geometryStretch:Ni,visible:!1},y!==""?new ps("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Yn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),pc("CheckBox",function(a){a=fm(a),a=Qu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Zi(0,1,0,0)});var y=Qu(Yn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Zi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Me.None=Dn=new Oe(Me,"None",0),Me.Default=br=new Oe(Me,"Default",0),Me.Vertical=er=new Oe(Me,"Vertical",4),Me.Horizontal=Ii=new Oe(Me,"Horizontal",5),Me.Fill=Hn=new Oe(Me,"Fill",3),Me.Uniform=Ni=new Oe(Me,"Uniform",1),Me.UniformToFill=oo=new Oe(Me,"UniformToFill",2),Me.FlipVertical=Wr=new Oe(Me,"FlipVertical",1),Me.FlipHorizontal=xo=new Oe(Me,"FlipHorizontal",2),Me.FlipBoth=Jo=new Oe(Me,"FlipBoth",3),Me.make=Qu,Me.getBuilders=function(){var a=new Ci,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},Me.defineBuilder=pc,Me.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wg.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Me))return y&&b.set(y),b;Ce('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Me.takeBuilderArgument=fm;function $f(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Ho,this.o=Ra,this.hg=br,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}$f.prototype.copy=function(){var a=new $f;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Gc(){this.u=-1/0,this.o=0,this.F=qr,this.rr=Zl,this.j=this.V="None"}Gc.prototype.copy=function(){var a=new Gc;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Gc.className="LinkElementSettings";function gp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}gp.prototype.copy=function(){var a=new gp;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},gp.className="LinkSettings";function bf(){this.ha=[1,0,0,1,0,0]}bf.prototype.copy=function(){var a=new bf;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},bf.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},bf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},bf.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},bf.className="STransform";function qf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}qf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},qf.className="SGradient";function sd(a,y,x){this.ownerDocument=a=y===void 0?ue.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)}sd.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},sd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),je(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},sd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},sd.prototype.focus=function(){this.Oa.focus()},sd.prototype.mx=function(){this.ownerDocument=null},fe.Object.defineProperties(sd.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),sd.className="SVGSurface";function 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=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Fa++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,z,tt){a.Nj===void 0?pp(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Lt=Lu.prototype,Lt.arc=function(a,y,x,b,E,z,tt,rt){var ot=2*Math.PI,lt=ot-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),vt=a+ut,Ct=y+ft,Et=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(rt-Ct))&&this.path.push(["L",vt,+Ct]),0>b&&(b=b%ot+ot),b>lt?(this.path.push(["A",x,x,0,1,Et,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Et,vt,Ct])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Et,a+x*Math.cos(E),y+x*Math.sin(E)])},Lt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Lt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Lt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Lt.clearRect=function(){},Lt.clip=function(){this.Yl.clipPath=!0},Lt.closePath=function(){this.path.push(["z"])},Lt.createLinearGradient=function(a,y,x,b){var E=new qf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Lt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Fa++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(wf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Lt.createRadialGradient=function(a,y,x,b,E,z){var tt=new qf("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,rt,ot){b=rt/b,E=ot/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Lt.drawImage=function(a,y,x,b,E,z,tt,rt,ot){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,rt=b=ut,ot=E=a),b=b||0,E=E||0,rt=rt||0,ot=ot||0,Jy(this,y,x,b,E,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||b,height:a||E,href:lt},Ne.$(b,rt)&&Ne.$(E,ot)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Pg(this,wf,z,this.rb),this.addElement(wf,z)},Lt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Lt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Lt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pg(this,"fill",a,this.rb),this.addElement("rect",a)},Lt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Pg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Lt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Pg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Lt.lineTo=function(a,y){this.path.push(["L",a,y])},Lt.moveTo=function(a,y){this.path.push(["M",a,y])},Lt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Lt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Lt.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},Lt.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())},Lt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||pp(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Lt.scale=function(a,y){this.rb.scale(a,y)},Lt.translate=function(a,y){this.rb.translate(a,y)},Lt.transform=function(){},Lt.yc=function(){},Lt.stroke=function(){qy(this,this.Yl)},Lt.jk=function(){this.clipInsteadOfFill||this.stroke()},Lt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Lt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Pg(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof qf?y.fill=rv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function $y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof qf?y.setAttributeNS(null,"fill",rv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof qf)y.stroke=rv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function rv(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Fa++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],tt=0;tt<y;tt++){var rt=E[tt],ot=rt.color;rt={offset:rt.offset,"stop-color":ot},/^rgba\(/.test(ot)&&(ot=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ot),rt["stop-color"]="rgb("+ot[1]+","+ot[2]+","+ot[3]+")",rt["stop-opacity"]=ot[4]),z.push(rt)}for(z.sort(function(lt,ut){return lt.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Lt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=He(a[E]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,Pg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var ot in a)ot!=="transform"&&rt[x].setAttributeNS(null,ot,a[ot])}else this.addElement("path",a)};function pp(a,y,x,b,E,z,tt){var rt=new bf;rt.ha=[y,x,b,E,z,tt],y={},Pg(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function wd(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Vd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Lt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Lt.fs=function(){this.Ct=!1},Lt.Vc=function(){},Lt.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 pm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Lu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Lu.className="SVGContext",Ye.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new sd(this,ue.document));var y=new sd(this,ue.document,!0);a===void 0&&(a=new Ti);var x=this;return uh(this,function(b,E){return b=cc(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.av=function(a){return this.Cs(a)},Ye.prototype.makeSVG=Ye.prototype.av;function ch(a,y,x,b){this.ownerDocument=y=y===void 0?ue.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ef(y,x,b),y.H=a}ch.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},ch.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},ch.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ch.prototype.focus=function(){this.Oa.focus()},ch.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},fe.Object.defineProperties(ch.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}}}),ch.className="CanvasSurface";function Ef(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ce("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new kr,this.isTemporary=!!x}Lt=Ef.prototype,Lt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Lt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Lt.beginPath=function(){this.Z.beginPath()},Lt.Se=function(){},Lt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Lt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Lt.clip=function(){this.Z.clip()},Lt.closePath=function(){this.Z.closePath()},Lt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Lt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Lt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Lt.drawImage=function(a,y,x,b,E,z,tt,rt,ot){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,rt,ot)},Lt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Lt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Lt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Lt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Lt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Lt.lineTo=function(a,y){this.Z.lineTo(a,y)},Lt.measureText=function(a){return this.Z.measureText(a)},Lt.moveTo=function(a,y){this.Z.moveTo(a,y)},Lt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Lt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Lt.restore=function(){this.Z.restore()},Lt.save=function(){this.yc(),this.Z.save()},Ef.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Lt=Ef.prototype,Lt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Lt.scale=function(a,y){this.El.scale(a,y)},Lt.translate=function(a,y){this.El.translate(a,y)},Lt.stroke=function(){this.Z.stroke()},Lt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},Lt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Lt.ng=function(a,y){if(a instanceof Zo&&a.type===$u){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)},Lt.jk=function(){this.Hm||this.stroke()},Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Lt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Lt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Lt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Lt.Hs=function(){},fe.Object.defineProperties(Ef.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Ef.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function Zo(a,y){Lg||(hv(),Lg=!0),Or(this),this._isFrozen=!1,a===void 0?(this.na=mc,this.xk="black"):typeof a=="string"?(this.na=mc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Jl,this.Lk=Ll):this.Lk=a===$u?this.Qd=ho:this.Qd=Ya,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Zo.prototype.copy=function(){var a=new Zo;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},Lt=Zo.prototype,Lt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Lt.ka=function(){return Object.isFrozen(this)&&Ce("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Lt.qb=function(a){a.classType===Zo&&(this.type=a)},Lt.toString=function(){var a="Brush(";if(this.type===mc)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===$u?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+")"},Lt.addColorStop=function(a,y){return this._isFrozen&&Rn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&pi(a,"0 <= loc <= 1",Zo,"addColorStop:loc"),this.we===null&&(this.we=new Ci),this.we.add(a,y),this.na===mc&&(this.type=Ud),this.xe=null,this},Lt.Vz=function(a,y){if(this._isFrozen&&Rn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(y,x)}Lt.Wy=function(a,y){if(this._isFrozen&&Rn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function tS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(-y,x)}function ov(a,y,x){Yd(a),a=la.j;var b=la.u,E=la.o,z=la.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((la.j-a)*x+a)+", "+Math.round((la.u-b)*x+b)+", "+Math.round((la.o-E)*x+E)+", "+Math.round((la.F-z)*x+z)+")"}Lt.Gx=function(){if(this.type===mc)return Cg(this.color);if((this.type===Ud||this.type===$u)&&this.colorStops!==null){var a=this.colorStops;if(this.type===$u)return Cg(a.first().value);if(a.get(.5)!==null)return Cg(a.get(.5));if(a.count===2)return a=a.Fa(),Cg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=tt,E=rt):z>=E&&rt<z&&(b=tt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Cg(ov(a.get(x),a.get(b),1-z/E))}return!1};function Cg(a){return a?a instanceof Zo?a.Gx():(Yd(a),128>(299*la.j+587*la.u+114*la.o)/1e3):!1}function bg(a,y){switch(y){case Ag:y=100*sv(la.j);var x=100*sv(la.u),b=100*sv(la.o);return Hl.j=.4124564*y+.3575761*x+.1804375*b,Hl.u=.2126729*y+.7151522*x+.072175*b,Hl.o=.0193339*y+.119192*x+.9503041*b,Hl.F=la.F,y=uv(Hl.j/Eg[0]),x=uv(Hl.u/Eg[1]),b=uv(Hl.o/Eg[2]),Pd.j=116*x-16,Pd.u=500*(y-x),Pd.o=200*(x-b),Pd.F=Hl.F,Pd.j=Math.min(100,Math.max(0,Pd.j+100*a)),a=(Pd.j+16)/116,y=a-Pd.o/200,Hl.j=Eg[0]*eS(Pd.u/500+a),Hl.u=Eg[1]*(Pd.j>mm*dv?Math.pow(a,3):Pd.j/mm),Hl.o=Eg[2]*eS(y),Hl.F=Pd.F,a=-.969266*Hl.j+1.8760108*Hl.u+.041556*Hl.o,y=.0556434*Hl.j+-.2040259*Hl.u+1.0572252*Hl.o,la.j=255*lv((3.2404542*Hl.j+-1.5371385*Hl.u+-.4985314*Hl.o)/100),la.u=255*lv(a/100),la.o=255*lv(y/100),la.F=Hl.F,la.j=Math.round(la.j),255<la.j?la.j=255:0>la.j&&(la.j=0),la.u=Math.round(la.u),255<la.u?la.u=255:0>la.u&&(la.u=0),la.o=Math.round(la.o),255<la.o?la.o=255:0>la.o&&(la.o=0),"rgba("+la.j+", "+la.u+", "+la.o+", "+la.F+")";case nS:return av(),zu.o=Math.min(100,Math.max(0,zu.o+100*a)),"hsla("+zu.j+", "+zu.u+"%, "+zu.o+"%, "+zu.F+")";default:Ce("Unknown color space: "+y)}}function Yd(a){Lg||(hv(),Lg=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,la.j=a[0],la.u=a[1],la.o=a[2],la.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,la.j=0,la.u=0,la.o=0,la.F=1)}}function av(){var a=la.j/255,y=la.u/255,x=la.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}zu.j=Math.round(tt),zu.u=Math.round(100*a),zu.o=Math.round(100*E),zu.F=la.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function eS(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function _f(a,y){typeof a!="string"&&(a instanceof Zo||Ce("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=$a?new ch(null,void 0,{willReadFrequently:!0}).context:null}fe.Object.defineProperties(Zo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Rn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Jl:a===$u&&(this.start=ho)),this.end.Mc()&&(a===Ud?this.end=Ll:a===$u&&(this.end=ho)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Rn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Rn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Rn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Rn(this,a),0>a&&pi(a,">= zero",Zo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Rn(this,a),0>a&&pi(a,">= zero",Zo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Rn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Rn(this,a),this.cr=a,this.xe=null}}}),Zo.prototype.isDark=Zo.prototype.Gx,Zo.prototype.darkenBy=Zo.prototype.Wy,Zo.prototype.lightenBy=Zo.prototype.Vz,Zo.prototype.addColorStop=Zo.prototype.addColorStop;var dv=216/24389,mm=24389/27,Eg=[95.047,100,108.883],cv=null,la=new mp,zu=new mp,Hl=new mp,Pd=new mp,Lg=!1;Zo.className="Brush";var mc;Zo.Solid=mc=new Oe(Zo,"Solid",0);var Ud;Zo.Linear=Ud=new Oe(Zo,"Linear",1);var $u;Zo.Radial=$u=new Oe(Zo,"Radial",2);var Mg;Zo.Pattern=Mg=new Oe(Zo,"Pattern",4);var Ag;Zo.Lab=Ag=new Oe(Zo,"Lab",5);var nS;Zo.HSL=nS=new Oe(Zo,"HSL",6),Zo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Zo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Lg||(hv(),Lg=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Zo.lighten=function(a){return _y(a)},Zo.lightenBy=_y,Zo.darken=function(a){return tS(a)},Zo.darkenBy=tS,Zo.mix=ov,Zo.isDark=Cg;function Rs(){this.xa="Base"}Rs.prototype.measure=function(){},Rs.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Rs.prototype.arrange=function(){},Rs.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Rs.prototype.iA=function(a){a.Uj()},Rs.prototype.gc=function(){},fe.Object.defineProperties(Rs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Yn}}}),Rs.prototype.remeasureObject=Rs.prototype.iA,Rs.prototype.arrangeElement=Rs.prototype.Ly,Rs.prototype.measureElement=Rs.prototype.Yz,Rs.className="PanelLayout";function vm(){this.xa="Base"}Ze(vm,Rs),vm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=Xd(a);for(var ot=0;ot<rt;ot++){var lt=b[ot];if(lt.visible||lt===a){var ut=lt.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,lt.measure(y,x,z,tt);var vt=lt.measuredBounds;ft=Math.max(vt.width+ft,0),ut=Math.max(vt.height+ut,0),vt=lt.position.x;var Ct=lt.position.y;isFinite(vt)||(vt=0),isFinite(Ct)||(Ct=0),lt instanceof Tr&<.isGeometryPositioned&&(lt=lt.strokeWidth/2,vt-=lt,Ct-=lt),Fo(E,vt,Ct,ft,ut)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],tt=z.measuredBounds,rt=z.margin,ot=z.position.x,lt=z.position.y;if(ot=isNaN(ot)?-a:ot-a,lt=isNaN(lt)?-x:lt-x,z instanceof Tr&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,lt-=ut}z.visible&&z.arrange(ot+rt.left,lt+rt.top,tt.width,tt.height)}};function ym(){this.xa="Base"}Ze(ym,Rs),ym.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=sn(),z=Xd(a);for(var ot=0;ot<rt;ot++){var lt=b[ot];if(lt.visible||lt===z){var ut=eu(lt,!1);if(ut!==Dn&&ut!==Ii)y.push(lt);else{lt.measure(1/0,x,0,tt),ut=lt.margin,lt=lt.measuredBounds;var ft=Math.max(lt.height+ut.top+ut.bottom,0);E.width+=Math.max(lt.width+ut.right+ut.left,0),E.height=Math.max(E.height,ft)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)ot=y[a],(ot.visible||ot===z)&&(ut=ot.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,ot.measure(1/0,x,0,tt),ot=ot.measuredBounds,ut=Math.max(ot.height+ut,0),E.width+=Math.max(ot.width+rt,0),E.height=Math.max(E.height,ut));bn(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,rt=tt?x.width:E.left,ot=0;ot<b;ot++){var lt=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,Ct=vt.top+vt.bottom,Et=z+E.bottom,Dt=ft.height,Qt=eu(ut,!1);(isNaN(ut.desiredSize.height)&&Qt===Hn||Qt===er)&&(Dt=Math.max(x.height-Ct-Et,0)),Ct=Dt+Ct+Et,Et=ut.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=ho),tt&&(rt-=ft.width+vt.left+vt.right),ut.arrange(rt+Et.offsetX+vt.left,lt+Et.offsetY+vt.top+(x.height*Et.y-Ct*Et.y),ft.width,Dt),tt||(rt+=ft.width+vt.left+vt.right)}}};function Sm(){this.xa="Base"}Ze(Sm,Rs),Sm.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=sn();for(var rt=Xd(a),ot=0;ot<tt;ot++){var lt=b[ot];if(lt.visible||lt===rt){var ut=eu(lt,!1);if(ut!==Dn&&ut!==er)x.push(lt);else{var ft=lt.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,lt.measure(y,1/0,z,0),lt=lt.measuredBounds,js(E,Math.max(E.width,Math.max(lt.width+ut,0)),E.height+Math.max(lt.height+ft,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)ot=x[a],(ot.visible||ot===rt)&&(lt=ot.margin,tt=lt.right+lt.left,lt=lt.top+lt.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,lt=Math.max(ot.height+lt,0),E.width=Math.max(E.width,Math.max(ot.width+tt,0)),E.height+=lt);bn(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,rt=tt?x.height:E.top,ot=0;ot<b;ot++){var lt=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,Ct=vt.left+vt.right,Et=z+E.right,Dt=ft.width,Qt=eu(ut,!1);(isNaN(ut.desiredSize.width)&&Qt===Hn||Qt===Ii)&&(Dt=Math.max(x.width-Ct-Et,0)),Ct=Dt+Ct+Et,Et=ut.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=ho),tt&&(rt-=ft.height+vt.bottom+vt.top),ut.arrange(lt+Et.offsetX+vt.left+(x.width*Et.x-Ct*Et.x),rt+Et.offsetY+vt.top,Dt,ft.height),tt||(rt+=ft.height+vt.bottom+vt.top)}}};function xm(){this.xa="Base"}Ze(xm,Rs),xm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),lt=ot.margin,ut=lt.right+lt.left,ft=lt.top+lt.bottom;ot.measure(y,x,z,tt);var vt=ot.measuredBounds;z=vt.width,tt=vt.height;var Ct=Math.max(z+ut,0),Et=Math.max(tt+ft,0),Dt=a.isClipping,Qt=ln.allocAt(-lt.left,-lt.top,Ct,Et),Wt=ln.allocAt(0,0,z,tt);fv(ot,Wt,!0),z=Wt.width,tt=Wt.height;for(var ae=!0,le=Xd(a),ge=0;ge<rt;ge++){var Ee=b[ge];vt=y;var Xe=x;if(Ee!==ot&&(Ee.visible||Ee===le)){lt=Ee.margin;var ci=lt.left,Ei=lt.top;switch(Ct=lt.right+lt.left,Et=lt.top+lt.bottom,lt=eu(Ee,!1),lt){case Hn:vt=z,Xe=tt,Ei=ci=Et=Ct=0;break;case Ii:vt=z,ci=Ct=0;break;case er:Xe=tt,Ei=Et=0}Ee.measure(vt,Xe,0,0),vt=Ee.measuredBounds,Ct=Math.max(vt.width+Ct,0),Et=Math.max(vt.height+Et,0),lt=Ee.alignment,lt.Xb()&&(lt=a.defaultAlignment),lt.sb()||(lt=ho);var Si=Ee.alignmentFocus;if(Si.Xb()&&(Si=ho),Xe=null,Ee instanceof Yn&&Ee.$e!==""&&(Xe=Ee.fb(Ee.$e),Xe===Ee&&(Xe=null)),ci=Wt.x-ci,Ei=Wt.y-Ei,Xe!==null){for(Ee.arrange(0,0,vt.width,vt.height),vt=Xe.actualBounds,vt=Vt.allocAt(vt.x+(Si.x*vt.width-Si.offsetX),vt.y+(Si.y*vt.height-Si.offsetY)),Xe=Xe.panel;Xe!==Ee;)Xe.transform.Ga(vt),Xe=Xe.panel;ci+=lt.x*z+lt.offsetX-vt.x,Ei+=lt.y*tt+lt.offsetY-vt.y,Vt.free(vt)}else ci+=lt.x*z+lt.offsetX-(Si.x*vt.width+Si.offsetX),Ei+=lt.y*tt+lt.offsetY-(Si.y*vt.height+Si.offsetY);ae?(ae=!1,E.h(ci,Ei,Ct,Et)):Fo(E,ci,Ei,Ct,Et)}}switch(ae?E.assign(Qt):Dt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):Fo(E,Qt.x,Qt.y,Qt.width,Qt.height),ln.free(Qt),ln.free(Wt),lt=ot.stretch,lt===br&&(lt=eu(ot,!1)),lt){case Dn:return;case Hn:if(!isFinite(y)&&!isFinite(x))return;break;case Ii:if(!isFinite(y))return;break;case er:if(!isFinite(x))return}for(vt=ot.measuredBounds,z=vt.width,tt=vt.height,Ct=Math.max(z+ut,0),Et=Math.max(tt+ft,0),lt=ot.margin,Wt=ln.allocAt(-lt.left,-lt.top,Ct,Et),fv(ot,Wt,!0),z=Wt.width,tt=Wt.height,y=0;y<rt;y++)x=b[y],x===ot||!x.visible&&x!==le||(lt=x.margin,Ct=lt.right+lt.left,Et=lt.top+lt.bottom,vt=x.measuredBounds,Ct=Math.max(vt.width+Ct,0),Et=Math.max(vt.height+Et,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=ho),x=x.alignmentFocus,x.Xb()&&(x=ho),ae?(ae=!1,E.h(ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-lt.top,Ct,Et)):Fo(E,ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-lt.top,Ct,Et));ae?E.assign(Qt):Dt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):Fo(E,Qt.x,Qt.y,Qt.width,Qt.height),ln.free(Wt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,rt=z.height,ot=a.padding;z=ot.left,ot=ot.top;var lt=z-x.x,ut=ot-x.y;for(E.arrange(lt,ut,tt,rt),tt=ln.allocAt(0,0,tt,rt),fv(E,tt,!1),rt=0;rt<b;rt++){var ft=y[rt];if(ft!==E){lt=ft.measuredBounds;var vt=lt.width,Ct=lt.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=ho);var Et=ft.alignmentFocus;if(Et.Xb()&&(Et=ho),lt=null,ft instanceof Yn&&ft.$e!==""&&(lt=ft.fb(ft.$e),lt===ft&&(lt=null)),lt!==null){var Dt=lt.actualBounds;for(Et=Vt.allocAt(Dt.x+(Et.x*Dt.width-Et.offsetX),Dt.y+(Et.y*Dt.height-Et.offsetY)),lt=lt.panel;lt!==ft;)lt.transform.Ga(Et),lt=lt.panel;lt=ut.x*tt.width+ut.offsetX-Et.x,ut=ut.y*tt.height+ut.offsetY-Et.y,Vt.free(Et)}else lt=ut.x*tt.width+ut.offsetX-(Et.x*vt+Et.offsetX),ut=ut.y*tt.height+ut.offsetY-(Et.y*Ct+Et.offsetY);lt+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+lt,ot+ut,vt,Ct)}}ln.free(tt)};function fv(a,y,x){var b=null;if(a instanceof Yn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function wm(){this.xa="Base"}Ze(wm,Rs),wm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),lt=ot.margin,ut=y,ft=x,vt=lt.right+lt.left,Ct=lt.top+lt.bottom;ot.measure(y,x,z,tt),lt=ot.measuredBounds;var Et=0,Dt=null;ot instanceof Tr&&(Dt=ot,Et=Dt.strokeWidth*Dt.scale);var Qt=Math.max(lt.width+vt,0);lt=Math.max(lt.height+Ct,0);var Wt=vv(ot),ae=Wt.x*Qt+Wt.offsetX;Wt=Wt.y*lt+Wt.offsetY;var le=yv(ot),ge=le.x*Qt+le.offsetX;for(le=le.y*lt+le.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(ae-ge)-Et,0)),isFinite(x)&&(ft=Math.max(Math.abs(Wt-le)-Et,0)),Et=ei.alloc(),Et.h(0,0),a=Xd(a),le=0;le<rt;le++)Wt=b[le],Wt===ot||!Wt.visible&&Wt!==a||(lt=Wt.margin,Qt=lt.right+lt.left,ae=lt.top+lt.bottom,Wt.measure(ut,ft,0,0),lt=Wt.measuredBounds,Qt=Math.max(lt.width+Qt,0),lt=Math.max(lt.height+ae,0),Et.h(Math.max(Qt,Et.width),Math.max(lt,Et.height)));if(rt===1)E.width=Qt,E.height=lt,ei.free(Et);else{switch(Wt=vv(ot),le=yv(ot),rt=b=0,le.x!==Wt.x&&le.y!==Wt.y&&(b=Et.width/Math.abs(le.x-Wt.x),rt=Et.height/Math.abs(le.y-Wt.y)),ei.free(Et),Et=0,Dt!==null&&(Et=Dt.strokeWidth*Dt.scale,bv(Dt)===Ni&&(b=rt=Math.max(b,rt))),b+=Math.abs(Wt.offsetX)+Math.abs(le.offsetX)+Et,rt+=Math.abs(Wt.offsetY)+Math.abs(le.offsetY)+Et,Dt=ot.stretch,Dt===br&&(Dt=eu(ot,!1)),Dt){case Dn:tt=z=0;break;case Hn:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case Ii:isFinite(y)&&(b=y),tt=0;break;case er:z=0,isFinite(x)&&(rt=x)}ot.Uj(),ot.measure(b,rt,z,tt),E.width=ot.measuredBounds.width+vt,E.height=ot.measuredBounds.height+Ct}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=ln.alloc();z.h(0,0,1,1);var tt=b.margin,rt=tt.left;tt=tt.top;var ot=a.padding,lt=ot.left;ot=ot.top,b.arrange(lt+rt,ot+tt,E.width,E.height);var ut=vv(b),ft=yv(b),vt=ut.y*E.height+ut.offsetY,Ct=ft.x*E.width+ft.offsetX;for(ft=ft.y*E.height+ft.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=vt,Fo(z,Ct,ft,0,0),z.x+=rt+lt,z.y+=tt+ot,E=0;E<x;E++)rt=y[E],rt!==b&&(lt=rt.measuredBounds,tt=rt.margin,ot=Math.max(lt.width+tt.right+tt.left,0),ut=Math.max(lt.height+tt.top+tt.bottom,0),vt=rt.alignment,vt.Xb()&&(vt=a.defaultAlignment),vt.sb()||(vt=ho),ot=z.width*vt.x+vt.offsetX-ot*vt.x+tt.left+z.x,tt=z.height*vt.y+vt.offsetY-ut*vt.y+tt.top+z.y,rt.visible&&(sa(z.x,z.y,z.width,z.height,ot,tt,lt.width,lt.height)?rt.arrange(ot,tt,lt.width,lt.height):rt.arrange(ot,tt,lt.width,lt.height,new ln(z.x,z.y,z.width,z.height))));ln.free(z)};function Pm(){this.xa="Base",this.name="Table"}Ze(Pm,Rs),Pm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=sn(),rt=sn(),ot=0;ot<z;ot++){var lt=b[ot],ut=lt instanceof Yn?lt:null;if(ut!==null&&vc(ut)&<.visible){rt.push(ut);for(var ft=ut.O.s,vt=ft.length,Ct=0;Ct<vt;Ct++){var Et=ft[Ct];ut.type===Yn.TableRow?Et.row=lt.row:ut.type===Yn.TableColumn&&(Et.column=lt.column),tt.push(Et)}}else tt.push(lt)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Dt=[],Qt=0;Qt<z;Qt++){var Wt=tt[Qt];Wt.visible&&(Fs(Wt,!0),xd(Wt,!0),Dt[Wt.row]||(Dt[Wt.row]=[]),Dt[Wt.row][Wt.column]||(Dt[Wt.row][Wt.column]=[]),Dt[Wt.row][Wt.column].push(Wt))}bn(tt);var ae=sn(),le=sn(),ge=sn(),Ee={count:0},Xe={count:0},ci=y,Ei=x,Si=a.rowDefs,$n=a.colDefs,kn=null;z=Si.length;for(var wr=0;wr<z;wr++)kn=Si[wr],kn!==void 0&&(kn.actual=0);z=$n.length;for(var cr=0;cr<z;cr++)kn=$n[cr],kn!==void 0&&(kn.actual=0);for(var No=Dt.length,ia=0,Ks=0;Ks<No;Ks++)Dt[Ks]&&(ia=Math.max(ia,Dt[Ks].length));var qs=Math.min(a.topIndex,No-1),Fl=Math.min(a.leftIndex,ia-1),Vs=0;No=Dt.length;for(var Mc=Xd(a),ms=0;ms<No;ms++)if(Dt[ms]){ia=Dt[ms].length;var Xh=a.Fb(ms);Xh.actual=0;for(var Nl=Xh.oc=0;Nl<ia;Nl++)if(Dt[ms][Nl]){var Ac=a.Eb(Nl);ae[Nl]===void 0&&(Ac.actual=0,Ac.oc=0,ae[Nl]=!0);for(var Wu=Dt[ms][Nl],mh=Wu.length,ku=0;ku<mh;ku++){var vu=Wu[ku];if(vu.visible||vu===Mc){var rf=1<vu.rowSpan||1<vu.columnSpan;rf&&(ms<qs||Nl<Fl||le.push(vu));var Jh=vu.margin,$g=Jh.right+Jh.left,Fu=Jh.top+Jh.bottom,Tl=Gh(vu,Xh,Ac,!1),im=vu.desiredSize,dg=!isNaN(im.height),hd=!isNaN(im.width)&&dg;if(rf||Tl===Dn||hd||ms<qs||Nl<Fl||(Ee[Nl]!==void 0||Tl!==Hn&&Tl!==Ii||(Ee[Nl]=-1,Ee.count++),Xe[ms]!==void 0||Tl!==Hn&&Tl!==er||(Xe[ms]=-1,Xe.count++),ge.push(vu)),vu.measure(1/0,1/0,0,0),!(ms<qs||Nl<Fl)){var yu=vu.measuredBounds,Bf=Math.max(yu.width+$g,0),Nu=Math.max(yu.height+Fu,0);if(vu.rowSpan===1&&(Tl===Dn||Tl===Ii)){kn=a.Fb(ms);var of=kn.Wc();Vs=Math.max(Nu-kn.actual,0),Vs+of>Ei&&(Vs=Math.max(Ei-of,0));var V0=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,Ei=Math.max(Ei-(Vs+(V0?of:0)),0)}if(vu.columnSpan===1&&(Tl===Dn||Tl===er)){kn=a.Eb(Nl);var rm=kn.Wc();Vs=Math.max(Bf-kn.actual,0),Vs+rm>ci&&(Vs=Math.max(ci-rm,0));var Hy=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,ci=Math.max(ci-(Vs+(Hy?rm:0)),0)}rf&&vu.Uj()}}}}}bn(ae);var Nd=0,$d=0;z=a.columnCount;for(var cg=0;cg<z;cg++){var af=$n[cg];af!==void 0&&(Nd+=isNaN(af.Hc)?af.oc:af.Hc,af.oc!==0&&(Nd+=af.Wc()))}z=a.rowCount;for(var qg=0;qg<z;qg++){var sf=Si[qg];sf!==void 0&&($d+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&($d+=sf.Wc()))}ci=Math.max(y-Nd,0);var Td=Ei=Math.max(x-$d,0),kc=ci;z=ge.length;for(var Su=0;Su<z;Su++){var dd=ge[Su],Y0=a.Fb(dd.row),qd=a.Eb(dd.column),_g=dd.measuredBounds,Qh=dd.margin,Of=Qh.right+Qh.left,cd=Qh.top+Qh.bottom;Ee[dd.column]=qd.oc===0&&Ee[dd.column]!==void 0?Math.max(_g.width+Of,Ee[dd.column]):null,Xe[dd.row]=Y0.oc===0&&Xe[dd.row]!==void 0?Math.max(_g.height+cd,Xe[dd.row]):null}var fg=0,tp=0,Th;for(Th in Xe)Th!=="count"&&(fg+=Xe[Th]);for(Th in Ee)Th!=="count"&&(tp+=Ee[Th]);for(var al=ei.alloc(),om=0;om<z;om++){var Ul=ge[om];if(Ul.visible||Ul===Mc){var vs=a.Fb(Ul.row),Xl=a.Eb(Ul.column),_d=0;isFinite(Xl.width)?_d=Xl.width:(isFinite(ci)&&Ee[Ul.column]!==null?tp===0?_d=Xl.actual+ci:_d=Ee[Ul.column]/tp*kc:Ee[Ul.column]!==null?_d=ci:_d=Xl.actual||ci,_d=Math.max(0,_d-Xl.Wc()));var Fc=0;switch(isFinite(vs.height)?Fc=vs.height:(isFinite(Ei)&&Xe[Ul.row]!==null?fg===0?Fc=vs.actual+Ei:Fc=Xe[Ul.row]/fg*Td:Xe[Ul.row]!==null?Fc=Ei:Fc=vs.actual||Ei,Fc=Math.max(0,Fc-vs.Wc())),al.h(Math.max(Xl.minimum,Math.min(_d,Xl.maximum)),Math.max(vs.minimum,Math.min(Fc,vs.maximum))),Tl=Gh(Ul,vs,Xl,!1),Tl){case Ii:al.height=Math.max(al.height,vs.actual+Ei);break;case er:al.width=Math.max(al.width,Xl.actual+ci)}var If=Ul.margin,Wy=If.right+If.left,U0=If.top+If.bottom;Ul.Uj(),Ul.measure(al.width,al.height,Xl.minimum,vs.minimum);var ep=Ul.measuredBounds,Rf=Math.max(ep.width+Wy,0),gg=Math.max(ep.height+U0,0);isFinite(ci)&&(Rf=Math.min(Rf,al.width)),isFinite(Ei)&&(gg=Math.min(gg,al.height));var xu=0;xu=vs.actual,vs.actual=Math.max(vs.actual,gg),vs.oc=Math.max(vs.oc,gg),Vs=vs.actual-xu,Ei=Math.max(Ei-Vs,0),Xe[Ul.row]===null&&(Td=Math.max(Td-Vs,0)),xu=Xl.actual,Xl.actual=Math.max(Xl.actual,Rf),Xl.oc=Math.max(Xl.oc,Rf),Vs=Xl.actual-xu,ci=Math.max(ci-Vs,0),Ee[Ul.column]===null&&(kc=Math.max(kc-Vs,0))}}bn(ge);var tc=ei.alloc(),$h=sn(),nh=sn();if(z=le.length,z!==0){for(var lf=0;lf<No;lf++)if(Dt[lf]){ia=Dt[lf].length;var np=a.Fb(lf);$h[lf]=np.actual;for(var uf=0;uf<ia;uf++)if(Dt[lf][uf]){var X0=a.Eb(uf);nh[uf]=X0.actual}}}for(var ip=0;ip<z;ip++){var rs=le[ip];if(rs.visible||rs===Mc){var Dh=a.Fb(rs.row),vh=a.Eb(rs.column);switch(al.h(Math.max(vh.minimum,Math.min(y,vh.maximum)),Math.max(Dh.minimum,Math.min(x,Dh.maximum))),Tl=Gh(rs,Dh,vh,!1),Tl){case Hn:nh[vh.index]!==0&&(al.width=Math.min(al.width,nh[vh.index])),$h[Dh.index]!==0&&(al.height=Math.min(al.height,$h[Dh.index]));break;case Ii:nh[vh.index]!==0&&(al.width=Math.min(al.width,nh[vh.index]));break;case er:$h[Dh.index]!==0&&(al.height=Math.min(al.height,$h[Dh.index]))}isFinite(vh.width)&&(al.width=vh.width),isFinite(Dh.height)&&(al.height=Dh.height),tc.h(0,0);for(var J0=vh.minimum,Tu=Dh.minimum,Nc=1;Nc<rs.rowSpan&&!(rs.row+Nc>=a.rowCount);Nc++)kn=a.Fb(rs.row+Nc),Vs=0,Vs=Tl===Hn||Tl===er?Math.max(kn.minimum,$h[rs.row+Nc]===0?kn.maximum:Math.min($h[rs.row+Nc],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),tc.height+=Vs,Tu+=kn.minimum;for(var yh=1;yh<rs.columnSpan&&!(rs.column+yh>=a.columnCount);yh++)kn=a.Eb(rs.column+yh),Vs=0,Vs=Tl===Hn||Tl===Ii?Math.max(kn.minimum,nh[rs.column+yh]===0?kn.maximum:Math.min(nh[rs.column+yh],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),tc.width+=Vs,J0+=kn.minimum;al.width+=tc.width,al.height+=tc.height;var rp=rs.margin,hf=rp.right+rp.left,am=rp.top+rp.bottom;rs.measure(al.width,al.height,J0,Tu);for(var op=rs.measuredBounds,fd=Math.max(op.width+hf,0),zf=Math.max(op.height+am,0),df=0,ap=0;ap<rs.rowSpan&&!(rs.row+ap>=a.rowCount);ap++)kn=a.Fb(rs.row+ap),df+=kn.total||0;if(df<zf){var Tc=zf-df,Dd=zf-df;if(rs.spanAllocation!==null)for(var Dc=rs.spanAllocation,ec=0;ec<rs.rowSpan&&!(0>=Tc)&&!(rs.row+ec>=a.rowCount);ec++){kn=a.Fb(rs.row+ec);var Bc=kn.oa||0,jf=Dc(rs,kn,Dd);kn.actual=Math.min(kn.maximum,Bc+jf),kn.oa!==Bc&&(Tc-=kn.oa-Bc)}for(;0<Tc;){var qh=kn.oa||0;if(isNaN(kn.height)&&kn.maximum>qh&&(kn.actual=Math.min(kn.maximum,qh+Tc),kn.oa!==qh&&(Tc-=kn.oa-qh)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var pg=0,Oc=0;Oc<rs.columnSpan&&!(rs.column+Oc>=a.columnCount);Oc++)kn=a.Eb(rs.column+Oc),pg+=kn.total||0;if(pg<fd){var mg=fd-pg,Zy=fd-pg;if(rs.spanAllocation!==null)for(var nc=rs.spanAllocation,Hf=0;Hf<rs.columnSpan&&!(0>=mg)&&!(rs.column+Hf>=a.columnCount);Hf++){kn=a.Eb(rs.column+Hf);var sm=kn.oa||0,Gy=nc(rs,kn,Zy);kn.actual=Math.min(kn.maximum,sm+Gy),kn.oa!==sm&&(mg-=kn.oa-sm)}for(;0<mg;){var Q0=kn.oa||0;if(isNaN(kn.width)&&kn.maximum>Q0&&(kn.actual=Math.min(kn.maximum,Q0+mg),kn.oa!==Q0&&(mg-=kn.oa-Q0)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}bn(le),ei.free(tc),ei.free(al),$h!==void 0&&bn($h),nh!==void 0&&bn(nh);var vg=0,yg=0,$0=a.desiredSize,gx=a.maxSize;Tl=eu(a,!0);var lm=$d=Nd=0,um=0;z=a.columnCount;for(var q0=0;q0<z;q0++)$n[q0]!==void 0&&(kn=a.Eb(q0),isFinite(kn.width)?(lm+=kn.width,lm+=kn.Wc()):Tm(kn)===xp?(lm+=kn.oa,lm+=kn.Wc()):kn.oa!==0&&(Nd+=kn.oa,Nd+=kn.Wc()));isFinite($0.width)?vg=Math.min($0.width,gx.width):vg=Tl!==Dn&&isFinite(y)?y:Nd,vg=Math.max(vg,a.minSize.width),vg=Math.max(vg-lm,0);for(var $x=Nd===0?1:Math.max(vg/Nd,1),_0=0;_0<z;_0++)$n[_0]!==void 0&&(kn=a.Eb(_0),isFinite(kn.width)||Tm(kn)===xp||(kn.actual=kn.oa*$x),kn.position=E.width,kn.oa!==0&&(E.width+=kn.oa,E.width+=kn.Wc()));z=a.rowCount;for(var tv=0;tv<z;tv++)Si[tv]!==void 0&&(kn=a.Fb(tv),isFinite(kn.height)?(um+=kn.height,um+=kn.Wc()):Tm(kn)===xp?(um+=kn.oa,um+=kn.Wc()):kn.oa!==0&&($d+=kn.oa,$d+=kn.Wc()));isFinite($0.height)?yg=Math.min($0.height,gx.height):yg=Tl!==Dn&&isFinite(x)?x:$d,yg=Math.max(yg,a.minSize.height),yg=Math.max(yg-um,0);for(var qx=$d===0?1:Math.max(yg/$d,1),ev=0;ev<z;ev++)Si[ev]!==void 0&&(kn=a.Fb(ev),isFinite(kn.height)||Tm(kn)===xp||(kn.actual=kn.oa*qx),kn.position=E.height,kn.oa!==0&&(E.height+=kn.oa,E.height+=kn.Wc()));z=rt.length;for(var Ky=0;Ky<z;Ky++){var hm=rt[Ky],Vy=0,Yy=0;hm.type===Yn.TableRow?(Vy=E.width,kn=a.Fb(hm.row),Yy=kn.actual):(kn=a.Eb(hm.column),Vy=kn.actual,Yy=E.height),hm.measuredBounds.h(0,0,Vy,Yy),Fs(hm,!1)}bn(rt),a.inRowsCols=Dt},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,ot,lt=tt.length,ut=0,ft=0;ft<lt;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));ot=a.rowDefs,rt=a.colDefs;var vt=ft=0,Ct=Math.min(a.topIndex,lt-1);if(0<ot.length){for(;Ct!==lt&&(ot[Ct]===void 0||ot[Ct].oa===0);)Ct++;Ct=Math.max(Math.min(Ct,lt-1),0),ft=-ot[Ct].position}var Et=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Et!==ut&&(rt[Et]===void 0||rt[Et].oa===0);)Et++;Et=Math.max(Math.min(Et,ut-1),0),vt=-rt[Et].position}for(var Dt=0,Qt=0;Dt!==lt&&ot[Dt]===void 0;)Dt++;for(;Qt!==lt&&rt[Qt]===void 0;)Qt++;ut=a.part,a.Fb(Dt),a.Eb(Qt);for(var Wt=0;Wt<y.length;Wt++){var ae=y[Wt];if(ae instanceof Yn&&ae.visible&&vc(ae)){if(ae.type===Yn.TableRow){rt=a.Fb(ae.row);var le=a.Eb(Qt)}else rt=a.Fb(Dt),le=a.Eb(ae.column);ot=rt.position+ft+E,rt.oa!==0&&(ot+=rt.Io(Math.max(Dt,Ct))),rt=le.position+vt+z,le.oa!==0&&(rt+=le.Io(Math.max(Qt,Et))),le=ae.measuredBounds,ae.Uk(),ae.actualBounds.ka();var ge=ae.actualBounds,Ee=ln.allocAt(ge.x,ge.y,ge.width,ge.height);ge.x=ae.type===Yn.TableRow?z:rt,ge.y=ae.type===Yn.TableColumn?E:ot,ge.width=le.width,ge.height=le.height,ae.actualBounds.freeze(),xd(ae,!1),ko(Ee,ge)||ut===null||(ut.oh(),ae.Pn(ut)),ln.free(Ee)}}for(Wt=ei.alloc(),ae=0;ae<lt;ae++)if(tt[ae]){for(ut=tt[ae].length,le=a.Fb(ae),ot=le.position+ft+E,le.oa!==0&&(ot+=le.Io(Math.max(Dt,Ct))),ge=0;ge<ut;ge++)if(tt[ae][ge]){Ee=a.Eb(ge),rt=Ee.position+vt+z,Ee.oa!==0&&(rt+=Ee.Io(Math.max(Qt,Et)));for(var Xe=tt[ae][ge],ci=Xe.length,Ei=0;Ei<ci;Ei++){var Si=Xe[Ei],$n=Si.measuredBounds;Wt.h(0,0);for(var kn=1;kn<Si.rowSpan&&!(ae+kn>=a.rowCount);kn++){var wr=a.Fb(ae+kn);wr.oa!==0&&(Wt.height+=wr.total)}for(kn=1;kn<Si.columnSpan&&!(ge+kn>=a.columnCount);kn++)wr=a.Eb(ge+kn),wr.oa!==0&&(Wt.width+=wr.total);var cr=Ee.oa+Wt.width,No=le.oa+Wt.height;kn=rt,wr=ot;var ia=cr,Ks=No,qs=rt,Fl=ot,Vs=cr,Mc=No;rt+cr>x.width&&(Vs=Math.max(x.width-rt,0)),ot+No>x.height&&(Mc=Math.max(x.height-ot,0));var ms=Si.alignment;if(ms.Xb()){ms=a.defaultAlignment,ms.sb()||(ms=ho);var Xh=ms.x,Nl=ms.y,Ac=ms.offsetX;ms=ms.offsetY;var Wu=Ee.alignment,mh=le.alignment;Wu.sb()&&(Xh=Wu.x,Ac=Wu.offsetX),mh.sb()&&(Nl=mh.y,ms=mh.offsetY)}else Xh=ms.x,Nl=ms.y,Ac=ms.offsetX,ms=ms.offsetY;(isNaN(Xh)||isNaN(Nl))&&(Nl=Xh=.5,ms=Ac=0),Wu=$n.width,mh=$n.height;var ku=Si.margin,vu=ku.left+ku.right,rf=ku.top+ku.bottom,Jh=Gh(Si,le,Ee,!1);!isNaN(Si.desiredSize.width)||Jh!==Hn&&Jh!==Ii||(Wu=Math.max(cr-vu,0)),!isNaN(Si.desiredSize.height)||Jh!==Hn&&Jh!==er||(mh=Math.max(No-rf,0)),cr=Si.maxSize,No=Si.minSize,Wu=Math.min(cr.width,Wu),mh=Math.min(cr.height,mh),Wu=Math.max(No.width,Wu),mh=Math.max(No.height,mh),cr=mh+rf,kn+=ia*Xh-(Wu+vu)*Xh+Ac+ku.left,wr+=Ks*Nl-cr*Nl+ms+ku.top,Si.visible&&(sa(qs,Fl,Vs,Mc,kn,wr,$n.width,$n.height)?Si.arrange(kn,wr,Wu,mh):Si.arrange(kn,wr,Wu,mh,new ln(qs,Fl,Vs,Mc)))}}}for(ei.free(Wt),a=0;a<b;a++)x=y[a],z=x instanceof Yn?x:null,z!==null&&vc(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}Ze(Cm,Rs),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}Ze(bm,Rs),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Em(){this.xa="Base"}Ze(Em,Rs),Em.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&Ce("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var rt=b.measuredBounds,ot=b.margin,lt=ot.right+ot.left;if(ot=ot.top+ot.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,ft=rt.width;rt=rt.height;var vt=Math.max(y-lt,0),Ct=Math.max(x-ot,0),Et=1;a.viewboxStretch===Ni?ft!==0&&rt!==0&&(Et=Math.min(vt/ft,Ct/rt)):ft!==0&&rt!==0&&(Et=Math.max(vt/ft,Ct/rt)),Et===0&&(Et=1e-4),b.Ca*=Et,ut!==b.scale&&(Fs(b,!0),b.measure(1/0,1/0,z,tt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+lt,0),E.height=isFinite(x)?x:Math.max(rt.height+ot,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=ho),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function vp(){this.xa="Base"}Ze(vp,Rs),vp.prototype.measure=function(){},vp.prototype.arrange=function(){},vp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,lt=Math.ceil(rt/E),ut=Math.ceil(ot/b),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var Ct=[],Et=a.O.s,Dt=Et.length,Qt=0;Qt<Dt;Qt++){var Wt=Et[Qt],ae=[];if(Ct.push(ae),Wt.visible){var le=Wt.interval;if(!(0>le)){Wt=pv(Wt.figure);for(var ge=0;ge<Dt;ge++)if(ge!==Qt){var Ee=Et[ge];Ee.visible&&pv(Ee.figure)===Wt&&(Ee=Ee.interval,Ee>le&&ae.push(Ee))}}}}for(Et=a.O.s,Dt=Et.length,Qt=0;Qt<Dt;Qt++){var Xe=Et[Qt];if(Xe.visible&&(ae=Xe.interval||1,Wt=Math.abs(ae),!(2>E*Wt*x))){if(le=Xe.segmentIndex,(!isFinite(le)||isNaN(le))&&(le=0),0>le&&(le=Wt-Math.min(-le,Wt)),le=Math.round(le%Wt),Wt=Xe.opacity,ge=1,Wt!==1){if(Wt===0)continue;ge=y.globalAlpha,y.globalAlpha=ge*Wt}Ee=Ct[Qt];var ci=!1,Ei=Xe.strokeDashArray;if(Ei!==null&&(ci=!0,y.js(Ei,Xe.strokeDashOffset)),Xe.figure==="LineV"&&Xe.stroke!==null&&0<Xe.strokeWidth){for(y.lineWidth=Xe.strokeWidth,qa(a,y,Xe.stroke,!1,!1,z,tt),y.beginPath(),Ei=Xe=Math.floor((vt-E)/E);Ei<=Xe+lt;Ei++){var Si=Ei*E+vt;0<=Si&&Si<=rt&&Lm(Ei,ae,le,Ee)&&(y.moveTo(Si,0),y.lineTo(Si,ot))}y.stroke(),y.Se()}else if(Xe.figure==="LineH"&&Xe.stroke!==null&&0<Xe.strokeWidth){for(y.lineWidth=Xe.strokeWidth,qa(a,y,Xe.stroke,!1,!1,z,tt),y.beginPath(),Ei=Xe=Math.floor((ft-b)/b);Ei<=Xe+ut;Ei++)Si=Ei*b+ft,0<=Si&&Si<=ot&&Lm(Ei,ae,le,Ee)&&(y.moveTo(0,Si),y.lineTo(rt,Si));y.stroke(),y.Se()}else if(Xe.figure==="BarV"&&Xe.fill!==null)for(qa(a,y,Xe.fill,!0,!1,z,tt),Xe=Xe.width,isNaN(Xe)&&(Xe=E),Si=Ei=Math.floor((vt-E)/E);Si<=Ei+lt;Si++){var $n=Si*E+vt;0<=$n+Xe&&$n<=rt&&Lm(Si,ae,le,Ee)&&y.fillRect($n,0,Xe,ot)}else if(Xe.figure==="BarH"&&Xe.fill!==null)for(qa(a,y,Xe.fill,!0,!1,z,tt),Xe=Xe.height,isNaN(Xe)&&(Xe=b),Si=Ei=Math.floor((ft-b)/b);Si<=Ei+ut;Si++)$n=Si*b+ft,0<=$n+Xe&&$n<=ot&&Lm(Si,ae,le,Ee)&&y.fillRect(0,$n,rt,Xe);ci&&y.fs(),Wt!==1&&(y.globalAlpha=ge)}}y.restore(),y.Vc(!1)};function Lm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Mm(){this.xa="Base"}Ze(Mm,Rs),Mm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Mo||a instanceof _n){var tt=null,rt=null;if(a instanceof _n&&(tt=a),a instanceof Mo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof _n){var ot=tt;if(z===0)js(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var lt=a instanceof Mo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=ot.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var vt=y.height,Ct=a.j;if(Ct.length=0,lt!==null){iS(a,rt,vt,lt);var Et=lt.measuredBounds;x.ed(Et),Ct.push(Et)}Et=kr.alloc();for(var Dt=Vt.alloc(),Qt=Vt.alloc(),Wt=0;Wt<z;Wt++){var ae=b[Wt];if(ae!==lt)if(ae.isPanelMain&&ae instanceof Tr){iS(a,rt,vt,ae);var le=ae.measuredBounds;x.ed(le),Ct.push(le)}else if(2>ft)ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,x.ed(le),Ct.push(le);else{var ge=ae.segmentIndex,Ee=ae.segmentFraction,Xe=ae.alignmentFocus;Xe.Mc()&&(Xe=ho);var ci=ae.segmentOrientation,Ei=ae.segmentOffset;if(isNaN(ge)){var Si=ot.ua;le=sn(),Si.Qu(Ee,le);var $n=Vt.allocAt(le[0],le[1]);if($n.add(ot.i(0)),Si.type===ni.j?$n.offset(-Si.startX,-Si.startY):(Si=Si.figures.first(),Si!==null&&$n.offset(-Si.startX,-Si.startY)),Si=le[2],ci!==Zl){var kn=ot.computeAngle(ae,ci,Si);ae.Kb=kn}kn=$n.x-y.x;var wr=$n.y-y.y;Vt.free($n),bn(le)}else if(ge<-ft||ge>=ft)le=Vt.alloc(),ot.vg(),ot.computeMidPoint(le),Si=ot.midAngle,ci!==Zl&&(kn=ot.computeAngle(ae,ci,Si),ae.Kb=kn),kn=le.x-y.x,wr=le.y-y.y,Vt.free(le);else{if(kn=0,0<=ge?(wr=ut.M(ge),le=ge<ft-1?ut.M(ge+1):wr):(kn=ft+ge,wr=ut.M(kn),le=0<kn?ut.M(kn-1):wr),wr.Xa(le)){0<=ge?(Si=0<ge?ut.M(ge-1):wr,kn=ge<ft-2?ut.M(ge+2):le):(Si=kn<ft-1?ut.M(kn+1):wr,kn=1<kn?ut.M(kn-2):le),$n=Si.Bf(wr);var cr=le.Bf(kn);Si=$n>cr+10?0<=ge?Si.ab(wr):wr.ab(Si):cr>$n+10?0<=ge?le.ab(kn):kn.ab(le):0<=ge?Si.ab(kn):kn.ab(Si)}else Si=0<=ge?wr.ab(le):le.ab(wr);ci!==Zl&&(kn=ot.computeAngle(ae,ci,Si),ae.Kb=kn),kn=wr.x+(le.x-wr.x)*Ee-y.x,wr=wr.y+(le.y-wr.y)*Ee-y.y}ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,$n=ae.naturalBounds;var No=0;ae instanceof Tr&&(No=ae.strokeWidth),cr=$n.width+No;var ia=$n.height+No;Et.reset(),Et.translate(-le.x,-le.y),Et.scale(ae.scale,ae.scale),Et.rotate(ci===Zl?ae.angle:Si,cr/2,ia/2),ci!==Fp&&ci!==Tp||Et.rotate(90,cr/2,ia/2),ci!==Np&&ci!==Dp||Et.rotate(-90,cr/2,ia/2),ci===i0&&(45<Si&&135>Si||225<Si&&315>Si)&&Et.rotate(-Si,cr/2,ia/2),$n=new ln(0,0,cr,ia),Dt.xi($n,Xe),Et.Ga(Dt),Xe=-Dt.x+No/2*ae.scale,ae=-Dt.y+No/2*ae.scale,Qt.assign(Ei),No=isNaN(Ei.x);var Ks=isNaN(Ei.y);if(No||Ks){cr=cr/2+3,ia=ia/2+3;var qs=45<=Si&&135>=Si,Fl=225<=Si&&315>=Si;ci===Zl&&(qs||Fl)?(Qt.x=Ks?cr:Ei.y,Qt.y=No?ia:Ei.x,qs?0<=ge||isNaN(ge)&&.5>Ee||!No||(Qt.y=-ia):Fl&&((0<=ge||isNaN(ge)&&.5>Ee)&&No&&(Qt.y=-ia),Ks&&(Qt.x=-cr))):(No&&(Qt.x=0<=ge||isNaN(ge)&&.5>Ee?cr:-cr),Ks&&(Qt.y=-ia),Qt.rotate(Si))}else Qt.rotate(Si);kn+=Qt.x,wr+=Qt.y,$n.set(le),$n.h(kn+Xe,wr+ae,le.width,le.height),Ct.push($n),x.ed($n)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),js(E,x.width||0,x.height||0),kr.free(Et),Vt.free(Dt),Vt.free(Qt)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Mo||a instanceof _n){var b=a,E=null;a instanceof Mo&&(E=a,b=E.adornedPart);var z=a instanceof Mo?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var ot=tt[rt];rt++,z.arrange(ot.x-a.jg.x,ot.y-a.jg.y,ot.width,ot.height)}for(ot=0;ot<x;ot++){var lt=y[ot];if(lt!==z&&rt<tt.length){var ut=tt[rt];rt++,lt.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof _n)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var vt=tt.alignmentFocus;if(lt=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var Ct=ft.ua,Et=sn();Ct.Qu(ot,Et);var Dt=Vt.allocAt(Et[0],Et[1]);Dt.add(ft.i(0)),Ct.type===ni.j||(Ct=Ct.figures.first()),Dt.offset(-Ct.startX,-Ct.startY),Ct=Et[2],lt!==Zl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=Dt.x;var Qt=Dt.y;Vt.free(Dt),bn(Et)}else if(rt<-x||rt>=x)Et=Vt.alloc(),Ct=ft,Qt=Et,Ct.vg(),Ct.computeMidPoint(Qt),Ct=ft.midAngle,lt!==Zl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=Et.x,Qt=Et.y,Vt.free(Et);else{if(Dt=0,0<=rt?(Et=y.s[rt],Qt=rt<x-1?y.s[rt+1]:Et):(Dt=x+rt,Et=y.s[Dt],Qt=0<Dt?y.s[Dt-1]:Et),Et.Xa(Qt)){0<=rt?(Ct=0<rt?y.s[rt-1]:Et,Dt=rt<x-2?y.s[rt+2]:Qt):(Ct=Dt<x-1?y.s[Dt+1]:Et,Dt=1<Dt?y.s[Dt-2]:Qt);var Wt=Ct.Bf(Et),ae=Qt.Bf(Dt);Ct=Wt>ae+10?0<=rt?Ct.ab(Et):Et.ab(Ct):ae>Wt+10?0<=rt?Qt.ab(Dt):Dt.ab(Qt):0<=rt?Ct.ab(Dt):Dt.ab(Ct)}else Ct=0<=rt?Et.ab(Qt):Qt.ab(Et);lt!==Zl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=Et.x+(Qt.x-Et.x)*ot,Qt=Et.y+(Qt.y-Et.y)*ot}if(vt.ys())tt.location=new Vt(ft,Qt);else{vt.Mc()&&(vt=ho),Et=kr.alloc(),Et.reset(),Et.scale(tt.scale,tt.scale),Et.rotate(tt.angle,0,0);var le=tt.naturalBounds;Dt=ln.allocAt(0,0,le.width,le.height),Wt=Vt.alloc(),Wt.xi(Dt,vt),Et.Ga(Wt),vt=-Wt.x,ae=-Wt.y;var ge=le.width,Ee=le.height;le=Vt.alloc(),le.assign(ut);var Xe=isNaN(ut.x),ci=isNaN(ut.y);if(Xe||ci){ge=ge/2+3,Ee=Ee/2+3;var Ei=45<=Ct&&135>=Ct,Si=225<=Ct&&315>=Ct;lt===Zl&&(Ei||Si)?(le.x=ci?ge:ut.y,le.y=Xe?Ee:ut.x,Ei?0<=rt||isNaN(rt)&&.5>ot||!Xe||(le.y=-Ee):Si&&((0<=rt||isNaN(rt)&&.5>ot)&&Xe&&(le.y=-Ee),ci&&(le.x=-ge))):(Xe&&(le.x=0<=rt||isNaN(rt)&&.5>ot?ge:-ge),ci&&(le.y=-Ee),le.rotate(Ct))}else le.rotate(Ct);ft+=le.x,Qt+=le.y,Et.pp(Dt),vt+=Dt.x,ae+=Dt.y,rt=Vt.allocAt(ft+vt,Qt+ae),tt.move(rt),Vt.free(rt),Vt.free(le),Vt.free(Wt),ln.free(Dt),kr.free(Et)}}E!==null?E.Ul(!1):b.Ul(!1),b=TS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Vt.free(b)}};function iS(a,y,x,b){if(Ru(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Mo&&a.type===Yn.Link&&a.adornedObject instanceof Tr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof _n&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Mo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Fs(b,!1)}}function yp(){this.xa="Base"}Ze(yp,Rs),yp.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,lt=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new ln(-ot.left,-ot.top,Math.max(ft.width+lt,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),E.assign(vt);for(var Ct=rt.geometry,Et=rt.strokeWidth,Dt=Ct.flattenedSegments,Qt=Ct.flattenedLengths,Wt=Ct.flattenedTotalLength,ae=Dt.length,le=0,ge=0,Ee=sn(),Xe=0;Xe<ae;Xe++){var ci=Dt[Xe],Ei=[];ge=le=0;for(var Si=ci.length,$n=0;$n<Si;$n+=2){var kn=ci[$n],wr=ci[$n+1];if($n!==0){var cr=180*Math.atan2(wr-ge,kn-le)/Math.PI;0>cr&&(cr+=360),Ei.push(cr)}le=kn,ge=wr}Ee.push(Ei)}if(a.graduatedIntervals===null){for(var No=[],ia=a.O.s,Ks=ia.length,qs=0;qs<Ks;qs++){var Fl=ia[qs],Vs=[];if(No.push(Vs),Fl.visible){var Mc=Fl.interval;if(!(0>Mc)){for(var ms=0;ms<Ks;ms++)if(ms!==qs){var Xh=ia[ms];if(Xh.visible&&Fl.constructor===Xh.constructor){var Nl=Xh.interval;Nl>Mc&&Vs.push(Nl)}}}}}a.graduatedIntervals=No}var Ac=a.graduatedIntervals,Wu=a.O.s,mh=Wu.length,ku=0,vu=0,rf=Wt;a.graduatedMarks=[];for(var Jh,$g=0;$g<mh;$g++){var Fu=Wu[$g];if(Jh=[],Fu.visible&&Fu!==rt){var Tl=Math.abs(Fu.interval),im=a.graduatedTickUnit;if(!(2>im*Tl*Wt/a.graduatedRange&&Fu.graduatedSkip===null)){var dg=Qt[0][0],hd=0,yu=0;vu=Wt*Fu.graduatedStart-1e-4,rf=Wt*Fu.graduatedEnd+1e-4;var Bf=im*Tl,Nu=a.graduatedTickBase;if(Nu<a.graduatedMin){var of=(a.graduatedMin-Nu)/Bf;of=of%1===0?of:Math.floor(of+1),Nu+=of*Bf}else Nu>a.graduatedMin+Bf&&(Nu-=Math.floor((Nu-a.graduatedMin)/Bf)*Bf);for(var V0=Ac[$g],rm=Nu,Hy=1e-6*a.graduatedMax,Nd=1;Nu<=a.graduatedMax+Hy;Nd++){t:{for(var $d=V0.length,cg=0;cg<$d;cg++){var af=(Nu-a.graduatedTickBase)%(V0[cg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af<qg&&af>-qg){var sf=!1;break t}}sf=!0}if(sf&&(Nu>a.graduatedMax&&(Nu=a.graduatedMax),Fu.graduatedSkip===null||Fu instanceof oa&&!Fu.graduatedSkip(Nu,Fu)||Fu instanceof Tr&&!Fu.graduatedSkip(Nu,Fu))&&(ku=(Nu-a.graduatedMin)*Wt/a.graduatedRange,ku>Wt&&(ku=Wt),vu<=ku&&ku<=rf)){for(var Td=Ee[hd][yu],kc=Qt[hd][yu];hd<Qt.length;){for(;ku>dg&&yu<Qt[hd].length-1;)yu++,Td=Ee[hd][yu],kc=Qt[hd][yu],dg+=kc;if(ku<=dg)break;hd++,yu=0,Td=Ee[hd][yu],kc=Qt[hd][yu],dg+=kc}var Su=Dt[hd],dd=Su[2*yu],Y0=Su[2*yu+1],qd=(ku-(dg-kc))/kc,_g=new Vt(dd+(Su[2*yu+2]-dd)*qd+Et/2-Ct.bounds.x,Y0+(Su[2*yu+3]-Y0)*qd+Et/2-Ct.bounds.y);_g.scale(rt.scale,rt.scale);t:{var Qh=Td,Of=Ee[hd];if(!(.5005>qd&&.4995<qd)){var cd=Qh;if(.5>qd?0<yu?cd=Of[yu-1]:Ne.$(Su[0],Su[Su.length-2])&&Ne.$(Su[1],Su[Su.length-1])&&(cd=Of[Of.length-1]):.5<qd&&(yu+1<Of.length?cd=Of[yu+1]:Ne.$(Su[0],Su[Su.length-2])&&Ne.$(Su[1],Su[Su.length-1])&&(cd=Of[0])),Qh!==cd){var fg=Math.abs(Qh-cd);if(180<fg&&(Qh<cd?Qh+=360:cd+=360,fg=Math.abs(Qh-cd)),5e-4>qd||.9995<qd){Td=(Qh+cd)/2%360;break t}if(10>fg){var tp=1-Math.abs(.5-qd);Td=(Qh*tp+cd*(1-tp))%360;break t}}}Td=Qh}if(Fu instanceof oa){var Th="";Fu.graduatedFunction!==null?(Th=Fu.graduatedFunction(Nu,Fu),Th=Th!=null?Th.toString():""):Th=(+Nu.toFixed(2)).toString(),Th!==""&&Jh.push({$l:_g,angle:Td,text:Th})}else Jh.push({$l:_g,angle:Td})}Nu=rm+Nd*Bf}}}a.graduatedMarks.push(Jh)}bn(Ee);var al=a.graduatedMarks;if(al!==null)for(var om=b.length,Ul=0;Ul<om;Ul++){var vs=b[Ul],Xl=al[Ul];if(vs.visible&&vs!==rt&&Xl.length!==0){if(vs instanceof Tr){var _d=a,Fc=E,If=vs.alignmentFocus;If.Mc()&&(If=Jl);var Wy=vs.angle;vs.Kb=0,vs.measure(1/0,1/0,0,0),vs.Kb=Wy;var U0=vs.measuredBounds,ep=U0.width,Rf=U0.height,gg=ln.allocAt(0,0,ep,Rf),xu=Vt.alloc();xu.xi(gg,If),ln.free(gg);for(var tc=-xu.x,$h=-xu.y,nh=new ln,lf=Xl.length,np=0;np<lf;np++)for(var uf=Xl[np],X0=uf.$l.x,ip=uf.$l.y,rs=uf.angle,Dh=0;4>Dh;Dh++){switch(Dh){case 0:xu.h(tc,$h);break;case 1:xu.h(tc+ep,$h);break;case 2:xu.h(tc,$h+Rf);break;case 3:xu.h(tc+ep,$h+Rf)}xu.rotate(rs+vs.angle),xu.offset(X0,ip),np===0&&Dh===0?nh.h(xu.x,xu.y,0,0):nh.Ye(xu),xu.offset(-X0,-ip),xu.rotate(-rs-vs.angle)}Vt.free(xu),_d.graduatedBounds!==null&&_d.graduatedBounds.push(nh),Fo(Fc,nh.x,nh.y,nh.width,nh.height)}else if(vs instanceof oa){var vh=a,J0=E;vh.temporaryTextBlock===null&&(vh.temporaryTextBlock=new oa);var Tu=vh.temporaryTextBlock;yS(Tu,vs);var Nc=vs.alignmentFocus;Nc.Mc()&&(Nc=Jl);for(var yh=vs.segmentOrientation,rp=vs.segmentOffset,hf=new ln,am=0,op=0,fd=0,zf=0,df=0,ap=Xl.length,Tc=0;Tc<ap;Tc++){var Dd=Xl[Tc];am=Dd.$l.x,op=Dd.$l.y,fd=Dd.angle,df=zf=vs.angle,yh!==Zl&&(df=yh===kp||yh===n0?fd+vs.angle:fd,zf=_n.computeAngle(yh,df)),Tu.Kb=zf,Tu.text=Dd.text||"",Tu.measure(1/0,1/0,0,0);var Dc=Tu.measuredBounds,ec=Tu.naturalBounds,Bc=ec.width,jf=ec.height,qh=kr.alloc();qh.reset(),qh.translate(-Dc.x,-Dc.y),qh.scale(Tu.scale,Tu.scale),qh.rotate(df,Bc/2,jf/2),yh!==Fp&&yh!==Tp||qh.rotate(90,Bc/2,jf/2),yh!==Np&&yh!==Dp||qh.rotate(-90,Bc/2,jf/2),yh===i0&&(45<fd&&135>fd||225<fd&&315>fd)&&qh.rotate(-fd,Bc/2,jf/2);var pg=ln.allocAt(0,0,Bc,jf),Oc=Vt.alloc();Oc.xi(pg,Nc),qh.Ga(Oc);var mg=-Oc.x,Zy=-Oc.y,nc=Vt.alloc();nc.assign(rp),isNaN(nc.x)&&(nc.x=Bc/2+3),isNaN(nc.y)&&(nc.y=-(jf/2+3)),nc.rotate(fd),am+=nc.x+mg,op+=nc.y+Zy;var Hf=new ln(am,op,Dc.width,Dc.height),sm=new ln(Dc.x,Dc.y,Dc.width,Dc.height),Gy=new ln(ec.x,ec.y,ec.width,ec.height);Dd.Sz=zf,Dd.lineCount=Tu.lineCount,Dd.lines=[Tu.Cb,Tu.Ih,Tu.df,Tu.Le,Tu.Qc,Tu.Qb,Tu.ze],Dd.actualBounds=Hf,Dd.measuredBounds=sm,Dd.naturalBounds=Gy,Tc===0?hf.assign(Hf):hf.ed(Hf),Vt.free(nc),Vt.free(Oc),ln.free(pg),kr.free(qh)}vh.graduatedBounds!==null&&vh.graduatedBounds.push(hf),Fo(J0,hf.x,hf.y,hf.width,hf.height)}Fs(vs,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,lt=0;lt<ot;lt++){var ut=y[lt];rt=E[lt],ut.visible&&ut!==b&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},yp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,tt=E.height;E=y instanceof Lu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,lt=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var vt=ot[ft],Ct=lt[ft],Et=Ct.length;if(vt.visible&&vt!==z&&Ct.length!==0){if(vt instanceof Tr){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Dt=vt.measuredBounds,Qt=vt.strokeWidth*vt.scale,Wt=vt.alignmentFocus;Wt.Mc()&&(Wt=Jl);for(var ae=0;ae<Et;ae++){var le=Ct[ae].$l,ge=Ct[ae].angle,Ee=Wt,Xe=vt.Ab;Xe.reset(),Xe.translate(le.x+rt.x,le.y+rt.y),Xe.rotate(ge+vt.angle,0,0),Xe.translate(-Dt.width*Ee.x+Ee.offsetX+Qt/2,-Dt.height*Ee.y+Ee.offsetY+Qt/2),Xe.scale(vt.scale,vt.scale),dh(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,Ju(vt,!1),vt.gc(y,x),E&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof oa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new oa),Dt=a.temporaryTextBlock,yS(Dt,vt),Qt=0;Qt<Et;Qt++)Wt=Ct[Qt],Wt.actualBounds&&Wt.measuredBounds&&Wt.naturalBounds&&(Dt.ec=Wt.text||"",Dt.Kb=Wt.Sz||0,Dt.Gc=Wt.lineCount||0,ae=Wt.lines,ae!==void 0&&(Dt.Cb=ae[0],Dt.Ih=ae[1],Dt.df=ae[2],Dt.Le=ae[3],Dt.Qc=ae[4],Dt.Qb=ae[5],Dt.ze=ae[6]),Wt.naturalBounds&&(Dt.dc=Wt.naturalBounds),Wt.actualBounds&&(ae=Wt.actualBounds,Dt.arrange(ae.x,ae.y,ae.width,ae.height)),ae=Wt.actualBounds,Dt.arrange(ae.x,ae.y,ae.width,ae.height),le=Wt.measuredBounds,Wt=Wt.naturalBounds,ge=Dt.Ab,ge.reset(),ge.translate(ae.x+rt.x,ae.y+rt.y),ge.translate(-le.x,-le.y),Dt.no(ge,Wt.x,Wt.y,Wt.width,Wt.height),dh(Dt,!1),Dt.wh.set(Dt.Ab),Dt.Kk=Dt.scale,Ju(Dt,!1),Dt.Ng=vt.part,Dt.Me=vt.panel,Dt.gc(y,x),Dt.Me=null,Dt.Ng=null,E&&(a.svg.appendChild(Dt.svg),Dt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Yn(a,y){if(Me.call(this),this.na=null,a===void 0)this.na=Yn.Position;else if(typeof a=="string"){var x=Lh.I(a);x!==null&&(this.na=x)}else a instanceof Rs?this.na=a:a&&(this.na=Yn.Position,y=a);this.na===null&&Ce("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Yn.Grid?1048576:0),this.O=new wn,this.yb=dl,this.Tm=Bo,this.Uf=br,this.$g=null,this.$e="",this.jg=new ln(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ni,this.jn=Ia,this.kn=qr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Ze(Yn,Me),Yn.prototype.cloneProtected=function(a){Me.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},Yn.prototype.Af=function(a){Me.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Yn.prototype.copy=function(){var a=Me.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof fi&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Qn,"elements",a,null,E,null,tt)}}return a}return null},Lt=Yn.prototype,Lt.toString=function(){return"Panel("+this.type.name+")#"+uo(this)},Lt.Pn=function(a){Me.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Lt.hh=function(a,y){if(this.na===Yn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Yn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Yn.Table)if(a.yc(),a instanceof Lu){var x=a.yd;a.yd=gm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Yn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Am(a,y,!0,x,!0),b!==null&&Am(a,y,!1,b,!0),x!==null&&rS(a,y,!0,x),b!==null&&rS(a,y,!1,b),x!==null&&Am(a,y,!0,x,!1),b!==null&&Am(a,y,!1,b,!1)}function rS(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<E;ot++){var lt=b[ot];if(lt!==void 0&<.actual!==0)if(rt)rt=!1;else{if(x){if(lt.position>tt.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){qa(a,y,ft,!1,!1,tt,z),ft=!1;var vt=lt.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=lt.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(vt,lt)):(lt+=ut.left,vt=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,ot=oS(a,!0),lt=oS(a,!1),ut=0;ut<z;ut++){var ft=b[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==E&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var Ct=ft.Wc(),Et=ft.separatorStrokeWidth;isNaN(Et)&&(Et=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Dt=ft.separatorStroke;Dt===null&&(Dt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Dt===null||ft.index===(x?ot:lt))&&(Et=0),Ct-=Et,Et=ft.position+Et,Ct+=ft.actual,Et+Ct>vt&&(Ct=vt-Et),0>=Ct||(vt=a.yb,qa(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Et+vt.top,tt.width-(vt.left+vt.right),Ct):y.fillRect(Et+vt.left,vt.top,Ct,tt.height-(vt.top+vt.bottom)))}}}}function oS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}Lt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Lt.kk=function(a,y,x){if(!Me.prototype.kk.call(this,a,y,x))return!1;if(this.type===Yn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Yn.Grid||this.na===Yn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Lt.nk=function(){return!0},Lt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;E=tt===0?rt.x:Math.min(rt.x,E),z=tt===0?rt.y:Math.min(rt.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Me.prototype.$o.call(this,a,y,x,b)},Lt.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),ot=tt.m22*rt,lt=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,vt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),Ct=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,Ne.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*ot+y*ut+vt,rt=a*lt+y*ft+Ct,a=x*ot+b*ut+vt,ot=x*lt+b*ft+Ct,E.h(0,0),x=this.naturalBounds,z=Ne.Ff(0,0,x.width,x.height,z,rt,a,ot,E),E.transform(tt),z;z||(ot=1,ut=lt=0,ft=1,Ct=vt=0),rt=a*ot+y*ut+vt,a=a*lt+y*ft+Ct,ot=x*ot+b*ut+vt,x=x*lt+b*ft+Ct,E.h(ot,x),b=(ot-rt)*(ot-rt)+(x-a)*(x-a),lt=!1,ft=this.O.s,Ct=ft.length,ut=Vt.alloc(),vt=null,y=1/0;var Et=null,Dt=this.isClipping&&this.na===Yn.Spot;Dt&&(Et=Vt.alloc(),vt=this.Pb(),(lt=vt.Sj(rt,a,ot,x,Et))&&(y=(rt-Et.x)*(rt-Et.x)+(a-Et.y)*(a-Et.y)));for(var Qt=0;Qt<Ct;Qt++){var Wt=ft[Qt];Wt.visible&&Wt!==vt&&Wt.Sj(rt,a,ot,x,ut)&&(lt=!0,Wt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Wt<b&&(b=Wt,E.set(ut)))}return Dt&&(y>b&&E.set(Et),Vt.free(Et)),Vt.free(ut),z&&E.transform(tt),lt},Lt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Me.prototype.Gj.call(this)},Lt.v=function(a){if(!Ru(this)){Me.prototype.v.call(this,a),a=null,(this.na===Yn.Auto||this.na===Yn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=eu(E,!1);(E instanceof Wl||E instanceof Yn||E instanceof oa||z!==Dn)&&E.v(!0)}}}},Lt.Uj=function(){if(!Ru(this)){Fs(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Lt.Uk=function(){if(!(this.l&2048)){dh(this,!0),Ju(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Lt.Wu=function(){Ju(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Lt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(b,y);var ot=this.yb;a=Math.max(a-ot.left-ot.right,0),y=Math.max(y-ot.top-ot.bottom,0);var lt=this.O.s;lt.length!==0&&this.na.measure(this,a,y,lt,E,x,b),a=E.width+ot.left+ot.right,ot=E.height+ot.top+ot.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ot=z.height),a=Math.min(rt.width,a),ot=Math.min(rt.height,ot),a=Math.max(tt.width,a),ot=Math.max(tt.height,ot),a=Math.max(x,a),ot=Math.max(b,ot),js(E,a,ot),js(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Lt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Xd(a){return a.part!==null?a.part.locationObject:null}Lt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=eu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===b&&(a=Dn),a){case Dn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Hn:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case Ii:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case er:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Lt.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(sa(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Vt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Cr(E.set(a),z.transform),z.ca(E)))return Vt.free(E),!0}return Vt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Lt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Lt.qm=function(a,y){if(y(this,a),a instanceof Yn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Yn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof Yn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)sS(a,y[E],x)}}Lt.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof Yn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=lS(a,y[E],x);if(z!==null)return z}}return null}Lt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Sp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Yn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Yn?x=Math.max(x,uS(E)):E instanceof Tr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Lt.se=function(){return!(this.type===Yn.TableRow||this.type===Yn.TableColumn)};function vc(a){return a.type===Yn.TableRow||a.type===Yn.TableColumn}Lt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),jl(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:Cr(Vt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,lt=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),lt=ot/2),sa(-(lt*E),-(lt*E),b.width+ot*E,b.height+ot*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(rt=Vt.alloc(),lt=(ot=this.isClipping&&this.na===Yn.Spot)?this.Pb():null,ot&&(lt.se()?Cr(rt.set(a),lt.transform):rt.set(a),!lt.ca(rt)))return Vt.free(rt),z||Vt.free(tt),null;for(var ft=Xd(this);ut--;){var vt=E[ut];if((vt.visible||vt===ft)&&(vt.se()?Cr(rt.set(a),vt.transform):rt.set(a),!ot||vt!==lt)){var Ct=null;if(vt instanceof Yn?Ct=vt.ic(rt,y,x):vt.pickable===!0&&vt.ca(rt)&&(Ct=vt),Ct!==null&&(y!==null&&(Ct=y(Ct)),Ct!==null&&(x===null||x(Ct))))return Vt.free(rt),z||Vt.free(tt),Ct}}Vt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Vt.free(tt),null):(a=sa(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||Vt.free(tt),a)}return z||Vt.free(tt),null},Lt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),tt=z?a:Cr(Vt.allocAt(a.x,a.y),this.transform);if(E=sa(0,0,E.width,E.height,tt.x,tt.y),vc(this)||E){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,lt=Vt.alloc(),ut=Xd(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?Cr(lt.set(a),ft.transform):lt.set(a);var vt=ft;ft=ft instanceof Yn?ft:null,(ft!==null?ft.ji(lt,y,x,b):vt.ca(lt))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||b.add(vt))}}Vt.free(lt)}return z||Vt.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||Vt.free(tt),!1},Lt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=kr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&kr.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=Xd(this),ot=this.O.s,lt=ot.length;lt--;){var ut=ot[lt];if(ut.visible||ut===rt){var ft=ut.actualBounds,vt=this.naturalBounds;ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Yn?ut:null,vt=kr.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,vt):Gs(ft,a,b,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),kr.free(vt))}}return z===void 0&&kr.free(tt),b}return z===void 0&&kr.free(tt),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Yn&&mv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Lt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,rt=this.se(),ot=rt?a:Cr(Vt.allocAt(a.x,a.y),this.transform),lt=rt?y:Cr(Vt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(lt),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||Do(ot.x,ot.y,0,0,0,tt.height)<=ut||Do(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||Do(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||Do(ot.x,ot.y,tt.width,0,0,0)<=ut;if(tt=ot.zd(0,0)<=ut&&ot.zd(0,tt.height)<=ut&&ot.zd(tt.width,0)<=ut&&ot.zd(tt.width,tt.height)<=ut,rt||(Vt.free(ot),Vt.free(lt)),ft){if(!this.isAtomic){ot=Vt.alloc(),lt=Vt.alloc(),ut=Xd(this);for(var vt=this.O.s,Ct=vt.length;Ct--;){var Et=vt[Ct];if(Et.visible||Et===ut){var Dt=Et.actualBounds,Qt=this.naturalBounds;(!rt||!(Dt.x>Qt.width||Dt.y>Qt.height||0>Dt.x+Dt.width||0>Dt.y+Dt.height))&&(Et.se()?(Dt=Et.transform,Cr(ot.set(a),Dt),Cr(lt.set(y),Dt)):(ot.set(a),lt.set(y)),Dt=Et,Et=Et instanceof Yn?Et:null,(Et!==null?Et.og(ot,lt,x,b,E,z):Dt.tx(ot,lt,E))&&(x!==null&&(Dt=x(Dt)),Dt===null||b!==null&&!b(Dt)||z.add(Dt)))}}Vt.free(ot),Vt.free(lt)}return E?ft:tt}return!1};function vv(a){var y=null;return a instanceof Tr&&(y=a.spot1,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Es),y}function yv(a){var y=null;return a instanceof Tr&&(y=a.spot2,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ml),y}Lt.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},Lt.M=function(a){return this.O.M(a)},Lt.Gb=function(a,y){y instanceof Hi&&Ce("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ce("Cannot make a Panel contain itself: "+this.toString()),Ce("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ce("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!==Yn.Grid||y instanceof Tr||Ce("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Yn.Graduated||y instanceof Tr||y instanceof oa||Ce("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Ci),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,ot=0;ot<rt;ot++)if(tt[ot]===y){z=ot;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Ce("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Ru(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Yn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof fi&&(x.Te=!0),x.Te&&x instanceof fi&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(di,"elements",this,y,null,b,null),x.cb(Qn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Lt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Lt.mb=function(a){0<=a&&this.pc(a,!0)},Lt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Fs(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof fi&&(b instanceof Yn?b.qm(b,function(tt,rt){Zv(z,rt,y)}):Zv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(di,"elements",this,b,null,a,null))},Lt.Fb=function(a){0>a&&pi(a,">= 0",Yn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ns;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Qn,"rowdefs",this,null,x,null,a)}return y[a]},Lt.oA=function(a){if(0>a&&pi(a,">= 0",Yn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(di,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ns?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.Eb=function(a){0>a&&pi(a,">= 0",Yn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ns;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Qn,"coldefs",this,null,x,null,a)}return y[a]},Lt.jA=function(a){if(0>a&&pi(a,">= 0",Yn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(di,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ns?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.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},Lt.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ns(y)),this},Lt.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ns(y)),this},Lt.nz=function(a){if(0>a||this.type!==Yn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Lt.fz=function(a){if(0>a||this.type!==Yn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Lt.Fz=function(a,y){if(y===void 0&&(y=new Vt(NaN,NaN)),this.type!==Yn.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)},Lt.Gz=function(a){if(this.type!==Yn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function cS(a){return a=a.allBindings,a!==null&&a._isFrozen}function fh(a){var y=a.allBindings;if(y===null)a.data!==null&&Ce("Template cannot have .data be non-null: "+a),a.allBindings=y=new wn;else if(y._isFrozen)return;var x=new wn;Sv(a,!1),a.qm(a,function(lt,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Qf(ut,!1),ft=ft.iterator;ft.next();){var vt=ft.value;vt.mode===Wp&&Qf(ut,!0);var Ct=vt.sourceName;Ct!==null&&(Ct==="/"&&Sv(lt,!0),Ct=L1(vt,lt,ut),Ct!==null&&(x.add(Ct),Ct.srcBindings===null&&(Ct.srcBindings=new wn),Ct.srcBindings.add(vt))),y.add(vt)}if(ut instanceof Yn&&ut.type===Yn.Table){if(0<ut.rowCount){for(lt=ut.rowDefs,ft=lt.length,vt=0;vt<ft;vt++)if(Ct=lt[vt],Ct!==void 0&&Ct.be!==null)for(var Et=Ct.be.iterator;Et.next();){var Dt=Et.value;Dt.xd=Ct,Dt.to=2,Dt.wl=Ct.index,y.add(Dt)}}if(0<ut.columnCount){for(ut=ut.colDefs,lt=ut.length,ft=0;ft<lt;ft++)if(vt=ut[ft],vt!==void 0&&vt.be!==null)for(Ct=vt.be.iterator;Ct.next();)Et=Ct.value,Et.xd=vt,Et.to=1,Et.wl=vt.index,y.add(Et)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Qf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new wn),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,ot=rt.indexOf(".");0<ot&&z instanceof Yn&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,E.targetProperty=rt):Bi('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Ns?(tt=uo(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof Me?(tt=uo(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):Ce("Unknown type of binding target: "+z)}y.freeze(),a instanceof Hi&&a.Zc()&&a.Va()}Lt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Yn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&fh(y),y},Lt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Yn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Lt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Yn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Yn)||z.data!==y[tt])return!0;E++,tt++}return!1}function Sp(a){if(a.type===Yn.Spot||a.type===Yn.Auto)return Math.min(a.O.length,1);if(a.type===Yn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Tr&&b.isPanelMain))break}return x}return a.type===Yn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Yn&&vc(a))?1:0}Lt.mv=function(){for(var a=Sp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=Sp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Yn){if(tt.data!==z){var rt=wv(a,tt.data),ot=wv(a,z),lt=ot!==rt;lt||(rt=Pv(a,rt),lt=Pv(a,ot)!==rt),lt?(a.pc(b,!1),km(a,z,E,!1)):tt.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),Ru(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof fi&&(y.Te=!0),y.Te&&y instanceof fi&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(fh(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ci),a.ge.add(y,E)),z=x+Sp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Yn){var E=y,z=x;b.type===Yn.TableRow?b.row=E:b.type===Yn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function wv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=ds(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ce("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(gS||(gS=!0,Bi('No item template Panel found for category "'+y+'" on '+a),Bi(" Using default item template."),a=new Yn,y=new oa,y.bind(new ps("text","",Wn)),a.add(y),pS=a),b=pS)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Yn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Yn&&!z.isEnabled||Fm(a,z,x)}}}function ld(a,y){y.name=a,Lh.add(a,y)}fe.Object.defineProperties(Yn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Yn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&pi(a,">= 0",Yn,"padding"),a=new Zi(a)):(0>a.left&&pi(a.left,">= 0",Yn,"padding:value.left"),0>a.right&&pi(a.right,">= 0",Yn,"padding:value.right"),0>a.top&&pi(a.top,">= 0",Yn,"padding:value.top"),0>a.bottom&&pi(a.bottom,">= 0",Yn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:dl},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new qu),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 Zo)&&(a instanceof Zo&&a.freeze(),this.T===null&&(this.T=new qu),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 qu),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ce("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new qu),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 Zo)&&(a instanceof Zo&&a.freeze(),this.T===null&&(this.T=new qu),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 qu),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ce("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new qu),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 qu),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||Ce("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&lh(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()||Ce("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&lh(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Jd),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Jd,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Jd,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Jd,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Jd,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new qu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new qu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new qu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new qu),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)&&Ce("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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)&&Ce("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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 Hi&&!(this instanceof Mo);fh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof _n?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Hi&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new $f),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fS(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Ci}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Hi||a.isPanelMain)&&Ce("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(););zr(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&&(zr(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 Pr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Fm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),fe.Object.defineProperties(Yn,{Position:{get:function(){return Lh.I("Position")}},Horizontal:{get:function(){return Lh.I("Horizontal")}},Vertical:{get:function(){return Lh.I("Vertical")}},Spot:{get:function(){return Lh.I("Spot")}},Auto:{get:function(){return Lh.I("Auto")}},Table:{get:function(){return Lh.I("Table")}},Viewbox:{get:function(){return Lh.I("Viewbox")}},TableRow:{get:function(){return Lh.I("TableRow")}},TableColumn:{get:function(){return Lh.I("TableColumn")}},Link:{get:function(){return Lh.I("Link")}},Grid:{get:function(){return Lh.I("Grid")}},Graduated:{get:function(){return Lh.I("Graduated")}}}),Yn.prototype.rebuildItemElements=Yn.prototype.mv,Yn.prototype.findItemPanelForData=Yn.prototype.sx,Yn.prototype.updateTargetBindings=Yn.prototype.La,Yn.prototype.copyTemplate=Yn.prototype.Uy,Yn.prototype.graduatedValueForPoint=Yn.prototype.Gz,Yn.prototype.graduatedPointForValue=Yn.prototype.Fz,Yn.prototype.findColumnForLocalX=Yn.prototype.fz,Yn.prototype.findRowForLocalY=Yn.prototype.nz,Yn.prototype.addColumnDefinition=Yn.prototype.By,Yn.prototype.addRowDefinition=Yn.prototype.Hy,Yn.prototype.addRowColumnDefinition=Yn.prototype.Gy,Yn.prototype.removeColumnDefinition=Yn.prototype.jA,Yn.prototype.getColumnDefinition=Yn.prototype.Eb,Yn.prototype.removeRowDefinition=Yn.prototype.oA,Yn.prototype.getRowDefinition=Yn.prototype.Fb,Yn.prototype.removeAt=Yn.prototype.mb,Yn.prototype.remove=Yn.prototype.remove,Yn.prototype.insertAt=Yn.prototype.Gb,Yn.prototype.elt=Yn.prototype.M,Yn.prototype.add=Yn.prototype.add,Yn.prototype.findObject=Yn.prototype.fb,Yn.prototype.findInVisualTree=Yn.prototype.Nl,Yn.prototype.walkVisualTreeFrom=Yn.prototype.qm,Yn.prototype.findMainElement=Yn.prototype.Pb;var gS=!1,pS=null,Lh=new Ci;Yn.className="Panel",Yn.definePanelLayout=ld,ld("Position",new vm),ld("Vertical",new Sm),ld("Auto",new wm),ld("Link",new Mm);function Jd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jd.prototype.copy=function(){var a=new Jd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Jd.className="GradPanelSettings";function qu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}qu.prototype.copy=function(a){for(var y=new qu,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},qu.className="TablePanelSettings";function Ns(a){Or(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=br,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Ns.prototype.copy=function(){var a=new Ns;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=He(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=He(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Lt=Ns.prototype,Lt.qb=function(a){a.classType===Ns&&(this.sizing=a)},Lt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+uo(this)},Lt.wi=function(a){this.Me=a},Lt.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)},Lt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Yn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Lt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Zn,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Lt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ps(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&cS(y)&&Ce("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new wn),this.be.add(E),this},fe.Object.defineProperties(Ns.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&pi(a,">= 0",Ns,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&pi(a,">= 0",Ns,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&pi(a,">= 0",Ns,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&pi(a,">= 0",Ns,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.separatorStroke"),a instanceof Zo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ce("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.background"),a instanceof Zo&&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}}}),Ns.prototype.computeEffectiveSpacing=Ns.prototype.Wc,Ns.prototype.computeEffectiveSpacingTop=Ns.prototype.Io;var Cv=new Oe(Ns,"Default",0),xp=new Oe(Ns,"None",1),Dm=new Oe(Ns,"ProportionalExtra",2);Ns.className="RowColumnDefinition",Ns.Default=Cv,Ns.None=xp,Ns.ProportionalExtra=Dm;function Tr(a,y){Me.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)}Ze(Tr,Me),Tr.prototype.cloneProtected=function(a){Me.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=He(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Mf(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}Lt=Tr.prototype,Lt.th=function(){Me.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Lt.qb=function(a){a===Dn||a===Ni||a===oo||a===br?this.geometryStretch=a:Me.prototype.qb.call(this,a)},Lt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+uo(this)};function kg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],lt,ut,ft,vt,Ct,Et,Dt=0,Qt=sn(),Wt=2;Wt<E;Wt+=2)lt=x[Wt],ut=x[Wt+1],ft=lt-rt,rt=ut-ot,ft===0&&(ft=.001),vt=rt/ft,Ct=Math.atan2(rt,ft),Et=Math.sqrt(ft*ft+rt*rt),Qt.push([ft,Ct,vt,Et]),Dt+=Et,rt=lt,ot=ut;rt=x[0],ot=x[1],ft=b.measuredBounds.width,b instanceof Tr&&(ft-=b.strokeWidth),1>ft&&(ft=1),E=x=ft,lt=tt/2,ut=lt!==0,Wt=0,Et=Qt[Wt],ft=Et[0],Ct=Et[1],vt=Et[2],Et=Et[3];for(var ae=0;.1<=Dt;){if(ae===0&&(ut?(E=x,E-=lt,Dt-=lt,ut=!1):E=x,E===0&&(E=1)),E>Dt){bn(Qt);return}E>Et?(ae=E-Et,E=Et):ae=0;var le=Math.sqrt(E*E/(1+vt*vt));if(0>ft&&(le=-le),rt+=le,ot+=vt*le,a.translate(rt,ot),a.rotate(Ct),a.translate(-(tt/2),-(z/2)),ae===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Ct),a.translate(-rt,-ot),Dt-=E,Et-=E,ae!==0){if(Wt++,Wt===Qt.length){bn(Qt);return}Et=Qt[Wt],ft=Et[0],Ct=Et[1],vt=Et[2],Et=Et[3],E=ae}}bn(Qt)}}Lt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&qa(this,a,b,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===Yn.Link&&rt instanceof Mo&&rt.category==="Selection"&&rt.adornedObject instanceof Tr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(qa(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),E.type===ni.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===ni.u){var lt=E.startX;ot=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(lt,ut);var vt=Math.min(ot,ft);lt=Math.abs(ut-lt),ot=Math.abs(ft-ot),a.beginPath(),a.rect(E,vt,lt,ot),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se()}else if(E.type===ni.F)lt=E.startX,ot=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-lt)/2,vt=Math.abs(ft-ot)/2,lt=Math.min(lt,ut)+E,ot=Math.min(ot,ft)+vt,a.beginPath(),a.moveTo(lt,ot-vt),a.bezierCurveTo(lt+Ne.wg*E,ot-vt,lt+E,ot-Ne.wg*vt,lt+E,ot),a.bezierCurveTo(lt+E,ot+Ne.wg*vt,lt+Ne.wg*E,ot+vt,lt,ot+vt),a.bezierCurveTo(lt-Ne.wg*E,ot+vt,lt-E,ot+Ne.wg*vt,lt-E,ot),a.bezierCurveTo(lt-E,ot-Ne.wg*vt,lt-Ne.wg*E,ot-vt,lt,ot-vt),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se();else if(E.type===ni.o)for(E=E.figures,ot=E.length,vt=0;vt<ot;vt++){lt=E.s[vt],a.beginPath(),a.moveTo(lt.startX,lt.startY),ut=lt.segments.s,ft=ut.length;for(var Ct=null,Et=0;Et<ft;Et++){var Dt=ut[Et];switch(Dt.type){case as:a.moveTo(Dt.endX,Dt.endY);break;case ta:a.lineTo(Dt.endX,Dt.endY);break;case Us:a.bezierCurveTo(Dt.point1X,Dt.point1Y,Dt.point2X,Dt.point2Y,Dt.endX,Dt.endY);break;case It:a.quadraticCurveTo(Dt.point1X,Dt.point1Y,Dt.endX,Dt.endY);break;case Kt:if(Dt.radiusX===Dt.radiusY){var Qt=Math.PI/180;a.arc(Dt.point1X,Dt.point1Y,Dt.radiusX,Dt.startAngle*Qt,(Dt.startAngle+Dt.sweepAngle)*Qt,0>Dt.sweepAngle,Ct!==null?Ct.endX:lt.startX,Ct!==null?Ct.endY:lt.startY)}else if(Ct=il(Dt,lt),Qt=Ct.length,Qt===0)a.lineTo(Dt.centerX,Dt.centerY);else for(var Wt=0;Wt<Qt;Wt++){var ae=Ct[Wt];Wt===0&&a.lineTo(ae[0],ae[1]),a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7])}break;case _t:if(Wt=Qt=0,Ct!==null&&Ct.type===Kt){if(Ct=il(Ct,lt),ae=Ct.length,ae===0){a.lineTo(Dt.endX,Dt.endY);break}Ct=Ct[ae-1]||null,Ct!==null&&(Qt=Ct[6],Wt=Ct[7])}else Qt=Ct!==null?Ct.endX:lt.startX,Wt=Ct!==null?Ct.endY:lt.startY;if(Ct=yl(Dt,lt,Qt,Wt),Qt=Ct.length,Qt===0){a.lineTo(Dt.endX,Dt.endY);break}for(Wt=0;Wt<Qt;Wt++)ae=Ct[Wt],a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7]);break;default:Ce("Segment not of valid type: "+Dt.type)}Dt.isClosed&&a.closePath(),Ct=Dt}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&rt&&wd(a),a.jk(),ut&&rt&&Vd(a))):(wd(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ut&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk()),a.Se(vt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=sn(),z.type===ni.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),kg(a,y,b,x);else if(z.type===ni.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,ot=tt,vt=E,lt=rt.segments.s,ut=lt.length,ft=0;ft<ut;ft++){switch(Et=lt[ft],Et.type){case as:kg(a,y,b,x),b.length=0,b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY,ot=tt,vt=E;break;case ta:b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY;break;case Us:Ne.Qe(tt,E,Et.point1X,Et.point1Y,Et.point2X,Et.point2Y,Et.endX,Et.endY,.5,b),tt=Et.endX,E=Et.endY;break;case It:Ne.ep(tt,E,Et.point1X,Et.point1Y,Et.endX,Et.endY,.5,b),tt=Et.endX,E=Et.endY;break;case Kt:if(Dt=il(Et,rt),Ct=Dt.length,Ct===0){b.push(Et.centerX),b.push(Et.centerY),tt=Et.centerX,E=Et.centerY;break}for(Qt=0;Qt<Ct;Qt++)Wt=Dt[Qt],Ne.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;case _t:if(Dt=yl(Et,rt,tt,E),Ct=Dt.length,Ct===0){b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY;break}for(Qt=0;Qt<Ct;Qt++)Wt=Dt[Qt],Ne.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;default:Ce("Segment not of valid type: "+Et.type)}Et.isClosed&&(b.push(ot),b.push(vt),kg(a,y,b,x))}kg(a,y,b,x)}else if(z.type===ni.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),kg(a,y,b,x);else if(z.type===ni.F){if(E=new Cs,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new vo(Kt),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(tt),z=il(tt,E),rt=z.length,rt===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,ot=0;ot<rt;ot++)vt=z[ot],Ne.Qe(tt,E,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,b),tt=vt[6],E=vt[7];kg(a,y,b,x)}bn(b),a.restore(),a.Vc(!1)}}}},Lt.kk=function(a,y,x){return!Me.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)},Lt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Me.prototype.nk.call(this,a)},Lt.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)}},Lt.ga=function(a,y){if(y===void 0&&(y=new Vt),a instanceof Fi){a.Mc()&&Ce("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Lt.mi=function(a){a===void 0&&(a=new ln);var y=this.naturalBounds,x=this.oe;y=ln.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Vt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Fo(a,b.x,b.y,0,0),ln.free(y),Vt.free(b),a},Lt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==ni.j||y||(E+=2);var z=ln.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return ln.free(z),!1;if(b=E+1e-4,x.type===ni.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(ln.free(z),Ne.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ni.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return ln.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ln.free(z),a}if(x.type===ni.F){tt=x.startX,E=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,ot),tt=Math.abs(rt-tt)/2,E=Math.abs(ot-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return ln.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),ln.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===ni.o)return ln.free(z),this.fill===null?xh(x,a.x,a.y,E):rh(x,a,E,1<this.strokeWidth,y);Ce("Unknown Geometry type: "+x.type)},Lt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,ot=Ev[rt];if(ot===void 0){var lt=Ne.Ze[rt];typeof lt=="string"&&(lt=Ne.Ze[lt]),typeof lt=="function"?(ot=lt(null,100,100),Ev[rt]=ot):Ce("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,lt=tt.width;var ut=tt.height;switch(eu(this,!0)){case Dn:b=x=0;break;case Hn:lt=Math.max(a-z,0),ut=Math.max(y-z,0);break;case Ii:lt=Math.max(a-z,0),b=0;break;case er:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(lt=E.width),isFinite(E.height)&&(ut=E.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),b=Math.max(b-z,vt.height),lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=isFinite(lt)?Math.max(x,lt):Math.max(rt,x),ut=isFinite(ut)?Math.max(b,ut):Math.max(ot,b),x=bv(this),x){case Dn:break;case Hn:rt=lt,ot=ut;break;case Ni:x=Math.min(lt/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:Ce(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),ot===0&&(ot=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=rt/tt.width,tt=ot/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&Ne.$(this.ua.Sk,a-z)&&Ne.$(this.ua.Rk,y-z)||(this.ua=Tr.makeGeometry(this,rt,ot)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&ot===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),lt+z,ut+z),E.w()?(lt=E.width,ut=E.height,lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=Math.max(vt.width,lt),ut=Math.max(vt.height,ut),this.dc.h(0,0,lt,ut)):this.dc.assign(tt)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===br?Hn:y:y===br?Ev[a.figure].defaultStretch:y}Lt.eh=function(a,y,x,b){kl(this,a,y,x,b)},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*lt+ft,tt=a*ot+y*ut+vt,rt=x*rt+b*lt+ft,ot=x*ot+b*ut+vt,ft=this.ig/2,lt=this.ua,lt===null&&(this.measure(1/0,1/0),lt=this.ua);var Ct=lt.bounds;if(ut=!1,lt.type===ni.j)if(1.5>=this.strokeWidth)ut=Ne.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,ot,E);else{if(lt.startX===lt.endX?(b=ft,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=sn(),a=new Vt,Ne.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ne.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ne.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ne.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return bn(y),!1;for(ut=!0,ot=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<ot&&(ot=x,E.x=a.x,E.y=a.y);bn(y)}else if(lt.type===ni.u)ut=Ne.Ff(Ct.x-ft,Ct.y-ft,Ct.x+Ct.width+ft,Ct.y+Ct.height+ft,z,tt,rt,ot,E);else if(lt.type===ni.F){y=ln.allocAt(Ct.x,Ct.y,Ct.width,Ct.height).Bc(ft,ft);t:if(y.width===0)ut=Ne.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,E);else if(y.height===0)ut=Ne.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,E);else{if(a=y.width/2,lt=y.height/2,b=y.x+a,ut=y.y+lt,x=9999,z!==rt&&(x=(tt-ot)/(z-rt)),9999>Math.abs(x)){if(ot=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-ot*ot){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-ot*ot),rt=(-(a*a*x*ot)+a*lt*ft)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*ot)-a*lt*ft)/(lt*lt+a*a*x*x)+b,lt=x*(rt-b)+ot+ut,ot=x*(a-b)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(E.x=rt,E.y=lt):(E.x=a,E.y=ot)}else{if(rt=lt*lt,ot=z-b,rt-=rt/(a*a)*ot*ot,0>rt){E.x=NaN,E.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)<Math.abs(ot-tt)?(E.x=z,E.y=rt):(E.x=z,E.y=ot)}ut=!0}ln.free(y)}else if(lt.type===ni.o){vt=Vt.alloc();var Et=rt-z,Dt=ot-tt,Qt=Et*Et+Dt*Dt,Wt=z,ae=tt;if(0<Qt&&Ct.contains(Wt,ae)&&(vt.x=Wt,vt.y=ae,this.ca(vt)))for(Et!==0&&.5>Math.abs(Et)?(Dt*=.5/Et,Et=.5):Dt!==0&&.5>Math.abs(Dt)&&(Et*=.5/Dt,Dt=.5),Wt-=Et,ae-=Dt;Ct.contains(Wt,ae);)Wt-=Et,ae-=Dt;for(E.x=rt,E.y=ot,Dt=0;Dt<lt.figures.count;Dt++){var le=lt.figures.s[Dt],ge=le.isFilled?Wt:z,Ee=le.isFilled?ae:tt,Xe=le.segments;Ct=le.startX,Et=le.startY;for(var ci=Ct,Ei=Et,Si=0;Si<Xe.count;Si++){var $n=Xe.s[Si],kn=$n.type,wr=$n.endX,cr=$n.endY,No=!1;switch(kn){case as:ci=wr,Ei=cr;break;case ta:No=Om(Ct,Et,wr,cr,ge,Ee,rt,ot,vt);break;case Us:No=Ne.Eo(Ct,Et,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,wr,cr,ge,Ee,rt,ot,.6,vt);break;case It:No=Ne.Eo(Ct,Et,Ct+2/3*($n.point1X-Ct),Et+2/3*($n.point1Y-Et),wr+2/3*($n.point1X-wr),cr+2/3*($n.point1Y-cr),wr,cr,ge,Ee,rt,ot,.6,vt);break;case Kt:case _t:kn=$n.type===Kt?il($n,le):yl($n,le,Ct,Et);var ia=kn.length;if(ia===0){No=Om(Ct,Et,$n.type===Kt?$n.centerX:$n.endX,$n.type===Kt?$n.centerY:$n.endY,ge,Ee,rt,ot,vt);break}for(cr=null,wr=0;wr<ia;wr++){if(cr=kn[wr],wr===0&&Om(Ct,Et,cr[0],cr[1],ge,Ee,rt,ot,vt)){var Ks=Bm(ge,Ee,vt,Qt,E);Ks<Qt&&(Qt=Ks,ut=!0)}Ne.Eo(cr[0],cr[1],cr[2],cr[3],cr[4],cr[5],cr[6],cr[7],ge,Ee,rt,ot,.6,vt)&&(Ks=Bm(ge,Ee,vt,Qt,E),Ks<Qt&&(Qt=Ks,ut=!0))}wr=cr[6],cr=cr[7];break;default:Ce("Unknown Segment type: "+kn)}Ct=wr,Et=cr,No&&(No=Bm(ge,Ee,vt,Qt,E),No<Qt&&(Qt=No,ut=!0)),$n.isClosed&&(wr=ci,cr=Ei,Om(Ct,Et,wr,cr,ge,Ee,rt,ot,vt)&&($n=Bm(ge,Ee,vt,Qt,E),$n<Qt&&(Qt=$n,ut=!0)))}}z=x-a,tt=b-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),E.x-=z*ft,E.y-=tt*ft,Vt.free(vt)}else Ce("Unknown Geometry type: "+lt.type);return ut?(this.transform.Ga(E),!0):!1};function Bm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,z,tt,rt,ot){if(Ne.$(a,x)&&Ne.$(y,b)||Ne.$(E,tt)&&Ne.$(z,rt))return!1;var lt=!1,ut=(E-tt)*(y-b)-(z-rt)*(a-x);return ut===0?!1:(ot.x=((E*rt-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,ot.y=((E*rt-z*tt)*(y-b)-(z-rt)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ot.y>a||Ne.$(ot.y,a))&&(ot.y<y||Ne.$(ot.y,y))&&(lt=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||Ne.$(ot.x,y))&&(ot.x<a||Ne.$(ot.x,a))&&(lt=!0)),lt)}Lt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=Vt.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Vt.free(z),E},Lt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=kr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=Vt.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return Vt.free(tt),!0;var rt=Vt.alloc(),ot=Vt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,Af(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),Af(this,tt,rt,ot)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),Af(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),Af(this,tt,rt,ot)&&(y=!0)))),Vt.free(tt),kr.free(x),Vt.free(rt),Vt.free(ot),y};function Af(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Lt.tx=function(a,y,x){function b(Qt,Wt){for(var ae=Qt.length,le=0;le<ae;le+=2)if(Wt.zd(Qt[le],Qt[le+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,ot=tt.y,lt=tt.x+tt.width;if(tt=tt.y+tt.height,Ui(a.x,a.y,rt,ot)<=E&&Ui(a.x,a.y,lt,ot)<=E&&Ui(a.x,a.y,rt,tt)<=E&&Ui(a.x,a.y,lt,tt)<=E)return!0}if(rt=y.startX,ot=y.startY,lt=y.endX,tt=y.endY,y.type===ni.j){if(x=(rt-lt)*(a.x-lt)+(ot-tt)*(a.y-tt),Do(a.x,a.y,rt,ot,lt,tt)<=(0<=(lt-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?E:z))return!0}else{if(y.type===ni.u)return y=!1,x&&(y=Do(a.x,a.y,rt,ot,rt,tt)<=E||Do(a.x,a.y,rt,ot,lt,ot)<=E||Do(a.x,a.y,lt,ot,lt,tt)<=E||Do(a.x,a.y,rt,tt,lt,tt)<=E),y;if(y.type===ni.F){y=a.x-(rt+lt)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(lt-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return Do(a.x,a.y,rt,ot,lt,tt)<=E;if(x){if(a=Ne.$y(ut,ft,y,z),a*a<=E)return!0}else return!(Ui(y,z,-ut,0)>=E||Ui(y,z,0,-ft)>=E||Ui(y,z,0,ft)>=E||Ui(y,z,ut,0)>=E)}else if(y.type===ni.o){if(lt=y.bounds,z=lt.x,rt=lt.y,ot=lt.x+lt.width,lt=lt.y+lt.height,a.x>ot&&a.x<z&&a.y>lt&&a.y<rt&&Do(a.x,a.y,z,rt,z,lt)>E&&Do(a.x,a.y,z,rt,ot,rt)>E&&Do(a.x,a.y,ot,lt,z,lt)>E&&Do(a.x,a.y,ot,lt,ot,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?xh(y,a.x,a.y,z):rh(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>E)return!1;for(rt=z.segments.s,ot=rt.length,lt=0;lt<ot;lt++)switch(ft=rt[lt],ft.type){case as:case ta:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E)return!1;break;case Us:var vt=sn();if(Ne.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),bn(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case It:if(vt=sn(),Ne.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),bn(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case Kt:case _t:vt=ft.type===Kt?il(ft,z):yl(ft,z,tt,ut);var Ct=vt.length;if(Ct===0){if(tt=ft.type===Kt?ft.centerX:ft.endX,ut=ft.type===Kt?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var Et=sn(),Dt=0;Dt<Ct;Dt++)if(ft=vt[Dt],Et.length=0,Ne.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Et),b(Et,a))return bn(Et),!1;bn(Et),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:Ce("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Lt.qc=function(){this.ua=null},Lt.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ls):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Fi(1-Ls.x,Ls.y)))}Tr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Cd[a.toArrow];else a.fromArrow!=="None"?b=Cd[a.fromArrow]:(b=Ne.Ze[a.figure],typeof b=="string"&&(b=Ne.Ze[b]),b===void 0&&Ce("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ne.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function vS(a){var y=Cd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Cd[x],y===void 0){var b=null,E;for(E in Ne.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=ni.parse(Ne.um[b],!1),Cd[b]=a,x!==b&&(Cd[x]=b),b}}return typeof y=="string"?y:y instanceof ni?a:null}fe.Object.defineProperties(Tr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ni.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Vt.allocAt(-y.x,-y.y),Vt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&_f(a,"Shape.fill"),a instanceof Zo&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"Shape.stroke"),a instanceof Zo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else pi(a,"value >= 0",Tr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?pi(a,'"butt", "round", or "square"',Tr,"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"?pi(a,'"miter", "bevel", or "round"',Tr,"strokeJoin"):(Mf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Mf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||Ce("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Mf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Ne.Ze[a];typeof x=="function"?x=a:(x=Ne.Ze[a.toLowerCase()])||Ce("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?Ce("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?Ce("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Mf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Mf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Mf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:br},set:function(a){var y=this.geometryStretch;y!==a&&(Mf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&lh(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Tr.prototype.intersectsRect=Tr.prototype.Yc,Tr.prototype.containedInRect=Tr.prototype.fh,Tr.prototype.getNearestIntersectionPoint=Tr.prototype.rs,Tr.prototype.getDocumentBounds=Tr.prototype.mi,Tr.prototype.getDocumentPoint=Tr.prototype.ga;var Cd=new Ti,Ev=new Ti;Tr.className="Shape",Tr.getFigureGenerators=function(){var a=new Ci,y;for(y in Ne.Ze)y!==y.toLowerCase()&&a.add(y,Ne.Ze[y]);return a.freeze(),a},Tr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ne.Ze;b[a]=y,b[x]=a},Tr.getArrowheadGeometries=function(){var a=new Ci;for(b in Ne.um)if(Cd[b]===void 0){var y=ni.parse(Ne.um[b],!1);Cd[b]=y,y=b.toLowerCase(),y!==b&&(Cd[y]=b)}for(var x in Cd)if(x!==x.toLowerCase()){var b=Cd[x];b instanceof ni&&a.add(x,b)}return a.freeze(),a},Tr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ni.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ce("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Cd;b[a]=x,b[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=br,this.gg=this.fg=Bo}Lv.prototype.copy=function(){var a=new Lv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function oa(a,y){return Me.call(this),Hm||(nu=$a?new ch(null).context:null,Hm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Ze(oa,Me),oa.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function ud(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}Lt=oa.prototype,Lt.th=function(){Me.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function yS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Lt.qb=function(a){a.classType===oa?this.wrap=a:Me.prototype.qb.call(this,a)},Lt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Lt.v=function(){Me.prototype.v.call(this)},Lt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,tt=Pp(this),rt=a.textAlign=this.textAlign,ot=y.tn;rt==="start"?rt=ot?"right":"left":rt==="end"&&(rt=ot?"left":"right"),ot=this.isUnderline;var lt=this.isStrikethrough;qa(this,a,this.xc,!0,!1,x,b),(ot||lt)&&qa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Lu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case xo:a.translate(E,0),a.scale(-1,1);break;case Wr:a.translate(0,z),a.scale(1,-1);break;case Jo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(b=this.verticalAlignment,b=b.y*z-b.y*vt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,rt,ot,lt);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var Ct=this.Qc[vt];Ct>E&&(Ct=E),b+=y,this.Oj(this.Qb[vt],a,0,b,E,tt,Ct,x,rt,ot,lt),b+=tt+ft}switch(this.flip){case xo:a.scale(-1,1),a.translate(-E,0);break;case Wr:a.scale(1,-1),a.translate(0,-z);break;case Jo:a.scale(-1,-1),a.translate(-E,-z)}}},Lt.Oj=function(a,y,x,b,E,z,tt,rt,ot,lt,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=E-tt:ot==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=E:ot==="center"&&(ft=E/2),E=Im!==null?Im(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),lt){rt=Rm!==null?Rm(this,z):.8*z,ot=x+ft,lt=b+rt,E=x+ft+tt,rt=b+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(ot,lt),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof Lu&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Lu&&y.ad.classList.add("gojs-td"))}},Lt.kk=function(a,y,x){if(!Me.prototype.kk.call(this,a,y,x))return!1;if(qa(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)$y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,$y(a,y,!0);return!0},Lt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Me.prototype.nk.call(this,a)},Lt.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)}},Lt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;nu!==null&&ES!==z&&(ES=nu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var rt=tt=0,ot=!1;!ot;){var lt=z.indexOf(`
|
|
|
`,rt);lt===-1&&(lt=z.length,ot=!0),rt=z.substr(rt,lt-rt),this.formatting===Cp&&(rt=rt.trim()),tt=Math.max(tt,Mh(rt)),rt=lt+1}z=tt}else tt=z.indexOf(`
|
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=Mh(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=xS(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===zm&&(y=this.Ae,y=this.overflow===zm?SS(y):0,lt=this.spacingAbove+this.spacingBelow,lt=Math.max(0,Pp(this)+lt),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/lt+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,lt=this.Qb[ot],y=Math.max(1,a-y);Mh(lt)>y&&1<lt.length;)lt=lt.substr(0,lt.length-1);lt+=bp,y=Mh(lt),this.Qb[ot]=lt,this.Qb=this.Qb.slice(0,ot+1),this.Qc[ot]=y,this.Qc=this.Qc.slice(0,ot+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),js(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Lt.eh=function(a,y,x,b){kl(this,a,y,x,b)};function wp(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,b){var E=a.formatting===Cp;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Pp(a)+rt);var ot=a.overflow===zm?SS(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===Av){a.Le=1;var lt=Mh(y);if(ot===0||lt<=x)a.Cb=Math.max(a.Cb,lt),wp(a,y,a.Cb),b!==null&&b.h(lt,rt);else{for(z=Fg(a,tt),tt=tt.substr(z.length),y=Fg(a,tt),lt=Mh(z+y);0<y.length&<<=x;)z+=y,tt=tt.substr(y.length),y=Fg(a,tt),lt=z+y,E&&(lt=lt.trim()),lt=Mh(lt);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);Mh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ut=Mh(z);a.Cb=ut,wp(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,wp(a,tt,0));0<tt.length;){for(y=Fg(a,tt),tt=tt.substr(y.length);Mh(y)>x;){var ft=1;for(lt=Mh(y.substr(0,ft)),ut=0;lt<=x;)ft++,ut=lt,lt=Mh(y.substr(0,ft));if(ft===1){var vt=lt;z=Math.max(z,lt)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),wp(a,y.substr(0,ft),vt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Fg(a,tt),lt=Mh(y+ut);0<ut.length&<<=x;)y+=ut,tt=tt.substr(ut.length),ut=Fg(a,tt),lt=y+ut,E&&(lt=lt.trim()),lt=Mh(lt);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=lt,z=Math.max(z,lt)):(ft=ut=Mh(y),z=Math.max(z,ut)),wp(a,y,ft),ot++,a.Gc+ot>a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function Fg(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===CS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Mh(a){return nu===null?8*a.length:nu.measureText(a).width}function Pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(nu===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>bS?x=Nv[y]:(x=1.3*nu.measureText("M").width,Nv[y]=x,bS++),a.df=x}function SS(a){if(nu===null)return 6;if(jm[a]!==void 0&&5e3>Tv)var y=jm[a];else y=nu.measureText(bp).width,jm[a]=y,Tv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Pp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
|
|
|
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Av){a.Le=0;var ot=ei.alloc();Mv(a,z,y,ot),E+=ot.height,ei.free(ot),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}fe.Object.defineProperties(oa.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(ud(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Dn},set:function(a){var y=this.flip;y!==a&&(ud(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:xs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ud(this),this.da.Yr=a,zl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ei.alloc();Mv(this,this.ec,999999,a);var y=a.width;ei.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),js(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(ud(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(ud(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"TextBlock.stroke"),a instanceof Zo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Pp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(ud(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(ud(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(ud(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(ud(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(ud(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(ud(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(a){var y=this.formatting;y!==a&&(ud(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&pi(a,"> 0",oa,"maxLines"),ud(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Im=null,Rm=null,Av=new Oe(oa,"None",0),wS=new Oe(oa,"WrapFit",1),kv=new Oe(oa,"WrapDesiredSize",2),PS=new Oe(oa,"WrapBreakAll",3),Fv=new Oe(oa,"OverflowClip",0),zm=new Oe(oa,"OverflowEllipsis",1),Cp=new Oe(oa,"FormatTrim",0),CS=new Oe(oa,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new Ti,bS=0,jm=new Ti,Tv=0,bp="...",ES="",nu=null,Hm=!1;oa.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=Cp,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=xs,this.$r=kv}Dv.prototype.copy=function(){var a=new Dv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},oa.getEllipsis=function(){return bp},oa.setEllipsis=function(a){bp=a,jm=new Ti,Tv=0},oa.getBaseline=function(){return Im},oa.setBaseline=function(a){Im=a},oa.getUnderline=function(){return Rm},oa.setUnderline=function(a){Rm=a},oa.isValidFont=function(a){if(Hm||(nu=$a?new ch(null).context:null,Hm=!0),nu===null)return!0;var y=nu.font;if(a===y||a==="10px sans-serif")return!0;nu.font="10px sans-serif",nu.font=a;var x=nu.font;if(x!=="10px sans-serif")return nu.font=y,!0;nu.font="19px serif";var b=nu.font;return nu.font=a,x=nu.font,nu.font=y,x!==b},oa.FormatNone=CS,oa.FormatTrim=Cp,oa.None=Av,oa.OverflowClip=Fv,oa.OverflowEllipsis=zm,oa.WrapBreakAll=PS,oa.WrapDesiredSize=kv,oa.WrapFit=wS;function bd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bd.prototype.copy=function(){var a=new bd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bd.className="GradElementSettings";function iu(a,y){Me.call(this),this.Eg=null,this.qo="",this.Xg=Ro,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=ho,this.Xf=Dn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Ng;Ze(iu,Me),iu.prototype.cloneProtected=function(a){Me.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},iu.prototype.qb=function(a){a===Dn||a===Ni||a===oo?this.imageStretch=a:Me.prototype.qb.call(this,a)},iu.prototype.toString=function(){return"Picture("+this.source+")#"+uo(this)};function Tg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Wm--):(Ng=new Ti,Wm=0)}function LS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Fs(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=sn();for(var rt=0;rt<E;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<E;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);bn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}iu.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},iu.prototype.redraw=function(){this.N(),this.Uc=!0},iu.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Ef)){var E=a instanceof Lu;b=this.naturalBounds;var z=0,tt=0,rt=this.qn,ot=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,ot===void 0&&x.videoWidth&&(ot=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),ot=ot||b.width,rt=rt||b.height,ot!==0&&rt!==0){var lt=ot,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,ot=this.Xg.width,rt=this.Xg.height);var ft=ot,vt=rt,Ct=this.Nk,Et=this.Mk;switch(Ct){case Dn:if(this.sourceRect.w())break;ft>=b.width&&(z=z+Et.offsetX+(ft*Et.x-b.width*Et.x)),vt>=b.height&&(tt=tt+Et.offsetY+(vt*Et.y-b.height*Et.y)),ot=Math.min(b.width,ft),rt=Math.min(b.height,vt);break;case Hn:ft=b.width,vt=b.height;break;case Ni:case oo:Ct===Ni?(Ct=Math.min(b.height/vt,b.width/ft),ft*=Ct,vt*=Ct):Ct===oo&&(Ct=Math.max(b.height/vt,b.width/ft),ft*=Ct,vt*=Ct,ft>=b.width&&(z=(z+Et.offsetX+(ft*Et.x-b.width*Et.x)/ft)*ot),vt>=b.height&&(tt=(tt+Et.offsetY+(vt*Et.y-b.height*Et.y)/vt)*rt),ot*=1/(ft/b.width),rt*=1/(vt/b.height),ft=b.width,vt=b.height)}Ct=this.Df()*y.scale;var Dt=ft*Ct*vt*Ct,Qt=ot*rt/Dt,Wt=x.__goCache;Ct=null;var ae=xx;if(!E){if(x.sq&&Wt!==void 0&&4<Dt&&Qt>ae*ae)for(Wt.gi===null&&(AS(Wt,4,lt,ut,x),AS(Wt,16,lt,ut,x)),E=Wt.gi,lt=E.length,ut=0;ut<lt&&E[ut].ratio*E[ut].ratio<Qt;ut++)Ct=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new ch(null).context;try{E.drawImage(this.Eg,0,0)}catch(le){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(le){this.vl=!0}}if(this.vl)return}}switch(E=ft<b.width?Et.offsetX+(b.width*Et.x-ft*Et.x):0,Et=vt<b.height?Et.offsetY+(b.height*Et.y-vt*Et.y):0,this.flip){case xo:a.translate(Math.min(b.width,ft),0),a.scale(-1,1);break;case Wr:a.translate(0,Math.min(b.height,vt)),a.scale(1,-1);break;case Jo:a.translate(Math.min(b.width,ft),Math.min(b.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Wt!==void 0&&Ct!==null&&Ct.ratio!==1){a.save(),y=Ct.ratio;try{a.drawImage(Ct.source,z/y,tt/y,Math.min(Ct.source.width,ot/y),Math.min(Ct.source.height,rt/y),E,Et,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof Lu&&(this.bt=[z/y,tt/y,Math.min(Ct.source.width,ot/y),Math.min(Ct.source.height,rt/y),E,Et,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(le){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,E,Et,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof Lu&&(this.bt=[z,tt,ot,rt,E,Et,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(le){this.en=!1}switch(this.flip){case xo:a.scale(-1,1),a.translate(-Math.min(b.width,ft),0);break;case Wr:a.scale(1,-1),a.translate(0,-Math.min(b.height,vt));break;case Jo:a.scale(-1,-1),a.translate(-Math.min(b.width,ft),-Math.min(b.height,vt))}}}}},iu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=eu(this,!0),tt=this.Eg,rt=this.qn,ot=0,lt=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(ot=rt?+tt.width:tt.naturalWidth,lt=rt?+tt.height:tt.naturalHeight),isFinite(E.width)||z===Hn||z===Ii?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=ot)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ot),isFinite(E.height)||z===Hn||z===er?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=lt)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:lt),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),js(this.dc,a,y),this.Ge(0,0,a,y)},iu.prototype.eh=function(a,y,x,b){kl(this,a,y,x,b)},fe.Object.defineProperties(iu.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||Ce("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Gf(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new An),b!==null&&x&&Sd(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Fs(this,!1),this.v())):x&&LS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ng;if($a){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(Tg(),x=Ng),b=Pn("img"),b.hn=!0,LS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new MS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),iu.prototype.redraw=iu.prototype.redraw,iu.prototype.reloadSource=iu.prototype.hA;var Wm=0,xx=4;iu.className="Picture",Ng=new Ti,iu.clearCache=Tg;function MS(){this.gi=null}function AS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new ch(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new kS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function kS(a,y){this.source=a,this.ratio=y}kS.className="PictureCacheInstance";function Dg(){this.os=new ni,this.mc=null}Dg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ni,this.mc=null};function Bg(a,y,x,b,E,z){a.mc=new Cs,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Dg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new vo(as);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new vo(ta);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function yc(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new vo(Us);ot.point1X=y,ot.point1Y=x,ot.point2X=b,ot.point2Y=E,ot.endX=z,ot.endY=tt,rt&&ot.close(),a.mc.segments.add(ot)}function Zm(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new vo(It);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}Dg.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new vo(Kt);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,tt&&rt.close(),this.mc.segments.add(rt)};function Px(a,y,x,b,E,z,tt,rt){var ot;ot===void 0&&(ot=!1),y=new vo(_t,tt,rt,y,x,b,E,z),ot&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Dg,y.reset(a),y)}var Gm=null;Dg.className="StreamGeometryContext";function bl(a,y){var x=a.toLowerCase(),b=Ne.Ze;b[a]=y,b[x]=a}bl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ne.Mf[a];return b!==void 0||(b=new ni(ni.u),b.endX=y,b.endY=x,Ne.Nf<Ne.vm&&(Ne.Mf[a]=b,Ne.Nf++)),b}),bl("Square",function(a,y,x){a="s"+y+","+x;var b=Ne.Mf[a];return b!==void 0||(b=new ni(ni.u),b.endX=y,b.endY=x,b.defaultStretch=Ni,Ne.Nf<Ne.vm&&(Ne.Mf[a]=b,Ne.Nf++)),b}),bl("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Ne.Mf[b];if(E!==void 0)return E;var z=a*Ne.wg;return E=new ni().add(new Cs(a,0,!0).add(new vo(ta,y-a,0)).add(new vo(Us,y,a,y-z,0,y,z)).add(new vo(ta,y,x-a)).add(new vo(Us,y-a,x,y,x-z,y-z,x)).add(new vo(ta,a,x)).add(new vo(Us,0,x-a,z,x,0,x-z)).add(new vo(ta,0,a)).add(new vo(Us,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Fi(0,0,z,z),E.spot2=new Fi(1,1,-z,-z)),Ne.Nf<Ne.vm&&(Ne.Mf[b]=E,Ne.Nf++),E}),bl("Border","RoundedRectangle"),bl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ne.Mf[a];return b!==void 0||(b=new ni(ni.F),b.endX=y,b.endY=x,b.spot1=ih,b.spot2=Ql,Ne.Nf<Ne.vm&&(Ne.Mf[a]=b,Ne.Nf++)),b}),bl("Circle",function(a,y,x){a="c"+y+","+x;var b=Ne.Mf[a];return b!==void 0||(b=new ni(ni.F),b.endX=y,b.endY=x,b.spot1=ih,b.spot2=Ql,b.defaultStretch=Ni,Ne.Nf<Ne.vm&&(Ne.Mf[a]=b,Ne.Nf++)),b}),bl("TriangleRight",function(a,y,x){return new ni().add(new Cs(0,0).add(new vo(ta,y,.5*x)).add(new vo(ta,0,x).close())).pm(0,.25,.5,.75)}),bl("TriangleDown",function(a,y,x){return new ni().add(new Cs(0,0).add(new vo(ta,y,0)).add(new vo(ta,.5*y,x).close())).pm(.25,0,.75,.5)}),bl("TriangleLeft",function(a,y,x){return new ni().add(new Cs(y,x).add(new vo(ta,0,.5*x)).add(new vo(ta,y,0).close())).pm(.5,.25,1,.75)}),bl("TriangleUp",function(a,y,x){return new ni().add(new Cs(y,x).add(new vo(ta,0,x)).add(new vo(ta,.5*y,0).close())).pm(.25,.5,.75,1)}),bl("Triangle","TriangleUp"),bl("Diamond",function(a,y,x){return new ni().add(new Cs(.5*y,0).add(new vo(ta,0,.5*x)).add(new vo(ta,.5*y,x)).add(new vo(ta,y,.5*x).close())).pm(.25,.25,.75,.75)}),bl("LineH",function(a,y,x){return a=new ni(ni.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),bl("LineV",function(a,y,x){return a=new ni(ni.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),bl("None","Rectangle"),bl("BarH","Rectangle"),bl("BarV","Rectangle"),bl("MinusLine","LineH"),bl("PlusLine",function(a,y,x){return new ni().add(new Cs(0,x/2,!1).add(new vo(ta,y,x/2)).add(new vo(as,y/2,0)).add(new vo(ta,y/2,x)))}),bl("XLine",function(a,y,x){return new ni().add(new Cs(0,x,!1).add(new vo(ta,y,0)).add(new vo(as,0,0)).add(new vo(ta,y,x)))}),bl("LineRight",function(a,y,x){return new ni().add(new Cs(.25*y,0,!1).add(new vo(ta,.75*y,.5*x)).add(new vo(ta,.25*y,x)))}),bl("LineDown",function(a,y,x){return new ni().add(new Cs(0,.25*x,!1).add(new vo(ta,.5*y,.75*x)).add(new vo(ta,y,.25*x)))}),bl("LineLeft",function(a,y,x){return new ni().add(new Cs(.75*y,0,!1).add(new vo(ta,.25*y,.5*x)).add(new vo(ta,.75*y,x)))}),bl("LineUp",function(a,y,x){return new ni().add(new Cs(0,.75*x,!1).add(new vo(ta,.5*y,.25*x)).add(new vo(ta,y,.75*x)))}),Ne.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ys,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=Es,this.Pq=da,this.Kq=ao,this.Up=null,this.Cq=127,this.zr=_o,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Hi(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Yn.call(this,a):(Yn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Vt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ln,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Ze(Hi,Yn),Hi.prototype.cloneProtected=function(a){Yn.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},Lt=Hi.prototype,Lt.Af=function(a){Yn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Lt.toString=function(){var a=Fn(this.constructor)+"#"+uo(this);return this.data!==null&&(a+="("+Wn(this.data)+")"),a};function ru(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Lt.th=function(){Yn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Lt.gk=function(a,y,x,b,E,z,tt){var rt=this.diagram;rt!==null&&(a===Qn&&y==="elements"?E instanceof Yn?Lf(E,function(ot){sy(rt.partManager,ot),dc(rt,ot)}):Sd(rt,E):a===di&&y==="elements"&&(E instanceof Yn?Lf(E,function(ot){ly(rt.partManager,ot,rt)}):Gf(rt,E)),rt.cb(a,y,x,b,E,z,tt))},Lt.La=function(a){if(Yn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Yn&&Lf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Hi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Hi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Hi.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Ci),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Hi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Hi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=sn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);bn(y)}},Hi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Pr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Mo))break t;fh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Yn.Link),x.adornedObject=y)}if(x!==null){x.type===Yn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Hi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Km(a){if(Kc(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function NS(a){if(a.G|=2097152,Kc(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||BS(a,y,x),x=a.Ib;var b=ln.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),ln.free(b),Rv(a,!1)}}Hi.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new kr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Hi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ho;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Vt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),Vt.free(tt)}},Hi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Hi.prototype.moveTo=function(a,y,x){a=Vt.allocAt(a,y),this.move(a,x),Vt.free(a)},Hi.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())},Hi.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())},Hi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ci),y.I(a)!==null)return y.I(a);var x=Yn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Sc(a,y,x,b){b===void 0&&(b=new Vt),x=x.Mc()?ho:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Hi.prototype.mi=function(a){return a===void 0&&(a=new ln),a.assign(this.actualBounds)},Hi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function TS(a){var y=Vt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Tr?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function kf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Hi.prototype.arrange=function(){if(jl(this)===!1)NS(this);else{xd(this,!1);var a=this.Ib,y=ln.alloc();y.assign(a);var x=Vc(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;BS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ne.B(y.width,a.width)&&Ne.B(y.height,a.height)||0<=this.vw&&this.C(16),ln.free(y),Rv(this,!1)}},Lt=Hi.prototype,Lt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=ln.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),ln.free(E)}!(this.G&65536)&&a.D(y)||RS(this,b,x),x.N(),!a.w()&&!y.w()||ko(a,y)||(this instanceof fi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Lt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&DS(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Vt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Kc(this)===!1&&jl(this)===!1&&(Km(this),NS(this)),!0};function DS(a,y,x,b,E){y===null||a instanceof Mo||(y=y.animationManager,y.zb&&ll(y,a,new Vt(b,E),x))}Lt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Kc(this)||jl(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Km(this)},Lt.Av=function(){this.G&=-2097153,Km(this)};function BS(a,y,x){var b=TS(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?OS(a,y,x,E,b):IS(a,y,x,E,b):z?OS(a,y,x,E,b):tt&&IS(a,y,x,E,b),a.G|=2097152,Vt.free(b),a.Uk()}function OS(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Mo||ll(x,a,new Vt(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new Vt(z,tt),y.copy()))}function IS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function RS(a,y,x){zv(a,!1),a instanceof fi&&Rl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Vc(a)?(pa(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Lt.si=function(){return!0},Lt.Zc=function(){return!0},Lt.ph=function(){return!1},Lt.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||HS||(HS=!0,Bi('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Bi(" Old class: "+Fn(a.constructor)+", new class: "+Fn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,ot=!0,lt=!1;a instanceof fi&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,lt=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof fi&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=lt?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Hi.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},Hi.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},Hi.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},Hi.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},Hi.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},Hi.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},Hi.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},Hi.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},Hi.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function Kc(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Vc(a){return(a.G&131072)!==0}Lt=Hi.prototype,Lt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Lt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Lt.N=function(){var a=this.diagram;a!==null&&!jl(this)&&!Kc(this)&&this.isVisible()&&this.Ib.w()&&a.N(kf(this,this.Ib))},Lt.v=function(){Yn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof fi&&this.labeledLink!==null&&zl(this.labeledLink),a.$b(!0))},Lt.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Lt.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Lt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Lt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof fi&&(y=y.labeledLink,y!==null)?jv(a,y):0}Lt.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof fi&&(x=y.labeledLink,x!==null)?zS(a,x):y}Lt.Td=function(a){return a instanceof Pr?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof fi&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Lt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Pr&&Vm(y,!0),y instanceof fi){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 fi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Pr&&Vm(y,!1),y instanceof fi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Hi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof fi&&this.isLinkLabel)},Hi.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 fi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Yc(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Mo)){if(a.add(y),y instanceof fi){if(x&&y instanceof Pr)for(var tt=y.memberParts;tt.next();)Yc(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var ot=rt.fromNode,lt=rt.toNode;ot=ot===null||a.contains(ot),lt=lt===null||a.contains(lt),(E?ot&<:ot||lt)&&Yc(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Yc(a,y.value,x,b-1,E,z)}else if(y instanceof _n)for(y=y.labelNodes;y.next();)Yc(a,y.value,x,b,E,z)}}fe.Object.defineProperties(Hi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Dr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(di,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Qn,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(ru(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&&Eu(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 Mo?this.type!==Yn.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:da},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ru(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ao},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ru(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&&(ru(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:Es},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ru(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,jl(this)===!1&&(Km(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),DS(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Mo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Mo?this instanceof Mo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(fh(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=d1(x.partManager,b,a),x!==null&&(fh(x),x=x.copy(),x===null||x instanceof _n||(b=this.location.copy(),Iv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Iv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ru(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&&(ru(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&&(ru(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof _n?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ru(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&&(ru(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&&(ru(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:ys},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Bo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ru(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&&Ce("Cannot make a Group a member of itself: "+this.toString()),Ce("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Pr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Pr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Pr){for(x=new An,Yc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof fi)for(b=b.linksConnected;b.next();)Og(b.value)}if(this instanceof fi){for(x=this.linksConnected;x.next();)Og(x.value);x=this.labeledLink,x!==null&&Og(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Eu(y,-1,a))}}else Ce("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&&(ru(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof fi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ru(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&&(ru(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_o},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Hi.prototype.invalidateLayout=Hi.prototype.C,Hi.prototype.findCommonContainingGroup=Hi.prototype.px,Hi.prototype.isMemberOf=Hi.prototype.Td,Hi.prototype.findTopLevelPart=Hi.prototype.sz,Hi.prototype.findSubGraphLevel=Hi.prototype.oz,Hi.prototype.ensureBounds=Hi.prototype.Va,Hi.prototype.getDocumentBounds=Hi.prototype.mi,Hi.prototype.findObject=Hi.prototype.fb,Hi.prototype.moveTo=Hi.prototype.moveTo,Hi.prototype.invalidateAdornments=Hi.prototype.Wb,Hi.prototype.clearAdornments=Hi.prototype.Ej,Hi.prototype.removeAdornment=Hi.prototype.Jf,Hi.prototype.addAdornment=Hi.prototype.bh,Hi.prototype.findAdornment=Hi.prototype.Pj,Hi.prototype.updateTargetBindings=Hi.prototype.La;var HS=!1;Hi.className="Part",Hi.LayoutNone=0,Hi.LayoutAdded=1,Hi.LayoutRemoved=2,Hi.LayoutShown=4,Hi.LayoutHidden=8,Hi.LayoutNodeSized=16,Hi.LayoutGroupLayout=32,Hi.LayoutNodeReplaced=64,Hi.LayoutStandard=127,Hi.LayoutAll=16777215;function Mo(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Hi.call(this,a):(Hi.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)}Ze(Mo,Hi),Mo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Mo.prototype.updateRelationshipsFromData=function(){},Mo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof _n&&y instanceof Tr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Tr&&(E.ua=a)}}},Mo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!jl(a))},Mo.prototype.Zc=function(){return!1},Mo.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Qn&&y==="elements"){if(E instanceof Wl)this.$a===null&&(this.$a=E);else if(E instanceof Yn){var rt=E.Nl(function(ot){return ot instanceof Wl});rt instanceof Wl&&this.$a===null&&(this.$a=rt)}}else a===di&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Yn&&this.$a.rg(b)&&(this.$a=null));Hi.prototype.gk.call(this,a,y,x,b,E,z,tt)},Mo.prototype.updateAdornments=function(){},Mo.prototype.Lj=function(){},fe.Object.defineProperties(Mo.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}}}),Mo.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=lu,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function fi(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Hi.call(this,a):(Hi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new wn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Ze(fi,Hi),fi.prototype.cloneProtected=function(a){Hi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Lt=fi.prototype,Lt.Af=function(a){Hi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xc(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Lt.th=function(){Hi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function WS(a,y){y!==null&&(a.af===null&&(a.af=new An),a.af.add(y))}function ZS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Lt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},Lt.gk=function(a,y,x,b,E,z,tt){a===Qn&&y==="elements"?this.wc=null:a===di&&y==="elements"&&(this.wc=null),Hi.prototype.gk.call(this,a,y,x,b,E,z,tt)},Lt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Mu(x.fromPort),Mu(x.toPort),x.bb())}};function GS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Mu(x.fromPort),Mu(x.toPort),x.bb())}}function Mu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Mu(y.port)}}Lt.si=function(){return!0},fi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},fi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},fi.prototype.isVisible=function(){if(!Hi.prototype.isVisible.call(this))return!1;var a=!0,y=gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ks){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===xg&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},fi.prototype.Zb=function(a){Hi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},fi.prototype.qx=function(){var a=new An,y=new An;return KS(this,this,a,y),y.iterator};function KS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&KS(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}fi.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(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Lt=fi.prototype,Lt.Mo=function(a){a===void 0&&(a=null);var y=new zi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Lt.Sd=function(a){a===void 0&&(a=null);var y=new zi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Lt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new An,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ir(x):Dr},Lt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ir(x):Dr},Lt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ir(x):Dr},Lt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new zi(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Lt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new zi(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Ym(a,y,x){Mu(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Um(a,y,x){Mu(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Ep(y)))}function Ep(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}fi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Lt=fi.prototype,Lt.Vo=function(a){Hi.prototype.Vo.call(this,a),a||(Ep(this),a=this.Yk,a!==null&&_S(a,this))},Lt.Wo=function(a){Hi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Lt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Hi.prototype.Lj.call(this)},Lt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;VS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function VS(a){a.wc===null?a.wc=new Ci:a.wc.clear(),a.qm(a,function(y,x){YS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function YS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Zv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=sn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);bn(x)}}}Lt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Lt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Lt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Vm(y,!1),y=y.pg();return x},Lt.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},Lt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof fi)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},Lt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new An;return a(this,y),y},Lt.uz=function(){return US(this,this)};function US(a,y){return y=y.pg(),y===null?0:1+US(a,y)}Lt.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(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Lt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new wn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new wn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new ir(x):Dr},Lt.wz=function(a){a===void 0&&(a=1/0);var y=new An;return Yc(y,this,!1,a,!0),y},fi.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 An;x.add(this),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function XS(a,y,x,b,E,z,tt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var ot=rt.value;ot.isTreeLink&&(ot=ot.To(a),ot===null||ot===a||y.contains(ot)||(y.add(ot),XS(ot,y,x,b-1,E,z,tt)))}else JS(a,y,x,E,z,tt)}function JS(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var lt=rt.value;if(lt.isTreeLink&&(lt=lt.To(a),lt!==null&<!==a)){var ut=y.contains(lt);if(ut||y.add(lt),tt){var ft=x?lt.Oo():lt.Po();ot.uv=a,ft.all(function(vt){return function(Ct){return Ct===vt.uv||!Ct.isTreeExpanded}}(ot))&&b.Aj(lt,E),lt.oh(),lt.Zb(!1)}lt.isTreeExpanded&&(lt.wasTreeExpanded=lt.isTreeExpanded,ut||JS(lt,y,x,b,E,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}fi.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 An;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function QS(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),lt={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();lt.vv=a,ft.all(function(vt){return function(Ct){return Ct===vt.vv||!Ct.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,QS(ut,y,x,b-1,E,z,tt))}lt={vv:lt.vv}}a.isTreeExpanded=!0}fe.Object.defineProperties(fi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(xc(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Rl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:lu},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Rl(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(xc(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(xc(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(xc(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&(_S(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),zl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&VS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(xc(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),fi.prototype.expandTree=fi.prototype.expandTree,fi.prototype.collapseTree=fi.prototype.collapseTree,fi.prototype.findTreeParts=fi.prototype.wz,fi.prototype.findTreeChildrenNodes=fi.prototype.Ou,fi.prototype.findTreeChildrenLinks=fi.prototype.Qo,fi.prototype.findTreeLevel=fi.prototype.uz,fi.prototype.findTreeParentChain=fi.prototype.vz,fi.prototype.findTreeParentNode=fi.prototype.pg,fi.prototype.findTreeParentLink=fi.prototype.kh,fi.prototype.findCommonTreeParent=fi.prototype.gz,fi.prototype.findTreeRoot=fi.prototype.xz,fi.prototype.isInTreeOf=fi.prototype.Nz,fi.prototype.findPort=fi.prototype.ns,fi.prototype.findLinksTo=fi.prototype.kz,fi.prototype.findLinksBetween=fi.prototype.jz,fi.prototype.findNodesInto=fi.prototype.Oo,fi.prototype.findNodesOutOf=fi.prototype.Po,fi.prototype.findNodesConnected=fi.prototype.Mu,fi.prototype.findLinksInto=fi.prototype.Sd,fi.prototype.findLinksOutOf=fi.prototype.Mo,fi.prototype.findExternalTreeLinksConnected=fi.prototype.qx,fi.prototype.invalidateConnectedLinks=fi.prototype.Bd,fi.prototype.invalidateLinkBundle=fi.prototype.Lz;var bx=new Oe(fi,"SpreadingNone",10),Xm=new Oe(fi,"SpreadingEvenly",11),Gv=new Oe(fi,"SpreadingPacked",12);fi.className="Node",fi.SpreadingNone=bx,fi.SpreadingEvenly=Xm,fi.SpreadingPacked=Gv;function Pr(a,y){a===void 0||a instanceof Rs||typeof a=="string"?fi.call(this,a):(fi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new An,this.$a=null,this.Sc=new Aa,this.Sc.group=this,this.gl=new An,this.tb=this.$p=null,y&&Object.assign(this,y)}Ze(Pr,fi),Pr.prototype.cloneProtected=function(a){fi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Wl});y instanceof Wl?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())},Lt=Pr.prototype,Lt.Af=function(a){fi.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 fi)x.Bd(y);else if(x instanceof _n)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Lt.gk=function(a,y,x,b,E,z,tt){if(a===Qn&&y==="elements"){if(E instanceof Wl)this.$a===null?this.$a=E:this.$a!==E&&Ce("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Yn){var rt=E.Nl(function(ot){return ot instanceof Wl});rt instanceof Wl&&(this.$a===null?this.$a=rt:this.$a!==rt&&Ce("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===di&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Yn&&this.$a.rg(b)&&(this.$a=null));fi.prototype.gk.call(this,a,y,x,b,E,z,tt)},Lt.Xl=function(a,y){fi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Yn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Yn&&(a=a.Pb()),this.tb===null&&(this.tb=new ln),a.mi(this.tb),a instanceof Tr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Lt.eh=function(a,y,x,b){this.nf=this.$a,fi.prototype.eh.call(this,a,y,x,b)},Lt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof _n||y.Va()}),fi.prototype.Va.call(this)},Lt.si=function(){if(!fi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof fi){if(y.isVisible()&&jl(y))return!1}else if(y instanceof _n&&y.isVisible()&&jl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof Pr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof _n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof Pr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof _n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Lt.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)}fi.prototype.Lj.call(this)},Pr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=rn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Pr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=rn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Pr.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))},Lt=Pr.prototype,Lt.Bd=function(a){var y=(this.U&65536)!==0;if(fi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Mu(x.fromPort),Mu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Mu(x.fromPort),Mu(x.toPort),x.bb()))}}},Lt.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 An,b=y.iterator;b.next();){var E=b.value;if(E instanceof fi)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Lt.iz=function(){var a=this.Rj();a.add(this);for(var y=new An,x=a.iterator;x.next();){var b=x.value;if(b instanceof fi)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Lt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new An;return a(this,y),y},Lt.Rj=function(){var a=new An;return Yc(a,this,!0,0,!0),a.remove(this),a},Lt.Zb=function(a){fi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Pr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$S(this,y,a,this),a.Ue=!1}};function $S(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Pr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,$S(z,y,x,b)),z instanceof fi)z.Bd(y),x.Aj(z,b);else if(z instanceof _n)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Pr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Pr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,qS(z,y,x,b)),z instanceof fi)z.Bd(y),x.Cj(z,b);else if(z instanceof _n)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Pr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Vt.alloc(),fi.prototype.move.call(this,a,y),a=new An,y=this.Rj().iterator;y.next();)E=y.value,E instanceof _n&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof fi&&E.isLinkLabel)){var tt=E.position,rt=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof _n&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),Uv(E)&&E.bb());Vt.free(z)}},fe.Object.defineProperties(Pr.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&&Ce("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(xc(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(xc(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(xc(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(xc(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Pr.prototype.expandSubGraph=Pr.prototype.expandSubGraph,Pr.prototype.collapseSubGraph=Pr.prototype.collapseSubGraph,Pr.prototype.findSubGraphParts=Pr.prototype.Rj,Pr.prototype.findContainingGroupChain=Pr.prototype.hz,Pr.prototype.findExternalNodesConnected=Pr.prototype.iz,Pr.prototype.findExternalLinksConnected=Pr.prototype.Lu,Pr.prototype.ensureBounds=Pr.prototype.Va,Pr.className="Group";function Wl(a){Me.call(this),this.yb=dl,this.ko=new ln(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Ze(Wl,Me),Wl.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Wl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return sa(0,0,y.width,y.height,a.x,a.y)},Wl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Pr||a instanceof Mo)||Ce("Placeholder is not inside a Group or Adornment."),a instanceof Pr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(js(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Vt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Vt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Tr&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,lt=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==Yn.Link&&(rt=z.ga(a.category==="Selection"?Es:a.locationSpot,Vt.alloc()),a.location=rt,Vt.free(rt)),isNaN(lt)||isNaN(tt)?(a=z.ga(Es,Vt.alloc()),lt=ln.allocAt(a.x,a.y,0,0),lt.Ye(z.ga(ml,a)),lt.Ye(z.ga(uu,a)),lt.Ye(z.ga(El,a)),js(y,lt.width+b||0,lt.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Vt.free(a),ln.free(lt)):(js(y,lt+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Wl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Wl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Pr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=ln.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Pr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),ln.free(x),b&&y instanceof Pr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Wl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Pr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof _n&&(!y.computesBoundsIncludingLinks||Ru(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},fe.Object.defineProperties(Wl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Zi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Wl.className="Placeholder";function _n(a){Hi.call(this,Yn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zl,this.Om=0,this.Qm=Zl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new wn().freeze(),this.Tg=this.Mg=null,this.ml=new ln,this.ua=new ni,this.u=this.o=this.Sf=this.Wf=null,this.su=new Vt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ze(_n,Hi),_n.prototype.cloneProtected=function(a){Hi.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())},Lt=_n.prototype,Lt.Af=function(a){Hi.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&&Mu(y),a=a.toPort,a!==null&&Mu(a)},Lt.qb=function(a){a.classType===_n?(a.value&2)===2?this.routing=a:a===ju||a===Pc||a===Rg?this.curve=a:a===Ap||a===t0||a===e0?this.adjusting=a:a!==Qv&&a!==Zl&&Ce("Unknown Link enum value for a Link property: "+a):Hi.prototype.qb.call(this,a)},Lt.Xc=function(){this.ba===null&&(this.ba=new gp)},Lt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),jl(a)||Kc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),jl(a)||Kc(a)))},Lt.zv=function(){return!1},Lt.Av=function(){},Lt.Zc=function(){return!1},_n.prototype.computeAngle=function(a,y,x){return _n.computeAngle(y,x)},_n.computeAngle=function(a,y){switch(a){default:case Zl:a=0;break;case kp:a=y;break;case Fp:a=y+90;break;case Np:a=y-90;break;case $v:a=y+180;break;case n0:a=Ne.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Ne.bp(y+90),90<a&&270>a&&(a-=180);break;case Dp:a=Ne.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Ne.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ne.bp(a)};function Og(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Lt=_n.prototype,Lt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Hi.prototype.oh.call(this)},Lt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Lt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function _S(a,y){a.wd===null&&(a.wd=new An),a.wd.add(y),a.v()}Lt.Vo=function(a){if(Hi.prototype.Vo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Ym(x,this,b)}Lp(this)}},Lt.Wo=function(a){if(Hi.prototype.Wo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Mp(this)}},Lt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},_n.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},_n.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Hi.prototype.move.call(this,a,!1):(a=Vt.allocAt(x.x+b,x.y+E),Hi.prototype.move.call(this,a,!1),Vt.free(a)),wc(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},_n.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},_n.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},_n.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ca),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ju))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()===ju){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ne.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ne.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=tt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},_n.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ju))return this.ua.wx(.5);if(this.computeCurve()===ju&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Ne.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Lt=_n.prototype,Lt.i=function(a){return this.Nb.s[a]},Lt.dd=function(a,y){this.Nb.cd(a,y)},Lt.L=function(a,y,x){this.Nb.cd(a,new Vt(y,x))},Lt.Kz=function(a,y){this.Nb.Gb(a,y)},Lt.m=function(a,y,x){this.Nb.Gb(a,new Vt(y,x))},Lt.ne=function(a){this.Nb.add(a)},Lt.yf=function(a,y){this.Nb.add(new Vt(a,y))},Lt.pv=function(a){this.Nb.mb(a)},Lt.Fj=function(){this.Nb.clear()};function wc(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new wn,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Vt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),zl(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&na(tt.animationManager,a,E),a.g("points",z,E)}}Lt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Lt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=tt=1/0;for(var ot=y.s,lt=ot.length,ut=0;ut<lt;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),lt===z){for(z=0;z<lt;z++)if(ut=E[z],ft=ot[z],ut.x-x!==ft.x-tt||ut.y-b!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&na(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},Lt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Jm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),_m(a,!1))}Lt.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())}},Lt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},_n.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ng||(ng=new fi,ng.desiredSize=Ho,ng.Va()),this.defaultFromPoint&&(ng.location=this.defaultFromPoint,ng.Va(),y=a=ng)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(ig||(ig=new fi,ig.desiredSize=Ho,ig.Va()),this.defaultToPoint&&(ig.location=this.defaultToPoint,ig.Va(),E=b=ig)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=Ig(tt),ot=Ig(x),lt=y===E&&y!==null,ut=this.isOrthogonal,ft=this.curve===ju;this.Wf=lt&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===Zl||lt;if(!ut&&!lt&&rt&&ot){if(rt=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,vt,z-1,ot))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,vt,z-1,ot)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),vt=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=vt.x-z.x,ot=vt.y-z.y,lt=this.computeCurviness(),ft=ut=0;var Ct=z.x+rt/3,Et=z.y+ot/3,Dt=Ct,Qt=Et;Ne.B(ot,0)?Qt=0<rt?Qt-lt:Qt+lt:(ut=-rt/ot,ft=Math.sqrt(lt*lt/(ut*ut+1)),0>lt&&(ft=-ft),Dt=(0>ot?-1:1)*ft+Ct,Qt=ut*(Dt-Ct)+Et),Ct=z.x+2*rt/3,Et=z.y+2*ot/3;var Wt=Ct,ae=Et;Ne.B(ot,0)?ae=0<rt?ae-lt:ae+lt:(Wt=(0>ot?-1:1)*ft+Ct,ae=ut*(Wt-Ct)+Et),this.Fj(),this.ne(z),this.yf(Dt,Qt),this.yf(Wt,ae),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,vt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,vt),E=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+vt/2,y=b.y+x/2,z=a,rt=y,Ne.B(x,0)?rt=0<vt?rt-tt:rt+tt:(vt=-vt/x,z=Math.sqrt(tt*tt/(vt*vt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=ln.alloc(),y.mi(rt),ot=rt.ca(E),vt.mi(rt),lt=rt.ca(b),(ot||lt)&&(tt=y.ga($m(tt),new Vt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=vt.ga($m(x),new Vt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,b,!1,x))),ln.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||lt)&&this.Fj();var le=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),Ct=Dt=Et=0,(ut||!rt||lt)&&(Qt=this.computeEndSegmentLength(a,y,tt,!0),Ct=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ct-=ut?90:30,0>le&&(Ct-=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),lt&&(Qt+=Math.abs(le)*(ut?1:2)),Ct===0?Et=Qt:Ct===90?Dt=Qt:Ct===180?Et=-Qt:Ct===270?Dt=-Qt:(Et=Qt*Math.cos(Ct*Math.PI/180),Dt=Qt*Math.sin(Ct*Math.PI/180)),tt.Mc()&<&&(Qt=y.ga(ho,Vt.alloc()),Wt=Vt.allocAt(Qt.x+1e3*Et,Qt.y+1e3*Dt),this.getLinkPointFromPoint(a,y,Qt,Wt,!0,ft),Vt.free(Qt),Vt.free(Wt))),Qt=this.getLinkPoint(b,E,x,!1,ut,a,y);var ge=ae=Wt=0;if(ut||!ot||lt){var Ee=this.computeEndSegmentLength(b,E,x,!1);ge=this.getLinkDirection(b,E,Qt,x,!1,ut,a,y),lt&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ge+=ut?0:30,0>le&&(ge+=180)),0>ge?ge+=360:360<=ge&&(ge-=360),lt&&(Ee+=Math.abs(le)*(ut?1:2)),ge===0?Wt=Ee:ge===90?ae=Ee:ge===180?Wt=-Ee:ge===270?ae=-Ee:(Wt=Ee*Math.cos(ge*Math.PI/180),ae=Ee*Math.sin(ge*Math.PI/180)),x.Mc()&<&&(x=E.ga(ho,Vt.alloc()),tt=Vt.allocAt(x.x+1e3*Wt,x.y+1e3*ae),this.getLinkPointFromPoint(b,E,x,tt,!1,Qt),Vt.free(x),Vt.free(tt))}x=ft,(ut||!rt||lt)&&(x=new Vt(ft.x+Et,ft.y+Dt)),tt=Qt,(ut||!ot||lt)&&(tt=new Vt(Qt.x+Wt,Qt.y+ae)),!vt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Qt):!vt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Qt)?this.dd(0,ft):!vt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Qt)):(this.Fj(),this.ne(ft),(ut||!rt||lt)&&this.ne(x),ut&&this.addOrthoPoints(x,Ct,tt,ge,a,b),(ut||!ot||lt)&&this.ne(tt),this.ne(Qt))}return!0};function Yv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}_n.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Vt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,ot=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*ot+ut,b=b.x*rt+b.y*lt+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*lt+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new rg,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}_n.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new Vt),x.sb()&&!Ig(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Qm(this,y);if(ot!==null){if(rt.assign(ot.Zo),E&&this.routing===e1){var lt=Qm(this,tt);if(lt!==null&&ot.Gl<lt.Gl){ot=Vt.alloc(),lt=Vt.alloc();var ut=new ln(y.ga(Es,ot),y.ga(ml,lt)),ft=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,ft,!b,E,a,y,lt),(x.Hf(Pu)||x.Hf(vl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Zu)||x.Hf(Ml))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Vt.free(ot),Vt.free(lt)}}return rt}}return x=y.ga($m(x),Vt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Yv(x,tt.copy()))):(ot=this.computeSpot(!b,tt),z=Vt.alloc(),tt=tt.ga($m(ot),z),E&&(tt=Yv(x,tt)),Vt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),Vt.free(x),rt},_n.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var ot=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(ot=Qm(this,y),ot!==null))switch(ot.Nc){case 1:ot=270;break t;case 2:ot=180;break t;default:case 4:ot=0;break t;case 8:ot=90;break t}ot=y.ga(ho,Vt.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(ot,rt.copy()):x):(x=Vt.alloc(),rt=rt.ga(ho,x),Vt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Vt.free(ot),ot=x}return b.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),Ig(b)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},_n.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},_n.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ho:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bo?Ya:y)):(a=y||this.toPort,a===null?a=ho:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bo?Ya:y)),a};function Ig(a){return a===Ya||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:ho}_n.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zl&&4<this.pointsCount?this.computeMidPoint(new Vt):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(ho))},_n.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},_n.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=kr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&kr.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,lt=ot.length;lt--;){var ut=ot[lt];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,vt=this.naturalBounds;if(!(ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=kr.alloc(),ft.set(tt),ut instanceof Yn)rt=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof Tr)if(rt=a,vt=b,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var Ct=rt,Et=ft;if(ut.fh(Ct,Et))rt=!0;else{if(Et===void 0&&(Et=ut.transform,Ct.Re(ut.actualBounds))){rt=!0;break t}rt=Ct.left,vt=Ct.right;var Dt=Ct.top;Ct=Ct.bottom;var Qt=Vt.alloc(),Wt=Vt.alloc(),ae=Vt.alloc(),le=kr.alloc();le.set(Et),le.bv(ut.transform),le.Vj(),Wt.x=vt,Wt.y=Dt,Wt.transform(le),Qt.x=rt,Qt.y=Dt,Qt.transform(le),Et=!1,Af(ut,Qt,Wt,ae)?Et=!0:(Qt.x=vt,Qt.y=Ct,Qt.transform(le),Af(ut,Qt,Wt,ae)?Et=!0:(Wt.x=rt,Wt.y=Ct,Wt.transform(le),Af(ut,Qt,Wt,ae)?Et=!0:(Qt.x=rt,Qt.y=Dt,Qt.transform(le),Af(ut,Qt,Wt,ae)&&(Et=!0)))),kr.free(le),Vt.free(Qt),Vt.free(Wt),Vt.free(ae),rt=Et}}else rt=ut.fh(rt,ft)}else rt=Gs(ut,a,b,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&E.add(vt)),kr.free(ft)}}}return z===void 0&&kr.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&kr.free(tt),!1},_n.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ju:this.curve},_n.prototype.computeCorner=function(){if(this.curve===ju)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},_n.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},_n.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=i1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===kp||b===n0||b===$v?a=Math.max(a,E):b===Np||b===Dp||b===Fp||b===Tp?a=Math.max(a,tt):(y=y.ga(ho).ab(x.ga(ho))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===ju&&(a*=1.333)}}return a},_n.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Zl&&x.bb()}},_n.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=sn(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),bn(x)}}return a},_n.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},_n.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},_n.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===t0)return!1;E===e0&&(E=Ap)}switch(E){case t0:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var rt=tt.x-E,ot=tt.y-z,lt=Math.sqrt(rt*rt+ot*ot);if(!Ne.$(lt,0)){if(Ne.$(rt,0))var ut=0>ot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=b.x-tt;var vt=b.y-ft;for(ot=Math.sqrt(rt*rt+vt*vt),Ne.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),lt=ot/lt,ut=vt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,ot=y.y-z,y=Math.sqrt(rt*rt+ot*ot),Ne.$(y,0)||(Ne.$(rt,0)?ot=0>ot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=lt,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,b)}}return!0;case e0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-E)*(tt-E)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=b.x,vt=b.y;var Ct=1;if(ot-rt!==0){var Et=(vt-ut)/(ot-rt);Ct=Math.sqrt(1+1/(Et*Et))}else Et=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Dt=y.x,Qt=y.y,Wt=.5;lt!==0&&(Wt=((E-Dt)*(E-tt)+(z-Qt)*(z-ft))/lt);var ae=E+Wt*(tt-E),le=z+Wt*(ft-z);y=Math.sqrt((Dt-ae)*(Dt-ae)+(Qt-le)*(Qt-le)),Qt<Et*(Dt-ae)+le&&(y=-y),0<Et&&(y=-y),Dt=rt+Wt*(ot-rt),Wt=ut+Wt*(vt-ut),Et!==0?(y=Dt+y/Ct,this.L(a,y,Wt-(y-Dt)/Et)):this.L(a,Dt,Wt+y)}this.dd(x,b)}return!0;case Ap:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,lt=ut,Ne.B(E.y,z.y)?Ne.B(z.x,tt.x)?ut=y.y:Ne.B(z.y,tt.y)&&(rt=y.x):Ne.B(E.x,z.x)&&(Ne.B(z.y,tt.y)?rt=y.x:Ne.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,ot=rt,vt=ut,Ne.B(E.y,z.y)?Ne.B(z.x,tt.x)?ut=b.y:Ne.B(z.y,tt.y)&&(rt=b.x):Ne.B(E.x,z.x)&&(Ne.B(z.y,tt.y)?rt=b.x:Ne.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,rt,ut),Uv(this))){this.L(a+1,ft,lt),this.L(x-1,ot,vt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},_n.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(Bp,Bp),ot.Bc(Bp,Bp),rt.Ye(a),ot.Ye(x);var lt=Vt.alloc(),ut=Vt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&ot.right>a.x||b===90&&x.y>a.y&&ot.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x<ot.left?this.computeMidOrthoPosition(a.x,a.y,ot.left,x.y,!1):a.x<ot.right&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=lt.x,ut.y=x.y):b===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&<.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=lt.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&ot.left<a.x||b===90&&x.y>a.y&&ot.left<a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&<.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=lt.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&ot.bottom>a.y||b===0&&x.x>a.x&&ot.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(lt.y=a.y<ot.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.top,!0):a.y<ot.bottom&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(lt.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&<.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,ot.right)),ut.x=lt.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&ot.top<a.y||b===0&&x.x>a.x&&ot.top<a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(lt.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(lt.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&<.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,ot.right)),ut.x=lt.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var vt=this.diagram;if(vt===null||E===z||this.layer.isTemporary||!Xo(vt)||rt.ca(ft)&&!z.Td(E)||ot.ca(a)&&!E.Td(z))y=!1;else{var Ct=Va(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ct.Yj(Math.min(a.x,lt.x),Math.min(a.y,lt.y),Math.abs(a.x-lt.x),Math.abs(a.y-lt.y))&&Ct.Yj(Math.min(lt.x,ut.x),Math.min(lt.y,ut.y),Math.abs(lt.x-ut.x),Math.abs(lt.y-ut.y))&&Ct.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{E=a,z=ft;var Et=x=null;if(vt.isVirtualized){vt=Ct.bounds.copy(),vt.Bc(-Ct.Ho,-Ct.Go);var Dt=Vt.alloc();zg(Ct,a.x,a.y)||(Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,lt.x,lt.y,Dt)?(x=a=Dt.copy(),y=Dt.ab(lt)):Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,lt.x,lt.y,ut.x,ut.y,Dt)?(x=a=Dt.copy(),y=Dt.ab(ut)):Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,Dt)&&(x=a=Dt.copy(),y=Dt.ab(ft))),zg(Ct,ft.x,ft.y)||(Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,Dt)?(Et=ft=Dt.copy(),b=ut.ab(Dt)):Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,lt.x,lt.y,Dt)?(Et=ft=Dt.copy(),b=lt.ab(Dt)):Ne.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,lt.x,lt.y,a.x,a.y,Dt)&&(Et=ft=Dt.copy(),b=a.ab(Dt))),Vt.free(Dt)}rt=rt.copy().ed(ot),rt.Bc(Ct.Ho*Ct.Os,Ct.Go*Ct.Os),o1(Ct,a,y,ft,b,rt,!0),ot=Ed(Ct,ft.x,ft.y),!Ct.abort&&ot>=jg&&(r1(Ct),rt.Bc(Ct.Ho*Ct.Hx,Ct.Go*Ct.Ix),o1(Ct,a,y,ft,b,rt,!1),ot=Ed(Ct,ft.x,ft.y)),!Ct.abort&&ot<jg&&Ed(Ct,ft.x,ft.y)!==Cc?(Xv(this,Ct,ft.x,ft.y,b,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?Ne.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):Ne.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=Ct.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Ne.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):Ne.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=Ct.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Et!==null&&(b===0||b===180?this.yf(z.x,Et.y):this.yf(Et.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),Vt.free(lt),Vt.free(ut)}},_n.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Uv(a){if(a.diagram===null||!a.isAvoiding||!Xo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Va(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Xv(a,y,x,b,E,z,tt){var rt=y.Ho,ot=y.Go,lt=Ed(y,x,b),ut=x,ft=b;for(E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,E!==tt&<>Nf&&Ed(y,ut,ft)!==lt-1&&(Ed(y,x-rt,b)===lt-1?(E=180,ut=x-rt,ft=b):Ed(y,x+rt,b)===lt-1?(E=0,ut=x+rt,ft=b):Ed(y,x,b-ot)===lt-1?(E=270,ut=x,ft=b-ot):Ed(y,x,b+ot)===lt-1&&(E=90,ut=x,ft=b+ot));lt>Nf&&Ed(y,ut,ft)===lt-1;)x=ut,b=ft,E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,--lt;z?lt>Nf&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/ot)*ot+ot/2),lt>Nf&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=ot):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=ot):E===270&&(z=0,tt+=rt),Ed(y,tt,ut)===lt-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=ot):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=ot):E===270&&(z=180,tt-=rt),Ed(y,tt,ut)===lt-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}_n.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Do(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=Do(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=rt)}return z},_n.prototype.qc=function(){this.lk=!1,this.v()},_n.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Tr&&(E.ua=this.ua)}}},_n.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ff(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===ju&&3<=y&&!Ne.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var ot=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),ot=Math.min(ot,rt.y)}else{if(this.isOrthogonal)for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ot=this.i(b),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,ot=z.y}else{for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,ot=z.y}if(b-=this.su.x,ot-=this.su.y,E.x-=b,E.y-=ot,y!==2||Ff(this)){if(a.type=ni.o,rt=FS(a),this.computeShortLength(!0)!==0&&(E=tg(this,E,!0,z)),Bg(rt,E.x,E.y,!1),tt===ju&&3<=y&&!Ne.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-ot,E=this.i(2).copy(),E.x-=b,E.y-=ot,this.computeShortLength(!1)!==0&&(E=tg(this,E,!1,z)),yc(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Vt.allocAt(b,ot),x=Vt.alloc(),x.assign(this.i(1)),z=Vt.allocAt(b,ot),E=Vt.allocAt(b,ot),tt=this.i(0);for(var lt,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){lt=this.i(ft);var vt=tt,Ct=lt,Et=this.i(Jv(this,lt,ft,!1));if((!Ne.$(vt.x,Ct.x)||!Ne.$(Ct.x,Et.x))&&(!Ne.$(vt.y,Ct.y)||!Ne.$(Ct.y,Et.y))){var Dt=ut;isNaN(Dt)&&(Dt=this.smoothness/3);var Qt=vt.x;vt=vt.y;var Wt=Ct.x;Ct=Ct.y;var ae=Et.x;Et=Et.y;var le=Dt*qm(Qt,vt,Wt,Ct);Dt*=qm(Wt,Ct,ae,Et),Ne.$(vt,Ct)&&Ne.$(Wt,ae)&&(Wt>Qt?Et>Ct?(z.x=Wt-le,z.y=Ct-le,E.x=Wt+Dt,E.y=Ct+Dt):(z.x=Wt-le,z.y=Ct+le,E.x=Wt+Dt,E.y=Ct-Dt):Et>Ct?(z.x=Wt+le,z.y=Ct-le,E.x=Wt-Dt,E.y=Ct+Dt):(z.x=Wt+le,z.y=Ct+le,E.x=Wt-Dt,E.y=Ct-Dt)),Ne.$(Qt,Wt)&&Ne.$(Ct,Et)&&(Ct>vt?(ae>Wt?(z.x=Wt-le,z.y=Ct-le,E.x=Wt+Dt):(z.x=Wt+le,z.y=Ct-le,E.x=Wt-Dt),E.y=Ct+Dt):(ae>Wt?(z.x=Wt-le,z.y=Ct+le,E.x=Wt+Dt):(z.x=Wt+le,z.y=Ct+le,E.x=Wt-Dt),E.y=Ct-Dt)),(Ne.$(Qt,Wt)&&Ne.$(Wt,ae)||Ne.$(vt,Ct)&&Ne.$(Ct,Et))&&(Qt=.5*(Qt+ae),vt=.5*(vt+Et),z.x=Qt,z.y=vt,E.x=Qt,E.y=vt),(ft===1||ft===2&&Ne.$(tt.x,this.i(0).x)&&Ne.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),yc(rt,x.x-b,x.y-ot,z.x-b,z.y-ot,lt.x-b,lt.y-ot),y.set(z),x.set(E),tt=lt}}lt=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,qr)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),yc(rt,E.x-b,E.y-ot,lt-b,tt-ot,ut.x-b,ut.y-ot),Vt.free(y),Vt.free(x),Vt.free(z),Vt.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=tg(this,tt.copy(),!1,qr)),yc(rt,z.x-b,z.y-ot,E.x-b,E.y-ot,tt.x-b,tt.y-ot);else{for(z=Vt.alloc(),z.assign(this.i(0)),E=Vt.alloc(),E.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,qr)),eg(this,rt,-b,-ot,z,ut,x);else if(lt===0)for(ft=1;ft<y;)E.assign(z),ut=this.i(ft++),eg(this,rt,-b,-ot,z,ut,x),z.assign(ut);break}if(lt=Jv(this,ut,ft+1,ft<y-3),ft=-b,Qt=-ot,vt=ut,Wt=this.i(lt),Dt=x,Ne.B(z.y,vt.y)&&Ne.B(vt.x,Wt.x))if(Et=Math.min(tt,Math.abs(vt.x-E.x)/2),Et=le=Math.min(Et,Math.abs(Wt.y-vt.y)/2),Ne.B(Et,0))eg(this,rt,ft,Qt,z,vt,Dt),z.assign(vt);else{var ge=vt.x,Ee=vt.y;Ct=ge,ae=Ee,vt.x>z.x?ge=vt.x-Et:ge=vt.x+Et,Wt.y>vt.y?ae=vt.y+le:ae=vt.y-le,Wt=Vt.allocAt(ge,Ee),eg(this,rt,ft,Qt,z,Wt,Dt),Vt.free(Wt),Zm(rt,vt.x+ft,vt.y+Qt,Ct+ft,ae+Qt),z.h(Ct,ae)}else Ne.B(z.x,vt.x)&&Ne.B(vt.y,Wt.y)?(Et=Math.min(tt,Math.abs(vt.y-E.y)/2),Et=le=Math.min(Et,Math.abs(Wt.x-vt.x)/2),Ne.B(le,0)?(eg(this,rt,ft,Qt,z,vt,Dt),z.assign(vt)):(ge=vt.x,Ee=vt.y,Ct=ge,ae=Ee,vt.y>z.y?Ee=vt.y-Et:Ee=vt.y+Et,Wt.x>vt.x?Ct=vt.x+le:Ct=vt.x-le,Wt=Vt.allocAt(ge,Ee),eg(this,rt,ft,Qt,z,Wt,Dt),Vt.free(Wt),Zm(rt,vt.x+ft,vt.y+Qt,Ct+ft,ae+Qt),z.h(Ct,ae))):(eg(this,rt,ft,Qt,z,vt,Dt),z.assign(vt));E.assign(ut),ft=lt}Vt.free(z)}Gm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=ot,this.computeShortLength(!0)!==0&&(E=tg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=tg(this,rt,!1,z)),a.type=ni.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function qm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ne.$(a,0)?y:Ne.$(y,0)?a:Math.sqrt(a*a+y*y)))}function tg(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;Ne.$(y.x,z.x)&&Ne.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ne.$(y.x,z.x)&&!Ne.$(y.y,z.y))return x-1;for(var tt=z;Ne.$(y.x,z.x)&&Ne.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Ne.$(y.y,z.y)&&Ne.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}_n.prototype.computeJumpLength=function(){return 10};function eg(a,y,x,b,E,z,tt){if(!tt&&Ff(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],lt=0;if(a.isVisible()&&(lt=Ex(a,E,z,ot)),0<lt){if(Ne.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<lt;){var ft=Math.max(E.x,Math.min(ot[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+b);for(var vt=ft+x,Ct=Math.min(ft+tt,z.x);ut<lt&&(ft=ot[ut],ft<Ct+tt);)ut++,Ct=Math.min(ft+rt,z.x);ft=z.y-tt+b,Ct+=x;var Et=z.y+b;a.curve===Pc?Bg(y,Ct,Et,!1):yc(y,vt,ft,Ct,ft,Ct,Et)}else for(--lt;0<=lt;){for(ut=Math.min(E.x,Math.max(ot[lt--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+b),vt=ut+x,ft=Math.max(ut-tt,z.x);0<=lt&&(ut=ot[lt],ut>ft-tt);)lt--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+b,ft+=x,Ct=z.y+b,a.curve===Pc?Bg(y,ft,Ct,!1):yc(y,vt,ut,ft,ut,ft,Ct)}else if(Ne.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<lt;){for(ft=Math.max(E.y,Math.min(ot[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+b),vt=ft+b,ft=Math.min(ft+tt,z.y);ut<lt&&(Ct=ot[ut],Ct<ft+tt);)ut++,ft=Math.min(Ct+rt,z.y);Ct=z.x-tt+x,Et=z.x+x,ft+=b,a.curve===Pc?Bg(y,Et,ft,!1):yc(y,Ct,vt,Ct,ft,Et,ft)}else for(--lt;0<=lt;){for(ut=Math.min(E.y,Math.max(ot[lt--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+b),vt=ut+b,ut=Math.max(ut-tt,z.y);0<=lt&&(ft=ot[lt],ft>ut-tt);)lt--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,Ct=z.x+x,ut+=b,a.curve===Pc?Bg(y,Ct,ut,!1):yc(y,ft,vt,ft,ut,Ct,ut)}}}y.lineTo(z.x+x,z.y+b)}function Ex(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];if(ot instanceof _n){if(ot===a)return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length;if(ot.isVisible()&&Ff(ot)){var lt=ot.routeBounds;lt.w()&&a.routeBounds.Yc(lt)&&!a.usesSamePort(ot)&&(lt=ot.path,lt!==null&<.Ed()&&Lx(y,x,b,ot))}}}}}return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length}function Lx(a,y,x,b){for(var E=Ne.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),rt=Vt.alloc(),ot=1;ot<z;ot++){var lt=b.i(ot);if(ot<z-1){var ut=b.i(ot+1);if(tt.y===lt.y&<.y===ut.y){if(lt.x>tt.x&&ut.x>=lt.x||lt.x<tt.x&&ut.x<=lt.x)continue}else if(tt.x===lt.x&<.x===ut.x&&(lt.y>tt.y&&ut.y>=lt.y||lt.y<tt.y&&ut.y<=lt.y))continue}t:{ut=a.x;var ft=a.y,vt=y.x,Ct=y.y,Et=tt.x;tt=tt.y;var Dt=lt.x,Qt=lt.y;if(Ne.B(ut,vt)){if(!Ne.B(ft,Ct)&&Ne.B(tt,Qt)&&Math.min(ft,Ct)<tt&&Math.max(ft,Ct)>tt&&Math.min(Et,Dt)<ut&&Math.max(Et,Dt)>ut&&!Ne.B(Et,Dt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(Ne.B(ft,Ct)&&Ne.B(Et,Dt)&&Math.min(ut,vt)<Et&&Math.max(ut,vt)>Et&&Math.min(tt,Qt)<ft&&Math.max(tt,Qt)>ft&&!Ne.B(tt,Qt)){rt.x=Et,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=lt}Vt.free(rt)}function Ff(a){return a=a.curve,a===Rg||a===Pc}function _m(a,y){(y||Ff(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}_n.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];ot instanceof _n&&(ot===this?z=!0:z&&t1(this,ot,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)rt=z[tt],rt instanceof _n&&t1(this,rt,a)}}}}};function t1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ff(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}_n.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},_n.prototype.isVisible=function(){if(!Hi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},_n.prototype.Zb=function(a){if(Hi.prototype.Zb.call(this,a),a&&_m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},_n.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ap:this.qk};function Lp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot];(lt.ef===y&<.ff===b&<.uf===x&<.vf===E||lt.ef===x&<.ff===E&<.uf===y&<.vf===b)&&(z===null?z=lt:(a===null&&(a=[],a.push(z)),a.push(lt)))}if(a!==null){for(z=ZS(y,x,b,E),z===null&&(z=new r0(y,b,x,E),WS(y,z),WS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Mp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(gn(y.links,a),y.Sl()))}_n.prototype.ph=function(){return!0},fe.Object.defineProperties(_n.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Um(y,this,x),Mp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.uf!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("fromNode",y,a),Og(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Mu(x),Mp(this),this.ff=a;var b=this.fromPort;b!==null&&Mu(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Lp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Um(y,this,x),Mp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.ef!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("toNode",y,a),Og(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Mu(x),Mp(this),this.vf=a;var b=this.toPort;b!==null&&Mu(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Lp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Bo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Mu(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",_n,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Bo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Mu(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",_n,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Dr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Ep(this.fromNode),this.toNode!==null&&Ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Tr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===ju&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Ne.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var tt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),ot=this.i(z);Ne.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),E=ot}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Vt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Jm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Ne.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ne.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new wn,b=0;b<a.length/2;b++)E=new Vt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!je(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new wn,b=0;b<a.length;b++)E=a[b],x.add(new Vt(E.x,E.y).freeze())}}else if(a instanceof wn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ce("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&&na(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ig(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ig(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),_m(this,y===Pc||y===Rg||a===Pc||a===Rg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),_m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),_n.prototype.invalidateOtherJumpOvers=_n.prototype.Xo,_n.prototype.findClosestSegment=_n.prototype.ez,_n.prototype.updateRoute=_n.prototype.vg,_n.prototype.invalidateRoute=_n.prototype.bb,_n.prototype.rollbackRoute=_n.prototype.rv,_n.prototype.commitRoute=_n.prototype.zf,_n.prototype.startRoute=_n.prototype.uh,_n.prototype.clearPoints=_n.prototype.Fj,_n.prototype.removePoint=_n.prototype.pv,_n.prototype.addPointAt=_n.prototype.yf,_n.prototype.addPoint=_n.prototype.ne,_n.prototype.insertPointAt=_n.prototype.m,_n.prototype.insertPoint=_n.prototype.Kz,_n.prototype.setPointAt=_n.prototype.L,_n.prototype.setPoint=_n.prototype.dd,_n.prototype.getPoint=_n.prototype.i,_n.prototype.getOtherPort=_n.prototype.Cz,_n.prototype.getOtherNode=_n.prototype.To;var ng=null,ig=null,Qv=new Oe(_n,"Normal",1),Mx=new Oe(_n,"Orthogonal",2),Ax=new Oe(_n,"AvoidsNodes",6),e1=new Oe(_n,"AvoidsNodesStraight",7),Zl=new Oe(_n,"None",0),ju=new Oe(_n,"Bezier",9),Pc=new Oe(_n,"JumpGap",10),Rg=new Oe(_n,"JumpOver",11),Ap=new Oe(_n,"End",17),t0=new Oe(_n,"Scale",18),e0=new Oe(_n,"Stretch",19),kp=new Oe(_n,"OrientAlong",21),Fp=new Oe(_n,"OrientPlus90",22),Np=new Oe(_n,"OrientMinus90",23),$v=new Oe(_n,"OrientOpposite",24),n0=new Oe(_n,"OrientUpright",25),Tp=new Oe(_n,"OrientPlus90Upright",26),Dp=new Oe(_n,"OrientMinus90Upright",27),i0=new Oe(_n,"OrientUpright45",28),n1=16,i1=14,Bp=8;_n.className="Link",_n.Normal=Qv,_n.Orthogonal=Mx,_n.AvoidsNodes=Ax,_n.AvoidsNodesStraight=e1,_n.None=Zl,_n.Bezier=ju,_n.JumpGap=Pc,_n.JumpOver=Rg,_n.End=Ap,_n.Scale=t0,_n.Stretch=e0,_n.OrientAlong=kp,_n.OrientPlus90=Fp,_n.OrientMinus90=Np,_n.OrientOpposite=$v,_n.OrientUpright=n0,_n.OrientPlus90Upright=Tp,_n.OrientMinus90Upright=Dp,_n.OrientUpright45=i0,_n.EndSegmentStep=8,_n.CurvinessStart=n1,_n.SpacingMin=i1,_n.OrthoShortCut=Bp;function r0(a,y,x,b){Or(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}r0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},r0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},r0.className="LinkBundle";function Op(a){Or(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Op.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=qv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function zg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ed(a,y,x){return zg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function r1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Nf&&(x[b]=qv)}Op.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Cc)return!1}return!0};function Ld(a,y,x,b,E,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var lt=y|0,ut=x|0,ft=a.ac[lt][ut];if(ft>=Nf&&ft<jg)for(E?ut+=b:lt+=b,ft+=1;z<=lt&<<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[lt][ut]);)a.ac[lt][ut]=ft,ft+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0<b)for(x+=b;x<lt;x+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else for(x+=b;x>lt;x+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else if(0<b)for(y+=b;y<lt;y+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else for(y+=b;y>lt;y+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot)}}function o0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var lt=Cc,ut=Nf;for(a.ac[y][x]=ut;lt===Cc&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function a0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var lt=Cc,ut=jg;for(a.ac[y][x]=ut;lt===Cc&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function o1(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(zg(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var lt=b.x,ut=b.y;if(zg(a,lt,ut))if(lt-=a.Nd,lt/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-lt)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,b|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),b=a.ac,rt|=0,ot|=0,lt|=0,ut|=0;var Ct=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][ot]===Cc?(o0(a,rt,ot,Ct,x,z,y,ft,vt),o0(a,rt,ot,1,!x,z,y,ft,vt),o0(a,rt,ot,-1,!x,z,y,ft,vt)):o0(a,rt,ot,Ct,x,rt,ot,rt,ot),b[lt][ut]===Cc?(a0(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,vt),a0(a,lt,ut,1,!(E===90||E===270),z,y,ft,vt),a0(a,lt,ut,-1,!(E===90||E===270),z,y,ft,vt)):a0(a,lt,ut,Ct,x,lt,ut,lt,ut),x=sn(),tt&&a1(a,lt,ut,E,rt,ot,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=Nf,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:y<E?E--:lt>tt?tt++:lt<tt&&tt--,b[E][tt]=a++,E!==y||tt!==lt;);else Ld(a,rt,ot,1,!1,z,y,ft,vt),Ld(a,rt,ot,-1,!1,z,y,ft,vt),Ld(a,rt,ot,1,!0,z,y,ft,vt),Ld(a,rt,ot,-1,!0,z,y,ft,vt);bn(x)}}}}function a1(a,y,x,b,E,z,tt){for(var rt=a.ac,ot=y,lt=x;;){if(ot===E&<===z)return!0;var ut=ot,ft=lt;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(ft<z)ft++;else break;else if(b===180)if(ut>E)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===_v)break;ot=ut,lt=ft}for(;;){if(ut=b,ft=ot,vt=lt,b===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):b===90?ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--):b===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--),ft=rt[ft][vt],ut!==b&&ft!==0&&ft!==_v){if(tt.push(ot),tt.push(lt),a1(a,ot,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][lt]=_v,b===0){if(ot===y)return!1;ot--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(ot===y)return!1;ot++}else{if(lt===x)return!1;lt++}}}fe.Object.defineProperties(Op.prototype,{bounds:{get:function(){return new ln(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Cc=0,Nf=1,jg=999999,qv=jg+1,_v=jg+2;Op.className="PositionArray";function rg(){Or(this),this.port=this.node=null,this.pe=[],this.ap=!1}rg.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function kx(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}rg.prototype.Sl=function(){this.pe.length=0};function s1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Pr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(Es,Vt.alloc()),ot=a.port.ga(ml,Vt.alloc());for(E=ln.allocAt(rt.x,rt.y,0,0),E.Ye(ot),Vt.free(rt),Vt.free(ot),rt=Vt.allocAt(E.x+E.width/2,E.y+E.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(b),ft=lt.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var Ct=vt.findVisibleNode();Ct!==null&&Ct!==vt&&(vt=Ct,ut=vt.port),ut=lt.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=ot,0>vt?vt+=360:360<=vt&&(vt-=360),ft=kx(E,ft,vt,lt.isOrthogonal),ft===0?(ft=4,180<vt&&(vt-=360)):ft===90?(ft=8,270<vt&&(vt-=360)):ft===180?ft=2:(ft=1,90>vt&&(vt+=360)),Ct=a.pe[z],Ct===void 0?(Ct=new ty(lt,vt,ft),a.pe[z]=Ct):(Ct.link=lt,Ct.angle=vt,Ct.Nc=ft),Ct.hv.set(ut),z++}}}}for(Vt.free(rt),a.pe.sort(rg.prototype.j),ot=a.pe.length,b=-1,z=rt=0;z<ot;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,rt=0),tt.Uo=rt,rt++);for(b=-1,rt=0,z=ot-1;0<=z;z--)ot=a.pe[z],ot!==void 0&&(ot.Nc!==b&&(b=ot.Nc,rt=ot.Uo+1),ot.Gl=rt);if(z=a.pe,ft=a.port,b=a.node.portSpreading,rt=Vt.alloc(),ot=Vt.alloc(),tt=Vt.alloc(),lt=Vt.alloc(),ft.ga(Es,rt),ft.ga(uu,ot),ft.ga(ml,tt),ft.ga(El,lt),Ct=vt=ut=ft=0,b===Gv)for(var Et=0;Et<z.length;Et++){var Dt=z[Et];if(Dt!==null){var Qt=Dt.link.computeThickness();switch(Dt.Nc){case 8:vt+=Qt;break;case 2:Ct+=Qt;break;case 1:ft+=Qt;break;default:case 4:ut+=Qt}}}var Wt=Et=0,ae=1,le=Dt=0;for(Qt=0;Qt<z.length;Qt++){var ge=z[Qt];if(ge!==null){if(Et!==ge.Nc){switch(Et=ge.Nc,Et){case 8:var Ee=tt;Wt=lt;break;case 2:Ee=lt,Wt=rt;break;case 1:Ee=rt,Wt=ot;break;default:case 4:Ee=ot,Wt=tt}switch(Dt=Wt.x-Ee.x,le=Wt.y-Ee.y,Et){case 8:vt>Math.abs(Dt)?(ae=Math.abs(Dt)/vt,vt=Math.abs(Dt)):ae=1;break;case 2:Ct>Math.abs(le)?(ae=Math.abs(le)/Ct,Ct=Math.abs(le)):ae=1;break;case 1:ft>Math.abs(Dt)?(ae=Math.abs(Dt)/ft,ft=Math.abs(Dt)):ae=1;break;default:case 4:ut>Math.abs(le)?(ae=Math.abs(le)/ut,ut=Math.abs(le)):ae=1}Wt=0}var Xe=ge.Zo;if(b===Gv){switch(ge=ge.link.computeThickness(),ge*=ae,Xe.set(Ee),Et){case 8:Xe.x=Ee.x+Dt/2+vt/2-Wt-ge/2;break;case 2:Xe.y=Ee.y+le/2+Ct/2-Wt-ge/2;break;case 1:Xe.x=Ee.x+Dt/2-ft/2+Wt+ge/2;break;default:case 4:Xe.y=Ee.y+le/2-ut/2+Wt+ge/2}Wt+=ge}else{var ci=.5;b===Xm&&(ci=(ge.Uo+1)/(ge.Gl+1)),Xe.x=Ee.x+Dt*ci,Xe.y=Ee.y+le*ci}}}for(Vt.free(rt),Vt.free(ot),Vt.free(tt),Vt.free(lt),Ee=a.pe,z=0;z<Ee.length;z++)b=Ee[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,ln.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}rg.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ya,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},rg.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Vt,this.Gl=this.Uo=0,this.Zo=new Vt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Aa(a){Or(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Vt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Aa.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},Aa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Aa.prototype.qb=function(){},Aa.prototype.toString=function(){var a=Fn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Aa.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())}}},Aa.prototype.createNetwork=function(){return new aa(this)},Aa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ye?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Pr?y.lg(a.memberParts):y.lg(a.iterator),y},Aa.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")}},Aa.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()}},Aa.prototype.doLayout=function(a){var y=new An;a instanceof Ye?(Uc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Uc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Pr?Uc(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Aa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;Ip(rt);var ot=rt.measuredBounds,lt=ot.width;ot=ot.height,rt.moveTo(b,E),rt instanceof Pr&&(rt.rh=!1),b+=Math.max(lt,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Aa.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof _n)&&(Ip(rt),this.rh(rt))){var ot=rt.measuredBounds,lt=ot.width;ot=ot.height,rt.moveTo(x,b),rt instanceof Pr&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(ot,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Aa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Pr&&a.rh)};function Uc(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;b&&!ot.isTopLevel||E!==null&&!E(ot)||!ot.canLayout()||(z&&ot instanceof fi?ot.isLinkLabel||(ot instanceof Pr&&ot.layout===null?Uc(a,y,ot.memberParts,!1,E,z,tt,rt):(Ip(ot),y.add(ot))):tt&&ot instanceof _n?y.add(ot):!rt||!ot.Zc()||ot instanceof fi||(Ip(ot),y.add(ot)))}}function Ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Aa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ln),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Aa.prototype.ex=function(a){var y=new An;return a instanceof Ye?(Uc(this,y,a.nodes,!0,null,!0,!0,!0),Uc(this,y,a.links,!0,null,!0,!0,!0),Uc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Pr?Uc(this,y,a.memberParts,!1,null,!0,!0,!0):Uc(this,y,a.iterator,!1,null,!0,!0,!0),y},Aa.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(Es),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},fe.Object.defineProperties(Aa.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())}}}),Aa.prototype.collectParts=Aa.prototype.ex,Aa.prototype.getLayoutBounds=Aa.prototype.ni,Aa.prototype.invalidateLayout=Aa.prototype.C,Aa.className="Layout";function aa(a){Or(this),this.Sc=a,this.wf=new An,this.ye=new An,this.Es=new Ci,this.zs=new Ci}aa.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 An,this.ye=new An,this.Es=new Ci,this.zs=new Ci},aa.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},aa.prototype.createVertex=function(){return new zs(this)},aa.prototype.createEdge=function(){return new Au(this)},aa.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof fi)return!tt.isLinkLabel;if(tt instanceof _n){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof fi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Pr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof _n&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},aa.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},Lt=aa.prototype,Lt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Lt.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},Lt.Iu=function(a){if(a!==null&&l1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function l1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Lt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Lt.ki=function(a){return a===null?null:this.Es.I(a)},Lt.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Lt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Lt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Lt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Lt.Lo=function(a){return a===null?null:this.zs.I(a)},Lt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Lt.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))}},Lt.Ko=function(){for(var a=sn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);bn(a)},aa.prototype.deleteArtificialVertexes=function(){for(var a=sn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=sn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);bn(a),bn(y)};function Fx(a){for(var y=sn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);bn(y)}aa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new wn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){l1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ey(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}aa.prototype.dz=function(){for(var a=new An,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},fe.Object.defineProperties(aa.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}}}),aa.prototype.findAllParts=aa.prototype.dz,aa.prototype.splitIntoSubNetworks=aa.prototype.Zx,aa.prototype.deleteSelfEdges=aa.prototype.Ko,aa.prototype.reverseEdge=aa.prototype.gm,aa.prototype.linkVertexes=aa.prototype.Zj,aa.prototype.findEdge=aa.prototype.Lo,aa.prototype.deleteLink=aa.prototype.Yy,aa.prototype.deleteEdge=aa.prototype.Mj,aa.prototype.addLink=aa.prototype.Dy,aa.prototype.addEdge=aa.prototype.Bo,aa.prototype.findVertex=aa.prototype.ki,aa.prototype.deleteNode=aa.prototype.Zy,aa.prototype.deleteVertex=aa.prototype.Iu,aa.prototype.addNode=aa.prototype.Bl,aa.prototype.addVertex=aa.prototype.dh,aa.prototype.addParts=aa.prototype.lg,aa.className="LayoutNetwork";function zs(a){Or(this),this.ob=a,this.j=new ln(0,0,10,10).freeze(),this.o=new Vt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new wn,this.mg=new wn}zs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new wn,this.mg=new wn},zs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+uo(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},zs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;je(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 Pr)){x=ln.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ho);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),ln.free(x);return}ln.free(x)}a.moveTo(y.x,y.y)}},zs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},zs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},zs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},zs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ry(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}fe.Object.defineProperties(zs.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ln.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),ln.free(x),!(a instanceof Pr)&&(a=a.locationObject.ga(ho),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new An,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new An,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 wn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),zs.prototype.deleteDestinationEdge=zs.prototype.Jl,zs.prototype.addDestinationEdge=zs.prototype.zl,zs.prototype.deleteSourceEdge=zs.prototype.Kl,zs.prototype.addSourceEdge=zs.prototype.Cl,zs.className="LayoutVertex",zs.standardComparer=ry,zs.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Au(a){Or(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Au.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Au.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+uo(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},Au.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Au.prototype.commit=function(){},Au.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},fe.Object.defineProperties(Au.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)}}}),Au.prototype.getOtherVertex=Au.prototype.Ax,Au.className="LayoutEdge";function ol(a){Aa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ei(NaN,NaN).freeze(),this.tf=new ei(10,10).freeze(),this.Jb=Rp,this.Rb=l0,this.nd=zp,this.hd=u1,a&&Object.assign(this,a)}Ze(ol,Aa),ol.prototype.cloneProtected=function(a){Aa.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},ol.prototype.qb=function(a){a.classType===ol?a===zp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===Kh?this.arrangement=a:a===Rp||a===s0?this.alignment=a:Ce("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},ol.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Pr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case zp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case s0:var rt=y,ot=x,lt=ln.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<E.length;ft++){var vt=this.ni(E[ft],lt);ut=Math.max(ut,vt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(vt=ft=0;vt<E.length;vt++){var Ct=this.ni(E[vt],lt);ft=Math.max(ft,Ct.height)}ft=Math.max(ft+ot,1),vt=this.arrangement;for(var Et=Ct=this.arrangementOrigin.x,Dt=this.arrangementOrigin.y,Qt=0,Wt=0,ae=0;ae<E.length;ae++){var le=E[ae],ge=this.ni(le,lt),Ee=Math.ceil((ge.width+rt)/ut)*ut,Xe=Math.ceil((ge.height+ot)/ft)*ft;switch(vt){case Kh:var ci=Math.abs(Et-ge.width);break;default:ci=Et+ge.width}switch((0<z&&Qt>z-1||0<tt&&0<Qt&&ci-Ct>tt)&&(b.push(new ln(0,Dt,tt+rt,Wt)),Qt=0,Et=Ct,Dt+=Wt,Wt=0),Wt=Math.max(Wt,Xe),vt){case Kh:ge=-ge.width;break;default:ge=0}switch(le.moveTo(Et+ge,Dt),vt){case Kh:Et-=Ee;break;default:Et+=Ee}Qt++}b.push(new ln(0,Dt,tt+rt,Wt)),ln.free(lt);break;case Rp:for(ot=tt,ut=z,ft=y,vt=x,tt=ln.alloc(),Ct=Math.max(this.cellSize.width,1),z=Dt=lt=0,rt=Vt.alloc(),Et=0;Et<E.length;Et++)Wt=E[Et],Qt=this.ni(Wt,tt),Wt=Sc(Wt,Wt.locationObject,Wt.locationSpot,rt),lt=Math.max(lt,Wt.x),Dt=Math.max(Dt,Qt.width-Wt.x),z=Math.max(z,Wt.y);switch(Et=this.arrangement,Et){case Kh:lt+=ft;break;default:Dt+=ft}Ct=isFinite(Ct)?Math.max(Ct+ft,1):Math.max(lt+Dt,1);var Ei=Wt=this.arrangementOrigin.x;for(ae=this.arrangementOrigin.y,Dt=0,ot>=lt&&(ot-=lt),lt=le=0,Ee=Math.max(this.cellSize.height,1),ge=z=0,Xe=!0,Qt=Vt.alloc(),ci=0;ci<E.length;ci++){var Si=E[ci],$n=this.ni(Si,tt),kn=Sc(Si,Si.locationObject,Si.locationSpot,rt);if(0<Dt)switch(Et){case Kh:Ei=(Ei-Wt-($n.width-kn.x))/Ct,Ei=Ne.$(Math.round(Ei),Ei)?Math.round(Ei):Math.floor(Ei),Ei=Ei*Ct+Wt;break;default:Ei=(Ei-Wt+kn.x)/Ct,Ei=Ne.$(Math.round(Ei),Ei)?Math.round(Ei):Math.ceil(Ei),Ei=Ei*Ct+Wt}else switch(Et){case Kh:le=Ei+kn.x+$n.width;break;default:le=Ei-kn.x}switch(Et){case Kh:var wr=-(Ei+kn.x)+le;break;default:wr=Ei+$n.width-kn.x-le}if(0<ut&&Dt>ut-1||0<ot&&0<Dt&&wr>ot){for(b.push(new ln(0,Xe?ae-z:ae,ot+ft,ge+z+vt)),Ei=0;Ei<Dt&&ci!==Dt;Ei++){wr=E[ci-Dt+Ei];var cr=Sc(wr,wr.locationObject,wr.locationSpot,Qt);wr.moveTo(wr.position.x,wr.position.y+z-cr.y)}ge+=vt,ae=Xe?ae+ge:ae+(ge+z),Dt=ge=z=0,Ei=Wt,Xe=!1}switch(Ei===Wt&&(lt=Et===Kh?Math.max(lt,$n.width-kn.x):Math.min(lt,-kn.x)),z=Math.max(z,kn.y),ge=Math.max(ge,$n.height-kn.y),isFinite(Ee)&&(ge=Math.max(ge,Math.max($n.height,Ee)-kn.y)),Xe?Si.moveTo(Ei-kn.x,ae-kn.y):Si.moveTo(Ei-kn.x,ae),Et){case Kh:Ei-=kn.x+ft;break;default:Ei+=$n.width-kn.x+ft}Dt++}if(b.push(new ln(0,ae,ot+ft,(Xe?ge:ge+z)+vt)),E.length!==Dt)for(ot=0;ot<Dt;ot++)ut=E[E.length-Dt+ot],ft=Sc(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Vt.free(rt),Vt.free(Qt),Et===Kh)for(E=0;E<b.length;E++)z=b[E],z.width+=lt,z.x-=lt;else for(E=0;E<b.length;E++)z=b[E],z.x>lt&&(z.width+=z.x-lt,z.x=lt);ln.free(tt)}for(rt=z=tt=E=0;rt<b.length;rt++)ot=b[rt],E=Math.min(E,ot.x),tt=Math.min(tt,ot.y),z=Math.max(z,ot.x+ot.width);this.arrangement===Kh?this.commitLayers(b,new Vt(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new Vt(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ol.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}fe.Object.defineProperties(ol.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Rp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Kh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==u0&&a!==zp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new Oe(ol,"Position",0),Rp=new Oe(ol,"Location",1),l0=new Oe(ol,"LeftToRight",2),Kh=new Oe(ol,"RightToLeft",3),oy=new Oe(ol,"Forward",4),u0=new Oe(ol,"Reverse",5),zp=new Oe(ol,"Ascending",6),h0=new Oe(ol,"Descending",7);ol.className="GridLayout",ol.standardComparer=u1,ol.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},ol.Position=s0,ol.Location=Rp,ol.LeftToRight=l0,ol.RightToLeft=Kh,ol.Forward=oy,ol.Reverse=u0,ol.Ascending=zp,ol.Descending=h0;function Go(){this.On=new An,this.Dn=new An,this.Pa=new An,this.cf=new Ci,this.bf=new Ci,this.aj=new Ci,this.H=null,this.tp=!1}Lt=Go.prototype,Lt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Lt.Xe=function(a){this.H=a},Lt.oi=function(a){if(a instanceof fi){if(this.On.add(a),a instanceof Pr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof _n?this.Dn.add(a):a instanceof Mo||this.Pa.add(a);y=a.data,y===null||a instanceof Mo||(a instanceof _n?this.bf.add(y,a):this.cf.add(y,a))},Lt.pc=function(a){if(a.Ej(),a instanceof fi){if(this.On.remove(a),a instanceof Pr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof _n?this.Dn.remove(a):a instanceof Mo||this.Pa.remove(a);y=a.data,y===null||a instanceof Mo||(a instanceof _n?this.bf.remove(y):this.cf.remove(y))},Lt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Pr)&&Ce('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Pr||Ce('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof _n||Ce('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=sn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=sn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=sn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);bn(y),bn(x),bn(a)}},Go.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Go.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&h1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&jc(this.diagram,!1)};function h1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=d1(a,y,b);if(E!==null&&(fh(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Go.prototype.insertLink=function(){return null},Go.prototype.resolveReferencesForData=function(){},Go.prototype.Ro=function(a){return this.H.model.Ro(a)};function d1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(g1||(g1=!0,Bi('No Group template found for category "'+x+'"'),Bi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Bi('No Node template found for category "'+x+'"'),Bi(" Using default node template")),y=a.ny))),y}Go.prototype.getLinkCategoryForData=function(){return""},Go.prototype.setLinkCategoryForData=function(){},Go.prototype.setFromNodeForLink=function(){},Go.prototype.setToNodeForLink=function(){},Go.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,Bi('No Link template found for category "'+a+'"'),Bi(" Using default link template")),x=y.my)),x},Go.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Go.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Go.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Go.prototype.unresolveReferencesForPart=function(){},Go.prototype.removeDataForLink=function(){},Go.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Go.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof fi?a:null)},Go.prototype.findLinkForKey=function(){return null},Lt=Go.prototype,Lt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Lt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof fi?a:null)},Lt.Kc=function(a){return a===null?null:this.bf.I(a)},Lt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(je(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator},Lt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(je(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(yn(z)){if(!yn(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var rt=z[tt];if(rt!==void 0&&!c1(a,E[tt],rt))return!1}}else if(!c1(a,E,z))return!1}return!0}function c1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(je(y)&&je(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Go.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Zn){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Qn){var tt=a.newValue;b==="nodeDataArray"&&je(tt)&&h1(this,tt),y.isModified=!0}else if(x===di){var rt=a.oldValue;b==="nodeDataArray"&&je(rt)&&this.ip(rt),y.isModified=!0}else x===mn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Zn){var ot=a.propertyName,lt=a.object;lt===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(lt,ot),y.isModified=!0}else if(x===Qn||x===di){var ut=a.change===Qn,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,Ct=this.aj.I(a.object);if(Array.isArray(Ct))for(a=0;a<Ct.length;a++){var Et=Ct[a];if(ut)km(Et,vt,ft,!0);else if(!(0>ft)){var Dt=ft+Sp(Et);Et.pc(Dt,!0),xv(Et,Dt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Go.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)},Go.prototype.rp=function(){for(var a=this.H.model,y=new An,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){b1(a,tt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&C1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Go.prototype.refreshDataBoundLinks=function(){},Go.prototype.updateRelationshipsFromData=function(){},Go.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=sn()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);bn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(yn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function ly(a,y,x){Lf(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Gf(x,tt[ot])});var b=y.Hh;if(yn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Go.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Ci;if(yn(a))for(var E=0;E<a.length;E++)d0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)d0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new An;for(var z=new Ci,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof _n)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof fi&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var lt=rt.pg();lt!==null&&(lt=b.I(lt),lt!==null?(x.qe(ot.data,x.wa(lt.data)),ot=y.Kc(ot.data),rt=rt.kh(),rt!==null&&ot!==null&&z.add(rt,ot)):x.qe(ot.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new Ci;b.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function d0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Hi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof fi){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var ot=b.I(rt);ot!==null&&(ot.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Pr&&z instanceof Pr)for(y=y.memberParts;y.next();)tt=d0(a,y.value,x,b,E),tt instanceof _n||tt===null||(tt.containingGroup=z)}else if(y instanceof _n&&z instanceof _n)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=d0(a,y.value,x,b,E),tt!==null&&tt instanceof fi&&(tt.labeledLink=z);return z}Go.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof _n||(b=E.copyNodeData(b),je(b)&&(E.xf(b),x=y.Lc(b)))}else fh(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof _n||(E=y.copyNodeData(b)),je(E)&&(x.data=E)));return x},fe.Object.defineProperties(Go.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}}}),Go.prototype.updateAllRelationshipsFromData=Go.prototype.rp,Go.prototype.findLinksByExample=Go.prototype.ls,Go.prototype.findNodesByExample=Go.prototype.ms,Go.prototype.findLinkForData=Go.prototype.Kc,Go.prototype.findNodeForData=Go.prototype.ii,Go.prototype.findPartForData=Go.prototype.Lc,Go.prototype.findNodeForKey=Go.prototype.Vb,Go.prototype.removeModeledPart=Go.prototype.ip,Go.prototype.removeModeledParts=Go.prototype.Gs,Go.prototype.rebuildParts=Go.prototype.Wd;var f1=!1,g1=!1,p1=!1;Go.className="PartManager";function $s(a){Go.apply(this,arguments)}Ze($s,Go),$s.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},$s.prototype.addModeledParts=function(a){for(Go.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Og(a.value);jc(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),jc(a.diagram,!1)}function v1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){fh(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(E.fromPortId=z),z=Hu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof fi&&(E.fromNode=z)),z=p0(x,y,!1),z!==""&&(E.toPortId=z),z=Hu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof fi&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}$s.prototype.removeAllModeledParts=function(){var a=this.diagram.model;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(a,y){y.forEach(function(x){a.ip(x)})}$s.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},$s.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},$s.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},$s.prototype.findPartForKey=function(a){var y=Go.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},$s.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},$s.prototype.doModelChanged=function(a){var y=this;if(Go.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Zn){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var ot=this.Vb(a.newValue);rt.toNode=ot}}else if(E==="linkFromPortId"){var lt=this.Kc(a.object);if(lt!==null){var ut=a.newValue;typeof ut=="string"&&(lt.fromPortId=ut)}}else if(E==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(E==="nodeGroupKey"){var Ct=this.Lc(a.object);if(Ct!==null){var Et=a.newValue;if(Et!==void 0){var Dt=this.Vb(Et);Dt instanceof Pr?Ct.containingGroup=Dt:Ct.containingGroup=null}else Ct.containingGroup=null}}else if(E==="linkLabelKeys"){var Qt=this.Kc(a.object);if(Qt!==null){var Wt=a.oldValue,ae=a.newValue;Array.isArray(Wt)&&Wt.forEach(function(kn){0<=ae.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(ae)&&ae.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=Qt)})}}else if(E==="linkCategory"){var le=this.Kc(a.object),ge=a.newValue;le!==null&&typeof ge=="string"&&(le.category=ge)}else E==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(b===Qn){var Ee=a.newValue;if(E==="linkDataArray"&&typeof Ee=="object"&&Ee!==null)v1(this,Ee);else if(E==="linkLabelKeys"&&Jc(Ee)){var Xe=this.Kc(a.object),ci=this.Vb(Ee);Xe!==null&&ci!==null&&(ci.labeledLink=Xe)}x.isModified=!0}else if(b===di){var Ei=a.oldValue;if(E==="linkDataArray"&&typeof Ei=="object"&&Ei!==null)this.ip(Ei);else if(E==="linkLabelKeys"&&Jc(Ei)){var Si=this.Vb(Ei);Si!==null&&(Si.labeledLink=null)}x.isModified=!0}}else if(b===Zn){var $n=a.propertyName;a.object!==x.model||$n!=="linkFromKeyProperty"&&$n!=="linkToKeyProperty"&&$n!=="linkFromPortIdProperty"&&$n!=="linkToPortIdProperty"&&$n!=="linkLabelKeysProperty"&&$n!=="nodeIsGroupProperty"&&$n!=="nodeGroupKeyProperty"&&$n!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},$s.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new An,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){F1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&k1(y,z,!1)})},$s.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof _n){var E=Hu(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Hu(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new An().addAll(y);var tt=new An;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof Mo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Pr)&&(a.containingGroup=y)}}},$s.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var tt=b.value;y.lb(tt)?E instanceof Pr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof fi&&(Hu(y,tt,!0)===x&&(z.link.fromNode=E),Hu(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(ot){return ot===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}Yh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Pr&&(E.containingGroup=a))}},$s.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof fi){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Vh(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Vh(y,x,b.data)),a instanceof Pr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Vh(y,x,b)}}},$s.prototype.copyPartData=function(a,y){var x=Go.prototype.copyPartData.call(this,a,y);if(a instanceof _n)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},$s.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof _n){if(fh(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof fi&&(fh(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Wg(z,b,z.wa(a.data),!0),Zg(z,b,rt,!0),x!==null&&Wg(z,b,z.wa(x.data),!1),Zg(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof fi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},$s.prototype.findLinkForKey=$s.prototype.findLinkForKey,$s.prototype.findPartForKey=$s.prototype.findPartForKey,$s.prototype.removeAllModeledParts=$s.prototype.removeAllModeledParts,$s.prototype.addModeledParts=$s.prototype.addModeledParts,$s.prototype.addAllModeledParts=$s.prototype.addAllModeledParts,$s.className="GraphLinksPartManager";function _u(){Go.apply(this,arguments),this.Sg=null}Ze(_u,Go);function c0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!En(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(fh(b),b=b.copy(),b!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}_u.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},_u.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},_u.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},_u.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},_u.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},_u.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},_u.prototype.doModelChanged=function(a){if(Go.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Zn){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:c0(this,z,tt)}}else if(b==="parentLinkCategory"){var ot=this.ii(a.object),lt=a.newValue;if(ot!==null&&typeof lt=="string"){var ut=ot.kh();ut!==null&&(ut.category=lt)}}y.isModified=!0}}else if(x===Zn){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},_u.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof fi&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:c0(this,y,a):b!==null&&Gd(x,b,!1)))}}},_u.prototype.updateDataBindings=function(a,y){Go.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},_u.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof fi&&y.mh(z)===x&&c0(this,E,this.ii(z))}Yh(y,x)}a=y.mh(a),a!==void 0&&E instanceof fi&&(a=this.Vb(a),c0(this,a,E))}},_u.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof fi){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(di,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Vh(y,x,E)}},_u.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},_u.prototype.findLinkForKey=_u.prototype.findLinkForKey,_u.className="TreePartManager";function Di(a,y){this.kl=new An,this.il=new An,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Or(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ci,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 Ci,this.Lt=new wn,this.Wg=!1,this.o=null,this.undoManager=new ui,a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Di.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},Di.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Di.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Di.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Wn(E)}}return y},Di.prototype.xA=function(a){a.change!==mn&&Ce("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ri?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Di.prototype.Qv=function(a,y){var x=this,b=!1,E=new An,z=new An,tt=new An,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===Qn?E.add(ft.newValue):ft.change===di&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==Zn||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(vt){x.lb(vt)&&z.add(vt)}):ft.object instanceof Di||x.ri()&&x.Jc(ft.object)||w1(x,ft.object).each(function(vt){z.add(vt)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var lt=this.kl;lt.clear(),tt.each(function(ft){lt.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<ot.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=ot.Fa():ut.insertedNodeKeys=ot.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<lt.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=lt.Fa():ut.removedNodeKeys=lt.Fa()),lt.clear(),ot.clear(),ut},Di.prototype.cloneDeep=function(a){return Hg(this,a,!0)};function Hg(a,y,x,b,E,z){function tt(ft,vt){rt?(ft.__gohashid===void 0&&z.push(ft),b.set(ft,vt)):(ft=Fa++,b.set(ft,vt),E.set(ft,y))}if(!je(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new Ci),rt){var ot=b.get(y);if(ot)return ot}else for(E||(E=new Ci),ot=E.iterator;ot.next();){var lt=ot.key;if(ot.value===y&&(lt=b.get(lt)))return lt}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Hg(a,y[ut],!1,b,E,z))}else if(y instanceof Vt||y instanceof ei||y instanceof ln||y instanceof Zi||y instanceof Fi)ot=y.copy(),tt(y,ot);else{if(y instanceof Zo||y instanceof ni||y instanceof Oe)return y;if(y instanceof wn)ot=new wn().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof An)ot=new An().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Ci)ot=new Ci().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Date)ot=new Date(y.getTime()),tt(y,ot);else if(y instanceof RegExp)ot=new RegExp(y),tt(y,ot),ot.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ot=y.copy(),tt(y,ot);else for(ut in ot={},tt(y,ot),y)ut!=="__gohashid"&&(ot[ut]=Hg(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Lt=Di.prototype,Lt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Lt.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},Lt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function S1(a,y){y=y.modelData,je(y)&&(a.dm(y),a.modelData=y)}Lt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!P1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Xc(this,this.nodeDataArray,!0)},Lt.kv=function(a){S1(this,a),a=a.nodeDataArray,yn(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var tt=b.get(E);tt===null?(tt=new An,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new Ci,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Zn?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Qn||z===di)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function w1(a,y){for(var x=new An,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return E.add(b),!0;if(f0(a,y,tt,b,E))return!0}else if(je(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(f0(a,y,tt,b,E))return!0}return!1}Lt.Pv=function(a,y){var x=this,b=!1,E=new An,z=new An,tt=new An,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Qn?E.add(ut.newValue):ut.change===di&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==Zn||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Di||x.ri()&&x.Jc(ut.object)||w1(x,ut.object).each(function(ft){z.add(ft)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(x.wa(ut)),y&&z.add(ut)}),a="",b&&(a+=`,
|
|
|
"modelData": `+uy(this,this.modelData)),0<ot.count&&(a+=(y?this.Yv:this.Wv)+Xc(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+Xc(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Wv:this.Yv)+Xc(this,lt.Fa(),!0)),lt.clear(),ot.clear(),a},Lt.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)&&Ce("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Ci;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=b.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var ot in E)ot==="__gohashid"||ot===this.nodeKeyProperty||this.Wj()&&ot===this.nodeIsGroupProperty||this.setDataProperty(z,ot,E[ot]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ot=0;ot<x;ot++)y=this.hc(a[ot]),y!==null&&this.cm(y)},Lt.$x=function(a,y){a.change!==mn&&Ce("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ri?(y===void 0&&(y=Hp(this,this)),x1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Lt.yA=function(a,y){return this.$x(a,y)},Lt.np=function(a){return a===void 0&&(a=Hp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Lt.toJSON=function(a){return this.np(a)},Lt.Zw=function(a){var y=null;if(typeof a=="string")try{y=ue.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Ce("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ce("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Lt.Ky=function(a){return this.Zw(a)},Di.constructGraphLinksModel=function(){return new Di},Lt=Di.prototype,Lt.dm=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(je(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Ce("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(je(a)){for(y in a)if(x=a[y],je(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new wn,b=0;b<x.length/2;b++)E.add(new Vt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},Lt.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()):yn(a)?Xc(this,a):je(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Xc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Vi;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Gl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Vt)y={class:"go.Point",x:Gl(x.x),y:Gl(x.y)};else if(x instanceof ei)y={class:"go.Size",width:Gl(x.width),height:Gl(x.height)};else if(x instanceof ln)y={class:"go.Rect",x:Gl(x.x),y:Gl(x.y),width:Gl(x.width),height:Gl(x.height)};else if(x instanceof Zi)y={class:"go.Margin",top:Gl(x.top),right:Gl(x.right),bottom:Gl(x.bottom),left:Gl(x.left)};else if(x instanceof Fi)x.sb()?y={class:"go.Spot",x:Gl(x.x),y:Gl(x.y),offsetX:Gl(x.offsetX),offsetY:Gl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Zo){if(y={class:"go.Brush",type:x.type.name},x.type===mc?y.color=x.color:(x.type===Ud||x.type===$u)&&(y.start=x.start,y.end=x.end,x.type===$u&&(x.startRadius!==0&&(y.startRadius=Gl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Gl(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof ni?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Gl(x.startX)),x.startY!==0&&(y.startY=Gl(x.startY)),x.endX!==0&&(y.endX=Gl(x.endX)),x.endY!==0&&(y.endY=Gl(x.endY)),x.spot1.D(Es)||(y.spot1=x.spot1),x.spot2.D(ml)||(y.spot2=x.spot2),x.type===ni.o&&(y.path=ni.ia(x))):x instanceof Oe&&(y={class:"go.EnumValue",classType:Hp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=ds(y,E);if(!P1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof wn){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function Kl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Vt(Kl(a.x),Kl(a.y));else if(y==="Size")x=new ei(Kl(a.width),Kl(a.height));else if(y==="Rect")x=new ln(Kl(a.x),Kl(a.y),Kl(a.width),Kl(a.height));else if(y==="Margin")x=new Zi(Kl(a.top),Kl(a.right),Kl(a.bottom),Kl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ic(a.enum):x=new Fi(Kl(a.x),Kl(a.y),Kl(a.offsetX),Kl(a.offsetY));else if(y==="Brush"){if(x=new Zo,x.type=xi(Zo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Fi&&(x.start=a.start),a.end instanceof Fi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Kl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Kl(a.endRadius)),a=a.colorStops,je(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ni.parse(a.path):x=new ni,x.type=xi(ni,a.type),typeof a.startX=="number"&&(x.startX=Kl(a.startX)),typeof a.startY=="number"&&(x.startY=Kl(a.startY)),typeof a.endX=="number"&&(x.endX=Kl(a.endX)),typeof a.endY=="number"&&(x.endY=Kl(a.endY)),a.spot1 instanceof Fi&&(x.spot1=a.spot1),a.spot2 instanceof Fi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=xi(b,a.name)));return x}Lt.Pe=function(a){return this.Lt.add(a),this},Lt.ik=function(a){this.Lt.remove(a)},Lt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Lt.cb=function(a,y,x,b,E,z,tt){Ts(this,"",a,y,x,b,E,z,tt)},Lt.g=function(a,y,x,b,E){Ts(this,"",Zn,a,this,y,x,b,E)},Lt.Fs=function(a,y,x,b,E,z){Ts(this,"",Zn,y,a,x,b,E,z)};function Ts(a,y,x,b,E,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var lt=new dn;lt.model=a,lt.change=x,lt.modelChange=y,lt.propertyName=b,lt.object=E,lt.oldValue=z,lt.oldParam=rt,lt.newValue=tt,lt.newParam=ot,a.ds(lt)}Di.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Zn){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Ea(x,b,E)}else a.change===Qn?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,je(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&an(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=ds(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.newValue,y?gn(b,x):an(b,x,a))):Ce("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===di?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,je(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&an(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=ds(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.oldValue,y?an(b,x,a):gn(b,x))):Ce("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==mn&&Ce("unknown ChangedEvent: "+a.toString())},Di.prototype.Ea=function(a){return this.undoManager.Ea(a)},Di.prototype.eb=function(a){return this.undoManager.eb(a)},Di.prototype.Kf=function(){return this.undoManager.Kf()},Di.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Lt=Di.prototype,Lt.La=function(a,y){y===void 0&&(y=""),Ts(this,"SourceChanged",mn,y,a,null,null)},Lt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;Ce("Key value for node data "+a+" is not a number or a string: "+y)}}},Lt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ds(a,x);b!==y&&this.hc(y)===null&&(Ea(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ts(this,"nodeKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ea(a,x,y)}};function Jc(a){return typeof a=="number"||typeof a=="string"}Lt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Lt.hc=function(a){return a===null&&Ce("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.kb.I(a):null},Lt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Ea(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ea(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ea(a,y,x)}}}}},Lt.xf=function(a){a!==null&&(Qo(a),this.lb(a)||C1(this,a,!0))};function C1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Ce("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,an(a.Tc,b,y)),Ts(a,"nodeDataArray",Qn,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Lt.Fy=function(a){if(yn(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)},Lt.cm=function(a){a!==null&&b1(this,a,!0)};function b1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;gn(a.Tc,b)}Ts(a,"nodeDataArray",di,"nodeDataArray",a,y,null,b,null),a.qp(y)}Lt.nA=function(a){if(yn(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)},Lt.$z=function(a){if(a!==this.nodeDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Lt.jp=function(a,y){y!==void 0&&(a=jp(this,a),a instanceof An&&this.Vf.add(y,a))},Lt.Lv=function(){},Lt.fm=function(){},Lt.em=function(){},Lt.qp=function(){};function Vh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new An,a.Vf.add(y,b)),b.add(x)}}function Yh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof An&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof An?a:null)}Lt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Di.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),je(a)&&Or(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=g0(a,y[x],a.copiesArrayObjects);b.push(E)}return Or(b),b}if(x&&je(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=ds(y,b),tt=Hp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Di||z instanceof ui||z instanceof Ri||z instanceof dn||(z=g0(a,z,!1)),Ea(x,b,z)}return Or(x),x}return y instanceof Vt||y instanceof ei||y instanceof ln||y instanceof Fi||y instanceof Zi?y.copy():y}Di.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!E1&&a instanceof Me&&(E1=!0,Bi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Bi(" Is that really your intent?"));var b=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},Lt=Di.prototype,Lt.set=function(a,y,x){this.setDataProperty(a,y,x)},Lt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Lt.Ay=function(a,y){this.ts(a,-1,y)},Lt.ts=function(a,y,x){0>y&&(y=a.length),an(a,y,x),Ts(this,"",Qn,"",a,null,x,null,y)},Lt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ce("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];gn(a,y),Ts(this,"",di,"",a,x,null,y,null)},Lt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ds(a,y),y===void 0))return"";if(typeof y=="string")return y;Ce("getCategoryForNodeData found a non-string category for "+a+": "+y)},Lt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"nodeCategory",Zn,x,a,b,y))}else Ea(a,x,y)}},Lt.lm=function(a,y){this.jm(y,this.Ro(a))},Lt.Tl=function(){return!1},Lt.Wj=function(){return!1},Lt.ri=function(){return!1},Lt.xs=function(){return!1},Lt.Xj=function(){return!1};function hy(){return new Di}function Hp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Hp(a,y.constructor);return typeof y}function dy(a){return Ah[a]?Ah[a]:ue.go!==void 0&&ue.go[a]?ue.go[a]:null}function ds(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Ea(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}fe.Object.defineProperties(Di.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===""&&Ce("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ce("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];je(E)||Ce("Model.nodeDataArray must only contain Objects, not: "+E),Qo(E)}for(this.Tc=a,b=new wn,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Ts(this,"nodeDataArray",Zn,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Di.prototype.setCategoryForNodeData=Di.prototype.jm,Di.prototype.getCategoryForNodeData=Di.prototype.Ro,Di.prototype.removeArrayItem=Di.prototype.ov,Di.prototype.insertArrayItem=Di.prototype.ts,Di.prototype.addArrayItem=Di.prototype.Ay,Di.prototype.assignAllDataProperties=Di.prototype.Do,Di.prototype.set=Di.prototype.set,Di.prototype.clearUnresolvedReferences=Di.prototype.Qy,Di.prototype.mergeNodeDataArray=Di.prototype.$z,Di.prototype.removeNodeDataCollection=Di.prototype.nA,Di.prototype.removeNodeData=Di.prototype.cm,Di.prototype.addNodeDataCollection=Di.prototype.Fy,Di.prototype.addNodeData=Di.prototype.xf,Di.prototype.makeNodeDataKeyUnique=Di.prototype.$u,Di.prototype.findNodeDataForKey=Di.prototype.hc,Di.prototype.containsNodeData=Di.prototype.lb,Di.prototype.setKeyForNodeData=Di.prototype.km,Di.prototype.getKeyForNodeData=Di.prototype.wa,Di.prototype.updateTargetBindings=Di.prototype.La,Di.prototype.commit=Di.prototype.commit,Di.prototype.rollbackTransaction=Di.prototype.Kf,Di.prototype.commitTransaction=Di.prototype.eb,Di.prototype.startTransaction=Di.prototype.Ea,Di.prototype.raiseDataChanged=Di.prototype.Fs,Di.prototype.raiseChanged=Di.prototype.g,Di.prototype.raiseChangedEvent=Di.prototype.cb,Di.prototype.removeChangedListener=Di.prototype.ik,Di.prototype.addChangedListener=Di.prototype.Pe,Di.prototype.writeJsonValue=Di.prototype.sm,Di.prototype.replaceJsonObjects=Di.prototype.dm,Di.prototype.applyIncrementalJSON=Di.prototype.Ky,Di.prototype.applyIncrementalJson=Di.prototype.Zw,Di.prototype.toJSON=Di.prototype.toJSON,Di.prototype.toJson=Di.prototype.np,Di.prototype.toIncrementalJSON=Di.prototype.yA,Di.prototype.toIncrementalJson=Di.prototype.$x,Di.prototype.toIncrementalData=Di.prototype.xA,Di.prototype.clear=Di.prototype.clear;var E1=!1,Ah={};Di.className="Model",Di.fromJSON=Di.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ue.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Ce("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=ue[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Di?y=a:Ce("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Di.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Di.safePropertyValue=ds,Di.safePropertySet=Ea,Ah.Brush=Zo,Ah.ChangedEvent=dn,Ah.Geometry=ni,Ah.Margin=Zi,Ah.Panel=Yn,Ah.Point=Vt,Ah.Rect=ln,Ah.Size=ei,Ah.Spot=Fi,Ah.Transaction=Ri,Ah.UndoManager=ui;function ps(a,y,x,b){Or(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=M1,this.wk=null):(this.el=Wp,this.wk=b),this.st=new An}ps.prototype.copy=function(){var a=new ps;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},Lt=ps.prototype,Lt.qb=function(a){a.classType===ps&&(this.mode=a)},Lt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.Kx=function(a){return a===void 0&&(a=null),this.mode=Wp,this.backConverter=a,this},Lt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Lt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function L1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Lt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Bi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=ds(y,b)),z!==void 0)if(E===null)x!==""&&Ea(a,x,z);else try{if(x!==""){var tt=E(z,a);Ea(a,x,tt)}else E(z,a)}catch(rt){}}}},Lt.sp=function(a,y,x,b){if(this.el===Wp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,tt=a;if(E!==""&&(tt=ds(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,ot=rt!==null?rt.model:null;if(z===null){if(x!=="")ot!==null?ot.setDataProperty(y,x,tt):Ea(y,x,tt);else if(ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var lt=b.itemIndex,ut=b.panel.itemArray;ot.ov(ut,lt),ot.ts(ut,lt,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):Ea(y,x,ft)}else{var vt=z(tt,y,ot);if(vt!==void 0&&ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ct=b.itemIndex,Et=b.panel.itemArray;ot.ov(Et,Ct),ot.ts(Et,Ct,vt)}}}catch(Dt){}}finally{this.st.remove(a)}}}},fe.Object.defineProperties(ps.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Rn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Rn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Rn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Rn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Rn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Rn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Rn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Rn(this),this.el=a}}}),ps.prototype.updateSource=ps.prototype.sp,ps.prototype.updateTarget=ps.prototype.Mv,ps.prototype.ofModel=ps.prototype.dA,ps.prototype.ofObject=ps.prototype.cp,ps.prototype.makeTwoWay=ps.prototype.Kx;var Tx="Binding",M1=new Oe(ps,"OneWay",1),Wp=new Oe(ps,"TwoWay",2);ps.className="Binding",ps.parseEnum=function(a,y){return function(x){return x=xi(a,x),x===null?y:x}},ps.toString=Wn,ps.OneWay=M1,ps.TwoWay=Wp;function po(a,y,x){Di.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new An,this.wb=new Ci,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&&(yn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Ze(po,Di),po.constructGraphLinksModel=Di.constructGraphLinksModel,po.prototype.cloneProtected=function(a){Di.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},Lt=po.prototype,Lt.clear=function(){Di.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Lt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Wn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Hu(this,E,!0)+"-->"+Hu(this,E,!1)}return y},Lt.Qv=function(a,y){this.linkKeyProperty===""&&Ce("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Di.prototype.Qv.call(this,a,y),b=this,E=new An,z=new An,tt=new An,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Qn?E.add(ut.newValue):ut.change===di&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Di||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<ot.count&&(x===null&&(x={}),y?x.removedLinkKeys=ot.Fa():x.insertedLinkKeys=ot.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<lt.count&&(x===null&&(x={}),y?x.insertedLinkKeys=lt.Fa():x.removedLinkKeys=lt.Fa()),lt.clear(),ot.clear(),x},Lt.rm=function(){var a=Di.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},Lt.gp=function(a){Di.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)},Lt.Rv=function(){var a=Di.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Xc(this,this.linkDataArray,!0);return a+y},Lt.kv=function(a){Di.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function A1(a,y){for(var x=new An,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}Lt.Pv=function(a,y){this.linkKeyProperty===""&&Ce("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Di.prototype.Pv.call(this,a,y),b=this,E=new An,z=new An,tt=new An,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Qn?E.add(ut.newValue):ut.change===di&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Di||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+Xc(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+Xc(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Vv:this.Xv)+Xc(this,lt.Fa(),!0)),lt.clear(),ot.clear(),a},Lt.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)&&Ce("applyIncrementalJson cannot change Model properties"),Di.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);N1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},po.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Zn){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Ea(x,b,E);return}}else if(a.change===Qn){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,je(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===di){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,je(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Di.prototype.changeState.call(this,a,y)}},Lt=po.prototype,Lt.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),Ea(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Lt.yx=function(a){return Hu(this,a,!0)},Lt.wv=function(a,y){Wg(this,a,y,!0)},Lt.Bx=function(a){return Hu(this,a,!1)},Lt.Bv=function(a,y){Wg(this,a,y,!1)};function Hu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ds(y,a),a!==void 0))){if(Jc(a))return a;Ce((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Wg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=ds(y,E);z!==x&&(Yh(a,z,y),Ea(y,E,x),a.hc(x)===null&&Vh(a,x,y),Ts(a,b?"linkFromKey":"linkToKey",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ea(y,E,x)}}Lt.zx=function(a){return p0(this,a,!0)},Lt.xv=function(a,y){Zg(this,a,y,!0)},Lt.Cx=function(a){return p0(this,a,!1)},Lt.Cv=function(a,y){Zg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ds(y,a),y===void 0?"":y)}function Zg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ds(y,E);z===void 0&&(z=""),z!==x&&(Ea(y,E,x),Ts(a,b?"linkFromPortId":"linkToPortId",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ea(y,E,x)}}Lt.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ds(a,y),a===void 0?m0:a)},Lt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ds(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Yh(this,b[z],a);for(Ea(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&Vh(this,tt,a)}Ts(this,"linkLabelKeys",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ea(a,x,y)}},Lt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ds(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Vh(this,y,a),Ts(this,"linkLabelKeys",Qn,x,a,null,y,null,E)))}else Ce(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Lt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ds(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Yh(this,y,a),Ts(this,"linkLabelKeys",di,x,a,y,null,E,null)))}else b!==void 0&&Ce(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Lt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;Ce("Key value for link data "+a+" is not a number or a string: "+y)}}},Lt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ds(a,x);b!==y&&this.jh(y)===null&&(Ea(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ts(this,"linkKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},Lt.jh=function(a){return a===null&&Ce("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.wb.I(a):null},Lt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Ea(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ea(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ea(a,y,x)}}}}},Lt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Lt.fi=function(a){a!==null&&(Qo(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Ce("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Ts(a,"linkDataArray",Qn,"linkDataArray",a,null,y,null,b),cy(a,y)}Lt.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)},Lt.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Ts(a,"linkDataArray",di,"linkDataArray",a,y,null,b,null),x=Hu(a,y,!0),Yh(a,x,y),x=Hu(a,y,!1),Yh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Yh(a,x,y)}Lt.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)},Lt.Zz=function(a){if(this.linkKeyProperty===""&&Ce("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),N1(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=Hu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y),x=Hu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&Vh(a,x,y)}Lt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),je(a)&&(Or(a),this.lf!==""&&Ea(a,this.lf,void 0),this.mf!==""&&Ea(a,this.mf,void 0),this.je!==""&&Ea(a,this.je,[])),a},Lt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ds(a,y)},Lt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;Ce("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ds(a,x);b!==y&&(Yh(this,b,a),Ea(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ts(this,"nodeGroupKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},po.prototype.copyNodeData=function(a){return a===null?null:(a=Di.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ds(a,this.Je)===void 0||Ea(a,this.Je,void 0),a)},po.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Wg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Wg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Zg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Zg(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},Lt=po.prototype,Lt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&ds(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Lt.jp=function(a,y){Di.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Hu(this,b,!0)===E){var tt=this.lf;Ea(b,tt,z),Ts(this,"linkFromKey",Zn,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(Hu(this,b,!1)===E&&(tt=this.mf,Ea(b,tt,z),Ts(this,"linkToKey",Zn,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var rt=tt.length,ot=this.je,lt=0;lt<rt;lt++)tt[lt]===E&&(tt[lt]=z,Ts(this,"linkLabelKeys",Qn,ot,b,E,z,lt,lt))}},Lt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ea(a,b,x),Ts(this,"nodeGroupKey",Zn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Lt.Lv=function(){Di.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Lt.fm=function(a){Di.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=sn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ts(this,"nodeGroupKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Hu(this,b,!0)===a&&(E=this.lf,Ts(this,"linkFromKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Hu(this,b,!1)===a&&(E=this.mf,Ts(this,"linkToKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,tt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(Ts(this,"linkLabelKeys",Qn,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)Yh(this,a,x[y]);bn(x)}},Lt.em=function(a){Di.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Vh(this,y,a)},Lt.qp=function(a){Di.prototype.qp.call(this,a);var y=this.lh(a);Yh(this,y,a)},Lt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ds(a,y),y===void 0))return"";if(typeof y=="string")return y;Ce("getCategoryForLinkData found a non-string category for "+a+": "+y)},po.prototype.getLinkCategoryForData=function(a){return this.ps(a)},po.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"linkCategory",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},po.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Lt=po.prototype,Lt.lm=function(a,y){Di.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Lt.Wj=function(){return!0},Lt.ri=function(){return!0},Lt.xs=function(){return!0},Lt.Xj=function(){return!0},fe.Object.defineProperties(po.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];je(E)||Ce("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Qo(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new wn,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new An,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ts(this,"linkDataArray",Zn,"linkDataArray",this,y,a),y=0;y<x;y++)cy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),po.prototype.setCategoryForLinkData=po.prototype.lp,po.prototype.getCategoryForLinkData=po.prototype.ps,po.prototype.assignAllDataProperties=po.prototype.Do,po.prototype.setGroupKeyForNodeData=po.prototype.mp,po.prototype.getGroupKeyForNodeData=po.prototype.lh,po.prototype.isGroupForNodeData=po.prototype.Yu,po.prototype.copyLinkData=po.prototype.Jo,po.prototype.mergeLinkDataArray=po.prototype.Zz,po.prototype.removeLinkDataCollection=po.prototype.lA,po.prototype.removeLinkData=po.prototype.bm,po.prototype.addLinkDataCollection=po.prototype.Ey,po.prototype.addLinkData=po.prototype.fi,po.prototype.containsLinkData=po.prototype.Jc,po.prototype.makeLinkDataKeyUnique=po.prototype.Bs,po.prototype.findLinkDataForKey=po.prototype.jh,po.prototype.setKeyForLinkData=po.prototype.Ks,po.prototype.getKeyForLinkData=po.prototype.Ac,po.prototype.removeLabelKeyForLinkData=po.prototype.Qx,po.prototype.addLabelKeyForLinkData=po.prototype.Bu,po.prototype.setLabelKeysForLinkData=po.prototype.Ls,po.prototype.getLabelKeysForLinkData=po.prototype.Ef,po.prototype.setToPortIdForLinkData=po.prototype.Cv,po.prototype.getToPortIdForLinkData=po.prototype.Cx,po.prototype.setFromPortIdForLinkData=po.prototype.xv,po.prototype.getFromPortIdForLinkData=po.prototype.zx,po.prototype.setToKeyForLinkData=po.prototype.Bv,po.prototype.getToKeyForLinkData=po.prototype.Bx,po.prototype.setFromKeyForLinkData=po.prototype.wv,po.prototype.getFromKeyForLinkData=po.prototype.yx,po.prototype.clear=po.prototype.clear;var m0=Object.freeze([]);po.className="GraphLinksModel",Ah.GraphLinksModel=po,Di.constructGraphLinksModel=Di.constructGraphLinksModel=function(){return new po},Di.initDiagramModel=hy=function(){return new po};function Vl(a,y){Di.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ze(Vl,Di),Vl.constructGraphLinksModel=Di.constructGraphLinksModel,Vl.prototype.cloneProtected=function(a){Di.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Lt=Vl.prototype,Lt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Wn(E)}}return y},Lt.rm=function(){var a=Di.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Lt.gp=function(a){Di.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Lt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ce("applyIncrementalJson cannot change Model properties"),Di.prototype.fp.call(this,a)},Lt.Vl=function(a){return a},Lt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;Ce("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=ds(a,x);b!==y&&(Yh(this,b,a),Ea(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ts(this,"nodeParentKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},Lt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ds(a,y),y===void 0)?"":typeof y=="string"?y:(Ce("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Vl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Vl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"parentLinkCategory",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},Vl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Vl.prototype.copyNodeData=function(a){return a===null?null:(a=Di.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ds(a,this.Ke)===void 0||Ea(a,this.Ke,void 0),a)},Vl.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},Lt=Vl.prototype,Lt.jp=function(a,y){Di.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Lt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ea(a,b,x),Ts(this,"nodeParentKey",Zn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Lt.fm=function(a){Di.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=sn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ts(this,"nodeParentKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Yh(this,a,x[y]);bn(x)}},Lt.em=function(a){Di.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Vh(this,y,a)},Lt.qp=function(a){Di.prototype.qp.call(this,a);var y=this.mh(a);Yh(this,y,a)},Lt.lm=function(a,y){Di.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Lt.Tl=function(){return!0},Lt.xs=function(){return!0},fe.Object.defineProperties(Vl.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"}}}),Vl.prototype.setParentLinkCategoryForNodeData=Vl.prototype.Ms,Vl.prototype.getParentLinkCategoryForNodeData=Vl.prototype.ss,Vl.prototype.setParentKeyForNodeData=Vl.prototype.qe,Vl.prototype.getParentKeyForNodeData=Vl.prototype.mh,Vl.className="TreeModel",Ah.TreeModel=Vl;function Za(a){Aa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=kh,this.Ti=0,this.Zv=new Vt,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=kh,this.K=Yl,this.nd=Kg,this.hd=ry,this.tf=6,this.Nn=C0,a&&Object.assign(this,a)}Ze(Za,Aa),Za.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Za.prototype.qb=function(a){a.classType===Za?a===w0||a===P0||a===S0||a===x0||a===Kg?this.sorting=a:a===Tf||a===Gg||a===Yl||a===$c?this.direction=a:a===bc||a===Qc||a===kh||a===Fh?this.arrangement=a:(a===og||a===C0)&&(this.nodeDiameterFormula=a):Aa.prototype.qb.call(this,a)},Za.prototype.createNetwork=function(){return new Vg(this)},Za.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new wn;y.addAll(a.iterator),a=new wn;var x=new wn,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360<vt||1>vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===Fh&&ot===og?rt=kh:rt===Fh&&ot!==og&&(rt=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Kg){for(ot=0;!(ot>=b.length)&&(a.add(b.M(ot)),!(ot+1>=b.length));ot+=2)x.add(b.M(ot+1));this.direction===Tf?(this.arrangement===Fh&&a.reverse(),b=new wn,b.addAll(a),b.addAll(x)):(this.arrangement===Fh&&x.reverse(),b=new wn,b.addAll(x),b.addAll(a))}ot=b.length;for(var Ct=z=E=0;Ct<b.length;Ct++){var Et=ft+vt*z*(this.direction===Yl?1:-1)/ot,Dt=b.M(Ct).diameter;isNaN(Dt)&&(Dt=qc(b.M(Ct),Et)),360>vt&&(Ct===0||Ct===b.length-1)&&(Dt/=2),E+=Dt,z++}if(isNaN(lt)||rt===Fh){if(isNaN(y)&&(y=6),rt!==kh&&rt!==Fh){for(z=-1/0,tt=0;tt<ot;tt++)Ct=b.M(tt),E=b.M(tt===ot-1?0:tt+1),isNaN(Ct.diameter)&&qc(Ct,0),isNaN(E.diameter)&&qc(E,0),z=Math.max(z,(Ct.diameter+E.diameter)/2);tt=z+y,rt===bc?lt=(z+y)/(2*Math.PI/ot):lt=v0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else lt=v0(this,E+(360<=vt?ot:ot-1)*(rt!==Fh?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=lt*ut}else if(z=lt*ut,Ct=fy(this,lt,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(rt===kh||rt===Fh)&&(y=(Ct-E)/(360<=vt?ot:ot-1));else if(rt===kh||rt===Fh)Ct=(Ct-E)/(360<=vt?ot:ot-1),Ct<y?(lt=v0(this,E+y*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=lt*ut):y=Ct;else{for(tt=-1/0,E=0;E<ot;E++)Et=b.M(E),Dt=b.M(E===ot-1?0:E+1),isNaN(Et.diameter)&&qc(Et,0),isNaN(Dt.diameter)&&qc(Dt,0),tt=Math.max(tt,(Et.diameter+Dt.diameter)/2);tt+=y,E=v0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),E>lt?(lt=E,z=lt*ut):tt=Ct/(360<=vt?ot:ot-1)}if(this.kw=rt,this.lc=lt,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,lt=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,ot=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Fh)if(this.direction===Tf||this.direction===Gg){switch(tt=0,b){case Qc:tt=180*y0(this,rt,vt,lt,ot)/Math.PI;break;case kh:ot=y=0,tt=a.first(),tt!==null&&(y=qc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=qc(tt,Math.PI/2)),tt=180*y0(this,rt,vt,lt,ft+(y+ot)/2)/Math.PI;break;case bc:tt=ut/y.length}if(this.direction===Tf){switch(b){case Qc:Kp(this,a,lt,$c);break;case kh:Gp(this,a,lt,$c);break;case bc:Zp(this,a,ut/2,lt,$c)}switch(b){case Qc:Kp(this,x,lt+tt,Yl);break;case kh:Gp(this,x,lt+tt,Yl);break;case bc:Zp(this,x,ut/2,lt+tt,Yl)}}else{switch(b){case Qc:Kp(this,x,lt,$c);break;case kh:Gp(this,x,lt,$c);break;case bc:Zp(this,x,ut/2,lt,$c)}switch(b){case Qc:Kp(this,a,lt+tt,Yl);break;case kh:Gp(this,a,lt+tt,Yl);break;case bc:Zp(this,a,ut/2,lt+tt,Yl)}}}else switch(b){case Qc:Kp(this,y,lt,this.direction);break;case kh:Gp(this,y,lt,this.direction);break;case bc:Zp(this,y,ut,lt,this.direction);break;case Fh:T1(this,y,ut,lt,this.direction)}else T1(this,y,ut,lt-ut/2,Yl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Zp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=b+(E===Yl?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(lt)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(lt),ut.centerY=ft*Math.sin(lt),ut.actualAngle=180*lt/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);lt.centerX=E*Math.cos(x),lt.centerY=ft,lt.actualAngle=180*x/Math.PI,isNaN(lt.diameter)&&qc(lt,0),isNaN(ut.diameter)&&qc(ut,0),lt=y0(a,E,z,b===Yl?x:-x,(lt.diameter+ut.diameter)/2+tt),x+=b===Yl?lt:-lt}}function Kp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=y.M(ot);lt.centerX=E*Math.cos(x),lt.centerY=z*Math.sin(x),lt.actualAngle=180*x/Math.PI,lt=y0(a,E,z,b===Yl?x:-x,tt),x+=b===Yl?lt:-lt}}function T1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Vp,360>x){for(z=b+(E===Yl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,b,E)}else D1(a,y,x,b,E);a.Xr.commit(y)}function D1(a,y,x,b,E){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),lt=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Vt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=lt,!(ft>=ut.length-1));ft++)O1(a,ot,lt,ut,ft,E,z)||I1(a,ot,lt,ut,ft,E,z),ot=z.x,lt=z.y;if(Vt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,lt=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var vt=Math.abs(ot-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),Ct=Math.abs(lt-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(Ct)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<Ct?Ct:1>Math.abs(vt)?0:vt,ot=Math.abs(z)>Math.abs(ft)?0<z!=lt>ft:0<ft!=ot<z,(ot=E===Yl?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,D1(a,y,x,b,E))}}}function B1(a,y,x,b,E){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),lt=tt*Math.sin(b*Math.PI/180),ut=Vt.alloc(),ft=y.Fa(),vt=0;vt<ft.length&&(ft[vt].centerX=ot,ft[vt].centerY=lt,!(vt>=ft.length-1));vt++)O1(a,ot,lt,ft,vt,E,ut)||I1(a,ot,lt,ft,vt,E,ut),ot=ut.x,lt=ut.y;if(Vt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(lt,ot),ot=E===Yl?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,B1(a,y,x,b,E))}}function O1(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,lt=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Yl)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function I1(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Yl)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}Za.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Za.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Vt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Za.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),ot=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?ot=b+lt*E/z:ot=lt*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=E)return rt*a}}Za.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Kg:return this.ak(Dx(a));default:Ce("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new wn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>E&&(E=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>E&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Za.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];b=[],E=new wn;for(var ot=0,lt=0;lt<y.length;lt++){var ut=y[lt].length;if(ut===1)b.push(lt);else if(ut===0)E.add(a.M(lt));else{if(ot===0)x.push(lt);else{for(var ft=ut=1/0,vt=-1,Ct=[],Et=0;Et<x.length;Et++)0>y[x[Et]].indexOf(x[Et===x.length-1?0:Et+1])&&Ct.push(Et===x.length-1?0:Et+1);if(Ct.length===0)for(Et=0;Et<x.length;Et++)Ct.push(Et);for(Et=0;Et<Ct.length;Et++){for(var Dt=Ct[Et],Qt=y[lt],Wt=0,ae=0;ae<tt.length;ae++){var le=z[tt[ae]],ge=z[rt[ae]];if(le<ge){var Ee=le;le=ge}else Ee=ge;if(Ee<Dt&&Dt<=le)for(ge=0;ge<Qt.length;ge++){var Xe=Qt[ge];0>x.indexOf(Xe)||Ee<z[Xe]&&z[Xe]<le||Ee===z[Xe]||le===z[Xe]||Wt++}else for(ge=0;ge<Qt.length;ge++)Xe=Qt[ge],0>x.indexOf(Xe)||Ee<z[Xe]&&z[Xe]<le&&Ee!==z[Xe]&&le!==z[Xe]&&Wt++}for(Qt=Wt,ae=Wt=0;ae<y[lt].length;ae++)Ee=x.indexOf(y[lt][ae]),0<=Ee&&(Ee=Math.abs(Dt-(Ee>=Dt?Ee+1:Ee)),Wt+=Ee<x.length+1-Ee?Ee:x.length+1-Ee);for(ae=0;ae<tt.length;ae++)Ee=z[tt[ae]],le=z[rt[ae]],Ee>=Dt&&Ee++,le>=Dt&&le++,Ee>le&&(ge=le,le=Ee,Ee=ge),le-Ee<(x.length+2)/2==(Ee<Dt&&Dt<=le)&&Wt++;(Qt<ut||Qt===ut&&Wt<ft)&&(ut=Qt,ft=Wt,vt=Dt)}for(x.splice(vt,0,lt),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[lt].length;ut++)ft=y[lt][ut],0<=x.indexOf(ft)&&(tt.push(lt),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(ot=b[rt],lt=y[ot][0],ut=x.indexOf(lt),0<=ut){for(vt=ft=0;vt<y[lt].length;vt++)Ct=x.indexOf(y[lt][vt]),0>Ct||Ct===ut||(Et=Ct>ut?Ct-ut:ut-Ct,ft+=Ct<ut!=Et>tt-Et?1:-1);x.splice(0>ft?ut:ut+1,0,ot),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},fe.Object.defineProperties(Za.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Fh&&a!==kh&&a!==Qc&&a!==bc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Yl&&a!==$c&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Kg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==C0&&a!==og||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var kh=new Oe(Za,"ConstantSpacing",0),Qc=new Oe(Za,"ConstantDistance",1),bc=new Oe(Za,"ConstantAngle",2),Fh=new Oe(Za,"Packed",3),Yl=new Oe(Za,"Clockwise",4),$c=new Oe(Za,"Counterclockwise",5),Tf=new Oe(Za,"BidirectionalLeft",6),Gg=new Oe(Za,"BidirectionalRight",7),S0=new Oe(Za,"Forwards",8),x0=new Oe(Za,"Reverse",9),w0=new Oe(Za,"Ascending",10),P0=new Oe(Za,"Descending",11),Kg=new Oe(Za,"Optimized",12),C0=new Oe(Za,"Pythagorean",13),og=new Oe(Za,"Circular",14);Za.className="CircularLayout",Za.ConstantSpacing=kh,Za.ConstantDistance=Qc,Za.ConstantAngle=bc,Za.Packed=Fh,Za.Clockwise=Yl,Za.Counterclockwise=$c,Za.BidirectionalLeft=Tf,Za.BidirectionalRight=Gg,Za.Forwards=S0,Za.Reverse=x0,Za.Ascending=w0,Za.Descending=P0,Za.Optimized=Kg,Za.Pythagorean=C0,Za.Circular=og;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Vp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Vp.className="VertexArrangement";function Vg(a){aa.call(this,a)}Ze(Vg,aa),Vg.prototype.createVertex=function(){return new Yp(this)},Vg.prototype.createEdge=function(){return new b0(this)},Vg.className="CircularNetwork";function Yp(a){zs.call(this,a),this.u=this.Si=NaN}Ze(Yp,zs);function qc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Fh)if(x.nodeDiameterFormula===og)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===og?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}fe.Object.defineProperties(Yp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Yp.className="CircularVertex";function b0(a){Au.call(this,a)}Ze(b0,Au),b0.className="CircularEdge";function pl(a){Aa.call(this),this.ah=null,this.An=0,this.$d=new ei(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)}Ze(pl,Aa),pl.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},pl.prototype.createNetwork=function(){return new ag(this)},pl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}R1(this,0,a)}this.network=y;var tt=b=x.iterator;b=this.arrangementSpacing;var rt=tt.count,ot=!0;z=E=0;for(var lt=sn(),ut=0;ut<rt+y.vertexes.count+2;ut++)lt[ut]=null;rt=0,tt.reset();for(var ft=ln.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),ot)ot=!1,E=ft.x+ft.width/2,z=ft.y+ft.height/2,lt[0]=new Vt(ft.x+ft.width+b.width,ft.y),lt[1]=new Vt(ft.x,ft.y+ft.height+b.height),rt=2;else{var vt=z1(lt,rt,E,z,ft.width,ft.height,b),Ct=lt[vt],Et=new Vt(Ct.x+ft.width+b.width,Ct.y),Dt=new Vt(Ct.x,Ct.y+ft.height+b.height);for(vt+1<rt&<.splice(vt+1,0,null),lt[vt]=Et,lt[vt+1]=Dt,rt++,vt=Ct.x-ft.x,Ct=Ct.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Et=ut.value,Et.centerX+=vt,Et.centerY+=Ct}for(ln.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>rt?(E=vt.x+vt.width/2,z=vt.y+vt.height/2,lt[0]=new Vt(vt.x+vt.width+b.width,vt.y),lt[1]=new Vt(vt.x,vt.y+vt.height+b.height),rt=2):(ot=z1(lt,rt,E,z,vt.width,vt.height,b),ft=lt[ot],Ct=new Vt(ft.x+vt.width+b.width,ft.y),vt=new Vt(ft.x,ft.y+vt.height+b.height),ot+1<rt&<.splice(ot+1,0,null),lt[ot]=Ct,lt[ot+1]=vt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(bn(lt),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}H1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},pl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},pl.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function R1(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,R1(a,y+1,x),H1(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Bx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ox(a,y){for(var x=a.network,b=new ag(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new W1;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new wn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,tt=rt.toVertex,E.network===b&&tt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new wn,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new wn,tt.Hj=rt),rt.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ne.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var ot=E.Hj;if(ot!==null&&0<ot.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var lt=rt=0,ut=ot.count-tt;ut<ot.count;ut++){var ft=ot.M(ut),vt=null;for(z=ft.edges.iterator;z.next();){var Ct=z.value;if(Ct.Ax(ft)===E){vt=Ct;break}}vt!==null&&(lt+=vt.length,rt+=ft.width*ft.height)}z=E.centerX,ot=E.centerY,ut=E.width,ft=E.height,vt=E.focus,Ct=ut*ft,1>Ct&&(Ct=1),rt=Ne.sqrt((rt+Ct+lt*lt*4/(tt*tt))/Ct),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,E.bounds=new ln(z-vt.x-tt,ot-vt.y-rt,ut+2*tt,ft+2*rt),E.focus=new Vt(vt.x+tt,vt.y+rt)}}return a.network=b,x}function Ix(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new ln(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Vt(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=Ne.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,lt=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<lt&&(tt/=lt),lt=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(lt=y/2),1<x.count&&x.sort(function(Ct,Et){return Ct===null||Et===null||Ct===Et?0:Et.width*Et.height-Ct.width*Ct.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var vt=ot.height;ft=Ne.sqrt(ft*ft+vt*vt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+lt)*(rt%2===0?1:-1),ot.centerX=b+ut*Math.cos(ft),ot.centerY=E+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,b,E,z,tt){var rt=9e19,ot=-1,lt=0;t:for(;lt<y;lt++){var ut=a[lt],ft=ut.x-x,vt=ut.y-b;if(ft=ft*ft+vt*vt,ft<rt){for(vt=lt-1;0<=vt;vt--)if(a[vt].y>ut.y&&a[vt].x-ut.x<E+tt.width)continue t;for(vt=lt+1;vt<y;vt++)if(a[vt].x>ut.x&&a[vt].y-ut.y<z+tt.height)continue t;ot=lt,rt=ft}}return ot}pl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},pl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function j1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,Ne.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,Ne.sqrt(b*b+a*a)):tt-(b+E):b>tt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,Ne.sqrt(x*x+a*a)):a+x<y?(b=b-tt-rt,a=a+x-y,Ne.sqrt(b*b+a*a)):b-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function H1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var ot=rt.centerX;rt=rt.centerY,b=Math.min(b,ot),E=Math.max(E,ot),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(Dt,Qt){return Dt===null||Qt===null||Dt===Qt?0:Dt.centerX-Qt.centerX}):y.sort(function(Dt,Qt){return Dt===null||Qt===null||Dt===Qt?0:Dt.centerY-Qt.centerY}),x=a.Zf;var lt=b=rt=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,rt=tt.focus,ot=b.x+rt.x;var ut=b.y+rt.y;b=tt.charge*a.electricalFieldX(ot,ut),lt=tt.charge*a.electricalFieldY(ot,ut),b+=tt.mass*a.gravitationalFieldX(ot,ut),lt+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=b,tt.forceY+=lt;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){b=vt.bounds,rt=vt.focus,lt=b.x+rt.x;var Ct=b.y+rt.y;if(ot-lt>x||lt-ot>x){if(E)break}else if(ut-Ct>x||Ct-ut>x){if(!E)break}else{var Et=j1(tt,vt);1>Et?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),Et=b.random(),rt=b.random(),ot>lt?(b=Math.abs(vt.bounds.right-tt.bounds.x),b=(1+b)*Et):ot<lt?(b=Math.abs(vt.bounds.x-tt.bounds.right),b=-(1+b)*Et):(b=Math.max(vt.width,tt.width),b=(1+b)*Et-b/2),ut>Ct?(lt=Math.abs(vt.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):ot<lt?(lt=Math.abs(vt.bounds.y-tt.bounds.bottom),lt=-(1+lt)*rt):(lt=Math.max(vt.height,tt.height),lt=(1+lt)*rt-lt/2)):(rt=-(tt.charge*vt.charge)/(Et*Et),b=(lt-ot)/Et*rt,lt=(Ct-ut)/Et*rt),tt.forceX+=b,tt.forceY+=lt,vt.forceX-=b,vt.forceY-=lt}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,ot=x.focus,b=tt.x+ot.x,tt=tt.y+ot.y,ut=z.bounds,ft=z.focus,ot=ut.x+ft.x,ut=ut.y+ft.y,ft=j1(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new E0),rt=ft.random(),ft=ft.random(),b=(b>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),b=(ot-b)/ft*rt,lt=(ut-tt)/ft*rt),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}pl.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},pl.prototype.moveFixedVertex=function(){},pl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},pl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Bo,y.toSpot=Bo)}},pl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ln.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ln.free(x)}x=ln.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}ln.free(x)},pl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},pl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},pl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},pl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},pl.prototype.electricalFieldX=function(){return 0},pl.prototype.electricalFieldY=function(){return 0},pl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},pl.prototype.gravitationalFieldX=function(){return 0},pl.prototype.gravitationalFieldY=function(){return 0},pl.prototype.isFixed=function(a){return a.isFixed},fe.Object.defineProperties(pl.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&Ce('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),pl.className="ForceDirectedLayout";function W1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}W1.className="ForceDirectedSubnet";function ag(a){aa.call(this,a)}Ze(ag,aa),ag.prototype.createVertex=function(){return new Up(this)},ag.prototype.createEdge=function(){return new Xp(this)},ag.className="ForceDirectedNetwork";function Up(a){zs.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Ze(Up,zs),fe.Object.defineProperties(Up.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Up.className="ForceDirectedVertex";function Xp(a){Au.call(this,a),this.j=this.o=NaN}Ze(Xp,Au),fe.Object.defineProperties(Xp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Xp.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Ko(a){Aa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=N0,this.Qk=T0,this.bj=4,this.rk=D0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Vt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Ze(Ko,Aa),Ko.prototype.cloneProtected=function(a){Aa.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},Ko.prototype.qb=function(a){a.classType===Ko?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:Ce("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},Ko.prototype.createNetwork=function(){return new Ug(this)},Ko.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,rt=0,ot=0,lt=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;ot=rt.toNode;for(var vt=rt.fromPort;vt!==null&&!vt.Ed();)vt=vt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){lt=ft;var Ct=vt;ft=ot,vt=rt,ot=lt,rt=Ct}var Et=E.focus;lt=z.focus;var Dt=b.rev?z.bounds:E.bounds;Ct=Vt.alloc(),ut!==ft?Dt.w()&&ft.isVisible()?ft.actualBounds.w()?(Sc(ft,vt,ho,Ct),Ct.x+=ft.actualBounds.x-Dt.x,Ct.y+=ft.actualBounds.y-Dt.y):(Sc(ft,vt,ho,Ct),Ct.w()||Ct.assign(Et)):Ct.assign(Et):Dt.w()?(Sc(ft,vt,ho,Ct),Ct.w()||Ct.assign(Et)):Ct.assign(Et),ft=b.rev?E.bounds:z.bounds,ut=Vt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Sc(ot,rt,ho,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Sc(ot,rt,ho,ut),ut.w()||ut.assign(lt)):ut.assign(lt):ft.w()?(Sc(ot,rt,ho,ut),ut.w()||ut.assign(lt)):ut.assign(lt),this.K===90||this.K===270?(tt=Math.round((Ct.x-Et.x)/this.kc),ot=Ct.x,rt=Math.round((ut.x-lt.x)/this.kc),lt=ut.x):(tt=Math.round((Ct.y-Et.y)/this.kc),ot=Ct.y,rt=Math.round((ut.y-lt.y)/this.kc),lt=ut.y),Vt.free(Ct),Vt.free(ut),b.portFromColOffset=tt,b.portFromPos=ot,b.portToColOffset=rt,b.portToPos=lt}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ct=E.layer,ut=z.layer,ft=0,Dt=b.link,Dt!==null){var Qt=Dt.fromPort,Wt=Dt.toPort;if(Qt!==null&&Wt!==null){var ae=Dt.fromNode;if(vt=Dt.toNode,ae!==null&&vt!==null){var le=k0(this,!0),ge=k0(this,!1),Ee=this.setsPortSpots?le:Dt.computeSpot(!0,Qt);Et=this.setsPortSpots?ge:Dt.computeSpot(!1,Wt);var Xe=Dt.isOrthogonal;Ee.$c()&&Ee.Hf(ge)&&Et.$c()&&Et.Hf(le)?ft=0:(le=Dt.getLinkPoint(ae,Qt,Ee,!0,Xe,vt,Wt,Vt.alloc()),ge=Dt.getLinkDirection(ae,Qt,le,Ee,!0,Xe,vt,Wt),Vt.free(le),Ee.ys()||ge!==Q1(this,b,!0)?this.setsPortSpots&&ae!==null&&ae.ports.count===1&&b.rev&&(ft+=1):ft+=1,Ee=Dt.getLinkPoint(vt,Wt,Et,!1,Xe,ae,Qt,Vt.alloc()),Dt=Dt.getLinkDirection(vt,Wt,Ee,Et,!1,Xe,ae,Qt),Vt.free(Ee),Et.ys()||Dt!==Q1(this,b,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&b.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Et=a.createVertex(),Et.node=null,Et.Dj=1,Et.layer=Ct,Et.near=E,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=ot,E.portToPos=0,E=Et),Dt=1,ft&&Dt--,Ct-ut>Dt&&0<Ct){for(b.valid=!1,Et=a.createVertex(),Et.node=null,Et.Dj=2,Et.layer=Ct-1,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=vt?0:tt,E.portToColOffset=0,E.portFromPos=vt?0:ot,E.portToPos=0,E=Et,Ct--;Ct-ut>Dt&&0<Ct;)Et=a.createVertex(),Et.node=null,Et.Dj=3,Et.layer=Ct-1,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Et,Ct--;E=a.Zj(Et,z,b.link),E.valid=!ft,ft&&(Et.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=lt}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=_c(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),tf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Ko.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Ko.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},Ko.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 ou(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function th(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function Z1(a,y,x){var b=_c(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var rt=0,ot=b[tt],lt=ot.near;if(lt!==null&<.layer===ot.layer)if(ot=lt.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=b[ut];ft.near===lt&&ft.Dj===lt.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=b[ut],ft.near===lt&&ft.Dj===lt.Dj||rt++;var vt;if(0<=x)for(ot=b[tt].sourceEdgesArrayAccess,lt=0;lt<ot.length;lt++){var Ct=ot[lt];if(Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,vt=lt+1;vt<ot.length;vt++){var Et=ot[vt];if(Et.valid&&Et.fromVertex.layer!==y){var Dt=Et.fromVertex.index,Qt=Et.portToPos;Et=Et.portFromPos,ut<Qt&&(ft>Dt||ft===Dt&&Ct>Et)&&rt++,Qt<ut&&(Dt>ft||Dt===ft&&Et>Ct)&&rt++}}}if(0>=x){for(ot=b[tt].destinationEdgesArrayAccess,lt=0;lt<ot.length;lt++)if(Ct=ot[lt],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,vt=lt+1;vt<ot.length;vt++)Et=ot[vt],Et.valid&&Et.toVertex.layer!==y&&(Dt=Et.toVertex.index,Qt=Et.portToPos,Et=Et.portFromPos,Ct<Et&&(ft>Dt||ft===Dt&&ut>Qt)&&rt++,Et<Ct&&(Dt>ft||Dt===ft&&Qt>ut)&&rt++)}for(z[tt*E+tt]=rt,ot=tt+1;ot<E;ot++){var Wt=0,ae=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var le=b[ot].sourceEdgesArrayAccess;for(lt=0;lt<rt.length;lt++)if(Ct=rt[lt],Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,Ct=Ct.portFromPos,vt=0;vt<le.length;vt++)Et=le[vt],Et.valid&&Et.fromVertex.layer!==y&&(Dt=Et.fromVertex.index,Et=Et.portFromPos,(ft<Dt||ft===Dt&&Ct<Et)&&ae++,(Dt<ft||Dt===ft&&Et<Ct)&&Wt++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,le=b[ot].destinationEdgesArrayAccess,lt=0;lt<rt.length;lt++)if(Ct=rt[lt],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,vt=0;vt<le.length;vt++)Et=le[vt],Et.valid&&Et.toVertex.layer!==y&&(Dt=Et.toVertex.index,Qt=Et.portToPos,(ft<Dt||ft===Dt&&ut<Qt)&&ae++,(Dt<ft||Dt===ft&&Qt<ut)&&Wt++)}z[tt*E+ot]=Wt,z[ot*E+tt]=ae}}return tf(a,y,b),z}Ko.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=_c(b,E),tt=b.tc[E],rt=0,ot=0;ot<tt;ot++){var lt=z[ot].destinationEdgesArrayAccess;if(lt!==null)for(var ut=0;ut<lt.length;ut++){var ft=lt[ut];if(ft.valid&&ft.toVertex.layer!==E){var vt=ft.fromVertex.column+ft.portFromColOffset,Ct=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(vt-Ct)+1)*gy(ft)}}}tf(b,E,z),y+=rt}return y}Ko.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function py(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ut+=vt.column-1,ft++),ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ut+=Ct.column,ft++)}if(lt!==null)for(ot=0;ot<lt.length;ot++)rt=lt[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ut+=vt.column,ft++);z[tt]=ft===0?-1:ut/ft}return tf(a,y,b),z}function G1(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ut]=vt.column-1,ut++),rt=void 0,ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ft[ut]=Ct.column+rt.portFromColOffset,ut++)}if(lt!==null)for(ot=0;ot<lt.length;ot++)rt=lt[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ft[ut]=vt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(Et,Dt){return Et-Dt}),lt=ut>>1,z[tt]=ut&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return tf(a,y,b),z}function Jp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,lt=y.layer-ot.layer;rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,lt=ot.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Ko.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=K1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=K1(a);for(E=V1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=V1(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&ot++;lt=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&<++;(E===null||z<ot-lt)&&(E=rt,z=ot-lt)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case F0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Qp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function K1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function V1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,vy(a,E))}y.finish=a.Kn,a.Kn++}Ko.prototype.assignLayers=function(){switch(this.Zk){case xy:Y1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case N0:for(Y1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Y1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=U1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function U1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,U1(a,z)+E)}y.layer=x}else x=y.layer;return x}function X1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,X1(a,z)+E)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var tt=b[z],rt=tt.fromVertex,ot=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-ot.layer>tt&&Jp(a,rt,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,ft=!1,vt=lt.sourceEdgesArrayAccess;E=vt.length;for(var Ct=0;Ct<E;Ct++){var Et=vt[Ct],Dt=Et.fromVertex;ut+=1,Dt.component!==1&&(z+=1,Dt=Dt.layer-lt.layer,Et=a.linkMinLength(Et),b=Math.min(b,Dt-Et))}for(vt=lt.destinationEdgesArrayAccess,E=vt.length,Ct=0;Ct<E;Ct++)Et=vt[Ct].toVertex,--ut,Et.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=lt,rt=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else ot.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Jp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,ot=a.network.vertexes.iterator;ot.next();)if(tt=ot.value,tt.component===1){for(lt=0,ut=!1,vt=tt.sourceEdgesArrayAccess,ft=vt.length,Ct=0;Ct<ft;Ct++)Et=vt[Ct].fromVertex,lt+=1,Et.component!==1?b+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,Ct=0;Ct<ft;Ct++)Et=vt[Ct],Dt=Et.toVertex,--lt,Dt.component!==1&&(--b,Dt=tt.layer-Dt.layer,Et=a.linkMinLength(Et),E=Math.min(E,Dt-Et));(rt===null||lt>z)&&!ut&&(rt=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function Q1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ko.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case T0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x)}};function $1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&$1(a,b))}function q1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&q1(a,b))}Ko.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=ou(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),gh(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=ou(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),gh(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=ou(this))}for(th(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),gh(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=ou(this)),b=this.Ia;0<=b;b--)M0(this,b,0),gh(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=ou(this))}th(this,y);var z,tt,rt;switch(this.rk){case by:break;case Ey:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,0)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,0)||z;E>=a?th(this,y):(a=E,y=ou(this))}break;default:case D0:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,0)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,0)||z;E>=a?th(this,y):(a=E,y=ou(this))}}th(this,y)};function M0(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),tt=py(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,ot;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,ot=z[x],z[x]=z[x+1],z[x+1]=ot,ot=tt[x],tt[x]=tt[x+1],tt[x+1]=ot,ot=b[x],b[x]=b[x+1],b[x+1]=ot);for(x=z=0;x<E;x++)ot=b[x],ot.index=x,z+=a.nodeMinColumnSpace(ot,!0),ot.column=z,z+=1,z+=a.nodeMinColumnSpace(ot,!1);tf(a,y,b)}function gh(a,y,x){var b=_c(a,y),E=a.tc[y];x=Z1(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var ot=!1,lt=!0;lt;)for(lt=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],ft=x[b[z+1].index*E+b[z].index],vt=0,Ct=0,Et=b[z].column,Dt=b[z+1].column,Qt=a.nodeMinColumnSpace(b[z],!0),Wt=a.nodeMinColumnSpace(b[z],!1),ae=a.nodeMinColumnSpace(b[z+1],!0),le=a.nodeMinColumnSpace(b[z+1],!1);Qt=Et-Qt+ae,Wt=Dt-Wt+le;var ge=b[z].sourceEdges.iterator;for(ge.reset();ge.next();)if(ae=ge.value,le=ae.fromVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae<z&&(vt+=2*(z-ae),Ct+=2*(z+1-ae)),ae===z+1&&(vt+=1),ae>z+1&&(vt+=4*(ae-z),Ct+=4*(ae-(z+1)))}for(ge=b[z].destinationEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z+1&&(Ct+=1)}for(ge=b[z+1].sourceEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.fromVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae<z&&(vt+=2*(z+1-ae),Ct+=2*(z-ae)),ae===z&&(Ct+=1),ae>z+1&&(vt+=4*(ae-(z+1)),Ct+=4*(ae-z))}for(ge=b[z+1].destinationEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z&&(vt+=1)}ae=le=0,ge=tt[b[z].index];var Ee=rt[b[z].index],Xe=tt[b[z+1].index],ci=rt[b[z+1].index];ge!==-1&&(le+=Math.abs(ge-Et),ae+=Math.abs(ge-Wt)),Ee!==-1&&(le+=Math.abs(Ee-Et),ae+=Math.abs(Ee-Wt)),Xe!==-1&&(le+=Math.abs(Xe-Dt),ae+=Math.abs(Xe-Qt)),ci!==-1&&(le+=Math.abs(ci-Dt),ae+=Math.abs(ci-Qt)),(Ct<vt-.5||Ct===vt&&ft<ut-.5||Ct===vt&&ft===ut&&ae<le-.5)&&(lt=ot=!0,b[z].column=Wt,b[z+1].column=Qt,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return tf(a,y,b),ot}Ko.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Ux)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,-1)||x;x=Yg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(_1(this,-1),_1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,0)||x}}else Gx(this)};function Yg(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=_c(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var rt=py(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var ot=!1,lt=!0;lt;)for(lt=!1,b=0;b<z;b++){var ut=E[b].column,ft=a.nodeMinColumnSpace(E[b],!0),vt=a.nodeMinColumnSpace(E[b],!1),Ct=0;0>b-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?Ct=ut-1:Ct=ut,ft=b+1>=z||E[b+1].column-ut-1>vt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var Et=vt=0,Dt=0;if(0>=x)for(var Qt=E[b].sourceEdges.iterator;Qt.next();){var Wt=Qt.value,ae=Wt.fromVertex;if(Wt.valid&&ae.layer!==y){var le=gy(Wt),ge=Wt.portFromColOffset;Wt=Wt.portToColOffset,ae=ae.column,vt+=(Math.abs(ut+Wt-(ae+ge))+1)*le,Et+=(Math.abs(Ct+Wt-(ae+ge))+1)*le,Dt+=(Math.abs(ft+Wt-(ae+ge))+1)*le}}if(0<=x)for(Qt=E[b].destinationEdges.iterator;Qt.next();)Wt=Qt.value,ae=Wt.toVertex,Wt.valid&&ae.layer!==y&&(le=gy(Wt),ge=Wt.portFromColOffset,Wt=Wt.portToColOffset,ae=ae.column,vt+=(Math.abs(ut+ge-(ae+Wt))+1)*le,Et+=(Math.abs(Ct+ge-(ae+Wt))+1)*le,Dt+=(Math.abs(ft+ge-(ae+Wt))+1)*le);Wt=ge=le=0,Qt=tt[E[b].index],ae=rt[E[b].index],Qt!==-1&&(le+=Math.abs(Qt-ut),ge+=Math.abs(Qt-Ct),Wt+=Math.abs(Qt-ft)),ae!==-1&&(le+=Math.abs(ae-ut),ge+=Math.abs(ae-Ct),Wt+=Math.abs(ae-ft)),Et<vt||Et===vt&&ge<le?(lt=ot=!0,E[b].column=Ct):(Dt<vt||Dt===vt&&Wt<le)&&(lt=ot=!0,E[b].column=ft)}return tf(a,y,E),a.normalize(),ot}function yy(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,ot=a.nodeMinColumnSpace(b[x],!0),lt=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=rt;else if(x===0){var ft=b[x+1].column;ft-rt===lt+a.nodeMinColumnSpace(b[x+1],!0)?ut=rt-1:ut=rt}else x===E-1?(ft=b[x-1].column,ut=rt-ft===ot+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=(ot+lt)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=Math.min(tt[x],lt)):x===E-1?(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ut=Math.max(tt[x],ot)):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ot<tt[x]&&tt[x]<lt?ut=tt[x]:ot>=tt[x]?ut=ot:lt<=tt[x]&&(ut=lt));ut!==rt&&(z=!0,b[x].column=ut)}tf(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Zx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),ot=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&ot>=y&&(E[b.layer]=!0),rt<=x&&ot>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function _1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Zx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=ou(a),z=L0(a);for(b=z+1;z<b;){b=z,tx(a,x,1);var tt=L0(a);tt>z?th(a,E):tt<z&&(z=tt,E=ou(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=ou(a),z=L0(a),b=z+1;z<b;)b=z,tx(a,x,-1),tt=L0(a),tt>z?th(a,E):tt<z&&(z=tt,E=ou(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ot=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=ot;rt++)E[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(ot=tt[tt.length-1],tt.pop(),E[ot])for(E[ot]=!1,z=0;z<a.le;z++)y[ot*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Gx(a){for(var y=sn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new An,Kx(y,x);var z=null,tt=null,rt=null,ot=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!1)),b=vi(y),E=b.next();!E.done;E=b.next())E.value.reverse();vt&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),bn(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(Ct){var Et=sn();lt&&Et.push(z.get(Ct)),ut&&Et.push(tt.get(Ct)),ft&&Et.push(rt.get(Ct)),vt&&Et.push(ot.get(Ct)),Et.sort(function(Qt,Wt){return Qt-Wt});var Dt=Et.length;Dt=(Et[Math.floor((Dt-1)/2)]+Et[Math.ceil((Dt-1)/2)])/2,bn(Et),Ct.zc=Dt})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],rt=a[b+1],ot=0;z<rt.length;ot++){var lt=rt[ot];t:{if(lt.node===null){var ut=Ly(lt);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(ot===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=Ly(lt)[0].index);z<=ot;){if(lt=rt[z],!lt.bo){ft=[];for(var vt=vi(lt.sourceEdgesArrayAccess),Ct=vt.next();!Ct.done;Ct=vt.next())Ct=Ct.value,Ct.valid&&ft.push(Ct);lt.bo=ft}for(lt=vi(lt.bo),ft=lt.next();!ft.done;ft=lt.next())ft=ft.value,vt=ft.fromVertex.index,(vt<E||vt>ut)&&y.add(ft);z++}E=ut}}}Ko.prototype.verticalAlignment=function(a,y,x){Vx(a),a=vi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=vi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?Ly(z):Xx(z),rt=tt.length;if(0<rt){tt.sort(function(ft,vt){return ft.vi-vt.vi});var ot=(rt-1)/2;for(rt=Math.floor(ot),ot=Math.ceil(ot);rt<=ot;rt++)if(z.align===z){var lt=tt[rt],ut=void 0;ut=x?B0(lt,z):B0(z,lt),!y.contains(ut)&&E<lt.vi&&(lt.align=z,z.root=lt.root,z.align=lt.root,E=lt.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function A0(a,y,x,b){for(var E=a.K===90||a.K===270,z=vi(y),tt=z.next();!tt.done;tt=z.next()){var rt=vi(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=vi(y),rt=z.next();!rt.done;rt=z.next()){rt=vi(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var lt=0,ut=ot;ut.align!==ot;){var ft=ut.align,vt=tt?ut.width:ut.height,Ct=tt?ft.width:ft.height;if(x){var Et=B0(ut,ft),Dt=Et.portFromPos,Qt=Et.portToPos;Et.link!==null&&(ut.node&&ut.node!==Et.link.fromNode&&(Dt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Et.link.toNode&&(Qt=tt?ft.focusX:ft.focusY))}else Et=B0(ft,ut),Dt=Et.portToPos,Qt=Et.portFromPos,Et.link!==null&&(ut.node&&ut.node!==Et.link.toNode&&(Dt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Et.link.fromNode&&(Qt=tt?ft.focusX:ft.focusY));vt=b?ut.qg+(vt-Dt)-(Ct-Qt):ut.qg+Dt-Qt,ft.qg=vt,lt=Math.min(lt,vt),ut=ut.align}ut=ot;do ut.qg=ut.qg-lt,ut=ut.align;while(ut!==ot)}}for(x=vi(y),tt=x.next();!tt.done;tt=x.next())for(z=vi(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=nx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(E?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new Ci,y=vi(y),tt=y.next();!tt.done;tt=y.next())for(x=vi(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&Ce("Could not determine previous vertex in layer"),y[x][a-1]}Ko.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=sn(),E=sn(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Yx(this,y[tt],b,E,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(ot){return function(lt){lt.value+=ot.delta}}(z)));bn(b),bn(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[E]=z,b[E]=tt,tt-z}Ko.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?_a:Ps:a.K===90?y?Ps:_a:a.K===180?y?ls:Ls:y?Ls:ls}Ko.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,rt=-1/0;a.next();){var ot=a.value,lt=ot.layer,ut=ot.column|0;b?(tt=y.x+this.kc*ut,lt=this.Kd[lt]):(tt=this.Kd[lt],lt=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=lt,x&&isFinite(ot.zc)&&(b?ot.node?ot.x=y.x+ot.zc:ot.centerX=y.x+ot.zc:ot.node?ot.y=y.y+ot.zc:ot.centerY=y.y+ot.zc),z=Math.min(ot.x,z),E=Math.min(ot.y,E),b?(tt=z,rt=Math.max(rt,ot.bounds.right)):(tt=E,rt=Math.max(rt,ot.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-E,this.Rf=new Vt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Ko.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new ln(0,0,x,Math.abs(this.Ta[0]))):y.push(new ln(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new ln(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ln(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new ln(0,0,Math.abs(this.Ta[0]),x)):y.push(new ln(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new ln(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ln(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Ko.prototype.commitLayers=function(){},Ko.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,rt=b.toPort;if(E!==null){var ot=E.findVisibleNode();ot!==null&&ot!==E&&(E=ot,tt=ot.port)}z!==null&&(ot=z.findVisibleNode(),ot!==null&&ot!==z&&(z=ot,rt=ot.port));var lt=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===ju&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,lt,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,ot,!1,!1,E,tt),x.w()||x.set(E.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=b=!1,tt!==null&<===Ya&&(b=!0),rt!==null&&ot===Ya&&(x=!0),(b||x)&&(ot=null,b&&(ot=y.getLinkPointFromPoint(E,tt,tt.ga(ho),y.i(3),!0),ot.w()||ot.set(E.actualBounds.center),y.L(0,ot.x,ot.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(ho),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,Ct=!1,Et=this.ie,Dt=y.firstPickIndex+1;if(y.isOrthogonal){Ct=!0;var Qt=y.pointsCount;4<Qt&&y.points.removeRange(2,Qt-3)}else if(y.curve===ju)vt=!0,Qt=y.pointsCount,4<Qt&&y.points.removeRange(2,Qt-3),Qt===4&&(Dt=2);else{Qt=y.pointsCount;var Wt=lt===Ya,ae=ot===Ya;2<Qt&&Wt&&ae?y.points.removeRange(1,Qt-2):3<Qt&&Wt&&!ae?y.points.removeRange(1,Qt-3):3<Qt&&!Wt&&ae?y.points.removeRange(2,Qt-2):4<Qt&&!Wt&&!ae&&y.points.removeRange(2,Qt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var le=Qt=null;for(Wt=ft.sourceEdges.iterator;Wt.next()&&(ae=Wt.value,ae.link!==x.link||(Qt=ae.fromVertex,le=ae.toVertex,Qt.node!==null)););if(Qt===null)break;if(Qt!==ut){Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y;var ge=Qt.centerX,Ee=Qt.centerY;if(Ct)this.K===180||this.K===0?Dt===y.firstPickIndex+1?(y.m(Dt++,Wt,ae),y.m(Dt++,Wt,Ee)):(le!==null?le.centerY:ae)!==Ee&&(le=this.Ta[Qt.layer-1]+this.Rf.x,y.m(Dt++,le,ae),y.m(Dt++,le,Ee)):Dt===y.firstPickIndex+1?(y.m(Dt++,Wt,ae),y.m(Dt++,ge,ae)):(le!==null?le.centerX:Wt)!==ge&&(le=this.Ta[Qt.layer-1]+this.Rf.y,y.m(Dt++,Wt,le),y.m(Dt++,ge,le));else if(Dt===y.firstPickIndex+1){le=Math.max(10,this.he[ft.layer]);var Xe=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?ge<=ft.bounds.x?(ft=ft.bounds.x,y.m(Dt++,ft-le,Ee),y.m(Dt++,ft,Ee),y.m(Dt++,ft+Xe,Ee)):(y.m(Dt++,ge-le,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge+Xe,Ee)):this.K===90?Ee>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Dt++,ge,ft+Xe),y.m(Dt++,ge,ft),y.m(Dt++,ge,ft-le)):(y.m(Dt++,ge,Ee+Xe),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee-le)):this.K===270?Ee<=ft.bounds.y?(ft=ft.bounds.y,y.m(Dt++,ge,ft-le),y.m(Dt++,ge,ft),y.m(Dt++,ge,ft+Xe)):(y.m(Dt++,ge,Ee-le),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee+Xe)):this.K===0&&(ge>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Dt++,ft+Xe,Ee),y.m(Dt++,ft,Ee),y.m(Dt++,ft-le,Ee)):(y.m(Dt++,ge+Xe,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge-le,Ee)));else{y.m(Dt++,Wt,ae);var ci=0;this.K===180||this.K===0?((this.K===180?ge>=ft.bounds.right:ge<=ft.bounds.x)&&(ci=(this.K===0?-le:Xe)/2),y.m(Dt++,Wt+ci,Ee)):((this.K===270?Ee>=ft.bounds.bottom:Ee<=ft.bounds.y)&&(ci=(this.K===90?-le:Xe)/2),y.m(Dt++,ge,ae+ci)),y.m(Dt++,ge,Ee)}}else le=Math.max(10,this.he[Qt.layer]),Xe=Math.max(10,this.Ld[Qt.layer]),vt?this.K===180?(y.m(Dt++,ge-le-Et,Ee),y.m(Dt++,Math.min(ge-le+Et/2,ge),Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,Math.max(ge+Xe-Et/2,ge),Ee),y.m(Dt++,ge+Xe+Et,Ee)):this.K===90?(y.m(Dt++,ge,Ee+Xe+Et),y.m(Dt++,ge,Math.max(Ee+Xe-Et/2,Ee)),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Math.min(Ee-le+Et/2,Ee)),y.m(Dt++,ge,Ee-le-Et)):this.K===270?(y.m(Dt++,ge,Ee-le-Et),y.m(Dt++,ge,Math.min(Ee-le+Et/2,Ee)),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Math.max(Ee+Xe-Et/2,Ee)),y.m(Dt++,ge,Ee+Xe+Et)):(y.m(Dt++,ge+Xe+Et,Ee),y.m(Dt++,Math.max(ge+Xe-Et/2,ge),Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,Math.min(ge-le+Et/2,ge),Ee),y.m(Dt++,ge-le-Et,Ee)):y.m(Dt++,ge,Ee)}ft=Qt}(rt===null||lt!==Ya||Ct)&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=y.i(Dt).x,Ee=y.i(Dt).y,Ct?(Et=this.Ld[ut.layer],this.K===180||this.K===0?(Ct=ae,Ct>=ut.bounds.y&&Ct<=ut.bounds.bottom&&(this.K===180?ge>=ut.bounds.x:ge<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Et:Et),Ct<ut.bounds.y+ut.bounds.height/2?Ct=ut.bounds.y-this.kc/2:Ct=ut.bounds.bottom+this.kc/2,y.m(Dt++,ft,ae),y.m(Dt++,ft,Ct)),y.m(Dt++,ge,Ct)):(Ct=Wt,Ct>=ut.bounds.x&&Ct<=ut.bounds.right&&(this.K===270?Ee>=ut.bounds.y:Ee<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Et:Et),Ct<ut.bounds.x+ut.bounds.width/2?Ct=ut.bounds.x-this.kc/2:Ct=ut.bounds.right+this.kc/2,y.m(Dt++,Wt,ft),y.m(Dt++,Ct,ft)),y.m(Dt++,Ct,Ee)),y.m(Dt++,ge,Ee)):vt?(le=Math.max(10,this.he[ut.layer]),Xe=Math.max(10,this.Ld[ut.layer]),this.K===180&&ge>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Dt-2,ft,ae),y.L(Dt-1,ft+Xe,ae)):this.K===90&&Ee<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Dt-2,Wt,ft),y.L(Dt-1,Wt,ft-le)):this.K===270&&Ee>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Dt-2,Wt,ft),y.L(Dt-1,Wt,ft+Xe)):this.K===0&&ge<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Dt-2,ft,ae),y.L(Dt-1,ft-le,ae))):(le=Math.max(10,this.he[ut.layer]),Xe=Math.max(10,this.Ld[ut.layer]),Ct=0,this.K===180||this.K===0?((this.K===180?ge<=ut.bounds.x:ge>=ut.bounds.right)&&(Ct=(this.K===0?Xe:-le)/2),y.m(Dt++,ge+Ct,ae)):((this.K===270?Ee<=ut.bounds.y:Ee>=ut.bounds.bottom)&&(Ct=(this.K===90?Xe:-le)/2),y.m(Dt++,Wt,Ee+Ct)),y.m(Dt++,ge,Ee)))}else{for(;ut!==null&&ut!==ft;){for(le=Qt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Wt=ut.value,Wt.link!==x.link||(Qt=Wt.toVertex,le=Wt.fromVertex,le.node!==null&&(le=null),Qt.node!==null)););if(Qt===null)break;Qt!==ft&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=Qt.centerX,Ee=Qt.centerY,Ct?this.K===180||this.K===0?(le!==null?le.centerY:ae)!==Ee&&(le=this.Ta[Qt.layer]+this.Rf.x,Dt===y.firstPickIndex+1&&(le=this.K===0?Math.max(le,Wt):Math.min(le,Wt)),y.m(Dt++,le,ae),y.m(Dt++,le,Ee)):(le!==null?le.centerX:Wt)!==ge&&(le=this.Ta[Qt.layer]+this.Rf.y,Dt===y.firstPickIndex+1&&(le=this.K===90?Math.max(le,ae):Math.min(le,ae)),y.m(Dt++,Wt,le),y.m(Dt++,ge,le)):(le=Math.max(10,this.he[Qt.layer]),Xe=Math.max(10,this.Ld[Qt.layer]),vt?this.K===180?(y.m(Dt++,ge+Xe+Et,Ee),y.m(Dt++,Math.max(ge+Xe-Et/2,ge),Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,Math.min(ge-le+Et/2,ge),Ee),y.m(Dt++,ge-le-Et,Ee)):this.K===90?(y.m(Dt++,ge,Ee-le-Et),y.m(Dt++,ge,Math.min(Ee-le+Et/2,Ee)),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Math.max(Ee+Xe-Et/2,Ee)),y.m(Dt++,ge,Ee+Xe+Et)):this.K===270?(y.m(Dt++,ge,Ee+Xe+Et),y.m(Dt++,ge,Math.max(Ee+Xe-Et/2,Ee)),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Math.min(Ee-le+Et/2,Ee)),y.m(Dt++,ge,Ee-le-Et)):(y.m(Dt++,ge-le-Et,Ee),y.m(Dt++,Math.min(ge-le+Et/2,ge),Ee),y.m(Dt++,ge,Ee),y.m(Dt++,ge,Ee),y.m(Dt++,Math.max(ge+Xe-Et/2,ge),Ee),y.m(Dt++,ge+Xe+Et,Ee)):this.K===180?(y.m(Dt++,ge+Xe,Ee),y.m(Dt++,ge-le,Ee)):this.K===90?(y.m(Dt++,ge,Ee-le),y.m(Dt++,ge,Ee+Xe)):this.K===270?(y.m(Dt++,ge,Ee+Xe),y.m(Dt++,ge,Ee-le)):(y.m(Dt++,ge-le,Ee),y.m(Dt++,ge+Xe,Ee)))),ut=Qt}Ct&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=y.i(Dt).x,Ee=y.i(Dt).y,this.K===180||this.K===0?ae!==Ee&&(le=this.K===0?Math.min(Math.max((ge+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ge):Math.max(Math.min((ge+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ge),y.m(Dt++,le,ae),y.m(Dt++,le,Ee)):Wt!==ge&&(le=this.K===90?Math.min(Math.max((Ee+ae)/2,this.Ta[ft.layer]+this.Rf.y),Ee):Math.max(Math.min((Ee+ae)/2,this.Ta[ft.layer]+this.Rf.y),Ee),y.m(Dt++,Wt,le),y.m(Dt++,ge,le)))}b!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===Ya?y.getLinkPointFromPoint(E,tt,tt.ga(ho),y.i(3),!0):y.i(0),lt===Ya&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=ot===Ya?y.getLinkPointFromPoint(z,rt,rt.ga(ho),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Ya&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ko.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new wn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new ef;rt.layer=Math.floor(z.y/2);var ot=b.i(0),lt=b.i(b.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=lt.x*lt.x+lt.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=E,rt.link=b,E+2<b.pointsCount){ot=b.i(E-1),lt=b.i(E+2);var ut=0;ot.y<z.y?ut=lt.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=lt.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)lt=x[ot],lt.jc!==rt&&(ut++,rt=lt.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<E;ot++)lt=x[ot],lt.first!==rt&&(ft++,rt=lt.first);for(ot=!0,lt=ft,ut<ft?(ot=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++){var vt=x[ft];(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc);var Ct=vt.link;z=Ct.i(vt.index),tt=Ct.i(vt.index+1);var Et=this.linkSpacing*(ut-(lt-1)/2);y++,Ct.uh(),Ct.L(vt.index,z.x,z.y+Et),Ct.L(vt.index+1,tt.x,tt.y+Et),Ct.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new ef,rt.layer=Math.floor(z.x/2),ot=b.i(0),lt=b.i(b.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=lt.x+lt.y*lt.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=E,rt.link=b,E+2<b.pointsCount&&(ot=b.i(E-1),lt=b.i(E+2),ut=0,ot.x<z.x?ut=lt.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=lt.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)lt=x[ot],lt.jc!==rt&&(ut++,rt=lt.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<E;ot++)lt=x[ot],lt.first!==rt&&(ft++,rt=lt.first);for(ot=!0,lt=ft,ut<ft?(ot=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++)vt=x[ft],(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc),Ct=vt.link,z=Ct.i(vt.index),tt=Ct.i(vt.index+1),Et=this.linkSpacing*(ut-(lt-1)/2),y++,Ct.uh(),Ct.L(vt.index,z.x+Et,z.y),Ct.L(vt.index+1,tt.x+Et,tt.y),Ct.zf()}z=E}a=b}}}},Lt=Ko.prototype,Lt.Vx=function(a,y){return a instanceof ef&&y instanceof ef&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.Ux=function(a,y){return a instanceof ef&&y instanceof ef&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.Js=function(a,y){return a instanceof ef&&y instanceof ef&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.B=function(a,y){return a-=y,-1<a&&1>a},Lt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Ce("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function _c(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function tf(a,y,x){a.He[a.tc[y]]=x}fe.Object.defineProperties(Ko.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()):Ce("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==Qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==by&&a!==D0&&a!==Ey||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var F0=new Oe(Ko,"CycleDepthFirst",0),Sy=new Oe(Ko,"CycleGreedy",1),Qp=new Oe(Ko,"CycleFromLayers",2),N0=new Oe(Ko,"LayerOptimalLinkLength",0),xy=new Oe(Ko,"LayerLongestPathSink",1),wy=new Oe(Ko,"LayerLongestPathSource",2),T0=new Oe(Ko,"InitDepthFirstOut",0),Py=new Oe(Ko,"InitDepthFirstIn",1),Cy=new Oe(Ko,"InitNaive",2),by=new Oe(Ko,"AggressiveNone",0),D0=new Oe(Ko,"AggressiveLess",1),Ey=new Oe(Ko,"AggressiveMore",2),Ux=8;Ko.className="LayeredDigraphLayout",Ko.CycleDepthFirst=F0,Ko.CycleGreedy=Sy,Ko.CycleFromLayers=Qp,Ko.LayerOptimalLinkLength=N0,Ko.LayerLongestPathSink=xy,Ko.LayerLongestPathSource=wy,Ko.InitDepthFirstOut=T0,Ko.InitDepthFirstIn=Py,Ko.InitNaive=Cy,Ko.AggressiveNone=by,Ko.AggressiveLess=D0,Ko.AggressiveMore=Ey,Ko.PackNone=0,Ko.PackExpand=1,Ko.PackStraighten=2,Ko.PackMedian=4,Ko.PackAll=15,Ko.AlignNone=0,Ko.AlignUpperLeft=1,Ko.AlignUpperRight=2,Ko.AlignLowerLeft=4,Ko.AlignLowerRight=8,Ko.AlignAll=15;function ef(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ef.className="SegInfo";function Ug(a){aa.call(this,a)}Ze(Ug,aa),Ug.prototype.createVertex=function(){return new eh(this)},Ug.prototype.createEdge=function(){return new $p(this)},Ug.className="LayeredDigraphNetwork";function eh(a){zs.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ze(eh,zs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=vi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=vi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ce("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=vi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=vi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}eh.prototype.Cl=function(a){zs.prototype.Cl.call(this,a),this.bo=this.co=null},eh.prototype.Kl=function(a){zs.prototype.Kl.call(this,a),this.bo=this.co=null},eh.prototype.zl=function(a){zs.prototype.zl.call(this,a),this.$n=this.ao=null},eh.prototype.Jl=function(a){zs.prototype.Jl.call(this,a),this.$n=this.ao=null},fe.Object.defineProperties(eh.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)}}}),eh.prototype.deleteDestinationEdge=eh.prototype.Jl,eh.prototype.addDestinationEdge=eh.prototype.zl,eh.prototype.deleteSourceEdge=eh.prototype.Kl,eh.prototype.addSourceEdge=eh.prototype.Cl,eh.className="LayeredDigraphVertex";function $p(a){Au.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ze($p,Au),fe.Object.defineProperties($p.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),$p.className="LayeredDigraphEdge";function to(a){Aa.call(this),this.Ub=new An,this.Wn=z0,this.ud=Md,this.vo=H0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new ei(10,10).freeze();var y=new hg(this);this.W=new ph(y),this.Y=new ph(y),this.ru=[],a&&Object.assign(this,a)}Ze(to,Aa),to.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},to.prototype.qb=function(a){a.classType===to?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Ce("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},to.prototype.createNetwork=function(){return new hg(this)},to.prototype.makeNetwork=function(a){function y(b){if(b instanceof fi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof _n){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Pr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},to.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Z0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ye&&(y=a),this.path===z0&&y!==null?this.ud=y.isTreePathToChildren?Md:lg:this.ud=this.path===z0?Md:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new An,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof fi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof ph&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&lx(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new An,this.isValidLayout=!0};function Jx(a){var y=new An;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}to.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Md:x.sourceEdges.count===0&&this.Ub.add(x);break;case lg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ce("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Md:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case lg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Ce("Unhandled path value "+a.ud.toString())}}return b}function My(a,y){if(y!==null){switch(a.ud){case Md:if(0<y.destinationEdges.count){for(var x=new wn,b=y.destinationVertexes;b.next();){var E=b.value;ox(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case lg:if(0<y.sourceEdges.count){for(x=new wn,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Ce("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)My(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}to.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Fd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];ax(a,ot),x+=ot.descendantCount+1,b=Math.max(b,ot.maxChildrenCount),E=Math.max(E,ot.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case H0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}to.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===Fd){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)sx(a,y[b])}}to.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Fd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}to.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xg:break;case _p:a.children.reverse();break;case tm:a.children.sort(a.comparer);break;case em:a.children.sort(a.comparer),a.children.reverse();break;default:Ce("Unhandled sorting value "+a.sorting.toString())}},to.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},to.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=nf(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,ot=a.commentSpacing;if(a.node!==null)for(var lt=a.node.Mu();lt.next();){var ut=lt.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=ot)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=ln.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,ln.free(E))};function nf(a){return a===Ec||a===Fd||a===Lc||a===Qd}function qp(a){return a===Ec||a===Fd}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(nf(x)){if(qp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Lc)return!0}}return!1}to.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=nf(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,rt=Ay(a),ot=0,lt=a.comments,ut=lt.length,ft=Vt.alloc(),vt=0;vt<ut;vt++){var Ct=lt[vt],Et=Ct.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Et.width,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();){var Dt=Ct.value;Dt.fromSpot=ls,Dt.toSpot=Ls}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ls,Dt.toSpot=ls;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ls,Dt.toSpot=ls;else for(ft.h(a.bounds.x+a.commentMargin-Et.width,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=ls,Dt.toSpot=Ls;ot=0<=a.commentSpacing?ot+(Et.height+a.commentSpacing):ot+(a.commentSpacing-Et.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-Et.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=_a,Dt.toSpot=Ps;else for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y-a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ps,Dt.toSpot=_a;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y+a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ps,Dt.toSpot=_a;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-Et.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=_a,Dt.toSpot=Ps;ot=0<=a.commentSpacing?ot+(Et.width+a.commentSpacing):ot+(a.commentSpacing-Et.width)}}if(Vt.free(ft),y=ot-a.commentSpacing-(b?y.height:y.width),this.ud===Md)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},to.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case j0:ux(this,a);break;case nm:if(a.alignment===Fd)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=nf(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=Nh(a);y=E===90||E===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var ot=a.alignment;b=ot===Ad;var lt=ot===kd,ut=nf(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,Ct=this.computeNodeIndent(a),Et=a.rowSpacing,Dt=0;(b||lt||a.hm||a.im&&a.maxGenerationCount===1)&&(Dt=Math.max(0,a.rowIndent)),b=a.width;var Qt=a.height,Wt=0,ae=0,le=0,ge=null,Ee=null,Xe=0,ci=0,Ei=0,Si=0,$n=0,kn=0,wr=0,cr=0;if(ut&&!qp(ot)&&135<E&&tt.reverse(),qp(ot))if(1<rt)for(var No=0;No<rt;No++)No%2===0&&No!==rt-1&&(cr=Math.max(cr,y?tt[No].Da.width:tt[No].Da.height));else rt===1&&(cr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Ec:ae=135>E?hx(this,a,tt,cr,Wt,ae):dx(this,a,tt,cr,Wt,ae),cr=ae.x,Wt=ae.width,ae=ae.height;break;case Lc:for(ge=0;ge<rt;ge++)Ee=tt[ge],ft=Ee.Da,le=kn===0?0:Et,y?(Ee.S.h(z-ft.width,Si+le),Wt=Math.max(Wt,ft.width),ae=Math.max(ae,Si+le+ft.height),Si+=le+ft.height):(Ee.S.h(Ei+le,z-ft.height),Wt=Math.max(Wt,Ei+le+ft.width),ae=Math.max(ae,ft.height),Ei+=le+ft.width),kn++;break;case Qd:for(ge=0;ge<rt;ge++)Ee=tt[ge],z=Ee.Da,ft=kn===0?0:Et,y?(Ee.S.h(vt/2+a.focus.x,Si+ft),Wt=Math.max(Wt,z.width),ae=Math.max(ae,Si+ft+z.height),Si+=ft+z.height):(Ee.S.h(Ei+ft,vt/2+a.focus.y),Wt=Math.max(Wt,Ei+ft+z.width),ae=Math.max(ae,z.height),Ei+=ft+z.width),kn++}ge=mu(this,2),Ee=mu(this,2),y?(ge[0].h(0,0),ge[1].h(0,ae),Ee[0].h(Wt,0)):(ge[0].h(0,0),ge[1].h(Wt,0),Ee[0].h(0,ae)),Ee[1].h(Wt,ae)}else for(No=0;No<rt;No++){var ia=tt[No],Ks=ia.Da;if(y){0<ft&&0<kn&&Ei+vt+Ks.width>ft&&(Ei<z&&Df(a,ot,z-Ei,0,wr,No-1),$n++,kn=0,wr=No,le=ae,Ei=0,Si=135<E?-ae-Et:ae+Et),I0(this,ia,0,Si);var qs=0;if(kn===0)ge=ia.Yo,Ee=ia.kp,Xe=Ks.width,ci=Ks.height,(ge===null||Ee===null||E!==Nh(ia))&&(ge=mu(this,2),Ee=mu(this,2),ge[0].h(0,0),ge[1].h(0,ci),Ee[0].h(Xe,0),Ee[1].h(Xe,ci));else{var Fl=sn();ci=cx(this,a,ia,ge,Ee,Xe,ci,Fl),qs=ci.x,ge=Fl[0],Ee=Fl[1],Xe=ci.width,ci=ci.height,bn(Fl),Ei<Ks.width&&0>qs&&(sg(a,-qs,0,wr,No-1),R0(ge,-qs,0),R0(Ee,-qs,0),qs=0)}ia.S.h(qs,Si),Wt=Math.max(Wt,Xe),ae=Math.max(ae,le+($n===0?0:Et)+Ks.height),Ei=Xe}else 0<ft&&0<kn&&Si+vt+Ks.height>ft&&(Si<z&&Df(a,ot,0,z-Si,wr,No-1),$n++,kn=0,wr=No,le=Wt,Si=0,Ei=135<E?-Wt-Et:Wt+Et),I0(this,ia,Ei,0),qs=0,kn===0?(ge=ia.Yo,Ee=ia.kp,Xe=Ks.width,ci=Ks.height,(ge===null||Ee===null||E!==Nh(ia))&&(ge=mu(this,2),Ee=mu(this,2),ge[0].h(0,0),ge[1].h(Xe,0),Ee[0].h(0,ci),Ee[1].h(Xe,ci))):(Fl=sn(),ci=cx(this,a,ia,ge,Ee,Xe,ci,Fl),qs=ci.x,ge=Fl[0],Ee=Fl[1],Xe=ci.width,ci=ci.height,bn(Fl),Si<Ks.height&&0>qs&&(sg(a,0,-qs,wr,No-1),R0(ge,0,-qs),R0(Ee,0,-qs),qs=0)),ia.S.h(Ei,qs),ae=Math.max(ae,ci),Wt=Math.max(Wt,le+($n===0?0:Et)+Ks.width),Si=ci;kn++}switch(0<$n&&(y?(ae+=Math.max(0,x),Ei<Wt&&Df(a,ot,Wt-Ei,0,wr,rt-1),0<Dt&&(lt||sg(a,Dt,0,0,rt-1),Wt+=Dt)):(Wt+=Math.max(0,x),Si<ae&&Df(a,ot,0,ae-Si,wr,rt-1),0<Dt&&(lt||sg(a,0,Dt,0,rt-1),ae+=Dt))),Dt=lt=0,ot){case Jg:y?lt+=Wt/2-a.focus.x-Ct/2:Dt+=ae/2-a.focus.y-Ct/2;break;case ug:0<$n?y?lt+=Wt/2-a.focus.x-Ct/2:Dt+=ae/2-a.focus.y-Ct/2:y?(cr=tt[0].S.x+tt[0].la.x,lt+=cr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-cr)/2-a.focus.x-Ct/2):(cr=tt[0].S.y+tt[0].la.y,Dt+=cr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-cr)/2-a.focus.y-Ct/2);break;case Ad:y?(lt-=Ct,Wt+=Ct):(Dt-=Ct,ae+=Ct);break;case kd:y?(lt+=Wt-a.width+Ct,Wt+=Ct):(Dt+=ae-a.height+Ct,ae+=Ct);break;case Ec:y?1<rt?lt+=cr+vt/2-a.focus.x:lt+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Dt+=cr+vt/2-a.focus.y:Dt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Lc:y?lt+=Wt+vt/2-a.focus.x:Dt+=ae+vt/2-a.focus.y;break;case Qd:break;default:ae=this.customAlignment(a,lt,Dt,Wt,ae),lt=ae[0],Dt=ae[1],Wt=ae[2],ae=ae[3]}for(Ct=0;Ct<rt;Ct++)cr=tt[Ct],y?cr.S.h(cr.S.x+cr.la.x-lt,cr.S.y+(135<E?(ut?-ae:-cr.Da.height)+cr.la.y-x:Qt+x+cr.la.y)):cr.S.h(cr.S.x+(135<E?(ut?-Wt:-cr.Da.width)+cr.la.x-x:b+x+cr.la.x),cr.S.y+cr.la.y-Dt);if(rt=tt=0,ut?y?(Wt=ky(a,Wt,lt),0>lt&&(lt=0),135<E&&(Dt+=ae+x),ae+=Qt+x,ot===Qd&&(tt+=vt/2+a.focus.x),rt+=Qt+x):(135<E&&(lt+=Wt+x),Wt+=b+x,ae=Fy(a,ae,Dt),0>Dt&&(Dt=0),ot===Qd&&(rt+=vt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Wt&&(Wt=Ny(ot,b-Wt,0),tt=Wt.x,rt=Wt.y,Wt=b,lt=0):Wt=ky(a,Wt,lt),0>lt&&(tt-=lt,lt=0),135<E&&(Dt+=ae+x),ae=Math.max(Math.max(ae,Qt),ae+Qt+x),rt+=Qt+x):(135<E&&(lt+=Wt+x),Wt=Math.max(Math.max(Wt,b),Wt+b+x),a.comments===null?Qt>ae&&(ae=Ny(ot,0,Qt-ae),tt=ae.x,rt=ae.y,ae=Qt,Dt=0):ae=Fy(a,ae,Dt),0>Dt&&(rt-=Dt,Dt=0),tt+=b+x),0<$n)E=mu(this,4),$n=mu(this,4),y?(E[2].h(0,Qt+x),E[3].h(E[2].x,ae),$n[2].h(Wt,E[2].y),$n[3].h($n[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Wt,E[2].y),$n[2].h(E[2].x,ae),$n[3].h(E[3].x,$n[2].y));else{for(E=mu(this,ge.length+2),$n=mu(this,Ee.length+2),ot=0;ot<ge.length;ot++)ut=ge[ot],E[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<Ee.length;ot++)ut=Ee[ot],$n[ot+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(lt,0),E[1].h(E[0].x,Qt),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(lt+b,0),$n[1].h($n[0].x,Qt),$n[2].y<$n[1].y&&($n[2].x<$n[0].x?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].y<$n[2].y&&($n[3].x<$n[0].x?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].y-=x/2,$n[2].y-=x/2):(E[0].h(0,Dt),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(0,Dt+Qt),$n[1].h(b,$n[0].y),$n[2].x<$n[1].x&&($n[2].y<$n[0].y?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].x<$n[2].x&&($n[3].y<$n[0].y?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].x-=x/2,$n[2].x-=x/2),Uh(this,ge),Uh(this,Ee),a.Yo=E,a.kp=$n,a.la.h(lt,Dt),a.Da.h(Wt,ae)}break;default:Ce("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=nf(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Nh(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];z=Math.max(z,x?ot.Da.width:ot.Da.height)}var lt=y.alignment,ut=lt===Ad,ft=lt===kd;rt=nf(lt);var vt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var Ct=y.nodeSpacing,Et=a.computeNodeIndent(y),Dt=ut||ft?0:Et/2,Qt=y.rowSpacing,Wt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Wt=Math.max(0,y.rowIndent)),ut=y.width;var ae=y.height,le=0,ge=0,Ee=0,Xe=0,ci=0,Ei=0,Si=0,$n=0,kn=0,wr=0;if(rt&&!qp(lt)&&135<b&&E.reverse(),qp(lt))if(1<tt)for(var cr=0;cr<tt;cr++){var No=E[cr],ia=No.Da;cr%2===0&&cr!==tt-1?kn=Math.max(kn,(x?ia.width:ia.height)+a.computeBusNodeSpacing(No)-Ct):cr%2!==0&&(wr=Math.max(wr,(x?ia.width:ia.height)+a.computeBusNodeSpacing(No)-Ct))}else tt===1&&(kn=x?E[0].Da.width:E[0].Da.height);if(rt)switch(lt){case Ec:case Fd:ge=135>b?hx(a,y,E,kn,le,ge):dx(a,y,E,kn,le,ge),kn=ge.x,le=ge.width,ge=ge.height;break;case Lc:for(vt=0;vt<tt;vt++)Dt=E[vt],Ee=Dt.Da,wr=Si===0?0:Qt,x?(Dt.S.h(z-Ee.width,ci+wr),le=Math.max(le,Ee.width),ge=Math.max(ge,ci+wr+Ee.height),ci+=wr+Ee.height):(Dt.S.h(Xe+wr,z-Ee.height),le=Math.max(le,Xe+wr+Ee.width),ge=Math.max(ge,Ee.height),Xe+=wr+Ee.width),Si++;break;case Qd:for(z=0;z<tt;z++)vt=E[z],Dt=vt.Da,Ee=Si===0?0:Qt,x?(vt.S.h(Ct/2+y.focus.x,ci+Ee),le=Math.max(le,Dt.width),ge=Math.max(ge,ci+Ee+Dt.height),ci+=Ee+Dt.height):(vt.S.h(Xe+Ee,Ct/2+y.focus.y),le=Math.max(le,Xe+Ee+Dt.width),ge=Math.max(ge,Dt.height),Xe+=Ee+Dt.width),Si++}else for(wr=0;wr<tt;wr++)cr=E[wr],No=cr.Da,x?(0<vt&&0<Si&&Xe+Ct+No.width>vt&&(Xe<z&&Df(y,lt,z-Xe,0,$n,wr-1),Ei++,Si=0,$n=wr,Ee=ge,Xe=0,ci=135<b?-ge-Qt:ge+Qt),ia=Si===0?Dt:Ct,I0(a,cr,0,ci),cr.S.h(Xe+ia,ci),le=Math.max(le,Xe+ia+No.width),ge=Math.max(ge,Ee+(Ei===0?0:Qt)+No.height),Xe+=ia+No.width):(0<vt&&0<Si&&ci+Ct+No.height>vt&&(ci<z&&Df(y,lt,0,z-ci,$n,wr-1),Ei++,Si=0,$n=wr,Ee=le,ci=0,Xe=135<b?-le-Qt:le+Qt),ia=Si===0?Dt:Ct,I0(a,cr,Xe,0),cr.S.h(Xe,ci+ia),ge=Math.max(ge,ci+ia+No.height),le=Math.max(le,Ee+(Ei===0?0:Qt)+No.width),ci+=ia+No.height),Si++;switch(0<Ei&&(x?(ge+=Math.max(0,ot),Xe<le&&Df(y,lt,le-Xe,0,$n,tt-1),0<Wt&&(ft||sg(y,Wt,0,0,tt-1),le+=Wt)):(le+=Math.max(0,ot),ci<ge&&Df(y,lt,0,ge-ci,$n,tt-1),0<Wt&&(ft||sg(y,0,Wt,0,tt-1),ge+=Wt))),Wt=ft=0,lt){case Jg:x?ft+=le/2-y.focus.x-Et/2:Wt+=ge/2-y.focus.y-Et/2;break;case ug:0<Ei?x?ft+=le/2-y.focus.x-Et/2:Wt+=ge/2-y.focus.y-Et/2:x?(a=E[0].S.x+E[0].la.x,ft+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-Et/2):(a=E[0].S.y+E[0].la.y,Wt+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-Et/2);break;case Ad:x?(ft-=Et,le+=Et):(Wt-=Et,ge+=Et);break;case kd:x?(ft+=le-y.width+Et,le+=Et):(Wt+=ge-y.height+Et,ge+=Et);break;case Ec:case Fd:x?1<tt?ft+=kn+Ct/2-y.focus.x:ft+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?Wt+=kn+Ct/2-y.focus.y:Wt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Lc:x?ft+=le+Ct/2-y.focus.x:Wt+=ge+Ct/2-y.focus.y;break;case Qd:break;default:a=a.customAlignment(y,ft,Wt,le,ge),ft=a[0],Wt=a[1],le=a[2],ge=a[3]}for(a=0;a<tt;a++)Et=E[a],x?Et.S.h(Et.S.x+Et.la.x-ft,Et.S.y+(135<b?(rt?-ge:-Et.Da.height)+Et.la.y-ot:ae+ot+Et.la.y)):Et.S.h(Et.S.x+(135<b?(rt?-le:-Et.Da.width)+Et.la.x-ot:ut+ot+Et.la.x),Et.S.y+Et.la.y-Wt);x?(le=ky(y,le,ft),0>ft&&(ft=0),135<b&&(Wt+=ge+ot),ge=Math.max(Math.max(ge,ae),ge+ae+ot)):(135<b&&(ft+=le+ot),le=Math.max(Math.max(le,ut),le+ut+ot),ge=Fy(y,ge,Wt),0>Wt&&(Wt=0)),y.la.h(ft,Wt),y.Da.h(le,ge)}}to.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new ln(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ln(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Nh(y)===90,ut=0,ft=0,vt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var Et=x[Ct],Dt=Et.Da,Qt=ut===0?0:ot;if(lt){var Wt=a.computeBusNodeSpacing(Et)-rt;Et.S.h(b-(Dt.width+Wt),vt+Qt),E=Math.max(E,Dt.width+Wt),z=Math.max(z,vt+Qt+Dt.height),vt+=Qt+Dt.height}else Wt=a.computeBusNodeSpacing(Et)-rt,Et.S.h(ft+Qt,b-(Dt.height+Wt)),z=Math.max(z,Dt.height+Wt),E=Math.max(E,ft+Qt+Dt.width),ft+=Qt+Dt.width;ut++}for(ut=0,Et=ft,Ct=vt,lt?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Dt=0;Dt<tt;Dt++)if(Dt%2!==0){Qt=x[Dt],Wt=Qt.Da;var ae=ut===0?0:ot;if(lt){var le=a.computeBusNodeSpacing(Qt)-rt;Qt.S.h(ft+le,vt+ae),E=Math.max(E,ft+Wt.width+le),z=Math.max(z,vt+ae+Wt.height),vt+=ae+Wt.height}else le=a.computeBusNodeSpacing(Qt)-rt,Qt.S.h(ft+ae,vt+le),E=Math.max(E,ft+ae+Wt.width),z=Math.max(z,vt+Wt.height+le),ft+=ae+Wt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,lt?Math.max(Math.abs(Ct),Math.abs(vt)):Math.max(Math.abs(Et),Math.abs(ft))),lt?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),lt=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,lt+tt.width),0>lt&&(E-=lt),z=Math.max(z,Math.max(Ct,vt)+a+tt.height),0>x.S.x&&(b=O0(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Et,ft)+a+tt.width),vt=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(b=O0(y,x.S.y,!0,b,rt)))),new ln(b,0,E,z)}function dx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new ln(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ln(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Nh(y)===270,ut=0,ft=0,vt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var Et=x[Ct],Dt=Et.Da,Qt=ut===0?0:ot;if(lt){var Wt=a.computeBusNodeSpacing(Et)-rt;vt-=Qt+Dt.height,Et.S.h(b-(Dt.width+Wt),vt),E=Math.max(E,Dt.width+Wt),z=Math.max(z,Math.abs(vt))}else Wt=a.computeBusNodeSpacing(Et)-rt,ft-=Qt+Dt.width,Et.S.h(ft,b-(Dt.height+Wt)),z=Math.max(z,Dt.height+Wt),E=Math.max(E,Math.abs(ft));ut++}for(ut=0,Et=ft,Ct=vt,lt?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Dt=0;Dt<tt;Dt++)if(Dt%2!==0){Qt=x[Dt],Wt=Qt.Da;var ae=ut===0?0:ot;if(lt){var le=a.computeBusNodeSpacing(Qt)-rt;vt-=ae+Wt.height,Qt.S.h(ft+le,vt),E=Math.max(E,ft+Wt.width+le),z=Math.max(z,Math.abs(vt))}else le=a.computeBusNodeSpacing(Qt)-rt,ft-=ae+Wt.width,Qt.S.h(ft,vt+le),z=Math.max(z,vt+Wt.height+le),E=Math.max(E,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(ot=x[tt-1],ut=ot.Da,a=a.computeBusLastRowSpacing(ot,lt?Math.max(Math.abs(Ct),Math.abs(vt)):Math.max(Math.abs(Et),Math.abs(ft))),lt?(ot.S.h(b+rt/2-ot.focus.x-ot.la.x,-z-ut.height-a),ft=b+rt/2-ot.focus.x-ot.la.x,E=Math.max(E,ft+ut.width),0>ft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(Ct,vt))+a+ut.height),0>ot.S.x&&(b=O0(y,ot.S.x,!1,b,rt))):(ot.S.h(-E-ut.width-a,b+rt/2-ot.focus.y-ot.la.y),E=Math.max(E,Math.abs(Math.min(Et,ft))+a+ut.width),vt=b+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>ot.S.y&&(b=O0(y,ot.S.y,!0,b,rt)))),y=0;y<tt;y++)rt=x[y],lt?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+E,rt.S.y);return new ln(b,0,E,z)}to.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},to.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function O0(a,y,x,b,E){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function ky(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ad:return a.width>y?a.width:y;case kd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ec:case Fd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Lc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Qd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ad:return a.height>y?a.height:y;case kd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ec:case Fd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Lc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Qd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case Jg:y/=2,x/=2;break;case ug:y/=2,x/=2;break;case Ad:x=y=0;break;case kd:break;default:Ce("Unhandled alignment value "+a.toString())}return new Vt(y,x)}function Df(a,y,x,b,E,z){y=Ny(y,x,b),sg(a,y.x,y.y,E,z)}function sg(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function I0(a,y,x,b){var E=y.parent;switch(a.ud){case Md:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case lg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Ce("Unhandled path value "+a.ud.toString())}}function R0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function cx(a,y,x,b,E,z,tt,rt){var ot=Nh(y),lt=ot===90||ot===270,ut=y.nodeSpacing;y=b;var ft=E;b=z;var vt=tt,Ct=x.Yo,Et=x.kp;tt=x.Da;var Dt=lt?Math.max(vt,tt.height):Math.max(b,tt.width);if((Ct===null||ot!==Nh(x))&&(Ct=mu(a,2),Et=mu(a,2),lt?(Ct[0].h(0,0),Ct[1].h(0,tt.height),Et[0].h(tt.width,0),Et[1].h(Et[0].x,Ct[1].y)):(Ct[0].h(0,0),Ct[1].h(tt.width,0),Et[0].h(0,tt.height),Et[1].h(Ct[1].x,Et[0].y))),lt){if(vt=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;){z=ft[x];var Qt=Ct[E];ot=Qt.x,lt=Qt.y,ot+=b;var Wt=z;x+1<ft.length&&(Wt=ft[x+1]);var ae=Qt;Qt=ae.x,ae=ae.y,E+1<Ct.length&&(ae=Ct[E+1],Qt=ae.x,ae=ae.y,Qt+=b);var le=vt;z.y===lt?le=ot-z.x:z.y>lt&&z.y<ae?le=ot+(z.y-lt)/(ae-lt)*(Qt-ot)-z.x:lt>z.y&<<Wt.y&&(le=ot-(z.x+(lt-z.y)/(Wt.y-z.y)*(Wt.x-z.x))),le<vt&&(vt=le),Wt.y<=z.y?x++:ae<=lt?E++:(Wt.y<=ae&&x++,ae<=Wt.y&&E++)}if(vt=b-vt,vt+=ut,x=Ct,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=mu(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].y<y[0].y;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(;ot<y.length;)lt=y[ot++],ut[b++].h(lt.x,lt.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=mu(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);Uh(a,ut),b=x}if(z=Et,ot=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=mu(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].y<z[0].y;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x+ot,Wt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=mu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Uh(a,ut),E=z}return z=Math.max(0,vt)+tt.width,tt=Dt,Uh(a,y),Uh(a,Ct),Uh(a,ft),Uh(a,Et),rt[0]=b,rt[1]=E,new ln(vt,0,z,tt)}if(b=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;)z=ft[x],Qt=Ct[E],ot=Qt.x,lt=Qt.y,lt+=vt,Wt=z,x+1<ft.length&&(Wt=ft[x+1]),ae=Qt,Qt=ae.x,ae=ae.y,E+1<Ct.length&&(ae=Ct[E+1],Qt=ae.x,ae=ae.y,ae+=vt),le=b,z.x===ot?le=lt-z.y:z.x>ot&&z.x<Qt?le=lt+(z.x-ot)/(Qt-ot)*(ae-lt)-z.y:ot>z.x&&ot<Wt.x&&(le=lt-(z.y+(ot-z.x)/(Wt.x-z.x)*(Wt.y-z.y))),le<b&&(b=le),Wt.x<=z.x?x++:Qt<=ot?E++:(Wt.x<=Qt&&x++,Qt<=Wt.x&&E++);if(vt-=b,vt+=ut,x=Ct,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=mu(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].x<y[0].x;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(;ot<y.length;)lt=y[ot++],ut[b++].h(lt.x,lt.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=mu(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);Uh(a,ut),b=x}if(z=Et,ot=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=mu(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].x<z[0].x;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x,Wt.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=mu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Uh(a,ut),E=z}return z=Dt,tt=Math.max(0,vt)+tt.height,Uh(a,y),Uh(a,Ct),Uh(a,ft),Uh(a,Et),rt[0]=b,rt[1]=E,new ln(vt,0,z,tt)}function mu(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Vt;return a}function Uh(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}to.prototype.arrangeTrees=function(){if(this.Rb===Z0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof ph){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof ph&&a.push(x);switch(this.sorting){case Xg:break;case _p:a.reverse();break;case tm:a.sort(this.comparer);break;case em:a.sort(this.comparer),a.reverse();break;default:Ce("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Ty(this,E,y+E.la.x,x+E.la.y),this.Rb){case W0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:Ce("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var tt=y[z];Ty(a,tt,x+tt.S.x,b+tt.S.y)}}}to.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},to.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},to.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Vt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Vt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,E.push(new ln(0,z,x,rt))):this.angle===90?(E.push(new ln(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new ln(z,0,rt,x))):(E.push(new ln(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},to.prototype.commitLayers=function(){},to.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},to.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof ph&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}to.prototype.setPortSpots=function(a){var y=a.alignment;if(nf(y)){var x=this.ud===Md,b=Nh(a);switch(b){case 0:var E=Ls;break;case 90:E=Ps;break;case 180:E=ls;break;default:E=_a}var z=a.children,tt=z.length;switch(y){case Ec:case Fd:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var ot=b===90||b===270?ls:_a;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:ot=ls;break;case 90:ot=_a;break;case 180:ot=Ls;break;default:ot=Ps}else y%2===0&&(ot=b===90||b===270?Ls:Ps);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case Lc:for(b=b===90||b===270?Ls:Ps,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case Qd:for(b=b===90||b===270?ls:_a,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=Nh(a),this.ud===Md){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ls;break;case 90:b.fromSpot=Ps;break;case 180:b.fromSpot=ls;break;default:b.fromSpot=_a}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ls;break;case 90:b.toSpot=_a;break;case 180:b.toSpot=Ls;break;default:b.toSpot=Ps}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ls;break;case 90:b.toSpot=Ps;break;case 180:b.toSpot=ls;break;default:b.toSpot=_a}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ls;break;case 90:b.fromSpot=_a;break;case 180:b.fromSpot=Ls;break;default:b.fromSpot=Ps}else b.fromSpot=a.childPortSpot}};function Nh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}to.prototype.computeLayerSpacing=function(a){var y=Nh(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},to.prototype.computeNodeIndent=function(a){var y=Nh(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},fe.Object.defineProperties(to.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==H0&&a!==By&&a!==Dy&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==G0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==W0&&a!==Iy&&a!==Z0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Xg&&a!==_p&&a!==tm&&!em||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Ce("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==j0&&a!==nm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Xg&&a!==_p&&a!==tm&&!em||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==j0&&a!==nm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var z0=new Oe(to,"PathDefault",-1),Md=new Oe(to,"PathDestination",0),lg=new Oe(to,"PathSource",1),Xg=new Oe(to,"SortingForwards",10),_p=new Oe(to,"SortingReverse",11),tm=new Oe(to,"SortingAscending",12),em=new Oe(to,"SortingDescending",13),Jg=new Oe(to,"AlignmentCenterSubtrees",20),ug=new Oe(to,"AlignmentCenterChildren",21),Ad=new Oe(to,"AlignmentStart",22),kd=new Oe(to,"AlignmentEnd",23),Ec=new Oe(to,"AlignmentBus",24),Fd=new Oe(to,"AlignmentBusBranching",25),Lc=new Oe(to,"AlignmentTopLeftBus",26),Qd=new Oe(to,"AlignmentBottomRightBus",27),j0=new Oe(to,"CompactionNone",30),nm=new Oe(to,"CompactionBlock",31),H0=new Oe(to,"StyleLayered",40),Dy=new Oe(to,"StyleLastParents",41),By=new Oe(to,"StyleAlternating",42),Oy=new Oe(to,"StyleRootOnly",43),W0=new Oe(to,"ArrangementVertical",50),Iy=new Oe(to,"ArrangementHorizontal",51),Z0=new Oe(to,"ArrangementFixedRoots",52),Ry=new Oe(to,"LayerIndividual",60),zy=new Oe(to,"LayerSiblings",61),G0=new Oe(to,"LayerUniform",62);to.className="TreeLayout",to.PathDefault=z0,to.PathDestination=Md,to.PathSource=lg,to.SortingForwards=Xg,to.SortingReverse=_p,to.SortingAscending=tm,to.SortingDescending=em,to.AlignmentCenterSubtrees=Jg,to.AlignmentCenterChildren=ug,to.AlignmentStart=Ad,to.AlignmentEnd=kd,to.AlignmentBus=Ec,to.AlignmentBusBranching=Fd,to.AlignmentTopLeftBus=Lc,to.AlignmentBottomRightBus=Qd,to.CompactionNone=j0,to.CompactionBlock=nm,to.StyleLayered=H0,to.StyleLastParents=Dy,to.StyleAlternating=By,to.StyleRootOnly=Oy,to.ArrangementVertical=W0,to.ArrangementHorizontal=Iy,to.ArrangementFixedRoots=Z0,to.LayerIndividual=Ry,to.LayerSiblings=zy,to.LayerUniform=G0;function hg(a){aa.call(this,a)}Ze(hg,aa),hg.prototype.createVertex=function(){return new ph(this)},hg.prototype.createEdge=function(){return new Qg(this)},hg.className="TreeNetwork";function ph(a){zs.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Vt(0,0),this.Da=new ei(0,0),this.la=new Vt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xg,this.hd=ry,this.Kb=0,this.Jb=ug,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bo,this.wr=!0,this.Dp=Bo}Ze(ph,zs),ph.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},fe.Object.defineProperties(ph.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)}}}),ph.className="TreeVertex";function Qg(a){Au.call(this,a),this.$t=new Vt(0,0)}Ze(Qg,Au),Qg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Md:x=this.fromVertex,b=this.toVertex;break;case lg:x=this.toVertex,b=this.fromVertex;break;default:Ce("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=Nh(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===ju,lt=a.isOrthogonal,ut;if(a.uh(),lt||ot){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),vt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),vt=a.i(a.pointsCount-1)}var Ct=a.i(a.pointsCount-1);z===0?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+(E.x-rt),z),ut++,a.m(ut,vt.x,z)):(lt&&(a.m(ut,b.right+tt/2,ft.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===kd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)),ut++,a.m(ut,z,vt.y)):(lt&&(a.m(ut,ft.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(lt?rt/2:rt)),ut++,lt&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+(E.x+rt),z),ut++,a.m(ut,vt.x,z)):(lt&&(a.m(ut,b.left-tt/2,ft.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===kd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+(E.y+rt)),ut++,a.m(ut,z,vt.y)):(lt&&(a.m(ut,ft.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(lt?rt/2:rt)),ut++,lt&&a.m(ut,vt.x,a.i(ut-1).y))):Ce("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Nh(x),y!==Nh(E)&&(tt=b.computeLayerSpacing(x),rt=x.bounds,x=E.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===ju,E=a.isOrthogonal,b=nf(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},fe.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",zn.prototype.initializeStandardTools=function(){this.gb("Action",new ur,this.mouseDownTools),this.gb("Relinking",new yi,this.mouseDownTools),this.gb("LinkReshaping",new wi,this.mouseDownTools),this.gb("Rotating",new Fr,this.mouseDownTools),this.gb("Resizing",new pr,this.mouseDownTools),this.gb("Linking",new jn,this.mouseMoveTools),this.gb("Dragging",new ji,this.mouseMoveTools),this.gb("DragSelecting",new mr,this.mouseMoveTools),this.gb("Panning",new Gi,this.mouseMoveTools),this.gb("ContextMenu",new lo,this.mouseUpTools),this.gb("TextEditing",new _r,this.mouseUpTools),this.gb("ClickCreating",new Ir,this.mouseUpTools),this.gb("ClickSelecting",new bo,this.mouseUpTools)},ld("Horizontal",new ym),ld("Spot",new xm),ld("Table",new Pm),ld("Viewbox",new Em),ld("TableRow",new Cm),ld("TableColumn",new bm),ld("Graduated",new yp),ld("Grid",new vp),Zh.add("GraphLinksModel",$s),Zh.add("TreeModel",_u);var K0=ue.go,jy={get licenseKey(){return Ye.licenseKey},set licenseKey(a){Ye.licenseKey=a},get version(){return Ye.version},Group:Pr,EnumValue:Oe,List:wn,Set:An,Map:Ci,Point:Vt,Size:ei,Rect:ln,Margin:Zi,Spot:Fi,Geometry:ni,PathFigure:Cs,PathSegment:vo,InputEvent:ze,DiagramEvent:We,ChangedEvent:dn,Model:Di,GraphLinksModel:po,TreeModel:Vl,Binding:ps,Transaction:Ri,UndoManager:ui,CommandHandler:Jt,Tool:si,DraggingTool:ji,DraggingInfo:Kd,DraggingOptions:at,LinkingBaseTool:Ve,LinkingTool:jn,RelinkingTool:yi,LinkReshapingTool:wi,ResizingTool:pr,RotatingTool:Fr,ClickSelectingTool:bo,ActionTool:ur,ClickCreatingTool:Ir,HTMLInfo:ar,ContextMenuTool:lo,DragSelectingTool:mr,PanningTool:Gi,TextEditingTool:_r,ToolManager:zn,Animation:Wa,AnimationManager:ya,AnimationTrigger:ql,Layer:ba,Diagram:Ye,Palette:ct,Overview:pt,Brush:Zo,GraphObject:Me,Panel:Yn,RowColumnDefinition:Ns,Shape:Tr,TextBlock:oa,Picture:iu,Part:Hi,Adornment:Mo,Node:fi,Link:_n,Placeholder:Wl,Layout:Aa,LayoutNetwork:aa,LayoutVertex:zs,LayoutEdge:Au,GridLayout:ol,PanelLayout:Rs,CircularLayout:Za,CircularNetwork:Vg,CircularVertex:Yp,CircularEdge:b0,ForceDirectedLayout:pl,ForceDirectedNetwork:ag,ForceDirectedVertex:Up,ForceDirectedEdge:Xp,LayeredDigraphLayout:Ko,LayeredDigraphNetwork:Ug,LayeredDigraphVertex:eh,LayeredDigraphEdge:$p,TreeLayout:to,TreeNetwork:hg,TreeVertex:ph,TreeEdge:Qg};typeof K0=="object"&&K0.version&&Bi("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+jy.version),Ye.prototype.go=jy,ue.go=jy,typeof On.exports=="object"&&(On.exports=typeof yt.g!="undefined"?yt.g.go:self.go)}();var At=typeof yt.g!="undefined"?yt.g.go:self.go;const zt=typeof yt.g!="undefined"?yt.g.go:self.go,re=zt.Group,Ae=zt.EnumValue,Ut=zt.List,ne=zt.Set,Ft=zt.Map,De=zt.Point,Pe=zt.Size,oe=zt.Rect,Re=zt.Margin,de=zt.Spot,be=zt.Geometry,Nt=zt.PathFigure,et=zt.PathSegment,nt=zt.InputEvent,ht=zt.DiagramEvent,st=zt.ChangedEvent,gt=zt.Model,mt=zt.GraphLinksModel,Pt=zt.TreeModel,kt=zt.Binding,wt=zt.Transaction,Ot=zt.UndoManager,jt=zt.CommandHandler,Ht=zt.Tool,$t=zt.DraggingTool,ye=zt.DraggingInfo,Yt=zt.LinkingBaseTool,Ge=zt.LinkingTool,ce=zt.RelinkingTool,$e=zt.LinkReshapingTool,Ue=zt.ResizingTool,Ke=zt.RotatingTool,tn=zt.ClickSelectingTool,Tn=zt.ActionTool,ve=zt.ClickCreatingTool,Zt=zt.HTMLInfo,en=zt.ContextMenuTool,Kn=zt.DragSelectingTool,ii=zt.PanningTool,Be=zt.TextEditingTool,on=zt.ToolManager,un=zt.Animation,Jn=zt.AnimationManager,nn=zt.AnimationTrigger,Gn=zt.Layer,pe=zt.Diagram,Xn=zt.Palette,oi=zt.Overview,te=zt.Brush,bt=zt.GraphObject,xt=zt.Panel,Tt=zt.RowColumnDefinition,Bt=zt.Shape,St=zt.TextBlock,he=zt.TextBlockMetrics,Le=zt.Picture,Gt=zt.Part,ee=zt.Adornment,xe=zt.Node,we=zt.Link,se=zt.Placeholder,ke=zt.Layout,vn=zt.LayoutNetwork,cn=zt.LayoutVertex,Je=zt.LayoutEdge,hn=zt.GridLayout,Vn=zt.PanelLayout,Se=zt.CircularLayout,qe=zt.CircularNetwork,Qe=zt.CircularVertex,Nn=zt.CircularEdge,hi=zt.ForceDirectedLayout,mi=zt.ForceDirectedNetwork,gi=zt.ForceDirectedVertex,Pi=zt.ForceDirectedEdge,_i=zt.LayeredDigraphLayout,vr=zt.LayeredDigraphNetwork,gr=zt.LayeredDigraphVertex,fr=zt.LayeredDigraphEdge,eo=zt.TreeLayout,Jr=zt.TreeNetwork,Xi=zt.TreeVertex,$r=zt.TreeEdge,Ki=zt.version},2859:function(On,Cn,yt){"use strict";yt.d(Cn,{hP:function(){return oi}});var At=function(te,bt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Tt){xt.__proto__=Tt}||function(xt,Tt){for(var Bt in Tt)Object.prototype.hasOwnProperty.call(Tt,Bt)&&(xt[Bt]=Tt[Bt])})(te,bt)};function zt(te,bt){function xt(){this.constructor=te}At(te,bt),te.prototype=bt===null?Object.create(bt):(xt.prototype=bt.prototype,new xt)}function re(te,bt,xt,Tt){return new(xt||(xt=Promise))(function(Bt,St){function he(ee){try{Gt(Tt.next(ee))}catch(xe){St(xe)}}function Le(ee){try{Gt(Tt.throw(ee))}catch(xe){St(xe)}}function Gt(ee){var xe;ee.done?Bt(ee.value):(xe=ee.value,xe instanceof xt?xe:new xt(function(we){we(xe)})).then(he,Le)}Gt((Tt=Tt.apply(te,bt||[])).next())})}function Ae(te,bt){var xt,Tt,Bt,St,he={label:0,sent:function(){if(1&Bt[0])throw Bt[1];return Bt[1]},trys:[],ops:[]};return St={next:Le(0),throw:Le(1),return:Le(2)},typeof Symbol=="function"&&(St[Symbol.iterator]=function(){return this}),St;function Le(Gt){return function(ee){return function(xe){if(xt)throw new TypeError("Generator is already executing.");for(;he;)try{if(xt=1,Tt&&(Bt=2&xe[0]?Tt.return:xe[0]?Tt.throw||((Bt=Tt.return)&&Bt.call(Tt),0):Tt.next)&&!(Bt=Bt.call(Tt,xe[1])).done)return Bt;switch(Tt=0,Bt&&(xe=[2&xe[0],Bt.value]),xe[0]){case 0:case 1:Bt=xe;break;case 4:return he.label++,{value:xe[1],done:!1};case 5:he.label++,Tt=xe[1],xe=[0];continue;case 7:xe=he.ops.pop(),he.trys.pop();continue;default:if(Bt=he.trys,!((Bt=Bt.length>0&&Bt[Bt.length-1])||xe[0]!==6&&xe[0]!==2)){he=0;continue}if(xe[0]===3&&(!Bt||xe[1]>Bt[0]&&xe[1]<Bt[3])){he.label=xe[1];break}if(xe[0]===6&&he.label<Bt[1]){he.label=Bt[1],Bt=xe;break}if(Bt&&he.label<Bt[2]){he.label=Bt[2],he.ops.push(xe);break}Bt[2]&&he.ops.pop(),he.trys.pop();continue}xe=bt.call(te,he)}catch(we){xe=[6,we],Tt=0}finally{xt=Bt=0}if(5&xe[0])throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}([Gt,ee])}}}function Ut(){for(var te=0,bt=0,xt=arguments.length;bt<xt;bt++)te+=arguments[bt].length;var Tt=Array(te),Bt=0;for(bt=0;bt<xt;bt++)for(var St=arguments[bt],he=0,Le=St.length;he<Le;he++,Bt++)Tt[Bt]=St[he];return Tt}var ne=function(){function te(){}return te.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},te.setAttributes=function(bt,xt){for(var Tt=0,Bt=xt;Tt<Bt.length;Tt++){var St=Bt[Tt],he=St[0],Le=St[1];bt.setAttribute(he,Le)}},te.createRect=function(bt,xt,Tt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Bt.setAttribute("width",bt.toString()),Bt.setAttribute("height",xt.toString()),Tt&&te.setAttributes(Bt,Tt),Bt},te.createLine=function(bt,xt,Tt,Bt,St){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",bt.toString()),he.setAttribute("y1",xt.toString()),he.setAttribute("x2",Tt.toString()),he.setAttribute("y2",Bt.toString()),St&&te.setAttributes(he,St),he},te.createPolygon=function(bt,xt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Tt.setAttribute("points",bt),xt&&te.setAttributes(Tt,xt),Tt},te.createCircle=function(bt,xt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Tt.setAttribute("cx",(bt/2).toString()),Tt.setAttribute("cy",(bt/2).toString()),Tt.setAttribute("r",bt.toString()),xt&&te.setAttributes(Tt,xt),Tt},te.createEllipse=function(bt,xt,Tt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Bt.setAttribute("cx",(bt/2).toString()),Bt.setAttribute("cy",(xt/2).toString()),Bt.setAttribute("rx",(bt/2).toString()),Bt.setAttribute("ry",(xt/2).toString()),Tt&&te.setAttributes(Bt,Tt),Bt},te.createGroup=function(bt){var xt=document.createElementNS("http://www.w3.org/2000/svg","g");return bt&&te.setAttributes(xt,bt),xt},te.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},te.createMarker=function(bt,xt,Tt,Bt,St,he,Le){var Gt=document.createElementNS("http://www.w3.org/2000/svg","marker");return te.setAttributes(Gt,[["id",bt],["orient",xt],["markerWidth",Tt.toString()],["markerHeight",Bt.toString()],["refX",St.toString()],["refY",he.toString()]]),Gt.appendChild(Le),Gt},te.createText=function(bt){var xt=document.createElementNS("http://www.w3.org/2000/svg","text");return xt.setAttribute("x","0"),xt.setAttribute("y","0"),bt&&te.setAttributes(xt,bt),xt},te.createTSpan=function(bt,xt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Tt.textContent=bt,xt&&te.setAttributes(Tt,xt),Tt},te.createImage=function(bt){var xt=document.createElementNS("http://www.w3.org/2000/svg","image");return bt&&te.setAttributes(xt,bt),xt},te.createPoint=function(bt,xt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Tt.x=bt,Tt.y=xt,Tt},te.createPath=function(bt,xt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","path");return Tt.setAttribute("d",bt),xt&&te.setAttributes(Tt,xt),Tt},te}(),Ft=function(){function te(){}return te.addKey=function(bt){te.key=bt},Object.defineProperty(te,"isLicensed",{get:function(){return!!te.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(te.key)},enumerable:!1,configurable:!0}),te}(),De=function(){function te(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return te.prototype.rasterize=function(bt,xt,Tt){var Bt=this;return new Promise(function(St){var he=Tt!==void 0?Tt:document.createElement("canvas");bt===null&&(Bt.markersOnly=!0,Bt.naturalSize=!1);var Le=document.createElementNS("http://www.w3.org/2000/svg","svg");Le.setAttribute("xmlns","http://www.w3.org/2000/svg"),Le.setAttribute("width",xt.width.baseVal.valueAsString),Le.setAttribute("height",xt.height.baseVal.valueAsString),Le.setAttribute("viewBox","0 0 "+xt.viewBox.baseVal.width.toString()+" "+xt.viewBox.baseVal.height.toString()),Le.innerHTML=xt.innerHTML,Bt.naturalSize===!0?(Le.width.baseVal.value=bt.naturalWidth,Le.height.baseVal.value=bt.naturalHeight):Bt.width!==void 0&&Bt.height!==void 0&&(Le.width.baseVal.value=Bt.width,Le.height.baseVal.value=Bt.height),he.width=Le.width.baseVal.value,he.height=Le.height.baseVal.value;var Gt=Le.outerHTML,ee=he.getContext("2d");Bt.markersOnly!==!0&&ee.drawImage(bt,0,0,he.width,he.height);var xe=window.URL,we=new Image(he.width,he.height);we.setAttribute("crossOrigin","anonymous");var se=new Blob([Gt],{type:"image/svg+xml"}),ke=xe.createObjectURL(se);we.onload=function(){ee.drawImage(we,0,0),xe.revokeObjectURL(ke);var vn=he.toDataURL(Bt.imageType,Bt.imageQuality);St(vn)},we.src=ke})},te}(),Pe=function(){},oe=function(){function te(bt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+bt+"_"}return Object.defineProperty(te.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(te.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(te.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),te.prototype.addClass=function(bt){return this.styleSheet===void 0&&this.addStyleSheet(),bt.name=""+this.classNamePrefix+bt.localName,this.classes.push(bt),this.styleSheet.sheet.insertRule("."+bt.name+" {"+bt.style+"}",this.styleSheet.sheet.cssRules.length),bt},te.prototype.addRule=function(bt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(bt),this.styleSheet.sheet.insertRule(bt.selector+" {"+bt.style+"}",this.styleSheet.sheet.cssRules.length)},te.prototype.addStyleSheet=function(){var bt;this.styleSheet=document.createElement("style"),((bt=this.styleSheetRoot)!==null&&bt!==void 0?bt:document.head).appendChild(this.styleSheet),this.addRule(new Re("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new de("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new de("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},te.prototype.removeStyleSheet=function(){var bt;this.styleSheet&&(((bt=this.styleSheetRoot)!==null&&bt!==void 0?bt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},te}(),Re=function(te,bt){this.selector=te,this.style=bt},de=function(te,bt){this.localName=te,this.style=bt},be=function(){function te(bt,xt,Tt,Bt,St){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=bt,this.displayMode=xt,this.markerItems=Tt,this.uiStyleSettings=Bt,this.styles=St,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return te.prototype.show=function(bt){var xt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=bt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Tt=document.createElement("div");Tt.className=this.toolbarBlockStyleClass.name,Tt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Tt),this.addActionButton(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(St){var he=document.createElement("div");he.className=""+xt.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",St.typeName),he.innerHTML=St.icon,he.addEventListener("click",function(){xt.markerToolbarButtonClicked(he,St)}),xt.buttons.push(he),xt.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Bt=document.createElement("div");Bt.className=this.toolbarBlockStyleClass.name,Bt.style.whiteSpace="nowrap",Bt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Bt),this.addActionButton(Bt,'<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(Bt,'<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()},te.prototype.addButtonClickListener=function(bt){this.buttonClickListeners.push(bt)},te.prototype.removeButtonClickListener=function(bt){this.buttonClickListeners.indexOf(bt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(bt),1)},te.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},te.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var bt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt<this.markerButtons.length;xt++)xt<bt||xt===bt&&this.markerButtons.length-1===bt?this.markerButtonBlock.appendChild(this.markerButtons[xt]):(xt===bt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xt]))}},te.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")},te.prototype.resetButtonStyles=function(){var bt=this;this.buttons.forEach(function(xt){xt.className=xt.className.replace(bt.uiStyleSettings.toolbarButtonStyleColorsClassName?bt.uiStyleSettings.toolbarButtonStyleColorsClassName:bt.toolbarButtonStyleColorsClass.name,"").trim(),xt.className=xt.className.replace(bt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?bt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:bt.toolbarActiveButtonStyleColorsClass.name,"").trim(),xt.className+=" "+(bt.uiStyleSettings.toolbarButtonStyleColorsClassName?bt.uiStyleSettings.toolbarButtonStyleColorsClassName:bt.toolbarButtonStyleColorsClass.name)})},te.prototype.addActionButton=function(bt,xt,Tt){var Bt=this,St=document.createElement("div");switch(St.className=""+this.toolbarButtonStyleClass.name,St.innerHTML=xt,St.setAttribute("data-action",Tt),St.addEventListener("click",function(){Bt.actionToolbarButtonClicked(St,Tt)}),Tt){case"select":St.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":St.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":St.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":St.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":St.style.fill=this.uiStyleSettings.closeButtonColor}bt.appendChild(St),this.buttons.push(St)},te.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new de("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 de("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new de("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new de("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 de("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var bt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new de("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
|
|
|
padding: `+bt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new de("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Re("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Re("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},te.prototype.markerToolbarButtonClicked=function(bt,xt){this.setActiveButton(bt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("marker",xt)}),this.markerButtonOverflowBlock.style.display="none"},te.prototype.actionToolbarButtonClicked=function(bt,xt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("action",xt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},te.prototype.setActiveButton=function(bt){this.resetButtonStyles(),bt.className=bt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),bt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},te.prototype.setActiveMarkerButton=function(bt){var xt=this.markerButtons.find(function(Tt){return Tt.getAttribute("data-type-name")===bt});xt&&this.setActiveButton(xt)},te.prototype.setCurrentMarker=function(bt){var xt=this;this.currentMarker=bt,this.buttons.filter(function(Tt){return/delete|notes/.test(Tt.getAttribute("data-action"))}).forEach(function(Tt){xt.currentMarker===void 0?(Tt.style.fillOpacity="0.4",Tt.style.pointerEvents="none"):(Tt.style.fillOpacity="1",Tt.style.pointerEvents="all")})},te}(),Nt=function(){function te(bt,xt,Tt,Bt){this.panels=[],this.panelButtons=[],this.markerjsContainer=bt,this.displayMode=xt,this.uiStyleSettings=Tt,this.styles=Bt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return te.prototype.addStyles=function(){var bt;this.toolboxStyleClass=this.styles.addClass(new de("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 de("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new de("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new de("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new de("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 de("toolbox-panel-row_colors",`
|
|
|
background-color: `+((bt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&bt!==void 0?bt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new de("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
|
padding: `+xt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new de("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Re("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Re("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},te.prototype.show=function(bt){var xt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=bt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},te.prototype.setPanelButtons=function(bt){var xt,Tt,Bt=this;this.panels=bt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Tt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Tt!==void 0?Tt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(St){var he;St.uiStyleSettings=Bt.uiStyleSettings;var Le=document.createElement("div");Le.className=Bt.toolboxButtonStyleClass.name+" "+((he=Bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:Bt.toolboxButtonStyleColorsClass.name),Le.innerHTML=St.icon,Le.title=St.title,Le.addEventListener("click",function(){Bt.panelButtonClick(St)}),Bt.panelButtons.push(Le),Bt.buttonRow.appendChild(Le)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},te.prototype.panelButtonClick=function(bt){var xt=this,Tt=-1;if(bt!==this.activePanel){Tt=this.panels.indexOf(bt),this.panelRow.innerHTML="";var Bt=bt.getUi();Bt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Bt),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=bt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xt.displayMode==="inline"?xt.panelRow.style.display="none":xt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(St,he){var Le,Gt;St.className=xt.toolboxButtonStyleClass.name+" "+(he===Tt?""+((Le=xt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Le!==void 0?Le:xt.toolboxActiveButtonStyleColorsClass.name):""+((Gt=xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Gt!==void 0?Gt:xt.toolboxButtonStyleColorsClass.name))})},te}(),et=function(te,bt){this.title=te,this.icon=bt},nt=function(te){function bt(xt,Tt,Bt,St){var he=te.call(this,xt,St||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=Tt,he.currentColor=Bt,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.whiteSpace="nowrap",this.colors.forEach(function(Bt){var St=xt.getColorBox(Bt);Tt.appendChild(St),xt.colorBoxes.push(St)}),Tt},bt.prototype.getColorBox=function(xt){var Tt=this,Bt=this.uiStyleSettings.toolbarHeight/4,St=this.uiStyleSettings.toolbarHeight-Bt,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=St-2+"px",he.style.height=St-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(St+2)/2+"px",he.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Tt.setCurrentColor(xt,he)});var Le=document.createElement("div");return Le.style.display="inline-block",Le.style.width=St-2+"px",Le.style.height=St-2+"px",Le.style.backgroundColor=xt,Le.style.borderRadius=St/2+"px",xt==="transparent"&&(Le.style.fill=this.uiStyleSettings.toolboxAccentColor,Le.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),he.appendChild(Le),he},bt.prototype.setCurrentColor=function(xt,Tt){var Bt=this;this.currentColor=xt,this.colorBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},bt}(et),ht=function(){function te(bt,xt,Tt){this._state="new",this._isSelected=!1,this._container=bt,this._overlayContainer=xt,this.globalSettings=Tt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(te.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(bt){return!1},Object.defineProperty(te.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},te.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},te.prototype.pointerDown=function(bt,xt){},te.prototype.dblClick=function(bt,xt){},te.prototype.manipulate=function(bt){},te.prototype.pointerUp=function(bt){this.stateChanged()},te.prototype.dispose=function(){},te.prototype.addMarkerVisualToContainer=function(bt){this.container.childNodes.length>0?this.container.insertBefore(bt,this.container.childNodes[0]):this.container.appendChild(bt)},te.prototype.getState=function(){return{typeName:te.typeName,state:this.state,notes:this.notes}},te.prototype.restoreState=function(bt){this._state=bt.state,this.notes=bt.notes},te.prototype.scale=function(bt,xt){},te.prototype.colorChanged=function(bt){this.onColorChanged&&this.onColorChanged(bt),this.stateChanged()},te.prototype.fillColorChanged=function(bt){this.onFillColorChanged&&this.onFillColorChanged(bt),this.stateChanged()},te.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var bt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),bt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(bt)&&this.onStateChanged(this)}},te.typeName="MarkerBase",te}(),st=function(){function te(){this.findGripByVisual=this.findGripByVisual.bind(this)}return te.prototype.findGripByVisual=function(bt){return this.topLeft.ownsTarget(bt)?this.topLeft:this.topCenter.ownsTarget(bt)?this.topCenter:this.topRight.ownsTarget(bt)?this.topRight:this.centerLeft.ownsTarget(bt)?this.centerLeft:this.centerRight.ownsTarget(bt)?this.centerRight:this.bottomLeft.ownsTarget(bt)?this.bottomLeft:this.bottomCenter.ownsTarget(bt)?this.bottomCenter:this.bottomRight.ownsTarget(bt)?this.bottomRight:void 0},te}(),gt=function(){function te(){this.GRIP_SIZE=10,this.visual=ne.createGroup(),this.visual.appendChild(ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ne.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(bt){return bt===this.visual||bt===this.visual.childNodes[0]||bt===this.visual.childNodes[1]},te}(),mt=function(){function te(){}return te.toITransformMatrix=function(bt){return{a:bt.a,b:bt.b,c:bt.c,d:bt.d,e:bt.e,f:bt.f}},te.toSVGMatrix=function(bt,xt){return bt.a=xt.a,bt.b=xt.b,bt.c=xt.c,bt.d=xt.d,bt.e=xt.e,bt.f=xt.f,bt},te}(),Pt=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.left=0,St.top=0,St.width=0,St.height=0,St.defaultSize={x:50,y:20},St.offsetX=0,St.offsetY=0,St.rotationAngle=0,St.CB_DISTANCE=10,St._suppressMarkerCreateEvent=!1,St.container.transform.baseVal.appendItem(ne.createTransform()),St.setupControlBox(),St}return zt(bt,te),Object.defineProperty(bt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(bt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(bt.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var Tt=ne.createTransform();this._visual.transform.baseVal.appendItem(Tt)},enumerable:!1,configurable:!0}),bt.prototype.ownsTarget=function(xt){return!!te.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Bt=this.unrotatePoint(xt);if(this.manipulationStartX=Bt.x,this.manipulationStartY=Bt.y,this.offsetX=Bt.x-this.left,this.offsetY=Bt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Tt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Tt)){this.activeGrip=this.rotatorGrip;var St=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=St.x-this.width/2,this.top=St.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},bt.prototype.pointerUp=function(xt){var Tt=this.state;te.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},bt.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},bt.prototype.manipulate=function(xt){var Tt=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(Tt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Tt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Tt):this.state==="rotate"&&this.rotate(xt)},bt.prototype.resize=function(xt){var Tt=this.manipulationStartLeft,Bt=this.manipulationStartWidth,St=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Tt=this.manipulationStartLeft+xt.x-this.manipulationStartX,Bt=this.manipulationStartWidth+this.manipulationStartLeft-Tt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Bt=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:St=this.manipulationStartTop+xt.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-St;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+xt.y-this.manipulationStartY}Bt>=0?(this.left=Tt,this.width=Bt):(this.left=Tt+Bt,this.width=-Bt),he>=0?(this.top=St,this.height=he):(this.top=St+he,this.height=-he),this.setSize()},bt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},bt.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var Tt=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*Tt,this.applyRotation()}},bt.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},bt.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Tt=this.container.getCTM(),Bt=ne.createPoint(xt.x,xt.y);return{x:(Bt=Bt.matrixTransform(Tt)).x,y:Bt.y}},bt.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Tt=this.container.getCTM();Tt=Tt.inverse();var Bt=ne.createPoint(xt.x,xt.y);return{x:(Bt=Bt.matrixTransform(Tt)).x,y:Bt.y}},bt.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},bt.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},bt.prototype.setupControlBox=function(){this.controlBox=ne.createGroup();var xt=ne.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=ne.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=ne.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 st,this.addControlGrips(),this.controlBox.style.display="none"},bt.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,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()},bt.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()},bt.prototype.createGrip=function(){var xt=new gt;return xt.visual.transform.baseVal.appendItem(ne.createTransform()),this.controlBox.appendChild(xt.visual),xt},bt.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,Tt=-xt/2,Bt=Tt,St=(this.width+this.CB_DISTANCE)/2-xt/2,he=(this.height+this.CB_DISTANCE)/2-xt/2,Le=this.height+this.CB_DISTANCE-xt/2,Gt=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,Tt,Bt),this.positionGrip(this.controlGrips.topCenter.visual,St,Bt),this.positionGrip(this.controlGrips.topRight.visual,Gt,Bt),this.positionGrip(this.controlGrips.centerLeft.visual,Tt,he),this.positionGrip(this.controlGrips.centerRight.visual,Gt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,Tt,Le),this.positionGrip(this.controlGrips.bottomCenter.visual,St,Le),this.positionGrip(this.controlGrips.bottomRight.visual,Gt,Le),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,St,Bt-3*this.CB_DISTANCE)},bt.prototype.positionGrip=function(xt,Tt,Bt){var St=xt.transform.baseVal.getItem(0);St.setTranslate(Tt,Bt),xt.transform.baseVal.replaceItem(St,0)},bt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},bt.prototype.showControlBox=function(){this.controlBox.style.display=""},bt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},te.prototype.getState.call(this))},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt);var Tt=xt;this.left=Tt.left,this.top=Tt.top,this.width=Tt.width,this.height=Tt.height,this.rotationAngle=Tt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Tt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Tt.containerTransformMatrix))},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt);var Bt=this.rotatePoint({x:this.left,y:this.top}),St=this.unrotatePoint({x:Bt.x*xt,y:Bt.y*Tt});this.left=St.x,this.top=St.y,this.width=this.width*xt,this.height=this.height*Tt,this.adjustControlBox()},bt}(ht),kt=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.fillColor="transparent",St.strokeColor="transparent",St.strokeWidth=0,St.strokeDasharray="",St.opacity=1,St.setStrokeColor=St.setStrokeColor.bind(St),St.setFillColor=St.setFillColor.bind(St),St.setStrokeWidth=St.setStrokeWidth.bind(St),St.setStrokeDasharray=St.setStrokeDasharray.bind(St),St.createVisual=St.createVisual.bind(St),St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},bt.prototype.createVisual=function(){this.visual=ne.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)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},bt.prototype.manipulate=function(xt){te.prototype.manipulate.call(this,xt)},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),this.setSize()},bt.prototype.setSize=function(){te.prototype.setSize.call(this),ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},bt.prototype.pointerUp=function(xt){te.prototype.pointerUp.call(this,xt),this.setSize()},bt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},bt.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},bt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},bt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},bt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this))},bt.prototype.restoreState=function(xt){var Tt=xt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),te.prototype.restoreState.call(this,xt),this.setSize()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.setSize()},bt.title="Rectangle marker",bt}(Pt),wt=function(te){function bt(xt,Tt,Bt,St){var he=te.call(this,xt,St||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=Tt,he.currentWidth=Bt,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.widths.forEach(function(Bt){var St=document.createElement("div");St.style.display="flex",St.style.flexGrow="2",St.style.alignItems="center",St.style.justifyContent="space-between",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.borderColor=Bt===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){xt.setCurrentWidth(Bt,St)}),Tt.appendChild(St);var he=document.createElement("div");he.innerText=Bt.toString(),he.style.marginRight="5px",St.appendChild(he);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.display="flex",Le.style.alignItems="center";var Gt=document.createElement("hr");Gt.style.minWidth="20px",Gt.style.border="0px",Gt.style.borderTop=Bt+"px solid "+xt.uiStyleSettings.toolboxColor,Gt.style.flexGrow="2",Le.appendChild(Gt),St.appendChild(Le),xt.widthBoxes.push(St)}),Tt},bt.prototype.setCurrentWidth=function(xt,Tt){var Bt=this;this.currentWidth=xt,this.widthBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},bt}(et),Ot=function(te){function bt(xt,Tt,Bt,St){var he=te.call(this,xt,St||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return he.styles=[],he.styleBoxes=[],he.styles=Tt,he.currentStyle=Bt,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.styles.forEach(function(Bt){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.justifyContent="space-between",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.overflow="hidden",St.style.maxWidth=100/xt.styles.length-5+"%",St.style.borderColor=Bt===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){xt.setCurrentStyle(Bt,St)}),Tt.appendChild(St);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var Le=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Bt!==""?'stroke-dasharray="'+Bt+'"':"")+` />
|
|
|
</svg>`;he.innerHTML=Le,St.appendChild(he),xt.styleBoxes.push(St)}),Tt},bt.prototype.setCurrentStyle=function(xt,Tt){var Bt=this;this.currentStyle=xt,this.styleBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},bt}(et),jt=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.strokeColor=Bt.defaultColor,St.strokeWidth=Bt.defaultStrokeWidth,St.strokeDasharray=Bt.defaultStrokeDasharray,St.strokePanel=new nt("Line color",Bt.defaultColorSet,Bt.defaultColor),St.strokePanel.onColorChanged=St.setStrokeColor,St.strokeWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.strokeWidthPanel.onWidthChanged=St.setStrokeWidth,St.strokeStylePanel=new Ot("Line style",Bt.defaultStrokeDasharrays,Bt.defaultStrokeDasharray),St.strokeStylePanel.onStyleChanged=St.setStrokeDasharray,St}return zt(bt,te),Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=te.prototype.getState.call(this);return xt.typeName=bt.typeName,xt},bt.typeName="FrameMarker",bt.title="Frame marker",bt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',bt}(kt),Ht=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"},$t=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.x1=0,St.y1=0,St.x2=0,St.y2=0,St.defaultLength=50,St.manipulationStartX=0,St.manipulationStartY=0,St.manipulationStartX1=0,St.manipulationStartY1=0,St.manipulationStartX2=0,St.manipulationStartY2=0,St.setupControlBox(),St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!!te.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.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(Tt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Tt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},bt.prototype.pointerUp=function(xt){var Tt=this.state;te.prototype.pointerUp.call(this,xt),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(xt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},bt.prototype.adjustVisual=function(){},bt.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},bt.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},bt.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},bt.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},bt.prototype.setupControlBox=function(){this.controlBox=ne.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},bt.prototype.adjustControlBox=function(){this.positionGrips()},bt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},bt.prototype.createGrip=function(){var xt=new gt;return xt.visual.transform.baseVal.appendItem(ne.createTransform()),this.controlBox.appendChild(xt.visual),xt},bt.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},bt.prototype.positionGrip=function(xt,Tt,Bt){var St=xt.transform.baseVal.getItem(0);St.setTranslate(Tt,Bt),xt.transform.baseVal.replaceItem(St,0)},bt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},te.prototype.getState.call(this))},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt);var Tt=xt;this.x1=Tt.x1,this.y1=Tt.y1,this.x2=Tt.x2,this.y2=Tt.y2},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.x1=this.x1*xt,this.y1=this.y1*Tt,this.x2=this.x2*xt,this.y2=this.y2*Tt,this.adjustVisual(),this.adjustControlBox()},bt}(ht),ye=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.strokeColor="transparent",St.strokeWidth=0,St.strokeDasharray="",St.setStrokeColor=St.setStrokeColor.bind(St),St.setStrokeWidth=St.setStrokeWidth.bind(St),St.setStrokeDasharray=St.setStrokeDasharray.bind(St),St.strokeColor=Bt.defaultColor,St.strokeWidth=Bt.defaultStrokeWidth,St.strokeDasharray=Bt.defaultStrokeDasharray,St.strokePanel=new nt("Line color",Bt.defaultColorSet,Bt.defaultColor),St.strokePanel.onColorChanged=St.setStrokeColor,St.strokeWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.strokeWidthPanel.onWidthChanged=St.setStrokeWidth,St.strokeStylePanel=new Ot("Line style",Bt.defaultStrokeDasharrays,Bt.defaultStrokeDasharray),St.strokeStylePanel.onStyleChanged=St.setStrokeDasharray,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},bt.prototype.createVisual=function(){this.visual=ne.createGroup(),this.selectorLine=ne.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ne.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)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},bt.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()),ne.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ne.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ne.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},bt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},bt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},bt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt);var Tt=xt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.createVisual(),this.adjustVisual()},bt.typeName="LineMarker",bt.title="Line marker",bt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',bt}($t),Yt=function(te){function bt(xt,Tt,Bt,St){var he=te.call(this,xt,St||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=Tt,he.currentFont=Bt,he.setCurrentFont=he.setCurrentFont.bind(he),he}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.fonts.forEach(function(Bt){var St=document.createElement("div");St.style.display="inline-block",St.style.alignItems="center",St.style.justifyContent="space-between",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.overflow="hidden",St.style.maxWidth=100/xt.fonts.length-5+"%",St.style.borderColor=Bt===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){xt.setCurrentFont(Bt,St)}),Tt.appendChild(St);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=Bt,he.style.overflow="hidden";var Le=document.createElement("div");Le.style.whiteSpace="nowrap",Le.style.overflow="hidden",Le.style.textOverflow="ellipsis",Le.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(Le),St.appendChild(he),xt.fontBoxes.push(St)}),Tt},bt.prototype.setCurrentFont=function(xt,Tt){var Bt=this;this.currentFont=xt,this.fontBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},bt}(et),Ge=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.color="transparent",St.padding=5,St.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",St.text=St.DEFAULT_TEXT,St.isMoved=!1,St.color=Bt.defaultColor,St.fontFamily=Bt.defaultFontFamily,St.defaultSize={x:100,y:30},St.setColor=St.setColor.bind(St),St.setFont=St.setFont.bind(St),St.renderText=St.renderText.bind(St),St.sizeText=St.sizeText.bind(St),St.textEditDivClicked=St.textEditDivClicked.bind(St),St.showTextEditor=St.showTextEditor.bind(St),St.setSize=St.setSize.bind(St),St.positionTextEditor=St.positionTextEditor.bind(St),St.colorPanel=new nt("Color",Bt.defaultColorSet,Bt.defaultColor),St.colorPanel.onColorChanged=St.setColor,St.fontFamilyPanel=new Yt("Font",Bt.defaultFontFamilies,Bt.defaultFontFamily),St.fontFamilyPanel.onFontChanged=St.setFont,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){if(te.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var Tt=!1;return this.textElement.childNodes.forEach(function(Bt){Bt===xt&&(Tt=!0)}),Tt},bt.prototype.createVisual=function(){this.visual=ne.createGroup(),this.bgRectangle=ne.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ne.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ne.createTransform()),this.textElement.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},bt.prototype.renderText=function(){var xt=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(Tt){xt.textElement.appendChild(ne.createTSpan(Tt.trim()===""?" ":Tt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},bt.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),Tt=1;if(xt.width>0&&xt.height>0){var Bt=(1*this.width-this.width*this.padding*2/100)/xt.width,St=(1*this.height-this.height*this.padding*2/100)/xt.height;Tt=Math.min(Bt,St)}return Tt},bt.prototype.getTextPosition=function(xt){var Tt=this.textElement.getBBox(),Bt=0,St=0;return Tt.width>0&&Tt.height>0&&(Bt=(this.width-Tt.width*xt)/2,St=this.height/2-Tt.height*xt/2),{x:Bt,y:St}},bt.prototype.sizeText=function(){var xt=this.textElement.getBBox(),Tt=this.getTextScale(),Bt=this.getTextPosition(Tt);Bt.y-=xt.y*Tt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Bt.x+"px, "+Bt.y+"px) scale("+Tt+", "+Tt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Bt.x,Bt.y),this.textElement.transform.baseVal.getItem(1).setScale(Tt,Tt))},bt.prototype.manipulate=function(xt){te.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},bt.prototype.setSize=function(){te.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},bt.prototype.pointerUp=function(xt){var Tt=this.state;Tt==="creating"&&(this._suppressMarkerCreateEvent=!0),te.prototype.pointerUp.call(this,xt),this.setSize(),(Tt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},bt.prototype.showTextEditor=function(){var xt=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(Tt){Tt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Tt=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&Tt>.9;)Tt-=.1,xt.textEditor.style.fontSize=Math.max(Tt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Tt){if(Tt.clipboardData){var Bt=Tt.clipboardData.getData("text"),St=window.getSelection();if(!St.rangeCount)return!1;St.deleteFromDocument(),St.getRangeAt(0).insertNode(document.createTextNode(Bt)),Tt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},bt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),Tt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Bt=this.textElement.getBBox(),St={x:Bt.width*xt,y:Bt.height*xt};Tt.x-=St.x/2,Tt.y-=St.y/2,this.textEditor.style.top=Tt.y+"px",this.textEditor.style.left=Tt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Tt.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},bt.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},bt.prototype.select=function(){te.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},bt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),te.prototype.deselect.call(this)},bt.prototype.dblClick=function(xt,Tt){te.prototype.dblClick.call(this,xt,Tt),this.showTextEditor()},bt.prototype.setColor=function(xt){this.textElement&&ne.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},bt.prototype.setFont=function(xt){this.textElement&&ne.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},bt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},bt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){var Tt=xt;this.color=Tt.color,this.fontFamily=Tt.fontFamily,this.padding=Tt.padding,this.text=Tt.text,this.createVisual(),te.prototype.restoreState.call(this,xt),this.setSize()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.setSize(),this.sizeText(),this.positionTextEditor()},bt.typeName="TextMarker",bt.title="Text marker",bt.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>',bt}(Pt),ce=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.color="transparent",St.lineWidth=3,St.drawing=!1,St.pixelRatio=1,St.color=Bt.defaultColor,St.lineWidth=Bt.defaultStrokeWidth,St.pixelRatio=Bt.freehandPixelRatio,St.setColor=St.setColor.bind(St),St.addCanvas=St.addCanvas.bind(St),St.finishCreation=St.finishCreation.bind(St),St.setLineWidth=St.setLineWidth.bind(St),St.colorPanel=new nt("Color",Bt.defaultColorSet,Bt.defaultColor),St.colorPanel.onColorChanged=St.setColor,St.lineWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.lineWidthPanel.onWidthChanged=St.setLineWidth,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},bt.prototype.createVisual=function(){this.visual=ne.createGroup(),this.drawingImage=ne.createImage(),this.visual.appendChild(this.drawingImage);var xt=ne.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},bt.prototype.pointerDown=function(xt,Tt){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(xt.x,xt.y),this.drawing=!0):te.prototype.pointerDown.call(this,xt,Tt)},bt.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):te.prototype.manipulate.call(this,xt)},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},bt.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):te.prototype.pointerUp.call(this,xt)},bt.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)},bt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),te.prototype.select.call(this)},bt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),te.prototype.deselect.call(this)},bt.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Tt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Bt=Tt[0],St=Tt[1],he=Tt[2],Le=Tt[3],Gt=!1,ee=0;ee<this.canvasElement.height;ee++)for(var xe=0;xe<this.canvasElement.width;xe++)xt.data[ee*this.canvasElement.width*4+4*xe+3]>0&&(Gt=!0,ee<St&&(St=ee),xe<Bt&&(Bt=xe),ee>Le&&(Le=ee),xe>he&&(he=xe));if(Gt){this.left=Bt/this.pixelRatio,this.top=St/this.pixelRatio,this.width=(he-Bt)/this.pixelRatio,this.height=(Le-St)/this.pixelRatio;var we=document.createElement("canvas");we.width=he-Bt,we.height=Le-St,we.getContext("2d").putImageData(this.canvasContext.getImageData(Bt,St,he-Bt,Le-St),0,0),this.drawingImgUrl=we.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},bt.prototype.setDrawingImage=function(){ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},bt.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},bt.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){this.createVisual(),te.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.setDrawingImage()},bt.typeName="FreehandMarker",bt.title="Freehand marker",bt.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>',bt}(Pt),$e=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Bt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return St.typeBoxes=[],St.currentType=Tt,St.setCurrentType=St.setCurrentType.bind(St),St}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2";for(var Bt=function(Le){var Gt="both";switch(Le){case 0:Gt="both";break;case 1:Gt="start";break;case 2:Gt="end";break;case 3:Gt="none"}var ee=document.createElement("div");if(ee.style.display="flex",ee.style.flexGrow="2",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=Gt===St.currentType?St.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){xt.setCurrentType(Gt,ee)}),Tt.appendChild(ee),Gt==="both"||Gt==="start"){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.minHeight="20px",xe.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="`+(St.uiStyleSettings!==void 0?St.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,xe.style.marginLeft="5px",ee.appendChild(xe)}var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.minHeight="20px",we.style.flexGrow="2";var se=document.createElement("hr");if(se.style.minWidth="20px",se.style.border="0px",se.style.borderTop="3px solid "+(St.uiStyleSettings!==void 0?St.uiStyleSettings.toolboxColor:"#eeeeee"),se.style.flexGrow="2",we.appendChild(se),ee.appendChild(we),Gt==="both"||Gt==="end"){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.minHeight="20px",ke.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="`+(St.uiStyleSettings!==void 0?St.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ke.style.marginRight="5px",ee.appendChild(ke)}St.typeBoxes.push(ee)},St=this,he=0;he<4;he++)Bt(he);return Tt},bt.prototype.setCurrentType=function(xt,Tt){var Bt=this;this.currentType=xt,this.typeBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings!==void 0?Bt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},bt}(et),Ue=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.arrowType="end",St.arrowBaseHeight=10,St.arrowBaseWidth=10,St.getArrowPoints=St.getArrowPoints.bind(St),St.setArrowType=St.setArrowType.bind(St),St.arrowTypePanel=new $e("Arrow type","end"),St.arrowTypePanel.onArrowTypeChanged=St.setArrowType,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},bt.prototype.getArrowPoints=function(xt,Tt){var Bt=this.arrowBaseWidth+2*this.strokeWidth,St=this.arrowBaseHeight+2*this.strokeWidth;return xt-Bt/2+","+(Tt+St/2)+" "+xt+","+(Tt-St/2)+" "+(xt+Bt/2)+","+(Tt+St/2)},bt.prototype.createTips=function(){this.arrow1=ne.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ne.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.arrow2)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="creating"&&this.createTips()},bt.prototype.adjustVisual=function(){if(te.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",ne.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ne.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Tt=this.arrow1.transform.baseVal.getItem(0);Tt.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Tt,0);var Bt=this.arrow2.transform.baseVal.getItem(0);Bt.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Bt,0)}},bt.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt);var Tt=xt;this.arrowType=Tt.arrowType,this.createTips(),this.adjustVisual()},bt.typeName="ArrowMarker",bt.title="Arrow marker",bt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',bt}(ye),Ke=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.fillColor=Bt.defaultFillColor,St.strokeWidth=0,St.fillPanel=new nt("Color",Bt.defaultColorSet,Bt.defaultFillColor),St.fillPanel.onColorChanged=St.setFillColor,St}return zt(bt,te),Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=te.prototype.getState.call(this);return xt.typeName=bt.typeName,xt},bt.typeName="CoverMarker",bt.title="Cover marker",bt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',bt}(kt),tn=function(te){function bt(xt,Tt,Bt,St){var he=te.call(this,xt,St||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=Tt,he.currentOpacity=Bt,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return zt(bt,te),bt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",Tt.style.justifyContent="space-between",this.opacities.forEach(function(Bt){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.justifyContent="center",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.borderColor=Bt===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){xt.setCurrentOpacity(Bt,St)}),Tt.appendChild(St);var he=document.createElement("div");he.innerText=100*Bt+"%",St.appendChild(he),xt.opacityBoxes.push(St)}),Tt},bt.prototype.setCurrentOpacity=function(xt,Tt){var Bt=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(St){St.style.borderColor=St===Tt?Bt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},bt}(et),Tn=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.setOpacity=St.setOpacity.bind(St),St.fillColor=Bt.defaultHighlightColor,St.strokeWidth=0,St.opacity=Bt.defaultHighlightOpacity,St.fillPanel=new nt("Color",Bt.defaultColorSet,St.fillColor),St.fillPanel.onColorChanged=St.setFillColor,St.opacityPanel=new tn("Opacity",Bt.defaultOpacitySteps,St.opacity),St.opacityPanel.onOpacityChanged=St.setOpacity,St}return zt(bt,te),bt.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=te.prototype.getState.call(this);return xt.typeName=bt.typeName,xt},bt.typeName="HighlightMarker",bt.title="Highlight marker",bt.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>',bt}(Ke),ve='<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>',Zt='<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>',en=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.bgColor="transparent",St.tipPosition={x:0,y:0},St.tipBase1Position={x:0,y:0},St.tipBase2Position={x:0,y:0},St.tipMoving=!1,St.color=Bt.defaultStrokeColor,St.bgColor=Bt.defaultFillColor,St.fontFamily=Bt.defaultFontFamily,St.defaultSize={x:100,y:30},St.setBgColor=St.setBgColor.bind(St),St.getTipPoints=St.getTipPoints.bind(St),St.positionTip=St.positionTip.bind(St),St.setTipPoints=St.setTipPoints.bind(St),St.colorPanel=new nt("Text color",Bt.defaultColorSet,St.color,ve),St.colorPanel.onColorChanged=St.setColor,St.bgColorPanel=new nt("Fill color",Bt.defaultColorSet,St.bgColor,Zt),St.bgColorPanel.onColorChanged=St.setBgColor,St.fontFamilyPanel=new Yt("Font",Bt.defaultFontFamilies,Bt.defaultFontFamily),St.fontFamilyPanel.onFontChanged=St.setFont,St.tipGrip=new gt,St.tipGrip.visual.transform.baseVal.appendItem(ne.createTransform()),St.controlBox.appendChild(St.tipGrip.visual),St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return te.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},bt.prototype.createTip=function(){ne.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ne.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},bt.prototype.pointerDown=function(xt,Tt){this.state==="new"&&te.prototype.pointerDown.call(this,xt,Tt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Tt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):te.prototype.pointerDown.call(this,xt,Tt)},bt.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,te.prototype.pointerUp.call(this,xt);else{var Tt=this.state==="creating";te.prototype.pointerUp.call(this,xt),this.setTipPoints(Tt),this.positionTip()}},bt.prototype.manipulate=function(xt){if(this.tipMoving){var Tt=this.unrotatePoint(xt);this.tipPosition={x:Tt.x-this.manipulationStartLeft,y:Tt.y-this.manipulationStartTop},this.positionTip()}else te.prototype.manipulate.call(this,xt)},bt.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(ne.setAttributes(this.bgRectangle,[["fill",xt]]),ne.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},bt.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},bt.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var Tt=Math.min(this.height/2,15),Bt=this.height/5;xt&&(this.tipPosition={x:Tt+Bt/2,y:this.height+20});var St=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?St<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Bt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:0},this.tipBase2Position={x:Tt+Bt,y:0}):(this.tipBase1Position={x:0,y:Tt},this.tipBase2Position={x:0,y:Tt+Bt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?St<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Bt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Bt,y:0},this.tipBase2Position={x:this.width-Tt,y:0}):(this.tipBase1Position={x:this.width,y:Tt},this.tipBase2Position={x:this.width,y:Tt+Bt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?St<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Bt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Bt,y:this.height},this.tipBase2Position={x:this.width-Tt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Tt-Bt},this.tipBase2Position={x:this.width,y:this.height-Tt}):St<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Bt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:this.height},this.tipBase2Position={x:Tt+Bt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Tt},this.tipBase2Position={x:0,y:this.height-Tt-Bt})},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),this.positionTip()},bt.prototype.positionTip=function(){ne.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xt=this.tipGrip.visual.transform.baseVal.getItem(0);xt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xt,0)},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),bt.prototype.select=function(){this.positionTip(),te.prototype.select.call(this)},bt.prototype.getState=function(){var xt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){var Tt=xt;this.bgColor=Tt.bgColor,this.tipPosition=Tt.tipPosition,te.prototype.restoreState.call(this,xt),this.createTip(),this.setTipPoints()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.tipPosition={x:this.tipPosition.x*xt,y:this.tipPosition.y*Tt},this.positionTip()},bt.typeName="CalloutMarker",bt.title="Callout marker",bt.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>',bt}(Ge),Kn=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.fillColor="transparent",St.strokeColor="transparent",St.strokeWidth=0,St.strokeDasharray="",St.opacity=1,St.strokeColor=Bt.defaultColor,St.strokeWidth=Bt.defaultStrokeWidth,St.strokeDasharray=Bt.defaultStrokeDasharray,St.fillColor=Bt.defaultFillColor,St.setStrokeColor=St.setStrokeColor.bind(St),St.setFillColor=St.setFillColor.bind(St),St.setStrokeWidth=St.setStrokeWidth.bind(St),St.setStrokeDasharray=St.setStrokeDasharray.bind(St),St.setOpacity=St.setOpacity.bind(St),St.createVisual=St.createVisual.bind(St),St.strokePanel=new nt("Line color",Ut(Bt.defaultColorSet,["transparent"]),Bt.defaultColor),St.strokePanel.onColorChanged=St.setStrokeColor,St.fillPanel=new nt("Fill color",Ut(Bt.defaultColorSet,["transparent"]),St.fillColor,Zt),St.fillPanel.onColorChanged=St.setFillColor,St.strokeWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.strokeWidthPanel.onWidthChanged=St.setStrokeWidth,St.strokeStylePanel=new Ot("Line style",Bt.defaultStrokeDasharrays,Bt.defaultStrokeDasharray),St.strokeStylePanel.onStyleChanged=St.setStrokeDasharray,St.opacityPanel=new tn("Opacity",Bt.defaultOpacitySteps,St.opacity),St.opacityPanel.onOpacityChanged=St.setOpacity,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},bt.prototype.createVisual=function(){this.visual=ne.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)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},bt.prototype.manipulate=function(xt){te.prototype.manipulate.call(this,xt)},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),this.setSize()},bt.prototype.setSize=function(){te.prototype.setSize.call(this),ne.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},bt.prototype.pointerUp=function(xt){te.prototype.pointerUp.call(this,xt),this.setSize()},bt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},bt.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},bt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},bt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},bt.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){var Tt=xt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),te.prototype.restoreState.call(this,xt),this.setSize()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.setSize()},bt.typeName="EllipseMarker",bt.title="Ellipse marker",bt.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>',bt}(Pt),ii=function(te){function bt(xt,Tt,Bt){return te.call(this,xt,Tt,Bt)||this}return zt(bt,te),Object.defineProperty(bt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.tip1&&xt!==this.tip2)},bt.prototype.createTips=function(){this.tip1=ne.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(ne.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ne.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(ne.createTransform()),this.visual.appendChild(this.tip2)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.state==="creating"&&this.createTips()},bt.prototype.adjustVisual=function(){if(te.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ne.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()]]),ne.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 xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Tt=this.tip1.transform.baseVal.getItem(0);Tt.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Tt,0);var Bt=this.tip2.transform.baseVal.getItem(0);Bt.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Bt,0)}},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=te.prototype.getState.call(this);return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},bt.typeName="MeasurementMarker",bt.title="Measurement marker",bt.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>',bt}(ye),Be=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.strokePanel.colors=Bt.defaultColorSet,St.fillColor="transparent",St}return zt(bt,te),Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=te.prototype.getState.call(this);return xt.typeName=bt.typeName,xt},bt.typeName="EllipseFrameMarker",bt.title="Ellipse frame marker",bt.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>',bt}(Kn),on=function(){function te(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),te.prototype.addUndoStep=function(bt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(bt)||(this.undoStack.push(bt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(bt)&&this.redoStack.splice(0,this.redoStack.length))},te.prototype.replaceLastUndoStep=function(bt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=bt)},te.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},te.prototype.undo=function(){if(this.undoStack.length>1){var bt=this.undoStack.pop();return bt!==void 0&&this.redoStack.push(bt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},te.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},te}(),un=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.strokeColor="transparent",St.strokeWidth=0,St.strokeDasharray="",St.curveX=0,St.curveY=0,St.manipulationStartCurveX=0,St.manipulationStartCurveY=0,St.setStrokeColor=St.setStrokeColor.bind(St),St.setStrokeWidth=St.setStrokeWidth.bind(St),St.setStrokeDasharray=St.setStrokeDasharray.bind(St),St.positionGrips=St.positionGrips.bind(St),St.addControlGrips=St.addControlGrips.bind(St),St.adjustVisual=St.adjustVisual.bind(St),St.setupControlBox=St.setupControlBox.bind(St),St.resize=St.resize.bind(St),St.strokeColor=Bt.defaultColor,St.strokeWidth=Bt.defaultStrokeWidth,St.strokeDasharray=Bt.defaultStrokeDasharray,St.strokePanel=new nt("Line color",Bt.defaultColorSet,Bt.defaultColor),St.strokePanel.onColorChanged=St.setStrokeColor,St.strokeWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.strokeWidthPanel.onWidthChanged=St.setStrokeWidth,St.strokeStylePanel=new Ot("Line style",Bt.defaultStrokeDasharrays,Bt.defaultStrokeDasharray),St.strokeStylePanel.onStyleChanged=St.setStrokeDasharray,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},bt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},bt.prototype.createVisual=function(){this.visual=ne.createGroup(),this.selectorCurve=ne.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ne.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)},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Tt)&&(this.activeGrip=this.curveGrip,this._state="resize")},bt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ne.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ne.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ne.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},bt.prototype.setupControlBox=function(){te.prototype.setupControlBox.call(this),this.curveControlLine1=ne.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ne.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)},bt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,te.prototype.addControlGrips.call(this)},bt.prototype.positionGrips=function(){te.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/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()))},bt.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),te.prototype.manipulate.call(this,xt)},bt.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),te.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},bt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},bt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},bt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},bt.prototype.scale=function(xt,Tt){this.curveX=this.curveX*xt,this.curveY=this.curveY*Tt,te.prototype.scale.call(this,xt,Tt)},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},te.prototype.getState.call(this));return xt.typeName=bt.typeName,xt},bt.prototype.restoreState=function(xt){te.prototype.restoreState.call(this,xt);var Tt=xt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.curveX=Tt.curveX,this.curveY=Tt.curveY,this.createVisual(),this.adjustVisual()},bt.typeName="CurveMarker",bt.title="Curve marker",bt.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>',bt}($t),Jn=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,Tt,Bt)||this;return St.fillColor="transparent",St.strokeColor="transparent",St.strokeWidth=0,St.strokeDasharray="",St.textColor="transparent",St.fontSize="1rem",St.isMoved=!1,St.captionText="Caption",St.PADDING=5,St.captionBoxWidth=0,St.captionBoxHeight=0,St.strokeColor=Bt.defaultColor,St.strokeWidth=Bt.defaultStrokeWidth,St.strokeDasharray=Bt.defaultStrokeDasharray,St.fillColor=Bt.defaultFillColor,St.textColor=Bt.defaultStrokeColor,St.fontFamily=Bt.defaultFontFamily,St.fontSize=Bt.defaultCaptionFontSize,St.captionText=Bt.defaultCaptionText,St.setStrokeColor=St.setStrokeColor.bind(St),St.setFillColor=St.setFillColor.bind(St),St.setStrokeWidth=St.setStrokeWidth.bind(St),St.setStrokeDasharray=St.setStrokeDasharray.bind(St),St.createVisual=St.createVisual.bind(St),St.sizeCaption=St.sizeCaption.bind(St),St.setCaptionText=St.setCaptionText.bind(St),St.showTextEditor=St.showTextEditor.bind(St),St.positionTextEditor=St.positionTextEditor.bind(St),St.finishTextEditing=St.finishTextEditing.bind(St),St.setFont=St.setFont.bind(St),St.setTextColor=St.setTextColor.bind(St),St.strokePanel=new nt("Line color",Ut(Bt.defaultColorSet,["transparent"]),St.strokeColor),St.strokePanel.onColorChanged=St.setStrokeColor,St.fillPanel=new nt("Fill color",Ut(Bt.defaultColorSet,["transparent"]),St.fillColor,Zt),St.fillPanel.onColorChanged=St.setFillColor,St.strokeWidthPanel=new wt("Line width",Bt.defaultStrokeWidths,Bt.defaultStrokeWidth),St.strokeWidthPanel.onWidthChanged=St.setStrokeWidth,St.strokeStylePanel=new Ot("Line style",Bt.defaultStrokeDasharrays,Bt.defaultStrokeDasharray),St.strokeStylePanel.onStyleChanged=St.setStrokeDasharray,St.fontFamilyPanel=new Yt("Font",Bt.defaultFontFamilies,Bt.defaultFontFamily),St.fontFamilyPanel.onFontChanged=St.setFont,St.textColorPanel=new nt("Text color",Bt.defaultColorSet,St.textColor,ve),St.textColorPanel.onColorChanged=St.setTextColor,St}return zt(bt,te),bt.prototype.ownsTarget=function(xt){return!(!te.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},bt.prototype.createVisual=function(){this.visual=ne.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ne.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ne.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=ne.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()},bt.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},bt.prototype.pointerDown=function(xt,Tt){te.prototype.pointerDown.call(this,xt,Tt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},bt.prototype.manipulate=function(xt){te.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},bt.prototype.resize=function(xt){te.prototype.resize.call(this,xt),this.setSize()},bt.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ne.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')"]]),ne.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')"]])},bt.prototype.showTextEditor=function(){var xt=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(Tt){Tt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Tt){Tt.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},bt.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"))},bt.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},bt.prototype.setFont=function(xt){this.captionElement&&ne.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},bt.prototype.setTextColor=function(xt){this.captionElement&&ne.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},bt.prototype.setSize=function(){te.prototype.setSize.call(this),ne.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},bt.prototype.pointerUp=function(xt){te.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},bt.prototype.dblClick=function(xt,Tt){te.prototype.dblClick.call(this,xt,Tt),this.showTextEditor()},bt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&ne.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},bt.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&ne.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},bt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&ne.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},bt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&ne.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(bt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),bt.prototype.getState=function(){var xt=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},te.prototype.getState.call(this));return xt.typeName=this.typeName,xt},bt.prototype.restoreState=function(xt){var Tt=xt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.textColor=Tt.textColor,this.fontFamily=Tt.fontFamily,this.captionText=Tt.captionText,this.fontSize=Tt.fontSize,this.createVisual(),te.prototype.restoreState.call(this,xt),this.setSize()},bt.prototype.scale=function(xt,Tt){te.prototype.scale.call(this,xt,Tt),this.setSize()},bt.typeName="CaptionFrameMarker",bt.title="Caption frame marker",bt.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>',bt}(Pt),nn=function(){function te(bt,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=bt,this.cancelable=xt}return Object.defineProperty(te.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),te.prototype.preventDefault=function(){this._defaultPrevented=!0},te}(),Gn=function(te){function bt(xt,Tt,Bt){var St=te.call(this,xt,!1)||this;return St.dataUrl=Tt,St.state=Bt,St}return zt(bt,te),bt}(nn),pe=function(te){function bt(xt,Tt,Bt){Bt===void 0&&(Bt=!1);var St=te.call(this,xt,Bt)||this;return St.marker=Tt,St}return zt(bt,te),bt}(nn),Xn=function(){function te(){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 te.prototype.addEventListener=function(bt,xt){this[bt].push(xt)},te.prototype.removeEventListener=function(bt,xt){var Tt=this[bt].indexOf(xt);Tt>-1&&this[bt].splice(Tt,1)},te}(),oi=function(){function te(bt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ht,this._isOpen=!1,this.undoRedoManager=new on,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 Xn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=te.instanceCounter++,this.styles=new oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=bt,this.targetRoot=document.body,this.width=bt.clientWidth,this.height=bt.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(te.prototype,"ALL_MARKER_TYPES",{get:function(){return[jt,ce,Ue,Ge,Be,Kn,Tn,en,ii,Ke,ye,un,Jn]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[jt,ce,Ue,Ge,Kn,Tn,en]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"BASIC_MARKER_TYPES",{get:function(){return[jt,ce,Ue,Ge,Tn]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(bt){var xt=this;this._availableMarkerTypes.splice(0),bt.forEach(function(Tt){if(typeof Tt=="string"){var Bt=xt.ALL_MARKER_TYPES.find(function(St){return St.typeName===Tt});Bt!==void 0&&xt._availableMarkerTypes.push(Bt)}else xt._availableMarkerTypes.push(Tt)})},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(bt){this._zoomLevel=bt,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(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ft.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},te.prototype.show=function(){var bt=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new nn(bt))})},te.prototype.render=function(){return re(this,void 0,void 0,function(){var bt;return Ae(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(bt=new De).naturalSize=this.renderAtNaturalSize,bt.imageType=this.renderImageType,bt.imageQuality=this.renderImageQuality,bt.markersOnly=this.renderMarkersOnly,bt.width=this.renderWidth,bt.height=this.renderHeight,[4,bt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,bt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},te.prototype.close=function(bt){var xt=this;if(bt===void 0&&(bt=!1),this.isOpen){var Tt=!1;bt||this.eventListeners.beforeclose.forEach(function(Bt){var St=new nn(xt,!0);Bt(St),St.defaultPrevented&&(Tt=!0)}),Tt||(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(Bt){return Bt(new nn(xt))}),this.detachEvents(),this._isOpen=!1)}},te.prototype.addMarkersToToolbar=function(){for(var bt,xt=[],Tt=0;Tt<arguments.length;Tt++)xt[Tt]=arguments[Tt];(bt=this._availableMarkerTypes).push.apply(bt,xt)},te.prototype.addRenderEventListener=function(bt){this.addEventListener("render",function(xt){bt(xt.dataUrl,xt.state)})},te.prototype.removeRenderEventListener=function(bt){},te.prototype.addCloseEventListener=function(bt){this.addEventListener("close",function(){bt()})},te.prototype.removeCloseEventListener=function(bt){},te.prototype.setupResizeObserver=function(){var bt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){bt.resize(bt.target.clientWidth,bt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return bt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},te.prototype.onPopupTargetResize=function(){var bt=1*this.target.clientWidth/this.target.clientHeight,xt=this.editorCanvas.clientWidth/bt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*bt:this.editorCanvas.clientWidth,Tt=xt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/bt;this.resize(xt,Tt)},te.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},te.prototype.resize=function(bt,xt){this._isResizing=!0;var Tt=bt/this.imageWidth,Bt=xt/this.imageHeight;this.imageWidth=Math.round(bt),this.imageHeight=Math.round(xt),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(Tt,Bt),this._isResizing=!1},te.prototype.scaleMarkers=function(bt,xt){var Tt,Bt=this;this._currentMarker&&this._currentMarker instanceof Ge?this._currentMarker.scale(bt,xt):(Tt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(St){St!==Bt._currentMarker&&St.scale(bt,xt)}),Tt!==void 0&&this.setCurrentMarker(Tt)},te.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"},te.prototype.setTopLeft=function(){var bt=this.editingTarget.getBoundingClientRect(),xt=this.editorCanvas.getBoundingClientRect();this.left=bt.left-xt.left,this.top=bt.top-xt.top},te.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)},te.prototype.addDefs=function(){for(var bt,xt=[],Tt=0;Tt<arguments.length;Tt++)xt[Tt]=arguments[Tt];this.defs=ne.createDefs(),this.addDefsToImage(),(bt=this.defs).append.apply(bt,xt)},te.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},te.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)},te.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},te.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},te.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)},te.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},te.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)},te.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 bt=document.createElement("a");bt.href="https://markerjs.com/",bt.target="_blank",bt.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>',bt.title="Powered by marker.js",bt.style.display="grid",bt.style.alignItems="center",bt.style.justifyItems="center",bt.style.padding="3px",bt.style.width="20px",bt.style.height="20px",this.logoUI.appendChild(bt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},te.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")},te.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"},te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},te.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 bt=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=bt+"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 be(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 Nt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},te.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},te.prototype.removeMarker=function(bt){this.markerImage.removeChild(bt.container),this.markers.indexOf(bt)>-1&&this.markers.splice(this.markers.indexOf(bt),1),bt.dispose()},te.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())},te.prototype.toolbarButtonClicked=function(bt,xt){if(bt==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(bt==="action")switch(xt){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()}},te.prototype.deleteSelectedMarker=function(){var bt=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Bt){var St=new pe(bt,bt._currentMarker,!0);Bt(St),St.defaultPrevented&&(xt=!0)}),!xt){var Tt=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(Bt){return Bt(new pe(bt,Tt))})}}},te.prototype.clear=function(){var bt=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var Le=new pe(bt,void 0,!0);he(Le),Le.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var Tt=function(he){var Le=Bt.markers[he];Bt.setCurrentMarker(Bt.markers[he]),Bt._currentMarker.dispose(),Bt.markerImage.removeChild(Bt._currentMarker.container),Bt.markers.splice(Bt.markers.indexOf(Bt._currentMarker),1),Bt.eventListeners.markerdelete.forEach(function(Gt){return Gt(new pe(bt,Le))})},Bt=this,St=this.markers.length-1;St>=0;St--)Tt(St);this.addUndoStep()}},Object.defineProperty(te.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),te.prototype.showNotesEditor=function(){var bt;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=(bt=this._currentMarker.notes)!==null&&bt!==void 0?bt:"",this.overlayContainer.appendChild(this.notesArea))},te.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)},te.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},te.prototype.addUndoStep=function(){var bt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),Tt=this.undoRedoManager.getLastUndoStep();if(!Tt||Tt.width===xt.width&&Tt.height===xt.height){var Bt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),Bt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(St){return St(new nn(bt))})}else this.undoRedoManager.replaceLastUndoStep(xt),this.eventListeners.statechange.forEach(function(St){return St(new nn(bt))})}},te.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},te.prototype.undoStep=function(){var bt=this,xt=this.undoRedoManager.undo();xt!==void 0&&(this.restoreState(xt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new nn(bt))}))},te.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},te.prototype.redoStep=function(){var bt=this,xt=this.undoRedoManager.redo();xt!==void 0&&(this.restoreState(xt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new nn(bt))}))},te.prototype.stepZoom=function(){var bt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=bt<this.zoomSteps.length-1?this.zoomSteps[bt+1]:this.zoomSteps[0]},te.prototype.panTo=function(bt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-bt.x,top:this.prevPanPoint.y-bt.y}),this.prevPanPoint=bt},te.prototype.startRenderAndClose=function(){return re(this,void 0,void 0,function(){var bt,xt,Tt=this;return Ae(this,function(Bt){switch(Bt.label){case 0:return[4,this.render()];case 1:return bt=Bt.sent(),xt=this.getState(),this.eventListeners.render.forEach(function(St){return St(new Gn(Tt,bt,xt))}),this.close(!0),[2]}})})},te.prototype.getState=function(bt){bt===!0&&this.setCurrentMarker();var xt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Tt){return xt.markers.push(Tt.getState())}),xt},te.prototype.restoreState=function(bt){var xt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);bt.markers.forEach(function(Tt){var Bt=xt._availableMarkerTypes.find(function(he){return he.typeName===Tt.typeName});if(Bt!==void 0){var St=xt.addNewMarker(Bt);St.restoreState(Tt),xt.markers.push(St)}}),bt.width&&bt.height&&(bt.width!==this.imageWidth||bt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/bt.width,this.imageHeight/bt.height),this.eventListeners.restorestate.forEach(function(Tt){return Tt(new nn(xt))})},te.prototype.addNewMarker=function(bt){var xt=ne.createGroup();return this.markerImage.appendChild(xt),new bt(xt,this.overlayContainer,this.settings)},te.prototype.createNewMarker=function(bt){var xt,Tt=this;(xt=typeof bt=="string"?this._availableMarkerTypes.find(function(Bt){return Bt.typeName===bt}):bt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xt),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(xt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Bt){return Bt(new pe(Tt,Tt._currentMarker))}))},te.prototype.markerCreated=function(bt){var xt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(bt),this.setCurrentMarker(bt),bt instanceof ce&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ce):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Tt){return Tt(new pe(xt,xt._currentMarker))})},te.prototype.colorChanged=function(bt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=bt,this.settings.defaultStrokeColor=bt)},te.prototype.fillColorChanged=function(bt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=bt)},te.prototype.markerStateChanged=function(bt){var xt=this;this.eventListeners.markerchange.forEach(function(Tt){return Tt(new pe(xt,bt))})},te.prototype.setCurrentMarker=function(bt){var xt=this;this._currentMarker!==bt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Tt){return Tt(new pe(xt,xt._currentMarker))})),this._currentMarker=bt,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(Tt){return Tt(new pe(xt,xt._currentMarker))}))},te.prototype.onPointerDown=function(bt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||bt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xt=this.markers.find(function(Tt){return Tt.ownsTarget(bt.target)});xt!==void 0?(this.setCurrentMarker(xt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(bt.clientX,bt.clientY),bt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:bt.clientX,y:bt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(bt.clientX,bt.clientY))},te.prototype.onDblClick=function(bt){if(this._isFocused||this.focus(),this.mode==="select"){var xt=this.markers.find(function(Tt){return Tt.ownsTarget(bt.target)});xt!==void 0&&xt!==this._currentMarker&&this.setCurrentMarker(xt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(bt.clientX,bt.clientY),bt.target):this.setCurrentMarker()}},te.prototype.onPointerMove=function(bt){this.touchPoints!==1&&bt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||bt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(bt.clientX,bt.clientY)):this.zoomLevel>1&&this.panTo({x:bt.clientX,y:bt.clientY}))},te.prototype.onPointerUp=function(bt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(bt.clientX,bt.clientY)),this.isDragging=!1,this.addUndoStep()},te.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},te.prototype.onKeyUp=function(bt){this._currentMarker===void 0||this.notesArea!==void 0||bt.key!=="Delete"&&bt.key!=="Backspace"||this.deleteSelectedMarker()},te.prototype.clientToLocalCoordinates=function(bt,xt){var Tt=this.markerImage.getBoundingClientRect();return{x:(bt-Tt.left)/this.zoomLevel,y:(xt-Tt.top)/this.zoomLevel}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var bt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=bt+"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()},te.prototype.addLicenseKey=function(bt){Ft.addKey(bt)},te.prototype.addEventListener=function(bt,xt){this.eventListeners.addEventListener(bt,xt)},te.prototype.removeEventListener=function(bt,xt){this.eventListeners.removeEventListener(bt,xt)},te.prototype.renderState=function(bt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(bt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(te.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),te.prototype.focus=function(){var bt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new nn(bt))}))},te.prototype.blur=function(){var bt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new nn(bt))}))},te.instanceCounter=0,te}()},17115:function(On,Cn,yt){"use strict";yt.d(Cn,{ZP:function(){return Ft}});var At=yt(29043),zt=yt(59301),re=yt(87746),Ae=0,Ut=(0,re.Z)();function ne(){var De;return Ut?(De=Ae,Ae+=1):De="TEST_OR_SSR",De}function Ft(De){var Pe=zt.useState(),oe=(0,At.Z)(Pe,2),Re=oe[0],de=oe[1];return zt.useEffect(function(){de("rc_select_".concat(ne()))},[]),De||Re}},77861:function(On,Cn,yt){"use strict";yt.d(Cn,{Ac:function(){return ke},Xo:function(){return Pi},Wx:function(){return vr},ZP:function(){return In},lk:function(){return Pt}});var At=yt(5891),zt=yt(26390),re=yt(80962),Ae=yt(57259),Ut=yt(29043),ne=yt(19149),Ft=yt(80665),De=yt(35788),Pe=yt(51395),oe=yt(59301),Re=yt(92310),de=yt.n(Re),be=yt(28800),Nt=yt(93144),et=yt(85108),nt=yt(20475),ht=function(ue){var pn=ue.className,Un=ue.customizeIcon,Oi=ue.customizeIconProps,Pn=ue.onMouseDown,Ce=ue.onClick,Rn=ue.children,pi;return typeof Un=="function"?pi=Un(Oi):pi=Un,oe.createElement("span",{className:pn,onMouseDown:function(je){je.preventDefault(),Pn&&Pn(je)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ce,"aria-hidden":!0},pi!==void 0?pi:oe.createElement("span",{className:de()(pn.split(/\s+/).map(function(Bi){return"".concat(Bi,"-icon")}))},Rn))},st=ht;function gt(Fe,ue,pn,Un,Oi){var Pn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ce=arguments.length>6?arguments[6]:void 0,Rn=arguments.length>7?arguments[7]:void 0,pi=oe.useMemo(function(){if((0,Ft.Z)(Un)==="object")return Un.clearIcon;if(Oi)return Oi},[Un,Oi]),Bi=oe.useMemo(function(){return!!(!Pn&&Un&&(pn.length||Ce)&&!(Rn==="combobox"&&Ce===""))},[Un,Pn,pn.length,Ce,Rn]);return{allowClear:Bi,clearIcon:oe.createElement(st,{className:"".concat(Fe,"-clear"),onMouseDown:ue,customizeIcon:pi},"\xD7")}}var mt=oe.createContext(null);function Pt(){return oe.useContext(mt)}function kt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ue=oe.useState(!1),pn=(0,Ut.Z)(ue,2),Un=pn[0],Oi=pn[1],Pn=oe.useRef(null),Ce=function(){window.clearTimeout(Pn.current)};oe.useEffect(function(){return Ce},[]);var Rn=function(Bi,je){Ce(),Pn.current=window.setTimeout(function(){Oi(Bi),je&&je()},Fe)};return[Un,Rn,Ce]}function wt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ue=oe.useRef(null),pn=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout(pn.current)}},[]);function Un(Oi){(Oi||ue.current===null)&&(ue.current=Oi),window.clearTimeout(pn.current),pn.current=window.setTimeout(function(){ue.current=null},Fe)}return[function(){return ue.current},Un]}function Ot(Fe,ue,pn,Un){var Oi=oe.useRef(null);Oi.current={open:ue,triggerOpen:pn,customizedTrigger:Un},oe.useEffect(function(){function Pn(Ce){var Rn;if(!((Rn=Oi.current)!==null&&Rn!==void 0&&Rn.customizedTrigger)){var pi=Ce.target;pi.shadowRoot&&Ce.composed&&(pi=Ce.composedPath()[0]||pi),Oi.current.open&&Fe().filter(function(Bi){return Bi}).every(function(Bi){return!Bi.contains(pi)&&Bi!==pi})&&Oi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pn),function(){return window.removeEventListener("mousedown",Pn)}},[])}var jt=yt(36994),Ht=yt(11780),$t=function(ue,pn){var Un,Oi,Pn=ue.prefixCls,Ce=ue.id,Rn=ue.inputElement,pi=ue.disabled,Bi=ue.tabIndex,je=ue.autoFocus,yn=ue.autoComplete,He=ue.editable,an=ue.activeDescendantId,gn=ue.value,sn=ue.maxLength,bn=ue.onKeyDown,Fn=ue.onMouseDown,Wn=ue.onChange,qn=ue.onPaste,Bn=ue.onCompositionStart,ai=ue.onCompositionEnd,Wi=ue.open,Mr=ue.attrs,nr=Rn||oe.createElement("input",null),Oe=nr,xi=Oe.ref,Vi=Oe.props,Ti=Vi.onKeyDown,Sr=Vi.onChange,yr=Vi.onMouseDown,Dr=Vi.onCompositionStart,ir=Vi.onCompositionEnd,zi=Vi.style;return(0,Pe.Kp)(!("maxLength"in nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),nr=oe.cloneElement(nr,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({type:"search"},Vi),{},{id:Ce,ref:(0,nt.sQ)(pn,xi),disabled:pi,tabIndex:Bi,autoComplete:yn||"off",autoFocus:je,className:de()("".concat(Pn,"-selection-search-input"),(Un=nr)===null||Un===void 0||(Oi=Un.props)===null||Oi===void 0?void 0:Oi.className),role:"combobox","aria-label":"Search","aria-expanded":Wi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ce,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ce,"_list"),"aria-activedescendant":Wi?an:void 0},Mr),{},{value:He?gn:"",maxLength:sn,readOnly:!He,unselectable:He?null:"on",style:(0,Ae.Z)((0,Ae.Z)({},zi),{},{opacity:He?null:0}),onKeyDown:function(wn){bn(wn),Ti&&Ti(wn)},onMouseDown:function(wn){Fn(wn),yr&&yr(wn)},onChange:function(wn){Wn(wn),Sr&&Sr(wn)},onCompositionStart:function(wn){Bn(wn),Dr&&Dr(wn)},onCompositionEnd:function(wn){ai(wn),ir&&ir(wn)},onPaste:qn})),nr},ye=oe.forwardRef($t);ye.displayName="Input";var Yt=ye;function Ge(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var ce=typeof window!="undefined"&&window.document&&window.document.documentElement,$e=ce;function Ue(Fe){return Fe!=null}function Ke(Fe){return!Fe&&Fe!==0}function tn(Fe){return["string","number"].includes((0,Ft.Z)(Fe))}function Tn(Fe){var ue=void 0;return Fe&&(tn(Fe.title)?ue=Fe.title.toString():tn(Fe.label)&&(ue=Fe.label.toString())),ue}function ve(Fe,ue){$e?oe.useLayoutEffect(Fe,ue):oe.useEffect(Fe,ue)}function Zt(Fe){var ue;return(ue=Fe.key)!==null&&ue!==void 0?ue:Fe.value}var en=function(ue){ue.preventDefault(),ue.stopPropagation()},Kn=function(ue){var pn=ue.id,Un=ue.prefixCls,Oi=ue.values,Pn=ue.open,Ce=ue.searchValue,Rn=ue.autoClearSearchValue,pi=ue.inputRef,Bi=ue.placeholder,je=ue.disabled,yn=ue.mode,He=ue.showSearch,an=ue.autoFocus,gn=ue.autoComplete,sn=ue.activeDescendantId,bn=ue.tabIndex,Fn=ue.removeIcon,Wn=ue.maxTagCount,qn=ue.maxTagTextLength,Bn=ue.maxTagPlaceholder,ai=Bn===void 0?function(qr){return"+ ".concat(qr.length," ...")}:Bn,Wi=ue.tagRender,Mr=ue.onToggleOpen,nr=ue.onRemove,Oe=ue.onInputChange,xi=ue.onInputPaste,Vi=ue.onInputKeyDown,Ti=ue.onInputMouseDown,Sr=ue.onInputCompositionStart,yr=ue.onInputCompositionEnd,Dr=oe.useRef(null),ir=(0,oe.useState)(0),zi=(0,Ut.Z)(ir,2),Kr=zi[0],wn=zi[1],To=(0,oe.useState)(!1),An=(0,Ut.Z)(To,2),Or=An[0],Qo=An[1],uo="".concat(Un,"-selection"),Fa=Pn||yn==="multiple"&&Rn===!1||yn==="tags"?Ce:"",Vo=yn==="tags"||yn==="multiple"&&Rn===!1||He&&(Pn||Or);ve(function(){wn(Dr.current.scrollWidth)},[Fa]);function dr(qr,da,ao,_o,ca){return oe.createElement("span",{className:de()("".concat(uo,"-item"),(0,re.Z)({},"".concat(uo,"-item-disabled"),ao)),title:Tn(qr)},oe.createElement("span",{className:"".concat(uo,"-item-content")},da),_o&&oe.createElement(st,{className:"".concat(uo,"-item-remove"),onMouseDown:en,onClick:ca,customizeIcon:Fn},"\xD7"))}function or(qr,da,ao,_o,ca){var fa=function(Ar){en(Ar),Mr(!Pn)};return oe.createElement("span",{onMouseDown:fa},Wi({label:da,value:qr,disabled:ao,closable:_o,onClose:ca}))}function io(qr){var da=qr.disabled,ao=qr.label,_o=qr.value,ca=!je&&!da,fa=ao;if(typeof qn=="number"&&(typeof ao=="string"||typeof ao=="number")){var Vr=String(fa);Vr.length>qn&&(fa="".concat(Vr.slice(0,qn),"..."))}var Ar=function(Do){Do&&Do.stopPropagation(),nr(qr)};return typeof Wi=="function"?or(_o,fa,da,ca,Ar):dr(qr,fa,da,ca,Ar)}function Co(qr){var da=typeof ai=="function"?ai(qr):ai;return dr({title:da},da,!1)}var Ci=oe.createElement("div",{className:"".concat(uo,"-search"),style:{width:Kr},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},oe.createElement(Yt,{ref:pi,open:Pn,prefixCls:Un,id:pn,inputElement:null,disabled:je,autoFocus:an,autoComplete:gn,editable:Vo,activeDescendantId:sn,value:Fa,onKeyDown:Vi,onMouseDown:Ti,onChange:Oe,onPaste:xi,onCompositionStart:Sr,onCompositionEnd:yr,tabIndex:bn,attrs:(0,jt.Z)(ue,!0)}),oe.createElement("span",{ref:Dr,className:"".concat(uo,"-search-mirror"),"aria-hidden":!0},Fa,"\xA0")),Vt=oe.createElement(Ht.Z,{prefixCls:"".concat(uo,"-overflow"),data:Oi,renderItem:io,renderRest:Co,suffix:Ci,itemKey:Zt,maxCount:Wn});return oe.createElement(oe.Fragment,null,Vt,!Oi.length&&!Fa&&oe.createElement("span",{className:"".concat(uo,"-placeholder")},Bi))},ii=Kn,Be=function(ue){var pn=ue.inputElement,Un=ue.prefixCls,Oi=ue.id,Pn=ue.inputRef,Ce=ue.disabled,Rn=ue.autoFocus,pi=ue.autoComplete,Bi=ue.activeDescendantId,je=ue.mode,yn=ue.open,He=ue.values,an=ue.placeholder,gn=ue.tabIndex,sn=ue.showSearch,bn=ue.searchValue,Fn=ue.activeValue,Wn=ue.maxLength,qn=ue.onInputKeyDown,Bn=ue.onInputMouseDown,ai=ue.onInputChange,Wi=ue.onInputPaste,Mr=ue.onInputCompositionStart,nr=ue.onInputCompositionEnd,Oe=ue.title,xi=oe.useState(!1),Vi=(0,Ut.Z)(xi,2),Ti=Vi[0],Sr=Vi[1],yr=je==="combobox",Dr=yr||sn,ir=He[0],zi=bn||"";yr&&Fn&&!Ti&&(zi=Fn),oe.useEffect(function(){yr&&Sr(!1)},[yr,Fn]);var Kr=je!=="combobox"&&!yn&&!sn?!1:!!zi,wn=Oe===void 0?Tn(ir):Oe,To=function(){if(ir)return null;var Or=Kr?{visibility:"hidden"}:void 0;return oe.createElement("span",{className:"".concat(Un,"-selection-placeholder"),style:Or},an)};return oe.createElement(oe.Fragment,null,oe.createElement("span",{className:"".concat(Un,"-selection-search")},oe.createElement(Yt,{ref:Pn,prefixCls:Un,id:Oi,open:yn,inputElement:pn,disabled:Ce,autoFocus:Rn,autoComplete:pi,editable:Dr,activeDescendantId:Bi,value:zi,onKeyDown:qn,onMouseDown:Bn,onChange:function(Or){Sr(!0),ai(Or)},onPaste:Wi,onCompositionStart:Mr,onCompositionEnd:nr,tabIndex:gn,attrs:(0,jt.Z)(ue,!0),maxLength:yr?Wn:void 0})),!yr&&ir?oe.createElement("span",{className:"".concat(Un,"-selection-item"),title:wn,style:Kr?{visibility:"hidden"}:void 0},ir.label):null,To())},on=Be;function un(Fe){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(Fe)}var Jn=function(ue,pn){var Un=(0,oe.useRef)(null),Oi=(0,oe.useRef)(!1),Pn=ue.prefixCls,Ce=ue.open,Rn=ue.mode,pi=ue.showSearch,Bi=ue.tokenWithEnter,je=ue.autoClearSearchValue,yn=ue.onSearch,He=ue.onSearchSubmit,an=ue.onToggleOpen,gn=ue.onInputKeyDown,sn=ue.domRef;oe.useImperativeHandle(pn,function(){return{focus:function(){Un.current.focus()},blur:function(){Un.current.blur()}}});var bn=wt(0),Fn=(0,Ut.Z)(bn,2),Wn=Fn[0],qn=Fn[1],Bn=function(zi){var Kr=zi.which;(Kr===et.Z.UP||Kr===et.Z.DOWN)&&zi.preventDefault(),gn&&gn(zi),Kr===et.Z.ENTER&&Rn==="tags"&&!Oi.current&&!Ce&&(He==null||He(zi.target.value)),un(Kr)&&an(!0)},ai=function(){qn(!0)},Wi=(0,oe.useRef)(null),Mr=function(zi){yn(zi,!0,Oi.current)!==!1&&an(!0)},nr=function(){Oi.current=!0},Oe=function(zi){Oi.current=!1,Rn!=="combobox"&&Mr(zi.target.value)},xi=function(zi){var Kr=zi.target.value;if(Bi&&Wi.current&&/[\r\n]/.test(Wi.current)){var wn=Wi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Kr=Kr.replace(wn,Wi.current)}Wi.current=null,Mr(Kr)},Vi=function(zi){var Kr=zi.clipboardData,wn=Kr.getData("text");Wi.current=wn},Ti=function(zi){var Kr=zi.target;if(Kr!==Un.current){var wn=document.body.style.msTouchAction!==void 0;wn?setTimeout(function(){Un.current.focus()}):Un.current.focus()}},Sr=function(zi){var Kr=Wn();zi.target!==Un.current&&!Kr&&Rn!=="combobox"&&zi.preventDefault(),(Rn!=="combobox"&&(!pi||!Kr)||!Ce)&&(Ce&&je!==!1&&yn("",!0,!1),an())},yr={inputRef:Un,onInputKeyDown:Bn,onInputMouseDown:ai,onInputChange:xi,onInputPaste:Vi,onInputCompositionStart:nr,onInputCompositionEnd:Oe},Dr=Rn==="multiple"||Rn==="tags"?oe.createElement(ii,(0,At.Z)({},ue,yr)):oe.createElement(on,(0,At.Z)({},ue,yr));return oe.createElement("div",{ref:sn,className:"".concat(Pn,"-selector"),onClick:Ti,onMouseDown:Sr},Dr)},nn=oe.forwardRef(Jn);nn.displayName="Selector";var Gn=nn,pe=yt(35593),Xn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],oi=function(ue){var pn=ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"}}},te=function(ue,pn){var Un=ue.prefixCls,Oi=ue.disabled,Pn=ue.visible,Ce=ue.children,Rn=ue.popupElement,pi=ue.animation,Bi=ue.transitionName,je=ue.dropdownStyle,yn=ue.dropdownClassName,He=ue.direction,an=He===void 0?"ltr":He,gn=ue.placement,sn=ue.builtinPlacements,bn=ue.dropdownMatchSelectWidth,Fn=ue.dropdownRender,Wn=ue.dropdownAlign,qn=ue.getPopupContainer,Bn=ue.empty,ai=ue.getTriggerDOMNode,Wi=ue.onPopupVisibleChange,Mr=ue.onPopupMouseEnter,nr=(0,ne.Z)(ue,Xn),Oe="".concat(Un,"-dropdown"),xi=Rn;Fn&&(xi=Fn(Rn));var Vi=oe.useMemo(function(){return sn||oi(bn)},[sn,bn]),Ti=pi?"".concat(Oe,"-").concat(pi):Bi,Sr=typeof bn=="number",yr=oe.useMemo(function(){return Sr?null:bn===!1?"minWidth":"width"},[bn,Sr]),Dr=je;Sr&&(Dr=(0,Ae.Z)((0,Ae.Z)({},Dr),{},{width:bn}));var ir=oe.useRef(null);return oe.useImperativeHandle(pn,function(){return{getPopupElement:function(){return ir.current}}}),oe.createElement(pe.Z,(0,At.Z)({},nr,{showAction:Wi?["click"]:[],hideAction:Wi?["click"]:[],popupPlacement:gn||(an==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Vi,prefixCls:Oe,popupTransitionName:Ti,popup:oe.createElement("div",{ref:ir,onMouseEnter:Mr},xi),stretch:yr,popupAlign:Wn,popupVisible:Pn,getPopupContainer:qn,popupClassName:de()(yn,(0,re.Z)({},"".concat(Oe,"-empty"),Bn)),popupStyle:Dr,getTriggerDOMNode:ai,onPopupVisibleChange:Wi}),Ce)},bt=oe.forwardRef(te);bt.displayName="SelectTrigger";var xt=bt,Tt=yt(17953);function Bt(Fe,ue){var pn=Fe.key,Un;return"value"in Fe&&(Un=Fe.value),pn!=null?pn:Un!==void 0?Un:"rc-index-key-".concat(ue)}function St(Fe,ue){var pn=Fe||{},Un=pn.label,Oi=pn.value,Pn=pn.options,Ce=pn.groupLabel,Rn=Un||(ue?"children":"label");return{label:Rn,value:Oi||"value",options:Pn||"options",groupLabel:Ce||Rn}}function he(Fe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pn=ue.fieldNames,Un=ue.childrenAsData,Oi=[],Pn=St(pn,!1),Ce=Pn.label,Rn=Pn.value,pi=Pn.options,Bi=Pn.groupLabel;function je(yn,He){yn.forEach(function(an){if(He||!(pi in an)){var gn=an[Rn];Oi.push({key:Bt(an,Oi.length),groupOption:He,data:an,label:an[Ce],value:gn})}else{var sn=an[Bi];sn===void 0&&Un&&(sn=an.label),Oi.push({key:Bt(an,Oi.length),group:!0,data:an,label:sn}),je(an[pi],!0)}})}return je(Fe,!1),Oi}function Le(Fe){var ue=(0,Ae.Z)({},Fe);return"props"in ue||Object.defineProperty(ue,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ue}}),ue}function Gt(Fe,ue){if(!ue||!ue.length)return null;var pn=!1;function Un(Pn,Ce){var Rn=(0,Tt.Z)(Ce),pi=Rn[0],Bi=Rn.slice(1);if(!pi)return[Pn];var je=Pn.split(pi);return pn=pn||je.length>1,je.reduce(function(yn,He){return[].concat((0,zt.Z)(yn),(0,zt.Z)(Un(He,Bi)))},[]).filter(function(yn){return yn})}var Oi=Un(Fe,ue);return pn?Oi:null}var ee=["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"],xe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(Fe){return Fe==="tags"||Fe==="multiple"}var se=oe.forwardRef(function(Fe,ue){var pn,Un,Oi=Fe.id,Pn=Fe.prefixCls,Ce=Fe.className,Rn=Fe.showSearch,pi=Fe.tagRender,Bi=Fe.direction,je=Fe.omitDomProps,yn=Fe.displayValues,He=Fe.onDisplayValuesChange,an=Fe.emptyOptions,gn=Fe.notFoundContent,sn=gn===void 0?"Not Found":gn,bn=Fe.onClear,Fn=Fe.mode,Wn=Fe.disabled,qn=Fe.loading,Bn=Fe.getInputElement,ai=Fe.getRawInputElement,Wi=Fe.open,Mr=Fe.defaultOpen,nr=Fe.onDropdownVisibleChange,Oe=Fe.activeValue,xi=Fe.onActiveValueChange,Vi=Fe.activeDescendantId,Ti=Fe.searchValue,Sr=Fe.autoClearSearchValue,yr=Fe.onSearch,Dr=Fe.onSearchSplit,ir=Fe.tokenSeparators,zi=Fe.allowClear,Kr=Fe.suffixIcon,wn=Fe.clearIcon,To=Fe.OptionList,An=Fe.animation,Or=Fe.transitionName,Qo=Fe.dropdownStyle,uo=Fe.dropdownClassName,Fa=Fe.dropdownMatchSelectWidth,Vo=Fe.dropdownRender,dr=Fe.dropdownAlign,or=Fe.placement,io=Fe.builtinPlacements,Co=Fe.getPopupContainer,Ci=Fe.showAction,Vt=Ci===void 0?[]:Ci,qr=Fe.onFocus,da=Fe.onBlur,ao=Fe.onKeyUp,_o=Fe.onKeyDown,ca=Fe.onMouseDown,fa=(0,ne.Z)(Fe,ee),Vr=we(Fn),Ar=(Rn!==void 0?Rn:Vr)||Fn==="combobox",Cr=(0,Ae.Z)({},fa);xe.forEach(function(Bo){delete Cr[Bo]}),je==null||je.forEach(function(Bo){delete Cr[Bo]});var Do=oe.useState(!1),Ui=(0,Ut.Z)(Do,2),$i=Ui[0],Er=Ui[1];oe.useEffect(function(){Er((0,Nt.Z)())},[]);var ei=oe.useRef(null),Ho=oe.useRef(null),$o=oe.useRef(null),Na=oe.useRef(null),ua=oe.useRef(null),Ia=kt(),Ra=(0,Ut.Z)(Ia,3),ys=Ra[0],Ds=Ra[1],_s=Ra[2];oe.useImperativeHandle(ue,function(){var Bo,ha;return{focus:(Bo=Na.current)===null||Bo===void 0?void 0:Bo.focus,blur:(ha=Na.current)===null||ha===void 0?void 0:ha.blur,scrollTo:function(xs){var ws;return(ws=ua.current)===null||ws===void 0?void 0:ws.scrollTo(xs)}}});var Ys=oe.useMemo(function(){var Bo;if(Fn!=="combobox")return Ti;var ha=(Bo=yn[0])===null||Bo===void 0?void 0:Bo.value;return typeof ha=="string"||typeof ha=="number"?String(ha):""},[Ti,Fn,yn]),ln=Fn==="combobox"&&typeof Bn=="function"&&Bn()||null,js=typeof ai=="function"&&ai(),au=(0,nt.x1)(Ho,js==null||(pn=js.props)===null||pn===void 0?void 0:pn.ref),su=oe.useState(!1),ko=(0,Ut.Z)(su,2),ga=ko[0],os=ko[1];(0,be.Z)(function(){os(!0)},[]);var pa=(0,De.Z)(!1,{defaultValue:Mr,value:Wi}),Fo=(0,Ut.Z)(pa,2),sa=Fo[0],bs=Fo[1],no=ga?sa:!1,Ro=!sn&&an;(Wn||Ro&&no&&Fn==="combobox")&&(no=!1);var Oo=Ro?!1:no,Zi=oe.useCallback(function(Bo){var ha=Bo!==void 0?Bo:!no;Wn||(bs(ha),no!==ha&&(nr==null||nr(ha)))},[Wn,no,bs,nr]),cs=oe.useMemo(function(){return(ir||[]).some(function(Bo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bo)})},[ir]),Ss=function(ha,cl,xs){var ws=!0,_a=ha;xi==null||xi(null);var ls=xs?null:Gt(ha,ir);return Fn!=="combobox"&&ls&&(_a="",Dr==null||Dr(ls),Zi(!1),ws=!1),yr&&Ys!==_a&&yr(_a,{source:cl?"typing":"effect"}),ws},dl=function(ha){!ha||!ha.trim()||yr(ha,{source:"submit"})};oe.useEffect(function(){!no&&!Vr&&Fn!=="combobox"&&Ss("",!1,!1)},[no]),oe.useEffect(function(){sa&&Wn&&bs(!1),Wn&&Ds(!1)},[Wn]);var lu=wt(),wu=(0,Ut.Z)(lu,2),Fi=wu[0],Ya=wu[1],Es=function(ha){var cl=Fi(),xs=ha.which;if(xs===et.Z.ENTER&&(Fn!=="combobox"&&ha.preventDefault(),no||Zi(!0)),Ya(!!Ys),xs===et.Z.BACKSPACE&&!cl&&Vr&&!Ys&&yn.length){for(var ws=(0,zt.Z)(yn),_a=null,ls=ws.length-1;ls>=0;ls-=1){var Ls=ws[ls];if(!Ls.disabled){ws.splice(ls,1),_a=Ls;break}}_a&&He(ws,{type:"remove",values:[_a]})}for(var Ps=arguments.length,ih=new Array(Ps>1?Ps-1:0),Ql=1;Ql<Ps;Ql++)ih[Ql-1]=arguments[Ql];if(no&&ua.current){var fs;(fs=ua.current).onKeyDown.apply(fs,[ha].concat(ih))}_o==null||_o.apply(void 0,[ha].concat(ih))},Jl=function(ha){for(var cl=arguments.length,xs=new Array(cl>1?cl-1:0),ws=1;ws<cl;ws++)xs[ws-1]=arguments[ws];if(no&&ua.current){var _a;(_a=ua.current).onKeyUp.apply(_a,[ha].concat(xs))}ao==null||ao.apply(void 0,[ha].concat(xs))},uu=function(ha){var cl=yn.filter(function(xs){return xs!==ha});He(cl,{type:"remove",values:[ha]})},hu=oe.useRef(!1),ho=function(){Ds(!0),Wn||(qr&&!hu.current&&qr.apply(void 0,arguments),Vt.includes("focus")&&Zi(!0)),hu.current=!0},Sh=function(){Ds(!1,function(){hu.current=!1,Zi(!1)}),!Wn&&(Ys&&(Fn==="tags"?yr(Ys,{source:"submit"}):Fn==="multiple"&&yr("",{source:"blur"})),da&&da.apply(void 0,arguments))},El=[];oe.useEffect(function(){return function(){El.forEach(function(Bo){return clearTimeout(Bo)}),El.splice(0,El.length)}},[]);var Ll=function(ha){var cl,xs=ha.target,ws=(cl=$o.current)===null||cl===void 0?void 0:cl.getPopupElement();if(ws&&ws.contains(xs)){var _a=setTimeout(function(){var ih=El.indexOf(_a);if(ih!==-1&&El.splice(ih,1),_s(),!$i&&!ws.contains(document.activeElement)){var Ql;(Ql=Na.current)===null||Ql===void 0||Ql.focus()}});El.push(_a)}for(var ls=arguments.length,Ls=new Array(ls>1?ls-1:0),Ps=1;Ps<ls;Ps++)Ls[Ps-1]=arguments[Ps];ca==null||ca.apply(void 0,[ha].concat(Ls))},ml=oe.useState({}),Zu=(0,Ut.Z)(ml,2),Pu=Zu[1];function vl(){Pu({})}var Ml;js&&(Ml=function(ha){Zi(ha)}),Ot(function(){var Bo;return[ei.current,(Bo=$o.current)===null||Bo===void 0?void 0:Bo.getPopupElement()]},Oo,Zi,!!js);var Bh=oe.useMemo(function(){return(0,Ae.Z)((0,Ae.Z)({},Fe),{},{notFoundContent:sn,open:no,triggerOpen:Oo,id:Oi,showSearch:Ar,multiple:Vr,toggleOpen:Zi})},[Fe,sn,Oo,no,Oi,Ar,Vr,Zi]),_h=!!Kr||qn,Oh;_h&&(Oh=oe.createElement(st,{className:de()("".concat(Pn,"-arrow"),(0,re.Z)({},"".concat(Pn,"-arrow-loading"),qn)),customizeIcon:Kr,customizeIconProps:{loading:qn,searchValue:Ys,open:no,focused:ys,showSearch:Ar}}));var gd=function(){var ha;bn==null||bn(),(ha=Na.current)===null||ha===void 0||ha.focus(),He([],{type:"clear",values:yn}),Ss("",!1,!1)},Ih=gt(Pn,gd,yn,zi,wn,Wn,Ys,Fn),Gu=Ih.allowClear,Dl=Ih.clearIcon,Bl=oe.createElement(To,{ref:ua}),pd=de()(Pn,Ce,(Un={},(0,re.Z)(Un,"".concat(Pn,"-focused"),ys),(0,re.Z)(Un,"".concat(Pn,"-multiple"),Vr),(0,re.Z)(Un,"".concat(Pn,"-single"),!Vr),(0,re.Z)(Un,"".concat(Pn,"-allow-clear"),zi),(0,re.Z)(Un,"".concat(Pn,"-show-arrow"),_h),(0,re.Z)(Un,"".concat(Pn,"-disabled"),Wn),(0,re.Z)(Un,"".concat(Pn,"-loading"),qn),(0,re.Z)(Un,"".concat(Pn,"-open"),no),(0,re.Z)(Un,"".concat(Pn,"-customize-input"),ln),(0,re.Z)(Un,"".concat(Pn,"-show-search"),Ar),Un)),td=oe.createElement(xt,{ref:$o,disabled:Wn,prefixCls:Pn,visible:Oo,popupElement:Bl,animation:An,transitionName:Or,dropdownStyle:Qo,dropdownClassName:uo,direction:Bi,dropdownMatchSelectWidth:Fa,dropdownRender:Vo,dropdownAlign:dr,placement:or,builtinPlacements:io,getPopupContainer:Co,empty:an,getTriggerDOMNode:function(){return Ho.current},onPopupVisibleChange:Ml,onPopupMouseEnter:vl},js?oe.cloneElement(js,{ref:au}):oe.createElement(Gn,(0,At.Z)({},Fe,{domRef:Ho,prefixCls:Pn,inputElement:ln,ref:Na,id:Oi,showSearch:Ar,autoClearSearchValue:Sr,mode:Fn,activeDescendantId:Vi,tagRender:pi,values:yn,open:no,onToggleOpen:Zi,activeValue:Oe,searchValue:Ys,onSearch:Ss,onSearchSubmit:dl,onRemove:uu,tokenWithEnter:cs}))),Cu;return js?Cu=td:Cu=oe.createElement("div",(0,At.Z)({className:pd},Cr,{ref:ei,onMouseDown:Ll,onKeyDown:Es,onKeyUp:Jl,onFocus:ho,onBlur:Sh}),ys&&!no&&oe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yn.map(function(Bo){var ha=Bo.label,cl=Bo.value;return["number","string"].includes((0,Ft.Z)(ha))?ha:cl}).join(", "))),td,Oh,Gu&&Dl),oe.createElement(mt.Provider,{value:Bh},Cu)}),ke=se,vn=function(Fe,ue){var pn=oe.useRef({values:new Map,options:new Map}),Un=oe.useMemo(function(){var Pn=pn.current,Ce=Pn.values,Rn=Pn.options,pi=Fe.map(function(yn){if(yn.label===void 0){var He;return(0,Ae.Z)((0,Ae.Z)({},yn),{},{label:(He=Ce.get(yn.value))===null||He===void 0?void 0:He.label})}return yn}),Bi=new Map,je=new Map;return pi.forEach(function(yn){Bi.set(yn.value,yn),je.set(yn.value,ue.get(yn.value)||Rn.get(yn.value))}),pn.current.values=Bi,pn.current.options=je,pi},[Fe,ue]),Oi=oe.useCallback(function(Pn){return ue.get(Pn)||pn.current.options.get(Pn)},[ue]);return[Un,Oi]};function cn(Fe,ue){return Ge(Fe).join("").toUpperCase().includes(ue)}var Je=function(Fe,ue,pn,Un,Oi){return oe.useMemo(function(){if(!pn||Un===!1)return Fe;var Pn=ue.options,Ce=ue.label,Rn=ue.value,pi=[],Bi=typeof Un=="function",je=pn.toUpperCase(),yn=Bi?Un:function(an,gn){return Oi?cn(gn[Oi],je):gn[Pn]?cn(gn[Ce!=="children"?Ce:"label"],je):cn(gn[Rn],je)},He=Bi?function(an){return Le(an)}:function(an){return an};return Fe.forEach(function(an){if(an[Pn]){var gn=yn(pn,He(an));if(gn)pi.push(an);else{var sn=an[Pn].filter(function(bn){return yn(pn,He(bn))});sn.length&&pi.push((0,Ae.Z)((0,Ae.Z)({},an),{},(0,re.Z)({},Pn,sn)))}return}yn(pn,He(an))&&pi.push(an)}),pi},[Fe,Un,Oi,pn,ue])},hn=yt(17115),Vn=yt(38298),Se=["children","value"],qe=["children"];function Qe(Fe){var ue=Fe,pn=ue.key,Un=ue.props,Oi=Un.children,Pn=Un.value,Ce=(0,ne.Z)(Un,Se);return(0,Ae.Z)({key:pn,value:Pn!==void 0?Pn:pn,children:Oi},Ce)}function Nn(Fe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Vn.Z)(Fe).map(function(pn,Un){if(!oe.isValidElement(pn)||!pn.type)return null;var Oi=pn,Pn=Oi.type.isSelectOptGroup,Ce=Oi.key,Rn=Oi.props,pi=Rn.children,Bi=(0,ne.Z)(Rn,qe);return ue||!Pn?Qe(pn):(0,Ae.Z)((0,Ae.Z)({key:"__RC_SELECT_GRP__".concat(Ce===null?Un:Ce,"__"),label:Ce},Bi),{},{options:Nn(pi)})}).filter(function(pn){return pn})}function hi(Fe,ue,pn,Un,Oi){return oe.useMemo(function(){var Pn=Fe,Ce=!Fe;Ce&&(Pn=Nn(ue));var Rn=new Map,pi=new Map,Bi=function(He,an,gn){gn&&typeof gn=="string"&&He.set(an[gn],an)};function je(yn){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=0;an<yn.length;an+=1){var gn=yn[an];!gn[pn.options]||He?(Rn.set(gn[pn.value],gn),Bi(pi,gn,pn.label),Bi(pi,gn,Un),Bi(pi,gn,Oi)):je(gn[pn.options],!0)}}return je(Pn),{options:Pn,valueOptions:Rn,labelOptions:pi}},[Fe,ue,pn,Un,Oi])}function mi(Fe){var ue=oe.useRef();ue.current=Fe;var pn=oe.useCallback(function(){return ue.current.apply(ue,arguments)},[]);return pn}var gi=function(){return null};gi.isSelectOptGroup=!0;var Pi=gi,_i=function(){return null};_i.isSelectOption=!0;var vr=_i,gr=yt(79722),fr=yt(64002),eo=yt(50030),Jr=oe.createContext(null),Xi=Jr;function $r(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ki=["disabled","title","children","style","className"];function Lt(Fe){return typeof Fe=="string"||typeof Fe=="number"}var li=function(ue,pn){var Un=Pt(),Oi=Un.prefixCls,Pn=Un.id,Ce=Un.open,Rn=Un.multiple,pi=Un.mode,Bi=Un.searchValue,je=Un.toggleOpen,yn=Un.notFoundContent,He=Un.onPopupScroll,an=oe.useContext(Xi),gn=an.flattenOptions,sn=an.onActiveValue,bn=an.defaultActiveFirstOption,Fn=an.onSelect,Wn=an.menuItemSelectedIcon,qn=an.rawValues,Bn=an.fieldNames,ai=an.virtual,Wi=an.direction,Mr=an.listHeight,nr=an.listItemHeight,Oe="".concat(Oi,"-item"),xi=(0,gr.Z)(function(){return gn},[Ce,gn],function(dr,or){return or[0]&&dr[1]!==or[1]}),Vi=oe.useRef(null),Ti=function(or){or.preventDefault()},Sr=function(or){Vi.current&&Vi.current.scrollTo(typeof or=="number"?{index:or}:or)},yr=function(or){for(var io=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Co=xi.length,Ci=0;Ci<Co;Ci+=1){var Vt=(or+Ci*io+Co)%Co,qr=xi[Vt],da=qr.group,ao=qr.data;if(!da&&!ao.disabled)return Vt}return-1},Dr=oe.useState(function(){return yr(0)}),ir=(0,Ut.Z)(Dr,2),zi=ir[0],Kr=ir[1],wn=function(or){var io=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Kr(or);var Co={source:io?"keyboard":"mouse"},Ci=xi[or];if(!Ci){sn(null,-1,Co);return}sn(Ci.value,or,Co)};(0,oe.useEffect)(function(){wn(bn!==!1?yr(0):-1)},[xi.length,Bi]);var To=oe.useCallback(function(dr){return qn.has(dr)&&pi!=="combobox"},[pi,(0,zt.Z)(qn).toString(),qn.size]);(0,oe.useEffect)(function(){var dr=setTimeout(function(){if(!Rn&&Ce&&qn.size===1){var io=Array.from(qn)[0],Co=xi.findIndex(function(Ci){var Vt=Ci.data;return Vt.value===io});Co!==-1&&(wn(Co),Sr(Co))}});if(Ce){var or;(or=Vi.current)===null||or===void 0||or.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[Ce,Bi,gn.length]);var An=function(or){or!==void 0&&Fn(or,{selected:!qn.has(or)}),Rn||je(!1)};if(oe.useImperativeHandle(pn,function(){return{onKeyDown:function(or){var io=or.which,Co=or.ctrlKey;switch(io){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Ci=0;if(io===et.Z.UP?Ci=-1:io===et.Z.DOWN?Ci=1:$r()&&Co&&(io===et.Z.N?Ci=1:io===et.Z.P&&(Ci=-1)),Ci!==0){var Vt=yr(zi+Ci,Ci);Sr(Vt),wn(Vt,!0)}break}case et.Z.ENTER:{var qr=xi[zi];qr&&!qr.data.disabled?An(qr.value):An(void 0),Ce&&or.preventDefault();break}case et.Z.ESC:je(!1),Ce&&or.stopPropagation()}},onKeyUp:function(){},scrollTo:function(or){Sr(or)}}}),xi.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(Pn,"_list"),className:"".concat(Oe,"-empty"),onMouseDown:Ti},yn);var Or=Object.keys(Bn).map(function(dr){return Bn[dr]}),Qo=function(or){return or.label};function uo(dr,or){var io=dr.group;return{role:io?"presentation":"option",id:"".concat(Pn,"_list_").concat(or)}}var Fa=function(or){var io=xi[or];if(!io)return null;var Co=io.data||{},Ci=Co.value,Vt=io.group,qr=(0,jt.Z)(Co,!0),da=Qo(io);return io?oe.createElement("div",(0,At.Z)({"aria-label":typeof da=="string"&&!Vt?da:null},qr,{key:or},uo(io,or),{"aria-selected":To(Ci)}),Ci):null},Vo={role:"listbox",id:"".concat(Pn,"_list")};return oe.createElement(oe.Fragment,null,ai&&oe.createElement("div",(0,At.Z)({},Vo,{style:{height:0,width:0,overflow:"hidden"}}),Fa(zi-1),Fa(zi),Fa(zi+1)),oe.createElement(eo.Z,{itemKey:"key",ref:Vi,data:xi,height:Mr,itemHeight:nr,fullHeight:!1,onMouseDown:Ti,onScroll:He,virtual:ai,direction:Wi,innerProps:ai?null:Vo},function(dr,or){var io,Co=dr.group,Ci=dr.groupOption,Vt=dr.data,qr=dr.label,da=dr.value,ao=Vt.key;if(Co){var _o,ca=(_o=Vt.title)!==null&&_o!==void 0?_o:Lt(qr)?qr.toString():void 0;return oe.createElement("div",{className:de()(Oe,"".concat(Oe,"-group")),title:ca},qr!==void 0?qr:ao)}var fa=Vt.disabled,Vr=Vt.title,Ar=Vt.children,Cr=Vt.style,Do=Vt.className,Ui=(0,ne.Z)(Vt,Ki),$i=(0,fr.Z)(Ui,Or),Er=To(da),ei="".concat(Oe,"-option"),Ho=de()(Oe,ei,Do,(io={},(0,re.Z)(io,"".concat(ei,"-grouped"),Ci),(0,re.Z)(io,"".concat(ei,"-active"),zi===or&&!fa),(0,re.Z)(io,"".concat(ei,"-disabled"),fa),(0,re.Z)(io,"".concat(ei,"-selected"),Er),io)),$o=Qo(dr),Na=!Wn||typeof Wn=="function"||Er,ua=typeof $o=="number"?$o:$o||da,Ia=Lt(ua)?ua.toString():void 0;return Vr!==void 0&&(Ia=Vr),oe.createElement("div",(0,At.Z)({},(0,jt.Z)($i),ai?{}:uo(dr,or),{"aria-selected":Er,className:Ho,title:Ia,onMouseMove:function(){zi===or||fa||wn(or)},onClick:function(){fa||An(da)},style:Cr}),oe.createElement("div",{className:"".concat(ei,"-content")},ua),oe.isValidElement(Wn)||Er,Na&&oe.createElement(st,{className:"".concat(Oe,"-option-state"),customizeIcon:Wn,customizeIconProps:{isSelected:Er}},Er?"\u2713":null))}))},vi=oe.forwardRef(li);vi.displayName="OptionList";var Lr=vi;function hr(Fe){var ue=Fe.mode,pn=Fe.options,Un=Fe.children,Oi=Fe.backfill,Pn=Fe.allowClear,Ce=Fe.placeholder,Rn=Fe.getInputElement,pi=Fe.showSearch,Bi=Fe.onSearch,je=Fe.defaultOpen,yn=Fe.autoFocus,He=Fe.labelInValue,an=Fe.value,gn=Fe.inputValue,sn=Fe.optionLabelProp,bn=isMultiple(ue),Fn=pi!==void 0?pi:bn||ue==="combobox",Wn=pn||convertChildrenToData(Un);if(warning(ue!=="tags"||Wn.every(function(Wi){return!Wi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ue==="tags"||ue==="combobox"){var qn=Wn.some(function(Wi){return Wi.options?Wi.options.some(function(Mr){return typeof("value"in Mr?Mr.value:Mr.key)=="number"}):typeof("value"in Wi?Wi.value:Wi.key)=="number"});warning(!qn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ue!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ue==="combobox"||!Oi,"`backfill` only works with `combobox` mode."),warning(ue==="combobox"||!Rn,"`getInputElement` only work with `combobox` mode."),noteOnce(ue!=="combobox"||!Rn||!Pn||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Bi&&!Fn&&ue!=="combobox"&&ue!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!je||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),an!=null){var Bn=toArray(an);warning(!He||Bn.every(function(Wi){return _typeof(Wi)==="object"&&("key"in Wi||"value"in Wi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!bn||Array.isArray(an),"`value` should be array when `mode` is `multiple` or `tags`")}if(Un){var ai=null;toNodeArray(Un).some(function(Wi){if(!React.isValidElement(Wi)||!Wi.type)return!1;var Mr=Wi,nr=Mr.type;if(nr.isSelectOption)return!1;if(nr.isSelectOptGroup){var Oe=toNodeArray(Wi.props.children).every(function(xi){return!React.isValidElement(xi)||!Wi.type||xi.type.isSelectOption?!0:(ai=xi.type,!1)});return!Oe}return ai=nr,!0}),ai&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ai.displayName||ai.name||ai,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qi(Fe,ue){if(Fe){var pn=function Un(Oi){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=0;Ce<Oi.length;Ce++){var Rn=Oi[Ce];if(Rn[ue==null?void 0:ue.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Pn&&Array.isArray(Rn[ue==null?void 0:ue.options])&&Un(Rn[ue==null?void 0:ue.options],!0))break}};pn(Fe)}}var Zr=null,Gr=["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"],Ln=["inputValue"];function fn(Fe){return!Fe||(0,Ft.Z)(Fe)!=="object"}var Ze=oe.forwardRef(function(Fe,ue){var pn=Fe.id,Un=Fe.mode,Oi=Fe.prefixCls,Pn=Oi===void 0?"rc-select":Oi,Ce=Fe.backfill,Rn=Fe.fieldNames,pi=Fe.inputValue,Bi=Fe.searchValue,je=Fe.onSearch,yn=Fe.autoClearSearchValue,He=yn===void 0?!0:yn,an=Fe.onSelect,gn=Fe.onDeselect,sn=Fe.dropdownMatchSelectWidth,bn=sn===void 0?!0:sn,Fn=Fe.filterOption,Wn=Fe.filterSort,qn=Fe.optionFilterProp,Bn=Fe.optionLabelProp,ai=Fe.options,Wi=Fe.children,Mr=Fe.defaultActiveFirstOption,nr=Fe.menuItemSelectedIcon,Oe=Fe.virtual,xi=Fe.direction,Vi=Fe.listHeight,Ti=Vi===void 0?200:Vi,Sr=Fe.listItemHeight,yr=Sr===void 0?20:Sr,Dr=Fe.value,ir=Fe.defaultValue,zi=Fe.labelInValue,Kr=Fe.onChange,wn=(0,ne.Z)(Fe,Gr),To=(0,hn.ZP)(pn),An=we(Un),Or=!!(!ai&&Wi),Qo=oe.useMemo(function(){return Fn===void 0&&Un==="combobox"?!1:Fn},[Fn,Un]),uo=oe.useMemo(function(){return St(Rn,Or)},[JSON.stringify(Rn),Or]),Fa=(0,De.Z)("",{value:Bi!==void 0?Bi:pi,postState:function(Ro){return Ro||""}}),Vo=(0,Ut.Z)(Fa,2),dr=Vo[0],or=Vo[1],io=hi(ai,Wi,uo,qn,Bn),Co=io.valueOptions,Ci=io.labelOptions,Vt=io.options,qr=oe.useCallback(function(no){var Ro=Ge(no);return Ro.map(function(Oo){var Zi,cs,Ss,dl,lu;if(fn(Oo))Zi=Oo;else{var wu;Ss=Oo.key,cs=Oo.label,Zi=(wu=Oo.value)!==null&&wu!==void 0?wu:Ss}var Fi=Co.get(Zi);if(Fi){var Ya;if(cs===void 0&&(cs=Fi==null?void 0:Fi[Bn||uo.label]),Ss===void 0&&(Ss=(Ya=Fi==null?void 0:Fi.key)!==null&&Ya!==void 0?Ya:Zi),dl=Fi==null?void 0:Fi.disabled,lu=Fi==null?void 0:Fi.title,0)var Es}return{label:cs,value:Zi,key:Ss,disabled:dl,title:lu}})},[uo,Bn,Co]),da=(0,De.Z)(ir,{value:Dr}),ao=(0,Ut.Z)(da,2),_o=ao[0],ca=ao[1],fa=oe.useMemo(function(){var no,Ro=qr(_o);return Un==="combobox"&&Ke((no=Ro[0])===null||no===void 0?void 0:no.value)?[]:Ro},[_o,qr,Un]),Vr=vn(fa,Co),Ar=(0,Ut.Z)(Vr,2),Cr=Ar[0],Do=Ar[1],Ui=oe.useMemo(function(){if(!Un&&Cr.length===1){var no=Cr[0];if(no.value===null&&(no.label===null||no.label===void 0))return[]}return Cr.map(function(Ro){var Oo;return(0,Ae.Z)((0,Ae.Z)({},Ro),{},{label:(Oo=Ro.label)!==null&&Oo!==void 0?Oo:Ro.value})})},[Un,Cr]),$i=oe.useMemo(function(){return new Set(Cr.map(function(no){return no.value}))},[Cr]);oe.useEffect(function(){if(Un==="combobox"){var no,Ro=(no=Cr[0])===null||no===void 0?void 0:no.value;or(Ue(Ro)?String(Ro):"")}},[Cr]);var Er=mi(function(no,Ro){var Oo,Zi=Ro!=null?Ro:no;return Oo={},(0,re.Z)(Oo,uo.value,no),(0,re.Z)(Oo,uo.label,Zi),Oo}),ei=oe.useMemo(function(){if(Un!=="tags")return Vt;var no=(0,zt.Z)(Vt),Ro=function(Zi){return Co.has(Zi)};return(0,zt.Z)(Cr).sort(function(Oo,Zi){return Oo.value<Zi.value?-1:1}).forEach(function(Oo){var Zi=Oo.value;Ro(Zi)||no.push(Er(Zi,Oo.label))}),no},[Er,Vt,Co,Cr,Un]),Ho=Je(ei,uo,dr,Qo,qn),$o=oe.useMemo(function(){return Un!=="tags"||!dr||Ho.some(function(no){return no[qn||"value"]===dr})||Ho.some(function(no){return no[uo.value]===dr})?Ho:[Er(dr)].concat((0,zt.Z)(Ho))},[Er,qn,Un,Ho,dr,uo]),Na=oe.useMemo(function(){return Wn?(0,zt.Z)($o).sort(function(no,Ro){return Wn(no,Ro)}):$o},[$o,Wn]),ua=oe.useMemo(function(){return he(Na,{fieldNames:uo,childrenAsData:Or})},[Na,uo,Or]),Ia=function(Ro){var Oo=qr(Ro);if(ca(Oo),Kr&&(Oo.length!==Cr.length||Oo.some(function(Ss,dl){var lu;return((lu=Cr[dl])===null||lu===void 0?void 0:lu.value)!==(Ss==null?void 0:Ss.value)}))){var Zi=zi?Oo:Oo.map(function(Ss){return Ss.value}),cs=Oo.map(function(Ss){return Le(Do(Ss.value))});Kr(An?Zi:Zi[0],An?cs:cs[0])}},Ra=oe.useState(null),ys=(0,Ut.Z)(Ra,2),Ds=ys[0],_s=ys[1],Ys=oe.useState(0),ln=(0,Ut.Z)(Ys,2),js=ln[0],au=ln[1],su=Mr!==void 0?Mr:Un!=="combobox",ko=oe.useCallback(function(no,Ro){var Oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zi=Oo.source,cs=Zi===void 0?"keyboard":Zi;au(Ro),Ce&&Un==="combobox"&&no!==null&&cs==="keyboard"&&_s(String(no))},[Ce,Un]),ga=function(Ro,Oo,Zi){var cs=function(){var hu,ho=Do(Ro);return[zi?{label:ho==null?void 0:ho[uo.label],value:Ro,key:(hu=ho==null?void 0:ho.key)!==null&&hu!==void 0?hu:Ro}:Ro,Le(ho)]};if(Oo&&an){var Ss=cs(),dl=(0,Ut.Z)(Ss,2),lu=dl[0],wu=dl[1];an(lu,wu)}else if(!Oo&&gn&&Zi!=="clear"){var Fi=cs(),Ya=(0,Ut.Z)(Fi,2),Es=Ya[0],Jl=Ya[1];gn(Es,Jl)}},os=mi(function(no,Ro){var Oo,Zi=An?Ro.selected:!0;Zi?Oo=An?[].concat((0,zt.Z)(Cr),[no]):[no]:Oo=Cr.filter(function(cs){return cs.value!==no}),Ia(Oo),ga(no,Zi),Un==="combobox"?_s(""):(!we||He)&&(or(""),_s(""))}),pa=function(Ro,Oo){Ia(Ro);var Zi=Oo.type,cs=Oo.values;(Zi==="remove"||Zi==="clear")&&cs.forEach(function(Ss){ga(Ss.value,!1,Zi)})},Fo=function(Ro,Oo){if(or(Ro),_s(null),Oo.source==="submit"){var Zi=(Ro||"").trim();if(Zi){var cs=Array.from(new Set([].concat((0,zt.Z)($i),[Zi])));Ia(cs),ga(Zi,!0),or("")}return}Oo.source!=="blur"&&(Un==="combobox"&&Ia(Ro),je==null||je(Ro))},sa=function(Ro){var Oo=Ro;Un!=="tags"&&(Oo=Ro.map(function(cs){var Ss=Ci.get(cs);return Ss==null?void 0:Ss.value}).filter(function(cs){return cs!==void 0}));var Zi=Array.from(new Set([].concat((0,zt.Z)($i),(0,zt.Z)(Oo))));Ia(Zi),Zi.forEach(function(cs){ga(cs,!0)})},bs=oe.useMemo(function(){var no=Oe!==!1&&bn!==!1;return(0,Ae.Z)((0,Ae.Z)({},io),{},{flattenOptions:ua,onActiveValue:ko,defaultActiveFirstOption:su,onSelect:os,menuItemSelectedIcon:nr,rawValues:$i,fieldNames:uo,virtual:no,direction:xi,listHeight:Ti,listItemHeight:yr,childrenAsData:Or})},[io,ua,ko,su,os,nr,$i,uo,Oe,bn,Ti,yr,Or]);return oe.createElement(Xi.Provider,{value:bs},oe.createElement(ke,(0,At.Z)({},wn,{id:To,prefixCls:Pn,ref:ue,omitDomProps:Ln,mode:Un,displayValues:Ui,onDisplayValuesChange:pa,direction:xi,searchValue:dr,onSearch:Fo,autoClearSearchValue:He,onSearchSplit:sa,dropdownMatchSelectWidth:bn,OptionList:Lr,emptyOptions:!ua.length,activeValue:Ds,activeDescendantId:"".concat(To,"_list_").concat(js)})))}),fe=Ze;fe.Option=vr,fe.OptGroup=Pi;var Sn=fe,In=Sn},9296:function(On,Cn,yt){"use strict";yt.r(Cn),yt.d(Cn,{ResizableTextArea:function(){return ye},default:function(){return Ke}});var At=yt(5891),zt=yt(57259),re=yt(80962),Ae=yt(80665),Ut=yt(29043),ne=yt(19149),Ft=yt(26390),De=yt(92310),Pe=yt.n(De),oe=yt(93681),Re=yt(5643),de=yt(35788),be=yt(59301),Nt=yt(29301),et=yt(28800),nt=yt(23073),ht=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,st=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],gt={},mt;function Pt(tn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=tn.getAttribute("id")||tn.getAttribute("data-reactid")||tn.getAttribute("name");if(Tn&>[ve])return gt[ve];var Zt=window.getComputedStyle(tn),en=Zt.getPropertyValue("box-sizing")||Zt.getPropertyValue("-moz-box-sizing")||Zt.getPropertyValue("-webkit-box-sizing"),Kn=parseFloat(Zt.getPropertyValue("padding-bottom"))+parseFloat(Zt.getPropertyValue("padding-top")),ii=parseFloat(Zt.getPropertyValue("border-bottom-width"))+parseFloat(Zt.getPropertyValue("border-top-width")),Be=st.map(function(un){return"".concat(un,":").concat(Zt.getPropertyValue(un))}).join(";"),on={sizingStyle:Be,paddingSize:Kn,borderSize:ii,boxSizing:en};return Tn&&ve&&(gt[ve]=on),on}function kt(tn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;mt||(mt=document.createElement("textarea"),mt.setAttribute("tab-index","-1"),mt.setAttribute("aria-hidden","true"),document.body.appendChild(mt)),tn.getAttribute("wrap")?mt.setAttribute("wrap",tn.getAttribute("wrap")):mt.removeAttribute("wrap");var en=Pt(tn,Tn),Kn=en.paddingSize,ii=en.borderSize,Be=en.boxSizing,on=en.sizingStyle;mt.setAttribute("style","".concat(on,";").concat(ht)),mt.value=tn.value||tn.placeholder||"";var un=void 0,Jn=void 0,nn,Gn=mt.scrollHeight;if(Be==="border-box"?Gn+=ii:Be==="content-box"&&(Gn-=Kn),ve!==null||Zt!==null){mt.value=" ";var pe=mt.scrollHeight-Kn;ve!==null&&(un=pe*ve,Be==="border-box"&&(un=un+Kn+ii),Gn=Math.max(un,Gn)),Zt!==null&&(Jn=pe*Zt,Be==="border-box"&&(Jn=Jn+Kn+ii),nn=Gn>Jn?"":"hidden",Gn=Math.min(Jn,Gn))}var Xn={height:Gn,overflowY:nn,resize:"none"};return un&&(Xn.minHeight=un),Jn&&(Xn.maxHeight=Jn),Xn}var wt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ot=0,jt=1,Ht=2,$t=be.forwardRef(function(tn,Tn){var ve=tn,Zt=ve.prefixCls,en=ve.onPressEnter,Kn=ve.defaultValue,ii=ve.value,Be=ve.autoSize,on=ve.onResize,un=ve.className,Jn=ve.style,nn=ve.disabled,Gn=ve.onChange,pe=ve.onInternalAutoSize,Xn=(0,ne.Z)(ve,wt),oi=(0,de.Z)(Kn,{value:ii,postState:function(Pi){return Pi!=null?Pi:""}}),te=(0,Ut.Z)(oi,2),bt=te[0],xt=te[1],Tt=function(Pi){xt(Pi.target.value),Gn==null||Gn(Pi)},Bt=be.useRef();be.useImperativeHandle(Tn,function(){return{textArea:Bt.current}});var St=be.useMemo(function(){return Be&&(0,Ae.Z)(Be)==="object"?[Be.minRows,Be.maxRows]:[]},[Be]),he=(0,Ut.Z)(St,2),Le=he[0],Gt=he[1],ee=!!Be,xe=function(){try{if(document.activeElement===Bt.current){var Pi=Bt.current,_i=Pi.selectionStart,vr=Pi.selectionEnd,gr=Pi.scrollTop;Bt.current.setSelectionRange(_i,vr),Bt.current.scrollTop=gr}}catch(fr){}},we=be.useState(Ht),se=(0,Ut.Z)(we,2),ke=se[0],vn=se[1],cn=be.useState(),Je=(0,Ut.Z)(cn,2),hn=Je[0],Vn=Je[1],Se=function(){vn(Ot)};(0,et.Z)(function(){ee&&Se()},[ii,Le,Gt,ee]),(0,et.Z)(function(){if(ke===Ot)vn(jt);else if(ke===jt){var gi=kt(Bt.current,!1,Le,Gt);vn(Ht),Vn(gi)}else xe()},[ke]);var qe=be.useRef(),Qe=function(){nt.Z.cancel(qe.current)},Nn=function(Pi){ke===Ht&&(on==null||on(Pi),Be&&(Qe(),qe.current=(0,nt.Z)(function(){Se()})))};be.useEffect(function(){return Qe},[]);var hi=ee?hn:null,mi=(0,zt.Z)((0,zt.Z)({},Jn),hi);return(ke===Ot||ke===jt)&&(mi.overflowY="hidden",mi.overflowX="hidden"),be.createElement(Nt.Z,{onResize:Nn,disabled:!(Be||on)},be.createElement("textarea",(0,At.Z)({},Xn,{ref:Bt,style:mi,className:Pe()(Zt,un,(0,re.Z)({},"".concat(Zt,"-disabled"),nn)),disabled:nn,value:bt,onChange:Tt})))}),ye=$t,Yt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ge(tn,Tn){return(0,Ft.Z)(tn||"").slice(0,Tn).join("")}function ce(tn,Tn,ve,Zt){var en=ve;return tn?en=Ge(ve,Zt):(0,Ft.Z)(Tn||"").length<ve.length&&(0,Ft.Z)(ve||"").length>Zt&&(en=Tn),en}var $e=be.forwardRef(function(tn,Tn){var ve,Zt=tn.defaultValue,en=tn.value,Kn=tn.onFocus,ii=tn.onBlur,Be=tn.onChange,on=tn.allowClear,un=tn.maxLength,Jn=tn.onCompositionStart,nn=tn.onCompositionEnd,Gn=tn.suffix,pe=tn.prefixCls,Xn=pe===void 0?"rc-textarea":pe,oi=tn.classes,te=tn.showCount,bt=tn.className,xt=tn.style,Tt=tn.disabled,Bt=tn.hidden,St=tn.classNames,he=tn.styles,Le=tn.onResize,Gt=(0,ne.Z)(tn,Yt),ee=(0,de.Z)(Zt,{value:en,defaultValue:Zt}),xe=(0,Ut.Z)(ee,2),we=xe[0],se=xe[1],ke=(0,be.useRef)(null),vn=be.useState(!1),cn=(0,Ut.Z)(vn,2),Je=cn[0],hn=cn[1],Vn=be.useState(!1),Se=(0,Ut.Z)(Vn,2),qe=Se[0],Qe=Se[1],Nn=be.useRef(),hi=be.useRef(0),mi=be.useState(null),gi=(0,Ut.Z)(mi,2),Pi=gi[0],_i=gi[1],vr=function(){var fn;(fn=ke.current)===null||fn===void 0||fn.textArea.focus()};(0,be.useImperativeHandle)(Tn,function(){return{resizableTextArea:ke.current,focus:vr,blur:function(){var fn;(fn=ke.current)===null||fn===void 0||fn.textArea.blur()}}}),(0,be.useEffect)(function(){hn(function(Ln){return!Tt&&Ln})},[Tt]);var gr=Number(un)>0,fr=function(fn){Qe(!0),Nn.current=we,hi.current=fn.currentTarget.selectionStart,Jn==null||Jn(fn)},eo=function(fn){Qe(!1);var Ze=fn.currentTarget.value;if(gr){var fe,Sn=hi.current>=un+1||hi.current===((fe=Nn.current)===null||fe===void 0?void 0:fe.length);Ze=ce(Sn,Nn.current,Ze,un)}Ze!==we&&(se(Ze),(0,Re.rJ)(fn.currentTarget,fn,Be,Ze)),nn==null||nn(fn)},Jr=function(fn){var Ze=fn.target.value;if(!qe&&gr){var fe=fn.target.selectionStart>=un+1||fn.target.selectionStart===Ze.length||!fn.target.selectionStart;Ze=ce(fe,we,Ze,un)}se(Ze),(0,Re.rJ)(fn.currentTarget,fn,Be,Ze)},Xi=function(fn){var Ze=Gt.onPressEnter,fe=Gt.onKeyDown;fn.key==="Enter"&&Ze&&Ze(fn),fe==null||fe(fn)},$r=function(fn){hn(!0),Kn==null||Kn(fn)},Ki=function(fn){hn(!1),ii==null||ii(fn)},Lt=function(fn){var Ze;se(""),vr(),(0,Re.rJ)((Ze=ke.current)===null||Ze===void 0?void 0:Ze.textArea,fn,Be)},li=(0,Re.D7)(we);!qe&&gr&&en==null&&(li=Ge(li,un));var vi=Gn,Lr;if(te){var hr=(0,Ft.Z)(li).length;(0,Ae.Z)(te)==="object"?Lr=te.formatter({value:li,count:hr,maxLength:un}):Lr="".concat(hr).concat(gr?" / ".concat(un):""),vi=be.createElement(be.Fragment,null,vi,be.createElement("span",{className:Pe()("".concat(Xn,"-data-count"),St==null?void 0:St.count),style:he==null?void 0:he.count},Lr))}var qi=function(fn){var Ze;Le==null||Le(fn),(Ze=ke.current)!==null&&Ze!==void 0&&Ze.textArea.style.height&&_i(!0)},Zr=!Gt.autoSize&&!te&&!on,Gr=be.createElement(oe.BaseInput,{value:li,allowClear:on,handleReset:Lt,suffix:vi,prefixCls:Xn,classes:{affixWrapper:Pe()(oi==null?void 0:oi.affixWrapper,(ve={},(0,re.Z)(ve,"".concat(Xn,"-show-count"),te),(0,re.Z)(ve,"".concat(Xn,"-textarea-allow-clear"),on),ve))},disabled:Tt,focused:Je,className:bt,style:(0,zt.Z)((0,zt.Z)({},xt),Pi&&!Zr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Lr=="string"?Lr:void 0}},hidden:Bt,inputElement:be.createElement(ye,(0,At.Z)({},Gt,{onKeyDown:Xi,onChange:Jr,onFocus:$r,onBlur:Ki,onCompositionStart:fr,onCompositionEnd:eo,className:St==null?void 0:St.textarea,style:(0,zt.Z)((0,zt.Z)({},he==null?void 0:he.textarea),{},{resize:xt==null?void 0:xt.resize}),disabled:Tt,prefixCls:Xn,onResize:qi,ref:ke}))});return Gr}),Ue=$e,Ke=Ue},39417:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return jt}});var At=yt(5891),zt=yt(80962),re=yt(19149),Ae=yt(57259),Ut=yt(79545),ne=yt(68550),Ft=yt(21882),De=yt(17928),Pe=yt(7711),oe=yt(92310),Re=yt.n(oe),de=yt(36994),be=yt(59301),Nt=yt(39378),et=function($t){for(var ye=$t.prefixCls,Yt=$t.level,Ge=$t.isStart,ce=$t.isEnd,$e="".concat(ye,"-indent-unit"),Ue=[],Ke=0;Ke<Yt;Ke+=1){var tn;Ue.push(be.createElement("span",{key:Ke,className:Re()($e,(tn={},(0,zt.Z)(tn,"".concat($e,"-start"),Ge[Ke]),(0,zt.Z)(tn,"".concat($e,"-end"),ce[Ke]),tn))}))}return be.createElement("span",{"aria-hidden":"true",className:"".concat(ye,"-indent")},Ue)},nt=be.memo(et),ht=yt(67841),st=yt(71430),gt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],mt="open",Pt="close",kt="---",wt=function(Ht){(0,De.Z)(ye,Ht);var $t=(0,Pe.Z)(ye);function ye(){var Yt;(0,Ut.Z)(this,ye);for(var Ge=arguments.length,ce=new Array(Ge),$e=0;$e<Ge;$e++)ce[$e]=arguments[$e];return Yt=$t.call.apply($t,[this].concat(ce)),Yt.state={dragNodeHighlight:!1},Yt.selectHandle=void 0,Yt.cacheIndent=void 0,Yt.onSelectorClick=function(Ue){var Ke=Yt.props.context.onNodeClick;Ke(Ue,(0,st.F)(Yt.props)),Yt.isSelectable()?Yt.onSelect(Ue):Yt.onCheck(Ue)},Yt.onSelectorDoubleClick=function(Ue){var Ke=Yt.props.context.onNodeDoubleClick;Ke(Ue,(0,st.F)(Yt.props))},Yt.onSelect=function(Ue){if(!Yt.isDisabled()){var Ke=Yt.props.context.onNodeSelect;Ke(Ue,(0,st.F)(Yt.props))}},Yt.onCheck=function(Ue){if(!Yt.isDisabled()){var Ke=Yt.props,tn=Ke.disableCheckbox,Tn=Ke.checked,ve=Yt.props.context.onNodeCheck;if(!(!Yt.isCheckable()||tn)){var Zt=!Tn;ve(Ue,(0,st.F)(Yt.props),Zt)}}},Yt.onMouseEnter=function(Ue){var Ke=Yt.props.context.onNodeMouseEnter;Ke(Ue,(0,st.F)(Yt.props))},Yt.onMouseLeave=function(Ue){var Ke=Yt.props.context.onNodeMouseLeave;Ke(Ue,(0,st.F)(Yt.props))},Yt.onContextMenu=function(Ue){var Ke=Yt.props.context.onNodeContextMenu;Ke(Ue,(0,st.F)(Yt.props))},Yt.onDragStart=function(Ue){var Ke=Yt.props.context.onNodeDragStart;Ue.stopPropagation(),Yt.setState({dragNodeHighlight:!0}),Ke(Ue,(0,Ft.Z)(Yt));try{Ue.dataTransfer.setData("text/plain","")}catch(tn){}},Yt.onDragEnter=function(Ue){var Ke=Yt.props.context.onNodeDragEnter;Ue.preventDefault(),Ue.stopPropagation(),Ke(Ue,(0,Ft.Z)(Yt))},Yt.onDragOver=function(Ue){var Ke=Yt.props.context.onNodeDragOver;Ue.preventDefault(),Ue.stopPropagation(),Ke(Ue,(0,Ft.Z)(Yt))},Yt.onDragLeave=function(Ue){var Ke=Yt.props.context.onNodeDragLeave;Ue.stopPropagation(),Ke(Ue,(0,Ft.Z)(Yt))},Yt.onDragEnd=function(Ue){var Ke=Yt.props.context.onNodeDragEnd;Ue.stopPropagation(),Yt.setState({dragNodeHighlight:!1}),Ke(Ue,(0,Ft.Z)(Yt))},Yt.onDrop=function(Ue){var Ke=Yt.props.context.onNodeDrop;Ue.preventDefault(),Ue.stopPropagation(),Yt.setState({dragNodeHighlight:!1}),Ke(Ue,(0,Ft.Z)(Yt))},Yt.onExpand=function(Ue){var Ke=Yt.props,tn=Ke.loading,Tn=Ke.context.onNodeExpand;tn||Tn(Ue,(0,st.F)(Yt.props))},Yt.setSelectHandle=function(Ue){Yt.selectHandle=Ue},Yt.getNodeState=function(){var Ue=Yt.props.expanded;return Yt.isLeaf()?null:Ue?mt:Pt},Yt.hasChildren=function(){var Ue=Yt.props.eventKey,Ke=Yt.props.context.keyEntities,tn=(0,ht.Z)(Ke,Ue)||{},Tn=tn.children;return!!(Tn||[]).length},Yt.isLeaf=function(){var Ue=Yt.props,Ke=Ue.isLeaf,tn=Ue.loaded,Tn=Yt.props.context.loadData,ve=Yt.hasChildren();return Ke===!1?!1:Ke||!Tn&&!ve||Tn&&tn&&!ve},Yt.isDisabled=function(){var Ue=Yt.props.disabled,Ke=Yt.props.context.disabled;return!!(Ke||Ue)},Yt.isCheckable=function(){var Ue=Yt.props.checkable,Ke=Yt.props.context.checkable;return!Ke||Ue===!1?!1:Ke},Yt.syncLoadData=function(Ue){var Ke=Ue.expanded,tn=Ue.loading,Tn=Ue.loaded,ve=Yt.props.context,Zt=ve.loadData,en=ve.onNodeLoad;tn||Zt&&Ke&&!Yt.isLeaf()&&!Yt.hasChildren()&&!Tn&&en((0,st.F)(Yt.props))},Yt.isDraggable=function(){var Ue=Yt.props,Ke=Ue.data,tn=Ue.context.draggable;return!!(tn&&(!tn.nodeDraggable||tn.nodeDraggable(Ke)))},Yt.renderDragHandler=function(){var Ue=Yt.props.context,Ke=Ue.draggable,tn=Ue.prefixCls;return Ke!=null&&Ke.icon?be.createElement("span",{className:"".concat(tn,"-draggable-icon")},Ke.icon):null},Yt.renderSwitcherIconDom=function(Ue){var Ke=Yt.props.switcherIcon,tn=Yt.props.context.switcherIcon,Tn=Ke||tn;return typeof Tn=="function"?Tn((0,Ae.Z)((0,Ae.Z)({},Yt.props),{},{isLeaf:Ue})):Tn},Yt.renderSwitcher=function(){var Ue=Yt.props.expanded,Ke=Yt.props.context.prefixCls;if(Yt.isLeaf()){var tn=Yt.renderSwitcherIconDom(!0);return tn!==!1?be.createElement("span",{className:Re()("".concat(Ke,"-switcher"),"".concat(Ke,"-switcher-noop"))},tn):null}var Tn=Re()("".concat(Ke,"-switcher"),"".concat(Ke,"-switcher_").concat(Ue?mt:Pt)),ve=Yt.renderSwitcherIconDom(!1);return ve!==!1?be.createElement("span",{onClick:Yt.onExpand,className:Tn},ve):null},Yt.renderCheckbox=function(){var Ue=Yt.props,Ke=Ue.checked,tn=Ue.halfChecked,Tn=Ue.disableCheckbox,ve=Yt.props.context.prefixCls,Zt=Yt.isDisabled(),en=Yt.isCheckable();if(!en)return null;var Kn=typeof en!="boolean"?en:null;return be.createElement("span",{className:Re()("".concat(ve,"-checkbox"),Ke&&"".concat(ve,"-checkbox-checked"),!Ke&&tn&&"".concat(ve,"-checkbox-indeterminate"),(Zt||Tn)&&"".concat(ve,"-checkbox-disabled")),onClick:Yt.onCheck},Kn)},Yt.renderIcon=function(){var Ue=Yt.props.loading,Ke=Yt.props.context.prefixCls;return be.createElement("span",{className:Re()("".concat(Ke,"-iconEle"),"".concat(Ke,"-icon__").concat(Yt.getNodeState()||"docu"),Ue&&"".concat(Ke,"-icon_loading"))})},Yt.renderSelector=function(){var Ue=Yt.state.dragNodeHighlight,Ke=Yt.props,tn=Ke.title,Tn=tn===void 0?kt:tn,ve=Ke.selected,Zt=Ke.icon,en=Ke.loading,Kn=Ke.data,ii=Yt.props.context,Be=ii.prefixCls,on=ii.showIcon,un=ii.icon,Jn=ii.loadData,nn=ii.titleRender,Gn=Yt.isDisabled(),pe="".concat(Be,"-node-content-wrapper"),Xn;if(on){var oi=Zt||un;Xn=oi?be.createElement("span",{className:Re()("".concat(Be,"-iconEle"),"".concat(Be,"-icon__customize"))},typeof oi=="function"?oi(Yt.props):oi):Yt.renderIcon()}else Jn&&en&&(Xn=Yt.renderIcon());var te;typeof Tn=="function"?te=Tn(Kn):nn?te=nn(Kn):te=Tn;var bt=be.createElement("span",{className:"".concat(Be,"-title")},te);return be.createElement("span",{ref:Yt.setSelectHandle,title:typeof Tn=="string"?Tn:"",className:Re()("".concat(pe),"".concat(pe,"-").concat(Yt.getNodeState()||"normal"),!Gn&&(ve||Ue)&&"".concat(Be,"-node-selected")),onMouseEnter:Yt.onMouseEnter,onMouseLeave:Yt.onMouseLeave,onContextMenu:Yt.onContextMenu,onClick:Yt.onSelectorClick,onDoubleClick:Yt.onSelectorDoubleClick},Xn,bt,Yt.renderDropIndicator())},Yt.renderDropIndicator=function(){var Ue=Yt.props,Ke=Ue.disabled,tn=Ue.eventKey,Tn=Yt.props.context,ve=Tn.draggable,Zt=Tn.dropLevelOffset,en=Tn.dropPosition,Kn=Tn.prefixCls,ii=Tn.indent,Be=Tn.dropIndicatorRender,on=Tn.dragOverNodeKey,un=Tn.direction,Jn=!!ve,nn=!Ke&&Jn&&on===tn,Gn=ii!=null?ii:Yt.cacheIndent;return Yt.cacheIndent=ii,nn?Be({dropPosition:en,dropLevelOffset:Zt,indent:Gn,prefixCls:Kn,direction:un}):null},Yt}return(0,ne.Z)(ye,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ge=this.props.selectable,ce=this.props.context.selectable;return typeof Ge=="boolean"?Ge:ce}},{key:"render",value:function(){var Ge,ce=this.props,$e=ce.eventKey,Ue=ce.className,Ke=ce.style,tn=ce.dragOver,Tn=ce.dragOverGapTop,ve=ce.dragOverGapBottom,Zt=ce.isLeaf,en=ce.isStart,Kn=ce.isEnd,ii=ce.expanded,Be=ce.selected,on=ce.checked,un=ce.halfChecked,Jn=ce.loading,nn=ce.domRef,Gn=ce.active,pe=ce.data,Xn=ce.onMouseMove,oi=ce.selectable,te=(0,re.Z)(ce,gt),bt=this.props.context,xt=bt.prefixCls,Tt=bt.filterTreeNode,Bt=bt.keyEntities,St=bt.dropContainerKey,he=bt.dropTargetKey,Le=bt.draggingNodeKey,Gt=this.isDisabled(),ee=(0,de.Z)(te,{aria:!0,data:!0}),xe=(0,ht.Z)(Bt,$e)||{},we=xe.level,se=Kn[Kn.length-1],ke=this.isDraggable(),vn=!Gt&&ke,cn=Le===$e,Je=oi!==void 0?{"aria-selected":!!oi}:void 0;return be.createElement("div",(0,At.Z)({ref:nn,className:Re()(Ue,"".concat(xt,"-treenode"),(Ge={},(0,zt.Z)(Ge,"".concat(xt,"-treenode-disabled"),Gt),(0,zt.Z)(Ge,"".concat(xt,"-treenode-switcher-").concat(ii?"open":"close"),!Zt),(0,zt.Z)(Ge,"".concat(xt,"-treenode-checkbox-checked"),on),(0,zt.Z)(Ge,"".concat(xt,"-treenode-checkbox-indeterminate"),un),(0,zt.Z)(Ge,"".concat(xt,"-treenode-selected"),Be),(0,zt.Z)(Ge,"".concat(xt,"-treenode-loading"),Jn),(0,zt.Z)(Ge,"".concat(xt,"-treenode-active"),Gn),(0,zt.Z)(Ge,"".concat(xt,"-treenode-leaf-last"),se),(0,zt.Z)(Ge,"".concat(xt,"-treenode-draggable"),ke),(0,zt.Z)(Ge,"dragging",cn),(0,zt.Z)(Ge,"drop-target",he===$e),(0,zt.Z)(Ge,"drop-container",St===$e),(0,zt.Z)(Ge,"drag-over",!Gt&&tn),(0,zt.Z)(Ge,"drag-over-gap-top",!Gt&&Tn),(0,zt.Z)(Ge,"drag-over-gap-bottom",!Gt&&ve),(0,zt.Z)(Ge,"filter-node",Tt&&Tt((0,st.F)(this.props))),Ge)),style:Ke,draggable:vn,"aria-grabbed":cn,onDragStart:vn?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:Xn},Je,ee),be.createElement(nt,{prefixCls:xt,level:we,isStart:en,isEnd:Kn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ye}(be.Component),Ot=function($t){return be.createElement(Nt.k.Consumer,null,function(ye){return be.createElement(wt,(0,At.Z)({},$t,{context:ye}))})};Ot.displayName="TreeNode",Ot.isTreeNode=1;var jt=Ot},39378:function(On,Cn,yt){"use strict";yt.d(Cn,{k:function(){return zt}});var At=yt(59301),zt=At.createContext(null)},99581:function(On,Cn,yt){"use strict";yt.d(Cn,{O:function(){return jt.Z},Z:function(){return bt}});var At=yt(5891),zt=yt(80962),re=yt(80665),Ae=yt(57259),Ut=yt(26390),ne=yt(79545),Ft=yt(68550),De=yt(21882),Pe=yt(17928),oe=yt(7711),Re=yt(92310),de=yt.n(Re),be=yt(85108),Nt=yt(36994),et=yt(51395),nt=yt(59301),ht=yt(39378);function st(xt){var Tt=xt.dropPosition,Bt=xt.dropLevelOffset,St=xt.indent,he={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Tt){case-1:he.top=0,he.left=-Bt*St;break;case 1:he.bottom=0,he.left=-Bt*St;break;case 0:he.bottom=0,he.left=St;break}return nt.createElement("div",{style:he})}function gt(xt){if(xt==null)throw new TypeError("Cannot destructure "+xt)}var mt=yt(29043),Pt=yt(19149),kt=yt(28800),wt=yt(50030),Ot=yt(43469),jt=yt(39417);function Ht(xt,Tt){var Bt=nt.useState(!1),St=(0,mt.Z)(Bt,2),he=St[0],Le=St[1];nt.useLayoutEffect(function(){if(he)return xt(),function(){Tt()}},[he]),nt.useLayoutEffect(function(){return Le(!0),function(){Le(!1)}},[])}var $t=yt(71430),ye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Yt=function(Tt,Bt){var St=Tt.className,he=Tt.style,Le=Tt.motion,Gt=Tt.motionNodes,ee=Tt.motionType,xe=Tt.onMotionStart,we=Tt.onMotionEnd,se=Tt.active,ke=Tt.treeNodeRequiredProps,vn=(0,Pt.Z)(Tt,ye),cn=nt.useState(!0),Je=(0,mt.Z)(cn,2),hn=Je[0],Vn=Je[1],Se=nt.useContext(ht.k),qe=Se.prefixCls,Qe=Gt&&ee!=="hide";(0,kt.Z)(function(){Gt&&Qe!==hn&&Vn(Qe)},[Gt]);var Nn=function(){Gt&&xe()},hi=nt.useRef(!1),mi=function(){Gt&&!hi.current&&(hi.current=!0,we())};Ht(Nn,mi);var gi=function(_i){Qe===_i&&mi()};return Gt?nt.createElement(Ot.default,(0,At.Z)({ref:Bt,visible:hn},Le,{motionAppear:ee==="show",onVisibleChanged:gi}),function(Pi,_i){var vr=Pi.className,gr=Pi.style;return nt.createElement("div",{ref:_i,className:de()("".concat(qe,"-treenode-motion"),vr),style:gr},Gt.map(function(fr){var eo=(0,At.Z)({},(gt(fr.data),fr.data)),Jr=fr.title,Xi=fr.key,$r=fr.isStart,Ki=fr.isEnd;delete eo.children;var Lt=(0,$t.H8)(Xi,ke);return nt.createElement(jt.Z,(0,At.Z)({},eo,Lt,{title:Jr,active:se,data:fr.data,key:Xi,isStart:$r,isEnd:Ki}))}))}):nt.createElement(jt.Z,(0,At.Z)({domRef:Bt,className:St,style:he},vn,{active:se}))};Yt.displayName="MotionTreeNode";var Ge=nt.forwardRef(Yt),ce=Ge;function $e(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=xt.length,St=Tt.length;if(Math.abs(Bt-St)!==1)return{add:!1,key:null};function he(Le,Gt){var ee=new Map;Le.forEach(function(we){ee.set(we,!0)});var xe=Gt.filter(function(we){return!ee.has(we)});return xe.length===1?xe[0]:null}return Bt<St?{add:!0,key:he(xt,Tt)}:{add:!1,key:he(Tt,xt)}}function Ue(xt,Tt,Bt){var St=xt.findIndex(function(ee){return ee.key===Bt}),he=xt[St+1],Le=Tt.findIndex(function(ee){return ee.key===Bt});if(he){var Gt=Tt.findIndex(function(ee){return ee.key===he.key});return Tt.slice(Le+1,Gt)}return Tt.slice(Le+1)}var Ke=["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"],tn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tn=function(){},ve="RC_TREE_MOTION_".concat(Math.random()),Zt={key:ve},en={key:ve,level:0,index:0,pos:"0",node:Zt,nodes:[Zt]},Kn={parent:null,children:[],pos:en.pos,data:Zt,title:null,key:ve,isStart:[],isEnd:[]};function ii(xt,Tt,Bt,St){return Tt===!1||!Bt?xt:xt.slice(0,Math.ceil(Bt/St)+1)}function Be(xt){var Tt=xt.key,Bt=xt.pos;return(0,$t.km)(Tt,Bt)}function on(xt){for(var Tt=String(xt.data.key),Bt=xt;Bt.parent;)Bt=Bt.parent,Tt="".concat(Bt.data.key," > ").concat(Tt);return Tt}var un=nt.forwardRef(function(xt,Tt){var Bt=xt.prefixCls,St=xt.data,he=xt.selectable,Le=xt.checkable,Gt=xt.expandedKeys,ee=xt.selectedKeys,xe=xt.checkedKeys,we=xt.loadedKeys,se=xt.loadingKeys,ke=xt.halfCheckedKeys,vn=xt.keyEntities,cn=xt.disabled,Je=xt.dragging,hn=xt.dragOverNodeKey,Vn=xt.dropPosition,Se=xt.motion,qe=xt.height,Qe=xt.itemHeight,Nn=xt.virtual,hi=xt.focusable,mi=xt.activeItem,gi=xt.focused,Pi=xt.tabIndex,_i=xt.onKeyDown,vr=xt.onFocus,gr=xt.onBlur,fr=xt.onActiveChange,eo=xt.onListChangeStart,Jr=xt.onListChangeEnd,Xi=(0,Pt.Z)(xt,Ke),$r=nt.useRef(null),Ki=nt.useRef(null);nt.useImperativeHandle(Tt,function(){return{scrollTo:function(yn){$r.current.scrollTo(yn)},getIndentWidth:function(){return Ki.current.offsetWidth}}});var Lt=nt.useState(Gt),li=(0,mt.Z)(Lt,2),vi=li[0],Lr=li[1],hr=nt.useState(St),qi=(0,mt.Z)(hr,2),Zr=qi[0],Gr=qi[1],Ln=nt.useState(St),fn=(0,mt.Z)(Ln,2),Ze=fn[0],fe=fn[1],Sn=nt.useState([]),In=(0,mt.Z)(Sn,2),Fe=In[0],ue=In[1],pn=nt.useState(null),Un=(0,mt.Z)(pn,2),Oi=Un[0],Pn=Un[1],Ce=nt.useRef(St);Ce.current=St;function Rn(){var je=Ce.current;Gr(je),fe(je),ue([]),Pn(null),Jr()}(0,kt.Z)(function(){Lr(Gt);var je=$e(vi,Gt);if(je.key!==null)if(je.add){var yn=Zr.findIndex(function(Fn){var Wn=Fn.key;return Wn===je.key}),He=ii(Ue(Zr,St,je.key),Nn,qe,Qe),an=Zr.slice();an.splice(yn+1,0,Kn),fe(an),ue(He),Pn("show")}else{var gn=St.findIndex(function(Fn){var Wn=Fn.key;return Wn===je.key}),sn=ii(Ue(St,Zr,je.key),Nn,qe,Qe),bn=St.slice();bn.splice(gn+1,0,Kn),fe(bn),ue(sn),Pn("hide")}else Zr!==St&&(Gr(St),fe(St))},[Gt,St]),nt.useEffect(function(){Je||Rn()},[Je]);var pi=Se?Ze:St,Bi={expandedKeys:Gt,selectedKeys:ee,loadedKeys:we,loadingKeys:se,checkedKeys:xe,halfCheckedKeys:ke,dragOverNodeKey:hn,dropPosition:Vn,keyEntities:vn};return nt.createElement(nt.Fragment,null,gi&&mi&&nt.createElement("span",{style:tn,"aria-live":"assertive"},on(mi)),nt.createElement("div",null,nt.createElement("input",{style:tn,disabled:hi===!1||cn,tabIndex:hi!==!1?Pi:null,onKeyDown:_i,onFocus:vr,onBlur:gr,value:"",onChange:Tn,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(Bt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(Bt,"-indent")},nt.createElement("div",{ref:Ki,className:"".concat(Bt,"-indent-unit")}))),nt.createElement(wt.Z,(0,At.Z)({},Xi,{data:pi,itemKey:Be,height:qe,fullHeight:!1,virtual:Nn,itemHeight:Qe,prefixCls:"".concat(Bt,"-list"),ref:$r,onVisibleChange:function(yn,He){var an=new Set(yn),gn=He.filter(function(sn){return!an.has(sn)});gn.some(function(sn){return Be(sn)===ve})&&Rn()}}),function(je){var yn=je.pos,He=(0,At.Z)({},(gt(je.data),je.data)),an=je.title,gn=je.key,sn=je.isStart,bn=je.isEnd,Fn=(0,$t.km)(gn,yn);delete He.key,delete He.children;var Wn=(0,$t.H8)(Fn,Bi);return nt.createElement(ce,(0,At.Z)({},He,Wn,{title:an,active:!!mi&&gn===mi.key,pos:yn,data:je.data,isStart:sn,isEnd:bn,motion:Se,motionNodes:gn===ve?Fe:null,motionType:Oi,onMotionStart:eo,onMotionEnd:Rn,treeNodeRequiredProps:Bi,onMouseMove:function(){fr(null)}}))}))});un.displayName="NodeList";var Jn=un,nn=yt(35654),Gn=yt(90782),pe=yt(67841),Xn=10,oi=function(xt){(0,Pe.Z)(Bt,xt);var Tt=(0,oe.Z)(Bt);function Bt(){var St;(0,ne.Z)(this,Bt);for(var he=arguments.length,Le=new Array(he),Gt=0;Gt<he;Gt++)Le[Gt]=arguments[Gt];return St=Tt.call.apply(Tt,[this].concat(Le)),St.destroyed=!1,St.delayedDragEnterLogic=void 0,St.loadingRetryTimes={},St.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,$t.w$)()},St.dragStartMousePosition=null,St.dragNode=void 0,St.currentMouseOverDroppableNodeKey=null,St.listRef=nt.createRef(),St.onNodeDragStart=function(ee,xe){var we=St.state,se=we.expandedKeys,ke=we.keyEntities,vn=St.props.onDragStart,cn=xe.props.eventKey;St.dragNode=xe,St.dragStartMousePosition={x:ee.clientX,y:ee.clientY};var Je=(0,nn._5)(se,cn);St.setState({draggingNodeKey:cn,dragChildrenKeys:(0,nn.wA)(cn,ke),indent:St.listRef.current.getIndentWidth()}),St.setExpandedKeys(Je),window.addEventListener("dragend",St.onWindowDragEnd),vn==null||vn({event:ee,node:(0,$t.F)(xe.props)})},St.onNodeDragEnter=function(ee,xe){var we=St.state,se=we.expandedKeys,ke=we.keyEntities,vn=we.dragChildrenKeys,cn=we.flattenNodes,Je=we.indent,hn=St.props,Vn=hn.onDragEnter,Se=hn.onExpand,qe=hn.allowDrop,Qe=hn.direction,Nn=xe.props,hi=Nn.pos,mi=Nn.eventKey,gi=(0,De.Z)(St),Pi=gi.dragNode;if(St.currentMouseOverDroppableNodeKey!==mi&&(St.currentMouseOverDroppableNodeKey=mi),!Pi){St.resetDragState();return}var _i=(0,nn.OM)(ee,Pi,xe,Je,St.dragStartMousePosition,qe,cn,ke,se,Qe),vr=_i.dropPosition,gr=_i.dropLevelOffset,fr=_i.dropTargetKey,eo=_i.dropContainerKey,Jr=_i.dropTargetPos,Xi=_i.dropAllowed,$r=_i.dragOverNodeKey;if(vn.indexOf(fr)!==-1||!Xi){St.resetDragState();return}if(St.delayedDragEnterLogic||(St.delayedDragEnterLogic={}),Object.keys(St.delayedDragEnterLogic).forEach(function(Ki){clearTimeout(St.delayedDragEnterLogic[Ki])}),Pi.props.eventKey!==xe.props.eventKey&&(ee.persist(),St.delayedDragEnterLogic[hi]=window.setTimeout(function(){if(St.state.draggingNodeKey!==null){var Ki=(0,Ut.Z)(se),Lt=(0,pe.Z)(ke,xe.props.eventKey);Lt&&(Lt.children||[]).length&&(Ki=(0,nn.L0)(se,xe.props.eventKey)),"expandedKeys"in St.props||St.setExpandedKeys(Ki),Se==null||Se(Ki,{node:(0,$t.F)(xe.props),expanded:!0,nativeEvent:ee.nativeEvent})}},800)),Pi.props.eventKey===fr&&gr===0){St.resetDragState();return}St.setState({dragOverNodeKey:$r,dropPosition:vr,dropLevelOffset:gr,dropTargetKey:fr,dropContainerKey:eo,dropTargetPos:Jr,dropAllowed:Xi}),Vn==null||Vn({event:ee,node:(0,$t.F)(xe.props),expandedKeys:se})},St.onNodeDragOver=function(ee,xe){var we=St.state,se=we.dragChildrenKeys,ke=we.flattenNodes,vn=we.keyEntities,cn=we.expandedKeys,Je=we.indent,hn=St.props,Vn=hn.onDragOver,Se=hn.allowDrop,qe=hn.direction,Qe=(0,De.Z)(St),Nn=Qe.dragNode;if(Nn){var hi=(0,nn.OM)(ee,Nn,xe,Je,St.dragStartMousePosition,Se,ke,vn,cn,qe),mi=hi.dropPosition,gi=hi.dropLevelOffset,Pi=hi.dropTargetKey,_i=hi.dropContainerKey,vr=hi.dropAllowed,gr=hi.dropTargetPos,fr=hi.dragOverNodeKey;se.indexOf(Pi)!==-1||!vr||(Nn.props.eventKey===Pi&&gi===0?St.state.dropPosition===null&&St.state.dropLevelOffset===null&&St.state.dropTargetKey===null&&St.state.dropContainerKey===null&&St.state.dropTargetPos===null&&St.state.dropAllowed===!1&&St.state.dragOverNodeKey===null||St.resetDragState():mi===St.state.dropPosition&&gi===St.state.dropLevelOffset&&Pi===St.state.dropTargetKey&&_i===St.state.dropContainerKey&&gr===St.state.dropTargetPos&&vr===St.state.dropAllowed&&fr===St.state.dragOverNodeKey||St.setState({dropPosition:mi,dropLevelOffset:gi,dropTargetKey:Pi,dropContainerKey:_i,dropTargetPos:gr,dropAllowed:vr,dragOverNodeKey:fr}),Vn==null||Vn({event:ee,node:(0,$t.F)(xe.props)}))}},St.onNodeDragLeave=function(ee,xe){St.currentMouseOverDroppableNodeKey===xe.props.eventKey&&!ee.currentTarget.contains(ee.relatedTarget)&&(St.resetDragState(),St.currentMouseOverDroppableNodeKey=null);var we=St.props.onDragLeave;we==null||we({event:ee,node:(0,$t.F)(xe.props)})},St.onWindowDragEnd=function(ee){St.onNodeDragEnd(ee,null,!0),window.removeEventListener("dragend",St.onWindowDragEnd)},St.onNodeDragEnd=function(ee,xe){var we=St.props.onDragEnd;St.setState({dragOverNodeKey:null}),St.cleanDragState(),we==null||we({event:ee,node:(0,$t.F)(xe.props)}),St.dragNode=null,window.removeEventListener("dragend",St.onWindowDragEnd)},St.onNodeDrop=function(ee,xe){var we,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=St.state,vn=ke.dragChildrenKeys,cn=ke.dropPosition,Je=ke.dropTargetKey,hn=ke.dropTargetPos,Vn=ke.dropAllowed;if(Vn){var Se=St.props.onDrop;if(St.setState({dragOverNodeKey:null}),St.cleanDragState(),Je!==null){var qe=(0,Ae.Z)((0,Ae.Z)({},(0,$t.H8)(Je,St.getTreeNodeRequiredProps())),{},{active:((we=St.getActiveItem())===null||we===void 0?void 0:we.key)===Je,data:(0,pe.Z)(St.state.keyEntities,Je).node}),Qe=vn.indexOf(Je)!==-1;(0,et.ZP)(!Qe,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nn=(0,nn.yx)(hn),hi={event:ee,node:(0,$t.F)(qe),dragNode:St.dragNode?(0,$t.F)(St.dragNode.props):null,dragNodesKeys:[St.dragNode.props.eventKey].concat(vn),dropToGap:cn!==0,dropPosition:cn+Number(Nn[Nn.length-1])};se||Se==null||Se(hi),St.dragNode=null}}},St.cleanDragState=function(){var ee=St.state.draggingNodeKey;ee!==null&&St.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),St.dragStartMousePosition=null,St.currentMouseOverDroppableNodeKey=null},St.triggerExpandActionExpand=function(ee,xe){var we=St.state,se=we.expandedKeys,ke=we.flattenNodes,vn=xe.expanded,cn=xe.key,Je=xe.isLeaf;if(!(Je||ee.shiftKey||ee.metaKey||ee.ctrlKey)){var hn=ke.filter(function(Se){return Se.key===cn})[0],Vn=(0,$t.F)((0,Ae.Z)((0,Ae.Z)({},(0,$t.H8)(cn,St.getTreeNodeRequiredProps())),{},{data:hn.data}));St.setExpandedKeys(vn?(0,nn._5)(se,cn):(0,nn.L0)(se,cn)),St.onNodeExpand(ee,Vn)}},St.onNodeClick=function(ee,xe){var we=St.props,se=we.onClick,ke=we.expandAction;ke==="click"&&St.triggerExpandActionExpand(ee,xe),se==null||se(ee,xe)},St.onNodeDoubleClick=function(ee,xe){var we=St.props,se=we.onDoubleClick,ke=we.expandAction;ke==="doubleClick"&&St.triggerExpandActionExpand(ee,xe),se==null||se(ee,xe)},St.onNodeSelect=function(ee,xe){var we=St.state.selectedKeys,se=St.state,ke=se.keyEntities,vn=se.fieldNames,cn=St.props,Je=cn.onSelect,hn=cn.multiple,Vn=xe.selected,Se=xe[vn.key],qe=!Vn;qe?hn?we=(0,nn.L0)(we,Se):we=[Se]:we=(0,nn._5)(we,Se);var Qe=we.map(function(Nn){var hi=(0,pe.Z)(ke,Nn);return hi?hi.node:null}).filter(function(Nn){return Nn});St.setUncontrolledState({selectedKeys:we}),Je==null||Je(we,{event:"select",selected:qe,node:xe,selectedNodes:Qe,nativeEvent:ee.nativeEvent})},St.onNodeCheck=function(ee,xe,we){var se=St.state,ke=se.keyEntities,vn=se.checkedKeys,cn=se.halfCheckedKeys,Je=St.props,hn=Je.checkStrictly,Vn=Je.onCheck,Se=xe.key,qe,Qe={event:"check",node:xe,checked:we,nativeEvent:ee.nativeEvent};if(hn){var Nn=we?(0,nn.L0)(vn,Se):(0,nn._5)(vn,Se),hi=(0,nn._5)(cn,Se);qe={checked:Nn,halfChecked:hi},Qe.checkedNodes=Nn.map(function(gr){return(0,pe.Z)(ke,gr)}).filter(function(gr){return gr}).map(function(gr){return gr.node}),St.setUncontrolledState({checkedKeys:Nn})}else{var mi=(0,Gn.S)([].concat((0,Ut.Z)(vn),[Se]),!0,ke),gi=mi.checkedKeys,Pi=mi.halfCheckedKeys;if(!we){var _i=new Set(gi);_i.delete(Se);var vr=(0,Gn.S)(Array.from(_i),{checked:!1,halfCheckedKeys:Pi},ke);gi=vr.checkedKeys,Pi=vr.halfCheckedKeys}qe=gi,Qe.checkedNodes=[],Qe.checkedNodesPositions=[],Qe.halfCheckedKeys=Pi,gi.forEach(function(gr){var fr=(0,pe.Z)(ke,gr);if(fr){var eo=fr.node,Jr=fr.pos;Qe.checkedNodes.push(eo),Qe.checkedNodesPositions.push({node:eo,pos:Jr})}}),St.setUncontrolledState({checkedKeys:gi},!1,{halfCheckedKeys:Pi})}Vn==null||Vn(qe,Qe)},St.onNodeLoad=function(ee){var xe=ee.key,we=new Promise(function(se,ke){St.setState(function(vn){var cn=vn.loadedKeys,Je=cn===void 0?[]:cn,hn=vn.loadingKeys,Vn=hn===void 0?[]:hn,Se=St.props,qe=Se.loadData,Qe=Se.onLoad;if(!qe||Je.indexOf(xe)!==-1||Vn.indexOf(xe)!==-1)return null;var Nn=qe(ee);return Nn.then(function(){var hi=St.state.loadedKeys,mi=(0,nn.L0)(hi,xe);Qe==null||Qe(mi,{event:"load",node:ee}),St.setUncontrolledState({loadedKeys:mi}),St.setState(function(gi){return{loadingKeys:(0,nn._5)(gi.loadingKeys,xe)}}),se()}).catch(function(hi){if(St.setState(function(gi){return{loadingKeys:(0,nn._5)(gi.loadingKeys,xe)}}),St.loadingRetryTimes[xe]=(St.loadingRetryTimes[xe]||0)+1,St.loadingRetryTimes[xe]>=Xn){var mi=St.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),St.setUncontrolledState({loadedKeys:(0,nn.L0)(mi,xe)}),se()}ke(hi)}),{loadingKeys:(0,nn.L0)(Vn,xe)}})});return we.catch(function(){}),we},St.onNodeMouseEnter=function(ee,xe){var we=St.props.onMouseEnter;we==null||we({event:ee,node:xe})},St.onNodeMouseLeave=function(ee,xe){var we=St.props.onMouseLeave;we==null||we({event:ee,node:xe})},St.onNodeContextMenu=function(ee,xe){var we=St.props.onRightClick;we&&(ee.preventDefault(),we({event:ee,node:xe}))},St.onFocus=function(){var ee=St.props.onFocus;St.setState({focused:!0});for(var xe=arguments.length,we=new Array(xe),se=0;se<xe;se++)we[se]=arguments[se];ee==null||ee.apply(void 0,we)},St.onBlur=function(){var ee=St.props.onBlur;St.setState({focused:!1}),St.onActiveChange(null);for(var xe=arguments.length,we=new Array(xe),se=0;se<xe;se++)we[se]=arguments[se];ee==null||ee.apply(void 0,we)},St.getTreeNodeRequiredProps=function(){var ee=St.state,xe=ee.expandedKeys,we=ee.selectedKeys,se=ee.loadedKeys,ke=ee.loadingKeys,vn=ee.checkedKeys,cn=ee.halfCheckedKeys,Je=ee.dragOverNodeKey,hn=ee.dropPosition,Vn=ee.keyEntities;return{expandedKeys:xe||[],selectedKeys:we||[],loadedKeys:se||[],loadingKeys:ke||[],checkedKeys:vn||[],halfCheckedKeys:cn||[],dragOverNodeKey:Je,dropPosition:hn,keyEntities:Vn}},St.setExpandedKeys=function(ee){var xe=St.state,we=xe.treeData,se=xe.fieldNames,ke=(0,$t.oH)(we,ee,se);St.setUncontrolledState({expandedKeys:ee,flattenNodes:ke},!0)},St.onNodeExpand=function(ee,xe){var we=St.state.expandedKeys,se=St.state,ke=se.listChanging,vn=se.fieldNames,cn=St.props,Je=cn.onExpand,hn=cn.loadData,Vn=xe.expanded,Se=xe[vn.key];if(!ke){var qe=we.indexOf(Se),Qe=!Vn;if((0,et.ZP)(Vn&&qe!==-1||!Vn&&qe===-1,"Expand state not sync with index check"),Qe?we=(0,nn.L0)(we,Se):we=(0,nn._5)(we,Se),St.setExpandedKeys(we),Je==null||Je(we,{node:xe,expanded:Qe,nativeEvent:ee.nativeEvent}),Qe&&hn){var Nn=St.onNodeLoad(xe);Nn&&Nn.then(function(){var hi=(0,$t.oH)(St.state.treeData,we,vn);St.setUncontrolledState({flattenNodes:hi})}).catch(function(){var hi=St.state.expandedKeys,mi=(0,nn._5)(hi,Se);St.setExpandedKeys(mi)})}}},St.onListChangeStart=function(){St.setUncontrolledState({listChanging:!0})},St.onListChangeEnd=function(){setTimeout(function(){St.setUncontrolledState({listChanging:!1})})},St.onActiveChange=function(ee){var xe=St.state.activeKey,we=St.props.onActiveChange;xe!==ee&&(St.setState({activeKey:ee}),ee!==null&&St.scrollTo({key:ee}),we==null||we(ee))},St.getActiveItem=function(){var ee=St.state,xe=ee.activeKey,we=ee.flattenNodes;return xe===null?null:we.find(function(se){var ke=se.key;return ke===xe})||null},St.offsetActiveKey=function(ee){var xe=St.state,we=xe.flattenNodes,se=xe.activeKey,ke=we.findIndex(function(Je){var hn=Je.key;return hn===se});ke===-1&&ee<0&&(ke=we.length),ke=(ke+ee+we.length)%we.length;var vn=we[ke];if(vn){var cn=vn.key;St.onActiveChange(cn)}else St.onActiveChange(null)},St.onKeyDown=function(ee){var xe=St.state,we=xe.activeKey,se=xe.expandedKeys,ke=xe.checkedKeys,vn=xe.fieldNames,cn=St.props,Je=cn.onKeyDown,hn=cn.checkable,Vn=cn.selectable;switch(ee.which){case be.Z.UP:{St.offsetActiveKey(-1),ee.preventDefault();break}case be.Z.DOWN:{St.offsetActiveKey(1),ee.preventDefault();break}}var Se=St.getActiveItem();if(Se&&Se.data){var qe=St.getTreeNodeRequiredProps(),Qe=Se.data.isLeaf===!1||!!(Se.data[vn.children]||[]).length,Nn=(0,$t.F)((0,Ae.Z)((0,Ae.Z)({},(0,$t.H8)(we,qe)),{},{data:Se.data,active:!0}));switch(ee.which){case be.Z.LEFT:{Qe&&se.includes(we)?St.onNodeExpand({},Nn):Se.parent&&St.onActiveChange(Se.parent.key),ee.preventDefault();break}case be.Z.RIGHT:{Qe&&!se.includes(we)?St.onNodeExpand({},Nn):Se.children&&Se.children.length&&St.onActiveChange(Se.children[0].key),ee.preventDefault();break}case be.Z.ENTER:case be.Z.SPACE:{hn&&!Nn.disabled&&Nn.checkable!==!1&&!Nn.disableCheckbox?St.onNodeCheck({},Nn,!ke.includes(we)):!hn&&Vn&&!Nn.disabled&&Nn.selectable!==!1&&St.onNodeSelect({},Nn);break}}}Je==null||Je(ee)},St.setUncontrolledState=function(ee){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!St.destroyed){var se=!1,ke=!0,vn={};Object.keys(ee).forEach(function(cn){if(cn in St.props){ke=!1;return}se=!0,vn[cn]=ee[cn]}),se&&(!xe||ke)&&St.setState((0,Ae.Z)((0,Ae.Z)({},vn),we))}},St.scrollTo=function(ee){St.listRef.current.scrollTo(ee)},St}return(0,Ft.Z)(Bt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var he=this.props.activeKey;he!==void 0&&he!==this.state.activeKey&&(this.setState({activeKey:he}),he!==null&&this.scrollTo({key:he}))}},{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 he,Le=this.state,Gt=Le.focused,ee=Le.flattenNodes,xe=Le.keyEntities,we=Le.draggingNodeKey,se=Le.activeKey,ke=Le.dropLevelOffset,vn=Le.dropContainerKey,cn=Le.dropTargetKey,Je=Le.dropPosition,hn=Le.dragOverNodeKey,Vn=Le.indent,Se=this.props,qe=Se.prefixCls,Qe=Se.className,Nn=Se.style,hi=Se.showLine,mi=Se.focusable,gi=Se.tabIndex,Pi=gi===void 0?0:gi,_i=Se.selectable,vr=Se.showIcon,gr=Se.icon,fr=Se.switcherIcon,eo=Se.draggable,Jr=Se.checkable,Xi=Se.checkStrictly,$r=Se.disabled,Ki=Se.motion,Lt=Se.loadData,li=Se.filterTreeNode,vi=Se.height,Lr=Se.itemHeight,hr=Se.virtual,qi=Se.titleRender,Zr=Se.dropIndicatorRender,Gr=Se.onContextMenu,Ln=Se.onScroll,fn=Se.direction,Ze=Se.rootClassName,fe=Se.rootStyle,Sn=(0,Nt.Z)(this.props,{aria:!0,data:!0}),In;return eo&&((0,re.Z)(eo)==="object"?In=eo:typeof eo=="function"?In={nodeDraggable:eo}:In={}),nt.createElement(ht.k.Provider,{value:{prefixCls:qe,selectable:_i,showIcon:vr,icon:gr,switcherIcon:fr,draggable:In,draggingNodeKey:we,checkable:Jr,checkStrictly:Xi,disabled:$r,keyEntities:xe,dropLevelOffset:ke,dropContainerKey:vn,dropTargetKey:cn,dropPosition:Je,dragOverNodeKey:hn,indent:Vn,direction:fn,dropIndicatorRender:Zr,loadData:Lt,filterTreeNode:li,titleRender:qi,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},nt.createElement("div",{role:"tree",className:de()(qe,Qe,Ze,(he={},(0,zt.Z)(he,"".concat(qe,"-show-line"),hi),(0,zt.Z)(he,"".concat(qe,"-focused"),Gt),(0,zt.Z)(he,"".concat(qe,"-active-focused"),se!==null),he)),style:fe},nt.createElement(Jn,(0,At.Z)({ref:this.listRef,prefixCls:qe,style:Nn,data:ee,disabled:$r,selectable:_i,checkable:!!Jr,motion:Ki,dragging:we!==null,height:vi,itemHeight:Lr,virtual:hr,focusable:mi,focused:Gt,tabIndex:Pi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Gr,onScroll:Ln},this.getTreeNodeRequiredProps(),Sn))))}}],[{key:"getDerivedStateFromProps",value:function(he,Le){var Gt=Le.prevProps,ee={prevProps:he};function xe(mi){return!Gt&&mi in he||Gt&&Gt[mi]!==he[mi]}var we,se=Le.fieldNames;if(xe("fieldNames")&&(se=(0,$t.w$)(he.fieldNames),ee.fieldNames=se),xe("treeData")?we=he.treeData:xe("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,$t.zn)(he.children)),we){ee.treeData=we;var ke=(0,$t.I8)(we,{fieldNames:se});ee.keyEntities=(0,Ae.Z)((0,zt.Z)({},ve,en),ke.keyEntities)}var vn=ee.keyEntities||Le.keyEntities;if(xe("expandedKeys")||Gt&&xe("autoExpandParent"))ee.expandedKeys=he.autoExpandParent||!Gt&&he.defaultExpandParent?(0,nn.r7)(he.expandedKeys,vn):he.expandedKeys;else if(!Gt&&he.defaultExpandAll){var cn=(0,Ae.Z)({},vn);delete cn[ve],ee.expandedKeys=Object.keys(cn).map(function(mi){return cn[mi].key})}else!Gt&&he.defaultExpandedKeys&&(ee.expandedKeys=he.autoExpandParent||he.defaultExpandParent?(0,nn.r7)(he.defaultExpandedKeys,vn):he.defaultExpandedKeys);if(ee.expandedKeys||delete ee.expandedKeys,we||ee.expandedKeys){var Je=(0,$t.oH)(we||Le.treeData,ee.expandedKeys||Le.expandedKeys,se);ee.flattenNodes=Je}if(he.selectable&&(xe("selectedKeys")?ee.selectedKeys=(0,nn.BT)(he.selectedKeys,he):!Gt&&he.defaultSelectedKeys&&(ee.selectedKeys=(0,nn.BT)(he.defaultSelectedKeys,he))),he.checkable){var hn;if(xe("checkedKeys")?hn=(0,nn.E6)(he.checkedKeys)||{}:!Gt&&he.defaultCheckedKeys?hn=(0,nn.E6)(he.defaultCheckedKeys)||{}:we&&(hn=(0,nn.E6)(he.checkedKeys)||{checkedKeys:Le.checkedKeys,halfCheckedKeys:Le.halfCheckedKeys}),hn){var Vn=hn,Se=Vn.checkedKeys,qe=Se===void 0?[]:Se,Qe=Vn.halfCheckedKeys,Nn=Qe===void 0?[]:Qe;if(!he.checkStrictly){var hi=(0,Gn.S)(qe,!0,vn);qe=hi.checkedKeys,Nn=hi.halfCheckedKeys}ee.checkedKeys=qe,ee.halfCheckedKeys=Nn}}return xe("loadedKeys")&&(ee.loadedKeys=he.loadedKeys),ee}}]),Bt}(nt.Component);oi.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:st,allowDrop:function(){return!0},expandAction:!1},oi.TreeNode=jt.Z;var te=oi,bt=te},35654:function(On,Cn,yt){"use strict";yt.d(Cn,{BT:function(){return nt},E6:function(){return gt},L0:function(){return oe},OM:function(){return et},_5:function(){return Pe},r7:function(){return mt},wA:function(){return de},yx:function(){return Re}});var At=yt(26390),zt=yt(80665),re=yt(51395),Ae=yt(59301),Ut=yt(39417),ne=yt(67841),Ft=yt(71430),De=null;function Pe(Pt,kt){if(!Pt)return[];var wt=Pt.slice(),Ot=wt.indexOf(kt);return Ot>=0&&wt.splice(Ot,1),wt}function oe(Pt,kt){var wt=(Pt||[]).slice();return wt.indexOf(kt)===-1&&wt.push(kt),wt}function Re(Pt){return Pt.split("-")}function de(Pt,kt){var wt=[],Ot=(0,ne.Z)(kt,Pt);function jt(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ht.forEach(function($t){var ye=$t.key,Yt=$t.children;wt.push(ye),jt(Yt)})}return jt(Ot.children),wt}function be(Pt){if(Pt.parent){var kt=Re(Pt.pos);return Number(kt[kt.length-1])===Pt.parent.children.length-1}return!1}function Nt(Pt){var kt=Re(Pt.pos);return Number(kt[kt.length-1])===0}function et(Pt,kt,wt,Ot,jt,Ht,$t,ye,Yt,Ge){var ce,$e=Pt.clientX,Ue=Pt.clientY,Ke=Pt.target.getBoundingClientRect(),tn=Ke.top,Tn=Ke.height,ve=(Ge==="rtl"?-1:1)*(((jt==null?void 0:jt.x)||0)-$e),Zt=(ve-12)/Ot,en=(0,ne.Z)(ye,wt.props.eventKey);if(Ue<tn+Tn/2){var Kn=$t.findIndex(function(bt){return bt.key===en.key}),ii=Kn<=0?0:Kn-1,Be=$t[ii].key;en=(0,ne.Z)(ye,Be)}var on=en.key,un=en,Jn=en.key,nn=0,Gn=0;if(!Yt.includes(on))for(var pe=0;pe<Zt&&be(en);pe+=1)en=en.parent,Gn+=1;var Xn=kt.props.data,oi=en.node,te=!0;return Nt(en)&&en.level===0&&Ue<tn+Tn/2&&Ht({dragNode:Xn,dropNode:oi,dropPosition:-1})&&en.key===wt.props.eventKey?nn=-1:(un.children||[]).length&&Yt.includes(Jn)?Ht({dragNode:Xn,dropNode:oi,dropPosition:0})?nn=0:te=!1:Gn===0?Zt>-1.5?Ht({dragNode:Xn,dropNode:oi,dropPosition:1})?nn=1:te=!1:Ht({dragNode:Xn,dropNode:oi,dropPosition:0})?nn=0:Ht({dragNode:Xn,dropNode:oi,dropPosition:1})?nn=1:te=!1:Ht({dragNode:Xn,dropNode:oi,dropPosition:1})?nn=1:te=!1,{dropPosition:nn,dropLevelOffset:Gn,dropTargetKey:en.key,dropTargetPos:en.pos,dragOverNodeKey:Jn,dropContainerKey:nn===0?null:((ce=en.parent)===null||ce===void 0?void 0:ce.key)||null,dropAllowed:te}}function nt(Pt,kt){if(Pt){var wt=kt.multiple;return wt?Pt.slice():Pt.length?[Pt[0]]:Pt}}var ht=function(kt){return kt};function st(Pt,kt){if(!Pt)return[];var wt=kt||{},Ot=wt.processProps,jt=Ot===void 0?ht:Ot,Ht=Array.isArray(Pt)?Pt:[Pt];return Ht.map(function($t){var ye=$t.children,Yt=_objectWithoutProperties($t,De),Ge=st(ye,kt);return React.createElement(TreeNode,_extends({key:Yt.key},jt(Yt)),Ge)})}function gt(Pt){if(!Pt)return null;var kt;if(Array.isArray(Pt))kt={checkedKeys:Pt,halfCheckedKeys:void 0};else if((0,zt.Z)(Pt)==="object")kt={checkedKeys:Pt.checked||void 0,halfCheckedKeys:Pt.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return kt}function mt(Pt,kt){var wt=new Set;function Ot(jt){if(!wt.has(jt)){var Ht=(0,ne.Z)(kt,jt);if(Ht){wt.add(jt);var $t=Ht.parent,ye=Ht.node;ye.disabled||$t&&Ot($t.key)}}}return(Pt||[]).forEach(function(jt){Ot(jt)}),(0,At.Z)(wt)}},90782:function(On,Cn,yt){"use strict";yt.d(Cn,{S:function(){return Ft}});var At=yt(51395),zt=yt(67841);function re(De,Pe){var oe=new Set;return De.forEach(function(Re){Pe.has(Re)||oe.add(Re)}),oe}function Ae(De){var Pe=De||{},oe=Pe.disabled,Re=Pe.disableCheckbox,de=Pe.checkable;return!!(oe||Re)||de===!1}function Ut(De,Pe,oe,Re){for(var de=new Set(De),be=new Set,Nt=0;Nt<=oe;Nt+=1){var et=Pe.get(Nt)||new Set;et.forEach(function(gt){var mt=gt.key,Pt=gt.node,kt=gt.children,wt=kt===void 0?[]:kt;de.has(mt)&&!Re(Pt)&&wt.filter(function(Ot){return!Re(Ot.node)}).forEach(function(Ot){de.add(Ot.key)})})}for(var nt=new Set,ht=oe;ht>=0;ht-=1){var st=Pe.get(ht)||new Set;st.forEach(function(gt){var mt=gt.parent,Pt=gt.node;if(!(Re(Pt)||!gt.parent||nt.has(gt.parent.key))){if(Re(gt.parent.node)){nt.add(mt.key);return}var kt=!0,wt=!1;(mt.children||[]).filter(function(Ot){return!Re(Ot.node)}).forEach(function(Ot){var jt=Ot.key,Ht=de.has(jt);kt&&!Ht&&(kt=!1),!wt&&(Ht||be.has(jt))&&(wt=!0)}),kt&&de.add(mt.key),wt&&be.add(mt.key),nt.add(mt.key)}})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(re(be,de))}}function ne(De,Pe,oe,Re,de){for(var be=new Set(De),Nt=new Set(Pe),et=0;et<=Re;et+=1){var nt=oe.get(et)||new Set;nt.forEach(function(mt){var Pt=mt.key,kt=mt.node,wt=mt.children,Ot=wt===void 0?[]:wt;!be.has(Pt)&&!Nt.has(Pt)&&!de(kt)&&Ot.filter(function(jt){return!de(jt.node)}).forEach(function(jt){be.delete(jt.key)})})}Nt=new Set;for(var ht=new Set,st=Re;st>=0;st-=1){var gt=oe.get(st)||new Set;gt.forEach(function(mt){var Pt=mt.parent,kt=mt.node;if(!(de(kt)||!mt.parent||ht.has(mt.parent.key))){if(de(mt.parent.node)){ht.add(Pt.key);return}var wt=!0,Ot=!1;(Pt.children||[]).filter(function(jt){return!de(jt.node)}).forEach(function(jt){var Ht=jt.key,$t=be.has(Ht);wt&&!$t&&(wt=!1),!Ot&&($t||Nt.has(Ht))&&(Ot=!0)}),wt||be.delete(Pt.key),Ot&&Nt.add(Pt.key),ht.add(Pt.key)}})}return{checkedKeys:Array.from(be),halfCheckedKeys:Array.from(re(Nt,be))}}function Ft(De,Pe,oe,Re){var de=[],be;Re?be=Re:be=Ae;var Nt=new Set(De.filter(function(st){var gt=!!(0,zt.Z)(oe,st);return gt||de.push(st),gt})),et=new Map,nt=0;Object.keys(oe).forEach(function(st){var gt=oe[st],mt=gt.level,Pt=et.get(mt);Pt||(Pt=new Set,et.set(mt,Pt)),Pt.add(gt),nt=Math.max(nt,mt)}),(0,At.ZP)(!de.length,"Tree missing follow keys: ".concat(de.slice(0,100).map(function(st){return"'".concat(st,"'")}).join(", ")));var ht;return Pe===!0?ht=Ut(Nt,et,nt,be):ht=ne(Nt,Pe.halfCheckedKeys,et,nt,be),ht}},67841:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return At}});function At(zt,re){return zt[re]}},71430:function(On,Cn,yt){"use strict";yt.d(Cn,{F:function(){return mt},H8:function(){return gt},I8:function(){return st},km:function(){return de},oH:function(){return nt},w$:function(){return be},zn:function(){return et}});var At=yt(80665),zt=yt(26390),re=yt(57259),Ae=yt(19149),Ut=yt(38298),ne=yt(64002),Ft=yt(51395),De=yt(67841),Pe=["children"];function oe(Pt,kt){return"".concat(Pt,"-").concat(kt)}function Re(Pt){return Pt&&Pt.type&&Pt.type.isTreeNode}function de(Pt,kt){return Pt!=null?Pt:kt}function be(Pt){var kt=Pt||{},wt=kt.title,Ot=kt._title,jt=kt.key,Ht=kt.children,$t=wt||"title";return{title:$t,_title:Ot||[$t],key:jt||"key",children:Ht||"children"}}function Nt(Pt,kt){var wt=new Map;function Ot(jt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(jt||[]).forEach(function($t){var ye=$t[kt.key],Yt=$t[kt.children];warning(ye!=null,"Tree node must have a certain key: [".concat(Ht).concat(ye,"]"));var Ge=String(ye);warning(!wt.has(Ge)||ye===null||ye===void 0,"Same 'key' exist in the Tree: ".concat(Ge)),wt.set(Ge,!0),Ot(Yt,"".concat(Ht).concat(Ge," > "))})}Ot(Pt)}function et(Pt){function kt(wt){var Ot=(0,Ut.Z)(wt);return Ot.map(function(jt){if(!Re(jt))return(0,Ft.ZP)(!jt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ht=jt.key,$t=jt.props,ye=$t.children,Yt=(0,Ae.Z)($t,Pe),Ge=(0,re.Z)({key:Ht},Yt),ce=kt(ye);return ce.length&&(Ge.children=ce),Ge}).filter(function(jt){return jt})}return kt(Pt)}function nt(Pt,kt,wt){var Ot=be(wt),jt=Ot._title,Ht=Ot.key,$t=Ot.children,ye=new Set(kt===!0?[]:kt),Yt=[];function Ge(ce){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ce.map(function(Ue,Ke){for(var tn=oe($e?$e.pos:"0",Ke),Tn=de(Ue[Ht],tn),ve,Zt=0;Zt<jt.length;Zt+=1){var en=jt[Zt];if(Ue[en]!==void 0){ve=Ue[en];break}}var Kn=(0,re.Z)((0,re.Z)({},(0,ne.Z)(Ue,[].concat((0,zt.Z)(jt),[Ht,$t]))),{},{title:ve,key:Tn,parent:$e,pos:tn,children:null,data:Ue,isStart:[].concat((0,zt.Z)($e?$e.isStart:[]),[Ke===0]),isEnd:[].concat((0,zt.Z)($e?$e.isEnd:[]),[Ke===ce.length-1])});return Yt.push(Kn),kt===!0||ye.has(Tn)?Kn.children=Ge(Ue[$t]||[],Kn):Kn.children=[],Kn})}return Ge(Pt),Yt}function ht(Pt,kt,wt){var Ot={};(0,At.Z)(wt)==="object"?Ot=wt:Ot={externalGetKey:wt},Ot=Ot||{};var jt=Ot,Ht=jt.childrenPropName,$t=jt.externalGetKey,ye=jt.fieldNames,Yt=be(ye),Ge=Yt.key,ce=Yt.children,$e=Ht||ce,Ue;$t?typeof $t=="string"?Ue=function(Tn){return Tn[$t]}:typeof $t=="function"&&(Ue=function(Tn){return $t(Tn)}):Ue=function(Tn,ve){return de(Tn[Ge],ve)};function Ke(tn,Tn,ve,Zt){var en=tn?tn[$e]:Pt,Kn=tn?oe(ve.pos,Tn):"0",ii=tn?[].concat((0,zt.Z)(Zt),[tn]):[];if(tn){var Be=Ue(tn,Kn),on={node:tn,index:Tn,pos:Kn,key:Be,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:ii};kt(on)}en&&en.forEach(function(un,Jn){Ke(un,Jn,{node:tn,pos:Kn,level:ve?ve.level+1:-1},ii)})}Ke(null)}function st(Pt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wt=kt.initWrapper,Ot=kt.processEntity,jt=kt.onProcessFinished,Ht=kt.externalGetKey,$t=kt.childrenPropName,ye=kt.fieldNames,Yt=arguments.length>2?arguments[2]:void 0,Ge=Ht||Yt,ce={},$e={},Ue={posEntities:ce,keyEntities:$e};return wt&&(Ue=wt(Ue)||Ue),ht(Pt,function(Ke){var tn=Ke.node,Tn=Ke.index,ve=Ke.pos,Zt=Ke.key,en=Ke.parentPos,Kn=Ke.level,ii=Ke.nodes,Be={node:tn,nodes:ii,index:Tn,key:Zt,pos:ve,level:Kn},on=de(Zt,ve);ce[ve]=Be,$e[on]=Be,Be.parent=ce[en],Be.parent&&(Be.parent.children=Be.parent.children||[],Be.parent.children.push(Be)),Ot&&Ot(Be,Ue)},{externalGetKey:Ge,childrenPropName:$t,fieldNames:ye}),jt&&jt(Ue),Ue}function gt(Pt,kt){var wt=kt.expandedKeys,Ot=kt.selectedKeys,jt=kt.loadedKeys,Ht=kt.loadingKeys,$t=kt.checkedKeys,ye=kt.halfCheckedKeys,Yt=kt.dragOverNodeKey,Ge=kt.dropPosition,ce=kt.keyEntities,$e=(0,De.Z)(ce,Pt),Ue={eventKey:Pt,expanded:wt.indexOf(Pt)!==-1,selected:Ot.indexOf(Pt)!==-1,loaded:jt.indexOf(Pt)!==-1,loading:Ht.indexOf(Pt)!==-1,checked:$t.indexOf(Pt)!==-1,halfChecked:ye.indexOf(Pt)!==-1,pos:String($e?$e.pos:""),dragOver:Yt===Pt&&Ge===0,dragOverGapTop:Yt===Pt&&Ge===-1,dragOverGapBottom:Yt===Pt&&Ge===1};return Ue}function mt(Pt){var kt=Pt.data,wt=Pt.expanded,Ot=Pt.selected,jt=Pt.checked,Ht=Pt.loaded,$t=Pt.loading,ye=Pt.halfChecked,Yt=Pt.dragOver,Ge=Pt.dragOverGapTop,ce=Pt.dragOverGapBottom,$e=Pt.pos,Ue=Pt.active,Ke=Pt.eventKey,tn=(0,re.Z)((0,re.Z)({},kt),{},{expanded:wt,selected:Ot,checked:jt,loaded:Ht,loading:$t,halfChecked:ye,dragOver:Yt,dragOverGapTop:Ge,dragOverGapBottom:ce,pos:$e,active:Ue,key:Ke});return"props"in tn||Object.defineProperty(tn,"props",{get:function(){return(0,Ft.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pt}}),tn}},8178:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return zt}});var At=yt(4676);function zt(re,Ae,Ut,ne){var Ft=At.unstable_batchedUpdates?function(Pe){At.unstable_batchedUpdates(Ut,Pe)}:Ut;return re!=null&&re.addEventListener&&re.addEventListener(Ae,Ft,ne),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(Ae,Ft,ne)}}}},21783:function(On,Cn,yt){"use strict";yt.d(Cn,{g1:function(){return Re},os:function(){return be}});var At=/margin|padding|width|height|max|min|offset/,zt={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function Ae(Nt){return Nt.nodeType===1?Nt.ownerDocument.defaultView.getComputedStyle(Nt,null):{}}function Ut(Nt,et,nt){if(et=et.toLowerCase(),nt==="auto"){if(et==="height")return Nt.offsetHeight;if(et==="width")return Nt.offsetWidth}return et in zt||(zt[et]=At.test(et)),zt[et]?parseFloat(nt)||0:nt}function ne(Nt,et){var nt=arguments.length,ht=Ae(Nt);return et=re[et]?"cssFloat"in Nt.style?"cssFloat":"styleFloat":et,nt===1?ht:Ut(Nt,et,ht[et]||Nt.style[et])}function Ft(Nt,et,nt){var ht=arguments.length;if(et=re[et]?"cssFloat"in Nt.style?"cssFloat":"styleFloat":et,ht===3)return typeof nt=="number"&&At.test(et)&&(nt="".concat(nt,"px")),Nt.style[et]=nt,nt;for(var st in et)et.hasOwnProperty(st)&&Ft(Nt,st,et[st]);return Ae(Nt)}function De(Nt){return Nt===document.body?document.documentElement.clientWidth:Nt.offsetWidth}function Pe(Nt){return Nt===document.body?window.innerHeight||document.documentElement.clientHeight:Nt.offsetHeight}function oe(){var Nt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Nt,height:et}}function Re(){var Nt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Nt,height:et}}function de(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(Nt){var et=Nt.getBoundingClientRect(),nt=document.documentElement;return{left:et.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}},24387:function(On,Cn,yt){"use strict";yt.d(Cn,{G:function(){return Ae}});var At=yt(87746),zt=function(ne){if((0,At.Z)()&&window.document.documentElement){var Ft=Array.isArray(ne)?ne:[ne],De=window.document.documentElement;return Ft.some(function(Pe){return Pe in De.style})}return!1},re=function(ne,Ft){if(!zt(ne))return!1;var De=document.createElement("div"),Pe=De.style[ne];return De.style[ne]=Ft,De.style[ne]!==Pe};function Ae(Ut,ne){return!Array.isArray(Ut)&&ne!==void 0?re(Ut,ne):zt(Ut)}},50030:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return te}});var At=yt(5891),zt=yt(80665),re=yt(57259),Ae=yt(80962),Ut=yt(29043),ne=yt(19149),Ft=yt(92310),De=yt.n(Ft),Pe=yt(29301),oe=yt(80764),Re=yt(28800),de=yt(59301),be=yt(4676),Nt=de.forwardRef(function(bt,xt){var Tt=bt.height,Bt=bt.offsetY,St=bt.offsetX,he=bt.children,Le=bt.prefixCls,Gt=bt.onInnerResize,ee=bt.innerProps,xe=bt.rtl,we=bt.extra,se={},ke={display:"flex",flexDirection:"column"};return Bt!==void 0&&(se={height:Tt,position:"relative",overflow:"hidden"},ke=(0,re.Z)((0,re.Z)({},ke),{},(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({transform:"translateY(".concat(Bt,"px)")},xe?"marginRight":"marginLeft",-St),"position","absolute"),"left",0),"right",0),"top",0))),de.createElement("div",{style:se},de.createElement(Pe.Z,{onResize:function(cn){var Je=cn.offsetHeight;Je&&Gt&&Gt()}},de.createElement("div",(0,At.Z)({style:ke,className:De()((0,Ae.Z)({},"".concat(Le,"-holder-inner"),Le)),ref:xt},ee),he,we)))});Nt.displayName="Filler";var et=Nt;function nt(bt){var xt=bt.children,Tt=bt.setRef,Bt=de.useCallback(function(St){Tt(St)},[]);return de.cloneElement(xt,{ref:Bt})}function ht(bt,xt,Tt,Bt,St,he,Le,Gt){var ee=Gt.getKey;return bt.slice(xt,Tt+1).map(function(xe,we){var se=xt+we,ke=Le(xe,se,{style:{width:Bt},offsetX:St}),vn=ee(xe);return de.createElement(nt,{key:vn,setRef:function(Je){return he(xe,Je)}},ke)})}function st(bt,xt,Tt,Bt){var St=Tt-bt,he=xt-Tt,Le=Math.min(St,he)*2;if(Bt<=Le){var Gt=Math.floor(Bt/2);return Bt%2?Tt+Gt+1:Tt-Gt}return St>he?Tt-(Bt-he):Tt+(Bt-St)}function gt(bt,xt,Tt){var Bt=bt.length,St=xt.length,he,Le;if(Bt===0&&St===0)return null;Bt<St?(he=bt,Le=xt):(he=xt,Le=bt);var Gt={__EMPTY_ITEM__:!0};function ee(cn){return cn!==void 0?Tt(cn):Gt}for(var xe=null,we=Math.abs(Bt-St)!==1,se=0;se<Le.length;se+=1){var ke=ee(he[se]),vn=ee(Le[se]);if(ke!==vn){xe=se,we=we||ke!==ee(Le[se+1]);break}}return xe===null?null:{index:xe,multiple:we}}function mt(bt,xt,Tt){var Bt=de.useState(bt),St=(0,Ut.Z)(Bt,2),he=St[0],Le=St[1],Gt=de.useState(null),ee=(0,Ut.Z)(Gt,2),xe=ee[0],we=ee[1];return de.useEffect(function(){var se=gt(he||[],bt||[],xt);(se==null?void 0:se.index)!==void 0&&(Tt==null||Tt(se.index),we(bt[se.index])),Le(bt)},[bt]),[xe]}var Pt=yt(23073),kt=(typeof navigator=="undefined"?"undefined":(0,zt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),wt=kt,Ot=function(bt,xt,Tt,Bt){var St=(0,de.useRef)(!1),he=(0,de.useRef)(null);function Le(){clearTimeout(he.current),St.current=!0,he.current=setTimeout(function(){St.current=!1},50)}var Gt=(0,de.useRef)({top:bt,bottom:xt,left:Tt,right:Bt});return Gt.current.top=bt,Gt.current.bottom=xt,Gt.current.left=Tt,Gt.current.right=Bt,function(ee,xe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,se=ee?xe<0&&Gt.current.left||xe>0&&Gt.current.right:xe<0&&Gt.current.top||xe>0&&Gt.current.bottom;return we&&se?(clearTimeout(he.current),St.current=!1):(!se||St.current)&&Le(),!St.current&&se}};function jt(bt,xt,Tt,Bt,St,he,Le){var Gt=(0,de.useRef)(0),ee=(0,de.useRef)(null),xe=(0,de.useRef)(null),we=(0,de.useRef)(!1),se=Ot(xt,Tt,Bt,St);function ke(Se,qe){if(Pt.Z.cancel(ee.current),!se(!1,qe)){var Qe=Se;if(!Qe._virtualHandled)Qe._virtualHandled=!0;else return;Gt.current+=qe,xe.current=qe,wt||Qe.preventDefault(),ee.current=(0,Pt.Z)(function(){var Nn=we.current?10:1;Le(Gt.current*Nn,!1),Gt.current=0})}}function vn(Se,qe){Le(qe,!0),wt||Se.preventDefault()}var cn=(0,de.useRef)(null),Je=(0,de.useRef)(null);function hn(Se){if(bt){Pt.Z.cancel(Je.current),Je.current=(0,Pt.Z)(function(){cn.current=null},2);var qe=Se.deltaX,Qe=Se.deltaY,Nn=Se.shiftKey,hi=qe,mi=Qe;(cn.current==="sx"||!cn.current&&Nn&&Qe&&!qe)&&(hi=Qe,mi=0,cn.current="sx");var gi=Math.abs(hi),Pi=Math.abs(mi);cn.current===null&&(cn.current=he&&gi>Pi?"x":"y"),cn.current==="y"?ke(Se,mi):vn(Se,hi)}}function Vn(Se){bt&&(we.current=Se.detail===xe.current)}return[hn,Vn]}function Ht(bt,xt,Tt,Bt){var St=de.useMemo(function(){return[new Map,[]]},[bt,Tt.id,Bt]),he=(0,Ut.Z)(St,2),Le=he[0],Gt=he[1],ee=function(we){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,ke=Le.get(we),vn=Le.get(se);if(ke===void 0||vn===void 0)for(var cn=bt.length,Je=Gt.length;Je<cn;Je+=1){var hn,Vn=bt[Je],Se=xt(Vn);Le.set(Se,Je);var qe=(hn=Tt.get(Se))!==null&&hn!==void 0?hn:Bt;if(Gt[Je]=(Gt[Je-1]||0)+qe,Se===we&&(ke=Je),Se===se&&(vn=Je),ke!==void 0&&vn!==void 0)break}return{top:Gt[ke-1]||0,bottom:Gt[vn]}};return ee}var $t=yt(85899),ye=yt(79545),Yt=yt(68550),Ge=function(){function bt(){(0,ye.Z)(this,bt),(0,Ae.Z)(this,"maps",void 0),(0,Ae.Z)(this,"id",0),(0,Ae.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Yt.Z)(bt,[{key:"set",value:function(Tt,Bt){this.maps[Tt]=Bt,this.id+=1,this.diffKeys.add(Tt)}},{key:"get",value:function(Tt){return this.maps[Tt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),bt}(),ce=Ge;function $e(bt){var xt=parseFloat(bt);return isNaN(xt)?0:xt}function Ue(bt,xt,Tt){var Bt=de.useState(0),St=(0,Ut.Z)(Bt,2),he=St[0],Le=St[1],Gt=(0,de.useRef)(new Map),ee=(0,de.useRef)(new ce),xe=(0,de.useRef)(0);function we(){xe.current+=1}function se(){var vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var cn=function(){var Vn=!1;Gt.current.forEach(function(Se,qe){if(Se&&Se.offsetParent){var Qe=(0,$t.ZP)(Se),Nn=Qe.offsetHeight,hi=getComputedStyle(Qe),mi=hi.marginTop,gi=hi.marginBottom,Pi=$e(mi),_i=$e(gi),vr=Nn+Pi+_i;ee.current.get(qe)!==vr&&(ee.current.set(qe,vr),Vn=!0)}}),Vn&&Le(function(Se){return Se+1})};if(vn)cn();else{xe.current+=1;var Je=xe.current;Promise.resolve().then(function(){Je===xe.current&&cn()})}}function ke(vn,cn){var Je=bt(vn),hn=Gt.current.get(Je);cn?(Gt.current.set(Je,cn),se()):Gt.current.delete(Je),!hn!=!cn&&(cn?xt==null||xt(vn):Tt==null||Tt(vn))}return(0,de.useEffect)(function(){return we},[]),[ke,se,ee.current,he]}var Ke=14/15;function tn(bt,xt,Tt){var Bt=(0,de.useRef)(!1),St=(0,de.useRef)(0),he=(0,de.useRef)(0),Le=(0,de.useRef)(null),Gt=(0,de.useRef)(null),ee,xe=function(vn){if(Bt.current){var cn=Math.ceil(vn.touches[0].pageX),Je=Math.ceil(vn.touches[0].pageY),hn=St.current-cn,Vn=he.current-Je,Se=Math.abs(hn)>Math.abs(Vn);Se?St.current=cn:he.current=Je;var qe=Tt(Se,Se?hn:Vn,!1,vn);qe&&vn.preventDefault(),clearInterval(Gt.current),qe&&(Gt.current=setInterval(function(){Se?hn*=Ke:Vn*=Ke;var Qe=Math.floor(Se?hn:Vn);(!Tt(Se,Qe,!0)||Math.abs(Qe)<=.1)&&clearInterval(Gt.current)},16))}},we=function(){Bt.current=!1,ee()},se=function(vn){ee(),vn.touches.length===1&&!Bt.current&&(Bt.current=!0,St.current=Math.ceil(vn.touches[0].pageX),he.current=Math.ceil(vn.touches[0].pageY),Le.current=vn.target,Le.current.addEventListener("touchmove",xe,{passive:!1}),Le.current.addEventListener("touchend",we,{passive:!0}))};ee=function(){Le.current&&(Le.current.removeEventListener("touchmove",xe),Le.current.removeEventListener("touchend",we))},(0,Re.Z)(function(){return bt&&xt.current.addEventListener("touchstart",se,{passive:!0}),function(){var ke;(ke=xt.current)===null||ke===void 0||ke.removeEventListener("touchstart",se),ee(),clearInterval(Gt.current)}},[bt])}function Tn(bt){return Math.floor(Math.pow(bt,.5))}function ve(bt,xt){var Tt="touches"in bt?bt.touches[0]:bt;return Tt[xt?"pageX":"pageY"]-window[xt?"scrollX":"scrollY"]}function Zt(bt,xt,Tt){de.useEffect(function(){var Bt=xt.current;if(bt&&Bt){var St=!1,he,Le,Gt=function(){Pt.Z.cancel(he)},ee=function ke(){Gt(),he=(0,Pt.Z)(function(){Tt(Le),ke()})},xe=function(vn){var cn=vn;cn._virtualHandled||(cn._virtualHandled=!0,St=!0)},we=function(){St=!1,Gt()},se=function(vn){if(St){var cn=ve(vn,!1),Je=Bt.getBoundingClientRect(),hn=Je.top,Vn=Je.bottom;if(cn<=hn){var Se=hn-cn;Le=-Tn(Se),ee()}else if(cn>=Vn){var qe=cn-Vn;Le=Tn(qe),ee()}else Gt()}};return Bt.addEventListener("mousedown",xe),Bt.ownerDocument.addEventListener("mouseup",we),Bt.ownerDocument.addEventListener("mousemove",se),function(){Bt.removeEventListener("mousedown",xe),Bt.ownerDocument.removeEventListener("mouseup",we),Bt.ownerDocument.removeEventListener("mousemove",se),Gt()}}},[bt])}var en=10;function Kn(bt,xt,Tt,Bt,St,he,Le,Gt){var ee=de.useRef(),xe=de.useState(null),we=(0,Ut.Z)(xe,2),se=we[0],ke=we[1];return(0,Re.Z)(function(){if(se&&se.times<en){if(!bt.current){ke(function(Lt){return(0,re.Z)({},Lt)});return}he();var vn=se.targetAlign,cn=se.originAlign,Je=se.index,hn=se.offset,Vn=bt.current.clientHeight,Se=!1,qe=vn,Qe=null;if(Vn){for(var Nn=vn||cn,hi=0,mi=0,gi=0,Pi=Math.min(xt.length-1,Je),_i=0;_i<=Pi;_i+=1){var vr=St(xt[_i]);mi=hi;var gr=Tt.get(vr);gi=mi+(gr===void 0?Bt:gr),hi=gi}for(var fr=Nn==="top"?hn:Vn-hn,eo=Pi;eo>=0;eo-=1){var Jr=St(xt[eo]),Xi=Tt.get(Jr);if(Xi===void 0){Se=!0;break}if(fr-=Xi,fr<=0)break}switch(Nn){case"top":Qe=mi-hn;break;case"bottom":Qe=gi-Vn+hn;break;default:{var $r=bt.current.scrollTop,Ki=$r+Vn;mi<$r?qe="top":gi>Ki&&(qe="bottom")}}Qe!==null&&Le(Qe),Qe!==se.lastTop&&(Se=!0)}Se&&ke((0,re.Z)((0,re.Z)({},se),{},{times:se.times+1,targetAlign:qe,lastTop:Qe}))}},[se,bt.current]),function(vn){if(vn==null){Gt();return}if(Pt.Z.cancel(ee.current),typeof vn=="number")Le(vn);else if(vn&&(0,zt.Z)(vn)==="object"){var cn,Je=vn.align;"index"in vn?cn=vn.index:cn=xt.findIndex(function(Se){return St(Se)===vn.key});var hn=vn.offset,Vn=hn===void 0?0:hn;ke({times:0,index:cn,offset:Vn,originAlign:Je})}}}var ii=de.forwardRef(function(bt,xt){var Tt=bt.prefixCls,Bt=bt.rtl,St=bt.scrollOffset,he=bt.scrollRange,Le=bt.onStartMove,Gt=bt.onStopMove,ee=bt.onScroll,xe=bt.horizontal,we=bt.spinSize,se=bt.containerSize,ke=bt.style,vn=bt.thumbStyle,cn=bt.showScrollBar,Je=de.useState(!1),hn=(0,Ut.Z)(Je,2),Vn=hn[0],Se=hn[1],qe=de.useState(null),Qe=(0,Ut.Z)(qe,2),Nn=Qe[0],hi=Qe[1],mi=de.useState(null),gi=(0,Ut.Z)(mi,2),Pi=gi[0],_i=gi[1],vr=!Bt,gr=de.useRef(),fr=de.useRef(),eo=de.useState(cn),Jr=(0,Ut.Z)(eo,2),Xi=Jr[0],$r=Jr[1],Ki=de.useRef(),Lt=function(){cn===!0||cn===!1||(clearTimeout(Ki.current),$r(!0),Ki.current=setTimeout(function(){$r(!1)},3e3))},li=he-se||0,vi=se-we||0,Lr=de.useMemo(function(){if(St===0||li===0)return 0;var Sn=St/li;return Sn*vi},[St,li,vi]),hr=function(In){In.stopPropagation(),In.preventDefault()},qi=de.useRef({top:Lr,dragging:Vn,pageY:Nn,startTop:Pi});qi.current={top:Lr,dragging:Vn,pageY:Nn,startTop:Pi};var Zr=function(In){Se(!0),hi(ve(In,xe)),_i(qi.current.top),Le(),In.stopPropagation(),In.preventDefault()};de.useEffect(function(){var Sn=function(pn){pn.preventDefault()},In=gr.current,Fe=fr.current;return In.addEventListener("touchstart",Sn,{passive:!1}),Fe.addEventListener("touchstart",Zr,{passive:!1}),function(){In.removeEventListener("touchstart",Sn),Fe.removeEventListener("touchstart",Zr)}},[]);var Gr=de.useRef();Gr.current=li;var Ln=de.useRef();Ln.current=vi,de.useEffect(function(){if(Vn){var Sn,In=function(pn){var Un=qi.current,Oi=Un.dragging,Pn=Un.pageY,Ce=Un.startTop;Pt.Z.cancel(Sn);var Rn=gr.current.getBoundingClientRect(),pi=se/(xe?Rn.width:Rn.height);if(Oi){var Bi=(ve(pn,xe)-Pn)*pi,je=Ce;!vr&&xe?je-=Bi:je+=Bi;var yn=Gr.current,He=Ln.current,an=He?je/He:0,gn=Math.ceil(an*yn);gn=Math.max(gn,0),gn=Math.min(gn,yn),Sn=(0,Pt.Z)(function(){ee(gn,xe)})}},Fe=function(){Se(!1),Gt()};return window.addEventListener("mousemove",In,{passive:!0}),window.addEventListener("touchmove",In,{passive:!0}),window.addEventListener("mouseup",Fe,{passive:!0}),window.addEventListener("touchend",Fe,{passive:!0}),function(){window.removeEventListener("mousemove",In),window.removeEventListener("touchmove",In),window.removeEventListener("mouseup",Fe),window.removeEventListener("touchend",Fe),Pt.Z.cancel(Sn)}}},[Vn]),de.useEffect(function(){return Lt(),function(){clearTimeout(Ki.current)}},[St]),de.useImperativeHandle(xt,function(){return{delayHidden:Lt}});var fn="".concat(Tt,"-scrollbar"),Ze={position:"absolute",visibility:Xi?null:"hidden"},fe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return xe?(Ze.height=8,Ze.left=0,Ze.right=0,Ze.bottom=0,fe.height="100%",fe.width=we,vr?fe.left=Lr:fe.right=Lr):(Ze.width=8,Ze.top=0,Ze.bottom=0,vr?Ze.right=0:Ze.left=0,fe.width="100%",fe.height=we,fe.top=Lr),de.createElement("div",{ref:gr,className:De()(fn,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(fn,"-horizontal"),xe),"".concat(fn,"-vertical"),!xe),"".concat(fn,"-visible"),Xi)),style:(0,re.Z)((0,re.Z)({},Ze),ke),onMouseDown:hr,onMouseMove:Lt},de.createElement("div",{ref:fr,className:De()("".concat(fn,"-thumb"),(0,Ae.Z)({},"".concat(fn,"-thumb-moving"),Vn)),style:(0,re.Z)((0,re.Z)({},fe),vn),onMouseDown:Zr}))}),Be=ii,on=20;function un(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Tt=bt/xt*bt;return isNaN(Tt)&&(Tt=0),Tt=Math.max(Tt,on),Math.floor(Tt)}var Jn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],nn=[],Gn={overflowY:"auto",overflowAnchor:"none"};function pe(bt,xt){var Tt=bt.prefixCls,Bt=Tt===void 0?"rc-virtual-list":Tt,St=bt.className,he=bt.height,Le=bt.itemHeight,Gt=bt.fullHeight,ee=Gt===void 0?!0:Gt,xe=bt.style,we=bt.data,se=bt.children,ke=bt.itemKey,vn=bt.virtual,cn=bt.direction,Je=bt.scrollWidth,hn=bt.component,Vn=hn===void 0?"div":hn,Se=bt.onScroll,qe=bt.onVirtualScroll,Qe=bt.onVisibleChange,Nn=bt.innerProps,hi=bt.extraRender,mi=bt.styles,gi=bt.showScrollBar,Pi=gi===void 0?"optional":gi,_i=(0,ne.Z)(bt,Jn),vr=de.useCallback(function(Vr){return typeof ke=="function"?ke(Vr):Vr==null?void 0:Vr[ke]},[ke]),gr=Ue(vr,null,null),fr=(0,Ut.Z)(gr,4),eo=fr[0],Jr=fr[1],Xi=fr[2],$r=fr[3],Ki=!!(vn!==!1&&he&&Le),Lt=de.useMemo(function(){return Object.values(Xi.maps).reduce(function(Vr,Ar){return Vr+Ar},0)},[Xi.id,Xi.maps]),li=Ki&&we&&(Math.max(Le*we.length,Lt)>he||!!Je),vi=cn==="rtl",Lr=De()(Bt,(0,Ae.Z)({},"".concat(Bt,"-rtl"),vi),St),hr=we||nn,qi=(0,de.useRef)(),Zr=(0,de.useRef)(),Gr=(0,de.useRef)(),Ln=(0,de.useState)(0),fn=(0,Ut.Z)(Ln,2),Ze=fn[0],fe=fn[1],Sn=(0,de.useState)(0),In=(0,Ut.Z)(Sn,2),Fe=In[0],ue=In[1],pn=(0,de.useState)(!1),Un=(0,Ut.Z)(pn,2),Oi=Un[0],Pn=Un[1],Ce=function(){Pn(!0)},Rn=function(){Pn(!1)},pi={getKey:vr};function Bi(Vr){fe(function(Ar){var Cr;typeof Vr=="function"?Cr=Vr(Ar):Cr=Vr;var Do=Dr(Cr);return qi.current.scrollTop=Do,Do})}var je=(0,de.useRef)({start:0,end:hr.length}),yn=(0,de.useRef)(),He=mt(hr,vr),an=(0,Ut.Z)(He,1),gn=an[0];yn.current=gn;var sn=de.useMemo(function(){if(!Ki)return{scrollHeight:void 0,start:0,end:hr.length-1,offset:void 0};if(!li){var Vr;return{scrollHeight:((Vr=Zr.current)===null||Vr===void 0?void 0:Vr.offsetHeight)||0,start:0,end:hr.length-1,offset:void 0}}for(var Ar=0,Cr,Do,Ui,$i=hr.length,Er=0;Er<$i;Er+=1){var ei=hr[Er],Ho=vr(ei),$o=Xi.get(Ho),Na=Ar+($o===void 0?Le:$o);Na>=Ze&&Cr===void 0&&(Cr=Er,Do=Ar),Na>Ze+he&&Ui===void 0&&(Ui=Er),Ar=Na}return Cr===void 0&&(Cr=0,Do=0,Ui=Math.ceil(he/Le)),Ui===void 0&&(Ui=hr.length-1),Ui=Math.min(Ui+1,hr.length-1),{scrollHeight:Ar,start:Cr,end:Ui,offset:Do}},[li,Ki,Ze,hr,$r,he]),bn=sn.scrollHeight,Fn=sn.start,Wn=sn.end,qn=sn.offset;je.current.start=Fn,je.current.end=Wn,de.useLayoutEffect(function(){var Vr=Xi.getRecord();if(Vr.size===1){var Ar=Array.from(Vr)[0],Cr=vr(hr[Fn]);if(Cr===Ar){var Do=Xi.get(Ar),Ui=Do-Le;Bi(function($i){return $i+Ui})}}Xi.resetRecord()},[bn]);var Bn=de.useState({width:0,height:he}),ai=(0,Ut.Z)(Bn,2),Wi=ai[0],Mr=ai[1],nr=function(Ar){Mr({width:Ar.offsetWidth,height:Ar.offsetHeight})},Oe=(0,de.useRef)(),xi=(0,de.useRef)(),Vi=de.useMemo(function(){return un(Wi.width,Je)},[Wi.width,Je]),Ti=de.useMemo(function(){return un(Wi.height,bn)},[Wi.height,bn]),Sr=bn-he,yr=(0,de.useRef)(Sr);yr.current=Sr;function Dr(Vr){var Ar=Vr;return Number.isNaN(yr.current)||(Ar=Math.min(Ar,yr.current)),Ar=Math.max(Ar,0),Ar}var ir=Ze<=0,zi=Ze>=Sr,Kr=Fe<=0,wn=Fe>=Je,To=Ot(ir,zi,Kr,wn),An=function(){return{x:vi?-Fe:Fe,y:Ze}},Or=(0,de.useRef)(An()),Qo=(0,oe.useEvent)(function(Vr){if(qe){var Ar=(0,re.Z)((0,re.Z)({},An()),Vr);(Or.current.x!==Ar.x||Or.current.y!==Ar.y)&&(qe(Ar),Or.current=Ar)}});function uo(Vr,Ar){var Cr=Vr;Ar?((0,be.flushSync)(function(){ue(Cr)}),Qo()):Bi(Cr)}function Fa(Vr){var Ar=Vr.currentTarget.scrollTop;Ar!==Ze&&Bi(Ar),Se==null||Se(Vr),Qo()}var Vo=function(Ar){var Cr=Ar,Do=Je?Je-Wi.width:0;return Cr=Math.max(Cr,0),Cr=Math.min(Cr,Do),Cr},dr=(0,oe.useEvent)(function(Vr,Ar){Ar?((0,be.flushSync)(function(){ue(function(Cr){var Do=Cr+(vi?-Vr:Vr);return Vo(Do)})}),Qo()):Bi(function(Cr){var Do=Cr+Vr;return Do})}),or=jt(Ki,ir,zi,Kr,wn,!!Je,dr),io=(0,Ut.Z)(or,2),Co=io[0],Ci=io[1];tn(Ki,qi,function(Vr,Ar,Cr,Do){var Ui=Do;return To(Vr,Ar,Cr)?!1:!Ui||!Ui._virtualHandled?(Ui&&(Ui._virtualHandled=!0),Co({preventDefault:function(){},deltaX:Vr?Ar:0,deltaY:Vr?0:Ar}),!0):!1}),Zt(li,qi,function(Vr){Bi(function(Ar){return Ar+Vr})}),(0,Re.Z)(function(){function Vr(Cr){var Do=ir&&Cr.detail<0,Ui=zi&&Cr.detail>0;Ki&&!Do&&!Ui&&Cr.preventDefault()}var Ar=qi.current;return Ar.addEventListener("wheel",Co,{passive:!1}),Ar.addEventListener("DOMMouseScroll",Ci,{passive:!0}),Ar.addEventListener("MozMousePixelScroll",Vr,{passive:!1}),function(){Ar.removeEventListener("wheel",Co),Ar.removeEventListener("DOMMouseScroll",Ci),Ar.removeEventListener("MozMousePixelScroll",Vr)}},[Ki,ir,zi]),(0,Re.Z)(function(){if(Je){var Vr=Vo(Fe);ue(Vr),Qo({x:Vr})}},[Wi.width,Je]);var Vt=function(){var Ar,Cr;(Ar=Oe.current)===null||Ar===void 0||Ar.delayHidden(),(Cr=xi.current)===null||Cr===void 0||Cr.delayHidden()},qr=Kn(qi,hr,Xi,Le,vr,function(){return Jr(!0)},Bi,Vt);de.useImperativeHandle(xt,function(){return{nativeElement:Gr.current,getScrollInfo:An,scrollTo:function(Ar){function Cr(Do){return Do&&(0,zt.Z)(Do)==="object"&&("left"in Do||"top"in Do)}Cr(Ar)?(Ar.left!==void 0&&ue(Vo(Ar.left)),qr(Ar.top)):qr(Ar)}}}),(0,Re.Z)(function(){if(Qe){var Vr=hr.slice(Fn,Wn+1);Qe(Vr,hr)}},[Fn,Wn,hr]);var da=Ht(hr,vr,Xi,Le),ao=hi==null?void 0:hi({start:Fn,end:Wn,virtual:li,offsetX:Fe,offsetY:qn,rtl:vi,getSize:da}),_o=ht(hr,Fn,Wn,Je,Fe,eo,se,pi),ca=null;he&&(ca=(0,re.Z)((0,Ae.Z)({},ee?"height":"maxHeight",he),Gn),Ki&&(ca.overflowY="hidden",Je&&(ca.overflowX="hidden"),Oi&&(ca.pointerEvents="none")));var fa={};return vi&&(fa.dir="rtl"),de.createElement("div",(0,At.Z)({ref:Gr,style:(0,re.Z)((0,re.Z)({},xe),{},{position:"relative"}),className:Lr},fa,_i),de.createElement(Pe.Z,{onResize:nr},de.createElement(Vn,{className:"".concat(Bt,"-holder"),style:ca,ref:qi,onScroll:Fa,onMouseEnter:Vt},de.createElement(et,{prefixCls:Bt,height:bn,offsetX:Fe,offsetY:qn,scrollWidth:Je,onInnerResize:Jr,ref:Zr,innerProps:Nn,rtl:vi,extra:ao},_o))),li&&bn>he&&de.createElement(Be,{ref:Oe,prefixCls:Bt,scrollOffset:Ze,scrollRange:bn,rtl:vi,onScroll:uo,onStartMove:Ce,onStopMove:Rn,spinSize:Ti,containerSize:Wi.height,style:mi==null?void 0:mi.verticalScrollBar,thumbStyle:mi==null?void 0:mi.verticalScrollBarThumb,showScrollBar:Pi}),li&&Je>Wi.width&&de.createElement(Be,{ref:xi,prefixCls:Bt,scrollOffset:Fe,scrollRange:Je,rtl:vi,onScroll:uo,onStartMove:Ce,onStopMove:Rn,spinSize:Vi,containerSize:Wi.width,horizontal:!0,style:mi==null?void 0:mi.horizontalScrollBar,thumbStyle:mi==null?void 0:mi.horizontalScrollBarThumb,showScrollBar:Pi}))}var Xn=de.forwardRef(pe);Xn.displayName="List";var oi=Xn,te=oi},25510:function(On){"use strict";On.exports="data:image/png;base64,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KFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnrbnn3zSll1iKfvYHh+x/fbZz669/no76Scn2+lnnWnLrbyiXX81gGZyOOCRYws4KTqYi8h+O9IBlvm8r4iWAlgKYGlXHBbAkk+5AlgKYMnnmg48UQBLAmCZ7xP6/SWX2tlnnGEnfv/79o+77mIHfe1gW2vatL6ji/G3zE8pj6+CBGz/+7//a9854bshv8n7/+V9dsJxx4dYl7+99LzdcdfttuUWW9viS04JW54BLLPnzLVbb7nV9tp9z2AhIYbkpz/BwjLJfn/55XbFFVfat775LVt/w+l2+umn2cOPPmo/P+2Xdvwxx9hKq/6D/fDEH9qmm2xiE8ct0medmDfXbrjuOrv4ggvsvvvusw9/9GO2wYbT7bHHn7Srrr7GPvmf/2nbbvsO+8Y3vm7rrbeuLUKm3dfNjjnmGPvlaafbX+673z7+7x+3rbfYzA446AC79957bNq0dUKcy8RJEwNgeeCBB23vvfe22/98hx33rWNt1ZVXsRtvvMG+ccThNmrsaFt6uWVs6lJL2quzXrOZYyzE0Cw9ZartsOU77D8+/Um76ppr7KQfnWSnn/krW2Oj9e388863pSZNslE0ZNYcGzV6HBnl5h87PTIAn+AW0tlK84NYCmApgKVdcVgASz7lehKw1HWDFNYc9pZz4e9PPbxK9XL6cspBZEF+vf66UX799dc3GDD1IkYh9+A/4gteeuml1FeEcl/+8pfDx1/+LKSqM4ze/e53B1dAKg2yGjS/cC8Alm7wmWir80j4P9tzORTOx6eoXKsYFh0BwVice+659o1vfMPe80/vsSOOPMKmTSMPy7yQxI006ToXhXeRFfeII46wxx57zN7+9reHZ7n/l7/cZ9ddd53tvffHwtkvlCN2hrbeeOON9m//9m8hTfyaa64ZLCzElpx11lkhhuV73/uebb75Fvbzn58a5tP5559v//7v/x6exZWzzTbbhLq4x3zADXXCCSfYs889Z//xH/9hn/jEJ0JEDu/56Ec/YmuttVYAKGSCXXzxxQONPvvZz9pvf/vb0IZjjz02lPnUpz5lHPq51FJL2U033WSkgKf+GTPuCfUQ/3PkkUeGNj/4wIP22c991kiHv+eee9r73ve+EEtz94wZNnnSJJswYUJ4nnl3/fXX2/e///1gZdpg+nS78IILQmyQrpSzvSgbp+b32ZMZH9qn9O/QhrGiTdTPuDLXcrLdtpPptp353EoGLkyZbuuyXUMzDnPs5oUMvPLKKyvPU6tqF7899NBDtsEGG1TK5qqs6jxTDj/s5igOw7qff/75cDYQ3712oUwQcvFVN1H5fbvttgtK6s0KWAYyhp0ELAIhHOD5m9/8xv7nf/4nbEN+73vfa8svv3wABzp0k7/JdEtsC7t+vvSlL9ndd98djoAA6FAeAfy73/0ugBCU9tlnnx3O4AF0sK35wx/+cOBhTp3FSsM5VwTX/uEPfwi5WN7xjneE/0+dOtVuv/32AFQALgALANQee+wR3k9beRfPAIxOOumk0G5ACefNcBo67iISzwFY1lhjjQAgADgciUGbAVOAi3/9138NQp3yhxxyiO200072+OOP2x//+Ec79NBDg7I/+uijgxCnzIc+9KEAPHbb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"},32637:function(On,Cn,yt){"use strict";On.exports=yt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(On){"use strict";On.exports="data:image/png;base64,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"},16722:function(On,Cn,yt){"use strict";yt.d(Cn,{Z:function(){return De}});const At=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,zt=(Pe,oe)=>(!oe||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",re=(Pe,oe)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const Re=getComputedStyle(Pe,null);return zt(Re.overflowY,oe)||zt(Re.overflowX,oe)||(de=>{const be=(Nt=>{if(!Nt.ownerDocument||!Nt.ownerDocument.defaultView)return null;try{return Nt.ownerDocument.defaultView.frameElement}catch(et){return null}})(de);return!!be&&(be.clientHeight<de.scrollHeight||be.clientWidth<de.scrollWidth)})(Pe)}return!1},Ae=(Pe,oe,Re,de,be,Nt,et,nt)=>Nt<Pe&&et>oe||Nt>Pe&&et<oe?0:Nt<=Pe&&nt<=Re||et>=oe&&nt>=Re?Nt-Pe-de:et>oe&&nt<Re||Nt<Pe&&nt>Re?et-oe+be:0,Ut=Pe=>{const oe=Pe.parentElement;return oe==null?Pe.getRootNode().host||null:oe},ne=(Pe,oe)=>{var Re,de,be,Nt;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:st,skipOverflowHiddenElements:gt}=oe,mt=typeof st=="function"?st:ii=>ii!==st;if(!At(Pe))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,kt=[];let wt=Pe;for(;At(wt)&&mt(wt);){if(wt=Ut(wt),wt===Pt){kt.push(wt);break}wt!=null&&wt===document.body&&re(wt)&&!re(document.documentElement)||wt!=null&&re(wt,gt)&&kt.push(wt)}const Ot=(de=(Re=window.visualViewport)==null?void 0:Re.width)!=null?de:innerWidth,jt=(Nt=(be=window.visualViewport)==null?void 0:be.height)!=null?Nt:innerHeight,{scrollX:Ht,scrollY:$t}=window,{height:ye,width:Yt,top:Ge,right:ce,bottom:$e,left:Ue}=Pe.getBoundingClientRect(),{top:Ke,right:tn,bottom:Tn,left:ve}=(ii=>{const Be=window.getComputedStyle(ii);return{top:parseFloat(Be.scrollMarginTop)||0,right:parseFloat(Be.scrollMarginRight)||0,bottom:parseFloat(Be.scrollMarginBottom)||0,left:parseFloat(Be.scrollMarginLeft)||0}})(Pe);let Zt=nt==="start"||nt==="nearest"?Ge-Ke:nt==="end"?$e+Tn:Ge+ye/2-Ke+Tn,en=ht==="center"?Ue+Yt/2-ve+tn:ht==="end"?ce+tn:Ue-ve;const Kn=[];for(let ii=0;ii<kt.length;ii++){const Be=kt[ii],{height:on,width:un,top:Jn,right:nn,bottom:Gn,left:pe}=Be.getBoundingClientRect();if(et==="if-needed"&&Ge>=0&&Ue>=0&&$e<=jt&&ce<=Ot&&(Be===Pt&&!re(Be)||Ge>=Jn&&$e<=Gn&&Ue>=pe&&ce<=nn))return Kn;const Xn=getComputedStyle(Be),oi=parseInt(Xn.borderLeftWidth,10),te=parseInt(Xn.borderTopWidth,10),bt=parseInt(Xn.borderRightWidth,10),xt=parseInt(Xn.borderBottomWidth,10);let Tt=0,Bt=0;const St="offsetWidth"in Be?Be.offsetWidth-Be.clientWidth-oi-bt:0,he="offsetHeight"in Be?Be.offsetHeight-Be.clientHeight-te-xt:0,Le="offsetWidth"in Be?Be.offsetWidth===0?0:un/Be.offsetWidth:0,Gt="offsetHeight"in Be?Be.offsetHeight===0?0:on/Be.offsetHeight:0;if(Pt===Be)Tt=nt==="start"?Zt:nt==="end"?Zt-jt:nt==="nearest"?Ae($t,$t+jt,jt,te,xt,$t+Zt,$t+Zt+ye,ye):Zt-jt/2,Bt=ht==="start"?en:ht==="center"?en-Ot/2:ht==="end"?en-Ot:Ae(Ht,Ht+Ot,Ot,oi,bt,Ht+en,Ht+en+Yt,Yt),Tt=Math.max(0,Tt+$t),Bt=Math.max(0,Bt+Ht);else{Tt=nt==="start"?Zt-Jn-te:nt==="end"?Zt-Gn+xt+he:nt==="nearest"?Ae(Jn,Gn,on,te,xt+he,Zt,Zt+ye,ye):Zt-(Jn+on/2)+he/2,Bt=ht==="start"?en-pe-oi:ht==="center"?en-(pe+un/2)+St/2:ht==="end"?en-nn+bt+St:Ae(pe,nn,un,oi,bt+St,en,en+Yt,Yt);const{scrollLeft:ee,scrollTop:xe}=Be;Tt=Gt===0?0:Math.max(0,Math.min(xe+Tt/Gt,Be.scrollHeight-on/Gt+he)),Bt=Le===0?0:Math.max(0,Math.min(ee+Bt/Le,Be.scrollWidth-un/Le+St)),Zt+=xe-Tt,en+=ee-Bt}Kn.push({el:Be,top:Tt,left:Bt})}return Kn},Ft=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function De(Pe,oe){if(!Pe.isConnected||!(be=>{let Nt=be;for(;Nt&&Nt.parentNode;){if(Nt.parentNode===document)return!0;Nt=Nt.parentNode instanceof ShadowRoot?Nt.parentNode.host:Nt.parentNode}return!1})(Pe))return;const Re=(be=>{const Nt=window.getComputedStyle(be);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(Pe);if((be=>typeof be=="object"&&typeof be.behavior=="function")(oe))return oe.behavior(ne(Pe,oe));const de=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:be,top:Nt,left:et}of ne(Pe,Ft(oe))){const nt=Nt-Re.top+Re.bottom,ht=et-Re.left+Re.right;be.scroll({top:nt,left:ht,behavior:de})}}}}]);
|