|
|
(self.webpackChunk=self.webpackChunk||[]).push([[254],{89489:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},59477:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},40001:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},26227:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},49198:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},41464:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},87169:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},73331:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},15277:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},52671:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},8657:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},56082:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},33853:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},15075:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},43531:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},61485:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},38819:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},47472:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(rt,It){return Re.createElement(Je.Z,(0,be.Z)({},rt,{ref:It,icon:kt}))},Te=Re.forwardRef(it),Tt=Te},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(On,xn){"use strict";xn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},24990:function(On,xn){"use strict";xn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_button:"work_button___TiK1a"}},1370:function(On,xn){"use strict";xn.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},74413:function(){"use strict";function On(Fe,te,ne,he){ne===void 0&&(ne=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=te,this._minimum=ne,this._maximum=he}Object.defineProperty(On.prototype,"name",{get:function(){return this._name},set:function(Fe){if(typeof Fe!="string"||Fe==="")throw new Error("Shape name must be a valid string.");this._name=Fe}}),Object.defineProperty(On.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("The default value must be a real number, not: "+Fe);this._defaultValue=Fe}}),Object.defineProperty(On.prototype,"minimum",{get:function(){return this._minimum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Minimum must be a real number, not: "+Fe);this._minimum=Fe}}),Object.defineProperty(On.prototype,"maximum",{get:function(){return this._maximum},set:function(Fe){if(typeof Fe!="number"||isNaN(Fe))throw new Error("Maximum must be a real number, not: "+Fe);this._maximum=Fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Fe,te){var ne=go.Shape._FigureParameters[Fe];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Fe,te,ne){if(!(ne instanceof On))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[te]=ne};var xn=[];function ye(Fe,te){var ne=xn.pop();return ne===void 0?new go.Point(Fe,te):(ne.x=Fe,ne.y=te,ne)}function be(){var Fe=xn.pop();return Fe===void 0?new go.Point:Fe}function Re(Fe){xn.push(Fe)}function at(Fe,te,ne,he,se,ge,me,Pe,ke){ke||(ke=new go.Point);var we=Fe-ne,Oe=se-me,He=NaN,We=NaN;if(we===0)if(Oe===0)Fe===ne&&(He=Fe,We=te);else{var Ve=(ge-Pe)/Oe,ut=ge-Ve*se;He=Fe,We=Ve*He+ut}else if(Oe===0){var Ke=(te-he)/we,Wt=te-Ke*Fe;He=se,We=Ke*He+Wt}else{var Ke=(te-he)/we,Ve=(ge-Pe)/Oe,Wt=te-Ke*Fe,ut=ge-Ve*se;He=(ut-Wt)/(Ke-Ve),We=Ke*He+Wt}return ke.x=He,ke.y=We,ke}function kt(Fe,te,ne,he,se,ge,me,Pe,ke,we,Oe,He,We,Ve){var ut=1-ke,Ke=ke,Wt=Fe*ut+ne*Ke,pt=te*ut+he*Ke,Ut=ne*ut+se*Ke,Ht=he*ut+ge*Ke,jt=se*ut+me*Ke,Xt=ge*ut+Pe*Ke,Nn=Wt*ut+Ut*Ke,St=pt*ut+Ht*Ke,Ge=Ut*ut+jt*Ke,en=Ht*ut+Xt*Ke,Hn=Nn*ut+Ge*Ke,_n=St*ut+en*Ke;we.x=Wt,we.y=pt,Oe.x=Nn,Oe.y=St,He.x=Hn,He.y=_n,We.x=Ge,We.y=en,Ve.x=jt,Ve.y=Xt}var Je=new go.Spot(.156,.156),it=new go.Spot(.844,.844),Te=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new On("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Te,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,he,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ne/2,he.endX=te,he.endY=ne/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ne,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,te,ne){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,te,ne){var he=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=Je,se.spot2=it,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Fe,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ne,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ne,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Te*te,0,te,(1-Te)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Te*ne,(1-Te)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Te*ne,Te*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Te)*te,0,0,(1-Te)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).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(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new On("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new On("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}});var Tt=[];function Pt(){var Fe=Tt.pop();return Fe===void 0?[]:Fe}function rt(Fe){Fe.length=0,Tt.push(Fe)}function It(Fe){for(var te=Pt(),ne=.5,he=.5,se=Math.PI*1.5,ge=0,me=0;me<Fe;me++)ge=2*Math.PI/Fe*me+se,te[me]=new go.Point(he+ne*Math.cos(ge),he+ne*Math.sin(ge));return te.push(te[0]),te}function gt(Fe){var te=Ct(Fe),ne=Pt();ne[0]=te[0];for(var he=1,se=1;he<te.length;he+=2,se+=3)ne[se]=te[he],ne[se+1]=te[he],ne[se+2]=te[he+1];return rt(te),ne}function Ct(Fe){for(var te=It(Fe),ne=Pt(),he=Math.floor(te.length/2),se=te.length-1,ge=Fe%2===0?2:1,me=0;me<se;me++){var Pe=te[me],ke=te[me+1],we=te[(he+me-1)%se],Oe=te[(he+me+ge)%se];ne[me*2]=Pe,ne[me*2+1]=at(Pe.x,Pe.y,we.x,we.y,ke.x,ke.y,Oe.x,Oe.y,new go.Point)}return ne[ne.length]=ne[0],rt(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Fe,te,ne){var he=It(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<5;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,te,ne){var he=It(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<6;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,te,ne){var he=It(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<7;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Fe,te,ne){var he=It(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<8;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,te,ne){var he=It(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<9;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Fe,te,ne){var he=It(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,te,ne){var he=It(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,te,ne){var he=Ct(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,te,ne){var he=Ct(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,te,ne){var he=Ct(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<14;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,te,ne){var he=Ct(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<16;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,te,ne){var he=Ct(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<18;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,te,ne){var he=Ct(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<20;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),rt(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,te,ne){var he=gt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,te,ne){var he=gt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,te,ne){var he=gt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,te,ne){var he=gt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,te,ne){var he=gt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,te,ne){var he=gt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),rt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new On("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new On("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he<te/2&&se<ne/2&&(me.add(new go.PathSegment(go.PathSegment.Move,he,se)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new On("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=te/2,ge=new go.Geometry,me=new go.PathFigure(te,te/2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var Pe=Math.max(se-he,0);return Pe>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+Pe,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Pe,Pe).close())),ge.spot1=Je,ge.spot2=it,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,te,ne){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close())).setSpots(he/2,he/2,1-he/2,1-he/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(Fe,te,ne){var he=Fe?Fe.parameter1:NaN,se=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var me=se%360,Pe=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Pe,Pe).add(new go.PathSegment(go.PathSegment.Arc,ge,me,Pe,Pe,Pe,Pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,te,ne){var he=Te/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,ge*ne,te,(1-he)*ne,(se+he)*te,(ge+he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,me=ne/2,Pe=Math.atan2(ne,te),ke=he-Math.min(Math.cos(Pe)*he/2,ge),we=he-Math.min(Math.sin(Pe)*he/2,me),se=new go.Geometry,Oe=new go.PathFigure(ke,0,!0);return se.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,te-ke,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,we)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,ne-we)),Oe.add(new go.PathSegment(go.PathSegment.Line,te-ke,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,ke,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ne-we)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,ge=new go.PathFigure(.1*te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new On("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new On("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-he)*te,.25*ne,Math.abs(1-he)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Te*te,0,te,(.5-Te/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Te/2)*ne,Te*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,me=.3,Pe=0,ke=ge*Te;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+Pe)*ne,(.5-ge+me)*te,(.5+ke+Pe)*ne,(.5-ke+me)*te,(.5+ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+Pe)*ne,(.5+ke+me)*te,(.5+ge+Pe)*ne,(.5+ge+me)*te,(.5+ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Pe)*ne,(1-.5+ge+me)*te,(.5-ke+Pe)*ne,(.5+ke+me)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-ke+me)*te,(.5-ge+Pe)*ne,(.5-ge+me+.05)*te,(.5-ke+Pe-.02)*ne)),ge=.2,me=0,Pe=-.3,ke=ge*Te,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+Pe)*ne,(.5+ke+me)*te,(.5+ge+Pe)*ne,(.5+ge+me)*te,(.5+ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Pe)*ne,(1-.5+ge+me)*te,(.5-ke+Pe)*ne,(.5+ke+me)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+Pe)*ne,(.5-ke+me)*te,(.5-ge+Pe)*ne,(.5-ge+me)*te,(.5-ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ke+me)*te,(.5+ge+Pe)*ne,(.5-ge+me)*te,(.5+ke+Pe)*ne,(.5-ke+me)*te,(.5+ge+Pe)*ne)),ge=.2,me=-.3,Pe=0,ke=ge*Te,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Pe)*ne,(1-.5+ge+me-.05)*te,(.5-ke+Pe-.02)*ne,(.5+ke+me)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+Pe)*ne,(.5-ke+me)*te,(.5-ge+Pe)*ne,(.5-ge+me)*te,(.5-ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+Pe)*ne,(.5-ge+me)*te,(.5+ke+Pe)*ne,(.5-ke+me)*te,(.5+ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+ke+me)*te,(.5+ge+Pe)*ne,(.5+ge+me)*te,(.5+ke+Pe)*ne).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,me=.5,Pe=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*te,Pe*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ne*Pe,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Pe=.75,se=new go.PathFigure((me+ge)*te,Pe*ne,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ne*Pe,ge*te,ge*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,te,ne){var he=.8535533905932737,se=.5*te,ge=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=.5,me=.5,Pe=.5,ke=new go.PathFigure(me*te,(Pe-ge)*ne);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),ge=.4,se=Te*.4;var we=be(),Oe=be(),He=be(),We=be();kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.42,we,Oe,He,We,We);var Ve=be(),ut=be(),Ke=be();kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.58,We,We,Ke,Ve,ut);var Wt=be(),pt=be(),Ut=be();kt(me,Pe+ge,me-se,Pe+ge,me-ge,Pe+se,me-ge,Pe,.42,Wt,pt,Ut,We,We);var Ht=be(),jt=be(),Xt=be();return kt(me,Pe+ge,me-se,Pe+ge,me-ge,Pe+se,me-ge,Pe,.58,We,We,Xt,Ht,jt),ke.add(new go.PathSegment(go.PathSegment.Move,Xt.x*te,Xt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,Ht.x*te,Ht.y*ne,jt.x*te,jt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,He.x*te,He.y*ne,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Xt.x*te,Xt.y*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,Ut.x*te,Ut.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Ke.x*te,Ke.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,Ve.x*te,Ve.y*ne,ut.x*te,ut.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*te,Ut.y*ne,Wt.x*te,Wt.y*ne,pt.x*te,pt.y*ne).close()),Re(we),Re(Oe),Re(He),Re(We),Re(Ve),Re(ut),Re(Ke),Re(Wt),Re(pt),Re(Ut),Re(Ht),Re(jt),Re(Xt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var se=(te-he)/2,ge=se+he;return new go.Geometry().add(new go.PathFigure(ge,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,te,ne){var he=new go.Geometry,se=Te*.4,ge=.4,me=.5,Pe=.5,ke=be(),we=be(),Oe=be(),He=be(),We=new go.PathFigure((me-ge)*te,Pe*ne,!1);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne)),kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.44,Oe,He,we,ke,ke),We.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne,He.x*te,He.y*ne));var Ve=ye(we.x,we.y);kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.56,ke,ke,we,Oe,He);var ut=ye(we.x,we.y);We.add(new go.PathSegment(go.PathSegment.Line,(Ve.x*.1+.95*.9)*te,Ve.y*.1*ne)),We.add(new go.PathSegment(go.PathSegment.Line,.85*te,Ve.y*.1*ne)),We.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),We.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*te,.15*ne)),We.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*te,(ut.y*.1+.05*.9)*ne)),We.add(new go.PathSegment(go.PathSegment.Line,ut.x*te,ut.y*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,Oe.x*te,Oe.y*ne,He.x*te,He.y*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne)),ge=.35,se=Te*.35;var Ke=new go.PathFigure(me*te,(Pe-ge)*ne,!1);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne));var Wt=new go.PathFigure((me-ge)*te,Pe*ne,!1);return he.add(Wt),Re(ke),Re(we),Re(Oe),Re(He),Re(Ve),Re(ut),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Fe,te,ne){var he=new go.Geometry,se=.375,ge=0,me=-.125,Pe=se*Te,ke=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+Pe+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+Pe+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-Pe+me)*ne,(.5+Pe+ge)*te,(.5-se+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Pe+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Pe+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+Pe+me)*ne,(.5-Pe+ge)*te,(.5+se+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,me=-.125,Pe=se*Te;var ke=new go.PathFigure((1-.5+se+ge)*te,(.5+me)*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+Pe+me)*ne,(.5+Pe+ge)*te,(.5+se+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Pe+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+Pe+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Pe+me)*ne,(.5-Pe+ge)*te,(.5-se+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+Pe+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-Pe+me)*ne));var ke=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);return he.add(ke),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,te,ne){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ne,he*te,he*ne)).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(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*te,me=(.5-se/2)*ne,Pe=(.5+se/2)*ne,ke=new go.Geometry,we=new go.PathFigure(0,me,!0);ke.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge,me)),we.add(new go.PathSegment(go.PathSegment.Line,ge,0)),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,Pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),ke.spot1=new go.Spot(0,me/ne);var Oe=at(0,Pe/ne,1,Pe/ne,ge/te,1,1,.5,be());return ke.spot2=new go.Spot(Oe.x,Oe.y),Re(Oe),ke}),go.Shape.setFigureParameter("Arrow2",0,new On("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new On("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-he,me=(ne-se)/2,Pe=me+se,ke=new go.Geometry,we=new go.PathFigure(0,me,!0);ke.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge,me)),we.add(new go.PathSegment(go.PathSegment.Line,ge,0)),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,Pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),ke.spot1=new go.Spot(0,me/ne);var Oe=at(0,Pe/ne,1,Pe/ne,ge/te,1,1,.5,be());return ke.spot2=new go.Spot(Oe.x,Oe.y),Re(Oe),ke}),go.Shape.defineFigureGenerator("Chevron",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new On("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);me.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var ke=at(0,.5,.3,0,0,se/ne,.1,se/ne,be());return me.spot1=new go.Spot(ke.x,ke.y),ke=at(.7,1,1,.5,0,ge/ne,1,ge/ne,ke),me.spot2=new go.Spot(ke.x,ke.y),Re(ke),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new On("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new On("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,me=ge+he,Pe=(ne-se)/2,ke=Pe+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,me=ge+he,Pe=0,ke=ne):(ge=0,me=ne,Pe=0,ke=ne));var we=new go.Geometry,Oe=new go.PathFigure(te,.5*ne,!0);we.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe).close());var He=at(0,.5,.3,Pe/ne,0,ge/ne,1,ge/ne,be());return we.spot1=new go.Spot(He.x,He.y),He=at(.7,ke/ne,1,.5,0,me/ne,1,me/ne,He),we.spot2=new go.Spot(He.x,He.y),Re(He),we}),go.Shape.setFigureParameter("IBeamArrow",0,new On("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);me.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,se/ne);var ke=at(.7,1,1,.5,0,ge/ne,1,ge/ne,be());return me.spot2=new go.Spot(ke.x,ke.y),Re(ke),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new On("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new On("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var se=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,me=ge+he,Pe=(ne-se)/2,ke=Pe+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,me=ge+he,Pe=0,ke=ne):(ge=0,me=ne,Pe=0,ke=ne));var we=new go.Geometry,Oe=new go.PathFigure(te,.5*ne,!0);we.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe).close()),we.spot1=new go.Spot(0,ge/ne);var He=at(.7,ke/ne,1,.5,0,me/ne,1,me/ne,be());return we.spot2=new go.Spot(He.x,He.y),Re(He),we}),go.Shape.setFigureParameter("Pointer",0,new On("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var me=at(.2,.65,1,.65,0,1,1,.5,be());return se.spot2=new go.Spot(me.x,me.y),Re(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new On("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se.spot1=new go.Spot(he,.35);var me=at(0,.65,1,.65,0,1,1,.5,be());return se.spot2=new go.Spot(me.x,me.y),Re(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new On("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);me.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var ke=at(.7,1,1,.5,0,ge/ne,1,ge/ne,be());return me.spot2=new go.Spot(ke.x,ke.y),Re(ke),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new On("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var se=(ne-he)/2,ge=se+he;he>ne&&(se=0,ge=ne);var me=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);me.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,se/ne);var ke=at(.7,1,1,.5,0,ge/ne,1,ge/ne,be());return me.spot2=new go.Spot(ke.x,ke.y),Re(ke),me}),go.Shape.setFigureParameter("SquareArrow",0,new On("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=Te*.1,me=new go.PathFigure(0,.9*ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var ge=new go.PathFigure(0,.9*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var ge=new go.PathFigure(0,.3*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Te*.5,me=new go.PathFigure(0,he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Te*he,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+ge)*te,0,1*te,Te*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Te*he,(.5+ge)*te,1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,1*ne,0,ne-Te*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var Pe=new go.PathFigure(te,he,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Te*he,(.5+ge)*te,2*he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*te,2*he,0,2*he-Te*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Te*.5,me=new go.PathFigure(0,ne-he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Te*he,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+ge)*te,0,te,Te*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Te*he,(.5+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,ne,0,ne-Te*he));var Pe=new go.PathFigure(0,ne-he,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*he,0,ne-he-Te*he,(.5-ge)*te,ne-2*he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-he,(.5+ge)*te,ne-2*he,te,ne-he-Te*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Te*.5,me=new go.PathFigure(he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Te*he,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Te*he,ne)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Te*he,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Te*he,0));var Pe=new go.PathFigure(he,0,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ne,he+Te*he,0,2*he,(.5-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,he,ne,2*he,(.5+ge)*ne,he+Te*he,ne)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Te*.5,me=new go.PathFigure(te-he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Te*he,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Te*he,ne)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Te*he,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Te*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var Pe=new go.PathFigure(te-he,0,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ne,te-he-Te*he,0,te-2*he,(.5-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te-2*he,(.5+ge)*ne,te-he-Te*he,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.25*te,.25*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,te,ne){var he=new go.Geometry,se=.2,ge=.1,me=Te*se,Pe=Te*ge,ke=.5,we=.1,Oe=new go.PathFigure(ke*te,(we+ge)*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-se)*te,we*ne,(ke-me)*te,(we+ge)*ne,(ke-se)*te,(we+Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ge)*ne,(ke-se)*te,(we-Pe)*ne,(ke-me)*te,(we-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+se)*te,we*ne,(ke+me)*te,(we-ge)*ne,(ke+se)*te,(we-Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+ge)*ne,(ke+se)*te,(we+Pe)*ne,(ke+me)*te,(we+ge)*ne));var He=.05,We=Te*He;ke=.05,we=.25;var Ve=new go.PathFigure(.5*te,.2*ne,!0);return he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),ke=.95,we=.25,Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke+He)*te,we*ne,(ke+We)*te,(we-He)*ne,(ke+He)*te,(we-We)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),He=.025,We=Te*He,ke=.825,we=.35,Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-He)*ne,(ke+He)*te,(we-We)*ne,(ke+We)*te,(we-He)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-He)*te,we*ne,(ke-We)*te,(we-He)*ne,(ke-He)*te,(we-We)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),He=.05,We=Te*He,ke=.5,we=.7,Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-He)*ne,(ke+He)*te,(we-We)*ne,(ke+We)*te,(we-He)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-He)*te,we*ne,(ke-We)*te,(we-He)*ne,(ke-He)*te,(we-We)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),He=.025,We=Te*He,ke=.175,we=.35,Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-He)*ne,(ke+He)*te,(we-We)*ne,(ke+We)*te,(we-He)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-He)*te,we*ne,(ke-We)*te,(we-He)*ne,(ke-He)*te,(we-We)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),He=.05,We=Te*He,ke=.05,we=.25,Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-He)*ne,(ke-He)*te,(we-We)*ne,(ke-We)*te,(we-He)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new On("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var ge=new go.PathFigure(.5*te,.5*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=Te*.1,me=new go.PathFigure(te,.1*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Pe=new go.PathFigure(te,.1*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=Te*.1,me=new go.PathFigure(te,.1*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Pe=new go.PathFigure(te,.1*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Te*.2,me=new go.PathFigure(0,.2*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Pe=new go.PathFigure(0,se*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(.1*te,.4*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.75*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var ge=new go.PathFigure(te,.5*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var me=new go.PathFigure(te,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Pe=new go.PathFigure(se*te,0,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,te,ne){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=Te*.5,Pe=.5,ke=new go.PathFigure(te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,ne,te,(Pe+me)*ne,(Pe+me)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,Pe*ne,(Pe-me)*te,ne,0,(Pe+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,0,0,(Pe-me)*ne,(Pe-me)*te,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,Pe*ne,(Pe+me)*te,0,te,(Pe-me)*ne));var we=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),we.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Fe,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var ge=new go.PathFigure(.1*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=.5,me=new go.PathFigure(.5*te,ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var ge=new go.PathFigure(.1*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var ge=new go.PathFigure(.2*te,.1*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Pe=new go.PathFigure(.5*se*te,se*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Pe=new go.PathFigure(te,.5*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Fe,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN,ge=Fe?Fe.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure((1-se)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(0,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,te,ne){var he=new go.Geometry,se=Fe?Fe.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Pe=new go.PathFigure(te,ge*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var ke=new go.PathFigure(.8*te,.75*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),he}),go.Shape.defineFigureGenerator("Ground",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,te,ne){var he=new go.Geometry,se=Te*.1,ge=.1,me=.9,Pe=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var we=new go.PathFigure((me+ge)*te,Pe*ne,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,(me+se)*te,(Pe-ge)*ne,(me+ge)*te,(Pe-se)*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=Te*.4,me=Te*.1,Pe=.1,ke=.9,we=.5,Oe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var He=new go.PathFigure((ke+Pe)*te,we*ne,!0);return he.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+Pe)*ne,(ke+Pe)*te,(we+me)*ne,(ke+me)*te,(we+Pe)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te,we*ne,(ke-me)*te,(we+Pe)*ne,(ke-Pe)*te,(we+me)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-Pe)*ne,(ke-Pe)*te,(we-me)*ne,(ke-me)*te,(we-Pe)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te,we*ne,(ke+me)*te,(we-Pe)*ne,(ke+Pe)*te,(we-me)*ne)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*se,me=0,Pe=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(Pe-se)*ne,.7*te,(Pe-ge)*ne)),se=.1,ge=Te*.1,me=.9,Pe=.5;var we=new go.PathFigure((me-se)*te,Pe*ne,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*se,me=0,Pe=.5,ke=new go.PathFigure(0,0,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge+ge)*te,(Pe-se)*ne,.8*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Pe+ge)*ne,(me+ge+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*se,me=.2,Pe=.5,ke=new go.PathFigure(.1*te,0,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var we=new go.PathFigure(.8*te,.5*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(Pe-se)*ne,.7*te,(Pe-ge)*ne)),se=.1,ge=Te*.1,me=.9,Pe=.5;var Oe=new go.PathFigure((me-se)*te,Pe*ne,!0);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*se,me=.2,Pe=.5,ke=new go.PathFigure(.1*te,0,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var we=new go.PathFigure(.2*te,0,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge)*te,(Pe-se)*ne,.9*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,te,ne){var he=new go.Geometry,se=Te*.1,ge=.1,me=.1,Pe=.5,ke=new go.PathFigure((me-se*.5)*te,ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.3,ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.5,ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.7,ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.9,ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se*.5)*te,ne,(me+ge)*te,0,(me+se)*te,ne)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Fe,te,ne){var he=new go.Geometry,se=Te*.5,ge=.5,me=.5,Pe=.5,ke=new go.PathFigure((me-ge)*te,Pe*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,(me+se)*te,(Pe-ge)*ne,(me+ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*te,Pe*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*te,Pe*ne,me*te,(Pe-ge)*ne,me*te,(Pe+ge)*ne)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,te,ne){var he=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var me=Te*.8,Pe=.8,ke=0,we=.5,Oe=(se-te)/2,He=(ge-ne)/2,We=new go.PathFigure(ke*te+Oe,(we+Pe)*ne+He,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+He,(ke-me)*te+Oe,(we+Pe)*ne+He,(ke-Pe)*te+Oe,(we+me)*ne+He)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+He,(ke-Pe)*te+Oe,(we-me)*ne+He,(ke-me)*te+Oe,(we-Pe)*ne+He)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe+me*.5)*te+Oe,we*ne+He,ke*te+Oe,(we-Pe)*ne+He,(ke-Pe+me*.5)*te+Oe,(we-me)*ne+He)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+He,(ke-Pe+me*.5)*te+Oe,(we+me)*ne+He,ke*te+Oe,(we+Pe)*ne+He).close()),me=Te*.4,Pe=.4,ke=.2,we=.5;var Ve=new go.PathFigure(ke*te+Oe,(we+Pe)*ne+He,!0);he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+He,(ke-me)*te+Oe,(we+Pe)*ne+He,(ke-Pe)*te+Oe,(we+me)*ne+He)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+He,(ke-Pe)*te+Oe,(we-me)*ne+He,(ke-me)*te+Oe,(we-Pe)*ne+He)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe+me*.5)*te+Oe,we*ne+He,ke*te+Oe,(we-Pe)*ne+He,(ke-Pe+me*.5)*te+Oe,(we-me)*ne+He)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+He,(ke-Pe+me*.5)*te+Oe,(we+me)*ne+He,ke*te+Oe,(we+Pe)*ne+He).close()),me=Te*.2,Pe=.2,ke=.5,we=.5;var ut=new go.PathFigure((ke-Pe)*te+Oe,we*ne+He,!0);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+He,(ke-Pe)*te+Oe,(we-me)*ne+He,(ke-me)*te+Oe,(we-Pe)*ne+He)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+He,(ke+me)*te+Oe,(we-Pe)*ne+He,(ke+Pe)*te+Oe,(we-me)*ne+He)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+He,(ke+Pe)*te+Oe,(we+me)*ne+He,(ke+me)*te+Oe,(we+Pe)*ne+He)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+He,(ke-me)*te+Oe,(we+Pe)*ne+He,(ke-Pe)*te+Oe,(we+me)*ne+He)),me=Te*.4,Pe=.4,ke=.8,we=.5;var Ke=new go.PathFigure(ke*te+Oe,(we-Pe)*ne+He,!0);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+He,(ke+me)*te+Oe,(we-Pe)*ne+He,(ke+Pe)*te+Oe,(we-me)*ne+He)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+He,(ke+Pe)*te+Oe,(we+me)*ne+He,(ke+me)*te+Oe,(we+Pe)*ne+He)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe-me*.5)*te+Oe,we*ne+He,ke*te+Oe,(we+Pe)*ne+He,(ke+Pe-me*.5)*te+Oe,(we+me)*ne+He)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+He,(ke+Pe-me*.5)*te+Oe,(we-me)*ne+He,ke*te+Oe,(we-Pe)*ne+He).close()),me=Te*.8,Pe=.8,ke=1,we=.5;var Wt=new go.PathFigure(ke*te+Oe,(we-Pe)*ne+He,!0);return he.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+He,(ke+me)*te+Oe,(we-Pe)*ne+He,(ke+Pe)*te+Oe,(we-me)*ne+He)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+He,(ke+Pe)*te+Oe,(we+me)*ne+He,(ke+me)*te+Oe,(we+Pe)*ne+He)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe-me*.5)*te+Oe,we*ne+He,ke*te+Oe,(we+Pe)*ne+He,(ke+Pe-me*.5)*te+Oe,(we+me)*ne+He)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+He,(ke+Pe-me*.5)*te+Oe,(we-me)*ne+He,ke*te+Oe,(we-Pe)*ne+He).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var ge=new go.PathFigure(.1*te,ne,!0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var me=new go.PathFigure(.6*te,ne,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Pe=new go.PathFigure(0,.5*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,te,ne){var he=new go.Geometry,se=Te*.4,ge=.4,me=.5,Pe=.5,ke=be(),we=be(),Oe=be(),He=be();kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.5,ke,ke,we,Oe,He);var We=ye(we.x,we.y),Ve=new go.PathFigure(we.x*te,we.y*ne,!0);he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,Oe.x*te,Oe.y*ne,He.x*te,He.y*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,(me-se)*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne)),kt(me-ge,Pe,me-ge,Pe-se,me-se,Pe-ge,me,Pe-ge,.5,Oe,He,we,ke,ke),Ve.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne,He.x*te,He.y*ne)),se=Te*.3,ge=.3,kt(me-ge,Pe,me-ge,Pe-se,me-se,Pe-ge,me,Pe-ge,.5,Oe,He,we,ke,ke),Ve.add(new go.PathSegment(go.PathSegment.Line,we.x*te,we.y*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Pe*ne,He.x*te,He.y*ne,Oe.x*te,Oe.y*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+ge)*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Pe*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),kt(me,Pe-ge,me+se,Pe-ge,me+ge,Pe-se,me+ge,Pe,.5,ke,ke,we,Oe,He),Ve.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,He.x*te,He.y*ne,Oe.x*te,Oe.y*ne).close());var Ve=new go.PathFigure(.45*te,0,!0);return he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Re(ke),Re(we),Re(Oe),Re(He),Re(We),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(me,Pe,ke){me.add(new go.PathSegment(go.PathSegment.Move,(.3+Pe)*te,(.8+ke)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+Pe)*te,(.5+ke)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+Pe)*te,(.5+ke)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+Pe)*te,(.8+ke)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=0,me=0,Pe=se*Te,ke=.4*Math.SQRT2/2+.5,we=.5-.5*Math.SQRT2/2,Oe=1,He=.5,We=.5,Ve=0,ut=new go.PathFigure(ke*te,(1-we)*ne,!1);return he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,He*ne,Oe*te,.7*ne,Oe*te,He*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We+ge)*te,(Ve+ge)*ne,(.5+se+ge)*te,(.5-Pe+ge)*ne,(.5+Pe+ge)*te,(.5-se+ge)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Pe+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Pe+me)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Pe+me)*ne,(.5-Pe+ge)*te,.9*ne)),ut.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var me=new go.PathFigure(0,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var ge=new go.PathFigure(.45*te,.73*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var me=.5-.285,Pe=.5,ke=me,we=Math.PI/4,Oe=4*(1-Math.cos(we))/(3*Math.sin(we)),He=Oe*.5,We=me,Ve=me,ut=Oe*We,Ke=Oe*Ve;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-We)*te,ke*ne,(Pe-(ut+We)/2)*te,(ke+(Ve+Ke)/2)*ne,(Pe-We)*te,(ke+Ke)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(ke-Ve)*ne,(Pe-We)*te,(ke-Ke)*ne,(Pe-ut)*te,(ke-Ve)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+We)*te,ke*ne,(Pe+ut)*te,(ke-Ve)*ne,(Pe+We)*te,(ke-Ke)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Pe+We)*te,(ke+Ke)*ne,(Pe+(ut+We)/2)*te,(ke+(Ve+Ke)/2)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var Wt=new go.PathFigure(.2*te,ne,!1);he.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var pt=new go.PathFigure(.8*te,ne,!1);return he.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ge=new go.PathFigure(.2*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var me=new go.PathFigure(.1*te,ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,ge*te,ge*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var ge=new go.PathFigure(.475*te,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var me=new go.PathFigure(.675*te,.575*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*.5,me=new go.PathFigure(te,se*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var Pe=new go.PathFigure(se*te,0,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Package",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,.15*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(0,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var ge=new go.PathFigure(0,.2*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var me=new go.PathFigure(0,.6*ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var ge=new go.PathFigure(.15*te,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(te,.8*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var me=.1,Pe=Te*.1,ke=.2,we=.9,Oe=new go.PathFigure((ke-me)*te,we*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-me)*ne,(ke-me)*te,(we-Pe)*ne,(ke-Pe)*te,(we-me)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+me)*te,we*ne,(ke+Pe)*te,(we-me)*ne,(ke+me)*te,(we-Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+me)*ne,(ke+me)*te,(we+Pe)*ne,(ke+Pe)*te,(we+me)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-me)*te,we*ne,(ke-Pe)*te,(we+me)*ne,(ke-me)*te,(we+Pe)*ne).close()),me=.1,Pe=Te*.1,ke=.8,we=.9;var He=new go.PathFigure((ke-me)*te,we*ne,!0);return he.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-me)*ne,(ke-me)*te,(we-Pe)*ne,(ke-Pe)*te,(we-me)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ke+me)*te,we*ne,(ke+Pe)*te,(we-me)*ne,(ke+me)*te,(we-Pe)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+me)*ne,(ke+me)*te,(we+Pe)*ne,(ke+Pe)*te,(we+me)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ke-me)*te,we*ne,(ke-Pe)*te,(we+me)*ne,(ke-me)*te,(we+Pe)*ne).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.5*te,.8*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Pe=new go.PathFigure(.5*te,.7*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var ke=.1,we=Te*.1,Oe=.1,He=.9,We=new go.PathFigure((Oe-ke)*te,He*ne,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(He-ke)*ne,(Oe-ke)*te,(He-we)*ne,(Oe-we)*te,(He-ke)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+ke)*te,He*ne,(Oe+we)*te,(He-ke)*ne,(Oe+ke)*te,(He-we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(He+ke)*ne,(Oe+ke)*te,(He+we)*ne,(Oe+we)*te,(He+ke)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ke)*te,He*ne,(Oe-we)*te,(He+ke)*ne,(Oe-ke)*te,(He+we)*ne)),ke=.1,we=Te*.1,Oe=.4,He=.9;var Ve=new go.PathFigure((Oe-ke)*te,He*ne,!0);return he.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(He-ke)*ne,(Oe-ke)*te,(He-we)*ne,(Oe-we)*te,(He-ke)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+ke)*te,He*ne,(Oe+we)*te,(He-ke)*ne,(Oe+ke)*te,(He-we)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(He+ke)*ne,(Oe+ke)*te,(He+we)*ne,(Oe+we)*te,(He+ke)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ke)*te,He*ne,(Oe-we)*te,(He+ke)*ne,(Oe-ke)*te,(He+we)*ne)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var ge=new go.PathFigure(.45*te,.7*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var me=new go.PathFigure(.55*te,.4*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Oe=.05,He=Te*.05,We=.175,Ve=.95,Pe=new go.PathFigure((We-Oe)*te,Ve*ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve-Oe)*ne,(We-Oe)*te,(Ve-He)*ne,(We-He)*te,(Ve-Oe)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ve*ne,(We+He)*te,(Ve-Oe)*ne,(We+Oe)*te,(Ve-He)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve+Oe)*ne,(We+Oe)*te,(Ve+He)*ne,(We+He)*te,(Ve+Oe)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ve*ne,(We-He)*te,(Ve+Oe)*ne,(We-Oe)*te,(Ve+He)*ne));var Oe=.05,He=Te*.05,We=.375,Ve=.95,ke=new go.PathFigure((We-Oe)*te,Ve*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve-Oe)*ne,(We-Oe)*te,(Ve-He)*ne,(We-He)*te,(Ve-Oe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ve*ne,(We+He)*te,(Ve-Oe)*ne,(We+Oe)*te,(Ve-He)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve+Oe)*ne,(We+Oe)*te,(Ve+He)*ne,(We+He)*te,(Ve+Oe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ve*ne,(We-He)*te,(Ve+Oe)*ne,(We-Oe)*te,(Ve+He)*ne));var Oe=.05,He=Te*.05,We=.625,Ve=.95,we=new go.PathFigure((We-Oe)*te,Ve*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve-Oe)*ne,(We-Oe)*te,(Ve-He)*ne,(We-He)*te,(Ve-Oe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ve*ne,(We+He)*te,(Ve-Oe)*ne,(We+Oe)*te,(Ve-He)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve+Oe)*ne,(We+Oe)*te,(Ve+He)*ne,(We+He)*te,(Ve+Oe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ve*ne,(We-He)*te,(Ve+Oe)*ne,(We-Oe)*te,(Ve+He)*ne));var Oe=.05,He=Te*.05,We=.825,Ve=.95,ut=new go.PathFigure((We-Oe)*te,Ve*ne,!0);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve-Oe)*ne,(We-Oe)*te,(Ve-He)*ne,(We-He)*te,(Ve-Oe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ve*ne,(We+He)*te,(Ve-Oe)*ne,(We+Oe)*te,(Ve-He)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ve+Oe)*ne,(We+Oe)*te,(Ve+He)*ne,(We+He)*te,(Ve+Oe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ve*ne,(We-He)*te,(Ve+Oe)*ne,(We-Oe)*te,(Ve+He)*ne).close());var Ke=new go.PathFigure(0,ne,!1);return he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(.15*te,ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Pe=.05,ke=Te*.05,we=.35,Oe=.775,He=new go.PathFigure((we-Pe)*te,Oe*ne,!0);return he.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(Oe-Pe)*ne,(we-Pe)*te,(Oe-ke)*ne,(we-ke)*te,(Oe-Pe)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(we+Pe)*te,Oe*ne,(we+ke)*te,(Oe-Pe)*ne,(we+Pe)*te,(Oe-ke)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(Oe+Pe)*ne,(we+Pe)*te,(Oe+ke)*ne,(we+ke)*te,(Oe+Pe)*ne)),He.add(new go.PathSegment(go.PathSegment.Bezier,(we-Pe)*te,Oe*ne,(we-ke)*te,(Oe+Pe)*ne,(we-Pe)*te,(Oe+ke)*ne).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,te,ne){var he=new go.Geometry,se=.3,ge=Te*.3,me=.5,Pe=.7,ke=new go.PathFigure((me-se)*te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne));var we=new go.PathFigure(0,.7*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var ge=new go.PathFigure(0,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*.5,me=.5,Pe=.5,ke=new go.PathFigure((me-se)*te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne));var we=new go.PathFigure(.15*te,.5*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Flag",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,te,ne){var he=new go.Geometry,se=.5,ge=Te*.5,me=.5,Pe=.5,ke=new go.PathFigure((me-se)*te,Pe*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne).close()),se=.05,ge=Te*.05,me=.5,Pe=.8;var we=new go.PathFigure((me-se)*te,Pe*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe-se)*ne,(me-se)*te,(Pe-ge)*ne,(me-ge)*te,(Pe-se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Pe*ne,(me+ge)*te,(Pe-se)*ne,(me+se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Pe+se)*ne,(me+se)*te,(Pe+ge)*ne,(me+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Pe*ne,(me-ge)*te,(Pe+se)*ne,(me-se)*te,(Pe+ge)*ne).close()),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),he}),go.Shape.defineFigureGenerator("Location",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var ge=new go.PathFigure(0,ne*.6,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var ge=new go.PathFigure(.126*te,.85*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var me=new go.PathFigure(.402*te,.85*ne,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Pe=new go.PathFigure(.678*te,.85*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var ke=new go.PathFigure(.5*te,.1*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var ge=new go.PathFigure(te*.204,ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var me=new go.PathFigure(te*.408,ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Pe=new go.PathFigure(te*.612,ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var ke=new go.PathFigure(te*.816,ne,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var ge=new go.PathFigure(te*.055,.07*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var me=new go.PathFigure(te*.055,.13*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Pe=new go.PathFigure(te*.055,.18*ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var ke=new go.PathFigure(te*1,0,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ge=new go.PathFigure(0,0,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var me=new go.PathFigure(te*.11,ne*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Pe=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var ke=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,te,ne){var he=new go.Geometry,se=8,ge=se*Te,me=new go.PathFigure(se,0,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,se)),me.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var Pe=new go.PathFigure(te*.83,0,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var ke=new go.PathFigure(te*.83,ne*1,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var we=new go.PathFigure(te*.78,ne*.05,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),we.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),we.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Fe,te,ne){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Te,ge=ne*.8,me=new go.Geometry,Pe=new go.PathFigure(he,0,!0);return me.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge-he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ge,te,ge-se,te-se,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,he,ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(me.spot1=new go.Spot(0,0,se,se),me.spot2=new go.Spot(1,.8,-se,-se)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var ge=new go.PathFigure(te*1,ne*.55,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var ge=new go.PathFigure(te*.1,ne*.2,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var me=new go.PathFigure(te*.28,ne*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,te,ne){var he=new go.Geometry,se=15,ge=se*Te,me=new go.PathFigure(te*.62,ne*.475,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.4,ne*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.5,ne*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var ge=new go.PathFigure(te*.235,ne*.28,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var On={},xn="5.0",ye={},be=null,Re=!1,at=!1,kt=null,Je=!1,it=null,Te=null,Tt=0;Tt<arguments.length;Tt++){var Pt=arguments[Tt];if(Pt!==null)switch(typeof Pt){case"number":xn=Pt.toFixed(1);break;case"string":Pt.match(new RegExp("^[0-9]\\.[0-9]+$"))?xn=Pt:kt=Pt;break;case"object":typeof Pt.is3D!="undefined"?be=Pt:ye=Pt;break;case"boolean":Re=Pt,at=!0;break}}be===null&&(be={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ye.material_id!==void 0&&!at&&(Re=!0)),kt!==null&&ye.id===void 0&&(ye.id=kt);var rt="",It="",gt=!1,Ct=null,Fe=null,te=null,ne=!1,he=null,se=null,ge=null,me=null,Pe=null;ye.height!==void 0&&(ye.height=Math.round(ye.height)),ye.width!==void 0&&(ye.width=Math.round(ye.width));var ke=function(Bt){return parseFloat(Bt)>4?parseFloat(Bt):5};On.setHTML5Codebase=function(Bt,rn){Te=Bt,en(Bt,rn)},On.setJavaCodebase=On.setJavaCodebaseVersion=On.isCompiledInstalled=On.setPreCompiledScriptPath=On.setPreCompiledResourcePath=function(){},On.setHTML5CodebaseVersion=function(Bt,rn){var cn=parseFloat(Bt);if(cn!==NaN&&cn<5){console.log("The GeoGebra HTML5 codebase version "+cn+" is deprecated. Using version latest instead.");return}it=Bt,Ge(Bt,rn)},On.getHTML5CodebaseVersion=function(){return Fe},On.getParameters=function(){return ye},On.setFontsCSSURL=function(Bt){me=Bt},On.setGiacJSURL=function(Bt){},On.setJNLPFile=function(Bt){rt=Bt},On.setJNLPBaseDir=function(Bt){},On.inject=function(){function Bt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rn="auto",cn=ye.id,Kn,nn=!1,Rn=0;Rn<arguments.length;Rn++){var vt=arguments[Rn];typeof vt=="string"?(vt=vt.toLowerCase(),vt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rn=vt:cn=arguments[Rn]):typeof vt=="boolean"?nn=vt:vt instanceof HTMLElement&&(Kn=vt)}Yn();function Yn(){if(!Je){setTimeout(Yn,200);return}rn=Nn(rn);var ni=Kn||document.getElementById(cn);if(!ni){console.log("possibly bug on ajax loading? ");return}if(On.removeExistingApplet(ni,!1),ye.width===void 0&&ni.clientWidth&&(ye.width=ni.clientWidth),ye.height===void 0&&ni.clientHeight&&(ye.height=ni.clientHeight),!(ye.width&&ye.height)&&rn==="html5"&&(delete ye.width,delete ye.height),Ct=rn,rn==="screenshot")pt(ni,ye);else{var je=!1;ye.hasOwnProperty("playButton")&&ye.playButton||ye.hasOwnProperty("clickToLoad")&&ye.clickToLoad?je=!0:ye.hasOwnProperty("playButtonAutoDecide")&&ye.playButtonAutoDecide&&(je=(!we()||Bt())&&Oe()),je?(Ct="screenshot",Ht(ni,ye,nn,rn)):Wt(ni,ye,nn)}}};function we(){try{return window.self!==window.top}catch(Bt){return!0}}function Oe(){return ye.hasOwnProperty("screenshotGenerator")&&ye.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}On.getViews=function(){return be},On.isJavaInstalled=function(){return!1};var He=function(Bt){var rn=function(Rn){var vt=JSON.parse(Rn),Yn=function(Me){return Me.type=="G"||Me.type=="E"},ni=vt.elements?vt.elements.filter(Yn)[0]:vt;if(!ni||!ni.url){cn();return}ye.fileName=ni.url,We(ni.settings||{}),be.is3D=!0;var je="https://www.geogebra.org/images/";On.setPreviewImage(he||ni.previewUrl,je+"GeoGebra_loading.png",je+"applet_play.png"),Bt()},cn=function(){ye.onError&&ye.onError(),Hn("Error: Fetching material (id "+ye.material_id+") failed.",ye)},Kn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nn="/materials/"+ye.material_id+"?scope=basic";Ve("https://"+Kn+"/api/proxy.php?path="+encodeURIComponent(nn),rn,cn)};function We(Bt){var rn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(cn){Bt[cn]=!!Bt[cn]}),rn.forEach(function(cn){ye[cn]===void 0&&Bt[cn]!==void 0&&(ye[cn]=Bt[cn])}),ye.showToolBarHelp===void 0&&(ye.showToolBarHelp=ye.showToolBar)}function Ve(Bt,rn,cn){var Kn=new XMLHttpRequest;Kn.open("GET",Bt),Kn.onload=function(){rn(Kn.responseText)},Kn.onerror=cn,Kn.send()}On.isHTML5Installed=function(){return!0},On.getLoadedAppletType=function(){return Ct},On.setPreviewImage=function(Bt,rn,cn){he=Bt,se=rn,ge=cn},On.removeExistingApplet=function(Bt,rn){var cn;typeof Bt=="string"&&(Bt=document.getElementById(Bt)),Ct=null;var Kn=null;for(cn=0;cn<Bt.childNodes.length;cn++){var nn=Bt.childNodes[cn],Rn=nn.className;Rn==="applet_screenshot"?rn?(nn.style.display="block",Ct="screenshot"):nn.style.display="none":Rn!=="applet_scaler prerender"&&(Bt.removeChild(nn),Kn=Rn&&Rn.indexOf("appletParameters")!=-1?nn.id:null,cn--)}var vt=ye.id!==void 0?ye.id:Kn,Yn=window[vt];Yn&&typeof Yn.getBase64=="function"&&(Yn.remove(),window[vt]=null)},On.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Bt=On.getAppletObject();return Bt&&typeof Bt.recalculateEnvironments=="function"?(Bt.recalculateEnvironments(),!0):!1},On.startAnimation=function(){var Bt=On.getAppletObject();return Bt&&typeof Bt.startAnimation=="function"?(Bt.startAnimation(),!0):!1},On.stopAnimation=function(){var Bt=On.getAppletObject();return Bt&&typeof Bt.stopAnimation=="function"?(Bt.stopAnimation(),!0):!1},On.getAppletObject=function(){var Bt=ye.id!==void 0?ye.id:"ggbApplet";return window[Bt]},On.resize=function(){};var ut=function(Bt,rn,cn){var Kn=document.createElement("param");Kn.setAttribute("name",rn),Kn.setAttribute("value",cn),Bt.appendChild(Kn)},Ke=function(Bt){return Bt&&Bt!=="false"},Wt=function(Bt,rn,cn){ke(Fe)<=4.2&&(cn=!0);var Kn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Kn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nn=document.createElement("div");nn.classList.add("appletParameters","notranslate");var Rn=rn.width,vt=rn.height;if(rn.disableAutoScale=rn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rn.disableAutoScale,rn.width!==void 0)if(ke(Fe)<=4.4)Ke(rn.showToolBar)&&(rn.height-=7),Ke(rn.showAlgebraInput)&&(rn.height-=37),rn.width<605&&Ke(rn.showToolBar)&&(rn.width=605,Rn=605);else{var Yn=100;(Ke(rn.showToolBar)||Ke(rn.showMenuBar))&&(rn.hasOwnProperty("customToolBar")&&(rn.customToolbar=rn.customToolBar),Yn=Ke(rn.showMenuBar)?245:155),Rn<Yn&&(rn.width=Yn,Rn=Yn)}nn.style.border="none",nn.style.display="inline-block";for(var ni in rn)rn.hasOwnProperty(ni)&&ni!=="appletOnLoad"&&nn.setAttribute("data-param-"+ni,rn[ni]);me&&nn.setAttribute("data-param-fontscssurl",me),On.resize=function(){GGBAppletUtils.responsiveResize(Bt,rn)},window.addEventListener("resize",function(ct){On.resize()});var je=typeof rn.appletOnLoad=="function"?rn.appletOnLoad:function(){};if(!cn&&rn.width!==void 0){rn.hasOwnProperty("showSplash")||nn.setAttribute("data-param-showSplash","false");var Me=Bt.querySelector(".applet_scaler.prerender"),xe=Me!==null;if(xe)var Ne=Me.querySelector(".ggb_preview");else{var Ne=Xt(Rn,vt,rn.borderColor,!1);Me=document.createElement("div"),Me.className="applet_scaler",Me.style.position="relative",Me.style.display="block",Me.style.width=Rn+"px",Me.style.height=vt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),ke(Fe)>=5?(rn.appletOnLoad=function(ct){var Ft=Bt.querySelector(".ggb_preview");Ft&&Ft.parentNode.removeChild(Ft),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Me),window.GGBT_wsf_view&&$(window).trigger("resize"),je(ct)},xe||Me.appendChild(Ne)):nn.appendChild(Ne),Me.appendChild(nn),xe||Bt.appendChild(Me),setTimeout(function(){On.resize()},1)}else{var Be=document.createElement("div");Be.className="applet_scaler",Be.style.position="relative",Be.style.display="block",Be.appendChild(nn),Bt.appendChild(Be),rn.appletOnLoad=function(ct){On.resize(),je(ct)}}function Se(ct,Ft){Ft&&typeof Ft.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ct,Ft.appletOnLoad):renderGGBElement(ct),Hn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ft)}function lt(ct,Ft){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ct,params:Ft}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){Se(Pn.article,Pn.params)}),html5AppletsToProcess=null)},ke(Fe)<5&&(ct.className+=" geogebraweb")):Se(ct,Ft)}if(Kn){scriptLoadStarted=!0;for(var Et=0;Et<nn.childNodes.length;Et++){var Xe=nn.childNodes[Et].tagName;Xe==="TABLE"&&(nn.removeChild(nn.childNodes[Et]),Et--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var wt=document.createElement("script"),xt=function(){lt(nn,rn)};wt.src=It+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=wt.src,Hn("GeoGebra HTML5 codebase loaded: '"+It+"'.",rn),!Te&&(!it||it=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xt()):It.requirejs?__webpack_require__.e(4184).then(function(){var ct=[__webpack_require__(74620)];xt.apply(null,ct)}.bind(this)).catch(__webpack_require__.oe):(wt.onload=xt,Bt.appendChild(wt))}else lt(nn,rn);rn.height=vt,rn.width=Rn},pt=function(Bt,rn,cn){var Kn=Xt(rn.width,rn.height,rn.borderColor,cn),nn=document.createElement("div");nn.style.position="relative",nn.style.display="block",nn.style.width=rn.width+"px",nn.style.height=rn.height+"px",nn.className="applet_screenshot applet_scaler"+(cn?" applet_screenshot_play":""),nn.appendChild(Kn);var Rn=GGBAppletUtils.getScale(rn,Bt,cn);cn?(Bt.appendChild(jt()),window.GGBT_wsf_view||(Bt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nn,"66%"),Bt.appendChild(nn),Rn!==1&&!isNaN(Rn)&&(GGBAppletUtils.scaleElement(nn,Rn),nn.style.width=rn.width+"px",nn.style.height=rn.height+"px",nn.parentNode.style.width=rn.width*Rn+"px",nn.parentNode.style.height=rn.height*Rn+"px"),On.resize=function(){Ut(Bt,Kn,nn,cn)},window.addEventListener("resize",function(vt){On.resize()}),On.resize()};function Ut(Bt,rn,cn,Kn){if(Bt.contains(rn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Bt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Bt)}var nn=GGBAppletUtils.getScale(ye,Bt,Kn);cn.parentNode!==null&&(!isNaN(nn)&&nn!==1?(GGBAppletUtils.scaleElement(cn,nn),cn.parentNode.style.width=ye.width*nn+"px",cn.parentNode.style.height=ye.height*nn+"px"):(GGBAppletUtils.scaleElement(cn,1),cn.parentNode.style.width=ye.width+"px",cn.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Bt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}On.onExitFullscreen=function(Bt,rn){rn.appendChild(Bt)};var Ht=function(Bt,rn,cn,Kn){pt(Bt,rn,!0);for(var nn=function(){var Yn=[];for(vt=0;vt<Bt.childNodes.length;vt++)Yn.push(Bt.childNodes[vt]);if(window.GGBT_wsf_view){var ni=window.GGBT_wsf_view.renderFullScreen(Bt,rn.id),je=document.getElementById("fullscreencontainer"),Me=jQuery(Bt).find(".fullscreencontent");Me.length>0?(ni.remove(),Me.attr("id","fullscreencontent").show(),jQuery(je).append(Me),window.dispatchEvent(new Event("resize"))):Wt(ni,rn,!1),window.GGBT_wsf_view.launchFullScreen(je)}else Ct=Kn,Wt(Bt,rn,!1);if(!window.GGBT_wsf_view)for(vt=0;vt<Yn.length;vt++)Bt.removeChild(Yn[vt])},Rn=Bt.getElementsByClassName("ggb_preview_play"),vt=0;vt<Rn.length;vt++)Rn[vt].addEventListener("click",nn,!1),Rn[vt].addEventListener("ontouchstart",nn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Bt),Oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},jt=function(){var Bt=document.createElement("div");if(Bt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rn='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',cn=document.createElement("style");cn.styleSheet?cn.styleSheet.cssText=rn:cn.appendChild(document.createTextNode(rn)),document.getElementsByTagName("head")[0].appendChild(cn)}return Bt},Xt=function(Bt,rn,cn,Kn){var nn=document.createElement("div");nn.className="ggb_preview",nn.style.position="absolute",nn.style.zIndex="90",nn.style.width=Bt-2+"px",nn.style.height=rn-2+"px",nn.style.top="0px",nn.style.left="0px",nn.style.overflow="hidden",nn.style.backgroundColor="white";var Rn="lightgrey";cn!==void 0&&(cn==="none"?Rn="transparent":Rn=cn),nn.style.border="1px solid "+Rn;var vt=document.createElement("img");if(vt.style.position="relative",vt.style.zIndex="1000",vt.style.top="-1px",vt.style.left="-1px",he!==null&&vt.setAttribute("src",he),vt.style.opacity=.7,se!==null){var Yn,ni,je;if(!Kn){Yn=document.createElement("img"),Yn.style.position="absolute",Yn.style.zIndex="1001",Yn.style.opacity=1,vt.style.opacity=.3,ni=360,ni>Bt/4*3&&(ni=Bt/4*3),je=ni/5.8,Yn.setAttribute("src",se),Yn.setAttribute("width",ni),Yn.setAttribute("height",je);var Me=(Bt-ni)/2,xe=(rn-je)/2;Yn.style.left=Me+"px",Yn.style.top=xe+"px",nn.appendChild(Yn)}}return nn.appendChild(vt),nn},Nn=function(Bt){return Bt=Bt.toLowerCase(),Bt==="html5"||Bt==="screenshot"?Bt:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(Bt,rn){if(Fe=Bt,rn){en(Fe,!0);return}var cn=!Re;if(cn){var Kn=ke(Fe);!isNaN(Kn)&&Kn<4.4&&(cn=!1)}var nn,Rn;window.location.protocol.substr(0,4)==="http"?nn=window.location.protocol:nn="http:";var vt=Fe.indexOf("//");vt>0?Rn=Fe:vt===0?Rn=nn+Fe:Rn="https://www.geogebra.org/apps/5.2.814.0/";for(var Yn in St)if(Fe.slice(St[Yn].length*-1)===St[Yn]||Fe.slice((St[Yn].length+1)*-1)===St[Yn]+"/"){en(Rn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&cn&&!be.is3D&&!be.AV&&!be.SV&&!be.CV&&!be.EV2&&!be.CP&&!be.PC&&!be.DA&&!be.FI&&!be.PV&&!Ke(ye.showToolBar)&&!Ke(ye.showMenuBar)&&!Ke(ye.showAlgebraInput)&&!Ke(ye.enableRightClick)&&(!ye.appName||ye.appName=="classic")?Rn+="webSimple/":Rn+="web3d/",en(Rn,!1)},en=function(Bt,rn){if(Bt.requirejs){It=Bt;return}Bt.slice(-1)!=="/"&&(Bt+="/"),It=Bt,rn===null&&(rn=Bt.indexOf("http")===-1),gt=rn,te="web.nocache.js",ne=!1;var cn=It.split("/");cn.length>1&&(!rn&&cn[cn.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):St.indexOf(cn[cn.length-2])>=0&&(te=cn[cn.length-2]+".nocache.js")),cn=Bt.split("/"),Fe=cn[cn.length-3],Fe.substr(0,4)==="test"?Fe=Fe.substr(4,1)+"."+Fe.substr(5,1):(Fe.substr(0,3)==="war"||Fe.substr(0,4)==="beta")&&(Fe="5.0");var Kn=parseFloat(Fe);Kn!==NaN&&Kn<5&&Bt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kn+" is deprecated. Using version latest instead."),Ge("5.0",rn))},Hn=function(Bt,rn){window.console&&window.console.log&&(!rn||typeof rn.showLogging=="undefined"||rn.showLogging&&rn.showLogging!=="false")&&console.log(Bt)};ye.material_id!==void 0?He(_n):_n();function _n(){var Bt=xn;it!==null?Bt=it:parseFloat(Bt)<5&&(Bt="5.0"),Ge(Bt,!1),Te!==null&&en(Te,gt),Je=!0}return On},GGBAppletUtils=function(){"use strict";function On(){return window.GGBT_wsf_edit!==void 0}function xn(Je,it){it!=1?(Je.style.transformOrigin="0% 0% 0px",Je.style.webkitTransformOrigin="0% 0% 0px",Je.style.transform="scale("+it+","+it+")",Je.style.webkitTransform="scale("+it+","+it+")",Je.style.maxWidth="initial",Je.querySelector(".ggb_preview")!==null&&(Je.querySelector(".ggb_preview").style.maxWidth="initial"),Je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Je.style.transform="none",Je.style.webkitTransform="none")}function ye(Je,it,Te,Tt,Pt,rt){var It=null;if(rt!=null&&rt!="")for(var gt=Je.parentNode;gt!=null;)if((" "+gt.className+" ").indexOf(" "+rt+" ")>-1){It=gt;break}else gt=gt.parentNode;var Ct=0,Fe=0,te=0,ne=0,he=0,se=0,ge=0;if(It)Ct=It.offsetWidth,Fe=Math.max(Tt?It.offsetWidth:0,It.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ct=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Ct):(Ct=window.innerWidth,Fe=window.innerHeight,te=window.innerWidth),Je){var me=Je.getBoundingClientRect();me.left>0&&me.left<=Ct&&(Pt===void 0||!Pt)&&(document.dir==="rtl"?(he=Ct-me.width-me.left,se=te<=480?10:30):(se=me.left,he=te<=480?10:30),ne=se+he)}if(Je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pe=Je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return Je&&((Te===void 0||!Te)&&it>0&&it+ne<Ct?Ct=it:Ct-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te===void 0||!Te)&&(Fe-=ge)),{width:Ct,height:Fe}}function be(Je,it,Te,Tt,Pt){if(Je.isScreenshoGenerator)return 1;var rt=Tt!==void 0&&Tt,It=Je.noScaleMargin!=null&&Je.noScaleMargin,gt=function(Pe){return Pe&&Pe!=="false"},Ct=gt(Je.autoHeight),Fe=ye(it,Je.width,Te,Ct,rt&&window.GGBT_wsf_view||It,Pt),te=parseInt(Fe.width),ne=Je.width,he=Je.height;if(ne===void 0){var se=it.querySelector(".appletParameters");se&&(ne=se.offsetWidth,he=se.offsetHeight)}var ge=te/ne,me=rt?1:Fe.height/he;return Te!==void 0&&!Te&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function Re(Je,it,Te){var Tt=1,Pt,rt=!1;if(Je.hasOwnProperty("allowUpscale")&&(rt=Je.allowUpscale),Je.hasOwnProperty("scale")&&(Tt=parseFloat(Je.scale),(isNaN(Tt)||Tt===null||Tt===0)&&(Tt=1),Tt>1&&(rt=!0)),it&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(rt=!0),!(Je.hasOwnProperty("disableAutoScale")&&Je.disableAutoScale))Pt=be(Je,it,rt,Te,Je.scaleContainerClass);else return Tt;return rt&&(!Je.hasOwnProperty("scale")||Tt===1)?Pt:Math.min(Tt,Pt)}function at(Je){var it=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),Tt=Je.getBoundingClientRect(),Pt=(it-Tt.width)/2,rt=(Te-Tt.height)/2;rt<0&&(rt=0),Je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pt<40?Je.style.left="40px":Je.style.left=Pt+"px",Je.style.top=rt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(rt<40?Je.style.top="40px":Je.style.top=rt+"px",Je.style.left=Pt+"px")}function kt(Je,it){var Te=Je.querySelector(".appletParameters");if(Te){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(it.id!==Te.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Je)}if(Te.parentElement&&/fullscreen/.test(Te.parentElement.className))return;var Tt=Re(it,Je);On()&&Te.setAttribute("data-param-scale",Tt);for(var Pt=null,rt=0;rt<Je.childNodes.length;rt++)if(Je.childNodes[rt].className!==void 0&&Je.childNodes[rt].className.match(/^applet_scaler/)){Pt=Je.childNodes[rt];break}if(Pt!==null&&Pt.querySelector(".noscale")!==null)return;var It=it.id!==void 0?it.id:"ggbApplet",gt=window[It];(gt==null||!gt.recalculateEnvironments)&&Pt!==null&&!Pt.className.match(/fullscreen/)&&(Pt.parentNode.style.transform="",!isNaN(Tt)&&Tt!==1?(Pt.parentNode.style.width=it.width*Tt+"px",Pt.parentNode.style.height=it.height*Tt+"px",xn(Pt,Tt)):(xn(Pt,1),Pt.parentNode.style.width=it.width+"px",Pt.parentNode.style.height=it.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&at(Je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Te).parents(".content-added-content"))}}return{responsiveResize:kt,isFlexibleWorksheetEditor:On,positionCenter:at,getScale:Re,scaleElement:xn}}();__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,xn){}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 xn=s[L].bindings;s[L].bindings=function(){for(var ye=xn?xn():{},be=On[webModule.__softPermutationId],Re=O;Re<be.length;Re++){var at=be[Re];ye[at[O]]=at[P]}return ye}};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 xn=document.compatMode==U?V:W;t.write(xn+X),t.close()}}}function w(On){function xn(be){function Re(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var at=Re();if(at){be();return}function kt(){if(!at){if(!Re())return;at=!0,be(),o.removeEventListener&&o.removeEventListener(Z,kt,!1),Je&&clearInterval(Je)}}o.addEventListener&&o.addEventListener(Z,kt,!1);var Je=setInterval(function(){kt()},$)}function ye(be){var Re=u(),at=Re.body,kt=Re.createElement(_);kt.language=ab,kt.crossOrigin=W,kt.src=be,webModule.__errFn&&(kt.onerror=function(){webModule.__errFn(L,new Error(bb+be))}),at.appendChild(kt)}xn(function(){ye(On)})}webModule.__startLoadingFragment=function(On){return C(On)},webModule.__installRunAsyncCode=function(On){var xn=u(),ye=xn.body,be=xn.createElement(_);be.language=ab,be.text=On,ye.appendChild(be),ye.removeChild(be)};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 xn=c[On];return xn==null?null:xn},r=d,webModule.__errFn=e}function B(){function On(Je){var it=Je.lastIndexOf(rb);it==-1&&(it=Je.length);var Te=Je.indexOf(sb);Te==-1&&(Te=Je.length);var Tt=Je.lastIndexOf(tb,Math.min(Te,it));return Tt>=O?Je.substring(O,Tt+P):W}function xn(Je){if(!Je.match(/^\w+:\/\//)){var it=o.createElement(ub);it.src=Je+vb,Je=On(it.src)}return Je}function ye(){var Je=__gwt_getMetaProperty(wb);return Je!=null?Je:W}function be(){for(var Je=o.getElementsByTagName(_),it=O;it<Je.length;++it)if(Je[it].src.indexOf(xb)!=-1)return On(Je[it].src);return W}function Re(){var Je=o.getElementsByTagName(yb);return Je.length>O?Je[Je.length-P].href:W}function at(){var Je=o.location;return Je.href==Je.protocol+zb+Je.host+Je.pathname+Je.search+Je.hash}var kt=ye();return kt==W&&(kt=be()),kt==W&&(kt=Re()),kt==W&&at()&&(kt=On(o.location.href)),kt=xn(kt),kt}function C(On){return On.match(/^\//)||On.match(/^[a-zA-Z]+:\/\//)?On:webModule.__moduleBase+On}function D(){var On=[],xn=O,ye=[],be=[];function Re(Je){var it=be[Je](),Te=ye[Je];if(it in Te)return it;var Tt=[];for(var Pt in Te)Tt[Te[Pt]]=Pt;throw r&&r(Je,Tt,it),null}if(__gwt_isKnownPropertyValue=function(Je,it){return it in ye[Je]},webModule.__getPropMap=function(){var Je={};for(var it in ye)ye.hasOwnProperty(it)&&(Je[it]=Re(it));return Je},webModule.__computePropValue=Re,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var at;try{at=Cb;var kt=at.indexOf(Db);kt!=-1&&(xn=parseInt(at.substring(kt+P),$),at=at.substring(O,kt))}catch(Je){}return webModule.__softPermutationId=xn,C(at+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(On,xn,ye){"use strict";ye.d(xn,{Ax:function(){return kt},Ds:function(){return Je},KI:function(){return Te},SI:function(){return at},f1:function(){return Re}});var be=ye(3294);function Re(Tt){let Pt=!0;if(Tt.length>0){for(let rt=0;rt<Tt.length;rt++)if(Tt[rt].compile_success==0||!Tt[rt].compile_success){Pt=!1;break}}else Pt=!1;return Pt}function at(Tt,Pt=""){let rt=[];for(let It=0;It<Tt.length;It++){let gt=Tt[It],Ct=Pt?`${Pt}/${gt.name}`:`${gt.name}`;rt.push({title:gt.name,type:gt.type,isLeaf:gt.type!=="tree",key:Ct})}return rt}function kt(Tt,Pt,rt){for(let It=0;It<Tt.length;It++){let gt=Tt[It];if(gt.key===Pt){gt.children=rt;break}gt.children&&kt(gt.children,Pt,rt)}return Tt}function Je(Tt,Pt,rt){let It;return function(){let gt=this,Ct=arguments,Fe=function(){It=null,rt||Tt.apply(gt,Ct)},te=rt&&!It;clearTimeout(It),It=setTimeout(Fe,Pt),te&&Tt.apply(gt,Ct)}}const it=!0,Te=be.Z.API_SERVER},12393:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return ge}});var be=ye(59301),Re=ye(78241),at=ye(8591),kt=ye(43418),Je=ye(5083),it=ye(92832),Te=ye(1710),Tt=ye(95237),Pt=ye(43604),rt=ye(61186),It=ye.n(rt),gt=ye(955),Ct=ye(89070),Fe={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},te=ye(92365),ne=ye(79834),he=(me,Pe,ke)=>new Promise((we,Oe)=>{var He=ut=>{try{Ve(ke.next(ut))}catch(Ke){Oe(Ke)}},We=ut=>{try{Ve(ke.throw(ut))}catch(Ke){Oe(Ke)}},Ve=ut=>ut.done?we(ut.value):Promise.resolve(ut.value).then(He,We);Ve((ke=ke.apply(me,Pe)).next())});const se=({dispatch:me,courseEndTime:Pe,classroomList:ke,successCallback:we=()=>{},visible:Oe,homeworkIds:He,courseId:We,isBatch:Ve,shixunHomeworks:ut})=>{const[Ke]=Re.default.useForm(),[Wt,pt]=(0,be.useState)(!1),[Ut,Ht]=(0,be.useState)(!1),[jt,Xt]=(0,be.useState)(!1),[Nn,St]=(0,be.useState)([]),[Ge,en]=(0,be.useState)([]),[Hn,_n]=(0,be.useState)([]),[Bt,rn]=(0,be.useState)([]),[cn,Kn]=(0,be.useState)([]),[nn,Rn]=(0,be.useState)([]),[vt,Yn]=(0,be.useState)([]),[ni,je]=(0,be.useState)([]),[Me,xe]=(0,be.useState)([]);(0,be.useEffect)(()=>{Oe?Ne():Se()},[Oe]);const Ne=()=>he(void 0,null,function*(){pt(!0);const lt=yield(0,te.oR)(He[0],{course_id:We});Xt(lt.no_group),Ve?(Yn(lt.all_course_groups),je(lt.all_course_groups)):(rn(lt.late_course_groups),Kn(lt.late_course_groups),St(lt.submit_course_groups),en(lt.submit_course_groups)),pt(!1),Ke.setFieldsValue({end_time:It()()})}),Be=()=>he(void 0,null,function*(){const lt=Ke.getFieldsValue(),Et=It()(lt.end_time).format("YYYY-MM-DD HH:mm");if((Ve?Me.length===0:Hn.length===0&&nn.length===0)&&!jt){at.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}Ht(!0);const tt=yield(0,te.Mc)(We,{no_group:jt,homework_ids:He,group_ids:Ve?Me:Hn,end_time:Et,late_group_ids:Ve?Me:nn});Ht(!1),tt.status===0&&(Se(),at.ZP.success("\u64CD\u4F5C\u6210\u529F"),we(),me({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),Se=()=>{_n([]),Rn([]),en([]),Kn([])};return be.createElement(kt.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:Fe.modalWrapper,width:Ve||jt?520:760,open:Oe,confirmLoading:Ut,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>Be(),onCancel:()=>{Se(),me({type:"classroomList/setActionTabs",payload:{}})}},be.createElement("div",{className:Fe.tips},be.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),be.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),be.createElement(Re.default,{form:Ke,layout:"vertical"},be.createElement(Re.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},be.createElement(Je.default,{style:{width:"100%"},disabledDate:lt=>(0,ne.Q8)(lt,Pe),disabledTime:lt=>(0,ne.d0)(lt),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:It()((0,gt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!jt&&be.createElement(be.Fragment,null,Ve?be.createElement("div",null,be.createElement(it.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:lt=>{je(vt.filter(Et=>Et.name.indexOf(lt.target.value)>-1))}}),be.createElement(Te.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:Fe.antdTable,rowSelection:{type:"checkbox",onChange:lt=>{xe(lt)}},rowKey:"id",pagination:!1,dataSource:ni,loading:Wt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):be.createElement(Tt.Z,{gutter:24},be.createElement(Pt.Z,{span:14},be.createElement("div",{className:Fe.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),be.createElement(it.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:lt=>{en(Nn.filter(Et=>Et.name.indexOf(lt.target.value)>-1))}}),be.createElement("div",{className:Fe.tableWrapper},be.createElement(Te.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:Fe.antdTable,rowSelection:{type:"checkbox",onChange:lt=>{_n(lt)}},rowKey:"id",pagination:!1,dataSource:Ge,loading:Wt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),be.createElement(Pt.Z,{flex:10,style:{maxWidth:"280px"}},be.createElement("div",{className:Fe.homeworkType},"\u8865\u4EA4\u622A\u6B62"),be.createElement(it.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:lt=>{Kn(Bt.filter(Et=>Et.name.indexOf(lt.target.value)>-1))}}),be.createElement("div",{className:Fe.tableWrapper},be.createElement(Te.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:Fe.antdTable,rowSelection:{type:"checkbox",onChange:lt=>{Rn(lt)}},rowKey:"id",pagination:!1,loading:Wt,dataSource:cn,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var ge=(0,Ct.connect)(({shixunHomeworks:me,classroomList:Pe})=>({shixunHomeworks:me,classroomList:Pe}))(se)},73524:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return It}});var be=ye(59301),Re={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},at=ye(92310),kt=ye.n(at),Je=ye(71418),it=ye(2859),Te=ye(99064),Tt=ye(955),Pt=(gt,Ct,Fe)=>new Promise((te,ne)=>{var he=me=>{try{ge(Fe.next(me))}catch(Pe){ne(Pe)}},se=me=>{try{ge(Fe.throw(me))}catch(Pe){ne(Pe)}},ge=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,se);ge((Fe=Fe.apply(gt,Ct)).next())}),It=({data:gt,className:Ct,fullWidth:Fe,style:te={},onClose:ne,onOk:he,showFullTools:se,noAssociationId:ge})=>{const me=(0,be.useRef)(null),Pe=(0,be.useRef)(null),ke=(0,be.useRef)(null),we=(0,be.useRef)(null),[Oe,He]=(0,be.useState)(!1),[We,Ve]=(0,be.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,be.useEffect)(()=>(ke.current||(ke.current=document.createElement("style"),document.head.appendChild(ke.current)),gt!=null&>.visible?(document.body.setAttribute("data-custom","y-hidden"),ke.current.innerHTML=" html { overflow-y: hidden; }",gt!=null&>.src&&ut()):(document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)),()=>{document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)}),[gt==null?void 0:gt.visible]);const ut=()=>Pt(void 0,null,function*(){He(!0),Ve("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ut=yield(0,Tt.ZJ)(gt==null?void 0:gt.src);me.current.src="",me.current.src=Ut,me.current.onload=function(){pt()},He(!1),Ve("")}),Ke=Ut=>Pt(void 0,null,function*(){He(!0),Ve("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ht=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:gt.title,file:Ut.dataUrl}});Ht!=null&&Ht.id&&!ge?(yield(0,Te.ZP)(`/api/attachments/${gt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ht==null?void 0:Ht.id,settings:JSON.stringify(Ut.state)}})).status===0&&he():Ht!=null&&Ht.id&&he(Ht),He(!1),Ve("")}),Wt=()=>{const Ut=document.querySelector('a[href="https://markerjs.com/"]');Ut&&Ut.parentNode&&(Ut.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(jt=>{const Xt=document.querySelector(jt.name);Xt&&Xt.setAttribute("title",jt.title)})},pt=()=>{Pe.current=new it.hP(me.current),Pe.current.targetRoot=we.current,Pe.current.addEventListener("render",Ke),Pe.current.addEventListener("beforeclose",ne),se&&(Pe.current.availableMarkerTypes=Pe.current.ALL_MARKER_TYPES,Pe.current.uiStyleSettings.redoButtonVisible=!0,Pe.current.uiStyleSettings.notesButtonVisible=!0,Pe.current.uiStyleSettings.zoomButtonVisible=!0,Pe.current.uiStyleSettings.zoomOutButtonVisible=!0,Pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pe.current.uiStyleSettings,Pe.current.show(),gt!=null&>.snapshotData&&Pe.current.restoreState(gt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Wt()},300)};return be.createElement(be.Fragment,null,(gt==null?void 0:gt.visible)&&be.createElement(Je.Z,{spinning:Oe,tip:We,style:{position:"absolute",width:"100vw"}},be.createElement("div",{ref:we,className:kt()(Re.imageDimensions,Ct,Fe?Re.fullWidth:""),style:te},be.createElement("img",{className:Re.img,ref:me}))))}},41588:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(95237),at=ye(43604),kt=ye(99313),Je=ye(3113),it=ye(85149),Te=ye(88010),Tt=ye(48136),Pt=ye(59301);const rt=(0,be.forwardRef)(({callback:It,showSaveButton:gt,value:Ct=""},Fe)=>{const te=(0,be.useRef)(),ne=[{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 "}]}]}],he=[{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}`}]}]}],se=Pe=>{te.current.setValue(te.current.getValue()+" "+Pe.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pt.createElement(Re.Z,{className:Te.Z.lists,gutter:[10,10]},ne.map((Pe,ke)=>Pt.createElement(at.Z,{flex:"110px",className:Te.Z.item},Pt.createElement("div",null,Pt.createElement(it.Z,{value:`$$${Pe.value}$$`}),Pe.name),Pt.createElement("div",{className:Te.Z.children},Pe.children.map((we,Oe)=>Pt.createElement("div",{key:Oe},Pt.createElement("h1",null,we.name),Pt.createElement(Re.Z,{gutter:[10,10]},we.data.map((He,We)=>Pt.createElement(at.Z,{key:We,onClick:()=>se(He),className:Te.Z.diamond},Pt.createElement(it.Z,{value:"`$$"+He.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pt.createElement(Re.Z,{className:Te.Z.lists,gutter:[10,10]},he.map((Pe,ke)=>Pt.createElement(at.Z,{flex:"110px",className:Te.Z.item},Pt.createElement("div",null,Pt.createElement(it.Z,{value:"`$$"+Pe.value+"$$`"}),Pe.name),Pt.createElement("div",{className:Te.Z.children},Pe.children.map((we,Oe)=>Pt.createElement("div",{key:Oe},we.name&&Pt.createElement("h1",null,we.name),Pt.createElement(Re.Z,{gutter:[10,10]},we.data.map((He,We)=>Pt.createElement(at.Z,{key:We,onClick:()=>se(He),className:Te.Z.diamond},Pt.createElement(it.Z,{value:"`$$"+He.value+"$$`"}))))))))))}],me=()=>{var Pe=document.createElement("div");Pe.innerHTML=te.current.getValue();var ke=Pe.innerText;return It&&It(ke),ke};return(0,be.useImperativeHandle)(Fe,()=>({getData:me})),Pt.createElement("div",{className:Te.Z.mathWrap},Pt.createElement(kt.default,{defaultActiveKey:"1",items:ge}),Pt.createElement("math-field",{locale:"zh_cn",className:Te.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Ct||""),gt&&Pt.createElement("div",{className:Te.Z.button},Pt.createElement(Je.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});xn.Z=rt},8797:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(93314),at=ye(3113),kt=Object.defineProperty,Je=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,rt=(Fe,te,ne)=>te in Fe?kt(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Fe[te]=ne,It=(Fe,te)=>{for(var ne in te||(te={}))Tt.call(te,ne)&&rt(Fe,ne,te[ne]);if(Te)for(var ne of Te(te))Pt.call(te,ne)&&rt(Fe,ne,te[ne]);return Fe},gt=(Fe,te)=>Je(Fe,it(te));const Ct=({img:Fe,buttonProps:te={},styles:ne={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:me,ButtonTwo:Pe,imgStyles:ke,loading:we=!1,className:Oe=""})=>be.createElement("section",{className:`tc animated fadeIn ${Oe}`,style:It({color:"#999",margin:"100px auto",visibility:we?"hidden":"visible"},ne)},be.createElement("img",{src:Fe||Re,style:gt(It({},ke),{pointerEvents:"none",userSelect:"none"})}),be.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&be.createElement(at.ZP,It({className:me,onClick:ge},te),se),Pe&&Pe);xn.Z=Ct},40731:function(On,xn,ye){"use strict";ye.d(xn,{Q:function(){return it}});var be=ye(59301),Re=ye(57809),at=ye(5112),kt=ye(5871),Je=ye(59301),it=(Tt=>(Tt[Tt.Number=1]="Number",Tt[Tt.Percent=2]="Percent",Tt))(it||{});const Te=({value:Tt,onChange:Pt,disabled:rt,hidePercentOption:It=!1,percentType:gt="select"})=>{const Ct=(0,be.useMemo)(()=>It?1:2,[It]),[Fe,te]=(0,be.useState)(Ct);console.log(Fe);const ne=se=>Tt.type===1?`${se}\u5206`:`${se}%`,he=(0,be.useCallback)(se=>{if(Fe===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Fe]);return(0,be.useEffect)(()=>{te(Tt.type)},[Tt]),Je.createElement("div",{style:{display:"flex",alignItems:"center"}},gt=="select"&&Je.createElement(Re.default,{size:"large",onChange:se=>{te(se),Pt({type:se,inputValue:se===1?5:20})},value:Fe||Ct,style:{width:100},options:It?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:rt}),gt=="radio"&&Je.createElement(at.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;te(ge),Pt({type:ge,inputValue:ge===1?5:20})},value:Fe||Ct,disabled:rt},!It&&Je.createElement(at.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Je.createElement(at.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),gt=="radio"&&Je.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Tt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Je.createElement(kt.Z,{size:"large",disabled:rt,value:Tt.inputValue,style:{width:"120px"},parser:he,addonAfter:Tt.type===1?"\u5206":"%",max:Fe===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{Pt({type:Fe,inputValue:se})}}),gt=="radio"&&Tt.type==2&&Je.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};xn.Z=Te},23210:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return me}});var be=ye(59301),Re={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},at=ye(3113),kt=ye(70557),Je=ye(23954),it=ye(6848),Te=ye(955),Tt=ye(94941),Pt=ye(8797),rt=ye(3294),It=ye(19381),gt=ye(59301),Ct=Object.defineProperty,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(Pe,ke,we)=>ke in Pe?Ct(Pe,ke,{enumerable:!0,configurable:!0,writable:!0,value:we}):Pe[ke]=we,se=(Pe,ke)=>{for(var we in ke||(ke={}))te.call(ke,we)&&he(Pe,we,ke[we]);if(Fe)for(var we of Fe(ke))ne.call(ke,we)&&he(Pe,we,ke[we]);return Pe},ge=(Pe,ke,we)=>new Promise((Oe,He)=>{var We=Ke=>{try{ut(we.next(Ke))}catch(Wt){He(Wt)}},Ve=Ke=>{try{ut(we.throw(Ke))}catch(Wt){He(Wt)}},ut=Ke=>Ke.done?Oe(Ke.value):Promise.resolve(Ke.value).then(We,Ve);ut((we=we.apply(Pe,ke)).next())}),me=({editOffice:Pe="view",data:ke,theme:we,type:Oe,filename:He,monacoEditor:We,className:Ve,style:ut,close:Ke,onClose:Wt,hasMask:pt,disabledDownload:Ut,onImgDimensions:Ht,showNodata:jt,recordInfo:Xt})=>{const[Nn,St]=(0,be.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ge,en]=(0,be.useState)(""),[Hn,_n]=(0,be.useState)(),Bt=window.ENV==="build"?"/react/build":"",rn=location.host.startsWith("localhost")?rt.Z.PROXY_SERVER:rt.Z.API_SERVER,Kn=10*(1024*1024),nn=(0,be.useRef)();ke!=null&&ke.startsWith("/api")&&Oe!=="txt"&&(ke=rt.Z.API_SERVER+ke);const Rn=je=>je.substring(je.lastIndexOf("/")+1).split(".").pop();He&&We&&(We.filename=He),(0,be.useEffect)(()=>{var je,Me;const xe=(Me=(je=document.cookie)==null?void 0:je.replace(/\s/g,""))==null?void 0:Me.split(";");xe==null||xe.map(Ne=>{let Be=Ne.split("=");Be[0]==="_educoder_session"&&en(Be[1])})},[]),(0,be.useEffect)(()=>{Oe==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?_n({url:ke,fileType:Rn(ke),model:ke.indexOf("model=edit")?"edit":"view"}):vt())},[Oe,ke]);const vt=()=>ge(void 0,null,function*(){console.log("data:",ke);let je=ke;ke.startsWith("http")||(je=location.origin+je);let Me=new URL(je).pathname.split("/").pop();const xe=yield(0,Tt.gJ)({attachment_id:Me});xe.url=rn+xe.url,_n(xe)}),Yn=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){ni();return}(0,Te.Sv)(He||"educoder",ke,He)},ni=()=>{Xt&&(0,It.fc)({id:Xt==null?void 0:Xt.id,watch_type:1,course_id:Xt==null?void 0:Xt.course_id}),(0,Te.Nd)(He||"educoder",decodeURIComponent(ke))};return gt.createElement("div",{style:se({},ut||{}),className:`${pt&&Re.bgBlack} ${Oe?Re.wrp:"hide"}`},Ke&>.createElement("div",{className:Re.close,ref:nn},!!Ht&>.createElement(it.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>nn.current},gt.createElement("span",{onClick:()=>{Wt(),Ht()}},gt.createElement("i",{className:"icon-yulanpizhu"}))),!Ut&>.createElement(it.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>nn.current},gt.createElement("span",{onClick:ni},gt.createElement("i",{className:"icon-quxiaozhiding"}))),gt.createElement(it.Z,{title:"\u5173\u95ED",getPopupContainer:()=>nn.current},gt.createElement("span",{className:"",onClick:Wt},gt.createElement("i",{className:"icon-guanbi1"})))),gt.createElement("div",{className:`${Re[Ve]} ${Ve} ${Re.monaco} ${Oe==="txt"?"show":"hide"}`},Oe==="txt"&>.createElement(gt.Fragment,null,gt.createElement(Je.ZP,se({},We)))),Oe==="audio"&>.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),Oe==="video"&>.createElement(gt.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?gt.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):gt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),Oe==="office"&&Hn&>.createElement("iframe",{src:`${Bt}/office.html?key=${Hn.key}&url=${btoa(Hn.url)}&callbackUrl=${rn+(Hn.callbackUrl||"")}&fileType=${Hn.fileType}&title=${Hn.title||""}&model=${Pe}&officeServer=${rt.Z.ONLYOFFICE}&disabledDownload=${!!Ut}`}),Oe==="html"&>.createElement("iframe",{src:ke+"&disposition=inline"}),Oe==="pdf"&>.createElement("iframe",{src:`${Bt}/js/pdfview/index.html?filename=${He||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!Ut}`}),Oe==="image"&>.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(Oe==="other"||Oe==="download")&>.createElement(gt.Fragment,null,jt?gt.createElement(Pt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:gt.createElement(at.ZP,{icon:gt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Yn,disabled:Ut},"\u4E0B\u8F7D")}):gt.createElement(at.ZP,{type:"primary",size:"middle",onClick:Yn,disabled:Ut},gt.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(On,xn,ye){"use strict";ye.d(xn,{z:function(){return Oe},Z:function(){return He}});var be=ye(59301),Re=ye(50304),at=ye(24768),kt=ye(64018),Je=ye(46284),it=ye(3294),Te=ye(955),Tt=ye(15342),Pt=ye(1012),rt=ye(23210),It=ye(59301),Ct=({html:We})=>{const Ve=(0,be.useRef)(null),ut=(0,be.useRef)(null),Ke=`.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,be.useEffect)(()=>{const Wt=Ve.current.attachShadow({mode:"open"});ut.current=document.createElement("div"),ut.current.className="markdown-body",ut.current.innerHTML=We,Wt.appendChild(ut.current);const pt=document.createElement("style");return pt.textContent=Ke,Wt.appendChild(pt),()=>{Wt.innerHTML=""}},[]),(0,be.useEffect)(()=>{ut.current&&(ut.current.innerHTML=We)},[We]),It.createElement("div",{ref:Ve})},Fe=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(We,Ve,ut)=>Ve in We?Fe(We,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ut}):We[Ve]=ut,ge=(We,Ve)=>{for(var ut in Ve||(Ve={}))ne.call(Ve,ut)&&se(We,ut,Ve[ut]);if(te)for(var ut of te(Ve))he.call(Ve,ut)&&se(We,ut,Ve[ut]);return We};const me="@\u2581\u2581@",Pe="@\u2581@",ke=/<pre[^>]*>/g;function we(We){let Ve=document.createElement("div");return Ve.innerHTML=We,Ve.childNodes.length===0?"":Ve.childNodes[0].nodeValue}const Oe=(We,Ve)=>{We=We||"";const ut=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Wt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ve?We.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ut,(Ut,Ht,jt,Xt,Nn,St,Ge)=>{const en=Ht||Xt||St,Hn=jt||Nn||Ge||"?";return it.Z.API_SERVER+"/api/attachments/"+en+Hn+"&t="+(0,Te.Jn)(en,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(We=We.replace(pt,(Ut,Ht,jt,Xt,Nn,St,Ge)=>{const en=Ht||Xt||St,Hn=jt||Nn||Ge||"?";return it.Z.API_SERVER+"/attachments/download/"+en+Hn+"&t="+(0,Te.Jn)(en,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replace(ut,(Ut,Ht,jt,Xt,Nn,St,Ge)=>{const en=Ht||Xt||St,Hn=jt||Nn||Ge||"?";return it.Z.API_SERVER+"/api/attachments/"+en+Hn+"&t="+(0,Te.Jn)(en,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replace(Ke,(Ut,Ht,jt,Xt,Nn)=>{const St=Ht||Xt,Ge=jt||Nn||"";return'"'+it.Z.API_SERVER+"/api/attachments/"+St+Ge+St+Ge+"&t="+(0,Te.Jn)(St,Date.now())}).replace(Wt,(Ut,Ht,jt,Xt,Nn)=>{const St=Ht||Xt,Ge=jt||Nn||"";return"("+it.Z.API_SERVER+"/files/uploads/"+St+Ge+St+Ge+"&t="+(0,Te.Jn)(St,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,`
|
|
|
`),We)};var He=({value:We="",className:Ve,showTextOnly:ut,showLines:Ke,style:Wt={},stylesPrev:pt={},highlightKeywords:Ut,showProgramFill:Ht,isProgramFill:jt,disabledFill:Xt=!1,programFillValue:Nn,onFillChange:St=Hn=>{},onFillBlur:Ge=()=>{},onFillFocus:en=()=>{}})=>{let Hn=String(We);const[_n,Bt]=(0,be.useState)(""),[rn,cn]=(0,be.useState)("office"),[Kn,nn]=(0,be.useState)([]),Rn=(0,be.useRef)("a"+(0,Pt.Z)()),vt={},Yn=(wt,xt,ct)=>{const Ft=document.createElement(wt===Pe?"input":"textarea");Ft.style.width="100%",Ft.style.height=wt===Pe?"40px":"151px",Ft.rows=5,Ft.spellcheck=!1,Ft.name="edu-program-fill",Ft.placeholder="\u8BF7\u8F93\u5165",Ft.dataset.id=xt;const Pn=Object.keys(vt).length;return vt[Pn]=Ft,`<span class="edu-program-fill-wrap ${wt===Pe?"":"show"}" style="width:${wt===Pe?"400px":"100%"}" title=${ct||""}><span>${Ft.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ni(wt){return wt=wt.replace(/!\[.*?\]\(.*?\)/g,""),wt=wt.replace(/\[.*?\]\(.*?\)/g,""),wt=wt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),wt=wt.replace(/<embed.*?>/g,""),wt=wt.replace(/<img.*?>/g,""),wt=wt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),wt=wt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),wt=wt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),wt=wt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),wt}const je=wt=>wt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xt,ct){let Ft=ct.replace(/(\n|\r)/g,"").split("}"),Pn=[];return Ft.map(mn=>{mn!=""&&Pn.push(`.${Rn.current} ${mn}`)}),`<style>${Pn.join("}")}</style>`}),Me=(0,be.useMemo)(()=>{try{const Ft=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,mn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Jt=/\(\/attachments\/download\//g;Hn=Hn.replace(Jt,"("+it.Z.API_SERVER+"/attachments/download/").replace(Ft,"("+it.Z.API_SERVER+"/api/attachments/").replace(Pn,'"'+it.Z.API_SERVER+"/api/attachments/").replace(mn,'"'+it.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Ft){}if(Ht){let Ft=-1;return Hn=Hn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Pn,mn,Jt){var gn;return++Ft,Yn(Pn,Ft,(gn=Nn==null?void 0:Nn[Ft])==null?void 0:gn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${je(Hn||"")}</pre>`}let wt=je(Hn);wt=(0,at.ZP)(wt);const xt=(0,at.ez)();Hn.match(/\[TOC\]/)&&(wt=wt.replace("<p>[TOC]</p>",(0,at.Qv)()),(0,at.Iy)()),wt=wt.replace(/(__special_katext_id_\d+__)/g,(Ft,Pn)=>{const{type:mn,expression:Jt}=xt[Pn];return(0,Tt.renderToString)(we(Jt)||"",{displayMode:mn==="block",throwOnError:!1,output:"html"})}),wt=wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,at.AL)();const ct=document.createElement("div");if(ct.innerHTML=wt,ut)return ct.innerText;if(Ut){const Ft=Ut.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Se(ct,Ft),ct.innerHTML}return setTimeout(()=>Xe(),500),ct.innerHTML},[Hn,Ut]);(0,be.useEffect)(()=>{lt.current&<.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=xe,xt.onblur=Ne,xt.onfocus=Be})},[Kn]),(0,be.useEffect)(()=>{var wt,xt,ct,Ft,Pn;if(Nn!=null&&Nn.length)try{const mn=lt.current.querySelectorAll(".edu-program-fill-score"),Jt=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[gn,Tn]of Jt.entries())Tn.value=((wt=Nn==null?void 0:Nn[gn])==null?void 0:wt.value)||"",((xt=Nn==null?void 0:Nn[gn])==null?void 0:xt.type)==="warning"?Tn.className="program-fill-warning":((ct=Nn==null?void 0:Nn[gn])==null?void 0:ct.type)==="success"?Tn.className="program-fill-success":Tn.className="";for(const[gn,Tn]of mn.entries())Tn.innerHTML=(Ft=Nn==null?void 0:Nn[gn])!=null&&Ft.score?`${(Pn=Nn==null?void 0:Nn[gn])==null?void 0:Pn.score}\u5206`:"";nn(Nn)}catch(mn){console.log(mn,"error")}},[Nn]);const xe=wt=>{Kn[wt.target.dataset.id]=Kn[wt.target.dataset.id]||{},Kn[wt.target.dataset.id].value=wt.target.value,nn([...Kn]),St(Kn,wt.target.dataset.id)},Ne=wt=>{Kn[wt.target.dataset.id]=Kn[wt.target.dataset.id]||{},Kn[wt.target.dataset.id].value=wt.target.value,nn([...Kn]),Ge(Kn,wt.target.dataset.id)},Be=wt=>{Kn[wt.target.dataset.id]=Kn[wt.target.dataset.id]||{},Kn[wt.target.dataset.id].value=wt.target.value,nn([...Kn]),en(Kn,wt.target.dataset.id)};function Se(wt,xt){return wt.childNodes.forEach(ct=>{var Ft;if(ct.childNodes.length>0)Se(ct,xt);else if(ct.nodeName!=="IMG")if(ct.innerHTML)ct.innerHTML=(Ft=ct.innerHTML)==null?void 0:Ft.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Pn=document.createElement("span");Pn.innerHTML=ct.textContent.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ct.replaceWith(Pn)}})}const lt=(0,be.useRef)();at.jb.WebkitLineClamp=Ke,Ke&&(Wt=ge(ge({},Wt),at.jb));function Et(wt){let xt=wt.target;if(xt.tagName.toUpperCase()==="A"){let ct=xt.getAttribute("href");if(ct.indexOf("office")>-1)wt.preventDefault(),Bt(ct),cn("office");else if(ct.indexOf("application/pdf")>-1)wt.preventDefault(),Bt(ct),cn("pdf");else if(ct.indexOf("text/html")>-1)wt.preventDefault(),Bt(ct),cn("html");else if(ct.startsWith("#")){wt.preventDefault();let Ft=document.getElementById(ct.replace("#",""));Ft&&Ft.scrollIntoView(!0)}}}const Xe=()=>{var wt;const xt=(wt=lt.current)==null?void 0:wt.querySelectorAll("video");xt==null||xt.forEach(ct=>{if(ct.oncontextmenu=()=>!1,ct.src.indexOf(".m3u8")>-1&&!ct.canPlayType("application/vnd.apple.mpegurl")){if(Je.ZP.isSupported()){var Ft=new Je.ZP;Ft.loadSource(ct.src),Ft.attachMedia(ct)}}})};(0,be.useEffect)(()=>{if(lt.current&&Me&&Me.match(ke)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",Et),()=>{var wt;(wt=lt.current)==null||wt.removeEventListener("click",Et),(0,at.AL)(),(0,at.Iy)()}},[Me,lt.current,Et]),(0,be.useEffect)(()=>{var wt;const xt=ct=>{ct.preventDefault(),ct.clipboardData.setData("text",window.getSelection().toString())};return(wt=lt.current)==null||wt.addEventListener("copy",xt),()=>{var ct;(ct=lt.current)==null||ct.removeEventListener("copy",xt)}},[lt.current]);const tt=wt=>/<style[\s\S]*?>/i.test(wt||"");return be.createElement(be.Fragment,null,ut&&be.createElement("div",{ref:lt},Me),!ut&&!tt(Me)&&be.createElement("div",{ref:lt,style:ge({},Wt),className:`${Ve||""} ${Xt?"disabled-fill":""} markdown-body ${Rn.current}`,dangerouslySetInnerHTML:{__html:Me}}),!ut&&tt(Me)&&be.createElement(Ct,{html:Me}),be.createElement(rt.Z,{close:!0,data:_n,type:_n!=null&&_n.length?rn:"",style:ge({},pt),onClose:()=>Bt("")}))}},82438:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(59301),Re={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"},at=ye(43418),kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",it=(Pt,rt,It)=>new Promise((gt,Ct)=>{var Fe=he=>{try{ne(It.next(he))}catch(se){Ct(se)}},te=he=>{try{ne(It.throw(he))}catch(se){Ct(se)}},ne=he=>he.done?gt(he.value):Promise.resolve(he.value).then(Fe,te);ne((It=It.apply(Pt,rt)).next())}),Tt=({type:Pt,resdata:rt,onok:It,oktext:gt,okloading:Ct})=>{const[Fe,te]=(0,be.useState)(!1),{can_copy_list:ne,can_copy_num:he,challenge_type:se,course_data_list:ge,no_copy_list:me,no_copy_num:Pe,no_use_list:ke,no_use_num:we,repeat_shixun_num:Oe,student_count:He,total_num:We,use_num:Ve}=rt;let ut=he>0||Pt==="exercise";(0,be.useEffect)(()=>{(rt==null?void 0:rt.student_count)>0&&te(!0)},[rt]),console.log("---11",Ct),(0,be.useEffect)(()=>{Ct||te(!1)},[Ct]);const Ke=()=>{if(Pt==="exercise"&&se===1)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",be.createElement("span",{className:Re.orangeColor},Ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",be.createElement("span",{className:Re.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(Pt==="exercise"&&se===2)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",be.createElement("span",{className:Re.orangeColor},Ve),"\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",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="shixun"&&se===1)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="shixun"&&se===2)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\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",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="subject"&&se===1)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",be.createElement("span",{className:Re.orangeColor},Ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="subject"&&se===2)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",be.createElement("span",{className:Re.orangeColor},He)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",be.createElement("span",{className:Re.orangeColor},Ve)," \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",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="exercisepush")return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",be.createElement("span",{className:Re.orangeColor},Ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",be.createElement("span",{className:Re.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(Pt==="shixunpush"&&se===1)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",be.createElement("span",{className:Re.orangeColor},Ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pt==="shixunpush"&&se===2)return be.createElement(be.Fragment,null,"\u8BFE\u5802\u5185\u6709",be.createElement("span",{className:Re.orangeColor},He),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",be.createElement("span",{className:Re.orangeColor},Ve),"\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",be.createElement("span",{className:Re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Wt=()=>{if(Pt==="exercise"||Pt==="subject"||Pt==="exercisepush"||Pt==="shixunpush")return be.createElement("div",{style:{marginTop:20}},Pe>0&&be.createElement("div",null,be.createElement("span",{className:Re.flex},be.createElement("img",{src:Je,style:{width:14}}),be.createElement("span",{className:Re.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),be.createElement("div",{className:Re.statusbody},Pt==="exercise"&&be.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",be.createElement("span",{className:Re.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"),(Pt==="subject"||Pt==="exercisepush")&&be.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&be.createElement("span",{className:Re.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"),Pt==="shixunpush"&&be.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&be.createElement("span",{className:Re.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"),be.createElement("div",null,me==null?void 0:me.map((pt,Ut)=>be.createElement("a",{href:`/shixuns/${pt.identifier}/challenges`,target:"_blank"},"\u300A",pt==null?void 0:pt.name,"\u300B",Ut+1!==Pe&&"\u3001"))))),he>0&&be.createElement("div",{style:{marginTop:20}},be.createElement("span",{className:Re.flex},be.createElement("img",{src:kt,style:{width:14}}),be.createElement("span",{className:Re.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),be.createElement("div",{className:Re.statusbody},Pt==="exercise"&&be.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"),(Pt==="subject"||Pt==="exercisepush")&&be.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"),Pt==="shixunpush"&&be.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"),be.createElement("div",null,ne==null?void 0:ne.map((pt,Ut)=>be.createElement("a",{href:`/shixuns/${pt.identifier}/challenges`,target:"_blank"},"\u300A",pt==null?void 0:pt.name,"\u300B",Ut+1!==he&&"\u3001"))))));if(Pt==="shixun")return be.createElement("div",{style:{marginTop:20}},he>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 be.createElement(at.default,{open:Fe,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ut&&"none"}},zIndex:1003,confirmLoading:Ct,okText:ut?gt:"\u6211\u77E5\u9053\u4E86",onOk:()=>it(void 0,null,function*(){ut?yield It([...ne,...ke]):te(!1)})},be.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ke(),Wt()))}},97692:function(On,xn,ye){"use strict";ye.d(xn,{h:function(){return Pe}});var be=ye(59301),Re=ye(57809),at=ye(78241),kt=ye(3113),Je=ye(89780),it=ye.n(Je),Te=ye(37036),Tt=ye(95625),Pt=Object.defineProperty,rt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,te=(ke,we,Oe)=>we in ke?Pt(ke,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[we]=Oe,ne=(ke,we)=>{for(var Oe in we||(we={}))Ct.call(we,Oe)&&te(ke,Oe,we[Oe]);if(gt)for(var Oe of gt(we))Fe.call(we,Oe)&&te(ke,Oe,we[Oe]);return ke},he=(ke,we)=>rt(ke,It(we));const se=Re.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};xn.Z=({callback:ke,onCancel:we})=>{const[Oe,He]=(0,be.useState)("python");function We(ut){He(me[ut][1])}function Ve(ut){ke(ut)}return be.createElement(at.default,he(ne({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ve,style:{width:500}}),be.createElement(at.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},be.createElement(Re.default,{getPopupContainer:ut=>ut.parentNode,onChange:We},Object.keys(me).map(ut=>be.createElement(se,{key:ut,value:ut},me[ut][0])))),be.createElement(at.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},be.createElement(Pe,{mode:Oe})),be.createElement("div",{className:"flex-container flex-end"},be.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(kt.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))};function Pe({value:ke,onChange:we,mode:Oe,options:He={}}){const We=(0,be.useRef)(),[Ve,ut]=(0,be.useState)();return(0,be.useEffect)(()=>{if(Ve){let Ke=function(Wt){const pt=Wt.getValue();we&&we(pt)};return Ve.on("change",Ke),()=>{Ve.off("change",Ke)}}},[Ve,we]),(0,be.useEffect)(()=>{Ve&&Ve.setOption("mode",Oe)},[Ve,Oe]),(0,be.useEffect)(()=>{Ve&&(ke!==Ve.getValue()||ke==="")&&setTimeout(()=>{Ve.setValue(ke||"")},300)},[Ve,ke]),(0,be.useEffect)(()=>{if(We.current&&!Ve){const Ke=it().fromTextArea(We.current,ne({mode:Oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},He));ut(Ke)}},[We.current,Ve]),be.createElement("div",{className:"my-codemirror-container"},be.createElement("textarea",{ref:We}))}},12290:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return zr}});var be=ye(59301),Re=ye(89780),at=ye.n(Re),kt=ye(76374),Je=ye(37036),it=ye(6313),Te=ye(25717),Tt=ye(99498),Pt=ye(25419),rt=ye(67549),It=ye(85149),gt=({value:on="",className:Yt,showTextOnly:Qe,showLines:un,style:In={}})=>{const Mt=(0,be.useMemo)(()=>"",[on]);return be.createElement(be.Fragment,null,be.createElement("div",{dangerouslySetInnerHTML:{__html:Mt}}))},Ct=ye(59301),Fe=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(on,Yt,Qe)=>Yt in on?Fe(on,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):on[Yt]=Qe,Pe=(on,Yt)=>{for(var Qe in Yt||(Yt={}))se.call(Yt,Qe)&&me(on,Qe,Yt[Qe]);if(he)for(var Qe of he(Yt))ge.call(Yt,Qe)&&me(on,Qe,Yt[Qe]);return on},ke=(on,Yt)=>te(on,ne(Yt));let we=[{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 Oe({onActionCallback:on,title:Yt,icon:Qe,actionName:un,className:In="",children:Mt}){function ft(){on(un)}return Ct.createElement("a",{title:Yt,className:In,onClick:ft},Ct.createElement("i",{className:`${Qe}`}),Mt)}var He=({watch:on,showNullButton:Yt,showNullProgramButton:Qe,onActionCallback:un,fullScreen:In,insertTemp:Mt,hidetoolBar:ft,extraUse:fn})=>{const Vn=[...we,{title:`${on?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${on?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ct.createElement("ul",{className:"markdown-toolbar-container"},!ft&&Vn.map((bi,gi)=>Ct.createElement("li",{key:gi},bi.actionName?Ct.createElement(Oe,ke(Pe({},bi),{onActionCallback:un})):Ct.createElement("span",{className:"v-line"}))),Yt?Ct.createElement("li",null,Ct.createElement(Oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},Ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Qe?Ct.createElement(Ct.Fragment,null,Ct.createElement("li",null,Ct.createElement(Oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:un},Ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ct.createElement("li",null,Ct.createElement(Oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:un},Ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Mt&&Ct.createElement("li",null,Ct.createElement(Oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Mt}`,onActionCallback:un},Ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fn&&Ct.createElement("li",null,fn),Ct.createElement("li",{className:"btn-full-screen"},Ct.createElement(Oe,{icon:`${In?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:In?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},We=ye(79346),Ve=ye(78241),ut=ye(92832),Ke=ye(3113),Wt=Object.defineProperty,pt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Nn=(on,Yt,Qe)=>Yt in on?Wt(on,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):on[Yt]=Qe,St=(on,Yt)=>{for(var Qe in Yt||(Yt={}))jt.call(Yt,Qe)&&Nn(on,Qe,Yt[Qe]);if(Ht)for(var Qe of Ht(Yt))Xt.call(Yt,Qe)&&Nn(on,Qe,Yt[Qe]);return on},Ge=(on,Yt)=>pt(on,Ut(Yt));const en={labelCol:{span:4},wrapperCol:{span:20}};var Hn=({callback:on,onCancel:Yt})=>{function Qe(un){on(un)}return be.createElement(Ve.default,Ge(St({},en),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qe,style:{width:500}}),be.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},be.createElement(ut.default,null)),be.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},be.createElement(ut.default,null)),be.createElement("div",{className:"flex-container flex-end"},be.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(Ke.ZP,{type:"ghost",onClick:Yt},"\u53D6\u6D88")))},_n=ye(97692),Bt=ye(28451),rn=ye(43418),cn=ye(95237),Kn=ye(73524),nn=ye(59301),Rn=({callback:on,onCancel:Yt})=>{const Qe=document.createElement("canvas"),un=Qe.getContext("2d");Qe.width=1e3,Qe.height=800,un.fillStyle="#ffffff",un.fillRect(0,0,Qe.width,Qe.height);const In=Qe.toDataURL("image/png");return nn.createElement(rn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nn.createElement(cn.Z,{style:{height:"100vh"}},nn.createElement(Kn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:In,visible:!0,title:String(Date.now())},onOk:Mt=>{on({src:Mt.url})},onClose:Yt})))},vt=ye(12378);function Yn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Yn,go.CommandHandler),Yn.prototype.canAlignSelection=function(){var on=this.diagram;return!(on===null||on.isReadOnly||on.isModelReadOnly||on.selection.count<2)},Yn.prototype.alignLeft=function(){var on=this.diagram;on.startTransaction("aligning left");var Yt=1/0;on.selection.each(function(Qe){Qe instanceof go.Link||(Yt=Math.min(Qe.position.x,Yt))}),on.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Yt,Qe.position.y))}),on.commitTransaction("aligning left")},Yn.prototype.alignRight=function(){var on=this.diagram;on.startTransaction("aligning right");var Yt=-1/0;on.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var un=Qe.actualBounds.x+Qe.actualBounds.width;Yt=Math.max(un,Yt)}}),on.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Yt-Qe.actualBounds.width,Qe.position.y))}),on.commitTransaction("aligning right")},Yn.prototype.alignTop=function(){var on=this.diagram;on.startTransaction("alignTop");var Yt=1/0;on.selection.each(function(Qe){Qe instanceof go.Link||(Yt=Math.min(Qe.position.y,Yt))}),on.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.position.x,Yt))}),on.commitTransaction("alignTop")},Yn.prototype.alignBottom=function(){var on=this.diagram;on.startTransaction("aligning bottom");var Yt=-1/0;on.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var un=Qe.actualBounds.y+Qe.actualBounds.height;Yt=Math.max(un,Yt)}}),on.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.actualBounds.x,Yt-Qe.actualBounds.height))}),on.commitTransaction("aligning bottom")},Yn.prototype.alignCenterX=function(){var on=this.diagram,Yt=on.selection.first();if(Yt){on.startTransaction("aligning Center X");var Qe=Yt.actualBounds.x+Yt.actualBounds.width/2;on.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(Qe-un.actualBounds.width/2,un.actualBounds.y))}),on.commitTransaction("aligning Center X")}},Yn.prototype.alignCenterY=function(){var on=this.diagram,Yt=on.selection.first();if(Yt){on.startTransaction("aligning Center Y");var Qe=Yt.actualBounds.y+Yt.actualBounds.height/2;on.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,Qe-un.actualBounds.height/2))}),on.commitTransaction("aligning Center Y")}},Yn.prototype.alignColumn=function(on){var Yt=this.diagram;Yt.startTransaction("align Column"),on===void 0&&(on=0),on=parseFloat(on);var Qe=new Array;Yt.selection.each(function(fn){fn instanceof go.Link||Qe.push(fn)});for(var un=0;un<Qe.length-1;un++){var In=Qe[un],Mt=In.actualBounds.y+In.actualBounds.height+on,ft=Qe[un+1];ft.move(new go.Point(In.actualBounds.x,Mt))}Yt.commitTransaction("align Column")},Yn.prototype.alignRow=function(on){on===void 0&&(on=0),on=parseFloat(on);var Yt=this.diagram;Yt.startTransaction("align Row");var Qe=new Array;Yt.selection.each(function(fn){fn instanceof go.Link||Qe.push(fn)});for(var un=0;un<Qe.length-1;un++){var In=Qe[un],Mt=In.actualBounds.x+In.actualBounds.width+on,ft=Qe[un+1];ft.move(new go.Point(Mt,In.actualBounds.y))}Yt.commitTransaction("align Row")},Yn.prototype.canRotate=function(on){var Yt=this.diagram;return!(Yt===null||Yt.isReadOnly||Yt.isModelReadOnly||Yt.selection.count<1)},Yn.prototype.rotate=function(on){on===void 0&&(on=90);var Yt=this.diagram;Yt.startTransaction("rotate "+on.toString());var Yt=this.diagram;Yt.selection.each(function(Qe){Qe instanceof go.Link||Qe instanceof go.Group||(Qe.angle+=on)}),Yt.commitTransaction("rotate "+on.toString())},Yn.prototype.pullToFront=function(){var on=this.diagram;on.startTransaction("pullToFront");var Yt=new go.Map;on.selection.each(function(Qe){Yt.set(Qe.layer,0)}),Yt.iteratorKeys.each(function(Qe){var un=0;Qe.parts.each(function(In){if(!In.isSelected){var Mt=In.zOrder;isNaN(Mt)?In.zOrder=0:un=Math.max(un,Mt)}}),Yt.set(Qe,un)}),on.selection.each(function(Qe){Yn._assignZOrder(Qe,Yt.get(Qe.layer)+1)}),on.commitTransaction("pullToFront")},Yn.prototype.pushToBack=function(){var on=this.diagram;on.startTransaction("pushToBack");var Yt=new go.Map;on.selection.each(function(Qe){Yt.set(Qe.layer,0)}),Yt.iteratorKeys.each(function(Qe){var un=0;Qe.parts.each(function(In){if(!In.isSelected){var Mt=In.zOrder;isNaN(Mt)?In.zOrder=0:un=Math.min(un,Mt)}}),Yt.set(Qe,un)}),on.selection.each(function(Qe){Yn._assignZOrder(Qe,Yt.get(Qe.layer)-1-Yn._findGroupDepth(Qe))}),on.commitTransaction("pushToBack")},Yn._assignZOrder=function(on,Yt,Qe){Qe===void 0&&(Qe=on),on.layer===Qe.layer&&(on.zOrder=Yt),on instanceof go.Group&&on.memberParts.each(function(un){Yn._assignZOrder(un,Yt+1,Qe)})},Yn._findGroupDepth=function(on){if(on instanceof go.Group){var Yt=0;return on.memberParts.each(function(Qe){Yt=Math.max(Yt,Yn._findGroupDepth(Qe))}),Yt+1}else return 0},Yn.prototype.doKeyDown=function(){var on=this.diagram;if(on!==null){var Yt=on.lastInput;if(Yt.key==="Up"||Yt.key==="Down"||Yt.key==="Left"||Yt.key==="Right"){var Qe=this.arrowKeyBehavior;if(Qe==="none")return;if(Qe==="select"){this._arrowKeySelect();return}else if(Qe==="move"){this._arrowKeyMove();return}else if(Qe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Yn.prototype._getAllParts=function(){var on=new Array;return this.diagram.nodes.each(function(Yt){on.push(Yt)}),this.diagram.parts.each(function(Yt){on.push(Yt)}),on},Yn.prototype._arrowKeyMove=function(){var on=this.diagram,Yt=on.lastInput,Qe=0,un=0;if(Yt.control||Yt.meta)Qe=1,un=1;else if(on.grid!==null){var In=on.grid.gridCellSize;un=In.width,Qe=In.height}on.startTransaction("arrowKeyMove"),on.selection.each(function(Mt){Yt.key==="Up"?Mt.move(new go.Point(Mt.actualBounds.x,Mt.actualBounds.y-Qe)):Yt.key==="Down"?Mt.move(new go.Point(Mt.actualBounds.x,Mt.actualBounds.y+Qe)):Yt.key==="Left"?Mt.move(new go.Point(Mt.actualBounds.x-un,Mt.actualBounds.y)):Yt.key==="Right"&&Mt.move(new go.Point(Mt.actualBounds.x+un,Mt.actualBounds.y))}),on.commitTransaction("arrowKeyMove")},Yn.prototype._arrowKeySelect=function(){var on=this.diagram,Yt=on.lastInput,Qe=null;Yt.key==="Up"?Qe=this._findNearestPartTowards(270):Yt.key==="Down"?Qe=this._findNearestPartTowards(90):Yt.key==="Left"?Qe=this._findNearestPartTowards(180):Yt.key==="Right"&&(Qe=this._findNearestPartTowards(0)),Qe!==null&&(Yt.shift?Qe.isSelected=!0:Yt.control||Yt.meta?Qe.isSelected=!Qe.isSelected:on.select(Qe))},Yn.prototype._findNearestPartTowards=function(on){var Yt=this.diagram.selection.first();if(Yt===null)return null;for(var Qe=Yt.actualBounds.center,un=this._getAllParts(),In=1/0,Mt=Yt,ft=0;ft<un.length;ft++){var fn=un[ft];if(fn!==Yt&&fn.canSelect()){var Vn=fn.actualBounds.center,bi=Qe.directionPoint(Vn),gi=this._angleCloseness(bi,on);if(gi<=45){var dt=Qe.distanceSquaredPoint(Vn);dt*=1+Math.sin(gi*Math.PI/180),dt<In&&(In=dt,Mt=fn)}}}return Mt},Yn.prototype._angleCloseness=function(on,Yt){return Math.min(Math.abs(Yt-on),Math.min(Math.abs(Yt+360-on),Math.abs(Yt-360-on)))},Yn.prototype._arrowKeyTree=function(){var on=this.diagram,Yt=on.selection.first();if(Yt instanceof go.Node){var Qe=on.lastInput;if(Qe.key==="Right"){if(!Yt.isTreeLeaf)if(!Yt.isTreeExpanded)on.commandHandler.canExpandTree(Yt)&&on.commandHandler.expandTree(Yt);else{var un=this._sortTreeChildrenByY(Yt).first();un!==null&&on.select(un)}}else if(Qe.key==="Left")if(!Yt.isTreeLeaf&&Yt.isTreeExpanded)on.commandHandler.canCollapseTree(Yt)&&on.commandHandler.collapseTree(Yt);else{var In=Yt.findTreeParentNode();In!==null&&on.select(In)}else if(Qe.key==="Up"){var In=Yt.findTreeParentNode();if(In!==null){var Mt=this._sortTreeChildrenByY(In),ft=Mt.indexOf(Yt);if(ft>0){for(var fn=Mt.elt(ft-1);fn!==null&&fn.isTreeExpanded&&!fn.isTreeLeaf;){var Vn=this._sortTreeChildrenByY(fn);fn=Vn.last()}fn!==null&&on.select(fn)}else on.select(In)}}else if(Qe.key==="Down")if(Yt.isTreeExpanded&&!Yt.isTreeLeaf){var un=this._sortTreeChildrenByY(Yt).first();un!==null&&on.select(un)}else for(;Yt!==null;){var In=Yt.findTreeParentNode();if(In===null)break;var Mt=this._sortTreeChildrenByY(In),ft=Mt.indexOf(Yt);if(ft<Mt.length-1){on.select(Mt.elt(ft+1));break}else Yt=In}var bi=on.selection.first();bi!==null&&on.scrollToRect(bi.actualBounds)}},Yn.prototype._sortTreeChildrenByY=function(on){var Yt=new go.List().addAll(on.findTreeChildrenNodes());return Yt.sort(function(Qe,un){var In=Qe.location,Mt=un.location;return In.y<Mt.y?-1:In.y>Mt.y?1:In.x<Mt.x?-1:In.x>Mt.x?1:0}),Yt},Yn.prototype.copyToClipboard=function(on){go.CommandHandler.prototype.copyToClipboard.call(this,on),this._lastPasteOffset.set(this.pasteOffset)},Yn.prototype.pasteFromClipboard=function(){var on=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(on,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),on},Object.defineProperty(Yn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(on){if(on!=="move"&&on!=="select"&&on!=="scroll"&&on!=="tree"&&on!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+on);this._arrowKeyBehavior=on}}),Object.defineProperty(Yn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(on){if(!(on instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+on);this._pasteOffset.set(on)}});var ni=Yn,je=ye(74413),Me=ye(43604),xe=ye(99064),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Be=ye(24065),Se=ye(59301),lt=(on,Yt,Qe)=>new Promise((un,In)=>{var Mt=Vn=>{try{fn(Qe.next(Vn))}catch(bi){In(bi)}},ft=Vn=>{try{fn(Qe.throw(Vn))}catch(bi){In(bi)}},fn=Vn=>Vn.done?un(Vn.value):Promise.resolve(Vn.value).then(Mt,ft);fn((Qe=Qe.apply(on,Yt)).next())});function Et({onCancel:on,callback:Yt}){let Qe=(0,be.useRef)(),un=(0,be.useRef)(),In=(0,be.useRef)(),Mt=(0,be.useRef)(!1);const ft=(0,be.useRef)(!1),[fn,Vn]=(0,be.useState)(0);function bi(){const dt=vt.bx.make,Fn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Qe.current=new vt.S0(un.current,{padding:20,grid:dt(vt.s_,"Grid",dt(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dt(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ai=>{var xi=ai.diagram.commandHandler.addTopLevelParts(ai.diagram.selection,!0);xi||ai.diagram.currentTool.doCancel()},commandHandler:dt(ni),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ai=>{var xi=ai.subject;xi.location=xi.location.copy().snapToGridPoint(ai.diagram.grid.gridOrigin,ai.diagram.grid.gridCellSize),setTimeout(()=>{ai.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ai=>{var xi=ai.subject;setTimeout(()=>{ai.diagram.commandHandler.editTextBlock()})},LinkRelinked:ai=>{var xi=ai.parameter.part;xi.invalidateConnectedLinks();var Gi=ai.subject;ai.diagram.toolManager.linkingTool.isForwards?Gi.toNode.invalidateConnectedLinks():Gi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Qe.current.nodeTemplate=dt(vt.NB,"Auto",{locationSpot:vt.z6.Center,locationObjectName:"SHAPE",desiredSize:new vt.$u(120,60),minSize:new vt.$u(40,40),resizable:!0,resizeCellSize:new vt.$u(10,10),rotatable:!0},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),new vt.KX("desiredSize","size",vt.$u.parse).makeTwoWay(vt.$u.stringify),dt(vt.bn,{name:"SHAPE",fill:Fn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("figure"),new vt.KX("fill"),new vt.KX("stroke","borderColor"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),dt(vt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),dt(vt.al,{margin:1,textAlign:"center",overflow:vt.al.OverflowEllipsis,editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),Qe.current.nodeTemplate.toolTip=dt("ToolTip",dt(vt.s_,"Vertical",{maxSize:new vt.$u(200,NaN)},dt(vt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new vt.KX("text")),dt(vt.al,{font:"10pt sans-serif",textAlign:"center"},new vt.KX("text","details"))));function ui(ai,xi){var Gi=(Di,_i)=>{Di.handled=!0,Di.diagram.model.commit(wr=>{var er=_i.part.adornedPart,Oi=new vt.E9().setRectSpot(er.actualBounds,ai);Oi.subtract(er.location),Oi.scale(2,2),Oi.x+=Math.sign(Oi.x)*130,Oi.y+=Math.sign(Oi.y)*130,Oi.add(er.location),Oi.snapToGridPoint(Di.diagram.grid.gridOrigin,Di.diagram.grid.gridCellSize);var br=wr.copyNodeData(er.data);wr.setGroupKeyForNodeData(br,wr.getGroupKeyForNodeData(er.data)),wr.addNodeData(br);var En={from:er.key,to:wr.getKeyForNodeData(br)};wr.addLinkData(En);var wo=Di.diagram.findNodeForData(br);wo.location=Oi,Di.diagram.select(wo),setTimeout(()=>{Di.diagram.commandHandler.editTextBlock()},20)})};return dt(vt.bn,{figure:xi,alignment:ai,alignmentFocus:ai.opposite(),width:ai.equals(vt.z6.Top)||ai.equals(vt.z6.Bottom)?25:18,height:ai.equals(vt.z6.Top)||ai.equals(vt.z6.Bottom)?18:25,fill:"orange",stroke:Fn.white,strokeWidth:4,mouseEnter:(Di,_i)=>_i.fill="dodgerblue",mouseLeave:(Di,_i)=>_i.fill="orange",isActionable:!0,click:Gi,contextClick:Gi})}function ji(ai){return dt(vt.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,Gi)=>Gi.fill="dodgerblue",mouseLeave:(xi,Gi)=>Gi.fill="orange",click:(xi,Gi)=>{xi.diagram.commandHandler.showContextMenu(Gi.part.adornedPart)}},ai||{})}Qe.current.nodeTemplate.selectionAdornmentTemplate=dt(vt.uz,"Spot",dt(vt.Vm,{padding:10}),ui(vt.z6.Top,"TriangleUp"),ui(vt.z6.Left,"TriangleLeft"),ui(vt.z6.Right,"TriangleRight"),ui(vt.z6.Bottom,"TriangleDown"),ji({alignment:new vt.z6(.75,0)}));function dn(ai,xi){return(Gi,Di)=>{Gi.handled=!0,Gi.diagram.model.commit(_i=>{_i.set(Di.part.adornedPart.data,ai,xi)})}}function vn(ai,xi){return xi||(xi="color"),dt(vt.bn,{width:16,height:16,stroke:"lightgray",fill:ai,margin:1,background:"transparent",mouseEnter:(Gi,Di)=>Di.stroke="dodgerblue",mouseLeave:(Gi,Di)=>Di.stroke="lightgray",click:dn(xi,ai),contextClick:dn(xi,ai)})}function Rt(){return[dt("ContextMenuButton",dt(vt.s_,"Horizontal",vn(Fn.white,"fill"),vn(Fn.beige,"fill"),vn(Fn.extralightblue,"fill"),vn(Fn.extralightred,"fill"))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",vn(Fn.lightgray,"fill"),vn(Fn.lightgreen,"fill"),vn(Fn.lightblue,"fill"),vn(Fn.lightred,"fill")))]}function tn(){return[dt("ContextMenuButton",dt(vt.s_,"Horizontal",vn(Fn.black),vn(Fn.green),vn(Fn.blue),vn(Fn.red))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",vn(Fn.white),vn(Fn.magenta),vn(Fn.purple),vn(Fn.orange)))]}function yn(ai,xi){return xi||(xi="thickness"),dt(vt.bn,"LineH",{width:16,height:16,strokeWidth:ai,margin:1,background:"transparent",mouseEnter:(Gi,Di)=>Di.background="dodgerblue",mouseLeave:(Gi,Di)=>Di.background="transparent",click:dn(xi,ai),contextClick:dn(xi,ai)})}function an(ai,xi){return xi||(xi="dash"),dt(vt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ai,margin:1,background:"transparent",mouseEnter:(Gi,Di)=>Di.background="dodgerblue",mouseLeave:(Gi,Di)=>Di.background="transparent",click:dn(xi,ai),contextClick:dn(xi,ai)})}function Mn(){return[dt("ContextMenuButton",dt(vt.s_,"Horizontal",yn(1),yn(2),yn(3),yn(4))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",an(null),an([2,4]),an([4,4])))]}function bn(ai,xi){return xi||(xi="figure"),dt(vt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ai,margin:1,background:"transparent",mouseEnter:(Gi,Di)=>Di.fill="dodgerblue",mouseLeave:(Gi,Di)=>Di.fill="lightgray",click:dn(xi,ai),contextClick:dn(xi,ai)})}Qe.current.nodeTemplate.contextMenu=dt("ContextMenu",dt("ContextMenuButton",dt(vt.s_,"Horizontal",bn("Rectangle"),bn("RoundedRectangle"),bn("Ellipse"),bn("Diamond"))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",bn("Parallelogram2"),bn("ManualOperation"),bn("Procedure"),bn("Cylinder1"))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",bn("Terminator"),bn("CreateRequest"),bn("Document"),bn("TriangleDown"))),Rt(),tn(),Mn()),Qe.current.groupTemplate=dt(vt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:vt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ai,xi)=>{var Gi=xi.addMembers(xi.diagram.selection,!0);Gi||xi.diagram.currentTool.doCancel()},avoidable:!1},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),dt(vt.s_,"Auto",{name:"BODY"},dt(vt.bn,{parameter1:10,fill:Fn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("fill"),new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),dt(vt.Vm,{background:"transparent",margin:20})),dt(vt.al,{alignment:vt.z6.Top,alignmentFocus:vt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new vt.KX("text"),new vt.KX("stroke","color"))),Qe.current.groupTemplate.selectionAdornmentTemplate=dt(vt.uz,"Spot",dt(vt.s_,"Auto",dt(vt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),dt(vt.Vm,{margin:1.5})),ji({alignment:vt.z6.TopRight,alignmentFocus:vt.z6.BottomRight})),Qe.current.groupTemplate.contextMenu=dt("ContextMenu",Rt(),tn(),Mn()),Qe.current.linkTemplate=dt(vt.rU,{layerName:"Foreground",routing:vt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new vt.KX("fromSpot","fromSpot",vt.z6.parse),new vt.KX("toSpot","toSpot",vt.z6.parse),new vt.KX("fromShortLength","dir",ai=>ai>=1?10:0),new vt.KX("toShortLength","dir",ai=>ai>=1?10:0),new vt.KX("points").makeTwoWay(),dt(vt.bn,{strokeWidth:2},new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),dt(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,0),segmentOrientation:vt.rU.OrientAlong,alignmentFocus:vt.z6.Right,figure:"circle",width:10,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",ai=>ai===1)),dt(vt.bn,{segmentIndex:-1,segmentOffset:new vt.E9(-10,6),segmentOrientation:vt.rU.OrientPlus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",ai=>ai>=1),new vt.KX("width","thickness",ai=>7+3*ai),new vt.KX("height","thickness",ai=>7+3*ai),new vt.KX("segmentOffset","thickness",ai=>new vt.E9(-15,4+1.5*ai))),dt(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,-6),segmentOrientation:vt.rU.OrientMinus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",ai=>ai===2),new vt.KX("width","thickness",ai=>7+3*ai),new vt.KX("height","thickness",ai=>7+3*ai),new vt.KX("segmentOffset","thickness",ai=>new vt.E9(-15,4+1.5*ai))),dt(vt.al,{alignmentFocus:new vt.z6(0,1,-4,0),editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),Qe.current.linkTemplate.selectionAdornmentTemplate=dt(vt.uz,dt(vt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:$n(2)},new vt.KX("pathPattern","thickness",$n)),ji({alignmentFocus:new vt.z6(0,0,-6,-4)}));function $n(ai){return dt(vt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ai+4).toString()+" H3"})}function Un(ai){var xi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ai===0?xi="M0 0 M16 16 M0 8 L16 8":ai===2&&(xi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),dt(vt.bn,{geometryString:xi,margin:2,background:"transparent",mouseEnter:(Gi,Di)=>Di.background="dodgerblue",mouseLeave:(Gi,Di)=>Di.background="transparent",click:dn("dir",ai),contextClick:dn("dir",ai)})}function Wi(ai){var xi=(Gi,Di)=>{Gi.handled=!0,Gi.diagram.model.commit(_i=>{var wr=Di.part.adornedPart;_i.set(wr.data,ai?"toSpot":"fromSpot",vt.z6.stringify(vt.z6.AllSides)),(ai?wr.toNode:wr.fromNode).invalidateConnectedLinks()})};return dt(vt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Gi,Di)=>Di.background="dodgerblue",mouseLeave:(Gi,Di)=>Di.background="transparent",click:xi,contextClick:xi})}function qt(ai,xi){var Gi=0,Di=vt.z6.RightSide;ai.equals(vt.z6.Top)?(Gi=270,Di=vt.z6.TopSide):ai.equals(vt.z6.Left)?(Gi=180,Di=vt.z6.LeftSide):ai.equals(vt.z6.Bottom)&&(Gi=90,Di=vt.z6.BottomSide),xi||(Gi-=180);var _i=(wr,er)=>{wr.handled=!0,wr.diagram.model.commit(Oi=>{var br=er.part.adornedPart;Oi.set(br.data,xi?"toSpot":"fromSpot",vt.z6.stringify(Di)),(xi?br.toNode:br.fromNode).invalidateConnectedLinks()})};return dt(vt.bn,{alignment:ai,alignmentFocus:ai.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Gi,background:"transparent",mouseEnter:(wr,er)=>er.background="dodgerblue",mouseLeave:(wr,er)=>er.background="transparent",click:_i,contextClick:_i})}Qe.current.linkTemplate.contextMenu=dt("ContextMenu",tn(),Mn(),dt("ContextMenuButton",dt(vt.s_,"Horizontal",Un(0),Un(1),Un(2))),dt("ContextMenuButton",dt(vt.s_,"Horizontal",dt(vt.s_,"Spot",Wi(!1),qt(vt.z6.Top,!1),qt(vt.z6.Left,!1),qt(vt.z6.Right,!1),qt(vt.z6.Bottom,!1)),dt(vt.s_,"Spot",{margin:new vt.Zt(0,0,0,2)},Wi(!0),qt(vt.z6.Top,!0),qt(vt.z6.Left,!0),qt(vt.z6.Right,!0),qt(vt.z6.Bottom,!0)))));const Qi=`{ "class": "GraphLinksModel",
|
|
|
"nodeDataArray": [
|
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
|
],
|
|
|
"linkDataArray": [
|
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
|
]}`;var yr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Dr(ai){return console.log("shapeName:",ai),yr.indexOf(ai)>=0}var sn=new vt.YI(In.current,{maxSelectionCount:1,linkTemplate:dt(vt.rU,{locationSpot:vt.z6.Center,selectionAdornmentTemplate:dt(vt.uz,"Link",{locationSpot:vt.z6.Center},dt(vt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),dt(vt.bn,{toArrow:"Standard",stroke:null}))},{routing:vt.rU.AvoidsNodes,curve:vt.rU.JumpOver,corner:5,toShortLength:4},new vt.KX("points"),dt(vt.bn,{isPanelMain:!0,strokeWidth:2}),dt(vt.bn,{toArrow:"Standard",stroke:null})),model:new vt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...vt.bn.getFigureGenerators().toArray().map(ai=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ai.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Qe.current.addDiagramListener("TextEdited",function(ai){var xi;const Gi=ai.subject.part;var Di=(xi=document.activeElement)==null?void 0:xi.value;typeof Di=="string"&&Di.trim()===""&&Qe.current.model.commit(function(_i){_i.set(Gi.data,"text","\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}),sn.nodeTemplate=dt(vt.NB,"Auto",{locationSpot:vt.z6.Center},new vt.KX("location","location",vt.E9.parse).makeTwoWay(vt.E9.stringify),dt(vt.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 vt.KX("stroke").makeTwoWay(),new vt.KX("fill").makeTwoWay(),new vt.KX("figure")),dt(vt.al,{margin:new vt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new vt.$u(16,16),maxSize:new vt.$u(10,NaN),textAlign:"center",editable:!0},new vt.KX("key").makeTwoWay())),setTimeout(()=>{Qe.current.grid=dt(vt.s_,"Grid",dt(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dt(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Qe.current.grid.visible=!0,Qe.current.grid.gridCellStroke="darkgray",Qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Qe.current,Qe.current}const gi=()=>lt(this,null,function*(){var dt,Fn=Qe.current.makeImage();const ui=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Fn.src,file_data:JSON.stringify({login:(dt=(0,Be.eY)())==null?void 0:dt.login,data:JSON.parse(Qe.current.model.toJson())})}});Yt({src:ui.url})});return(0,be.useEffect)(()=>(setTimeout(()=>{bi()},500),Vn(fn+1),()=>{Qe.current=null}),[]),Se.createElement("div",{ref:ft,className:Mt.current?`${Ne.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(rn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(cn.Z,null,Se.createElement(Me.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Me.Z,{onClick:()=>{var dt,Fn,ui=Qe.current.selection.first();if(Mt.current=!Mt.current,document.activeElement&&ui){let ji=(Fn=(dt=document.activeElement)==null?void 0:dt.value)==null?void 0:Fn.trim();typeof ji=="string"&&Qe.current.model.commit(function(dn){dn.set(ui.data,"text",ji||"\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}Vn(fn+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:on},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ne.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:In})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:un,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Ke.ZP,{size:"large",onClick:gi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=Et,tt=ye(5112),wt=ye(5871);const xt=tt.ZP.Group,ct={margin:"0 8px"};var Ft=({callback:on,onCancel:Yt})=>{function Qe(un){on(un)}return be.createElement(Ve.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qe},be.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},be.createElement("span",{style:ct},"\u5355\u5143\u683C\u6570\uFF1A"),be.createElement("span",{style:ct},"\u884C\u6570"),be.createElement(Ve.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},be.createElement(wt.Z,null)),be.createElement("span",{style:ct},"\u5217\u6570"),be.createElement(Ve.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},be.createElement(wt.Z,null))),be.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},be.createElement("span",{style:ct},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),be.createElement(Ve.default.Item,{name:"align"},be.createElement(xt,null,be.createElement(tt.ZP,{value:"default"},be.createElement("i",{className:"fa fa-align-justify"})),be.createElement(tt.ZP,{value:"left"},be.createElement("i",{className:"fa fa-align-left"})),be.createElement(tt.ZP,{value:"center"},be.createElement("i",{className:"fa fa-align-center"})),be.createElement(tt.ZP,{value:"right"},be.createElement("i",{className:"fa fa-align-right"}))))),be.createElement("div",{className:"flex-container flex-end"},be.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(Ke.ZP,{type:"ghost",onClick:Yt},"\u53D6\u6D88")))},Pn=ye(78673),mn=ye(80727),Jt=ye.n(mn),Tn=(0,be.forwardRef)(({use3d:on,width:Yt,height:Qe,callback:un,showSaveButton:In},Mt)=>{const ft=(0,be.useRef)(),fn=(0,be.useRef)(),[Vn,bi]=(0,be.useState)(!1),gi=(0,be.useRef)({id:ft,appName:"graphing",width:Yt||1e3,height:Qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,be.useEffect)(()=>{fn.current=new(Jt())(gi.current,!0),window.onload=function(){fn.current.inject("applet_container")}},[]);const dt=()=>{var Fn=window.ggbApplet.getPNGBase64(1,!0,72);return un&&un(Fn),Fn};return(0,be.useEffect)(()=>{gi.current.appName=Vn?"3D":"graphing",fn.current.inject("applet_container")},[Vn]),(0,be.useEffect)(()=>{bi(on)},[on]),(0,be.useImperativeHandle)(Mt,()=>({getImgData:dt})),be.createElement(be.Fragment,null,be.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ft}),be.createElement(cn.Z,{align:"middle"},be.createElement(Me.Z,{flex:1},be.createElement(Pn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Vn,onChange:Fn=>bi(Fn)})),be.createElement(Me.Z,null,be.createElement(Ke.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),bt=ye(41588),_t=ye(8591);const $t="link",Dn="upload-image",ii="add-flowchart",pi="draw-image",fi="add-flowchart",wi="code-block",Vi="add-table",vr="------------",cr={default:vr,left:`:${vr}`,center:`:${vr}:`,right:`${vr}:`};var pr=ye(58856);function _r(){}let Ir=0;const $i=1e4,eo="\u2581",kr="@\u2581\u2581@",Ee="@\u2581@",si=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,yi=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function or(on){return/^\d+$/.test(on)?`${on}px`:on}const qi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qr={[qi+"-B"]:"bold",[qi+"-I"]:"italic"},mo={[$t]:"\u6DFB\u52A0\u94FE\u63A5",[wi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Dn]:"\u6DFB\u52A0\u56FE\u7247",[pi]:"\u6DFB\u52A0\u753B\u56FE",[ii]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var zr=({defaultValue:on="",onChange:Yt,width:Qe="100%",height:un=400,miniToolbar:In=!1,isFocus:Mt=!1,watch:ft,insertTemp:fn,mode:Vn="markdown",id:bi="markdown-editor-id",showResizeBar:gi=!1,noStorage:dt=!1,showNullButton:Fn=!1,showNullProgramButton:ui=!1,hidetoolBar:ji=!1,fullScreen:dn=!1,onBlur:vn,onCMBeforeChange:Rt,onFullScreen:tn,className:yn="",disablePaste:an=!1,disabled:Mn=!1,disabledFill:bn=!1,placeholder:$n="",values:Un="",extraUse:Wi})=>{const[qt,Qi]=(0,be.useState)(null),[yr,Dr]=(0,be.useState)(on),[sn,ai]=(0,be.useState)(ft),[xi,Gi]=(0,be.useState)(dn),[Di,_i]=(0,be.useState)(""),[wr,er]=(0,be.useState)(0),[Oi,br]=(0,be.useState)(un),[En,wo]=(0,be.useState)(!1),[An,Br]=(0,be.useState)(0),[ta,bo]=(0,be.useState)(0),ca=(0,be.useRef)(),qo=(0,be.useRef)(),lr=(0,be.useRef)(),tr=(0,be.useRef)();(0,be.useEffect)(()=>{const ur=window.scrollY||window.pageYOffset;Dr(Un),qt==null||qt.setValue(Un),window.scrollTo(0,ur)},[Un]),(0,be.useEffect)(()=>{tn==null||tn(xi)},[xi]),(0,be.useEffect)(()=>{if(ca.current){let ur=function(ri,Er){var Io;if(an){Er.preventDefault();return}const Ma=Er.clipboardData;if(Ma){const Sa=Ma.types.toString(),Ta=Ma.items;if(Sa==="Files"||Ma.types.indexOf("Files")>-1){if(Er.preventDefault(),Vn=="stex")return;try{let Ra=Ta[1];((Io=Ta[0])==null?void 0:Io.kind)==="file"&&(Ra=Ta[0]);const Ga=Ra.getAsFile(),Vs=Ga.name.split(".").pop();(0,Bt.I)(Ga,us=>{var Ys,hn,xs;us.id?((Ys=Ga==null?void 0:Ga.type)==null?void 0:Ys.indexOf("image"))>-1?hr.replaceSelection(`<img width="100%" src="/api/attachments/${us.id}?type=${us.content_type})" alt="" />`):((hn=Ga==null?void 0:Ga.type)==null?void 0:hn.indexOf("video"))>-1?hr.replaceSelection(`<video width="100%" controls src="/api/attachments/${us.id}"></video>`):((xs=Ga==null?void 0:Ga.type)==null?void 0:xs.indexOf("pdf"))>-1?hr.replaceSelection(`<a href="/api/attachments/${us.id}?type=${Ga.type}&disposition=inline" target="_blank">${Ga.name}</a>`):yi.includes(Vs)?hr.replaceSelection(`<a href="/api/attachments/${us.id}?type=office&disposition=inline" target="_blank">${Ga.name}</a>`):hr.replaceSelection(`[${Ga.name}](/api/attachments/${us.id}?type=${us.content_type})`):(us==null?void 0:us.status)===401&&(document.location.href="/user/login")})}catch(Ra){_t.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hr=at().fromTextArea(ca.current,{mode:Vn,lineNumbers:!In,lineWrapping:!0,value:on,autoCloseTags:!0,autoCloseBrackets:!0});return hr.on("keyup",function(ri,Er){Er.keyCode===8&&(ri.getValue()==""?hr.setOption("placeholder",$n):hr.setOption("placeholder",null))}),hr.on("keydown",function(ri,Er){if(Er.keyCode===8){var Io=ko(ri);Io&&Er.preventDefault()}}),Mt&&hr.focus(),hr.on("paste",ur),Mn&&hr.on("beforeChange",function(ri,Er){(Er.origin==="paste"||Er.origin==="+input")&&Er.cancel()}),Qi(hr),()=>{hr.off("paste",ur)}}},[]);const to=(0,be.useCallback)(()=>{if(qo.current)try{}catch(ur){console.log(ur,"---- to set md editor body height")}},[Oi,qo,xi]);(0,be.useEffect)(()=>{function ur(){let hr=new kt.Z(ri=>{for(let Er of ri)(Er.target.offsetHeight>0||Er.target.offsetWidth>0)&&(to(),qt.setSize("100%","100%"),qt.refresh())});return hr.observe(ca.current.parentElement),hr}if(qt){const hr=ur();return()=>{var ri,Er;(ri=ca.current)!=null&&ri.parentElement&&hr.unobserve((Er=ca.current)==null?void 0:Er.parentElement)}}},[qt,to]),(0,be.useEffect)(()=>{if(qt){let ur=[];for(const[hr,ri]of Object.entries(Qr)){let Er={[hr]:()=>{ki(ri)}};ur.push(Er),qt.addKeyMap(Er)}return()=>{for(let hr of ur)qt.removeKeyMap(hr)}}},[qt]),(0,be.useEffect)(()=>{dn!==xi&&Gi(dn)},[dn]),(0,pr.Z)(()=>{if(!dt&&wr>0){let ur=new Date().getTime(),hr=window.sessionStorage.getItem(bi);ur>=wr+$i&&(!hr||hr!==yr)&&(window.sessionStorage.setItem(bi,yr),wo(!0))}},$i),(0,be.useEffect)(()=>{ai(ft)},[qt,ft]),(0,be.useEffect)(()=>{qt&&Mt&&qt.focus()},[qt,Mt]),(0,be.useEffect)(()=>{if(sn&&qt){let ur=function(ri){let Er=ri.target;if(tr.current){let Io=Er.scrollTop/Er.scrollHeight;tr.current.scrollTop=tr.current.scrollHeight*Io}};const hr=qt.getScrollerElement();return hr.addEventListener("scroll",ur),()=>{hr.removeEventListener("scroll",ur)}}},[qt,sn]),(0,be.useEffect)(()=>{if(qt&&Rt){let ur=function(hr,ri){Rt(hr,ri)};return qt.on("beforeChange",ur),()=>{qt.off("beforeChange",ur)}}},[qt,Rt]),(0,be.useEffect)(()=>{if(qt&&vn){let ur=function(){vn(qt.getValue())};return qt.on("blur",ur),()=>{qt.off("blur",ur)}}},[qt,vn]);function ko(ur,hr){var ri=ur.getDoc(),Er=ri.getCursor(),Io=ri.getLine(Er.line),Ma=Io.charAt(Er.ch-1),Sa=Io.lastIndexOf("@\u2581@",Er.ch),Ta=Io.lastIndexOf("@\u2581\u2581@",Er.ch),Ra=Sa>Ta?Sa:Ta,Ga=Sa>Ta?3:4;if(kr.indexOf(Ma)===-1)return null;if(console.log("change1:",hr,ur,Io,Er,Ra,Sa,Ta,Ma),Ra>=0&&Er.ch-Ra<5){var Vs=Ra+Ga;return ri.replaceRange("",{line:Er.line,ch:Ra},{line:Er.line,ch:Vs}),{line:Er.line,ch:Vs}}return null}(0,be.useEffect)(()=>{if(qt){let ur=function(hr,ri){const Er=hr.getValue();Dr(Er),er(new Date().getTime()),hr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Yt&&(ui?Yt(Er,Fr(Er)):Yt(Er))};return qt.on("change",ur),()=>{qt.off("change",ur)}}},[qt,Yt]),(0,be.useEffect)(()=>{if(qt)if(on==null)qt.setValue(""),Dr("");else{const ur=window.scrollY||window.pageYOffset;on!==qt.getValue()&&(qt.setValue(on),Dr(on),qt.setCursor(Mn?1:qt.lineCount(),0),window.scrollTo(0,ur))}},[qt,on]);const ki=(0,be.useCallback)(ur=>{const hr=qt.getCursor(),ri=qt.getSelection();let Er=ri.split(`
|
|
|
`);switch(ur){case"bold":return qt.replaceSelection("**"+ri+"**"),ri===""&&qt.setCursor(hr.line,hr.ch+2),qt.focus();case"italic":return qt.replaceSelection("*"+ri+"*"),ri===""&&qt.setCursor(hr.line,hr.ch+1),qt.focus();case"code":return qt.replaceSelection("`"+ri+"`"),ri===""&&qt.setCursor(hr.line,hr.ch+1),qt.focus();case"inline-latex":return _i("inline-latex"),qt.focus();case"latex":return qt.replaceSelection("```latex\n"+ri+"\n```"),qt.setCursor(hr.line+1,ri.length+1),qt.focus();case"line-break":return qt.replaceSelection(`<br/>
|
|
|
`),qt.focus();case"list-ul":return ri===""?qt.replaceSelection("- "+ri):qt.replaceSelection(Er.map(Io=>Io===""?"":`- ${Io}`).join(`
|
|
|
`)),qt.focus();case"list-ol":return ri===""?qt.replaceSelection("1. "+ri):qt.replaceSelection(Er.map((Io,Ma)=>Io===""?"":`${Ma+1}. ${Io}`).join(`
|
|
|
`)),qt.focus();case"add-null-ch":return ri===""&&qt.setCursor(hr.line,hr.ch),qt.replaceSelection(eo),qt.focus();case"add-signal":return ri===""&&qt.setCursor(hr.line,hr.ch),qt.replaceSelection(Ee),qt.focus();case"add-multiple":return ri===""&&qt.setCursor(hr.line,hr.ch),qt.replaceSelection(kr),qt.focus();case"inster-template-1":return ri===""&&qt.setCursor(hr.line,hr.ch),qt.replaceSelection(si),qt.focus();case"eraser":return qt.setValue(""),qt.focus();case"trigger-watch":return ai(!sn),qt.focus();case"trigger-full-screen":return Gi(!xi),qt.focus();case $t:_i($t);return;case wi:_i(wi);return;case Dn:_i(Dn);return;case pi:_i(pi);return;case"maths-latex":_i("maths-latex");return;case ii:_i(ii);return;case Vi:_i(Vi);return;default:throw new Error}},[qt,sn,xi]),Ue=(0,be.useCallback)((ur,hr)=>{var ri,Er,Io,Ma,Sa,Ta;switch(_i(""),Di){case $t:const{title:Ys,link:hn}=ur;return qt.replaceSelection(`[${Ys}](${hn})`),qt.focus();case wi:const{language:xs,content:yh}=ur;return qt.replaceSelection(["```"+xs,yh,"```"].join(`
|
|
|
`)),qt.focus();case"maths-latex":for(var Ra=atob(ur),Ga=new Uint8Array(Ra.length),Vs=0;Vs<Ra.length;Vs++)Ga[Vs]=Ra.charCodeAt(Vs);var us=new Blob([Ga],{type:"image/png"});(0,Bt.I)(us,Kr=>{Kr.id?qt.replaceSelection(``):(Kr==null?void 0:Kr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":qt.replaceSelection("`$$"+ur+"$$`");break;case Dn:case pi:case fi:const{src:El,alt:$o}=ur,To=hr,as=(Io=(Er=(ri=To==null?void 0:To.name)==null?void 0:ri.split("."))==null?void 0:Er.pop)==null?void 0:Io.call(Er);return((Ma=To==null?void 0:To.type)==null?void 0:Ma.indexOf("image"))>-1||!(To!=null&&To.type)?To!=null&&To.align||To!=null&&To.width?qt.replaceSelection(`<p style="text-align:${To.align||"initial"}"><img width="${To.width?To.width+"%":"initial"}" src="${El}" alt="${$o||""}" /></p>`):qt.replaceSelection(`<img width="100%" src="${El}" alt="${$o||""}" />`):((Sa=To==null?void 0:To.type)==null?void 0:Sa.indexOf("video"))>-1?qt.replaceSelection(`<video width="100%" controls src="${El}"></video>`):((Ta=To==null?void 0:To.type)==null?void 0:Ta.indexOf("pdf"))>-1?qt.replaceSelection(`<a href="${El}?type=${To.type}&disposition=inline" target="_blank">${To.name}</a>`):yi.includes(as)?qt.replaceSelection(`<a href="${El}?type=office&disposition=inline" target="_blank">${To.name}</a>`):qt.replaceSelection(`[${To.name}](${El})`),qt.focus();case Vi:const{row:ma,col:No,align:fa}=ur;let al=`
|
|
|
`;for(let Kr=0;Kr<ma;Kr++){let zo=[],Oo=[];for(let zi=0;zi<No;zi++)Kr===1&&Oo.push(cr[fa]),zo.push(" ");Kr===1&&(al+=`| ${Oo.join(" | ")} |
|
|
|
`),al+=`| ${zo.join(No===1?"":" | ")} |
|
|
|
`}return qt.replaceSelection(al+`
|
|
|
`),qt.focus();default:throw new Error}},[qt,Di]),fo=(0,be.useMemo)(()=>{switch(Di){case $t:return be.createElement(Hn,{callback:Ue,onCancel:_o});case wi:return be.createElement(_n.Z,{callback:Ue,onCancel:_o});case Dn:return be.createElement(Bt.Z,{callback:Ue,onCancel:_o});case ii:return be.createElement(Xe,{callback:Ue,onCancel:_o});case Vi:return be.createElement(Ft,{callback:Ue,onCancel:_o});case"maths-latex":return be.createElement(Tn,{showSaveButton:!0,callback:Ue});case"inline-latex":return be.createElement(bt.Z,{showSaveButton:!0,callback:Ue});default:return null}},[Di]);function _o(){_i("")}(0,be.useEffect)(()=>{if(lr.current){let ur=function(Sa){Io=!0,Ma=Sa.pageY},hr=function(){Io=!1},ri=function(Sa){if(Io){let Ta=Sa.pageY-Ma;Ta<0&&(Ta=0),Ta>300&&(Ta=300);let Ra=un+Ta+"px";br(Ra)}},Er=lr.current,Io=!1,Ma=0;return Er.addEventListener("mousedown",ur),document.addEventListener("mousemove",ri),document.addEventListener("mouseup",hr),()=>{Er.removeEventListener("mousedown",ur),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",hr)}}},[qt,lr]),(0,be.useEffect)(()=>{br(un)},[un]);const ro=or(Qe),Yo=or(Oi),ya={width:ro,height:Yo},Lr=(0,be.useMemo)(()=>{if(wr){let ur=new Date(wr),hr=ur.getHours(),ri=ur.getMinutes(),Er=ur.getSeconds();return hr=hr<10?"0"+hr:hr,ri=ri<10?"0"+ri:ri,Er=Er<10?"0"+Er:Er,`${hr}:${ri}:${Er}`}return 0},[wr]),Fr=ur=>{const hr=[];if(ui){let ri=-1;ur=ur.replace(/(@▁▁@|@▁@)/g,function(Er,Io,Ma){hr.push({multiLine:Er!==Ee})})}return hr};function uo(){window.sessionStorage.removeItem(bi),wo(!1),er(0)}function Xr(){wo(!1),er(0),qt.setValue(window.sessionStorage.getItem(bi))}(0,be.useEffect)(()=>{mo[Di]&&Di!==pi&&Di!==ii&&setTimeout(()=>{const ur=document.getElementsByClassName("markdown-popup-form")[0],hr=window.innerWidth/2-ur.offsetWidth/2,ri=window.innerHeight/2-ur.offsetHeight/2;Br(hr),bo(ri)},0)},[Di]);const Zo=ur=>{ur.preventDefault();const hr=ur.clientX-An,ri=ur.clientY-ta;document.body.onmousemove=Er=>{let Io=Er.clientX-hr,Ma=Er.clientY-ri;const Sa=document.getElementsByClassName("markdown-popup-form")[0],Ta=window.innerWidth-Sa.offsetWidth,Ra=window.innerHeight-Sa.offsetHeight;Io=Math.max(0,Math.min(Io,Ta)),Ma=Math.max(0,Math.min(Ma,Ra)),oa(Er.clientX,Er.clientY,hr,ri)&&(Br(Io),bo(Ma))},document.body.onmouseup=function(){document.body.onmousemove=null}},oa=(ur,hr,ri,Er)=>{const Io=document.body.clientHeight,Ma=document.body.clientWidth;return ur<20&&ri>ur||ur>Ma-20&&ri<ur||hr<20&&Er>hr||hr>Io-20&&Er<hr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return be.createElement(be.Fragment,null,be.createElement("div",{className:"markdown-editor-wrapper",ref:qo},be.createElement("div",{className:`markdown-editor-container ${yn} ${sn?"on-preview":""} ${In?"mini":""} ${xi?"full-screen":""}`,style:ya},be.createElement(He,{insertTemp:fn,watch:sn,fullScreen:xi,showNullButton:Fn,showNullProgramButton:ui,onActionCallback:ki,hidetoolBar:ji,extraUse:Wi}),be.createElement("div",{className:"markdown-editor-body"},be.createElement("div",{className:"codemirror-container"},be.createElement("textarea",{ref:ca,placeholder:$n})),sn?be.createElement("div",{ref:tr,className:"preview-container"},Vn==="stex"&&be.createElement(gt,{value:yr}),Vn!=="stex"&&be.createElement(It.Z,{disabledFill:bn,showProgramFill:ui,value:yr})):null))),gi?be.createElement("a",{ref:lr,className:"editor-resize"}):null,Di===pi&&be.createElement(Rn,{callback:Ue,onCancel:_o}),Di===ii&&be.createElement(Xe,{callback:Ue,onCancel:_o}),be.createElement(We.Z,null,mo[Di]&&Di!==pi&&Di!==ii?be.createElement(rn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:An,top:ta},title:be.createElement("div",{style:{cursor:"move"},onMouseDown:Zo},mo[Di]),open:!0,onCancel:_o,footer:null,destroyOnClose:!0,width:Di===ii?"1200px":null,height:Di===ii?"80vh":null,className:"markdown-popup-form"},fo):null))}},28451:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return we},I:function(){return He}});var be=ye(78241),Re=ye(8591),at=ye(92832),kt=ye(81327),Je=ye(5871),it=ye(5112),Te=ye(3113),Tt=ye(77903),Pt=ye(59301),rt=ye(59301),It=Object.defineProperty,gt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(We,Ve,ut)=>Ve in We?It(We,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ut}):We[Ve]=ut,se=(We,Ve)=>{for(var ut in Ve||(Ve={}))te.call(Ve,ut)&&he(We,ut,Ve[ut]);if(Fe)for(var ut of Fe(Ve))ne.call(Ve,ut)&&he(We,ut,Ve[ut]);return We},ge=(We,Ve)=>gt(We,Ct(Ve));const{useForm:me}=be.default,Pe={width:280,marginRight:10},ke={labelCol:{span:5},wrapperCol:{span:19}};var we=({callback:We,onCancel:Ve})=>{const[ut]=me();let Ke=(0,Pt.useRef)();function Wt(Ht){Ke.current.width=ut.getFieldValue("width"),Ke.current.align=ut.getFieldValue("align"),We(Ht,Ke.current)}function pt(Ht,jt){if(Ht.status===-1){Re.ZP.error(Ht.message);return}ut.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:jt.type})}function Ut(Ht){let jt=Ht.target.files[0];Ke.current=jt,He(jt,pt)}return rt.createElement(be.default,ge(se({form:ut},ke),{className:"upload-image-panel",onFinish:Wt,style:{width:470,overflow:"hidden"}}),rt.createElement(be.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},rt.createElement("div",{className:"flex-container"},rt.createElement(be.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},rt.createElement(at.default,{style:Pe})),rt.createElement(Oe,{onFileChange:Ut}))),rt.createElement(be.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},rt.createElement(at.default,{style:{width:264}})),rt.createElement(be.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},rt.createElement(kt.Z,null,rt.createElement(be.default.Item,{name:"width",style:{margin:0}},rt.createElement(Je.Z,{style:{width:264}})),rt.createElement("span",{className:"ml8"},"%"))),rt.createElement(be.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},rt.createElement(it.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),rt.createElement("aside",null,rt.createElement(be.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},rt.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(Te.ZP,{type:"default",onClick:Ve},"\u53D6\u6D88"))))};function Oe({onFileChange:We}){return rt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",rt.createElement("input",{type:"file",onChange:We}))}function He(We,Ve){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");let ut=new FormData;ut.append("editormd-image-file",We),ut.append("file_param_name","editormd-image-file"),ut.append("byxhr","true");var Ke=new window.XMLHttpRequest;Ke.withCredentials=!0,Ke.addEventListener("load",function(Wt){Ve(JSON.parse(Wt.target.responseText),We)},!1),Ke.addEventListener("error",function(Wt){console.error(Wt)},!1),Ke.open("POST",`${Tt.KI}/api/attachments.json`),Ke.send(ut)}},79346:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return at}});var be=ye(59301),Re=ye(4676);class at extends be.Component{constructor(Je){super(Je);const it=window.document;this.node=it.createElement("div"),it.body.appendChild(this.node)}render(){const{children:Je}=this.props;return(0,Re.createPortal)(Je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(On,xn,ye){"use strict";ye.d(xn,{SV:function(){return lt},ZP:function(){return Se}});var be=ye(59301),Re=ye(76374);const at={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"]},kt={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"]},Je={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},it={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Te={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 Tt=ye(53184),Pt=ye.n(Tt),rt=Object.defineProperty,It=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Et,Xe,tt)=>Xe in Et?rt(Et,Xe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Et[Xe]=tt,he=(Et,Xe)=>{for(var tt in Xe||(Xe={}))Fe.call(Xe,tt)&&ne(Et,tt,Xe[tt]);if(Ct)for(var tt of Ct(Xe))te.call(Xe,tt)&&ne(Et,tt,Xe[tt]);return Et},se=(Et,Xe)=>It(Et,gt(Xe)),ge=(Et,Xe,tt)=>new Promise((wt,xt)=>{var ct=mn=>{try{Pn(tt.next(mn))}catch(Jt){xt(Jt)}},Ft=mn=>{try{Pn(tt.throw(mn))}catch(Jt){xt(Jt)}},Pn=mn=>mn.done?wt(mn.value):Promise.resolve(mn.value).then(ct,Ft);Pn((tt=tt.apply(Et,Xe)).next())});const me={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Pe=(Et,Xe)=>Xe.map(tt=>({label:tt,kind:Et.languages.CompletionItemKind.Keyword,insertText:tt})),ke=Et=>Object.keys(me.tables).map(Xe=>({label:Xe,kind:Et.languages.CompletionItemKind.Variable,insertText:Xe})),we=(Et,Xe)=>{const tt=me.tables[Et];return tt?tt.map(wt=>({label:wt,kind:Xe.languages.CompletionItemKind.Field,insertText:wt})):[]};function Oe(Et,Xe,tt,wt,xt){let ct=Xe.getWordUntilPosition(tt),Ft={startLineNumber:tt.lineNumber,endLineNumber:tt.lineNumber,startColumn:ct.startColumn,endColumn:ct.endColumn},Pn=wt.map(mn=>({label:mn,kind:Et.languages.CompletionItemKind.Keyword,insertText:mn,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ft}));return xt.map(mn=>{Pn.push(se(he({},mn),{range:Ft}))}),Pn}var He=Et=>{me.languages.map(xt=>(Et.languages.registerDocumentFormattingEditProvider(xt,{provideDocumentFormattingEdits(ct,Ft,Pn){return ge(this,null,function*(){const mn=Pt()(ct.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:ct.getFullModelRange(),text:mn}]})}}),xt));const Xe=Je.quickKey.map(xt=>({label:xt.label,kind:Et.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),tt=it.quickKey.map(xt=>({label:xt.label,kind:Et.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),wt=kt.quickKey.map(xt=>({label:xt.label,kind:Et.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Et.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xt,ct){var Ft=xt.getWordUntilPosition(ct),Pn={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},mn=xt.getLineContent(ct.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Je.keywords.map(Jt=>({label:Jt,kind:Et.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...Je.quickKey.map(Jt=>({label:Jt.label,kind:Et.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:mn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),Et.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xt,ct){var Ft=xt.getWordUntilPosition(ct),Pn={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn};return{suggestions:[...at.keywords.map(mn=>({label:mn,kind:Et.languages.CompletionItemKind.Function,documentation:mn,insertText:mn,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),Et.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xt,ct){var Ft=xt.getWordUntilPosition(ct),Pn={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},mn=xt.getLineContent(ct.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...kt.keywords.map(Jt=>({label:Jt,kind:Et.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...kt.quickKey.map(Jt=>({label:Jt.label,kind:Et.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:mn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),Et.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xt,ct){var Ft=xt.getWordUntilPosition(ct),Pn={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},mn=xt.getLineContent(ct.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Te.keywords.map(Jt=>({label:Jt,kind:Et.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...Te.quickKey.map(Jt=>({label:Jt.label,kind:Et.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:mn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}}),Et.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xt,ct){var Ft=xt.getWordUntilPosition(ct),Pn={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},mn=xt.getLineContent(ct.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...it.keywords.map(Jt=>({label:Jt,kind:Et.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn})),...it.quickKey.map(Jt=>({label:Jt.label,kind:Et.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:mn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pn}))]}}})};const We="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ve=Object.defineProperty,ut=(Et,Xe,tt)=>Xe in Et?Ve(Et,Xe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Et[Xe]=tt,Ke=(Et,Xe,tt)=>ut(Et,typeof Xe!="symbol"?Xe+"":Xe,tt);const Wt=class px{constructor(Xe,tt,wt){this.placeholder=Xe,this.editor=tt,this.monaco=wt,tt.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)}};Ke(Wt,"ID","editor.widget.placeholderHint");var Ut=Wt,Ht=ye(96236),jt=ye(8591),Xt=ye(6848),Nn=ye(89392),St=ye(34604),Ge=ye(56102),en=Object.defineProperty,Hn=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,Kn=(Et,Xe,tt)=>Xe in Et?en(Et,Xe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Et[Xe]=tt,nn=(Et,Xe)=>{for(var tt in Xe||(Xe={}))rn.call(Xe,tt)&&Kn(Et,tt,Xe[tt]);if(Bt)for(var tt of Bt(Xe))cn.call(Xe,tt)&&Kn(Et,tt,Xe[tt]);return Et},Rn=(Et,Xe)=>Hn(Et,_n(Xe)),vt=(Et,Xe)=>{var tt={};for(var wt in Et)rn.call(Et,wt)&&Xe.indexOf(wt)<0&&(tt[wt]=Et[wt]);if(Et!=null&&Bt)for(var wt of Bt(Et))Xe.indexOf(wt)<0&&cn.call(Et,wt)&&(tt[wt]=Et[wt]);return tt},Yn=(Et,Xe,tt)=>new Promise((wt,xt)=>{var ct=mn=>{try{Pn(tt.next(mn))}catch(Jt){xt(Jt)}},Ft=mn=>{try{Pn(tt.throw(mn))}catch(Jt){xt(Jt)}},Pn=mn=>mn.done?wt(mn.value):Promise.resolve(mn.value).then(ct,Ft);Pn((tt=tt.apply(Et,Xe)).next())});function ni(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}function je(){}let Me=!1;const xe={"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 Ne(Et=[]){let Xe=Et;if(Array.isArray(Et)){for(let tt=0;tt<Et.length;tt++){let wt=xe[Et[tt]];if(wt)return wt}return Xe[0]}return xe[Xe]||Xe}let Be=null;var Se=Et=>{var Xe=Et,{width:tt="100%",height:wt="100%",value:xt,language:ct="javascript",style:Ft={},options:Pn={},overrideServices:mn={},theme:Jt="vs-dark",onEditBlur:gn,isCopy:Tn=!1,onSave:bt,autoHeight:_t=!1,forbidCopy:$t=!1,onChange:Dn=je,editorDidMount:ii=je,onFocus:pi=je,onBreakPoint:fi=je,breakPointValue:wi=[],filename:Vi="educoder.txt",errorLine:vr,errorContent:cr="",highlightLine:pr,openBreakPoint:_r=!1,placeholder:Ir="",showMiniMap:$i=!0}=Xe,eo=vt(Xe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const kr=(0,be.useRef)(),Ee=(0,be.useRef)({}),si=(0,be.useRef)(),yi=(0,be.useRef)(),or=(0,be.useRef)([]),xr=(0,be.useRef)(!1),qi=(0,be.useRef)(),Qr=(0,be.useRef)(),mo=(0,be.useRef)(!1),[zr,on]=(0,be.useState)(!1);function Yt(){let vn;return kr.current&&(vn=new Re.Z(Rt=>{for(let tn of Rt)(tn.target.offsetHeight>0||tn.target.offsetWidth>0)&&Ee.current.instance.layout()}),vn.observe(kr.current)),vn}function Qe(){jt.ZP.warning({content:decodeURIComponent(We),key:"monaco-editor-tip"})}const un=()=>{let vn=Ee.current.instance;if(xt!=null&&vn&&zr){const Rt=vn.getModel();Rt&&xt!==Rt.getValue()&&(Me=!0,Rt.setValue(xt),vn.layout(),Me=!1)}};(0,be.useEffect)(()=>{const vn=St.Z.subscribe("formatDocument",Rt=>{var tn;let yn=Ee.current.instance;(tn=yn==null?void 0:yn.getAction)==null||tn.call(yn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Rt=>{Dn(Rt)},vn},[]),(0,be.useEffect)(()=>{var vn;let Rt=Ee.current.instance;yi.current&&clearTimeout(yi.current),yi.current=setTimeout(()=>{un()},500),xt&&(xt!=null&&xt.length)&&((vn=Rt==null?void 0:Rt.updateOptions)==null||vn.call(Rt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xt.split(/\r\n|\r|\n/g).length))+3,5)}))},[xt,zr,Ee.current]),(0,be.useEffect)(()=>{if(vr&&Ee.current&&Ee.current.instance){let Rt=Ee.current.instance;Rt.changeViewZones(function(tn){var yn=document.createElement("div");yn.style.padding="10px 20px",yn.style.width="calc(100% - 20px)",yn.className="my-error-line-wrp",yn.innerHTML=cr,tn.addZone({afterLineNumber:vr||11,heightInLines:3,domNode:yn})});var vn={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}};Rt.addOverlayWidget(vn),Rt.revealPositionInCenter({lineNumber:20,column:1})}},[vr,Ee.current,zr]);const In=(vn="",Rt)=>{if(!vn||vn.trim()==="")return!0;const yn=Ee.current.instance.getModel().getLineTokens(Rt);let an=!1;for(let Mn=0;Mn<2;Mn++)yn.getStandardTokenType(Mn)===1&&(an=!0);return an};(0,be.useEffect)(()=>{var vn;const Rt=(vn=Ee.current)==null?void 0:vn.instance;if(Rt&&zr&&$t){const tn=Rt.onDidBlurEditorWidget(()=>{mo.current=!1}),yn=Rt.onDidFocusEditorText(()=>{mo.current=!0});return()=>{tn.dispose(),yn.dispose()}}},[Ee.current,zr,$t]),(0,be.useEffect)(()=>{var vn;if((vn=Ee.current)!=null&&vn.instance&&zr&&_r){let Rt=Ee.current.instance,tn=Rt.getModel();if(!tn)return;(()=>{var sn;let ai=[],xi=[];const Gi=tn.getAllDecorations();for(let _i of Gi)_i.options.className==="highlighted-line"&&(ai.push((sn=_i==null?void 0:_i.range)==null?void 0:sn.startLineNumber),xi.push(_i==null?void 0:_i.id));if(pr===ai[0])return;tn.deltaDecorations(xi,[]);const Di=tn.getLineCount();pr&&pr<=Di&&(Rt.deltaDecorations([],[{range:new Be.Range(pr,1,pr,tn.getLineMaxColumn(pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rt.revealLineInCenter(pr))})();const an=(sn=!1)=>{var ai;let xi=[],Gi=[];const Di=tn.getAllDecorations();for(let _i of Di)_i.options.linesDecorationsClassName==="breakpoints-select"&&(xi.push((ai=_i==null?void 0:_i.range)==null?void 0:ai.startLineNumber),Gi.push(_i==null?void 0:_i.id));if(sn)return{lines:xi,ids:Gi};fi(xi)},Mn=sn=>Yn(void 0,null,function*(){let ai={range:new Be.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield tn.deltaDecorations([],[ai]),an()}),bn=sn=>Yn(void 0,null,function*(){let ai=[];const xi=Rt.getLineDecorations(sn);for(let Gi of xi)Gi.options.linesDecorationsClassName==="breakpoints-select"&&ai.push(Gi.id);yield tn.deltaDecorations(ai,[]),an()}),$n=sn=>{let ai=Rt.getLineDecorations(sn);for(let xi of ai)if(xi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Nn.isEqual)(wi,an(!0).lines)){tn.deltaDecorations(an(!0).ids,[]);const sn=wi.map(ai=>({range:new Be.Range(ai,1,ai,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));tn.deltaDecorations([],sn)}const Un=Rt.onDidChangeModelContent(sn=>{let ai=Rt.getPosition();if(ai){let xi=ai.lineNumber;clearTimeout(Qr.current),Qr.current=setTimeout(()=>{In(tn.getLineContent(xi),xi)?bn(xi):$n(xi)?(bn(xi),Mn(xi)):an()},100)}}),Wi=Rt.onMouseDown(sn=>{var ai,xi,Gi;if(sn.target.detail&&((Gi=(xi=(ai=sn.target)==null?void 0:ai.element)==null?void 0:xi.className)!=null&&Gi.includes("line-numbers"))){let Di=sn.target.position.lineNumber;if(In(tn.getLineContent(Di),Di))return;$n(Di)?bn(Di):Mn(Di)}}),qt=sn=>{let ai={range:new Be.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};or.current=Rt.deltaDecorations(or.current,[ai])},Qi=()=>{or.current=Rt.deltaDecorations(or.current,[])},yr=Rt.onMouseMove(sn=>{var ai,xi,Gi;if(Qi(),sn.target.detail&&((Gi=(xi=(ai=sn.target)==null?void 0:ai.element)==null?void 0:xi.className)!=null&&Gi.includes("line-numbers"))){let Di=sn.target.position.lineNumber;if(In(tn.getLineContent(Di),Di))return;qt(Di)}}),Dr=Rt.onMouseLeave(()=>{Qi()});return()=>{Un.dispose(),Wi.dispose(),yr.dispose(),Dr.dispose()}}},[Ee.current,zr,wi,pr,_r,ct]),(0,be.useEffect)(()=>{var vn;(vn=Ee.current)!=null&&vn.instance&&_r&&Ee.current.instance.setPosition({lineNumber:0,column:0})},[pr]);function Mt(){let vn=Ee.current.instance;if(vn){const Rt=vn.getSelection(),tn=Ee.current.pastePos||{},yn=new Be.Range(tn.startLineNumber||Rt.endLineNumber,tn.startColumn||Rt.endColumn,tn.endLineNumber||Rt.endLineNumber,tn.endColumn||Rt.endColumn);setTimeout(()=>{vn.executeEdits("",[{range:yn,text:""}])},300)}}function ft(vn){(window.navigator.platform.match("Mac")?vn.metaKey:vn.ctrlKey)&&vn.keyCode==83&&(vn.preventDefault(),bt())}const fn=()=>{if(_t&&Ee.current.instance){const vn=Ee.current.instance.getContentHeight();ji(vn<wt?wt:vn)}else ji(wt)};function Vn(vn){var Rt=document.createEvent("MouseEvents");Rt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),vn.dispatchEvent(Rt)}const bi=vn=>{if(!mo.current)return;const{keyCode:Rt,ctrlKey:tn,metaKey:yn,target:an,type:Mn}=vn;return(Mn==="paste"||(Rt===67||Rt===86)&&(yn||tn))&&an.nodeName==="TEXTAREA"&&(Qe(),vn.preventDefault()),!1};function gi(vn,Rt){var tn=window.URL||window.webkitURL||window,yn=new Blob([Rt]),an=document.createElementNS("http://www.w3.org/1999/xhtml","a");an.href=tn.createObjectURL(yn),an.download=vn,Vn(an)}(0,be.useEffect)(()=>{fn()},[fn]),(0,be.useEffect)(()=>{kr.current&&!zr&&Promise.all([ye.e(8909),ye.e(3267)]).then(ye.bind(ye,71448)).then(vn=>{try{Be=vn,Ee.current.instance=Be.editor.create(kr.current,{value:xt,language:Ne(ct),theme:Jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:$i||!1}},mn);const Rt=Ee.current.instance;let an=[...Ht.BH._menuItems].find(Un=>Un[0]._debugName=="EditorContext")[1],Mn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bn=(Un,Wi)=>{var qt,Qi;let yr=Un._first;do Wi.includes((Qi=(qt=yr.element)==null?void 0:qt.command)==null?void 0:Qi.id)&&Un._remove(yr);while(yr=yr.next)};if(ii(Rt,Be),setTimeout(()=>{fn(),Ee.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{gi(Vi||"educoder.txt",Rt.getValue())}})},500),Ee.current.subscription=Rt.onDidChangeModelContent(Un=>{xr.current?clearTimeout(qi.current):(fn(),Dn(Rt.getValue(),Un)),qi.current=setTimeout(()=>{xr.current=!1},500)}),window.Monaco||He(Be,Ne(ct)),$t&&(bn(an,Mn),kr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",bi),window.removeEventListener("paste",bi),window.addEventListener("keydown",bi),window.addEventListener("paste",bi)),window.Monaco=Be,gn&&Rt.onDidBlurEditorWidget(()=>{gn(Rt.getValue())}),pi&&Rt.onDidFocusEditorText(()=>{pi(Rt.getValue())}),$t)try{Rt.onDidPaste(Un=>{const Wi=Rt.getSelection(),qt=Ee.current.pastePos||{},Qi=new Be.Range(qt.startLineNumber||Wi.endLineNumber,qt.startColumn||Wi.endColumn,qt.endLineNumber||Wi.endLineNumber,qt.endColumn||Wi.endColumn);Rt.executeEdits("",[{range:Un.range,text:""}])})}catch(Un){}let $n=Yt();return Ir&&typeof Ir=="string"&&new Ut(Ir,Rt,Be),on(!0),()=>{const Un=Ee.current.instance;Un.dispose();const Wi=Un.getModel();Wi&&Wi.dispose(),Ee.current.subscription&&Ee.current.subscription.dispose(),$n.unobserve(kr.current)}}catch(Rt){}})},[]),(0,be.useEffect)(()=>{if(Ee.current.instance&&zr)return document.addEventListener("keydown",ft,!1),()=>{document.removeEventListener("keydown",ft)}},[bt,zr]),(0,be.useEffect)(()=>{let vn=Ee.current.instance;if(vn&&zr){let Rt=Ne(ct);Be.editor.setModelLanguage(vn.getModel(),Rt)}},[ct,zr]),(0,be.useEffect)(()=>{Ee.current.instance&&zr&&Be.editor.setTheme(Jt)},[Jt,zr]),(0,be.useEffect)(()=>{let vn=Ee.current.instance;si.current=Pn,vn&&zr&&(vn.updateOptions(nn({},Pn)),setTimeout(()=>{vn.getModel().updateOptions(nn({},Pn))},200))},[JSON.stringify(Pn),zr]),(0,be.useEffect)(()=>{let vn=Ee.current.instance;vn&&zr&&vn.layout()},[tt,wt,zr]);const[dt,Fn]=(0,be.useState)(ni(tt)),[ui,ji]=(0,be.useState)(ni(wt)),dn=Rn(nn({},Ft),{width:dt,height:ui,position:"relative"});return be.createElement("div",{className:"my-monaco-editor",ref:kr,style:dn},Tn&&be.createElement(Ge.CopyToClipboard,{text:xt,onCopy:()=>jt.ZP.success("\u590D\u5236\u6210\u529F")},be.createElement(Xt.Z,{title:"\u590D\u5236\u4EE3\u7801"},be.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},be.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function lt({width:Et="100%",height:Xe="100%",original:tt,modified:wt,language:xt,options:ct={}}){const Ft=(0,be.useRef)(),[Pn,mn]=(0,be.useState)(null);function Jt(_t){let $t;return Ft.current&&($t=new Re.Z(Dn=>{for(let ii of Dn)(ii.target.offsetHeight>0||ii.target.offsetWidth>0)&&_t.layout()}),$t.observe(Ft.current)),$t}(0,be.useEffect)(()=>(Ft.current&&Promise.all([ye.e(8909),ye.e(9404)]).then(ye.bind(ye,2550)).then(_t=>{Be=_t;const $t=Be.editor.createDiffEditor(Ft.current,Rn(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},ct),{wordWrap:!0}));mn($t);let Dn=Jt($t);return()=>{$t.dispose();const ii=$t.getModel();ii&&ii.dispose(),Dn.unobserve(Ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,be.useEffect)(()=>{Pn&&Pn.setModel({original:Be.editor.createModel(tt,xt),modified:Be.editor.createModel(wt,xt)})},[tt,wt,xt,Pn]);const gn=ni(Et),Tn=ni(Xe),bt={width:gn,height:Tn};return be.createElement("div",{className:"my-diff-editor",ref:Ft,style:bt})}},58856:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Re}});var be=ye(59301);function Re(at,kt){const Je=(0,be.useRef)();(0,be.useEffect)(()=>{Je.current=at}),(0,be.useEffect)(()=>{function it(){Je.current()}if(kt!==null){let Te=setInterval(it,kt);return()=>clearInterval(Te)}},[kt])}},79834:function(On,xn,ye){"use strict";ye.d(xn,{Q8:function(){return Ge},d0:function(){return en},w6:function(){return St}});var be=ye(59301),Re=ye(5083),at=ye(57809),kt=ye(8591),Je=ye(43418),it=ye(5112),Te=ye(95237),Tt=ye(43604),Pt=ye(6848),rt=ye(24905),It=ye(3113),gt=ye(61186),Ct=ye.n(gt),Fe=ye(24065),te=ye(99064),ne=ye(89392),he=ye.n(ne),se=ye(955),ge=ye(24990),me=ye(89070),Pe=ye(40731),ke=ye(46474),we=ye(38233),Oe=ye(82438),He=ye(49692),We=ye(59301),Ve=Object.defineProperty,ut=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Ht=(cn,Kn,nn)=>Kn in cn?Ve(cn,Kn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):cn[Kn]=nn,jt=(cn,Kn)=>{for(var nn in Kn||(Kn={}))pt.call(Kn,nn)&&Ht(cn,nn,Kn[nn]);if(Wt)for(var nn of Wt(Kn))Ut.call(Kn,nn)&&Ht(cn,nn,Kn[nn]);return cn},Xt=(cn,Kn)=>ut(cn,Ke(Kn)),Nn=(cn,Kn,nn)=>new Promise((Rn,vt)=>{var Yn=Me=>{try{je(nn.next(Me))}catch(xe){vt(xe)}},ni=Me=>{try{je(nn.throw(Me))}catch(xe){vt(xe)}},je=Me=>Me.done?Rn(Me.value):Promise.resolve(Me.value).then(Yn,ni);je((nn=nn.apply(cn,Kn)).next())});function St(cn,Kn){const nn=[];for(let Rn=cn;Rn<Kn;Rn++)nn.push(Rn);return nn}const Ge=(cn,Kn,nn)=>{const Rn=cn<Ct()().startOf("day"),vt=cn>Ct()(Kn).endOf("day"),Yn=cn<Ct()(nn).startOf("day");return Kn?nn?Ct()()<=Ct()(nn)?Yn||vt:Rn||vt:cn&&Rn||vt:nn&&Ct()()<=Ct()(nn)?Yn:Rn},en=(cn,Kn)=>{const nn=parseInt(Ct()(cn).format("HH")),Rn=parseInt(Ct()().format("HH")),vt=parseInt(Ct()().format("mm"));if(!cn)return{disabledHours:()=>St(0,Rn),disabledMinutes:()=>St(0,vt)};if(Kn){const Yn=parseInt(Ct()(Kn).format("HH")),ni=parseInt(Ct()(Kn).format("mm"));return Ct()(cn).isSame(Ct()(Kn),"day")?{disabledHours:()=>St(0,Yn),disabledMinutes:()=>nn<=Yn?St(0,ni):[]}:void 0}if(Ct()(cn).isSame(Ct()(),"day"))return{disabledHours:()=>St(0,Rn),disabledMinutes:()=>Ct()(cn).isSame(Ct()(),"hour")&&nn<=Rn?St(0,vt):[]}},Hn=(cn,Kn)=>cn==null?void 0:cn.map(nn=>{var Rn;return(Rn=Kn==null?void 0:Kn.find(vt=>vt.value===nn))==null?void 0:Rn.id}),{RangePicker:_n}=Re.default,{Option:Bt}=at.default,rn=({shixunHomeworks:cn,loading:Kn,dispatch:nn,classroomList:Rn,user:vt})=>{var Yn,ni,je,Me,xe,Ne,Be,Se,lt;const Et=(0,me.useParams)(),{workSetting:Xe,workList:tt,shixunWorkList:wt,headerInfo:xt,changeData:ct}=cn,[Ft,Pn]=(0,be.useState)(!1),[mn,Jt]=(0,be.useState)(!1);let[gn,Tn]=(0,be.useState)([]),[bt,_t]=(0,be.useState)([]),[$t,Dn]=(0,be.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pe.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[ii,pi]=(0,be.useState)({}),[fi,wi]=(0,be.useState)({});(0,be.useEffect)(()=>()=>{Tn([])},[]),(0,be.useEffect)(()=>{Pn(!(0,Fe.GJ)())},[(0,Fe.GJ)()]);const Vi=()=>{nn({type:"shixunHomeworks/getWorkSetting",payload:jt({},Et)})};(0,be.useEffect)(()=>{if(!(Xe!=null&&Xe.course_id))return;Object.keys($t).map(function(yi){$t[yi]=Xe[yi]}),(!$t.allow_late||!$t.unified_late)&&($t.late_penalty=20,$t.penalty_type=Pe.Q.Percent),$t.unified_setting||($t.unified_late=!1,$t.unified_anonymous_comment=!1,$t.unified_anonymous_appeal=!1),gn=JSON.parse(JSON.stringify(Xe.group_settings.map(yi=>Xt(jt({},yi),{group_name:[yi.group_name]})).filter(yi=>yi.publish_time!==null))),bt=JSON.parse(JSON.stringify(Xe.allow_late_settings.map(yi=>Xt(jt({},yi),{group_name:[yi.group_name]})).filter(yi=>yi.late_time!==null))),Dn(jt({},$t));const si=(0,se.QE)((gn==null?void 0:gn.length)>0?gn:[]);Tn([...si]),(bt==null?void 0:bt.length)<=0?_t([{penalty_type:Pe.Q.Percent,late_penalty:20}]):_t([...bt])},[Xe]);const vr=()=>Nn(void 0,null,function*(){var si,yi;if(((si=vt==null?void 0:vt.userInfo)==null?void 0:si.user_status)===2){(0,ke.Rd)();return}const or=JSON.parse(JSON.stringify($t));if(or.challenge_settings.filter(qi=>!qi.hide),or.categoryId=Et.categoryId,(yi=or.challenge_settings)!=null&&yi.every(qi=>!qi.checked)){kt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(gn),!$t.unified_setting)gn=gn==null?void 0:gn.map(qi=>{var Qr;if(!qi.publish_time||!qi.end_time)throw kt.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 kt.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=(Qr=Xe.group_settings)==null?void 0:Qr.filter(mo=>{var zr;return(zr=qi==null?void 0:qi.group_name)==null?void 0:zr.includes(mo.group_name)}).map(mo=>mo.group_id||mo.id).toString().split(","),qi});else if(!$t.publish_time||!$t.end_time)throw kt.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(or.group_settings=gn,$t.allow_late)if($t.unified_late){if($t.late_penalty===null||$t.late_penalty===void 0||$t.late_penalty<0||$t.late_penalty>100)throw kt.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(!$t.late_time)throw kt.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 bt=bt==null?void 0:bt.map(qi=>{var Qr,mo;if(qi.late_penalty===null||qi.late_penalty===void 0||qi.late_penalty<0||qi.late_penalty>100)throw kt.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 kt.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 kt.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=(mo=(Qr=qi==null?void 0:qi.group_name)==null?void 0:Qr.map(zr=>{var on,Yt;let Qe=(Yt=(on=Xe.group_settings)==null?void 0:on.filter(un=>(un==null?void 0:un.group_name)===zr))==null?void 0:Yt[0];return Qe==null?void 0:Qe.group_id}))==null?void 0:mo.toString().split(","),qi}),or.allow_late_settings=bt;let xr=yield(0,He.Tr)({homework_common_ids:[parseInt(Et.categoryId)],course_id:Et.coursesId,type:"homework_common"});(xr==null?void 0:xr.student_count)===0?cr(or):(wi(or),pi(xr))}),cr=si=>{var yi;if(si.total_score===null){kt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(si!=null&&si.work_efficiency&&si.eff_score===null){kt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const or=si.challenge_settings.reduce((Qr,mo)=>Qr+Number(mo.challenge_score),0);if((or==null?void 0:or.toFixed(10))!==((yi=si.total_score-si.eff_score)==null?void 0:yi.toFixed(10))){kt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${si.total_score}\u5206`);return}const xr={shixun_evaluation:si.shixun_evaluation,challenge_settings:si.challenge_settings};let qi=()=>{var Qr;const mo=()=>Nn(void 0,null,function*(){Jt(!0),(yield(0,te.ZP)(`/api/homework_commons/${Et.categoryId}/publish_setting.json`,{method:"post",body:jt({},si)})).status===0&&(kt.ZP.success("\u66F4\u65B0\u6210\u529F"),Vi(),nn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:jt({},Et)})),Jt(!1)});!(0,ne.isEqual)(ct,xr)&&!((Qr=xt==null?void 0:xt.homework_status)!=null&&Qr.includes("\u672A\u53D1\u5E03"))?Je.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:mo}):mo()};Xe!=null&&Xe.high_resources_consume&&!(Xe!=null&&Xe.high_resources_consume_permission)?nn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Et.coursesId,type:"shixun",type_id:Et.categoryId,name:Xe.homework_name,fn:()=>{qi()}}}):qi()},pr=(si,yi,or="group_id")=>{var xr;return yi?yi.find(qi=>qi[or]===si):(xr=Xe==null?void 0:Xe.group_settings)==null?void 0:xr.find(qi=>qi.group_id[0]===si)},_r=(Xe==null?void 0:Xe.allow_late)||(Xe==null?void 0:Xe.anonymous_comment),Ir=si=>{var yi,or;const xr=pr(si,Xe==null?void 0:Xe.allow_late_settings,"id"),qi=pr(si,Xe==null?void 0:Xe.anonymous_comment_settings),Qr=pr(si);return(Xe==null?void 0:Xe.allow_late)&&xr&&Ct()(xr==null?void 0:xr.late_time)<=Ct()()||(Xe==null?void 0:Xe.anonymous_comment)&&qi&&(qi==null?void 0:qi.evaluation_start)!==null||((or=(Ct()(Qr==null?void 0:Qr.end_time)<=Ct()()&&((yi=Xe==null?void 0:Xe.allow_late_settings)==null?void 0:yi.filter(mo=>mo.group_id.includes(si))))[0])==null?void 0:or.late_time)!=null},$i=(0,be.useMemo)(()=>(Xe==null?void 0:Xe.allow_late)||(Xe==null?void 0:Xe.all_group_late),[Xe,xt]),eo=Xe==null?void 0:Xe.anonymous_comment,kr=si=>{if(!si)return!1;const yi=pr(si,Xe==null?void 0:Xe.anonymous_comment_settings);return(Xe==null?void 0:Xe.anonymous_comment)&&yi&&(yi==null?void 0:yi.evaluation_start)!==null},Ee=(si,yi)=>{var or,xr,qi,Qr,mo;si!=null&&si.group_id||(si.group_id=Hn(si==null?void 0:si.group_name,Xe==null?void 0:Xe.group_settings)),nn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:si,index:yi,rangePickerDisabled:(xr=(or=si==null?void 0:si.group_id)==null?void 0:or[0])!=null&&xr.publish_time?Ft||(Ct()()<=Ct()((Qr=pr((qi=si==null?void 0:si.group_id)==null?void 0:qi[0]))==null?void 0:Qr.publish_time)?!1:[!0,Ir((mo=si==null?void 0:si.group_id)==null?void 0:mo[0])]):!1,disabledDate:Xe==null?void 0:Xe.course_end_date}})};return We.createElement("section",{className:ge.Z.form},We.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",We.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")),We.createElement("div",null,We.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},We.createElement(it.ZP.Group,{disabled:Ft||!((Yn=xt==null?void 0:xt.homework_status)!=null&&Yn.includes("\u672A\u53D1\u5E03"))||(0,Fe.Rm)()&&!((ni=Rn.AssistantObject.practice)!=null&&ni.can_publish),value:$t.unified_setting,onChange:si=>{var yi;if(!((yi=xt==null?void 0:xt.homework_status)!=null&&yi.includes("\u672A\u53D1\u5E03"))){kt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if($t.unified_setting=!$t.unified_setting,$t.unified_setting||($t.unified_late=!1,_t([{late_penalty:5}])),Dn(Object.assign({},$t)),$t.unified_setting===!1&&gn==""){Tn(gn.concat({}));return}$t.unified_setting&&(Tn([]),_t([{late_penalty:5}]))}},We.createElement(it.ZP,{value:!0,disabled:Ft||!(Xe!=null&&Xe.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),We.createElement(it.ZP,{disabled:Ft||!((je=Xe==null?void 0:Xe.group_settings)!=null&&je.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Me=Xe==null?void 0:Xe.group_settings)==null?void 0:Me.length)===0&&We.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")),$t.unified_setting&&We.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},We.createElement(Te.Z,{align:"middle"},We.createElement(Tt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),We.createElement(Tt.Z,{className:"ml10"},We.createElement(Re.default,{size:"large",disabled:Ft||!((xe=xt==null?void 0:xt.homework_status)!=null&&xe.includes("\u672A\u53D1\u5E03")||(Ne=xt==null?void 0:xt.homework_status)!=null&&Ne.includes("\u672A\u5F00\u59CB"))||(0,Fe.Rm)()&&!((Be=Rn.AssistantObject.practice)!=null&&Be.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:si=>Ge(si,Xe==null?void 0:Xe.course_end_date),disabledTime:si=>en(si),value:$t.publish_time?Ct()($t.publish_time):"",onChange:(si,yi)=>{$t.publish_time=yi,($t.end_time==""||!$t.end_time)&&$t.unified_setting&&($t.end_time=Ct()(si).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Dn(Object.assign({},$t))}}))),We.createElement(Te.Z,{align:"middle",className:"pl30"},We.createElement(Tt.Z,null,"\u622A\u6B62\u65F6\u95F4"),We.createElement(Tt.Z,{className:"ml10"},We.createElement(Re.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Xe==null?void 0:Xe.allow_late)&&(Xe==null?void 0:Xe.homework_status.includes("\u5DF2\u622A\u6B62"))||Ft||(Xe==null?void 0:Xe.allow_late)&&Ct()()>=Ct()(Xe==null?void 0:Xe.end_time)||(0,Fe.Rm)()&&!((Se=Rn.AssistantObject.practice)!=null&&Se.can_publish),disabledDate:si=>Ge(si,Xe==null?void 0:Xe.course_end_date,$t.publish_time),disabledTime:si=>en(si,$t.publish_time),value:$t.end_time?Ct()($t.end_time):"",onChange:(si,yi)=>{$t.end_time=yi,Dn(Object.assign({},$t))}})))),!$t.unified_setting&&(gn==null?void 0:gn.length)>0&&We.createElement(Te.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},gn&&gn.map(function(si,yi){var or,xr,qi,Qr,mo,zr,on;return We.createElement(Tt.Z,{span:24,key:yi},We.createElement(Te.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:yi==(gn==null?void 0:gn.length)-1?"0px":"10px"}},We.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",yi+1),We.createElement(at.default,{disabled:Ft||((or=xt==null?void 0:xt.homework_status)!=null&&or.includes("\u672A\u53D1\u5E03")&&si.id||Ct()()<Ct()(si==null?void 0:si.publish_time)?!1:!!(si!=null&&si.publish_time))||(0,Fe.Rm)()&&!((xr=Rn.AssistantObject.practice)!=null&&xr.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:si.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Yt=>{var Qe;if((0,Fe.Rm)()&&!((Qe=Rn.AssistantObject.practice)!=null&&Qe.can_publish)){kt.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}gn[yi].group_name=Yt,gn[yi].group_id=si.group_id;const un=(0,ne.flattenDeep)(gn.map(Mt=>Mt.group_name)),In=bt.map(Mt=>{let ft=(Mt==null?void 0:Mt.group_name)||[];return Xt(jt({},Mt),{group_name:(0,ne.remove)(ft,fn=>un.includes(fn))})});_t(In),Tn(gn.slice())},maxTagCount:4,maxTagPlaceholder:Yt=>We.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ee(si,yi)},"+",Yt==null?void 0:Yt.length)},Xe.group_settings&&Xe.group_settings.map(function(Yt){if(!gn.map(un=>un.group_name).flat().includes(Yt.group_name))return We.createElement(Bt,{value:Yt.group_name,key:Yt.id},Yt.group_name)})),We.createElement("div",{className:"ml20"},We.createElement(_n,{size:"large",ranges:{\u6B64\u523B:[si.publish_time?Ct()(si.publish_time):Ct()(),Ct()()]},allowClear:!1,disabled:Ft||(Ct()()<=Ct()((Qr=pr((qi=si==null?void 0:si.group_id)==null?void 0:qi[0]))==null?void 0:Qr.publish_time)?!1:[!0,Ir((mo=si==null?void 0:si.group_id)==null?void 0:mo[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:Yt=>Ge(Yt,Xe==null?void 0:Xe.course_end_date),disabledTime:Yt=>en(Yt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ct()((0,se.U6)(),"HH:mm"),Ct()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[si.publish_time?Ct()(si.publish_time):void 0,si.end_time?Ct()(si.end_time):void 0],onChange:(Yt,Qe)=>{var un;if((0,Fe.Rm)()&&!((un=Rn.AssistantObject.practice)!=null&&un.can_publish)){kt.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}gn[yi].publish_time=Qe[0],!si.end_time&&Qe[0]?gn[yi].end_time=Ct()(Qe[0]).add(7,"days"):gn[yi].end_time=Qe[1],Tn([...gn])},onCalendarChange:(Yt,Qe,un)=>{if(Qe!=null&&Qe[0]&&!Qe[1]){const In=Ct()(Qe[0]).add(7,"days");gn[yi].publish_time=Qe[0],gn[yi].end_time=In,Tn([...gn])}}})),!Ft&&We.createElement("div",{style:{display:"flex",width:"50px"}},((zr=si==null?void 0:si.group_id)==null?void 0:zr.length)>1&&We.createElement(Pt.Z,{title:"\u89C4\u5219\u62C6\u5206"},We.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ee(si,yi)})),gn.length<((on=Xe==null?void 0:Xe.group_settings)==null?void 0:on.length)&&We.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Yt;if((0,Fe.Rm)()&&!((Yt=Rn.AssistantObject.practice)!=null&&Yt.can_publish)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Tn(gn.concat({}))}}),((si==null?void 0:si.publish_time)&&Ct()()<Ct()(si==null?void 0:si.publish_time)||!(si!=null&&si.publish_time))&&yi!=0&&We.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Yt=(0,ne.cloneDeep)(bt);Yt.forEach((Qe,un)=>{Qe.group_name&&(Qe.group_name=Qe.group_name.filter(In=>{var Mt;return!((Mt=gn[yi].group_name)!=null&&Mt.includes(In))}))}),gn=gn.filter((Qe,un)=>yi!==un),_t(Yt),Tn(gn.slice()),setTimeout(()=>Tn(gn.slice()),10)}}))))}))),We.createElement(Te.Z,null,We.createElement(Tt.Z,null,We.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",We.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"))),We.createElement(Tt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},We.createElement(rt.default,{checked:$t.allow_late,disabled:Ft||$i,onChange:si=>{var yi;if((0,Fe.Rm)()&&!((yi=Rn.AssistantObject.practice)!=null&&yi.can_late)){kt.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}si.target.checked&&Je.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:We.createElement("div",{style:{padding:10,background:"#f5f6f9"}},We.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"),We.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),We.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"))}),$t.allow_late=!$t.allow_late,bt==""&&_t([{late_penalty:5}]),Dn(Object.assign({},$t))}},We.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),($t==null?void 0:$t.allow_late)&&We.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},We.createElement("div",{style:{display:"flex"}},We.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),We.createElement(it.ZP.Group,{style:{marginLeft:"20px"},disabled:Ft||(Xe==null?void 0:Xe.anonymous_comment)||(Xe==null?void 0:Xe.allow_late),value:$t.unified_late,onChange:si=>{var yi;if((0,Fe.Rm)()&&!((yi=Rn.AssistantObject.practice)!=null&&yi.can_late)){kt.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}$t.unified_late=si.target.value,bt==""&&!si.target.value&&_t([{penalty_type:Pe.Q.Percent,late_penalty:20}]),Dn(jt({},$t))}},($t==null?void 0:$t.unified_setting)&&We.createElement(it.ZP,{value:!0,disabled:!(Xe!=null&&Xe.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((lt=Xe==null?void 0:Xe.group_settings)==null?void 0:lt.length)>0&&We.createElement(it.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),$t!=null&&$t.unified_late?We.createElement(We.Fragment,null,We.createElement(Te.Z,{align:"middle",style:{marginTop:"10px"}},We.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),We.createElement(Tt.Z,{className:"ml20"},We.createElement(Pe.Z,{disabled:Ft||eo,value:{type:$t.penalty_type,inputValue:$t.late_penalty},onChange:si=>{var yi;if((0,Fe.Rm)()&&!((yi=Rn.AssistantObject.practice)!=null&&yi.can_late)){kt.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}Dn(Xt(jt({},$t),{late_penalty:si.inputValue,penalty_type:si.type}))}})),We.createElement(Tt.Z,{flex:"1",className:"ml5"},We.createElement("span",{className:"c-grey-c ml10"},$t.penalty_type===Pe.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),We.createElement(Te.Z,{align:"middle",style:{marginTop:"15px"}},We.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),We.createElement(Tt.Z,{className:"ml20"},We.createElement(Re.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ft||eo,value:$t.late_time?Ct()($t.late_time):"",disabledDate:si=>Ge(si,Xe==null?void 0:Xe.course_end_date),onChange:(si,yi)=>{var or;if((0,Fe.Rm)()&&!((or=Rn.AssistantObject.practice)!=null&&or.can_late)){kt.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}$t.late_time=yi,Dn(Object.assign({},$t))}})))):bt.map(function(si,yi){var or;return We.createElement(Tt.Z,{span:24,key:yi},We.createElement(Te.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},We.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",yi+1),We.createElement(at.default,{disabled:Ft||!((or=xt==null?void 0:xt.homework_status)!=null&&or.includes("\u672A\u53D1\u5E03"))&&si.id||(Xe==null?void 0:Xe.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof si.group_name=="string"?[si.group_name]:si.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:xr=>{var qi;if((0,Fe.Rm)()&&!((qi=Rn.AssistantObject.practice)!=null&&qi.can_late)){kt.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}bt[yi].group_name=xr,bt[yi].group_id=si.group_id,_t(bt.slice())}},Xe.group_settings&&Xe.group_settings.map(function(xr){const qi=bt.map(mo=>mo.group_name).flat(),Qr=gn.map(mo=>mo.group_name).flat();if($t!=null&&$t.unified_setting){if(!qi.includes(xr.group_name))return We.createElement(Bt,{value:xr.group_name,key:xr.id},xr.group_name)}else if(Qr.includes(xr.group_name)&&!qi.includes(xr.group_name))return We.createElement(Bt,{value:xr.group_name,key:xr.id},xr.group_name)})),We.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),We.createElement(Pe.Z,{disabled:Ft||kr(si.id),value:{type:si.penalty_type,inputValue:si.late_penalty},onChange:xr=>{var qi;if((0,Fe.Rm)()&&!((qi=Rn.AssistantObject.practice)!=null&&qi.can_late)){kt.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}bt[yi].late_penalty=xr.inputValue,bt[yi].penalty_type=xr.type,_t([...bt])}}),We.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),We.createElement(Re.default,{size:"large",disabled:Ft||kr(si.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ct()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:xr=>Ge(xr,Xe==null?void 0:Xe.course_end_date),format:"YYYY-MM-DD HH:mm",value:si!=null&&si.late_time?Ct()(si.late_time):void 0,onChange:(xr,qi)=>{var Qr;if((0,Fe.Rm)()&&!((Qr=Rn.AssistantObject.practice)!=null&&Qr.can_late)){kt.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}bt[yi].late_time=qi,_t([...bt])}}),!Ft&&We.createElement("div",{style:{display:"flex",width:"50px"}},We.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var xr;if((0,Fe.Rm)()&&!((xr=Rn.AssistantObject.practice)!=null&&xr.can_late)){kt.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}_t(bt.concat({penalty_type:Pe.Q.Percent,late_penalty:20}))}}),yi>0&&!si.id&&We.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var xr;if((0,Fe.Rm)()&&!((xr=Rn.AssistantObject.practice)!=null&&xr.can_late)){kt.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}bt=bt.filter((qi,Qr)=>yi!==Qr),_t(bt.slice()),setTimeout(()=>_t(bt.slice()),10)}}))))})),!Ft&&We.createElement(We.Fragment,null,We.createElement(It.ZP,{type:"primary",size:"large",loading:mn,style:{width:"138px",marginTop:"30px"},onClick:()=>vr()},"\u4FDD\u5B58")),We.createElement(we.Z,{onConfirm:(si,yi)=>{gn.splice(si,0,...yi),gn.splice(si+yi.length,1);const or=(0,se.QE)([...gn]);Tn([...or])}}),We.createElement(Oe.Z,{resdata:ii,type:"shixun",okloading:mn,oktext:(ii==null?void 0:ii.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:si=>Nn(void 0,null,function*(){Jt(!0);let yi=yield(0,te.ZP)(`/api/courses/${Et.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Et.categoryId)]}});Jt(!1),(yi==null?void 0:yi.status)===0&&cr(fi)})}))};xn.ZP=(0,me.connect)(({shixunHomeworks:cn,classroomList:Kn,loading:nn,user:Rn})=>({shixunHomeworks:cn,classroomList:Kn,loading:nn.effects,user:Rn}))(rn)},82693:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(54580),at=ye(78241),kt=ye(43418),Je=ye(8591),it=ye(1710),Te=ye(89070),Tt=ye(3294),Pt=ye(1370),rt=ye(99064),It=ye(61186),gt=ye.n(It),Ct=ye(955),Fe=ye(59301),te=Object.defineProperty,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(Oe,He,We)=>He in Oe?te(Oe,He,{enumerable:!0,configurable:!0,writable:!0,value:We}):Oe[He]=We,me=(Oe,He)=>{for(var We in He||(He={}))he.call(He,We)&&ge(Oe,We,He[We]);if(ne)for(var We of ne(He))se.call(He,We)&&ge(Oe,We,He[We]);return Oe},Pe=(Oe,He,We)=>new Promise((Ve,ut)=>{var Ke=Ut=>{try{pt(We.next(Ut))}catch(Ht){ut(Ht)}},Wt=Ut=>{try{pt(We.throw(Ut))}catch(Ht){ut(Ht)}},pt=Ut=>Ut.done?Ve(Ut.value):Promise.resolve(Ut.value).then(Ke,Wt);pt((We=We.apply(Oe,He)).next())});const{Dragger:ke}=Re.default,we=({classroomList:Oe,dispatch:He,onOk:We})=>{const Ve=(0,Te.useParams)(),[ut]=at.default.useForm(),[Ke,Wt]=(0,be.useState)(),[pt,Ut]=(0,be.useState)(!1),Ht={height:100,onRemove:()=>{Wt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:jt=>Pe(void 0,null,function*(){return Wt(jt),!1})};return(0,be.useEffect)(()=>{ut.setFieldsValue({publish_time:gt()(gt()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:gt()(gt()(new Date((0,Ct.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Fe.createElement(kt.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Oe.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:pt},onOk:()=>Pe(void 0,null,function*(){ut.submit()}),onCancel:()=>{ut.resetFields(),He({type:"classroomList/setActionTabs",payload:{}})}},Fe.createElement(at.default,{form:ut,onFinish:jt=>Pe(void 0,null,function*(){var Xt,Nn,St;if(!(Ke!=null&&Ke.size)){Je.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ut(!0);let Ge=new FormData;Ge.append("type",Oe.actionTabs.type),Ge.append("file",Ke);let en;window.location.href.indexOf("exercise")>-1?en=`/api/exercises/${Oe.actionTabs.id}/supplement_score.json`:en=`/api/homework_commons/${Oe.actionTabs.id}/supplement_score.json`;let Hn=yield(0,rt.ZP)(en,{method:"post",body:Ge},!0);Ut(!1),(Hn==null?void 0:Hn.status)===0&&(We(),ut.resetFields(),He({type:"classroomList/setActionTabs",payload:{}}),((Nn=(Xt=Hn==null?void 0:Hn.data)==null?void 0:Xt.fail)==null?void 0:Nn.length)>0&&kt.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Fe.createElement(it.default,{pagination:!1,dataSource:(St=Hn==null?void 0:Hn.data)==null?void 0:St.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,Ct.FH)("",Tt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Oe.actionTabs.type}`)}}))})},Fe.createElement(at.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Oe.actionTabs.name),Fe.createElement(at.default.Item,{style:{marginBottom:0},label:Fe.createElement("div",null,Fe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Fe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Fe.createElement("div",null,Fe.createElement("a",{download:"\u6A21\u7248.xlsx",className:Pt.Z.downloadbutton,href:Tt.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Oe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Fe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Fe.createElement(at.default.Item,{style:{marginBottom:0}},Fe.createElement(ke,me({},Ht),Fe.createElement("a",{className:Pt.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Fe.createElement("br",null),Fe.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"))))))};xn.Z=(0,Te.connect)(({classroomList:Oe})=>({classroomList:Oe}))(we)},59437:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return rt}});var be=ye(59301),Re=ye(92832),at=ye(24905),kt=ye(95237),Je={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Te=ye(8797),Tt=(It,gt,Ct)=>new Promise((Fe,te)=>{var ne=ge=>{try{se(Ct.next(ge))}catch(me){te(me)}},he=ge=>{try{se(Ct.throw(ge))}catch(me){te(me)}},se=ge=>ge.done?Fe(ge.value):Promise.resolve(ge.value).then(ne,he);se((Ct=Ct.apply(It,gt)).next())}),rt=({data:It,value:gt=[],handleChangePage:Ct,className:Fe="",setSelectedRowKeys:te,selectedRowKeys:ne,onChange:he=()=>{}})=>{const[se,ge]=(0,be.useState)([]),[me,Pe]=(0,be.useState)([]),[ke,we]=(0,be.useState)([]);let[Oe,He]=(0,be.useState)(1),[We,Ve]=(0,be.useState)();return(0,be.useEffect)(()=>{ge(It),Pe([]),we([])},[It]),(0,be.useEffect)(()=>{te&&(Pe(ne),we(ne))},[ne]),be.createElement("div",{className:`flex justify-between w-full ${Fe}`},be.createElement("div",{className:Je.leftdiv},be.createElement(Re.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:ut=>Tt(void 0,null,function*(){ge(It.filter(Ke=>{var Wt;return(Wt=Ke==null?void 0:Ke.name)==null?void 0:Wt.includes(ut.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),se.length===0&&be.createElement(Te.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),be.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},be.createElement(at.default.Group,{value:me.map(ut=>`${ut.id}`),onChange:ut=>{te(se.filter(Ke=>ut.includes(`${Ke.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},se.map((ut,Ke)=>be.createElement(kt.Z,{key:ut.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},be.createElement(at.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:ut.is_published,value:`${ut.id}`},be.createElement("div",{className:Je.listClass},be.createElement("span",{className:Je.spantitle,style:{width:ut.is_published?"108px":"170px"}},ut.name),ut.is_published&&be.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),be.createElement("div",{className:Je.rightdiv},be.createElement(Re.default.Search,{onChange:ut=>{we(me.filter(Ke=>Ke.name.includes(ut.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ke.length===0&&be.createElement(Te.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ke.length>0&&be.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},be.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ke.map((ut,Ke)=>be.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:ut.id},be.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},ut.name),be.createElement("img",{src:it,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{te(me.filter(Wt=>`${Wt.id}`!=`${ut.id}`))}})))))))}},38233:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return he}});var be=ye(59301),Re=ye(89070),at=ye(5083),kt=ye(43418),Je=ye(92832),it=ye(8591),Te=ye(95237),Tt=ye(43604),Pt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},rt=ye(61186),It=ye.n(rt),gt=ye(955),Ct=ye(8797),Fe=ye(59301);const{RangePicker:te}=at.default,ne=({dispatch:se,classroomList:ge,onConfirm:me})=>{const[Pe,ke]=(0,be.useState)([]),[we,Oe]=(0,be.useState)([]),[He,We]=(0,be.useState)(""),[Ve,ut]=(0,be.useState)([!1,!1]);(0,be.useEffect)(()=>{var pt,Ut,Ht,jt;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((pt=ge.actionTabs)==null?void 0:pt.rangePickerDisabled),(Ut=ge.actionTabs)!=null&&Ut.rangePickerDisabled?ut((Ht=ge.actionTabs)==null?void 0:Ht.rangePickerDisabled):ut([!1,!1]);let Xt=ge.actionTabs.data,Nn=(jt=Xt==null?void 0:Xt.group_name)==null?void 0:jt.map((St,Ge)=>{var en;return{group_id:Xt==null?void 0:Xt.group_id[Ge],group_name:Xt==null?void 0:Xt.group_name[Ge],is_admin:Xt==null?void 0:Xt.is_admin,end_time:Xt==null?void 0:Xt.end_time,publish_time:Array.isArray(Xt==null?void 0:Xt.publish_time)?(en=Xt==null?void 0:Xt.publish_time)==null?void 0:en[0]:Xt==null?void 0:Xt.publish_time}});Nn&&(ke([...Nn]),Oe([...Nn]))}},[ge.actionTabs]);const Ke=()=>{se({type:"classroomList/setActionTabs",payload:{}}),We("")},Wt=pt=>{if(pt){const Ut=we==null?void 0:we.filter(Ht=>{var jt,Xt;return(Xt=(jt=Ht==null?void 0:Ht.group_name)==null?void 0:jt.toLowerCase())==null?void 0:Xt.includes(pt==null?void 0:pt.toLowerCase())});ke(Ut)}else ke(we)};return Fe.createElement(kt.default,{width:980,title:Fe.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Fe.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Fe.createElement("span",{className:Pt.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")),Fe.createElement(Je.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:He,onChange:pt=>{We(pt.target.value.trim()),Wt(pt.target.value.trim())}})),centered:!0,maskClosable:!1,open:ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Ke(),onOk:()=>{var pt;if(we.some(Ht=>!Ht.end_time||!Ht.publish_time)){it.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}me((pt=ge.actionTabs)==null?void 0:pt.index,we),Ke()}},Fe.createElement("div",{className:Pt.modal_con},Fe.createElement(Te.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Pe==null?void 0:Pe.length)>0?Pe.map(function(pt,Ut){return Fe.createElement(Tt.Z,{span:24,key:Ut},Fe.createElement(Te.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ut==(Pe==null?void 0:Pe.length)-1?"0px":"10px"}},Fe.createElement("div",{className:Pt.multiple_select,title:pt==null?void 0:pt.group_name},pt==null?void 0:pt.group_name),Fe.createElement("div",{className:"ml20"},Fe.createElement(te,{size:"large",allowClear:!1,disabled:Ve,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:Ht=>{var jt;return(0,gt.Q8)(Ht,(jt=ge.actionTabs)==null?void 0:jt.disabledDate)},disabledTime:Ht=>(0,gt.d0)(Ht),showTime:{showNow:!0,format:"HH:mm",defaultValue:[It()((0,gt.U6)(),"HH:mm"),It()((0,gt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(pt==null?void 0:pt.publish_time)&&[It()(pt==null?void 0:pt.publish_time),pt!=null&&pt.end_time?It()(pt==null?void 0:pt.end_time):void 0],onChange:(Ht,jt)=>{Pe[Ut].publish_time=jt[0],Pe[Ut].end_time=jt[1],ke([...Pe]),we.forEach(Xt=>{Xt.group_id===(pt==null?void 0:pt.group_id)&&(Xt.publish_time=jt[0],Xt.end_time=jt[1])}),Oe([...we])},onCalendarChange:(Ht,jt,Xt)=>{if(jt!=null&&jt[0]&&!jt[1]){const Nn=It()(jt[0]).add(7,"days");Pe[Ut].publish_time=jt[0],Pe[Ut].end_time=Nn,ke([...Pe]),we.forEach(St=>{St.group_id===(pt==null?void 0:pt.group_id)&&(St.publish_time=jt[0],St.end_time=Nn)}),Oe([...we])}}})),Ve[0]?Fe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Fe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Pe.splice(Ut,1),ke([...Pe]),we.forEach((Ht,jt)=>{Ht.group_id===(pt==null?void 0:pt.group_id)&&we.splice(jt,1)}),Oe([...we])}})))}):Fe.createElement(Ct.Z,null))))};var he=(0,Re.connect)(({classroomList:se})=>({classroomList:se}))(ne)},24768:function(On,xn,ye){"use strict";ye.d(xn,{AL:function(){return Pe},Iy:function(){return It},Qv:function(){return Fe},ez:function(){return me},jb:function(){return gt}});var be=ye(32834),Re=ye.n(be),at=ye(11690),kt=ye.n(at);let Je=1;function it(We,Ve){const ut=We.match(/^(\s+)(?:```)/);if(ut===null)return Ve;const Ke=ut[1];return Ve.split(`
|
|
|
`).map(Wt=>{const pt=Wt.match(/^\s+/);if(pt===null)return Wt;const[Ut]=pt;return Ut.length>=Ke.length?Wt.slice(Ke.length):Wt}).join(`
|
|
|
`)}let Te=[],Tt=["<ul>"];const Pt=new(Re()).Renderer,rt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function It(){Te.length=0,Tt=["<ul>"]}const gt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ct(We,Ve,ut,Ke){if(Ve>=We.length||We[Ve].level<=ut)return Ve;var Wt=We[Ve];Ke.push("<li><a href='#"+Je+Wt.anchor+"'>"+Wt.text+"</a>"),Ve++;var pt=[];return Ve=Ct(We,Ve,Wt.level,pt),pt.length>0&&(Ke.push("<ul>"),pt.forEach(function(Ut){Ke.push(Ut)}),Ke.push("</ul>")),Ke.push("</li>"),Ve=Ct(We,Ve,ut,Ke),Ve}function Fe(){return Ct(Te,0,0,Tt),Tt.push("</ul>"),Tt.join("")}const te={heading(We){const Ve=rt.exec(We);if(Je+=1,Ve)return{type:"heading",raw:Ve[0],depth:Ve[1].length,text:Ve[2]}},fences(We){const Ve=this.rules.block.fences.exec(We);if(Ve){const ut=Ve[0];let Ke=it(ut,Ve[3]||"");const Wt=Ve[2]?Ve[2].trim():Ve[2];if(["latex","katex","math"].indexOf(Wt)>=0){const pt=se(),Ut=Ke;Ke=pt,ge[pt]={type:"block",expression:Ut}}return{type:"code",raw:ut,lang:Wt,text:Ke}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function me(){return ge}function Pe(){he=0,ge={}}function ke(We){return We=We.replace(ne,(Ve,ut)=>{const Ke=se();return ge[Ke]={type:"inline",expression:ut},Ke}),We}const we=Pt.listitem;Pt.listitem=function(We){return we(ke(We))};const Oe=Pt.paragraph;Pt.paragraph=function(We){return Oe(ke(We))};const He=Pt.tablecell;Pt.tablecell=function(We,Ve){return He(ke(We),Ve)},Pt.code=function(We,Ve,ut){const Ke=(Ve||"").match(/\S*/)[0];return Ke?["latex","katex","math"].indexOf(Ke)>=0?`<p class='editormd-tex'>${We}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ve}">${ut?We:(0,at.escape)(We,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ut?We:(0,at.escape)(We,!0))+"</code></pre>"},Pt.heading=function(We,Ve,ut){let Ke=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Te.push({anchor:Ke,level:Ve,text:We}),"<h"+Ve+' id="'+Je+Ke+'">'+We+"</h"+Ve+">"},Re().setOptions({silent:!0,gfm:!0,pedantic:!1}),Re().use({tokenizer:te,renderer:Pt}),xn.ZP=Re()},46474:function(On,xn,ye){"use strict";ye.d(xn,{rX:function(){return ke},pW:function(){return we},gy:function(){return Oe},xY:function(){return Pe},O5:function(){return me},hs:function(){return ne},tJ:function(){return Fe},o1:function(){return te},Rd:function(){return ge}});var be=ye(89070),Re=ye(43418),at=ye(28103),kt=ye(8591),Je=ye(24065),it=ye(955),Te=ye(87169),Tt=ye(25510),Pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",rt=ye.p+"static/newqrcode.a8740efb.png",It=ye(32637),gt=ye(59301),Ct=(He,We,Ve)=>new Promise((ut,Ke)=>{var Wt=Ht=>{try{Ut(Ve.next(Ht))}catch(jt){Ke(jt)}},pt=Ht=>{try{Ut(Ve.throw(Ht))}catch(jt){Ke(jt)}},Ut=Ht=>Ht.done?ut(Ht.value):Promise.resolve(Ht.value).then(Wt,pt);Ut((Ve=Ve.apply(He,We)).next())});const Fe=(He,We=!1,Ve=!1,ut="",Ke=!1)=>!!(te(He)&&he(He,We,Ve,ut,Ke)),te=He=>(0,Je.bg)()?!0:(He({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=He=>{var We,Ve,ut;const{user:Ke}=(0,be.getDvaApp)()._store.getState();(0,Je.bg)()&&!((Ve=(We=Ke==null?void 0:Ke.userInfo)==null?void 0:We.course)!=null&&Ve.course_public)&&!((ut=Ke==null?void 0:Ke.userInfo)!=null&&ut.profile_completed)&&He({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},he=(He,We=!1,Ve=!0,ut="",Ke=!1)=>{var Wt;const{user:pt}=(0,be.getDvaApp)()._store.getState();return(Wt=pt.userInfo)!=null&&Wt.profile_completed?!0:(Ve?He({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:ut,isCurrentPage:Ke}}):Re.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,it.xg)("/account/profile/edit"),se()}}),!1)},se=()=>{Re.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()}})},ge=()=>{Re.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:gt.createElement("div",{style:{textAlign:"center"}},gt.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"),gt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:It}),gt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},me=()=>{var He;const{user:We}=(0,be.getDvaApp)()._store.getState();return(He=We.userInfo)!=null&&He.professional_certification?!0:(Re.default.confirm({title:"\u63D0\u793A",centered:!0,content:gt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,it.xg)("/account/certification")}}),!1)},Pe=()=>(0,Je.V9)()?!0:(Re.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:gt.createElement("div",{className:"tc",style:{marginLeft:-38}},gt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),gt.createElement("img",{src:rt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ke=(He,We)=>He?!0:(Re.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:gt.createElement("div",null,gt.createElement("p",null,We||"\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"),gt.createElement("div",{style:{marginLeft:"110px"}},gt.createElement("img",{src:Pt,width:200}),gt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,it.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),we=He=>{Re.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:gt.createElement("div",null,gt.createElement("div",null,gt.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"),gt.createElement(at.Z,null),gt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",gt.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 ",gt.createElement("a",null,He),"\u5929\u3002"),gt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",gt.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")),gt.createElement("div",{style:{textAlign:"center",marginTop:30}},gt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Oe=(He,We="")=>{const{shixunsDetail:{detail:Ve}}=(0,be.getDvaApp)()._store.getState();if((Ve==null?void 0:Ve.public)===2||(Ve==null?void 0:Ve.public)===1||(Ve==null?void 0:Ve.shixun_status)===3){let ut="";return(Ve==null?void 0:Ve.public)===2&&(ut="\u5DF2\u516C\u5F00"),(Ve==null?void 0:Ve.public)===1&&(ut="\u5F85\u5BA1\u6838"),(Ve==null?void 0:Ve.shixun_status)===3&&(ut="\u5DF2\u5173\u95ED"),Re.default.info({centered:!0,icon:gt.createElement(Te.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:gt.createElement("div",{className:"tc",style:{marginLeft:-38}},gt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},gt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",ut,"\uFF0C",We,"\u3002"),gt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),gt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ve==null?void 0:Ve.shixun_status)===2?(Re.default.confirm({centered:!0,icon:gt.createElement(Te.Z,null),title:"\u63D0\u793A",content:gt.createElement("div",null,gt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",We,"\u3002"),gt.createElement("br",null),gt.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:()=>{Re.default.confirm({width:440,centered:!0,icon:gt.createElement(Te.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:()=>Ct(void 0,null,function*(){(yield He({type:"shixunsDetail/cancelRelease",payload:{id:Ve==null?void 0:Ve.identifier}})).status!==401&&(kt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),He({type:"shixunsDetail/getShixunsDetail",payload:{id:Ve==null?void 0:Ve.identifier}}),He({type:"practiceSetting/getCommonData",payload:{id:Ve==null?void 0:Ve.identifier}}))})})}}),!0):!1}},50371:function(On,xn){"use strict";function ye(){const be=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Re=1;Re<arguments.length;Re++){const at=Re<0||arguments.length<=Re?void 0:arguments[Re];at&&Object.keys(at).forEach(kt=>{const Je=at[kt];Je!==void 0&&(be[kt]=Je)})}return be}xn.Z=ye},13845:function(On,xn,ye){"use strict";ye.d(xn,{F:function(){return be},Z:function(){return Re}});function be(at){return at!=null&&at===at.window}function Re(at,kt){var Je,it;if(typeof window=="undefined")return 0;const Te=kt?"scrollTop":"scrollLeft";let Tt=0;return be(at)?Tt=at[kt?"pageYOffset":"pageXOffset"]:at instanceof Document?Tt=at.documentElement[Te]:(at instanceof HTMLElement||at)&&(Tt=at[Te]),at&&!be(at)&&typeof Tt!="number"&&(Tt=(it=((Je=at.ownerDocument)!==null&&Je!==void 0?Je:at).documentElement)===null||it===void 0?void 0:it[Te]),Tt}},56762:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Re}});var be=ye(59301);function Re(){const[,at]=be.useReducer(kt=>kt+1,0);return at}},68031:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return kt}});var be=ye(16089);function Re(Je,it,Te,Tt){const Pt=Te-it;return Je/=Tt/2,Je<1?Pt/2*Je*Je*Je+it:Pt/2*((Je-=2)*Je*Je+2)+it}var at=ye(13845);function kt(Je){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Te=()=>window,callback:Tt,duration:Pt=450}=it,rt=Te(),It=(0,at.Z)(rt,!0),gt=Date.now(),Ct=()=>{const te=Date.now()-gt,ne=Re(te>Pt?Pt:te,It,Je,Pt);(0,at.F)(rt)?rt.scrollTo(window.pageXOffset,ne):rt instanceof Document||rt.constructor.name==="HTMLDocument"?rt.documentElement.scrollTop=ne:rt.scrollTop=ne,te<Pt?(0,be.Z)(Ct):typeof Tt=="function"&&Tt()};(0,be.Z)(Ct)}},24905:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return Oe}});var be=ye(92310),Re=ye.n(be),at=ye(5630),kt=ye(59301),Je=ye(36355),it=ye(1684),Te=ye(32441),Pt=kt.createContext(null),rt=ye(98447),It=ye(14088),gt=ye(4572),Ct=function(He,We){var Ve={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&We.indexOf(ut)<0&&(Ve[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ut=Object.getOwnPropertySymbols(He);Ke<ut.length;Ke++)We.indexOf(ut[Ke])<0&&Object.prototype.propertyIsEnumerable.call(He,ut[Ke])&&(Ve[ut[Ke]]=He[ut[Ke]]);return Ve};const Fe=(He,We)=>{var Ve;const{prefixCls:ut,className:Ke,rootClassName:Wt,children:pt,indeterminate:Ut=!1,style:Ht,onMouseEnter:jt,onMouseLeave:Xt,skipGroup:Nn=!1,disabled:St}=He,Ge=Ct(He,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:en,direction:Hn,checkbox:_n}=kt.useContext(Je.E_),Bt=kt.useContext(Pt),{isFormItemInput:rn}=kt.useContext(Te.aM),cn=kt.useContext(it.Z),Kn=(Ve=(Bt==null?void 0:Bt.disabled)||St)!==null&&Ve!==void 0?Ve:cn,nn=kt.useRef(Ge.value);kt.useEffect(()=>{Bt==null||Bt.registerValue(Ge.value)},[]),kt.useEffect(()=>{if(!Nn)return Ge.value!==nn.current&&(Bt==null||Bt.cancelValue(nn.current),Bt==null||Bt.registerValue(Ge.value),nn.current=Ge.value),()=>Bt==null?void 0:Bt.cancelValue(Ge.value)},[Ge.value]);const Rn=en("checkbox",ut),[vt,Yn]=(0,rt.ZP)(Rn),ni=Object.assign({},Ge);Bt&&!Nn&&(ni.onChange=function(){Ge.onChange&&Ge.onChange.apply(Ge,arguments),Bt.toggleOption&&Bt.toggleOption({label:pt,value:Ge.value})},ni.name=Bt.name,ni.checked=Bt.value.includes(Ge.value));const je=Re()(`${Rn}-wrapper`,{[`${Rn}-rtl`]:Hn==="rtl",[`${Rn}-wrapper-checked`]:ni.checked,[`${Rn}-wrapper-disabled`]:Kn,[`${Rn}-wrapper-in-form-item`]:rn},_n==null?void 0:_n.className,Ke,Wt,Yn),Me=Re()({[`${Rn}-indeterminate`]:Ut},gt.A,Yn),xe=Ut?"mixed":void 0;return vt(kt.createElement(It.Z,{component:"Checkbox",disabled:Kn},kt.createElement("label",{className:je,style:Object.assign(Object.assign({},_n==null?void 0:_n.style),Ht),onMouseEnter:jt,onMouseLeave:Xt},kt.createElement(at.Z,Object.assign({"aria-checked":xe},ni,{prefixCls:Rn,className:Me,disabled:Kn,ref:We})),pt!==void 0&&kt.createElement("span",null,pt))))};var ne=kt.forwardRef(Fe),he=ye(80702),se=ye(2738),ge=function(He,We){var Ve={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&We.indexOf(ut)<0&&(Ve[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ut=Object.getOwnPropertySymbols(He);Ke<ut.length;Ke++)We.indexOf(ut[Ke])<0&&Object.prototype.propertyIsEnumerable.call(He,ut[Ke])&&(Ve[ut[Ke]]=He[ut[Ke]]);return Ve};const me=(He,We)=>{const{defaultValue:Ve,children:ut,options:Ke=[],prefixCls:Wt,className:pt,rootClassName:Ut,style:Ht,onChange:jt}=He,Xt=ge(He,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Nn,direction:St}=kt.useContext(Je.E_),[Ge,en]=kt.useState(Xt.value||Ve||[]),[Hn,_n]=kt.useState([]);kt.useEffect(()=>{"value"in Xt&&en(Xt.value||[])},[Xt.value]);const Bt=kt.useMemo(()=>Ke.map(Ne=>typeof Ne=="string"||typeof Ne=="number"?{label:Ne,value:Ne}:Ne),[Ke]),rn=Ne=>{_n(Be=>Be.filter(Se=>Se!==Ne))},cn=Ne=>{_n(Be=>[].concat((0,he.Z)(Be),[Ne]))},Kn=Ne=>{const Be=Ge.indexOf(Ne.value),Se=(0,he.Z)(Ge);Be===-1?Se.push(Ne.value):Se.splice(Be,1),"value"in Xt||en(Se),jt==null||jt(Se.filter(lt=>Hn.includes(lt)).sort((lt,Et)=>{const Xe=Bt.findIndex(wt=>wt.value===lt),tt=Bt.findIndex(wt=>wt.value===Et);return Xe-tt}))},nn=Nn("checkbox",Wt),Rn=`${nn}-group`,[vt,Yn]=(0,rt.ZP)(nn),ni=(0,se.Z)(Xt,["value","disabled"]),je=Ke.length?Bt.map(Ne=>kt.createElement(ne,{prefixCls:nn,key:Ne.value.toString(),disabled:"disabled"in Ne?Ne.disabled:Xt.disabled,value:Ne.value,checked:Ge.includes(Ne.value),onChange:Ne.onChange,className:`${Rn}-item`,style:Ne.style,title:Ne.title},Ne.label)):ut,Me={toggleOption:Kn,value:Ge,disabled:Xt.disabled,name:Xt.name,registerValue:cn,cancelValue:rn},xe=Re()(Rn,{[`${Rn}-rtl`]:St==="rtl"},pt,Ut,Yn);return vt(kt.createElement("div",Object.assign({className:xe,style:Ht},ni,{ref:We}),kt.createElement(Pt.Provider,{value:Me},je)))},Pe=kt.forwardRef(me);var ke=kt.memo(Pe);const we=ne;we.Group=ke,we.__ANT_CHECKBOX=!0;var Oe=we},98447:function(On,xn,ye){"use strict";ye.d(xn,{C2:function(){return Je}});var be=ye(17313),Re=ye(37613),at=ye(83116);const kt=it=>{const{checkboxCls:Te}=it,Tt=`${Te}-wrapper`;return[{[`${Te}-group`]:Object.assign(Object.assign({},(0,be.Wf)(it)),{display:"inline-flex",flexWrap:"wrap",columnGap:it.marginXS,[`> ${it.antCls}-row`]:{flex:1}}),[Tt]:Object.assign(Object.assign({},(0,be.Wf)(it)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Tt}`]:{marginInlineStart:0},[`&${Tt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Te]:Object.assign(Object.assign({},(0,be.Wf)(it)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:it.borderRadiusSM,alignSelf:"center",[`${Te}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Te}-inner`]:Object.assign({},(0,be.oN)(it))},[`${Te}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:it.checkboxSize,height:it.checkboxSize,direction:"ltr",backgroundColor:it.colorBgContainer,border:`${it.lineWidth}px ${it.lineType} ${it.colorBorder}`,borderRadius:it.borderRadiusSM,borderCollapse:"separate",transition:`all ${it.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:it.checkboxSize/14*5,height:it.checkboxSize/14*8,border:`${it.lineWidthBold}px solid ${it.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${it.motionDurationFast} ${it.motionEaseInBack}, opacity ${it.motionDurationFast}`}},"& + span":{paddingInlineStart:it.paddingXS,paddingInlineEnd:it.paddingXS}})},{[`
|
|
|
${Tt}:not(${Tt}-disabled),
|
|
|
${Te}:not(${Te}-disabled)
|
|
|
`]:{[`&:hover ${Te}-inner`]:{borderColor:it.colorPrimary}},[`${Tt}:not(${Tt}-disabled)`]:{[`&:hover ${Te}-checked:not(${Te}-disabled) ${Te}-inner`]:{backgroundColor:it.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Te}-checked:not(${Te}-disabled):after`]:{borderColor:it.colorPrimaryHover}}},{[`${Te}-checked`]:{[`${Te}-inner`]:{backgroundColor:it.colorPrimary,borderColor:it.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${it.motionDurationMid} ${it.motionEaseOutBack} ${it.motionDurationFast}`}}},[`
|
|
|
${Tt}-checked:not(${Tt}-disabled),
|
|
|
${Te}-checked:not(${Te}-disabled)
|
|
|
`]:{[`&:hover ${Te}-inner`]:{backgroundColor:it.colorPrimaryHover,borderColor:"transparent"}}},{[Te]:{"&-indeterminate":{[`${Te}-inner`]:{backgroundColor:it.colorBgContainer,borderColor:it.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:it.fontSizeLG/2,height:it.fontSizeLG/2,backgroundColor:it.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Tt}-disabled`]:{cursor:"not-allowed"},[`${Te}-disabled`]:{[`&, ${Te}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Te}-inner`]:{background:it.colorBgContainerDisabled,borderColor:it.colorBorder,"&:after":{borderColor:it.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:it.colorTextDisabled},[`&${Te}-indeterminate ${Te}-inner::after`]:{background:it.colorTextDisabled}}}]};function Je(it,Te){const Tt=(0,Re.TS)(Te,{checkboxCls:`.${it}`,checkboxSize:Te.controlInteractiveSize});return[kt(Tt)]}xn.ZP=(0,at.Z)("Checkbox",(it,Te)=>{let{prefixCls:Tt}=Te;return[Je(Tt,it)]})},93891:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(36355),at=ye(64165);const kt=Je=>{const{componentName:it}=Je,{getPrefixCls:Te}=(0,be.useContext)(Re.E_),Tt=Te("empty");switch(it){case"Table":case"List":return be.createElement(at.Z,{image:at.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return be.createElement(at.Z,{image:at.Z.PRESENTED_IMAGE_SIMPLE,className:`${Tt}-small`});default:return be.createElement(at.Z,null)}};xn.Z=kt},5083:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return Us}});var be=ye(61186),Re=ye.n(be),at=ye(48736),kt=ye(90111),Je=ye.n(kt),it=ye(58319),Te=ye.n(it),Tt=ye(23250),Pt=ye.n(Tt),rt=ye(74959),It=ye.n(rt),gt=ye(10238),Ct=ye.n(gt),Fe=ye(33656),te=ye.n(Fe);Re().extend(te()),Re().extend(Ct()),Re().extend(Je()),Re().extend(Te()),Re().extend(Pt()),Re().extend(It()),Re().extend(function(Ie,Ye){var nt=Ye.prototype,zt=nt.format;nt.format=function(pn){var Sn=(pn||"").replace("Wo","wo");return zt.bind(this)(Sn)}});var ne={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"},he=function(Ye){var nt=ne[Ye];return nt||Ye.split("_")[0]},se=function(){(0,at.ET)(!1,"Not match any format. Please help to fire a issue about this.")},ge={getNow:function(){return Re()()},getFixedDate:function(Ye){return Re()(Ye,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ye){return Ye.endOf("month")},getWeekDay:function(Ye){var nt=Ye.locale("en");return nt.weekday()+nt.localeData().firstDayOfWeek()},getYear:function(Ye){return Ye.year()},getMonth:function(Ye){return Ye.month()},getDate:function(Ye){return Ye.date()},getHour:function(Ye){return Ye.hour()},getMinute:function(Ye){return Ye.minute()},getSecond:function(Ye){return Ye.second()},addYear:function(Ye,nt){return Ye.add(nt,"year")},addMonth:function(Ye,nt){return Ye.add(nt,"month")},addDate:function(Ye,nt){return Ye.add(nt,"day")},setYear:function(Ye,nt){return Ye.year(nt)},setMonth:function(Ye,nt){return Ye.month(nt)},setDate:function(Ye,nt){return Ye.date(nt)},setHour:function(Ye,nt){return Ye.hour(nt)},setMinute:function(Ye,nt){return Ye.minute(nt)},setSecond:function(Ye,nt){return Ye.second(nt)},isAfter:function(Ye,nt){return Ye.isAfter(nt)},isValidate:function(Ye){return Ye.isValid()},locale:{getWeekFirstDay:function(Ye){return Re()().locale(he(Ye)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ye,nt){return nt.locale(he(Ye)).weekday(0)},getWeek:function(Ye,nt){return nt.locale(he(Ye)).week()},getShortWeekDays:function(Ye){return Re()().locale(he(Ye)).localeData().weekdaysMin()},getShortMonths:function(Ye){return Re()().locale(he(Ye)).localeData().monthsShort()},format:function(Ye,nt,zt){return nt.locale(he(Ye)).format(zt)},parse:function(Ye,nt,zt){for(var Zt=he(Ye),pn=0;pn<zt.length;pn+=1){var Sn=zt[pn],Zn=nt;if(Sn.includes("wo")||Sn.includes("Wo")){for(var Xn=Zn.split("-")[0],hi=Zn.split("-")[1],Ii=Re()(Xn,"YYYY").startOf("year").locale(Zt),li=0;li<=52;li+=1){var Li=Ii.add(li,"week");if(Li.format("Wo")===hi)return Li}return se(),null}var oi=Re()(Zn,Sn,!0).locale(Zt);if(oi.isValid())return oi}return nt&&se(),null}}},me=ge,Pe=ye(53487),ke=ye(72308),we=ye(59301),Oe={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"},He=Oe,We=ye(7657),Ve=function(Ye,nt){return we.createElement(We.Z,(0,ke.Z)({},Ye,{ref:nt,icon:He}))},ut=we.forwardRef(Ve),Ke=ut,Wt={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"},pt=Wt,Ut=function(Ye,nt){return we.createElement(We.Z,(0,ke.Z)({},Ye,{ref:nt,icon:pt}))},Ht=we.forwardRef(Ut),jt=Ht,Xt=ye(19248),Nn={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"},St=Nn,Ge=function(Ye,nt){return we.createElement(We.Z,(0,ke.Z)({},Ye,{ref:nt,icon:St}))},en=we.forwardRef(Ge),Hn=en,_n=ye(92310),Bt=ye.n(_n),rn=ye(96949),cn=ye(55090),Kn=ye(80237),nn=ye(77205),Rn=ye(38793),vt=ye(49618),Yn=ye(77321),ni=ye(52487),je=ye(18929),Me=ye(26112),xe=ye(80547),Ne=ye(13697),Be=10,Se=Be*10,lt=7;function Et(Ie,Ye){if(!Ie&&!Ye)return!0;if(!Ie||!Ye)return!1}function Xe(Ie,Ye,nt){var zt=Et(Ye,nt);if(typeof zt=="boolean")return zt;var Zt=Math.floor(Ie.getYear(Ye)/10),pn=Math.floor(Ie.getYear(nt)/10);return Zt===pn}function tt(Ie,Ye,nt){var zt=Et(Ye,nt);return typeof zt=="boolean"?zt:Ie.getYear(Ye)===Ie.getYear(nt)}function wt(Ie,Ye){var nt=Math.floor(Ie.getMonth(Ye)/3);return nt+1}function xt(Ie,Ye,nt){var zt=Et(Ye,nt);return typeof zt=="boolean"?zt:tt(Ie,Ye,nt)&&wt(Ie,Ye)===wt(Ie,nt)}function ct(Ie,Ye,nt){var zt=Et(Ye,nt);return typeof zt=="boolean"?zt:tt(Ie,Ye,nt)&&Ie.getMonth(Ye)===Ie.getMonth(nt)}function Ft(Ie,Ye,nt){var zt=Et(Ye,nt);return typeof zt=="boolean"?zt:Ie.getYear(Ye)===Ie.getYear(nt)&&Ie.getMonth(Ye)===Ie.getMonth(nt)&&Ie.getDate(Ye)===Ie.getDate(nt)}function Pn(Ie,Ye,nt){var zt=Et(Ye,nt);return typeof zt=="boolean"?zt:Ie.getHour(Ye)===Ie.getHour(nt)&&Ie.getMinute(Ye)===Ie.getMinute(nt)&&Ie.getSecond(Ye)===Ie.getSecond(nt)}function mn(Ie,Ye,nt,zt){var Zt=Et(nt,zt);return typeof Zt=="boolean"?Zt:tt(Ie,nt,zt)&&Ie.locale.getWeek(Ye,nt)===Ie.locale.getWeek(Ye,zt)}function Jt(Ie,Ye,nt){return Ft(Ie,Ye,nt)&&Pn(Ie,Ye,nt)}function gn(Ie,Ye,nt,zt){return!Ye||!nt||!zt?!1:!Ft(Ie,Ye,zt)&&!Ft(Ie,nt,zt)&&Ie.isAfter(zt,Ye)&&Ie.isAfter(nt,zt)}function Tn(Ie,Ye,nt){var zt=Ye.locale.getWeekFirstDay(Ie),Zt=Ye.setDate(nt,1),pn=Ye.getWeekDay(Zt),Sn=Ye.addDate(Zt,zt-pn);return Ye.getMonth(Sn)===Ye.getMonth(nt)&&Ye.getDate(Sn)>1&&(Sn=Ye.addDate(Sn,-7)),Sn}function bt(Ie,Ye,nt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ye){case"year":return nt.addYear(Ie,zt*10);case"quarter":case"month":return nt.addYear(Ie,zt);default:return nt.addMonth(Ie,zt)}}function _t(Ie,Ye){var nt=Ye.generateConfig,zt=Ye.locale,Zt=Ye.format;return typeof Zt=="function"?Zt(Ie):nt.locale.format(zt.locale,Ie,Zt)}function $t(Ie,Ye){var nt=Ye.generateConfig,zt=Ye.locale,Zt=Ye.formatList;return!Ie||typeof Zt[0]=="function"?null:nt.locale.parse(zt.locale,Ie,Zt)}function Dn(Ie){var Ye=Ie.cellDate,nt=Ie.mode,zt=Ie.disabledDate,Zt=Ie.generateConfig;if(!zt)return!1;var pn=function(Yi,zn,Mi){for(var Ui=zn;Ui<=Mi;){var Wr=void 0;switch(Yi){case"date":{if(Wr=Zt.setDate(Ye,Ui),!zt(Wr))return!1;break}case"month":{if(Wr=Zt.setMonth(Ye,Ui),!Dn({cellDate:Wr,mode:"month",generateConfig:Zt,disabledDate:zt}))return!1;break}case"year":{if(Wr=Zt.setYear(Ye,Ui),!Dn({cellDate:Wr,mode:"year",generateConfig:Zt,disabledDate:zt}))return!1;break}}Ui+=1}return!0};switch(nt){case"date":case"week":return zt(Ye);case"month":{var Sn=1,Zn=Zt.getDate(Zt.getEndDate(Ye));return pn("date",Sn,Zn)}case"quarter":{var Xn=Math.floor(Zt.getMonth(Ye)/3)*3,hi=Xn+2;return pn("month",Xn,hi)}case"year":return pn("month",0,11);case"decade":{var Ii=Zt.getYear(Ye),li=Math.floor(Ii/Be)*Be,Li=li+Be-1;return pn("year",li,Li)}}}function ii(Ie,Ye){var nt=Ye.formatList,zt=Ye.generateConfig,Zt=Ye.locale;return(0,xe.Z)(function(){if(!Ie)return[[""],""];for(var pn="",Sn=[],Zn=0;Zn<nt.length;Zn+=1){var Xn=nt[Zn],hi=_t(Ie,{generateConfig:zt,locale:Zt,format:Xn});Sn.push(hi),Zn===0&&(pn=hi)}return[Sn,pn]},[Ie,nt,Zt],function(pn,Sn){return!Jt(zt,pn[0],Sn[0])||!(0,Ne.Z)(pn[1],Sn[1],!0)||!(0,Ne.Z)(pn[2],Sn[2],!0)})}function pi(Ie,Ye){var nt=Ye.formatList,zt=Ye.generateConfig,Zt=Ye.locale,pn=(0,we.useState)(null),Sn=(0,ni.Z)(pn,2),Zn=Sn[0],Xn=Sn[1],hi=(0,we.useRef)(null);function Ii(Mi){var Ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(hi.current),Ui){Xn(Mi);return}hi.current=requestAnimationFrame(function(){Xn(Mi)})}var li=ii(Zn,{formatList:nt,generateConfig:zt,locale:Zt}),Li=(0,ni.Z)(li,2),oi=Li[1];function Yi(Mi){Ii(Mi)}function zn(){var Mi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ii(null,Mi)}return(0,we.useEffect)(function(){zn(!0)},[Ie]),(0,we.useEffect)(function(){return function(){return cancelAnimationFrame(hi.current)}},[]),[oi,Yi,zn]}var fi=ye(10228),wi=ye(16089),Vi=ye(80702),vr=ye(29194),cr=new Map;function pr(Ie,Ye){var nt;function zt(){(0,vr.Z)(Ie)?Ye():nt=(0,wi.Z)(function(){zt()})}return zt(),function(){wi.Z.cancel(nt)}}function _r(Ie,Ye,nt){if(cr.get(Ie)&&cancelAnimationFrame(cr.get(Ie)),nt<=0){cr.set(Ie,requestAnimationFrame(function(){Ie.scrollTop=Ye}));return}var zt=Ye-Ie.scrollTop,Zt=zt/nt*10;cr.set(Ie,requestAnimationFrame(function(){Ie.scrollTop+=Zt,Ie.scrollTop!==Ye&&_r(Ie,Ye,nt-10)}))}function Ir(Ie,Ye){var nt=Ye.onLeftRight,zt=Ye.onCtrlLeftRight,Zt=Ye.onUpDown,pn=Ye.onPageUpDown,Sn=Ye.onEnter,Zn=Ie.which,Xn=Ie.ctrlKey,hi=Ie.metaKey;switch(Zn){case fi.Z.LEFT:if(Xn||hi){if(zt)return zt(-1),!0}else if(nt)return nt(-1),!0;break;case fi.Z.RIGHT:if(Xn||hi){if(zt)return zt(1),!0}else if(nt)return nt(1),!0;break;case fi.Z.UP:if(Zt)return Zt(-1),!0;break;case fi.Z.DOWN:if(Zt)return Zt(1),!0;break;case fi.Z.PAGE_UP:if(pn)return pn(-1),!0;break;case fi.Z.PAGE_DOWN:if(pn)return pn(1),!0;break;case fi.Z.ENTER:if(Sn)return Sn(),!0;break}return!1}function $i(Ie,Ye,nt,zt){var Zt=Ie;if(!Zt)switch(Ye){case"time":Zt=zt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Zt="gggg-wo";break;case"month":Zt="YYYY-MM";break;case"quarter":Zt="YYYY-[Q]Q";break;case"year":Zt="YYYY";break;default:Zt=nt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Zt}function eo(Ie,Ye,nt){var zt=Ie==="time"?8:10,Zt=typeof Ye=="function"?Ye(nt.getNow()).length:Ye.length;return Math.max(zt,Zt)+2}var kr=null,Ee=new Set;function si(Ie){return!kr&&typeof window!="undefined"&&window.addEventListener&&(kr=function(nt){(0,Vi.Z)(Ee).forEach(function(zt){zt(nt)})},window.addEventListener("mousedown",kr)),Ee.add(Ie),function(){Ee.delete(Ie),Ee.size===0&&(window.removeEventListener("mousedown",kr),kr=null)}}function yi(Ie){var Ye=Ie.target;if(Ie.composed&&Ye.shadowRoot){var nt;return((nt=Ie.composedPath)===null||nt===void 0?void 0:nt.call(Ie)[0])||Ye}return Ye}var or=function(Ye){return Ye==="month"||Ye==="date"?"year":Ye},xr=function(Ye){return Ye==="date"?"month":Ye},qi=function(Ye){return Ye==="month"||Ye==="date"?"quarter":Ye},Qr=function(Ye){return Ye==="date"?"week":Ye},mo={year:or,month:xr,quarter:qi,week:Qr,time:null,date:null};function zr(Ie,Ye){return Ie.some(function(nt){return nt&&nt.contains(Ye)})}function on(Ie){var Ye=Ie.open,nt=Ie.value,zt=Ie.isClickOutside,Zt=Ie.triggerOpen,pn=Ie.forwardKeyDown,Sn=Ie.onKeyDown,Zn=Ie.blurToCancel,Xn=Ie.onSubmit,hi=Ie.onCancel,Ii=Ie.onFocus,li=Ie.onBlur,Li=Ie.changeOnBlur,oi=(0,we.useState)(!1),Yi=(0,ni.Z)(oi,2),zn=Yi[0],Mi=Yi[1],Ui=(0,we.useState)(!1),Wr=(0,ni.Z)(Ui,2),Nr=Wr[0],Vr=Wr[1],Yr=(0,we.useRef)(!1),Zr=(0,we.useRef)(!1),Ri=(0,we.useRef)(!1),Uo={onMouseDown:function(){Mi(!0),Zt(!0)},onKeyDown:function(ia){var Na=function(){Ri.current=!0};if(Sn(ia,Na),!Ri.current){switch(ia.which){case fi.Z.ENTER:{Ye?Xn()!==!1&&Mi(!0):Zt(!0),ia.preventDefault();return}case fi.Z.TAB:{zn&&Ye&&!ia.shiftKey?(Mi(!1),ia.preventDefault()):!zn&&Ye&&!pn(ia)&&ia.shiftKey&&(Mi(!0),ia.preventDefault());return}case fi.Z.ESC:{Mi(!0),hi();return}}!Ye&&![fi.Z.SHIFT].includes(ia.which)?Zt(!0):zn||pn(ia)}},onFocus:function(ia){Mi(!0),Vr(!0),Ii&&Ii(ia)},onBlur:function(ia){if(Yr.current||!zt(document.activeElement)){Yr.current=!1;return}Zn?setTimeout(function(){for(var Na=document,Aa=Na.activeElement;Aa&&Aa.shadowRoot;)Aa=Aa.shadowRoot.activeElement;zt(Aa)&&hi()},0):Ye&&(Zt(!1),Zr.current&&Xn()),Vr(!1),li==null||li(ia)}};return(0,we.useEffect)(function(){Zr.current=!1},[Ye]),(0,we.useEffect)(function(){Zr.current=!0},[nt]),(0,we.useEffect)(function(){return si(function(jo){var ia=yi(jo),Na=zt(ia);Ye&&(Na?!Li&&(!Nr||Na)&&Zt(!1):(Yr.current=!0,(0,wi.Z)(function(){Yr.current=!1})))})}),[Uo,{focused:Nr,typing:zn}]}function Yt(Ie,Ye){return we.useMemo(function(){return Ie||(Ye?((0,at.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ye).map(function(nt){var zt=(0,ni.Z)(nt,2),Zt=zt[0],pn=zt[1];return{label:Zt,value:pn}})):[])},[Ie,Ye])}var Qe=ye(34280);function un(Ie){var Ye=Ie.valueTexts,nt=Ie.onTextChange,zt=we.useState(""),Zt=(0,ni.Z)(zt,2),pn=Zt[0],Sn=Zt[1],Zn=we.useRef([]);Zn.current=Ye;function Xn(Ii){Sn(Ii),nt(Ii)}function hi(){Sn(Zn.current[0])}return(0,Qe.Z)(function(){Ye.every(function(Ii){return Ii!==pn})&&hi()},[Ye.join("||")]),[pn,Xn,hi]}var In=we.createContext({}),Mt=In,ft=ye(62853);function fn(Ie){var Ye=Ie.cellRender,nt=Ie.monthCellRender,zt=Ie.dateRender,Zt=we.useMemo(function(){if(Ye)return Ye;if(!(!nt&&!zt))return function(pn,Sn){var Zn=pn;return zt&&Sn.type==="date"?zt(Zn,Sn.today):nt&&Sn.type==="month"?nt(Zn,Sn.locale):Sn.originNode}},[Ye,nt,zt]);return Zt}function Vn(Ie,Ye){for(var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",zt=String(Ie);zt.length<Ye;)zt="".concat(nt).concat(Ie);return zt}var bi=function(){for(var Ye=arguments.length,nt=new Array(Ye),zt=0;zt<Ye;zt++)nt[zt]=arguments[zt];return nt};function gi(Ie){return Ie==null?[]:Array.isArray(Ie)?Ie:[Ie]}function dt(Ie,Ye){return Ie?Ie[Ye]:null}function Fn(Ie,Ye,nt){var zt=[dt(Ie,0),dt(Ie,1)];return zt[nt]=typeof Ye=="function"?Ye(zt[nt]):Ye,!zt[0]&&!zt[1]?null:zt}function ui(Ie){return typeof Ie=="function"?Ie():Ie}function ji(Ie){var Ye=Ie.cellPrefixCls,nt=Ie.generateConfig,zt=Ie.rangedValue,Zt=Ie.hoverRangedValue,pn=Ie.isInView,Sn=Ie.isSameCell,Zn=Ie.offsetCell,Xn=Ie.today,hi=Ie.value;function Ii(li){var Li,oi=Zn(li,-1),Yi=Zn(li,1),zn=dt(zt,0),Mi=dt(zt,1),Ui=dt(Zt,0),Wr=dt(Zt,1),Nr=gn(nt,Ui,Wr,li);function Vr(ia){return Sn(zn,ia)}function Yr(ia){return Sn(Mi,ia)}var Zr=Sn(Ui,li),Ri=Sn(Wr,li),Uo=(Nr||Ri)&&(!pn(oi)||Yr(oi)),jo=(Nr||Zr)&&(!pn(Yi)||Vr(Yi));return Li={},(0,vt.Z)(Li,"".concat(Ye,"-in-view"),pn(li)),(0,vt.Z)(Li,"".concat(Ye,"-in-range"),gn(nt,zn,Mi,li)),(0,vt.Z)(Li,"".concat(Ye,"-range-start"),Vr(li)),(0,vt.Z)(Li,"".concat(Ye,"-range-end"),Yr(li)),(0,vt.Z)(Li,"".concat(Ye,"-range-start-single"),Vr(li)&&!Mi),(0,vt.Z)(Li,"".concat(Ye,"-range-end-single"),Yr(li)&&!zn),(0,vt.Z)(Li,"".concat(Ye,"-range-start-near-hover"),Vr(li)&&(Sn(oi,Ui)||gn(nt,Ui,Wr,oi))),(0,vt.Z)(Li,"".concat(Ye,"-range-end-near-hover"),Yr(li)&&(Sn(Yi,Wr)||gn(nt,Ui,Wr,Yi))),(0,vt.Z)(Li,"".concat(Ye,"-range-hover"),Nr),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-start"),Zr),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-end"),Ri),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-edge-start"),Uo),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-edge-end"),jo),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-edge-start-near-range"),Uo&&Sn(oi,Mi)),(0,vt.Z)(Li,"".concat(Ye,"-range-hover-edge-end-near-range"),jo&&Sn(Yi,zn)),(0,vt.Z)(Li,"".concat(Ye,"-today"),Sn(Xn,li)),(0,vt.Z)(Li,"".concat(Ye,"-selected"),Sn(hi,li)),Li}return Ii}var dn=we.createContext({}),vn=dn;function Rt(Ie,Ye,nt,zt,Zt){var pn=Ie.setHour(Ye,nt);return pn=Ie.setMinute(pn,zt),pn=Ie.setSecond(pn,Zt),pn}function tn(Ie,Ye,nt){if(!nt)return Ye;var zt=Ye;return zt=Ie.setHour(zt,Ie.getHour(nt)),zt=Ie.setMinute(zt,Ie.getMinute(nt)),zt=Ie.setSecond(zt,Ie.getSecond(nt)),zt}function yn(Ie,Ye,nt,zt,Zt,pn){var Sn=Math.floor(Ie/zt)*zt;if(Sn<Ie)return[Sn,60-Zt,60-pn];var Zn=Math.floor(Ye/Zt)*Zt;if(Zn<Ye)return[Sn,Zn,60-pn];var Xn=Math.floor(nt/pn)*pn;return[Sn,Zn,Xn]}function an(Ie,Ye){var nt=Ie.getYear(Ye),zt=Ie.getMonth(Ye)+1,Zt=Ie.getEndDate(Ie.getFixedDate("".concat(nt,"-").concat(zt,"-01"))),pn=Ie.getDate(Zt),Sn=zt<10?"0".concat(zt):"".concat(zt);return"".concat(nt,"-").concat(Sn,"-").concat(pn)}function Mn(Ie){for(var Ye=Ie.prefixCls,nt=Ie.disabledDate,zt=Ie.onSelect,Zt=Ie.picker,pn=Ie.rowNum,Sn=Ie.colNum,Zn=Ie.prefixColumn,Xn=Ie.rowClassName,hi=Ie.baseDate,Ii=Ie.getCellClassName,li=Ie.getCellText,Li=Ie.getCellNode,oi=Ie.getCellDate,Yi=Ie.generateConfig,zn=Ie.titleCell,Mi=Ie.headerCells,Ui=we.useContext(Mt),Wr=Ui.onDateMouseEnter,Nr=Ui.onDateMouseLeave,Vr=Ui.mode,Yr="".concat(Ye,"-cell"),Zr=[],Ri=0;Ri<pn;Ri+=1){for(var Uo=[],jo=void 0,ia=function(){var xa,ts=Ri*Sn+Na,ga=oi(hi,ts),sa=Dn({cellDate:ga,mode:Vr,disabledDate:nt,generateConfig:Yi});Na===0&&(jo=ga,Zn&&Uo.push(Zn(jo)));var wa=zn&&zn(ga),Xa=we.createElement("div",{className:"".concat(Yr,"-inner")},li(ga));Uo.push(we.createElement("td",{key:Na,title:wa,className:Bt()(Yr,(0,Yn.Z)((xa={},(0,vt.Z)(xa,"".concat(Yr,"-disabled"),sa),(0,vt.Z)(xa,"".concat(Yr,"-start"),li(ga)===1||Zt==="year"&&Number(wa)%10===0),(0,vt.Z)(xa,"".concat(Yr,"-end"),wa===an(Yi,ga)||Zt==="year"&&Number(wa)%10===9),xa),Ii(ga))),onClick:function(){sa||zt(ga)},onMouseEnter:function(){!sa&&Wr&&Wr(ga)},onMouseLeave:function(){!sa&&Nr&&Nr(ga)}},Li?Li(ga,Xa):Xa))},Na=0;Na<Sn;Na+=1)ia();Zr.push(we.createElement("tr",{key:Ri,className:Xn&&Xn(jo)},Uo))}return we.createElement("div",{className:"".concat(Ye,"-body")},we.createElement("table",{className:"".concat(Ye,"-content")},Mi&&we.createElement("thead",null,we.createElement("tr",null,Mi)),we.createElement("tbody",null,Zr)))}function bn(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.prefixColumn,Zt=Ie.locale,pn=Ie.rowCount,Sn=Ie.viewDate,Zn=Ie.value,Xn=Ie.cellRender,hi=Ie.isSameCell,Ii=we.useContext(vn),li=Ii.rangedValue,Li=Ii.hoverRangedValue,oi=Tn(Zt.locale,nt,Sn),Yi="".concat(Ye,"-cell"),zn=nt.locale.getWeekFirstDay(Zt.locale),Mi=nt.getNow(),Ui=[],Wr=Zt.shortWeekDays||(nt.locale.getShortWeekDays?nt.locale.getShortWeekDays(Zt.locale):[]);zt&&Ui.push(we.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Nr=0;Nr<lt;Nr+=1)Ui.push(we.createElement("th",{key:Nr},Wr[(Nr+zn)%lt]));var Vr=ji({cellPrefixCls:Yi,today:Mi,value:Zn,generateConfig:nt,rangedValue:zt?null:li,hoverRangedValue:zt?null:Li,isSameCell:hi||function(Zr,Ri){return Ft(nt,Zr,Ri)},isInView:function(Ri){return ct(nt,Ri,Sn)},offsetCell:function(Ri,Uo){return nt.addDate(Ri,Uo)}}),Yr=Xn?function(Zr,Ri){return Xn(Zr,{originNode:Ri,today:Mi,type:"date",locale:Zt})}:void 0;return we.createElement(Mn,(0,ke.Z)({},Ie,{rowNum:pn,colNum:lt,baseDate:oi,getCellNode:Yr,getCellText:nt.getDate,getCellClassName:Vr,getCellDate:nt.addDate,titleCell:function(Ri){return _t(Ri,{locale:Zt,format:"YYYY-MM-DD",generateConfig:nt})},headerCells:Ui}))}var $n=bn,Un={visibility:"hidden"};function Wi(Ie){var Ye=Ie.prefixCls,nt=Ie.prevIcon,zt=nt===void 0?"\u2039":nt,Zt=Ie.nextIcon,pn=Zt===void 0?"\u203A":Zt,Sn=Ie.superPrevIcon,Zn=Sn===void 0?"\xAB":Sn,Xn=Ie.superNextIcon,hi=Xn===void 0?"\xBB":Xn,Ii=Ie.onSuperPrev,li=Ie.onSuperNext,Li=Ie.onPrev,oi=Ie.onNext,Yi=Ie.children,zn=we.useContext(Mt),Mi=zn.hideNextBtn,Ui=zn.hidePrevBtn;return we.createElement("div",{className:Ye},Ii&&we.createElement("button",{type:"button",onClick:Ii,tabIndex:-1,className:"".concat(Ye,"-super-prev-btn"),style:Ui?Un:{}},Zn),Li&&we.createElement("button",{type:"button",onClick:Li,tabIndex:-1,className:"".concat(Ye,"-prev-btn"),style:Ui?Un:{}},zt),we.createElement("div",{className:"".concat(Ye,"-view")},Yi),oi&&we.createElement("button",{type:"button",onClick:oi,tabIndex:-1,className:"".concat(Ye,"-next-btn"),style:Mi?Un:{}},pn),li&&we.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Ye,"-super-next-btn"),style:Mi?Un:{}},hi))}var qt=Wi;function Qi(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.locale,Zt=Ie.viewDate,pn=Ie.onNextMonth,Sn=Ie.onPrevMonth,Zn=Ie.onNextYear,Xn=Ie.onPrevYear,hi=Ie.onYearClick,Ii=Ie.onMonthClick,li=we.useContext(Mt),Li=li.hideHeader;if(Li)return null;var oi="".concat(Ye,"-header"),Yi=zt.shortMonths||(nt.locale.getShortMonths?nt.locale.getShortMonths(zt.locale):[]),zn=nt.getMonth(Zt),Mi=we.createElement("button",{type:"button",key:"year",onClick:hi,tabIndex:-1,className:"".concat(Ye,"-year-btn")},_t(Zt,{locale:zt,format:zt.yearFormat,generateConfig:nt})),Ui=we.createElement("button",{type:"button",key:"month",onClick:Ii,tabIndex:-1,className:"".concat(Ye,"-month-btn")},zt.monthFormat?_t(Zt,{locale:zt,format:zt.monthFormat,generateConfig:nt}):Yi[zn]),Wr=zt.monthBeforeYear?[Ui,Mi]:[Mi,Ui];return we.createElement(qt,(0,ke.Z)({},Ie,{prefixCls:oi,onSuperPrev:Xn,onPrev:Sn,onNext:pn,onSuperNext:Zn}),Wr)}var yr=Qi,Dr=6;function sn(Ie){var Ye=Ie.prefixCls,nt=Ie.panelName,zt=nt===void 0?"date":nt,Zt=Ie.keyboardConfig,pn=Ie.active,Sn=Ie.operationRef,Zn=Ie.generateConfig,Xn=Ie.value,hi=Ie.viewDate,Ii=Ie.onViewDateChange,li=Ie.onPanelChange,Li=Ie.onSelect,oi="".concat(Ye,"-").concat(zt,"-panel");Sn.current={onKeyDown:function(Ui){return Ir(Ui,(0,Yn.Z)({onLeftRight:function(Nr){Li(Zn.addDate(Xn||hi,Nr),"key")},onCtrlLeftRight:function(Nr){Li(Zn.addYear(Xn||hi,Nr),"key")},onUpDown:function(Nr){Li(Zn.addDate(Xn||hi,Nr*lt),"key")},onPageUpDown:function(Nr){Li(Zn.addMonth(Xn||hi,Nr),"key")}},Zt))}};var Yi=function(Ui){var Wr=Zn.addYear(hi,Ui);Ii(Wr),li(null,Wr)},zn=function(Ui){var Wr=Zn.addMonth(hi,Ui);Ii(Wr),li(null,Wr)};return we.createElement("div",{className:Bt()(oi,(0,vt.Z)({},"".concat(oi,"-active"),pn))},we.createElement(yr,(0,ke.Z)({},Ie,{prefixCls:Ye,value:Xn,viewDate:hi,onPrevYear:function(){Yi(-1)},onNextYear:function(){Yi(1)},onPrevMonth:function(){zn(-1)},onNextMonth:function(){zn(1)},onMonthClick:function(){li("month",hi)},onYearClick:function(){li("year",hi)}})),we.createElement($n,(0,ke.Z)({},Ie,{onSelect:function(Ui){return Li(Ui,"mouse")},prefixCls:Ye,value:Xn,viewDate:hi,rowCount:Dr})))}var ai=sn;function xi(Ie){var Ye=we.useContext(Mt),nt=Ye.hideHeader;if(nt)return null;var zt=Ie.prefixCls,Zt=Ie.generateConfig,pn=Ie.locale,Sn=Ie.value,Zn=Ie.format,Xn="".concat(zt,"-header");return we.createElement(qt,{prefixCls:Xn},Sn?_t(Sn,{locale:pn,format:Zn,generateConfig:Zt}):"\xA0")}var Gi=xi;function Di(Ie){var Ye=Ie.value,nt=Ie.generateConfig,zt=Ie.disabledMinutes,Zt=Ie.disabledSeconds,pn=Ie.minutes,Sn=Ie.seconds,Zn=Ie.use12Hours,Xn=function(Ii,li,Li,oi){var Yi=nt.getNow(),zn=Ye||Yi,Mi=li<0?nt.getHour(Yi):li,Ui=Li<0?nt.getMinute(Yi):Li,Wr=oi<0?nt.getSecond(Yi):oi,Nr=zt&&zt(Mi);if(Nr!=null&&Nr.includes(Ui)){var Vr=pn.find(function(Ri){return!Nr.includes(Ri.value)});if(Vr)Ui=Vr.value;else return null}var Yr=Zt&&Zt(Mi,Ui);if(Yr!=null&&Yr.includes(Wr)){var Zr=Sn.find(function(Ri){return!Yr.includes(Ri.value)});if(Zr)Wr=Zr.value;else return null}return zn=Rt(nt,zn,!Zn||!Ii?Mi:Mi+12,Ui,Wr),zn};return Xn}function _i(Ie){var Ye=Ie.prefixCls,nt=Ie.units,zt=Ie.onSelect,Zt=Ie.value,pn=Ie.active,Sn=Ie.hideDisabledOptions,Zn=Ie.info,Xn=Ie.type,hi="".concat(Ye,"-cell"),Ii=we.useContext(Mt),li=Ii.open,Li=(0,we.useRef)(null),oi=(0,we.useRef)(new Map),Yi=(0,we.useRef)();return(0,we.useLayoutEffect)(function(){var zn=oi.current.get(Zt);zn&&li!==!1&&_r(Li.current,zn.offsetTop,120)},[Zt]),(0,we.useLayoutEffect)(function(){if(li){var zn=oi.current.get(Zt);zn&&(Yi.current=pr(zn,function(){_r(Li.current,zn.offsetTop,0)}))}return function(){var Mi;(Mi=Yi.current)===null||Mi===void 0||Mi.call(Yi)}},[li]),we.createElement("ul",{className:Bt()("".concat(Ye,"-column"),(0,vt.Z)({},"".concat(Ye,"-column-active"),pn)),ref:Li,style:{position:"relative"}},nt.map(function(zn){var Mi;return Sn&&zn.disabled?null:we.createElement("li",{key:zn.value,ref:function(Wr){oi.current.set(zn.value,Wr)},className:Bt()(hi,(Mi={},(0,vt.Z)(Mi,"".concat(hi,"-disabled"),zn.disabled),(0,vt.Z)(Mi,"".concat(hi,"-selected"),Zt===zn.value),Mi)),onClick:function(){zn.disabled||zt(zn.value)}},Zn.cellRender?Zn.cellRender(zn.value,{today:Zn.today,locale:Zn.locale,originNode:we.createElement("div",{className:"".concat(hi,"-inner")},zn.label),type:"time",subType:Xn}):we.createElement("div",{className:"".concat(hi,"-inner")},zn.label))}))}var wr=_i;function er(Ie,Ye){if(Ie.length!==Ye.length)return!0;for(var nt=0;nt<Ie.length;nt+=1)if(Ie[nt].disabled!==Ye[nt].disabled)return!0;return!1}function Oi(Ie,Ye,nt,zt){for(var Zt=[],pn=nt>=1?nt|0:1,Sn=Ie;Sn<=Ye;Sn+=pn)Zt.push({label:Vn(Sn,2),value:Sn,disabled:(zt||[]).includes(Sn)});return Zt}function br(Ie){var Ye=Ie.generateConfig,nt=Ie.prefixCls,zt=Ie.operationRef,Zt=Ie.activeColumnIndex,pn=Ie.value,Sn=Ie.showHour,Zn=Ie.showMinute,Xn=Ie.showSecond,hi=Ie.use12Hours,Ii=Ie.hourStep,li=Ii===void 0?1:Ii,Li=Ie.minuteStep,oi=Li===void 0?1:Li,Yi=Ie.secondStep,zn=Yi===void 0?1:Yi,Mi=Ie.disabledHours,Ui=Ie.disabledMinutes,Wr=Ie.disabledSeconds,Nr=Ie.disabledTime,Vr=Ie.hideDisabledOptions,Yr=Ie.onSelect,Zr=Ie.cellRender,Ri=Ie.locale,Uo=[],jo="".concat(nt,"-content"),ia="".concat(nt,"-time-panel"),Na,Aa=pn?Ye.getHour(pn):-1,xa=Aa,ts=pn?Ye.getMinute(pn):-1,ga=pn?Ye.getSecond(pn):-1,sa=Ye.getNow(),wa=we.useMemo(function(){if(Nr){var jn=Nr(sa);return[jn.disabledHours,jn.disabledMinutes,jn.disabledSeconds]}return[Mi,Ui,Wr]},[Mi,Ui,Wr,Nr,sa]),Xa=(0,ni.Z)(wa,3),ns=Xa[0],za=Xa[1],Pa=Xa[2],As=Oi(0,23,li,ns&&ns()),_s=(0,xe.Z)(function(){return As},As,er);hi&&(Na=xa>=12,xa%=12);var $e=we.useMemo(function(){if(!hi)return[!1,!1];var jn=[!0,!0];return _s.forEach(function(qn){var Ei=qn.disabled,Pi=qn.value;Ei||(Pi>=12?jn[1]=!1:jn[0]=!1)}),jn},[hi,_s]),ot=(0,ni.Z)($e,2),Dt=ot[0],Ot=ot[1],Qt=we.useMemo(function(){return hi?_s.filter(Na?function(jn){return jn.value>=12}:function(jn){return jn.value<12}).map(function(jn){var qn=jn.value%12,Ei=qn===0?"12":Vn(qn,2);return(0,Yn.Z)((0,Yn.Z)({},jn),{},{label:Ei,value:qn})}):_s},[hi,Na,_s]),Gt=Oi(0,59,oi,za&&za(Aa)),Ln=Oi(0,59,zn,Pa&&Pa(Aa,ts)),Cn=Di({value:pn,generateConfig:Ye,disabledMinutes:za,disabledSeconds:Pa,minutes:Gt,seconds:Ln,use12Hours:hi});zt.current={onUpDown:function(qn){var Ei=Uo[Zt];if(Ei)for(var Pi=Ei.units.findIndex(function(nr){return nr.value===Ei.value}),mi=Ei.units.length,Ki=1;Ki<mi;Ki+=1){var Si=Ei.units[(Pi+qn*Ki+mi)%mi];if(Si.disabled!==!0){Ei.onSelect(Si.value);break}}}};function wn(jn,qn,Ei,Pi,mi){jn!==!1&&Uo.push({node:we.cloneElement(qn,{prefixCls:ia,value:Ei,active:Zt===Uo.length,onSelect:mi,units:Pi,hideDisabledOptions:Vr}),onSelect:mi,value:Ei,units:Pi})}wn(Sn,we.createElement(wr,{key:"hour",type:"hour",info:{today:sa,locale:Ri,cellRender:Zr}}),xa,Qt,function(jn){Yr(Cn(Na,jn,ts,ga),"mouse")}),wn(Zn,we.createElement(wr,{key:"minute",type:"minute",info:{today:sa,locale:Ri,cellRender:Zr}}),ts,Gt,function(jn){Yr(Cn(Na,xa,jn,ga),"mouse")}),wn(Xn,we.createElement(wr,{key:"second",type:"second",info:{today:sa,locale:Ri,cellRender:Zr}}),ga,Ln,function(jn){Yr(Cn(Na,xa,ts,jn),"mouse")});var ti=-1;return typeof Na=="boolean"&&(ti=Na?1:0),wn(hi===!0,we.createElement(wr,{key:"meridiem",type:"meridiem",info:{today:sa,locale:Ri,cellRender:Zr}}),ti,[{label:"AM",value:0,disabled:Dt},{label:"PM",value:1,disabled:Ot}],function(jn){Yr(Cn(!!jn,xa,ts,ga),"mouse")}),we.createElement("div",{className:jo},Uo.map(function(jn){var qn=jn.node;return qn}))}var En=br,wo=function(Ye){return Ye.filter(function(nt){return nt!==!1}).length};function An(Ie){var Ye=Ie.generateConfig,nt=Ie.format,zt=nt===void 0?"HH:mm:ss":nt,Zt=Ie.prefixCls,pn=Ie.active,Sn=Ie.operationRef,Zn=Ie.showHour,Xn=Ie.showMinute,hi=Ie.showSecond,Ii=Ie.use12Hours,li=Ii===void 0?!1:Ii,Li=Ie.onSelect,oi=Ie.value,Yi="".concat(Zt,"-time-panel"),zn=we.useRef(),Mi=we.useState(-1),Ui=(0,ni.Z)(Mi,2),Wr=Ui[0],Nr=Ui[1],Vr=wo([Zn,Xn,hi,li]);return Sn.current={onKeyDown:function(Zr){return Ir(Zr,{onLeftRight:function(Uo){Nr((Wr+Uo+Vr)%Vr)},onUpDown:function(Uo){Wr===-1?Nr(0):zn.current&&zn.current.onUpDown(Uo)},onEnter:function(){Li(oi||Ye.getNow(),"key"),Nr(-1)}})},onBlur:function(){Nr(-1)}},we.createElement("div",{className:Bt()(Yi,(0,vt.Z)({},"".concat(Yi,"-active"),pn))},we.createElement(Gi,(0,ke.Z)({},Ie,{format:zt,prefixCls:Zt})),we.createElement(En,(0,ke.Z)({},Ie,{prefixCls:Zt,activeColumnIndex:Wr,operationRef:zn})))}var Br=An,ta=bi("date","time");function bo(Ie){var Ye=Ie.prefixCls,nt=Ie.operationRef,zt=Ie.generateConfig,Zt=Ie.value,pn=Ie.defaultValue,Sn=Ie.disabledTime,Zn=Ie.showTime,Xn=Ie.onSelect,hi=Ie.cellRender,Ii="".concat(Ye,"-datetime-panel"),li=we.useState(null),Li=(0,ni.Z)(li,2),oi=Li[0],Yi=Li[1],zn=we.useRef({}),Mi=we.useRef({}),Ui=(0,ft.Z)(Zn)==="object"?(0,Yn.Z)({},Zn):{};function Wr(Zr){var Ri=ta.indexOf(oi)+Zr,Uo=ta[Ri]||null;return Uo}var Nr=function(Ri){Mi.current.onBlur&&Mi.current.onBlur(Ri),Yi(null)};nt.current={onKeyDown:function(Ri){if(Ri.which===fi.Z.TAB){var Uo=Wr(Ri.shiftKey?-1:1);return Yi(Uo),Uo&&Ri.preventDefault(),!0}if(oi){var jo=oi==="date"?zn:Mi;return jo.current&&jo.current.onKeyDown&&jo.current.onKeyDown(Ri),!0}return[fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN].includes(Ri.which)?(Yi("date"),!0):!1},onBlur:Nr,onClose:Nr};var Vr=function(Ri,Uo){var jo=Ri;Uo==="date"&&!Zt&&Ui.defaultValue?(jo=zt.setHour(jo,zt.getHour(Ui.defaultValue)),jo=zt.setMinute(jo,zt.getMinute(Ui.defaultValue)),jo=zt.setSecond(jo,zt.getSecond(Ui.defaultValue))):Uo==="time"&&!Zt&&pn&&(jo=zt.setYear(jo,zt.getYear(pn)),jo=zt.setMonth(jo,zt.getMonth(pn)),jo=zt.setDate(jo,zt.getDate(pn))),Xn&&Xn(jo,"mouse")},Yr=Sn?Sn(Zt||null):{};return we.createElement("div",{className:Bt()(Ii,(0,vt.Z)({},"".concat(Ii,"-active"),oi))},we.createElement(ai,(0,ke.Z)({},Ie,{cellRender:hi,operationRef:zn,active:oi==="date",onSelect:function(Ri){Vr(tn(zt,Ri,!Zt&&(0,ft.Z)(Zn)==="object"?Zn.defaultValue:null),"date")}})),we.createElement(Br,(0,ke.Z)({},Ie,{cellRender:hi?function(Zr,Ri){return hi(Zr,(0,Yn.Z)((0,Yn.Z)({},Ri),{},{type:"time"}))}:void 0,format:void 0},Ui,Yr,{disabledTime:null,defaultValue:void 0,operationRef:Mi,active:oi==="time",onSelect:function(Ri){Vr(Ri,"time")}})))}var ca=bo;function qo(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.viewDate,Zt=Ie.onPrevDecades,pn=Ie.onNextDecades,Sn=we.useContext(Mt),Zn=Sn.hideHeader;if(Zn)return null;var Xn="".concat(Ye,"-header"),hi=nt.getYear(zt),Ii=Math.floor(hi/Se)*Se,li=Ii+Se-1;return we.createElement(qt,(0,ke.Z)({},Ie,{prefixCls:Xn,onSuperPrev:Zt,onSuperNext:pn}),Ii,"-",li)}var lr=qo,tr=3,to=4;function ko(Ie){var Ye=Be-1,nt=Ie.prefixCls,zt=Ie.viewDate,Zt=Ie.generateConfig,pn=Ie.cellRender,Sn=Ie.locale,Zn="".concat(nt,"-cell"),Xn=Zt.getYear(zt),hi=Math.floor(Xn/Be)*Be,Ii=Math.floor(Xn/Se)*Se,li=Ii+Se-1,Li=Zt.setYear(zt,Ii-Math.ceil((tr*to*Be-Se)/2)),oi=function(Mi){var Ui,Wr=Zt.getYear(Mi),Nr=Wr+Ye;return Ui={},(0,vt.Z)(Ui,"".concat(Zn,"-in-view"),Ii<=Wr&&Nr<=li),(0,vt.Z)(Ui,"".concat(Zn,"-selected"),Wr===hi),Ui},Yi=pn?function(zn,Mi){return pn(zn,{originNode:Mi,today:Zt.getNow(),type:"decade",locale:Sn})}:void 0;return we.createElement(Mn,(0,ke.Z)({},Ie,{rowNum:to,colNum:tr,baseDate:Li,getCellNode:Yi,getCellText:function(Mi){var Ui=Zt.getYear(Mi);return"".concat(Ui,"-").concat(Ui+Ye)},getCellClassName:oi,getCellDate:function(Mi,Ui){return Zt.addYear(Mi,Ui*Be)}}))}var ki=ko;function Ue(Ie){var Ye=Ie.prefixCls,nt=Ie.onViewDateChange,zt=Ie.generateConfig,Zt=Ie.viewDate,pn=Ie.operationRef,Sn=Ie.onSelect,Zn=Ie.onPanelChange,Xn="".concat(Ye,"-decade-panel");pn.current={onKeyDown:function(Li){return Ir(Li,{onLeftRight:function(Yi){Sn(zt.addYear(Zt,Yi*Be),"key")},onCtrlLeftRight:function(Yi){Sn(zt.addYear(Zt,Yi*Se),"key")},onUpDown:function(Yi){Sn(zt.addYear(Zt,Yi*Be*tr),"key")},onEnter:function(){Zn("year",Zt)}})}};var hi=function(Li){var oi=zt.addYear(Zt,Li*Se);nt(oi),Zn(null,oi)},Ii=function(Li){Sn(Li,"mouse"),Zn("year",Li)};return we.createElement("div",{className:Xn},we.createElement(lr,(0,ke.Z)({},Ie,{prefixCls:Ye,onPrevDecades:function(){hi(-1)},onNextDecades:function(){hi(1)}})),we.createElement(ki,(0,ke.Z)({},Ie,{prefixCls:Ye,onSelect:Ii})))}var fo=Ue;function _o(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.locale,Zt=Ie.viewDate,pn=Ie.onNextYear,Sn=Ie.onPrevYear,Zn=Ie.onYearClick,Xn=we.useContext(Mt),hi=Xn.hideHeader;if(hi)return null;var Ii="".concat(Ye,"-header");return we.createElement(qt,(0,ke.Z)({},Ie,{prefixCls:Ii,onSuperPrev:Sn,onSuperNext:pn}),we.createElement("button",{type:"button",onClick:Zn,className:"".concat(Ye,"-year-btn")},_t(Zt,{locale:zt,format:zt.yearFormat,generateConfig:nt})))}var ro=_o,Yo=3,ya=4;function Lr(Ie){var Ye=Ie.prefixCls,nt=Ie.locale,zt=Ie.value,Zt=Ie.viewDate,pn=Ie.generateConfig,Sn=Ie.cellRender,Zn=we.useContext(vn),Xn=Zn.rangedValue,hi=Zn.hoverRangedValue,Ii="".concat(Ye,"-cell"),li=ji({cellPrefixCls:Ii,value:zt,generateConfig:pn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(Mi,Ui){return ct(pn,Mi,Ui)},isInView:function(){return!0},offsetCell:function(Mi,Ui){return pn.addMonth(Mi,Ui)}}),Li=nt.shortMonths||(pn.locale.getShortMonths?pn.locale.getShortMonths(nt.locale):[]),oi=pn.setMonth(Zt,0),Yi=Sn?function(zn,Mi){return Sn(zn,{originNode:Mi,locale:nt,today:pn.getNow(),type:"month"})}:void 0;return we.createElement(Mn,(0,ke.Z)({},Ie,{rowNum:ya,colNum:Yo,baseDate:oi,getCellNode:Yi,getCellText:function(Mi){return nt.monthFormat?_t(Mi,{locale:nt,format:nt.monthFormat,generateConfig:pn}):Li[pn.getMonth(Mi)]},getCellClassName:li,getCellDate:pn.addMonth,titleCell:function(Mi){return _t(Mi,{locale:nt,format:"YYYY-MM",generateConfig:pn})}}))}var Fr=Lr;function uo(Ie){var Ye=Ie.prefixCls,nt=Ie.operationRef,zt=Ie.onViewDateChange,Zt=Ie.generateConfig,pn=Ie.value,Sn=Ie.viewDate,Zn=Ie.onPanelChange,Xn=Ie.onSelect,hi="".concat(Ye,"-month-panel");nt.current={onKeyDown:function(Li){return Ir(Li,{onLeftRight:function(Yi){Xn(Zt.addMonth(pn||Sn,Yi),"key")},onCtrlLeftRight:function(Yi){Xn(Zt.addYear(pn||Sn,Yi),"key")},onUpDown:function(Yi){Xn(Zt.addMonth(pn||Sn,Yi*Yo),"key")},onEnter:function(){Zn("date",pn||Sn)}})}};var Ii=function(Li){var oi=Zt.addYear(Sn,Li);zt(oi),Zn(null,oi)};return we.createElement("div",{className:hi},we.createElement(ro,(0,ke.Z)({},Ie,{prefixCls:Ye,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){Zn("year",Sn)}})),we.createElement(Fr,(0,ke.Z)({},Ie,{prefixCls:Ye,onSelect:function(Li){Xn(Li,"mouse"),Zn("date",Li)}})))}var Xr=uo;function Zo(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.locale,Zt=Ie.viewDate,pn=Ie.onNextYear,Sn=Ie.onPrevYear,Zn=Ie.onYearClick,Xn=we.useContext(Mt),hi=Xn.hideHeader;if(hi)return null;var Ii="".concat(Ye,"-header");return we.createElement(qt,(0,ke.Z)({},Ie,{prefixCls:Ii,onSuperPrev:Sn,onSuperNext:pn}),we.createElement("button",{type:"button",onClick:Zn,className:"".concat(Ye,"-year-btn")},_t(Zt,{locale:zt,format:zt.yearFormat,generateConfig:nt})))}var oa=Zo,ur=4,hr=1;function ri(Ie){var Ye=Ie.prefixCls,nt=Ie.locale,zt=Ie.value,Zt=Ie.viewDate,pn=Ie.generateConfig,Sn=Ie.cellRender,Zn=we.useContext(vn),Xn=Zn.rangedValue,hi=Zn.hoverRangedValue,Ii="".concat(Ye,"-cell"),li=ji({cellPrefixCls:Ii,value:zt,generateConfig:pn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(zn,Mi){return xt(pn,zn,Mi)},isInView:function(){return!0},offsetCell:function(zn,Mi){return pn.addMonth(zn,Mi*3)}}),Li=pn.setDate(pn.setMonth(Zt,0),1),oi=Sn?function(Yi,zn){return Sn(Yi,{originNode:zn,locale:nt,today:pn.getNow(),type:"quarter"})}:void 0;return we.createElement(Mn,(0,ke.Z)({},Ie,{rowNum:hr,colNum:ur,baseDate:Li,getCellNode:oi,getCellText:function(zn){return _t(zn,{locale:nt,format:nt.quarterFormat||"[Q]Q",generateConfig:pn})},getCellClassName:li,getCellDate:function(zn,Mi){return pn.addMonth(zn,Mi*3)},titleCell:function(zn){return _t(zn,{locale:nt,format:"YYYY-[Q]Q",generateConfig:pn})}}))}var Er=ri;function Io(Ie){var Ye=Ie.prefixCls,nt=Ie.operationRef,zt=Ie.onViewDateChange,Zt=Ie.generateConfig,pn=Ie.value,Sn=Ie.viewDate,Zn=Ie.onPanelChange,Xn=Ie.onSelect,hi="".concat(Ye,"-quarter-panel");nt.current={onKeyDown:function(Li){return Ir(Li,{onLeftRight:function(Yi){Xn(Zt.addMonth(pn||Sn,Yi*3),"key")},onCtrlLeftRight:function(Yi){Xn(Zt.addYear(pn||Sn,Yi),"key")},onUpDown:function(Yi){Xn(Zt.addYear(pn||Sn,Yi),"key")}})}};var Ii=function(Li){var oi=Zt.addYear(Sn,Li);zt(oi),Zn(null,oi)};return we.createElement("div",{className:hi},we.createElement(oa,(0,ke.Z)({},Ie,{prefixCls:Ye,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){Zn("year",Sn)}})),we.createElement(Er,(0,ke.Z)({},Ie,{prefixCls:Ye,onSelect:function(Li){Xn(Li,"mouse")}})))}var Ma=Io;function Sa(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.locale,Zt=Ie.value,pn=Ie.disabledDate,Sn=Ie.onSelect,Zn=we.useContext(vn),Xn=Zn.rangedValue,hi=Zn.hoverRangedValue,Ii=we.useContext(Mt),li=Ii.onDateMouseEnter,Li=Ii.onDateMouseLeave,oi=(hi==null?void 0:hi[0])||(Xn==null?void 0:Xn[0]),Yi=(hi==null?void 0:hi[1])||(Xn==null?void 0:Xn[1]),zn="".concat(Ye,"-cell"),Mi=function(Vr){var Yr=Dn({cellDate:Vr,mode:"week",disabledDate:pn,generateConfig:nt});return we.createElement("td",{key:"week",className:Bt()(zn,"".concat(zn,"-week")),onClick:function(){Yr||Sn(Vr,"mouse")},onMouseEnter:function(){!Yr&&li&&li(Vr)},onMouseLeave:function(){!Yr&&Li&&Li(Vr)}},we.createElement("div",{className:"".concat(zn,"-inner")},nt.locale.getWeek(zt.locale,Vr)))},Ui="".concat(Ye,"-week-panel-row"),Wr=function(Vr){var Yr,Zr=mn(nt,zt.locale,oi,Vr),Ri=mn(nt,zt.locale,Yi,Vr);return Bt()(Ui,(Yr={},(0,vt.Z)(Yr,"".concat(Ui,"-selected"),!Xn&&mn(nt,zt.locale,Zt,Vr)),(0,vt.Z)(Yr,"".concat(Ui,"-range-start"),Zr),(0,vt.Z)(Yr,"".concat(Ui,"-range-end"),Ri),(0,vt.Z)(Yr,"".concat(Ui,"-range-hover"),!Zr&&!Ri&&gn(nt,oi,Yi,Vr)),Yr))};return we.createElement(ai,(0,ke.Z)({},Ie,{panelName:"week",prefixColumn:Mi,rowClassName:Wr,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Ta=Sa,Ra=10;function Ga(Ie){var Ye=Ie.prefixCls,nt=Ie.generateConfig,zt=Ie.viewDate,Zt=Ie.onPrevDecade,pn=Ie.onNextDecade,Sn=Ie.onDecadeClick,Zn=we.useContext(Mt),Xn=Zn.hideHeader;if(Xn)return null;var hi="".concat(Ye,"-header"),Ii=nt.getYear(zt),li=Math.floor(Ii/Ra)*Ra,Li=li+Ra-1;return we.createElement(qt,(0,ke.Z)({},Ie,{prefixCls:hi,onSuperPrev:Zt,onSuperNext:pn}),we.createElement("button",{type:"button",onClick:Sn,className:"".concat(Ye,"-decade-btn")},li,"-",Li))}var Vs=Ga,us=3,Ys=4;function hn(Ie){var Ye=Ie.prefixCls,nt=Ie.value,zt=Ie.viewDate,Zt=Ie.locale,pn=Ie.generateConfig,Sn=Ie.cellRender,Zn=we.useContext(vn),Xn=Zn.rangedValue,hi=Zn.hoverRangedValue,Ii="".concat(Ye,"-cell"),li=pn.getYear(zt),Li=Math.floor(li/Ra)*Ra,oi=Li+Ra-1,Yi=pn.setYear(zt,Li-Math.ceil((us*Ys-Ra)/2)),zn=pn.getNow(),Mi=function(Vr){var Yr=pn.getYear(Vr);return Li<=Yr&&Yr<=oi},Ui=ji({cellPrefixCls:Ii,value:nt,generateConfig:pn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(Vr,Yr){return tt(pn,Vr,Yr)},isInView:Mi,offsetCell:function(Vr,Yr){return pn.addYear(Vr,Yr)}}),Wr=Sn?function(Nr,Vr){return Sn(Nr,{originNode:Vr,today:zn,type:"year",locale:Zt})}:void 0;return we.createElement(Mn,(0,ke.Z)({},Ie,{rowNum:Ys,colNum:us,baseDate:Yi,getCellNode:Wr,getCellText:pn.getYear,getCellClassName:Ui,getCellDate:pn.addYear,titleCell:function(Vr){return _t(Vr,{locale:Zt,format:"YYYY",generateConfig:pn})}}))}var xs=hn;function yh(Ie){var Ye=Ie.prefixCls,nt=Ie.operationRef,zt=Ie.onViewDateChange,Zt=Ie.generateConfig,pn=Ie.value,Sn=Ie.viewDate,Zn=Ie.sourceMode,Xn=Ie.onSelect,hi=Ie.onPanelChange,Ii="".concat(Ye,"-year-panel");nt.current={onKeyDown:function(oi){return Ir(oi,{onLeftRight:function(zn){Xn(Zt.addYear(pn||Sn,zn),"key")},onCtrlLeftRight:function(zn){Xn(Zt.addYear(pn||Sn,zn*Ra),"key")},onUpDown:function(zn){Xn(Zt.addYear(pn||Sn,zn*us),"key")},onEnter:function(){hi(Zn==="date"?"date":"month",pn||Sn)}})}};var li=function(oi){var Yi=Zt.addYear(Sn,oi*10);zt(Yi),hi(null,Yi)};return we.createElement("div",{className:Ii},we.createElement(Vs,(0,ke.Z)({},Ie,{prefixCls:Ye,onPrevDecade:function(){li(-1)},onNextDecade:function(){li(1)},onDecadeClick:function(){hi("decade",Sn)}})),we.createElement(xs,(0,ke.Z)({},Ie,{prefixCls:Ye,onSelect:function(oi){hi(Zn==="date"?"date":"month",oi),Xn(oi,"mouse")}})))}var El=yh;function $o(Ie,Ye,nt){return nt?we.createElement("div",{className:"".concat(Ie,"-footer-extra")},nt(Ye)):null}function To(Ie){var Ye=Ie.prefixCls,nt=Ie.components,zt=nt===void 0?{}:nt,Zt=Ie.needConfirmButton,pn=Ie.onNow,Sn=Ie.onOk,Zn=Ie.okDisabled,Xn=Ie.showNow,hi=Ie.locale,Ii,li;if(Zt){var Li=zt.button||"button";pn&&Xn!==!1&&(Ii=we.createElement("li",{className:"".concat(Ye,"-now")},we.createElement("a",{className:"".concat(Ye,"-now-btn"),onClick:pn},hi.now))),li=Zt&&we.createElement("li",{className:"".concat(Ye,"-ok")},we.createElement(Li,{disabled:Zn,onClick:Sn},hi.ok))}return!Ii&&!li?null:we.createElement("ul",{className:"".concat(Ye,"-ranges")},Ii,li)}var as=["date","month"];function ma(Ie){var Ye,nt=Ie,zt=nt.prefixCls,Zt=zt===void 0?"rc-picker":zt,pn=nt.className,Sn=nt.style,Zn=nt.locale,Xn=nt.generateConfig,hi=nt.value,Ii=nt.defaultValue,li=nt.pickerValue,Li=nt.defaultPickerValue,oi=nt.disabledDate,Yi=nt.mode,zn=nt.picker,Mi=zn===void 0?"date":zn,Ui=nt.tabIndex,Wr=Ui===void 0?0:Ui,Nr=nt.showNow,Vr=nt.showTime,Yr=nt.showToday,Zr=nt.renderExtraFooter,Ri=nt.hideHeader,Uo=nt.onSelect,jo=nt.onChange,ia=nt.onPanelChange,Na=nt.onMouseDown,Aa=nt.onPickerValueChange,xa=nt.onOk,ts=nt.components,ga=nt.direction,sa=nt.hourStep,wa=sa===void 0?1:sa,Xa=nt.minuteStep,ns=Xa===void 0?1:Xa,za=nt.secondStep,Pa=za===void 0?1:za,As=nt.dateRender,_s=nt.monthCellRender,$e=nt.cellRender,ot=Mi==="date"&&!!Vr||Mi==="time",Dt=24%wa===0,Ot=60%ns===0,Qt=60%Pa===0,Gt=we.useContext(Mt),Ln=Gt.operationRef,Cn=Gt.onSelect,wn=Gt.hideRanges,ti=Gt.defaultOpenValue,jn=we.useContext(vn),qn=jn.inRange,Ei=jn.panelPosition,Pi=jn.rangedValue,mi=jn.hoverRangedValue,Ki=we.useRef({}),Si=we.useRef(!0),nr=(0,je.Z)(null,{value:hi,defaultValue:Ii,postState:function(Ai){return!Ai&&ti&&Mi==="time"?ti:Ai}}),Xi=(0,ni.Z)(nr,2),ar=Xi[0],Ur=Xi[1],oo=(0,je.Z)(null,{value:li,defaultValue:Li||ar,postState:function(Ai){var mr=Xn.getNow();if(!Ai)return mr;if(!ar&&Vr){var Fo=(0,ft.Z)(Vr)==="object"?Vr.defaultValue:Ii;return tn(Xn,Array.isArray(Ai)?Ai[0]:Ai,Fo||mr)}return Array.isArray(Ai)?Ai[0]:Ai}}),fr=(0,ni.Z)(oo,2),Ar=fr[0],Eo=fr[1],sr=function(Ai){Eo(Ai),Aa&&Aa(Ai)},Rr=function(Ai){var mr=mo[Mi];return mr?mr(Ai):Ai},gr=(0,je.Z)(function(){return Mi==="time"?"time":Rr("date")},{value:Yi}),Zi=(0,ni.Z)(gr,2),ir=Zi[0],jr=Zi[1];we.useEffect(function(){jr(Mi)},[Mi]);var ao=we.useState(function(){return ir}),lo=(0,ni.Z)(ao,2),rr=lo[0],Lo=lo[1],Ro=function(Ai,mr){var Fo=Rr(Ai||ir);Lo(ir),jr(Fo),ia&&(ir!==Fo||Jt(Xn,Ar,Ar))&&ia(mr,Fo)},Wo=function(Ai,mr){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(ir===Mi||Fo)&&(Ur(Ai),Uo&&Uo(Ai),Cn&&Cn(Ai,mr),jo&&!Jt(Xn,Ai,ar)&&!(oi!=null&&oi(Ai))&&jo(Ai))},Ho=function(Ai){if(as.includes(ir)){var mr,Fo,Xo=ir==="date";switch(Ai===fi.Z.PAGE_UP||Ai===fi.Z.PAGE_DOWN?Fo=Xo?Xn.addMonth:Xn.addYear:Fo=Xo?Xn.addDate:Xn.addMonth,Ai){case fi.Z.LEFT:case fi.Z.PAGE_UP:mr=Fo(Ar,-1);break;case fi.Z.RIGHT:case fi.Z.PAGE_DOWN:mr=Fo(Ar,1);break;case fi.Z.UP:case fi.Z.DOWN:mr=Fo(Ar,Number("".concat(Ai===fi.Z.UP?"-":"").concat(Xo?lt:Yo)));break}if(mr)return!(oi!=null&&oi(mr))}return!0},ja=function(Ai){if(Ki.current&&Ki.current.onKeyDown){var mr=!0,Fo=Ai.which;if([fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN,fi.Z.PAGE_UP,fi.Z.PAGE_DOWN,fi.Z.ENTER].includes(Fo)&&(Ai.preventDefault(),Fo!==fi.Z.ENTER&&Wr===0&&(mr=Ho(Fo))),mr)return Ki.current.onKeyDown(Ai)}return(0,at.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ea=function(Ai){Ki.current&&Ki.current.onBlur&&Ki.current.onBlur(Ai)};Ln&&Ei!=="right"&&(Ln.current={onKeyDown:ja,onClose:function(){Ki.current&&Ki.current.onClose&&Ki.current.onClose()}}),we.useEffect(function(){hi&&!Si.current&&Eo(hi)},[hi]),we.useEffect(function(){Si.current=!1},[]);var Po,$r=fn({cellRender:$e,monthCellRender:_s,dateRender:As}),po=(0,Yn.Z)((0,Yn.Z)({},Ie),{},{cellRender:$r,operationRef:Ki,prefixCls:Zt,viewDate:Ar,value:ar,onViewDateChange:sr,sourceMode:rr,onPanelChange:Ro,disabledDate:oi});switch(delete po.onChange,delete po.onSelect,ir){case"decade":Po=we.createElement(fo,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;case"year":Po=we.createElement(El,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;case"month":Po=we.createElement(Xr,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;case"quarter":Po=we.createElement(Ma,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;case"week":Po=we.createElement(Ta,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;case"time":delete po.showTime,Po=we.createElement(Br,(0,ke.Z)({},po,(0,ft.Z)(Vr)==="object"?Vr:null,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}));break;default:Vr?Po=we.createElement(ca,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}})):Po=we.createElement(ai,(0,ke.Z)({},po,{onSelect:function(Ai,mr){sr(Ai),Wo(Ai,mr)}}))}var Ba,Ca,Ka=function(){var Ai=Xn.getNow(),mr=yn(Xn.getHour(Ai),Xn.getMinute(Ai),Xn.getSecond(Ai),Dt?wa:1,Ot?ns:1,Qt?Pa:1),Fo=Rt(Xn,Ai,mr[0],mr[1],mr[2]);Wo(Fo,"submit")};wn||(Ba=$o(Zt,ir,Zr),Vr&&ir!=="date"?Ca=null:Ca=To({prefixCls:Zt,components:ts,needConfirmButton:ot,okDisabled:!ar||oi&&oi(ar),locale:Zn,showNow:Nr,onNow:ot&&Ka,onOk:function(){ar&&(Wo(ar,"submit",!0),xa&&xa(ar))}}));var yo;if(Yr&&ir==="date"&&Mi==="date"&&!Vr){var no=Xn.getNow(),Co="".concat(Zt,"-today-btn"),Jr=oi&&oi(no);yo=we.createElement("a",{className:Bt()(Co,Jr&&"".concat(Co,"-disabled")),"aria-disabled":Jr,onClick:function(){Jr||Wo(no,"mouse",!0)}},Zn.today)}return we.createElement(Mt.Provider,{value:(0,Yn.Z)((0,Yn.Z)({},Gt),{},{mode:ir,hideHeader:"hideHeader"in Ie?Ri:Gt.hideHeader,hidePrevBtn:qn&&Ei==="right",hideNextBtn:qn&&Ei==="left"})},we.createElement("div",{tabIndex:Wr,className:Bt()("".concat(Zt,"-panel"),pn,(Ye={},(0,vt.Z)(Ye,"".concat(Zt,"-panel-has-range"),Pi&&Pi[0]&&Pi[1]),(0,vt.Z)(Ye,"".concat(Zt,"-panel-has-range-hover"),mi&&mi[0]&&mi[1]),(0,vt.Z)(Ye,"".concat(Zt,"-panel-rtl"),ga==="rtl"),Ye)),style:Sn,onKeyDown:ja,onBlur:ea,onMouseDown:Na},Po,Ba||Ca||yo?we.createElement("div",{className:"".concat(Zt,"-footer")},Ba,Ca,yo):null))}var No=ma,fa=ye(35593),al={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Kr(Ie){var Ye,nt=Ie.prefixCls,zt=Ie.popupElement,Zt=Ie.popupStyle,pn=Ie.visible,Sn=Ie.dropdownClassName,Zn=Ie.dropdownAlign,Xn=Ie.transitionName,hi=Ie.getPopupContainer,Ii=Ie.children,li=Ie.range,Li=Ie.popupPlacement,oi=Ie.direction,Yi="".concat(nt,"-dropdown"),zn=function(){return Li!==void 0?Li:oi==="rtl"?"bottomRight":"bottomLeft"};return we.createElement(fa.Z,{showAction:[],hideAction:[],popupPlacement:zn(),builtinPlacements:al,prefixCls:Yi,popupTransitionName:Xn,popup:zt,popupAlign:Zn,popupVisible:pn,popupClassName:Bt()(Sn,(Ye={},(0,vt.Z)(Ye,"".concat(Yi,"-range"),li),(0,vt.Z)(Ye,"".concat(Yi,"-rtl"),oi==="rtl"),Ye)),popupStyle:Zt,getPopupContainer:hi},Ii)}var zo=Kr;function Oo(Ie){var Ye=Ie.prefixCls,nt=Ie.presets,zt=Ie.onClick,Zt=Ie.onHover;return nt.length?we.createElement("div",{className:"".concat(Ye,"-presets")},we.createElement("ul",null,nt.map(function(pn,Sn){var Zn=pn.label,Xn=pn.value;return we.createElement("li",{key:Sn,onClick:function(){return zt==null?void 0:zt(ui(Xn))},onMouseEnter:function(){return Zt==null?void 0:Zt(ui(Xn))},onMouseLeave:function(){return Zt==null?void 0:Zt(null)}},Zn)}))):null}function zi(Ie){var Ye=Ie.picker,nt=Ie.disabledHours,zt=Ie.disabledMinutes,Zt=Ie.disabledSeconds;Ye==="time"&&(nt||zt||Zt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function gs(Ie,Ye,nt){var zt=(0,ft.Z)(Ye)==="object"?Ye.clearIcon:nt;return zt||we.createElement("span",{className:"".concat(Ie,"-clear-btn")})}function ws(Ie){var Ye,nt=Ie,zt=nt.prefixCls,Zt=zt===void 0?"rc-picker":zt,pn=nt.id,Sn=nt.name,Zn=nt.tabIndex,Xn=nt.style,hi=nt.className,Ii=nt.dropdownClassName,li=nt.dropdownAlign,Li=nt.popupStyle,oi=nt.transitionName,Yi=nt.generateConfig,zn=nt.locale,Mi=nt.inputReadOnly,Ui=nt.allowClear,Wr=nt.autoFocus,Nr=nt.showTime,Vr=nt.picker,Yr=Vr===void 0?"date":Vr,Zr=nt.format,Ri=nt.use12Hours,Uo=nt.value,jo=nt.defaultValue,ia=nt.presets,Na=nt.open,Aa=nt.defaultOpen,xa=nt.defaultOpenValue,ts=nt.suffixIcon,ga=nt.clearIcon,sa=nt.disabled,wa=nt.disabledDate,Xa=nt.placeholder,ns=nt.getPopupContainer,za=nt.pickerRef,Pa=nt.panelRender,As=nt.onChange,_s=nt.onOpenChange,$e=nt.onFocus,ot=nt.onBlur,Dt=nt.onMouseDown,Ot=nt.onMouseUp,Qt=nt.onMouseEnter,Gt=nt.onMouseLeave,Ln=nt.onContextMenu,Cn=nt.onClick,wn=nt.onKeyDown,ti=nt.onSelect,jn=nt.direction,qn=nt.autoComplete,Ei=qn===void 0?"off":qn,Pi=nt.inputRender,mi=nt.changeOnBlur,Ki=we.useRef(null),Si=Yr==="date"&&!!Nr||Yr==="time",nr=Yt(ia),Xi=gi($i(Zr,Yr,Nr,Ri)),ar=we.useRef(null),Ur=we.useRef(null),oo=we.useRef(null),fr=(0,je.Z)(null,{value:Uo,defaultValue:jo}),Ar=(0,ni.Z)(fr,2),Eo=Ar[0],sr=Ar[1],Rr=we.useState(Eo),gr=(0,ni.Z)(Rr,2),Zi=gr[0],ir=gr[1],jr=we.useRef(null),ao=(0,je.Z)(!1,{value:Na,defaultValue:Aa,postState:function(So){return sa?!1:So},onChange:function(So){_s&&_s(So),!So&&jr.current&&jr.current.onClose&&jr.current.onClose()}}),lo=(0,ni.Z)(ao,2),rr=lo[0],Lo=lo[1],Ro=ii(Zi,{formatList:Xi,generateConfig:Yi,locale:zn}),Wo=(0,ni.Z)(Ro,2),Ho=Wo[0],ja=Wo[1],ea=un({valueTexts:Ho,onTextChange:function(So){var ms=$t(So,{locale:zn,formatList:Xi,generateConfig:Yi});ms&&(!wa||!wa(ms))&&ir(ms)}}),Po=(0,ni.Z)(ea,3),$r=Po[0],po=Po[1],Ba=Po[2],Ca=function(So){ir(So),sr(So),As&&!Jt(Yi,Eo,So)&&As(So,So?_t(So,{generateConfig:Yi,locale:zn,format:Xi[0]}):"")},Ka=function(So){sa&&So||Lo(So)},yo=function(So){return rr&&jr.current&&jr.current.onKeyDown?jr.current.onKeyDown(So):((0,at.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},no=function(){for(var So=arguments.length,ms=new Array(So),Is=0;Is<So;Is++)ms[Is]=arguments[Is];Cn==null||Cn.apply(void 0,ms),Ki.current&&(Ki.current.focus(),Ka(!0))},Co=function(So){mi&&Ca(Zi),ot==null||ot(So)},Jr=on({blurToCancel:Si,open:rr,value:$r,triggerOpen:Ka,forwardKeyDown:yo,isClickOutside:function(So){return!zr([ar.current,Ur.current,oo.current],So)},onSubmit:function(){return!Zi||wa&&wa(Zi)?!1:(Ca(Zi),Ka(!1),Ba(),!0)},onCancel:function(){Ka(!1),ir(Eo),Ba()},onKeyDown:function(So,ms){wn==null||wn(So,ms)},onFocus:$e,onBlur:Co,changeOnBlur:mi}),Or=(0,ni.Z)(Jr,2),Ai=Or[0],mr=Or[1],Fo=mr.focused,Xo=mr.typing;we.useEffect(function(){rr||(ir(Eo),!Ho.length||Ho[0]===""?po(""):ja!==$r&&Ba())},[rr,Ho]),we.useEffect(function(){rr||Ba()},[Yr]),we.useEffect(function(){ir(Eo)},[Eo]),za&&(za.current={focus:function(){var So;(So=Ki.current)===null||So===void 0||So.focus()},blur:function(){var So;(So=Ki.current)===null||So===void 0||So.blur()}});var Xs=pi($r,{formatList:Xi,generateConfig:Yi,locale:zn}),ks=(0,ni.Z)(Xs,3),sl=ks[0],va=ks[1],Oa=ks[2],ho=(0,Yn.Z)((0,Yn.Z)({},Ie),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Bs=we.createElement("div",{className:"".concat(Zt,"-panel-layout")},we.createElement(Oo,{prefixCls:Zt,presets:nr,onClick:function(So){Ca(So),Ka(!1)}}),we.createElement(No,(0,ke.Z)({},ho,{generateConfig:Yi,className:Bt()((0,vt.Z)({},"".concat(Zt,"-panel-focused"),!Xo)),value:Zi,locale:zn,tabIndex:-1,onSelect:function(So){ti==null||ti(So),ir(So)},direction:jn,onPanelChange:function(So,ms){var Is=Ie.onPanelChange;Oa(!0),Is==null||Is(So,ms)}})));Pa&&(Bs=Pa(Bs));var ll=we.createElement("div",{className:"".concat(Zt,"-panel-container"),ref:ar,onMouseDown:function(So){So.preventDefault()}},Bs),ka;ts&&(ka=we.createElement("span",{className:"".concat(Zt,"-suffix"),onMouseDown:function(So){So.preventDefault()}},ts));var Ha=gs(Zt,Ui,ga),Va=we.createElement("span",{onMouseDown:function(So){So.preventDefault(),So.stopPropagation()},onMouseUp:function(So){So.preventDefault(),So.stopPropagation(),Ca(null),Ka(!1)},className:"".concat(Zt,"-clear"),role:"button"},Ha),ds=!!Ui&&Eo&&!sa,Os=(0,Yn.Z)((0,Yn.Z)((0,Yn.Z)({id:pn,tabIndex:Zn,disabled:sa,readOnly:Mi||typeof Xi[0]=="function"||!Xo,value:sl||$r,onChange:function(So){po(So.target.value)},autoFocus:Wr,placeholder:Xa,ref:Ki,title:$r},Ai),{},{size:eo(Yr,Xi[0],Yi),name:Sn},(0,Me.Z)(Ie,{aria:!0,data:!0})),{},{autoComplete:Ei}),ra=Pi?Pi(Os):we.createElement("input",Os),Ja=function(So,ms){(ms==="submit"||ms!=="key"&&!Si)&&(Ca(So),Ka(!1))},js=jn==="rtl"?"bottomRight":"bottomLeft";return we.createElement(Mt.Provider,{value:{operationRef:jr,hideHeader:Yr==="time",onSelect:Ja,open:rr,defaultOpenValue:xa,onDateMouseEnter:va,onDateMouseLeave:Oa}},we.createElement(zo,{visible:rr,popupElement:ll,popupStyle:Li,prefixCls:Zt,dropdownClassName:Ii,dropdownAlign:li,getPopupContainer:ns,transitionName:oi,popupPlacement:js,direction:jn},we.createElement("div",{ref:oo,className:Bt()(Zt,hi,(Ye={},(0,vt.Z)(Ye,"".concat(Zt,"-disabled"),sa),(0,vt.Z)(Ye,"".concat(Zt,"-focused"),Fo),(0,vt.Z)(Ye,"".concat(Zt,"-rtl"),jn==="rtl"),Ye)),style:Xn,onMouseDown:Dt,onMouseUp:Ot,onMouseEnter:Qt,onMouseLeave:Gt,onContextMenu:Ln,onClick:no},we.createElement("div",{className:Bt()("".concat(Zt,"-input"),(0,vt.Z)({},"".concat(Zt,"-input-placeholder"),!!sl)),ref:Ur},ra,ka,ds&&Va))))}var dl=function(Ie){(0,nn.Z)(nt,Ie);var Ye=(0,Rn.Z)(nt);function nt(){var zt;(0,rn.Z)(this,nt);for(var Zt=arguments.length,pn=new Array(Zt),Sn=0;Sn<Zt;Sn++)pn[Sn]=arguments[Sn];return zt=Ye.call.apply(Ye,[this].concat(pn)),(0,vt.Z)((0,Kn.Z)(zt),"pickerRef",we.createRef()),(0,vt.Z)((0,Kn.Z)(zt),"focus",function(){zt.pickerRef.current&&zt.pickerRef.current.focus()}),(0,vt.Z)((0,Kn.Z)(zt),"blur",function(){zt.pickerRef.current&&zt.pickerRef.current.blur()}),zt}return(0,cn.Z)(nt,[{key:"render",value:function(){return we.createElement(ws,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),nt}(we.Component),su=dl;function xu(Ie,Ye){var nt=Ie.picker,zt=Ie.locale,Zt=Ie.selectedValue,pn=Ie.disabledDate,Sn=Ie.disabled,Zn=Ie.generateConfig,Xn=dt(Zt,0),hi=dt(Zt,1);function Ii(zn){return Zn.locale.getWeekFirstDate(zt.locale,zn)}function li(zn){var Mi=Zn.getYear(zn),Ui=Zn.getMonth(zn);return Mi*100+Ui}function Li(zn){var Mi=Zn.getYear(zn),Ui=wt(Zn,zn);return Mi*10+Ui}var oi=we.useCallback(function(zn){if(Sn[0]||pn&&pn(zn))return!0;if(Sn[1]&&hi)return!Ft(Zn,zn,hi)&&Zn.isAfter(zn,hi);if(!Ye&&hi)switch(nt){case"quarter":return Li(zn)>Li(hi);case"month":return li(zn)>li(hi);case"week":return Ii(zn)>Ii(hi);default:return!Ft(Zn,zn,hi)&&Zn.isAfter(zn,hi)}return!1},[pn,Sn[1],hi,Ye]),Yi=we.useCallback(function(zn){if(Sn[1]||pn&&pn(zn))return!0;if(Sn[0]&&Xn)return!Ft(Zn,zn,hi)&&Zn.isAfter(Xn,zn);if(!Ye&&Xn)switch(nt){case"quarter":return Li(zn)<Li(Xn);case"month":return li(zn)<li(Xn);case"week":return Ii(zn)<Ii(Xn);default:return!Ft(Zn,zn,Xn)&&Zn.isAfter(Xn,zn)}return!1},[pn,Sn[0],Xn,Ye]);return[oi,Yi]}var Fi=ye(70425),Ua=ye(6089);function Ls(Ie,Ye,nt,zt,Zt,pn,Sn,Zn,Xn,hi){var Ii=we.useState(!1),li=(0,ni.Z)(Ii,2),Li=li[0],oi=li[1],Yi=(0,Fi.useMergedState)(Ie||!1,{value:Ye}),zn=(0,ni.Z)(Yi,2),Mi=zn[0],Ui=zn[1],Wr=(0,Fi.useMergedState)(Ie||!1,{value:Ye,onChange:function(wa){hi==null||hi(wa)}}),Nr=(0,ni.Z)(Wr,2),Vr=Nr[0],Yr=Nr[1],Zr=(0,Fi.useMergedState)(0,{value:nt}),Ri=(0,ni.Z)(Zr,2),Uo=Ri[0],jo=Ri[1],ia=we.useState(null),Na=(0,ni.Z)(ia,2),Aa=Na[0],xa=Na[1];we.useEffect(function(){Vr&&oi(!0)},[Vr]);var ts=function(wa){return wa===0?1:0},ga=(0,Ua.Z)(function(sa,wa,Xa){if(wa===!1)Yr(sa);else if(sa){jo(wa),Yr(sa);var ns=ts(wa);!Vr||![Sn,Zn][ns]?xa(ns):(oi(!1),Aa!==null&&xa(null))}else if(Xa==="confirm"||Xa==="blur"&&zt){var za=Mi?ts(wa):Aa;za!==null&&(oi(!1),jo(za)),xa(null),za!==null&&!Xn[za]?(0,wi.Z)(function(){var Pa,As=[Zt,pn][za];(Pa=As.current)===null||Pa===void 0||Pa.focus()}):Yr(!1)}else Yr(!1),Ui(!1)});return[Vr,Uo,Li,ga]}function Ql(Ie,Ye,nt,zt){var Zt=bt(Ie,nt,zt,1);function pn(Sn){return Sn(Ie,Ye)?"same":Sn(Zt,Ye)?"closing":"far"}switch(nt){case"year":return pn(function(Sn,Zn){return Xe(zt,Sn,Zn)});case"quarter":case"month":return pn(function(Sn,Zn){return tt(zt,Sn,Zn)});default:return pn(function(Sn,Zn){return ct(zt,Sn,Zn)})}}function lu(Ie,Ye,nt,zt){var Zt=dt(Ie,0),pn=dt(Ie,1);if(Ye===0)return Zt;if(Zt&&pn){var Sn=Ql(Zt,pn,nt,zt);switch(Sn){case"same":return Zt;case"closing":return Zt;default:return bt(pn,nt,zt,-1)}}return Zt}function uu(Ie){var Ye=Ie.values,nt=Ie.picker,zt=Ie.defaultDates,Zt=Ie.generateConfig,pn=we.useState(function(){return[dt(zt,0),dt(zt,1)]}),Sn=(0,ni.Z)(pn,2),Zn=Sn[0],Xn=Sn[1],hi=we.useState(null),Ii=(0,ni.Z)(hi,2),li=Ii[0],Li=Ii[1],oi=dt(Ye,0),Yi=dt(Ye,1);function zn(Ui){return Zn[Ui]?Zn[Ui]:dt(li,Ui)||lu(Ye,Ui,nt,Zt)||oi||Yi||Zt.getNow()}function Mi(Ui,Wr){if(Ui){var Nr=Fn(li,Ui,Wr);Xn(Fn(Zn,null,Wr)||[null,null]);var Vr=(Wr+1)%2;dt(Ye,Vr)||(Nr=Fn(Nr,Ui,Vr)),Li(Nr)}else(oi||Yi)&&Li(null)}return[zn,Mi]}function so(Ie,Ye){return Ie&&Ie[0]&&Ie[1]&&Ye.isAfter(Ie[0],Ie[1])?[Ie[1],Ie[0]]:Ie}function Sh(Ie,Ye,nt,zt){return!!(Ie||zt&&zt[Ye]||nt[(Ye+1)%2])}function Ll(Ie){var Ye,nt,zt,Zt=Ie,pn=Zt.prefixCls,Sn=pn===void 0?"rc-picker":pn,Zn=Zt.id,Xn=Zt.style,hi=Zt.className,Ii=Zt.popupStyle,li=Zt.dropdownClassName,Li=Zt.transitionName,oi=Zt.dropdownAlign,Yi=Zt.getPopupContainer,zn=Zt.generateConfig,Mi=Zt.locale,Ui=Zt.placeholder,Wr=Zt.autoFocus,Nr=Zt.disabled,Vr=Zt.format,Yr=Zt.picker,Zr=Yr===void 0?"date":Yr,Ri=Zt.showTime,Uo=Zt.use12Hours,jo=Zt.separator,ia=jo===void 0?"~":jo,Na=Zt.value,Aa=Zt.defaultValue,xa=Zt.defaultPickerValue,ts=Zt.open,ga=Zt.defaultOpen,sa=Zt.disabledDate,wa=Zt.disabledTime,Xa=Zt.dateRender,ns=Zt.monthCellRender,za=Zt.cellRender,Pa=Zt.panelRender,As=Zt.presets,_s=Zt.ranges,$e=Zt.allowEmpty,ot=Zt.allowClear,Dt=Zt.suffixIcon,Ot=Zt.clearIcon,Qt=Zt.pickerRef,Gt=Zt.inputReadOnly,Ln=Zt.mode,Cn=Zt.renderExtraFooter,wn=Zt.onChange,ti=Zt.onOpenChange,jn=Zt.onPanelChange,qn=Zt.onCalendarChange,Ei=Zt.onFocus,Pi=Zt.onBlur,mi=Zt.onMouseDown,Ki=Zt.onMouseUp,Si=Zt.onMouseEnter,nr=Zt.onMouseLeave,Xi=Zt.onClick,ar=Zt.onOk,Ur=Zt.onKeyDown,oo=Zt.components,fr=Zt.order,Ar=Zt.direction,Eo=Zt.activePickerIndex,sr=Zt.autoComplete,Rr=sr===void 0?"off":sr,gr=Zt.changeOnBlur,Zi=Zr==="date"&&!!Ri||Zr==="time",ir=(0,we.useRef)(null),jr=(0,we.useRef)(null),ao=(0,we.useRef)(null),lo=(0,we.useRef)(null),rr=(0,we.useRef)(null),Lo=(0,we.useRef)(null),Ro=(0,we.useRef)(null),Wo=(0,we.useRef)(null),Ho=gi($i(Vr,Zr,Ri,Uo)),ja=(0,we.useRef)(null),ea=we.useMemo(function(){return Array.isArray(Nr)?Nr:[Nr||!1,Nr||!1]},[Nr]),Po=(0,je.Z)(null,{value:Na,defaultValue:Aa,postState:function(Mo){return Zr==="time"&&!fr?Mo:so(Mo,zn)}}),$r=(0,ni.Z)(Po,2),po=$r[0],Ba=$r[1],Ca=uu({values:po,picker:Zr,defaultDates:xa,generateConfig:zn}),Ka=(0,ni.Z)(Ca,2),yo=Ka[0],no=Ka[1],Co=(0,je.Z)(po,{postState:function(Mo){var Jo=Mo;if(ea[0]&&ea[1])return Jo;for(var Ya=0;Ya<2;Ya+=1)ea[Ya]&&!Jo&&!dt(Jo,Ya)&&!dt($e,Ya)&&(Jo=Fn(Jo,zn.getNow(),Ya));return Jo}}),Jr=(0,ni.Z)(Co,2),Or=Jr[0],Ai=Jr[1],mr=(0,je.Z)([Zr,Zr],{value:Ln}),Fo=(0,ni.Z)(mr,2),Xo=Fo[0],Xs=Fo[1];(0,we.useEffect)(function(){Xs([Zr,Zr])},[Zr]);var ks=function(Mo,Jo){Xs(Mo),jn&&jn(Jo,Mo)},sl=Ls(ga,ts,Eo,gr,Lo,Ro,dt(Or,0),dt(Or,1),ea,ti),va=(0,ni.Z)(sl,4),Oa=va[0],ho=va[1],Bs=va[2],ll=va[3],ka=Oa&&ho===0,Ha=Oa&&ho===1,Va=xu({picker:Zr,selectedValue:Or,locale:Mi,disabled:ea,disabledDate:sa,generateConfig:zn},!Oa||Bs),ds=(0,ni.Z)(Va,2),Os=ds[0],ra=ds[1],Ja=(0,we.useState)(0),js=(0,ni.Z)(Ja,2),Ia=js[0],So=js[1];(0,we.useEffect)(function(){!Oa&&ir.current&&So(ir.current.offsetWidth)},[Oa]);function ms($a){ll(!0,$a,"open"),(0,wi.Z)(function(){var Mo,Jo=[Lo,Ro][$a];(Mo=Jo.current)===null||Mo===void 0||Mo.focus()},0)}function Is($a,Mo){var Jo=$a,Ya=dt(Jo,0),Qs=dt(Jo,1);Ya&&Qs&&zn.isAfter(Ya,Qs)&&(Zr==="week"&&!mn(zn,Mi.locale,Ya,Qs)||Zr==="quarter"&&!xt(zn,Ya,Qs)||Zr!=="week"&&Zr!=="quarter"&&Zr!=="time"&&!Ft(zn,Ya,Qs)?Mo===0?(Jo=[Ya,null],Qs=null):(Ya=null,Jo=[null,Qs]):(Zr!=="time"||fr!==!1)&&(Jo=so(Jo,zn))),Ai(Jo);var ad=Jo&&Jo[0]?_t(Jo[0],{generateConfig:zn,locale:Mi,format:Ho[0]}):"",zl=Jo&&Jo[1]?_t(Jo[1],{generateConfig:zn,locale:Mi,format:Ho[0]}):"";if(qn){var Wh={range:Mo===0?"start":"end"};qn(Jo,[ad,zl],Wh)}var lh=Sh(Ya,0,ea,$e),cc=Sh(Qs,1,ea,$e),Zh=Jo===null||lh&&cc;Zh&&(Ba(Jo),wn&&(!Jt(zn,dt(po,0),Ya)||!Jt(zn,dt(po,1),Qs))&&wn(Jo,[ad,zl]))}var Cu=function(Mo){return Oa&&ja.current&&ja.current.onKeyDown?ja.current.onKeyDown(Mo):((0,at.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ql={formatList:Ho,generateConfig:zn,locale:Mi},Wa=ii(dt(Or,0),ql),ul=(0,ni.Z)(Wa,2),ls=ul[0],is=ul[1],hu=ii(dt(Or,1),ql),oh=(0,ni.Z)(hu,2),Il=oh[0],Gu=oh[1],Ku=function(Mo,Jo){var Ya=$t(Mo,{locale:Mi,formatList:Ho,generateConfig:zn}),Qs=Jo===0?Os:ra;Ya&&!Qs(Ya)&&(Ai(Fn(Or,Ya,Jo)),no(Ya,Jo))},_l=un({valueTexts:ls,onTextChange:function(Mo){return Ku(Mo,0)}}),ba=(0,ni.Z)(_l,3),Qa=ba[0],Hs=ba[1],rs=ba[2],Ea=un({valueTexts:Il,onTextChange:function(Mo){return Ku(Mo,1)}}),Ws=(0,ni.Z)(Ea,3),Sl=Ws[0],bu=Ws[1],ac=Ws[2],Kt=(0,we.useState)(null),wh=(0,ni.Z)(Kt,2),ah=wh[0],Rc=wh[1],vd=(0,we.useState)(null),Rh=(0,ni.Z)(vd,2),Ph=Rh[0],cf=Rh[1],fl=pi(Qa,{formatList:Ho,generateConfig:zn,locale:Mi}),id=(0,ni.Z)(fl,3),Od=id[0],Id=id[1],Rd=id[2],ff=pi(Sl,{formatList:Ho,generateConfig:zn,locale:Mi}),zd=(0,ni.Z)(ff,3),jd=zd[0],du=zd[1],zh=zd[2],zc=function(Mo){cf(Fn(Or,Mo,ho)),ho===0?Id(Mo):du(Mo)},Vu=function(){cf(Fn(Or,null,ho)),ho===0?Rd():zh()},jh=we.useState(Oa),rd=(0,ni.Z)(jh,2),od=rd[0],Rl=rd[1];we.useEffect(function(){Rl(Oa)},[Oa]);var sc=function(Mo){if(gr&&od){var Jo=dt(Or,ho);Jo&&Is(Or,ho)}return Pi==null?void 0:Pi(Mo)},Hd=function(Mo,Jo){return{blurToCancel:!gr&&Zi,forwardKeyDown:Cu,onBlur:sc,isClickOutside:function(Qs){return!zr([jr.current,ao.current,lo.current,ir.current],Qs)},onFocus:function(Qs){Ei&&Ei(Qs)},triggerOpen:function(Qs){Qs?ll(Qs,Mo,"open"):ll(Qs,dt(Or,Mo)?Mo:!1,"blur")},onSubmit:function(){if(!Or||sa&&sa(Or[Mo]))return!1;Is(Or,Mo),Jo(),ll(!1,ho,"confirm")},onCancel:function(){ll(!1,Mo,"cancel"),Ai(po),Jo()}}},eu={onKeyDown:function(Mo,Jo){Ur==null||Ur(Mo,Jo)},changeOnBlur:gr},yd=on((0,Yn.Z)((0,Yn.Z)({},Hd(0,rs)),{},{open:ka,value:Qa},eu)),Wd=(0,ni.Z)(yd,2),lc=Wd[0],Ch=Wd[1],xl=Ch.focused,Zd=Ch.typing,Js=on((0,Yn.Z)((0,Yn.Z)({},Hd(1,ac)),{},{open:Ha,value:Sl},eu)),Da=(0,ni.Z)(Js,2),cs=Da[0],gl=Da[1],cu=gl.focused,fu=gl.typing,uc=function(Mo){Xi&&Xi(Mo),!Oa&&!Lo.current.contains(Mo.target)&&!Ro.current.contains(Mo.target)&&(ea[0]?ea[1]||ms(1):ms(0))},Hh=function(Mo){mi&&mi(Mo),Oa&&(xl||cu)&&!Lo.current.contains(Mo.target)&&!Ro.current.contains(Mo.target)&&Mo.preventDefault()},Gd=po&&po[0]?_t(po[0],{locale:Mi,format:"YYYYMMDDHHmmss",generateConfig:zn}):"",Tu=po&&po[1]?_t(po[1],{locale:Mi,format:"YYYYMMDDHHmmss",generateConfig:zn}):"";(0,we.useEffect)(function(){Oa||(Ai(po),!ls.length||ls[0]===""?Hs(""):is!==Qa&&rs(),!Il.length||Il[0]===""?bu(""):Gu!==Sl&&ac())},[Oa,ls,Il]),(0,we.useEffect)(function(){Ai(po)},[Gd,Tu]);var Yu=fn({cellRender:za,monthCellRender:ns,dateRender:Xa}),gf=we.useMemo(function(){if(Yu)return function($a,Mo){return Yu($a,(0,Yn.Z)((0,Yn.Z)({},Mo),{},{range:ho?"end":"start"}))}},[ho,Yu]);Qt&&(Qt.current={focus:function(){Lo.current&&Lo.current.focus()},blur:function(){Lo.current&&Lo.current.blur(),Ro.current&&Ro.current.blur()}});var pf=Yt(As,_s);function hc(){var $a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jo=null;Oa&&Ph&&Ph[0]&&Ph[1]&&zn.isAfter(Ph[1],Ph[0])&&(Jo=Ph);var Ya=Ri;if(Ri&&(0,ft.Z)(Ri)==="object"&&Ri.defaultValue){var Qs=Ri.defaultValue;Ya=(0,Yn.Z)((0,Yn.Z)({},Ri),{},{defaultValue:dt(Qs,ho)||void 0})}return we.createElement(vn.Provider,{value:{inRange:!0,panelPosition:$a,rangedValue:ah||Or,hoverRangedValue:Jo}},we.createElement(No,(0,ke.Z)({},Ie,Mo,{cellRender:gf,showTime:Ya,mode:Xo[ho],generateConfig:zn,style:void 0,direction:Ar,disabledDate:ho===0?Os:ra,disabledTime:function(zl){return wa?wa(zl,ho===0?"start":"end"):!1},className:Bt()((0,vt.Z)({},"".concat(Sn,"-panel-focused"),ho===0?!Zd:!fu)),value:dt(Or,ho),locale:Mi,tabIndex:-1,onPanelChange:function(zl,Wh){ho===0&&Rd(!0),ho===1&&zh(!0),ks(Fn(Xo,Wh,ho),Fn(Or,zl,ho));var lh=zl;$a==="right"&&Xo[ho]===Wh&&(lh=bt(lh,Wh,zn,-1)),no(lh,ho)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ho===0?dt(Or,1):dt(Or,0)})))}var Du=0,mf=0;if(ho&&ao.current&&rr.current&&jr.current&&Wo.current){Du=ao.current.offsetWidth+rr.current.offsetWidth;var Wf=Wo.current.offsetLeft>Du?Wo.current.offsetLeft-Du:Wo.current.offsetLeft,vf=jr.current.offsetWidth,sh=Wo.current.offsetWidth;vf&&sh&&Du>vf-sh-(Ar==="rtl"?0:Wf)&&(mf=Du)}var Sg=Ar==="rtl"?{right:Du}:{left:Du};function Zf(){var $a,Mo=$o(Sn,Xo[ho],Cn),Jo=To({prefixCls:Sn,components:oo,needConfirmButton:Zi,okDisabled:!dt(Or,ho)||sa&&sa(Or[ho]),locale:Mi,onOk:function(){var uh=dt(Or,ho);uh&&(Is(Or,ho),ar==null||ar(Or),ll(!1,ho,"confirm"))}});if(Zr!=="time"&&!Ri){var Ya=yo(ho),Qs=bt(Ya,Zr,zn),ad=Xo[ho],zl=ad===Zr,Wh=hc(zl?"left":!1,{pickerValue:Ya,onPickerValueChange:function(uh){no(uh,ho)}}),lh=hc("right",{pickerValue:Qs,onPickerValueChange:function(uh){no(bt(uh,Zr,zn,-1),ho)}});Ar==="rtl"?$a=we.createElement(we.Fragment,null,lh,zl&&Wh):$a=we.createElement(we.Fragment,null,Wh,zl&&lh)}else $a=hc();var cc=we.createElement("div",{className:"".concat(Sn,"-panel-layout")},we.createElement(Oo,{prefixCls:Sn,presets:pf,onClick:function(uh){Is(uh,null),ll(!1,ho,"preset")},onHover:function(uh){Rc(uh)}}),we.createElement("div",null,we.createElement("div",{className:"".concat(Sn,"-panels")},$a),(Mo||Jo)&&we.createElement("div",{className:"".concat(Sn,"-footer")},Mo,Jo)));return Pa&&(cc=Pa(cc)),we.createElement("div",{className:"".concat(Sn,"-panel-container"),style:{marginLeft:mf},ref:jr,onMouseDown:function(uh){uh.preventDefault()}},cc)}var dc=we.createElement("div",{className:Bt()("".concat(Sn,"-range-wrapper"),"".concat(Sn,"-").concat(Zr,"-range-wrapper")),style:{minWidth:Ia}},we.createElement("div",{ref:Wo,className:"".concat(Sn,"-range-arrow"),style:Sg}),Zf()),Sd;Dt&&(Sd=we.createElement("span",{className:"".concat(Sn,"-suffix"),onMouseDown:function(Mo){Mo.preventDefault()}},Dt));var Gf=gs(Sn,ot,Ot),bh=we.createElement("span",{onMouseDown:function(Mo){Mo.preventDefault(),Mo.stopPropagation()},onMouseUp:function(Mo){Mo.preventDefault(),Mo.stopPropagation();var Jo=po;ea[0]||(Jo=Fn(Jo,null,0)),ea[1]||(Jo=Fn(Jo,null,1)),Is(Jo,null),ll(!1,ho,"clear")},className:"".concat(Sn,"-clear"),role:"button"},Gf),Kf=ot&&(dt(po,0)&&!ea[0]||dt(po,1)&&!ea[1]),jc={size:eo(Zr,Ho[0],zn)},yf=0,Hc=0;ao.current&&lo.current&&rr.current&&(ho===0?Hc=ao.current.offsetWidth:(yf=Du,Hc=lo.current.offsetWidth));var Vf=Ar==="rtl"?{right:yf}:{left:yf},sp=function(Mo,Jo){var Ya=Fn(Or,Mo,ho);if(Jo==="submit"||Jo!=="key"&&!Zi){Is(Ya,ho),ho===0?Rd():zh();var Qs=ho===0?1:0;ea[Qs]?ll(!1,!1,"confirm"):ll(!1,ho,"confirm")}else Ai(Ya)};return we.createElement(Mt.Provider,{value:{operationRef:ja,hideHeader:Zr==="time",onDateMouseEnter:zc,onDateMouseLeave:Vu,hideRanges:!0,onSelect:sp,open:Oa}},we.createElement(zo,{visible:Oa,popupElement:dc,popupStyle:Ii,prefixCls:Sn,dropdownClassName:li,dropdownAlign:oi,getPopupContainer:Yi,transitionName:Li,range:!0,direction:Ar},we.createElement("div",(0,ke.Z)({ref:ir,className:Bt()(Sn,"".concat(Sn,"-range"),hi,(Ye={},(0,vt.Z)(Ye,"".concat(Sn,"-disabled"),ea[0]&&ea[1]),(0,vt.Z)(Ye,"".concat(Sn,"-focused"),ho===0?xl:cu),(0,vt.Z)(Ye,"".concat(Sn,"-rtl"),Ar==="rtl"),Ye)),style:Xn,onClick:uc,onMouseEnter:Si,onMouseLeave:nr,onMouseDown:Hh,onMouseUp:Ki},(0,Me.Z)(Ie,{aria:!0,data:!0})),we.createElement("div",{className:Bt()("".concat(Sn,"-input"),(nt={},(0,vt.Z)(nt,"".concat(Sn,"-input-active"),ho===0),(0,vt.Z)(nt,"".concat(Sn,"-input-placeholder"),!!Od),nt)),ref:ao},we.createElement("input",(0,ke.Z)({id:Zn,disabled:ea[0],readOnly:Gt||typeof Ho[0]=="function"||!Zd,value:Od||Qa,onChange:function(Mo){Hs(Mo.target.value)},autoFocus:Wr,placeholder:dt(Ui,0)||"",ref:Lo},lc,jc,{autoComplete:Rr}))),we.createElement("div",{className:"".concat(Sn,"-range-separator"),ref:rr},ia),we.createElement("div",{className:Bt()("".concat(Sn,"-input"),(zt={},(0,vt.Z)(zt,"".concat(Sn,"-input-active"),ho===1),(0,vt.Z)(zt,"".concat(Sn,"-input-placeholder"),!!jd),zt)),ref:lo},we.createElement("input",(0,ke.Z)({disabled:ea[1],readOnly:Gt||typeof Ho[0]=="function"||!fu,value:jd||Sl,onChange:function(Mo){bu(Mo.target.value)},placeholder:dt(Ui,1)||"",ref:Ro},cs,jc,{autoComplete:Rr}))),we.createElement("div",{className:"".concat(Sn,"-active-bar"),style:(0,Yn.Z)((0,Yn.Z)({},Vf),{},{width:Hc,position:"absolute"})}),Sd,Kf&&bh)))}var Ml=function(Ie){(0,nn.Z)(nt,Ie);var Ye=(0,Rn.Z)(nt);function nt(){var zt;(0,rn.Z)(this,nt);for(var Zt=arguments.length,pn=new Array(Zt),Sn=0;Sn<Zt;Sn++)pn[Sn]=arguments[Sn];return zt=Ye.call.apply(Ye,[this].concat(pn)),(0,vt.Z)((0,Kn.Z)(zt),"pickerRef",we.createRef()),(0,vt.Z)((0,Kn.Z)(zt),"focus",function(){zt.pickerRef.current&&zt.pickerRef.current.focus()}),(0,vt.Z)((0,Kn.Z)(zt),"blur",function(){zt.pickerRef.current&&zt.pickerRef.current.blur()}),zt}return(0,cn.Z)(nt,[{key:"render",value:function(){return we.createElement(Ll,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),nt}(we.Component),ml=Ml,Wu=su,wu=ye(19080),vl=ye(36355),Al=ye(1684),Bh=ye(19716),_h=ye(32441),Oh=ye(9763),gd=ye(33234),Ih=ye(48183),Zu=ye(64993),Bl=ye(9937),Ol=ye(17313),pd=ye(47585),ed=ye(74207),Pu=ye(13826),Bo=ye(92899),da=ye(37613),cl=ye(83116);const Ps=(Ie,Ye,nt,zt)=>{const{lineHeight:Zt}=Ie,pn=Math.floor(nt*Zt)+2,Sn=Math.max((Ye-pn)/2,0),Zn=Math.max(Ye-pn-Sn,0);return{padding:`${Sn}px ${zt}px ${Zn}px`}},Cs=Ie=>{const{componentCls:Ye,pickerCellCls:nt,pickerCellInnerCls:zt,cellHeight:Zt,motionDurationSlow:pn,borderRadiusSM:Sn,motionDurationMid:Zn,cellHoverBg:Xn,lineWidth:hi,lineType:Ii,colorPrimary:li,cellActiveWithRangeBg:Li,colorTextLightSolid:oi,controlHeightSM:Yi,cellRangeBorderColor:zn,pickerCellBorderGap:Mi,cellHoverWithRangeBg:Ui,cellWidth:Wr,colorTextDisabled:Nr,cellBgDisabled:Vr}=Ie;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Zt,transform:"translateY(-50%)",transition:`all ${pn}`,content:'""'},[zt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Zt,height:Zt,lineHeight:`${Zt}px`,borderRadius:Sn,transition:`background ${Zn}, border ${Zn}`},"&-range-hover-start, &-range-hover-end":{[zt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${nt}-in-view),
|
|
|
&:hover:not(${nt}-selected):not(${nt}-range-start):not(${nt}-range-end):not(${nt}-range-hover-start):not(${nt}-range-hover-end)`]:{[zt]:{background:Xn}},[`&-in-view${nt}-today ${zt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${hi}px ${Ii} ${li}`,borderRadius:Sn,content:'""'}},[`&-in-view${nt}-in-range`]:{position:"relative","&::before":{background:Li}},[`&-in-view${nt}-selected ${zt},
|
|
|
&-in-view${nt}-range-start ${zt},
|
|
|
&-in-view${nt}-range-end ${zt}`]:{color:oi,background:li},[`&-in-view${nt}-range-start:not(${nt}-range-start-single),
|
|
|
&-in-view${nt}-range-end:not(${nt}-range-end-single)`]:{"&::before":{background:Li}},[`&-in-view${nt}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${nt}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${nt}-range-hover-start:not(${nt}-in-range):not(${nt}-range-start):not(${nt}-range-end),
|
|
|
&-in-view${nt}-range-hover-end:not(${nt}-in-range):not(${nt}-range-start):not(${nt}-range-end),
|
|
|
&-in-view${nt}-range-hover-start${nt}-range-start-single,
|
|
|
&-in-view${nt}-range-hover-start${nt}-range-start${nt}-range-end${nt}-range-end-near-hover,
|
|
|
&-in-view${nt}-range-hover-end${nt}-range-start${nt}-range-end${nt}-range-start-near-hover,
|
|
|
&-in-view${nt}-range-hover-end${nt}-range-end-single,
|
|
|
&-in-view${nt}-range-hover:not(${nt}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Yi,borderTop:`${hi}px dashed ${zn}`,borderBottom:`${hi}px dashed ${zn}`,transform:"translateY(-50%)",transition:`all ${pn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Mi},[`&-in-view${nt}-in-range${nt}-range-hover::before,
|
|
|
&-in-view${nt}-in-range${nt}-range-hover-start::before,
|
|
|
&-in-view${nt}-in-range${nt}-range-hover-end::before,
|
|
|
&-in-view${nt}-range-start${nt}-range-hover::before,
|
|
|
&-in-view${nt}-range-end${nt}-range-hover::before,
|
|
|
&-in-view${nt}-range-start:not(${nt}-range-start-single)${nt}-range-hover-start::before,
|
|
|
&-in-view${nt}-range-end:not(${nt}-range-end-single)${nt}-range-hover-end::before,
|
|
|
${Ye}-panel
|
|
|
> :not(${Ye}-date-panel)
|
|
|
&-in-view${nt}-in-range${nt}-range-hover-start::before,
|
|
|
${Ye}-panel
|
|
|
> :not(${Ye}-date-panel)
|
|
|
&-in-view${nt}-in-range${nt}-range-hover-end::before`]:{background:Ui},[`&-in-view${nt}-range-start:not(${nt}-range-start-single):not(${nt}-range-end) ${zt}`]:{borderStartStartRadius:Sn,borderEndStartRadius:Sn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${nt}-range-end:not(${nt}-range-end-single):not(${nt}-range-start) ${zt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Sn,borderEndEndRadius:Sn},[`&-range-hover${nt}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${nt}-range-hover:first-child::after,
|
|
|
tr > &-in-view${nt}-range-hover-end:first-child::after,
|
|
|
&-in-view${nt}-start${nt}-range-hover-edge-start${nt}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${nt}-range-hover-edge-start:not(${nt}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${nt}-range-hover-start::after`]:{insetInlineStart:(Wr-Zt)/2,borderInlineStart:`${hi}px dashed ${zn}`,borderStartStartRadius:Sn,borderEndStartRadius:Sn},[`tr > &-in-view${nt}-range-hover:last-child::after,
|
|
|
tr > &-in-view${nt}-range-hover-start:last-child::after,
|
|
|
&-in-view${nt}-end${nt}-range-hover-edge-end${nt}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${nt}-range-hover-edge-end:not(${nt}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${nt}-range-hover-end::after`]:{insetInlineEnd:(Wr-Zt)/2,borderInlineEnd:`${hi}px dashed ${zn}`,borderStartEndRadius:Sn,borderEndEndRadius:Sn},"&-disabled":{color:Nr,pointerEvents:"none",[zt]:{background:"transparent"},"&::before":{background:Vr}},[`&-disabled${nt}-today ${zt}::before`]:{borderColor:Nr}}},es=Ie=>{const{componentCls:Ye,pickerCellCls:nt,pickerCellInnerCls:zt,pickerYearMonthCellWidth:Zt,pickerControlIconSize:pn,cellWidth:Sn,paddingSM:Zn,paddingXS:Xn,paddingXXS:hi,colorBgContainer:Ii,lineWidth:li,lineType:Li,borderRadiusLG:oi,colorPrimary:Yi,colorTextHeading:zn,colorSplit:Mi,pickerControlIconBorderWidth:Ui,colorIcon:Wr,textHeight:Nr,motionDurationMid:Vr,colorIconHover:Yr,fontWeightStrong:Zr,cellHeight:Ri,pickerCellPaddingVertical:Uo,colorTextDisabled:jo,colorText:ia,fontSize:Na,cellHoverWithRangeBg:Aa,motionDurationSlow:xa,withoutTimeCellHeight:ts,pickerQuarterPanelContentHeight:ga,colorLink:sa,colorLinkActive:wa,colorLinkHover:Xa,cellRangeBorderColor:ns,borderRadiusSM:za,colorTextLightSolid:Pa,cellHoverBg:As,timeColumnHeight:_s,timeColumnWidth:$e,timeCellHeight:ot,controlItemBgActive:Dt,marginXXS:Ot,pickerDatePanelPaddingHorizontal:Qt}=Ie,Gt=Sn*7+Qt*2,Ln=(Gt-Xn*2)/3-Zt-Zn,Cn=(Gt-Xn*2)/4-Zt;return{[Ye]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ii,border:`${li}px ${Li} ${Mi}`,borderRadius:oi,outline:"none","&-focused":{borderColor:Yi},"&-rtl":{direction:"rtl",[`${Ye}-prev-icon,
|
|
|
${Ye}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Ye}-next-icon,
|
|
|
${Ye}-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:Gt},"&-header":{display:"flex",padding:`0 ${Xn}px`,color:zn,borderBottom:`${li}px ${Li} ${Mi}`,"> *":{flex:"none"},button:{padding:0,color:Wr,lineHeight:`${Nr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Vr}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Na,"&:hover":{color:Yr}},"&-view":{flex:"auto",fontWeight:Zr,lineHeight:`${Nr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Xn},"&:hover":{color:Yi}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:pn,height:pn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:pn,height:pn,border:"0 solid currentcolor",borderBlockStartWidth:Ui,borderBlockEndWidth:0,borderInlineStartWidth:Ui,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(pn/2),insetInlineStart:Math.ceil(pn/2),display:"inline-block",width:pn,height:pn,border:"0 solid currentcolor",borderBlockStartWidth:Ui,borderBlockEndWidth:0,borderInlineStartWidth:Ui,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Ri,fontWeight:"normal"},th:{height:Ri+Uo*2,color:ia,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Uo}px 0`,color:jo,cursor:"pointer","&-in-view":{color:ia}},Cs(Ie)),[`&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-start ${zt},
|
|
|
&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-end ${zt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Aa,transition:`all ${xa}`,content:'""'}},[`&-date-panel
|
|
|
${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-start
|
|
|
${zt}::after`]:{insetInlineEnd:-(Sn-Ri)/2,insetInlineStart:0},[`&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-end ${zt}::after`]:{insetInlineEnd:0,insetInlineStart:-(Sn-Ri)/2},[`&-range-hover${Ye}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ye}-content`]:{height:ts*4},[zt]:{padding:`0 ${Xn}px`}},"&-quarter-panel":{[`${Ye}-content`]:{height:ga},[`${Ye}-cell-range-hover-start::after`]:{insetInlineStart:Cn,borderInlineStart:`${li}px dashed ${ns}`,[`${Ye}-panel-rtl &`]:{insetInlineEnd:Cn,borderInlineEnd:`${li}px dashed ${ns}`}},[`${Ye}-cell-range-hover-end::after`]:{insetInlineEnd:Cn,borderInlineEnd:`${li}px dashed ${ns}`,[`${Ye}-panel-rtl &`]:{insetInlineStart:Cn,borderInlineStart:`${li}px dashed ${ns}`}}},[`&-panel ${Ye}-footer`]:{borderTop:`${li}px ${Li} ${Mi}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Nr-2*li}px`,textAlign:"center","&-extra":{padding:`0 ${Zn}px`,lineHeight:`${Nr-2*li}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${li}px ${Li} ${Mi}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:sa,"&:hover":{color:Xa},"&:active":{color:wa},[`&${Ye}-today-btn-disabled`]:{color:jo,cursor:"not-allowed"}},"&-decade-panel":{[zt]:{padding:`0 ${Xn/2}px`},[`${Ye}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ye}-body`]:{padding:`0 ${Xn}px`},[zt]:{width:Zt},[`${Ye}-cell-range-hover-start::after`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0,[`${Ye}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za}},[`${Ye}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za,[`${Ye}-panel-rtl &`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Ye}-cell-range-hover-start::after`]:{insetInlineStart:Ln,borderInlineStart:`${li}px dashed ${ns}`,[`${Ye}-panel-rtl &`]:{insetInlineEnd:Ln,borderInlineEnd:`${li}px dashed ${ns}`}},[`${Ye}-cell-range-hover-end::after`]:{insetInlineEnd:Ln,borderInlineEnd:`${li}px dashed ${ns}`,[`${Ye}-panel-rtl &`]:{insetInlineStart:Ln,borderInlineStart:`${li}px dashed ${ns}`}}},"&-week-panel":{[`${Ye}-body`]:{padding:`${Xn}px ${Zn}px`},[`${Ye}-cell`]:{[`&:hover ${zt},
|
|
|
&-selected ${zt},
|
|
|
${zt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Vr}`},"&:first-child:before":{borderStartStartRadius:za,borderEndStartRadius:za},"&:last-child:before":{borderStartEndRadius:za,borderEndEndRadius:za}},"&:hover td":{"&:before":{background:As}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${nt}`]:{"&:before":{background:Yi},[`&${Ye}-cell-week`]:{color:new Zu.C(Pa).setAlpha(.5).toHexString()},[zt]:{color:Pa}}},"&-range-hover td:before":{background:Dt}}},"&-date-panel":{[`${Ye}-body`]:{padding:`${Xn}px ${Qt}px`},[`${Ye}-content`]:{width:Sn*7,th:{width:Sn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Ye}-time-panel`]:{borderInlineStart:`${li}px ${Li} ${Mi}`},[`${Ye}-date-panel,
|
|
|
${Ye}-time-panel`]:{transition:`opacity ${xa}`},"&-active":{[`${Ye}-date-panel,
|
|
|
${Ye}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Ye}-content`]:{display:"flex",flex:"auto",height:_s},"&-column":{flex:"1 0 auto",width:$e,margin:`${hi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Vr}`,overflowX:"hidden","&::after":{display:"block",height:_s-ot,content:'""'},"&:not(:first-child)":{borderInlineStart:`${li}px ${Li} ${Mi}`},"&-active":{background:new Zu.C(Dt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Ye}-time-panel-cell`]:{marginInline:Ot,[`${Ye}-time-panel-cell-inner`]:{display:"block",width:$e-2*Ot,height:ot,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:($e-ot)/2,color:ia,lineHeight:`${ot}px`,borderRadius:za,cursor:"pointer",transition:`background ${Vr}`,"&:hover":{background:As}},"&-selected":{[`${Ye}-time-panel-cell-inner`]:{background:Dt}},"&-disabled":{[`${Ye}-time-panel-cell-inner`]:{color:jo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Ye}-time-panel-column:after`]:{height:_s-ot+hi*2}}}},hs=Ie=>{const{componentCls:Ye,colorBgContainer:nt,colorError:zt,errorActiveShadow:Zt,colorWarning:pn,warningActiveShadow:Sn}=Ie;return{[`${Ye}:not(${Ye}-disabled)`]:{[`&${Ye}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:nt,borderColor:zt},[`&${Ye}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,da.TS)(Ie,{activeBorderColor:zt,activeShadow:Zt}))),[`${Ye}-active-bar`]:{background:zt}},[`&${Ye}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:nt,borderColor:pn},[`&${Ye}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,da.TS)(Ie,{activeBorderColor:pn,activeShadow:Sn}))),[`${Ye}-active-bar`]:{background:pn}}}}},Ms=Ie=>{const{componentCls:Ye,antCls:nt,controlHeight:zt,fontSize:Zt,paddingInline:pn,colorBgContainer:Sn,lineWidth:Zn,lineType:Xn,colorBorder:hi,borderRadius:Ii,motionDurationMid:li,colorBgContainerDisabled:Li,colorTextDisabled:oi,colorTextPlaceholder:Yi,controlHeightLG:zn,fontSizeLG:Mi,controlHeightSM:Ui,paddingInlineSM:Wr,paddingXS:Nr,marginXS:Vr,colorTextDescription:Yr,lineWidthBold:Zr,lineHeight:Ri,colorPrimary:Uo,motionDurationSlow:jo,zIndexPopup:ia,paddingXXS:Na,paddingSM:Aa,textHeight:xa,cellActiveWithRangeBg:ts,colorPrimaryBorder:ga,sizePopupArrow:sa,borderRadiusXS:wa,borderRadiusOuter:Xa,colorBgElevated:ns,borderRadiusLG:za,boxShadowSecondary:Pa,borderRadiusSM:As,colorSplit:_s,cellHoverBg:$e,presetsWidth:ot,presetsMaxWidth:Dt,boxShadowPopoverArrow:Ot,colorTextQuaternary:Qt}=Ie;return[{[Ye]:Object.assign(Object.assign(Object.assign({},(0,Ol.Wf)(Ie)),Ps(Ie,zt,Zt,pn)),{position:"relative",display:"inline-flex",alignItems:"center",background:Sn,lineHeight:1,border:`${Zn}px ${Xn} ${hi}`,borderRadius:Ii,transition:`border ${li}, box-shadow ${li}`,"&:hover, &-focused":Object.assign({},(0,Bl.pU)(Ie)),"&-focused":Object.assign({},(0,Bl.M1)(Ie)),[`&${Ye}-disabled`]:{background:Li,borderColor:hi,cursor:"not-allowed",[`${Ye}-suffix`]:{color:Qt}},[`&${Ye}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Ye}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Bl.ik)(Ie)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Ye}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Yi}}},"&-large":Object.assign(Object.assign({},Ps(Ie,zn,Mi,pn)),{[`${Ye}-input > input`]:{fontSize:Mi}}),"&-small":Object.assign({},Ps(Ie,Ui,Zt,Wr)),[`${Ye}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Nr/2,color:oi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Vr}}},[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:oi,lineHeight:1,background:Sn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${li}, color ${li}`,"> *":{verticalAlign:"top"},"&:hover":{color:Yr}},[`${Ye}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Mi,color:oi,fontSize:Mi,verticalAlign:"top",cursor:"default",[`${Ye}-focused &`]:{color:Yr},[`${Ye}-range-separator &`]:{[`${Ye}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Ye}-clear`]:{insetInlineEnd:pn},"&:hover":{[`${Ye}-clear`]:{opacity:1}},[`${Ye}-active-bar`]:{bottom:-Zn,height:Zr,marginInlineStart:pn,background:Uo,opacity:0,transition:`all ${jo} ease-out`,pointerEvents:"none"},[`&${Ye}-focused`]:{[`${Ye}-active-bar`]:{opacity:1}},[`${Ye}-range-separator`]:{alignItems:"center",padding:`0 ${Nr}px`,lineHeight:1},[`&${Ye}-small`]:{[`${Ye}-clear`]:{insetInlineEnd:Wr},[`${Ye}-active-bar`]:{marginInlineStart:Wr}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Ol.Wf)(Ie)),es(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ia,[`&${Ye}-dropdown-hidden`]:{display:"none"},[`&${Ye}-dropdown-placement-bottomLeft`]:{[`${Ye}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Ye}-dropdown-placement-topLeft`]:{[`${Ye}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${nt}-slide-up-enter${nt}-slide-up-enter-active${Ye}-dropdown-placement-topLeft,
|
|
|
&${nt}-slide-up-enter${nt}-slide-up-enter-active${Ye}-dropdown-placement-topRight,
|
|
|
&${nt}-slide-up-appear${nt}-slide-up-appear-active${Ye}-dropdown-placement-topLeft,
|
|
|
&${nt}-slide-up-appear${nt}-slide-up-appear-active${Ye}-dropdown-placement-topRight`]:{animationName:Pu.Qt},[`&${nt}-slide-up-enter${nt}-slide-up-enter-active${Ye}-dropdown-placement-bottomLeft,
|
|
|
&${nt}-slide-up-enter${nt}-slide-up-enter-active${Ye}-dropdown-placement-bottomRight,
|
|
|
&${nt}-slide-up-appear${nt}-slide-up-appear-active${Ye}-dropdown-placement-bottomLeft,
|
|
|
&${nt}-slide-up-appear${nt}-slide-up-appear-active${Ye}-dropdown-placement-bottomRight`]:{animationName:Pu.fJ},[`&${nt}-slide-up-leave${nt}-slide-up-leave-active${Ye}-dropdown-placement-topLeft,
|
|
|
&${nt}-slide-up-leave${nt}-slide-up-leave-active${Ye}-dropdown-placement-topRight`]:{animationName:Pu.ly},[`&${nt}-slide-up-leave${nt}-slide-up-leave-active${Ye}-dropdown-placement-bottomLeft,
|
|
|
&${nt}-slide-up-leave${nt}-slide-up-leave-active${Ye}-dropdown-placement-bottomRight`]:{animationName:Pu.Uw},[`${Ye}-panel > ${Ye}-time-panel`]:{paddingTop:Na},[`${Ye}-ranges`]:{marginBottom:0,padding:`${Na}px ${Aa}px`,overflow:"hidden",lineHeight:`${xa-2*Zn-Nr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ye}-preset > ${nt}-tag-blue`]:{color:Uo,background:ts,borderColor:ga,cursor:"pointer"},[`${Ye}-ok`]:{marginInlineStart:"auto"}},[`${Ye}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ye}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:pn*1.5,transition:`left ${jo} ease-out`},(0,pd.r)(sa,wa,Xa,ns,Ot)),[`${Ye}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ns,borderRadius:za,boxShadow:Pa,transition:`margin ${jo}`,[`${Ye}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ye}-presets`]:{display:"flex",flexDirection:"column",minWidth:ot,maxWidth:Dt,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Nr,borderInlineEnd:`${Zn}px ${Xn} ${_s}`,li:Object.assign(Object.assign({},Ol.vS),{borderRadius:As,paddingInline:Nr,paddingBlock:(Ui-Math.round(Zt*Ri))/2,cursor:"pointer",transition:`all ${jo}`,"+ li":{marginTop:Vr},"&:hover":{background:$e}})}},[`${Ye}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ye}-panel`]:{borderWidth:`0 0 ${Zn}px`},"&:last-child":{[`${Ye}-panel`]:{borderWidth:0}}},[`${Ye}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ye}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:hi}}}}),"&-dropdown-range":{padding:`${sa*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ye}-separator`]:{transform:"rotate(180deg)"},[`${Ye}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Pu.oN)(Ie,"slide-up"),(0,Pu.oN)(Ie,"slide-down"),(0,Bo.Fm)(Ie,"move-up"),(0,Bo.Fm)(Ie,"move-down")]},bs=Ie=>{const{componentCls:Ye,controlHeightLG:nt,paddingXXS:zt,padding:Zt}=Ie;return{pickerCellCls:`${Ye}-cell`,pickerCellInnerCls:`${Ye}-cell-inner`,pickerYearMonthCellWidth:nt*1.5,pickerQuarterPanelContentHeight:nt*1.4,pickerCellPaddingVertical:zt+zt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Zt+zt/2}},nh=Ie=>({cellHoverBg:Ie.controlItemBgHover,cellActiveWithRangeBg:Ie.controlItemBgActive,cellHoverWithRangeBg:new Zu.C(Ie.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Zu.C(Ie.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ie.colorBgContainerDisabled,timeColumnWidth:Ie.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ie.controlHeightSM*1.5,cellHeight:Ie.controlHeightSM,textHeight:Ie.controlHeightLG,withoutTimeCellHeight:Ie.controlHeightLG*1.65});var $l=(0,cl.Z)("DatePicker",Ie=>{const Ye=(0,da.TS)((0,Bl.e5)(Ie),bs(Ie));return[Ms(Ye),hs(Ye),(0,ed.c)(Ie,{focusElCls:`${Ie.componentCls}-focused`})]},Ie=>Object.assign(Object.assign(Object.assign({},(0,Bl.TM)(Ie)),nh(Ie)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ie.zIndexPopupBase+50}));function ps(Ie,Ye,nt){return nt!==void 0?nt:Ye==="year"&&Ie.lang.yearPlaceholder?Ie.lang.yearPlaceholder:Ye==="quarter"&&Ie.lang.quarterPlaceholder?Ie.lang.quarterPlaceholder:Ye==="month"&&Ie.lang.monthPlaceholder?Ie.lang.monthPlaceholder:Ye==="week"&&Ie.lang.weekPlaceholder?Ie.lang.weekPlaceholder:Ye==="time"&&Ie.timePickerLocale.placeholder?Ie.timePickerLocale.placeholder:Ie.lang.placeholder}function ic(Ie,Ye,nt){return nt!==void 0?nt:Ye==="year"&&Ie.lang.yearPlaceholder?Ie.lang.rangeYearPlaceholder:Ye==="quarter"&&Ie.lang.quarterPlaceholder?Ie.lang.rangeQuarterPlaceholder:Ye==="month"&&Ie.lang.monthPlaceholder?Ie.lang.rangeMonthPlaceholder:Ye==="week"&&Ie.lang.weekPlaceholder?Ie.lang.rangeWeekPlaceholder:Ye==="time"&&Ie.timePickerLocale.placeholder?Ie.timePickerLocale.rangePlaceholder:Ie.lang.rangePlaceholder}function md(Ie,Ye){const nt={adjustX:1,adjustY:1};switch(Ye){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:nt};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:nt};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:nt};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:nt};default:return{points:Ie==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:nt}}}function td(Ie){return Ie?Array.isArray(Ie)?Ie:[Ie]:[]}function Mr(Ie){const{format:Ye,picker:nt,showHour:zt,showMinute:Zt,showSecond:pn,use12Hours:Sn}=Ie,Zn=td(Ye)[0],Xn=Object.assign({},Ie);return Ye&&Array.isArray(Ye)&&(Xn.format=Zn),Zn&&typeof Zn=="string"&&(!Zn.includes("s")&&pn===void 0&&(Xn.showSecond=!1),!Zn.includes("m")&&Zt===void 0&&(Xn.showMinute=!1),!Zn.includes("H")&&!Zn.includes("h")&&!Zn.includes("K")&&!Zn.includes("k")&&zt===void 0&&(Xn.showHour=!1),(Zn.includes("a")||Zn.includes("A"))&&Sn===void 0&&(Xn.use12Hours=!0)),nt==="time"?Xn:(typeof Zn=="function"&&delete Xn.format,{showTime:Xn})}function nd(Ie,Ye,nt){if(Ie===!1)return!1;const zt={clearIcon:Ye!=null?Ye:nt};return typeof Ie=="object"?Object.assign(Object.assign({},zt),Ie):zt}var Nt=ye(3113);function ei(Ie){return we.createElement(Nt.ZP,Object.assign({size:"small",type:"primary"},Ie))}var rc={button:ei},ih=function(Ie,Ye){var nt={};for(var zt in Ie)Object.prototype.hasOwnProperty.call(Ie,zt)&&Ye.indexOf(zt)<0&&(nt[zt]=Ie[zt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,zt=Object.getOwnPropertySymbols(Ie);Zt<zt.length;Zt++)Ye.indexOf(zt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,zt[Zt])&&(nt[zt[Zt]]=Ie[zt[Zt]]);return nt};function rh(Ie){return(0,we.forwardRef)((nt,zt)=>{const{prefixCls:Zt,getPopupContainer:pn,className:Sn,placement:Zn,size:Xn,disabled:hi,bordered:Ii=!0,placeholder:li,popupClassName:Li,dropdownClassName:oi,status:Yi,clearIcon:zn,allowClear:Mi,rootClassName:Ui}=nt,Wr=ih(nt,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Nr=we.useRef(null),{getPrefixCls:Vr,direction:Yr,getPopupContainer:Zr}=(0,we.useContext)(vl.E_),Ri=Vr("picker",Zt),{compactSize:Uo,compactItemClassnames:jo}=(0,gd.ri)(Ri,Yr),{format:ia,showTime:Na,picker:Aa}=nt,xa=Vr(),[ts,ga]=$l(Ri),sa=Object.assign(Object.assign({},Na?Mr(Object.assign({format:ia,picker:Aa},Na)):{}),Aa==="time"?Mr(Object.assign(Object.assign({format:ia},nt),{picker:Aa})):{}),wa=(0,Bh.Z)(Ot=>{var Qt;return(Qt=Xn!=null?Xn:Uo)!==null&&Qt!==void 0?Qt:Ot}),Xa=we.useContext(Al.Z),ns=hi!=null?hi:Xa,za=(0,we.useContext)(_h.aM),{hasFeedback:Pa,status:As,feedbackIcon:_s}=za,$e=we.createElement(we.Fragment,null,Aa==="time"?we.createElement(jt,null):we.createElement(Ke,null),Pa&&_s);(0,we.useImperativeHandle)(zt,()=>({focus:()=>{var Ot;return(Ot=Nr.current)===null||Ot===void 0?void 0:Ot.focus()},blur:()=>{var Ot;return(Ot=Nr.current)===null||Ot===void 0?void 0:Ot.blur()}}));const[ot]=(0,Oh.Z)("Calendar",Ih.Z),Dt=Object.assign(Object.assign({},ot),nt.locale);return ts(we.createElement(ml,Object.assign({separator:we.createElement("span",{"aria-label":"to",className:`${Ri}-separator`},we.createElement(Hn,null)),disabled:ns,ref:Nr,dropdownAlign:md(Yr,Zn),placeholder:ic(Dt,Aa,li),suffixIcon:$e,prevIcon:we.createElement("span",{className:`${Ri}-prev-icon`}),nextIcon:we.createElement("span",{className:`${Ri}-next-icon`}),superPrevIcon:we.createElement("span",{className:`${Ri}-super-prev-icon`}),superNextIcon:we.createElement("span",{className:`${Ri}-super-next-icon`}),transitionName:`${xa}-slide-up`},Wr,sa,{className:Bt()({[`${Ri}-${wa}`]:wa,[`${Ri}-borderless`]:!Ii},(0,wu.Z)(Ri,(0,wu.F)(As,Yi),Pa),ga,jo,Sn,Ui),locale:Dt.lang,prefixCls:Ri,getPopupContainer:pn||Zr,generateConfig:Ie,components:rc,direction:Yr,dropdownClassName:Bt()(ga,Li||oi,Ui),allowClear:nd(Mi,zn,we.createElement(Xt.Z,null))})))})}var xh=function(Ie,Ye){var nt={};for(var zt in Ie)Object.prototype.hasOwnProperty.call(Ie,zt)&&Ye.indexOf(zt)<0&&(nt[zt]=Ie[zt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,zt=Object.getOwnPropertySymbols(Ie);Zt<zt.length;Zt++)Ye.indexOf(zt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,zt[Zt])&&(nt[zt[Zt]]=Ie[zt[Zt]]);return nt};function oc(Ie){function Ye(Xn,hi){const Ii=hi==="TimePicker"?"timePicker":"datePicker",li=(0,we.forwardRef)((Li,oi)=>{const{prefixCls:Yi,getPopupContainer:zn,style:Mi,className:Ui,rootClassName:Wr,size:Nr,bordered:Vr=!0,placement:Yr,placeholder:Zr,popupClassName:Ri,dropdownClassName:Uo,disabled:jo,status:ia,clearIcon:Na,allowClear:Aa}=Li,xa=xh(Li,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ts,direction:ga,getPopupContainer:sa,[Ii]:wa}=(0,we.useContext)(vl.E_),Xa=ts("picker",Yi),{compactSize:ns,compactItemClassnames:za}=(0,gd.ri)(Xa,ga),Pa=we.useRef(null),{format:As,showTime:_s}=Li,[$e,ot]=$l(Xa);(0,we.useImperativeHandle)(oi,()=>({focus:()=>{var Si;return(Si=Pa.current)===null||Si===void 0?void 0:Si.focus()},blur:()=>{var Si;return(Si=Pa.current)===null||Si===void 0?void 0:Si.blur()}}));const Dt={showToday:!0};let Ot={};Xn&&(Ot.picker=Xn);const Qt=Xn||Li.picker;Ot=Object.assign(Object.assign(Object.assign({},Ot),_s?Mr(Object.assign({format:As,picker:Qt},_s)):{}),Qt==="time"?Mr(Object.assign(Object.assign({format:As},Li),{picker:Qt})):{});const Gt=ts(),Ln=(0,Bh.Z)(Si=>{var nr;return(nr=Nr!=null?Nr:ns)!==null&&nr!==void 0?nr:Si}),Cn=we.useContext(Al.Z),wn=jo!=null?jo:Cn,ti=(0,we.useContext)(_h.aM),{hasFeedback:jn,status:qn,feedbackIcon:Ei}=ti,Pi=we.createElement(we.Fragment,null,Qt==="time"?we.createElement(jt,null):we.createElement(Ke,null),jn&&Ei),[mi]=(0,Oh.Z)("DatePicker",Ih.Z),Ki=Object.assign(Object.assign({},mi),Li.locale);return $e(we.createElement(Wu,Object.assign({ref:Pa,placeholder:ps(Ki,Qt,Zr),suffixIcon:Pi,dropdownAlign:md(ga,Yr),prevIcon:we.createElement("span",{className:`${Xa}-prev-icon`}),nextIcon:we.createElement("span",{className:`${Xa}-next-icon`}),superPrevIcon:we.createElement("span",{className:`${Xa}-super-prev-icon`}),superNextIcon:we.createElement("span",{className:`${Xa}-super-next-icon`}),transitionName:`${Gt}-slide-up`},Dt,xa,Ot,{locale:Ki.lang,className:Bt()({[`${Xa}-${Ln}`]:Ln,[`${Xa}-borderless`]:!Vr},(0,wu.Z)(Xa,(0,wu.F)(qn,ia),jn),ot,za,wa==null?void 0:wa.className,Ui,Wr),style:Object.assign(Object.assign({},wa==null?void 0:wa.style),Mi),prefixCls:Xa,getPopupContainer:zn||sa,generateConfig:Ie,components:rc,direction:ga,disabled:wn,dropdownClassName:Bt()(ot,Wr,Ri||Uo),allowClear:nd(Aa,Na,we.createElement(Xt.Z,null))})))});return hi&&(li.displayName=hi),li}const nt=Ye(),zt=Ye("week","WeekPicker"),Zt=Ye("month","MonthPicker"),pn=Ye("year","YearPicker"),Sn=Ye("time","TimePicker"),Zn=Ye("quarter","QuarterPicker");return{DatePicker:nt,WeekPicker:zt,MonthPicker:Zt,YearPicker:pn,TimePicker:Sn,QuarterPicker:Zn}}const Bd=null;function Es(Ie){const{DatePicker:Ye,WeekPicker:nt,MonthPicker:zt,YearPicker:Zt,TimePicker:pn,QuarterPicker:Sn}=oc(Ie),Zn=rh(Ie),Xn=Ye;return Xn.WeekPicker=nt,Xn.MonthPicker=zt,Xn.YearPicker=Zt,Xn.RangePicker=Zn,Xn.TimePicker=pn,Xn.QuarterPicker=Sn,Xn}var vo=Es;const nl=vo(me);function yl(Ie){const Ye=md(Ie.direction,Ie.placement);return Ye.overflow.adjustY=!1,Ye.overflow.adjustX=!1,Object.assign(Object.assign({},Ie),{dropdownAlign:Ye})}const ss=(0,Pe.Z)(nl,"picker",null,yl);nl._InternalPanelDoNotUseOrYouWillBeFired=ss;const na=(0,Pe.Z)(nl.RangePicker,"picker",null,yl);nl._InternalRangePanelDoNotUseOrYouWillBeFired=na,nl.generatePicker=vo;var Us=nl},28103:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return gt}});var be=ye(92310),Re=ye.n(be),at=ye(59301),kt=ye(36355),Je=ye(17313),it=ye(83116),Te=ye(37613);const Tt=Ct=>{const{componentCls:Fe,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:he,textPaddingInline:se,orientationMargin:ge,verticalMarginInline:me}=Ct;return{[Fe]:Object.assign(Object.assign({},(0,Je.Wf)(Ct)),{borderBlockStart:`${he}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:me,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${he}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ct.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Fe}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ct.dividerHorizontalWithTextGutterMargin}px 0`,color:Ct.colorTextHeading,fontWeight:500,fontSize:Ct.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${he}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Fe}-with-text-left`]:{"&::before":{width:`${ge*100}%`},"&::after":{width:`${100-ge*100}%`}},[`&-horizontal${Fe}-with-text-right`]:{"&::before":{width:`${100-ge*100}%`},"&::after":{width:`${ge*100}%`}},[`${Fe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${he}px 0 0`},[`&-horizontal${Fe}-with-text${Fe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Fe}-dashed`]:{borderInlineStartWidth:he,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Fe}-with-text`]:{color:Ct.colorText,fontWeight:"normal",fontSize:Ct.fontSize},[`&-horizontal${Fe}-with-text-left${Fe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Fe}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Fe}-with-text-right${Fe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Fe}-inner-text`]:{paddingInlineEnd:te}}})}};var Pt=(0,it.Z)("Divider",Ct=>{const Fe=(0,Te.TS)(Ct,{dividerHorizontalWithTextGutterMargin:Ct.margin,dividerHorizontalGutterMargin:Ct.marginLG,sizePaddingEdgeHorizontal:0});return[Tt(Fe)]},Ct=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ct.marginXS})),rt=function(Ct,Fe){var te={};for(var ne in Ct)Object.prototype.hasOwnProperty.call(Ct,ne)&&Fe.indexOf(ne)<0&&(te[ne]=Ct[ne]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ne=Object.getOwnPropertySymbols(Ct);he<ne.length;he++)Fe.indexOf(ne[he])<0&&Object.prototype.propertyIsEnumerable.call(Ct,ne[he])&&(te[ne[he]]=Ct[ne[he]]);return te},gt=Ct=>{const{getPrefixCls:Fe,direction:te,divider:ne}=at.useContext(kt.E_),{prefixCls:he,type:se="horizontal",orientation:ge="center",orientationMargin:me,className:Pe,rootClassName:ke,children:we,dashed:Oe,plain:He,style:We}=Ct,Ve=rt(Ct,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ut=Fe("divider",he),[Ke,Wt]=Pt(ut),pt=ge.length>0?`-${ge}`:ge,Ut=!!we,Ht=ge==="left"&&me!=null,jt=ge==="right"&&me!=null,Xt=Re()(ut,ne==null?void 0:ne.className,Wt,`${ut}-${se}`,{[`${ut}-with-text`]:Ut,[`${ut}-with-text${pt}`]:Ut,[`${ut}-dashed`]:!!Oe,[`${ut}-plain`]:!!He,[`${ut}-rtl`]:te==="rtl",[`${ut}-no-default-orientation-margin-left`]:Ht,[`${ut}-no-default-orientation-margin-right`]:jt},Pe,ke),Nn=at.useMemo(()=>typeof me=="number"?me:/^\d+$/.test(me)?Number(me):me,[me]),St=Object.assign(Object.assign({},Ht&&{marginLeft:Nn}),jt&&{marginRight:Nn});return Ke(at.createElement("div",Object.assign({className:Xt,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),We)},Ve,{role:"separator"}),we&&se!=="vertical"&&at.createElement("span",{className:`${ut}-inner-text`,style:St},we)))}},91857:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(38819),at=ye(92310),kt=ye.n(at),Je=ye(31561),it=ye(70425),Te=ye(18929),Tt=ye(2738),Pt=ye(79676),rt=ye(53487),It=ye(92343),gt=ye(36355),Ct=ye(20834),Fe=ye(40875),te=ye(88088),ne=ye(47211);const he=null,se=ke=>{const{menu:we,arrow:Oe,prefixCls:He,children:We,trigger:Ve,disabled:ut,dropdownRender:Ke,getPopupContainer:Wt,overlayClassName:pt,rootClassName:Ut,open:Ht,onOpenChange:jt,visible:Xt,onVisibleChange:Nn,mouseEnterDelay:St=.15,mouseLeaveDelay:Ge=.1,autoAdjustOverflow:en=!0,placement:Hn="",overlay:_n,transitionName:Bt}=ke,{getPopupContainer:rn,getPrefixCls:cn,direction:Kn}=be.useContext(gt.E_),nn=be.useMemo(()=>{const ct=cn();return Bt!==void 0?Bt:Hn.includes("top")?`${ct}-slide-down`:`${ct}-slide-up`},[cn,Hn,Bt]),Rn=be.useMemo(()=>Hn?Hn.includes("Center")?Hn.slice(0,Hn.indexOf("Center")):Hn:Kn==="rtl"?"bottomRight":"bottomLeft",[Hn,Kn]),vt=cn("dropdown",He),[Yn,ni]=(0,ne.Z)(vt),[,je]=(0,te.Z)(),Me=be.Children.only(We),xe=(0,It.Tm)(Me,{className:kt()(`${vt}-trigger`,{[`${vt}-rtl`]:Kn==="rtl"},Me.props.className),disabled:ut}),Ne=ut?[]:Ve;let Be;Ne&&Ne.includes("contextMenu")&&(Be=!0);const[Se,lt]=(0,Te.Z)(!1,{value:Ht!=null?Ht:Xt}),Et=(0,it.useEvent)(ct=>{jt==null||jt(ct),Nn==null||Nn(ct),lt(ct)}),Xe=kt()(pt,Ut,ni,{[`${vt}-rtl`]:Kn==="rtl"}),tt=(0,Pt.Z)({arrowPointAtCenter:typeof Oe=="object"&&Oe.pointAtCenter,autoAdjustOverflow:en,offset:je.marginXXS,arrowWidth:Oe?je.sizePopupArrow:0,borderRadius:je.borderRadius}),wt=be.useCallback(()=>{lt(!1)},[]),xt=()=>{let ct;return we!=null&&we.items?ct=be.createElement(Ct.default,Object.assign({},we)):typeof _n=="function"?ct=_n():ct=_n,Ke&&(ct=Ke(ct)),ct=be.Children.only(typeof ct=="string"?be.createElement("span",null,ct):ct),be.createElement(Fe.J,{prefixCls:`${vt}-menu`,expandIcon:be.createElement("span",{className:`${vt}-menu-submenu-arrow`},be.createElement(Re.Z,{className:`${vt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:wt,validator:Ft=>{let{mode:Pn}=Ft}},ct)};return Yn(be.createElement(Je.Z,Object.assign({alignPoint:Be},(0,Tt.Z)(ke,["rootClassName"]),{mouseEnterDelay:St,mouseLeaveDelay:Ge,visible:Se,builtinPlacements:tt,arrow:!!Oe,overlayClassName:Xe,prefixCls:vt,getPopupContainer:Wt||rn,transitionName:nn,trigger:Ne,overlay:xt,placement:Rn,onVisibleChange:Et}),xe))};function ge(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const me=(0,rt.Z)(se,"dropdown",ke=>ke,ge),Pe=ke=>be.createElement(me,Object.assign({},ke),be.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Pe,xn.Z=se},38854:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return te}});var be=ye(91857),Re=ye(92310),at=ye.n(Re),kt=ye(59301),Je=ye(18785),it=ye(3113),Te=ye(36355),Tt=ye(81327),Pt=ye(33234),rt=ye(47211),It=function(ne,he){var se={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&he.indexOf(ge)<0&&(se[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(ne);me<ge.length;me++)he.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[me])&&(se[ge[me]]=ne[ge[me]]);return se};const gt=ne=>{const{getPopupContainer:he,getPrefixCls:se,direction:ge}=kt.useContext(Te.E_),{prefixCls:me,type:Pe="default",danger:ke,disabled:we,loading:Oe,onClick:He,htmlType:We,children:Ve,className:ut,menu:Ke,arrow:Wt,autoFocus:pt,overlay:Ut,trigger:Ht,align:jt,open:Xt,onOpenChange:Nn,placement:St,getPopupContainer:Ge,href:en,icon:Hn=kt.createElement(Je.Z,null),title:_n,buttonsRender:Bt=xt=>xt,mouseEnterDelay:rn,mouseLeaveDelay:cn,overlayClassName:Kn,overlayStyle:nn,destroyPopupOnHide:Rn,dropdownRender:vt}=ne,Yn=It(ne,["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"]),ni=se("dropdown",me),je=`${ni}-button`,[Me,xe]=(0,rt.Z)(ni),Ne={menu:Ke,arrow:Wt,autoFocus:pt,align:jt,disabled:we,trigger:we?[]:Ht,onOpenChange:Nn,getPopupContainer:Ge||he,mouseEnterDelay:rn,mouseLeaveDelay:cn,overlayClassName:Kn,overlayStyle:nn,destroyPopupOnHide:Rn,dropdownRender:vt},{compactSize:Be,compactItemClassnames:Se}=(0,Pt.ri)(ni,ge),lt=at()(je,Se,ut,xe);"overlay"in ne&&(Ne.overlay=Ut),"open"in ne&&(Ne.open=Xt),"placement"in ne?Ne.placement=St:Ne.placement=ge==="rtl"?"bottomLeft":"bottomRight";const Et=kt.createElement(it.ZP,{type:Pe,danger:ke,disabled:we,loading:Oe,onClick:He,htmlType:We,href:en,title:_n},Ve),Xe=kt.createElement(it.ZP,{type:Pe,danger:ke,icon:Hn}),[tt,wt]=Bt([Et,Xe]);return Me(kt.createElement(Tt.Z.Compact,Object.assign({className:lt,size:Be,block:!0},Yn),tt,kt.createElement(be.Z,Object.assign({},Ne),wt)))};gt.__ANT_BUTTON=!0;var Ct=gt;const Fe=be.Z;Fe.Button=Ct;var te=Fe},47211:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return It}});var be=ye(17313),Re=ye(13826),at=ye(92899),kt=ye(29878),Je=ye(19447),it=ye(83116),Te=ye(37613),Pt=gt=>{const{componentCls:Ct,menuCls:Fe,colorError:te,colorTextLightSolid:ne}=gt,he=`${Fe}-item`;return{[`${Ct}, ${Ct}-menu-submenu`]:{[`${Fe} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const rt=gt=>{const{componentCls:Ct,menuCls:Fe,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:he,antCls:se,iconCls:ge,motionDurationMid:me,dropdownPaddingVertical:Pe,fontSize:ke,dropdownEdgeChildPadding:we,colorTextDisabled:Oe,fontSizeIcon:He,controlPaddingHorizontal:We,colorBgElevated:Ve}=gt;return[{[Ct]:Object.assign(Object.assign({},(0,be.Wf)(gt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ne+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${ge}-down, & > ${se}-btn-icon > ${ge}-down`]:{fontSize:He}},[`${Ct}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:He},[`${ge}-down::before`]:{transition:`transform ${me}`}},[`${Ct}-wrap-open`]:{[`${ge}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottomLeft,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottomLeft,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottom,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottom,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${Ct}-placement-bottomRight,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${Ct}-placement-bottomRight`]:{animationName:Re.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-topLeft,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-topLeft,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-top,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-top,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${Ct}-placement-topRight,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${Ct}-placement-topRight`]:{animationName:Re.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottomLeft,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottom,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${Ct}-placement-bottomRight`]:{animationName:Re.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-topLeft,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-top,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${Ct}-placement-topRight`]:{animationName:Re.ly}})},(0,Je.ZP)(gt,{colorBg:Ve,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ct} ${Fe}`]:{position:"relative",margin:0},[`${Fe}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ct}, ${Ct}-menu-submenu`]:{[Fe]:Object.assign(Object.assign({padding:we,listStyleType:"none",backgroundColor:Ve,backgroundClip:"padding-box",borderRadius:gt.borderRadiusLG,outline:"none",boxShadow:gt.boxShadowSecondary},(0,be.Qy)(gt)),{[`${Fe}-item-group-title`]:{padding:`${Pe}px ${We}px`,color:gt.colorTextDescription,transition:`all ${me}`},[`${Fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Fe}-item-icon`]:{minWidth:ke,marginInlineEnd:gt.marginXS,fontSize:gt.fontSizeSM},[`${Fe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${me}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Fe}-item, ${Fe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pe}px ${We}px`,color:gt.colorText,fontWeight:"normal",fontSize:ke,lineHeight:gt.lineHeight,cursor:"pointer",transition:`all ${me}`,borderRadius:gt.borderRadiusSM,"&:hover, &-active":{backgroundColor:gt.controlItemBgHover}},(0,be.Qy)(gt)),{"&-selected":{color:gt.colorPrimary,backgroundColor:gt.controlItemBgActive,"&:hover, &-active":{backgroundColor:gt.controlItemBgActiveHover}},"&-disabled":{color:Oe,cursor:"not-allowed","&:hover":{color:Oe,backgroundColor:Ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${gt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:gt.colorSplit},[`${Ct}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:gt.paddingXS,[`${Ct}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:gt.colorTextDescription,fontSize:He,fontStyle:"normal"}}}),[`${Fe}-item-group-list`]:{margin:`0 ${gt.marginXS}px`,padding:0,listStyle:"none"},[`${Fe}-submenu-title`]:{paddingInlineEnd:We+gt.fontSizeSM},[`${Fe}-submenu-vertical`]:{position:"relative"},[`${Fe}-submenu${Fe}-submenu-disabled ${Ct}-menu-submenu-title`]:{[`&, ${Ct}-menu-submenu-arrow-icon`]:{color:Oe,backgroundColor:Ve,cursor:"not-allowed"}},[`${Fe}-submenu-selected ${Ct}-menu-submenu-title`]:{color:gt.colorPrimary}})}},[(0,Re.oN)(gt,"slide-up"),(0,Re.oN)(gt,"slide-down"),(0,at.Fm)(gt,"move-up"),(0,at.Fm)(gt,"move-down"),(0,kt._y)(gt,"zoom-big")]]};var It=(0,it.Z)("Dropdown",(gt,Ct)=>{let{rootPrefixCls:Fe}=Ct;const{marginXXS:te,sizePopupArrow:ne,controlHeight:he,fontSize:se,lineHeight:ge,paddingXXS:me,componentCls:Pe,borderRadiusLG:ke}=gt,we=(he-se*ge)/2,{dropdownArrowOffset:Oe}=(0,Je.fS)({contentRadius:ke}),He=(0,Te.TS)(gt,{menuCls:`${Pe}-menu`,rootPrefixCls:Fe,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Oe,dropdownPaddingVertical:we,dropdownEdgeChildPadding:me});return[rt(He),Pt(He)]},gt=>({zIndexPopup:gt.zIndexPopupBase+50}))},64165:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return me}});var be=ye(92310),Re=ye.n(be),at=ye(59301),kt=ye(36355),Je=ye(9763),it=ye(64993),Te=ye(88088),Pt=()=>{const[,Pe]=(0,Te.Z)(),we=new it.C(Pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return at.createElement("svg",{style:we,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},at.createElement("g",{fill:"none",fillRule:"evenodd"},at.createElement("g",{transform:"translate(24 31.67)"},at.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),at.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"}),at.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)"}),at.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"}),at.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"})),at.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"}),at.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},at.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),at.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},It=()=>{const[,Pe]=(0,Te.Z)(),{colorFill:ke,colorFillTertiary:we,colorFillQuaternary:Oe,colorBgContainer:He}=Pe,{borderColor:We,shadowColor:Ve,contentColor:ut}=(0,at.useMemo)(()=>({borderColor:new it.C(ke).onBackground(He).toHexShortString(),shadowColor:new it.C(we).onBackground(He).toHexShortString(),contentColor:new it.C(Oe).onBackground(He).toHexShortString()}),[ke,we,Oe,He]);return at.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},at.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},at.createElement("ellipse",{fill:Ve,cx:"32",cy:"33",rx:"32",ry:"7"}),at.createElement("g",{fillRule:"nonzero",stroke:We},at.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"}),at.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:ut}))))},gt=ye(83116),Ct=ye(37613);const Fe=Pe=>{const{componentCls:ke,margin:we,marginXS:Oe,marginXL:He,fontSize:We,lineHeight:Ve}=Pe;return{[ke]:{marginInline:Oe,fontSize:We,lineHeight:Ve,textAlign:"center",[`${ke}-image`]:{height:Pe.emptyImgHeight,marginBottom:Oe,opacity:Pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:Pe.colorText},[`${ke}-footer`]:{marginTop:we},"&-normal":{marginBlock:He,color:Pe.colorTextDisabled,[`${ke}-description`]:{color:Pe.colorTextDisabled},[`${ke}-image`]:{height:Pe.emptyImgHeightMD}},"&-small":{marginBlock:Oe,color:Pe.colorTextDisabled,[`${ke}-image`]:{height:Pe.emptyImgHeightSM}}}}};var te=(0,gt.Z)("Empty",Pe=>{const{componentCls:ke,controlHeightLG:we}=Pe,Oe=(0,Ct.TS)(Pe,{emptyImgCls:`${ke}-img`,emptyImgHeight:we*2.5,emptyImgHeightMD:we,emptyImgHeightSM:we*.875});return[Fe(Oe)]}),ne=function(Pe,ke){var we={};for(var Oe in Pe)Object.prototype.hasOwnProperty.call(Pe,Oe)&&ke.indexOf(Oe)<0&&(we[Oe]=Pe[Oe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Oe=Object.getOwnPropertySymbols(Pe);He<Oe.length;He++)ke.indexOf(Oe[He])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Oe[He])&&(we[Oe[He]]=Pe[Oe[He]]);return we};const he=at.createElement(Pt,null),se=at.createElement(It,null),ge=Pe=>{var{className:ke,rootClassName:we,prefixCls:Oe,image:He=he,description:We,children:Ve,imageStyle:ut,style:Ke}=Pe,Wt=ne(Pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:pt,direction:Ut,empty:Ht}=at.useContext(kt.E_),jt=pt("empty",Oe),[Xt,Nn]=te(jt),[St]=(0,Je.Z)("Empty"),Ge=typeof We!="undefined"?We:St==null?void 0:St.description,en=typeof Ge=="string"?Ge:"empty";let Hn=null;return typeof He=="string"?Hn=at.createElement("img",{alt:en,src:He}):Hn=He,Xt(at.createElement("div",Object.assign({className:Re()(Nn,jt,Ht==null?void 0:Ht.className,{[`${jt}-normal`]:He===se,[`${jt}-rtl`]:Ut==="rtl"},ke,we),style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Ke)},Wt),at.createElement("div",{className:`${jt}-image`,style:ut},Hn),Ge&&at.createElement("div",{className:`${jt}-description`},Ge),Ve&&at.createElement("div",{className:`${jt}-footer`},Ve)))};ge.PRESENTED_IMAGE_DEFAULT=he,ge.PRESENTED_IMAGE_SIMPLE=se;var me=ge},78241:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return Yt}});var be=ye(80702),Re=ye(92310),at=ye.n(Re),kt=ye(77900),Je=ye(59301),it=ye(62892),Te=ye(32441);function Tt(Qe){const[un,In]=Je.useState(Qe);return Je.useEffect(()=>{const Mt=setTimeout(()=>{In(Qe)},Qe.length?0:10);return()=>{clearTimeout(Mt)}},[Qe]),un}var Pt=ye(17313),rt=ye(29878),It=ye(8378),gt=ye(37613),Ct=ye(83116),te=Qe=>{const{componentCls:un}=Qe,In=`${un}-show-help`,Mt=`${un}-show-help-item`;return{[In]:{transition:`opacity ${Qe.motionDurationSlow} ${Qe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Mt]:{overflow:"hidden",transition:`height ${Qe.motionDurationSlow} ${Qe.motionEaseInOut},
|
|
|
opacity ${Qe.motionDurationSlow} ${Qe.motionEaseInOut},
|
|
|
transform ${Qe.motionDurationSlow} ${Qe.motionEaseInOut} !important`,[`&${Mt}-appear, &${Mt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Mt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=Qe=>({legend:{display:"block",width:"100%",marginBottom:Qe.marginLG,padding:0,color:Qe.colorTextDescription,fontSize:Qe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Qe.lineWidth}px ${Qe.lineType} ${Qe.colorBorder}`},label:{fontSize:Qe.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 ${Qe.controlOutlineWidth}px ${Qe.controlOutline}`},output:{display:"block",paddingTop:15,color:Qe.colorText,fontSize:Qe.fontSize,lineHeight:Qe.lineHeight}}),he=(Qe,un)=>{const{formItemCls:In}=Qe;return{[In]:{[`${In}-label > label`]:{height:un},[`${In}-control-input`]:{minHeight:un}}}},se=Qe=>{const{componentCls:un}=Qe;return{[Qe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Qe)),ne(Qe)),{[`${un}-text`]:{display:"inline-block",paddingInlineEnd:Qe.paddingSM},"&-small":Object.assign({},he(Qe,Qe.controlHeightSM)),"&-large":Object.assign({},he(Qe,Qe.controlHeightLG))})}},ge=Qe=>{const{formItemCls:un,iconCls:In,componentCls:Mt,rootPrefixCls:ft,labelRequiredMarkColor:fn,labelColor:Vn,labelFontSize:bi,labelHeight:gi,labelColonMarginInlineStart:dt,labelColonMarginInlineEnd:Fn,itemMarginBottom:ui}=Qe;return{[un]:Object.assign(Object.assign({},(0,Pt.Wf)(Qe)),{marginBottom:ui,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ft}-row`]:{display:"none"},"&-has-warning":{[`${un}-split`]:{color:Qe.colorError}},"&-has-error":{[`${un}-split`]:{color:Qe.colorWarning}},[`${un}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Qe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:gi,color:Vn,fontSize:bi,[`> ${In}`]:{fontSize:Qe.fontSize,verticalAlign:"top"},[`&${un}-required:not(${un}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Qe.marginXXS,color:fn,fontSize:Qe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Mt}-hide-required-mark &`]:{display:"none"}},[`${un}-optional`]:{display:"inline-block",marginInlineStart:Qe.marginXXS,color:Qe.colorTextDescription,[`${Mt}-hide-required-mark &`]:{display:"none"}},[`${un}-tooltip`]:{color:Qe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Qe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:dt,marginInlineEnd:Fn},[`&${un}-no-colon::after`]:{content:'"\\a0"'}}},[`${un}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ft}-col-'"]):not([class*="' ${ft}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Qe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[un]:{"&-explain, &-extra":{clear:"both",color:Qe.colorTextDescription,fontSize:Qe.fontSize,lineHeight:Qe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Qe.controlHeightSM,transition:`color ${Qe.motionDurationMid} ${Qe.motionEaseOut}`},"&-explain":{"&-error":{color:Qe.colorError},"&-warning":{color:Qe.colorWarning}}},[`&-with-help ${un}-explain`]:{height:"auto",opacity:1},[`${un}-feedback-icon`]:{fontSize:Qe.fontSize,textAlign:"center",visibility:"visible",animationName:rt.kr,animationDuration:Qe.motionDurationMid,animationTimingFunction:Qe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Qe.colorSuccess},"&-error":{color:Qe.colorError},"&-warning":{color:Qe.colorWarning},"&-validating":{color:Qe.colorPrimary}}})}},me=Qe=>{const{componentCls:un,formItemCls:In}=Qe;return{[`${un}-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"}}}}},Pe=Qe=>{const{componentCls:un,formItemCls:In}=Qe;return{[`${un}-inline`]:{display:"flex",flexWrap:"wrap",[In]:{flex:"none",marginInlineEnd:Qe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${In}-label,
|
|
|
> ${In}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${In}-label`]:{flex:"none"},[`${un}-text`]:{display:"inline-block"},[`${In}-has-feedback`]:{display:"inline-block"}}}}},ke=Qe=>({padding:Qe.verticalLabelPadding,margin:Qe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),we=Qe=>{const{componentCls:un,formItemCls:In,rootPrefixCls:Mt}=Qe;return{[`${In} ${In}-label`]:ke(Qe),[un]:{[In]:{flexWrap:"wrap",[`${In}-label, ${In}-control`]:{[`&:not([class*=" ${Mt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Oe=Qe=>{const{componentCls:un,formItemCls:In,rootPrefixCls:Mt}=Qe;return{[`${un}-vertical`]:{[In]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${un}-item-control`]:{width:"100%"}}},[`${un}-vertical ${In}-label,
|
|
|
.${Mt}-col-24${In}-label,
|
|
|
.${Mt}-col-xl-24${In}-label`]:ke(Qe),[`@media (max-width: ${Qe.screenXSMax}px)`]:[we(Qe),{[un]:{[`.${Mt}-col-xs-24${In}-label`]:ke(Qe)}}],[`@media (max-width: ${Qe.screenSMMax}px)`]:{[un]:{[`.${Mt}-col-sm-24${In}-label`]:ke(Qe)}},[`@media (max-width: ${Qe.screenMDMax}px)`]:{[un]:{[`.${Mt}-col-md-24${In}-label`]:ke(Qe)}},[`@media (max-width: ${Qe.screenLGMax}px)`]:{[un]:{[`.${Mt}-col-lg-24${In}-label`]:ke(Qe)}}}},He=(Qe,un)=>(0,gt.TS)(Qe,{formItemCls:`${Qe.componentCls}-item`,rootPrefixCls:un});var We=(0,Ct.Z)("Form",(Qe,un)=>{let{rootPrefixCls:In}=un;const Mt=He(Qe,In);return[se(Mt),ge(Mt),te(Mt),me(Mt),Pe(Mt),Oe(Mt),(0,It.Z)(Mt),rt.kr]},Qe=>({labelRequiredMarkColor:Qe.colorError,labelColor:Qe.colorTextHeading,labelFontSize:Qe.fontSize,labelHeight:Qe.controlHeight,labelColonMarginInlineStart:Qe.marginXXS/2,labelColonMarginInlineEnd:Qe.marginXS,itemMarginBottom:Qe.marginLG,verticalLabelPadding:`0 0 ${Qe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ve=[];function ut(Qe,un,In){let Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Qe=="string"?Qe:`${un}-${Mt}`,error:Qe,errorStatus:In}}var Wt=Qe=>{let{help:un,helpStatus:In,errors:Mt=Ve,warnings:ft=Ve,className:fn,fieldId:Vn,onVisibleChanged:bi}=Qe;const{prefixCls:gi}=Je.useContext(Te.Rk),dt=`${gi}-item-explain`,[,Fn]=We(gi),ui=(0,Je.useMemo)(()=>(0,it.Z)(gi),[gi]),ji=Tt(Mt),dn=Tt(ft),vn=Je.useMemo(()=>un!=null?[ut(un,"help",In)]:[].concat((0,be.Z)(ji.map((tn,yn)=>ut(tn,"error","error",yn))),(0,be.Z)(dn.map((tn,yn)=>ut(tn,"warning","warning",yn)))),[un,In,ji,dn]),Rt={};return Vn&&(Rt.id=`${Vn}_help`),Je.createElement(kt.default,{motionDeadline:ui.motionDeadline,motionName:`${gi}-show-help`,visible:!!vn.length,onVisibleChanged:bi},tn=>{const{className:yn,style:an}=tn;return Je.createElement("div",Object.assign({},Rt,{className:at()(dt,yn,fn,Fn),style:an,role:"alert"}),Je.createElement(kt.CSSMotionList,Object.assign({keys:vn},(0,it.Z)(gi),{motionName:`${gi}-show-help-item`,component:!1}),Mn=>{const{key:bn,error:$n,errorStatus:Un,className:Wi,style:qt}=Mn;return Je.createElement("div",{key:bn,className:at()(Wi,{[`${dt}-${Un}`]:Un}),style:qt},$n)}))})},pt=ye(95013),Ut=ye(36355),Ht=ye(1684),jt=ye(52946),Xt=ye(19716),Nn=ye(16722);const St=["parentNode"],Ge="form_item";function en(Qe){return Qe===void 0||Qe===!1?[]:Array.isArray(Qe)?Qe:[Qe]}function Hn(Qe,un){if(!Qe.length)return;const In=Qe.join("_");return un?`${un}_${In}`:St.includes(In)?`${Ge}_${In}`:In}function _n(Qe,un,In,Mt,ft,fn){let Vn=Mt;return fn!==void 0?Vn=fn:In.validating?Vn="validating":Qe.length?Vn="error":un.length?Vn="warning":(In.touched||ft&&In.validated)&&(Vn="success"),Vn}function Bt(Qe){return en(Qe).join("_")}function rn(Qe){const[un]=(0,pt.useForm)(),In=Je.useRef({}),Mt=Je.useMemo(()=>Qe!=null?Qe:Object.assign(Object.assign({},un),{__INTERNAL__:{itemRef:ft=>fn=>{const Vn=Bt(ft);fn?In.current[Vn]=fn:delete In.current[Vn]}},scrollToField:function(ft){let fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Vn=en(ft),bi=Hn(Vn,Mt.__INTERNAL__.name),gi=bi?document.getElementById(bi):null;gi&&(0,Nn.Z)(gi,Object.assign({scrollMode:"if-needed",block:"nearest"},fn))},getFieldInstance:ft=>{const fn=Bt(ft);return In.current[fn]}}),[Qe,un]);return[Mt]}var cn=ye(28726),Kn=function(Qe,un){var In={};for(var Mt in Qe)Object.prototype.hasOwnProperty.call(Qe,Mt)&&un.indexOf(Mt)<0&&(In[Mt]=Qe[Mt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Mt=Object.getOwnPropertySymbols(Qe);ft<Mt.length;ft++)un.indexOf(Mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Mt[ft])&&(In[Mt[ft]]=Qe[Mt[ft]]);return In};const nn=(Qe,un)=>{const In=Je.useContext(Ht.Z),{getPrefixCls:Mt,direction:ft,form:fn}=Je.useContext(Ut.E_),{prefixCls:Vn,className:bi,rootClassName:gi,size:dt,disabled:Fn=In,form:ui,colon:ji,labelAlign:dn,labelWrap:vn,labelCol:Rt,wrapperCol:tn,hideRequiredMark:yn,layout:an="horizontal",scrollToFirstError:Mn,requiredMark:bn,onFinishFailed:$n,name:Un,style:Wi,feedbackIcons:qt}=Qe,Qi=Kn(Qe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),yr=(0,Xt.Z)(dt),Dr=Je.useContext(cn.Z),sn=(0,Je.useMemo)(()=>bn!==void 0?bn:fn&&fn.requiredMark!==void 0?fn.requiredMark:!yn,[yn,bn,fn]),ai=ji!=null?ji:fn==null?void 0:fn.colon,xi=Mt("form",Vn),[Gi,Di]=We(xi),_i=at()(xi,`${xi}-${an}`,{[`${xi}-hide-required-mark`]:sn===!1,[`${xi}-rtl`]:ft==="rtl",[`${xi}-${yr}`]:yr},Di,fn==null?void 0:fn.className,bi,gi),[wr]=rn(ui),{__INTERNAL__:er}=wr;er.name=Un;const Oi=(0,Je.useMemo)(()=>({name:Un,labelAlign:dn,labelCol:Rt,labelWrap:vn,wrapperCol:tn,vertical:an==="vertical",colon:ai,requiredMark:sn,itemRef:er.itemRef,form:wr,feedbackIcons:qt}),[Un,dn,Rt,tn,an,ai,sn,wr,qt]);Je.useImperativeHandle(un,()=>wr);const br=(wo,An)=>{if(wo){let Br={block:"nearest"};typeof wo=="object"&&(Br=wo),wr.scrollToField(An,Br)}},En=wo=>{if($n==null||$n(wo),wo.errorFields.length){const An=wo.errorFields[0].name;if(Mn!==void 0){br(Mn,An);return}fn&&fn.scrollToFirstError!==void 0&&br(fn.scrollToFirstError,An)}};return Gi(Je.createElement(Ht.n,{disabled:Fn},Je.createElement(jt.q,{size:yr},Je.createElement(Te.RV,Object.assign({},{validateMessages:Dr}),Je.createElement(Te.q3.Provider,{value:Oi},Je.createElement(pt.default,Object.assign({id:Un},Qi,{name:Un,onFinishFailed:En,form:wr,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),Wi),className:_i})))))))};var vt=Je.forwardRef(nn),Yn=ye(41799),ni=ye(8654),je=ye(92343),Me=ye(11592);function xe(Qe){if(typeof Qe=="function")return Qe;const un=(0,Me.Z)(Qe);return un.length<=1?un[0]:un}const Ne=()=>{const{status:Qe,errors:un=[],warnings:In=[]}=(0,Je.useContext)(Te.aM);return{status:Qe,errors:un,warnings:In}};Ne.Context=Te.aM;var Be=Ne,Se=ye(16089);function lt(Qe){const[un,In]=Je.useState(Qe),Mt=(0,Je.useRef)(null),ft=(0,Je.useRef)([]),fn=(0,Je.useRef)(!1);Je.useEffect(()=>(fn.current=!1,()=>{fn.current=!0,Se.Z.cancel(Mt.current),Mt.current=null}),[]);function Vn(bi){fn.current||(Mt.current===null&&(ft.current=[],Mt.current=(0,Se.Z)(()=>{Mt.current=null,In(gi=>{let dt=gi;return ft.current.forEach(Fn=>{dt=Fn(dt)}),dt})})),ft.current.push(bi))}return[un,Vn]}function Et(){const{itemRef:Qe}=Je.useContext(Te.q3),un=Je.useRef({});function In(Mt,ft){const fn=ft&&typeof ft=="object"&&ft.ref,Vn=Mt.join("_");return(un.current.name!==Vn||un.current.originRef!==fn)&&(un.current.name=Vn,un.current.originRef=fn,un.current.ref=(0,ni.sQ)(Qe(Mt),fn)),un.current.ref}return In}var Xe=ye(29194),tt=ye(34280),wt=ye(2738),xt=ye(27382),ct=ye(37028);const Ft=Qe=>{const{formItemCls:un}=Qe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${un}-control`]:{display:"flex"}}}};var Pn=(0,Ct.b)(["Form","item-item"],(Qe,un)=>{let{rootPrefixCls:In}=un;const Mt=He(Qe,In);return[Ft(Mt)]}),Jt=Qe=>{const{prefixCls:un,status:In,wrapperCol:Mt,children:ft,errors:fn,warnings:Vn,_internalItemRender:bi,extra:gi,help:dt,fieldId:Fn,marginBottom:ui,onErrorVisibleChanged:ji}=Qe,dn=`${un}-item`,vn=Je.useContext(Te.q3),Rt=Mt||vn.wrapperCol||{},tn=at()(`${dn}-control`,Rt.className),yn=Je.useMemo(()=>Object.assign({},vn),[vn]);delete yn.labelCol,delete yn.wrapperCol;const an=Je.createElement("div",{className:`${dn}-control-input`},Je.createElement("div",{className:`${dn}-control-input-content`},ft)),Mn=Je.useMemo(()=>({prefixCls:un,status:In}),[un,In]),bn=ui!==null||fn.length||Vn.length?Je.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Je.createElement(Te.Rk.Provider,{value:Mn},Je.createElement(Wt,{fieldId:Fn,errors:fn,warnings:Vn,help:dt,helpStatus:In,className:`${dn}-explain-connected`,onVisibleChanged:ji})),!!ui&&Je.createElement("div",{style:{width:0,height:ui}})):null,$n={};Fn&&($n.id=`${Fn}_extra`);const Un=gi?Je.createElement("div",Object.assign({},$n,{className:`${dn}-extra`}),gi):null,Wi=bi&&bi.mark==="pro_table_render"&&bi.render?bi.render(Qe,{input:an,errorList:bn,extra:Un}):Je.createElement(Je.Fragment,null,an,bn,Un);return Je.createElement(Te.q3.Provider,{value:yn},Je.createElement(ct.Z,Object.assign({},Rt,{className:tn}),Wi),Je.createElement(Pn,{prefixCls:un}))},gn=ye(61485),Tn=ye(31724),bt=ye(9763),_t=ye(6848),$t=function(Qe,un){var In={};for(var Mt in Qe)Object.prototype.hasOwnProperty.call(Qe,Mt)&&un.indexOf(Mt)<0&&(In[Mt]=Qe[Mt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Mt=Object.getOwnPropertySymbols(Qe);ft<Mt.length;ft++)un.indexOf(Mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Mt[ft])&&(In[Mt[ft]]=Qe[Mt[ft]]);return In};function Dn(Qe){return Qe?typeof Qe=="object"&&!Je.isValidElement(Qe)?Qe:{title:Qe}:null}var pi=Qe=>{let{prefixCls:un,label:In,htmlFor:Mt,labelCol:ft,labelAlign:fn,colon:Vn,required:bi,requiredMark:gi,tooltip:dt}=Qe;var Fn;const[ui]=(0,bt.Z)("Form"),{vertical:ji,labelAlign:dn,labelCol:vn,labelWrap:Rt,colon:tn}=Je.useContext(Te.q3);if(!In)return null;const yn=ft||vn||{},an=fn||dn,Mn=`${un}-item-label`,bn=at()(Mn,an==="left"&&`${Mn}-left`,yn.className,{[`${Mn}-wrap`]:!!Rt});let $n=In;const Un=Vn===!0||tn!==!1&&Vn!==!1;Un&&!ji&&typeof In=="string"&&In.trim()!==""&&($n=In.replace(/[:|:]\s*$/,""));const qt=Dn(dt);if(qt){const{icon:sn=Je.createElement(gn.Z,null)}=qt,ai=$t(qt,["icon"]),xi=Je.createElement(_t.Z,Object.assign({},ai),Je.cloneElement(sn,{className:`${un}-item-tooltip`,title:""}));$n=Je.createElement(Je.Fragment,null,$n,xi)}const Qi=gi==="optional",yr=typeof gi=="function";yr?$n=gi($n,{required:!!bi}):Qi&&!bi&&($n=Je.createElement(Je.Fragment,null,$n,Je.createElement("span",{className:`${un}-item-optional`,title:""},(ui==null?void 0:ui.optional)||((Fn=Tn.Z.Form)===null||Fn===void 0?void 0:Fn.optional))));const Dr=at()({[`${un}-item-required`]:bi,[`${un}-item-required-mark-optional`]:Qi||yr,[`${un}-item-no-colon`]:!Un});return Je.createElement(ct.Z,Object.assign({},yn,{className:bn}),Je.createElement("label",{htmlFor:Mt,className:Dr,title:typeof In=="string"?In:""},$n))},fi=ye(29679),wi=ye(19248),Vi=ye(96512),vr=ye(58617);const cr={success:fi.Z,warning:Vi.Z,error:wi.Z,validating:vr.Z};function pr(Qe){let{children:un,errors:In,warnings:Mt,hasFeedback:ft,validateStatus:fn,prefixCls:Vn,meta:bi,noStyle:gi}=Qe;const dt=`${Vn}-item`,{feedbackIcons:Fn}=Je.useContext(Te.q3),ui=_n(In,Mt,bi,null,!!ft,fn),{isFormItemInput:ji,status:dn}=Je.useContext(Te.aM),vn=Je.useMemo(()=>{var Rt;let tn;if(ft){const Mn=ft!==!0&&ft.icons||Fn,bn=ui&&((Rt=Mn==null?void 0:Mn({status:ui,errors:In,warnings:Mt}))===null||Rt===void 0?void 0:Rt[ui]),$n=ui&&cr[ui];tn=bn!==!1&&$n?Je.createElement("span",{className:at()(`${dt}-feedback-icon`,`${dt}-feedback-icon-${ui}`)},bn||Je.createElement($n,null)):null}let yn=!0,an=ui||"";return gi&&(yn=ji,an=(ui!=null?ui:dn)||""),{status:an,errors:In,warnings:Mt,hasFeedback:!!ft,feedbackIcon:tn,isFormItemInput:yn}},[ui,ft,gi,ji,dn]);return Je.createElement(Te.aM.Provider,{value:vn},un)}var _r=function(Qe,un){var In={};for(var Mt in Qe)Object.prototype.hasOwnProperty.call(Qe,Mt)&&un.indexOf(Mt)<0&&(In[Mt]=Qe[Mt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Mt=Object.getOwnPropertySymbols(Qe);ft<Mt.length;ft++)un.indexOf(Mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Mt[ft])&&(In[Mt[ft]]=Qe[Mt[ft]]);return In};function Ir(Qe){const{prefixCls:un,className:In,rootClassName:Mt,style:ft,help:fn,errors:Vn,warnings:bi,validateStatus:gi,meta:dt,hasFeedback:Fn,hidden:ui,children:ji,fieldId:dn,required:vn,isRequired:Rt,onSubItemMetaChange:tn}=Qe,yn=_r(Qe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),an=`${un}-item`,{requiredMark:Mn}=Je.useContext(Te.q3),bn=Je.useRef(null),$n=Tt(Vn),Un=Tt(bi),Wi=fn!=null,qt=!!(Wi||Vn.length||bi.length),Qi=!!bn.current&&(0,Xe.Z)(bn.current),[yr,Dr]=Je.useState(null);(0,tt.Z)(()=>{if(qt&&bn.current){const Di=getComputedStyle(bn.current);Dr(parseInt(Di.marginBottom,10))}},[qt,Qi]);const sn=Di=>{Di||Dr(null)},xi=function(){let Di=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _i=Di?$n:dt.errors,wr=Di?Un:dt.warnings;return _n(_i,wr,dt,"",!!Fn,gi)}(),Gi=at()(an,In,Mt,{[`${an}-with-help`]:Wi||$n.length||Un.length,[`${an}-has-feedback`]:xi&&Fn,[`${an}-has-success`]:xi==="success",[`${an}-has-warning`]:xi==="warning",[`${an}-has-error`]:xi==="error",[`${an}-is-validating`]:xi==="validating",[`${an}-hidden`]:ui});return Je.createElement("div",{className:Gi,style:ft,ref:bn},Je.createElement(xt.Z,Object.assign({className:`${an}-row`},(0,wt.Z)(yn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Je.createElement(pi,Object.assign({htmlFor:dn},Qe,{requiredMark:Mn,required:vn!=null?vn:Rt,prefixCls:un})),Je.createElement(Jt,Object.assign({},Qe,dt,{errors:$n,warnings:Un,prefixCls:un,status:xi,help:fn,marginBottom:yr,onErrorVisibleChanged:sn}),Je.createElement(Te.qI.Provider,{value:tn},Je.createElement(pr,{prefixCls:un,meta:dt,errors:dt.errors,warnings:dt.warnings,hasFeedback:Fn,validateStatus:xi},ji)))),!!yr&&Je.createElement("div",{className:`${an}-margin-offset`,style:{marginBottom:-yr}}))}const $i="__SPLIT__",eo=null,kr=Je.memo(Qe=>{let{children:un}=Qe;return un},(Qe,un)=>Qe.value===un.value&&Qe.update===un.update&&Qe.childProps.length===un.childProps.length&&Qe.childProps.every((In,Mt)=>In===un.childProps[Mt]));function Ee(Qe){return Qe!=null}function si(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yi(Qe){const{name:un,noStyle:In,className:Mt,dependencies:ft,prefixCls:fn,shouldUpdate:Vn,rules:bi,children:gi,required:dt,label:Fn,messageVariables:ui,trigger:ji="onChange",validateTrigger:dn,hidden:vn,help:Rt}=Qe,{getPrefixCls:tn}=Je.useContext(Ut.E_),{name:yn}=Je.useContext(Te.q3),an=xe(gi),Mn=typeof an=="function",bn=Je.useContext(Te.qI),{validateTrigger:$n}=Je.useContext(pt.FieldContext),Un=dn!==void 0?dn:$n,Wi=Ee(un),qt=tn("form",fn),[Qi,yr]=We(qt),Dr=Je.useContext(pt.ListContext),sn=Je.useRef(),[ai,xi]=lt({}),[Gi,Di]=(0,Yn.Z)(()=>si()),_i=An=>{const Br=Dr==null?void 0:Dr.getKey(An.name);if(Di(An.destroy?si():An,!0),In&&Rt!==!1&&bn){let ta=An.name;if(An.destroy)ta=sn.current||ta;else if(Br!==void 0){const[bo,ca]=Br;ta=[bo].concat((0,be.Z)(ca)),sn.current=ta}bn(An,ta)}},wr=(An,Br)=>{xi(ta=>{const bo=Object.assign({},ta),qo=[].concat((0,be.Z)(An.name.slice(0,-1)),(0,be.Z)(Br)).join($i);return An.destroy?delete bo[qo]:bo[qo]=An,bo})},[er,Oi]=Je.useMemo(()=>{const An=(0,be.Z)(Gi.errors),Br=(0,be.Z)(Gi.warnings);return Object.values(ai).forEach(ta=>{An.push.apply(An,(0,be.Z)(ta.errors||[])),Br.push.apply(Br,(0,be.Z)(ta.warnings||[]))}),[An,Br]},[ai,Gi.errors,Gi.warnings]),br=Et();function En(An,Br,ta){return In&&!vn?Je.createElement(pr,{prefixCls:qt,hasFeedback:Qe.hasFeedback,validateStatus:Qe.validateStatus,meta:Gi,errors:er,warnings:Oi,noStyle:!0},An):Je.createElement(Ir,Object.assign({key:"row"},Qe,{className:at()(Mt,yr),prefixCls:qt,fieldId:Br,isRequired:ta,errors:er,warnings:Oi,meta:Gi,onSubItemMetaChange:wr}),An)}if(!Wi&&!Mn&&!ft)return Qi(En(an));let wo={};return typeof Fn=="string"?wo.label=Fn:un&&(wo.label=String(un)),ui&&(wo=Object.assign(Object.assign({},wo),ui)),Qi(Je.createElement(pt.Field,Object.assign({},Qe,{messageVariables:wo,trigger:ji,validateTrigger:Un,onMetaChange:_i}),(An,Br,ta)=>{const bo=en(un).length&&Br?Br.name:[],ca=Hn(bo,yn),qo=dt!==void 0?dt:!!(bi&&bi.some(to=>{if(to&&typeof to=="object"&&to.required&&!to.warningOnly)return!0;if(typeof to=="function"){const ko=to(ta);return ko&&ko.required&&!ko.warningOnly}return!1})),lr=Object.assign({},An);let tr=null;if(Array.isArray(an)&&Wi)tr=an;else if(!(Mn&&(!(Vn||ft)||Wi))){if(!(ft&&!Mn&&!Wi))if((0,je.l$)(an)){const to=Object.assign(Object.assign({},an.props),lr);if(to.id||(to.id=ca),Rt||er.length>0||Oi.length>0||Qe.extra){const Ue=[];(Rt||er.length>0)&&Ue.push(`${ca}_help`),Qe.extra&&Ue.push(`${ca}_extra`),to["aria-describedby"]=Ue.join(" ")}er.length>0&&(to["aria-invalid"]="true"),qo&&(to["aria-required"]="true"),(0,ni.Yr)(an)&&(to.ref=br(bo,an)),new Set([].concat((0,be.Z)(en(ji)),(0,be.Z)(en(Un)))).forEach(Ue=>{to[Ue]=function(){for(var fo,_o,ro,Yo,ya,Lr=arguments.length,Fr=new Array(Lr),uo=0;uo<Lr;uo++)Fr[uo]=arguments[uo];(ro=lr[Ue])===null||ro===void 0||(fo=ro).call.apply(fo,[lr].concat(Fr)),(ya=(Yo=an.props)[Ue])===null||ya===void 0||(_o=ya).call.apply(_o,[Yo].concat(Fr))}});const ki=[to["aria-required"],to["aria-invalid"],to["aria-describedby"]];tr=Je.createElement(kr,{value:lr[Qe.valuePropName||"value"],update:an,childProps:ki},(0,je.Tm)(an,to))}else Mn&&(Vn||ft)&&!Wi?tr=an(ta):tr=an}return En(tr,ca,qo)}))}const or=yi;or.useStatus=Be;var xr=or,qi=function(Qe,un){var In={};for(var Mt in Qe)Object.prototype.hasOwnProperty.call(Qe,Mt)&&un.indexOf(Mt)<0&&(In[Mt]=Qe[Mt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Mt=Object.getOwnPropertySymbols(Qe);ft<Mt.length;ft++)un.indexOf(Mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Mt[ft])&&(In[Mt[ft]]=Qe[Mt[ft]]);return In},mo=Qe=>{var{prefixCls:un,children:In}=Qe,Mt=qi(Qe,["prefixCls","children"]);const{getPrefixCls:ft}=Je.useContext(Ut.E_),fn=ft("form",un),Vn=Je.useMemo(()=>({prefixCls:fn,status:"error"}),[fn]);return Je.createElement(pt.List,Object.assign({},Mt),(bi,gi,dt)=>Je.createElement(Te.Rk.Provider,{value:Vn},In(bi.map(Fn=>Object.assign(Object.assign({},Fn),{fieldKey:Fn.key})),gi,{errors:dt.errors,warnings:dt.warnings})))};function zr(){const{form:Qe}=(0,Je.useContext)(Te.q3);return Qe}const on=vt;on.Item=xr,on.List=mo,on.ErrorList=Wt,on.useForm=rn,on.useFormInstance=zr,on.useWatch=pt.useWatch,on.Provider=Te.RV,on.create=()=>{};var Yt=on},8628:function(On,xn,ye){"use strict";var be=ye(59301),Re=ye(34280),at=ye(56762),kt=ye(69507);function Je(){let it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Te=(0,be.useRef)({}),Tt=(0,at.Z)(),Pt=(0,kt.ZP)();return(0,Re.Z)(()=>{const rt=Pt.subscribe(It=>{Te.current=It,it&&Tt()});return()=>Pt.unsubscribe(rt)},[]),Te.current}xn.Z=Je},9432:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return ge},n:function(){return he}});var be=ye(19248),Re=ye(92310),at=ye.n(Re),kt=ye(93681),Je=ye(8654),it=ye(59301),Te=ye(19080),Tt=ye(36355),Pt=ye(1684),rt=ye(19716),It=ye(32441),gt=ye(33234),Ct=ye(59412),Fe=ye(9937);function te(me){return!!(me.prefix||me.suffix||me.allowClear)}var ne=function(me,Pe){var ke={};for(var we in me)Object.prototype.hasOwnProperty.call(me,we)&&Pe.indexOf(we)<0&&(ke[we]=me[we]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,we=Object.getOwnPropertySymbols(me);Oe<we.length;Oe++)Pe.indexOf(we[Oe])<0&&Object.prototype.propertyIsEnumerable.call(me,we[Oe])&&(ke[we[Oe]]=me[we[Oe]]);return ke};function he(me,Pe){if(!me)return;me.focus(Pe);const{cursor:ke}=Pe||{};if(ke){const we=me.value.length;switch(ke){case"start":me.setSelectionRange(0,0);break;case"end":me.setSelectionRange(we,we);break;default:me.setSelectionRange(0,we);break}}}var ge=(0,it.forwardRef)((me,Pe)=>{var ke;const{prefixCls:we,bordered:Oe=!0,status:He,size:We,disabled:Ve,onBlur:ut,onFocus:Ke,suffix:Wt,allowClear:pt,addonAfter:Ut,addonBefore:Ht,className:jt,style:Xt,styles:Nn,rootClassName:St,onChange:Ge,classNames:en}=me,Hn=ne(me,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:_n,direction:Bt,input:rn}=it.useContext(Tt.E_),cn=_n("input",we),Kn=(0,it.useRef)(null),[nn,Rn]=(0,Fe.ZP)(cn),{compactSize:vt,compactItemClassnames:Yn}=(0,gt.ri)(cn,Bt),ni=(0,rt.Z)(Pn=>{var mn;return(mn=We!=null?We:vt)!==null&&mn!==void 0?mn:Pn}),je=it.useContext(Pt.Z),Me=Ve!=null?Ve:je,{status:xe,hasFeedback:Ne,feedbackIcon:Be}=(0,it.useContext)(It.aM),Se=(0,Te.F)(xe,He),lt=te(me)||!!Ne,Et=(0,it.useRef)(lt);(0,it.useEffect)(()=>{var Pn;lt&&Et.current,Et.current=lt},[lt]);const Xe=(0,Ct.Z)(Kn,!0),tt=Pn=>{Xe(),ut==null||ut(Pn)},wt=Pn=>{Xe(),Ke==null||Ke(Pn)},xt=Pn=>{Xe(),Ge==null||Ge(Pn)},ct=(Ne||Wt)&&it.createElement(it.Fragment,null,Wt,Ne&&Be);let Ft;return typeof pt=="object"&&(pt!=null&&pt.clearIcon)?Ft=pt:pt&&(Ft={clearIcon:it.createElement(be.Z,null)}),nn(it.createElement(kt.default,Object.assign({ref:(0,Je.sQ)(Pe,Kn),prefixCls:cn,autoComplete:rn==null?void 0:rn.autoComplete},Hn,{disabled:Me,onBlur:tt,onFocus:wt,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Xt),styles:Object.assign(Object.assign({},rn==null?void 0:rn.styles),Nn),suffix:ct,allowClear:Ft,className:at()(jt,St,Yn,rn==null?void 0:rn.className),onChange:xt,addonAfter:Ut&&it.createElement(gt.BR,null,it.createElement(It.Ux,{override:!0,status:!0},Ut)),addonBefore:Ht&&it.createElement(gt.BR,null,it.createElement(It.Ux,{override:!0,status:!0},Ht)),classNames:Object.assign(Object.assign(Object.assign({},en),rn==null?void 0:rn.classNames),{input:at()({[`${cn}-sm`]:ni==="small",[`${cn}-lg`]:ni==="large",[`${cn}-rtl`]:Bt==="rtl",[`${cn}-borderless`]:!Oe},!lt&&(0,Te.Z)(cn,Se),en==null?void 0:en.input,(ke=rn==null?void 0:rn.classNames)===null||ke===void 0?void 0:ke.input,Rn)}),classes:{affixWrapper:at()({[`${cn}-affix-wrapper-sm`]:ni==="small",[`${cn}-affix-wrapper-lg`]:ni==="large",[`${cn}-affix-wrapper-rtl`]:Bt==="rtl",[`${cn}-affix-wrapper-borderless`]:!Oe},(0,Te.Z)(`${cn}-affix-wrapper`,Se,Ne),Rn),wrapper:at()({[`${cn}-group-rtl`]:Bt==="rtl"},Rn),group:at()({[`${cn}-group-wrapper-sm`]:ni==="small",[`${cn}-group-wrapper-lg`]:ni==="large",[`${cn}-group-wrapper-rtl`]:Bt==="rtl",[`${cn}-group-wrapper-disabled`]:Me},(0,Te.Z)(`${cn}-group-wrapper`,Se,Ne),Rn)}})))})},1643:function(On,xn,ye){"use strict";var be=ye(19248),Re=ye(92310),at=ye.n(Re),kt=ye(9296),Je=ye(59301),it=ye(19080),Te=ye(36355),Tt=ye(1684),Pt=ye(19716),rt=ye(32441),It=ye(9432),gt=ye(9937),Ct=function(te,ne){var he={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ne.indexOf(se)<0&&(he[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,se=Object.getOwnPropertySymbols(te);ge<se.length;ge++)ne.indexOf(se[ge])<0&&Object.prototype.propertyIsEnumerable.call(te,se[ge])&&(he[se[ge]]=te[se[ge]]);return he};const Fe=(0,Je.forwardRef)((te,ne)=>{const{prefixCls:he,bordered:se=!0,size:ge,disabled:me,status:Pe,allowClear:ke,showCount:we,classNames:Oe,rootClassName:He,className:We}=te,Ve=Ct(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ut,direction:Ke}=Je.useContext(Te.E_),Wt=(0,Pt.Z)(ge),pt=Je.useContext(Tt.Z),Ut=me!=null?me:pt,{status:Ht,hasFeedback:jt,feedbackIcon:Xt}=Je.useContext(rt.aM),Nn=(0,it.F)(Ht,Pe),St=Je.useRef(null);Je.useImperativeHandle(ne,()=>{var Bt;return{resizableTextArea:(Bt=St.current)===null||Bt===void 0?void 0:Bt.resizableTextArea,focus:rn=>{var cn,Kn;(0,It.n)((Kn=(cn=St.current)===null||cn===void 0?void 0:cn.resizableTextArea)===null||Kn===void 0?void 0:Kn.textArea,rn)},blur:()=>{var rn;return(rn=St.current)===null||rn===void 0?void 0:rn.blur()}}});const Ge=ut("input",he);let en;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?en=ke:ke&&(en={clearIcon:Je.createElement(be.Z,null)});const[Hn,_n]=(0,gt.ZP)(Ge);return Hn(Je.createElement(kt.default,Object.assign({},Ve,{disabled:Ut,allowClear:en,className:at()(We,He),classes:{affixWrapper:at()(`${Ge}-textarea-affix-wrapper`,{[`${Ge}-affix-wrapper-rtl`]:Ke==="rtl",[`${Ge}-affix-wrapper-borderless`]:!se,[`${Ge}-affix-wrapper-sm`]:Wt==="small",[`${Ge}-affix-wrapper-lg`]:Wt==="large",[`${Ge}-textarea-show-count`]:we},(0,it.Z)(`${Ge}-affix-wrapper`,Nn),_n)},classNames:Object.assign(Object.assign({},Oe),{textarea:at()({[`${Ge}-borderless`]:!se,[`${Ge}-sm`]:Wt==="small",[`${Ge}-lg`]:Wt==="large"},(0,it.Z)(Ge,Nn),_n,Oe==null?void 0:Oe.textarea)}),prefixCls:Ge,suffix:jt&&Je.createElement("span",{className:`${Ge}-textarea-suffix`},Xt),showCount:we,ref:St})))});xn.Z=Fe},59412:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Re}});var be=ye(59301);function Re(at,kt){const Je=(0,be.useRef)([]),it=()=>{Je.current.push(setTimeout(()=>{var Te,Tt,Pt,rt;!((Te=at.current)===null||Te===void 0)&&Te.input&&((Tt=at.current)===null||Tt===void 0?void 0:Tt.input.getAttribute("type"))==="password"&&(!((Pt=at.current)===null||Pt===void 0)&&Pt.input.hasAttribute("value"))&&((rt=at.current)===null||rt===void 0||rt.input.removeAttribute("value"))}))};return(0,be.useEffect)(()=>(kt&&it(),()=>Je.current.forEach(Te=>{Te&&clearTimeout(Te)})),[]),it}},92832:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return Wt}});var be=ye(92310),Re=ye.n(be),at=ye(59301),kt=ye(36355),Je=ye(32441),it=ye(9937),Tt=pt=>{const{getPrefixCls:Ut,direction:Ht}=(0,at.useContext)(kt.E_),{prefixCls:jt,className:Xt}=pt,Nn=Ut("input-group",jt),St=Ut("input"),[Ge,en]=(0,it.ZP)(St),Hn=Re()(Nn,{[`${Nn}-lg`]:pt.size==="large",[`${Nn}-sm`]:pt.size==="small",[`${Nn}-compact`]:pt.compact,[`${Nn}-rtl`]:Ht==="rtl"},en,Xt),_n=(0,at.useContext)(Je.aM),Bt=(0,at.useMemo)(()=>Object.assign(Object.assign({},_n),{isFormItemInput:!1}),[_n]);return Ge(at.createElement("span",{className:Hn,style:pt.style,onMouseEnter:pt.onMouseEnter,onMouseLeave:pt.onMouseLeave,onFocus:pt.onFocus,onBlur:pt.onBlur},at.createElement(Je.aM.Provider,{value:Bt},pt.children)))},Pt=ye(9432),rt=ye(73331),It=ye(15277),gt=ye(2738),Ct=ye(8654),Fe=ye(59412),te=function(pt,Ut){var Ht={};for(var jt in pt)Object.prototype.hasOwnProperty.call(pt,jt)&&Ut.indexOf(jt)<0&&(Ht[jt]=pt[jt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,jt=Object.getOwnPropertySymbols(pt);Xt<jt.length;Xt++)Ut.indexOf(jt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(pt,jt[Xt])&&(Ht[jt[Xt]]=pt[jt[Xt]]);return Ht};const ne=pt=>pt?at.createElement(It.Z,null):at.createElement(rt.Z,null),he={click:"onClick",hover:"onMouseOver"};var ge=at.forwardRef((pt,Ut)=>{const{visibilityToggle:Ht=!0}=pt,jt=typeof Ht=="object"&&Ht.visible!==void 0,[Xt,Nn]=(0,at.useState)(()=>jt?Ht.visible:!1),St=(0,at.useRef)(null);at.useEffect(()=>{jt&&Nn(Ht.visible)},[jt,Ht]);const Ge=(0,Fe.Z)(St),en=()=>{const{disabled:Me}=pt;Me||(Xt&&Ge(),Nn(xe=>{var Ne;const Be=!xe;return typeof Ht=="object"&&((Ne=Ht.onVisibleChange)===null||Ne===void 0||Ne.call(Ht,Be)),Be}))},Hn=Me=>{const{action:xe="click",iconRender:Ne=ne}=pt,Be=he[xe]||"",Se=Ne(Xt),lt={[Be]:en,className:`${Me}-icon`,key:"passwordIcon",onMouseDown:Et=>{Et.preventDefault()},onMouseUp:Et=>{Et.preventDefault()}};return at.cloneElement(at.isValidElement(Se)?Se:at.createElement("span",null,Se),lt)},{className:_n,prefixCls:Bt,inputPrefixCls:rn,size:cn}=pt,Kn=te(pt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:nn}=at.useContext(kt.E_),Rn=nn("input",rn),vt=nn("input-password",Bt),Yn=Ht&&Hn(vt),ni=Re()(vt,_n,{[`${vt}-${cn}`]:!!cn}),je=Object.assign(Object.assign({},(0,gt.Z)(Kn,["suffix","iconRender","visibilityToggle"])),{type:Xt?"text":"password",className:ni,prefixCls:Rn,suffix:Yn});return cn&&(je.size=cn),at.createElement(Pt.Z,Object.assign({ref:(0,Ct.sQ)(Ut,St)},je))}),me=ye(47472),Pe=ye(92343),ke=ye(3113),we=ye(19716),Oe=ye(33234),He=function(pt,Ut){var Ht={};for(var jt in pt)Object.prototype.hasOwnProperty.call(pt,jt)&&Ut.indexOf(jt)<0&&(Ht[jt]=pt[jt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,jt=Object.getOwnPropertySymbols(pt);Xt<jt.length;Xt++)Ut.indexOf(jt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(pt,jt[Xt])&&(Ht[jt[Xt]]=pt[jt[Xt]]);return Ht},Ve=at.forwardRef((pt,Ut)=>{const{prefixCls:Ht,inputPrefixCls:jt,className:Xt,size:Nn,suffix:St,enterButton:Ge=!1,addonAfter:en,loading:Hn,disabled:_n,onSearch:Bt,onChange:rn,onCompositionStart:cn,onCompositionEnd:Kn}=pt,nn=He(pt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Rn,direction:vt}=at.useContext(kt.E_),Yn=at.useRef(!1),ni=Rn("input-search",Ht),je=Rn("input",jt),{compactSize:Me}=(0,Oe.ri)(ni,vt),xe=(0,we.Z)(Jt=>{var gn;return(gn=Nn!=null?Nn:Me)!==null&&gn!==void 0?gn:Jt}),Ne=at.useRef(null),Be=Jt=>{Jt&&Jt.target&&Jt.type==="click"&&Bt&&Bt(Jt.target.value,Jt,{source:"clear"}),rn&&rn(Jt)},Se=Jt=>{var gn;document.activeElement===((gn=Ne.current)===null||gn===void 0?void 0:gn.input)&&Jt.preventDefault()},lt=Jt=>{var gn,Tn;Bt&&Bt((Tn=(gn=Ne.current)===null||gn===void 0?void 0:gn.input)===null||Tn===void 0?void 0:Tn.value,Jt,{source:"input"})},Et=Jt=>{Yn.current||Hn||lt(Jt)},Xe=typeof Ge=="boolean"?at.createElement(me.Z,null):null,tt=`${ni}-button`;let wt;const xt=Ge||{},ct=xt.type&&xt.type.__ANT_BUTTON===!0;ct||xt.type==="button"?wt=(0,Pe.Tm)(xt,Object.assign({onMouseDown:Se,onClick:Jt=>{var gn,Tn;(Tn=(gn=xt==null?void 0:xt.props)===null||gn===void 0?void 0:gn.onClick)===null||Tn===void 0||Tn.call(gn,Jt),lt(Jt)},key:"enterButton"},ct?{className:tt,size:xe}:{})):wt=at.createElement(ke.ZP,{className:tt,type:Ge?"primary":void 0,size:xe,disabled:_n,key:"enterButton",onMouseDown:Se,onClick:lt,loading:Hn,icon:Xe},Ge),en&&(wt=[wt,(0,Pe.Tm)(en,{key:"addonAfter"})]);const Ft=Re()(ni,{[`${ni}-rtl`]:vt==="rtl",[`${ni}-${xe}`]:!!xe,[`${ni}-with-button`]:!!Ge},Xt),Pn=Jt=>{Yn.current=!0,cn==null||cn(Jt)},mn=Jt=>{Yn.current=!1,Kn==null||Kn(Jt)};return at.createElement(Pt.Z,Object.assign({ref:(0,Ct.sQ)(Ne,Ut),onPressEnter:Et},nn,{size:xe,onCompositionStart:Pn,onCompositionEnd:mn,prefixCls:je,addonAfter:wt,suffix:St,onChange:Be,className:Ft,disabled:_n}))}),ut=ye(1643);const Ke=Pt.Z;Ke.Group=Tt,Ke.Search=Ve,Ke.TextArea=ut.Z,Ke.Password=ge;var Wt=Ke},45818:function(On,xn,ye){"use strict";ye.d(xn,{D:function(){return me},Z:function(){return we}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(He,We){return Re.createElement(Je.Z,(0,be.Z)({},He,{ref:We,icon:kt}))},Te=Re.forwardRef(it),Tt=Te,Pt=ye(33853),rt=ye(38819),It=ye(92310),gt=ye.n(It),Ct=ye(2738),te=Oe=>!isNaN(parseFloat(Oe))&&isFinite(Oe),ne=ye(36355),he=ye(84966),se=function(Oe,He){var We={};for(var Ve in Oe)Object.prototype.hasOwnProperty.call(Oe,Ve)&&He.indexOf(Ve)<0&&(We[Ve]=Oe[Ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ve=Object.getOwnPropertySymbols(Oe);ut<Ve.length;ut++)He.indexOf(Ve[ut])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ve[ut])&&(We[Ve[ut]]=Oe[Ve[ut]]);return We};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},me=Re.createContext({}),Pe=(()=>{let Oe=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Oe+=1,`${He}${Oe}`}})();var we=Re.forwardRef((Oe,He)=>{const{prefixCls:We,className:Ve,trigger:ut,children:Ke,defaultCollapsed:Wt=!1,theme:pt="dark",style:Ut={},collapsible:Ht=!1,reverseArrow:jt=!1,width:Xt=200,collapsedWidth:Nn=80,zeroWidthTriggerStyle:St,breakpoint:Ge,onCollapse:en,onBreakpoint:Hn}=Oe,_n=se(Oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bt}=(0,Re.useContext)(he.Gs),[rn,cn]=(0,Re.useState)("collapsed"in Oe?Oe.collapsed:Wt),[Kn,nn]=(0,Re.useState)(!1);(0,Re.useEffect)(()=>{"collapsed"in Oe&&cn(Oe.collapsed)},[Oe.collapsed]);const Rn=(xe,Ne)=>{"collapsed"in Oe||cn(xe),en==null||en(xe,Ne)},vt=(0,Re.useRef)();vt.current=xe=>{nn(xe.matches),Hn==null||Hn(xe.matches),rn!==xe.matches&&Rn(xe.matches,"responsive")},(0,Re.useEffect)(()=>{function xe(Be){return vt.current(Be)}let Ne;if(typeof window!="undefined"){const{matchMedia:Be}=window;if(Be&&Ge&&Ge in ge){Ne=Be(`(max-width: ${ge[Ge]})`);try{Ne.addEventListener("change",xe)}catch(Se){Ne.addListener(xe)}xe(Ne)}}return()=>{try{Ne==null||Ne.removeEventListener("change",xe)}catch(Be){Ne==null||Ne.removeListener(xe)}}},[Ge]),(0,Re.useEffect)(()=>{const xe=Pe("ant-sider-");return Bt.addSider(xe),()=>Bt.removeSider(xe)},[]);const Yn=()=>{Rn(!rn,"clickTrigger")},{getPrefixCls:ni}=(0,Re.useContext)(ne.E_),je=()=>{const xe=ni("layout-sider",We),Ne=(0,Ct.Z)(_n,["collapsed"]),Be=rn?Nn:Xt,Se=te(Be)?`${Be}px`:String(Be),lt=parseFloat(String(Nn||0))===0?Re.createElement("span",{onClick:Yn,className:gt()(`${xe}-zero-width-trigger`,`${xe}-zero-width-trigger-${jt?"right":"left"}`),style:St},ut||Re.createElement(Tt,null)):null,tt={expanded:jt?Re.createElement(rt.Z,null):Re.createElement(Pt.Z,null),collapsed:jt?Re.createElement(Pt.Z,null):Re.createElement(rt.Z,null)}[rn?"collapsed":"expanded"],wt=ut!==null?lt||Re.createElement("div",{className:`${xe}-trigger`,onClick:Yn,style:{width:Se}},ut||tt):null,xt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${Se}`,maxWidth:Se,minWidth:Se,width:Se}),ct=gt()(xe,`${xe}-${pt}`,{[`${xe}-collapsed`]:!!rn,[`${xe}-has-trigger`]:Ht&&ut!==null&&!lt,[`${xe}-below`]:!!Kn,[`${xe}-zero-width`]:parseFloat(Se)===0},Ve);return Re.createElement("aside",Object.assign({className:ct},Ne,{style:xt,ref:He}),Re.createElement("div",{className:`${xe}-children`},Ke),Ht||Kn&<?wt:null)},Me=Re.useMemo(()=>({siderCollapsed:rn}),[rn]);return Re.createElement(me.Provider,{value:Me},je())})},84966:function(On,xn,ye){"use strict";ye.d(xn,{VY:function(){return me},$_:function(){return ge},h4:function(){return se},Gs:function(){return Ct},ZP:function(){return Pe}});var be=ye(80702),Re=ye(92310),at=ye.n(Re),kt=ye(2738),Je=ye(59301),it=ye(36355),Te=ye(83116),Pt=ke=>{const{componentCls:we,bodyBg:Oe,lightSiderBg:He,lightTriggerBg:We,lightTriggerColor:Ve}=ke;return{[`${we}-sider-light`]:{background:He,[`${we}-sider-trigger`]:{color:Ve,background:We},[`${we}-sider-zero-width-trigger`]:{color:Ve,background:We,border:`1px solid ${Oe}`,borderInlineStart:0}}}};const rt=ke=>{const{antCls:we,componentCls:Oe,colorText:He,triggerColor:We,footerBg:Ve,triggerBg:ut,headerHeight:Ke,headerPadding:Wt,headerColor:pt,footerPadding:Ut,triggerHeight:Ht,zeroTriggerHeight:jt,zeroTriggerWidth:Xt,motionDurationMid:Nn,motionDurationSlow:St,fontSize:Ge,borderRadius:en,bodyBg:Hn,headerBg:_n,siderBg:Bt}=ke;return{[Oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Hn,"&, *":{boxSizing:"border-box"},[`&${Oe}-has-sider`]:{flexDirection:"row",[`> ${Oe}, > ${Oe}-content`]:{width:0}},[`${Oe}-header, &${Oe}-footer`]:{flex:"0 0 auto"},[`${Oe}-sider`]:{position:"relative",minWidth:0,background:Bt,transition:`all ${Nn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${we}-menu${we}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ht},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ht,color:We,lineHeight:`${Ht}px`,textAlign:"center",background:ut,cursor:"pointer",transition:`all ${Nn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ke,insetInlineEnd:-Xt,zIndex:1,width:Xt,height:jt,color:We,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Bt,borderStartStartRadius:0,borderStartEndRadius:en,borderEndEndRadius:en,borderEndStartRadius:0,cursor:"pointer",transition:`background ${St} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${St}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Xt,borderStartStartRadius:en,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:en}}}}},Pt(ke)),{"&-rtl":{direction:"rtl"}}),[`${Oe}-header`]:{height:Ke,padding:Wt,color:pt,lineHeight:`${Ke}px`,background:_n,[`${we}-menu`]:{lineHeight:"inherit"}},[`${Oe}-footer`]:{padding:Ut,color:He,fontSize:Ge,background:Ve},[`${Oe}-content`]:{flex:"auto",minHeight:0}}};var It=(0,Te.Z)("Layout",ke=>[rt(ke)],ke=>{const{colorBgLayout:we,controlHeight:Oe,controlHeightLG:He,colorText:We,controlHeightSM:Ve,marginXXS:ut,colorTextLightSolid:Ke,colorBgContainer:Wt}=ke,pt=He*1.25;return{colorBgHeader:"#001529",colorBgBody:we,colorBgTrigger:"#002140",bodyBg:we,headerBg:"#001529",headerHeight:Oe*2,headerPadding:`0 ${pt}px`,headerColor:We,footerPadding:`${Ve}px ${pt}px`,footerBg:we,siderBg:"#001529",triggerHeight:He+ut*2,triggerBg:"#002140",triggerColor:Ke,zeroTriggerWidth:He,zeroTriggerHeight:He,lightSiderBg:Wt,lightTriggerBg:Wt,lightTriggerColor:We}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),gt=function(ke,we){var Oe={};for(var He in ke)Object.prototype.hasOwnProperty.call(ke,He)&&we.indexOf(He)<0&&(Oe[He]=ke[He]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,He=Object.getOwnPropertySymbols(ke);We<He.length;We++)we.indexOf(He[We])<0&&Object.prototype.propertyIsEnumerable.call(ke,He[We])&&(Oe[He[We]]=ke[He[We]]);return Oe};const Ct=Je.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Fe(ke){let{suffixCls:we,tagName:Oe,displayName:He}=ke;return We=>Je.forwardRef((ut,Ke)=>Je.createElement(We,Object.assign({ref:Ke,suffixCls:we,tagName:Oe},ut)))}const te=Je.forwardRef((ke,we)=>{const{prefixCls:Oe,suffixCls:He,className:We,tagName:Ve}=ke,ut=gt(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ke}=Je.useContext(it.E_),Wt=Ke("layout",Oe),[pt,Ut]=It(Wt),Ht=He?`${Wt}-${He}`:Wt;return pt(Je.createElement(Ve,Object.assign({className:at()(Oe||Ht,We,Ut),ref:we},ut)))}),ne=Je.forwardRef((ke,we)=>{const{direction:Oe}=Je.useContext(it.E_),[He,We]=Je.useState([]),{prefixCls:Ve,className:ut,rootClassName:Ke,children:Wt,hasSider:pt,tagName:Ut,style:Ht}=ke,jt=gt(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xt=(0,kt.Z)(jt,["suffixCls"]),{getPrefixCls:Nn,layout:St}=Je.useContext(it.E_),Ge=Nn("layout",Ve),[en,Hn]=It(Ge),_n=at()(Ge,{[`${Ge}-has-sider`]:typeof pt=="boolean"?pt:He.length>0,[`${Ge}-rtl`]:Oe==="rtl"},St==null?void 0:St.className,ut,Ke,Hn),Bt=Je.useMemo(()=>({siderHook:{addSider:rn=>{We(cn=>[].concat((0,be.Z)(cn),[rn]))},removeSider:rn=>{We(cn=>cn.filter(Kn=>Kn!==rn))}}}),[]);return en(Je.createElement(Ct.Provider,{value:Bt},Je.createElement(Ut,Object.assign({ref:we,className:_n,style:Object.assign(Object.assign({},St==null?void 0:St.style),Ht)},Xt),Wt)))}),he=Fe({tagName:"div",displayName:"Layout"})(ne),se=Fe({suffixCls:"header",tagName:"header",displayName:"Header"})(te),ge=Fe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),me=Fe({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var Pe=he},40875:function(On,xn,ye){"use strict";ye.d(xn,{J:function(){return it}});var be=ye(59301),Re=ye(33234),at=ye(70425),kt=function(Te,Tt){var Pt={};for(var rt in Te)Object.prototype.hasOwnProperty.call(Te,rt)&&Tt.indexOf(rt)<0&&(Pt[rt]=Te[rt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,rt=Object.getOwnPropertySymbols(Te);It<rt.length;It++)Tt.indexOf(rt[It])<0&&Object.prototype.propertyIsEnumerable.call(Te,rt[It])&&(Pt[rt[It]]=Te[rt[It]]);return Pt};const Je=be.createContext(null),it=be.forwardRef((Te,Tt)=>{const{children:Pt}=Te,rt=kt(Te,["children"]),It=be.useContext(Je),gt=be.useMemo(()=>Object.assign(Object.assign({},It),rt),[It,rt.prefixCls,rt.mode,rt.selectable]);return be.createElement(Je.Provider,{value:gt},be.createElement(Re.BR,null,(0,at.supportNodeRef)(Pt)?be.cloneElement(Pt,{ref:Tt}):Pt))});xn.Z=Je},20834:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return Me}});var be=ye(15285),Re=ye(59301),at=ye(45818),kt=ye(92310),Je=ye.n(kt),it=ye(36355),Te=function(xe,Ne){var Be={};for(var Se in xe)Object.prototype.hasOwnProperty.call(xe,Se)&&Ne.indexOf(Se)<0&&(Be[Se]=xe[Se]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Se=Object.getOwnPropertySymbols(xe);lt<Se.length;lt++)Ne.indexOf(Se[lt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Se[lt])&&(Be[Se[lt]]=xe[Se[lt]]);return Be},Pt=xe=>{const{prefixCls:Ne,className:Be,dashed:Se}=xe,lt=Te(xe,["prefixCls","className","dashed"]),{getPrefixCls:Et}=Re.useContext(it.E_),Xe=Et("menu",Ne),tt=Je()({[`${Xe}-item-divider-dashed`]:!!Se},Be);return Re.createElement(be.iz,Object.assign({className:tt},lt))},rt=ye(11592),It=ye(2738),gt=ye(6848),Ct=ye(92343),te=(0,Re.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=xe=>{var Ne;const{className:Be,children:Se,icon:lt,title:Et,danger:Xe}=xe,{prefixCls:tt,firstLevel:wt,direction:xt,disableMenuItemTitleTooltip:ct,inlineCollapsed:Ft}=Re.useContext(te),Pn=_t=>{const $t=Re.createElement("span",{className:`${tt}-title-content`},Se);return(!lt||(0,Ct.l$)(Se)&&Se.type==="span")&&Se&&_t&&wt&&typeof Se=="string"?Re.createElement("div",{className:`${tt}-inline-collapsed-noicon`},Se.charAt(0)):$t},{siderCollapsed:mn}=Re.useContext(at.D);let Jt=Et;typeof Et=="undefined"?Jt=wt?Se:"":Et===!1&&(Jt="");const gn={title:Jt};!mn&&!Ft&&(gn.title=null,gn.open=!1);const Tn=(0,rt.Z)(Se).length;let bt=Re.createElement(be.ck,Object.assign({},(0,It.Z)(xe,["title","icon","danger"]),{className:Je()({[`${tt}-item-danger`]:Xe,[`${tt}-item-only-child`]:(lt?Tn+1:Tn)===1},Be),title:typeof Et=="string"?Et:void 0}),(0,Ct.Tm)(lt,{className:Je()((0,Ct.l$)(lt)?(Ne=lt.props)===null||Ne===void 0?void 0:Ne.className:"",`${tt}-item-icon`)}),Pn(Ft));return ct||(bt=Re.createElement(gt.Z,Object.assign({},gn,{placement:xt==="rtl"?"left":"right",overlayClassName:`${tt}-inline-collapsed-tooltip`}),bt)),bt},ge=xe=>{var Ne;const{popupClassName:Be,icon:Se,title:lt,theme:Et}=xe,Xe=Re.useContext(te),{prefixCls:tt,inlineCollapsed:wt,theme:xt}=Xe,ct=(0,be.Xl)();let Ft;if(!Se)Ft=wt&&!ct.length&<&&typeof lt=="string"?Re.createElement("div",{className:`${tt}-inline-collapsed-noicon`},lt.charAt(0)):Re.createElement("span",{className:`${tt}-title-content`},lt);else{const mn=(0,Ct.l$)(lt)&<.type==="span";Ft=Re.createElement(Re.Fragment,null,(0,Ct.Tm)(Se,{className:Je()((0,Ct.l$)(Se)?(Ne=Se.props)===null||Ne===void 0?void 0:Ne.className:"",`${tt}-item-icon`)}),mn?lt:Re.createElement("span",{className:`${tt}-title-content`},lt))}const Pn=Re.useMemo(()=>Object.assign(Object.assign({},Xe),{firstLevel:!1}),[Xe]);return Re.createElement(te.Provider,{value:Pn},Re.createElement(be.Wd,Object.assign({},(0,It.Z)(xe,["icon"]),{title:Ft,popupClassName:Je()(tt,Be,`${tt}-${Et||xt}`)})))},me=ye(18785),Pe=ye(70425),ke=ye(62892),we=ye(40875),Oe=function(xe,Ne){var Be={};for(var Se in xe)Object.prototype.hasOwnProperty.call(xe,Se)&&Ne.indexOf(Se)<0&&(Be[Se]=xe[Se]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Se=Object.getOwnPropertySymbols(xe);lt<Se.length;lt++)Ne.indexOf(Se[lt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Se[lt])&&(Be[Se[lt]]=xe[Se[lt]]);return Be};function He(xe){return(xe||[]).map((Ne,Be)=>{if(Ne&&typeof Ne=="object"){const Se=Ne,{label:lt,children:Et,key:Xe,type:tt}=Se,wt=Oe(Se,["label","children","key","type"]),xt=Xe!=null?Xe:`tmp-${Be}`;return Et||tt==="group"?tt==="group"?Re.createElement(be.BW,Object.assign({key:xt},wt,{title:lt}),He(Et)):Re.createElement(ge,Object.assign({key:xt},wt,{title:lt}),He(Et)):tt==="divider"?Re.createElement(Pt,Object.assign({key:xt},wt)):Re.createElement(he,Object.assign({key:xt},wt),lt)}return null}).filter(Ne=>Ne)}function We(xe){return Re.useMemo(()=>xe&&He(xe),[xe])}var Ve=ye(64993),ut=ye(17313),Ke=ye(8378),Wt=ye(13826),pt=ye(29878),Ut=ye(83116),Ht=ye(37613),Xt=xe=>{const{componentCls:Ne,motionDurationSlow:Be,horizontalLineHeight:Se,colorSplit:lt,lineWidth:Et,lineType:Xe,itemPaddingInline:tt}=xe;return{[`${Ne}-horizontal`]:{lineHeight:Se,border:0,borderBottom:`${Et}px ${Xe} ${lt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ne}-item, ${Ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tt},[`> ${Ne}-item:hover,
|
|
|
> ${Ne}-item-active,
|
|
|
> ${Ne}-submenu ${Ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ne}-item, ${Ne}-submenu-title`]:{transition:[`border-color ${Be}`,`background ${Be}`].join(",")},[`${Ne}-submenu-arrow`]:{display:"none"}}}},St=xe=>{let{componentCls:Ne,menuArrowOffset:Be}=xe;return{[`${Ne}-rtl`]:{direction:"rtl"},[`${Ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ne}-rtl${Ne}-vertical,
|
|
|
${Ne}-submenu-rtl ${Ne}-vertical`]:{[`${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Be})`},"&::after":{transform:`rotate(45deg) translateY(${Be})`}}}}};const Ge=xe=>Object.assign({},(0,ut.oN)(xe));var Hn=(xe,Ne)=>{const{componentCls:Be,itemColor:Se,itemSelectedColor:lt,groupTitleColor:Et,itemBg:Xe,subMenuItemBg:tt,itemSelectedBg:wt,activeBarHeight:xt,activeBarWidth:ct,activeBarBorderWidth:Ft,motionDurationSlow:Pn,motionEaseInOut:mn,motionEaseOut:Jt,itemPaddingInline:gn,motionDurationMid:Tn,itemHoverColor:bt,lineType:_t,colorSplit:$t,itemDisabledColor:Dn,dangerItemColor:ii,dangerItemHoverColor:pi,dangerItemSelectedColor:fi,dangerItemActiveBg:wi,dangerItemSelectedBg:Vi,itemHoverBg:vr,itemActiveBg:cr,menuSubMenuBg:pr,horizontalItemSelectedColor:_r,horizontalItemSelectedBg:Ir,horizontalItemBorderRadius:$i,horizontalItemHoverBg:eo,popupBg:kr}=xe;return{[`${Be}-${Ne}, ${Be}-${Ne} > ${Be}`]:{color:Se,background:Xe,[`&${Be}-root:focus-visible`]:Object.assign({},Ge(xe)),[`${Be}-item-group-title`]:{color:Et},[`${Be}-submenu-selected`]:{[`> ${Be}-submenu-title`]:{color:lt}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{color:`${Dn} !important`},[`${Be}-item:not(${Be}-item-selected):not(${Be}-submenu-selected)`]:{[`&:hover, > ${Be}-submenu-title:hover`]:{color:bt}},[`&:not(${Be}-horizontal)`]:{[`${Be}-item:not(${Be}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:cr}},[`${Be}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:cr}}},[`${Be}-item-danger`]:{color:ii,[`&${Be}-item:hover`]:{[`&:not(${Be}-item-selected):not(${Be}-submenu-selected)`]:{color:pi}},[`&${Be}-item:active`]:{background:wi}},[`${Be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Be}-item-selected`]:{color:lt,[`&${Be}-item-danger`]:{color:fi},"a, a:hover":{color:"inherit"}},[`& ${Be}-item-selected`]:{backgroundColor:wt,[`&${Be}-item-danger`]:{backgroundColor:Vi}},[`${Be}-item, ${Be}-submenu-title`]:{[`&:not(${Be}-item-disabled):focus-visible`]:Object.assign({},Ge(xe))},[`&${Be}-submenu > ${Be}`]:{backgroundColor:pr},[`&${Be}-popup > ${Be}`]:{backgroundColor:kr},[`&${Be}-horizontal`]:Object.assign(Object.assign({},Ne==="dark"?{borderBottom:0}:{}),{[`> ${Be}-item, > ${Be}-submenu`]:{top:Ft,marginTop:-Ft,marginBottom:0,borderRadius:$i,"&::after":{position:"absolute",insetInline:gn,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${Pn} ${mn}`,content:'""'},"&:hover, &-active, &-open":{background:eo,"&::after":{borderBottomWidth:xt,borderBottomColor:_r}},"&-selected":{color:_r,backgroundColor:Ir,"&:hover":{backgroundColor:Ir},"&::after":{borderBottomWidth:xt,borderBottomColor:_r}}}}),[`&${Be}-root`]:{[`&${Be}-inline, &${Be}-vertical`]:{borderInlineEnd:`${Ft}px ${_t} ${$t}`}},[`&${Be}-inline`]:{[`${Be}-sub${Be}-inline`]:{background:tt},[`${Be}-item, ${Be}-submenu-title`]:Ft&&ct?{width:`calc(100% + ${Ft}px)`}:{},[`${Be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ct}px solid ${lt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Tn} ${Jt}`,`opacity ${Tn} ${Jt}`].join(","),content:'""'},[`&${Be}-item-danger`]:{"&::after":{borderInlineEndColor:fi}}},[`${Be}-selected, ${Be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Tn} ${mn}`,`opacity ${Tn} ${mn}`].join(",")}}}}}};const _n=xe=>{const{componentCls:Ne,itemHeight:Be,itemMarginInline:Se,padding:lt,menuArrowSize:Et,marginXS:Xe,itemMarginBlock:tt}=xe,wt=lt+Et+Xe;return{[`${Ne}-item`]:{position:"relative",overflow:"hidden"},[`${Ne}-item, ${Ne}-submenu-title`]:{height:Be,lineHeight:`${Be}px`,paddingInline:lt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Se,marginBlock:tt,width:`calc(100% - ${Se*2}px)`},[`> ${Ne}-item,
|
|
|
> ${Ne}-submenu > ${Ne}-submenu-title`]:{height:Be,lineHeight:`${Be}px`},[`${Ne}-item-group-list ${Ne}-submenu-title,
|
|
|
${Ne}-submenu-title`]:{paddingInlineEnd:wt}}};var rn=xe=>{const{componentCls:Ne,iconCls:Be,itemHeight:Se,colorTextLightSolid:lt,dropdownWidth:Et,controlHeightLG:Xe,motionDurationMid:tt,motionEaseOut:wt,paddingXL:xt,itemMarginInline:ct,fontSizeLG:Ft,motionDurationSlow:Pn,paddingXS:mn,boxShadowSecondary:Jt,collapsedWidth:gn,collapsedIconSize:Tn}=xe,bt={height:Se,lineHeight:`${Se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ne]:{"&-inline, &-vertical":Object.assign({[`&${Ne}-root`]:{boxShadow:"none"}},_n(xe))},[`${Ne}-submenu-popup`]:{[`${Ne}-vertical`]:Object.assign(Object.assign({},_n(xe)),{boxShadow:Jt})}},{[`${Ne}-submenu-popup ${Ne}-vertical${Ne}-sub`]:{minWidth:Et,maxHeight:`calc(100vh - ${Xe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ne}-inline`]:{width:"100%",[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${tt} ${wt}`].join(","),[`> ${Ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ne}-sub${Ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ne}-submenu > ${Ne}-submenu-title`]:bt,[`& ${Ne}-item-group-title`]:{paddingInlineStart:xt}},[`${Ne}-item`]:bt}},{[`${Ne}-inline-collapsed`]:{width:gn,[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu ${Ne}-submenu-title`]:{[`> ${Ne}-inline-collapsed-noicon`]:{fontSize:Ft,textAlign:"center"}}},[`> ${Ne}-item,
|
|
|
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-item,
|
|
|
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-submenu > ${Ne}-submenu-title,
|
|
|
> ${Ne}-submenu > ${Ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ft/2}px - ${ct}px)`,textOverflow:"clip",[`
|
|
|
${Ne}-submenu-arrow,
|
|
|
${Ne}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ne}-item-icon, ${Be}`]:{margin:0,fontSize:Tn,lineHeight:`${Se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ne}-item-icon, ${Be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ne}-item-icon, ${Be}`]:{display:"none"},"a, a:hover":{color:lt}},[`${Ne}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:mn})}}]};const cn=xe=>{const{componentCls:Ne,motionDurationSlow:Be,motionDurationMid:Se,motionEaseInOut:lt,motionEaseOut:Et,iconCls:Xe,iconSize:tt,iconMarginInlineEnd:wt}=xe;return{[`${Ne}-item, ${Ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Be}`,`background ${Be}`,`padding ${Be} ${lt}`].join(","),[`${Ne}-item-icon, ${Xe}`]:{minWidth:tt,fontSize:tt,transition:[`font-size ${Se} ${Et}`,`margin ${Be} ${lt}`,`color ${Be}`].join(","),"+ span":{marginInlineStart:wt,opacity:1,transition:[`opacity ${Be} ${lt}`,`margin ${Be}`,`color ${Be}`].join(",")}},[`${Ne}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${Ne}-item-only-child`]:{[`> ${Xe}, > ${Ne}-item-icon`]:{marginInlineEnd:0}}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Kn=xe=>{const{componentCls:Ne,motionDurationSlow:Be,motionEaseInOut:Se,borderRadius:lt,menuArrowSize:Et,menuArrowOffset:Xe}=xe;return{[`${Ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:Et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Be} ${Se}, opacity ${Be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Et*.6,height:Et*.15,backgroundColor:"currentcolor",borderRadius:lt,transition:[`background ${Be} ${Se}`,`transform ${Be} ${Se}`,`top ${Be} ${Se}`,`color ${Be} ${Se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Xe})`},"&::after":{transform:`rotate(-45deg) translateY(${Xe})`}}}}},nn=xe=>{const{antCls:Ne,componentCls:Be,fontSize:Se,motionDurationSlow:lt,motionDurationMid:Et,motionEaseInOut:Xe,paddingXS:tt,padding:wt,colorSplit:xt,lineWidth:ct,zIndexPopup:Ft,borderRadiusLG:Pn,subMenuItemBorderRadius:mn,menuArrowSize:Jt,menuArrowOffset:gn,lineType:Tn,menuPanelMaskInset:bt,groupTitleLineHeight:_t,groupTitleFontSize:$t}=xe;return[{"":{[`${Be}`]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${Be}-submenu-hidden`]:{display:"none"}},{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(xe)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${lt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Be}-item`]:{flex:"none"}},[`${Be}-item, ${Be}-submenu, ${Be}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${Be}-item-group-title`]:{padding:`${tt}px ${wt}px`,fontSize:$t,lineHeight:_t,transition:`all ${lt}`},[`&-horizontal ${Be}-submenu`]:{transition:[`border-color ${lt} ${Xe}`,`background ${lt} ${Xe}`].join(",")},[`${Be}-submenu, ${Be}-submenu-inline`]:{transition:[`border-color ${lt} ${Xe}`,`background ${lt} ${Xe}`,`padding ${Et} ${Xe}`].join(",")},[`${Be}-submenu ${Be}-sub`]:{cursor:"initial",transition:[`background ${lt} ${Xe}`,`padding ${lt} ${Xe}`].join(",")},[`${Be}-title-content`]:{transition:`color ${lt}`},[`${Be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:Tn,borderWidth:0,borderTopWidth:ct,marginBlock:ct,padding:0,"&-dashed":{borderStyle:"dashed"}}}),cn(xe)),{[`${Be}-item-group`]:{[`${Be}-item-group-list`]:{margin:0,padding:0,[`${Be}-item, ${Be}-submenu-title`]:{paddingInline:`${Se*2}px ${wt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ft,borderRadius:Pn,boxShadow:"none",transformOrigin:"0 0",[`&${Be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS},[`> ${Be}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},cn(xe)),Kn(xe)),{[`${Be}-item, ${Be}-submenu > ${Be}-submenu-title`]:{borderRadius:mn},[`${Be}-submenu-title::after`]:{transition:`transform ${lt} ${Xe}`}})}}),Kn(xe)),{[`&-inline-collapsed ${Be}-submenu-arrow,
|
|
|
&-inline ${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gn})`},"&::after":{transform:`rotate(45deg) translateX(-${gn})`}},[`${Be}-submenu-open${Be}-submenu-inline > ${Be}-submenu-title > ${Be}-submenu-arrow`]:{transform:`translateY(-${Jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${gn})`},"&::before":{transform:`rotate(45deg) translateX(${gn})`}}})},{[`${Ne}-layout-header`]:{[Be]:{lineHeight:"inherit"}}}]};var Rn=(xe,Ne)=>(0,Ut.Z)("Menu",Se=>{if(Ne===!1)return[];const{colorBgElevated:lt,colorPrimary:Et,colorTextLightSolid:Xe,controlHeightLG:tt,fontSize:wt,darkItemColor:xt,darkDangerItemColor:ct,darkItemBg:Ft,darkSubMenuItemBg:Pn,darkItemSelectedColor:mn,darkItemSelectedBg:Jt,darkDangerItemSelectedBg:gn,darkItemHoverBg:Tn,darkGroupTitleColor:bt,darkItemHoverColor:_t,darkItemDisabledColor:$t,darkDangerItemHoverColor:Dn,darkDangerItemSelectedColor:ii,darkDangerItemActiveBg:pi}=Se,fi=wt/7*5,wi=(0,Ht.TS)(Se,{menuArrowSize:fi,menuHorizontalHeight:tt*1.15,menuArrowOffset:`${fi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:lt}),Vi=(0,Ht.TS)(wi,{itemColor:xt,itemHoverColor:_t,groupTitleColor:bt,itemSelectedColor:mn,itemBg:Ft,popupBg:Ft,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:Jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tn,itemDisabledColor:$t,dangerItemColor:ct,dangerItemHoverColor:Dn,dangerItemSelectedColor:ii,dangerItemActiveBg:pi,dangerItemSelectedBg:gn,menuSubMenuBg:Pn,horizontalItemSelectedColor:Xe,horizontalItemSelectedBg:Et});return[nn(wi),Xt(wi),rn(wi),Hn(wi,"light"),Hn(Vi,"dark"),St(wi),(0,Ke.Z)(wi),(0,Wt.oN)(wi,"slide-up"),(0,Wt.oN)(wi,"slide-down"),(0,pt._y)(wi,"zoom-big")]},Se=>{const{colorPrimary:lt,colorError:Et,colorTextDisabled:Xe,colorErrorBg:tt,colorText:wt,colorTextDescription:xt,colorBgContainer:ct,colorFillAlter:Ft,colorFillContent:Pn,lineWidth:mn,lineWidthBold:Jt,controlItemBgActive:gn,colorBgTextHover:Tn,controlHeightLG:bt,lineHeight:_t,colorBgElevated:$t,marginXXS:Dn,padding:ii,fontSize:pi,controlHeightSM:fi,fontSizeLG:wi,colorTextLightSolid:Vi,colorErrorHover:vr}=Se,cr=new Ve.C(Vi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Se.zIndexPopupBase+50,radiusItem:Se.borderRadiusLG,itemBorderRadius:Se.borderRadiusLG,radiusSubMenuItem:Se.borderRadiusSM,subMenuItemBorderRadius:Se.borderRadiusSM,colorItemText:wt,itemColor:wt,colorItemTextHover:wt,itemHoverColor:wt,colorItemTextHoverHorizontal:lt,horizontalItemHoverColor:lt,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:lt,itemSelectedColor:lt,colorItemTextSelectedHorizontal:lt,horizontalItemSelectedColor:lt,colorItemBg:ct,itemBg:ct,colorItemBgHover:Tn,itemHoverBg:Tn,colorItemBgActive:Pn,itemActiveBg:gn,colorSubItemBg:Ft,subMenuItemBg:Ft,colorItemBgSelected:gn,itemSelectedBg:gn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Jt,activeBarHeight:Jt,colorActiveBarBorderSize:mn,activeBarBorderWidth:mn,colorItemTextDisabled:Xe,itemDisabledColor:Xe,colorDangerItemText:Et,dangerItemColor:Et,colorDangerItemTextHover:Et,dangerItemHoverColor:Et,colorDangerItemTextSelected:Et,dangerItemSelectedColor:Et,colorDangerItemBgActive:tt,dangerItemActiveBg:tt,colorDangerItemBgSelected:tt,dangerItemSelectedBg:tt,itemMarginInline:Se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:_t,collapsedWidth:bt*2,popupBg:$t,itemMarginBlock:Dn,itemPaddingInline:ii,horizontalLineHeight:`${bt*1.15}px`,iconSize:pi,iconMarginInlineEnd:fi-pi,collapsedIconSize:wi,groupTitleFontSize:pi,darkItemDisabledColor:new Ve.C(Vi).setAlpha(.25).toRgbString(),darkItemColor:cr,darkDangerItemColor:Et,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vi,darkItemSelectedBg:lt,darkDangerItemSelectedBg:Et,darkItemHoverBg:"transparent",darkGroupTitleColor:cr,darkItemHoverColor:Vi,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:Vi,darkDangerItemActiveBg:Et}},{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"]]})(xe),vt=function(xe,Ne){var Be={};for(var Se in xe)Object.prototype.hasOwnProperty.call(xe,Se)&&Ne.indexOf(Se)<0&&(Be[Se]=xe[Se]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Se=Object.getOwnPropertySymbols(xe);lt<Se.length;lt++)Ne.indexOf(Se[lt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Se[lt])&&(Be[Se[lt]]=xe[Se[lt]]);return Be},ni=(0,Re.forwardRef)((xe,Ne)=>{var Be,Se;const lt=Re.useContext(we.Z),Et=lt||{},{getPrefixCls:Xe,getPopupContainer:tt,direction:wt,menu:xt}=Re.useContext(it.E_),ct=Xe(),{prefixCls:Ft,className:Pn,style:mn,theme:Jt="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:Tn,inlineCollapsed:bt,siderCollapsed:_t,items:$t,children:Dn,rootClassName:ii,mode:pi,selectable:fi,onClick:wi,overflowedIndicatorPopupClassName:Vi}=xe,vr=vt(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),cr=(0,It.Z)(vr,["collapsedWidth"]),pr=We($t)||Dn;(Be=Et.validator)===null||Be===void 0||Be.call(Et,{mode:pi});const _r=(0,Pe.useEvent)(function(){var Qr;wi==null||wi.apply(void 0,arguments),(Qr=Et.onClick)===null||Qr===void 0||Qr.call(Et)}),Ir=Et.mode||pi,$i=fi!=null?fi:Et.selectable,eo=Re.useMemo(()=>_t!==void 0?_t:bt,[bt,_t]),kr={horizontal:{motionName:`${ct}-slide-up`},inline:(0,ke.Z)(ct),other:{motionName:`${ct}-zoom-big`}},Ee=Xe("menu",Ft||Et.prefixCls),[si,yi]=Rn(Ee,!lt),or=Je()(`${Ee}-${Jt}`,xt==null?void 0:xt.className,Pn);let xr;if(typeof gn=="function")xr=gn;else if(gn===null||gn===!1)xr=null;else if(Et.expandIcon===null||Et.expandIcon===!1)xr=null;else{const Qr=gn!=null?gn:Et.expandIcon;xr=(0,Ct.Tm)(Qr,{className:Je()(`${Ee}-submenu-expand-icon`,(0,Ct.l$)(Qr)?(Se=Qr.props)===null||Se===void 0?void 0:Se.className:"")})}const qi=Re.useMemo(()=>({prefixCls:Ee,inlineCollapsed:eo||!1,direction:wt,firstLevel:!0,theme:Jt,mode:Ir,disableMenuItemTitleTooltip:Tn}),[Ee,eo,wt,Tn,Jt]);return si(Re.createElement(we.Z.Provider,{value:null},Re.createElement(te.Provider,{value:qi},Re.createElement(be.ZP,Object.assign({getPopupContainer:tt,overflowedIndicator:Re.createElement(me.Z,null),overflowedIndicatorPopupClassName:Je()(Ee,`${Ee}-${Jt}`,Vi),mode:Ir,selectable:$i,onClick:_r},cr,{inlineCollapsed:eo,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),mn),className:or,prefixCls:Ee,direction:wt,defaultMotions:kr,expandIcon:xr,ref:Ne,rootClassName:Je()(ii,yi)}),pr))))});const je=(0,Re.forwardRef)((xe,Ne)=>{const Be=(0,Re.useRef)(null),Se=Re.useContext(at.D);return(0,Re.useImperativeHandle)(Ne,()=>({menu:Be.current,focus:lt=>{var Et;(Et=Be.current)===null||Et===void 0||Et.focus(lt)}})),Re.createElement(ni,Object.assign({ref:Be},xe,Se))});je.Item=he,je.SubMenu=ge,je.Divider=Pt,je.ItemGroup=be.BW;var Me=je},58421:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Et}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(tt,wt){return Re.createElement(Je.Z,(0,be.Z)({},tt,{ref:wt,icon:kt}))},Te=Re.forwardRef(it),Tt=Te,Pt=ye(49198),rt=ye(33853),It=ye(38819),gt=ye(92310),Ct=ye.n(gt),Fe=ye(49618),te=ye(77321),ne=ye(96949),he=ye(55090),se=ye(77205),ge=ye(38793),me=ye(26112),Pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=Pe,we=ye(91735),Oe=function(Xe){(0,se.Z)(wt,Xe);var tt=(0,ge.Z)(wt);function wt(){var xt;(0,ne.Z)(this,wt);for(var ct=arguments.length,Ft=new Array(ct),Pn=0;Pn<ct;Pn++)Ft[Pn]=arguments[Pn];return xt=tt.call.apply(tt,[this].concat(Ft)),xt.state={goInputText:""},xt.getValidValue=function(){var mn=xt.state.goInputText;return!mn||Number.isNaN(mn)?void 0:Number(mn)},xt.buildOptionText=function(mn){return"".concat(mn," ").concat(xt.props.locale.items_per_page)},xt.changeSize=function(mn){xt.props.changeSize(Number(mn))},xt.handleChange=function(mn){xt.setState({goInputText:mn.target.value})},xt.handleBlur=function(mn){var Jt=xt.props,gn=Jt.goButton,Tn=Jt.quickGo,bt=Jt.rootPrefixCls,_t=xt.state.goInputText;gn||_t===""||(xt.setState({goInputText:""}),!(mn.relatedTarget&&(mn.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||mn.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&Tn(xt.getValidValue()))},xt.go=function(mn){var Jt=xt.state.goInputText;Jt!==""&&(mn.keyCode===ke.ENTER||mn.type==="click")&&(xt.setState({goInputText:""}),xt.props.quickGo(xt.getValidValue()))},xt}return(0,he.Z)(wt,[{key:"getPageSizeOptions",value:function(){var ct=this.props,Ft=ct.pageSize,Pn=ct.pageSizeOptions;return Pn.some(function(mn){return mn.toString()===Ft.toString()})?Pn:Pn.concat([Ft.toString()]).sort(function(mn,Jt){var gn=Number.isNaN(Number(mn))?0:Number(mn),Tn=Number.isNaN(Number(Jt))?0:Number(Jt);return gn-Tn})}},{key:"render",value:function(){var ct=this,Ft=this.props,Pn=Ft.pageSize,mn=Ft.locale,Jt=Ft.rootPrefixCls,gn=Ft.changeSize,Tn=Ft.quickGo,bt=Ft.goButton,_t=Ft.selectComponentClass,$t=Ft.buildOptionText,Dn=Ft.selectPrefixCls,ii=Ft.disabled,pi=this.state.goInputText,fi="".concat(Jt,"-options"),wi=_t,Vi=null,vr=null,cr=null;if(!gn&&!Tn)return null;var pr=this.getPageSizeOptions();if(gn&&wi){var _r=pr.map(function(Ir,$i){return Re.createElement(wi.Option,{key:$i,value:Ir.toString()},($t||ct.buildOptionText)(Ir))});Vi=Re.createElement(wi,{disabled:ii,prefixCls:Dn,showSearch:!1,className:"".concat(fi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Pn||pr[0]).toString(),onChange:this.changeSize,getPopupContainer:function($i){return $i.parentNode},"aria-label":mn.page_size,defaultOpen:!1},_r)}return Tn&&(bt&&(cr=typeof bt=="boolean"?Re.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ii,className:"".concat(fi,"-quick-jumper-button")},mn.jump_to_confirm):Re.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),vr=Re.createElement("div",{className:"".concat(fi,"-quick-jumper")},mn.jump_to,Re.createElement("input",{disabled:ii,type:"text",value:pi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":mn.page}),mn.page,cr)),Re.createElement("li",{className:"".concat(fi)},Vi,vr)}}]),wt}(Re.Component);Oe.defaultProps={pageSizeOptions:["10","20","50","100"]};var He=Oe,We=function(tt){var wt,xt=tt.rootPrefixCls,ct=tt.page,Ft=tt.active,Pn=tt.className,mn=tt.showTitle,Jt=tt.onClick,gn=tt.onKeyPress,Tn=tt.itemRender,bt="".concat(xt,"-item"),_t=Ct()(bt,"".concat(bt,"-").concat(ct),(wt={},(0,Fe.Z)(wt,"".concat(bt,"-active"),Ft),(0,Fe.Z)(wt,"".concat(bt,"-disabled"),!ct),(0,Fe.Z)(wt,tt.className,Pn),wt)),$t=function(){Jt(ct)},Dn=function(fi){gn(fi,Jt,ct)},ii=Tn(ct,"page",Re.createElement("a",{rel:"nofollow"},ct));return ii?Re.createElement("li",{title:mn?ct.toString():null,className:_t,onClick:$t,onKeyPress:Dn,tabIndex:0},ii):null},Ve=We;function ut(){}function Ke(Xe){var tt=Number(Xe);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}var Wt=function(tt,wt,xt){return xt};function pt(Xe,tt,wt){var xt=typeof Xe=="undefined"?tt.pageSize:Xe;return Math.floor((wt.total-1)/xt)+1}var Ut=function(Xe){(0,se.Z)(wt,Xe);var tt=(0,ge.Z)(wt);function wt(xt){var ct;(0,ne.Z)(this,wt),ct=tt.call(this,xt),ct.paginationNode=Re.createRef(),ct.getJumpPrevPage=function(){return Math.max(1,ct.state.current-(ct.props.showLessItems?3:5))},ct.getJumpNextPage=function(){return Math.min(pt(void 0,ct.state,ct.props),ct.state.current+(ct.props.showLessItems?3:5))},ct.getItemIcon=function(gn,Tn){var bt=ct.props.prefixCls,_t=gn||Re.createElement("button",{type:"button","aria-label":Tn,className:"".concat(bt,"-item-link")});return typeof gn=="function"&&(_t=Re.createElement(gn,(0,te.Z)({},ct.props))),_t},ct.isValid=function(gn){var Tn=ct.props.total;return Ke(gn)&&gn!==ct.state.current&&Ke(Tn)&&Tn>0},ct.shouldDisplayQuickJumper=function(){var gn=ct.props,Tn=gn.showQuickJumper,bt=gn.total,_t=ct.state.pageSize;return bt<=_t?!1:Tn},ct.handleKeyDown=function(gn){(gn.keyCode===ke.ARROW_UP||gn.keyCode===ke.ARROW_DOWN)&&gn.preventDefault()},ct.handleKeyUp=function(gn){var Tn=ct.getValidValue(gn),bt=ct.state.currentInputValue;Tn!==bt&&ct.setState({currentInputValue:Tn}),gn.keyCode===ke.ENTER?ct.handleChange(Tn):gn.keyCode===ke.ARROW_UP?ct.handleChange(Tn-1):gn.keyCode===ke.ARROW_DOWN&&ct.handleChange(Tn+1)},ct.handleBlur=function(gn){var Tn=ct.getValidValue(gn);ct.handleChange(Tn)},ct.changePageSize=function(gn){var Tn=ct.state.current,bt=pt(gn,ct.state,ct.props);Tn=Tn>bt?bt:Tn,bt===0&&(Tn=ct.state.current),typeof gn=="number"&&("pageSize"in ct.props||ct.setState({pageSize:gn}),"current"in ct.props||ct.setState({current:Tn,currentInputValue:Tn})),ct.props.onShowSizeChange(Tn,gn),"onChange"in ct.props&&ct.props.onChange&&ct.props.onChange(Tn,gn)},ct.handleChange=function(gn){var Tn=ct.props,bt=Tn.disabled,_t=Tn.onChange,$t=ct.state,Dn=$t.pageSize,ii=$t.current,pi=$t.currentInputValue;if(ct.isValid(gn)&&!bt){var fi=pt(void 0,ct.state,ct.props),wi=gn;return gn>fi?wi=fi:gn<1&&(wi=1),"current"in ct.props||ct.setState({current:wi}),wi!==pi&&ct.setState({currentInputValue:wi}),_t(wi,Dn),wi}return ii},ct.prev=function(){ct.hasPrev()&&ct.handleChange(ct.state.current-1)},ct.next=function(){ct.hasNext()&&ct.handleChange(ct.state.current+1)},ct.jumpPrev=function(){ct.handleChange(ct.getJumpPrevPage())},ct.jumpNext=function(){ct.handleChange(ct.getJumpNextPage())},ct.hasPrev=function(){return ct.state.current>1},ct.hasNext=function(){return ct.state.current<pt(void 0,ct.state,ct.props)},ct.runIfEnter=function(gn,Tn){if(gn.key==="Enter"||gn.charCode===13){for(var bt=arguments.length,_t=new Array(bt>2?bt-2:0),$t=2;$t<bt;$t++)_t[$t-2]=arguments[$t];Tn.apply(void 0,_t)}},ct.runIfEnterPrev=function(gn){ct.runIfEnter(gn,ct.prev)},ct.runIfEnterNext=function(gn){ct.runIfEnter(gn,ct.next)},ct.runIfEnterJumpPrev=function(gn){ct.runIfEnter(gn,ct.jumpPrev)},ct.runIfEnterJumpNext=function(gn){ct.runIfEnter(gn,ct.jumpNext)},ct.handleGoTO=function(gn){(gn.keyCode===ke.ENTER||gn.type==="click")&&ct.handleChange(ct.state.currentInputValue)},ct.renderPrev=function(gn){var Tn=ct.props,bt=Tn.prevIcon,_t=Tn.itemRender,$t=_t(gn,"prev",ct.getItemIcon(bt,"prev page")),Dn=!ct.hasPrev();return(0,Re.isValidElement)($t)?(0,Re.cloneElement)($t,{disabled:Dn}):$t},ct.renderNext=function(gn){var Tn=ct.props,bt=Tn.nextIcon,_t=Tn.itemRender,$t=_t(gn,"next",ct.getItemIcon(bt,"next page")),Dn=!ct.hasNext();return(0,Re.isValidElement)($t)?(0,Re.cloneElement)($t,{disabled:Dn}):$t};var Ft=xt.onChange!==ut,Pn="current"in xt;Pn&&!Ft&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var mn=xt.defaultCurrent;"current"in xt&&(mn=xt.current);var Jt=xt.defaultPageSize;return"pageSize"in xt&&(Jt=xt.pageSize),mn=Math.min(mn,pt(Jt,void 0,xt)),ct.state={current:mn,currentInputValue:mn,pageSize:Jt},ct}return(0,he.Z)(wt,[{key:"componentDidUpdate",value:function(ct,Ft){var Pn=this.props.prefixCls;if(Ft.current!==this.state.current&&this.paginationNode.current){var mn=this.paginationNode.current.querySelector(".".concat(Pn,"-item-").concat(Ft.current));if(mn&&document.activeElement===mn){var Jt;mn==null||(Jt=mn.blur)===null||Jt===void 0||Jt.call(mn)}}}},{key:"getValidValue",value:function(ct){var Ft=ct.target.value,Pn=pt(void 0,this.state,this.props),mn=this.state.currentInputValue,Jt;return Ft===""?Jt=Ft:Number.isNaN(Number(Ft))?Jt=mn:Ft>=Pn?Jt=Pn:Jt=Number(Ft),Jt}},{key:"getShowSizeChanger",value:function(){var ct=this.props,Ft=ct.showSizeChanger,Pn=ct.total,mn=ct.totalBoundaryShowSizeChanger;return typeof Ft!="undefined"?Ft:Pn>mn}},{key:"render",value:function(){var ct=this.props,Ft=ct.prefixCls,Pn=ct.className,mn=ct.style,Jt=ct.disabled,gn=ct.hideOnSinglePage,Tn=ct.total,bt=ct.locale,_t=ct.showQuickJumper,$t=ct.showLessItems,Dn=ct.showTitle,ii=ct.showTotal,pi=ct.simple,fi=ct.itemRender,wi=ct.showPrevNextJumpers,Vi=ct.jumpPrevIcon,vr=ct.jumpNextIcon,cr=ct.selectComponentClass,pr=ct.selectPrefixCls,_r=ct.pageSizeOptions,Ir=this.state,$i=Ir.current,eo=Ir.pageSize,kr=Ir.currentInputValue;if(gn===!0&&Tn<=eo)return null;var Ee=pt(void 0,this.state,this.props),si=[],yi=null,or=null,xr=null,qi=null,Qr=null,mo=_t&&_t.goButton,zr=$t?1:2,on=$i-1>0?$i-1:0,Yt=$i+1<Ee?$i+1:Ee,Qe=(0,me.Z)(this.props,{aria:!0,data:!0}),un=ii&&Re.createElement("li",{className:"".concat(Ft,"-total-text")},ii(Tn,[Tn===0?0:($i-1)*eo+1,$i*eo>Tn?Tn:$i*eo]));if(pi){mo&&(typeof mo=="boolean"?Qr=Re.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):Qr=Re.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},mo),Qr=Re.createElement("li",{title:Dn?"".concat(bt.jump_to).concat($i,"/").concat(Ee):null,className:"".concat(Ft,"-simple-pager")},Qr));var In=this.renderPrev(on);return Re.createElement("ul",(0,be.Z)({className:Ct()(Ft,"".concat(Ft,"-simple"),(0,Fe.Z)({},"".concat(Ft,"-disabled"),Jt),Pn),style:mn,ref:this.paginationNode},Qe),un,In?Re.createElement("li",{title:Dn?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ct()("".concat(Ft,"-prev"),(0,Fe.Z)({},"".concat(Ft,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},In):null,Re.createElement("li",{title:Dn?"".concat($i,"/").concat(Ee):null,className:"".concat(Ft,"-simple-pager")},Re.createElement("input",{type:"text",value:kr,disabled:Jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Re.createElement("span",{className:"".concat(Ft,"-slash")},"/"),Ee),Re.createElement("li",{title:Dn?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ct()("".concat(Ft,"-next"),(0,Fe.Z)({},"".concat(Ft,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Yt)),Qr)}if(Ee<=3+zr*2){var Mt={locale:bt,rootPrefixCls:Ft,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Dn,itemRender:fi};Ee||si.push(Re.createElement(Ve,(0,be.Z)({},Mt,{key:"noPager",page:1,className:"".concat(Ft,"-item-disabled")})));for(var ft=1;ft<=Ee;ft+=1){var fn=$i===ft;si.push(Re.createElement(Ve,(0,be.Z)({},Mt,{key:ft,page:ft,active:fn})))}}else{var Vn=$t?bt.prev_3:bt.prev_5,bi=$t?bt.next_3:bt.next_5,gi=fi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Vi,"prev page")),dt=fi(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));wi&&(yi=gi?Re.createElement("li",{title:Dn?Vn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ct()("".concat(Ft,"-jump-prev"),(0,Fe.Z)({},"".concat(Ft,"-jump-prev-custom-icon"),!!Vi))},gi):null,or=dt?Re.createElement("li",{title:Dn?bi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ct()("".concat(Ft,"-jump-next"),(0,Fe.Z)({},"".concat(Ft,"-jump-next-custom-icon"),!!vr))},dt):null),qi=Re.createElement(Ve,{locale:bt,last:!0,rootPrefixCls:Ft,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ee,page:Ee,active:!1,showTitle:Dn,itemRender:fi}),xr=Re.createElement(Ve,{locale:bt,rootPrefixCls:Ft,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Dn,itemRender:fi});var Fn=Math.max(1,$i-zr),ui=Math.min($i+zr,Ee);$i-1<=zr&&(ui=1+zr*2),Ee-$i<=zr&&(Fn=Ee-zr*2);for(var ji=Fn;ji<=ui;ji+=1){var dn=$i===ji;si.push(Re.createElement(Ve,{locale:bt,rootPrefixCls:Ft,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ji,page:ji,active:dn,showTitle:Dn,itemRender:fi}))}$i-1>=zr*2&&$i!==3&&(si[0]=(0,Re.cloneElement)(si[0],{className:"".concat(Ft,"-item-after-jump-prev")}),si.unshift(yi)),Ee-$i>=zr*2&&$i!==Ee-2&&(si[si.length-1]=(0,Re.cloneElement)(si[si.length-1],{className:"".concat(Ft,"-item-before-jump-next")}),si.push(or)),Fn!==1&&si.unshift(xr),ui!==Ee&&si.push(qi)}var vn=!this.hasPrev()||!Ee,Rt=!this.hasNext()||!Ee,tn=this.renderPrev(on),yn=this.renderNext(Yt);return Re.createElement("ul",(0,be.Z)({className:Ct()(Ft,Pn,(0,Fe.Z)({},"".concat(Ft,"-disabled"),Jt)),style:mn,ref:this.paginationNode},Qe),un,tn?Re.createElement("li",{title:Dn?bt.prev_page:null,onClick:this.prev,tabIndex:vn?null:0,onKeyPress:this.runIfEnterPrev,className:Ct()("".concat(Ft,"-prev"),(0,Fe.Z)({},"".concat(Ft,"-disabled"),vn)),"aria-disabled":vn},tn):null,si,yn?Re.createElement("li",{title:Dn?bt.next_page:null,onClick:this.next,tabIndex:Rt?null:0,onKeyPress:this.runIfEnterNext,className:Ct()("".concat(Ft,"-next"),(0,Fe.Z)({},"".concat(Ft,"-disabled"),Rt)),"aria-disabled":Rt},yn):null,Re.createElement(He,{disabled:Jt,locale:bt,rootPrefixCls:Ft,selectComponentClass:cr,selectPrefixCls:pr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$i,pageSize:eo,pageSizeOptions:_r,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:mo}))}}],[{key:"getDerivedStateFromProps",value:function(ct,Ft){var Pn={};if("current"in ct&&(Pn.current=ct.current,ct.current!==Ft.current&&(Pn.currentInputValue=Pn.current)),"pageSize"in ct&&ct.pageSize!==Ft.pageSize){var mn=Ft.current,Jt=pt(ct.pageSize,Ft,ct);mn=mn>Jt?Jt:mn,"current"in ct||(Pn.current=mn,Pn.currentInputValue=mn),Pn.pageSize=ct.pageSize}return Pn}}]),wt}(Re.Component);Ut.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ut,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ut,locale:we.Z,style:{},itemRender:Wt,totalBoundaryShowSizeChanger:50};var Ht=Ut,jt=ye(22075),Xt=ye(36355),Nn=ye(19716),St=ye(8628),Ge=ye(9763),en=ye(57809);const Hn=Xe=>Re.createElement(en.default,Object.assign({},Xe,{showSearch:!0,size:"small"})),_n=Xe=>Re.createElement(en.default,Object.assign({},Xe,{showSearch:!0,size:"middle"}));Hn.Option=en.default.Option,_n.Option=en.default.Option;var Bt=ye(9937),rn=ye(17313),cn=ye(83116),Kn=ye(37613);const nn=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Xe.colorBorder,backgroundColor:Xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Xe.itemActiveBgDisabled},a:{color:Xe.itemActiveColorDisabled}}},[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:Xe.colorTextDisabled},[`${tt}-jump-prev, ${tt}-jump-next`]:{[`${tt}-item-link-icon`]:{opacity:0},[`${tt}-item-ellipsis`]:{opacity:1}}},[`&${tt}-simple`]:{[`${tt}-prev, ${tt}-next`]:{[`&${tt}-disabled ${tt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Rn=Xe=>{const{componentCls:tt}=Xe;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`},[`&${tt}-mini ${tt}-item`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:`${Xe.itemSizeSM-2}px`},[`&${tt}-mini:not(${tt}-disabled) ${tt}-item:not(${tt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive}},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:`${Xe.itemSizeSM}px`},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextActive},[`&${tt}-disabled:hover ${tt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${tt}-mini ${tt}-prev ${tt}-item-link,
|
|
|
&${tt}-mini ${tt}-next ${tt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:Xe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Xe.itemSizeSM}px`},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:Xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Bt.x0)(Xe)),{width:Xe.paginationMiniQuickJumperInputWidth,height:Xe.controlHeightSM})}}}},vt=Xe=>{const{componentCls:tt}=Xe;return{[`
|
|
|
&${tt}-simple ${tt}-prev,
|
|
|
&${tt}-simple ${tt}-next
|
|
|
`]:{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`,verticalAlign:"top",[`${tt}-item-link`]:{height:Xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive},"&::after":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`}}},[`&${tt}-simple ${tt}-simple-pager`]:{display:"inline-block",height:Xe.itemSizeSM,marginInlineEnd:Xe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Xe.marginXS,padding:`0 ${Xe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Xe.itemInputBg,border:`${Xe.lineWidth}px ${Xe.lineType} ${Xe.colorBorder}`,borderRadius:Xe.borderRadius,outline:"none",transition:`border-color ${Xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Xe.colorPrimary},"&:focus":{borderColor:Xe.colorPrimaryHover,boxShadow:`${Xe.inputOutlineOffset}px 0 ${Xe.controlOutlineWidth}px ${Xe.controlOutline}`},"&[disabled]":{color:Xe.colorTextDisabled,backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,cursor:"not-allowed"}}}}},Yn=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-item-link-icon`]:{color:Xe.colorPrimary,fontSize:Xe.fontSizeSM,opacity:0,transition:`all ${Xe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${tt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Xe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Xe.motionDurationMid}`}},"&:hover":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{marginInlineEnd:Xe.marginXS},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-next,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,color:Xe.colorText,fontFamily:Xe.fontFamily,lineHeight:`${Xe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Xe.borderRadius,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`},[`${tt}-prev, ${tt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Xe.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Xe.lineWidth}px ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:"none",transition:`all ${Xe.motionDurationMid}`},[`&:hover ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:Xe.paginationSlashMarginInlineEnd,marginInlineStart:Xe.paginationSlashMarginInlineStart},[`${tt}-options`]:{display:"inline-block",marginInlineStart:Xe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Xe.controlHeight,marginInlineStart:Xe.marginXS,lineHeight:`${Xe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Bt.ik)(Xe)),{width:Xe.controlHeightLG*1.25,height:Xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Xe.marginXS,marginInlineEnd:Xe.marginXS})}}}},ni=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-item`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,marginInlineEnd:Xe.marginXS,fontFamily:Xe.fontFamily,lineHeight:`${Xe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Xe.lineWidth}px ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Xe.paginationItemPaddingInline}px`,color:Xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${tt}-item-active)`]:{"&:hover":{transition:`all ${Xe.motionDurationMid}`,backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive}},"&-active":{fontWeight:Xe.fontWeightStrong,backgroundColor:Xe.itemActiveBg,borderColor:Xe.colorPrimary,a:{color:Xe.colorPrimary},"&:hover":{borderColor:Xe.colorPrimaryHover},"&:hover a":{color:Xe.colorPrimaryHover}}}}},je=Xe=>{const{componentCls:tt}=Xe;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rn.Wf)(Xe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${tt}-total-text`]:{display:"inline-block",height:Xe.itemSize,marginInlineEnd:Xe.marginXS,lineHeight:`${Xe.itemSize-2}px`,verticalAlign:"middle"}}),ni(Xe)),Yn(Xe)),vt(Xe)),Rn(Xe)),nn(Xe)),{[`@media only screen and (max-width: ${Xe.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Xe.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${Xe.componentCls}-rtl`]:{direction:"rtl"}}},Me=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:Xe.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:Xe.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,a:{color:Xe.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:Xe.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,color:Xe.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder}}},[`${tt}:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:Xe.colorPrimaryHover,backgroundColor:Xe.itemBg},[`${tt}-item-link`]:{backgroundColor:Xe.itemLinkBg,borderColor:Xe.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,color:Xe.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:Xe.colorBorder,color:Xe.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:Xe.itemBg,border:`${Xe.lineWidth}px ${Xe.lineType} ${Xe.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,a:{color:Xe.colorPrimary}},"&-active":{borderColor:Xe.colorPrimary}}}}},xe=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,rn.Qy)(Xe)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,rn.oN)(Xe))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,rn.oN)(Xe))}}}};var Ne=(0,cn.Z)("Pagination",Xe=>{const tt=(0,Kn.TS)(Xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Xe.marginXXS/2,paginationMiniQuickJumperInputWidth:Xe.controlHeightLG*1.1,paginationItemPaddingInline:Xe.marginXXS*1.5,paginationEllipsisLetterSpacing:Xe.marginXXS/2,paginationSlashMarginInlineStart:Xe.marginXXS,paginationSlashMarginInlineEnd:Xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Bt.e5)(Xe),(0,Bt.TM)(Xe));return[je(tt),xe(tt),Xe.wireframe&&Me(tt)]},Xe=>({itemBg:Xe.colorBgContainer,itemSize:Xe.controlHeight,itemSizeSM:Xe.controlHeightSM,itemActiveBg:Xe.colorBgContainer,itemLinkBg:Xe.colorBgContainer,itemActiveColorDisabled:Xe.colorTextDisabled,itemActiveBgDisabled:Xe.controlItemBgActiveDisabled,itemInputBg:Xe.colorBgContainer,miniOptionsSizeChangerTop:0})),Be=function(Xe,tt){var wt={};for(var xt in Xe)Object.prototype.hasOwnProperty.call(Xe,xt)&&tt.indexOf(xt)<0&&(wt[xt]=Xe[xt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,xt=Object.getOwnPropertySymbols(Xe);ct<xt.length;ct++)tt.indexOf(xt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Xe,xt[ct])&&(wt[xt[ct]]=Xe[xt[ct]]);return wt},lt=Xe=>{const{prefixCls:tt,selectPrefixCls:wt,className:xt,rootClassName:ct,style:Ft,size:Pn,locale:mn,selectComponentClass:Jt,responsive:gn,showSizeChanger:Tn}=Xe,bt=Be(Xe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:_t}=(0,St.Z)(gn),{getPrefixCls:$t,direction:Dn,pagination:ii={}}=Re.useContext(Xt.E_),pi=$t("pagination",tt),[fi,wi]=Ne(pi),Vi=Tn!=null?Tn:ii.showSizeChanger,vr=Re.useMemo(()=>{const Ee=Re.createElement("span",{className:`${pi}-item-ellipsis`},"\u2022\u2022\u2022"),si=Re.createElement("button",{className:`${pi}-item-link`,type:"button",tabIndex:-1},Dn==="rtl"?Re.createElement(It.Z,null):Re.createElement(rt.Z,null)),yi=Re.createElement("button",{className:`${pi}-item-link`,type:"button",tabIndex:-1},Dn==="rtl"?Re.createElement(rt.Z,null):Re.createElement(It.Z,null)),or=Re.createElement("a",{className:`${pi}-item-link`},Re.createElement("div",{className:`${pi}-item-container`},Dn==="rtl"?Re.createElement(Pt.Z,{className:`${pi}-item-link-icon`}):Re.createElement(Tt,{className:`${pi}-item-link-icon`}),Ee)),xr=Re.createElement("a",{className:`${pi}-item-link`},Re.createElement("div",{className:`${pi}-item-container`},Dn==="rtl"?Re.createElement(Tt,{className:`${pi}-item-link-icon`}):Re.createElement(Pt.Z,{className:`${pi}-item-link-icon`}),Ee));return{prevIcon:si,nextIcon:yi,jumpPrevIcon:or,jumpNextIcon:xr}},[Dn,pi]),[cr]=(0,Ge.Z)("Pagination",jt.Z),pr=Object.assign(Object.assign({},cr),mn),_r=(0,Nn.Z)(Pn),Ir=_r==="small"||!!(_t&&!_r&&gn),$i=$t("select",wt),eo=Ct()({[`${pi}-mini`]:Ir,[`${pi}-rtl`]:Dn==="rtl"},ii==null?void 0:ii.className,xt,ct,wi),kr=Object.assign(Object.assign({},ii==null?void 0:ii.style),Ft);return fi(Re.createElement(Ht,Object.assign({},vr,bt,{style:kr,prefixCls:pi,selectPrefixCls:$i,className:eo,selectComponentClass:Jt||(Ir?Hn:_n),locale:pr,showSizeChanger:Vi})))},Et=lt},93948:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tn}});var be=ye(59301),Re=ye(29679),at=ye(40001),kt=ye(19248),Je=ye(99267),it=ye(92310),Te=ye.n(it),Tt=ye(2738),Pt=ye(36355),rt=ye(72308),It=ye(77321),gt=ye(74416),Ct={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Fe=function(){var _t=(0,be.useRef)([]),$t=(0,be.useRef)(null);return(0,be.useEffect)(function(){var Dn=Date.now(),ii=!1;_t.current.forEach(function(pi){if(pi){ii=!0;var fi=pi.style;fi.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&Dn-$t.current<100&&(fi.transitionDuration="0s, 0s")}}),ii&&($t.current=Date.now())}),_t.current},te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(_t){var $t=(0,It.Z)((0,It.Z)({},Ct),_t),Dn=$t.className,ii=$t.percent,pi=$t.prefixCls,fi=$t.strokeColor,wi=$t.strokeLinecap,Vi=$t.strokeWidth,vr=$t.style,cr=$t.trailColor,pr=$t.trailWidth,_r=$t.transition,Ir=(0,gt.Z)($t,te);delete Ir.gapPosition;var $i=Array.isArray(ii)?ii:[ii],eo=Array.isArray(fi)?fi:[fi],kr=Fe(),Ee=Vi/2,si=100-Vi/2,yi="M ".concat(wi==="round"?Ee:0,",").concat(Ee,`
|
|
|
L `).concat(wi==="round"?si:100,",").concat(Ee),or="0 0 100 ".concat(Vi),xr=0;return be.createElement("svg",(0,rt.Z)({className:Te()("".concat(pi,"-line"),Dn),viewBox:or,preserveAspectRatio:"none",style:vr},Ir),be.createElement("path",{className:"".concat(pi,"-line-trail"),d:yi,strokeLinecap:wi,stroke:cr,strokeWidth:pr||Vi,fillOpacity:"0"}),$i.map(function(qi,Qr){var mo=1;switch(wi){case"round":mo=1-Vi/100;break;case"square":mo=1-Vi/2/100;break;default:mo=1;break}var zr={strokeDasharray:"".concat(qi*mo,"px, 100px"),strokeDashoffset:"-".concat(xr,"px"),transition:_r||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},on=eo[Qr]||eo[eo.length-1];return xr+=qi,be.createElement("path",{key:Qr,className:"".concat(pi,"-line-path"),d:yi,strokeLinecap:wi,stroke:on,strokeWidth:Vi,fillOpacity:"0",ref:function(Qe){kr[Qr]=Qe},style:zr})}))},he=ne,se=ye(62853),ge=ye(52487),me=ye(47273),Pe=0,ke=(0,me.Z)();function we(){var bt;return ke?(bt=Pe,Pe+=1):bt="TEST_OR_SSR",bt}var Oe=function(bt){var _t=be.useState(),$t=(0,ge.Z)(_t,2),Dn=$t[0],ii=$t[1];return be.useEffect(function(){ii("rc_progress_".concat(we()))},[]),bt||Dn},He=function(_t){var $t=_t.bg,Dn=_t.children;return be.createElement("div",{style:{width:"100%",height:"100%",background:$t}},Dn)};function We(bt,_t){return Object.keys(bt).map(function($t){var Dn=parseFloat($t),ii="".concat(Math.floor(Dn*_t),"%");return"".concat(bt[$t]," ").concat(ii)})}var Ve=be.forwardRef(function(bt,_t){var $t=bt.prefixCls,Dn=bt.color,ii=bt.gradientId,pi=bt.radius,fi=bt.style,wi=bt.ptg,Vi=bt.strokeLinecap,vr=bt.strokeWidth,cr=bt.size,pr=bt.gapDegree,_r=Dn&&(0,se.Z)(Dn)==="object",Ir=_r?"#FFF":void 0,$i=cr/2,eo=be.createElement("circle",{className:"".concat($t,"-circle-path"),r:pi,cx:$i,cy:$i,stroke:Ir,strokeLinecap:Vi,strokeWidth:vr,opacity:wi===0?0:1,style:fi,ref:_t});if(!_r)return eo;var kr="".concat(ii,"-conic"),Ee=pr?"".concat(180+pr/2,"deg"):"0deg",si=We(Dn,(360-pr)/360),yi=We(Dn,1),or="conic-gradient(from ".concat(Ee,", ").concat(si.join(", "),")"),xr="linear-gradient(to ".concat(pr?"bottom":"top",", ").concat(yi.join(", "),")");return be.createElement(be.Fragment,null,be.createElement("mask",{id:kr},eo),be.createElement("foreignObject",{x:0,y:0,width:cr,height:cr,mask:"url(#".concat(kr,")")},be.createElement(He,{bg:xr},be.createElement(He,{bg:or}))))}),ut=Ve,Ke=100,Wt=function(_t,$t,Dn,ii,pi,fi,wi,Vi,vr,cr){var pr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,_r=Dn/100*360*((360-fi)/360),Ir=fi===0?0:{bottom:0,top:180,left:90,right:-90}[wi],$i=(100-ii)/100*$t;vr==="round"&&ii!==100&&($i+=cr/2,$i>=$t&&($i=$t-.01));var eo=Ke/2;return{stroke:typeof Vi=="string"?Vi:void 0,strokeDasharray:"".concat($t,"px ").concat(_t),strokeDashoffset:$i+pr,transform:"rotate(".concat(pi+_r+Ir,"deg)"),transformOrigin:"".concat(eo,"px ").concat(eo,"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}},pt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ut(bt){var _t=bt!=null?bt:[];return Array.isArray(_t)?_t:[_t]}var Ht=function(_t){var $t=(0,It.Z)((0,It.Z)({},Ct),_t),Dn=$t.id,ii=$t.prefixCls,pi=$t.steps,fi=$t.strokeWidth,wi=$t.trailWidth,Vi=$t.gapDegree,vr=Vi===void 0?0:Vi,cr=$t.gapPosition,pr=$t.trailColor,_r=$t.strokeLinecap,Ir=$t.style,$i=$t.className,eo=$t.strokeColor,kr=$t.percent,Ee=(0,gt.Z)($t,pt),si=Ke/2,yi=Oe(Dn),or="".concat(yi,"-gradient"),xr=si-fi/2,qi=Math.PI*2*xr,Qr=vr>0?90+vr/2:-90,mo=qi*((360-vr)/360),zr=(0,se.Z)(pi)==="object"?pi:{count:pi,space:2},on=zr.count,Yt=zr.space,Qe=Ut(kr),un=Ut(eo),In=un.find(function(dt){return dt&&(0,se.Z)(dt)==="object"}),Mt=In&&(0,se.Z)(In)==="object",ft=Mt?"butt":_r,fn=Wt(qi,mo,0,100,Qr,vr,cr,pr,ft,fi),Vn=Fe(),bi=function(){var Fn=0;return Qe.map(function(ui,ji){var dn=un[ji]||un[un.length-1],vn=Wt(qi,mo,Fn,ui,Qr,vr,cr,dn,ft,fi);return Fn+=ui,be.createElement(ut,{key:ji,color:dn,ptg:ui,radius:xr,prefixCls:ii,gradientId:or,style:vn,strokeLinecap:ft,strokeWidth:fi,gapDegree:vr,ref:function(tn){Vn[ji]=tn},size:Ke})}).reverse()},gi=function(){var Fn=Math.round(on*(Qe[0]/100)),ui=100/on,ji=0;return new Array(on).fill(null).map(function(dn,vn){var Rt=vn<=Fn-1?un[0]:pr,tn=Rt&&(0,se.Z)(Rt)==="object"?"url(#".concat(or,")"):void 0,yn=Wt(qi,mo,ji,ui,Qr,vr,cr,Rt,"butt",fi,Yt);return ji+=(mo-yn.strokeDashoffset+Yt)*100/mo,be.createElement("circle",{key:vn,className:"".concat(ii,"-circle-path"),r:xr,cx:si,cy:si,stroke:tn,strokeWidth:fi,opacity:1,style:yn,ref:function(Mn){Vn[vn]=Mn}})})};return be.createElement("svg",(0,rt.Z)({className:Te()("".concat(ii,"-circle"),$i),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:Ir,id:Dn,role:"presentation"},Ee),!on&&be.createElement("circle",{className:"".concat(ii,"-circle-trail"),r:xr,cx:si,cy:si,stroke:pr,strokeLinecap:ft,strokeWidth:wi||fi,style:fn}),on?gi():bi())},jt=Ht,Xt={Line:he,Circle:jt},Nn=ye(6848),St=ye(93398);function Ge(bt){return!bt||bt<0?0:bt>100?100:bt}function en(bt){let{success:_t,successPercent:$t}=bt,Dn=$t;return _t&&"progress"in _t&&(Dn=_t.progress),_t&&"percent"in _t&&(Dn=_t.percent),Dn}const Hn=bt=>{let{percent:_t,success:$t,successPercent:Dn}=bt;const ii=Ge(en({success:$t,successPercent:Dn}));return[ii,Ge(Ge(_t)-ii)]},_n=bt=>{let{success:_t={},strokeColor:$t}=bt;const{strokeColor:Dn}=_t;return[Dn||St.presetPrimaryColors.green,$t||null]},Bt=(bt,_t,$t)=>{var Dn,ii,pi,fi;let wi=-1,Vi=-1;if(_t==="step"){const vr=$t.steps,cr=$t.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?(wi=bt==="small"?2:14,Vi=cr!=null?cr:8):typeof bt=="number"?[wi,Vi]=[bt,bt]:[wi=14,Vi=8]=bt,wi*=vr}else if(_t==="line"){const vr=$t==null?void 0:$t.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?Vi=vr||(bt==="small"?6:8):typeof bt=="number"?[wi,Vi]=[bt,bt]:[wi=-1,Vi=8]=bt}else(_t==="circle"||_t==="dashboard")&&(typeof bt=="string"||typeof bt=="undefined"?[wi,Vi]=bt==="small"?[60,60]:[120,120]:typeof bt=="number"?[wi,Vi]=[bt,bt]:(wi=(ii=(Dn=bt[0])!==null&&Dn!==void 0?Dn:bt[1])!==null&&ii!==void 0?ii:120,Vi=(fi=(pi=bt[0])!==null&&pi!==void 0?pi:bt[1])!==null&&fi!==void 0?fi:120));return[wi,Vi]},rn=3,cn=bt=>rn/bt*100;var nn=bt=>{const{prefixCls:_t,trailColor:$t=null,strokeLinecap:Dn="round",gapPosition:ii,gapDegree:pi,width:fi=120,type:wi,children:Vi,success:vr,size:cr=fi}=bt,[pr,_r]=Bt(cr,"circle");let{strokeWidth:Ir}=bt;Ir===void 0&&(Ir=Math.max(cn(pr),6));const $i={width:pr,height:_r,fontSize:pr*.15+6},eo=be.useMemo(()=>{if(pi||pi===0)return pi;if(wi==="dashboard")return 75},[pi,wi]),kr=ii||wi==="dashboard"&&"bottom"||void 0,Ee=Object.prototype.toString.call(bt.strokeColor)==="[object Object]",si=_n({success:vr,strokeColor:bt.strokeColor}),yi=Te()(`${_t}-inner`,{[`${_t}-circle-gradient`]:Ee}),or=be.createElement(jt,{percent:Hn(bt),strokeWidth:Ir,trailWidth:Ir,strokeColor:si,strokeLinecap:Dn,trailColor:$t,prefixCls:_t,gapDegree:eo,gapPosition:kr});return be.createElement("div",{className:yi,style:$i},pr<=20?be.createElement(Nn.Z,{title:Vi},be.createElement("span",null,or)):be.createElement(be.Fragment,null,or,Vi))},Rn=function(bt,_t){var $t={};for(var Dn in bt)Object.prototype.hasOwnProperty.call(bt,Dn)&&_t.indexOf(Dn)<0&&($t[Dn]=bt[Dn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Dn=Object.getOwnPropertySymbols(bt);ii<Dn.length;ii++)_t.indexOf(Dn[ii])<0&&Object.prototype.propertyIsEnumerable.call(bt,Dn[ii])&&($t[Dn[ii]]=bt[Dn[ii]]);return $t};const vt=bt=>{let _t=[];return Object.keys(bt).forEach($t=>{const Dn=parseFloat($t.replace(/%/g,""));isNaN(Dn)||_t.push({key:Dn,value:bt[$t]})}),_t=_t.sort(($t,Dn)=>$t.key-Dn.key),_t.map($t=>{let{key:Dn,value:ii}=$t;return`${ii} ${Dn}%`}).join(", ")},Yn=(bt,_t)=>{const{from:$t=St.presetPrimaryColors.blue,to:Dn=St.presetPrimaryColors.blue,direction:ii=_t==="rtl"?"to left":"to right"}=bt,pi=Rn(bt,["from","to","direction"]);if(Object.keys(pi).length!==0){const fi=vt(pi);return{backgroundImage:`linear-gradient(${ii}, ${fi})`}}return{backgroundImage:`linear-gradient(${ii}, ${$t}, ${Dn})`}};var je=bt=>{const{prefixCls:_t,direction:$t,percent:Dn,size:ii,strokeWidth:pi,strokeColor:fi,strokeLinecap:wi="round",children:Vi,trailColor:vr=null,success:cr}=bt,pr=fi&&typeof fi!="string"?Yn(fi,$t):{backgroundColor:fi},_r=wi==="square"||wi==="butt"?0:void 0,Ir={backgroundColor:vr||void 0,borderRadius:_r},$i=ii!=null?ii:[-1,pi||(ii==="small"?6:8)],[eo,kr]=Bt($i,"line",{strokeWidth:pi}),Ee=Object.assign({width:`${Ge(Dn)}%`,height:kr,borderRadius:_r},pr),si=en(bt),yi={width:`${Ge(si)}%`,height:kr,borderRadius:_r,backgroundColor:cr==null?void 0:cr.strokeColor},or={width:eo<0?"100%":eo,height:kr};return be.createElement(be.Fragment,null,be.createElement("div",{className:`${_t}-outer`,style:or},be.createElement("div",{className:`${_t}-inner`,style:Ir},be.createElement("div",{className:`${_t}-bg`,style:Ee}),si!==void 0?be.createElement("div",{className:`${_t}-success-bg`,style:yi}):null)),Vi)},xe=bt=>{const{size:_t,steps:$t,percent:Dn=0,strokeWidth:ii=8,strokeColor:pi,trailColor:fi=null,prefixCls:wi,children:Vi}=bt,vr=Math.round($t*(Dn/100)),cr=_t==="small"?2:14,pr=_t!=null?_t:[cr,ii],[_r,Ir]=Bt(pr,"step",{steps:$t,strokeWidth:ii}),$i=_r/$t,eo=new Array($t);for(let kr=0;kr<$t;kr++){const Ee=Array.isArray(pi)?pi[kr]:pi;eo[kr]=be.createElement("div",{key:kr,className:Te()(`${wi}-steps-item`,{[`${wi}-steps-item-active`]:kr<=vr-1}),style:{backgroundColor:kr<=vr-1?Ee:fi,width:$i,height:Ir}})}return be.createElement("div",{className:`${wi}-steps-outer`},eo,Vi)},Ne=ye(93083),Be=ye(17313),Se=ye(83116),lt=ye(37613);const Et=bt=>{const _t=bt?"100%":"-100%";return new Ne.Keyframes(`antProgress${bt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${_t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${_t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Xe=bt=>{const{componentCls:_t,iconCls:$t}=bt;return{[_t]:Object.assign(Object.assign({},(0,Be.Wf)(bt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:bt.fontSize,marginInlineEnd:bt.marginXS,marginBottom:bt.marginXS},[`${_t}-outer`]:{display:"inline-block",width:"100%"},[`&${_t}-show-info`]:{[`${_t}-outer`]:{marginInlineEnd:`calc(-2em - ${bt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${bt.paddingXS}px)`}},[`${_t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:bt.remainingColor,borderRadius:bt.lineBorderRadius},[`${_t}-inner:not(${_t}-circle-gradient)`]:{[`${_t}-circle-path`]:{stroke:bt.defaultColor}},[`${_t}-success-bg, ${_t}-bg`]:{position:"relative",backgroundColor:bt.defaultColor,borderRadius:bt.lineBorderRadius,transition:`all ${bt.motionDurationSlow} ${bt.motionEaseInOutCirc}`},[`${_t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:bt.colorSuccess},[`${_t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:bt.marginXS,color:bt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$t]:{fontSize:bt.fontSize}},[`&${_t}-status-active`]:{[`${_t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:bt.colorBgContainer,borderRadius:bt.lineBorderRadius,opacity:0,animationName:Et(),animationDuration:bt.progressActiveMotionDuration,animationTimingFunction:bt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${_t}-rtl${_t}-status-active`]:{[`${_t}-bg::before`]:{animationName:Et(!0)}},[`&${_t}-status-exception`]:{[`${_t}-bg`]:{backgroundColor:bt.colorError},[`${_t}-text`]:{color:bt.colorError}},[`&${_t}-status-exception ${_t}-inner:not(${_t}-circle-gradient)`]:{[`${_t}-circle-path`]:{stroke:bt.colorError}},[`&${_t}-status-success`]:{[`${_t}-bg`]:{backgroundColor:bt.colorSuccess},[`${_t}-text`]:{color:bt.colorSuccess}},[`&${_t}-status-success ${_t}-inner:not(${_t}-circle-gradient)`]:{[`${_t}-circle-path`]:{stroke:bt.colorSuccess}}})}},tt=bt=>{const{componentCls:_t,iconCls:$t}=bt;return{[_t]:{[`${_t}-circle-trail`]:{stroke:bt.remainingColor},[`&${_t}-circle ${_t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${_t}-circle ${_t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:bt.circleTextColor,fontSize:bt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$t]:{fontSize:`${bt.fontSize/bt.fontSizeSM}em`}},[`${_t}-circle&-status-exception`]:{[`${_t}-text`]:{color:bt.colorError}},[`${_t}-circle&-status-success`]:{[`${_t}-text`]:{color:bt.colorSuccess}}},[`${_t}-inline-circle`]:{lineHeight:1,[`${_t}-inner`]:{verticalAlign:"bottom"}}}},wt=bt=>{const{componentCls:_t}=bt;return{[_t]:{[`${_t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:bt.progressStepMinWidth,marginInlineEnd:bt.progressStepMarginInlineEnd,backgroundColor:bt.remainingColor,transition:`all ${bt.motionDurationSlow}`,"&-active":{backgroundColor:bt.defaultColor}}}}}},xt=bt=>{const{componentCls:_t,iconCls:$t}=bt;return{[_t]:{[`${_t}-small&-line, ${_t}-small&-line ${_t}-text ${$t}`]:{fontSize:bt.fontSizeSM}}}};var ct=(0,Se.Z)("Progress",bt=>{const _t=bt.marginXXS/2,$t=(0,lt.TS)(bt,{progressStepMarginInlineEnd:_t,progressStepMinWidth:_t,progressActiveMotionDuration:"2.4s"});return[Xe($t),tt($t),wt($t),xt($t)]},bt=>({circleTextColor:bt.colorText,defaultColor:bt.colorInfo,remainingColor:bt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ft=function(bt,_t){var $t={};for(var Dn in bt)Object.prototype.hasOwnProperty.call(bt,Dn)&&_t.indexOf(Dn)<0&&($t[Dn]=bt[Dn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Dn=Object.getOwnPropertySymbols(bt);ii<Dn.length;ii++)_t.indexOf(Dn[ii])<0&&Object.prototype.propertyIsEnumerable.call(bt,Dn[ii])&&($t[Dn[ii]]=bt[Dn[ii]]);return $t};const Pn=null,mn=["normal","exception","active","success"];var gn=be.forwardRef((bt,_t)=>{const{prefixCls:$t,className:Dn,rootClassName:ii,steps:pi,strokeColor:fi,percent:wi=0,size:Vi="default",showInfo:vr=!0,type:cr="line",status:pr,format:_r,style:Ir}=bt,$i=Ft(bt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),eo=be.useMemo(()=>{var Qe,un;const In=en(bt);return parseInt(In!==void 0?(Qe=In!=null?In:0)===null||Qe===void 0?void 0:Qe.toString():(un=wi!=null?wi:0)===null||un===void 0?void 0:un.toString(),10)},[wi,bt.success,bt.successPercent]),kr=be.useMemo(()=>!mn.includes(pr)&&eo>=100?"success":pr||"normal",[pr,eo]),{getPrefixCls:Ee,direction:si,progress:yi}=be.useContext(Pt.E_),or=Ee("progress",$t),[xr,qi]=ct(or),Qr=be.useMemo(()=>{if(!vr)return null;const Qe=en(bt);let un;const In=_r||(ft=>`${ft}%`),Mt=cr==="line";return _r||kr!=="exception"&&kr!=="success"?un=In(Ge(wi),Ge(Qe)):kr==="exception"?un=Mt?be.createElement(kt.Z,null):be.createElement(Je.Z,null):kr==="success"&&(un=Mt?be.createElement(Re.Z,null):be.createElement(at.Z,null)),be.createElement("span",{className:`${or}-text`,title:typeof un=="string"?un:void 0},un)},[vr,wi,eo,kr,cr,or,_r]),mo=Array.isArray(fi)?fi[0]:fi,zr=typeof fi=="string"||Array.isArray(fi)?fi:void 0;let on;cr==="line"?on=pi?be.createElement(xe,Object.assign({},bt,{strokeColor:zr,prefixCls:or,steps:pi}),Qr):be.createElement(je,Object.assign({},bt,{strokeColor:mo,prefixCls:or,direction:si}),Qr):(cr==="circle"||cr==="dashboard")&&(on=be.createElement(nn,Object.assign({},bt,{strokeColor:mo,prefixCls:or,progressStatus:kr}),Qr));const Yt=Te()(or,`${or}-status-${kr}`,`${or}-${cr==="dashboard"&&"circle"||pi&&"steps"||cr}`,{[`${or}-inline-circle`]:cr==="circle"&&Bt(Vi,"circle")[0]<=20,[`${or}-show-info`]:vr,[`${or}-${Vi}`]:typeof Vi=="string",[`${or}-rtl`]:si==="rtl"},yi==null?void 0:yi.className,Dn,ii,qi);return xr(be.createElement("div",Object.assign({ref:_t,style:Object.assign(Object.assign({},yi==null?void 0:yi.style),Ir),className:Yt,role:"progressbar","aria-valuenow":eo},(0,Tt.Z)($i,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),on))}),Tn=gn},57809:function(On,xn,ye){"use strict";var be=ye(92310),Re=ye.n(be),at=ye(77861),kt=ye(2738),Je=ye(59301),it=ye(53487),Te=ye(62892),Tt=ye(19080),Pt=ye(36355),rt=ye(1684),It=ye(93891),gt=ye(19716),Ct=ye(32441),Fe=ye(33234),te=ye(14154),ne=ye(58582),he=ye(84443),se=ye(66339),ge=function(Oe,He){var We={};for(var Ve in Oe)Object.prototype.hasOwnProperty.call(Oe,Ve)&&He.indexOf(Ve)<0&&(We[Ve]=Oe[Ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ve=Object.getOwnPropertySymbols(Oe);ut<Ve.length;ut++)He.indexOf(Ve[ut])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ve[ut])&&(We[Ve[ut]]=Oe[Ve[ut]]);return We};const me="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pe=(Oe,He)=>{var We,{prefixCls:Ve,bordered:ut=!0,className:Ke,rootClassName:Wt,getPopupContainer:pt,popupClassName:Ut,dropdownClassName:Ht,listHeight:jt=256,placement:Xt,listItemHeight:Nn=24,size:St,disabled:Ge,notFoundContent:en,status:Hn,builtinPlacements:_n,dropdownMatchSelectWidth:Bt,popupMatchSelectWidth:rn,direction:cn,style:Kn,allowClear:nn}=Oe,Rn=ge(Oe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:vt,getPrefixCls:Yn,renderEmpty:ni,direction:je,virtual:Me,popupMatchSelectWidth:xe,popupOverflow:Ne,select:Be}=Je.useContext(Pt.E_),Se=Yn("select",Ve),lt=Yn(),Et=cn!=null?cn:je,{compactSize:Xe,compactItemClassnames:tt}=(0,Fe.ri)(Se,Et),[wt,xt]=(0,te.Z)(Se),ct=Je.useMemo(()=>{const{mode:kr}=Rn;if(kr!=="combobox")return kr===me?"combobox":kr},[Rn.mode]),Ft=ct==="multiple"||ct==="tags",Pn=(0,he.Z)(Rn.suffixIcon,Rn.showArrow),mn=(We=rn!=null?rn:Bt)!==null&&We!==void 0?We:xe,{status:Jt,hasFeedback:gn,isFormItemInput:Tn,feedbackIcon:bt}=Je.useContext(Ct.aM),_t=(0,Tt.F)(Jt,Hn);let $t;en!==void 0?$t=en:ct==="combobox"?$t=null:$t=(ni==null?void 0:ni("Select"))||Je.createElement(It.Z,{componentName:"Select"});const{suffixIcon:Dn,itemIcon:ii,removeIcon:pi,clearIcon:fi}=(0,se.Z)(Object.assign(Object.assign({},Rn),{multiple:Ft,hasFeedback:gn,feedbackIcon:bt,showSuffixIcon:Pn,prefixCls:Se,showArrow:Rn.showArrow,componentName:"Select"})),wi=nn===!0?{clearIcon:fi}:nn,Vi=(0,kt.Z)(Rn,["suffixIcon","itemIcon"]),vr=Re()(Ut||Ht,{[`${Se}-dropdown-${Et}`]:Et==="rtl"},Wt,xt),cr=(0,gt.Z)(kr=>{var Ee;return(Ee=St!=null?St:Xe)!==null&&Ee!==void 0?Ee:kr}),pr=Je.useContext(rt.Z),_r=Ge!=null?Ge:pr,Ir=Re()({[`${Se}-lg`]:cr==="large",[`${Se}-sm`]:cr==="small",[`${Se}-rtl`]:Et==="rtl",[`${Se}-borderless`]:!ut,[`${Se}-in-form-item`]:Tn},(0,Tt.Z)(Se,_t,gn),tt,Be==null?void 0:Be.className,Ke,Wt,xt),$i=Je.useMemo(()=>Xt!==void 0?Xt:Et==="rtl"?"bottomRight":"bottomLeft",[Xt,Et]),eo=(0,ne.Z)(_n,Ne);return wt(Je.createElement(at.ZP,Object.assign({ref:He,virtual:Me,showSearch:Be==null?void 0:Be.showSearch},Vi,{style:Object.assign(Object.assign({},Be==null?void 0:Be.style),Kn),dropdownMatchSelectWidth:mn,builtinPlacements:eo,transitionName:(0,Te.m)(lt,"slide-up",Rn.transitionName),listHeight:jt,listItemHeight:Nn,mode:ct,prefixCls:Se,placement:$i,direction:Et,suffixIcon:Dn,menuItemSelectedIcon:ii,removeIcon:pi,allowClear:wi,notFoundContent:$t,className:Ir,getPopupContainer:pt||vt,dropdownClassName:vr,disabled:_r})))},ke=Je.forwardRef(Pe),we=(0,it.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=me,ke.Option=at.Wx,ke.OptGroup=at.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=we,xn.default=ke},14154:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return ke}});var be=ye(17313),Re=ye(74207),at=ye(37613),kt=ye(83116),Je=ye(13826),it=ye(92899);const Te=we=>{const{optionHeight:Oe,optionFontSize:He,optionLineHeight:We,optionPadding:Ve}=we;return{position:"relative",display:"block",minHeight:Oe,padding:Ve,color:we.colorText,fontWeight:"normal",fontSize:He,lineHeight:We,boxSizing:"border-box"}};var Pt=we=>{const{antCls:Oe,componentCls:He}=we,We=`${He}-item`,Ve=`&${Oe}-slide-up-enter${Oe}-slide-up-enter-active`,ut=`&${Oe}-slide-up-appear${Oe}-slide-up-appear-active`,Ke=`&${Oe}-slide-up-leave${Oe}-slide-up-leave-active`,Wt=`${He}-dropdown-placement-`;return[{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,be.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[`
|
|
|
${Ve}${Wt}bottomLeft,
|
|
|
${ut}${Wt}bottomLeft
|
|
|
`]:{animationName:Je.fJ},[`
|
|
|
${Ve}${Wt}topLeft,
|
|
|
${ut}${Wt}topLeft,
|
|
|
${Ve}${Wt}topRight,
|
|
|
${ut}${Wt}topRight
|
|
|
`]:{animationName:Je.Qt},[`${Ke}${Wt}bottomLeft`]:{animationName:Je.Uw},[`
|
|
|
${Ke}${Wt}topLeft,
|
|
|
${Ke}${Wt}topRight
|
|
|
`]:{animationName:Je.ly},"&-hidden":{display:"none"},[`${We}`]:Object.assign(Object.assign({},Te(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},be.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${We}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${We}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${We}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${We}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Je.oN)(we,"slide-up"),(0,Je.oN)(we,"slide-down"),(0,it.Fm)(we,"move-up"),(0,it.Fm)(we,"move-down")]};const rt=2,It=we=>{let{controlHeightSM:Oe,controlHeight:He,lineWidth:We}=we;const Ve=(He-Oe)/2-We,ut=Math.ceil(Ve/2);return[Ve,ut]};function gt(we,Oe){const{componentCls:He,iconCls:We}=we,Ve=`${He}-selection-overflow`,ut=we.multipleSelectItemHeight,[Ke]=It(we),Wt=Oe?`${He}-${Oe}`:"";return{[`${He}-multiple${Wt}`]:{fontSize:we.fontSize,[Ve]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${He}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ke-rt}px ${rt*2}px`,borderRadius:we.borderRadius,[`${He}-show-search&`]:{cursor:"text"},[`${He}-disabled&`]:{background:we.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${rt}px 0`,lineHeight:`${ut}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${He}-show-arrow ${He}-selector,
|
|
|
&${He}-allow-clear ${He}-selector
|
|
|
`]:{paddingInlineEnd:we.fontSizeIcon+we.controlPaddingHorizontal},[`${He}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ut,marginTop:rt,marginBottom:rt,lineHeight:`${ut-we.lineWidth*2}px`,background:we.multipleItemBg,border:`${we.lineWidth}px ${we.lineType} ${we.multipleItemBorderColor}`,borderRadius:we.borderRadiusSM,cursor:"default",transition:`font-size ${we.motionDurationSlow}, line-height ${we.motionDurationSlow}, height ${we.motionDurationSlow}`,userSelect:"none",marginInlineEnd:rt*2,paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS/2,[`${He}-disabled&`]:{color:we.multipleItemColorDisabled,borderColor:we.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:we.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,be.Ro)()),{display:"inline-flex",alignItems:"center",color:we.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${We}`]:{verticalAlign:"-0.2em"},"&:hover":{color:we.colorIconHover}})},[`${Ve}-item + ${Ve}-item`]:{[`${He}-selection-search`]:{marginInlineStart:0}},[`${He}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:we.inputPaddingHorizontalBase-Ke,"\n &-input,\n &-mirror\n ":{height:ut,fontFamily:we.fontFamily,lineHeight:`${ut}px`,transition:`all ${we.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${He}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:we.inputPaddingHorizontalBase,insetInlineEnd:we.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${we.motionDurationSlow}`}}}}var Fe=we=>{const{componentCls:Oe}=we,He=(0,at.TS)(we,{controlHeight:we.controlHeightSM,multipleSelectItemHeight:we.controlHeightXS,borderRadius:we.borderRadiusSM,borderRadiusSM:we.borderRadiusXS}),We=(0,at.TS)(we,{fontSize:we.fontSizeLG,controlHeight:we.controlHeightLG,multipleSelectItemHeight:we.multipleItemHeightLG,borderRadius:we.borderRadiusLG,borderRadiusSM:we.borderRadius}),[,Ve]=It(we);return[gt(we),gt(He,"sm"),{[`${Oe}-multiple${Oe}-sm`]:{[`${Oe}-selection-placeholder`]:{insetInline:we.controlPaddingHorizontalSM-we.lineWidth},[`${Oe}-selection-search`]:{marginInlineStart:Ve}}},gt(We,"lg")]};function te(we,Oe){const{componentCls:He,inputPaddingHorizontalBase:We,borderRadius:Ve}=we,ut=we.controlHeight-we.lineWidth*2,Ke=Math.ceil(we.fontSize*1.25),Wt=Oe?`${He}-${Oe}`:"";return{[`${He}-single${Wt}`]:{fontSize:we.fontSize,[`${He}-selector`]:Object.assign(Object.assign({},(0,be.Wf)(we)),{display:"flex",borderRadius:Ve,[`${He}-selection-search`]:{position:"absolute",top:0,insetInlineStart:We,insetInlineEnd:We,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${He}-selection-item,
|
|
|
${He}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ut}px`,transition:`all ${we.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ut}px`}},[`${He}-selection-item`]:{position:"relative",userSelect:"none"},[`${He}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${He}-selection-item:after`,`${He}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${He}-show-arrow ${He}-selection-item,
|
|
|
&${He}-show-arrow ${He}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ke},[`&${He}-open ${He}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${He}-customize-input)`]:{[`${He}-selector`]:{width:"100%",height:we.controlHeight,padding:`0 ${We}px`,[`${He}-selection-search-input`]:{height:ut},"&:after":{lineHeight:`${ut}px`}}},[`&${He}-customize-input`]:{[`${He}-selector`]:{"&:after":{display:"none"},[`${He}-selection-search`]:{position:"static",width:"100%"},[`${He}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${We}px`,"&:after":{display:"none"}}}}}}}function ne(we){const{componentCls:Oe}=we,He=we.controlPaddingHorizontalSM-we.lineWidth;return[te(we),te((0,at.TS)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Oe}-single${Oe}-sm`]:{[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selection-search`]:{insetInlineStart:He,insetInlineEnd:He},[`${Oe}-selector`]:{padding:`0 ${He}px`},[`&${Oe}-show-arrow ${Oe}-selection-search`]:{insetInlineEnd:He+we.fontSize*1.5},[`
|
|
|
&${Oe}-show-arrow ${Oe}-selection-item,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:we.fontSize*1.5}}}},te((0,at.TS)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const he=we=>{const{componentCls:Oe,selectorBg:He}=we;return{position:"relative",backgroundColor:He,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Oe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Oe}-disabled&`]:{color:we.colorTextDisabled,background:we.colorBgContainerDisabled,cursor:"not-allowed",[`${Oe}-multiple&`]:{background:we.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(we,Oe){let He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:We,borderHoverColor:Ve,outlineColor:ut,antCls:Ke}=Oe,Wt=He?{[`${We}-selector`]:{borderColor:Ve}}:{};return{[we]:{[`&:not(${We}-disabled):not(${We}-customize-input):not(${Ke}-pagination-size-changer)`]:Object.assign(Object.assign({},Wt),{[`${We}-focused& ${We}-selector`]:{borderColor:Ve,boxShadow:`0 0 0 ${Oe.controlOutlineWidth}px ${ut}`,outline:0},[`&:hover ${We}-selector`]:{borderColor:Ve}})}}},ge=we=>{const{componentCls:Oe}=we;return{[`${Oe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},me=we=>{const{componentCls:Oe,inputPaddingHorizontalBase:He,iconCls:We}=we;return{[Oe]:Object.assign(Object.assign({},(0,be.Wf)(we)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Oe}-customize-input) ${Oe}-selector`]:Object.assign(Object.assign({},he(we)),ge(we)),[`${Oe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},be.vS),[`${Oe}-selection-placeholder`]:Object.assign(Object.assign({},be.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Oe}-arrow`]:Object.assign(Object.assign({},(0,be.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:He,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[We]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Oe}-suffix)`]:{pointerEvents:"auto"}},[`${Oe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Oe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:He,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:we.clearBg,cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},"&:hover":{[`${Oe}-clear`]:{opacity:1}}}),[`${Oe}-has-feedback`]:{[`${Oe}-clear`]:{insetInlineEnd:He+we.fontSize+we.paddingXS}}}},Pe=we=>{const{componentCls:Oe}=we;return[{[Oe]:{[`&-borderless ${Oe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Oe}-in-form-item`]:{width:"100%"}}},me(we),ne(we),Fe(we),Pt(we),{[`${Oe}-rtl`]:{direction:"rtl"}},se(Oe,(0,at.TS)(we,{borderHoverColor:we.colorPrimaryHover,outlineColor:we.controlOutline})),se(`${Oe}-status-error`,(0,at.TS)(we,{borderHoverColor:we.colorErrorHover,outlineColor:we.colorErrorOutline}),!0),se(`${Oe}-status-warning`,(0,at.TS)(we,{borderHoverColor:we.colorWarningHover,outlineColor:we.colorWarningOutline}),!0),(0,Re.c)(we,{borderElCls:`${Oe}-selector`,focusElCls:`${Oe}-focused`})]};var ke=(0,kt.Z)("Select",(we,Oe)=>{let{rootPrefixCls:He}=Oe;const We=(0,at.TS)(we,{rootPrefixCls:He,inputPaddingHorizontalBase:we.paddingSM-1,multipleSelectItemHeight:we.multipleItemHeight});return[Pe(We)]},we=>{const{fontSize:Oe,lineHeight:He,controlHeight:We,controlPaddingHorizontal:Ve,zIndexPopupBase:ut,colorText:Ke,fontWeightStrong:Wt,controlItemBgActive:pt,controlItemBgHover:Ut,colorBgContainer:Ht,colorFillSecondary:jt,controlHeightLG:Xt,controlHeightSM:Nn,colorBgContainerDisabled:St,colorTextDisabled:Ge}=we;return{zIndexPopup:ut+50,optionSelectedColor:Ke,optionSelectedFontWeight:Wt,optionSelectedBg:pt,optionActiveBg:Ut,optionPadding:`${(We-Oe*He)/2}px ${Ve}px`,optionFontSize:Oe,optionLineHeight:He,optionHeight:We,selectorBg:Ht,clearBg:Ht,singleItemHeightLG:Xt,multipleItemBg:jt,multipleItemBorderColor:"transparent",multipleItemHeight:Nn,multipleItemHeightLG:We,multipleSelectorBgDisabled:St,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:"transparent"}})},58582:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Re}});const be=at=>{const Je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:at==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Je),{points:["br","tr"],offset:[0,-4]})}};function Re(at,kt){return at||be(kt)}},84443:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return be}});function be(Re,at){return at!==void 0?at:Re!==null}},66339:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});var be=ye(40001),Re=ye(19248),at=ye(99267),kt=ye(84105),Je=ye(58617),it=ye(47472),Te=ye(59301);function Tt(Pt){let{suffixIcon:rt,clearIcon:It,menuItemSelectedIcon:gt,removeIcon:Ct,loading:Fe,multiple:te,hasFeedback:ne,prefixCls:he,showSuffixIcon:se,feedbackIcon:ge,showArrow:me,componentName:Pe}=Pt;const ke=It!=null?It:Te.createElement(Re.Z,null),we=Ve=>rt===null&&!ne&&!me?null:Te.createElement(Te.Fragment,null,se!==!1&&Ve,ne&&ge);let Oe=null;if(rt!==void 0)Oe=we(rt);else if(Fe)Oe=we(Te.createElement(Je.Z,{spin:!0}));else{const Ve=`${he}-suffix`;Oe=ut=>{let{open:Ke,showSearch:Wt}=ut;return we(Ke&&Wt?Te.createElement(it.Z,{className:Ve}):Te.createElement(kt.Z,{className:Ve}))}}let He=null;gt!==void 0?He=gt:te?He=Te.createElement(be.Z,null):He=null;let We=null;return Ct!==void 0?We=Ct:We=Te.createElement(at.Z,null),{clearIcon:ke,suffixIcon:Oe,itemIcon:He,removeIcon:We}}},81327:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return he}});var be=ye(59301),Re=ye(92310),at=ye.n(Re),kt=ye(11592),Je=ye(36355),it=ye(33234);const Te=be.createContext({latestIndex:0}),Tt=Te.Provider;var rt=se=>{let{className:ge,index:me,children:Pe,split:ke,style:we}=se;const{latestIndex:Oe}=be.useContext(Te);return Pe==null?null:be.createElement(be.Fragment,null,be.createElement("div",{className:ge,style:we},Pe),me<Oe&&ke&&be.createElement("span",{className:`${ge}-split`},ke))},It=ye(2856);function gt(se){return["small","middle","large"].includes(se)}function Ct(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Fe=function(se,ge){var me={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&ge.indexOf(Pe)<0&&(me[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Pe=Object.getOwnPropertySymbols(se);ke<Pe.length;ke++)ge.indexOf(Pe[ke])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[ke])&&(me[Pe[ke]]=se[Pe[ke]]);return me};const ne=be.forwardRef((se,ge)=>{var me,Pe;const{getPrefixCls:ke,space:we,direction:Oe}=be.useContext(Je.E_),{size:He=(we==null?void 0:we.size)||"small",align:We,className:Ve,rootClassName:ut,children:Ke,direction:Wt="horizontal",prefixCls:pt,split:Ut,style:Ht,wrap:jt=!1,classNames:Xt,styles:Nn}=se,St=Fe(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ge,en]=Array.isArray(He)?He:[He,He],Hn=gt(en),_n=gt(Ge),Bt=Ct(en),rn=Ct(Ge),cn=(0,kt.Z)(Ke,{keepEmpty:!0}),Kn=We===void 0&&Wt==="horizontal"?"center":We,nn=ke("space",pt),[Rn,vt]=(0,It.Z)(nn),Yn=at()(nn,we==null?void 0:we.className,vt,`${nn}-${Wt}`,{[`${nn}-rtl`]:Oe==="rtl",[`${nn}-align-${Kn}`]:Kn,[`${nn}-gap-row-${en}`]:Hn,[`${nn}-gap-col-${Ge}`]:_n},Ve,ut),ni=at()(`${nn}-item`,(me=Xt==null?void 0:Xt.item)!==null&&me!==void 0?me:(Pe=we==null?void 0:we.classNames)===null||Pe===void 0?void 0:Pe.item);let je=0;const Me=cn.map((Be,Se)=>{var lt,Et;Be!=null&&(je=Se);const Xe=Be&&Be.key||`${ni}-${Se}`;return be.createElement(rt,{className:ni,key:Xe,index:Se,split:Ut,style:(lt=Nn==null?void 0:Nn.item)!==null&<!==void 0?lt:(Et=we==null?void 0:we.styles)===null||Et===void 0?void 0:Et.item},Be)}),xe=be.useMemo(()=>({latestIndex:je}),[je]);if(cn.length===0)return null;const Ne={};return jt&&(Ne.flexWrap="wrap"),!_n&&rn&&(Ne.columnGap=Ge),!Hn&&Bt&&(Ne.rowGap=en),Rn(be.createElement("div",Object.assign({ref:ge,className:Yn,style:Object.assign(Object.assign(Object.assign({},Ne),we==null?void 0:we.style),Ht)},St),be.createElement(Tt,{value:xe},Me)))});ne.Compact=it.ZP;var he=ne},15969:function(On,xn,ye){"use strict";ye.d(xn,{N:function(){return be}});const be=Re=>({color:Re.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Re.motionDurationSlow}`,"&:focus, &:hover":{color:Re.colorLinkHover},"&:active":{color:Re.colorLinkActive}})},78673:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Wt}});var be=ye(58617),Re=ye(92310),at=ye.n(Re),kt=ye(72308),Je=ye(49618),it=ye(52487),Te=ye(74416),Tt=ye(59301),Pt=ye(18929),rt=ye(10228),It=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],gt=Tt.forwardRef(function(pt,Ut){var Ht,jt=pt.prefixCls,Xt=jt===void 0?"rc-switch":jt,Nn=pt.className,St=pt.checked,Ge=pt.defaultChecked,en=pt.disabled,Hn=pt.loadingIcon,_n=pt.checkedChildren,Bt=pt.unCheckedChildren,rn=pt.onClick,cn=pt.onChange,Kn=pt.onKeyDown,nn=(0,Te.Z)(pt,It),Rn=(0,Pt.Z)(!1,{value:St,defaultValue:Ge}),vt=(0,it.Z)(Rn,2),Yn=vt[0],ni=vt[1];function je(Be,Se){var lt=Yn;return en||(lt=Be,ni(lt),cn==null||cn(lt,Se)),lt}function Me(Be){Be.which===rt.Z.LEFT?je(!1,Be):Be.which===rt.Z.RIGHT&&je(!0,Be),Kn==null||Kn(Be)}function xe(Be){var Se=je(!Yn,Be);rn==null||rn(Se,Be)}var Ne=at()(Xt,Nn,(Ht={},(0,Je.Z)(Ht,"".concat(Xt,"-checked"),Yn),(0,Je.Z)(Ht,"".concat(Xt,"-disabled"),en),Ht));return Tt.createElement("button",(0,kt.Z)({},nn,{type:"button",role:"switch","aria-checked":Yn,disabled:en,className:Ne,ref:Ut,onKeyDown:Me,onClick:xe}),Hn,Tt.createElement("span",{className:"".concat(Xt,"-inner")},Tt.createElement("span",{className:"".concat(Xt,"-inner-checked")},_n),Tt.createElement("span",{className:"".concat(Xt,"-inner-unchecked")},Bt)))});gt.displayName="Switch";var Ct=gt,Fe=ye(14088),te=ye(36355),ne=ye(1684),he=ye(19716),se=ye(64993),ge=ye(17313),me=ye(83116),Pe=ye(37613);const ke=pt=>{const{componentCls:Ut,trackHeightSM:Ht,trackPadding:jt,trackMinWidthSM:Xt,innerMinMarginSM:Nn,innerMaxMarginSM:St,handleSizeSM:Ge}=pt,en=`${Ut}-inner`;return{[Ut]:{[`&${Ut}-small`]:{minWidth:Xt,height:Ht,lineHeight:`${Ht}px`,[`${Ut}-inner`]:{paddingInlineStart:St,paddingInlineEnd:Nn,[`${en}-checked`]:{marginInlineStart:`calc(-100% + ${Ge+jt*2}px - ${St*2}px)`,marginInlineEnd:`calc(100% - ${Ge+jt*2}px + ${St*2}px)`},[`${en}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`${Ut}-handle`]:{width:Ge,height:Ge},[`${Ut}-loading-icon`]:{top:(Ge-pt.switchLoadingIconSize)/2,fontSize:pt.switchLoadingIconSize},[`&${Ut}-checked`]:{[`${Ut}-inner`]:{paddingInlineStart:Nn,paddingInlineEnd:St,[`${en}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${en}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge+jt*2}px + ${St*2}px)`,marginInlineEnd:`calc(-100% + ${Ge+jt*2}px - ${St*2}px)`}},[`${Ut}-handle`]:{insetInlineStart:`calc(100% - ${Ge+jt}px)`}},[`&:not(${Ut}-disabled):active`]:{[`&:not(${Ut}-checked) ${en}`]:{[`${en}-unchecked`]:{marginInlineStart:pt.marginXXS/2,marginInlineEnd:-pt.marginXXS/2}},[`&${Ut}-checked ${en}`]:{[`${en}-checked`]:{marginInlineStart:-pt.marginXXS/2,marginInlineEnd:pt.marginXXS/2}}}}}}},we=pt=>{const{componentCls:Ut,handleSize:Ht}=pt;return{[Ut]:{[`${Ut}-loading-icon${pt.iconCls}`]:{position:"relative",top:(Ht-pt.fontSize)/2,color:pt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ut}-checked ${Ut}-loading-icon`]:{color:pt.switchColor}}}},Oe=pt=>{const{componentCls:Ut,motion:Ht,trackPadding:jt,handleBg:Xt,handleShadow:Nn,handleSize:St}=pt,Ge=`${Ut}-handle`;return{[Ut]:{[Ge]:{position:"absolute",top:jt,insetInlineStart:jt,width:St,height:St,transition:`all ${pt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Xt,borderRadius:St/2,boxShadow:Nn,transition:`all ${pt.switchDuration} ease-in-out`,content:'""'}},[`&${Ut}-checked ${Ge}`]:{insetInlineStart:`calc(100% - ${St+jt}px)`},[`&:not(${Ut}-disabled):active`]:Ht?{[`${Ge}::before`]:{insetInlineEnd:pt.switchHandleActiveInset,insetInlineStart:0},[`&${Ut}-checked ${Ge}::before`]:{insetInlineEnd:0,insetInlineStart:pt.switchHandleActiveInset}}:{}}}},He=pt=>{const{componentCls:Ut,trackHeight:Ht,trackPadding:jt,innerMinMargin:Xt,innerMaxMargin:Nn,handleSize:St}=pt,Ge=`${Ut}-inner`;return{[Ut]:{[Ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Nn,paddingInlineEnd:Xt,transition:`padding-inline-start ${pt.switchDuration} ease-in-out, padding-inline-end ${pt.switchDuration} ease-in-out`,[`${Ge}-checked, ${Ge}-unchecked`]:{display:"block",color:pt.colorTextLightSolid,fontSize:pt.fontSizeSM,transition:`margin-inline-start ${pt.switchDuration} ease-in-out, margin-inline-end ${pt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ge}-checked`]:{marginInlineStart:`calc(-100% + ${St+jt*2}px - ${Nn*2}px)`,marginInlineEnd:`calc(100% - ${St+jt*2}px + ${Nn*2}px)`},[`${Ge}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`&${Ut}-checked ${Ge}`]:{paddingInlineStart:Xt,paddingInlineEnd:Nn,[`${Ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ge}-unchecked`]:{marginInlineStart:`calc(100% - ${St+jt*2}px + ${Nn*2}px)`,marginInlineEnd:`calc(-100% + ${St+jt*2}px - ${Nn*2}px)`}},[`&:not(${Ut}-disabled):active`]:{[`&:not(${Ut}-checked) ${Ge}`]:{[`${Ge}-unchecked`]:{marginInlineStart:jt*2,marginInlineEnd:-jt*2}},[`&${Ut}-checked ${Ge}`]:{[`${Ge}-checked`]:{marginInlineStart:-jt*2,marginInlineEnd:jt*2}}}}}},We=pt=>{const{componentCls:Ut,trackHeight:Ht,trackMinWidth:jt}=pt;return{[Ut]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(pt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:jt,height:Ht,lineHeight:`${Ht}px`,verticalAlign:"middle",background:pt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${pt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ut}-disabled)`]:{background:pt.colorTextTertiary}}),(0,ge.Qy)(pt)),{[`&${Ut}-checked`]:{background:pt.switchColor,[`&:hover:not(${Ut}-disabled)`]:{background:pt.colorPrimaryHover}},[`&${Ut}-loading, &${Ut}-disabled`]:{cursor:"not-allowed",opacity:pt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ut}-rtl`]:{direction:"rtl"}})}};var Ve=(0,me.Z)("Switch",pt=>{const Ut=(0,Pe.TS)(pt,{switchDuration:pt.motionDurationMid,switchColor:pt.colorPrimary,switchDisabledOpacity:pt.opacityLoading,switchLoadingIconSize:pt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${pt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[We(Ut),He(Ut),Oe(Ut),we(Ut),ke(Ut)]},pt=>{const{fontSize:Ut,lineHeight:Ht,controlHeight:jt,colorWhite:Xt}=pt,Nn=Ut*Ht,St=jt/2,Ge=2,en=Nn-Ge*2,Hn=St-Ge*2;return{trackHeight:Nn,trackHeightSM:St,trackMinWidth:en*2+Ge*4,trackMinWidthSM:Hn*2+Ge*2,trackPadding:Ge,handleBg:Xt,handleSize:en,handleSizeSM:Hn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:en/2,innerMaxMargin:en+Ge+Ge*2,innerMinMarginSM:Hn/2,innerMaxMarginSM:Hn+Ge+Ge*2}}),ut=function(pt,Ut){var Ht={};for(var jt in pt)Object.prototype.hasOwnProperty.call(pt,jt)&&Ut.indexOf(jt)<0&&(Ht[jt]=pt[jt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,jt=Object.getOwnPropertySymbols(pt);Xt<jt.length;Xt++)Ut.indexOf(jt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(pt,jt[Xt])&&(Ht[jt[Xt]]=pt[jt[Xt]]);return Ht};const Ke=Tt.forwardRef((pt,Ut)=>{const{prefixCls:Ht,size:jt,disabled:Xt,loading:Nn,className:St,rootClassName:Ge,style:en}=pt,Hn=ut(pt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:_n,direction:Bt,switch:rn}=Tt.useContext(te.E_),cn=Tt.useContext(ne.Z),Kn=(Xt!=null?Xt:cn)||Nn,nn=_n("switch",Ht),Rn=Tt.createElement("div",{className:`${nn}-handle`},Nn&&Tt.createElement(be.Z,{className:`${nn}-loading-icon`})),[vt,Yn]=Ve(nn),ni=(0,he.Z)(jt),je=at()(rn==null?void 0:rn.className,{[`${nn}-small`]:ni==="small",[`${nn}-loading`]:Nn,[`${nn}-rtl`]:Bt==="rtl"},St,Ge,Yn),Me=Object.assign(Object.assign({},rn==null?void 0:rn.style),en);return vt(Tt.createElement(Fe.Z,{component:"Switch"},Tt.createElement(Ct,Object.assign({},Hn,{prefixCls:nn,className:je,style:Me,disabled:Kn,ref:Ut,loadingIcon:Rn}))))});Ke.__ANT_SWITCH=!0;var Wt=Ke},1710:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return _s}});var be={},Re="rc-table-internal-hook",at=ye(52487),kt=ye(6089),Je=ye(34280),it=ye(13697),Te=ye(59301),Tt=ye(4676);function Pt($e){var ot=Te.createContext(void 0),Dt=function(Qt){var Gt=Qt.value,Ln=Qt.children,Cn=Te.useRef(Gt);Cn.current=Gt;var wn=Te.useState(function(){return{getValue:function(){return Cn.current},listeners:new Set}}),ti=(0,at.Z)(wn,1),jn=ti[0];return(0,Je.Z)(function(){(0,Tt.unstable_batchedUpdates)(function(){jn.listeners.forEach(function(qn){qn(Gt)})})},[Gt]),Te.createElement(ot.Provider,{value:jn},Ln)};return{Context:ot,Provider:Dt,defaultValue:$e}}function rt($e,ot){var Dt=(0,kt.Z)(typeof ot=="function"?ot:function(qn){if(ot===void 0)return qn;if(!Array.isArray(ot))return qn[ot];var Ei={};return ot.forEach(function(Pi){Ei[Pi]=qn[Pi]}),Ei}),Ot=Te.useContext($e==null?void 0:$e.Context),Qt=Ot||{},Gt=Qt.listeners,Ln=Qt.getValue,Cn=Te.useRef();Cn.current=Dt(Ot?Ln():$e==null?void 0:$e.defaultValue);var wn=Te.useState({}),ti=(0,at.Z)(wn,2),jn=ti[1];return(0,Je.Z)(function(){if(!Ot)return;function qn(Ei){var Pi=Dt(Ei);(0,it.Z)(Cn.current,Pi,!0)||jn({})}return Gt.add(qn),function(){Gt.delete(qn)}},[Ot]),Cn.current}var It=ye(72308),gt=ye(8654);function Ct(){var $e=Te.createContext(null);function ot(){return Te.useContext($e)}function Dt(Qt,Gt){var Ln=(0,gt.Yr)(Qt),Cn=function(ti,jn){var qn=Ln?{ref:jn}:{},Ei=Te.useRef(0),Pi=Te.useRef(ti),mi=ot();return mi!==null?Te.createElement(Qt,(0,It.Z)({},ti,qn)):((!Gt||Gt(Pi.current,ti))&&(Ei.current+=1),Pi.current=ti,Te.createElement($e.Provider,{value:Ei.current},Te.createElement(Qt,(0,It.Z)({},ti,qn))))};return Ln?Te.forwardRef(Cn):Cn}function Ot(Qt,Gt){var Ln=(0,gt.Yr)(Qt),Cn=function(ti,jn){var qn=Ln?{ref:jn}:{};return ot(),Te.createElement(Qt,(0,It.Z)({},ti,qn))};return Ln?Te.memo(Te.forwardRef(Cn),Gt):Te.memo(Cn,Gt)}return{makeImmutable:Dt,responseImmutable:Ot,useImmutableMark:ot}}var Fe=Ct(),te=Fe.makeImmutable,ne=Fe.responseImmutable,he=Fe.useImmutableMark,se=Ct(),ge=se.makeImmutable,me=se.responseImmutable,Pe=se.useImmutableMark,ke=Pt(),we=ke;function Oe($e,ot){var Dt=Te.useRef(0);Dt.current+=1;var Ot=Te.useRef($e),Qt=[];Object.keys($e||{}).map(function(Ln){var Cn;($e==null?void 0:$e[Ln])!==((Cn=Ot.current)===null||Cn===void 0?void 0:Cn[Ln])&&Qt.push(Ln)}),Ot.current=$e;var Gt=Te.useRef([]);return Qt.length&&(Gt.current=Qt),Te.useDebugValue(Dt.current),Te.useDebugValue(Gt.current.join(", ")),ot&&console.log("".concat(ot,":"),Dt.current,Gt.current),Dt.current}var He=null,We=Te.memo(function(){var $e=Oe();return Te.createElement("h1",null,"Render Times: ",$e)});We.displayName="RenderBlock";var Ve=ye(62853),ut=ye(77321),Ke=ye(49618),Wt=ye(92310),pt=ye.n(Wt),Ut=ye(80547),Ht=ye(97938),jt=ye(48736),Xt=Te.createContext({renderWithProps:!1}),Nn=Xt,St="RC_TABLE_KEY";function Ge($e){return $e==null?[]:Array.isArray($e)?$e:[$e]}function en($e){var ot=[],Dt={};return $e.forEach(function(Ot){for(var Qt=Ot||{},Gt=Qt.key,Ln=Qt.dataIndex,Cn=Gt||Ge(Ln).join("-")||St;Dt[Cn];)Cn="".concat(Cn,"_next");Dt[Cn]=!0,ot.push(Cn)}),ot}function Hn($e){return $e!=null}function _n($e){return $e&&(0,Ve.Z)($e)==="object"&&!Array.isArray($e)&&!Te.isValidElement($e)}function Bt($e,ot,Dt,Ot,Qt,Gt){var Ln=Te.useContext(Nn),Cn=Pe(),wn=(0,Ut.Z)(function(){if(Hn(Ot))return[Ot];var ti=ot==null||ot===""?[]:Array.isArray(ot)?ot:[ot],jn=(0,Ht.Z)($e,ti),qn=jn,Ei=void 0;if(Qt){var Pi=Qt(jn,$e,Dt);_n(Pi)?(qn=Pi.children,Ei=Pi.props,Ln.renderWithProps=!0):qn=Pi}return[qn,Ei]},[Cn,$e,Ot,ot,Qt,Dt],function(ti,jn){if(Gt){var qn=(0,at.Z)(ti,2),Ei=qn[1],Pi=(0,at.Z)(jn,2),mi=Pi[1];return Gt(mi,Ei)}return Ln.renderWithProps?!0:!(0,it.Z)(ti,jn,!0)});return wn}function rn($e,ot,Dt,Ot){var Qt=$e+ot-1;return $e<=Ot&&Qt>=Dt}function cn($e,ot){return rt(we,function(Dt){var Ot=rn($e,ot||1,Dt.hoverStartRow,Dt.hoverEndRow);return[Ot,Dt.onHover]})}var Kn=function(ot){var Dt=ot.ellipsis,Ot=ot.rowType,Qt=ot.children,Gt,Ln=Dt===!0?{showTitle:!0}:Dt;return Ln&&(Ln.showTitle||Ot==="header")&&(typeof Qt=="string"||typeof Qt=="number"?Gt=Qt.toString():Te.isValidElement(Qt)&&typeof Qt.props.children=="string"&&(Gt=Qt.props.children)),Gt};function nn($e){var ot,Dt,Ot,Qt,Gt,Ln,Cn,wn,ti=$e.component,jn=$e.children,qn=$e.ellipsis,Ei=$e.scope,Pi=$e.prefixCls,mi=$e.className,Ki=$e.align,Si=$e.record,nr=$e.render,Xi=$e.dataIndex,ar=$e.renderIndex,Ur=$e.shouldCellUpdate,oo=$e.index,fr=$e.rowType,Ar=$e.colSpan,Eo=$e.rowSpan,sr=$e.fixLeft,Rr=$e.fixRight,gr=$e.firstFixLeft,Zi=$e.lastFixLeft,ir=$e.firstFixRight,jr=$e.lastFixRight,ao=$e.appendNode,lo=$e.additionalProps,rr=lo===void 0?{}:lo,Lo=$e.isSticky,Ro="".concat(Pi,"-cell"),Wo=rt(we,["supportSticky","allColumnsFixedLeft"]),Ho=Wo.supportSticky,ja=Wo.allColumnsFixedLeft,ea=Bt(Si,Xi,ar,jn,nr,Ur),Po=(0,at.Z)(ea,2),$r=Po[0],po=Po[1],Ba={},Ca=typeof sr=="number"&&Ho,Ka=typeof Rr=="number"&&Ho;Ca&&(Ba.position="sticky",Ba.left=sr),Ka&&(Ba.position="sticky",Ba.right=Rr);var yo=(ot=(Dt=(Ot=po==null?void 0:po.colSpan)!==null&&Ot!==void 0?Ot:rr.colSpan)!==null&&Dt!==void 0?Dt:Ar)!==null&&ot!==void 0?ot:1,no=(Qt=(Gt=(Ln=po==null?void 0:po.rowSpan)!==null&&Ln!==void 0?Ln:rr.rowSpan)!==null&&Gt!==void 0?Gt:Eo)!==null&&Qt!==void 0?Qt:1,Co=cn(oo,no),Jr=(0,at.Z)(Co,2),Or=Jr[0],Ai=Jr[1],mr=function(ho){var Bs;Si&&Ai(oo,oo+no-1),rr==null||(Bs=rr.onMouseEnter)===null||Bs===void 0||Bs.call(rr,ho)},Fo=function(ho){var Bs;Si&&Ai(-1,-1),rr==null||(Bs=rr.onMouseLeave)===null||Bs===void 0||Bs.call(rr,ho)};if(yo===0||no===0)return null;var Xo=(Cn=rr.title)!==null&&Cn!==void 0?Cn:Kn({rowType:fr,ellipsis:qn,children:$r}),Xs=pt()(Ro,mi,(wn={},(0,Ke.Z)(wn,"".concat(Ro,"-fix-left"),Ca&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-left-first"),gr&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-left-last"),Zi&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-left-all"),Zi&&ja&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-right"),Ka&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-right-first"),ir&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-fix-right-last"),jr&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-ellipsis"),qn),(0,Ke.Z)(wn,"".concat(Ro,"-with-append"),ao),(0,Ke.Z)(wn,"".concat(Ro,"-fix-sticky"),(Ca||Ka)&&Lo&&Ho),(0,Ke.Z)(wn,"".concat(Ro,"-row-hover"),!po&&Or),wn),rr.className,po==null?void 0:po.className),ks={};Ki&&(ks.textAlign=Ki);var sl=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ba),rr.style),ks),po==null?void 0:po.style),va=$r;return(0,Ve.Z)(va)==="object"&&!Array.isArray(va)&&!Te.isValidElement(va)&&(va=null),qn&&(Zi||ir)&&(va=Te.createElement("span",{className:"".concat(Ro,"-content")},va)),Te.createElement(ti,(0,It.Z)({},po,rr,{className:Xs,style:sl,title:Xo,scope:Ei,onMouseEnter:mr,onMouseLeave:Fo,colSpan:yo!==1?yo:null,rowSpan:no!==1?no:null}),ao,va)}var Rn=Te.memo(nn);function vt($e,ot,Dt,Ot,Qt,Gt){var Ln=Dt[$e]||{},Cn=Dt[ot]||{},wn,ti;Ln.fixed==="left"?wn=Ot.left[Qt==="rtl"?ot:$e]:Cn.fixed==="right"&&(ti=Ot.right[Qt==="rtl"?$e:ot]);var jn=!1,qn=!1,Ei=!1,Pi=!1,mi=Dt[ot+1],Ki=Dt[$e-1],Si=!(Gt!=null&&Gt.children);if(Qt==="rtl"){if(wn!==void 0){var nr=Ki&&Ki.fixed==="left";Pi=!nr&&Si}else if(ti!==void 0){var Xi=mi&&mi.fixed==="right";Ei=!Xi&&Si}}else if(wn!==void 0){var ar=mi&&mi.fixed==="left";jn=!ar&&Si}else if(ti!==void 0){var Ur=Ki&&Ki.fixed==="right";qn=!Ur&&Si}return{fixLeft:wn,fixRight:ti,lastFixLeft:jn,firstFixRight:qn,lastFixRight:Ei,firstFixLeft:Pi,isSticky:Ot.isSticky}}var Yn=Te.createContext({}),ni=Yn;function je($e){var ot=$e.className,Dt=$e.index,Ot=$e.children,Qt=$e.colSpan,Gt=Qt===void 0?1:Qt,Ln=$e.rowSpan,Cn=$e.align,wn=rt(we,["prefixCls","direction"]),ti=wn.prefixCls,jn=wn.direction,qn=Te.useContext(ni),Ei=qn.scrollColumnIndex,Pi=qn.stickyOffsets,mi=qn.flattenColumns,Ki=qn.columns,Si=Dt+Gt-1,nr=Si+1===Ei?Gt+1:Gt,Xi=vt(Dt,Dt+nr-1,mi,Pi,jn,Ki==null?void 0:Ki[Dt]);return Te.createElement(Rn,(0,It.Z)({className:ot,index:Dt,component:"td",prefixCls:ti,record:null,dataIndex:null,align:Cn,colSpan:nr,rowSpan:Ln,render:function(){return Ot}},Xi))}var Me=ye(74416),xe=["children"];function Ne($e){var ot=$e.children,Dt=(0,Me.Z)($e,xe);return Te.createElement("tr",Dt,ot)}function Be($e){var ot=$e.children;return ot}Be.Row=Ne,Be.Cell=je;var Se=Be;function lt($e){var ot=$e.children,Dt=$e.stickyOffsets,Ot=$e.flattenColumns,Qt=$e.columns,Gt=rt(we,"prefixCls"),Ln=Ot.length-1,Cn=Ot[Ln],wn=Te.useMemo(function(){return{stickyOffsets:Dt,flattenColumns:Ot,scrollColumnIndex:Cn!=null&&Cn.scrollbar?Ln:null,columns:Qt}},[Cn,Ot,Ln,Dt,Qt]);return Te.createElement(ni.Provider,{value:wn},Te.createElement("tfoot",{className:"".concat(Gt,"-summary")},ot))}var Et=me(lt),Xe=Se,tt=ye(70425),wt=ye(29301),xt=ye(29194),ct=ye(24514),Ft=ye(75152),Pn=ye(26112);function mn($e,ot,Dt,Ot,Qt,Gt,Ln){$e.push({record:ot,indent:Dt,index:Ln});var Cn=Gt(ot),wn=Qt==null?void 0:Qt.has(Cn);if(ot&&Array.isArray(ot[Ot])&&wn)for(var ti=0;ti<ot[Ot].length;ti+=1)mn($e,ot[Ot][ti],Dt+1,Ot,Qt,Gt,ti)}function Jt($e,ot,Dt,Ot){var Qt=Te.useMemo(function(){if(Dt!=null&&Dt.size){for(var Gt=[],Ln=0;Ln<($e==null?void 0:$e.length);Ln+=1){var Cn=$e[Ln];mn(Gt,Cn,0,ot,Dt,Ot,Ln)}return Gt}return $e==null?void 0:$e.map(function(wn,ti){return{record:wn,indent:0,index:ti}})},[$e,ot,Dt,Ot]);return Qt}function gn($e){var ot=$e.prefixCls,Dt=$e.children,Ot=$e.component,Qt=$e.cellComponent,Gt=$e.className,Ln=$e.expanded,Cn=$e.colSpan,wn=$e.isEmpty,ti=rt(we,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),jn=ti.scrollbarSize,qn=ti.fixHeader,Ei=ti.fixColumn,Pi=ti.componentWidth,mi=ti.horizonScroll,Ki=Dt;return(wn?mi&&Pi:Ei)&&(Ki=Te.createElement("div",{style:{width:Pi-(qn?jn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ot,"-expanded-row-fixed")},Ki)),Te.createElement(Ot,{className:Gt,style:{display:Ln?null:"none"}},Te.createElement(Rn,{component:Qt,prefixCls:ot,colSpan:Cn},Ki))}var Tn=gn;function bt($e,ot,Dt,Ot){var Qt=rt(we,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Gt=Qt.flattenColumns,Ln=Qt.expandableType,Cn=Qt.expandedKeys,wn=Qt.childrenColumnName,ti=Qt.onTriggerExpand,jn=Qt.rowExpandable,qn=Qt.onRow,Ei=Qt.expandRowByClick,Pi=Qt.rowClassName,mi=Ln==="nest",Ki=Ln==="row"&&(!jn||jn($e)),Si=Ki||mi,nr=Cn&&Cn.has(ot),Xi=wn&&$e&&$e[wn],ar=(0,tt.useEvent)(ti),Ur=qn==null?void 0:qn($e,Dt),oo=Ur==null?void 0:Ur.onClick,fr=function(Rr){Ei&&Si&&ti($e,Rr);for(var gr=arguments.length,Zi=new Array(gr>1?gr-1:0),ir=1;ir<gr;ir++)Zi[ir-1]=arguments[ir];oo==null||oo.apply(void 0,[Rr].concat(Zi))},Ar;typeof Pi=="string"?Ar=Pi:typeof Pi=="function"&&(Ar=Pi($e,Dt,Ot));var Eo=en(Gt);return(0,ut.Z)((0,ut.Z)({},Qt),{},{columnsKey:Eo,nestExpandable:mi,expanded:nr,hasNestChildren:Xi,record:$e,onTriggerExpand:ar,rowSupportExpand:Ki,expandable:Si,rowProps:(0,ut.Z)((0,ut.Z)({},Ur),{},{className:pt()(Ar,Ur==null?void 0:Ur.className),onClick:fr})})}function _t($e,ot,Dt,Ot,Qt){var Gt=$e.record,Ln=$e.prefixCls,Cn=$e.columnsKey,wn=$e.fixedInfoList,ti=$e.expandIconColumnIndex,jn=$e.nestExpandable,qn=$e.indentSize,Ei=$e.expandIcon,Pi=$e.expanded,mi=$e.hasNestChildren,Ki=$e.onTriggerExpand,Si=Cn[Dt],nr=wn[Dt],Xi;Dt===(ti||0)&&jn&&(Xi=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(qn*Ot,"px")},className:"".concat(Ln,"-row-indent indent-level-").concat(Ot)}),Ei({prefixCls:Ln,expanded:Pi,expandable:mi,record:Gt,onExpand:Ki})));var ar;return ot.onCell&&(ar=ot.onCell(Gt,Qt)),{key:Si,fixedInfo:nr,appendCellNode:Xi,additionalCellProps:ar||{}}}function $t($e){var ot=$e.className,Dt=$e.style,Ot=$e.record,Qt=$e.index,Gt=$e.renderIndex,Ln=$e.rowKey,Cn=$e.indent,wn=Cn===void 0?0:Cn,ti=$e.rowComponent,jn=$e.cellComponent,qn=$e.scopeCellComponent,Ei=bt(Ot,Ln,Qt,wn),Pi=Ei.prefixCls,mi=Ei.flattenColumns,Ki=Ei.expandedRowClassName,Si=Ei.expandedRowRender,nr=Ei.rowProps,Xi=Ei.expanded,ar=Ei.rowSupportExpand,Ur=Te.useState(!1),oo=(0,at.Z)(Ur,2),fr=oo[0],Ar=oo[1];Te.useEffect(function(){Xi&&Ar(!0)},[Xi]);var Eo=Te.createElement(ti,(0,It.Z)({},nr,{"data-row-key":Ln,className:pt()(ot,"".concat(Pi,"-row"),"".concat(Pi,"-row-level-").concat(wn),nr==null?void 0:nr.className),style:(0,ut.Z)((0,ut.Z)({},Dt),nr==null?void 0:nr.style)}),mi.map(function(Zi,ir){var jr=Zi.render,ao=Zi.dataIndex,lo=Zi.className,rr=_t(Ei,Zi,ir,wn,Qt),Lo=rr.key,Ro=rr.fixedInfo,Wo=rr.appendCellNode,Ho=rr.additionalCellProps;return Te.createElement(Rn,(0,It.Z)({className:lo,ellipsis:Zi.ellipsis,align:Zi.align,scope:Zi.rowScope,component:Zi.rowScope?qn:jn,prefixCls:Pi,key:Lo,record:Ot,index:Qt,renderIndex:Gt,dataIndex:ao,render:jr,shouldCellUpdate:Zi.shouldCellUpdate},Ro,{appendNode:Wo,additionalProps:Ho}))})),sr;if(ar&&(fr||Xi)){var Rr=Si(Ot,Qt,wn+1,Xi),gr=Ki&&Ki(Ot,Qt,wn);sr=Te.createElement(Tn,{expanded:Xi,className:pt()("".concat(Pi,"-expanded-row"),"".concat(Pi,"-expanded-row-level-").concat(wn+1),gr),prefixCls:Pi,component:ti,cellComponent:jn,colSpan:mi.length,isEmpty:!1},Rr)}return Te.createElement(Te.Fragment,null,Eo,sr)}$t.displayName="BodyRow";var Dn=me($t);function ii($e){var ot=$e.columnKey,Dt=$e.onColumnResize,Ot=Te.useRef();return Te.useEffect(function(){Ot.current&&Dt(ot,Ot.current.offsetWidth)},[]),Te.createElement(wt.Z,{data:ot},Te.createElement("td",{ref:Ot,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function pi($e){var ot=$e.prefixCls,Dt=$e.columnsKey,Ot=$e.onColumnResize;return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(ot,"-measure-row"),style:{height:0,fontSize:0}},Te.createElement(wt.Z.Collection,{onBatchResize:function(Gt){Gt.forEach(function(Ln){var Cn=Ln.data,wn=Ln.size;Ot(Cn,wn.offsetWidth)})}},Dt.map(function(Qt){return Te.createElement(ii,{key:Qt,columnKey:Qt,onColumnResize:Ot})})))}function fi($e){var ot=$e.data,Dt=$e.measureColumnWidth,Ot=rt(we,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Qt=Ot.prefixCls,Gt=Ot.getComponent,Ln=Ot.onColumnResize,Cn=Ot.flattenColumns,wn=Ot.getRowKey,ti=Ot.expandedKeys,jn=Ot.childrenColumnName,qn=Ot.emptyNode,Ei=Jt(ot,jn,ti,wn),Pi=Te.useRef({renderWithProps:!1}),mi=Gt(["body","wrapper"],"tbody"),Ki=Gt(["body","row"],"tr"),Si=Gt(["body","cell"],"td"),nr=Gt(["body","cell"],"th"),Xi;ot.length?Xi=Ei.map(function(Ur,oo){var fr=Ur.record,Ar=Ur.indent,Eo=Ur.index,sr=wn(fr,oo);return Te.createElement(Dn,{key:sr,rowKey:sr,record:fr,index:oo,renderIndex:Eo,rowComponent:Ki,cellComponent:Si,scopeCellComponent:nr,getRowKey:wn,indent:Ar})}):Xi=Te.createElement(Tn,{expanded:!0,className:"".concat(Qt,"-placeholder"),prefixCls:Qt,component:Ki,cellComponent:Si,colSpan:Cn.length,isEmpty:!0},qn);var ar=en(Cn);return Te.createElement(Nn.Provider,{value:Pi.current},Te.createElement(mi,{className:"".concat(Qt,"-tbody")},Dt&&Te.createElement(pi,{prefixCls:Qt,columnsKey:ar,onColumnResize:Ln}),Xi))}fi.displayName="Body";var wi=me(fi),Vi=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function cr($e){var ot=$e.expandable,Dt=(0,Me.Z)($e,Vi),Ot;return"expandable"in $e?Ot=(0,ut.Z)((0,ut.Z)({},Dt),ot):Ot=Dt,Ot.showExpandColumn===!1&&(Ot.expandIconColumnIndex=-1),Ot}var pr=["columnType"];function _r($e){for(var ot=$e.colWidths,Dt=$e.columns,Ot=$e.columCount,Qt=[],Gt=Ot||Dt.length,Ln=!1,Cn=Gt-1;Cn>=0;Cn-=1){var wn=ot[Cn],ti=Dt&&Dt[Cn],jn=ti&&ti[vr];if(wn||jn||Ln){var qn=jn||{},Ei=qn.columnType,Pi=(0,Me.Z)(qn,pr);Qt.unshift(Te.createElement("col",(0,It.Z)({key:Cn,style:{width:wn}},Pi))),Ln=!0}}return Te.createElement("colgroup",null,Qt)}var Ir=_r,$i=ye(80702),eo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function kr($e,ot){return(0,Te.useMemo)(function(){for(var Dt=[],Ot=0;Ot<ot;Ot+=1){var Qt=$e[Ot];if(Qt!==void 0)Dt[Ot]=Qt;else return null}return Dt},[$e.join("_"),ot])}var Ee=Te.forwardRef(function($e,ot){var Dt=$e.className,Ot=$e.noData,Qt=$e.columns,Gt=$e.flattenColumns,Ln=$e.colWidths,Cn=$e.columCount,wn=$e.stickyOffsets,ti=$e.direction,jn=$e.fixHeader,qn=$e.stickyTopOffset,Ei=$e.stickyBottomOffset,Pi=$e.stickyClassName,mi=$e.onScroll,Ki=$e.maxContentScroll,Si=$e.children,nr=(0,Me.Z)($e,eo),Xi=rt(we,["prefixCls","scrollbarSize","isSticky"]),ar=Xi.prefixCls,Ur=Xi.scrollbarSize,oo=Xi.isSticky,fr=oo&&!jn?0:Ur,Ar=Te.useRef(null),Eo=Te.useCallback(function(lo){(0,gt.mH)(ot,lo),(0,gt.mH)(Ar,lo)},[]);Te.useEffect(function(){var lo;function rr(Lo){var Ro=Lo,Wo=Ro.currentTarget,Ho=Ro.deltaX;Ho&&(mi({currentTarget:Wo,scrollLeft:Wo.scrollLeft+Ho}),Lo.preventDefault())}return(lo=Ar.current)===null||lo===void 0||lo.addEventListener("wheel",rr),function(){var Lo;(Lo=Ar.current)===null||Lo===void 0||Lo.removeEventListener("wheel",rr)}},[]);var sr=Te.useMemo(function(){return Gt.every(function(lo){return lo.width})},[Gt]),Rr=Gt[Gt.length-1],gr={fixed:Rr?Rr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ar,"-cell-scrollbar")}}},Zi=(0,Te.useMemo)(function(){return fr?[].concat((0,$i.Z)(Qt),[gr]):Qt},[fr,Qt]),ir=(0,Te.useMemo)(function(){return fr?[].concat((0,$i.Z)(Gt),[gr]):Gt},[fr,Gt]),jr=(0,Te.useMemo)(function(){var lo=wn.right,rr=wn.left;return(0,ut.Z)((0,ut.Z)({},wn),{},{left:ti==="rtl"?[].concat((0,$i.Z)(rr.map(function(Lo){return Lo+fr})),[0]):rr,right:ti==="rtl"?lo:[].concat((0,$i.Z)(lo.map(function(Lo){return Lo+fr})),[0]),isSticky:oo})},[fr,wn,oo]),ao=kr(Ln,Cn);return Te.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},oo?{top:qn,bottom:Ei}:{}),ref:Eo,className:pt()(Dt,(0,Ke.Z)({},Pi,!!Pi))},Te.createElement("table",{style:{tableLayout:"fixed",visibility:Ot||ao?null:"hidden"}},(!Ot||!Ki||sr)&&Te.createElement(Ir,{colWidths:ao?[].concat((0,$i.Z)(ao),[fr]):[],columCount:Cn+1,columns:ir}),Si((0,ut.Z)((0,ut.Z)({},nr),{},{stickyOffsets:jr,columns:Zi,flattenColumns:ir}))))});Ee.displayName="FixedHolder";var si=Te.memo(Ee);function yi($e){var ot=$e.cells,Dt=$e.stickyOffsets,Ot=$e.flattenColumns,Qt=$e.rowComponent,Gt=$e.cellComponent,Ln=$e.tdCellComponent,Cn=$e.onHeaderRow,wn=$e.index,ti=rt(we,["prefixCls","direction"]),jn=ti.prefixCls,qn=ti.direction,Ei;Cn&&(Ei=Cn(ot.map(function(mi){return mi.column}),wn));var Pi=en(ot.map(function(mi){return mi.column}));return Te.createElement(Qt,Ei,ot.map(function(mi,Ki){var Si=mi.column,nr=vt(mi.colStart,mi.colEnd,Ot,Dt,qn,Si),Xi;return Si&&Si.onHeaderCell&&(Xi=mi.column.onHeaderCell(Si)),Te.createElement(Rn,(0,It.Z)({},mi,{scope:Si.title?mi.colSpan>1?"colgroup":"col":null,ellipsis:Si.ellipsis,align:Si.align,component:Si.title?Gt:Ln,prefixCls:jn,key:Pi[Ki]},nr,{additionalProps:Xi,rowType:"header"}))}))}yi.displayName="HeaderRow";var or=yi;function xr($e){var ot=[];function Dt(Ln,Cn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ot[wn]=ot[wn]||[];var ti=Cn,jn=Ln.filter(Boolean).map(function(qn){var Ei={key:qn.key,className:qn.className||"",children:qn.title,column:qn,colStart:ti},Pi=1,mi=qn.children;return mi&&mi.length>0&&(Pi=Dt(mi,ti,wn+1).reduce(function(Ki,Si){return Ki+Si},0),Ei.hasSubColumns=!0),"colSpan"in qn&&(Pi=qn.colSpan),"rowSpan"in qn&&(Ei.rowSpan=qn.rowSpan),Ei.colSpan=Pi,Ei.colEnd=Ei.colStart+Pi-1,ot[wn].push(Ei),ti+=Pi,Pi});return jn}Dt($e,0);for(var Ot=ot.length,Qt=function(Cn){ot[Cn].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Ot-Cn)})},Gt=0;Gt<Ot;Gt+=1)Qt(Gt);return ot}function qi($e){var ot=$e.stickyOffsets,Dt=$e.columns,Ot=$e.flattenColumns,Qt=$e.onHeaderRow,Gt=rt(we,["prefixCls","getComponent"]),Ln=Gt.prefixCls,Cn=Gt.getComponent,wn=Te.useMemo(function(){return xr(Dt)},[Dt]),ti=Cn(["header","wrapper"],"thead"),jn=Cn(["header","row"],"tr"),qn=Cn(["header","cell"],"th"),Ei=Cn(["header","cell"],"td");return Te.createElement(ti,{className:"".concat(Ln,"-thead")},wn.map(function(Pi,mi){var Ki=Te.createElement(or,{key:mi,flattenColumns:Ot,cells:Pi,stickyOffsets:ot,rowComponent:jn,cellComponent:qn,tdCellComponent:Ei,onHeaderRow:Qt,index:mi});return Ki}))}var Qr=me(qi),mo=ye(11592);function zr($e){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ot=="number"?ot:ot.endsWith("%")?$e*parseFloat(ot)/100:null}function on($e,ot){return Te.useMemo(function(){if(ot&&ot>0){var Dt=0,Ot=0;$e.forEach(function(ti){var jn=zr(ot,ti.width);jn?Dt+=jn:Ot+=1});var Qt=ot-Dt,Gt=Ot,Ln=Qt/Ot,Cn=0,wn=$e.map(function(ti){var jn=(0,ut.Z)({},ti),qn=zr(ot,jn.width);if(qn)jn.width=qn;else{var Ei=Math.floor(Ln);jn.width=Gt===1?Qt:Ei,Qt-=Ei,Gt-=1}return Cn+=jn.width,jn});return[wn,Cn]}return[$e,ot]},[$e,ot])}var Yt=["children"],Qe=["fixed"];function un($e){return(0,mo.Z)($e).filter(function(ot){return Te.isValidElement(ot)}).map(function(ot){var Dt=ot.key,Ot=ot.props,Qt=Ot.children,Gt=(0,Me.Z)(Ot,Yt),Ln=(0,ut.Z)({key:Dt},Gt);return Qt&&(Ln.children=un(Qt)),Ln})}function In($e){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return $e.filter(function(Dt){return Dt&&(0,Ve.Z)(Dt)==="object"}).reduce(function(Dt,Ot,Qt){var Gt=Ot.fixed,Ln=Gt===!0?"left":Gt,Cn="".concat(ot,"-").concat(Qt),wn=Ot.children;return wn&&wn.length>0?[].concat((0,$i.Z)(Dt),(0,$i.Z)(In(wn,Cn).map(function(ti){return(0,ut.Z)({fixed:Ln},ti)}))):[].concat((0,$i.Z)(Dt),[(0,ut.Z)((0,ut.Z)({key:Cn},Ot),{},{fixed:Ln})])},[])}function Mt($e){for(var ot=!0,Dt=0;Dt<$e.length;Dt+=1){var Ot=$e[Dt];if(ot&&Ot.fixed!=="left")ot=!1;else if(!ot&&Ot.fixed==="left"){warning(!1,"Index ".concat(Dt-1," of `columns` missing `fixed='left'` prop."));break}}for(var Qt=!0,Gt=$e.length-1;Gt>=0;Gt-=1){var Ln=$e[Gt];if(Qt&&Ln.fixed!=="right")Qt=!1;else if(!Qt&&Ln.fixed==="right"){warning(!1,"Index ".concat(Gt+1," of `columns` missing `fixed='right'` prop."));break}}}function ft($e){return $e.map(function(ot){var Dt=ot.fixed,Ot=(0,Me.Z)(ot,Qe),Qt=Dt;return Dt==="left"?Qt="right":Dt==="right"&&(Qt="left"),(0,ut.Z)({fixed:Qt},Ot)})}function fn($e,ot){var Dt=$e.prefixCls,Ot=$e.columns,Qt=$e.children,Gt=$e.expandable,Ln=$e.expandedKeys,Cn=$e.columnTitle,wn=$e.getRowKey,ti=$e.onTriggerExpand,jn=$e.expandIcon,qn=$e.rowExpandable,Ei=$e.expandIconColumnIndex,Pi=$e.direction,mi=$e.expandRowByClick,Ki=$e.columnWidth,Si=$e.fixed,nr=$e.scrollWidth,Xi=Te.useMemo(function(){return Ot||un(Qt)},[Ot,Qt]),ar=Te.useMemo(function(){if(Gt){var Rr,gr=Xi.slice();if(!gr.includes(be)){var Zi=Ei||0;Zi>=0&&gr.splice(Zi,0,be)}var ir=gr.indexOf(be);gr=gr.filter(function(rr,Lo){return rr!==be||Lo===ir});var jr=Xi[ir],ao;(Si==="left"||Si)&&!Ei?ao="left":(Si==="right"||Si)&&Ei===Xi.length?ao="right":ao=jr?jr.fixed:null;var lo=(Rr={},(0,Ke.Z)(Rr,vr,{className:"".concat(Dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ke.Z)(Rr,"title",Cn),(0,Ke.Z)(Rr,"fixed",ao),(0,Ke.Z)(Rr,"className","".concat(Dt,"-row-expand-icon-cell")),(0,Ke.Z)(Rr,"width",Ki),(0,Ke.Z)(Rr,"render",function(Lo,Ro,Wo){var Ho=wn(Ro,Wo),ja=Ln.has(Ho),ea=qn?qn(Ro):!0,Po=jn({prefixCls:Dt,expanded:ja,expandable:ea,record:Ro,onExpand:ti});return mi?Te.createElement("span",{onClick:function(po){return po.stopPropagation()}},Po):Po}),Rr);return gr.map(function(rr){return rr===be?lo:rr})}return Xi.filter(function(rr){return rr!==be})},[Gt,Xi,wn,Ln,jn,Pi]),Ur=Te.useMemo(function(){var Rr=ar;return ot&&(Rr=ot(Rr)),Rr.length||(Rr=[{render:function(){return null}}]),Rr},[ot,ar,Pi]),oo=Te.useMemo(function(){return Pi==="rtl"?ft(In(Ur)):In(Ur)},[Ur,Pi,nr]),fr=on(oo,nr),Ar=(0,at.Z)(fr,2),Eo=Ar[0],sr=Ar[1];return[Ur,Eo,sr]}var Vn=fn;function bi($e){var ot,Dt=$e.prefixCls,Ot=$e.record,Qt=$e.onExpand,Gt=$e.expanded,Ln=$e.expandable,Cn="".concat(Dt,"-row-expand-icon");if(!Ln)return Te.createElement("span",{className:pt()(Cn,"".concat(Dt,"-row-spaced"))});var wn=function(jn){Qt(Ot,jn),jn.stopPropagation()};return Te.createElement("span",{className:pt()(Cn,(ot={},(0,Ke.Z)(ot,"".concat(Dt,"-row-expanded"),Gt),(0,Ke.Z)(ot,"".concat(Dt,"-row-collapsed"),!Gt),ot)),onClick:wn})}function gi($e,ot,Dt){var Ot=[];function Qt(Gt){(Gt||[]).forEach(function(Ln,Cn){Ot.push(ot(Ln,Cn)),Qt(Ln[Dt])})}return Qt($e),Ot}function dt($e,ot,Dt){var Ot=cr($e),Qt=Ot.expandIcon,Gt=Ot.expandedRowKeys,Ln=Ot.defaultExpandedRowKeys,Cn=Ot.defaultExpandAllRows,wn=Ot.expandedRowRender,ti=Ot.onExpand,jn=Ot.onExpandedRowsChange,qn=Ot.childrenColumnName,Ei=Qt||bi,Pi=qn||"children",mi=Te.useMemo(function(){return wn?"row":$e.expandable&&$e.internalHooks===Re&&$e.expandable.__PARENT_RENDER_ICON__||ot.some(function(oo){return oo&&(0,Ve.Z)(oo)==="object"&&oo[Pi]})?"nest":!1},[!!wn,ot]),Ki=Te.useState(function(){return Ln||(Cn?gi(ot,Dt,Pi):[])}),Si=(0,at.Z)(Ki,2),nr=Si[0],Xi=Si[1],ar=Te.useMemo(function(){return new Set(Gt||nr||[])},[Gt,nr]),Ur=Te.useCallback(function(oo){var fr=Dt(oo,ot.indexOf(oo)),Ar,Eo=ar.has(fr);Eo?(ar.delete(fr),Ar=(0,$i.Z)(ar)):Ar=[].concat((0,$i.Z)(ar),[fr]),Xi(Ar),ti&&ti(!Eo,oo),jn&&jn(Ar)},[Dt,ar,ot,ti,jn]);return[Ot,mi,ar,Ei,Pi,Ur]}function Fn($e,ot,Dt,Ot){var Qt=$e.map(function(Gt,Ln){return vt(Ln,Ln,$e,ot,Dt,Ot==null?void 0:Ot[Ln])});return(0,Ut.Z)(function(){return Qt},[Qt],function(Gt,Ln){return!(0,it.Z)(Gt,Ln)})}function ui($e){var ot=(0,Te.useRef)($e),Dt=(0,Te.useState)({}),Ot=(0,at.Z)(Dt,2),Qt=Ot[1],Gt=(0,Te.useRef)(null),Ln=(0,Te.useRef)([]);function Cn(wn){Ln.current.push(wn);var ti=Promise.resolve();Gt.current=ti,ti.then(function(){if(Gt.current===ti){var jn=Ln.current,qn=ot.current;Ln.current=[],jn.forEach(function(Ei){ot.current=Ei(ot.current)}),Gt.current=null,qn!==ot.current&&Qt({})}})}return(0,Te.useEffect)(function(){return function(){Gt.current=null}},[]),[ot.current,Cn]}function ji($e){var ot=(0,Te.useRef)($e||null),Dt=(0,Te.useRef)();function Ot(){window.clearTimeout(Dt.current)}function Qt(Ln){ot.current=Ln,Ot(),Dt.current=window.setTimeout(function(){ot.current=null,Dt.current=void 0},100)}function Gt(){return ot.current}return(0,Te.useEffect)(function(){return Ot},[]),[Qt,Gt]}function dn(){var $e=Te.useState(-1),ot=(0,at.Z)($e,2),Dt=ot[0],Ot=ot[1],Qt=Te.useState(-1),Gt=(0,at.Z)(Qt,2),Ln=Gt[0],Cn=Gt[1],wn=Te.useCallback(function(ti,jn){Ot(ti),Cn(jn)},[]);return[Dt,Ln,wn]}var vn=ye(47273),Rt=(0,vn.Z)()?window:null;function tn($e,ot){var Dt=(0,Ve.Z)($e)==="object"?$e:{},Ot=Dt.offsetHeader,Qt=Ot===void 0?0:Ot,Gt=Dt.offsetSummary,Ln=Gt===void 0?0:Gt,Cn=Dt.offsetScroll,wn=Cn===void 0?0:Cn,ti=Dt.getContainer,jn=ti===void 0?function(){return Rt}:ti,qn=jn()||Rt;return Te.useMemo(function(){var Ei=!!$e;return{isSticky:Ei,stickyClassName:Ei?"".concat(ot,"-sticky-holder"):"",offsetHeader:Qt,offsetSummary:Ln,offsetScroll:wn,container:qn}},[wn,Qt,Ln,ot,qn])}function yn($e,ot,Dt){var Ot=(0,Te.useMemo)(function(){for(var Qt=[],Gt=[],Ln=0,Cn=0,wn=0;wn<ot;wn+=1)if(Dt==="rtl"){Gt[wn]=Cn,Cn+=$e[wn]||0;var ti=ot-wn-1;Qt[ti]=Ln,Ln+=$e[ti]||0}else{Qt[wn]=Ln,Ln+=$e[wn]||0;var jn=ot-wn-1;Gt[jn]=Cn,Cn+=$e[jn]||0}return{left:Qt,right:Gt}},[$e,ot,Dt]);return Ot}var an=yn;function Mn($e){var ot=$e.className,Dt=$e.children;return Te.createElement("div",{className:ot},Dt)}var bn=Mn,$n=ye(8224),Un=ye(55468),Wi=function(ot,Dt){var Ot,Qt,Gt=ot.scrollBodyRef,Ln=ot.onScroll,Cn=ot.offsetScroll,wn=ot.container,ti=rt(we,"prefixCls"),jn=((Ot=Gt.current)===null||Ot===void 0?void 0:Ot.scrollWidth)||0,qn=((Qt=Gt.current)===null||Qt===void 0?void 0:Qt.clientWidth)||0,Ei=jn&&qn*(qn/jn),Pi=Te.useRef(),mi=ui({scrollLeft:0,isHiddenScrollBar:!1}),Ki=(0,at.Z)(mi,2),Si=Ki[0],nr=Ki[1],Xi=Te.useRef({delta:0,x:0}),ar=Te.useState(!1),Ur=(0,at.Z)(ar,2),oo=Ur[0],fr=Ur[1],Ar=function(){fr(!1)},Eo=function(ir){ir.persist(),Xi.current.delta=ir.pageX-Si.scrollLeft,Xi.current.x=0,fr(!0),ir.preventDefault()},sr=function(ir){var jr,ao=ir||((jr=window)===null||jr===void 0?void 0:jr.event),lo=ao.buttons;if(!oo||lo===0){oo&&fr(!1);return}var rr=Xi.current.x+ir.pageX-Xi.current.x-Xi.current.delta;rr<=0&&(rr=0),rr+Ei>=qn&&(rr=qn-Ei),Ln({scrollLeft:rr/qn*(jn+2)}),Xi.current.x=ir.pageX},Rr=function(){if(Gt.current){var ir=(0,Un.os)(Gt.current).top,jr=ir+Gt.current.offsetHeight,ao=wn===window?document.documentElement.scrollTop+window.innerHeight:(0,Un.os)(wn).top+wn.clientHeight;jr-(0,Ft.Z)()<=ao||ir>=ao-Cn?nr(function(lo){return(0,ut.Z)((0,ut.Z)({},lo),{},{isHiddenScrollBar:!0})}):nr(function(lo){return(0,ut.Z)((0,ut.Z)({},lo),{},{isHiddenScrollBar:!1})})}},gr=function(ir){nr(function(jr){return(0,ut.Z)((0,ut.Z)({},jr),{},{scrollLeft:ir/jn*qn||0})})};return Te.useImperativeHandle(Dt,function(){return{setScrollLeft:gr}}),Te.useEffect(function(){var Zi=(0,$n.Z)(document.body,"mouseup",Ar,!1),ir=(0,$n.Z)(document.body,"mousemove",sr,!1);return Rr(),function(){Zi.remove(),ir.remove()}},[Ei,oo]),Te.useEffect(function(){var Zi=(0,$n.Z)(wn,"scroll",Rr,!1),ir=(0,$n.Z)(window,"resize",Rr,!1);return function(){Zi.remove(),ir.remove()}},[wn]),Te.useEffect(function(){Si.isHiddenScrollBar||nr(function(Zi){var ir=Gt.current;return ir?(0,ut.Z)((0,ut.Z)({},Zi),{},{scrollLeft:ir.scrollLeft/ir.scrollWidth*ir.clientWidth}):Zi})},[Si.isHiddenScrollBar]),jn<=qn||!Ei||Si.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,Ft.Z)(),width:qn,bottom:Cn},className:"".concat(ti,"-sticky-scroll")},Te.createElement("div",{onMouseDown:Eo,ref:Pi,className:pt()("".concat(ti,"-sticky-scroll-bar"),(0,Ke.Z)({},"".concat(ti,"-sticky-scroll-bar-active"),oo)),style:{width:"".concat(Ei,"px"),transform:"translate3d(".concat(Si.scrollLeft,"px, 0, 0)")}}))},qt=Te.forwardRef(Wi);function Qi($e){return null}var yr=Qi;function Dr($e){return null}var sn=Dr,ai="rc-table",xi=[],Gi={};function Di(){return"No Data"}function _i($e){var ot,Dt=(0,ut.Z)({rowKey:"key",prefixCls:ai,emptyText:Di},$e),Ot=Dt.prefixCls,Qt=Dt.className,Gt=Dt.rowClassName,Ln=Dt.style,Cn=Dt.data,wn=Dt.rowKey,ti=Dt.scroll,jn=Dt.tableLayout,qn=Dt.direction,Ei=Dt.title,Pi=Dt.footer,mi=Dt.summary,Ki=Dt.caption,Si=Dt.id,nr=Dt.showHeader,Xi=Dt.components,ar=Dt.emptyText,Ur=Dt.onRow,oo=Dt.onHeaderRow,fr=Dt.internalHooks,Ar=Dt.transformColumns,Eo=Dt.internalRefs,sr=Dt.tailor,Rr=Dt.sticky,gr=Cn||xi,Zi=!!gr.length,ir=fr===Re,jr=Te.useCallback(function(Da,cs){return(0,Ht.Z)(Xi,Da)||cs},[Xi]),ao=Te.useMemo(function(){return typeof wn=="function"?wn:function(Da){var cs=Da&&Da[wn];return cs}},[wn]),lo=jr(["body"]),rr=dn(),Lo=(0,at.Z)(rr,3),Ro=Lo[0],Wo=Lo[1],Ho=Lo[2],ja=dt(Dt,gr,ao),ea=(0,at.Z)(ja,6),Po=ea[0],$r=ea[1],po=ea[2],Ba=ea[3],Ca=ea[4],Ka=ea[5],yo=ti==null?void 0:ti.x,no=Te.useState(0),Co=(0,at.Z)(no,2),Jr=Co[0],Or=Co[1],Ai=Vn((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Dt),Po),{},{expandable:!!Po.expandedRowRender,columnTitle:Po.columnTitle,expandedKeys:po,getRowKey:ao,onTriggerExpand:Ka,expandIcon:Ba,expandIconColumnIndex:Po.expandIconColumnIndex,direction:qn,scrollWidth:ir&&sr&&typeof yo=="number"?yo:null}),ir?Ar:null),mr=(0,at.Z)(Ai,3),Fo=mr[0],Xo=mr[1],Xs=mr[2],ks=Xs!=null?Xs:yo,sl=Te.useMemo(function(){return{columns:Fo,flattenColumns:Xo}},[Fo,Xo]),va=Te.useRef(),Oa=Te.useRef(),ho=Te.useRef(),Bs=Te.useRef(),ll=Te.useRef(),ka=Te.useState(!1),Ha=(0,at.Z)(ka,2),Va=Ha[0],ds=Ha[1],Os=Te.useState(!1),ra=(0,at.Z)(Os,2),Ja=ra[0],js=ra[1],Ia=ui(new Map),So=(0,at.Z)(Ia,2),ms=So[0],Is=So[1],Cu=en(Xo),ql=Cu.map(function(Da){return ms.get(Da)}),Wa=Te.useMemo(function(){return ql},[ql.join("_")]),ul=an(Wa,Xo.length,qn),ls=ti&&Hn(ti.y),is=ti&&Hn(ks)||!!Po.fixed,hu=is&&Xo.some(function(Da){var cs=Da.fixed;return cs}),oh=Te.useRef(),Il=tn(Rr,Ot),Gu=Il.isSticky,Ku=Il.offsetHeader,_l=Il.offsetSummary,ba=Il.offsetScroll,Qa=Il.stickyClassName,Hs=Il.container,rs=Te.useMemo(function(){return mi==null?void 0:mi(gr)},[mi,gr]),Ea=(ls||Gu)&&Te.isValidElement(rs)&&rs.type===Se&&rs.props.fixed,Ws,Sl,bu;ls&&(Sl={overflowY:"scroll",maxHeight:ti.y}),is&&(Ws={overflowX:"auto"},ls||(Sl={overflowY:"hidden"}),bu={width:ks===!0?"auto":ks,minWidth:"100%"});var ac=Te.useCallback(function(Da,cs){(0,xt.Z)(va.current)&&Is(function(gl){if(gl.get(Da)!==cs){var cu=new Map(gl);return cu.set(Da,cs),cu}return gl})},[]),Kt=ji(null),wh=(0,at.Z)(Kt,2),ah=wh[0],Rc=wh[1];function vd(Da,cs){cs&&(typeof cs=="function"?cs(Da):cs.scrollLeft!==Da&&(cs.scrollLeft=Da,cs.scrollLeft!==Da&&setTimeout(function(){cs.scrollLeft=Da},0)))}var Rh=(0,kt.Z)(function(Da){var cs=Da.currentTarget,gl=Da.scrollLeft,cu=qn==="rtl",fu=typeof gl=="number"?gl:cs.scrollLeft,uc=cs||Gi;if(!Rc()||Rc()===uc){var Hh;ah(uc),vd(fu,Oa.current),vd(fu,ho.current),vd(fu,ll.current),vd(fu,(Hh=oh.current)===null||Hh===void 0?void 0:Hh.setScrollLeft)}var Gd=cs||Oa.current;if(Gd){var Tu=Gd.scrollWidth,Yu=Gd.clientWidth;if(Tu===Yu){ds(!1),js(!1);return}cu?(ds(-fu<Tu-Yu),js(-fu>0)):(ds(fu>0),js(fu<Tu-Yu))}}),Ph=function(){is&&ho.current?Rh({currentTarget:ho.current}):(ds(!1),js(!1))},cf=function(cs){var gl=cs.width;gl!==Jr&&(Ph(),Or(va.current?va.current.offsetWidth:gl))},fl=Te.useRef(!1);Te.useEffect(function(){fl.current&&Ph()},[is,Cn,Fo.length]),Te.useEffect(function(){fl.current=!0},[]);var id=Te.useState(0),Od=(0,at.Z)(id,2),Id=Od[0],Rd=Od[1],ff=Te.useState(!0),zd=(0,at.Z)(ff,2),jd=zd[0],du=zd[1];Te.useEffect(function(){(!sr||!ir)&&(ho.current instanceof Element?Rd((0,Ft.o)(ho.current).width):Rd((0,Ft.o)(Bs.current).width)),du((0,ct.G)("position","sticky"))},[]),Te.useEffect(function(){ir&&Eo&&(Eo.body.current=ho.current)});var zh=Te.useCallback(function(Da){return Te.createElement(Te.Fragment,null,Te.createElement(Qr,Da),Ea==="top"&&Te.createElement(Et,Da,rs))},[Ea,rs]),zc=Te.useCallback(function(Da){return Te.createElement(Et,Da,rs)},[rs]),Vu=jr(["table"],"table"),jh=Te.useMemo(function(){return jn||(hu?ks==="max-content"?"auto":"fixed":ls||Gu||Xo.some(function(Da){var cs=Da.ellipsis;return cs})?"fixed":"auto")},[ls,hu,Xo,jn,Gu]),rd,od={colWidths:Wa,columCount:Xo.length,stickyOffsets:ul,onHeaderRow:oo,fixHeader:ls,scroll:ti},Rl=Te.useMemo(function(){return Zi?null:typeof ar=="function"?ar():ar},[Zi,ar]),sc=Te.createElement(wi,{data:gr,measureColumnWidth:ls||is||Gu}),Hd=Te.createElement(Ir,{colWidths:Xo.map(function(Da){var cs=Da.width;return cs}),columns:Xo}),eu=Ki!=null?Te.createElement("caption",{className:"".concat(Ot,"-caption")},Ki):void 0,yd=(0,Pn.Z)(Dt,{data:!0}),Wd=(0,Pn.Z)(Dt,{aria:!0});if(ls||Gu){var lc;typeof lo=="function"?(lc=lo(gr,{scrollbarSize:Id,ref:ho,onScroll:Rh}),od.colWidths=Xo.map(function(Da,cs){var gl=Da.width,cu=cs===Xo.length-1?gl-Id:gl;return typeof cu=="number"&&!Number.isNaN(cu)?cu:0})):lc=Te.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Ws),Sl),onScroll:Rh,ref:ho,className:pt()("".concat(Ot,"-body"))},Te.createElement(Vu,(0,It.Z)({style:(0,ut.Z)((0,ut.Z)({},bu),{},{tableLayout:jh})},Wd),eu,Hd,sc,!Ea&&rs&&Te.createElement(Et,{stickyOffsets:ul,flattenColumns:Xo,columns:Fo},rs)));var Ch=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!gr.length,maxContentScroll:is&&ks==="max-content"},od),sl),{},{direction:qn,stickyClassName:Qa,onScroll:Rh});rd=Te.createElement(Te.Fragment,null,nr!==!1&&Te.createElement(si,(0,It.Z)({},Ch,{stickyTopOffset:Ku,className:"".concat(Ot,"-header"),ref:Oa}),zh),lc,Ea&&Ea!=="top"&&Te.createElement(si,(0,It.Z)({},Ch,{stickyBottomOffset:_l,className:"".concat(Ot,"-summary"),ref:ll}),zc),Gu&&Te.createElement(qt,{ref:oh,offsetScroll:ba,scrollBodyRef:ho,onScroll:Rh,container:Hs}))}else rd=Te.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Ws),Sl),className:pt()("".concat(Ot,"-content")),onScroll:Rh,ref:ho},Te.createElement(Vu,(0,It.Z)({style:(0,ut.Z)((0,ut.Z)({},bu),{},{tableLayout:jh})},Wd),eu,Hd,nr!==!1&&Te.createElement(Qr,(0,It.Z)({},od,sl)),sc,rs&&Te.createElement(Et,{stickyOffsets:ul,flattenColumns:Xo,columns:Fo},rs)));var xl=Te.createElement("div",(0,It.Z)({className:pt()(Ot,Qt,(ot={},(0,Ke.Z)(ot,"".concat(Ot,"-rtl"),qn==="rtl"),(0,Ke.Z)(ot,"".concat(Ot,"-ping-left"),Va),(0,Ke.Z)(ot,"".concat(Ot,"-ping-right"),Ja),(0,Ke.Z)(ot,"".concat(Ot,"-layout-fixed"),jn==="fixed"),(0,Ke.Z)(ot,"".concat(Ot,"-fixed-header"),ls),(0,Ke.Z)(ot,"".concat(Ot,"-fixed-column"),hu),(0,Ke.Z)(ot,"".concat(Ot,"-scroll-horizontal"),is),(0,Ke.Z)(ot,"".concat(Ot,"-has-fix-left"),Xo[0]&&Xo[0].fixed),(0,Ke.Z)(ot,"".concat(Ot,"-has-fix-right"),Xo[Xo.length-1]&&Xo[Xo.length-1].fixed==="right"),ot)),style:Ln,id:Si,ref:va},yd),Ei&&Te.createElement(bn,{className:"".concat(Ot,"-title")},Ei(gr)),Te.createElement("div",{ref:Bs,className:"".concat(Ot,"-container")},rd),Pi&&Te.createElement(bn,{className:"".concat(Ot,"-footer")},Pi(gr)));is&&(xl=Te.createElement(wt.Z,{onResize:cf},xl));var Zd=Fn(Xo,ul,qn,Fo),Js=Te.useMemo(function(){return{scrollX:ks,prefixCls:Ot,getComponent:jr,scrollbarSize:Id,direction:qn,fixedInfoList:Zd,isSticky:Gu,supportSticky:jd,componentWidth:Jr,fixHeader:ls,fixColumn:hu,horizonScroll:is,tableLayout:jh,rowClassName:Gt,expandedRowClassName:Po.expandedRowClassName,expandIcon:Ba,expandableType:$r,expandRowByClick:Po.expandRowByClick,expandedRowRender:Po.expandedRowRender,onTriggerExpand:Ka,expandIconColumnIndex:Po.expandIconColumnIndex,indentSize:Po.indentSize,allColumnsFixedLeft:Xo.every(function(Da){return Da.fixed==="left"}),emptyNode:Rl,columns:Fo,flattenColumns:Xo,onColumnResize:ac,hoverStartRow:Ro,hoverEndRow:Wo,onHover:Ho,rowExpandable:Po.rowExpandable,onRow:Ur,getRowKey:ao,expandedKeys:po,childrenColumnName:Ca}},[ks,Ot,jr,Id,qn,Zd,Gu,jd,Jr,ls,hu,is,jh,Gt,Po.expandedRowClassName,Ba,$r,Po.expandRowByClick,Po.expandedRowRender,Ka,Po.expandIconColumnIndex,Po.indentSize,Rl,Fo,Xo,ac,Ro,Wo,Ho,Po.rowExpandable,Ur,ao,po,Ca]);return Te.createElement(we.Provider,{value:Js},xl)}function wr($e){return ge(_i,$e)}var er=wr();er.EXPAND_COLUMN=be,er.INTERNAL_HOOKS=Re,er.Column=yr,er.ColumnGroup=sn,er.Summary=Xe;var Oi=er,br=ye(45680),En=Pt(null),wo=Pt(null);function An($e,ot,Dt){var Ot=ot||1;return Dt[$e+Ot]-(Dt[$e]||0)}function Br($e){var ot=$e.rowInfo,Dt=$e.column,Ot=$e.colIndex,Qt=$e.indent,Gt=$e.index,Ln=$e.renderIndex,Cn=$e.record,wn=$e.style,ti=$e.className,jn=$e.inverse,qn=$e.getHeight,Ei=Dt.render,Pi=Dt.dataIndex,mi=Dt.className,Ki=Dt.width,Si=rt(wo,["columnsOffset"]),nr=Si.columnsOffset,Xi=_t(ot,Dt,Ot,Qt,Gt),ar=Xi.key,Ur=Xi.fixedInfo,oo=Xi.appendCellNode,fr=Xi.additionalCellProps,Ar=fr.style,Eo=fr.colSpan,sr=Eo===void 0?1:Eo,Rr=fr.rowSpan,gr=Rr===void 0?1:Rr,Zi=Ot-1,ir=An(Zi,sr,nr),jr=sr>1?Ki-ir:0,ao=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ar),wn),{},{flex:"0 0 ".concat(ir,"px"),width:"".concat(ir,"px"),marginRight:jr,pointerEvents:"auto"}),lo=Te.useMemo(function(){return jn?gr<=1:sr===0||gr===0||gr>1},[gr,sr,jn]);lo?ao.visibility="hidden":jn&&(ao.height=qn==null?void 0:qn(gr));var rr=lo?function(){return null}:Ei,Lo={};return(gr===0||sr===0)&&(Lo.rowSpan=1,Lo.colSpan=1),Te.createElement(Rn,(0,It.Z)({className:pt()(mi,ti),ellipsis:Dt.ellipsis,align:Dt.align,scope:Dt.rowScope,component:"div",prefixCls:ot.prefixCls,key:ar,record:Cn,index:Gt,renderIndex:Ln,dataIndex:Pi,render:rr,shouldCellUpdate:Dt.shouldCellUpdate},Ur,{appendNode:oo,additionalProps:(0,ut.Z)((0,ut.Z)({},fr),{},{style:ao},Lo)}))}var ta=Br,bo=["data","index","className","rowKey","style","extra","getHeight"],ca=Te.forwardRef(function($e,ot){var Dt=$e.data,Ot=$e.index,Qt=$e.className,Gt=$e.rowKey,Ln=$e.style,Cn=$e.extra,wn=$e.getHeight,ti=(0,Me.Z)($e,bo),jn=Dt.record,qn=Dt.indent,Ei=Dt.index,Pi=rt(we,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mi=Pi.scrollX,Ki=Pi.flattenColumns,Si=Pi.prefixCls,nr=Pi.fixColumn,Xi=Pi.componentWidth,ar=bt(jn,Gt,Ot,qn),Ur=ar.rowSupportExpand,oo=ar.expanded,fr=ar.rowProps,Ar=ar.expandedRowRender,Eo=ar.expandedRowClassName,sr;if(Ur&&oo){var Rr=Ar(jn,Ot,qn+1,oo),gr=Eo==null?void 0:Eo(jn,Ot,qn),Zi={};nr&&(Zi={style:(0,Ke.Z)({},"--virtual-width","".concat(Xi,"px"))});var ir="".concat(Si,"-expanded-row-cell");sr=Te.createElement("div",{className:pt()("".concat(Si,"-expanded-row"),"".concat(Si,"-expanded-row-level-").concat(qn+1),gr)},Te.createElement(Rn,{component:"div",prefixCls:Si,className:pt()(ir,(0,Ke.Z)({},"".concat(ir,"-fixed"),nr)),additionalProps:Zi},Rr))}var jr=(0,ut.Z)((0,ut.Z)({},Ln),{},{width:mi});Cn&&(jr.position="absolute",jr.pointerEvents="none");var ao=Te.createElement("div",(0,It.Z)({},fr,ti,{ref:Ur?null:ot,className:pt()(Qt,"".concat(Si,"-row"),fr==null?void 0:fr.className,(0,Ke.Z)({},"".concat(Si,"-row-extra"),Cn)),style:(0,ut.Z)((0,ut.Z)({},jr),fr==null?void 0:fr.style)}),Ki.map(function(lo,rr){return Te.createElement(ta,{key:rr,rowInfo:ar,column:lo,colIndex:rr,indent:qn,index:Ot,renderIndex:Ei,record:jn,inverse:Cn,getHeight:wn})}));return Ur?Te.createElement("div",{ref:ot},ao,sr):ao}),qo=me(ca),lr=qo,tr=Te.forwardRef(function($e,ot){var Dt=$e.data,Ot=$e.onScroll,Qt=rt(we,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Gt=Qt.flattenColumns,Ln=Qt.onColumnResize,Cn=Qt.getRowKey,wn=Qt.expandedKeys,ti=Qt.prefixCls,jn=Qt.childrenColumnName,qn=Qt.emptyNode,Ei=Qt.scrollX,Pi=rt(En),mi=Pi.scrollY,Ki=Pi.listItemHeight,Si=Te.useRef(),nr=Jt(Dt,jn,wn,Cn),Xi=Te.useMemo(function(){var sr=0;return Gt.map(function(Rr){var gr=Rr.width,Zi=Rr.key;return sr+=gr,[Zi,gr,sr]})},[Gt]),ar=Te.useMemo(function(){return Xi.map(function(sr){return sr[2]})},[Xi]);Te.useEffect(function(){Xi.forEach(function(sr){var Rr=(0,at.Z)(sr,2),gr=Rr[0],Zi=Rr[1];Ln(gr,Zi)})},[Xi]),Te.useImperativeHandle(ot,function(){var sr={};return Object.defineProperty(sr,"scrollLeft",{get:function(){var gr;return((gr=Si.current)===null||gr===void 0?void 0:gr.getScrollInfo().x)||0},set:function(gr){var Zi;(Zi=Si.current)===null||Zi===void 0||Zi.scrollTo({left:gr})}}),sr});var Ur=function(Rr,gr){var Zi,ir=(Zi=nr[gr])===null||Zi===void 0?void 0:Zi.record,jr=Rr.onCell;if(jr){var ao,lo=jr(ir,gr);return(ao=lo==null?void 0:lo.rowSpan)!==null&&ao!==void 0?ao:1}return 1},oo=function(Rr){var gr=Rr.start,Zi=Rr.end,ir=Rr.getSize,jr=Rr.offsetY;if(Zi<0)return null;for(var ao=Gt.filter(function(yo){return Ur(yo,gr)===0}),lo=gr,rr=function(no){if(ao=ao.filter(function(Co){return Ur(Co,no)===0}),!ao.length)return lo=no,"break"},Lo=gr;Lo>=0;Lo-=1){var Ro=rr(Lo);if(Ro==="break")break}for(var Wo=Gt.filter(function(yo){return Ur(yo,Zi)!==1}),Ho=Zi,ja=function(no){if(Wo=Wo.filter(function(Co){return Ur(Co,no)!==1}),!Wo.length)return Ho=Math.max(no-1,Zi),"break"},ea=Zi;ea<nr.length;ea+=1){var Po=ja(ea);if(Po==="break")break}for(var $r=[],po=function(no){var Co=nr[no];if(!Co)return"continue";Gt.some(function(Jr){return Ur(Jr,no)>1})&&$r.push(no)},Ba=lo;Ba<=Ho;Ba+=1)var Ca=po(Ba);var Ka=$r.map(function(yo){var no=nr[yo],Co=Cn(no.record,yo),Jr=function(mr){var Fo=yo+mr-1,Xo=Cn(nr[Fo].record,Fo),Xs=ir(Co,Xo);return Xs.bottom-Xs.top},Or=ir(Co);return Te.createElement(lr,{key:yo,data:no,rowKey:Co,index:yo,style:{top:-jr+Or.top},extra:!0,getHeight:Jr})});return Ka},fr=Te.useMemo(function(){return{columnsOffset:ar}},[ar]),Ar="".concat(ti,"-tbody"),Eo;return nr.length?Eo=Te.createElement(br.Z,{fullHeight:!1,ref:Si,className:pt()(Ar,"".concat(Ar,"-virtual")),height:mi,itemHeight:Ki||24,data:nr,itemKey:function(Rr){return Cn(Rr.record)},scrollWidth:Ei,onVirtualScroll:function(Rr){var gr=Rr.x;Ot({scrollLeft:gr})},extraRender:oo},function(sr,Rr,gr){var Zi=Cn(sr.record,Rr);return Te.createElement(lr,(0,It.Z)({data:sr,rowKey:Zi,index:Rr},gr))}):Eo=Te.createElement("div",{className:pt()("".concat(ti,"-placeholder"))},Te.createElement(Rn,{component:"div",prefixCls:ti},qn)),Te.createElement(wo.Provider,{value:fr},Eo)}),to=me(tr),ko=to,ki=function(ot,Dt){var Ot=Dt.ref,Qt=Dt.onScroll;return Te.createElement(ko,{ref:Ot,data:ot,onScroll:Qt})},Ue=100;function fo($e){var ot=$e.columns,Dt=$e.scroll,Ot=$e.prefixCls,Qt=Ot===void 0?ai:Ot,Gt=$e.className,Ln=$e.listItemHeight,Cn=Dt||{},wn=Cn.x,ti=Cn.y;typeof wn!="number"&&(wn=((ot||[]).length+1)*Ue),typeof ti!="number"&&(ti=500);var jn=Te.useMemo(function(){return{scrollY:ti,listItemHeight:Ln}},[ti,Ln]);return Te.createElement(En.Provider,{value:jn},Te.createElement(Oi,(0,It.Z)({},$e,{className:pt()(Gt,"".concat(Qt,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},Dt),{},{x:wn}),components:{body:ki},columns:ot,internalHooks:Re,tailor:!0})))}function _o($e){return ge(fo,$e)}var ro=_o(),Yo=null;function ya($e){return null}var Lr=ya;function Fr($e){return null}var uo=Fr,Xr=ye(2738),Zo=ye(68031),oa=ye(36355),ur=ye(93891),hr=ye(19716),ri=ye(8628),Er=ye(31724),Io=ye(58421),Ma=ye(71418),Sa=ye(88088);function Ta($e){return function(Dt){let{prefixCls:Ot,onExpand:Qt,record:Gt,expanded:Ln,expandable:Cn}=Dt;const wn=`${Ot}-row-expand-icon`;return Te.createElement("button",{type:"button",onClick:ti=>{Qt(Gt,ti),ti.stopPropagation()},className:pt()(wn,{[`${wn}-spaced`]:!Cn,[`${wn}-expanded`]:Cn&&Ln,[`${wn}-collapsed`]:Cn&&!Ln}),"aria-label":Ln?$e.collapse:$e.expand,"aria-expanded":Ln})}}var Ra=Ta;function Ga($e,ot){return"key"in $e&&$e.key!==void 0&&$e.key!==null?$e.key:$e.dataIndex?Array.isArray($e.dataIndex)?$e.dataIndex.join("."):$e.dataIndex:ot}function Vs($e,ot){return ot?`${ot}-${$e}`:`${$e}`}function us($e,ot){return typeof $e=="function"?$e(ot):$e}function Ys($e,ot){const Dt=us($e,ot);return Object.prototype.toString.call(Dt)==="[object Object]"?"":Dt}var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xs=hn,yh=ye(7657),El=function(ot,Dt){return Te.createElement(yh.Z,(0,It.Z)({},ot,{ref:Dt,icon:xs}))},$o=Te.forwardRef(El),To=$o,as=ye(56762);function ma($e){const ot=Te.useRef($e),Dt=(0,as.Z)();return[()=>ot.current,Ot=>{ot.current=Ot,Dt()}]}var No=ye(3113),fa=ye(24905),al=ye(38854),Kr=ye(64165),zo=ye(20834),Oo=ye(40875),zi=ye(5112),gs=ye(17574),ws=ye(47472),dl=ye(92832);function su($e){let{value:ot,onChange:Dt,filterSearch:Ot,tablePrefixCls:Qt,locale:Gt}=$e;return Ot?Te.createElement("div",{className:`${Qt}-filter-dropdown-search`},Te.createElement(dl.default,{prefix:Te.createElement(ws.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:Dt,value:ot,htmlSize:1,className:`${Qt}-filter-dropdown-search-input`})):null}var xu=su,Fi=ye(10228);const Ua=$e=>{const{keyCode:ot}=$e;ot===Fi.Z.ENTER&&$e.stopPropagation()};var Ql=Te.forwardRef(($e,ot)=>Te.createElement("div",{className:$e.className,onClick:Dt=>Dt.stopPropagation(),onKeyDown:Ua,ref:ot},$e.children));function lu($e){let ot=[];return($e||[]).forEach(Dt=>{let{value:Ot,children:Qt}=Dt;ot.push(Ot),Qt&&(ot=[].concat((0,$i.Z)(ot),(0,$i.Z)(lu(Qt))))}),ot}function uu($e){return $e.some(ot=>{let{children:Dt}=ot;return Dt})}function so($e,ot){return typeof ot=="string"||typeof ot=="number"?ot==null?void 0:ot.toString().toLowerCase().includes($e.trim().toLowerCase()):!1}function Sh($e){let{filters:ot,prefixCls:Dt,filteredKeys:Ot,filterMultiple:Qt,searchValue:Gt,filterSearch:Ln}=$e;return ot.map((Cn,wn)=>{const ti=String(Cn.value);if(Cn.children)return{key:ti||wn,label:Cn.text,popupClassName:`${Dt}-dropdown-submenu`,children:Sh({filters:Cn.children,prefixCls:Dt,filteredKeys:Ot,filterMultiple:Qt,searchValue:Gt,filterSearch:Ln})};const jn=Qt?fa.default:zi.ZP,qn={key:Cn.value!==void 0?ti:wn,label:Te.createElement(Te.Fragment,null,Te.createElement(jn,{checked:Ot.includes(ti)}),Te.createElement("span",null,Cn.text))};return Gt.trim()?typeof Ln=="function"?Ln(Gt,Cn)?qn:null:so(Gt,Cn.text)?qn:null:qn})}function Ll($e){var ot,Dt;const{tablePrefixCls:Ot,prefixCls:Qt,column:Gt,dropdownPrefixCls:Ln,columnKey:Cn,filterMultiple:wn,filterMode:ti="menu",filterSearch:jn=!1,filterState:qn,triggerFilter:Ei,locale:Pi,children:mi,getPopupContainer:Ki}=$e,{filterDropdownOpen:Si,onFilterDropdownOpenChange:nr,filterResetToDefaultFilteredValue:Xi,defaultFilteredValue:ar,filterDropdownVisible:Ur,onFilterDropdownVisibleChange:oo}=Gt,[fr,Ar]=Te.useState(!1),Eo=!!(qn&&(!((ot=qn.filteredKeys)===null||ot===void 0)&&ot.length||qn.forceFiltered)),sr=Ai=>{Ar(Ai),nr==null||nr(Ai),oo==null||oo(Ai)},Rr=(Dt=Si!=null?Si:Ur)!==null&&Dt!==void 0?Dt:fr,gr=qn==null?void 0:qn.filteredKeys,[Zi,ir]=ma(gr||[]),jr=Ai=>{let{selectedKeys:mr}=Ai;ir(mr)},ao=(Ai,mr)=>{let{node:Fo,checked:Xo}=mr;jr(wn?{selectedKeys:Ai}:{selectedKeys:Xo&&Fo.key?[Fo.key]:[]})};Te.useEffect(()=>{fr&&jr({selectedKeys:gr||[]})},[gr]);const[lo,rr]=Te.useState([]),Lo=Ai=>{rr(Ai)},[Ro,Wo]=Te.useState(""),Ho=Ai=>{const{value:mr}=Ai.target;Wo(mr)};Te.useEffect(()=>{fr||Wo("")},[fr]);const ja=Ai=>{const mr=Ai&&Ai.length?Ai:null;if(mr===null&&(!qn||!qn.filteredKeys)||(0,it.Z)(mr,qn==null?void 0:qn.filteredKeys,!0))return null;Ei({column:Gt,key:Cn,filteredKeys:mr})},ea=()=>{sr(!1),ja(Zi())},Po=function(){let{confirm:Ai,closeDropdown:mr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ai&&ja([]),mr&&sr(!1),Wo(""),ir(Xi?(ar||[]).map(Fo=>String(Fo)):[])},$r=function(){let{closeDropdown:Ai}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ai&&sr(!1),ja(Zi())},po=Ai=>{Ai&&gr!==void 0&&ir(gr||[]),sr(Ai),!Ai&&!Gt.filterDropdown&&ea()},Ba=pt()({[`${Ln}-menu-without-submenu`]:!uu(Gt.filters||[])}),Ca=Ai=>{if(Ai.target.checked){const mr=lu(Gt==null?void 0:Gt.filters).map(Fo=>String(Fo));ir(mr)}else ir([])},Ka=Ai=>{let{filters:mr}=Ai;return(mr||[]).map((Fo,Xo)=>{const Xs=String(Fo.value),ks={title:Fo.text,key:Fo.value!==void 0?Xs:Xo};return Fo.children&&(ks.children=Ka({filters:Fo.children})),ks})},yo=Ai=>{var mr;return Object.assign(Object.assign({},Ai),{text:Ai.title,value:Ai.key,children:((mr=Ai.children)===null||mr===void 0?void 0:mr.map(Fo=>yo(Fo)))||[]})};let no;if(typeof Gt.filterDropdown=="function")no=Gt.filterDropdown({prefixCls:`${Ln}-custom`,setSelectedKeys:Ai=>jr({selectedKeys:Ai}),selectedKeys:Zi(),confirm:$r,clearFilters:Po,filters:Gt.filters,visible:Rr,close:()=>{sr(!1)}});else if(Gt.filterDropdown)no=Gt.filterDropdown;else{const Ai=Zi()||[],mr=()=>(Gt.filters||[]).length===0?Te.createElement(Kr.Z,{image:Kr.Z.PRESENTED_IMAGE_SIMPLE,description:Pi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ti==="tree"?Te.createElement(Te.Fragment,null,Te.createElement(xu,{filterSearch:jn,value:Ro,onChange:Ho,tablePrefixCls:Ot,locale:Pi}),Te.createElement("div",{className:`${Ot}-filter-dropdown-tree`},wn?Te.createElement(fa.default,{checked:Ai.length===lu(Gt.filters).length,indeterminate:Ai.length>0&&Ai.length<lu(Gt.filters).length,className:`${Ot}-filter-dropdown-checkall`,onChange:Ca},Pi.filterCheckall):null,Te.createElement(gs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:wn,checkStrictly:!wn,className:`${Ln}-menu`,onCheck:ao,checkedKeys:Ai,selectedKeys:Ai,showIcon:!1,treeData:Ka({filters:Gt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ro.trim()?Xo=>typeof jn=="function"?jn(Ro,yo(Xo)):so(Ro,Xo.title):void 0}))):Te.createElement(Te.Fragment,null,Te.createElement(xu,{filterSearch:jn,value:Ro,onChange:Ho,tablePrefixCls:Ot,locale:Pi}),Te.createElement(zo.default,{selectable:!0,multiple:wn,prefixCls:`${Ln}-menu`,className:Ba,onSelect:jr,onDeselect:jr,selectedKeys:Ai,getPopupContainer:Ki,openKeys:lo,onOpenChange:Lo,items:Sh({filters:Gt.filters||[],filterSearch:jn,prefixCls:Qt,filteredKeys:Zi(),filterMultiple:wn,searchValue:Ro})})),Fo=()=>Xi?(0,it.Z)((ar||[]).map(Xo=>String(Xo)),Ai,!0):Ai.length===0;no=Te.createElement(Te.Fragment,null,mr(),Te.createElement("div",{className:`${Qt}-dropdown-btns`},Te.createElement(No.ZP,{type:"link",size:"small",disabled:Fo(),onClick:()=>Po()},Pi.filterReset),Te.createElement(No.ZP,{type:"primary",size:"small",onClick:ea},Pi.filterConfirm)))}Gt.filterDropdown&&(no=Te.createElement(Oo.J,{selectable:void 0},no));const Co=()=>Te.createElement(Ql,{className:`${Qt}-dropdown`},no);let Jr;typeof Gt.filterIcon=="function"?Jr=Gt.filterIcon(Eo):Gt.filterIcon?Jr=Gt.filterIcon:Jr=Te.createElement(To,null);const{direction:Or}=Te.useContext(oa.E_);return Te.createElement("div",{className:`${Qt}-column`},Te.createElement("span",{className:`${Ot}-column-title`},mi),Te.createElement(al.Z,{dropdownRender:Co,trigger:["click"],open:Rr,onOpenChange:po,getPopupContainer:Ki,placement:Or==="rtl"?"bottomLeft":"bottomRight"},Te.createElement("span",{role:"button",tabIndex:-1,className:pt()(`${Qt}-trigger`,{active:Eo}),onClick:Ai=>{Ai.stopPropagation()}},Jr)))}var Ml=Ll;function ml($e,ot,Dt){let Ot=[];return($e||[]).forEach((Qt,Gt)=>{var Ln;const Cn=Vs(Gt,Dt);if(Qt.filters||"filterDropdown"in Qt||"onFilter"in Qt)if("filteredValue"in Qt){let wn=Qt.filteredValue;"filterDropdown"in Qt||(wn=(Ln=wn==null?void 0:wn.map(String))!==null&&Ln!==void 0?Ln:wn),Ot.push({column:Qt,key:Ga(Qt,Cn),filteredKeys:wn,forceFiltered:Qt.filtered})}else Ot.push({column:Qt,key:Ga(Qt,Cn),filteredKeys:ot&&Qt.defaultFilteredValue?Qt.defaultFilteredValue:void 0,forceFiltered:Qt.filtered});"children"in Qt&&(Ot=[].concat((0,$i.Z)(Ot),(0,$i.Z)(ml(Qt.children,ot,Cn))))}),Ot}function Wu($e,ot,Dt,Ot,Qt,Gt,Ln,Cn){return Dt.map((wn,ti)=>{const jn=Vs(ti,Cn),{filterMultiple:qn=!0,filterMode:Ei,filterSearch:Pi}=wn;let mi=wn;if(mi.filters||mi.filterDropdown){const Ki=Ga(mi,jn),Si=Ot.find(nr=>{let{key:Xi}=nr;return Ki===Xi});mi=Object.assign(Object.assign({},mi),{title:nr=>Te.createElement(Ml,{tablePrefixCls:$e,prefixCls:`${$e}-filter`,dropdownPrefixCls:ot,column:mi,columnKey:Ki,filterState:Si,filterMultiple:qn,filterMode:Ei,filterSearch:Pi,triggerFilter:Gt,locale:Qt,getPopupContainer:Ln},us(wn.title,nr))})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:Wu($e,ot,mi.children,Ot,Qt,Gt,Ln,jn)})),mi})}function wu($e){const ot={};return $e.forEach(Dt=>{let{key:Ot,filteredKeys:Qt,column:Gt}=Dt;const{filters:Ln,filterDropdown:Cn}=Gt;if(Cn)ot[Ot]=Qt||null;else if(Array.isArray(Qt)){const wn=lu(Ln);ot[Ot]=wn.filter(ti=>Qt.includes(String(ti)))}else ot[Ot]=null}),ot}function vl($e,ot){return ot.reduce((Dt,Ot)=>{const{column:{onFilter:Qt,filters:Gt},filteredKeys:Ln}=Ot;return Qt&&Ln&&Ln.length?Dt.filter(Cn=>Ln.some(wn=>{const ti=lu(Gt),jn=ti.findIndex(Ei=>String(Ei)===String(wn)),qn=jn!==-1?ti[jn]:wn;return Qt(qn,Cn)})):Dt},$e)}const Al=$e=>$e.flatMap(ot=>"children"in ot?[ot].concat((0,$i.Z)(Al(ot.children||[]))):[ot]);function Bh($e){let{prefixCls:ot,dropdownPrefixCls:Dt,mergedColumns:Ot,onFilterChange:Qt,getPopupContainer:Gt,locale:Ln}=$e;const Cn=Te.useMemo(()=>Al(Ot||[]),[Ot]),[wn,ti]=Te.useState(()=>ml(Cn,!0)),jn=Te.useMemo(()=>{const mi=ml(Cn,!1);if(mi.length===0)return mi;let Ki=!0,Si=!0;if(mi.forEach(nr=>{let{filteredKeys:Xi}=nr;Xi!==void 0?Ki=!1:Si=!1}),Ki){const nr=(Cn||[]).map((Xi,ar)=>Ga(Xi,Vs(ar)));return wn.filter(Xi=>{let{key:ar}=Xi;return nr.includes(ar)}).map(Xi=>{const ar=Cn[nr.findIndex(Ur=>Ur===Xi.key)];return Object.assign(Object.assign({},Xi),{column:Object.assign(Object.assign({},Xi.column),ar),forceFiltered:ar.filtered})})}return mi},[Cn,wn]),qn=Te.useMemo(()=>wu(jn),[jn]),Ei=mi=>{const Ki=jn.filter(Si=>{let{key:nr}=Si;return nr!==mi.key});Ki.push(mi),ti(Ki),Qt(wu(Ki),Ki)};return[mi=>Wu(ot,Dt,mi,jn,Ln,Ei,Gt),jn,qn]}var _h=Bh;function Oh($e,ot,Dt){const Ot=Te.useRef({});function Qt(Gt){if(!Ot.current||Ot.current.data!==$e||Ot.current.childrenColumnName!==ot||Ot.current.getRowKey!==Dt){let Cn=function(wn){wn.forEach((ti,jn)=>{const qn=Dt(ti,jn);Ln.set(qn,ti),ti&&typeof ti=="object"&&ot in ti&&Cn(ti[ot]||[])})};const Ln=new Map;Cn($e),Ot.current={data:$e,childrenColumnName:ot,kvMap:Ln,getRowKey:Dt}}return Ot.current.kvMap.get(Gt)}return[Qt]}var gd=ye(50371),Ih=function($e,ot){var Dt={};for(var Ot in $e)Object.prototype.hasOwnProperty.call($e,Ot)&&ot.indexOf(Ot)<0&&(Dt[Ot]=$e[Ot]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Ot=Object.getOwnPropertySymbols($e);Qt<Ot.length;Qt++)ot.indexOf(Ot[Qt])<0&&Object.prototype.propertyIsEnumerable.call($e,Ot[Qt])&&(Dt[Ot[Qt]]=$e[Ot[Qt]]);return Dt};const Zu=10;function Bl($e,ot){const Dt={current:$e.current,pageSize:$e.pageSize};return Object.keys(ot&&typeof ot=="object"?ot:{}).forEach(Qt=>{const Gt=$e[Qt];typeof Gt!="function"&&(Dt[Qt]=Gt)}),Dt}function Ol($e,ot,Dt){const Ot=Dt&&typeof Dt=="object"?Dt:{},{total:Qt=0}=Ot,Gt=Ih(Ot,["total"]),[Ln,Cn]=(0,Te.useState)(()=>({current:"defaultCurrent"in Gt?Gt.defaultCurrent:1,pageSize:"defaultPageSize"in Gt?Gt.defaultPageSize:Zu})),wn=(0,gd.Z)(Ln,Gt,{total:Qt>0?Qt:$e}),ti=Math.ceil((Qt||$e)/wn.pageSize);wn.current>ti&&(wn.current=ti||1);const jn=(Ei,Pi)=>{Cn({current:Ei!=null?Ei:1,pageSize:Pi||wn.pageSize})},qn=(Ei,Pi)=>{var mi;Dt&&((mi=Dt.onChange)===null||mi===void 0||mi.call(Dt,Ei,Pi)),jn(Ei,Pi),ot(Ei,Pi||(wn==null?void 0:wn.pageSize))};return Dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},wn),{onChange:qn}),jn]}var pd=Ol,ed=ye(84105),Pu=ye(35654),Bo=ye(90782),da=ye(71430),cl=ye(18929);const Ps={},Cs="SELECT_ALL",es="SELECT_INVERT",hs="SELECT_NONE",Ms=[],bs=($e,ot)=>{let Dt=[];return(ot||[]).forEach(Ot=>{Dt.push(Ot),Ot&&typeof Ot=="object"&&$e in Ot&&(Dt=[].concat((0,$i.Z)(Dt),(0,$i.Z)(bs($e,Ot[$e]))))}),Dt};var $l=($e,ot)=>{const{preserveSelectedRowKeys:Dt,selectedRowKeys:Ot,defaultSelectedRowKeys:Qt,getCheckboxProps:Gt,onChange:Ln,onSelect:Cn,onSelectAll:wn,onSelectInvert:ti,onSelectNone:jn,onSelectMultiple:qn,columnWidth:Ei,type:Pi,selections:mi,fixed:Ki,renderCell:Si,hideSelectAll:nr,checkStrictly:Xi=!0}=ot||{},{prefixCls:ar,data:Ur,pageData:oo,getRecordByKey:fr,getRowKey:Ar,expandType:Eo,childrenColumnName:sr,locale:Rr,getPopupContainer:gr}=$e,[Zi,ir]=(0,cl.Z)(Ot||Qt||Ms,{value:Ot}),jr=Te.useRef(new Map),ao=(0,Te.useCallback)(yo=>{if(Dt){const no=new Map;yo.forEach(Co=>{let Jr=fr(Co);!Jr&&jr.current.has(Co)&&(Jr=jr.current.get(Co)),no.set(Co,Jr)}),jr.current=no}},[fr,Dt]);Te.useEffect(()=>{ao(Zi)},[Zi]);const{keyEntities:lo}=(0,Te.useMemo)(()=>{if(Xi)return{keyEntities:null};let yo=Ur;if(Dt){const no=new Set(Ur.map((Jr,Or)=>Ar(Jr,Or))),Co=Array.from(jr.current).reduce((Jr,Or)=>{let[Ai,mr]=Or;return no.has(Ai)?Jr:Jr.concat(mr)},[]);yo=[].concat((0,$i.Z)(yo),(0,$i.Z)(Co))}return(0,da.I8)(yo,{externalGetKey:Ar,childrenPropName:sr})},[Ur,Ar,Xi,sr,Dt]),rr=(0,Te.useMemo)(()=>bs(sr,oo),[sr,oo]),Lo=(0,Te.useMemo)(()=>{const yo=new Map;return rr.forEach((no,Co)=>{const Jr=Ar(no,Co),Or=(Gt?Gt(no):null)||{};yo.set(Jr,Or)}),yo},[rr,Ar,Gt]),Ro=(0,Te.useCallback)(yo=>{var no;return!!(!((no=Lo.get(Ar(yo)))===null||no===void 0)&&no.disabled)},[Lo,Ar]),[Wo,Ho]=(0,Te.useMemo)(()=>{if(Xi)return[Zi||[],[]];const{checkedKeys:yo,halfCheckedKeys:no}=(0,Bo.S)(Zi,!0,lo,Ro);return[yo||[],no]},[Zi,Xi,lo,Ro]),ja=(0,Te.useMemo)(()=>{const yo=Pi==="radio"?Wo.slice(0,1):Wo;return new Set(yo)},[Wo,Pi]),ea=(0,Te.useMemo)(()=>Pi==="radio"?new Set:new Set(Ho),[Ho,Pi]),[Po,$r]=(0,Te.useState)(null);Te.useEffect(()=>{ot||ir(Ms)},[!!ot]);const po=(0,Te.useCallback)((yo,no)=>{let Co,Jr;ao(yo),Dt?(Co=yo,Jr=yo.map(Or=>jr.current.get(Or))):(Co=[],Jr=[],yo.forEach(Or=>{const Ai=fr(Or);Ai!==void 0&&(Co.push(Or),Jr.push(Ai))})),ir(Co),Ln==null||Ln(Co,Jr,{type:no})},[ir,fr,Ln,Dt]),Ba=(0,Te.useCallback)((yo,no,Co,Jr)=>{if(Cn){const Or=Co.map(Ai=>fr(Ai));Cn(fr(yo),no,Or,Jr)}po(Co,"single")},[Cn,fr,po]),Ca=(0,Te.useMemo)(()=>!mi||nr?null:(mi===!0?[Cs,es,hs]:mi).map(no=>no===Cs?{key:"all",text:Rr.selectionAll,onSelect(){po(Ur.map((Co,Jr)=>Ar(Co,Jr)).filter(Co=>{const Jr=Lo.get(Co);return!(Jr!=null&&Jr.disabled)||ja.has(Co)}),"all")}}:no===es?{key:"invert",text:Rr.selectInvert,onSelect(){const Co=new Set(ja);oo.forEach((Or,Ai)=>{const mr=Ar(Or,Ai),Fo=Lo.get(mr);Fo!=null&&Fo.disabled||(Co.has(mr)?Co.delete(mr):Co.add(mr))});const Jr=Array.from(Co);ti&&ti(Jr),po(Jr,"invert")}}:no===hs?{key:"none",text:Rr.selectNone,onSelect(){jn==null||jn(),po(Array.from(ja).filter(Co=>{const Jr=Lo.get(Co);return Jr==null?void 0:Jr.disabled}),"none")}}:no).map(no=>Object.assign(Object.assign({},no),{onSelect:function(){for(var Co,Jr,Or=arguments.length,Ai=new Array(Or),mr=0;mr<Or;mr++)Ai[mr]=arguments[mr];(Jr=no.onSelect)===null||Jr===void 0||(Co=Jr).call.apply(Co,[no].concat(Ai)),$r(null)}})),[mi,ja,oo,Ar,ti,po]);return[(0,Te.useCallback)(yo=>{var no;if(!ot)return yo.filter(ka=>ka!==Ps);let Co=(0,$i.Z)(yo);const Jr=new Set(ja),Or=rr.map(Ar).filter(ka=>!Lo.get(ka).disabled),Ai=Or.every(ka=>Jr.has(ka)),mr=Or.some(ka=>Jr.has(ka)),Fo=()=>{const ka=[];Ai?Or.forEach(Va=>{Jr.delete(Va),ka.push(Va)}):Or.forEach(Va=>{Jr.has(Va)||(Jr.add(Va),ka.push(Va))});const Ha=Array.from(Jr);wn==null||wn(!Ai,Ha.map(Va=>fr(Va)),ka.map(Va=>fr(Va))),po(Ha,"all"),$r(null)};let Xo;if(Pi!=="radio"){let ka;if(Ca){const ra={getPopupContainer:gr,items:Ca.map((Ja,js)=>{const{key:Ia,text:So,onSelect:ms}=Ja;return{key:Ia!=null?Ia:js,onClick:()=>{ms==null||ms(Or)},label:So}})};ka=Te.createElement("div",{className:`${ar}-selection-extra`},Te.createElement(al.Z,{menu:ra,getPopupContainer:gr},Te.createElement("span",null,Te.createElement(ed.Z,null))))}const Ha=rr.map((ra,Ja)=>{const js=Ar(ra,Ja),Ia=Lo.get(js)||{};return Object.assign({checked:Jr.has(js)},Ia)}).filter(ra=>{let{disabled:Ja}=ra;return Ja}),Va=!!Ha.length&&Ha.length===rr.length,ds=Va&&Ha.every(ra=>{let{checked:Ja}=ra;return Ja}),Os=Va&&Ha.some(ra=>{let{checked:Ja}=ra;return Ja});Xo=!nr&&Te.createElement("div",{className:`${ar}-selection`},Te.createElement(fa.default,{checked:Va?ds:!!rr.length&&Ai,indeterminate:Va?!ds&&Os:!Ai&&mr,onChange:Fo,disabled:rr.length===0||Va,"aria-label":ka?"Custom selection":"Select all",skipGroup:!0}),ka)}let Xs;Pi==="radio"?Xs=(ka,Ha,Va)=>{const ds=Ar(Ha,Va),Os=Jr.has(ds);return{node:Te.createElement(zi.ZP,Object.assign({},Lo.get(ds),{checked:Os,onClick:ra=>ra.stopPropagation(),onChange:ra=>{Jr.has(ds)||Ba(ds,!0,[ds],ra.nativeEvent)}})),checked:Os}}:Xs=(ka,Ha,Va)=>{var ds;const Os=Ar(Ha,Va),ra=Jr.has(Os),Ja=ea.has(Os),js=Lo.get(Os);let Ia;return Eo==="nest"?Ia=Ja:Ia=(ds=js==null?void 0:js.indeterminate)!==null&&ds!==void 0?ds:Ja,{node:Te.createElement(fa.default,Object.assign({},js,{indeterminate:Ia,checked:ra,skipGroup:!0,onClick:So=>So.stopPropagation(),onChange:So=>{let{nativeEvent:ms}=So;const{shiftKey:Is}=ms;let Cu=-1,ql=-1;if(Is&&Xi){const Wa=new Set([Po,Os]);Or.some((ul,ls)=>{if(Wa.has(ul))if(Cu===-1)Cu=ls;else return ql=ls,!0;return!1})}if(ql!==-1&&Cu!==ql&&Xi){const Wa=Or.slice(Cu,ql+1),ul=[];ra?Wa.forEach(is=>{Jr.has(is)&&(ul.push(is),Jr.delete(is))}):Wa.forEach(is=>{Jr.has(is)||(ul.push(is),Jr.add(is))});const ls=Array.from(Jr);qn==null||qn(!ra,ls.map(is=>fr(is)),ul.map(is=>fr(is))),po(ls,"multiple")}else{const Wa=Wo;if(Xi){const ul=ra?(0,Pu._5)(Wa,Os):(0,Pu.L0)(Wa,Os);Ba(Os,!ra,ul,ms)}else{const ul=(0,Bo.S)([].concat((0,$i.Z)(Wa),[Os]),!0,lo,Ro),{checkedKeys:ls,halfCheckedKeys:is}=ul;let hu=ls;if(ra){const oh=new Set(ls);oh.delete(Os),hu=(0,Bo.S)(Array.from(oh),{checked:!1,halfCheckedKeys:is},lo,Ro).checkedKeys}Ba(Os,!ra,hu,ms)}}$r(ra?null:Os)}})),checked:ra}};const ks=(ka,Ha,Va)=>{const{node:ds,checked:Os}=Xs(ka,Ha,Va);return Si?Si(Os,Ha,Va,ds):ds};if(!Co.includes(Ps))if(Co.findIndex(ka=>{var Ha;return((Ha=ka[vr])===null||Ha===void 0?void 0:Ha.columnType)==="EXPAND_COLUMN"})===0){const[ka,...Ha]=Co;Co=[ka,Ps].concat((0,$i.Z)(Ha))}else Co=[Ps].concat((0,$i.Z)(Co));const sl=Co.indexOf(Ps);Co=Co.filter((ka,Ha)=>ka!==Ps||Ha===sl);const va=Co[sl-1],Oa=Co[sl+1];let ho=Ki;ho===void 0&&((Oa==null?void 0:Oa.fixed)!==void 0?ho=Oa.fixed:(va==null?void 0:va.fixed)!==void 0&&(ho=va.fixed)),ho&&va&&((no=va[vr])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"&&va.fixed===void 0&&(va.fixed=ho);const Bs=pt()(`${ar}-selection-col`,{[`${ar}-selection-col-with-dropdown`]:mi&&Pi==="checkbox"}),ll={fixed:ho,width:Ei,className:`${ar}-selection-column`,title:ot.columnTitle||Xo,render:ks,onCell:ot.onCell,[vr]:{className:Bs}};return Co.map(ka=>ka===Ps?ll:ka)},[Ar,rr,ot,Wo,ja,ea,Ei,Ca,Eo,Po,Lo,qn,Ba,Ro]),ja]},ps=ye(89489),ic=ye(59477),md=ye(6848);const td="ascend",Mr="descend";function nd($e){return typeof $e.sorter=="object"&&typeof $e.sorter.multiple=="number"?$e.sorter.multiple:!1}function Nt($e){return typeof $e=="function"?$e:$e&&typeof $e=="object"&&$e.compare?$e.compare:!1}function ei($e,ot){return ot?$e[$e.indexOf(ot)+1]:$e[0]}function Ic($e,ot,Dt){let Ot=[];function Qt(Gt,Ln){Ot.push({column:Gt,key:Ga(Gt,Ln),multiplePriority:nd(Gt),sortOrder:Gt.sortOrder})}return($e||[]).forEach((Gt,Ln)=>{const Cn=Vs(Ln,Dt);Gt.children?("sortOrder"in Gt&&Qt(Gt,Cn),Ot=[].concat((0,$i.Z)(Ot),(0,$i.Z)(Ic(Gt.children,ot,Cn)))):Gt.sorter&&("sortOrder"in Gt?Qt(Gt,Cn):ot&&Gt.defaultSortOrder&&Ot.push({column:Gt,key:Ga(Gt,Cn),multiplePriority:nd(Gt),sortOrder:Gt.defaultSortOrder}))}),Ot}function rc($e,ot,Dt,Ot,Qt,Gt,Ln,Cn){return(ot||[]).map((wn,ti)=>{const jn=Vs(ti,Cn);let qn=wn;if(qn.sorter){const Ei=qn.sortDirections||Qt,Pi=qn.showSorterTooltip===void 0?Ln:qn.showSorterTooltip,mi=Ga(qn,jn),Ki=Dt.find(Eo=>{let{key:sr}=Eo;return sr===mi}),Si=Ki?Ki.sortOrder:null,nr=ei(Ei,Si);let Xi;if(wn.sortIcon)Xi=wn.sortIcon({sortOrder:Si});else{const Eo=Ei.includes(td)&&Te.createElement(ic.Z,{className:pt()(`${$e}-column-sorter-up`,{active:Si===td})}),sr=Ei.includes(Mr)&&Te.createElement(ps.Z,{className:pt()(`${$e}-column-sorter-down`,{active:Si===Mr})});Xi=Te.createElement("span",{className:pt()(`${$e}-column-sorter`,{[`${$e}-column-sorter-full`]:!!(Eo&&sr)})},Te.createElement("span",{className:`${$e}-column-sorter-inner`,"aria-hidden":"true"},Eo,sr))}const{cancelSort:ar,triggerAsc:Ur,triggerDesc:oo}=Gt||{};let fr=ar;nr===Mr?fr=oo:nr===td&&(fr=Ur);const Ar=typeof Pi=="object"?Pi:{title:fr};qn=Object.assign(Object.assign({},qn),{className:pt()(qn.className,{[`${$e}-column-sort`]:Si}),title:Eo=>{const sr=Te.createElement("div",{className:`${$e}-column-sorters`},Te.createElement("span",{className:`${$e}-column-title`},us(wn.title,Eo)),Xi);return Pi?Te.createElement(md.Z,Object.assign({},Ar),sr):sr},onHeaderCell:Eo=>{const sr=wn.onHeaderCell&&wn.onHeaderCell(Eo)||{},Rr=sr.onClick,gr=sr.onKeyDown;sr.onClick=jr=>{Ot({column:wn,key:mi,sortOrder:nr,multiplePriority:nd(wn)}),Rr==null||Rr(jr)},sr.onKeyDown=jr=>{jr.keyCode===Fi.Z.ENTER&&(Ot({column:wn,key:mi,sortOrder:nr,multiplePriority:nd(wn)}),gr==null||gr(jr))};const Zi=Ys(wn.title,{}),ir=Zi==null?void 0:Zi.toString();return Si?sr["aria-sort"]=Si==="ascend"?"ascending":"descending":sr["aria-label"]=ir||"",sr.className=pt()(sr.className,`${$e}-column-has-sorters`),sr.tabIndex=0,wn.ellipsis&&(sr.title=(Zi!=null?Zi:"").toString()),sr}})}return"children"in qn&&(qn=Object.assign(Object.assign({},qn),{children:rc($e,qn.children,Dt,Ot,Qt,Gt,Ln,jn)})),qn})}function ih($e){const{column:ot,sortOrder:Dt}=$e;return{column:ot,order:Dt,field:ot.dataIndex,columnKey:ot.key}}function rh($e){const ot=$e.filter(Dt=>{let{sortOrder:Ot}=Dt;return Ot}).map(ih);return ot.length===0&&$e.length?Object.assign(Object.assign({},ih($e[$e.length-1])),{column:void 0}):ot.length<=1?ot[0]||{}:ot}function xh($e,ot,Dt){const Ot=ot.slice().sort((Ln,Cn)=>Cn.multiplePriority-Ln.multiplePriority),Qt=$e.slice(),Gt=Ot.filter(Ln=>{let{column:{sorter:Cn},sortOrder:wn}=Ln;return Nt(Cn)&&wn});return Gt.length?Qt.sort((Ln,Cn)=>{for(let wn=0;wn<Gt.length;wn+=1){const ti=Gt[wn],{column:{sorter:jn},sortOrder:qn}=ti,Ei=Nt(jn);if(Ei&&qn){const Pi=Ei(Ln,Cn,qn);if(Pi!==0)return qn===td?Pi:-Pi}}return 0}).map(Ln=>{const Cn=Ln[Dt];return Cn?Object.assign(Object.assign({},Ln),{[Dt]:xh(Cn,ot,Dt)}):Ln}):Qt}function oc($e){let{prefixCls:ot,mergedColumns:Dt,onSorterChange:Ot,sortDirections:Qt,tableLocale:Gt,showSorterTooltip:Ln}=$e;const[Cn,wn]=Te.useState(Ic(Dt,!0)),ti=Te.useMemo(()=>{let mi=!0;const Ki=Ic(Dt,!1);if(!Ki.length)return Cn;const Si=[];function nr(ar){mi?Si.push(ar):Si.push(Object.assign(Object.assign({},ar),{sortOrder:null}))}let Xi=null;return Ki.forEach(ar=>{Xi===null?(nr(ar),ar.sortOrder&&(ar.multiplePriority===!1?mi=!1:Xi=!0)):(Xi&&ar.multiplePriority!==!1||(mi=!1),nr(ar))}),Si},[Dt,Cn]),jn=Te.useMemo(()=>{const mi=ti.map(Ki=>{let{column:Si,sortOrder:nr}=Ki;return{column:Si,order:nr}});return{sortColumns:mi,sortColumn:mi[0]&&mi[0].column,sortOrder:mi[0]&&mi[0].order}},[ti]);function qn(mi){let Ki;mi.multiplePriority===!1||!ti.length||ti[0].multiplePriority===!1?Ki=[mi]:Ki=[].concat((0,$i.Z)(ti.filter(Si=>{let{key:nr}=Si;return nr!==mi.key})),[mi]),wn(Ki),Ot(rh(Ki),Ki)}return[mi=>rc(ot,mi,ti,qn,Qt,Gt,Ln),ti,jn,()=>rh(ti)]}function Bd($e,ot){return $e.map(Dt=>{const Ot=Object.assign({},Dt);return Ot.title=us(Dt.title,ot),"children"in Ot&&(Ot.children=Bd(Ot.children,ot)),Ot})}function Es($e){return[Te.useCallback(Dt=>Bd(Dt,$e),[$e])]}var vo=wr(($e,ot)=>{const{_renderTimes:Dt}=$e,{_renderTimes:Ot}=ot;return Dt!==Ot}),nl=_o(($e,ot)=>{const{_renderTimes:Dt}=$e,{_renderTimes:Ot}=ot;return Dt!==Ot}),yl=ye(64993),ss=ye(17313),na=ye(83116),Us=ye(37613),Ye=$e=>{const{componentCls:ot}=$e,Dt=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`,Ot=(Qt,Gt,Ln)=>({[`&${ot}-${Qt}`]:{[`> ${ot}-container`]:{[`> ${ot}-content, > ${ot}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ot}-expanded-row-fixed`]:{margin:`-${Gt}px -${Ln+$e.lineWidth}px`}}}}}});return{[`${ot}-wrapper`]:{[`${ot}${ot}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ot}-title`]:{border:Dt,borderBottom:0},[`> ${ot}-container`]:{borderInlineStart:Dt,borderTop:Dt,[`
|
|
|
> ${ot}-content,
|
|
|
> ${ot}-header,
|
|
|
> ${ot}-body,
|
|
|
> ${ot}-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:Dt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Dt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ot}-cell-fix-right-first::after`]:{borderInlineEnd:Dt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ot}-expanded-row-fixed`]:{margin:`-${$e.tablePaddingVertical}px -${$e.tablePaddingHorizontal+$e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:$e.lineWidth,bottom:0,borderInlineEnd:Dt,content:'""'}}}}}},[`&${ot}-scroll-horizontal`]:{[`> ${ot}-container > ${ot}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ot}-expanded-row,
|
|
|
> tr${ot}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ot("middle",$e.tablePaddingVerticalMiddle,$e.tablePaddingHorizontalMiddle)),Ot("small",$e.tablePaddingVerticalSmall,$e.tablePaddingHorizontalSmall)),{[`> ${ot}-footer`]:{border:Dt,borderTop:0}}),[`${ot}-cell`]:{[`${ot}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${$e.lineWidth}px 0 ${$e.lineWidth}px ${$e.tableHeaderBg}`}},[`${ot}-bordered ${ot}-cell-scrollbar`]:{borderInlineEnd:Dt}}}},zt=$e=>{const{componentCls:ot}=$e;return{[`${ot}-wrapper`]:{[`${ot}-cell-ellipsis`]:Object.assign(Object.assign({},ss.vS),{wordBreak:"keep-all",[`
|
|
|
&${ot}-cell-fix-left-last,
|
|
|
&${ot}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ot}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ot}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},pn=$e=>{const{componentCls:ot}=$e;return{[`${ot}-wrapper`]:{[`${ot}-tbody > tr${ot}-placeholder`]:{textAlign:"center",color:$e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:$e.colorBgContainer}}}}},Sn=ye(15969),Xn=$e=>{const{componentCls:ot,antCls:Dt,controlInteractiveSize:Ot,motionDurationSlow:Qt,lineWidth:Gt,paddingXS:Ln,lineType:Cn,tableBorderColor:wn,tableExpandIconBg:ti,tableExpandColumnWidth:jn,borderRadius:qn,fontSize:Ei,fontSizeSM:Pi,lineHeight:mi,tablePaddingVertical:Ki,tablePaddingHorizontal:Si,tableExpandedRowBg:nr,paddingXXS:Xi}=$e,ar=Ot/2-Gt,Ur=ar*2+Gt*3,oo=`${Gt}px ${Cn} ${wn}`,fr=Xi-Gt;return{[`${ot}-wrapper`]:{[`${ot}-expand-icon-col`]:{width:jn},[`${ot}-row-expand-icon-cell`]:{textAlign:"center",[`${ot}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ot}-row-indent`]:{height:1,float:"left"},[`${ot}-row-expand-icon`]:Object.assign(Object.assign({},(0,Sn.N)($e)),{position:"relative",float:"left",boxSizing:"border-box",width:Ur,height:Ur,padding:0,color:"inherit",lineHeight:`${Ur}px`,background:ti,border:oo,borderRadius:qn,transform:`scale(${Ot/Ur})`,transition:`all ${Qt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Qt} ease-out`,content:'""'},"&::before":{top:ar,insetInlineEnd:fr,insetInlineStart:fr,height:Gt},"&::after":{top:fr,bottom:fr,insetInlineStart:ar,width:Gt,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"}}),[`${ot}-row-indent + ${ot}-row-expand-icon`]:{marginTop:(Ei*mi-Gt*3)/2-Math.ceil((Pi*1.4-Gt*3)/2),marginInlineEnd:Ln},[`tr${ot}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:nr}},[`${Dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ot}-expanded-row-fixed`]:{position:"relative",margin:`-${Ki}px -${Si}px`,padding:`${Ki}px ${Si}px`}}}},Ii=$e=>{const{componentCls:ot,antCls:Dt,iconCls:Ot,tableFilterDropdownWidth:Qt,tableFilterDropdownSearchWidth:Gt,paddingXXS:Ln,paddingXS:Cn,colorText:wn,lineWidth:ti,lineType:jn,tableBorderColor:qn,tableHeaderIconColor:Ei,fontSizeSM:Pi,tablePaddingHorizontal:mi,borderRadius:Ki,motionDurationSlow:Si,colorTextDescription:nr,colorPrimary:Xi,tableHeaderFilterActiveBg:ar,colorTextDisabled:Ur,tableFilterDropdownBg:oo,tableFilterDropdownHeight:fr,controlItemBgHover:Ar,controlItemBgActive:Eo,boxShadowSecondary:sr,filterDropdownMenuBg:Rr}=$e,gr=`${Dt}-dropdown`,Zi=`${ot}-filter-dropdown`,ir=`${Dt}-tree`,jr=`${ti}px ${jn} ${qn}`;return[{[`${ot}-wrapper`]:{[`${ot}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ot}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ln,marginInline:`${Ln}px ${-mi/2}px`,padding:`0 ${Ln}px`,color:Ei,fontSize:Pi,borderRadius:Ki,cursor:"pointer",transition:`all ${Si}`,"&:hover":{color:nr,background:ar},"&.active":{color:Xi}}}},{[`${Dt}-dropdown`]:{[Zi]:Object.assign(Object.assign({},(0,ss.Wf)($e)),{minWidth:Qt,backgroundColor:oo,borderRadius:Ki,boxShadow:sr,overflow:"hidden",[`${gr}-menu`]:{maxHeight:fr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Rr,"&:empty::after":{display:"block",padding:`${Cn}px 0`,color:Ur,fontSize:Pi,textAlign:"center",content:'"Not Found"'}},[`${Zi}-tree`]:{paddingBlock:`${Cn}px 0`,paddingInline:Cn,[ir]:{padding:0},[`${ir}-treenode ${ir}-node-content-wrapper:hover`]:{backgroundColor:Ar},[`${ir}-treenode-checkbox-checked ${ir}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Eo}}},[`${Zi}-search`]:{padding:Cn,borderBottom:jr,"&-input":{input:{minWidth:Gt},[Ot]:{color:Ur}}},[`${Zi}-checkall`]:{width:"100%",marginBottom:Ln,marginInlineStart:Ln},[`${Zi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Cn-ti}px ${Cn}px`,overflow:"hidden",borderTop:jr}})}},{[`${Dt}-dropdown ${Zi}, ${Zi}-submenu`]:{[`${Dt}-checkbox-wrapper + span`]:{paddingInlineStart:Cn,color:wn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Li=$e=>{const{componentCls:ot,lineWidth:Dt,colorSplit:Ot,motionDurationSlow:Qt,zIndexTableFixed:Gt,tableBg:Ln,zIndexTableSticky:Cn}=$e,wn=Ot;return{[`${ot}-wrapper`]:{[`
|
|
|
${ot}-cell-fix-left,
|
|
|
${ot}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Gt,background:Ln},[`
|
|
|
${ot}-cell-fix-left-first::after,
|
|
|
${ot}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Dt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},[`${ot}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ot}-cell-fix-right-first::after,
|
|
|
${ot}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Dt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},[`${ot}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Cn+1,width:30,transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ot}-ping-left`]:{[`&:not(${ot}-has-fix-left) ${ot}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${wn}`}},[`
|
|
|
${ot}-cell-fix-left-first::after,
|
|
|
${ot}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${wn}`},[`${ot}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ot}-ping-right`]:{[`&:not(${ot}-has-fix-right) ${ot}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${wn}`}},[`
|
|
|
${ot}-cell-fix-right-first::after,
|
|
|
${ot}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${wn}`}}}}},Yi=$e=>{const{componentCls:ot,antCls:Dt}=$e;return{[`${ot}-wrapper`]:{[`${ot}-pagination${Dt}-pagination`]:{margin:`${$e.margin}px 0`},[`${ot}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:$e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Mi=$e=>{const{componentCls:ot,tableRadius:Dt}=$e;return{[`${ot}-wrapper`]:{[ot]:{[`${ot}-title, ${ot}-header`]:{borderRadius:`${Dt}px ${Dt}px 0 0`},[`${ot}-title + ${ot}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ot}-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:Dt,borderStartEndRadius:Dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Dt},"> *:last-child":{borderStartEndRadius:Dt}}},"&-footer":{borderRadius:`0 0 ${Dt}px ${Dt}px`}}}}},Wr=$e=>{const{componentCls:ot}=$e;return{[`${ot}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ot}-pagination-left`]:{justifyContent:"flex-end"},[`${ot}-pagination-right`]:{justifyContent:"flex-start"},[`${ot}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ot}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ot}-row-indent`]:{float:"right"}}}}},Vr=$e=>{const{componentCls:ot,antCls:Dt,iconCls:Ot,fontSizeIcon:Qt,padding:Gt,paddingXS:Ln,tableHeaderIconColor:Cn,tableHeaderIconColorHover:wn,tableSelectionColumnWidth:ti}=$e;return{[`${ot}-wrapper`]:{[`${ot}-selection-col`]:{width:ti,[`&${ot}-selection-col-with-dropdown`]:{width:ti+Qt+Gt/4}},[`${ot}-bordered ${ot}-selection-col`]:{width:ti+Ln*2,[`&${ot}-selection-col-with-dropdown`]:{width:ti+Qt+Gt/4+Ln*2}},[`
|
|
|
table tr th${ot}-selection-column,
|
|
|
table tr td${ot}-selection-column
|
|
|
`]:{paddingInlineEnd:$e.paddingXS,paddingInlineStart:$e.paddingXS,textAlign:"center",[`${Dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ot}-selection-column${ot}-cell-fix-left`]:{zIndex:$e.zIndexTableFixed+1},[`table tr th${ot}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ot}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ot}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${$e.tablePaddingHorizontal/4}px`,[Ot]:{color:Cn,fontSize:Qt,verticalAlign:"baseline","&:hover":{color:wn}}}}}},Zr=$e=>{const{componentCls:ot}=$e,Dt=(Ot,Qt,Gt,Ln)=>({[`${ot}${ot}-${Ot}`]:{fontSize:Ln,[`
|
|
|
${ot}-title,
|
|
|
${ot}-footer,
|
|
|
${ot}-cell,
|
|
|
${ot}-thead > tr > th,
|
|
|
${ot}-tbody > tr > th,
|
|
|
${ot}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Qt}px ${Gt}px`},[`${ot}-filter-trigger`]:{marginInlineEnd:`-${Gt/2}px`},[`${ot}-expanded-row-fixed`]:{margin:`-${Qt}px -${Gt}px`},[`${ot}-tbody`]:{[`${ot}-wrapper:only-child ${ot}`]:{marginBlock:`-${Qt}px`,marginInline:`${$e.tableExpandColumnWidth-Gt}px -${Gt}px`}},[`${ot}-selection-column`]:{paddingInlineStart:`${Gt/4}px`}}});return{[`${ot}-wrapper`]:Object.assign(Object.assign({},Dt("middle",$e.tablePaddingVerticalMiddle,$e.tablePaddingHorizontalMiddle,$e.tableFontSizeMiddle)),Dt("small",$e.tablePaddingVerticalSmall,$e.tablePaddingHorizontalSmall,$e.tableFontSizeSmall))}},Uo=$e=>{const{componentCls:ot,marginXXS:Dt,fontSizeIcon:Ot,tableHeaderIconColor:Qt,tableHeaderIconColorHover:Gt}=$e;return{[`${ot}-wrapper`]:{[`${ot}-thead th${ot}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"&:hover":{background:$e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:$e.colorPrimary},[`
|
|
|
&${ot}-cell-fix-left:hover,
|
|
|
&${ot}-cell-fix-right:hover
|
|
|
`]:{background:$e.tableFixedHeaderSortActiveBg}},[`${ot}-thead th${ot}-column-sort`]:{background:$e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ot}-column-sort`]:{background:$e.tableBodySortBg},[`${ot}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ot}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ot}-column-sorter`]:{marginInlineStart:Dt,color:Qt,fontSize:0,transition:`color ${$e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ot,"&.active":{color:$e.colorPrimary}},[`${ot}-column-sorter-up + ${ot}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ot}-column-sorters:hover ${ot}-column-sorter`]:{color:Gt}}}},ia=$e=>{const{componentCls:ot,opacityLoading:Dt,tableScrollThumbBg:Ot,tableScrollThumbBgHover:Qt,tableScrollThumbSize:Gt,tableScrollBg:Ln,zIndexTableSticky:Cn,stickyScrollBarBorderRadius:wn}=$e,ti=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`;return{[`${ot}-wrapper`]:{[`${ot}-sticky`]:{"&-holder":{position:"sticky",zIndex:Cn,background:$e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Gt}px !important`,zIndex:Cn,display:"flex",alignItems:"center",background:Ln,borderTop:ti,opacity:Dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Gt,backgroundColor:Ot,borderRadius:wn,transition:`all ${$e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Qt}}}}}}},Aa=$e=>{const{componentCls:ot,lineWidth:Dt,tableBorderColor:Ot}=$e,Qt=`${Dt}px ${$e.lineType} ${Ot}`;return{[`${ot}-wrapper`]:{[`${ot}-summary`]:{position:"relative",zIndex:$e.zIndexTableFixed,background:$e.tableBg,"> tr":{"> th, > td":{borderBottom:Qt}}},[`div${ot}-summary`]:{boxShadow:`0 -${Dt}px 0 ${Ot}`}}}},ts=$e=>{const{componentCls:ot}=$e,Dt=`${$e.lineWidth}px ${$e.lineType} ${$e.tableBorderColor}`,Ot=`${ot}-expanded-row-cell`;return{[`${ot}-wrapper`]:{[`${ot}-tbody-virtual`]:{[`${ot}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ot}-cell`]:{borderBottom:Dt},[`${ot}-expanded-row`]:{[`${Ot}${Ot}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${$e.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ot}-bordered`]:{[`${ot}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${ot}-cell`]:{borderInlineEnd:Dt,[`&${ot}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-$e.lineWidth,borderInlineStart:Dt}}}}}}};const ga=$e=>{const{componentCls:ot,fontWeightStrong:Dt,tablePaddingVertical:Ot,tablePaddingHorizontal:Qt,lineWidth:Gt,lineType:Ln,tableBorderColor:Cn,tableFontSize:wn,tableBg:ti,tableRadius:jn,tableHeaderTextColor:qn,motionDurationMid:Ei,tableHeaderBg:Pi,tableHeaderCellSplitColor:mi,tableRowHoverBg:Ki,tableSelectedRowBg:Si,tableSelectedRowHoverBg:nr,tableFooterTextColor:Xi,tableFooterBg:ar,paddingContentVerticalLG:Ur}=$e,oo=`${Gt}px ${Ln} ${Cn}`;return{[`${ot}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ss.dF)()),{[ot]:Object.assign(Object.assign({},(0,ss.Wf)($e)),{fontSize:wn,background:ti,borderRadius:`${jn}px ${jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${jn}px ${jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ot}-cell,
|
|
|
${ot}-thead > tr > th,
|
|
|
${ot}-tbody > tr > th,
|
|
|
${ot}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ur}px ${Qt}px`,overflowWrap:"break-word"},[`${ot}-title`]:{padding:`${Ot}px ${Qt}px`},[`${ot}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:qn,fontWeight:Dt,textAlign:"start",background:Pi,borderBottom:oo,transition:`background ${Ei} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ot}-selection-column):not(${ot}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:mi,transform:"translateY(-50%)",transition:`background-color ${Ei}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ot}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ei}, border-color ${Ei}`,borderBottom:oo,[`
|
|
|
> ${ot}-wrapper:only-child,
|
|
|
> ${ot}-expanded-row-fixed > ${ot}-wrapper:only-child
|
|
|
`]:{[ot]:{marginBlock:`-${Ot}px`,marginInline:`${$e.tableExpandColumnWidth-Qt}px -${Qt}px`,[`${ot}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qn,fontWeight:Dt,textAlign:"start",background:Pi,borderBottom:oo,transition:`background ${Ei} ease`},[`
|
|
|
&${ot}-row:hover > th,
|
|
|
&${ot}-row:hover > td,
|
|
|
> th${ot}-cell-row-hover,
|
|
|
> td${ot}-cell-row-hover
|
|
|
`]:{background:Ki},[`&${ot}-row-selected`]:{"> th, > td":{background:Si},"&:hover > th, &:hover > td":{background:nr}}}},[`${ot}-footer`]:{padding:`${Ot}px ${Qt}px`,color:Xi,background:ar}})}};var sa=(0,na.Z)("Table",$e=>{const{colorTextHeading:ot,colorSplit:Dt,colorIcon:Ot,colorIconHover:Qt,opacityLoading:Gt,colorBgContainer:Ln,controlInteractiveSize:Cn,headerBg:wn,headerColor:ti,headerSortActiveBg:jn,headerSortHoverBg:qn,bodySortBg:Ei,rowHoverBg:Pi,rowSelectedBg:mi,rowSelectedHoverBg:Ki,rowExpandedBg:Si,cellPaddingBlock:nr,cellPaddingInline:Xi,cellPaddingBlockMD:ar,cellPaddingInlineMD:Ur,cellPaddingBlockSM:oo,cellPaddingInlineSM:fr,borderColor:Ar,footerBg:Eo,footerColor:sr,headerBorderRadius:Rr,cellFontSize:gr,cellFontSizeMD:Zi,cellFontSizeSM:ir,headerSplitColor:jr,fixedHeaderSortActiveBg:ao,headerFilterHoverBg:lo,filterDropdownBg:rr,expandIconBg:Lo,selectionColumnWidth:Ro,stickyScrollBarBg:Wo}=$e,Ho=new yl.C(Ot),ja=new yl.C(Qt),ea=2,Po=(0,Us.TS)($e,{tableFontSize:gr,tableBg:Ln,tableRadius:Rr,tablePaddingVertical:nr,tablePaddingHorizontal:Xi,tablePaddingVerticalMiddle:ar,tablePaddingHorizontalMiddle:Ur,tablePaddingVerticalSmall:oo,tablePaddingHorizontalSmall:fr,tableBorderColor:Ar,tableHeaderTextColor:ti,tableHeaderBg:wn,tableFooterTextColor:sr,tableFooterBg:Eo,tableHeaderCellSplitColor:jr,tableHeaderSortBg:jn,tableHeaderSortHoverBg:qn,tableHeaderIconColor:Ho.clone().setAlpha(Ho.getAlpha()*Gt).toRgbString(),tableHeaderIconColorHover:ja.clone().setAlpha(ja.getAlpha()*Gt).toRgbString(),tableBodySortBg:Ei,tableFixedHeaderSortActiveBg:ao,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:rr,tableRowHoverBg:Pi,tableSelectedRowBg:mi,tableSelectedRowHoverBg:Ki,zIndexTableFixed:ea,zIndexTableSticky:ea+1,tableFontSizeMiddle:Zi,tableFontSizeSmall:ir,tableSelectionColumnWidth:Ro,tableExpandIconBg:Lo,tableExpandColumnWidth:Cn+2*$e.padding,tableExpandedRowBg:Si,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Wo,tableScrollThumbBgHover:ot,tableScrollBg:Dt});return[ga(Po),Yi(Po),Aa(Po),Uo(Po),Ii(Po),Ye(Po),Mi(Po),Xn(Po),Aa(Po),pn(Po),Vr(Po),Li(Po),ia(Po),zt(Po),Zr(Po),Wr(Po),ts(Po)]},$e=>{const{colorFillAlter:ot,colorBgContainer:Dt,colorTextHeading:Ot,colorFillSecondary:Qt,colorFillContent:Gt,controlItemBgActive:Ln,controlItemBgActiveHover:Cn,padding:wn,paddingSM:ti,paddingXS:jn,colorBorderSecondary:qn,borderRadiusLG:Ei,fontSize:Pi,controlHeight:mi,colorTextPlaceholder:Ki}=$e,Si=new yl.C(Qt).onBackground(Dt).toHexShortString(),nr=new yl.C(Gt).onBackground(Dt).toHexShortString(),Xi=new yl.C(ot).onBackground(Dt).toHexShortString();return{headerBg:Xi,headerColor:Ot,headerSortActiveBg:Si,headerSortHoverBg:nr,bodySortBg:Xi,rowHoverBg:Xi,rowSelectedBg:Ln,rowSelectedHoverBg:Cn,rowExpandedBg:ot,cellPaddingBlock:wn,cellPaddingInline:wn,cellPaddingBlockMD:ti,cellPaddingInlineMD:jn,cellPaddingBlockSM:jn,cellPaddingInlineSM:jn,borderColor:qn,headerBorderRadius:Ei,footerBg:Xi,footerColor:Ot,cellFontSize:Pi,cellFontSizeMD:Pi,cellFontSizeSM:Pi,headerSplitColor:qn,fixedHeaderSortActiveBg:Si,headerFilterHoverBg:Gt,filterDropdownMenuBg:Dt,filterDropdownBg:Dt,expandIconBg:Dt,selectionColumnWidth:mi,stickyScrollBarBg:Ki,stickyScrollBarBorderRadius:100}});const wa=[],Xa=($e,ot)=>{const{prefixCls:Dt,className:Ot,rootClassName:Qt,style:Gt,size:Ln,bordered:Cn,dropdownPrefixCls:wn,dataSource:ti,pagination:jn,rowSelection:qn,rowKey:Ei="key",rowClassName:Pi,columns:mi,children:Ki,childrenColumnName:Si,onChange:nr,getPopupContainer:Xi,loading:ar,expandIcon:Ur,expandable:oo,expandedRowRender:fr,expandIconColumnIndex:Ar,indentSize:Eo,scroll:sr,sortDirections:Rr,locale:gr,showSorterTooltip:Zi=!0,virtual:ir}=$e,jr=Te.useMemo(()=>mi||un(Ki),[mi,Ki]),ao=Te.useMemo(()=>jr.some(ba=>ba.responsive),[jr]),lo=(0,ri.Z)(ao),rr=Te.useMemo(()=>{const ba=new Set(Object.keys(lo).filter(Qa=>lo[Qa]));return jr.filter(Qa=>!Qa.responsive||Qa.responsive.some(Hs=>ba.has(Hs)))},[jr,lo]),Lo=(0,Xr.Z)($e,["className","style","columns"]),{locale:Ro=Er.Z,direction:Wo,table:Ho,renderEmpty:ja,getPrefixCls:ea,getPopupContainer:Po}=Te.useContext(oa.E_),$r=(0,hr.Z)(Ln),po=Object.assign(Object.assign({},Ro.Table),gr),Ba=ti||wa,Ca=ea("table",Dt),Ka=ea("dropdown",wn),yo=Object.assign({childrenColumnName:Si,expandIconColumnIndex:Ar},oo),{childrenColumnName:no="children"}=yo,Co=Te.useMemo(()=>Ba.some(ba=>ba==null?void 0:ba[no])?"nest":fr||oo&&oo.expandedRowRender?"row":null,[Ba]),Jr={body:Te.useRef()},Or=Te.useMemo(()=>typeof Ei=="function"?Ei:ba=>ba==null?void 0:ba[Ei],[Ei]),[Ai]=Oh(Ba,no,Or),mr={},Fo=function(ba,Qa){let Hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var rs,Ea,Ws;const Sl=Object.assign(Object.assign({},mr),ba);Hs&&((rs=mr.resetPagination)===null||rs===void 0||rs.call(mr),!((Ea=Sl.pagination)===null||Ea===void 0)&&Ea.current&&(Sl.pagination.current=1),jn&&jn.onChange&&jn.onChange(1,(Ws=Sl.pagination)===null||Ws===void 0?void 0:Ws.pageSize)),sr&&sr.scrollToFirstRowOnChange!==!1&&Jr.body.current&&(0,Zo.Z)(0,{getContainer:()=>Jr.body.current}),nr==null||nr(Sl.pagination,Sl.filters,Sl.sorter,{currentDataSource:vl(xh(Ba,Sl.sorterStates,no),Sl.filterStates),action:Qa})},Xo=(ba,Qa)=>{Fo({sorter:ba,sorterStates:Qa},"sort",!1)},[Xs,ks,sl,va]=oc({prefixCls:Ca,mergedColumns:rr,onSorterChange:Xo,sortDirections:Rr||["ascend","descend"],tableLocale:po,showSorterTooltip:Zi}),Oa=Te.useMemo(()=>xh(Ba,ks,no),[Ba,ks]);mr.sorter=va(),mr.sorterStates=ks;const ho=(ba,Qa)=>{Fo({filters:ba,filterStates:Qa},"filter",!0)},[Bs,ll,ka]=_h({prefixCls:Ca,locale:po,dropdownPrefixCls:Ka,mergedColumns:rr,onFilterChange:ho,getPopupContainer:Xi||Po}),Ha=vl(Oa,ll);mr.filters=ka,mr.filterStates=ll;const Va=Te.useMemo(()=>{const ba={};return Object.keys(ka).forEach(Qa=>{ka[Qa]!==null&&(ba[Qa]=ka[Qa])}),Object.assign(Object.assign({},sl),{filters:ba})},[sl,ka]),[ds]=Es(Va),Os=(ba,Qa)=>{Fo({pagination:Object.assign(Object.assign({},mr.pagination),{current:ba,pageSize:Qa})},"paginate")},[ra,Ja]=pd(Ha.length,Os,jn);mr.pagination=jn===!1?{}:Bl(ra,jn),mr.resetPagination=Ja;const js=Te.useMemo(()=>{if(jn===!1||!ra.pageSize)return Ha;const{current:ba=1,total:Qa,pageSize:Hs=Zu}=ra;return Ha.length<Qa?Ha.length>Hs?Ha.slice((ba-1)*Hs,ba*Hs):Ha:Ha.slice((ba-1)*Hs,ba*Hs)},[!!jn,Ha,ra&&ra.current,ra&&ra.pageSize,ra&&ra.total]),[Ia,So]=$l({prefixCls:Ca,data:Ha,pageData:js,getRowKey:Or,getRecordByKey:Ai,expandType:Co,childrenColumnName:no,locale:po,getPopupContainer:Xi||Po},qn),ms=(ba,Qa,Hs)=>{let rs;return typeof Pi=="function"?rs=pt()(Pi(ba,Qa,Hs)):rs=pt()(Pi),pt()({[`${Ca}-row-selected`]:So.has(Or(ba,Qa))},rs)};yo.__PARENT_RENDER_ICON__=yo.expandIcon,yo.expandIcon=yo.expandIcon||Ur||Ra(po),Co==="nest"&&yo.expandIconColumnIndex===void 0?yo.expandIconColumnIndex=qn?1:0:yo.expandIconColumnIndex>0&&qn&&(yo.expandIconColumnIndex-=1),typeof yo.indentSize!="number"&&(yo.indentSize=typeof Eo=="number"?Eo:15);const Is=Te.useCallback(ba=>ds(Ia(Bs(Xs(ba)))),[Xs,Bs,Ia]);let Cu,ql;if(jn!==!1&&(ra!=null&&ra.total)){let ba;ra.size?ba=ra.size:ba=$r==="small"||$r==="middle"?"small":void 0;const Qa=Ea=>Te.createElement(Io.Z,Object.assign({},ra,{className:pt()(`${Ca}-pagination ${Ca}-pagination-${Ea}`,ra.className),size:ba})),Hs=Wo==="rtl"?"left":"right",{position:rs}=ra;if(rs!==null&&Array.isArray(rs)){const Ea=rs.find(bu=>bu.includes("top")),Ws=rs.find(bu=>bu.includes("bottom")),Sl=rs.every(bu=>`${bu}`=="none");!Ea&&!Ws&&!Sl&&(ql=Qa(Hs)),Ea&&(Cu=Qa(Ea.toLowerCase().replace("top",""))),Ws&&(ql=Qa(Ws.toLowerCase().replace("bottom","")))}else ql=Qa(Hs)}let Wa;typeof ar=="boolean"?Wa={spinning:ar}:typeof ar=="object"&&(Wa=Object.assign({spinning:!0},ar));const[ul,ls]=sa(Ca),[,is]=(0,Sa.Z)(),hu=pt()(`${Ca}-wrapper`,Ho==null?void 0:Ho.className,{[`${Ca}-wrapper-rtl`]:Wo==="rtl"},Ot,Qt,ls),oh=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Gt),Il=gr&&gr.emptyText||(ja==null?void 0:ja("Table"))||Te.createElement(ur.Z,{componentName:"Table"}),Gu=ir?nl:vo,Ku={},_l=Te.useMemo(()=>{const{fontSize:ba,lineHeight:Qa,padding:Hs,paddingXS:rs,paddingSM:Ea}=is,Ws=Math.floor(ba*Qa);switch($r){case"large":return Hs*2+Ws;case"small":return rs*2+Ws;default:return Ea*2+Ws}},[is,$r]);return ir&&(Ku.listItemHeight=_l),ul(Te.createElement("div",{ref:ot,className:hu,style:oh},Te.createElement(Ma.Z,Object.assign({spinning:!1},Wa),Cu,Te.createElement(Gu,Object.assign({},Ku,Lo,{columns:rr,direction:Wo,expandable:yo,prefixCls:Ca,className:pt()({[`${Ca}-middle`]:$r==="middle",[`${Ca}-small`]:$r==="small",[`${Ca}-bordered`]:Cn,[`${Ca}-empty`]:Ba.length===0}),data:js,rowKey:Or,rowClassName:ms,emptyText:Il,internalHooks:Re,internalRefs:Jr,transformColumns:Is})),ql)))};var ns=Te.forwardRef(Xa);const za=($e,ot)=>{const Dt=Te.useRef(0);return Dt.current+=1,Te.createElement(ns,Object.assign({},$e,{ref:ot,_renderTimes:Dt.current}))},Pa=Te.forwardRef(za);Pa.SELECTION_COLUMN=Ps,Pa.EXPAND_COLUMN=be,Pa.SELECTION_ALL=Cs,Pa.SELECTION_INVERT=es,Pa.SELECTION_NONE=hs,Pa.Column=Lr,Pa.ColumnGroup=uo,Pa.Summary=Xe;var As=Pa,_s=As},17574:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return St}});var be=ye(54844),Re=ye(80702),at=ye(52671),kt=ye(8657),Je=ye(72308),it=ye(59301),Te={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"},Tt=Te,Pt=ye(7657),rt=function(en,Hn){return it.createElement(Pt.Z,(0,Je.Z)({},en,{ref:Hn,icon:Tt}))},It=it.forwardRef(rt),gt=It,Ct=ye(92310),Fe=ye.n(Ct),te=ye(35654),ne=ye(71430),he=ye(36355),se=ye(56082),ge=ye(62892),me=ye(20648);const Pe=4;function ke(Ge){const{dropPosition:en,dropLevelOffset:Hn,prefixCls:_n,indent:Bt,direction:rn="ltr"}=Ge,cn=rn==="ltr"?"left":"right",Kn=rn==="ltr"?"right":"left",nn={[cn]:-Hn*Bt+Pe,[Kn]:0};switch(en){case-1:nn.top=-3;break;case 1:nn.bottom=-3;break;default:nn.bottom=-3,nn[cn]=Bt+Pe;break}return it.createElement("div",{style:nn,className:`${_n}-drop-indicator`})}var we=ye(71997),He=it.forwardRef((Ge,en)=>{const{getPrefixCls:Hn,direction:_n,virtual:Bt,tree:rn}=it.useContext(he.E_),{prefixCls:cn,className:Kn,showIcon:nn=!1,showLine:Rn,switcherIcon:vt,blockNode:Yn=!1,children:ni,checkable:je=!1,selectable:Me=!0,draggable:xe,motion:Ne,style:Be}=Ge,Se=Hn("tree",cn),lt=Hn(),Et=Ne!=null?Ne:Object.assign(Object.assign({},(0,ge.Z)(lt)),{motionAppear:!1}),Xe=Object.assign(Object.assign({},Ge),{checkable:je,selectable:Me,showIcon:nn,motion:Et,blockNode:Yn,showLine:!!Rn,dropIndicatorRender:ke}),[tt,wt]=(0,me.ZP)(Se),xt=it.useMemo(()=>{if(!xe)return!1;let Ft={};switch(typeof xe){case"function":Ft.nodeDraggable=xe;break;case"object":Ft=Object.assign({},xe);break;default:break}return Ft.icon!==!1&&(Ft.icon=Ft.icon||it.createElement(se.Z,null)),Ft},[xe]),ct=Ft=>it.createElement(we.Z,{prefixCls:Se,switcherIcon:vt,treeNodeProps:Ft,showLine:Rn});return tt(it.createElement(be.Z,Object.assign({itemHeight:20,ref:en,virtual:Bt},Xe,{style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Be),prefixCls:Se,className:Fe()({[`${Se}-icon-hide`]:!nn,[`${Se}-block-node`]:Yn,[`${Se}-unselectable`]:!Me,[`${Se}-rtl`]:_n==="rtl"},rn==null?void 0:rn.className,Kn,wt),direction:_n,checkable:je&&it.createElement("span",{className:`${Se}-checkbox-inner`}),selectable:Me,switcherIcon:ct,draggable:xt}),ni))}),We;(function(Ge){Ge[Ge.None=0]="None",Ge[Ge.Start=1]="Start",Ge[Ge.End=2]="End"})(We||(We={}));function Ve(Ge,en){function Hn(_n){const{key:Bt,children:rn}=_n;en(Bt,_n)!==!1&&Ve(rn||[],en)}Ge.forEach(Hn)}function ut(Ge){let{treeData:en,expandedKeys:Hn,startKey:_n,endKey:Bt}=Ge;const rn=[];let cn=We.None;if(_n&&_n===Bt)return[_n];if(!_n||!Bt)return[];function Kn(nn){return nn===_n||nn===Bt}return Ve(en,nn=>{if(cn===We.End)return!1;if(Kn(nn)){if(rn.push(nn),cn===We.None)cn=We.Start;else if(cn===We.Start)return cn=We.End,!1}else cn===We.Start&&rn.push(nn);return Hn.includes(nn)}),rn}function Ke(Ge,en){const Hn=(0,Re.Z)(en),_n=[];return Ve(Ge,(Bt,rn)=>{const cn=Hn.indexOf(Bt);return cn!==-1&&(_n.push(rn),Hn.splice(cn,1)),!!Hn.length}),_n}var Wt=function(Ge,en){var Hn={};for(var _n in Ge)Object.prototype.hasOwnProperty.call(Ge,_n)&&en.indexOf(_n)<0&&(Hn[_n]=Ge[_n]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,_n=Object.getOwnPropertySymbols(Ge);Bt<_n.length;Bt++)en.indexOf(_n[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_n[Bt])&&(Hn[_n[Bt]]=Ge[_n[Bt]]);return Hn};function pt(Ge){const{isLeaf:en,expanded:Hn}=Ge;return en?it.createElement(at.Z,null):Hn?it.createElement(kt.Z,null):it.createElement(gt,null)}function Ut(Ge){let{treeData:en,children:Hn}=Ge;return en||(0,ne.zn)(Hn)}const Ht=(Ge,en)=>{var{defaultExpandAll:Hn,defaultExpandParent:_n,defaultExpandedKeys:Bt}=Ge,rn=Wt(Ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const cn=it.useRef(),Kn=it.useRef(),nn=()=>{const{keyEntities:xt}=(0,ne.I8)(Ut(rn));let ct;return Hn?ct=Object.keys(xt):_n?ct=(0,te.r7)(rn.expandedKeys||Bt||[],xt):ct=rn.expandedKeys||Bt,ct},[Rn,vt]=it.useState(rn.selectedKeys||rn.defaultSelectedKeys||[]),[Yn,ni]=it.useState(()=>nn());it.useEffect(()=>{"selectedKeys"in rn&&vt(rn.selectedKeys)},[rn.selectedKeys]),it.useEffect(()=>{"expandedKeys"in rn&&ni(rn.expandedKeys)},[rn.expandedKeys]);const je=(xt,ct)=>{var Ft;return"expandedKeys"in rn||ni(xt),(Ft=rn.onExpand)===null||Ft===void 0?void 0:Ft.call(rn,xt,ct)},Me=(xt,ct)=>{var Ft;const{multiple:Pn}=rn,{node:mn,nativeEvent:Jt}=ct,{key:gn=""}=mn,Tn=Ut(rn),bt=Object.assign(Object.assign({},ct),{selected:!0}),_t=(Jt==null?void 0:Jt.ctrlKey)||(Jt==null?void 0:Jt.metaKey),$t=Jt==null?void 0:Jt.shiftKey;let Dn;Pn&&_t?(Dn=xt,cn.current=gn,Kn.current=Dn,bt.selectedNodes=Ke(Tn,Dn)):Pn&&$t?(Dn=Array.from(new Set([].concat((0,Re.Z)(Kn.current||[]),(0,Re.Z)(ut({treeData:Tn,expandedKeys:Yn,startKey:gn,endKey:cn.current}))))),bt.selectedNodes=Ke(Tn,Dn)):(Dn=[gn],cn.current=gn,Kn.current=Dn,bt.selectedNodes=Ke(Tn,Dn)),(Ft=rn.onSelect)===null||Ft===void 0||Ft.call(rn,Dn,bt),"selectedKeys"in rn||vt(Dn)},{getPrefixCls:xe,direction:Ne}=it.useContext(he.E_),{prefixCls:Be,className:Se,showIcon:lt=!0,expandAction:Et="click"}=rn,Xe=Wt(rn,["prefixCls","className","showIcon","expandAction"]),tt=xe("tree",Be),wt=Fe()(`${tt}-directory`,{[`${tt}-directory-rtl`]:Ne==="rtl"},Se);return it.createElement(He,Object.assign({icon:pt,ref:en,blockNode:!0},Xe,{showIcon:lt,expandAction:Et,prefixCls:tt,className:wt,expandedKeys:Yn,selectedKeys:Rn,onSelect:Me,onExpand:je}))};var Xt=it.forwardRef(Ht);const Nn=He;Nn.DirectoryTree=Xt,Nn.TreeNode=be.O;var St=Nn},20648:function(On,xn,ye){"use strict";ye.d(xn,{TM:function(){return Ct},Yk:function(){return gt}});var be=ye(93083),Re=ye(98447),at=ye(17313),kt=ye(8378),Je=ye(37613),it=ye(83116);const Te=new be.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Tt=(Fe,te)=>({[`.${Fe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),Pt=(Fe,te)=>({[`.${Fe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),rt=(Fe,te)=>{const{treeCls:ne,treeNodeCls:he,treeNodePadding:se,titleHeight:ge,nodeSelectedBg:me,nodeHoverBg:Pe}=te,ke=te.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,at.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ne}-rtl`]:{[`${ne}-switcher`]:{"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ne}-active-focused)`]:Object.assign({},(0,at.oN)(te)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${he}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:Te,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${he}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ne}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ne}-node-content-wrapper`]:Object.assign({},(0,at.oN)(te)),[`&:not(${he}-disabled).filter-node ${ne}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ne}-draggable-icon`]:{flexShrink:0,width:ge,lineHeight:`${ge}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${he}:hover &`]:{opacity:.45}},[`&${he}-disabled`]:{[`${ne}-draggable-icon`]:{visibility:"hidden"}}}},[`${ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ge}},[`${ne}-draggable-icon`]:{visibility:"hidden"},[`${ne}-switcher`]:Object.assign(Object.assign({},Tt(Fe,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:ge,margin:0,lineHeight:`${ge}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ge/2*.8,height:ge/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ne}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${ne}-node-content-wrapper, ${ne}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ge,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${ge}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pe},[`&${ne}-node-selected`]:{backgroundColor:me},[`${ne}-iconEle`]:{display:"inline-block",width:ge,height:ge,lineHeight:`${ge}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${ge}px`,userSelect:"none"},Pt(Fe,te)),[`${he}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ne}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${he}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ge/2}px !important`}}}}})}},It=Fe=>{const{treeCls:te,treeNodeCls:ne,treeNodePadding:he,directoryNodeSelectedBg:se,directoryNodeSelectedColor:ge}=Fe;return{[`${te}${te}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:he,insetInlineStart:0,transition:`background-color ${Fe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Fe.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Fe.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:ge,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:ge},[`${te}-node-content-wrapper`]:{color:ge,background:"transparent"}}}}}},gt=(Fe,te)=>{const ne=`.${Fe}`,he=`${ne}-treenode`,se=te.paddingXS/2,ge=(0,Je.TS)(te,{treeCls:ne,treeNodeCls:he,treeNodePadding:se});return[rt(Fe,ge),It(ge)]},Ct=Fe=>{const{controlHeightSM:te}=Fe;return{titleHeight:te,nodeHoverBg:Fe.controlItemBgHover,nodeSelectedBg:Fe.controlItemBgActive}};xn.ZP=(0,it.Z)("Tree",(Fe,te)=>{let{prefixCls:ne}=te;return[{[Fe.componentCls]:(0,Re.C2)(`${ne}-checkbox`,Fe)},gt(ne,Fe),(0,kt.Z)(Fe)]},Fe=>{const{colorTextLightSolid:te,colorPrimary:ne}=Fe;return Object.assign(Object.assign({},Ct(Fe)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},71997:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return he}});var be=ye(72308),Re=ye(59301),at={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"},kt=at,Je=ye(7657),it=function(ge,me){return Re.createElement(Je.Z,(0,be.Z)({},ge,{ref:me,icon:kt}))},Te=Re.forwardRef(it),Tt=Te,Pt=ye(52671),rt=ye(58617),It=ye(15075),gt=ye(43531),Ct=ye(92310),Fe=ye.n(Ct),te=ye(92343),he=se=>{const{prefixCls:ge,switcherIcon:me,treeNodeProps:Pe,showLine:ke}=se,{isLeaf:we,expanded:Oe,loading:He}=Pe;if(He)return Re.createElement(rt.Z,{className:`${ge}-switcher-loading-icon`});let We;if(ke&&typeof ke=="object"&&(We=ke.showLeafIcon),we){if(!ke)return null;if(typeof We!="boolean"&&We){const Ke=typeof We=="function"?We(Pe):We,Wt=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Ke)?(0,te.Tm)(Ke,{className:Fe()(Ke.props.className||"",Wt)}):Ke}return We?Re.createElement(Pt.Z,{className:`${ge}-switcher-line-icon`}):Re.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Ve=`${ge}-switcher-icon`,ut=typeof me=="function"?me(Pe):me;return(0,te.l$)(ut)?(0,te.Tm)(ut,{className:Fe()(ut.props.className||"",Ve)}):ut!==void 0?ut:ke?Oe?Re.createElement(It.Z,{className:`${ge}-switcher-line-icon`}):Re.createElement(gt.Z,{className:`${ge}-switcher-line-icon`}):Re.createElement(Tt,{className:Ve})}},54580:function(On,xn,ye){"use strict";ye.d(xn,{default:function(){return vn}});var be=ye(59301),Re=ye(80702),at=ye(92310),kt=ye.n(at),Je=ye(72308),it=ye(96949),Te=ye(55090),Tt=ye(77205),Pt=ye(38793),rt=ye(49618),It=ye(74416),gt=ye(65736),Ct=ye(62853),Fe=ye(72633),te=ye(26112);function ne(Rt,tn){var yn="cannot ".concat(Rt.method," ").concat(Rt.action," ").concat(tn.status,"'"),an=new Error(yn);return an.status=tn.status,an.method=Rt.method,an.url=Rt.action,an}function he(Rt){var tn=Rt.responseText||Rt.response;if(!tn)return tn;try{return JSON.parse(tn)}catch(yn){return tn}}function se(Rt){var tn=new XMLHttpRequest;Rt.onProgress&&tn.upload&&(tn.upload.onprogress=function(bn){bn.total>0&&(bn.percent=bn.loaded/bn.total*100),Rt.onProgress(bn)});var yn=new FormData;Rt.data&&Object.keys(Rt.data).forEach(function(Mn){var bn=Rt.data[Mn];if(Array.isArray(bn)){bn.forEach(function($n){yn.append("".concat(Mn,"[]"),$n)});return}yn.append(Mn,bn)}),Rt.file instanceof Blob?yn.append(Rt.filename,Rt.file,Rt.file.name):yn.append(Rt.filename,Rt.file),tn.onerror=function(bn){Rt.onError(bn)},tn.onload=function(){return tn.status<200||tn.status>=300?Rt.onError(ne(Rt,tn),he(tn)):Rt.onSuccess(he(tn),tn)},tn.open(Rt.method,Rt.action,!0),Rt.withCredentials&&"withCredentials"in tn&&(tn.withCredentials=!0);var an=Rt.headers||{};return an["X-Requested-With"]!==null&&tn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(an).forEach(function(Mn){an[Mn]!==null&&tn.setRequestHeader(Mn,an[Mn])}),tn.send(yn),{abort:function(){tn.abort()}}}var ge=+new Date,me=0;function Pe(){return"rc-upload-".concat(ge,"-").concat(++me)}var ke=ye(48736),we=function(Rt,tn){if(Rt&&tn){var yn=Array.isArray(tn)?tn:tn.split(","),an=Rt.name||"",Mn=Rt.type||"",bn=Mn.replace(/\/.*$/,"");return yn.some(function($n){var Un=$n.trim();if(/^\*(\/\*)?$/.test($n))return!0;if(Un.charAt(0)==="."){var Wi=an.toLowerCase(),qt=Un.toLowerCase(),Qi=[qt];return(qt===".jpg"||qt===".jpeg")&&(Qi=[".jpg",".jpeg"]),Qi.some(function(yr){return Wi.endsWith(yr)})}return/\/\*$/.test(Un)?bn===Un.replace(/\/.*$/,""):Mn===Un?!0:/^\w+$/.test(Un)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Un,"'.Skip for check.")),!0):!1})}return!0};function Oe(Rt,tn){var yn=Rt.createReader(),an=[];function Mn(){yn.readEntries(function(bn){var $n=Array.prototype.slice.apply(bn);an=an.concat($n);var Un=!$n.length;Un?tn(an):Mn()})}Mn()}var He=function(tn,yn,an){var Mn=function bn($n,Un){$n&&($n.path=Un||"",$n.isFile?$n.file(function(Wi){an(Wi)&&($n.fullPath&&!Wi.webkitRelativePath&&(Object.defineProperties(Wi,{webkitRelativePath:{writable:!0}}),Wi.webkitRelativePath=$n.fullPath.replace(/^\//,""),Object.defineProperties(Wi,{webkitRelativePath:{writable:!1}})),yn([Wi]))}):$n.isDirectory&&Oe($n,function(Wi){Wi.forEach(function(qt){bn(qt,"".concat(Un).concat($n.name,"/"))})}))};tn.forEach(function(bn){Mn(bn.webkitGetAsEntry())})},We=He,Ve=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ut=function(Rt){(0,Tt.Z)(yn,Rt);var tn=(0,Pt.Z)(yn);function yn(){var an;(0,it.Z)(this,yn);for(var Mn=arguments.length,bn=new Array(Mn),$n=0;$n<Mn;$n++)bn[$n]=arguments[$n];return an=tn.call.apply(tn,[this].concat(bn)),an.state={uid:Pe()},an.reqs={},an.fileInput=void 0,an._isMounted=void 0,an.onChange=function(Un){var Wi=an.props,qt=Wi.accept,Qi=Wi.directory,yr=Un.target.files,Dr=(0,Re.Z)(yr).filter(function(sn){return!Qi||we(sn,qt)});an.uploadFiles(Dr),an.reset()},an.onClick=function(Un){var Wi=an.fileInput;if(Wi){var qt=Un.target,Qi=an.props.onClick;if(qt&&qt.tagName==="BUTTON"){var yr=Wi.parentNode;yr.focus(),qt.blur()}Wi.click(),Qi&&Qi(Un)}},an.onKeyDown=function(Un){Un.key==="Enter"&&an.onClick(Un)},an.onFileDrop=function(Un){var Wi=an.props.multiple;if(Un.preventDefault(),Un.type!=="dragover")if(an.props.directory)We(Array.prototype.slice.call(Un.dataTransfer.items),an.uploadFiles,function(Qi){return we(Qi,an.props.accept)});else{var qt=(0,Re.Z)(Un.dataTransfer.files).filter(function(Qi){return we(Qi,an.props.accept)});Wi===!1&&(qt=qt.slice(0,1)),an.uploadFiles(qt)}},an.uploadFiles=function(Un){var Wi=(0,Re.Z)(Un),qt=Wi.map(function(Qi){return Qi.uid=Pe(),an.processFile(Qi,Wi)});Promise.all(qt).then(function(Qi){var yr=an.props.onBatchStart;yr==null||yr(Qi.map(function(Dr){var sn=Dr.origin,ai=Dr.parsedFile;return{file:sn,parsedFile:ai}})),Qi.filter(function(Dr){return Dr.parsedFile!==null}).forEach(function(Dr){an.post(Dr)})})},an.processFile=function(){var Un=(0,Fe.Z)((0,gt.Z)().mark(function Wi(qt,Qi){var yr,Dr,sn,ai,xi,Gi,Di,_i,wr;return(0,gt.Z)().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:if(yr=an.props.beforeUpload,Dr=qt,!yr){Oi.next=14;break}return Oi.prev=3,Oi.next=6,yr(qt,Qi);case 6:Dr=Oi.sent,Oi.next=12;break;case 9:Oi.prev=9,Oi.t0=Oi.catch(3),Dr=!1;case 12:if(Dr!==!1){Oi.next=14;break}return Oi.abrupt("return",{origin:qt,parsedFile:null,action:null,data:null});case 14:if(sn=an.props.action,typeof sn!="function"){Oi.next=21;break}return Oi.next=18,sn(qt);case 18:ai=Oi.sent,Oi.next=22;break;case 21:ai=sn;case 22:if(xi=an.props.data,typeof xi!="function"){Oi.next=29;break}return Oi.next=26,xi(qt);case 26:Gi=Oi.sent,Oi.next=30;break;case 29:Gi=xi;case 30:return Di=((0,Ct.Z)(Dr)==="object"||typeof Dr=="string")&&Dr?Dr:qt,Di instanceof File?_i=Di:_i=new File([Di],qt.name,{type:qt.type}),wr=_i,wr.uid=qt.uid,Oi.abrupt("return",{origin:qt,data:Gi,parsedFile:wr,action:ai});case 35:case"end":return Oi.stop()}},Wi,null,[[3,9]])}));return function(Wi,qt){return Un.apply(this,arguments)}}(),an.saveFileInput=function(Un){an.fileInput=Un},an}return(0,Te.Z)(yn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Mn){var bn=this,$n=Mn.data,Un=Mn.origin,Wi=Mn.action,qt=Mn.parsedFile;if(this._isMounted){var Qi=this.props,yr=Qi.onStart,Dr=Qi.customRequest,sn=Qi.name,ai=Qi.headers,xi=Qi.withCredentials,Gi=Qi.method,Di=Un.uid,_i=Dr||se,wr={action:Wi,filename:sn,data:$n,file:qt,headers:ai,withCredentials:xi,method:Gi||"post",onProgress:function(Oi){var br=bn.props.onProgress;br==null||br(Oi,qt)},onSuccess:function(Oi,br){var En=bn.props.onSuccess;En==null||En(Oi,qt,br),delete bn.reqs[Di]},onError:function(Oi,br){var En=bn.props.onError;En==null||En(Oi,br,qt),delete bn.reqs[Di]}};yr(Un),this.reqs[Di]=_i(wr)}}},{key:"reset",value:function(){this.setState({uid:Pe()})}},{key:"abort",value:function(Mn){var bn=this.reqs;if(Mn){var $n=Mn.uid?Mn.uid:Mn;bn[$n]&&bn[$n].abort&&bn[$n].abort(),delete bn[$n]}else Object.keys(bn).forEach(function(Un){bn[Un]&&bn[Un].abort&&bn[Un].abort(),delete bn[Un]})}},{key:"render",value:function(){var Mn=this.props,bn=Mn.component,$n=Mn.prefixCls,Un=Mn.className,Wi=Mn.disabled,qt=Mn.id,Qi=Mn.style,yr=Mn.multiple,Dr=Mn.accept,sn=Mn.capture,ai=Mn.children,xi=Mn.directory,Gi=Mn.openFileDialogOnClick,Di=Mn.onMouseEnter,_i=Mn.onMouseLeave,wr=(0,It.Z)(Mn,Ve),er=kt()((0,rt.Z)((0,rt.Z)((0,rt.Z)({},$n,!0),"".concat($n,"-disabled"),Wi),Un,Un)),Oi=xi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},br=Wi?{}:{onClick:Gi?this.onClick:function(){},onKeyDown:Gi?this.onKeyDown:function(){},onMouseEnter:Di,onMouseLeave:_i,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return be.createElement(bn,(0,Je.Z)({},br,{className:er,role:"button",style:Qi}),be.createElement("input",(0,Je.Z)({},(0,te.Z)(wr,{aria:!0,data:!0}),{id:qt,disabled:Wi,type:"file",ref:this.saveFileInput,onClick:function(wo){return wo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Dr},Oi,{multiple:yr,onChange:this.onChange},sn!=null?{capture:sn}:{})),ai)}}]),yn}(be.Component),Ke=ut;function Wt(){}var pt=function(Rt){(0,Tt.Z)(yn,Rt);var tn=(0,Pt.Z)(yn);function yn(){var an;(0,it.Z)(this,yn);for(var Mn=arguments.length,bn=new Array(Mn),$n=0;$n<Mn;$n++)bn[$n]=arguments[$n];return an=tn.call.apply(tn,[this].concat(bn)),an.uploader=void 0,an.saveUploader=function(Un){an.uploader=Un},an}return(0,Te.Z)(yn,[{key:"abort",value:function(Mn){this.uploader.abort(Mn)}},{key:"render",value:function(){return be.createElement(Ke,(0,Je.Z)({},this.props,{ref:this.saveUploader}))}}]),yn}(be.Component);pt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Wt,onError:Wt,onSuccess:Wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ut=pt,Ht=Ut,jt=ye(18929),Xt=ye(4676),Nn=ye(36355),St=ye(1684),Ge=ye(9763),en=ye(31724),Hn={icon:function(tn,yn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:yn}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:tn}}]}},name:"file",theme:"twotone"},_n=Hn,Bt=ye(7657),rn=function(tn,yn){return be.createElement(Bt.Z,(0,Je.Z)({},tn,{ref:yn,icon:_n}))},cn=be.forwardRef(rn),Kn=cn,nn=ye(58617),Rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},vt=Rn,Yn=function(tn,yn){return be.createElement(Bt.Z,(0,Je.Z)({},tn,{ref:yn,icon:vt}))},ni=be.forwardRef(Yn),je=ni,Me={icon:function(tn,yn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:tn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:yn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:yn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:yn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:tn}}]}},name:"picture",theme:"twotone"},xe=Me,Ne=function(tn,yn){return be.createElement(Bt.Z,(0,Je.Z)({},tn,{ref:yn,icon:xe}))},Be=be.forwardRef(Ne),Se=Be,lt=ye(77900),Et=ye(56762),Xe=ye(62892),tt=ye(92343),wt=ye(3113);function xt(Rt){return Object.assign(Object.assign({},Rt),{lastModified:Rt.lastModified,lastModifiedDate:Rt.lastModifiedDate,name:Rt.name,size:Rt.size,type:Rt.type,uid:Rt.uid,percent:0,originFileObj:Rt})}function ct(Rt,tn){const yn=(0,Re.Z)(tn),an=yn.findIndex(Mn=>{let{uid:bn}=Mn;return bn===Rt.uid});return an===-1?yn.push(Rt):yn[an]=Rt,yn}function Ft(Rt,tn){const yn=Rt.uid!==void 0?"uid":"name";return tn.filter(an=>an[yn]===Rt[yn])[0]}function Pn(Rt,tn){const yn=Rt.uid!==void 0?"uid":"name",an=tn.filter(Mn=>Mn[yn]!==Rt[yn]);return an.length===tn.length?null:an}const mn=function(){const tn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),an=tn[tn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(an)||[""])[0]},Jt=Rt=>Rt.indexOf("image/")===0,gn=Rt=>{if(Rt.type&&!Rt.thumbUrl)return Jt(Rt.type);const tn=Rt.thumbUrl||Rt.url||"",yn=mn(tn);return/^data:image\//.test(tn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(yn)?!0:!(/^data:/.test(tn)||yn)},Tn=200;function bt(Rt){return new Promise(tn=>{if(!Rt.type||!Jt(Rt.type)){tn("");return}const yn=document.createElement("canvas");yn.width=Tn,yn.height=Tn,yn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Tn}px; height: ${Tn}px; z-index: 9999; display: none;`,document.body.appendChild(yn);const an=yn.getContext("2d"),Mn=new Image;if(Mn.onload=()=>{const{width:bn,height:$n}=Mn;let Un=Tn,Wi=Tn,qt=0,Qi=0;bn>$n?(Wi=$n*(Tn/bn),Qi=-(Wi-Un)/2):(Un=bn*(Tn/$n),qt=-(Un-Wi)/2),an.drawImage(Mn,qt,Qi,Un,Wi);const yr=yn.toDataURL();document.body.removeChild(yn),window.URL.revokeObjectURL(Mn.src),tn(yr)},Mn.crossOrigin="anonymous",Rt.type.startsWith("image/svg+xml")){const bn=new FileReader;bn.onload=()=>{bn.result&&(Mn.src=bn.result)},bn.readAsDataURL(Rt)}else if(Rt.type.startsWith("image/gif")){const bn=new FileReader;bn.onload=()=>{bn.result&&tn(bn.result)},bn.readAsDataURL(Rt)}else Mn.src=window.URL.createObjectURL(Rt)})}var _t=ye(26227),$t=ye(41464),Dn=ye(15277),ii=ye(93948),pi=ye(6848),wi=be.forwardRef((Rt,tn)=>{let{prefixCls:yn,className:an,style:Mn,locale:bn,listType:$n,file:Un,items:Wi,progress:qt,iconRender:Qi,actionIconRender:yr,itemRender:Dr,isImgUrl:sn,showPreviewIcon:ai,showRemoveIcon:xi,showDownloadIcon:Gi,previewIcon:Di,removeIcon:_i,downloadIcon:wr,onPreview:er,onDownload:Oi,onClose:br}=Rt;var En,wo;const{status:An}=Un,[Br,ta]=be.useState(An);be.useEffect(()=>{An!=="removed"&&ta(An)},[An]);const[bo,ca]=be.useState(!1);be.useEffect(()=>{const oa=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(oa)}},[]);const qo=Qi(Un);let lr=be.createElement("div",{className:`${yn}-icon`},qo);if($n==="picture"||$n==="picture-card"||$n==="picture-circle")if(Br==="uploading"||!Un.thumbUrl&&!Un.url){const oa=kt()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:Br!=="uploading"});lr=be.createElement("div",{className:oa},qo)}else{const oa=sn!=null&&sn(Un)?be.createElement("img",{src:Un.thumbUrl||Un.url,alt:Un.name,className:`${yn}-list-item-image`,crossOrigin:Un.crossOrigin}):qo,ur=kt()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:sn&&!sn(Un)});lr=be.createElement("a",{className:ur,onClick:hr=>er(Un,hr),href:Un.url||Un.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oa)}const tr=kt()(`${yn}-list-item`,`${yn}-list-item-${Br}`),to=typeof Un.linkProps=="string"?JSON.parse(Un.linkProps):Un.linkProps,ko=xi?yr((typeof _i=="function"?_i(Un):_i)||be.createElement(_t.Z,null),()=>br(Un),yn,bn.removeFile):null,ki=Gi&&Br==="done"?yr((typeof wr=="function"?wr(Un):wr)||be.createElement($t.Z,null),()=>Oi(Un),yn,bn.downloadFile):null,Ue=$n!=="picture-card"&&$n!=="picture-circle"&&be.createElement("span",{key:"download-delete",className:kt()(`${yn}-list-item-actions`,{picture:$n==="picture"})},ki,ko),fo=kt()(`${yn}-list-item-name`),_o=Un.url?[be.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:fo,title:Un.name},to,{href:Un.url,onClick:oa=>er(Un,oa)}),Un.name),Ue]:[be.createElement("span",{key:"view",className:fo,onClick:oa=>er(Un,oa),title:Un.name},Un.name),Ue],ro={pointerEvents:"none",opacity:.5},Yo=ai?be.createElement("a",{href:Un.url||Un.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Un.url||Un.thumbUrl?void 0:ro,onClick:oa=>er(Un,oa),title:bn.previewFile},typeof Di=="function"?Di(Un):Di||be.createElement(Dn.Z,null)):null,ya=($n==="picture-card"||$n==="picture-circle")&&Br!=="uploading"&&be.createElement("span",{className:`${yn}-list-item-actions`},Yo,Br==="done"&&ki,ko),{getPrefixCls:Lr}=be.useContext(Nn.E_),Fr=Lr(),uo=be.createElement("div",{className:tr},lr,_o,ya,bo&&be.createElement(lt.default,{motionName:`${Fr}-fade`,visible:Br==="uploading",motionDeadline:2e3},oa=>{let{className:ur}=oa;const hr="percent"in Un?be.createElement(ii.Z,Object.assign({},qt,{type:"line",percent:Un.percent,"aria-label":Un["aria-label"],"aria-labelledby":Un["aria-labelledby"]})):null;return be.createElement("div",{className:kt()(`${yn}-list-item-progress`,ur)},hr)})),Xr=Un.response&&typeof Un.response=="string"?Un.response:((En=Un.error)===null||En===void 0?void 0:En.statusText)||((wo=Un.error)===null||wo===void 0?void 0:wo.message)||bn.uploadError,Zo=Br==="error"?be.createElement(pi.Z,{title:Xr,getPopupContainer:oa=>oa.parentNode},uo):uo;return be.createElement("div",{className:kt()(`${yn}-list-item-container`,an),style:Mn,ref:tn},Dr?Dr(Zo,Un,Wi,{download:Oi.bind(null,Un),preview:er.bind(null,Un),remove:br.bind(null,Un)}):Zo)});const Vi=(Rt,tn)=>{const{listType:yn="text",previewFile:an=bt,onPreview:Mn,onDownload:bn,onRemove:$n,locale:Un,iconRender:Wi,isImageUrl:qt=gn,prefixCls:Qi,items:yr=[],showPreviewIcon:Dr=!0,showRemoveIcon:sn=!0,showDownloadIcon:ai=!1,removeIcon:xi,previewIcon:Gi,downloadIcon:Di,progress:_i={size:[-1,2],showInfo:!1},appendAction:wr,appendActionVisible:er=!0,itemRender:Oi,disabled:br}=Rt,En=(0,Et.Z)(),[wo,An]=be.useState(!1);be.useEffect(()=>{yn!=="picture"&&yn!=="picture-card"&&yn!=="picture-circle"||(yr||[]).forEach(ro=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ro.originFileObj instanceof File||ro.originFileObj instanceof Blob)||ro.thumbUrl!==void 0||(ro.thumbUrl="",an&&an(ro.originFileObj).then(Yo=>{ro.thumbUrl=Yo||"",En()}))})},[yn,yr,an]),be.useEffect(()=>{An(!0)},[]);const Br=(ro,Yo)=>{if(Mn)return Yo==null||Yo.preventDefault(),Mn(ro)},ta=ro=>{typeof bn=="function"?bn(ro):ro.url&&window.open(ro.url)},bo=ro=>{$n==null||$n(ro)},ca=ro=>{if(Wi)return Wi(ro,yn);const Yo=ro.status==="uploading",ya=qt&&qt(ro)?be.createElement(Se,null):be.createElement(Kn,null);let Lr=Yo?be.createElement(nn.Z,null):be.createElement(je,null);return yn==="picture"?Lr=Yo?be.createElement(nn.Z,null):ya:(yn==="picture-card"||yn==="picture-circle")&&(Lr=Yo?Un.uploading:ya),Lr},qo=(ro,Yo,ya,Lr)=>{const Fr={type:"text",size:"small",title:Lr,onClick:uo=>{Yo(),(0,tt.l$)(ro)&&ro.props.onClick&&ro.props.onClick(uo)},className:`${ya}-list-item-action`,disabled:br};if((0,tt.l$)(ro)){const uo=(0,tt.Tm)(ro,Object.assign(Object.assign({},ro.props),{onClick:()=>{}}));return be.createElement(wt.ZP,Object.assign({},Fr,{icon:uo}))}return be.createElement(wt.ZP,Object.assign({},Fr),be.createElement("span",null,ro))};be.useImperativeHandle(tn,()=>({handlePreview:Br,handleDownload:ta}));const{getPrefixCls:lr}=be.useContext(Nn.E_),tr=lr("upload",Qi),to=lr(),ko=kt()(`${tr}-list`,`${tr}-list-${yn}`),ki=(0,Re.Z)(yr.map(ro=>({key:ro.uid,file:ro})));let fo={motionDeadline:2e3,motionName:`${tr}-${yn==="picture-card"||yn==="picture-circle"?"animate-inline":"animate"}`,keys:ki,motionAppear:wo};const _o=be.useMemo(()=>{const ro=Object.assign({},(0,Xe.Z)(to));return delete ro.onAppearEnd,delete ro.onEnterEnd,delete ro.onLeaveEnd,ro},[to]);return yn!=="picture-card"&&yn!=="picture-circle"&&(fo=Object.assign(Object.assign({},_o),fo)),be.createElement("div",{className:ko},be.createElement(lt.CSSMotionList,Object.assign({},fo,{component:!1}),ro=>{let{key:Yo,file:ya,className:Lr,style:Fr}=ro;return be.createElement(wi,{key:Yo,locale:Un,prefixCls:tr,className:Lr,style:Fr,file:ya,items:yr,progress:_i,listType:yn,isImgUrl:qt,showPreviewIcon:Dr,showRemoveIcon:sn,showDownloadIcon:ai,removeIcon:xi,previewIcon:Gi,downloadIcon:Di,iconRender:ca,actionIconRender:qo,itemRender:Oi,onPreview:Br,onDownload:ta,onClose:bo})}),wr&&be.createElement(lt.default,Object.assign({},fo,{visible:er,forceRender:!0}),ro=>{let{className:Yo,style:ya}=ro;return(0,tt.Tm)(wr,Lr=>({className:kt()(Lr.className,Yo),style:Object.assign(Object.assign(Object.assign({},ya),{pointerEvents:Yo?"none":void 0}),Lr.style)}))}))};var cr=be.forwardRef(Vi),pr=ye(17313),_r=ye(8378),Ir=ye(83116),$i=ye(37613),kr=Rt=>{const{componentCls:tn,iconCls:yn}=Rt;return{[`${tn}-wrapper`]:{[`${tn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Rt.colorFillAlter,border:`${Rt.lineWidth}px dashed ${Rt.colorBorder}`,borderRadius:Rt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Rt.motionDurationSlow}`,[tn]:{padding:`${Rt.padding}px 0`},[`${tn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${tn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${tn}-disabled):hover`]:{borderColor:Rt.colorPrimaryHover},[`p${tn}-drag-icon`]:{marginBottom:Rt.margin,[yn]:{color:Rt.colorPrimary,fontSize:Rt.uploadThumbnailSize}},[`p${tn}-text`]:{margin:`0 0 ${Rt.marginXXS}px`,color:Rt.colorTextHeading,fontSize:Rt.fontSizeLG},[`p${tn}-hint`]:{color:Rt.colorTextDescription,fontSize:Rt.fontSize},[`&${tn}-disabled`]:{cursor:"not-allowed",[`p${tn}-drag-icon ${yn},
|
|
|
p${tn}-text,
|
|
|
p${tn}-hint
|
|
|
`]:{color:Rt.colorTextDisabled}}}}}},si=Rt=>{const{componentCls:tn,antCls:yn,iconCls:an,fontSize:Mn,lineHeight:bn}=Rt,$n=`${tn}-list-item`,Un=`${$n}-actions`,Wi=`${$n}-action`,qt=Math.round(Mn*bn);return{[`${tn}-wrapper`]:{[`${tn}-list`]:Object.assign(Object.assign({},(0,pr.dF)()),{lineHeight:Rt.lineHeight,[$n]:{position:"relative",height:Rt.lineHeight*Mn,marginTop:Rt.marginXS,fontSize:Mn,display:"flex",alignItems:"center",transition:`background-color ${Rt.motionDurationSlow}`,"&:hover":{backgroundColor:Rt.controlItemBgHover},[`${$n}-name`]:Object.assign(Object.assign({},pr.vS),{padding:`0 ${Rt.paddingXS}px`,lineHeight:bn,flex:"auto",transition:`all ${Rt.motionDurationSlow}`}),[Un]:{[Wi]:{opacity:0},[`${Wi}${yn}-btn-sm`]:{height:qt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Wi}:focus-visible,
|
|
|
&.picture ${Wi}
|
|
|
`]:{opacity:1},[an]:{color:Rt.actionsColor,transition:`all ${Rt.motionDurationSlow}`},[`&:hover ${an}`]:{color:Rt.colorText}},[`${tn}-icon ${an}`]:{color:Rt.colorTextDescription,fontSize:Mn},[`${$n}-progress`]:{position:"absolute",bottom:-Rt.uploadProgressOffset,width:"100%",paddingInlineStart:Mn+Rt.paddingXS,fontSize:Mn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${$n}:hover ${Wi}`]:{opacity:1,color:Rt.colorText},[`${$n}-error`]:{color:Rt.colorError,[`${$n}-name, ${tn}-icon ${an}`]:{color:Rt.colorError},[Un]:{[`${an}, ${an}:hover`]:{color:Rt.colorError},[Wi]:{opacity:1}}},[`${tn}-list-item-container`]:{transition:`opacity ${Rt.motionDurationSlow}, height ${Rt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yi=ye(93083),or=ye(1950);const xr=new yi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qi=new yi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var mo=Rt=>{const{componentCls:tn}=Rt,yn=`${tn}-animate-inline`;return[{[`${tn}-wrapper`]:{[`${yn}-appear, ${yn}-enter, ${yn}-leave`]:{animationDuration:Rt.motionDurationSlow,animationTimingFunction:Rt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${yn}-appear, ${yn}-enter`]:{animationName:xr},[`${yn}-leave`]:{animationName:qi}}},{[`${tn}-wrapper`]:(0,or.J$)(Rt)},xr,qi]},zr=ye(93398),on=ye(64993);const Yt=Rt=>{const{componentCls:tn,iconCls:yn,uploadThumbnailSize:an,uploadProgressOffset:Mn}=Rt,bn=`${tn}-list`,$n=`${bn}-item`;return{[`${tn}-wrapper`]:{[`
|
|
|
${bn}${bn}-picture,
|
|
|
${bn}${bn}-picture-card,
|
|
|
${bn}${bn}-picture-circle
|
|
|
`]:{[$n]:{position:"relative",height:an+Rt.lineWidth*2+Rt.paddingXS*2,padding:Rt.paddingXS,border:`${Rt.lineWidth}px ${Rt.lineType} ${Rt.colorBorder}`,borderRadius:Rt.borderRadiusLG,"&:hover":{background:"transparent"},[`${$n}-thumbnail`]:Object.assign(Object.assign({},pr.vS),{width:an,height:an,lineHeight:`${an+Rt.paddingSM}px`,textAlign:"center",flex:"none",[yn]:{fontSize:Rt.fontSizeHeading2,color:Rt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${$n}-progress`]:{bottom:Mn,width:`calc(100% - ${Rt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:an+Rt.paddingXS}},[`${$n}-error`]:{borderColor:Rt.colorError,[`${$n}-thumbnail ${yn}`]:{[`svg path[fill='${zr.blue[0]}']`]:{fill:Rt.colorErrorBg},[`svg path[fill='${zr.blue.primary}']`]:{fill:Rt.colorError}}},[`${$n}-uploading`]:{borderStyle:"dashed",[`${$n}-name`]:{marginBottom:Mn}}},[`${bn}${bn}-picture-circle ${$n}`]:{[`&, &::before, ${$n}-thumbnail`]:{borderRadius:"50%"}}}}},Qe=Rt=>{const{componentCls:tn,iconCls:yn,fontSizeLG:an,colorTextLightSolid:Mn}=Rt,bn=`${tn}-list`,$n=`${bn}-item`,Un=Rt.uploadPicCardSize;return{[`
|
|
|
${tn}-wrapper${tn}-picture-card-wrapper,
|
|
|
${tn}-wrapper${tn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,pr.dF)()),{display:"inline-block",width:"100%",[`${tn}${tn}-select`]:{width:Un,height:Un,marginInlineEnd:Rt.marginXS,marginBottom:Rt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Rt.colorFillAlter,border:`${Rt.lineWidth}px dashed ${Rt.colorBorder}`,borderRadius:Rt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Rt.motionDurationSlow}`,[`> ${tn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${tn}-disabled):hover`]:{borderColor:Rt.colorPrimary}},[`${bn}${bn}-picture-card, ${bn}${bn}-picture-circle`]:{[`${bn}-item-container`]:{display:"inline-block",width:Un,height:Un,marginBlock:`0 ${Rt.marginXS}px`,marginInline:`0 ${Rt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[$n]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Rt.paddingXS*2}px)`,height:`calc(100% - ${Rt.paddingXS*2}px)`,backgroundColor:Rt.colorBgMask,opacity:0,transition:`all ${Rt.motionDurationSlow}`,content:'" "'}},[`${$n}:hover`]:{[`&::before, ${$n}-actions`]:{opacity:1}},[`${$n}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Rt.motionDurationSlow}`,[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{zIndex:10,width:an,margin:`0 ${Rt.marginXXS}px`,fontSize:an,cursor:"pointer",transition:`all ${Rt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${$n}-actions, ${$n}-actions:hover`]:{[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{color:new on.C(Mn).setAlpha(.65).toRgbString(),"&:hover":{color:Mn}}},[`${$n}-thumbnail, ${$n}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${$n}-name`]:{display:"none",textAlign:"center"},[`${$n}-file + ${$n}-name`]:{position:"absolute",bottom:Rt.margin,display:"block",width:`calc(100% - ${Rt.paddingXS*2}px)`},[`${$n}-uploading`]:{[`&${$n}`]:{backgroundColor:Rt.colorFillAlter},[`&::before, ${yn}-eye, ${yn}-download, ${yn}-delete`]:{display:"none"}},[`${$n}-progress`]:{bottom:Rt.marginXL,width:`calc(100% - ${Rt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${tn}-wrapper${tn}-picture-circle-wrapper`]:{[`${tn}${tn}-select`]:{borderRadius:"50%"}}}};var In=Rt=>{const{componentCls:tn}=Rt;return{[`${tn}-rtl`]:{direction:"rtl"}}};const Mt=Rt=>{const{componentCls:tn,colorTextDisabled:yn}=Rt;return{[`${tn}-wrapper`]:Object.assign(Object.assign({},(0,pr.Wf)(Rt)),{[tn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${tn}-select`]:{display:"inline-block"},[`${tn}-disabled`]:{color:yn,cursor:"not-allowed"}})}};var ft=(0,Ir.Z)("Upload",Rt=>{const{fontSizeHeading3:tn,fontSize:yn,lineHeight:an,lineWidth:Mn,controlHeightLG:bn}=Rt,$n=Math.round(yn*an),Un=(0,$i.TS)(Rt,{uploadThumbnailSize:tn*2,uploadProgressOffset:$n/2+Mn,uploadPicCardSize:bn*2.55});return[Mt(Un),kr(Un),Yt(Un),Qe(Un),si(Un),mo(Un),In(Un),(0,_r.Z)(Un)]},Rt=>({actionsColor:Rt.colorTextDescription})),fn=function(Rt,tn,yn,an){function Mn(bn){return bn instanceof yn?bn:new yn(function($n){$n(bn)})}return new(yn||(yn=Promise))(function(bn,$n){function Un(Qi){try{qt(an.next(Qi))}catch(yr){$n(yr)}}function Wi(Qi){try{qt(an.throw(Qi))}catch(yr){$n(yr)}}function qt(Qi){Qi.done?bn(Qi.value):Mn(Qi.value).then(Un,Wi)}qt((an=an.apply(Rt,tn||[])).next())})};const Vn=`__LIST_IGNORE_${Date.now()}__`,bi=(Rt,tn)=>{const{fileList:yn,defaultFileList:an,onRemove:Mn,showUploadList:bn=!0,listType:$n="text",onPreview:Un,onDownload:Wi,onChange:qt,onDrop:Qi,previewFile:yr,disabled:Dr,locale:sn,iconRender:ai,isImageUrl:xi,progress:Gi,prefixCls:Di,className:_i,type:wr="select",children:er,style:Oi,itemRender:br,maxCount:En,data:wo={},multiple:An=!1,action:Br="",accept:ta="",supportServerRender:bo=!0,rootClassName:ca}=Rt,qo=be.useContext(St.Z),lr=Dr!=null?Dr:qo,[tr,to]=(0,jt.Z)(an||[],{value:yn,postState:$o=>$o!=null?$o:[]}),[ko,ki]=be.useState("drop"),Ue=be.useRef(null);be.useMemo(()=>{const $o=Date.now();(yn||[]).forEach((To,as)=>{!To.uid&&!Object.isFrozen(To)&&(To.uid=`__AUTO__${$o}_${as}__`)})},[yn]);const fo=($o,To,as)=>{let ma=(0,Re.Z)(To),No=!1;En===1?ma=ma.slice(-1):En&&(No=ma.length>En,ma=ma.slice(0,En)),(0,Xt.flushSync)(()=>{to(ma)});const fa={file:$o,fileList:ma};as&&(fa.event=as),(!No||ma.some(al=>al.uid===$o.uid))&&(0,Xt.flushSync)(()=>{qt==null||qt(fa)})},_o=($o,To)=>fn(void 0,void 0,void 0,function*(){const{beforeUpload:as,transformFile:ma}=Rt;let No=$o;if(as){const fa=yield as($o,To);if(fa===!1)return!1;if(delete $o[Vn],fa===Vn)return Object.defineProperty($o,Vn,{value:!0,configurable:!0}),!1;typeof fa=="object"&&fa&&(No=fa)}return ma&&(No=yield ma(No)),No}),ro=$o=>{const To=$o.filter(No=>!No.file[Vn]);if(!To.length)return;const as=To.map(No=>xt(No.file));let ma=(0,Re.Z)(tr);as.forEach(No=>{ma=ct(No,ma)}),as.forEach((No,fa)=>{let al=No;if(To[fa].parsedFile)No.status="uploading";else{const{originFileObj:Kr}=No;let zo;try{zo=new File([Kr],Kr.name,{type:Kr.type})}catch(Oo){zo=new Blob([Kr],{type:Kr.type}),zo.name=Kr.name,zo.lastModifiedDate=new Date,zo.lastModified=new Date().getTime()}zo.uid=No.uid,al=zo}fo(al,ma)})},Yo=($o,To,as)=>{try{typeof $o=="string"&&($o=JSON.parse($o))}catch(fa){}if(!Ft(To,tr))return;const ma=xt(To);ma.status="done",ma.percent=100,ma.response=$o,ma.xhr=as;const No=ct(ma,tr);fo(ma,No)},ya=($o,To)=>{if(!Ft(To,tr))return;const as=xt(To);as.status="uploading",as.percent=$o.percent;const ma=ct(as,tr);fo(as,ma,$o)},Lr=($o,To,as)=>{if(!Ft(as,tr))return;const ma=xt(as);ma.error=$o,ma.response=To,ma.status="error";const No=ct(ma,tr);fo(ma,No)},Fr=$o=>{let To;Promise.resolve(typeof Mn=="function"?Mn($o):Mn).then(as=>{var ma;if(as===!1)return;const No=Pn($o,tr);No&&(To=Object.assign(Object.assign({},$o),{status:"removed"}),tr==null||tr.forEach(fa=>{const al=To.uid!==void 0?"uid":"name";fa[al]===To[al]&&!Object.isFrozen(fa)&&(fa.status="removed")}),(ma=Ue.current)===null||ma===void 0||ma.abort(To),fo(To,No))})},uo=$o=>{ki($o.type),$o.type==="drop"&&(Qi==null||Qi($o))};be.useImperativeHandle(tn,()=>({onBatchStart:ro,onSuccess:Yo,onProgress:ya,onError:Lr,fileList:tr,upload:Ue.current}));const{getPrefixCls:Xr,direction:Zo,upload:oa}=be.useContext(Nn.E_),ur=Xr("upload",Di),hr=Object.assign(Object.assign({onBatchStart:ro,onError:Lr,onProgress:ya,onSuccess:Yo},Rt),{data:wo,multiple:An,action:Br,accept:ta,supportServerRender:bo,prefixCls:ur,disabled:lr,beforeUpload:_o,onChange:void 0});delete hr.className,delete hr.style,(!er||lr)&&delete hr.id;const[ri,Er]=ft(ur),[Io]=(0,Ge.Z)("Upload",en.Z.Upload),{showRemoveIcon:Ma,showPreviewIcon:Sa,showDownloadIcon:Ta,removeIcon:Ra,previewIcon:Ga,downloadIcon:Vs}=typeof bn=="boolean"?{}:bn,us=($o,To)=>bn?be.createElement(cr,{prefixCls:ur,listType:$n,items:tr,previewFile:yr,onPreview:Un,onDownload:Wi,onRemove:Fr,showRemoveIcon:!lr&&Ma,showPreviewIcon:Sa,showDownloadIcon:Ta,removeIcon:Ra,previewIcon:Ga,downloadIcon:Vs,iconRender:ai,locale:Object.assign(Object.assign({},Io),sn),isImageUrl:xi,progress:Gi,appendAction:$o,appendActionVisible:To,itemRender:br,disabled:lr}):$o,Ys=kt()(`${ur}-wrapper`,_i,ca,Er,oa==null?void 0:oa.className,{[`${ur}-rtl`]:Zo==="rtl",[`${ur}-picture-card-wrapper`]:$n==="picture-card",[`${ur}-picture-circle-wrapper`]:$n==="picture-circle"}),hn=Object.assign(Object.assign({},oa==null?void 0:oa.style),Oi);if(wr==="drag"){const $o=kt()(Er,ur,`${ur}-drag`,{[`${ur}-drag-uploading`]:tr.some(To=>To.status==="uploading"),[`${ur}-drag-hover`]:ko==="dragover",[`${ur}-disabled`]:lr,[`${ur}-rtl`]:Zo==="rtl"});return ri(be.createElement("span",{className:Ys},be.createElement("div",{className:$o,style:hn,onDrop:uo,onDragOver:uo,onDragLeave:uo},be.createElement(Ht,Object.assign({},hr,{ref:Ue,className:`${ur}-btn`}),be.createElement("div",{className:`${ur}-drag-container`},er))),us()))}const xs=kt()(ur,`${ur}-select`,{[`${ur}-disabled`]:lr}),El=($o=>be.createElement("div",{className:xs,style:$o},be.createElement(Ht,Object.assign({},hr,{ref:Ue}))))(er?void 0:{display:"none"});return ri($n==="picture-card"||$n==="picture-circle"?be.createElement("span",{className:Ys},us(El,!!er)):be.createElement("span",{className:Ys},El,us()))};var dt=be.forwardRef(bi),Fn=function(Rt,tn){var yn={};for(var an in Rt)Object.prototype.hasOwnProperty.call(Rt,an)&&tn.indexOf(an)<0&&(yn[an]=Rt[an]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,an=Object.getOwnPropertySymbols(Rt);Mn<an.length;Mn++)tn.indexOf(an[Mn])<0&&Object.prototype.propertyIsEnumerable.call(Rt,an[Mn])&&(yn[an[Mn]]=Rt[an[Mn]]);return yn},ji=be.forwardRef((Rt,tn)=>{var{style:yn,height:an}=Rt,Mn=Fn(Rt,["style","height"]);return be.createElement(dt,Object.assign({ref:tn},Mn,{type:"drag",style:Object.assign(Object.assign({},yn),{height:an})}))});const dn=dt;dn.Dragger=ji,dn.LIST_IGNORE=Vn;var vn=dn},99498:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){be.defineOption("placeholder","",function(Tt,Pt,rt){var It=rt&&rt!=be.Init;if(Pt&&!It)Tt.on("blur",Je),Tt.on("change",it),Tt.on("swapDoc",it),be.on(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose=function(){kt(Tt)}),it(Tt);else if(!Pt&&It){Tt.off("blur",Je),Tt.off("change",it),Tt.off("swapDoc",it),be.off(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose),Re(Tt);var gt=Tt.getWrapperElement();gt.className=gt.className.replace(" CodeMirror-empty","")}Pt&&!Tt.hasFocus()&&Je(Tt)});function Re(Tt){Tt.state.placeholder&&(Tt.state.placeholder.parentNode.removeChild(Tt.state.placeholder),Tt.state.placeholder=null)}function at(Tt){Re(Tt);var Pt=Tt.state.placeholder=document.createElement("pre");Pt.style.cssText="height: 0; overflow: visible",Pt.style.direction=Tt.getOption("direction"),Pt.className="CodeMirror-placeholder CodeMirror-line-like";var rt=Tt.getOption("placeholder");typeof rt=="string"&&(rt=document.createTextNode(rt)),Pt.appendChild(rt),Tt.display.lineSpace.insertBefore(Pt,Tt.display.lineSpace.firstChild)}function kt(Tt){setTimeout(function(){var Pt=!1,rt=Tt.getInputField();rt.nodeName=="TEXTAREA"?Pt=!rt.value:Tt.lineCount()==1&&(Pt=!/[^\u200b]/.test(rt.querySelector(".CodeMirror-line").textContent)),Pt?at(Tt):Re(Tt)},20)}function Je(Tt){Te(Tt)&&at(Tt)}function it(Tt){var Pt=Tt.getWrapperElement(),rt=Te(Tt);Pt.className=Pt.className.replace(" CodeMirror-empty","")+(rt?" CodeMirror-empty":""),rt?at(Tt):Re(Tt)}function Te(Tt){return Tt.lineCount()===1&&Tt.getLine(0)===""}})},25717:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){var Re={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},at=be.Pos;be.defineOption("autoCloseBrackets",!1,function(te,ne,he){he&&he!=be.Init&&(te.removeKeyMap(Je),te.state.closeBrackets=null),ne&&(it(kt(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Je))});function kt(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Re[ne]}var Je={Backspace:Pt,Enter:rt};function it(te){for(var ne=0;ne<te.length;ne++){var he=te.charAt(ne),se="'"+he+"'";Je[se]||(Je[se]=Te(he))}}it(Re.pairs+"`");function Te(te){return function(ne){return gt(ne,te)}}function Tt(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ne}function Pt(te){var ne=Tt(te);if(!ne||te.getOption("disableInput"))return be.Pass;for(var he=kt(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return be.Pass;var me=Ct(te,se[ge].head);if(!me||he.indexOf(me)%2!=0)return be.Pass}for(var ge=se.length-1;ge>=0;ge--){var Pe=se[ge].head;te.replaceRange("",at(Pe.line,Pe.ch-1),at(Pe.line,Pe.ch+1),"+delete")}}function rt(te){var ne=Tt(te),he=ne&&kt(ne,"explode");if(!he||te.getOption("disableInput"))return be.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return be.Pass;var me=Ct(te,se[ge].head);if(!me||he.indexOf(me)%2!=0)return be.Pass}te.operation(function(){var Pe=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(Pe+Pe,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var ke=0;ke<se.length;ke++){var we=se[ke].head.line;te.indentLine(we,null,!0),te.indentLine(we+1,null,!0)}})}function It(te){var ne=be.cmpPos(te.anchor,te.head)>0;return{anchor:new at(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new at(te.head.line,te.head.ch+(ne?1:-1))}}function gt(te,ne){var he=Tt(te);if(!he||te.getOption("disableInput"))return be.Pass;var se=kt(he,"pairs"),ge=se.indexOf(ne);if(ge==-1)return be.Pass;for(var me=kt(he,"closeBefore"),Pe=kt(he,"triples"),ke=se.charAt(ge+1)==ne,we=te.listSelections(),Oe=ge%2==0,He,We=0;We<we.length;We++){var Ve=we[We],ut=Ve.head,Ke,Wt=te.getRange(ut,at(ut.line,ut.ch+1));if(Oe&&!Ve.empty())Ke="surround";else if((ke||!Oe)&&Wt==ne)ke&&Fe(te,ut)?Ke="both":Pe.indexOf(ne)>=0&&te.getRange(ut,at(ut.line,ut.ch+3))==ne+ne+ne?Ke="skipThree":Ke="skip";else if(ke&&ut.ch>1&&Pe.indexOf(ne)>=0&&te.getRange(at(ut.line,ut.ch-2),ut)==ne+ne){if(ut.ch>2&&/\bstring/.test(te.getTokenTypeAt(at(ut.line,ut.ch-2))))return be.Pass;Ke="addFour"}else if(ke){var pt=ut.ch==0?" ":te.getRange(at(ut.line,ut.ch-1),ut);if(!be.isWordChar(Wt)&&pt!=ne&&!be.isWordChar(pt))Ke="both";else return be.Pass}else if(Oe&&(Wt.length===0||/\s/.test(Wt)||me.indexOf(Wt)>-1))Ke="both";else return be.Pass;if(!He)He=Ke;else if(He!=Ke)return be.Pass}var Ut=ge%2?se.charAt(ge-1):ne,Ht=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(He=="skip")te.execCommand("goCharRight");else if(He=="skipThree")for(var jt=0;jt<3;jt++)te.execCommand("goCharRight");else if(He=="surround"){for(var Xt=te.getSelections(),jt=0;jt<Xt.length;jt++)Xt[jt]=Ut+Xt[jt]+Ht;te.replaceSelections(Xt,"around"),Xt=te.listSelections().slice();for(var jt=0;jt<Xt.length;jt++)Xt[jt]=It(Xt[jt]);te.setSelections(Xt)}else He=="both"?(te.replaceSelection(Ut+Ht,null),te.triggerElectric(Ut+Ht),te.execCommand("goCharLeft")):He=="addFour"&&(te.replaceSelection(Ut+Ut+Ut+Ut,"before"),te.execCommand("goCharRight"))})}function Ct(te,ne){var he=te.getRange(at(ne.line,ne.ch-1),at(ne.line,ne.ch+1));return he.length==2?he:null}function Fe(te,ne){var he=te.getTokenAt(at(ne.line,ne.ch+1));return/\bstring/.test(he.type)&&he.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(On,xn,ye){(function(be){be(ye(89780),ye(32855))})(function(be){be.defineOption("autoCloseTags",!1,function(Pt,rt,It){if(It!=be.Init&&It&&Pt.removeKeyMap("autoCloseTags"),!!rt){var gt={name:"autoCloseTags"};(typeof rt!="object"||rt.whenClosing!==!1)&&(gt["'/'"]=function(Ct){return it(Ct)}),(typeof rt!="object"||rt.whenOpening!==!1)&&(gt["'>'"]=function(Ct){return kt(Ct)}),Pt.addKeyMap(gt)}});var Re=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],at=["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 kt(Pt){if(Pt.getOption("disableInput"))return be.Pass;for(var rt=Pt.listSelections(),It=[],gt=Pt.getOption("autoCloseTags"),Ct=0;Ct<rt.length;Ct++){if(!rt[Ct].empty())return be.Pass;var Fe=rt[Ct].head,te=Pt.getTokenAt(Fe),ne=be.innerMode(Pt.getMode(),te.state),he=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return be.Pass;var me=ne.mode.configuration=="html",Pe=typeof gt=="object"&>.dontCloseTags||me&&Re,ke=typeof gt=="object"&>.indentTags||me&&at;te.end>Fe.ch&&(ge=ge.slice(0,ge.length-te.end+Fe.ch));var we=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=Fe.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Fe.ch-te.start-1||Pe&&Te(Pe,we)>-1||Tt(Pt,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(he)||[],ge,Fe,!0))return be.Pass;var Oe=typeof gt=="object"&>.emptyTags;if(Oe&&Te(Oe,ge)>-1){It[Ct]={text:"/>",newPos:be.Pos(Fe.line,Fe.ch+2)};continue}var He=ke&&Te(ke,we)>-1;It[Ct]={indent:He,text:">"+(He?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:He?be.Pos(Fe.line+1,0):be.Pos(Fe.line,Fe.ch+1)}}for(var We=typeof gt=="object"&>.dontIndentOnAutoClose,Ct=rt.length-1;Ct>=0;Ct--){var Ve=It[Ct];Pt.replaceRange(Ve.text,rt[Ct].head,rt[Ct].anchor,"+insert");var ut=Pt.listSelections().slice(0);ut[Ct]={head:Ve.newPos,anchor:Ve.newPos},Pt.setSelections(ut),!We&&Ve.indent&&(Pt.indentLine(Ve.newPos.line,null,!0),Pt.indentLine(Ve.newPos.line+1,null,!0))}}function Je(Pt,rt){for(var It=Pt.listSelections(),gt=[],Ct=rt?"/":"</",Fe=Pt.getOption("autoCloseTags"),te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ne=0;ne<It.length;ne++){if(!It[ne].empty())return be.Pass;var he=It[ne].head,se=Pt.getTokenAt(he),ge=be.innerMode(Pt.getMode(),se.state),me=ge.state;if(rt&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return be.Pass;var Pe,ke=ge.mode.name!="xml"&&Pt.getMode().name=="htmlmixed";if(ke&&ge.mode.name=="javascript")Pe=Ct+"script";else if(ke&&ge.mode.name=="css")Pe=Ct+"style";else{var we=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!we||we.length&&Tt(Pt,we,we[we.length-1],he))return be.Pass;Pe=Ct+we[we.length-1]}Pt.getLine(he.line).charAt(se.end)!=">"&&(Pe+=">"),gt[ne]=Pe}if(Pt.replaceSelections(gt),It=Pt.listSelections(),!te)for(var ne=0;ne<It.length;ne++)(ne==It.length-1||It[ne].head.line<It[ne+1].head.line)&&Pt.indentLine(It[ne].head.line)}function it(Pt){return Pt.getOption("disableInput")?be.Pass:Je(Pt,!0)}be.commands.closeTag=function(Pt){return Je(Pt)};function Te(Pt,rt){if(Pt.indexOf)return Pt.indexOf(rt);for(var It=0,gt=Pt.length;It<gt;++It)if(Pt[It]==rt)return It;return-1}function Tt(Pt,rt,It,gt,Ct){if(!be.scanForClosingTag)return!1;var Fe=Math.min(Pt.lastLine()+1,gt.line+500),te=be.scanForClosingTag(Pt,gt,null,Fe);if(!te||te.tag!=It)return!1;for(var ne=Ct?1:0,he=rt.length-1;he>=0&&rt[he]==It;he--)++ne;gt=te.to;for(var he=1;he<ne;he++){var se=be.scanForClosingTag(Pt,gt,null,Fe);if(!se||se.tag!=It)return!1;gt=se.to}return!0}})},32855:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){"use strict";var Re=be.Pos;function at(he,se){return he.line-se.line||he.ch-se.ch}var kt="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",Je=kt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",it=new RegExp("<(/?)(["+kt+"]["+Je+"]*)","g");function Te(he,se,ge,me){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=me?Math.max(me.from,he.firstLine()):he.firstLine(),this.max=me?Math.min(me.to-1,he.lastLine()):he.lastLine()}function Tt(he,se){var ge=he.cm.getTokenTypeAt(Re(he.line,se));return ge&&/\btag\b/.test(ge)}function Pt(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function rt(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function It(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Pt(he))continue;return}if(!Tt(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function gt(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(rt(he))continue;return}if(!Tt(he,se+1)){he.ch=se;continue}it.lastIndex=se,he.ch=se;var ge=it.exec(he.text);if(ge&&ge.index==se)return ge}}function Ct(he){for(;;){it.lastIndex=he.ch;var se=it.exec(he.text);if(!se){if(Pt(he))continue;return}if(!Tt(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Fe(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(rt(he))continue;return}if(!Tt(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function te(he,se){for(var ge=[];;){var me=Ct(he),Pe,ke=he.line,we=he.ch-(me?me[0].length:0);if(!me||!(Pe=It(he)))return;if(Pe!="selfClose")if(me[1]){for(var Oe=ge.length-1;Oe>=0;--Oe)if(ge[Oe]==me[2]){ge.length=Oe;break}if(Oe<0&&(!se||se==me[2]))return{tag:me[2],from:Re(ke,we),to:Re(he.line,he.ch)}}else ge.push(me[2])}}function ne(he,se){for(var ge=[];;){var me=Fe(he);if(!me)return;if(me=="selfClose"){gt(he);continue}var Pe=he.line,ke=he.ch,we=gt(he);if(!we)return;if(we[1])ge.push(we[2]);else{for(var Oe=ge.length-1;Oe>=0;--Oe)if(ge[Oe]==we[2]){ge.length=Oe;break}if(Oe<0&&(!se||se==we[2]))return{tag:we[2],from:Re(he.line,he.ch),to:Re(Pe,ke)}}}}be.registerHelper("fold","xml",function(he,se){for(var ge=new Te(he,se.line,0);;){var me=Ct(ge);if(!me||ge.line!=se.line)return;var Pe=It(ge);if(!Pe)return;if(!me[1]&&Pe!="selfClose"){var ke=Re(ge.line,ge.ch),we=te(ge,me[2]);return we&&at(we.from,ke)>0?{from:ke,to:we.from}:null}}}),be.findMatchingTag=function(he,se,ge){var me=new Te(he,se.line,se.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var Pe=It(me),ke=Pe&&Re(me.line,me.ch),we=Pe&>(me);if(!(!Pe||!we||at(me,se)>0)){var Oe={from:Re(me.line,me.ch),to:ke,tag:we[2]};return Pe=="selfClose"?{open:Oe,close:null,at:"open"}:we[1]?{open:ne(me,we[2]),close:Oe,at:"close"}:(me=new Te(he,ke.line,ke.ch,ge),{open:Oe,close:te(me,we[2]),at:"open"})}}},be.findEnclosingTag=function(he,se,ge,me){for(var Pe=new Te(he,se.line,se.ch,ge);;){var ke=ne(Pe,me);if(!ke)break;var we=new Te(he,se.line,se.ch,ge),Oe=te(we,ke.tag);if(Oe)return{open:ke,close:Oe}}},be.scanForClosingTag=function(he,se,ge,me){var Pe=new Te(he,se.line,se.ch,me?{from:0,to:me}:null);return te(Pe,ge)}})},89780:function(On){(function(xn,ye){On.exports=ye()})(this,function(){"use strict";var xn=navigator.userAgent,ye=navigator.platform,be=/gecko\/\d/i.test(xn),Re=/MSIE \d/.test(xn),at=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xn),kt=/Edge\/(\d+)/.exec(xn),Je=Re||at||kt,it=Je&&(Re?document.documentMode||6:+(kt||at)[1]),Te=!kt&&/WebKit\//.test(xn),Tt=Te&&/Qt\/\d+\.\d+/.test(xn),Pt=!kt&&/Chrome\//.test(xn),rt=/Opera\//.test(xn),It=/Apple Computer/.test(navigator.vendor),gt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(xn),Ct=/PhantomJS/.test(xn),Fe=!kt&&/AppleWebKit/.test(xn)&&/Mobile\/\w+/.test(xn),te=/Android/.test(xn),ne=Fe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(xn),he=Fe||/Mac/.test(ye),se=/\bCrOS\b/.test(xn),ge=/win/i.test(ye),me=rt&&xn.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(rt=!1,Te=!0);var Pe=he&&(Tt||rt&&(me==null||me<12.11)),ke=be||Je&&it>=9;function we(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Oe=function(ie,ae){var ce=ie.className,de=we(ae).exec(ce);if(de){var pe=ce.slice(de.index+de[0].length);ie.className=ce.slice(0,de.index)+(pe?de[1]+pe:"")}};function He(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function We(ie,ae){return He(ie).appendChild(ae)}function Ve(ie,ae,ce,de){var pe=document.createElement(ie);if(ce&&(pe.className=ce),de&&(pe.style.cssText=de),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Ae=0;Ae<ae.length;++Ae)pe.appendChild(ae[Ae]);return pe}function ut(ie,ae,ce,de){var pe=Ve(ie,ae,ce,de);return pe.setAttribute("role","presentation"),pe}var Ke;document.createRange?Ke=function(ie,ae,ce,de){var pe=document.createRange();return pe.setEnd(de||ie,ce),pe.setStart(ie,ae),pe}:Ke=function(ie,ae,ce){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",ce),de.moveStart("character",ae),de};function Wt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function pt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ut(ie,ae){var ce=ie.className;we(ae).test(ce)||(ie.className+=(ce?" ":"")+ae)}function Ht(ie,ae){for(var ce=ie.split(" "),de=0;de<ce.length;de++)ce[de]&&!we(ce[de]).test(ae)&&(ae+=" "+ce[de]);return ae}var jt=function(ie){ie.select()};Fe?jt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Je&&(jt=function(ie){try{ie.select()}catch(ae){}});function Xt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Nn(ie,ae,ce){ae||(ae={});for(var de in ie)ie.hasOwnProperty(de)&&(ce!==!1||!ae.hasOwnProperty(de))&&(ae[de]=ie[de]);return ae}function St(ie,ae,ce,de,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ae=de||0,ze=pe||0;;){var et=ie.indexOf(" ",Ae);if(et<0||et>=ae)return ze+(ae-Ae);ze+=et-Ae,ze+=ce-ze%ce,Ae=et+1}}var Ge=function(){this.id=null,this.f=null,this.time=0,this.handler=Xt(this.onTimeout,this)};Ge.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ge.prototype.set=function(ie,ae){this.f=ae;var ce=+new Date+ie;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ce)};function en(ie,ae){for(var ce=0;ce<ie.length;++ce)if(ie[ce]==ae)return ce;return-1}var Hn=50,_n={toString:function(){return"CodeMirror.Pass"}},Bt={scroll:!1},rn={origin:"*mouse"},cn={origin:"+move"};function Kn(ie,ae,ce){for(var de=0,pe=0;;){var Ae=ie.indexOf(" ",de);Ae==-1&&(Ae=ie.length);var ze=Ae-de;if(Ae==ie.length||pe+ze>=ae)return de+Math.min(ze,ae-pe);if(pe+=Ae-de,pe+=ce-pe%ce,de=Ae+1,pe>=ae)return de}}var nn=[""];function Rn(ie){for(;nn.length<=ie;)nn.push(vt(nn)+" ");return nn[ie]}function vt(ie){return ie[ie.length-1]}function Yn(ie,ae){for(var ce=[],de=0;de<ie.length;de++)ce[de]=ae(ie[de],de);return ce}function ni(ie,ae,ce){for(var de=0,pe=ce(ae);de<ie.length&&ce(ie[de])<=pe;)de++;ie.splice(de,0,ae)}function je(){}function Me(ie,ae){var ce;return Object.create?ce=Object.create(ie):(je.prototype=ie,ce=new je),ae&&Nn(ae,ce),ce}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||xe.test(ie))}function Be(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ne(ie)?!0:ae.test(ie):Ne(ie)}function Se(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var lt=/[\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 Et(ie){return ie.charCodeAt(0)>=768&<.test(ie)}function Xe(ie,ae,ce){for(;(ce<0?ae>0:ae<ie.length)&&Et(ie.charAt(ae));)ae+=ce;return ae}function tt(ie,ae,ce){for(var de=ae>ce?-1:1;;){if(ae==ce)return ae;var pe=(ae+ce)/2,Ae=de<0?Math.ceil(pe):Math.floor(pe);if(Ae==ae)return ie(Ae)?ae:ce;ie(Ae)?ce=Ae:ae=Ae+de}}function wt(ie,ae,ce,de){if(!ie)return de(ae,ce,"ltr",0);for(var pe=!1,Ae=0;Ae<ie.length;++Ae){var ze=ie[Ae];(ze.from<ce&&ze.to>ae||ae==ce&&ze.to==ae)&&(de(Math.max(ze.from,ae),Math.min(ze.to,ce),ze.level==1?"rtl":"ltr",Ae),pe=!0)}pe||de(ae,ce,"ltr")}var xt=null;function ct(ie,ae,ce){var de;xt=null;for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.from<ae&&Ae.to>ae)return pe;Ae.to==ae&&(Ae.from!=Ae.to&&ce=="before"?de=pe:xt=pe),Ae.from==ae&&(Ae.from!=Ae.to&&ce!="before"?de=pe:xt=pe)}return de!=null?de:xt}var Ft=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(yt){return yt<=247?ie.charAt(yt):1424<=yt&&yt<=1524?"R":1536<=yt&&yt<=1785?ae.charAt(yt-1536):1774<=yt&&yt<=2220?"r":8192<=yt&&yt<=8203?"w":yt==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Ae=/[LRr]/,ze=/[Lb1n]/,et=/[1n]/;function qe(yt,ln,At){this.level=yt,this.from=ln,this.to=At}return function(yt,ln){var At=ln=="ltr"?"L":"R";if(yt.length==0||ln=="ltr"&&!de.test(yt))return!1;for(var Wn=yt.length,Bn=[],Ni=0;Ni<Wn;++Ni)Bn.push(ce(yt.charCodeAt(Ni)));for(var Bi=0,Ji=At;Bi<Wn;++Bi){var Cr=Bn[Bi];Cr=="m"?Bn[Bi]=Ji:Ji=Cr}for(var io=0,Gr=At;io<Wn;++io){var xo=Bn[io];xo=="1"&&Gr=="r"?Bn[io]="n":Ae.test(xo)&&(Gr=xo,xo=="r"&&(Bn[io]="R"))}for(var Qo=1,Hr=Bn[0];Qo<Wn-1;++Qo){var pa=Bn[Qo];pa=="+"&&Hr=="1"&&Bn[Qo+1]=="1"?Bn[Qo]="1":pa==","&&Hr==Bn[Qo+1]&&(Hr=="1"||Hr=="n")&&(Bn[Qo]=Hr),Hr=pa}for(var Zs=0;Zs<Wn;++Zs){var Fl=Bn[Zs];if(Fl==",")Bn[Zs]="N";else if(Fl=="%"){var el=void 0;for(el=Zs+1;el<Wn&&Bn[el]=="%";++el);for(var Ou=Zs&&Bn[Zs-1]=="!"||el<Wn&&Bn[el]=="1"?"1":"N",gu=Zs;gu<el;++gu)Bn[gu]=Ou;Zs=el-1}}for(var Pl=0,Uu=At;Pl<Wn;++Pl){var tu=Bn[Pl];Uu=="L"&&tu=="1"?Bn[Pl]="L":Ae.test(tu)&&(Uu=tu)}for(var Cl=0;Cl<Wn;++Cl)if(pe.test(Bn[Cl])){var _a=void 0;for(_a=Cl+1;_a<Wn&&pe.test(Bn[_a]);++_a);for(var il=(Cl?Bn[Cl-1]:At)=="L",jl=(_a<Wn?Bn[_a]:At)=="L",nu=il==jl?il?"L":"R":At,Gh=Cl;Gh<_a;++Gh)Bn[Gh]=nu;Cl=_a-1}for(var tl=[],Eh,hl=0;hl<Wn;)if(ze.test(Bn[hl])){var Qf=hl;for(++hl;hl<Wn&&ze.test(Bn[hl]);++hl);tl.push(new qe(0,Qf,hl))}else{var hh=hl,Xu=tl.length,Iu=ln=="rtl"?1:0;for(++hl;hl<Wn&&Bn[hl]!="L";++hl);for(var Ns=hh;Ns<hl;)if(et.test(Bn[Ns])){hh<Ns&&(tl.splice(Xu,0,new qe(1,hh,Ns)),Xu+=Iu);var Hl=Ns;for(++Ns;Ns<hl&&et.test(Bn[Ns]);++Ns);tl.splice(Xu,0,new qe(2,Hl,Ns)),Xu+=Iu,hh=Ns}else++Ns;hh<hl&&tl.splice(Xu,0,new qe(1,hh,hl))}return ln=="ltr"&&(tl[0].level==1&&(Eh=yt.match(/^\s+/))&&(tl[0].from=Eh[0].length,tl.unshift(new qe(0,0,Eh[0].length))),vt(tl).level==1&&(Eh=yt.match(/\s+$/))&&(vt(tl).to-=Eh[0].length,tl.push(new qe(0,Wn-Eh[0].length,Wn)))),ln=="rtl"?tl.reverse():tl}}();function Pn(ie,ae){var ce=ie.order;return ce==null&&(ce=ie.order=Ft(ie.text,ae)),ce}var mn=[],Jt=function(ie,ae,ce){if(ie.addEventListener)ie.addEventListener(ae,ce,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ce);else{var de=ie._handlers||(ie._handlers={});de[ae]=(de[ae]||mn).concat(ce)}};function gn(ie,ae){return ie._handlers&&ie._handlers[ae]||mn}function Tn(ie,ae,ce){if(ie.removeEventListener)ie.removeEventListener(ae,ce,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ce);else{var de=ie._handlers,pe=de&&de[ae];if(pe){var Ae=en(pe,ce);Ae>-1&&(de[ae]=pe.slice(0,Ae).concat(pe.slice(Ae+1)))}}}function bt(ie,ae){var ce=gn(ie,ae);if(ce.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<ce.length;++pe)ce[pe].apply(null,de)}function _t(ie,ae,ce){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),bt(ie,ce||ae.type,ie,ae),wi(ae)||ae.codemirrorIgnore}function $t(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ce=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<ae.length;++de)en(ce,ae[de])==-1&&ce.push(ae[de])}function Dn(ie,ae){return gn(ie,ae).length>0}function ii(ie){ie.prototype.on=function(ae,ce){Jt(this,ae,ce)},ie.prototype.off=function(ae,ce){Tn(this,ae,ce)}}function pi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function fi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function wi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Vi(ie){pi(ie),fi(ie)}function vr(ie){return ie.target||ie.srcElement}function cr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var pr=function(){if(Je&&it<9)return!1;var ie=Ve("div");return"draggable"in ie||"dragDrop"in ie}(),_r;function Ir(ie){if(_r==null){var ae=Ve("span","\u200B");We(ie,Ve("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(_r=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Je&&it<8))}var ce=_r?Ve("span","\u200B"):Ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var $i;function eo(ie){if($i!=null)return $i;var ae=We(ie,document.createTextNode("A\u062EA")),ce=Ke(ae,0,1).getBoundingClientRect(),de=Ke(ae,1,2).getBoundingClientRect();return He(ie),!ce||ce.left==ce.right?!1:$i=de.right-ce.right<3}var kr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ce=[],de=ie.length;ae<=de;){var pe=ie.indexOf(`
|
|
|
`,ae);pe==-1&&(pe=ie.length);var Ae=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),ze=Ae.indexOf("\r");ze!=-1?(ce.push(Ae.slice(0,ze)),ae+=ze+1):(ce.push(Ae),ae=pe+1)}return ce}:function(ie){return ie.split(/\r\n?|\n/)},Ee=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ce){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},si=function(){var ie=Ve("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),yi=null;function or(ie){if(yi!=null)return yi;var ae=We(ie,Ve("span","x")),ce=ae.getBoundingClientRect(),de=Ke(ae,0,1).getBoundingClientRect();return yi=Math.abs(ce.left-de.left)>1}var xr={},qi={};function Qr(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),xr[ie]=ae}function mo(ie,ae){qi[ie]=ae}function zr(ie){if(typeof ie=="string"&&qi.hasOwnProperty(ie))ie=qi[ie];else if(ie&&typeof ie.name=="string"&&qi.hasOwnProperty(ie.name)){var ae=qi[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Me(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return zr("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return zr("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function on(ie,ae){ae=zr(ae);var ce=xr[ae.name];if(!ce)return on(ie,"text/plain");var de=ce(ie,ae);if(Yt.hasOwnProperty(ae.name)){var pe=Yt[ae.name];for(var Ae in pe)pe.hasOwnProperty(Ae)&&(de.hasOwnProperty(Ae)&&(de["_"+Ae]=de[Ae]),de[Ae]=pe[Ae])}if(de.name=ae.name,ae.helperType&&(de.helperType=ae.helperType),ae.modeProps)for(var ze in ae.modeProps)de[ze]=ae.modeProps[ze];return de}var Yt={};function Qe(ie,ae){var ce=Yt.hasOwnProperty(ie)?Yt[ie]:Yt[ie]={};Nn(ae,ce)}function un(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ce={};for(var de in ae){var pe=ae[de];pe instanceof Array&&(pe=pe.concat([])),ce[de]=pe}return ce}function In(ie,ae){for(var ce;ie.innerMode&&(ce=ie.innerMode(ae),!(!ce||ce.mode==ie));)ae=ce.state,ie=ce.mode;return ce||{mode:ie,state:ae}}function Mt(ie,ae,ce){return ie.startState?ie.startState(ae,ce):!0}var ft=function(ie,ae,ce){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};ft.prototype.eol=function(){return this.pos>=this.string.length},ft.prototype.sol=function(){return this.pos==this.lineStart},ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ft.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ce;if(typeof ie=="string"?ce=ae==ie:ce=ae&&(ie.test?ie.test(ae):ie(ae)),ce)return++this.pos,ae},ft.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},ft.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},ft.prototype.skipToEnd=function(){this.pos=this.string.length},ft.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},ft.prototype.backUp=function(ie){this.pos-=ie},ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=St(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?St(this.string,this.lineStart,this.tabSize):0)},ft.prototype.indentation=function(){return St(this.string,null,this.tabSize)-(this.lineStart?St(this.string,this.lineStart,this.tabSize):0)},ft.prototype.match=function(ie,ae,ce){if(typeof ie=="string"){var de=function(ze){return ce?ze.toLowerCase():ze},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Ae=this.string.slice(this.pos).match(ie);return Ae&&Ae.index>0?null:(Ae&&ae!==!1&&(this.pos+=Ae[0].length),Ae)}},ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},ft.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},ft.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},ft.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function fn(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ce=ie;!ce.lines;)for(var de=0;;++de){var pe=ce.children[de],Ae=pe.chunkSize();if(ae<Ae){ce=pe;break}ae-=Ae}return ce.lines[ae]}function Vn(ie,ae,ce){var de=[],pe=ae.line;return ie.iter(ae.line,ce.line+1,function(Ae){var ze=Ae.text;pe==ce.line&&(ze=ze.slice(0,ce.ch)),pe==ae.line&&(ze=ze.slice(ae.ch)),de.push(ze),++pe}),de}function bi(ie,ae,ce){var de=[];return ie.iter(ae,ce,function(pe){de.push(pe.text)}),de}function gi(ie,ae){var ce=ae-ie.height;if(ce)for(var de=ie;de;de=de.parent)de.height+=ce}function dt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ce=en(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var pe=0;de.children[pe]!=ae;++pe)ce+=de.children[pe].chunkSize();return ce+ae.first}function Fn(ie,ae){var ce=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Ae=pe.height;if(ae<Ae){ie=pe;continue e}ae-=Ae,ce+=pe.chunkSize()}return ce}while(!ie.lines);for(var ze=0;ze<ie.lines.length;++ze){var et=ie.lines[ze],qe=et.height;if(ae<qe)break;ae-=qe}return ce+ze}function ui(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ji(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function dn(ie,ae,ce){if(ce===void 0&&(ce=null),!(this instanceof dn))return new dn(ie,ae,ce);this.line=ie,this.ch=ae,this.sticky=ce}function vn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Rt(ie,ae){return ie.sticky==ae.sticky&&vn(ie,ae)==0}function tn(ie){return dn(ie.line,ie.ch)}function yn(ie,ae){return vn(ie,ae)<0?ae:ie}function an(ie,ae){return vn(ie,ae)<0?ie:ae}function Mn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function bn(ie,ae){if(ae.line<ie.first)return dn(ie.first,0);var ce=ie.first+ie.size-1;return ae.line>ce?dn(ce,fn(ie,ce).text.length):$n(ae,fn(ie,ae.line).text.length)}function $n(ie,ae){var ce=ie.ch;return ce==null||ce>ae?dn(ie.line,ae):ce<0?dn(ie.line,0):ie}function Un(ie,ae){for(var ce=[],de=0;de<ae.length;de++)ce[de]=bn(ie,ae[de]);return ce}var Wi=function(ie,ae){this.state=ie,this.lookAhead=ae},qt=function(ie,ae,ce,de){this.state=ae,this.doc=ie,this.line=ce,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};qt.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},qt.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(ie,ae,ce){return ae instanceof Wi?new qt(ie,un(ie.mode,ae.state),ce,ae.lookAhead):new qt(ie,un(ie.mode,ae),ce)},qt.prototype.save=function(ie){var ae=ie!==!1?un(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wi(ae,this.maxLookAhead):ae};function Qi(ie,ae,ce,de){var pe=[ie.state.modeGen],Ae={};wr(ie,ae.text,ie.doc.mode,ce,function(yt,ln){return pe.push(yt,ln)},Ae,de);for(var ze=ce.state,et=function(yt){ce.baseTokens=pe;var ln=ie.state.overlays[yt],At=1,Wn=0;ce.state=!0,wr(ie,ae.text,ln.mode,ce,function(Bn,Ni){for(var Bi=At;Wn<Bn;){var Ji=pe[At];Ji>Bn&&pe.splice(At,1,Bn,pe[At+1],Ji),At+=2,Wn=Math.min(Bn,Ji)}if(Ni)if(ln.opaque)pe.splice(Bi,At-Bi,Bn,"overlay "+Ni),At=Bi+2;else for(;Bi<At;Bi+=2){var Cr=pe[Bi+1];pe[Bi+1]=(Cr?Cr+" ":"")+"overlay "+Ni}},Ae),ce.state=ze,ce.baseTokens=null,ce.baseTokenPos=1},qe=0;qe<ie.state.overlays.length;++qe)et(qe);return{styles:pe,classes:Ae.bgClass||Ae.textClass?Ae:null}}function yr(ie,ae,ce){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=Dr(ie,dt(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&un(ie.doc.mode,de.state),Ae=Qi(ie,ae,de);pe&&(de.state=pe),ae.stateAfter=de.save(!pe),ae.styles=Ae.styles,Ae.classes?ae.styleClasses=Ae.classes:ae.styleClasses&&(ae.styleClasses=null),ce===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Dr(ie,ae,ce){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new qt(de,!0,ae);var Ae=er(ie,ae,ce),ze=Ae>de.first&&fn(de,Ae-1).stateAfter,et=ze?qt.fromSaved(de,ze,Ae):new qt(de,Mt(de.mode),Ae);return de.iter(Ae,ae,function(qe){sn(ie,qe.text,et);var yt=et.line;qe.stateAfter=yt==ae-1||yt%5==0||yt>=pe.viewFrom&&yt<pe.viewTo?et.save():null,et.nextLine()}),ce&&(de.modeFrontier=et.line),et}function sn(ie,ae,ce,de){var pe=ie.doc.mode,Ae=new ft(ae,ie.options.tabSize,ce);for(Ae.start=Ae.pos=de||0,ae==""&&ai(pe,ce.state);!Ae.eol();)xi(pe,Ae,ce.state),Ae.start=Ae.pos}function ai(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ce=In(ie,ae);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function xi(ie,ae,ce,de){for(var pe=0;pe<10;pe++){de&&(de[0]=In(ie,ce).mode);var Ae=ie.token(ae,ce);if(ae.pos>ae.start)return Ae}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Gi=function(ie,ae,ce){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ce};function Di(ie,ae,ce,de){var pe=ie.doc,Ae=pe.mode,ze;ae=bn(pe,ae);var et=fn(pe,ae.line),qe=Dr(ie,ae.line,ce),yt=new ft(et.text,ie.options.tabSize,qe),ln;for(de&&(ln=[]);(de||yt.pos<ae.ch)&&!yt.eol();)yt.start=yt.pos,ze=xi(Ae,yt,qe.state),de&&ln.push(new Gi(yt,ze,un(pe.mode,qe.state)));return de?ln:new Gi(yt,ze,qe.state)}function _i(ie,ae){if(ie)for(;;){var ce=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;ie=ie.slice(0,ce.index)+ie.slice(ce.index+ce[0].length);var de=ce[1]?"bgClass":"textClass";ae[de]==null?ae[de]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(ae[de])||(ae[de]+=" "+ce[2])}return ie}function wr(ie,ae,ce,de,pe,Ae,ze){var et=ce.flattenSpans;et==null&&(et=ie.options.flattenSpans);var qe=0,yt=null,ln=new ft(ae,ie.options.tabSize,de),At,Wn=ie.options.addModeClass&&[null];for(ae==""&&_i(ai(ce,de.state),Ae);!ln.eol();){if(ln.pos>ie.options.maxHighlightLength?(et=!1,ze&&sn(ie,ae,de,ln.pos),ln.pos=ae.length,At=null):At=_i(xi(ce,ln,de.state,Wn),Ae),Wn){var Bn=Wn[0].name;Bn&&(At="m-"+(At?Bn+" "+At:Bn))}if(!et||yt!=At){for(;qe<ln.start;)qe=Math.min(ln.start,qe+5e3),pe(qe,yt);yt=At}ln.start=ln.pos}for(;qe<ln.pos;){var Ni=Math.min(ln.pos,qe+5e3);pe(Ni,yt),qe=Ni}}function er(ie,ae,ce){for(var de,pe,Ae=ie.doc,ze=ce?-1:ae-(ie.doc.mode.innerMode?1e3:100),et=ae;et>ze;--et){if(et<=Ae.first)return Ae.first;var qe=fn(Ae,et-1),yt=qe.stateAfter;if(yt&&(!ce||et+(yt instanceof Wi?yt.lookAhead:0)<=Ae.modeFrontier))return et;var ln=St(qe.text,null,ie.options.tabSize);(pe==null||de>ln)&&(pe=et-1,de=ln)}return pe}function Oi(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ce=ie.first,de=ae-1;de>ce;de--){var pe=fn(ie,de).stateAfter;if(pe&&(!(pe instanceof Wi)||de+pe.lookAhead<ae)){ce=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ce)}}var br=!1,En=!1;function wo(){br=!0}function An(){En=!0}function Br(ie,ae,ce){this.marker=ie,this.from=ae,this.to=ce}function ta(ie,ae){if(ie)for(var ce=0;ce<ie.length;++ce){var de=ie[ce];if(de.marker==ae)return de}}function bo(ie,ae){for(var ce,de=0;de<ie.length;++de)ie[de]!=ae&&(ce||(ce=[])).push(ie[de]);return ce}function ca(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function qo(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],ze=Ae.marker,et=Ae.from==null||(ze.inclusiveLeft?Ae.from<=ae:Ae.from<ae);if(et||Ae.from==ae&&ze.type=="bookmark"&&(!ce||!Ae.marker.insertLeft)){var qe=Ae.to==null||(ze.inclusiveRight?Ae.to>=ae:Ae.to>ae);(de||(de=[])).push(new Br(ze,Ae.from,qe?null:Ae.to))}}return de}function lr(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],ze=Ae.marker,et=Ae.to==null||(ze.inclusiveRight?Ae.to>=ae:Ae.to>ae);if(et||Ae.from==ae&&ze.type=="bookmark"&&(!ce||Ae.marker.insertLeft)){var qe=Ae.from==null||(ze.inclusiveLeft?Ae.from<=ae:Ae.from<ae);(de||(de=[])).push(new Br(ze,qe?null:Ae.from-ae,Ae.to==null?null:Ae.to-ae))}}return de}function tr(ie,ae){if(ae.full)return null;var ce=ui(ie,ae.from.line)&&fn(ie,ae.from.line).markedSpans,de=ui(ie,ae.to.line)&&fn(ie,ae.to.line).markedSpans;if(!ce&&!de)return null;var pe=ae.from.ch,Ae=ae.to.ch,ze=vn(ae.from,ae.to)==0,et=qo(ce,pe,ze),qe=lr(de,Ae,ze),yt=ae.text.length==1,ln=vt(ae.text).length+(yt?pe:0);if(et)for(var At=0;At<et.length;++At){var Wn=et[At];if(Wn.to==null){var Bn=ta(qe,Wn.marker);Bn?yt&&(Wn.to=Bn.to==null?null:Bn.to+ln):Wn.to=pe}}if(qe)for(var Ni=0;Ni<qe.length;++Ni){var Bi=qe[Ni];if(Bi.to!=null&&(Bi.to+=ln),Bi.from==null){var Ji=ta(et,Bi.marker);Ji||(Bi.from=ln,yt&&(et||(et=[])).push(Bi))}else Bi.from+=ln,yt&&(et||(et=[])).push(Bi)}et&&(et=to(et)),qe&&qe!=et&&(qe=to(qe));var Cr=[et];if(!yt){var io=ae.text.length-2,Gr;if(io>0&&et)for(var xo=0;xo<et.length;++xo)et[xo].to==null&&(Gr||(Gr=[])).push(new Br(et[xo].marker,null,null));for(var Qo=0;Qo<io;++Qo)Cr.push(Gr);Cr.push(qe)}return Cr}function to(ie){for(var ae=0;ae<ie.length;++ae){var ce=ie[ae];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function ko(ie,ae,ce){var de=null;if(ie.iter(ae.line,ce.line+1,function(Bn){if(Bn.markedSpans)for(var Ni=0;Ni<Bn.markedSpans.length;++Ni){var Bi=Bn.markedSpans[Ni].marker;Bi.readOnly&&(!de||en(de,Bi)==-1)&&(de||(de=[])).push(Bi)}}),!de)return null;for(var pe=[{from:ae,to:ce}],Ae=0;Ae<de.length;++Ae)for(var ze=de[Ae],et=ze.find(0),qe=0;qe<pe.length;++qe){var yt=pe[qe];if(!(vn(yt.to,et.from)<0||vn(yt.from,et.to)>0)){var ln=[qe,1],At=vn(yt.from,et.from),Wn=vn(yt.to,et.to);(At<0||!ze.inclusiveLeft&&!At)&&ln.push({from:yt.from,to:et.from}),(Wn>0||!ze.inclusiveRight&&!Wn)&&ln.push({from:et.to,to:yt.to}),pe.splice.apply(pe,ln),qe+=ln.length-3}}return pe}function ki(ie){var ae=ie.markedSpans;if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.detachLine(ie);ie.markedSpans=null}}function Ue(ie,ae){if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.attachLine(ie);ie.markedSpans=ae}}function fo(ie){return ie.inclusiveLeft?-1:0}function _o(ie){return ie.inclusiveRight?1:0}function ro(ie,ae){var ce=ie.lines.length-ae.lines.length;if(ce!=0)return ce;var de=ie.find(),pe=ae.find(),Ae=vn(de.from,pe.from)||fo(ie)-fo(ae);if(Ae)return-Ae;var ze=vn(de.to,pe.to)||_o(ie)-_o(ae);return ze||ae.id-ie.id}function Yo(ie,ae){var ce=En&&ie.markedSpans,de;if(ce)for(var pe=void 0,Ae=0;Ae<ce.length;++Ae)pe=ce[Ae],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!de||ro(de,pe.marker)<0)&&(de=pe.marker);return de}function ya(ie){return Yo(ie,!0)}function Lr(ie){return Yo(ie,!1)}function Fr(ie,ae){var ce=En&&ie.markedSpans,de;if(ce)for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe];Ae.marker.collapsed&&(Ae.from==null||Ae.from<ae)&&(Ae.to==null||Ae.to>ae)&&(!de||ro(de,Ae.marker)<0)&&(de=Ae.marker)}return de}function uo(ie,ae,ce,de,pe){var Ae=fn(ie,ae),ze=En&&Ae.markedSpans;if(ze)for(var et=0;et<ze.length;++et){var qe=ze[et];if(qe.marker.collapsed){var yt=qe.marker.find(0),ln=vn(yt.from,ce)||fo(qe.marker)-fo(pe),At=vn(yt.to,de)||_o(qe.marker)-_o(pe);if(!(ln>=0&&At<=0||ln<=0&&At>=0)&&(ln<=0&&(qe.marker.inclusiveRight&&pe.inclusiveLeft?vn(yt.to,ce)>=0:vn(yt.to,ce)>0)||ln>=0&&(qe.marker.inclusiveRight&&pe.inclusiveLeft?vn(yt.from,de)<=0:vn(yt.from,de)<0)))return!0}}}function Xr(ie){for(var ae;ae=ya(ie);)ie=ae.find(-1,!0).line;return ie}function Zo(ie){for(var ae;ae=Lr(ie);)ie=ae.find(1,!0).line;return ie}function oa(ie){for(var ae,ce;ae=Lr(ie);)ie=ae.find(1,!0).line,(ce||(ce=[])).push(ie);return ce}function ur(ie,ae){var ce=fn(ie,ae),de=Xr(ce);return ce==de?ae:dt(de)}function hr(ie,ae){if(ae>ie.lastLine())return ae;var ce=fn(ie,ae),de;if(!ri(ie,ce))return ae;for(;de=Lr(ce);)ce=de.find(1,!0).line;return dt(ce)+1}function ri(ie,ae){var ce=En&&ae.markedSpans;if(ce){for(var de=void 0,pe=0;pe<ce.length;++pe)if(de=ce[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&Er(ie,ae,de))return!0}}}function Er(ie,ae,ce){if(ce.to==null){var de=ce.marker.find(1,!0);return Er(ie,de.line,ta(de.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==ae.text.length)return!0;for(var pe=void 0,Ae=0;Ae<ae.markedSpans.length;++Ae)if(pe=ae.markedSpans[Ae],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ce.to&&(pe.to==null||pe.to!=ce.from)&&(pe.marker.inclusiveLeft||ce.marker.inclusiveRight)&&Er(ie,ae,pe))return!0}function Io(ie){ie=Xr(ie);for(var ae=0,ce=ie.parent,de=0;de<ce.lines.length;++de){var pe=ce.lines[de];if(pe==ie)break;ae+=pe.height}for(var Ae=ce.parent;Ae;ce=Ae,Ae=ce.parent)for(var ze=0;ze<Ae.children.length;++ze){var et=Ae.children[ze];if(et==ce)break;ae+=et.height}return ae}function Ma(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ce,de=ie;ce=ya(de);){var pe=ce.find(0,!0);de=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(de=ie;ce=Lr(de);){var Ae=ce.find(0,!0);ae-=de.text.length-Ae.from.ch,de=Ae.to.line,ae+=de.text.length-Ae.to.ch}return ae}function Sa(ie){var ae=ie.display,ce=ie.doc;ae.maxLine=fn(ce,ce.first),ae.maxLineLength=Ma(ae.maxLine),ae.maxLineChanged=!0,ce.iter(function(de){var pe=Ma(de);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=de)})}var Ta=function(ie,ae,ce){this.text=ie,Ue(this,ae),this.height=ce?ce(this):1};Ta.prototype.lineNo=function(){return dt(this)},ii(Ta);function Ra(ie,ae,ce,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),ki(ie),Ue(ie,ce);var pe=de?de(ie):1;pe!=ie.height&&gi(ie,pe)}function Ga(ie){ie.parent=null,ki(ie)}var Vs={},us={};function Ys(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ce=ae.addModeClass?us:Vs;return ce[ie]||(ce[ie]=ie.replace(/\S+/g,"cm-$&"))}function hn(ie,ae){var ce=ut("span",null,null,Te?"padding-right: .1px":null),de={pre:ut("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Ae=pe?ae.rest[pe-1]:ae.line,ze=void 0;de.pos=0,de.addToken=yh,eo(ie.display.measure)&&(ze=Pn(Ae,ie.doc.direction))&&(de.addToken=$o(de.addToken,ze)),de.map=[];var et=ae!=ie.display.externalMeasured&&dt(Ae);as(Ae,de,yr(ie,Ae,et)),Ae.styleClasses&&(Ae.styleClasses.bgClass&&(de.bgClass=Ht(Ae.styleClasses.bgClass,de.bgClass||"")),Ae.styleClasses.textClass&&(de.textClass=Ht(Ae.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild(Ir(ie.display.measure))),pe==0?(ae.measure.map=de.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(de.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Te){var qe=de.content.lastChild;(/\bcm-tab\b/.test(qe.className)||qe.querySelector&&qe.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return bt(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=Ht(de.pre.className,de.textClass||"")),de}function xs(ie){var ae=Ve("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function yh(ie,ae,ce,de,pe,Ae,ze){if(ae){var et=ie.splitSpaces?El(ae,ie.trailingSpace):ae,qe=ie.cm.state.specialChars,yt=!1,ln;if(!qe.test(ae))ie.col+=ae.length,ln=document.createTextNode(et),ie.map.push(ie.pos,ie.pos+ae.length,ln),Je&&it<9&&(yt=!0),ie.pos+=ae.length;else{ln=document.createDocumentFragment();for(var At=0;;){qe.lastIndex=At;var Wn=qe.exec(ae),Bn=Wn?Wn.index-At:ae.length-At;if(Bn){var Ni=document.createTextNode(et.slice(At,At+Bn));Je&&it<9?ln.appendChild(Ve("span",[Ni])):ln.appendChild(Ni),ie.map.push(ie.pos,ie.pos+Bn,Ni),ie.col+=Bn,ie.pos+=Bn}if(!Wn)break;At+=Bn+1;var Bi=void 0;if(Wn[0]==" "){var Ji=ie.cm.options.tabSize,Cr=Ji-ie.col%Ji;Bi=ln.appendChild(Ve("span",Rn(Cr),"cm-tab")),Bi.setAttribute("role","presentation"),Bi.setAttribute("cm-text"," "),ie.col+=Cr}else Wn[0]=="\r"||Wn[0]==`
|
|
|
`?(Bi=ln.appendChild(Ve("span",Wn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bi.setAttribute("cm-text",Wn[0]),ie.col+=1):(Bi=ie.cm.options.specialCharPlaceholder(Wn[0]),Bi.setAttribute("cm-text",Wn[0]),Je&&it<9?ln.appendChild(Ve("span",[Bi])):ln.appendChild(Bi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Bi),ie.pos++}}if(ie.trailingSpace=et.charCodeAt(ae.length-1)==32,ce||de||pe||yt||Ae||ze){var io=ce||"";de&&(io+=de),pe&&(io+=pe);var Gr=Ve("span",[ln],io,Ae);if(ze)for(var xo in ze)ze.hasOwnProperty(xo)&&xo!="style"&&xo!="class"&&Gr.setAttribute(xo,ze[xo]);return ie.content.appendChild(Gr)}ie.content.appendChild(ln)}}function El(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ce=ae,de="",pe=0;pe<ie.length;pe++){var Ae=ie.charAt(pe);Ae==" "&&ce&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Ae="\xA0"),de+=Ae,ce=Ae==" "}return de}function $o(ie,ae){return function(ce,de,pe,Ae,ze,et,qe){pe=pe?pe+" cm-force-border":"cm-force-border";for(var yt=ce.pos,ln=yt+de.length;;){for(var At=void 0,Wn=0;Wn<ae.length&&(At=ae[Wn],!(At.to>yt&&At.from<=yt));Wn++);if(At.to>=ln)return ie(ce,de,pe,Ae,ze,et,qe);ie(ce,de.slice(0,At.to-yt),pe,Ae,null,et,qe),Ae=null,de=de.slice(At.to-yt),yt=At.to}}}function To(ie,ae,ce,de){var pe=!de&&ce.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ce.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function as(ie,ae,ce){var de=ie.markedSpans,pe=ie.text,Ae=0;if(!de){for(var ze=1;ze<ce.length;ze+=2)ae.addToken(ae,pe.slice(Ae,Ae=ce[ze]),Ys(ce[ze+1],ae.cm.options));return}for(var et=pe.length,qe=0,yt=1,ln="",At,Wn,Bn=0,Ni,Bi,Ji,Cr,io;;){if(Bn==qe){Ni=Bi=Ji=Wn="",io=null,Cr=null,Bn=1/0;for(var Gr=[],xo=void 0,Qo=0;Qo<de.length;++Qo){var Hr=de[Qo],pa=Hr.marker;if(pa.type=="bookmark"&&Hr.from==qe&&pa.widgetNode)Gr.push(pa);else if(Hr.from<=qe&&(Hr.to==null||Hr.to>qe||pa.collapsed&&Hr.to==qe&&Hr.from==qe)){if(Hr.to!=null&&Hr.to!=qe&&Bn>Hr.to&&(Bn=Hr.to,Bi=""),pa.className&&(Ni+=" "+pa.className),pa.css&&(Wn=(Wn?Wn+";":"")+pa.css),pa.startStyle&&Hr.from==qe&&(Ji+=" "+pa.startStyle),pa.endStyle&&Hr.to==Bn&&(xo||(xo=[])).push(pa.endStyle,Hr.to),pa.title&&((io||(io={})).title=pa.title),pa.attributes)for(var Zs in pa.attributes)(io||(io={}))[Zs]=pa.attributes[Zs];pa.collapsed&&(!Cr||ro(Cr.marker,pa)<0)&&(Cr=Hr)}else Hr.from>qe&&Bn>Hr.from&&(Bn=Hr.from)}if(xo)for(var Fl=0;Fl<xo.length;Fl+=2)xo[Fl+1]==Bn&&(Bi+=" "+xo[Fl]);if(!Cr||Cr.from==qe)for(var el=0;el<Gr.length;++el)To(ae,0,Gr[el]);if(Cr&&(Cr.from||0)==qe){if(To(ae,(Cr.to==null?et+1:Cr.to)-qe,Cr.marker,Cr.from==null),Cr.to==null)return;Cr.to==qe&&(Cr=!1)}}if(qe>=et)break;for(var Ou=Math.min(et,Bn);;){if(ln){var gu=qe+ln.length;if(!Cr){var Pl=gu>Ou?ln.slice(0,Ou-qe):ln;ae.addToken(ae,Pl,At?At+Ni:Ni,Ji,qe+Pl.length==Bn?Bi:"",Wn,io)}if(gu>=Ou){ln=ln.slice(Ou-qe),qe=Ou;break}qe=gu,Ji=""}ln=pe.slice(Ae,Ae=ce[yt++]),At=Ys(ce[yt++],ae.cm.options)}}}function ma(ie,ae,ce){this.line=ae,this.rest=oa(ae),this.size=this.rest?dt(vt(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=ri(ie,ae)}function No(ie,ae,ce){for(var de=[],pe,Ae=ae;Ae<ce;Ae=pe){var ze=new ma(ie.doc,fn(ie.doc,Ae),Ae);pe=Ae+ze.size,de.push(ze)}return de}var fa=null;function al(ie){fa?fa.ops.push(ie):ie.ownsGroup=fa={ops:[ie],delayedCallbacks:[]}}function Kr(ie){var ae=ie.delayedCallbacks,ce=0;do{for(;ce<ae.length;ce++)ae[ce].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ce<ae.length)}function zo(ie,ae){var ce=ie.ownsGroup;if(ce)try{Kr(ce)}finally{fa=null,ae(ce)}}var Oo=null;function zi(ie,ae){var ce=gn(ie,ae);if(ce.length){var de=Array.prototype.slice.call(arguments,2),pe;fa?pe=fa.delayedCallbacks:Oo?pe=Oo:(pe=Oo=[],setTimeout(gs,0));for(var Ae=function(et){pe.push(function(){return ce[et].apply(null,de)})},ze=0;ze<ce.length;++ze)Ae(ze)}}function gs(){var ie=Oo;Oo=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function ws(ie,ae,ce,de){for(var pe=0;pe<ae.changes.length;pe++){var Ae=ae.changes[pe];Ae=="text"?Fi(ie,ae):Ae=="gutter"?Ls(ie,ae,ce,de):Ae=="class"?Ua(ie,ae):Ae=="widget"&&Ql(ie,ae,de)}ae.changes=null}function dl(ie){return ie.node==ie.text&&(ie.node=Ve("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Je&&it<8&&(ie.node.style.zIndex=2)),ie.node}function su(ie,ae){var ce=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),ae.background)ce?ae.background.className=ce:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ce){var de=dl(ae);ae.background=de.insertBefore(Ve("div",null,ce),de.firstChild),ie.display.input.setUneditable(ae.background)}}function xu(ie,ae){var ce=ie.display.externalMeasured;return ce&&ce.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ce.measure,ce.built):hn(ie,ae)}function Fi(ie,ae){var ce=ae.text.className,de=xu(ie,ae);ae.text==ae.node&&(ae.node=de.pre),ae.text.parentNode.replaceChild(de.pre,ae.text),ae.text=de.pre,de.bgClass!=ae.bgClass||de.textClass!=ae.textClass?(ae.bgClass=de.bgClass,ae.textClass=de.textClass,Ua(ie,ae)):ce&&(ae.text.className=ce)}function Ua(ie,ae){su(ie,ae),ae.line.wrapClass?dl(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ce=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ce||""}function Ls(ie,ae,ce,de){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=dl(ae);ae.gutterBackground=Ve("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px; width: "+de.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),pe.insertBefore(ae.gutterBackground,ae.text)}var Ae=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ae){var ze=dl(ae),et=ae.gutter=Ve("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(et),ze.insertBefore(et,ae.text),ae.line.gutterClass&&(et.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ae||!Ae["CodeMirror-linenumbers"])&&(ae.lineNumber=et.appendChild(Ve("div",ji(ie.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ae)for(var qe=0;qe<ie.display.gutterSpecs.length;++qe){var yt=ie.display.gutterSpecs[qe].className,ln=Ae.hasOwnProperty(yt)&&Ae[yt];ln&&et.appendChild(Ve("div",[ln],"CodeMirror-gutter-elt","left: "+de.gutterLeft[yt]+"px; width: "+de.gutterWidth[yt]+"px"))}}}function Ql(ie,ae,ce){ae.alignable&&(ae.alignable=null);for(var de=we("CodeMirror-linewidget"),pe=ae.node.firstChild,Ae=void 0;pe;pe=Ae)Ae=pe.nextSibling,de.test(pe.className)&&ae.node.removeChild(pe);uu(ie,ae,ce)}function lu(ie,ae,ce,de){var pe=xu(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Ua(ie,ae),Ls(ie,ae,ce,de),uu(ie,ae,de),ae.node}function uu(ie,ae,ce){if(so(ie,ae.line,ae,ce,!0),ae.rest)for(var de=0;de<ae.rest.length;de++)so(ie,ae.rest[de],ae,ce,!1)}function so(ie,ae,ce,de,pe){if(ae.widgets)for(var Ae=dl(ce),ze=0,et=ae.widgets;ze<et.length;++ze){var qe=et[ze],yt=Ve("div",[qe.node],"CodeMirror-linewidget"+(qe.className?" "+qe.className:""));qe.handleMouseEvents||yt.setAttribute("cm-ignore-events","true"),Sh(qe,yt,ce,de),ie.display.input.setUneditable(yt),pe&&qe.above?Ae.insertBefore(yt,ce.gutter||ce.text):Ae.appendChild(yt),zi(qe,"redraw")}}function Sh(ie,ae,ce,de){if(ie.noHScroll){(ce.alignable||(ce.alignable=[])).push(ae);var pe=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-de.gutterTotalWidth+"px"))}function Ll(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Wt(document.body,ie.node)){var ce="position: relative;";ie.coverGutter&&(ce+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ce+="width: "+ae.display.wrapper.clientWidth+"px;"),We(ae.display.measure,Ve("div",[ie.node],null,ce))}return ie.height=ie.node.parentNode.offsetHeight}function Ml(ie,ae){for(var ce=vr(ae);ce!=ie.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==ie.sizer&&ce!=ie.mover)return!0}function ml(ie){return ie.lineSpace.offsetTop}function Wu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function wu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=We(ie.measure,Ve("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,de={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function vl(ie){return Hn-ie.display.nativeBarWidth}function Al(ie){return ie.display.scroller.clientWidth-vl(ie)-ie.display.barWidth}function Bh(ie){return ie.display.scroller.clientHeight-vl(ie)-ie.display.barHeight}function _h(ie,ae,ce){var de=ie.options.lineWrapping,pe=de&&Al(ie);if(!ae.measure.heights||de&&ae.measure.width!=pe){var Ae=ae.measure.heights=[];if(de){ae.measure.width=pe;for(var ze=ae.text.firstChild.getClientRects(),et=0;et<ze.length-1;et++){var qe=ze[et],yt=ze[et+1];Math.abs(qe.bottom-yt.bottom)>2&&Ae.push((qe.bottom+yt.top)/2-ce.top)}}Ae.push(ce.bottom-ce.top)}}function Oh(ie,ae,ce){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==ae)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(dt(ie.rest[pe])>ce)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function gd(ie,ae){ae=Xr(ae);var ce=dt(ae),de=ie.display.externalMeasured=new ma(ie.doc,ae,ce);de.lineN=ce;var pe=de.built=hn(ie,de);return de.text=pe.pre,We(ie.display.lineMeasure,pe.pre),de}function Ih(ie,ae,ce,de){return Ol(ie,Bl(ie,ae),ce,de)}function Zu(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[yl(ie,ae)];var ce=ie.display.externalMeasured;if(ce&&ae>=ce.lineN&&ae<ce.lineN+ce.size)return ce}function Bl(ie,ae){var ce=dt(ae),de=Zu(ie,ce);de&&!de.text?de=null:de&&de.changes&&(ws(ie,de,ce,oc(ie)),ie.curOp.forceUpdate=!0),de||(de=gd(ie,ae));var pe=Oh(de,ae,ce);return{line:ae,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Ol(ie,ae,ce,de,pe){ae.before&&(ce=-1);var Ae=ce+(de||""),ze;return ae.cache.hasOwnProperty(Ae)?ze=ae.cache[Ae]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(_h(ie,ae.view,ae.rect),ae.hasHeights=!0),ze=Bo(ie,ae,ce,de),ze.bogus||(ae.cache[Ae]=ze)),{left:ze.left,right:ze.right,top:pe?ze.rtop:ze.top,bottom:pe?ze.rbottom:ze.bottom}}var pd={left:0,right:0,top:0,bottom:0};function ed(ie,ae,ce){for(var de,pe,Ae,ze,et,qe,yt=0;yt<ie.length;yt+=3)if(et=ie[yt],qe=ie[yt+1],ae<et?(pe=0,Ae=1,ze="left"):ae<qe?(pe=ae-et,Ae=pe+1):(yt==ie.length-3||ae==qe&&ie[yt+3]>ae)&&(Ae=qe-et,pe=Ae-1,ae>=qe&&(ze="right")),pe!=null){if(de=ie[yt+2],et==qe&&ce==(de.insertLeft?"left":"right")&&(ze=ce),ce=="left"&&pe==0)for(;yt&&ie[yt-2]==ie[yt-3]&&ie[yt-1].insertLeft;)de=ie[(yt-=3)+2],ze="left";if(ce=="right"&&pe==qe-et)for(;yt<ie.length-3&&ie[yt+3]==ie[yt+4]&&!ie[yt+5].insertLeft;)de=ie[(yt+=3)+2],ze="right";break}return{node:de,start:pe,end:Ae,collapse:ze,coverStart:et,coverEnd:qe}}function Pu(ie,ae){var ce=pd;if(ae=="left")for(var de=0;de<ie.length&&(ce=ie[de]).left==ce.right;de++);else for(var pe=ie.length-1;pe>=0&&(ce=ie[pe]).left==ce.right;pe--);return ce}function Bo(ie,ae,ce,de){var pe=ed(ae.map,ce,de),Ae=pe.node,ze=pe.start,et=pe.end,qe=pe.collapse,yt;if(Ae.nodeType==3){for(var ln=0;ln<4;ln++){for(;ze&&Et(ae.line.text.charAt(pe.coverStart+ze));)--ze;for(;pe.coverStart+et<pe.coverEnd&&Et(ae.line.text.charAt(pe.coverStart+et));)++et;if(Je&&it<9&&ze==0&&et==pe.coverEnd-pe.coverStart?yt=Ae.parentNode.getBoundingClientRect():yt=Pu(Ke(Ae,ze,et).getClientRects(),de),yt.left||yt.right||ze==0)break;et=ze,ze=ze-1,qe="right"}Je&&it<11&&(yt=da(ie.display.measure,yt))}else{ze>0&&(qe=de="right");var At;ie.options.lineWrapping&&(At=Ae.getClientRects()).length>1?yt=At[de=="right"?At.length-1:0]:yt=Ae.getBoundingClientRect()}if(Je&&it<9&&!ze&&(!yt||!yt.left&&!yt.right)){var Wn=Ae.parentNode.getClientRects()[0];Wn?yt={left:Wn.left,right:Wn.left+xh(ie.display),top:Wn.top,bottom:Wn.bottom}:yt=pd}for(var Bn=yt.top-ae.rect.top,Ni=yt.bottom-ae.rect.top,Bi=(Bn+Ni)/2,Ji=ae.view.measure.heights,Cr=0;Cr<Ji.length-1&&!(Bi<Ji[Cr]);Cr++);var io=Cr?Ji[Cr-1]:0,Gr=Ji[Cr],xo={left:(qe=="right"?yt.right:yt.left)-ae.rect.left,right:(qe=="left"?yt.left:yt.right)-ae.rect.left,top:io,bottom:Gr};return!yt.left&&!yt.right&&(xo.bogus=!0),ie.options.singleCursorHeightPerLine||(xo.rtop=Bn,xo.rbottom=Ni),xo}function da(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!or(ie))return ae;var ce=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ce,right:ae.right*ce,top:ae.top*de,bottom:ae.bottom*de}}function cl(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Ps(ie){ie.display.externalMeasure=null,He(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)cl(ie.display.view[ae])}function Cs(ie){Ps(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function es(){return Pt&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hs(){return Pt&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ms(ie){var ae=0;if(ie.widgets)for(var ce=0;ce<ie.widgets.length;++ce)ie.widgets[ce].above&&(ae+=Ll(ie.widgets[ce]));return ae}function bs(ie,ae,ce,de,pe){if(!pe){var Ae=Ms(ae);ce.top+=Ae,ce.bottom+=Ae}if(de=="line")return ce;de||(de="local");var ze=Io(ae);if(de=="local"?ze+=ml(ie.display):ze-=ie.display.viewOffset,de=="page"||de=="window"){var et=ie.display.lineSpace.getBoundingClientRect();ze+=et.top+(de=="window"?0:hs());var qe=et.left+(de=="window"?0:es());ce.left+=qe,ce.right+=qe}return ce.top+=ze,ce.bottom+=ze,ce}function nh(ie,ae,ce){if(ce=="div")return ae;var de=ae.left,pe=ae.top;if(ce=="page")de-=es(),pe-=hs();else if(ce=="local"||!ce){var Ae=ie.display.sizer.getBoundingClientRect();de+=Ae.left,pe+=Ae.top}var ze=ie.display.lineSpace.getBoundingClientRect();return{left:de-ze.left,top:pe-ze.top}}function $l(ie,ae,ce,de,pe){return de||(de=fn(ie.doc,ae.line)),bs(ie,de,Ih(ie,de,ae.ch,pe),ce)}function ps(ie,ae,ce,de,pe,Ae){de=de||fn(ie.doc,ae.line),pe||(pe=Bl(ie,de));function ze(Ni,Bi){var Ji=Ol(ie,pe,Ni,Bi?"right":"left",Ae);return Bi?Ji.left=Ji.right:Ji.right=Ji.left,bs(ie,de,Ji,ce)}var et=Pn(de,ie.doc.direction),qe=ae.ch,yt=ae.sticky;if(qe>=de.text.length?(qe=de.text.length,yt="before"):qe<=0&&(qe=0,yt="after"),!et)return ze(yt=="before"?qe-1:qe,yt=="before");function ln(Ni,Bi,Ji){var Cr=et[Bi],io=Cr.level==1;return ze(Ji?Ni-1:Ni,io!=Ji)}var At=ct(et,qe,yt),Wn=xt,Bn=ln(qe,At,yt=="before");return Wn!=null&&(Bn.other=ln(qe,Wn,yt!="before")),Bn}function ic(ie,ae){var ce=0;ae=bn(ie.doc,ae),ie.options.lineWrapping||(ce=xh(ie.display)*ae.ch);var de=fn(ie.doc,ae.line),pe=Io(de)+ml(ie.display);return{left:ce,right:ce,top:pe,bottom:pe+de.height}}function md(ie,ae,ce,de,pe){var Ae=dn(ie,ae,ce);return Ae.xRel=pe,de&&(Ae.outside=de),Ae}function td(ie,ae,ce){var de=ie.doc;if(ce+=ie.display.viewOffset,ce<0)return md(de.first,0,null,-1,-1);var pe=Fn(de,ce),Ae=de.first+de.size-1;if(pe>Ae)return md(de.first+de.size-1,fn(de,Ae).text.length,null,1,1);ae<0&&(ae=0);for(var ze=fn(de,pe);;){var et=ei(ie,ze,pe,ae,ce),qe=Fr(ze,et.ch+(et.xRel>0||et.outside>0?1:0));if(!qe)return et;var yt=qe.find(1);if(yt.line==pe)return yt;ze=fn(de,pe=yt.line)}}function Mr(ie,ae,ce,de){de-=Ms(ae);var pe=ae.text.length,Ae=tt(function(ze){return Ol(ie,ce,ze-1).bottom<=de},pe,0);return pe=tt(function(ze){return Ol(ie,ce,ze).top>de},Ae,pe),{begin:Ae,end:pe}}function nd(ie,ae,ce,de){ce||(ce=Bl(ie,ae));var pe=bs(ie,ae,Ol(ie,ce,de),"line").top;return Mr(ie,ae,ce,pe)}function Nt(ie,ae,ce,de){return ie.bottom<=ce?!1:ie.top>ce?!0:(de?ie.left:ie.right)>ae}function ei(ie,ae,ce,de,pe){pe-=Io(ae);var Ae=Bl(ie,ae),ze=Ms(ae),et=0,qe=ae.text.length,yt=!0,ln=Pn(ae,ie.doc.direction);if(ln){var At=(ie.options.lineWrapping?rc:Ic)(ie,ae,ce,Ae,ln,de,pe);yt=At.level!=1,et=yt?At.from:At.to-1,qe=yt?At.to:At.from-1}var Wn=null,Bn=null,Ni=tt(function(Qo){var Hr=Ol(ie,Ae,Qo);return Hr.top+=ze,Hr.bottom+=ze,Nt(Hr,de,pe,!1)?(Hr.top<=pe&&Hr.left<=de&&(Wn=Qo,Bn=Hr),!0):!1},et,qe),Bi,Ji,Cr=!1;if(Bn){var io=de-Bn.left<Bn.right-de,Gr=io==yt;Ni=Wn+(Gr?0:1),Ji=Gr?"after":"before",Bi=io?Bn.left:Bn.right}else{!yt&&(Ni==qe||Ni==et)&&Ni++,Ji=Ni==0?"after":Ni==ae.text.length?"before":Ol(ie,Ae,Ni-(yt?1:0)).bottom+ze<=pe==yt?"after":"before";var xo=ps(ie,dn(ce,Ni,Ji),"line",ae,Ae);Bi=xo.left,Cr=pe<xo.top?-1:pe>=xo.bottom?1:0}return Ni=Xe(ae.text,Ni,1),md(ce,Ni,Ji,Cr,de-Bi)}function Ic(ie,ae,ce,de,pe,Ae,ze){var et=tt(function(At){var Wn=pe[At],Bn=Wn.level!=1;return Nt(ps(ie,dn(ce,Bn?Wn.to:Wn.from,Bn?"before":"after"),"line",ae,de),Ae,ze,!0)},0,pe.length-1),qe=pe[et];if(et>0){var yt=qe.level!=1,ln=ps(ie,dn(ce,yt?qe.from:qe.to,yt?"after":"before"),"line",ae,de);Nt(ln,Ae,ze,!0)&&ln.top>ze&&(qe=pe[et-1])}return qe}function rc(ie,ae,ce,de,pe,Ae,ze){var et=Mr(ie,ae,de,ze),qe=et.begin,yt=et.end;/\s/.test(ae.text.charAt(yt-1))&&yt--;for(var ln=null,At=null,Wn=0;Wn<pe.length;Wn++){var Bn=pe[Wn];if(!(Bn.from>=yt||Bn.to<=qe)){var Ni=Bn.level!=1,Bi=Ol(ie,de,Ni?Math.min(yt,Bn.to)-1:Math.max(qe,Bn.from)).right,Ji=Bi<Ae?Ae-Bi+1e9:Bi-Ae;(!ln||At>Ji)&&(ln=Bn,At=Ji)}}return ln||(ln=pe[pe.length-1]),ln.from<qe&&(ln={from:qe,to:ln.to,level:ln.level}),ln.to>yt&&(ln={from:ln.from,to:yt,level:ln.level}),ln}var ih;function rh(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ih==null){ih=Ve("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)ih.appendChild(document.createTextNode("x")),ih.appendChild(Ve("br"));ih.appendChild(document.createTextNode("x"))}We(ie.measure,ih);var ce=ih.offsetHeight/50;return ce>3&&(ie.cachedTextHeight=ce),He(ie.measure),ce||1}function xh(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Ve("span","xxxxxxxxxx"),ce=Ve("pre",[ae],"CodeMirror-line-like");We(ie.measure,ce);var de=ae.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function oc(ie){for(var ae=ie.display,ce={},de={},pe=ae.gutters.clientLeft,Ae=ae.gutters.firstChild,ze=0;Ae;Ae=Ae.nextSibling,++ze){var et=ie.display.gutterSpecs[ze].className;ce[et]=Ae.offsetLeft+Ae.clientLeft+pe,de[et]=Ae.clientWidth}return{fixedPos:Bd(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ce,gutterWidth:de,wrapperWidth:ae.wrapper.clientWidth}}function Bd(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Es(ie){var ae=rh(ie.display),ce=ie.options.lineWrapping,de=ce&&Math.max(5,ie.display.scroller.clientWidth/xh(ie.display)-3);return function(pe){if(ri(ie.doc,pe))return 0;var Ae=0;if(pe.widgets)for(var ze=0;ze<pe.widgets.length;ze++)pe.widgets[ze].height&&(Ae+=pe.widgets[ze].height);return ce?Ae+(Math.ceil(pe.text.length/de)||1)*ae:Ae+ae}}function vo(ie){var ae=ie.doc,ce=Es(ie);ae.iter(function(de){var pe=ce(de);pe!=de.height&&gi(de,pe)})}function nl(ie,ae,ce,de){var pe=ie.display;if(!ce&&vr(ae).getAttribute("cm-not-content")=="true")return null;var Ae,ze,et=pe.lineSpace.getBoundingClientRect();try{Ae=ae.clientX-et.left,ze=ae.clientY-et.top}catch(At){return null}var qe=td(ie,Ae,ze),yt;if(de&&qe.xRel>0&&(yt=fn(ie.doc,qe.line).text).length==qe.ch){var ln=St(yt,yt.length,ie.options.tabSize)-yt.length;qe=dn(qe.line,Math.max(0,Math.round((Ae-wu(ie.display).left)/xh(ie.display))-ln))}return qe}function yl(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ce=ie.display.view,de=0;de<ce.length;de++)if(ae-=ce[de].size,ae<0)return de}function ss(ie,ae,ce,de){ae==null&&(ae=ie.doc.first),ce==null&&(ce=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&ce<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)En&&ur(ie.doc,ae)<pe.viewTo&&Us(ie);else if(ce<=pe.viewFrom)En&&hr(ie.doc,ce+de)>pe.viewFrom?Us(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(ae<=pe.viewFrom&&ce>=pe.viewTo)Us(ie);else if(ae<=pe.viewFrom){var Ae=Ie(ie,ce,ce+de,1);Ae?(pe.view=pe.view.slice(Ae.index),pe.viewFrom=Ae.lineN,pe.viewTo+=de):Us(ie)}else if(ce>=pe.viewTo){var ze=Ie(ie,ae,ae,-1);ze?(pe.view=pe.view.slice(0,ze.index),pe.viewTo=ze.lineN):Us(ie)}else{var et=Ie(ie,ae,ae,-1),qe=Ie(ie,ce,ce+de,1);et&&qe?(pe.view=pe.view.slice(0,et.index).concat(No(ie,et.lineN,qe.lineN)).concat(pe.view.slice(qe.index)),pe.viewTo+=de):Us(ie)}var yt=pe.externalMeasured;yt&&(ce<yt.lineN?yt.lineN+=de:ae<yt.lineN+yt.size&&(pe.externalMeasured=null))}function na(ie,ae,ce){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(de.externalMeasured=null),!(ae<de.viewFrom||ae>=de.viewTo)){var Ae=de.view[yl(ie,ae)];if(Ae.node!=null){var ze=Ae.changes||(Ae.changes=[]);en(ze,ce)==-1&&ze.push(ce)}}}function Us(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Ie(ie,ae,ce,de){var pe=yl(ie,ae),Ae,ze=ie.display.view;if(!En||ce==ie.doc.first+ie.doc.size)return{index:pe,lineN:ce};for(var et=ie.display.viewFrom,qe=0;qe<pe;qe++)et+=ze[qe].size;if(et!=ae){if(de>0){if(pe==ze.length-1)return null;Ae=et+ze[pe].size-ae,pe++}else Ae=et-ae;ae+=Ae,ce+=Ae}for(;ur(ie.doc,ce)!=ce;){if(pe==(de<0?0:ze.length-1))return null;ce+=de*ze[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:ce}}function Ye(ie,ae,ce){var de=ie.display,pe=de.view;pe.length==0||ae>=de.viewTo||ce<=de.viewFrom?(de.view=No(ie,ae,ce),de.viewFrom=ae):(de.viewFrom>ae?de.view=No(ie,ae,de.viewFrom).concat(de.view):de.viewFrom<ae&&(de.view=de.view.slice(yl(ie,ae))),de.viewFrom=ae,de.viewTo<ce?de.view=de.view.concat(No(ie,de.viewTo,ce)):de.viewTo>ce&&(de.view=de.view.slice(0,yl(ie,ce)))),de.viewTo=ce}function nt(ie){for(var ae=ie.display.view,ce=0,de=0;de<ae.length;de++){var pe=ae[de];!pe.hidden&&(!pe.node||pe.changes)&&++ce}return ce}function zt(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Zt(ie,ae){ae===void 0&&(ae=!0);for(var ce=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Ae=de.selection=document.createDocumentFragment(),ze=0;ze<ce.sel.ranges.length;ze++)if(!(!ae&&ze==ce.sel.primIndex)){var et=ce.sel.ranges[ze];if(!(et.from().line>=ie.display.viewTo||et.to().line<ie.display.viewFrom)){var qe=et.empty();(qe||ie.options.showCursorWhenSelecting)&&pn(ie,et.head,pe),qe||Zn(ie,et,Ae)}}return de}function pn(ie,ae,ce){var de=ps(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=ce.appendChild(Ve("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Ae=ce.appendChild(Ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ae.style.display="",Ae.style.left=de.other.left+"px",Ae.style.top=de.other.top+"px",Ae.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function Sn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Zn(ie,ae,ce){var de=ie.display,pe=ie.doc,Ae=document.createDocumentFragment(),ze=wu(ie.display),et=ze.left,qe=Math.max(de.sizerWidth,Al(ie)-de.sizer.offsetLeft)-ze.right,yt=pe.direction=="ltr";function ln(Gr,xo,Qo,Hr){xo<0&&(xo=0),xo=Math.round(xo),Hr=Math.round(Hr),Ae.appendChild(Ve("div",null,"CodeMirror-selected","position: absolute; left: "+Gr+`px;
|
|
|
top: `+xo+"px; width: "+(Qo==null?qe-Gr:Qo)+`px;
|
|
|
height: `+(Hr-xo)+"px"))}function At(Gr,xo,Qo){var Hr=fn(pe,Gr),pa=Hr.text.length,Zs,Fl;function el(Pl,Uu){return $l(ie,dn(Gr,Pl),"div",Hr,Uu)}function Ou(Pl,Uu,tu){var Cl=nd(ie,Hr,null,Pl),_a=Uu=="ltr"==(tu=="after")?"left":"right",il=tu=="after"?Cl.begin:Cl.end-(/\s/.test(Hr.text.charAt(Cl.end-1))?2:1);return el(il,_a)[_a]}var gu=Pn(Hr,pe.direction);return wt(gu,xo||0,Qo==null?pa:Qo,function(Pl,Uu,tu,Cl){var _a=tu=="ltr",il=el(Pl,_a?"left":"right"),jl=el(Uu-1,_a?"right":"left"),nu=xo==null&&Pl==0,Gh=Qo==null&&Uu==pa,tl=Cl==0,Eh=!gu||Cl==gu.length-1;if(jl.top-il.top<=3){var hl=(yt?nu:Gh)&&tl,Qf=(yt?Gh:nu)&&Eh,hh=hl?et:(_a?il:jl).left,Xu=Qf?qe:(_a?jl:il).right;ln(hh,il.top,Xu-hh,il.bottom)}else{var Iu,Ns,Hl,xd;_a?(Iu=yt&&nu&&tl?et:il.left,Ns=yt?qe:Ou(Pl,tu,"before"),Hl=yt?et:Ou(Uu,tu,"after"),xd=yt&&Gh&&Eh?qe:jl.right):(Iu=yt?Ou(Pl,tu,"before"):et,Ns=!yt&&nu&&tl?qe:il.right,Hl=!yt&&Gh&&Eh?et:jl.left,xd=yt?Ou(Uu,tu,"after"):qe),ln(Iu,il.top,Ns-Iu,il.bottom),il.bottom<jl.top&&ln(et,il.bottom,null,jl.top),ln(Hl,jl.top,xd-Hl,jl.bottom)}(!Zs||Sn(il,Zs)<0)&&(Zs=il),Sn(jl,Zs)<0&&(Zs=jl),(!Fl||Sn(il,Fl)<0)&&(Fl=il),Sn(jl,Fl)<0&&(Fl=jl)}),{start:Zs,end:Fl}}var Wn=ae.from(),Bn=ae.to();if(Wn.line==Bn.line)At(Wn.line,Wn.ch,Bn.ch);else{var Ni=fn(pe,Wn.line),Bi=fn(pe,Bn.line),Ji=Xr(Ni)==Xr(Bi),Cr=At(Wn.line,Wn.ch,Ji?Ni.text.length+1:null).end,io=At(Bn.line,Ji?0:null,Bn.ch).start;Ji&&(Cr.top<io.top-2?(ln(Cr.right,Cr.top,null,Cr.bottom),ln(et,io.top,io.left,io.bottom)):ln(Cr.right,Cr.top,io.left-Cr.right,Cr.bottom)),Cr.bottom<io.top&&ln(et,Cr.bottom,null,io.top)}ce.appendChild(Ae)}function Xn(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ce=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||Li(ie),ae.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function hi(ie){ie.state.focused||(ie.display.input.focus(),li(ie))}function Ii(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Li(ie))},100)}function li(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(bt(ie,"focus",ie,ae),ie.state.focused=!0,Ut(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Te&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Xn(ie))}function Li(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(bt(ie,"blur",ie,ae),ie.state.focused=!1,Oe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function oi(ie){for(var ae=ie.display,ce=ae.lineDiv.offsetTop,de=0;de<ae.view.length;de++){var pe=ae.view[de],Ae=ie.options.lineWrapping,ze=void 0,et=0;if(!pe.hidden){if(Je&&it<8){var qe=pe.node.offsetTop+pe.node.offsetHeight;ze=qe-ce,ce=qe}else{var yt=pe.node.getBoundingClientRect();ze=yt.bottom-yt.top,!Ae&&pe.text.firstChild&&(et=pe.text.firstChild.getBoundingClientRect().right-yt.left-1)}var ln=pe.line.height-ze;if((ln>.005||ln<-.005)&&(gi(pe.line,ze),Yi(pe.line),pe.rest))for(var At=0;At<pe.rest.length;At++)Yi(pe.rest[At]);if(et>ie.display.sizerWidth){var Wn=Math.ceil(et/xh(ie.display));Wn>ie.display.maxLineLength&&(ie.display.maxLineLength=Wn,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function Yi(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ce=ie.widgets[ae],de=ce.node.parentNode;de&&(ce.height=de.offsetHeight)}}function zn(ie,ae,ce){var de=ce&&ce.top!=null?Math.max(0,ce.top):ie.scroller.scrollTop;de=Math.floor(de-ml(ie));var pe=ce&&ce.bottom!=null?ce.bottom:de+ie.wrapper.clientHeight,Ae=Fn(ae,de),ze=Fn(ae,pe);if(ce&&ce.ensure){var et=ce.ensure.from.line,qe=ce.ensure.to.line;et<Ae?(Ae=et,ze=Fn(ae,Io(fn(ae,et))+ie.wrapper.clientHeight)):Math.min(qe,ae.lastLine())>=ze&&(Ae=Fn(ae,Io(fn(ae,qe))-ie.wrapper.clientHeight),ze=qe)}return{from:Ae,to:Math.max(ze,Ae+1)}}function Mi(ie,ae){if(!_t(ie,"scrollCursorIntoView")){var ce=ie.display,de=ce.sizer.getBoundingClientRect(),pe=null;if(ae.top+de.top<0?pe=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!Ct){var Ae=Ve("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ce.viewOffset-ml(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+vl(ie)+ce.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ae),Ae.scrollIntoView(pe),ie.display.lineSpace.removeChild(Ae)}}}function Ui(ie,ae,ce,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&ae==ce&&(ae=ae.ch?dn(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ce=ae.sticky=="before"?dn(ae.line,ae.ch+1,"before"):ae);for(var Ae=0;Ae<5;Ae++){var ze=!1,et=ps(ie,ae),qe=!ce||ce==ae?et:ps(ie,ce);pe={left:Math.min(et.left,qe.left),top:Math.min(et.top,qe.top)-de,right:Math.max(et.left,qe.left),bottom:Math.max(et.bottom,qe.bottom)+de};var yt=Nr(ie,pe),ln=ie.doc.scrollTop,At=ie.doc.scrollLeft;if(yt.scrollTop!=null&&(ia(ie,yt.scrollTop),Math.abs(ie.doc.scrollTop-ln)>1&&(ze=!0)),yt.scrollLeft!=null&&(Aa(ie,yt.scrollLeft),Math.abs(ie.doc.scrollLeft-At)>1&&(ze=!0)),!ze)break}return pe}function Wr(ie,ae){var ce=Nr(ie,ae);ce.scrollTop!=null&&ia(ie,ce.scrollTop),ce.scrollLeft!=null&&Aa(ie,ce.scrollLeft)}function Nr(ie,ae){var ce=ie.display,de=rh(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ce.scroller.scrollTop,Ae=Bh(ie),ze={};ae.bottom-ae.top>Ae&&(ae.bottom=ae.top+Ae);var et=ie.doc.height+Wu(ce),qe=ae.top<de,yt=ae.bottom>et-de;if(ae.top<pe)ze.scrollTop=qe?0:ae.top;else if(ae.bottom>pe+Ae){var ln=Math.min(ae.top,(yt?et:ae.bottom)-Ae);ln!=pe&&(ze.scrollTop=ln)}var At=ie.options.fixedGutter?0:ce.gutters.offsetWidth,Wn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ce.scroller.scrollLeft-At,Bn=Al(ie)-ce.gutters.offsetWidth,Ni=ae.right-ae.left>Bn;return Ni&&(ae.right=ae.left+Bn),ae.left<10?ze.scrollLeft=0:ae.left<Wn?ze.scrollLeft=Math.max(0,ae.left+At-(Ni?0:10)):ae.right>Bn+Wn-3&&(ze.scrollLeft=ae.right+(Ni?0:10)-Bn),ze}function Vr(ie,ae){ae!=null&&(Uo(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Yr(ie){Uo(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Zr(ie,ae,ce){(ae!=null||ce!=null)&&Uo(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ce!=null&&(ie.curOp.scrollTop=ce)}function Ri(ie,ae){Uo(ie),ie.curOp.scrollToPos=ae}function Uo(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ce=ic(ie,ae.from),de=ic(ie,ae.to);jo(ie,ce,de,ae.margin)}}function jo(ie,ae,ce,de){var pe=Nr(ie,{left:Math.min(ae.left,ce.left),top:Math.min(ae.top,ce.top)-de,right:Math.max(ae.right,ce.right),bottom:Math.max(ae.bottom,ce.bottom)+de});Zr(ie,pe.scrollLeft,pe.scrollTop)}function ia(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(be||nr(ie,{top:ae}),Na(ie,ae,!0),be&&nr(ie),ti(ie,100))}function Na(ie,ae,ce){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ce)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Aa(ie,ae,ce,de){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ce?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!de)&&(ie.doc.scrollLeft=ae,oo(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function xa(ie){var ae=ie.display,ce=ae.gutters.offsetWidth,de=Math.round(ie.doc.height+Wu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ce:0,docHeight:de,scrollHeight:de+vl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ce}}var ts=function(ie,ae,ce){this.cm=ce;var de=this.vert=Ve("div",[Ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Ve("div",[Ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),Jt(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),Jt(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Je&&it<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ce=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=ae?de+"px":"0";var pe=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ce?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ae=ie.viewWidth-ie.barLeft-(ce?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(de==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ce?de:0,bottom:ae?de:0}},ts.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ts.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ts.prototype.zeroWidthHack=function(){var ie=he&&!gt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ge,this.disableVert=new Ge},ts.prototype.enableZeroWidthBar=function(ie,ae,ce){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Ae=ce=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Ae!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},ts.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var ga=function(){};ga.prototype.update=function(){return{bottom:0,right:0}},ga.prototype.setScrollLeft=function(){},ga.prototype.setScrollTop=function(){},ga.prototype.clear=function(){};function sa(ie,ae){ae||(ae=xa(ie));var ce=ie.display.barWidth,de=ie.display.barHeight;wa(ie,ae);for(var pe=0;pe<4&&ce!=ie.display.barWidth||de!=ie.display.barHeight;pe++)ce!=ie.display.barWidth&&ie.options.lineWrapping&&oi(ie),wa(ie,xa(ie)),ce=ie.display.barWidth,de=ie.display.barHeight}function wa(ie,ae){var ce=ie.display,de=ce.scrollbars.update(ae);ce.sizer.style.paddingRight=(ce.barWidth=de.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=de.bottom)+"px",ce.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=de.bottom+"px",ce.scrollbarFiller.style.width=de.right+"px"):ce.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=de.bottom+"px",ce.gutterFiller.style.width=ae.gutterWidth+"px"):ce.gutterFiller.style.display=""}var Xa={native:ts,null:ga};function ns(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Oe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Xa[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),Jt(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ce){ce=="horizontal"?Aa(ie,ae):ia(ie,ae)},ie),ie.display.scrollbars.addClass&&Ut(ie.display.wrapper,ie.display.scrollbars.addClass)}var za=0;function Pa(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++za},al(ie.curOp)}function As(ie){var ae=ie.curOp;ae&&zo(ae,function(ce){for(var de=0;de<ce.ops.length;de++)ce.ops[de].cm.curOp=null;_s(ce)})}function _s(ie){for(var ae=ie.ops,ce=0;ce<ae.length;ce++)$e(ae[ce]);for(var de=0;de<ae.length;de++)ot(ae[de]);for(var pe=0;pe<ae.length;pe++)Dt(ae[pe]);for(var Ae=0;Ae<ae.length;Ae++)Ot(ae[Ae]);for(var ze=0;ze<ae.length;ze++)Qt(ae[ze])}function $e(ie){var ae=ie.cm,ce=ae.display;Ei(ae),ie.updateMaxLine&&Sa(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ce.viewFrom||ie.scrollToPos.to.line>=ce.viewTo)||ce.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new qn(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function ot(ie){ie.updatedDisplay=ie.mustUpdate&&Ki(ie.cm,ie.update)}function Dt(ie){var ae=ie.cm,ce=ae.display;ie.updatedDisplay&&oi(ae),ie.barMeasure=xa(ae),ce.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ih(ae,ce.maxLine,ce.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+ie.adjustWidthTo+vl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+ie.adjustWidthTo-Al(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ce.input.prepareSelection())}function Ot(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Aa(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ce=ie.focus&&ie.focus==pt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ce),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&sa(ae,ie.barMeasure),ie.updatedDisplay&&Ur(ae,ie.barMeasure),ie.selectionChanged&&Xn(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ce&&hi(ie.cm)}function Qt(ie){var ae=ie.cm,ce=ae.display,de=ae.doc;if(ie.updatedDisplay&&Si(ae,ie.update),ce.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),ie.scrollTop!=null&&Na(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Aa(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=Ui(ae,bn(de,ie.scrollToPos.from),bn(de,ie.scrollToPos.to),ie.scrollToPos.margin);Mi(ae,pe)}var Ae=ie.maybeHiddenMarkers,ze=ie.maybeUnhiddenMarkers;if(Ae)for(var et=0;et<Ae.length;++et)Ae[et].lines.length||bt(Ae[et],"hide");if(ze)for(var qe=0;qe<ze.length;++qe)ze[qe].lines.length&&bt(ze[qe],"unhide");ce.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&bt(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Gt(ie,ae){if(ie.curOp)return ae();Pa(ie);try{return ae()}finally{As(ie)}}function Ln(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Pa(ie);try{return ae.apply(ie,arguments)}finally{As(ie)}}}function Cn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Pa(this);try{return ie.apply(this,arguments)}finally{As(this)}}}function wn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);Pa(ae);try{return ie.apply(this,arguments)}finally{As(ae)}}}function ti(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Xt(jn,ie))}function jn(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ce=+new Date+ie.options.workTime,de=Dr(ie,ae.highlightFrontier),pe=[];ae.iter(de.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ae){if(de.line>=ie.display.viewFrom){var ze=Ae.styles,et=Ae.text.length>ie.options.maxHighlightLength?un(ae.mode,de.state):null,qe=Qi(ie,Ae,de,!0);et&&(de.state=et),Ae.styles=qe.styles;var yt=Ae.styleClasses,ln=qe.classes;ln?Ae.styleClasses=ln:yt&&(Ae.styleClasses=null);for(var At=!ze||ze.length!=Ae.styles.length||yt!=ln&&(!yt||!ln||yt.bgClass!=ln.bgClass||yt.textClass!=ln.textClass),Wn=0;!At&&Wn<ze.length;++Wn)At=ze[Wn]!=Ae.styles[Wn];At&&pe.push(de.line),Ae.stateAfter=de.save(),de.nextLine()}else Ae.text.length<=ie.options.maxHighlightLength&&sn(ie,Ae.text,de),Ae.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>ce)return ti(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),pe.length&&Gt(ie,function(){for(var Ae=0;Ae<pe.length;Ae++)na(ie,pe[Ae],"text")})}}var qn=function(ie,ae,ce){var de=ie.display;this.viewport=ae,this.visible=zn(de,ie.doc,ae),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Al(ie),this.force=ce,this.dims=oc(ie),this.events=[]};qn.prototype.signal=function(ie,ae){Dn(ie,ae)&&this.events.push(arguments)},qn.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)bt.apply(null,this.events[ie])};function Ei(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=vl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=vl(ie)+"px",ae.scrollbarsClipped=!0)}function Pi(ie){if(ie.hasFocus())return null;var ae=pt();if(!ae||!Wt(ie.display.lineDiv,ae))return null;var ce={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&Wt(ie.display.lineDiv,de.anchorNode)&&(ce.anchorNode=de.anchorNode,ce.anchorOffset=de.anchorOffset,ce.focusNode=de.focusNode,ce.focusOffset=de.focusOffset)}return ce}function mi(ie){if(!(!ie||!ie.activeElt||ie.activeElt==pt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Wt(document.body,ie.anchorNode)&&Wt(document.body,ie.focusNode))){var ae=window.getSelection(),ce=document.createRange();ce.setEnd(ie.anchorNode,ie.anchorOffset),ce.collapse(!1),ae.removeAllRanges(),ae.addRange(ce),ae.extend(ie.focusNode,ie.focusOffset)}}function Ki(ie,ae){var ce=ie.display,de=ie.doc;if(ae.editorIsHidden)return Us(ie),!1;if(!ae.force&&ae.visible.from>=ce.viewFrom&&ae.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&nt(ie)==0)return!1;fr(ie)&&(Us(ie),ae.dims=oc(ie));var pe=de.first+de.size,Ae=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),ze=Math.min(pe,ae.visible.to+ie.options.viewportMargin);ce.viewFrom<Ae&&Ae-ce.viewFrom<20&&(Ae=Math.max(de.first,ce.viewFrom)),ce.viewTo>ze&&ce.viewTo-ze<20&&(ze=Math.min(pe,ce.viewTo)),En&&(Ae=ur(ie.doc,Ae),ze=hr(ie.doc,ze));var et=Ae!=ce.viewFrom||ze!=ce.viewTo||ce.lastWrapHeight!=ae.wrapperHeight||ce.lastWrapWidth!=ae.wrapperWidth;Ye(ie,Ae,ze),ce.viewOffset=Io(fn(ie.doc,ce.viewFrom)),ie.display.mover.style.top=ce.viewOffset+"px";var qe=nt(ie);if(!et&&qe==0&&!ae.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var yt=Pi(ie);return qe>4&&(ce.lineDiv.style.display="none"),Xi(ie,ce.updateLineNumbers,ae.dims),qe>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,mi(yt),He(ce.cursorDiv),He(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,et&&(ce.lastWrapHeight=ae.wrapperHeight,ce.lastWrapWidth=ae.wrapperWidth,ti(ie,400)),ce.updateLineNumbers=null,!0}function Si(ie,ae){for(var ce=ae.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||ae.oldDisplayWidth==Al(ie)){if(ce&&ce.top!=null&&(ce={top:Math.min(ie.doc.height+Wu(ie.display)-Bh(ie),ce.top)}),ae.visible=zn(ie.display,ie.doc,ce),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=zn(ie.display,ie.doc,ce));if(!Ki(ie,ae))break;oi(ie);var pe=xa(ie);zt(ie),sa(ie,pe),Ur(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function nr(ie,ae){var ce=new qn(ie,ae);if(Ki(ie,ce)){oi(ie),Si(ie,ce);var de=xa(ie);zt(ie),sa(ie,de),Ur(ie,de),ce.finish()}}function Xi(ie,ae,ce){var de=ie.display,pe=ie.options.lineNumbers,Ae=de.lineDiv,ze=Ae.firstChild;function et(Ni){var Bi=Ni.nextSibling;return Te&&he&&ie.display.currentWheelTarget==Ni?Ni.style.display="none":Ni.parentNode.removeChild(Ni),Bi}for(var qe=de.view,yt=de.viewFrom,ln=0;ln<qe.length;ln++){var At=qe[ln];if(!At.hidden)if(!At.node||At.node.parentNode!=Ae){var Wn=lu(ie,At,yt,ce);Ae.insertBefore(Wn,ze)}else{for(;ze!=At.node;)ze=et(ze);var Bn=pe&&ae!=null&&ae<=yt&&At.lineNumber;At.changes&&(en(At.changes,"gutter")>-1&&(Bn=!1),ws(ie,At,yt,ce)),Bn&&(He(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(ji(ie.options,yt)))),ze=At.node.nextSibling}yt+=At.size}for(;ze;)ze=et(ze)}function ar(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Ur(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+vl(ie)+"px"}function oo(ie){var ae=ie.display,ce=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var de=Bd(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Ae=de+"px",ze=0;ze<ce.length;ze++)if(!ce[ze].hidden){ie.options.fixedGutter&&(ce[ze].gutter&&(ce[ze].gutter.style.left=Ae),ce[ze].gutterBackground&&(ce[ze].gutterBackground.style.left=Ae));var et=ce[ze].alignable;if(et)for(var qe=0;qe<et.length;qe++)et[qe].style.left=Ae}ie.options.fixedGutter&&(ae.gutters.style.left=de+pe+"px")}}function fr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ce=ji(ie.options,ae.first+ae.size-1),de=ie.display;if(ce.length!=de.lineNumChars){var pe=de.measure.appendChild(Ve("div",[Ve("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ae=pe.firstChild.offsetWidth,ze=pe.offsetWidth-Ae;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Ae,de.lineGutter.offsetWidth-ze)+1,de.lineNumWidth=de.lineNumInnerWidth+ze,de.lineNumChars=de.lineNumInnerWidth?ce.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",ar(ie.display),!0}return!1}function Ar(ie,ae){for(var ce=[],de=!1,pe=0;pe<ie.length;pe++){var Ae=ie[pe],ze=null;if(typeof Ae!="string"&&(ze=Ae.style,Ae=Ae.className),Ae=="CodeMirror-linenumbers")if(ae)de=!0;else continue;ce.push({className:Ae,style:ze})}return ae&&!de&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function Eo(ie){var ae=ie.gutters,ce=ie.gutterSpecs;He(ae),ie.lineGutter=null;for(var de=0;de<ce.length;++de){var pe=ce[de],Ae=pe.className,ze=pe.style,et=ae.appendChild(Ve("div",null,"CodeMirror-gutter "+Ae));ze&&(et.style.cssText=ze),Ae=="CodeMirror-linenumbers"&&(ie.lineGutter=et,et.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ce.length?"":"none",ar(ie)}function sr(ie){Eo(ie.display),ss(ie),oo(ie)}function Rr(ie,ae,ce,de){var pe=this;this.input=ce,pe.scrollbarFiller=Ve("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Ve("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=ut("div",null,"CodeMirror-code"),pe.selectionDiv=Ve("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Ve("div",null,"CodeMirror-cursors"),pe.measure=Ve("div",null,"CodeMirror-measure"),pe.lineMeasure=Ve("div",null,"CodeMirror-measure"),pe.lineSpace=ut("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Ae=ut("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Ve("div",[Ae],null,"position: relative"),pe.sizer=Ve("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Ve("div",null,null,"position: absolute; height: "+Hn+"px; width: 1px;"),pe.gutters=Ve("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Ve("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Ve("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Je&&it<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!Te&&!(be&&ne)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Ar(de.gutters,de.lineNumbers),Eo(pe),ce.init(pe)}var gr=0,Zi=null;Je?Zi=-.53:be?Zi=15:Pt?Zi=-.7:It&&(Zi=-1/3);function ir(ie){var ae=ie.wheelDeltaX,ce=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ce==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ce=ie.detail:ce==null&&(ce=ie.wheelDelta),{x:ae,y:ce}}function jr(ie){var ae=ir(ie);return ae.x*=Zi,ae.y*=Zi,ae}function ao(ie,ae){var ce=ir(ae),de=ce.x,pe=ce.y,Ae=ie.display,ze=Ae.scroller,et=ze.scrollWidth>ze.clientWidth,qe=ze.scrollHeight>ze.clientHeight;if(de&&et||pe&&qe){if(pe&&he&&Te){e:for(var yt=ae.target,ln=Ae.view;yt!=ze;yt=yt.parentNode)for(var At=0;At<ln.length;At++)if(ln[At].node==yt){ie.display.currentWheelTarget=yt;break e}}if(de&&!be&&!rt&&Zi!=null){pe&&qe&&ia(ie,Math.max(0,ze.scrollTop+pe*Zi)),Aa(ie,Math.max(0,ze.scrollLeft+de*Zi)),(!pe||pe&&qe)&&pi(ae),Ae.wheelStartX=null;return}if(pe&&Zi!=null){var Wn=pe*Zi,Bn=ie.doc.scrollTop,Ni=Bn+Ae.wrapper.clientHeight;Wn<0?Bn=Math.max(0,Bn+Wn-50):Ni=Math.min(ie.doc.height,Ni+Wn+50),nr(ie,{top:Bn,bottom:Ni})}gr<20&&(Ae.wheelStartX==null?(Ae.wheelStartX=ze.scrollLeft,Ae.wheelStartY=ze.scrollTop,Ae.wheelDX=de,Ae.wheelDY=pe,setTimeout(function(){if(Ae.wheelStartX!=null){var Bi=ze.scrollLeft-Ae.wheelStartX,Ji=ze.scrollTop-Ae.wheelStartY,Cr=Ji&&Ae.wheelDY&&Ji/Ae.wheelDY||Bi&&Ae.wheelDX&&Bi/Ae.wheelDX;Ae.wheelStartX=Ae.wheelStartY=null,Cr&&(Zi=(Zi*gr+Cr)/(gr+1),++gr)}},200)):(Ae.wheelDX+=de,Ae.wheelDY+=pe))}}var lo=function(ie,ae){this.ranges=ie,this.primIndex=ae};lo.prototype.primary=function(){return this.ranges[this.primIndex]},lo.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ce=this.ranges[ae],de=ie.ranges[ae];if(!Rt(ce.anchor,de.anchor)||!Rt(ce.head,de.head))return!1}return!0},lo.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new rr(tn(this.ranges[ae].anchor),tn(this.ranges[ae].head));return new lo(ie,this.primIndex)},lo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},lo.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ce=0;ce<this.ranges.length;ce++){var de=this.ranges[ce];if(vn(ae,de.from())>=0&&vn(ie,de.to())<=0)return ce}return-1};var rr=function(ie,ae){this.anchor=ie,this.head=ae};rr.prototype.from=function(){return an(this.anchor,this.head)},rr.prototype.to=function(){return yn(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Lo(ie,ae,ce){var de=ie&&ie.options.selectionsMayTouch,pe=ae[ce];ae.sort(function(Wn,Bn){return vn(Wn.from(),Bn.from())}),ce=en(ae,pe);for(var Ae=1;Ae<ae.length;Ae++){var ze=ae[Ae],et=ae[Ae-1],qe=vn(et.to(),ze.from());if(de&&!ze.empty()?qe>0:qe>=0){var yt=an(et.from(),ze.from()),ln=yn(et.to(),ze.to()),At=et.empty()?ze.from()==ze.head:et.from()==et.head;Ae<=ce&&--ce,ae.splice(--Ae,2,new rr(At?ln:yt,At?yt:ln))}}return new lo(ae,ce)}function Ro(ie,ae){return new lo([new rr(ie,ae||ie)],0)}function Wo(ie){return ie.text?dn(ie.from.line+ie.text.length-1,vt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Ho(ie,ae){if(vn(ie,ae.from)<0)return ie;if(vn(ie,ae.to)<=0)return Wo(ae);var ce=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,de=ie.ch;return ie.line==ae.to.line&&(de+=Wo(ae).ch-ae.to.ch),dn(ce,de)}function ja(ie,ae){for(var ce=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];ce.push(new rr(Ho(pe.anchor,ae),Ho(pe.head,ae)))}return Lo(ie.cm,ce,ie.sel.primIndex)}function ea(ie,ae,ce){return ie.line==ae.line?dn(ce.line,ie.ch-ae.ch+ce.ch):dn(ce.line+(ie.line-ae.line),ie.ch)}function Po(ie,ae,ce){for(var de=[],pe=dn(ie.first,0),Ae=pe,ze=0;ze<ae.length;ze++){var et=ae[ze],qe=ea(et.from,pe,Ae),yt=ea(Wo(et),pe,Ae);if(pe=et.to,Ae=yt,ce=="around"){var ln=ie.sel.ranges[ze],At=vn(ln.head,ln.anchor)<0;de[ze]=new rr(At?yt:qe,At?qe:yt)}else de[ze]=new rr(qe,qe)}return new lo(de,ie.sel.primIndex)}function $r(ie){ie.doc.mode=on(ie.options,ie.doc.modeOption),po(ie)}function po(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,ti(ie,100),ie.state.modeGen++,ie.curOp&&ss(ie)}function Ba(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&vt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ca(ie,ae,ce,de){function pe(io){return ce?ce[io]:null}function Ae(io,Gr,xo){Ra(io,Gr,xo,de),zi(io,"change",io,ae)}function ze(io,Gr){for(var xo=[],Qo=io;Qo<Gr;++Qo)xo.push(new Ta(yt[Qo],pe(Qo),de));return xo}var et=ae.from,qe=ae.to,yt=ae.text,ln=fn(ie,et.line),At=fn(ie,qe.line),Wn=vt(yt),Bn=pe(yt.length-1),Ni=qe.line-et.line;if(ae.full)ie.insert(0,ze(0,yt.length)),ie.remove(yt.length,ie.size-yt.length);else if(Ba(ie,ae)){var Bi=ze(0,yt.length-1);Ae(At,At.text,Bn),Ni&&ie.remove(et.line,Ni),Bi.length&&ie.insert(et.line,Bi)}else if(ln==At)if(yt.length==1)Ae(ln,ln.text.slice(0,et.ch)+Wn+ln.text.slice(qe.ch),Bn);else{var Ji=ze(1,yt.length-1);Ji.push(new Ta(Wn+ln.text.slice(qe.ch),Bn,de)),Ae(ln,ln.text.slice(0,et.ch)+yt[0],pe(0)),ie.insert(et.line+1,Ji)}else if(yt.length==1)Ae(ln,ln.text.slice(0,et.ch)+yt[0]+At.text.slice(qe.ch),pe(0)),ie.remove(et.line+1,Ni);else{Ae(ln,ln.text.slice(0,et.ch)+yt[0],pe(0)),Ae(At,Wn+At.text.slice(qe.ch),Bn);var Cr=ze(1,yt.length-1);Ni>1&&ie.remove(et.line+1,Ni-1),ie.insert(et.line+1,Cr)}zi(ie,"change",ie,ae)}function Ka(ie,ae,ce){function de(pe,Ae,ze){if(pe.linked)for(var et=0;et<pe.linked.length;++et){var qe=pe.linked[et];if(qe.doc!=Ae){var yt=ze&&qe.sharedHist;ce&&!yt||(ae(qe.doc,yt),de(qe.doc,pe,yt))}}}de(ie,null,!0)}function yo(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,vo(ie),$r(ie),no(ie),ie.options.lineWrapping||Sa(ie),ie.options.mode=ae.modeOption,ss(ie)}function no(ie){(ie.doc.direction=="rtl"?Ut:Oe)(ie.display.lineDiv,"CodeMirror-rtl")}function Co(ie){Gt(ie,function(){no(ie),ss(ie)})}function Jr(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Or(ie,ae){var ce={from:tn(ae.from),to:Wo(ae),text:Vn(ie,ae.from,ae.to)};return sl(ie,ce,ae.from.line,ae.to.line+1),Ka(ie,function(de){return sl(de,ce,ae.from.line,ae.to.line+1)},!0),ce}function Ai(ie){for(;ie.length;){var ae=vt(ie);if(ae.ranges)ie.pop();else break}}function mr(ie,ae){if(ae)return Ai(ie.done),vt(ie.done);if(ie.done.length&&!vt(ie.done).ranges)return vt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),vt(ie.done)}function Fo(ie,ae,ce,de){var pe=ie.history;pe.undone.length=0;var Ae=+new Date,ze,et;if((pe.lastOp==de||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Ae-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(ze=mr(pe,pe.lastOp==de)))et=vt(ze.changes),vn(ae.from,ae.to)==0&&vn(ae.from,et.to)==0?et.to=Wo(ae):ze.changes.push(Or(ie,ae));else{var qe=vt(pe.done);for((!qe||!qe.ranges)&&ks(ie.sel,pe.done),ze={changes:[Or(ie,ae)],generation:pe.generation},pe.done.push(ze);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ce),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Ae,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=ae.origin,et||bt(ie,"historyAdded")}function Xo(ie,ae,ce,de){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&ce.ranges.length==de.ranges.length&&ce.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Xs(ie,ae,ce,de){var pe=ie.history,Ae=de&&de.origin;ce==pe.lastSelOp||Ae&&pe.lastSelOrigin==Ae&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Ae||Xo(ie,Ae,vt(pe.done),ae))?pe.done[pe.done.length-1]=ae:ks(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Ae,pe.lastSelOp=ce,de&&de.clearRedo!==!1&&Ai(pe.undone)}function ks(ie,ae){var ce=vt(ae);ce&&ce.ranges&&ce.equals(ie)||ae.push(ie)}function sl(ie,ae,ce,de){var pe=ae["spans_"+ie.id],Ae=0;ie.iter(Math.max(ie.first,ce),Math.min(ie.first+ie.size,de),function(ze){ze.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Ae]=ze.markedSpans),++Ae})}function va(ie){if(!ie)return null;for(var ae,ce=0;ce<ie.length;++ce)ie[ce].marker.explicitlyCleared?ae||(ae=ie.slice(0,ce)):ae&&ae.push(ie[ce]);return ae?ae.length?ae:null:ie}function Oa(ie,ae){var ce=ae["spans_"+ie.id];if(!ce)return null;for(var de=[],pe=0;pe<ae.text.length;++pe)de.push(va(ce[pe]));return de}function ho(ie,ae){var ce=Oa(ie,ae),de=tr(ie,ae);if(!ce)return de;if(!de)return ce;for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe],ze=de[pe];if(Ae&&ze)e:for(var et=0;et<ze.length;++et){for(var qe=ze[et],yt=0;yt<Ae.length;++yt)if(Ae[yt].marker==qe.marker)continue e;Ae.push(qe)}else ze&&(ce[pe]=ze)}return ce}function Bs(ie,ae,ce){for(var de=[],pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.ranges){de.push(ce?lo.prototype.deepCopy.call(Ae):Ae);continue}var ze=Ae.changes,et=[];de.push({changes:et});for(var qe=0;qe<ze.length;++qe){var yt=ze[qe],ln=void 0;if(et.push({from:yt.from,to:yt.to,text:yt.text}),ae)for(var At in yt)(ln=At.match(/^spans_(\d+)$/))&&en(ae,Number(ln[1]))>-1&&(vt(et)[At]=yt[At],delete yt[At])}}return de}function ll(ie,ae,ce,de){if(de){var pe=ie.anchor;if(ce){var Ae=vn(ae,pe)<0;Ae!=vn(ce,pe)<0?(pe=ae,ae=ce):Ae!=vn(ae,ce)<0&&(ae=ce)}return new rr(pe,ae)}else return new rr(ce||ae,ae)}function ka(ie,ae,ce,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Ja(ie,new lo([ll(ie.sel.primary(),ae,ce,pe)],0),de)}function Ha(ie,ae,ce){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Ae=0;Ae<ie.sel.ranges.length;Ae++)de[Ae]=ll(ie.sel.ranges[Ae],ae[Ae],null,pe);var ze=Lo(ie.cm,de,ie.sel.primIndex);Ja(ie,ze,ce)}function Va(ie,ae,ce,de){var pe=ie.sel.ranges.slice(0);pe[ae]=ce,Ja(ie,Lo(ie.cm,pe,ie.sel.primIndex),de)}function ds(ie,ae,ce,de){Ja(ie,Ro(ae,ce),de)}function Os(ie,ae,ce){var de={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Ae=0;Ae<pe.length;Ae++)this.ranges[Ae]=new rr(bn(ie,pe[Ae].anchor),bn(ie,pe[Ae].head))},origin:ce&&ce.origin};return bt(ie,"beforeSelectionChange",ie,de),ie.cm&&bt(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Lo(ie.cm,de.ranges,de.ranges.length-1):ae}function ra(ie,ae,ce){var de=ie.history.done,pe=vt(de);pe&&pe.ranges?(de[de.length-1]=ae,js(ie,ae,ce)):Ja(ie,ae,ce)}function Ja(ie,ae,ce){js(ie,ae,ce),Xs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ce)}function js(ie,ae,ce){(Dn(ie,"beforeSelectionChange")||ie.cm&&Dn(ie.cm,"beforeSelectionChange"))&&(ae=Os(ie,ae,ce));var de=ce&&ce.bias||(vn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ia(ie,ms(ie,ae,de,!0)),!(ce&&ce.scroll===!1)&&ie.cm&&Yr(ie.cm)}function Ia(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,$t(ie.cm)),zi(ie,"cursorActivity",ie))}function So(ie){Ia(ie,ms(ie,ie.sel,null,!1))}function ms(ie,ae,ce,de){for(var pe,Ae=0;Ae<ae.ranges.length;Ae++){var ze=ae.ranges[Ae],et=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ae],qe=Cu(ie,ze.anchor,et&&et.anchor,ce,de),yt=Cu(ie,ze.head,et&&et.head,ce,de);(pe||qe!=ze.anchor||yt!=ze.head)&&(pe||(pe=ae.ranges.slice(0,Ae)),pe[Ae]=new rr(qe,yt))}return pe?Lo(ie.cm,pe,ae.primIndex):ae}function Is(ie,ae,ce,de,pe){var Ae=fn(ie,ae.line);if(Ae.markedSpans)for(var ze=0;ze<Ae.markedSpans.length;++ze){var et=Ae.markedSpans[ze],qe=et.marker,yt="selectLeft"in qe?!qe.selectLeft:qe.inclusiveLeft,ln="selectRight"in qe?!qe.selectRight:qe.inclusiveRight;if((et.from==null||(yt?et.from<=ae.ch:et.from<ae.ch))&&(et.to==null||(ln?et.to>=ae.ch:et.to>ae.ch))){if(pe&&(bt(qe,"beforeCursorEnter"),qe.explicitlyCleared))if(Ae.markedSpans){--ze;continue}else break;if(!qe.atomic)continue;if(ce){var At=qe.find(de<0?1:-1),Wn=void 0;if((de<0?ln:yt)&&(At=ql(ie,At,-de,At&&At.line==ae.line?Ae:null)),At&&At.line==ae.line&&(Wn=vn(At,ce))&&(de<0?Wn<0:Wn>0))return Is(ie,At,ae,de,pe)}var Bn=qe.find(de<0?-1:1);return(de<0?yt:ln)&&(Bn=ql(ie,Bn,de,Bn.line==ae.line?Ae:null)),Bn?Is(ie,Bn,ae,de,pe):null}}return ae}function Cu(ie,ae,ce,de,pe){var Ae=de||1,ze=Is(ie,ae,ce,Ae,pe)||!pe&&Is(ie,ae,ce,Ae,!0)||Is(ie,ae,ce,-Ae,pe)||!pe&&Is(ie,ae,ce,-Ae,!0);return ze||(ie.cantEdit=!0,dn(ie.first,0))}function ql(ie,ae,ce,de){return ce<0&&ae.ch==0?ae.line>ie.first?bn(ie,dn(ae.line-1)):null:ce>0&&ae.ch==(de||fn(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?dn(ae.line+1,0):null:new dn(ae.line,ae.ch+ce)}function Wa(ie){ie.setSelection(dn(ie.firstLine(),0),dn(ie.lastLine()),Bt)}function ul(ie,ae,ce){var de={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return de.canceled=!0}};return ce&&(de.update=function(pe,Ae,ze,et){pe&&(de.from=bn(ie,pe)),Ae&&(de.to=bn(ie,Ae)),ze&&(de.text=ze),et!==void 0&&(de.origin=et)}),bt(ie,"beforeChange",ie,de),ie.cm&&bt(ie.cm,"beforeChange",ie.cm,de),de.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:de.from,to:de.to,text:de.text,origin:de.origin}}function ls(ie,ae,ce){if(ie.cm){if(!ie.cm.curOp)return Ln(ie.cm,ls)(ie,ae,ce);if(ie.cm.state.suppressEdits)return}if(!((Dn(ie,"beforeChange")||ie.cm&&Dn(ie.cm,"beforeChange"))&&(ae=ul(ie,ae,!0),!ae))){var de=br&&!ce&&ko(ie,ae.from,ae.to);if(de)for(var pe=de.length-1;pe>=0;--pe)is(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else is(ie,ae)}}function is(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&vn(ae.from,ae.to)==0)){var ce=ja(ie,ae);Fo(ie,ae,ce,ie.cm?ie.cm.curOp.id:NaN),Il(ie,ae,ce,tr(ie,ae));var de=[];Ka(ie,function(pe,Ae){!Ae&&en(de,pe.history)==-1&&(Qa(pe.history,ae),de.push(pe.history)),Il(pe,ae,null,tr(pe,ae))})}}function hu(ie,ae,ce){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!ce)){for(var pe=ie.history,Ae,ze=ie.sel,et=ae=="undo"?pe.done:pe.undone,qe=ae=="undo"?pe.undone:pe.done,yt=0;yt<et.length&&(Ae=et[yt],!(ce?Ae.ranges&&!Ae.equals(ie.sel):!Ae.ranges));yt++);if(yt!=et.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Ae=et.pop(),Ae.ranges){if(ks(Ae,qe),ce&&!Ae.equals(ie.sel)){Ja(ie,Ae,{clearRedo:!1});return}ze=Ae}else if(de){et.push(Ae);return}else break;var ln=[];ks(ze,qe),qe.push({changes:ln,generation:pe.generation}),pe.generation=Ae.generation||++pe.maxGeneration;for(var At=Dn(ie,"beforeChange")||ie.cm&&Dn(ie.cm,"beforeChange"),Wn=function(Bi){var Ji=Ae.changes[Bi];if(Ji.origin=ae,At&&!ul(ie,Ji,!1))return et.length=0,{};ln.push(Or(ie,Ji));var Cr=Bi?ja(ie,Ji):vt(et);Il(ie,Ji,Cr,ho(ie,Ji)),!Bi&&ie.cm&&ie.cm.scrollIntoView({from:Ji.from,to:Wo(Ji)});var io=[];Ka(ie,function(Gr,xo){!xo&&en(io,Gr.history)==-1&&(Qa(Gr.history,Ji),io.push(Gr.history)),Il(Gr,Ji,null,ho(Gr,Ji))})},Bn=Ae.changes.length-1;Bn>=0;--Bn){var Ni=Wn(Bn);if(Ni)return Ni.v}}}}function oh(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new lo(Yn(ie.sel.ranges,function(pe){return new rr(dn(pe.anchor.line+ae,pe.anchor.ch),dn(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ss(ie.cm,ie.first,ie.first-ae,ae);for(var ce=ie.cm.display,de=ce.viewFrom;de<ce.viewTo;de++)na(ie.cm,de,"gutter")}}function Il(ie,ae,ce,de){if(ie.cm&&!ie.cm.curOp)return Ln(ie.cm,Il)(ie,ae,ce,de);if(ae.to.line<ie.first){oh(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);oh(ie,pe),ae={from:dn(ie.first,0),to:dn(ae.to.line+pe,ae.to.ch),text:[vt(ae.text)],origin:ae.origin}}var Ae=ie.lastLine();ae.to.line>Ae&&(ae={from:ae.from,to:dn(Ae,fn(ie,Ae).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Vn(ie,ae.from,ae.to),ce||(ce=ja(ie,ae)),ie.cm?Gu(ie.cm,ae,de):Ca(ie,ae,de),js(ie,ce,Bt),ie.cantEdit&&Cu(ie,dn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Gu(ie,ae,ce){var de=ie.doc,pe=ie.display,Ae=ae.from,ze=ae.to,et=!1,qe=Ae.line;ie.options.lineWrapping||(qe=dt(Xr(fn(de,Ae.line))),de.iter(qe,ze.line+1,function(Bn){if(Bn==pe.maxLine)return et=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&$t(ie),Ca(de,ae,ce,Es(ie)),ie.options.lineWrapping||(de.iter(qe,Ae.line+ae.text.length,function(Bn){var Ni=Ma(Bn);Ni>pe.maxLineLength&&(pe.maxLine=Bn,pe.maxLineLength=Ni,pe.maxLineChanged=!0,et=!1)}),et&&(ie.curOp.updateMaxLine=!0)),Oi(de,Ae.line),ti(ie,400);var yt=ae.text.length-(ze.line-Ae.line)-1;ae.full?ss(ie):Ae.line==ze.line&&ae.text.length==1&&!Ba(ie.doc,ae)?na(ie,Ae.line,"text"):ss(ie,Ae.line,ze.line+1,yt);var ln=Dn(ie,"changes"),At=Dn(ie,"change");if(At||ln){var Wn={from:Ae,to:ze,text:ae.text,removed:ae.removed,origin:ae.origin};At&&zi(ie,"change",ie,Wn),ln&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Wn)}ie.display.selForContextMenu=null}function Ku(ie,ae,ce,de,pe){var Ae;de||(de=ce),vn(de,ce)<0&&(Ae=[de,ce],ce=Ae[0],de=Ae[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ls(ie,{from:ce,to:de,text:ae,origin:pe})}function _l(ie,ae,ce,de){ce<ie.line?ie.line+=de:ae<ie.line&&(ie.line=ae,ie.ch=0)}function ba(ie,ae,ce,de){for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],ze=!0;if(Ae.ranges){Ae.copied||(Ae=ie[pe]=Ae.deepCopy(),Ae.copied=!0);for(var et=0;et<Ae.ranges.length;et++)_l(Ae.ranges[et].anchor,ae,ce,de),_l(Ae.ranges[et].head,ae,ce,de);continue}for(var qe=0;qe<Ae.changes.length;++qe){var yt=Ae.changes[qe];if(ce<yt.from.line)yt.from=dn(yt.from.line+de,yt.from.ch),yt.to=dn(yt.to.line+de,yt.to.ch);else if(ae<=yt.to.line){ze=!1;break}}ze||(ie.splice(0,pe+1),pe=0)}}function Qa(ie,ae){var ce=ae.from.line,de=ae.to.line,pe=ae.text.length-(de-ce)-1;ba(ie.done,ce,de,pe),ba(ie.undone,ce,de,pe)}function Hs(ie,ae,ce,de){var pe=ae,Ae=ae;return typeof ae=="number"?Ae=fn(ie,Mn(ie,ae)):pe=dt(ae),pe==null?null:(de(Ae,pe)&&ie.cm&&na(ie.cm,pe,ce),Ae)}function rs(ie){this.lines=ie,this.parent=null;for(var ae=0,ce=0;ce<ie.length;++ce)ie[ce].parent=this,ae+=ie[ce].height;this.height=ae}rs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ce=ie,de=ie+ae;ce<de;++ce){var pe=this.lines[ce];this.height-=pe.height,Ga(pe),zi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ce){this.height+=ce,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var de=0;de<ae.length;++de)ae[de].parent=this},iterN:function(ie,ae,ce){for(var de=ie+ae;ie<de;++ie)if(ce(this.lines[ie]))return!0}};function Ea(ie){this.children=ie;for(var ae=0,ce=0,de=0;de<ie.length;++de){var pe=ie[de];ae+=pe.chunkSize(),ce+=pe.height,pe.parent=this}this.size=ae,this.height=ce,this.parent=null}Ea.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ce=0;ce<this.children.length;++ce){var de=this.children[ce],pe=de.chunkSize();if(ie<pe){var Ae=Math.min(ae,pe-ie),ze=de.height;if(de.removeInner(ie,Ae),this.height-=ze-de.height,pe==Ae&&(this.children.splice(ce--,1),de.parent=null),(ae-=Ae)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof rs))){var et=[];this.collapse(et),this.children=[new rs(et)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ce){this.size+=ae.length,this.height+=ce;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ae=pe.chunkSize();if(ie<=Ae){if(pe.insertInner(ie,ae,ce),pe.lines&&pe.lines.length>50){for(var ze=pe.lines.length%25+25,et=ze;et<pe.lines.length;){var qe=new rs(pe.lines.slice(et,et+=25));pe.height-=qe.height,this.children.splice(++de,0,qe),qe.parent=this}pe.lines=pe.lines.slice(0,ze),this.maybeSpill()}break}ie-=Ae}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ce=new Ea(ae);if(ie.parent){ie.size-=ce.size,ie.height-=ce.height;var pe=en(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,ce)}else{var de=new Ea(ie.children);de.parent=ie,ie.children=[de,ce],ie=de}ce.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ce){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ae=pe.chunkSize();if(ie<Ae){var ze=Math.min(ae,Ae-ie);if(pe.iterN(ie,ze,ce))return!0;if((ae-=ze)==0)break;ie=0}else ie-=Ae}}};var Ws=function(ie,ae,ce){if(ce)for(var de in ce)ce.hasOwnProperty(de)&&(this[de]=ce[de]);this.doc=ie,this.node=ae};Ws.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ce=this.line,de=dt(ce);if(!(de==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(ce.widgets=null);var Ae=Ll(this);gi(ce,Math.max(0,ce.height-Ae)),ie&&(Gt(ie,function(){Sl(ie,ce,-Ae),na(ie,de,"widget")}),zi(ie,"lineWidgetCleared",ie,this,de))}},Ws.prototype.changed=function(){var ie=this,ae=this.height,ce=this.doc.cm,de=this.line;this.height=null;var pe=Ll(this)-ae;pe&&(ri(this.doc,de)||gi(de,de.height+pe),ce&&Gt(ce,function(){ce.curOp.forceUpdate=!0,Sl(ce,de,pe),zi(ce,"lineWidgetChanged",ce,ie,dt(de))}))},ii(Ws);function Sl(ie,ae,ce){Io(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Vr(ie,ce)}function bu(ie,ae,ce,de){var pe=new Ws(ie,ce,de),Ae=ie.cm;return Ae&&pe.noHScroll&&(Ae.display.alignWidgets=!0),Hs(ie,ae,"widget",function(ze){var et=ze.widgets||(ze.widgets=[]);if(pe.insertAt==null?et.push(pe):et.splice(Math.min(et.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=ze,Ae&&!ri(ie,ze)){var qe=Io(ze)<ie.scrollTop;gi(ze,ze.height+Ll(pe)),qe&&Vr(Ae,pe.height),Ae.curOp.forceUpdate=!0}return!0}),Ae&&zi(Ae,"lineWidgetAdded",Ae,pe,typeof ae=="number"?ae:dt(ae)),pe}var ac=0,Kt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++ac};Kt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Pa(ie),Dn(this,"clear")){var ce=this.find();ce&&zi(this,"clear",ce.from,ce.to)}for(var de=null,pe=null,Ae=0;Ae<this.lines.length;++Ae){var ze=this.lines[Ae],et=ta(ze.markedSpans,this);ie&&!this.collapsed?na(ie,dt(ze),"text"):ie&&(et.to!=null&&(pe=dt(ze)),et.from!=null&&(de=dt(ze))),ze.markedSpans=bo(ze.markedSpans,et),et.from==null&&this.collapsed&&!ri(this.doc,ze)&&ie&&gi(ze,rh(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var qe=0;qe<this.lines.length;++qe){var yt=Xr(this.lines[qe]),ln=Ma(yt);ln>ie.display.maxLineLength&&(ie.display.maxLine=yt,ie.display.maxLineLength=ln,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&ss(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&So(ie.doc)),ie&&zi(ie,"markerCleared",ie,this,de,pe),ae&&As(ie),this.parent&&this.parent.clear()}},Kt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ce,de,pe=0;pe<this.lines.length;++pe){var Ae=this.lines[pe],ze=ta(Ae.markedSpans,this);if(ze.from!=null&&(ce=dn(ae?Ae:dt(Ae),ze.from),ie==-1))return ce;if(ze.to!=null&&(de=dn(ae?Ae:dt(Ae),ze.to),ie==1))return de}return ce&&{from:ce,to:de}},Kt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ce=this,de=this.doc.cm;!ae||!de||Gt(de,function(){var pe=ae.line,Ae=dt(ae.line),ze=Zu(de,Ae);if(ze&&(cl(ze),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!ri(ce.doc,pe)&&ce.height!=null){var et=ce.height;ce.height=null;var qe=Ll(ce)-et;qe&&gi(pe,pe.height+qe)}zi(de,"markerChanged",de,ie)})},Kt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||en(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Kt.prototype.detachLine=function(ie){if(this.lines.splice(en(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},ii(Kt);function wh(ie,ae,ce,de,pe){if(de&&de.shared)return Rc(ie,ae,ce,de,pe);if(ie.cm&&!ie.cm.curOp)return Ln(ie.cm,wh)(ie,ae,ce,de,pe);var Ae=new Kt(ie,pe),ze=vn(ae,ce);if(de&&Nn(de,Ae,!1),ze>0||ze==0&&Ae.clearWhenEmpty!==!1)return Ae;if(Ae.replacedWith&&(Ae.collapsed=!0,Ae.widgetNode=ut("span",[Ae.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Ae.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Ae.widgetNode.insertLeft=!0)),Ae.collapsed){if(uo(ie,ae.line,ae,ce,Ae)||ae.line!=ce.line&&uo(ie,ce.line,ae,ce,Ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");An()}Ae.addToHistory&&Fo(ie,{from:ae,to:ce,origin:"markText"},ie.sel,NaN);var et=ae.line,qe=ie.cm,yt;if(ie.iter(et,ce.line+1,function(At){qe&&Ae.collapsed&&!qe.options.lineWrapping&&Xr(At)==qe.display.maxLine&&(yt=!0),Ae.collapsed&&et!=ae.line&&gi(At,0),ca(At,new Br(Ae,et==ae.line?ae.ch:null,et==ce.line?ce.ch:null)),++et}),Ae.collapsed&&ie.iter(ae.line,ce.line+1,function(At){ri(ie,At)&&gi(At,0)}),Ae.clearOnEnter&&Jt(Ae,"beforeCursorEnter",function(){return Ae.clear()}),Ae.readOnly&&(wo(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ae.collapsed&&(Ae.id=++ac,Ae.atomic=!0),qe){if(yt&&(qe.curOp.updateMaxLine=!0),Ae.collapsed)ss(qe,ae.line,ce.line+1);else if(Ae.className||Ae.startStyle||Ae.endStyle||Ae.css||Ae.attributes||Ae.title)for(var ln=ae.line;ln<=ce.line;ln++)na(qe,ln,"text");Ae.atomic&&So(qe.doc),zi(qe,"markerAdded",qe,Ae)}return Ae}var ah=function(ie,ae){this.markers=ie,this.primary=ae;for(var ce=0;ce<ie.length;++ce)ie[ce].parent=this};ah.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();zi(this,"clear")}},ah.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},ii(ah);function Rc(ie,ae,ce,de,pe){de=Nn(de),de.shared=!1;var Ae=[wh(ie,ae,ce,de,pe)],ze=Ae[0],et=de.widgetNode;return Ka(ie,function(qe){et&&(de.widgetNode=et.cloneNode(!0)),Ae.push(wh(qe,bn(qe,ae),bn(qe,ce),de,pe));for(var yt=0;yt<qe.linked.length;++yt)if(qe.linked[yt].isParent)return;ze=vt(Ae)}),new ah(Ae,ze)}function vd(ie){return ie.findMarks(dn(ie.first,0),ie.clipPos(dn(ie.lastLine())),function(ae){return ae.parent})}function Rh(ie,ae){for(var ce=0;ce<ae.length;ce++){var de=ae[ce],pe=de.find(),Ae=ie.clipPos(pe.from),ze=ie.clipPos(pe.to);if(vn(Ae,ze)){var et=wh(ie,Ae,ze,de.primary,de.primary.type);de.markers.push(et),et.parent=de}}}function Ph(ie){for(var ae=function(de){var pe=ie[de],Ae=[pe.primary.doc];Ka(pe.primary.doc,function(qe){return Ae.push(qe)});for(var ze=0;ze<pe.markers.length;ze++){var et=pe.markers[ze];en(Ae,et.doc)==-1&&(et.parent=null,pe.markers.splice(ze--,1))}},ce=0;ce<ie.length;ce++)ae(ce)}var cf=0,fl=function(ie,ae,ce,de,pe){if(!(this instanceof fl))return new fl(ie,ae,ce,de,pe);ce==null&&(ce=0),Ea.call(this,[new rs([new Ta("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var Ae=dn(ce,0);this.sel=Ro(Ae),this.history=new Jr(null),this.id=++cf,this.modeOption=ae,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ca(this,{from:Ae,to:Ae,text:ie}),Ja(this,Ro(Ae),Bt)};fl.prototype=Me(Ea.prototype,{constructor:fl,iter:function(ie,ae,ce){ce?this.iterN(ie-this.first,ae-ie,ce):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ce=0,de=0;de<ae.length;++de)ce+=ae[de].height;this.insertInner(ie-this.first,ae,ce)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=bi(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:wn(function(ie){var ae=dn(this.first,0),ce=this.first+this.size-1;ls(this,{from:ae,to:dn(ce,fn(this,ce).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Zr(this.cm,0,0),Ja(this,Ro(ae),Bt)}),replaceRange:function(ie,ae,ce,de){ae=bn(this,ae),ce=ce?bn(this,ce):ae,Ku(this,ie,ae,ce,de)},getRange:function(ie,ae,ce){var de=Vn(this,bn(this,ie),bn(this,ae));return ce===!1?de:de.join(ce||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(ui(this,ie))return fn(this,ie)},getLineNumber:function(ie){return dt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=fn(this,ie)),Xr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return bn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ce;return ie==null||ie=="head"?ce=ae.head:ie=="anchor"?ce=ae.anchor:ie=="end"||ie=="to"||ie===!1?ce=ae.to():ce=ae.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wn(function(ie,ae,ce){ds(this,bn(this,typeof ie=="number"?dn(ie,ae||0):ie),null,ce)}),setSelection:wn(function(ie,ae,ce){ds(this,bn(this,ie),bn(this,ae||ie),ce)}),extendSelection:wn(function(ie,ae,ce){ka(this,bn(this,ie),ae&&bn(this,ae),ce)}),extendSelections:wn(function(ie,ae){Ha(this,Un(this,ie),ae)}),extendSelectionsBy:wn(function(ie,ae){var ce=Yn(this.sel.ranges,ie);Ha(this,Un(this,ce),ae)}),setSelections:wn(function(ie,ae,ce){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new rr(bn(this,ie[pe].anchor),bn(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Ja(this,Lo(this.cm,de,ae),ce)}}),addSelection:wn(function(ie,ae,ce){var de=this.sel.ranges.slice(0);de.push(new rr(bn(this,ie),bn(this,ae||ie))),Ja(this,Lo(this.cm,de,de.length-1),ce)}),getSelection:function(ie){for(var ae=this.sel.ranges,ce,de=0;de<ae.length;de++){var pe=Vn(this,ae[de].from(),ae[de].to());ce=ce?ce.concat(pe):pe}return ie===!1?ce:ce.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ce=this.sel.ranges,de=0;de<ce.length;de++){var pe=Vn(this,ce[de].from(),ce[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[de]=pe}return ae},replaceSelection:function(ie,ae,ce){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,ae,ce||"+input")},replaceSelections:wn(function(ie,ae,ce){for(var de=[],pe=this.sel,Ae=0;Ae<pe.ranges.length;Ae++){var ze=pe.ranges[Ae];de[Ae]={from:ze.from(),to:ze.to(),text:this.splitLines(ie[Ae]),origin:ce}}for(var et=ae&&ae!="end"&&Po(this,de,ae),qe=de.length-1;qe>=0;qe--)ls(this,de[qe]);et?ra(this,et):this.cm&&Yr(this.cm)}),undo:wn(function(){hu(this,"undo")}),redo:wn(function(){hu(this,"redo")}),undoSelection:wn(function(){hu(this,"undo",!0)}),redoSelection:wn(function(){hu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ce=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++ce;return{undo:ae,redo:ce}},clearHistory:function(){var ie=this;this.history=new Jr(this.history.maxGeneration),Ka(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Jr(this.history.maxGeneration);ae.done=Bs(ie.done.slice(0),null,!0),ae.undone=Bs(ie.undone.slice(0),null,!0)},setGutterMarker:wn(function(ie,ae,ce){return Hs(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[ae]=ce,!ce&&Se(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:wn(function(ie){var ae=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[ie]&&Hs(ae,ce,"gutter",function(){return ce.gutterMarkers[ie]=null,Se(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!ui(this,ie)||(ae=ie,ie=fn(this,ie),!ie))return null}else if(ae=dt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:wn(function(ie,ae,ce){return Hs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=ce;else{if(we(ce).test(de[pe]))return!1;de[pe]+=" "+ce}return!0})}),removeLineClass:wn(function(ie,ae,ce){return Hs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ae=de[pe];if(Ae)if(ce==null)de[pe]=null;else{var ze=Ae.match(we(ce));if(!ze)return!1;var et=ze.index+ze[0].length;de[pe]=Ae.slice(0,ze.index)+(!ze.index||et==Ae.length?"":" ")+Ae.slice(et)||null}else return!1;return!0})}),addLineWidget:wn(function(ie,ae,ce){return bu(this,ie,ae,ce)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ce){return wh(this,bn(this,ie),bn(this,ae),ce,ce&&ce.type||"range")},setBookmark:function(ie,ae){var ce={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=bn(this,ie),wh(this,ie,ie,ce,"bookmark")},findMarksAt:function(ie){ie=bn(this,ie);var ae=[],ce=fn(this,ie.line).markedSpans;if(ce)for(var de=0;de<ce.length;++de){var pe=ce[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,ce){ie=bn(this,ie),ae=bn(this,ae);var de=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Ae){var ze=Ae.markedSpans;if(ze)for(var et=0;et<ze.length;et++){var qe=ze[et];!(qe.to!=null&&pe==ie.line&&ie.ch>=qe.to||qe.from==null&&pe!=ie.line||qe.from!=null&&pe==ae.line&&qe.from>=ae.ch)&&(!ce||ce(qe.marker))&&de.push(qe.marker.parent||qe.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ce=ae.markedSpans;if(ce)for(var de=0;de<ce.length;++de)ce[de].from!=null&&ie.push(ce[de].marker)}),ie},posFromIndex:function(ie){var ae,ce=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Ae=pe.text.length+de;if(Ae>ie)return ae=ie,!0;ie-=Ae,++ce}),bn(this,dn(ce,ae))},indexFromPos:function(ie){ie=bn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){ae+=de.text.length+ce}),ae},copy:function(ie){var ae=new fl(bi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ce=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ce&&(ce=ie.to);var de=new fl(bi(this,ae,ce),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:ie.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Rh(de,vd(this)),de},unlinkDoc:function(ie){if(ie instanceof qa&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ce=this.linked[ae];if(ce.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Ph(vd(this));break}}if(ie.history==this.history){var de=[ie.id];Ka(ie,function(pe){return de.push(pe.id)},!0),ie.history=new Jr(null),ie.history.done=Bs(this.history.done,de),ie.history.undone=Bs(this.history.undone,de)}},iterLinkedDocs:function(ie){Ka(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):kr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:wn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Co(this.cm))})}),fl.prototype.eachLine=fl.prototype.iter;var id=0;function Od(ie){var ae=this;if(ff(ae),!(_t(ae,ie)||Ml(ae.display,ie))){pi(ie),Je&&(id=+new Date);var ce=nl(ae,ie,!0),de=ie.dataTransfer.files;if(!(!ce||ae.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Ae=Array(pe),ze=0,et=function(){++ze==pe&&Ln(ae,function(){ce=bn(ae.doc,ce);var Bn={from:ce,to:ce,text:ae.doc.splitLines(Ae.filter(function(Ni){return Ni!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ls(ae.doc,Bn),ra(ae.doc,Ro(bn(ae.doc,ce),bn(ae.doc,Wo(Bn))))})()},qe=function(Bn,Ni){if(ae.options.allowDropFileTypes&&en(ae.options.allowDropFileTypes,Bn.type)==-1){et();return}var Bi=new FileReader;Bi.onerror=function(){return et()},Bi.onload=function(){var Ji=Bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ji)){et();return}Ae[Ni]=Ji,et()},Bi.readAsText(Bn)},yt=0;yt<de.length;yt++)qe(de[yt],yt);else{if(ae.state.draggingText&&ae.doc.sel.contains(ce)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var ln=ie.dataTransfer.getData("Text");if(ln){var At;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(At=ae.listSelections()),js(ae.doc,Ro(ce,ce)),At)for(var Wn=0;Wn<At.length;++Wn)Ku(ae.doc,"",At[Wn].anchor,At[Wn].head,"drag");ae.replaceSelection(ln,"around","paste"),ae.display.input.focus()}}catch(Bn){}}}}function Id(ie,ae){if(Je&&(!ie.state.draggingText||+new Date-id<100)){Vi(ae);return}if(!(_t(ie,ae)||Ml(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!It)){var ce=Ve("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",rt&&(ce.width=ce.height=1,ie.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),ae.dataTransfer.setDragImage(ce,0,0),rt&&ce.parentNode.removeChild(ce)}}function Rd(ie,ae){var ce=nl(ie,ae);if(ce){var de=document.createDocumentFragment();pn(ie,ce,de),ie.display.dragCursor||(ie.display.dragCursor=Ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),We(ie.display.dragCursor,de)}}function ff(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function zd(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ce=[],de=0;de<ae.length;de++){var pe=ae[de].CodeMirror;pe&&ce.push(pe)}ce.length&&ce[0].operation(function(){for(var Ae=0;Ae<ce.length;Ae++)ie(ce[Ae])})}}var jd=!1;function du(){jd||(zh(),jd=!0)}function zh(){var ie;Jt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,zd(zc)},100))}),Jt(window,"blur",function(){return zd(Li)})}function zc(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Vu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},jh=0;jh<10;jh++)Vu[jh+48]=Vu[jh+96]=String(jh);for(var rd=65;rd<=90;rd++)Vu[rd]=String.fromCharCode(rd);for(var od=1;od<=12;od++)Vu[od+111]=Vu[od+63235]="F"+od;var Rl={};Rl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rl.default=he?Rl.macDefault:Rl.pcDefault;function sc(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ce,de,pe,Ae,ze=0;ze<ae.length-1;ze++){var et=ae[ze];if(/^(cmd|meta|m)$/i.test(et))Ae=!0;else if(/^a(lt)?$/i.test(et))ce=!0;else if(/^(c|ctrl|control)$/i.test(et))de=!0;else if(/^s(hift)?$/i.test(et))pe=!0;else throw new Error("Unrecognized modifier name: "+et)}return ce&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Ae&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Hd(ie){var ae={};for(var ce in ie)if(ie.hasOwnProperty(ce)){var de=ie[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(de=="..."){delete ie[ce];continue}for(var pe=Yn(ce.split(" "),sc),Ae=0;Ae<pe.length;Ae++){var ze=void 0,et=void 0;Ae==pe.length-1?(et=pe.join(" "),ze=de):(et=pe.slice(0,Ae+1).join(" "),ze="...");var qe=ae[et];if(!qe)ae[et]=ze;else if(qe!=ze)throw new Error("Inconsistent bindings for "+et)}delete ie[ce]}for(var yt in ae)ie[yt]=ae[yt];return ie}function eu(ie,ae,ce,de){ae=Ch(ae);var pe=ae.call?ae.call(ie,de):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ce(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return eu(ie,ae.fallthrough,ce,de);for(var Ae=0;Ae<ae.fallthrough.length;Ae++){var ze=eu(ie,ae.fallthrough[Ae],ce,de);if(ze)return ze}}}function yd(ie){var ae=typeof ie=="string"?ie:Vu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Wd(ie,ae,ce){var de=ie;return ae.altKey&&de!="Alt"&&(ie="Alt-"+ie),(Pe?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(Pe?ae.ctrlKey:ae.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!ce&&ae.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function lc(ie,ae){if(rt&&ie.keyCode==34&&ie.char)return!1;var ce=Vu[ie.keyCode];return ce==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ce=ie.code),Wd(ce,ie,ae))}function Ch(ie){return typeof ie=="string"?Rl[ie]:ie}function xl(ie,ae){for(var ce=ie.doc.sel.ranges,de=[],pe=0;pe<ce.length;pe++){for(var Ae=ae(ce[pe]);de.length&&vn(Ae.from,vt(de).to)<=0;){var ze=de.pop();if(vn(ze.from,Ae.from)<0){Ae.from=ze.from;break}}de.push(Ae)}Gt(ie,function(){for(var et=de.length-1;et>=0;et--)Ku(ie.doc,"",de[et].from,de[et].to,"+delete");Yr(ie)})}function Zd(ie,ae,ce){var de=Xe(ie.text,ae+ce,ce);return de<0||de>ie.text.length?null:de}function Js(ie,ae,ce){var de=Zd(ie,ae.ch,ce);return de==null?null:new dn(ae.line,de,ce<0?"after":"before")}function Da(ie,ae,ce,de,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Ae=Pn(ce,ae.doc.direction);if(Ae){var ze=pe<0?vt(Ae):Ae[0],et=pe<0==(ze.level==1),qe=et?"after":"before",yt;if(ze.level>0||ae.doc.direction=="rtl"){var ln=Bl(ae,ce);yt=pe<0?ce.text.length-1:0;var At=Ol(ae,ln,yt).top;yt=tt(function(Wn){return Ol(ae,ln,Wn).top==At},pe<0==(ze.level==1)?ze.from:ze.to-1,yt),qe=="before"&&(yt=Zd(ce,yt,1))}else yt=pe<0?ze.to:ze.from;return new dn(de,yt,qe)}}return new dn(de,pe<0?ce.text.length:0,pe<0?"before":"after")}function cs(ie,ae,ce,de){var pe=Pn(ae,ie.doc.direction);if(!pe)return Js(ae,ce,de);ce.ch>=ae.text.length?(ce.ch=ae.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Ae=ct(pe,ce.ch,ce.sticky),ze=pe[Ae];if(ie.doc.direction=="ltr"&&ze.level%2==0&&(de>0?ze.to>ce.ch:ze.from<ce.ch))return Js(ae,ce,de);var et=function(Cr,io){return Zd(ae,Cr instanceof dn?Cr.ch:Cr,io)},qe,yt=function(Cr){return ie.options.lineWrapping?(qe=qe||Bl(ie,ae),nd(ie,ae,qe,Cr)):{begin:0,end:ae.text.length}},ln=yt(ce.sticky=="before"?et(ce,-1):ce.ch);if(ie.doc.direction=="rtl"||ze.level==1){var At=ze.level==1==de<0,Wn=et(ce,At?1:-1);if(Wn!=null&&(At?Wn<=ze.to&&Wn<=ln.end:Wn>=ze.from&&Wn>=ln.begin)){var Bn=At?"before":"after";return new dn(ce.line,Wn,Bn)}}var Ni=function(Cr,io,Gr){for(var xo=function(Zs,Fl){return Fl?new dn(ce.line,et(Zs,1),"before"):new dn(ce.line,Zs,"after")};Cr>=0&&Cr<pe.length;Cr+=io){var Qo=pe[Cr],Hr=io>0==(Qo.level!=1),pa=Hr?Gr.begin:et(Gr.end,-1);if(Qo.from<=pa&&pa<Qo.to||(pa=Hr?Qo.from:et(Qo.to,-1),Gr.begin<=pa&&pa<Gr.end))return xo(pa,Hr)}},Bi=Ni(Ae+de,de,ln);if(Bi)return Bi;var Ji=de>0?ln.end:et(ln.begin,-1);return Ji!=null&&!(de>0&&Ji==ae.text.length)&&(Bi=Ni(de>0?0:pe.length-1,de,yt(Ji)),Bi)?Bi:null}var gl={selectAll:Wa,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Bt)},killLine:function(ie){return xl(ie,function(ae){if(ae.empty()){var ce=fn(ie.doc,ae.head.line).text.length;return ae.head.ch==ce&&ae.head.line<ie.lastLine()?{from:ae.head,to:dn(ae.head.line+1,0)}:{from:ae.head,to:dn(ae.head.line,ce)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return xl(ie,function(ae){return{from:dn(ae.from().line,0),to:bn(ie.doc,dn(ae.to().line+1,0))}})},delLineLeft:function(ie){return xl(ie,function(ae){return{from:dn(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return xl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return{from:de,to:ae.from()}})},delWrappedLineRight:function(ie){return xl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div");return{from:ae.from(),to:de}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(dn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(dn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return cu(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return uc(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return fu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div")},cn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ce},"div")},cn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return de.ch<ie.getLine(de.line).search(/\S/)?uc(ie,ae.head):de},cn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],ce=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<ce.length;pe++){var Ae=ce[pe].from(),ze=St(ie.getLine(Ae.line),Ae.ch,de);ae.push(Rn(de-ze%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Gt(ie,function(){for(var ae=ie.listSelections(),ce=[],de=0;de<ae.length;de++)if(ae[de].empty()){var pe=ae[de].head,Ae=fn(ie.doc,pe.line).text;if(Ae){if(pe.ch==Ae.length&&(pe=new dn(pe.line,pe.ch-1)),pe.ch>0)pe=new dn(pe.line,pe.ch+1),ie.replaceRange(Ae.charAt(pe.ch-1)+Ae.charAt(pe.ch-2),dn(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var ze=fn(ie.doc,pe.line-1).text;ze&&(pe=new dn(pe.line,1),ie.replaceRange(Ae.charAt(0)+ie.doc.lineSeparator()+ze.charAt(ze.length-1),dn(pe.line-1,ze.length-1),pe,"+transpose"))}}ce.push(new rr(pe,pe))}ie.setSelections(ce)})},newlineAndIndent:function(ie){return Gt(ie,function(){for(var ae=ie.listSelections(),ce=ae.length-1;ce>=0;ce--)ie.replaceRange(ie.doc.lineSeparator(),ae[ce].anchor,ae[ce].head,"+input");ae=ie.listSelections();for(var de=0;de<ae.length;de++)ie.indentLine(ae[de].from().line,null,!0);Yr(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function cu(ie,ae){var ce=fn(ie.doc,ae),de=Xr(ce);return de!=ce&&(ae=dt(de)),Da(!0,ie,de,ae,1)}function fu(ie,ae){var ce=fn(ie.doc,ae),de=Zo(ce);return de!=ce&&(ae=dt(de)),Da(!0,ie,ce,ae,-1)}function uc(ie,ae){var ce=cu(ie,ae.line),de=fn(ie.doc,ce.line),pe=Pn(de,ie.doc.direction);if(!pe||pe[0].level==0){var Ae=Math.max(ce.ch,de.text.search(/\S/)),ze=ae.line==ce.line&&ae.ch<=Ae&&ae.ch;return dn(ce.line,ze?0:Ae,ce.sticky)}return ce}function Hh(ie,ae,ce){if(typeof ae=="string"&&(ae=gl[ae],!ae))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ce&&(ie.display.shift=!1),pe=ae(ie)!=_n}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function Gd(ie,ae,ce){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=eu(ae,ie.state.keyMaps[de],ce,ie);if(pe)return pe}return ie.options.extraKeys&&eu(ae,ie.options.extraKeys,ce,ie)||eu(ae,ie.options.keyMap,ce,ie)}var Tu=new Ge;function Yu(ie,ae,ce,de){var pe=ie.state.keySeq;if(pe){if(yd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Tu.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),gf(ie,pe+" "+ae,ce,de))return!0}return gf(ie,ae,ce,de)}function gf(ie,ae,ce,de){var pe=Gd(ie,ae,de);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&zi(ie,"keyHandled",ie,ae,ce),(pe=="handled"||pe=="multi")&&(pi(ce),Xn(ie)),!!pe}function pf(ie,ae){var ce=lc(ae,!0);return ce?ae.shiftKey&&!ie.state.keySeq?Yu(ie,"Shift-"+ce,ae,function(de){return Hh(ie,de,!0)})||Yu(ie,ce,ae,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return Hh(ie,de)}):Yu(ie,ce,ae,function(de){return Hh(ie,de)}):!1}function hc(ie,ae,ce){return Yu(ie,"'"+ce+"'",ae,function(de){return Hh(ie,de,!0)})}var Du=null;function mf(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=pt(),!_t(ae,ie))){Je&&it<11&&ie.keyCode==27&&(ie.returnValue=!1);var ce=ie.keyCode;ae.display.shift=ce==16||ie.shiftKey;var de=pf(ae,ie);rt&&(Du=de?ce:null,!de&&ce==88&&!si&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),be&&!he&&!de&&ce==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Wf(ae)}}function Wf(ie){var ae=ie.display.lineDiv;Ut(ae,"CodeMirror-crosshair");function ce(de){(de.keyCode==18||!de.altKey)&&(Oe(ae,"CodeMirror-crosshair"),Tn(document,"keyup",ce),Tn(document,"mouseover",ce))}Jt(document,"keyup",ce),Jt(document,"mouseover",ce)}function vf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),_t(this,ie)}function sh(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Ml(ae.display,ie)||_t(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ce=ie.keyCode,de=ie.charCode;if(rt&&ce==Du){Du=null,pi(ie);return}if(!(rt&&(!ie.which||ie.which<10)&&pf(ae,ie))){var pe=String.fromCharCode(de==null?ce:de);pe!="\b"&&(hc(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var Sg=400,Zf=function(ie,ae,ce){this.time=ie,this.pos=ae,this.button=ce};Zf.prototype.compare=function(ie,ae,ce){return this.time+Sg>ie&&vn(ae,this.pos)==0&&ce==this.button};var dc,Sd;function Gf(ie,ae){var ce=+new Date;return Sd&&Sd.compare(ce,ie,ae)?(dc=Sd=null,"triple"):dc&&dc.compare(ce,ie,ae)?(Sd=new Zf(ce,ie,ae),dc=null,"double"):(dc=new Zf(ce,ie,ae),Sd=null,"single")}function bh(ie){var ae=this,ce=ae.display;if(!(_t(ae,ie)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=ie.shiftKey,Ml(ce,ie)){Te||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!Jo(ae,ie)){var de=nl(ae,ie),pe=cr(ie),Ae=de?Gf(de,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Kf(ae,pe,de,Ae,ie))&&(pe==1?de?yf(ae,de,Ae,ie):vr(ie)==ce.scroller&&pi(ie):pe==2?(de&&ka(ae.doc,de),setTimeout(function(){return ce.input.focus()},20)):pe==3&&(ke?ae.display.input.onContextMenu(ie):Ii(ae)))}}}function Kf(ie,ae,ce,de,pe){var Ae="Click";return de=="double"?Ae="Double"+Ae:de=="triple"&&(Ae="Triple"+Ae),Ae=(ae==1?"Left":ae==2?"Middle":"Right")+Ae,Yu(ie,Wd(Ae,pe),pe,function(ze){if(typeof ze=="string"&&(ze=gl[ze]),!ze)return!1;var et=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),et=ze(ie,ce)!=_n}finally{ie.state.suppressEdits=!1}return et})}function jc(ie,ae,ce){var de=ie.getOption("configureMouse"),pe=de?de(ie,ae,ce):{};if(pe.unit==null){var Ae=se?ce.shiftKey&&ce.metaKey:ce.altKey;pe.unit=Ae?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||ce.shiftKey),pe.addNew==null&&(pe.addNew=he?ce.metaKey:ce.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(he?ce.altKey:ce.ctrlKey)),pe}function yf(ie,ae,ce,de){Je?setTimeout(Xt(hi,ie),0):ie.curOp.focus=pt();var pe=jc(ie,ce,de),Ae=ie.doc.sel,ze;ie.options.dragDrop&&pr&&!ie.isReadOnly()&&ce=="single"&&(ze=Ae.contains(ae))>-1&&(vn((ze=Ae.ranges[ze]).from(),ae)<0||ae.xRel>0)&&(vn(ze.to(),ae)>0||ae.xRel<0)?Hc(ie,de,ae,pe):sp(ie,de,ae,pe)}function Hc(ie,ae,ce,de){var pe=ie.display,Ae=!1,ze=Ln(ie,function(yt){Te&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,Tn(pe.wrapper.ownerDocument,"mouseup",ze),Tn(pe.wrapper.ownerDocument,"mousemove",et),Tn(pe.scroller,"dragstart",qe),Tn(pe.scroller,"drop",ze),Ae||(pi(yt),de.addNew||ka(ie.doc,ce,null,null,de.extend),Te&&!It||Je&&it==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),et=function(yt){Ae=Ae||Math.abs(ae.clientX-yt.clientX)+Math.abs(ae.clientY-yt.clientY)>=10},qe=function(){return Ae=!0};Te&&(pe.scroller.draggable=!0),ie.state.draggingText=ze,ze.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),Jt(pe.wrapper.ownerDocument,"mouseup",ze),Jt(pe.wrapper.ownerDocument,"mousemove",et),Jt(pe.scroller,"dragstart",qe),Jt(pe.scroller,"drop",ze),Ii(ie),setTimeout(function(){return pe.input.focus()},20)}function Vf(ie,ae,ce){if(ce=="char")return new rr(ae,ae);if(ce=="word")return ie.findWordAt(ae);if(ce=="line")return new rr(dn(ae.line,0),bn(ie.doc,dn(ae.line+1,0)));var de=ce(ie,ae);return new rr(de.from,de.to)}function sp(ie,ae,ce,de){var pe=ie.display,Ae=ie.doc;pi(ae);var ze,et,qe=Ae.sel,yt=qe.ranges;if(de.addNew&&!de.extend?(et=Ae.sel.contains(ce),et>-1?ze=yt[et]:ze=new rr(ce,ce)):(ze=Ae.sel.primary(),et=Ae.sel.primIndex),de.unit=="rectangle")de.addNew||(ze=new rr(ce,ce)),ce=nl(ie,ae,!0,!0),et=-1;else{var ln=Vf(ie,ce,de.unit);de.extend?ze=ll(ze,ln.anchor,ln.head,de.extend):ze=ln}de.addNew?et==-1?(et=yt.length,Ja(Ae,Lo(ie,yt.concat([ze]),et),{scroll:!1,origin:"*mouse"})):yt.length>1&&yt[et].empty()&&de.unit=="char"&&!de.extend?(Ja(Ae,Lo(ie,yt.slice(0,et).concat(yt.slice(et+1)),0),{scroll:!1,origin:"*mouse"}),qe=Ae.sel):Va(Ae,et,ze,rn):(et=0,Ja(Ae,new lo([ze],0),rn),qe=Ae.sel);var At=ce;function Wn(Gr){if(vn(At,Gr)!=0)if(At=Gr,de.unit=="rectangle"){for(var xo=[],Qo=ie.options.tabSize,Hr=St(fn(Ae,ce.line).text,ce.ch,Qo),pa=St(fn(Ae,Gr.line).text,Gr.ch,Qo),Zs=Math.min(Hr,pa),Fl=Math.max(Hr,pa),el=Math.min(ce.line,Gr.line),Ou=Math.min(ie.lastLine(),Math.max(ce.line,Gr.line));el<=Ou;el++){var gu=fn(Ae,el).text,Pl=Kn(gu,Zs,Qo);Zs==Fl?xo.push(new rr(dn(el,Pl),dn(el,Pl))):gu.length>Pl&&xo.push(new rr(dn(el,Pl),dn(el,Kn(gu,Fl,Qo))))}xo.length||xo.push(new rr(ce,ce)),Ja(Ae,Lo(ie,qe.ranges.slice(0,et).concat(xo),et),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Gr)}else{var Uu=ze,tu=Vf(ie,Gr,de.unit),Cl=Uu.anchor,_a;vn(tu.anchor,Cl)>0?(_a=tu.head,Cl=an(Uu.from(),tu.anchor)):(_a=tu.anchor,Cl=yn(Uu.to(),tu.head));var il=qe.ranges.slice(0);il[et]=$a(ie,new rr(bn(Ae,Cl),_a)),Ja(Ae,Lo(ie,il,et),rn)}}var Bn=pe.wrapper.getBoundingClientRect(),Ni=0;function Bi(Gr){var xo=++Ni,Qo=nl(ie,Gr,!0,de.unit=="rectangle");if(Qo)if(vn(Qo,At)!=0){ie.curOp.focus=pt(),Wn(Qo);var Hr=zn(pe,Ae);(Qo.line>=Hr.to||Qo.line<Hr.from)&&setTimeout(Ln(ie,function(){Ni==xo&&Bi(Gr)}),150)}else{var pa=Gr.clientY<Bn.top?-20:Gr.clientY>Bn.bottom?20:0;pa&&setTimeout(Ln(ie,function(){Ni==xo&&(pe.scroller.scrollTop+=pa,Bi(Gr))}),50)}}function Ji(Gr){ie.state.selectingText=!1,Ni=1/0,Gr&&(pi(Gr),pe.input.focus()),Tn(pe.wrapper.ownerDocument,"mousemove",Cr),Tn(pe.wrapper.ownerDocument,"mouseup",io),Ae.history.lastSelOrigin=null}var Cr=Ln(ie,function(Gr){Gr.buttons===0||!cr(Gr)?Ji(Gr):Bi(Gr)}),io=Ln(ie,Ji);ie.state.selectingText=io,Jt(pe.wrapper.ownerDocument,"mousemove",Cr),Jt(pe.wrapper.ownerDocument,"mouseup",io)}function $a(ie,ae){var ce=ae.anchor,de=ae.head,pe=fn(ie.doc,ce.line);if(vn(ce,de)==0&&ce.sticky==de.sticky)return ae;var Ae=Pn(pe);if(!Ae)return ae;var ze=ct(Ae,ce.ch,ce.sticky),et=Ae[ze];if(et.from!=ce.ch&&et.to!=ce.ch)return ae;var qe=ze+(et.from==ce.ch==(et.level!=1)?0:1);if(qe==0||qe==Ae.length)return ae;var yt;if(de.line!=ce.line)yt=(de.line-ce.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var ln=ct(Ae,de.ch,de.sticky),At=ln-ze||(de.ch-ce.ch)*(et.level==1?-1:1);ln==qe-1||ln==qe?yt=At<0:yt=At>0}var Wn=Ae[qe+(yt?-1:0)],Bn=yt==(Wn.level==1),Ni=Bn?Wn.from:Wn.to,Bi=Bn?"after":"before";return ce.ch==Ni&&ce.sticky==Bi?ae:new rr(new dn(ce.line,Ni,Bi),de)}function Mo(ie,ae,ce,de){var pe,Ae;if(ae.touches)pe=ae.touches[0].clientX,Ae=ae.touches[0].clientY;else try{pe=ae.clientX,Ae=ae.clientY}catch(Wn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&pi(ae);var ze=ie.display,et=ze.lineDiv.getBoundingClientRect();if(Ae>et.bottom||!Dn(ie,ce))return wi(ae);Ae-=et.top-ze.viewOffset;for(var qe=0;qe<ie.display.gutterSpecs.length;++qe){var yt=ze.gutters.childNodes[qe];if(yt&&yt.getBoundingClientRect().right>=pe){var ln=Fn(ie.doc,Ae),At=ie.display.gutterSpecs[qe];return bt(ie,ce,ie,ln,At.className,ae),wi(ae)}}}function Jo(ie,ae){return Mo(ie,ae,"gutterClick",!0)}function Ya(ie,ae){Ml(ie.display,ae)||Qs(ie,ae)||_t(ie,ae,"contextmenu")||ke||ie.display.input.onContextMenu(ae)}function Qs(ie,ae){return Dn(ie,"gutterContextMenu")?Mo(ie,ae,"gutterContextMenu",!1):!1}function ad(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Cs(ie)}var zl={toString:function(){return"CodeMirror.Init"}},Wh={},lh={};function cc(ie){var ae=ie.optionHandlers;function ce(de,pe,Ae,ze){ie.defaults[de]=pe,Ae&&(ae[de]=ze?function(et,qe,yt){yt!=zl&&Ae(et,qe,yt)}:Ae)}ie.defineOption=ce,ie.Init=zl,ce("value","",function(de,pe){return de.setValue(pe)},!0),ce("mode",null,function(de,pe){de.doc.modeOption=pe,$r(de)},!0),ce("indentUnit",2,$r,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(de){po(de),Cs(de),ss(de)},!0),ce("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Ae=[],ze=de.doc.first;de.doc.iter(function(qe){for(var yt=0;;){var ln=qe.text.indexOf(pe,yt);if(ln==-1)break;yt=ln+pe.length,Ae.push(dn(ze,ln))}ze++});for(var et=Ae.length-1;et>=0;et--)Ku(de.doc,pe,Ae[et],dn(Ae[et].line,Ae[et].ch+pe.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Ae){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Ae!=zl&&de.refresh()}),ce("specialCharPlaceholder",xs,function(de){return de.refresh()},!0),ce("electricChars",!0),ce("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),ce("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),ce("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(de){ad(de),sr(de)},!0),ce("keyMap","default",function(de,pe,Ae){var ze=Ch(pe),et=Ae!=zl&&Ch(Ae);et&&et.detach&&et.detach(de,ze),ze.attach&&ze.attach(de,et||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,uh,!0),ce("gutters",[],function(de,pe){de.display.gutterSpecs=Ar(pe,de.options.lineNumbers),sr(de)},!0),ce("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?Bd(de.display)+"px":"0",de.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(de){return sa(de)},!0),ce("scrollbarStyle","native",function(de){ns(de),sa(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=Ar(de.options.gutters,pe),sr(de)},!0),ce("firstLineNumber",1,sr,!0),ce("lineNumberFormatter",function(de){return de},sr,!0),ce("showCursorWhenSelecting",!1,zt,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(de,pe){pe=="nocursor"&&(Li(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),ce("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),ce("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),ce("dragDrop",!0,Zh),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,zt,!0),ce("singleCursorHeightPerLine",!0,zt,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,po,!0),ce("addModeClass",!1,po,!0),ce("pollInterval",100),ce("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(de){return de.refresh()},!0),ce("maxHighlightLength",1e4,po,!0),ce("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),ce("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),ce("autofocus",null),ce("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),ce("phrases",null)}function Zh(ie,ae,ce){var de=ce&&ce!=zl;if(!ae!=!de){var pe=ie.display.dragFunctions,Ae=ae?Jt:Tn;Ae(ie.display.scroller,"dragstart",pe.start),Ae(ie.display.scroller,"dragenter",pe.enter),Ae(ie.display.scroller,"dragover",pe.over),Ae(ie.display.scroller,"dragleave",pe.leave),Ae(ie.display.scroller,"drop",pe.drop)}}function uh(ie){ie.options.lineWrapping?(Ut(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Oe(ie.display.wrapper,"CodeMirror-wrap"),Sa(ie)),vo(ie),ss(ie),Cs(ie),setTimeout(function(){return sa(ie)},100)}function qa(ie,ae){var ce=this;if(!(this instanceof qa))return new qa(ie,ae);this.options=ae=ae?Nn(ae):{},Nn(Wh,ae,!1);var de=ae.value;typeof de=="string"?de=new fl(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var pe=new qa.inputStyles[ae.inputStyle](this),Ae=this.display=new Rr(ie,de,pe,ae);Ae.wrapper.CodeMirror=this,ad(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ns(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ge,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Ae.input.focus(),Je&&it<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),Sf(this),du(),Pa(this),this.curOp.forceUpdate=!0,yo(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&li(ce)},20):Li(this);for(var ze in lh)lh.hasOwnProperty(ze)&&lh[ze](this,ae[ze],zl);fr(this),ae.finishInit&&ae.finishInit(this);for(var et=0;et<Wc.length;++et)Wc[et](this);As(this),Te&&ae.lineWrapping&&getComputedStyle(Ae.lineDiv).textRendering=="optimizelegibility"&&(Ae.lineDiv.style.textRendering="auto")}qa.defaults=Wh,qa.optionHandlers=lh;function Sf(ie){var ae=ie.display;Jt(ae.scroller,"mousedown",Ln(ie,bh)),Je&&it<11?Jt(ae.scroller,"dblclick",Ln(ie,function(qe){if(!_t(ie,qe)){var yt=nl(ie,qe);if(!(!yt||Jo(ie,qe)||Ml(ie.display,qe))){pi(qe);var ln=ie.findWordAt(yt);ka(ie.doc,ln.anchor,ln.head)}}})):Jt(ae.scroller,"dblclick",function(qe){return _t(ie,qe)||pi(qe)}),Jt(ae.scroller,"contextmenu",function(qe){return Ya(ie,qe)}),Jt(ae.input.getField(),"contextmenu",function(qe){ae.scroller.contains(qe.target)||Ya(ie,qe)});var ce,de={end:0};function pe(){ae.activeTouch&&(ce=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Ae(qe){if(qe.touches.length!=1)return!1;var yt=qe.touches[0];return yt.radiusX<=1&&yt.radiusY<=1}function ze(qe,yt){if(yt.left==null)return!0;var ln=yt.left-qe.left,At=yt.top-qe.top;return ln*ln+At*At>20*20}Jt(ae.scroller,"touchstart",function(qe){if(!_t(ie,qe)&&!Ae(qe)&&!Jo(ie,qe)){ae.input.ensurePolled(),clearTimeout(ce);var yt=+new Date;ae.activeTouch={start:yt,moved:!1,prev:yt-de.end<=300?de:null},qe.touches.length==1&&(ae.activeTouch.left=qe.touches[0].pageX,ae.activeTouch.top=qe.touches[0].pageY)}}),Jt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Jt(ae.scroller,"touchend",function(qe){var yt=ae.activeTouch;if(yt&&!Ml(ae,qe)&&yt.left!=null&&!yt.moved&&new Date-yt.start<300){var ln=ie.coordsChar(ae.activeTouch,"page"),At;!yt.prev||ze(yt,yt.prev)?At=new rr(ln,ln):!yt.prev.prev||ze(yt,yt.prev.prev)?At=ie.findWordAt(ln):At=new rr(dn(ln.line,0),bn(ie.doc,dn(ln.line+1,0))),ie.setSelection(At.anchor,At.head),ie.focus(),pi(qe)}pe()}),Jt(ae.scroller,"touchcancel",pe),Jt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ia(ie,ae.scroller.scrollTop),Aa(ie,ae.scroller.scrollLeft,!0),bt(ie,"scroll",ie))}),Jt(ae.scroller,"mousewheel",function(qe){return ao(ie,qe)}),Jt(ae.scroller,"DOMMouseScroll",function(qe){return ao(ie,qe)}),Jt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(qe){_t(ie,qe)||Vi(qe)},over:function(qe){_t(ie,qe)||(Rd(ie,qe),Vi(qe))},start:function(qe){return Id(ie,qe)},drop:Ln(ie,Od),leave:function(qe){_t(ie,qe)||ff(ie)}};var et=ae.input.getField();Jt(et,"keyup",function(qe){return vf.call(ie,qe)}),Jt(et,"keydown",Ln(ie,mf)),Jt(et,"keypress",Ln(ie,sh)),Jt(et,"focus",function(qe){return li(ie,qe)}),Jt(et,"blur",function(qe){return Li(ie,qe)})}var Wc=[];qa.defineInitHook=function(ie){return Wc.push(ie)};function kl(ie,ae,ce,de){var pe=ie.doc,Ae;ce==null&&(ce="add"),ce=="smart"&&(pe.mode.indent?Ae=Dr(ie,ae).state:ce="prev");var ze=ie.options.tabSize,et=fn(pe,ae),qe=St(et.text,null,ze);et.stateAfter&&(et.stateAfter=null);var yt=et.text.match(/^\s*/)[0],ln;if(!de&&!/\S/.test(et.text))ln=0,ce="not";else if(ce=="smart"&&(ln=pe.mode.indent(Ae,et.text.slice(yt.length),et.text),ln==_n||ln>150)){if(!de)return;ce="prev"}ce=="prev"?ae>pe.first?ln=St(fn(pe,ae-1).text,null,ze):ln=0:ce=="add"?ln=qe+ie.options.indentUnit:ce=="subtract"?ln=qe-ie.options.indentUnit:typeof ce=="number"&&(ln=qe+ce),ln=Math.max(0,ln);var At="",Wn=0;if(ie.options.indentWithTabs)for(var Bn=Math.floor(ln/ze);Bn;--Bn)Wn+=ze,At+=" ";if(Wn<ln&&(At+=Rn(ln-Wn)),At!=yt)return Ku(pe,At,dn(ae,0),dn(ae,yt.length),"+input"),et.stateAfter=null,!0;for(var Ni=0;Ni<pe.sel.ranges.length;Ni++){var Bi=pe.sel.ranges[Ni];if(Bi.head.line==ae&&Bi.head.ch<yt.length){var Ji=dn(ae,yt.length);Va(pe,Ni,new rr(Ji,Ji));break}}}var Bu=null;function Zc(ie){Bu=ie}function Yf(ie,ae,ce,de,pe){var Ae=ie.doc;ie.display.shift=!1,de||(de=Ae.sel);var ze=+new Date-200,et=pe=="paste"||ie.state.pasteIncoming>ze,qe=kr(ae),yt=null;if(et&&de.ranges.length>1)if(Bu&&Bu.text.join(`
|
|
|
`)==ae){if(de.ranges.length%Bu.text.length==0){yt=[];for(var ln=0;ln<Bu.text.length;ln++)yt.push(Ae.splitLines(Bu.text[ln]))}}else qe.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(yt=Yn(qe,function(Cr){return[Cr]}));for(var At=ie.curOp.updateInput,Wn=de.ranges.length-1;Wn>=0;Wn--){var Bn=de.ranges[Wn],Ni=Bn.from(),Bi=Bn.to();Bn.empty()&&(ce&&ce>0?Ni=dn(Ni.line,Ni.ch-ce):ie.state.overwrite&&!et?Bi=dn(Bi.line,Math.min(fn(Ae,Bi.line).text.length,Bi.ch+vt(qe).length)):et&&Bu&&Bu.lineWise&&Bu.text.join(`
|
|
|
`)==qe.join(`
|
|
|
`)&&(Ni=Bi=dn(Ni.line,0)));var Ji={from:Ni,to:Bi,text:yt?yt[Wn%yt.length]:qe,origin:pe||(et?"paste":ie.state.cutIncoming>ze?"cut":"+input")};ls(ie.doc,Ji),zi(ie,"inputRead",ie,Ji)}ae&&!et&&up(ie,ae),Yr(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=At),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function lp(ie,ae){var ce=ie.clipboardData&&ie.clipboardData.getData("Text");if(ce)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Gt(ae,function(){return Yf(ae,ce,0,null,"paste")}),!0}function up(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ce=ie.doc.sel,de=ce.ranges.length-1;de>=0;de--){var pe=ce.ranges[de];if(!(pe.head.ch>100||de&&ce.ranges[de-1].head.line==pe.head.line)){var Ae=ie.getModeAt(pe.head),ze=!1;if(Ae.electricChars){for(var et=0;et<Ae.electricChars.length;et++)if(ae.indexOf(Ae.electricChars.charAt(et))>-1){ze=kl(ie,pe.head.line,"smart");break}}else Ae.electricInput&&Ae.electricInput.test(fn(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(ze=kl(ie,pe.head.line,"smart"));ze&&zi(ie,"electricInput",ie,pe.head.line)}}}function hp(ie){for(var ae=[],ce=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Ae={anchor:dn(pe,0),head:dn(pe+1,0)};ce.push(Ae),ae.push(ie.getRange(Ae.anchor,Ae.head))}return{text:ae,ranges:ce}}function dp(ie,ae,ce,de){ie.setAttribute("autocorrect",ce?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!ae)}function cp(){var ie=Ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Ve("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Te?ie.style.width="1000px":ie.setAttribute("wrap","off"),Fe&&(ie.style.border="1px solid black"),dp(ie),ae}function fc(ie){var ae=ie.optionHandlers,ce=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Ae=this.options,ze=Ae[de];Ae[de]==pe&&de!="mode"||(Ae[de]=pe,ae.hasOwnProperty(de)&&Ln(this,ae[de])(this,pe,ze),bt(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](Ch(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Ae=0;Ae<pe.length;++Ae)if(pe[Ae]==de||pe[Ae].name==de)return pe.splice(Ae,1),!0},addOverlay:Cn(function(de,pe){var Ae=de.token?de:ie.getMode(this.options,de);if(Ae.startState)throw new Error("Overlays may not be stateful.");ni(this.state.overlays,{mode:Ae,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(ze){return ze.priority}),this.state.modeGen++,ss(this)}),removeOverlay:Cn(function(de){for(var pe=this.state.overlays,Ae=0;Ae<pe.length;++Ae){var ze=pe[Ae].modeSpec;if(ze==de||typeof de=="string"&&ze.name==de){pe.splice(Ae,1),this.state.modeGen++,ss(this);return}}}),indentLine:Cn(function(de,pe,Ae){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),ui(this.doc,de)&&kl(this,de,pe,Ae)}),indentSelection:Cn(function(de){for(var pe=this.doc.sel.ranges,Ae=-1,ze=0;ze<pe.length;ze++){var et=pe[ze];if(et.empty())et.head.line>Ae&&(kl(this,et.head.line,de,!0),Ae=et.head.line,ze==this.doc.sel.primIndex&&Yr(this));else{var qe=et.from(),yt=et.to(),ln=Math.max(Ae,qe.line);Ae=Math.min(this.lastLine(),yt.line-(yt.ch?0:1))+1;for(var At=ln;At<Ae;++At)kl(this,At,de);var Wn=this.doc.sel.ranges;qe.ch==0&&pe.length==Wn.length&&Wn[ze].from().ch>0&&Va(this.doc,ze,new rr(qe,Wn[ze].to()),Bt)}}}),getTokenAt:function(de,pe){return Di(this,de,pe)},getLineTokens:function(de,pe){return Di(this,dn(de),pe,!0)},getTokenTypeAt:function(de){de=bn(this.doc,de);var pe=yr(this,fn(this.doc,de.line)),Ae=0,ze=(pe.length-1)/2,et=de.ch,qe;if(et==0)qe=pe[2];else for(;;){var yt=Ae+ze>>1;if((yt?pe[yt*2-1]:0)>=et)ze=yt;else if(pe[yt*2+1]<et)Ae=yt+1;else{qe=pe[yt*2+2];break}}var ln=qe?qe.indexOf("overlay "):-1;return ln<0?qe:ln==0?null:qe.slice(0,ln-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Ae=[];if(!ce.hasOwnProperty(pe))return Ae;var ze=ce[pe],et=this.getModeAt(de);if(typeof et[pe]=="string")ze[et[pe]]&&Ae.push(ze[et[pe]]);else if(et[pe])for(var qe=0;qe<et[pe].length;qe++){var yt=ze[et[pe][qe]];yt&&Ae.push(yt)}else et.helperType&&ze[et.helperType]?Ae.push(ze[et.helperType]):ze[et.name]&&Ae.push(ze[et.name]);for(var ln=0;ln<ze._global.length;ln++){var At=ze._global[ln];At.pred(et,this)&&en(Ae,At.val)==-1&&Ae.push(At.val)}return Ae},getStateAfter:function(de,pe){var Ae=this.doc;return de=Mn(Ae,de==null?Ae.first+Ae.size-1:de),Dr(this,de+1,pe).state},cursorCoords:function(de,pe){var Ae,ze=this.doc.sel.primary();return de==null?Ae=ze.head:typeof de=="object"?Ae=bn(this.doc,de):Ae=de?ze.from():ze.to(),ps(this,Ae,pe||"page")},charCoords:function(de,pe){return $l(this,bn(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=nh(this,de,pe||"page"),td(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=nh(this,{top:de,left:0},pe||"page").top,Fn(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Ae){var ze=!1,et;if(typeof de=="number"){var qe=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>qe&&(de=qe,ze=!0),et=fn(this.doc,de)}else et=de;return bs(this,et,{top:0,left:0},pe||"page",Ae||ze).top+(ze?this.doc.height-Io(et):0)},defaultTextHeight:function(){return rh(this.display)},defaultCharWidth:function(){return xh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Ae,ze,et){var qe=this.display;de=ps(this,bn(this.doc,de));var yt=de.bottom,ln=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),qe.sizer.appendChild(pe),ze=="over")yt=de.top;else if(ze=="above"||ze=="near"){var At=Math.max(qe.wrapper.clientHeight,this.doc.height),Wn=Math.max(qe.sizer.clientWidth,qe.lineSpace.clientWidth);(ze=="above"||de.bottom+pe.offsetHeight>At)&&de.top>pe.offsetHeight?yt=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=At&&(yt=de.bottom),ln+pe.offsetWidth>Wn&&(ln=Wn-pe.offsetWidth)}pe.style.top=yt+"px",pe.style.left=pe.style.right="",et=="right"?(ln=qe.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(et=="left"?ln=0:et=="middle"&&(ln=(qe.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=ln+"px"),Ae&&Wr(this,{left:ln,top:yt,right:ln+pe.offsetWidth,bottom:yt+pe.offsetHeight})},triggerOnKeyDown:Cn(mf),triggerOnKeyPress:Cn(sh),triggerOnKeyUp:vf,triggerOnMouseDown:Cn(bh),execCommand:function(de){if(gl.hasOwnProperty(de))return gl[de].call(null,this)},triggerElectric:Cn(function(de){up(this,de)}),findPosH:function(de,pe,Ae,ze){var et=1;pe<0&&(et=-1,pe=-pe);for(var qe=bn(this.doc,de),yt=0;yt<pe&&(qe=Uf(this.doc,qe,et,Ae,ze),!qe.hitSide);++yt);return qe},moveH:Cn(function(de,pe){var Ae=this;this.extendSelectionsBy(function(ze){return Ae.display.shift||Ae.doc.extend||ze.empty()?Uf(Ae.doc,ze.head,de,pe,Ae.options.rtlMoveVisually):de<0?ze.from():ze.to()},cn)}),deleteH:Cn(function(de,pe){var Ae=this.doc.sel,ze=this.doc;Ae.somethingSelected()?ze.replaceSelection("",null,"+delete"):xl(this,function(et){var qe=Uf(ze,et.head,de,pe,!1);return de<0?{from:qe,to:et.head}:{from:et.head,to:qe}})}),findPosV:function(de,pe,Ae,ze){var et=1,qe=ze;pe<0&&(et=-1,pe=-pe);for(var yt=bn(this.doc,de),ln=0;ln<pe;++ln){var At=ps(this,yt,"div");if(qe==null?qe=At.left:At.left=qe,yt=gc(this,At,et,Ae),yt.hitSide)break}return yt},moveV:Cn(function(de,pe){var Ae=this,ze=this.doc,et=[],qe=!this.display.shift&&!ze.extend&&ze.sel.somethingSelected();if(ze.extendSelectionsBy(function(ln){if(qe)return de<0?ln.from():ln.to();var At=ps(Ae,ln.head,"div");ln.goalColumn!=null&&(At.left=ln.goalColumn),et.push(At.left);var Wn=gc(Ae,At,de,pe);return pe=="page"&&ln==ze.sel.primary()&&Vr(Ae,$l(Ae,Wn,"div").top-At.top),Wn},cn),et.length)for(var yt=0;yt<ze.sel.ranges.length;yt++)ze.sel.ranges[yt].goalColumn=et[yt]}),findWordAt:function(de){var pe=this.doc,Ae=fn(pe,de.line).text,ze=de.ch,et=de.ch;if(Ae){var qe=this.getHelper(de,"wordChars");(de.sticky=="before"||et==Ae.length)&&ze?--ze:++et;for(var yt=Ae.charAt(ze),ln=Be(yt,qe)?function(At){return Be(At,qe)}:/\s/.test(yt)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Be(At)};ze>0&&ln(Ae.charAt(ze-1));)--ze;for(;et<Ae.length&&ln(Ae.charAt(et));)++et}return new rr(dn(de.line,ze),dn(de.line,et))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ut(this.display.cursorDiv,"CodeMirror-overwrite"):Oe(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cn(function(de,pe){Zr(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-vl(this)-this.display.barHeight,width:de.scrollWidth-vl(this)-this.display.barWidth,clientHeight:Bh(this),clientWidth:Al(this)}},scrollIntoView:Cn(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:dn(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?Ri(this,de):jo(this,de.from,de.to,de.margin)}),setSize:Cn(function(de,pe){var Ae=this,ze=function(qe){return typeof qe=="number"||/^\d+$/.test(String(qe))?qe+"px":qe};de!=null&&(this.display.wrapper.style.width=ze(de)),pe!=null&&(this.display.wrapper.style.height=ze(pe)),this.options.lineWrapping&&Ps(this);var et=this.display.viewFrom;this.doc.iter(et,this.display.viewTo,function(qe){if(qe.widgets){for(var yt=0;yt<qe.widgets.length;yt++)if(qe.widgets[yt].noHScroll){na(Ae,et,"widget");break}}++et}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(de){return Gt(this,de)},startOperation:function(){return Pa(this)},endOperation:function(){return As(this)},refresh:Cn(function(){var de=this.display.cachedTextHeight;ss(this),this.curOp.forceUpdate=!0,Cs(this),Zr(this,this.doc.scrollLeft,this.doc.scrollTop),ar(this.display),(de==null||Math.abs(de-rh(this.display))>.5||this.options.lineWrapping)&&vo(this),bt(this,"refresh",this)}),swapDoc:Cn(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,de),Cs(this),this.display.input.reset(),Zr(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,zi(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},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}},ii(ie),ie.registerHelper=function(de,pe,Ae){ce.hasOwnProperty(de)||(ce[de]=ie[de]={_global:[]}),ce[de][pe]=Ae},ie.registerGlobalHelper=function(de,pe,Ae,ze){ie.registerHelper(de,pe,ze),ce[de]._global.push({pred:Ae,val:ze})}}function Uf(ie,ae,ce,de,pe){var Ae=ae,ze=ce,et=fn(ie,ae.line),qe=pe&&ie.direction=="rtl"?-ce:ce;function yt(){var io=ae.line+qe;return io<ie.first||io>=ie.first+ie.size?!1:(ae=new dn(io,ae.ch,ae.sticky),et=fn(ie,io))}function ln(io){var Gr;if(de=="codepoint"){var xo=et.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(xo)?Gr=null:Gr=new dn(ae.line,Math.max(0,Math.min(et.text.length,ae.ch+ce*(xo>=55296&&xo<56320?2:1))),-ce)}else pe?Gr=cs(ie.cm,et,ae,ce):Gr=Js(et,ae,ce);if(Gr==null)if(!io&&yt())ae=Da(pe,ie.cm,et,ae.line,qe);else return!1;else ae=Gr;return!0}if(de=="char"||de=="codepoint")ln();else if(de=="column")ln(!0);else if(de=="word"||de=="group")for(var At=null,Wn=de=="group",Bn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ni=!0;!(ce<0&&!ln(!Ni));Ni=!1){var Bi=et.text.charAt(ae.ch)||`
|
|
|
`,Ji=Be(Bi,Bn)?"w":Wn&&Bi==`
|
|
|
`?"n":!Wn||/\s/.test(Bi)?null:"p";if(Wn&&!Ni&&!Ji&&(Ji="s"),At&&At!=Ji){ce<0&&(ce=1,ln(),ae.sticky="after");break}if(Ji&&(At=Ji),ce>0&&!ln(!Ni))break}var Cr=Cu(ie,ae,Ae,ze,!0);return Rt(Ae,Cr)&&(Cr.hitSide=!0),Cr}function gc(ie,ae,ce,de){var pe=ie.doc,Ae=ae.left,ze;if(de=="page"){var et=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),qe=Math.max(et-.5*rh(ie.display),3);ze=(ce>0?ae.bottom:ae.top)+ce*qe}else de=="line"&&(ze=ce>0?ae.bottom+3:ae.top-3);for(var yt;yt=td(ie,Ae,ze),!!yt.outside;){if(ce<0?ze<=0:ze>=pe.height){yt.hitSide=!0;break}ze+=ce*5}return yt}var Fs=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fs.prototype.init=function(ie){var ae=this,ce=this,de=ce.cm,pe=ce.div=ie.lineDiv;dp(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Ae(et){for(var qe=et.target;qe;qe=qe.parentNode){if(qe==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(qe.className))break}return!1}Jt(pe,"paste",function(et){!Ae(et)||_t(de,et)||lp(et,de)||it<=11&&setTimeout(Ln(de,function(){return ae.updateFromDOM()}),20)}),Jt(pe,"compositionstart",function(et){ae.composing={data:et.data,done:!1}}),Jt(pe,"compositionupdate",function(et){ae.composing||(ae.composing={data:et.data,done:!1})}),Jt(pe,"compositionend",function(et){ae.composing&&(et.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Jt(pe,"touchstart",function(){return ce.forceCompositionEnd()}),Jt(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function ze(et){if(!(!Ae(et)||_t(de,et))){if(de.somethingSelected())Zc({lineWise:!1,text:de.getSelections()}),et.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var qe=hp(de);Zc({lineWise:!0,text:qe.text}),et.type=="cut"&&de.operation(function(){de.setSelections(qe.ranges,0,Bt),de.replaceSelection("",null,"cut")})}else return;if(et.clipboardData){et.clipboardData.clearData();var yt=Bu.text.join(`
|
|
|
`);if(et.clipboardData.setData("Text",yt),et.clipboardData.getData("Text")==yt){et.preventDefault();return}}var ln=cp(),At=ln.firstChild;de.display.lineSpace.insertBefore(ln,de.display.lineSpace.firstChild),At.value=Bu.text.join(`
|
|
|
`);var Wn=document.activeElement;jt(At),setTimeout(function(){de.display.lineSpace.removeChild(ln),Wn.focus(),Wn==pe&&ce.showPrimarySelection()},50)}}Jt(pe,"copy",ze),Jt(pe,"cut",ze)},Fs.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Fs.prototype.prepareSelection=function(){var ie=Zt(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Fs.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Fs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fs.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ce=ae.doc.sel.primary(),de=ce.from(),pe=ce.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Ae=Xf(ae,ie.anchorNode,ie.anchorOffset),ze=Xf(ae,ie.focusNode,ie.focusOffset);if(!(Ae&&!Ae.bad&&ze&&!ze.bad&&vn(an(Ae,ze),de)==0&&vn(yn(Ae,ze),pe)==0)){var et=ae.display.view,qe=de.line>=ae.display.viewFrom&&xg(ae,de)||{node:et[0].measure.map[2],offset:0},yt=pe.line<ae.display.viewTo&&xg(ae,pe);if(!yt){var ln=et[et.length-1].measure,At=ln.maps?ln.maps[ln.maps.length-1]:ln.map;yt={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!qe||!yt){ie.removeAllRanges();return}var Wn=ie.rangeCount&&ie.getRangeAt(0),Bn;try{Bn=Ke(qe.node,qe.offset,yt.offset,yt.node)}catch(Ni){}Bn&&(!be&&ae.state.focused?(ie.collapse(qe.node,qe.offset),Bn.collapsed||(ie.removeAllRanges(),ie.addRange(Bn))):(ie.removeAllRanges(),ie.addRange(Bn)),Wn&&ie.anchorNode==null?ie.addRange(Wn):be&&this.startGracePeriod()),this.rememberSelection()}},Fs.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Fs.prototype.showMultipleSelections=function(ie){We(this.cm.display.cursorDiv,ie.cursors),We(this.cm.display.selectionDiv,ie.selection)},Fs.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Fs.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Wt(this.div,ae)},Fs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fs.prototype.blur=function(){this.div.blur()},Fs.prototype.getField=function(){return this.div},Fs.prototype.supportsTouch=function(){return!0},Fs.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Gt(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Fs.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Fs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Pt&&this.cm.display.gutterSpecs.length&&fp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ce=Xf(ae,ie.anchorNode,ie.anchorOffset),de=Xf(ae,ie.focusNode,ie.focusOffset);ce&&de&&Gt(ae,function(){Ja(ae.doc,Ro(ce,de),Bt),(ce.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},Fs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ce=ie.doc.sel.primary(),de=ce.from(),pe=ce.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=dn(de.line-1,fn(ie.doc,de.line-1).length)),pe.ch==fn(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=dn(pe.line+1,0)),de.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Ae,ze,et;de.line==ae.viewFrom||(Ae=yl(ie,de.line))==0?(ze=dt(ae.view[0].line),et=ae.view[0].node):(ze=dt(ae.view[Ae].line),et=ae.view[Ae-1].node.nextSibling);var qe=yl(ie,pe.line),yt,ln;if(qe==ae.view.length-1?(yt=ae.viewTo-1,ln=ae.lineDiv.lastChild):(yt=dt(ae.view[qe+1].line)-1,ln=ae.view[qe+1].node.previousSibling),!et)return!1;for(var At=ie.doc.splitLines(wf(ie,et,ln,ze,yt)),Wn=Vn(ie.doc,dn(ze,0),dn(yt,fn(ie.doc,yt).text.length));At.length>1&&Wn.length>1;)if(vt(At)==vt(Wn))At.pop(),Wn.pop(),yt--;else if(At[0]==Wn[0])At.shift(),Wn.shift(),ze++;else break;for(var Bn=0,Ni=0,Bi=At[0],Ji=Wn[0],Cr=Math.min(Bi.length,Ji.length);Bn<Cr&&Bi.charCodeAt(Bn)==Ji.charCodeAt(Bn);)++Bn;for(var io=vt(At),Gr=vt(Wn),xo=Math.min(io.length-(At.length==1?Bn:0),Gr.length-(Wn.length==1?Bn:0));Ni<xo&&io.charCodeAt(io.length-Ni-1)==Gr.charCodeAt(Gr.length-Ni-1);)++Ni;if(At.length==1&&Wn.length==1&&ze==de.line)for(;Bn&&Bn>de.ch&&io.charCodeAt(io.length-Ni-1)==Gr.charCodeAt(Gr.length-Ni-1);)Bn--,Ni++;At[At.length-1]=io.slice(0,io.length-Ni).replace(/^\u200b+/,""),At[0]=At[0].slice(Bn).replace(/\u200b+$/,"");var Qo=dn(ze,Bn),Hr=dn(yt,Wn.length?vt(Wn).length-Ni:0);if(At.length>1||At[0]||vn(Qo,Hr))return Ku(ie.doc,At,Qo,Hr,"+input"),!0},Fs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fs.prototype.reset=function(){this.forceCompositionEnd()},Fs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fs.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Fs.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Gt(this.cm,function(){return ss(ie.cm)})},Fs.prototype.setUneditable=function(ie){ie.contentEditable="false"},Fs.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Ln(this.cm,Yf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Fs.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Fs.prototype.onContextMenu=function(){},Fs.prototype.resetPosition=function(){},Fs.prototype.needsContentAttribute=!0;function xg(ie,ae){var ce=Zu(ie,ae.line);if(!ce||ce.hidden)return null;var de=fn(ie.doc,ae.line),pe=Oh(ce,de,ae.line),Ae=Pn(de,ie.doc.direction),ze="left";if(Ae){var et=ct(Ae,ae.ch);ze=et%2?"right":"left"}var qe=ed(pe.map,ae.ch,ze);return qe.offset=qe.collapse=="right"?qe.end:qe.start,qe}function fp(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function xf(ie,ae){return ae&&(ie.bad=!0),ie}function wf(ie,ae,ce,de,pe){var Ae="",ze=!1,et=ie.doc.lineSeparator(),qe=!1;function yt(Bn){return function(Ni){return Ni.id==Bn}}function ln(){ze&&(Ae+=et,qe&&(Ae+=et),ze=qe=!1)}function At(Bn){Bn&&(ln(),Ae+=Bn)}function Wn(Bn){if(Bn.nodeType==1){var Ni=Bn.getAttribute("cm-text");if(Ni){At(Ni);return}var Bi=Bn.getAttribute("cm-marker"),Ji;if(Bi){var Cr=ie.findMarks(dn(de,0),dn(pe+1,0),yt(+Bi));Cr.length&&(Ji=Cr[0].find(0))&&At(Vn(ie.doc,Ji.from,Ji.to).join(et));return}if(Bn.getAttribute("contenteditable")=="false")return;var io=/^(pre|div|p|li|table|br)$/i.test(Bn.nodeName);if(!/^br$/i.test(Bn.nodeName)&&Bn.textContent.length==0)return;io&&ln();for(var Gr=0;Gr<Bn.childNodes.length;Gr++)Wn(Bn.childNodes[Gr]);/^(pre|p)$/i.test(Bn.nodeName)&&(qe=!0),io&&(ze=!0)}else Bn.nodeType==3&&At(Bn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Wn(ae),ae!=ce;)ae=ae.nextSibling,qe=!1;return Ae}function Xf(ie,ae,ce){var de;if(ae==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[ce],!de)return xf(ie.clipPos(dn(ie.display.viewTo-1)),!0);ae=null,ce=0}else for(de=ae;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Ae=ie.display.view[pe];if(Ae.node==de)return dm(Ae,ae,ce)}}function dm(ie,ae,ce){var de=ie.text.firstChild,pe=!1;if(!ae||!Wt(de,ae))return xf(dn(dt(ie.line),0),!0);if(ae==de&&(pe=!0,ae=de.childNodes[ce],ce=0,!ae)){var Ae=ie.rest?vt(ie.rest):ie.line;return xf(dn(dt(Ae),Ae.text.length),pe)}var ze=ae.nodeType==3?ae:null,et=ae;for(!ze&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(ze=ae.firstChild,ce&&(ce=ze.nodeValue.length));et.parentNode!=de;)et=et.parentNode;var qe=ie.measure,yt=qe.maps;function ln(Ji,Cr,io){for(var Gr=-1;Gr<(yt?yt.length:0);Gr++)for(var xo=Gr<0?qe.map:yt[Gr],Qo=0;Qo<xo.length;Qo+=3){var Hr=xo[Qo+2];if(Hr==Ji||Hr==Cr){var pa=dt(Gr<0?ie.line:ie.rest[Gr]),Zs=xo[Qo]+io;return(io<0||Hr!=Ji)&&(Zs=xo[Qo+(io?1:0)]),dn(pa,Zs)}}}var At=ln(ze,et,ce);if(At)return xf(At,pe);for(var Wn=et.nextSibling,Bn=ze?ze.nodeValue.length-ce:0;Wn;Wn=Wn.nextSibling){if(At=ln(Wn,Wn.firstChild,0),At)return xf(dn(At.line,At.ch-Bn),pe);Bn+=Wn.textContent.length}for(var Ni=et.previousSibling,Bi=ce;Ni;Ni=Ni.previousSibling){if(At=ln(Ni,Ni.firstChild,-1),At)return xf(dn(At.line,At.ch+Bi),pe);Bi+=Ni.textContent.length}}var wl=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Ge,this.hasSelection=!1,this.composing=null};wl.prototype.init=function(ie){var ae=this,ce=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Fe&&(pe.style.width="0px"),Jt(pe,"input",function(){Je&&it>=9&&ae.hasSelection&&(ae.hasSelection=null),ce.poll()}),Jt(pe,"paste",function(ze){_t(de,ze)||lp(ze,de)||(de.state.pasteIncoming=+new Date,ce.fastPoll())});function Ae(ze){if(!_t(de,ze)){if(de.somethingSelected())Zc({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var et=hp(de);Zc({lineWise:!0,text:et.text}),ze.type=="cut"?de.setSelections(et.ranges,null,Bt):(ce.prevInput="",pe.value=et.text.join(`
|
|
|
`),jt(pe))}else return;ze.type=="cut"&&(de.state.cutIncoming=+new Date)}}Jt(pe,"cut",Ae),Jt(pe,"copy",Ae),Jt(ie.scroller,"paste",function(ze){if(!(Ml(ie,ze)||_t(de,ze))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,ce.focus();return}var et=new Event("paste");et.clipboardData=ze.clipboardData,pe.dispatchEvent(et)}}),Jt(ie.lineSpace,"selectstart",function(ze){Ml(ie,ze)||pi(ze)}),Jt(pe,"compositionstart",function(){var ze=de.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:ze,range:de.markText(ze,de.getCursor("to"),{className:"CodeMirror-composing"})}}),Jt(pe,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},wl.prototype.createField=function(ie){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},wl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ce=ie.doc,de=Zt(ie);if(ie.options.moveInputWithCursor){var pe=ps(ie,ce.sel.primary().head,"div"),Ae=ae.wrapper.getBoundingClientRect(),ze=ae.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+ze.top-Ae.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+ze.left-Ae.left))}return de},wl.prototype.showSelection=function(ie){var ae=this.cm,ce=ae.display;We(ce.cursorDiv,ie.cursors),We(ce.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},wl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ce=ae.getSelection();this.textarea.value=ce,ae.state.focused&&jt(this.textarea),Je&&it>=9&&(this.hasSelection=ce)}else ie||(this.prevInput=this.textarea.value="",Je&&it>=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"&&(!ne||pt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},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 ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},wl.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ce(){var de=ae.poll();!de&&!ie?(ie=!0,ae.polling.set(60,ce)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ce)},wl.prototype.poll=function(){var ie=this,ae=this.cm,ce=this.textarea,de=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ee(ce)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=ce.value;if(pe==de&&!ae.somethingSelected())return!1;if(Je&&it>=9&&this.hasSelection===pe||he&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ae=pe.charCodeAt(0);if(Ae==8203&&!de&&(de="\u200B"),Ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var ze=0,et=Math.min(de.length,pe.length);ze<et&&de.charCodeAt(ze)==pe.charCodeAt(ze);)++ze;return Gt(ae,function(){Yf(ae,pe.slice(ze),de.length-ze,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
|
|
|
`)>-1?ce.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wl.prototype.onKeyPress=function(){Je&&it>=9&&(this.hasSelection=null),this.fastPoll()},wl.prototype.onContextMenu=function(ie){var ae=this,ce=ae.cm,de=ce.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ae=nl(ce,ie),ze=de.scroller.scrollTop;if(!Ae||rt)return;var et=ce.options.resetSelectionOnContextMenu;et&&ce.doc.sel.contains(Ae)==-1&&Ln(ce,Ja)(ce.doc,Ro(Ae),Bt);var qe=pe.style.cssText,yt=ae.wrapper.style.cssText,ln=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-ln.top-5)+"px; left: "+(ie.clientX-ln.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Je?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;Te&&(At=window.scrollY),de.input.focus(),Te&&window.scrollTo(null,At),de.input.reset(),ce.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=Bn,de.selForContextMenu=ce.doc.sel,clearTimeout(de.detectingSelectAll);function Wn(){if(pe.selectionStart!=null){var Bi=ce.somethingSelected(),Ji="\u200B"+(Bi?pe.value:"");pe.value="\u21DA",pe.value=Ji,ae.prevInput=Bi?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Ji.length,de.selForContextMenu=ce.doc.sel}}function Bn(){if(ae.contextMenuPending==Bn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=yt,pe.style.cssText=qe,Je&&it<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=ze),pe.selectionStart!=null)){(!Je||Je&&it<9)&&Wn();var Bi=0,Ji=function(){de.selForContextMenu==ce.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?Ln(ce,Wa)(ce):Bi++<10?de.detectingSelectAll=setTimeout(Ji,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(Ji,200)}}if(Je&&it>=9&&Wn(),ke){Vi(ie);var Ni=function(){Tn(window,"mouseup",Ni),setTimeout(Bn,20)};Jt(window,"mouseup",Ni)}else setTimeout(Bn,50)},wl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},wl.prototype.setUneditable=function(){},wl.prototype.needsContentAttribute=!1;function cm(ie,ae){if(ae=ae?Nn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ce=pt();ae.autofocus=ce==ie||ie.getAttribute("autofocus")!=null&&ce==document.body}function de(){ie.value=et.getValue()}var pe;if(ie.form&&(Jt(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Ae=ie.form;pe=Ae.submit;try{var ze=Ae.submit=function(){de(),Ae.submit=pe,Ae.submit(),Ae.submit=ze}}catch(qe){}}ae.finishInit=function(qe){qe.save=de,qe.getTextArea=function(){return ie},qe.toTextArea=function(){qe.toTextArea=isNaN,de(),ie.parentNode.removeChild(qe.getWrapperElement()),ie.style.display="",ie.form&&(Tn(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var et=qa(function(qe){return ie.parentNode.insertBefore(qe,ie.nextSibling)},ae);return et}function Pf(ie){ie.off=Tn,ie.on=Jt,ie.wheelEventPixels=jr,ie.Doc=fl,ie.splitLines=kr,ie.countColumn=St,ie.findColumn=Kn,ie.isWordChar=Ne,ie.Pass=_n,ie.signal=bt,ie.Line=Ta,ie.changeEnd=Wo,ie.scrollbarModel=Xa,ie.Pos=dn,ie.cmpPos=vn,ie.modes=xr,ie.mimeModes=qi,ie.resolveMode=zr,ie.getMode=on,ie.modeExtensions=Yt,ie.extendMode=Qe,ie.copyState=un,ie.startState=Mt,ie.innerMode=In,ie.commands=gl,ie.keyMap=Rl,ie.keyName=lc,ie.isModifierKey=yd,ie.lookupKey=eu,ie.normalizeKeyMap=Hd,ie.StringStream=ft,ie.SharedTextMarker=ah,ie.TextMarker=Kt,ie.LineWidget=Ws,ie.e_preventDefault=pi,ie.e_stopPropagation=fi,ie.e_stop=Vi,ie.addClass=Ut,ie.contains=Wt,ie.rmClass=Oe,ie.keyNames=Vu}cc(qa),fc(qa);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in fl.prototype)fl.prototype.hasOwnProperty(Jf)&&en(Kd,Jf)<0&&(qa.prototype[Jf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(fl.prototype[Jf]));return ii(fl),qa.inputStyles={textarea:wl,contenteditable:Fs},qa.defineMode=function(ie){!qa.defaults.mode&&ie!="null"&&(qa.defaults.mode=ie),Qr.apply(this,arguments)},qa.defineMIME=mo,qa.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),qa.defineMIME("text/plain","null"),qa.defineExtension=function(ie,ae){qa.prototype[ie]=ae},qa.defineDocExtension=function(ie,ae){fl.prototype[ie]=ae},qa.fromTextArea=cm,Pf(qa),qa.version="5.58.2",qa})},25419:function(On,xn,ye){(function(be){be(ye(89780),ye(15525),ye(98101))})(function(be){"use strict";be.defineMode("markdown",function(Re,at){var kt=be.getMode(Re,"text/html"),Je=kt.name=="null";function it(St){if(be.findModeByName){var Ge=be.findModeByName(St);Ge&&(St=Ge.mime||Ge.mimes[0])}var en=be.getMode(Re,St);return en.name=="null"?null:en}at.highlightFormatting===void 0&&(at.highlightFormatting=!1),at.maxBlockquoteDepth===void 0&&(at.maxBlockquoteDepth=0),at.taskLists===void 0&&(at.taskLists=!1),at.strikethrough===void 0&&(at.strikethrough=!1),at.emoji===void 0&&(at.emoji=!1),at.fencedCodeBlockHighlighting===void 0&&(at.fencedCodeBlockHighlighting=!0),at.fencedCodeBlockDefaultMode===void 0&&(at.fencedCodeBlockDefaultMode="text/plain"),at.xml===void 0&&(at.xml=!0),at.tokenTypeOverrides===void 0&&(at.tokenTypeOverrides={});var Te={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 Tt in Te)Te.hasOwnProperty(Tt)&&at.tokenTypeOverrides[Tt]&&(Te[Tt]=at.tokenTypeOverrides[Tt]);var Pt=/^([*\-_])(?:\s*\1){2,}\s*$/,rt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,It=/^\[(x| )\](?=\s)/i,gt=at.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,se=" ";function ge(St,Ge,en){return Ge.f=Ge.inline=en,en(St,Ge)}function me(St,Ge,en){return Ge.f=Ge.block=en,en(St,Ge)}function Pe(St){return!St||!/\S/.test(St.string)}function ke(St){if(St.linkTitle=!1,St.linkHref=!1,St.linkText=!1,St.em=!1,St.strong=!1,St.strikethrough=!1,St.quote=0,St.indentedCode=!1,St.f==Oe){var Ge=Je;if(!Ge){var en=be.innerMode(kt,St.htmlState);Ge=en.mode.name=="xml"&&en.state.tagStart===null&&!en.state.context&&en.state.tokenize.isInText}Ge&&(St.f=ut,St.block=we,St.htmlState=null)}return St.trailingSpace=0,St.trailingSpaceNewLine=!1,St.prevLine=St.thisLine,St.thisLine={stream:null},null}function we(St,Ge){var en=St.column()===Ge.indentation,Hn=Pe(Ge.prevLine.stream),_n=Ge.indentedCode,Bt=Ge.prevLine.hr,rn=Ge.list!==!1,cn=(Ge.listStack[Ge.listStack.length-1]||0)+3;Ge.indentedCode=!1;var Kn=Ge.indentation;if(Ge.indentationDiff===null&&(Ge.indentationDiff=Ge.indentation,rn)){for(Ge.list=null;Kn<Ge.listStack[Ge.listStack.length-1];)Ge.listStack.pop(),Ge.listStack.length?Ge.indentation=Ge.listStack[Ge.listStack.length-1]:Ge.list=!1;Ge.list!==!1&&(Ge.indentationDiff=Kn-Ge.listStack[Ge.listStack.length-1])}var nn=!Hn&&!Bt&&!Ge.prevLine.header&&(!rn||!_n)&&!Ge.prevLine.fencedCodeEnd,Rn=(Ge.list===!1||Bt||Hn)&&Ge.indentation<=cn&&St.match(Pt),vt=null;if(Ge.indentationDiff>=4&&(_n||Ge.prevLine.fencedCodeEnd||Ge.prevLine.header||Hn))return St.skipToEnd(),Ge.indentedCode=!0,Te.code;if(St.eatSpace())return null;if(en&&Ge.indentation<=cn&&(vt=St.match(gt))&&vt[1].length<=6)return Ge.quote=0,Ge.header=vt[1].length,Ge.thisLine.header=!0,at.highlightFormatting&&(Ge.formatting="header"),Ge.f=Ge.inline,We(Ge);if(Ge.indentation<=cn&&St.eat(">"))return Ge.quote=en?1:Ge.quote+1,at.highlightFormatting&&(Ge.formatting="quote"),St.eatSpace(),We(Ge);if(!Rn&&!Ge.setext&&en&&Ge.indentation<=cn&&(vt=St.match(rt))){var Yn=vt[1]?"ol":"ul";return Ge.indentation=Kn+St.current().length,Ge.list=!0,Ge.quote=0,Ge.listStack.push(Ge.indentation),Ge.em=!1,Ge.strong=!1,Ge.code=!1,Ge.strikethrough=!1,at.taskLists&&St.match(It,!1)&&(Ge.taskList=!0),Ge.f=Ge.inline,at.highlightFormatting&&(Ge.formatting=["list","list-"+Yn]),We(Ge)}else{if(en&&Ge.indentation<=cn&&(vt=St.match(te,!0)))return Ge.quote=0,Ge.fencedEndRE=new RegExp(vt[1]+"+ *$"),Ge.localMode=at.fencedCodeBlockHighlighting&&it(vt[2]||at.fencedCodeBlockDefaultMode),Ge.localMode&&(Ge.localState=be.startState(Ge.localMode)),Ge.f=Ge.block=He,at.highlightFormatting&&(Ge.formatting="code-block"),Ge.code=-1,We(Ge);if(Ge.setext||(!nn||!rn)&&!Ge.quote&&Ge.list===!1&&!Ge.code&&!Rn&&!ne.test(St.string)&&(vt=St.lookAhead(1))&&(vt=vt.match(Ct)))return Ge.setext?(Ge.header=Ge.setext,Ge.setext=0,St.skipToEnd(),at.highlightFormatting&&(Ge.formatting="header")):(Ge.header=vt[0].charAt(0)=="="?1:2,Ge.setext=Ge.header),Ge.thisLine.header=!0,Ge.f=Ge.inline,We(Ge);if(Rn)return St.skipToEnd(),Ge.hr=!0,Ge.thisLine.hr=!0,Te.hr;if(St.peek()==="[")return ge(St,Ge,Ht)}return ge(St,Ge,Ge.inline)}function Oe(St,Ge){var en=kt.token(St,Ge.htmlState);if(!Je){var Hn=be.innerMode(kt,Ge.htmlState);(Hn.mode.name=="xml"&&Hn.state.tagStart===null&&!Hn.state.context&&Hn.state.tokenize.isInText||Ge.md_inside&&St.current().indexOf(">")>-1)&&(Ge.f=ut,Ge.block=we,Ge.htmlState=null)}return en}function He(St,Ge){var en=Ge.listStack[Ge.listStack.length-1]||0,Hn=Ge.indentation<en,_n=en+3;if(Ge.fencedEndRE&&Ge.indentation<=_n&&(Hn||St.match(Ge.fencedEndRE))){at.highlightFormatting&&(Ge.formatting="code-block");var Bt;return Hn||(Bt=We(Ge)),Ge.localMode=Ge.localState=null,Ge.block=we,Ge.f=ut,Ge.fencedEndRE=null,Ge.code=0,Ge.thisLine.fencedCodeEnd=!0,Hn?me(St,Ge,Ge.block):Bt}else return Ge.localMode?Ge.localMode.token(St,Ge.localState):(St.skipToEnd(),Te.code)}function We(St){var Ge=[];if(St.formatting){Ge.push(Te.formatting),typeof St.formatting=="string"&&(St.formatting=[St.formatting]);for(var en=0;en<St.formatting.length;en++)Ge.push(Te.formatting+"-"+St.formatting[en]),St.formatting[en]==="header"&&Ge.push(Te.formatting+"-"+St.formatting[en]+"-"+St.header),St.formatting[en]==="quote"&&(!at.maxBlockquoteDepth||at.maxBlockquoteDepth>=St.quote?Ge.push(Te.formatting+"-"+St.formatting[en]+"-"+St.quote):Ge.push("error"))}if(St.taskOpen)return Ge.push("meta"),Ge.length?Ge.join(" "):null;if(St.taskClosed)return Ge.push("property"),Ge.length?Ge.join(" "):null;if(St.linkHref?Ge.push(Te.linkHref,"url"):(St.strong&&Ge.push(Te.strong),St.em&&Ge.push(Te.em),St.strikethrough&&Ge.push(Te.strikethrough),St.emoji&&Ge.push(Te.emoji),St.linkText&&Ge.push(Te.linkText),St.code&&Ge.push(Te.code),St.image&&Ge.push(Te.image),St.imageAltText&&Ge.push(Te.imageAltText,"link"),St.imageMarker&&Ge.push(Te.imageMarker)),St.header&&Ge.push(Te.header,Te.header+"-"+St.header),St.quote&&(Ge.push(Te.quote),!at.maxBlockquoteDepth||at.maxBlockquoteDepth>=St.quote?Ge.push(Te.quote+"-"+St.quote):Ge.push(Te.quote+"-"+at.maxBlockquoteDepth)),St.list!==!1){var Hn=(St.listStack.length-1)%3;Hn?Hn===1?Ge.push(Te.list2):Ge.push(Te.list3):Ge.push(Te.list1)}return St.trailingSpaceNewLine?Ge.push("trailing-space-new-line"):St.trailingSpace&&Ge.push("trailing-space-"+(St.trailingSpace%2?"a":"b")),Ge.length?Ge.join(" "):null}function Ve(St,Ge){if(St.match(Fe,!0))return We(Ge)}function ut(St,Ge){var en=Ge.text(St,Ge);if(typeof en!="undefined")return en;if(Ge.list)return Ge.list=null,We(Ge);if(Ge.taskList){var Hn=St.match(It,!0)[1]===" ";return Hn?Ge.taskOpen=!0:Ge.taskClosed=!0,at.highlightFormatting&&(Ge.formatting="task"),Ge.taskList=!1,We(Ge)}if(Ge.taskOpen=!1,Ge.taskClosed=!1,Ge.header&&St.match(/^#+$/,!0))return at.highlightFormatting&&(Ge.formatting="header"),We(Ge);var _n=St.next();if(Ge.linkTitle){Ge.linkTitle=!1;var Bt=_n;_n==="("&&(Bt=")"),Bt=(Bt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rn="^\\s*(?:[^"+Bt+"\\\\]+|\\\\\\\\|\\\\.)"+Bt;if(St.match(new RegExp(rn),!0))return Te.linkHref}if(_n==="`"){var cn=Ge.formatting;at.highlightFormatting&&(Ge.formatting="code"),St.eatWhile("`");var Kn=St.current().length;if(Ge.code==0&&(!Ge.quote||Kn==1))return Ge.code=Kn,We(Ge);if(Kn==Ge.code){var nn=We(Ge);return Ge.code=0,nn}else return Ge.formatting=cn,We(Ge)}else if(Ge.code)return We(Ge);if(_n==="\\"&&(St.next(),at.highlightFormatting)){var Rn=We(Ge),vt=Te.formatting+"-escape";return Rn?Rn+" "+vt:vt}if(_n==="!"&&St.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ge.imageMarker=!0,Ge.image=!0,at.highlightFormatting&&(Ge.formatting="image"),We(Ge);if(_n==="["&&Ge.imageMarker&&St.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ge.imageMarker=!1,Ge.imageAltText=!0,at.highlightFormatting&&(Ge.formatting="image"),We(Ge);if(_n==="]"&&Ge.imageAltText){at.highlightFormatting&&(Ge.formatting="image");var Rn=We(Ge);return Ge.imageAltText=!1,Ge.image=!1,Ge.inline=Ge.f=Wt,Rn}if(_n==="["&&!Ge.image)return Ge.linkText&&St.match(/^.*?\]/)||(Ge.linkText=!0,at.highlightFormatting&&(Ge.formatting="link")),We(Ge);if(_n==="]"&&Ge.linkText){at.highlightFormatting&&(Ge.formatting="link");var Rn=We(Ge);return Ge.linkText=!1,Ge.inline=Ge.f=St.match(/\(.*?\)| ?\[.*?\]/,!1)?Wt:ut,Rn}if(_n==="<"&&St.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Ke,at.highlightFormatting&&(Ge.formatting="link");var Rn=We(Ge);return Rn?Rn+=" ":Rn="",Rn+Te.linkInline}if(_n==="<"&&St.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Ke,at.highlightFormatting&&(Ge.formatting="link");var Rn=We(Ge);return Rn?Rn+=" ":Rn="",Rn+Te.linkEmail}if(at.xml&&_n==="<"&&St.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Yn=St.string.indexOf(">",St.pos);if(Yn!=-1){var ni=St.string.substring(St.start,Yn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ni)&&(Ge.md_inside=!0)}return St.backUp(1),Ge.htmlState=be.startState(kt),me(St,Ge,Oe)}if(at.xml&&_n==="<"&&St.match(/^\/\w*?>/))return Ge.md_inside=!1,"tag";if(_n==="*"||_n==="_"){for(var je=1,Me=St.pos==1?" ":St.string.charAt(St.pos-2);je<3&&St.eat(_n);)je++;var xe=St.peek()||" ",Ne=!/\s/.test(xe)&&(!he.test(xe)||/\s/.test(Me)||he.test(Me)),Be=!/\s/.test(Me)&&(!he.test(Me)||/\s/.test(xe)||he.test(xe)),Se=null,lt=null;if(je%2&&(!Ge.em&&Ne&&(_n==="*"||!Be||he.test(Me))?Se=!0:Ge.em==_n&&Be&&(_n==="*"||!Ne||he.test(xe))&&(Se=!1)),je>1&&(!Ge.strong&&Ne&&(_n==="*"||!Be||he.test(Me))?lt=!0:Ge.strong==_n&&Be&&(_n==="*"||!Ne||he.test(xe))&&(lt=!1)),lt!=null||Se!=null){at.highlightFormatting&&(Ge.formatting=Se==null?"strong":lt==null?"em":"strong em"),Se===!0&&(Ge.em=_n),lt===!0&&(Ge.strong=_n);var nn=We(Ge);return Se===!1&&(Ge.em=!1),lt===!1&&(Ge.strong=!1),nn}}else if(_n===" "&&(St.eat("*")||St.eat("_"))){if(St.peek()===" ")return We(Ge);St.backUp(1)}if(at.strikethrough){if(_n==="~"&&St.eatWhile(_n)){if(Ge.strikethrough){at.highlightFormatting&&(Ge.formatting="strikethrough");var nn=We(Ge);return Ge.strikethrough=!1,nn}else if(St.match(/^[^\s]/,!1))return Ge.strikethrough=!0,at.highlightFormatting&&(Ge.formatting="strikethrough"),We(Ge)}else if(_n===" "&&St.match(/^~~/,!0)){if(St.peek()===" ")return We(Ge);St.backUp(2)}}if(at.emoji&&_n===":"&&St.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ge.emoji=!0,at.highlightFormatting&&(Ge.formatting="emoji");var Et=We(Ge);return Ge.emoji=!1,Et}return _n===" "&&(St.match(/^ +$/,!1)?Ge.trailingSpace++:Ge.trailingSpace&&(Ge.trailingSpaceNewLine=!0)),We(Ge)}function Ke(St,Ge){var en=St.next();if(en===">"){Ge.f=Ge.inline=ut,at.highlightFormatting&&(Ge.formatting="link");var Hn=We(Ge);return Hn?Hn+=" ":Hn="",Hn+Te.linkInline}return St.match(/^[^>]+/,!0),Te.linkInline}function Wt(St,Ge){if(St.eatSpace())return null;var en=St.next();return en==="("||en==="["?(Ge.f=Ge.inline=Ut(en==="("?")":"]"),at.highlightFormatting&&(Ge.formatting="link-string"),Ge.linkHref=!0,We(Ge)):"error"}var pt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ut(St){return function(Ge,en){var Hn=Ge.next();if(Hn===St){en.f=en.inline=ut,at.highlightFormatting&&(en.formatting="link-string");var _n=We(en);return en.linkHref=!1,_n}return Ge.match(pt[St]),en.linkHref=!0,We(en)}}function Ht(St,Ge){return St.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ge.f=jt,St.next(),at.highlightFormatting&&(Ge.formatting="link"),Ge.linkText=!0,We(Ge)):ge(St,Ge,ut)}function jt(St,Ge){if(St.match(/^\]:/,!0)){Ge.f=Ge.inline=Xt,at.highlightFormatting&&(Ge.formatting="link");var en=We(Ge);return Ge.linkText=!1,en}return St.match(/^([^\]\\]|\\.)+/,!0),Te.linkText}function Xt(St,Ge){return St.eatSpace()?null:(St.match(/^[^\s]+/,!0),St.peek()===void 0?Ge.linkTitle=!0:St.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ge.f=Ge.inline=ut,Te.linkHref+" url")}var Nn={startState:function(){return{f:we,prevLine:{stream:null},thisLine:{stream:null},block:we,htmlState:null,indentation:0,inline:ut,text:Ve,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(St){return{f:St.f,prevLine:St.prevLine,thisLine:St.thisLine,block:St.block,htmlState:St.htmlState&&be.copyState(kt,St.htmlState),indentation:St.indentation,localMode:St.localMode,localState:St.localMode?be.copyState(St.localMode,St.localState):null,inline:St.inline,text:St.text,formatting:!1,linkText:St.linkText,linkTitle:St.linkTitle,linkHref:St.linkHref,code:St.code,em:St.em,strong:St.strong,strikethrough:St.strikethrough,emoji:St.emoji,header:St.header,setext:St.setext,hr:St.hr,taskList:St.taskList,list:St.list,listStack:St.listStack.slice(0),quote:St.quote,indentedCode:St.indentedCode,trailingSpace:St.trailingSpace,trailingSpaceNewLine:St.trailingSpaceNewLine,md_inside:St.md_inside,fencedEndRE:St.fencedEndRE}},token:function(St,Ge){if(Ge.formatting=!1,St!=Ge.thisLine.stream){if(Ge.header=0,Ge.hr=!1,St.match(/^\s*$/,!0))return ke(Ge),null;if(Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:St},Ge.taskList=!1,Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,!Ge.localState&&(Ge.f=Ge.block,Ge.f!=Oe)){var en=St.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Ge.indentation=en,Ge.indentationDiff=null,en>0)return null}}return Ge.f(St,Ge)},innerMode:function(St){return St.block==Oe?{state:St.htmlState,mode:kt}:St.localState?{state:St.localState,mode:St.localMode}:{state:St,mode:Nn}},indent:function(St,Ge,en){return St.block==Oe&&kt.indent?kt.indent(St.htmlState,Ge,en):St.localState&&St.localMode.indent?St.localMode.indent(St.localState,Ge,en):be.Pass},blankLine:ke,getType:We,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nn},"xml"),be.defineMIME("text/markdown","markdown"),be.defineMIME("text/x-markdown","markdown")})},98101:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){"use strict";be.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 Re=0;Re<be.modeInfo.length;Re++){var at=be.modeInfo[Re];at.mimes&&(at.mime=at.mimes[0])}be.findModeByMIME=function(kt){kt=kt.toLowerCase();for(var Je=0;Je<be.modeInfo.length;Je++){var it=be.modeInfo[Je];if(it.mime==kt)return it;if(it.mimes){for(var Te=0;Te<it.mimes.length;Te++)if(it.mimes[Te]==kt)return it}}if(/\+xml$/.test(kt))return be.findModeByMIME("application/xml");if(/\+json$/.test(kt))return be.findModeByMIME("application/json")},be.findModeByExtension=function(kt){kt=kt.toLowerCase();for(var Je=0;Je<be.modeInfo.length;Je++){var it=be.modeInfo[Je];if(it.ext){for(var Te=0;Te<it.ext.length;Te++)if(it.ext[Te]==kt)return it}}},be.findModeByFileName=function(kt){for(var Je=0;Je<be.modeInfo.length;Je++){var it=be.modeInfo[Je];if(it.file&&it.file.test(kt))return it}var Te=kt.lastIndexOf("."),Tt=Te>-1&&kt.substring(Te+1,kt.length);if(Tt)return be.findModeByExtension(Tt)},be.findModeByName=function(kt){kt=kt.toLowerCase();for(var Je=0;Je<be.modeInfo.length;Je++){var it=be.modeInfo[Je];if(it.name.toLowerCase()==kt)return it;if(it.alias){for(var Te=0;Te<it.alias.length;Te++)if(it.alias[Te].toLowerCase()==kt)return it}}}})},67549:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){"use strict";be.defineMode("stex",function(Re,at){"use strict";function kt(Fe,te){Fe.cmdState.push(te)}function Je(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function it(Fe){var te=Fe.cmdState.pop();te&&te.closeBracket()}function Te(Fe){for(var te=Fe.cmdState,ne=te.length-1;ne>=0;ne--){var he=te[ne];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function Tt(Fe,te,ne){return function(){this.name=Fe,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pt={};Pt.importmodule=Tt("importmodule","tag",["string","builtin"]),Pt.documentclass=Tt("documentclass","tag",["","atom"]),Pt.usepackage=Tt("usepackage","tag",["atom"]),Pt.begin=Tt("begin","tag",["atom"]),Pt.end=Tt("end","tag",["atom"]),Pt.label=Tt("label","tag",["atom"]),Pt.ref=Tt("ref","tag",["atom"]),Pt.eqref=Tt("eqref","tag",["atom"]),Pt.cite=Tt("cite","tag",["atom"]),Pt.bibitem=Tt("bibitem","tag",["atom"]),Pt.Bibitem=Tt("Bibitem","tag",["atom"]),Pt.RBibitem=Tt("RBibitem","tag",["atom"]),Pt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function rt(Fe,te){Fe.f=te}function It(Fe,te){var ne;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return ne=Pt.hasOwnProperty(he)?Pt[he]:Pt.DEFAULT,ne=new ne,kt(te,ne),rt(te,Ct),ne.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return rt(te,function(ge,me){return gt(ge,me,"\\]")}),"keyword";if(Fe.match("\\("))return rt(te,function(ge,me){return gt(ge,me,"\\)")}),"keyword";if(Fe.match("$$"))return rt(te,function(ge,me){return gt(ge,me,"$$")}),"keyword";if(Fe.match("$"))return rt(te,function(ge,me){return gt(ge,me,"$")}),"keyword";var se=Fe.next();if(se=="%")return Fe.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Je(te),ne)ne.closeBracket(se),rt(te,Ct);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Pt.DEFAULT,ne=new ne,kt(te,ne),"bracket"):/\d/.test(se)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ne=Te(te),ne.name=="begin"&&(ne.argument=Fe.current()),ne.styleIdentifier())}function gt(Fe,te,ne){if(Fe.eatSpace())return null;if(ne&&Fe.match(ne))return rt(te,It),"keyword";if(Fe.match(/^\\[a-zA-Z@]+/))return"tag";if(Fe.match(/^[a-zA-Z]+/))return"variable-2";if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/]/)||Fe.match(/^[\^_&]/))return"tag";if(Fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Fe.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Fe.skipToEnd(),"comment"):"error"}function Ct(Fe,te){var ne=Fe.peek(),he;return ne=="{"||ne=="["?(he=Je(te),he.openBracket(ne),Fe.eat(ne),rt(te,It),"bracket"):/[ \t\r]/.test(ne)?(Fe.eat(ne),null):(rt(te,It),it(te),It(Fe,te))}return{startState:function(){var Fe=at.inMathMode?function(te,ne){return gt(te,ne)}:It;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,te){return te.f(Fe,te)},blankLine:function(Fe){Fe.f=It,Fe.cmdState.length=0},lineComment:"%"}}),be.defineMIME("text/x-stex","stex"),be.defineMIME("text/x-latex","stex")})},15525:function(On,xn,ye){(function(be){be(ye(89780))})(function(be){"use strict";var Re={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},at={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};be.defineMode("xml",function(kt,Je){var it=kt.indentUnit,Te={},Tt=Je.htmlMode?Re:at;for(var Pt in Tt)Te[Pt]=Tt[Pt];for(var Pt in Je)Te[Pt]=Je[Pt];var rt,It;function gt(Ke,Wt){function pt(jt){return Wt.tokenize=jt,jt(Ke,Wt)}var Ut=Ke.next();if(Ut=="<")return Ke.eat("!")?Ke.eat("[")?Ke.match("CDATA[")?pt(te("atom","]]>")):null:Ke.match("--")?pt(te("comment","-->")):Ke.match("DOCTYPE",!0,!0)?(Ke.eatWhile(/[\w\._\-]/),pt(ne(1))):null:Ke.eat("?")?(Ke.eatWhile(/[\w\._\-]/),Wt.tokenize=te("meta","?>"),"meta"):(rt=Ke.eat("/")?"closeTag":"openTag",Wt.tokenize=Ct,"tag bracket");if(Ut=="&"){var Ht;return Ke.eat("#")?Ke.eat("x")?Ht=Ke.eatWhile(/[a-fA-F\d]/)&&Ke.eat(";"):Ht=Ke.eatWhile(/[\d]/)&&Ke.eat(";"):Ht=Ke.eatWhile(/[\w\.\-:]/)&&Ke.eat(";"),Ht?"atom":"error"}else return Ke.eatWhile(/[^&<]/),null}gt.isInText=!0;function Ct(Ke,Wt){var pt=Ke.next();if(pt==">"||pt=="/"&&Ke.eat(">"))return Wt.tokenize=gt,rt=pt==">"?"endTag":"selfcloseTag","tag bracket";if(pt=="=")return rt="equals",null;if(pt=="<"){Wt.tokenize=gt,Wt.state=me,Wt.tagName=Wt.tagStart=null;var Ut=Wt.tokenize(Ke,Wt);return Ut?Ut+" tag error":"tag error"}else return/[\'\"]/.test(pt)?(Wt.tokenize=Fe(pt),Wt.stringStartCol=Ke.column(),Wt.tokenize(Ke,Wt)):(Ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(Ke){var Wt=function(pt,Ut){for(;!pt.eol();)if(pt.next()==Ke){Ut.tokenize=Ct;break}return"string"};return Wt.isInAttribute=!0,Wt}function te(Ke,Wt){return function(pt,Ut){for(;!pt.eol();){if(pt.match(Wt)){Ut.tokenize=gt;break}pt.next()}return Ke}}function ne(Ke){return function(Wt,pt){for(var Ut;(Ut=Wt.next())!=null;){if(Ut=="<")return pt.tokenize=ne(Ke+1),pt.tokenize(Wt,pt);if(Ut==">")if(Ke==1){pt.tokenize=gt;break}else return pt.tokenize=ne(Ke-1),pt.tokenize(Wt,pt)}return"meta"}}function he(Ke,Wt,pt){this.prev=Ke.context,this.tagName=Wt,this.indent=Ke.indented,this.startOfLine=pt,(Te.doNotIndent.hasOwnProperty(Wt)||Ke.context&&Ke.context.noIndent)&&(this.noIndent=!0)}function se(Ke){Ke.context&&(Ke.context=Ke.context.prev)}function ge(Ke,Wt){for(var pt;;){if(!Ke.context||(pt=Ke.context.tagName,!Te.contextGrabbers.hasOwnProperty(pt)||!Te.contextGrabbers[pt].hasOwnProperty(Wt)))return;se(Ke)}}function me(Ke,Wt,pt){return Ke=="openTag"?(pt.tagStart=Wt.column(),Pe):Ke=="closeTag"?ke:me}function Pe(Ke,Wt,pt){return Ke=="word"?(pt.tagName=Wt.current(),It="tag",He):Te.allowMissingTagName&&Ke=="endTag"?(It="tag bracket",He(Ke,Wt,pt)):(It="error",Pe)}function ke(Ke,Wt,pt){if(Ke=="word"){var Ut=Wt.current();return pt.context&&pt.context.tagName!=Ut&&Te.implicitlyClosed.hasOwnProperty(pt.context.tagName)&&se(pt),pt.context&&pt.context.tagName==Ut||Te.matchClosing===!1?(It="tag",we):(It="tag error",Oe)}else return Te.allowMissingTagName&&Ke=="endTag"?(It="tag bracket",we(Ke,Wt,pt)):(It="error",Oe)}function we(Ke,Wt,pt){return Ke!="endTag"?(It="error",we):(se(pt),me)}function Oe(Ke,Wt,pt){return It="error",we(Ke,Wt,pt)}function He(Ke,Wt,pt){if(Ke=="word")return It="attribute",We;if(Ke=="endTag"||Ke=="selfcloseTag"){var Ut=pt.tagName,Ht=pt.tagStart;return pt.tagName=pt.tagStart=null,Ke=="selfcloseTag"||Te.autoSelfClosers.hasOwnProperty(Ut)?ge(pt,Ut):(ge(pt,Ut),pt.context=new he(pt,Ut,Ht==pt.indented)),me}return It="error",He}function We(Ke,Wt,pt){return Ke=="equals"?Ve:(Te.allowMissing||(It="error"),He(Ke,Wt,pt))}function Ve(Ke,Wt,pt){return Ke=="string"?ut:Ke=="word"&&Te.allowUnquoted?(It="string",He):(It="error",He(Ke,Wt,pt))}function ut(Ke,Wt,pt){return Ke=="string"?ut:He(Ke,Wt,pt)}return{startState:function(Ke){var Wt={tokenize:gt,state:me,indented:Ke||0,tagName:null,tagStart:null,context:null};return Ke!=null&&(Wt.baseIndent=Ke),Wt},token:function(Ke,Wt){if(!Wt.tagName&&Ke.sol()&&(Wt.indented=Ke.indentation()),Ke.eatSpace())return null;rt=null;var pt=Wt.tokenize(Ke,Wt);return(pt||rt)&&pt!="comment"&&(It=null,Wt.state=Wt.state(rt||pt,Ke,Wt),It&&(pt=It=="error"?pt+" error":It)),pt},indent:function(Ke,Wt,pt){var Ut=Ke.context;if(Ke.tokenize.isInAttribute)return Ke.tagStart==Ke.indented?Ke.stringStartCol+1:Ke.indented+it;if(Ut&&Ut.noIndent)return be.Pass;if(Ke.tokenize!=Ct&&Ke.tokenize!=gt)return pt?pt.match(/^(\s*)/)[0].length:0;if(Ke.tagName)return Te.multilineTagIndentPastTag!==!1?Ke.tagStart+Ke.tagName.length+2:Ke.tagStart+it*(Te.multilineTagIndentFactor||1);if(Te.alignCDATA&&/<!\[CDATA\[/.test(Wt))return 0;var Ht=Wt&&/^<(\/)?([\w_:\.-]*)/.exec(Wt);if(Ht&&Ht[1])for(;Ut;)if(Ut.tagName==Ht[2]){Ut=Ut.prev;break}else if(Te.implicitlyClosed.hasOwnProperty(Ut.tagName))Ut=Ut.prev;else break;else if(Ht)for(;Ut;){var jt=Te.contextGrabbers[Ut.tagName];if(jt&&jt.hasOwnProperty(Ht[2]))Ut=Ut.prev;else break}for(;Ut&&Ut.prev&&!Ut.startOfLine;)Ut=Ut.prev;return Ut?Ut.indent+it:Ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Te.htmlMode?"html":"xml",helperType:Te.htmlMode?"html":"xml",skipAttribute:function(Ke){Ke.state==Ve&&(Ke.state=He)},xmlCurrentTag:function(Ke){return Ke.tagName?{name:Ke.tagName,close:Ke.type=="closeTag"}:null},xmlCurrentContext:function(Ke){for(var Wt=[],pt=Ke.context;pt;pt=pt.prev)pt.tagName&&Wt.push(pt.tagName);return Wt.reverse()}}}),be.defineMIME("text/xml","xml"),be.defineMIME("application/xml","xml"),be.mimeModes.hasOwnProperty("text/html")||be.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(On,xn,ye){"use strict";ye.d(xn,{$u:function(){return Pt},BD:function(){return je},E9:function(){return Tt},FF:function(){return _r},FJ:function(){return me},Hn:function(){return ge},KX:function(){return ke},NB:function(){return wt},S0:function(){return vt},UL:function(){return rt},Vk:function(){return se},Vm:function(){return ct},YI:function(){return Yn},ZA:function(){return at},Zt:function(){return It},al:function(){return Se},bn:function(){return Be},bx:function(){return Me},g2:function(){return ni},h1:function(){return Ve},hD:function(){return ii},l4:function(){return it},rU:function(){return xt},s_:function(){return xe},uz:function(){return tt},z6:function(){return gt}}),On=ye.hmd(On),function(){var Ee;function si(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function yi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:si(a)}}function or(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var xr=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 Qr;e:{var mo={a:!0},zr={};try{zr.__proto__=mo,Qr=zr.a;break e}catch(a){}Qr=!1}qi=Qr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var on=qi;function Yt(a,y){if(a.prototype=xr(y.prototype),a.prototype.constructor=a,on)on(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 Qe=typeof ye.g!="undefined"&&ye.g!=null?ye.g:self,un=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},In=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Mt(a,y){if(y){var x=Qe;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})}}Mt("Object.assign",function(a){return a||un}),Mt("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 ft=typeof globalThis=="object"&&globalThis||typeof ye.g=="object"&&ye.g.global===ye.g&&ye.g||typeof self=="object"&&self.self===self&&self||{};ft.requestAnimationFrame===void 0&&(ft.setImmediate===void 0?ft.requestAnimationFrame=function(a){ft.setTimeout(a,0)}:ft.requestAnimationFrame=ft.setImmediate);function fn(){}function Vn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&ft.clearTimeout(x),x=bi(function(){x=-1,a.apply(b,E)},y)}}function bi(a,y){return ft.setTimeout(a,y)}function gi(a){return ft.document.createElement(a)}function dt(a){throw Error(a)}function Fn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),dt(a)}function ui(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),dt(x+" is not in the range "+y+": "+a)}function ji(a){ft.console&&ft.console.log(a)}function dn(a){return typeof a=="object"&&a!==null}function vn(a){return Array.isArray(a)||ft.NodeList&&a instanceof ft.NodeList||ft.HTMLCollection&&a instanceof ft.HTMLCollection}function Rt(a){return Array.prototype.slice.call(a)}function tn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):dt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function yn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):dt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function an(){var a=Dr.pop();return a===void 0?[]:a}function Mn(a){a.length=0,Dr.push(a)}function bn(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(dn(a)&&a.constructor)return bn(a.constructor);return typeof a}function $n(a){var y=a;return dn(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 Un(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 Wi(a,y,x){Object.defineProperty(zn.prototype,a,{get:y,set:x})}function qt(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="",ee=0;ee<a.length;ee++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Qi=ft.navigator!==void 0&&0<ft.navigator.userAgent.indexOf("Trident/7"),yr=ft.navigator!==void 0&&ft.navigator.platform!==void 0&&ft.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Dr=[];Object.freeze([]),fn.className="Util",fn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",fn.adym="gojs.net",fn.vfo="28e645fdb266",fn.className="Util";function sn(a,y,x){Br(this),this.j=a,this.xa=y,this.o=x}sn.prototype.toString=function(){return"EnumValue."+this.xa};function ai(a,y){return y==null||y===""?null:a[y]}Qe.Object.defineProperties(sn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),sn.className="EnumValue";function xi(){this.ew=[]}xi.prototype.toString=function(){return this.ew.join("")},xi.prototype.add=function(a){a!==""&&this.ew.push(a)},xi.className="StringBuilder";function Gi(){}Gi.className="PropertyCollection";var Di={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ft.console&&ft.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(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function _i(){}_i.prototype.reset=function(){},_i.prototype.next=function(){return!1},_i.prototype.Ad=function(){return!1},_i.prototype.first=function(){return null},_i.prototype.any=function(){return!1},_i.prototype.all=function(){return!0},_i.prototype.each=function(){return this},_i.prototype.map=function(){return this},_i.prototype.filter=function(){return this},_i.prototype.de=function(){},_i.prototype.toString=function(){return"EmptyIterator"},Qe.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset;var wr=null;_i.className="EmptyIterator",wr=new _i;function er(a){this.key=-1,this.value=a}er.prototype.reset=function(){this.key=-1},er.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},er.prototype.Ad=function(){return this.next()},er.prototype.first=function(){return this.key=0,this.value},er.prototype.any=function(a){return this.key=-1,a(this.value)},er.prototype.all=function(a){return this.key=-1,a(this.value)},er.prototype.each=function(a){return this.key=-1,a(this.value),this},er.prototype.map=function(a){return new er(a(this.value))},er.prototype.filter=function(a){return a(this.value)?new er(this.value):wr},er.prototype.de=function(){this.value=null},er.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Qe.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="SingletonIterator";function Oi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Oi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Oi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Oi.prototype.Ad=function(){return this.next()},Oi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Oi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Oi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Oi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Oi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&x.push(a(ee))}return a=new En,a.s=x,a.xb(),a.iterator},Oi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&a(ee)&&x.push(ee)}return a=new En,a.s=x,a.xb(),a.iterator},Oi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Oi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Qe.Object.defineProperties(Oi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Oi.prototype.first=Oi.prototype.first,Oi.prototype.hasNext=Oi.prototype.Ad,Oi.prototype.next=Oi.prototype.next,Oi.prototype.reset=Oi.prototype.reset,Oi.className="ListIterator";function br(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}br.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},br.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)},br.prototype.Ad=function(){return this.next()},br.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},br.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},br.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},br.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},br.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 En,a.s=x,a.xb(),a.iterator},br.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 En,a.s=x,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},br.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Qe.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIteratorBackwards";function En(a){Br(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&dt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=En.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"List()#"+bo(this)},Ee.add=function(a){return a===null?this:(this._isFrozen&&Fn(this,a),this.s.push(a),this.xb(),this)},Ee.push=function(a){this.add(a)},Ee.addAll=function(a){if(a===null)return this;this._isFrozen&&Fn(this);var y=this.s;if(vn(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},Ee.clear=function(){this._isFrozen&&Fn(this),this.s.length=0,this.xb()},Ee.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ee.has=function(a){return this.contains(a)},Ee.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ee.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ui(a,"0 <= i < length",En,"elt:i"),y[a]},Ee.get=function(a){return this.M(a)},Ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ui(a,"0 <= i < length",En,"setElt:i"),this._isFrozen&&Fn(this,a),x[a]=y},Ee.set=function(a,y){this.cd(a,y)},Ee.first=function(){var a=this.s;return a.length===0?null:a[0]},Ee.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ee.pop=function(){this._isFrozen&&Fn(this);var a=this.s;return 0<a.length?a.pop():null},En.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},En.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},En.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},En.prototype.map=function(a){for(var y=new En,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},En.prototype.filter=function(a){for(var y=new En,x=[],b=this.s,E=b.length,z=0;z<E;z++){var ee=b[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ee=En.prototype,Ee.Gb=function(a,y){0>a&&ui(a,">= 0",En,"insertAt:i"),this._isFrozen&&Fn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Fn(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)},Ee.delete=function(a){return this.remove(a)},Ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ui(a,"0 <= i < length",En,"removeAt:i"),this._isFrozen&&Fn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ee.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&&Fn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},En.prototype.copy=function(){var a=new En,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ee=En.prototype,Ee.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ee.Iv=function(){for(var a=new An,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ee.sort=function(a){return this._isFrozen&&Fn(this),this.s.sort(a),this.xb(),this},Ee.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Fn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&ui(y,"0 <= from < length",En,"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},Ee.reverse=function(){return this._isFrozen&&Fn(this),this.s.reverse(),this.xb(),this},Qe.Object.defineProperties(En.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 wr;var a=this.Sa;return a!==null?(a.reset(),a):new Oi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wr;var a=this.Hg;return a!==null?(a.reset(),a):new br(this)}}}),En.prototype.reverse=En.prototype.reverse,En.prototype.sortRange=En.prototype.zi,En.prototype.sort=En.prototype.sort,En.prototype.toSet=En.prototype.Iv,En.prototype.toArray=En.prototype.Fa,En.prototype.removeRange=En.prototype.removeRange,En.prototype.removeAt=En.prototype.mb,En.prototype.delete=En.prototype.delete,En.prototype.remove=En.prototype.remove,En.prototype.insertAt=En.prototype.Gb,En.prototype.pop=En.prototype.pop,En.prototype.last=En.prototype.jc,En.prototype.first=En.prototype.first,En.prototype.set=En.prototype.set,En.prototype.setElt=En.prototype.cd,En.prototype.get=En.prototype.get,En.prototype.elt=En.prototype.M,En.prototype.indexOf=En.prototype.indexOf,En.prototype.has=En.prototype.has,En.prototype.contains=En.prototype.contains,En.prototype.clear=En.prototype.clear,En.prototype.addAll=En.prototype.addAll,En.prototype.push=En.prototype.push,En.prototype.add=En.prototype.add,En.prototype.thaw=En.prototype.ka,En.prototype.freeze=En.prototype.freeze,En.className="List";function wo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}wo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},wo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},wo.prototype.Ad=function(){return this.next()},wo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},wo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},wo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},wo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},wo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},wo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new En;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},wo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},wo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Qe.Object.defineProperties(wo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),wo.prototype.first=wo.prototype.first,wo.prototype.hasNext=wo.prototype.Ad,wo.prototype.next=wo.prototype.next,wo.prototype.reset=wo.prototype.reset,wo.className="SetIterator";function An(a){Br(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&dt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=An.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Set()#"+bo(this)},Ee.add=function(a){if(a===null)return this;this._isFrozen&&Fn(this,a);var y=a;return dn(a)&&(y=ta(a)),this.Tb[y]===void 0&&(this.Sb++,a=new to(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},Ee.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Fn(this),vn(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},Ee.contains=function(a){if(a===null)return!1;var y=a;return dn(a)&&(y=bo(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ee.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ee.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},Ee=An.prototype,Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Fn(this,a);var y=a;if(dn(a)&&(y=bo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ee.delete=function(a){return this.remove(a)},Ee.hp=function(a){if(a===null)return this;if(this._isFrozen&&Fn(this),vn(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},Ee.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Fn(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},Ee.clear=function(){this._isFrozen&&Fn(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 En,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Br(a){a.__gohashid=ca++}function ta(a){var y=a.__gohashid;return y===void 0&&(y=ca++,a.__gohashid=y),y}function bo(a){return a.__gohashid}Qe.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wr;var a=this.Sa;return a!==null?(a.reset(),a):new wo(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 ca=1;An.className="Set",An.uniqueHash=Br,An.hashIdUnique=ta,An.hashId=bo;function qo(a){this.ma=a,this.qa=a.Ja,this.sa=null}qo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},qo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},qo.prototype.Ad=function(){return this.next()},qo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},qo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},qo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},qo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},qo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},qo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new En;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},qo.prototype.de=function(){this.value=this.key=null,this.qa=-1},qo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Qe.Object.defineProperties(qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qo.prototype.first=qo.prototype.first,qo.prototype.hasNext=qo.prototype.Ad,qo.prototype.next=qo.prototype.next,qo.prototype.reset=qo.prototype.reset,qo.className="MapKeySetIterator";function lr(a){An.call(this),Br(this),this._isFrozen=!0,this.ma=a}Yt(lr,An),Ee=lr.prototype,Ee.freeze=function(){return this},Ee.ka=function(){return this},Ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ee.add=function(){dt("This Set is read-only: "+this.toString())},Ee.contains=function(a){return this.ma.contains(a)},Ee.has=function(a){return this.contains(a)},Ee.remove=function(){dt("This Set is read-only: "+this.toString())},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){dt("This Set is read-only: "+this.toString())},Ee.first=function(){var a=this.ma.ea;return a!==null?a.key:null},lr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},lr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},lr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},lr.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},lr.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},lr.prototype.copy=function(){return new lr(this.ma)},lr.prototype.Iv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},lr.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},lr.prototype.Hv=function(){var a=new En,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Qe.Object.defineProperties(lr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wr:new qo(this.ma)}}}),lr.prototype.toList=lr.prototype.Hv,lr.prototype.toArray=lr.prototype.Fa,lr.prototype.toSet=lr.prototype.Iv,lr.prototype.first=lr.prototype.first,lr.prototype.clear=lr.prototype.clear,lr.prototype.delete=lr.prototype.delete,lr.prototype.remove=lr.prototype.remove,lr.prototype.has=lr.prototype.has,lr.prototype.contains=lr.prototype.contains,lr.prototype.add=lr.prototype.add,lr.prototype.thaw=lr.prototype.ka,lr.prototype.freeze=lr.prototype.freeze,lr.className="MapKeySet";function tr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}tr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},tr.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)},tr.prototype.Ad=function(){return this.next()},tr.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},tr.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},tr.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},tr.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},tr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},tr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new En;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},tr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},tr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Qe.Object.defineProperties(tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),tr.prototype.first=tr.prototype.first,tr.prototype.hasNext=tr.prototype.Ad,tr.prototype.next=tr.prototype.next,tr.prototype.reset=tr.prototype.reset,tr.className="MapValueSetIterator";function to(a,y){this.key=a,this.value=y,this.ll=this.va=null}to.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},to.className="KeyValuePair";function ko(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ko.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ko.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ko.prototype.Ad=function(){return this.next()},ko.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ko.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ko.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ko.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ko.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ko.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new En;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ko.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ko.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Qe.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset,ko.className="MapIterator";function ki(a){Br(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"&&dt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=ki.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Map()#"+bo(this)},Ee.add=function(a,y){this._isFrozen&&Fn(this,a);var x=a;dn(a)&&(x=ta(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new to(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},Ee.set=function(a,y){return this.add(a,y)},Ee.addAll=function(a){if(a===null)return this;if(vn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof ki)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ee.first=function(){return this.ea},ki.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ki.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ki.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ki.prototype.map=function(a){for(var y=new ki,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ki.prototype.filter=function(a){for(var y=new ki,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ee=ki.prototype,Ee.contains=function(a){var y=a;return dn(a)&&(y=bo(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.I=function(a){var y=a;return dn(a)&&(y=bo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ee.get=function(a){return this.I(a)},Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Fn(this,a);var y=a;if(dn(a)&&(y=bo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){this._isFrozen&&Fn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},ki.prototype.copy=function(){var a=new ki,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},ki.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new to(E.key,E.value),x++}return y},ki.prototype.Lf=function(){return new lr(this)},Qe.Object.defineProperties(ki.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wr;var a=this.Sa;return a!==null?(a.reset(),a):new ko(this)}},iteratorKeys:{get:function(){return 0>=this.count?wr:new qo(this)}},iteratorValues:{get:function(){if(0>=this.count)return wr;var a=this.jf;return a!==null?(a.reset(),a):new tr(this)}}}),ki.prototype.toKeySet=ki.prototype.Lf,ki.prototype.toArray=ki.prototype.Fa,ki.prototype.clear=ki.prototype.clear,ki.prototype.delete=ki.prototype.delete,ki.prototype.remove=ki.prototype.remove,ki.prototype.get=ki.prototype.get,ki.prototype.getValue=ki.prototype.I,ki.prototype.has=ki.prototype.has,ki.prototype.contains=ki.prototype.contains,ki.prototype.first=ki.prototype.first,ki.prototype.addAll=ki.prototype.addAll,ki.prototype.set=ki.prototype.set,ki.prototype.add=ki.prototype.add,ki.prototype.thaw=ki.prototype.ka,ki.prototype.freeze=ki.prototype.freeze,ki.className="Map";function Ue(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):dt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var fo,_o,ro,Yo,ya;Ue.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.copy=function(){var a=new Ue;return a.x=this.x,a.y=this.y,a},Ee=Ue.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lr(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 Ue(x,E)}return new Ue}function Fr(a){return a.x.toString()+" "+a.y.toString()}Ee.toString=function(){return"Point("+this.x+","+this.y+")"},Ee.D=function(a){return a instanceof Ue?this.x===a.x&&this.y===a.y:!1},Ee.hi=function(a,y){return this.x===a&&this.y===y},Ee.Xa=function(a){return Nt.B(this.x,a.x)&&Nt.B(this.y,a.y)},Ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ue.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},Ee=Ue.prototype,Ee.scale=function(a,y){return this.x*=a,this.y*=y,this},Ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ee.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},Ee.ab=function(a){return uo(a.x-this.x,a.y-this.y)},Ee.direction=function(a,y){return uo(a-this.x,y-this.y)};function uo(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ee.Ry=function(a,y){return Nt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ee.fA=function(a,y,x,b){return Nt.qh(a,y,x,b,this.x,this.y,this),this},Ee.gA=function(a,y){return Nt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ee.uA=function(a,y,x,b){return Nt.No(this.x,this.y,a,y,x,b,this),this},Ee.vA=function(a,y){return Nt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ee.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},Ee.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},Ee.transform=function(a){return a.Ga(this),this};function Xr(a,y){return y.Cd(a),a}function Zo(a,y,x,b,E,z){var ee=E-x,re=z-b,oe=ee*ee+re*re;x-=a,b-=y;var le=-x*ee-b*re;return 0>=le||le>=oe?(ee=E-a,re=z-y,Math.min(x*x+b*b,ee*ee+re*re)):(a=ee*b-re*x,a*a/oe)}function oa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function ur(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)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ue.alloc=function(){var a=hr.pop();return a===void 0?new Ue:a},Ue.allocAt=function(a,y){var x=hr.pop();return x===void 0?new Ue(a,y):(x.x=a,x.y=y,x)},Ue.free=function(a){hr.push(a)},Ue.prototype.isReal=Ue.prototype.w,Ue.prototype.setSpot=Ue.prototype.yi,Ue.prototype.setRectSpot=Ue.prototype.xi,Ue.prototype.snapToGridPoint=Ue.prototype.vA,Ue.prototype.snapToGrid=Ue.prototype.uA,Ue.prototype.projectOntoLineSegmentPoint=Ue.prototype.gA,Ue.prototype.projectOntoLineSegment=Ue.prototype.fA,Ue.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Nt.Rl(a,y,x,b,E,z,ee,re)},Ue.prototype.compareWithLineSegmentPoint=Ue.prototype.Ry,Ue.compareWithLineSegment=function(a,y,x,b,E,z){return Nt.Fl(a,y,x,b,E,z)},Ue.prototype.direction=Ue.prototype.direction,Ue.prototype.directionPoint=Ue.prototype.ab,Ue.prototype.normalize=Ue.prototype.normalize,Ue.prototype.distanceSquared=Ue.prototype.zd,Ue.prototype.distanceSquaredPoint=Ue.prototype.Bf,Ue.prototype.scale=Ue.prototype.scale,Ue.prototype.rotate=Ue.prototype.rotate,Ue.prototype.offset=Ue.prototype.offset,Ue.prototype.subtract=Ue.prototype.re,Ue.prototype.add=Ue.prototype.add,Ue.prototype.equalsApprox=Ue.prototype.Xa,Ue.prototype.equalTo=Ue.prototype.hi,Ue.prototype.equals=Ue.prototype.D,Ue.prototype.set=Ue.prototype.set,Ue.prototype.setTo=Ue.prototype.sg;var hr=[];Ue.className="Point",Ue.parse=Lr,Ue.stringify=Fr,Ue.distanceLineSegmentSquared=Zo,Ue.distanceSquared=oa,Ue.direction=ur,Ue.Origin=fo=new Ue(0,0).ja(),Ue.InfiniteTopLeft=_o=new Ue(-1/0,-1/0).ja(),Ue.InfiniteBottomRight=ro=new Ue(1/0,1/0).ja(),Ue.SixPoint=Yo=new Ue(6,6).ja(),Ue.NoPoint=ya=new Ue(NaN,NaN).ja(),Ue.parse=Lr,Ue.stringify=Fr,Ue.distanceLineSegmentSquared=Zo,Ue.distanceSquared=oa,Ue.direction=ur;function ri(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):dt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Er,Io,Ma,Sa,Ta,Ra,Ga;ri.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.h=function(a,y){return this.width=a,this.height=y,this},ri.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ri.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.copy=function(){var a=new ri;return a.width=this.width,a.height=this.height,a},Ee=ri.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new ri(x,E)}return new ri}function us(a){return a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Size("+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof ri?this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y){return this.width===a&&this.height===y},Ee.Xa=function(a){return Nt.B(this.width,a.width)&&Nt.B(this.height,a.height)},Ee.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},Ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},ri.alloc=function(){var a=Ys.pop();return a===void 0?new ri:a},ri.free=function(a){Ys.push(a)},ri.prototype.isReal=ri.prototype.w,ri.prototype.inflate=ri.prototype.Bc,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var Ys=[];ri.className="Size",ri.parse=Vs,ri.stringify=us,ri.ZeroSize=Er=new ri(0,0).ja(),ri.OneSize=Io=new ri(1,1).ja(),ri.SixSize=Ma=new ri(6,6).ja(),ri.EightSize=Sa=new ri(8,8).ja(),ri.TenSize=Ta=new ri(10,10).ja(),ri.InfiniteSize=Ra=new ri(1/0,1/0).ja(),ri.NoSize=Ga=new ri(NaN,NaN).ja(),ri.parse=Vs,ri.stringify=us;function hn(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 Ue?(x=a.x,a=a.y,y instanceof Ue?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof ri?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):dt("Incorrect second argument supplied to Rect constructor "+y)):dt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ee=hn.prototype,Ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function xs(a,y,x){a.width=y,a.height=x}Ee.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.dd=function(a){return this.x=a.x,this.y=a.y,this},Ee.tA=function(a){return this.width=a.width,this.height=a.height,this},hn.prototype.copy=function(){var a=new hn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ee=hn.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this};function yh(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),new hn(x,E,z,ee)}return new hn}function El(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof hn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ee.Xa=function(a){return Nt.B(this.x,a.x)&&Nt.B(this.y,a.y)&&Nt.B(this.width,a.width)&&Nt.B(this.height,a.height)};function $o(a,y){return Nt.$(a.x,y.x)&&Nt.$(a.y,y.y)&&Nt.$(a.width,y.width)&&Nt.$(a.height,y.height)}Ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ee.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},Ee.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},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.Bc=function(a,y){return To(this,y,a,y,a)},Ee.Co=function(a){return To(this,a.top,a.right,a.bottom,a.left)},Ee.Fv=function(a){return To(this,-a.top,-a.right,-a.bottom,-a.left)},Ee.Hz=function(a,y,x,b){return To(this,a,y,x,b)};function To(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Ee.Ex=function(a){return as(this,a.x,a.y,a.width,a.height)},Ee.Uu=function(a,y,x,b){return as(this,a,y,x,b)};function as(a,y,x,b,E){var z=Math.max(a.x,y),ee=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=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ee.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function ma(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Ee.Ye=function(a){return No(this,a.x,a.y,0,0)},Ee.ed=function(a){return No(this,a.x,a.y,a.width,a.height)},Ee.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),No(this,a,y,x,b)};function No(a,y,x,b,E){var z=Math.min(a.x,y),ee=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=ee,a.width=y-z,a.height=x-ee,a}Ee.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function fa(a,y,x,b,E,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=E&&E+ee<=a+x&&y<=z&&z+re<=y+b}function al(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ee.Mz=function(){return this.width===0&&this.height===0},hn.alloc=function(){var a=Oo.pop();return a===void 0?new hn:a},hn.allocAt=function(a,y,x,b){var E=Oo.pop();return E===void 0?new hn(a,y,x,b):E.h(a,y,x,b)},hn.free=function(a){Oo.push(a)},Qe.Object.defineProperties(hn.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 Ue(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ri(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ue(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}}}),hn.prototype.isEmpty=hn.prototype.Mz,hn.prototype.isReal=hn.prototype.w,hn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Nt.Fx(a,y,x,b,E,z,ee,re)},hn.prototype.setSpot=hn.prototype.yi,hn.prototype.union=hn.prototype.Kv,hn.prototype.unionRect=hn.prototype.ed,hn.prototype.unionPoint=hn.prototype.Ye,hn.prototype.intersects=hn.prototype.Vu,hn.prototype.intersectsRect=hn.prototype.Yc,hn.prototype.intersect=hn.prototype.Uu,hn.prototype.intersectRect=hn.prototype.Ex,hn.prototype.grow=hn.prototype.Hz,hn.prototype.subtractMargin=hn.prototype.Fv,hn.prototype.addMargin=hn.prototype.Co,hn.prototype.inflate=hn.prototype.Bc,hn.prototype.offset=hn.prototype.offset,hn.prototype.contains=hn.prototype.contains,hn.prototype.containsRect=hn.prototype.Re,hn.prototype.containsPoint=hn.prototype.ca,hn.prototype.equalsApprox=hn.prototype.Xa,hn.prototype.equalTo=hn.prototype.hi,hn.prototype.equals=hn.prototype.D,hn.prototype.setSize=hn.prototype.tA,hn.prototype.setPoint=hn.prototype.dd,hn.prototype.set=hn.prototype.set,hn.prototype.setTo=hn.prototype.sg;var Kr=null,zo=null,Oo=[];hn.className="Rect",hn.parse=yh,hn.stringify=El,hn.contains=fa,hn.intersects=al,hn.ZeroRect=Kr=new hn(0,0,0,0).ja(),hn.NoRect=zo=new hn(NaN,NaN,NaN,NaN).ja(),hn.parse=yh,hn.stringify=El,hn.contains=fa,hn.intersects=al;function zi(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):dt("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},Ee=zi.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this};function gs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new zi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new zi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new zi(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new zi(x,E):new zi(x,E,z,ee)}return new zi}function ws(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ee.D=function(a){return a instanceof zi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ee.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ee.Xa=function(a){return Nt.B(this.top,a.top)&&Nt.B(this.right,a.right)&&Nt.B(this.bottom,a.bottom)&&Nt.B(this.left,a.left)},Ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},zi.alloc=function(){var a=xu.pop();return a===void 0?new zi:a},zi.free=function(a){xu.push(a)},zi.prototype.isReal=zi.prototype.w,zi.prototype.equalsApprox=zi.prototype.Xa,zi.prototype.equalTo=zi.prototype.hi,zi.prototype.equals=zi.prototype.D,zi.prototype.set=zi.prototype.set,zi.prototype.setTo=zi.prototype.sg;var dl=null,su=null,xu=[];zi.className="Margin",zi.parse=gs,zi.stringify=ws,zi.ZeroMargin=dl=new zi(0,0,0,0).ja(),zi.TwoMargin=su=new zi(2,2,2,2).ja(),zi.parse=gs,zi.stringify=ws;function Fi(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Ua,Ls,Ql,lu,uu,so,Sh,Ll,Ml,ml,Wu,wu,vl,Al,Bh,_h,Oh,gd,Ih,Zu,Bl,Ol,pd,ed,Pu,Bo,da,cl,Ps,Cs,es,hs,Ms,bs,nh,$l;Fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.copy=function(){var a=new Fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ee=Fi.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ps(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ua;if(a==="TopLeft")return Ls;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ql;if(a==="TopRight")return lu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return uu;if(a==="Center")return so;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Sh;if(a==="BottomLeft")return Ll;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ml;if(a==="BottomRight")return ml;if(a==="TopSide")return Wu;if(a==="LeftSide")return wu;if(a==="RightSide")return vl;if(a==="BottomSide")return Al;if(a==="TopBottomSides")return Bh;if(a==="LeftRightSides")return _h;if(a==="TopLeftSides")return Oh;if(a==="TopRightSides")return gd;if(a==="BottomLeftSides")return Ih;if(a==="BottomRightSides")return Zu;if(a==="NotTopSide")return Bl;if(a==="NotLeftSide")return Ol;if(a==="NotRightSide")return pd;if(a==="NotBottomSide")return ed;if(a==="AllSides")return Pu;if(a==="Default")return Bo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ee=parseFloat(b)),new Fi(x,E,z,ee)}return new Fi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ee.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Ua)?"None":this.D(Ls)?"TopLeft":this.D(Ql)?"Top":this.D(lu)?"TopRight":this.D(uu)?"Left":this.D(so)?"Center":this.D(Sh)?"Right":this.D(Ll)?"BottomLeft":this.D(Ml)?"Bottom":this.D(ml)?"BottomRight":this.D(Wu)?"TopSide":this.D(wu)?"LeftSide":this.D(vl)?"RightSide":this.D(Al)?"BottomSide":this.D(Bh)?"TopBottomSides":this.D(_h)?"LeftRightSides":this.D(Oh)?"TopLeftSides":this.D(gd)?"TopRightSides":this.D(Ih)?"BottomLeftSides":this.D(Zu)?"BottomRightSides":this.D(Bl)?"NotTopSide":this.D(Ol)?"NotLeftSide":this.D(pd)?"NotRightSide":this.D(ed)?"NotBottomSide":this.D(Pu)?"AllSides":this.D(Bo)?"Default":"None"},Ee.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},Ee.gv=function(){return new Fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ee.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(da))a=wu;else if(a.D(cl))a=vl;else if(a.D(Ps))a=Wu;else if(a.D(Cs))a=Al;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ee.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ee.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ee.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ee.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ee.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Fi.alloc=function(){var a=td.pop();return a===void 0?new Fi:a},Fi.free=function(a){td.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 td=[];Fi.className="Spot",Fi.parse=ic,Fi.stringify=md,Fi.None=Ua=ps(new Fi(0,0,0,0),0).ja(),Fi.Default=Bo=ps(new Fi(0,0,-1,0),-1).ja(),Fi.TopLeft=Ls=new Fi(0,0,0,0).ja(),Fi.TopCenter=Ql=new Fi(.5,0,0,0).ja(),Fi.TopRight=lu=new Fi(1,0,0,0).ja(),Fi.LeftCenter=uu=new Fi(0,.5,0,0).ja(),Fi.Center=so=new Fi(.5,.5,0,0).ja(),Fi.RightCenter=Sh=new Fi(1,.5,0,0).ja(),Fi.BottomLeft=Ll=new Fi(0,1,0,0).ja(),Fi.BottomCenter=Ml=new Fi(.5,1,0,0).ja(),Fi.BottomRight=ml=new Fi(1,1,0,0).ja(),Fi.MiddleTop=es=Ql,Fi.MiddleLeft=hs=uu,Fi.MiddleRight=Ms=Sh,Fi.MiddleBottom=bs=Ml,Fi.Top=Ps=Ql,Fi.Left=da=uu,Fi.Right=cl=Sh,Fi.Bottom=Cs=Ml,Fi.TopSide=Wu=ps(new Fi(0,0,1,1),1).ja(),Fi.LeftSide=wu=ps(new Fi(0,0,1,2),1).ja(),Fi.RightSide=vl=ps(new Fi(0,0,1,4),1).ja(),Fi.BottomSide=Al=ps(new Fi(0,0,1,8),1).ja(),Fi.TopBottomSides=Bh=ps(new Fi(0,0,1,9),1).ja(),Fi.LeftRightSides=_h=ps(new Fi(0,0,1,6),1).ja(),Fi.TopLeftSides=Oh=ps(new Fi(0,0,1,3),1).ja(),Fi.TopRightSides=gd=ps(new Fi(0,0,1,5),1).ja(),Fi.BottomLeftSides=Ih=ps(new Fi(0,0,1,10),1).ja(),Fi.BottomRightSides=Zu=ps(new Fi(0,0,1,12),1).ja(),Fi.NotTopSide=Bl=ps(new Fi(0,0,1,14),1).ja(),Fi.NotLeftSide=Ol=ps(new Fi(0,0,1,13),1).ja(),Fi.NotRightSide=pd=ps(new Fi(0,0,1,11),1).ja(),Fi.NotBottomSide=ed=ps(new Fi(0,0,1,7),1).ja(),Fi.AllSides=Pu=ps(new Fi(0,0,1,15),1).ja(),nh=new Fi(.156,.156).ja(),$l=new Fi(.844,.844).ja(),Fi.parse=ic,Fi.stringify=md;function Mr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Mr.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},Mr.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},Mr.prototype.copy=function(){var a=new Mr;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},Mr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Mr.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},Mr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Mr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Mr.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},Mr.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,ee=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*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Mr.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},Mr.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,ee=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ee=Mr.prototype,Ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ee.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)},Ee.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))},Ee.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))},Ee.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,le=this.dx,ue=this.dy,fe=y*z+x*re+le,ve=y*ee+x*oe+ue,Ce=b*z+x*re+le,Le=b*ee+x*oe+ue;return x=y*z+E*re+le,y=y*ee+E*oe+ue,z=b*z+E*re+le,b=b*ee+E*oe+ue,E=Math.min(fe,Ce),fe=Math.max(fe,Ce),Ce=Math.min(ve,Le),ve=Math.max(ve,Le),E=Math.min(E,x),fe=Math.max(fe,x),Ce=Math.min(Ce,y),ve=Math.max(ve,y),E=Math.min(E,z),fe=Math.max(fe,z),Ce=Math.min(Ce,b),ve=Math.max(ve,b),a.h(E,Ce,fe-E,ve-Ce),a},Mr.alloc=function(){var a=nd.pop();return a===void 0?new Mr:a},Mr.free=function(a){nd.push(a)},Mr.prototype.transformRect=Mr.prototype.pp,Mr.prototype.transformPoint=Mr.prototype.Ga,Mr.prototype.scale=Mr.prototype.scale,Mr.prototype.translate=Mr.prototype.translate,Mr.prototype.rotate=Mr.prototype.rotate,Mr.prototype.invert=Mr.prototype.Vj,Mr.prototype.multiplyInverted=Mr.prototype.bv,Mr.prototype.multiply=Mr.prototype.multiply,Mr.prototype.reset=Mr.prototype.reset,Mr.prototype.isIdentity=Mr.prototype.ws,Mr.prototype.equals=Mr.prototype.D,Mr.prototype.setTransform=Mr.prototype.setTransform,Mr.prototype.set=Mr.prototype.set;var nd=[];Mr.className="Transform",Mr.xF="54a702f3e53909c447824c6706603faf4c";var Nt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Nt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Nt.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,ee){if(0>=E&&(E=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<b)var le=y,ue=b;else le=b,ue=y;if(a===x)return le<=ee&&ee<=ue&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=oe&&y-E<=ee&&ee<=y+E;if(oe+=E,re-=E,re<=z&&z<=oe&&(ue+=E,le-=E,le<=ee&&ee<=ue))if(oe-re>ue-le)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=ee&&ee<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ee=(x-a)/(b-y)*(ee-y)+a,ee-E<=z&&z<=ee+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe){if(Nt.Yb(a,y,ee,re,fe,x,b)&&Nt.Yb(a,y,ee,re,fe,E,z))return Nt.Yb(a,y,ee,re,fe,le,ue);var ve=(a+x)/2,Ce=(y+b)/2,Le=(x+E)/2,De=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ve+Le)/2,x=(Ce+De)/2,Le=(Le+E)/2,De=(De+z)/2;var _e=(b+Le)/2,Ze=(x+De)/2;return Nt.cs(a,y,ve,Ce,b,x,_e,Ze,oe,le,ue,fe)||Nt.cs(_e,Ze,Le,De,E,z,ee,re,oe,le,ue,fe)},ax:function(a,y,x,b,E,z,ee,re,oe){var le=(x+E)/2,ue=(b+z)/2;return oe.h((((a+x)/2+le)/2+(le+(E+ee)/2)/2)/2,(((y+b)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,b,E,z,ee,re){var oe=(x+E)/2,le=(b+z)/2;return ur(((a+x)/2+oe)/2,((y+b)/2+le)/2,(oe+(E+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,ee,re,oe,x,b)&&Nt.Yb(a,y,ee,re,oe,E,z))No(le,a,y,0,0),No(le,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,ve=(x+E)/2,Ce=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+ve)/2,x=(fe+Ce)/2,ve=(ve+E)/2,Ce=(Ce+z)/2;var Le=(b+ve)/2,De=(x+Ce)/2;Nt.Dl(a,y,ue,fe,b,x,Le,De,oe,le),Nt.Dl(Le,De,ve,Ce,E,z,ee,re,oe,le)}return le},Qe:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,ee,re,oe,x,b)&&Nt.Yb(a,y,ee,re,oe,E,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var ue=(a+x)/2,fe=(y+b)/2,ve=(x+E)/2,Ce=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+ve)/2,x=(fe+Ce)/2,ve=(ve+E)/2,Ce=(Ce+z)/2;var Le=(b+ve)/2,De=(x+Ce)/2;Nt.Qe(a,y,ue,fe,b,x,Le,De,oe,le),Nt.Qe(Le,De,ve,Ce,E,z,ee,re,oe,le)}return le},jv:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,E,z,le,x,b))return Nt.Yb(a,y,E,z,le,re,oe);var ue=(a+x)/2,fe=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ve=(ue+x)/2,Ce=(fe+b)/2;return Nt.jv(a,y,ue,fe,ve,Ce,ee,re,oe,le)||Nt.jv(ve,Ce,x,b,E,z,ee,re,oe,le)},OA:function(a,y,x,b,E,z,ee){return ee.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),ee},iv:function(a,y,x,b,E,z,ee,re){if(Nt.Yb(a,y,E,z,ee,x,b))No(re,a,y,0,0),No(re,E,z,0,0);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Nt.iv(a,y,oe,le,ue,fe,ee,re),Nt.iv(ue,fe,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Nt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Nt.ep(a,y,oe,le,ue,fe,ee,re),Nt.ep(ue,fe,x,b,E,z,ee,re)}return re},Eo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,ve,Ce){if(Nt.Yb(a,y,ee,re,ve,x,b)&&Nt.Yb(a,y,ee,re,ve,E,z))return!Nt.Rl(a,y,ee,re,oe,le,ue,fe)||(ve=(a-ee)*(le-fe)-(y-re)*(oe-ue),ve===0)?!1:(Ce.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/ve,((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/ve),!0);var Le=(a+x)/2,De=(y+b)/2,_e=(x+E)/2,Ze=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+_e)/2,x=(De+Ze)/2,_e=(_e+E)/2,Ze=(Ze+z)/2;var st=(b+_e)/2,ht=(x+Ze)/2,mt=1/0,Lt=!1,Vt=0,di=0;return Nt.Eo(a,y,Le,De,b,x,st,ht,oe,le,ue,fe,ve,Ce)&&(a=(Ce.x-oe)*(Ce.x-oe)+(Ce.y-le)*(Ce.y-le),a<mt&&(mt=a,Lt=!0,Vt=Ce.x,di=Ce.y)),Nt.Eo(st,ht,_e,Ze,E,z,ee,re,oe,le,ue,fe,ve,Ce)&&(Ce.x-oe)*(Ce.x-oe)+(Ce.y-le)*(Ce.y-le)<mt&&(Lt=!0,Vt=Ce.x,di=Ce.y),Lt&&(Ce.x=Vt,Ce.y=di),Lt},Fo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,ve){var Ce=0;if(Nt.Yb(a,y,ee,re,ve,x,b)&&Nt.Yb(a,y,ee,re,ve,E,z)){if(ve=(a-ee)*(le-fe)-(y-re)*(oe-ue),ve===0)return Ce;var Le=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/ve,De=((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/ve;if(Le>=ue)return Ce;if((oe>ue?oe-ue:ue-oe)<(le>fe?le-fe:fe-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),De<oe||De>a)return Ce}else if(a<ee?(oe=a,a=ee):oe=ee,Le<oe||Le>a)return Ce;0<ve?Ce++:0>ve&&Ce--}else{Le=(a+x)/2,De=(y+b)/2;var _e=(x+E)/2,Ze=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+_e)/2,x=(De+Ze)/2,_e=(_e+E)/2,Ze=(Ze+z)/2;var st=(b+_e)/2,ht=(x+Ze)/2;Ce+=Nt.Fo(a,y,Le,De,b,x,st,ht,oe,le,ue,fe,ve),Ce+=Nt.Fo(st,ht,_e,Ze,E,z,ee,re,oe,le,ue,fe,ve)}return Ce},qh:function(a,y,x,b,E,z,ee){return Nt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Nt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ee.h(b,y),!1):E>a?(ee.h(a,y),!1):(ee.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ee.h(a,y),!1):1.000005<E?(ee.h(x,b),!1):(ee.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,ee,re,oe){return Nt.B(a,x)&&Nt.B(y,b)?(oe.h(a,y),!1):Nt.$(E,ee)?Nt.$(a,x)?(Nt.qh(a,y,x,b,E,z,oe),!1):Nt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Nt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(oe.h(a,E),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(b-y)/(x-a),Nt.$(re,ee)?(Nt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Nt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(oe.h(b,y),!1):E>a?(oe.h(a,y),!1):(oe.h(E,y),!0)):Nt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Nt.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,ee,re,oe,le){function ue(_e,Ze){var st=(_e-a)*(_e-a)+(Ze-y)*(Ze-y);st<fe&&(fe=st,oe.h(_e,Ze))}var fe=1/0;ue(oe.x,oe.y);var ve=0,Ce=0,Le=0,De=0;if(E<ee?(ve=E,Ce=ee):(ve=ee,Ce=E),z<re?(Le=E,De=ee):(Le=ee,De=E),ve=(Ce-ve)/2+le,le=(De-Le)/2+le,E=(E+ee)/2,z=(z+re)/2,ve===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(ve=1-(x-E)*(x-E)/(ve*ve),0>ve)return oe;ve=Math.sqrt(ve),b=-le*ve+z,ue(x,le*ve+z),ue(x,b)}else{if(x=(b-y)/(x-a),b=1/(ve*ve)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*E/(ve*ve),ve=re*re-4*b*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+E*E/(ve*ve)-1+(y-x*a)*(y-x*a)/(le*le)),0>ve)return oe;ve=Math.sqrt(ve),le=(-re+ve)/(2*b),ue(le,x*le-x*a+y),ve=(-re-ve)/(2*b),ue(ve,x*ve-x*a+y)}return oe},Ff:function(a,y,x,b,E,z,ee,re,oe){var le=1e21,ue=a,fe=y;if(Nt.Ve(a,y,a,b,E,z,ee,re,oe)){var ve=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z);ve<le&&(le=ve,ue=oe.x,fe=oe.y)}return Nt.Ve(x,y,x,b,E,z,ee,re,oe)&&(ve=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),ve<le&&(le=ve,ue=oe.x,fe=oe.y)),Nt.Ve(a,y,x,y,E,z,ee,re,oe)&&(y=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),y<le&&(le=y,ue=oe.x,fe=oe.y)),Nt.Ve(a,b,x,b,E,z,ee,re,oe)&&(a=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),a<le&&(le=a,ue=oe.x,fe=oe.y)),oe.h(ue,fe),1e21>le},us:function(a,y,x){return Nt.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,ee,re){var oe=a+x,le=y+b;return E===ee?(z<re?(ee=z,z=re):ee=re,a<=E&&E<=oe&&ee<=le&&z>=y):z===re?(E<ee?(re=E,E=ee):re=ee,y<=z&&z<=le&&re<=oe&&E>=a):!!(fa(a,y,x,b,E,z)||fa(a,y,x,b,ee,re)||Nt.Rl(a,y,oe,y,E,z,ee,re)||Nt.Rl(oe,y,oe,le,E,z,ee,re)||Nt.Rl(oe,le,a,le,E,z,ee,re)||Nt.Rl(a,le,a,y,E,z,ee,re))},Rl:function(a,y,x,b,E,z,ee,re){return a===x&&y===b&&E===ee&&z===re?a===E&&y===z:0>=Nt.Fl(a,y,x,b,E,z)*Nt.Fl(a,y,x,b,ee,re)&&0>=Nt.Fl(E,z,ee,re,a,y)*Nt.Fl(E,z,ee,re,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 ee=Math.PI;z||(b*=ee/180,E*=ee/180);var re=b>E?-1:1;z=[];var oe=ee/2,le=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return oe=le+re*Math.min(b,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<b;)E=le+re*Math.min(b,oe),z.push(Nt.Vy(x,le,E,a,y)),b-=Math.abs(E-le),le=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ee*ee+oe*oe,ue=le+ee*ee+oe*re;return le=4/3*(Math.sqrt(2*le*ue)-ue)/(ee*re-oe*ee),re=ee-le*oe,ee=oe+le*ee,oe=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-ee*le,E+re*le+ee*z,b+re*z-oe*le,E+re*le+oe*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,ee){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(re,a),ee},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 ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,le=ee===0?x:b;return(ee===0?E:z)&&(le=-le),ee=re,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Nt.az(oe,ee===0?a:y,le,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 ee=y*b,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ue=a/(y+E),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)re=y;else if(0>ue)oe=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 Gi,um:new Gi,Mf:new Gi,Nf:0,vm:100};Nt.za=Nt.AA;function ei(a){Br(this),this.l=2,a===void 0&&(a=ei.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ei.o?this.ee=new En:(ei.V===null&&(ei.V=new En().freeze()),this.ee=ei.V),this.aq=this.ee.Ja,this.Ip=new hn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ls,this.gg=ml,this.Rk=this.Sk=NaN,this.Uf=Wn}ei.prototype.copy=function(){var a=new ei;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===ei.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},ei.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ei.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ei.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},ei.prototype.ka=function(){if(Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ei.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},ei.prototype.Xa=function(a){if(!(a instanceof ei))return!1;if(this.type!==a.type)return this.type===ei.j&&a.type===ei.o?Ic(this,a):a.type===ei.j&&this.type===ei.o?Ic(a,this):!1;if(this.type===ei.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 Nt.B(this.startX,a.startX)&&Nt.B(this.startY,a.startY)&&Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)};function Ic(a,y){return a.type!==ei.j||y.type!==ei.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Nt.B(a.startX,y.startX)&&Nt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===na&&Nt.B(a.endX,y.endX)&&Nt.B(a.endY,y.endY))))}ei.ia=function(a){return a.toString()},ei.prototype.qb=function(a){a.classType===ei&&(this.type=a)},ei.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ei.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 ei.u:var y=new hn(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 ei.F:if(y=new hn(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 ei.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()}},ei.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},ei.parse=function(a,y){function x(){return De>=mt-1?!0:le[De+1].match(Lt)!==null}function b(){return De++,le[De]}function E(Sr){var dr=parseFloat(b()),Do=parseFloat(b());_e===_e.toLowerCase()&&(dr=ht.x+dr,Do=ht.y+Do),Sr.h(dr,Do)}function z(){return E(ht),ht}function ee(){return E(st),st}function re(){var Sr=Ze.toLowerCase();return Sr!=="c"&&Sr!=="s"&&Sr!=="q"&&Sr!=="t"?ht:new Ue(2*ht.x-st.x,2*ht.y-st.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a<le.length;a++){var ue=le[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=an();for(var fe="",ve=!1,Ce=0;Ce<ue.length;Ce++){var Le=ue[Ce];Le!=="."||ve?Le==="."?(oe.push(fe),fe="."):fe+=Le:(ve=!0,fe+=Le)}for(oe.push(fe),le.splice(a,1),ue=0;ue<oe.length;ue++)le.splice(a+ue,0,oe[ue]);a+=oe.length-1,Mn(oe)}}var De=-1,_e="",Ze="";oe=new Ue(0,0);var st=new Ue(0,0),ht=new Ue(0,0),mt=le.length;a=FS(null),ve=fe=ue=!1,Ce=!0,Le=null;for(var Lt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(De>=mt-1);)if(Ze=_e,_e=b(),_e!=="")switch(_e.toUpperCase()){case"X":Ce=!0,fe=ue=!1;break;case"M":for(Le=z(),a.mc===null||Ce===!0?(Bg(a,Le.x,Le.y,ue,!fe,ve),Ce=!1):a.moveTo(Le.x,Le.y),oe.assign(ht);!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"L":for(;!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"H":for(;!x();)ht=new Ue((_e===_e.toLowerCase()?ht.x:0)+parseFloat(b()),ht.y),a.lineTo(ht.x,ht.y);break;case"V":for(;!x();)ht=new Ue(ht.x,(_e===_e.toLowerCase()?ht.y:0)+parseFloat(b())),a.lineTo(ht.x,ht.y);break;case"C":for(;!x();){Le=new Ue,E(Le);var Vt=ee(),di=z();yc(a,Le.x,Le.y,Vt.x,Vt.y,di.x,di.y)}break;case"S":for(;!x();)Le=re(),Vt=ee(),di=z(),yc(a,Le.x,Le.y,Vt.x,Vt.y,di.x,di.y);break;case"Q":for(;!x();)Le=ee(),Vt=z(),Zm(a,Le.x,Le.y,Vt.x,Vt.y);break;case"T":for(;!x();)st=Le=re(),Vt=z(),Zm(a,Le.x,Le.y,Vt.x,Vt.y);break;case"B":for(;!x();){Le=parseFloat(b()),Vt=parseFloat(b()),di=parseFloat(b());var Ci=parseFloat(b()),vi=parseFloat(b()),Jn=vi,kn=!1;x()||(Jn=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),_e===_e.toLowerCase()&&(di+=ht.x,Ci+=ht.y),a.arcTo(Le,Vt,di,Ci,vi,Jn,kn)}break;case"A":for(;!x();)Le=Math.abs(parseFloat(b())),Vt=Math.abs(parseFloat(b())),di=parseFloat(b()),vi=Ci=!1,kn=Jn=0,Jn=b(),Jn.length===1?(Ci=!!parseFloat(Jn),vi=!!parseFloat(b()),Jn=parseFloat(b())):Jn.length===2?(Ci=!!parseFloat(Jn[0]),vi=!!parseFloat(Jn[1]),Jn=parseFloat(b())):(Ci=!!parseFloat(Jn[0]),vi=!!parseFloat(Jn[1]),Jn=parseFloat(Jn.slice(2))),kn=parseFloat(b()),_e===_e.toLowerCase()&&(Jn=ht.x+Jn,kn=ht.y+kn),ht.h(Jn,kn),Px(a,Le,Vt,di,Ci,vi,Jn,kn);break;case"Z":wx(a),ht.assign(oe);break;case"F":for(Le="",Vt=1;le[De+Vt];)if(le[De+Vt]==="0")ve=!0,Vt++;else if(le[De+Vt].match(/[Uu]/)!==null)Vt++;else if(le[De+Vt].match(Lt)===null)Vt++;else{Le=le[De+Vt];break}Le.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Le="",Vt=1;le[De+Vt];)if(le[De+Vt].match(/[Ff]/)!==null)Vt++;else if(le[De+Vt].match(Lt)===null)Vt++;else{Le=le[De+Vt];break}Le.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},ei.Ha=function(a,y){for(var x=a.length,b=Ue.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}Ue.free(b)},ei.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ei.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},ei.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ei.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 ee=b[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),rc(this,a,!1),No(a,0,0,0,0),a.freeze()},ei.prototype.ix=function(){var a=new hn;return rc(this,a,!0),a};function rc(a,y,x){switch(a.type){case ei.j:case ei.u:case ei.F:x?y.h(a.od,a.pd,0,0):No(y,a.od,a.pd,0,0),No(y,a.Dc,a.Ec,0,0);break;case ei.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):No(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,le=z.startY,ue=0;ue<re;ue++){var fe=ee[ue];switch(fe.type){case na:case ss:oe=fe.endX,le=fe.endY,No(y,oe,le,0,0);break;case Us:Nt.Dl(oe,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case Ie:Nt.iv(oe,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case Ye:case nt:var ve=fe.type===Ye?nl(fe,z):yl(fe,z,oe,le),Ce=ve.length;if(Ce===0){oe=fe.type===Ye?fe.centerX:fe.endX,le=fe.type===Ye?fe.centerY:fe.endY,No(y,oe,le,0,0);break}fe=null;for(var Le=0;Le<Ce;Le++)fe=ve[Le],Nt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(oe=fe[6],le=fe[7]);break;default:dt("Unknown Segment type: "+fe.type)}}}break;default:dt("Unknown Geometry type: "+a.type)}}ei.prototype.normalize=function(){this._isFrozen&&Fn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ue(-a.x,-a.y)},ei.prototype.offset=function(a,y){return this._isFrozen&&Fn(this),this.transform(1,0,0,1,a,y),this},ei.prototype.scale=function(a,y){return this._isFrozen&&Fn(this),this.transform(a,0,0,y,0,0),this},ei.prototype.rotate=function(a,y,x){this._isFrozen&&Fn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Mr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Mr.free(b),this},Ee=ei.prototype,Ee.transform=function(a,y,x,b,E,z){switch(this.type){case ei.j:case ei.u:case ei.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+E,this.pd=ee*y+re*b+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+E,this.Ec=ee*y+re*b+z;break;case ei.o:for(var oe=this.figures.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+E,fe.startY=ee*y+re*b+z,fe=fe.segments.s;for(var ve=fe.length,Ce=0;Ce<ve;Ce++){var Le=fe[Ce];switch(Le.type){case na:case ss:ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Us:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.point2X,re=Le.point2Y,Le.point2X=ee*a+re*x+E,Le.point2Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Ie:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Ye:ee=Le.centerX,re=Le.centerY,Le.centerX=ee*a+re*x+E,Le.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.startAngle+=ee),0>a&&(Le.startAngle=180-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),0>b&&(Le.startAngle=-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY!==void 0&&(Le.radiusY*=Math.sqrt(y*y+b*b));break;case nt:if(ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z,Le.radiusX===0||Le.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.xAxisRotation+=ee),0>a&&(Le.xAxisRotation=180-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),0>b&&(Le.xAxisRotation=-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY*=Math.sqrt(y*y+b*b);break;default:dt("Unknown Segment type: "+Le.type)}}}}return this._isInvalidBounds=!0,this},Ee.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 ei.j:return Nt.Yb(x,b,E,z,y,a.x,a.y);case ei.u:var ee=hn.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=ee.ca(a),hn.free(ee),a;case ei.F:ee=Math.min(x,E)-y;var re=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:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case ei.o:return ih(this,a,y,!0,!1);default:return!1}};function ih(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,le,ue,fe,ve=a.figures.s,Ce=ve.length,Le=0;Le<Ce;Le++){var De=ve[Le],_e=!De.isEvenOdd;if(De.isFilled){if(b&&De.ca(z,y,x))return!0;var Ze=De.segments;oe=De.startX,le=De.startY;for(var st=oe,ht=le,mt=Ze.s,Lt=0;Lt<=Ze.length;Lt++){var Vt=void 0;if(Lt!==Ze.length){Vt=mt[Lt];var di=Vt.type;a=Vt.endX,fe=Vt.endY}else di=na,a=st,fe=ht;switch(di){case ss:if(st=rh(z,y,ee,y,oe,le,st,ht),isNaN(st))return!0;re+=st,st=a,ht=fe;break;case na:if(oe=rh(z,y,ee,y,oe,le,a,fe),isNaN(oe))return!0;re+=oe;break;case Us:ue=Nt.Fo(oe,le,Vt.point1X,Vt.point1Y,Vt.point2X,Vt.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case Ie:ue=Nt.Fo(oe,le,(oe+2*Vt.point1X)/3,(le+2*Vt.point1Y)/3,(2*Vt.point1X+a)/3,(2*Vt.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case Ye:case nt:di=Vt.type===Ye?nl(Vt,De):yl(Vt,De,oe,le);var Ci=di.length;if(Ci===0){if(oe=rh(z,y,ee,y,oe,le,Vt.type===Ye?Vt.centerX:Vt.endX,Vt.type===Ye?Vt.centerY:Vt.endY),isNaN(oe))return!0;re+=oe;break}Vt=null;for(var vi=0;vi<Ci;vi++){if(Vt=di[vi],vi===0){if(ue=rh(z,y,ee,y,oe,le,Vt[0],Vt[1]),isNaN(ue))return!0;re+=ue}ue=Nt.Fo(Vt[0],Vt[1],Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7],ee,y,z,y,.5),re+=ue}Vt!==null&&(a=Vt[6],fe=Vt[7]);break;default:dt("Unknown Segment type: "+Vt.type)}oe=a,le=fe}if(_e){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(De.ca(z,y,E?x:x+2))return!0}return!1}function rh(a,y,x,b,E,z,ee,re){if(Nt.Yb(E,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*b-y*x)*(E-ee)-(a-x)*(E*re-z*ee))/oe;if(y=(a*b-y*x)*(z-re)/oe,le>=a)return 0;if((E>ee?E-ee:ee-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<ee){if(le<E||le>ee)return 0}else if(le<ee||le>E)return 0;return 0<oe?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}Ee.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ue),this.type===ei.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,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;ee+=ue}}return y},Ee.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ei.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,ee=0;ee<b;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=E)return E=y[ee],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+=le}}return NaN},Ee.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ei.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,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],E=ue[2*a+2],a=ue[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;ee+=ue}}return y},Ee.xx=function(a){if(this.type===ei.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 ee=x;b=E}else ee=E,b=x;return a<=ee?ee===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ee)}if(x===E)return y<b?ee=y:(ee=b,b=y),z<=ee?ee===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ee);ee=(b-y)*(b-y)+(E-x)*(E-x);var re=Ue.alloc();return Nt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,Ue.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===ei.u){ee=this.startX,re=this.startY;var oe=this.endX;if(E=this.endY,ee!==oe||re!==E){y=oe-ee,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),oe),a=Math.min(Math.max(a,re),E),ee=Math.abs(b-ee),oe=Math.abs(b-oe),re=Math.abs(a-re),E=Math.abs(a-E);var le=Math.min(ee,oe,re,E);if(le===re)return b/z;if(le===oe)return(y+a)/z;if(le===E)return(2*y+x-b)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Ue.alloc(),E=1/0,re=ee=0,oe=y.length;for(var ue=le=0,fe=0;fe<oe;fe++)for(var ve=y[fe],Ce=x[fe],Le=ve.length,De=0;De<Le;De+=2){var _e=ve[De],Ze=ve[De+1];if(De!==0){Nt.qh(le,ue,_e,Ze,a.x,a.y,b);var st=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);st<E&&(E=st,ee=re,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),re+=Ce[(De-2)/2]}le=_e,ue=Ze}return Ue.free(b),a=ee/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===ei.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===ei.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===ei.F){var z=new Es;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new vo(Ye);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=nl(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<E;re++){var oe=a[re];Nt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,b),ee=oe[6],z=oe[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),ee=E.startX,z=E.startY,re=ee,oe=z;for(var le=E.segments.s,ue=le.length,fe=0;fe<ue;fe++){var ve=le[fe];switch(ve.type){case ss:4<=b.length&&(y.push(b),x.push(Bd(b))),b=[],b.push(ve.endX),b.push(ve.endY),ee=ve.endX,z=ve.endY,re=ee,oe=z;break;case na:b.push(ve.endX),b.push(ve.endY),ee=ve.endX,z=ve.endY;break;case Us:Nt.Qe(ee,z,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.5,b),ee=ve.endX,z=ve.endY;break;case Ie:Nt.ep(ee,z,ve.point1X,ve.point1Y,ve.endX,ve.endY,.5,b),ee=ve.endX,z=ve.endY;break;case Ye:var Ce=nl(ve,E),Le=Ce.length;if(Le===0){b.push(ve.centerX),b.push(ve.centerY),ee=ve.centerX,z=ve.centerY;break}for(var De=0;De<Le;De++){var _e=Ce[De];Nt.Qe(ee,z,_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],.5,b),ee=_e[6],z=_e[7]}break;case nt:if(Ce=yl(ve,E,ee,z),Le=Ce.length,De=ve.endX,_e=ve.endY,Le===0){b.push(De),b.push(_e),ee=De,z=_e;break}for(De=0;De<Le;De++)_e=Ce[De],Nt.Qe(ee,z,_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],.5,b),ee=_e[6],z=_e[7];break;default:dt("Segment not of valid type: "+ve.type)}ve.isClosed&&(b.push(re),b.push(oe))}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 ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(oa(x,b,ee,re))),x=ee,b=re}return y}Ee.add=function(a){return this.ee.add(a),this},Ee.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&Fn(this),this.fg=new Fi(a,y,E,z).freeze(),this.gg=new Fi(x,b,ee,re).freeze(),this},Qe.Object.defineProperties(ei.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===ei.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===ei.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,ee=0;ee<z;ee++)a+=E[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Fn(this,a),this.na=a,a===ei.o?this.ee=new En:(ei.V===null&&(ei.V=new En().freeze()),this.ee=ei.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Fn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Fn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Fn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Fn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Fn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Fn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Fn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Fn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ei.prototype.setSpots=ei.prototype.pm,ei.prototype.add=ei.prototype.add,ei.prototype.getFractionForPoint=ei.prototype.xx,ei.prototype.getPointAndAngleAlongPath=ei.prototype.Qu,ei.prototype.getAngleAlongPath=ei.prototype.wx,ei.prototype.getPointAlongPath=ei.prototype.Pu,ei.prototype.containsPoint=ei.prototype.ca,ei.prototype.transform=ei.prototype.transform,ei.prototype.rotate=ei.prototype.rotate,ei.prototype.scale=ei.prototype.scale,ei.prototype.offset=ei.prototype.offset,ei.prototype.normalize=ei.prototype.normalize,ei.prototype.computeBoundsWithoutOrigin=ei.prototype.ix,ei.prototype.equalsApprox=ei.prototype.Xa,ei.className="Geometry",ei.j=new sn(ei,"Line",0),ei.u=new sn(ei,"Rectangle",1),ei.F=new sn(ei,"Ellipse",2),ei.o=new sn(ei,"Path",3),ei.V=null,ei.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ei.className="Geometry",ei.stringify=ei.ia,ei.fillPath=ei.nb,ei.parse=ei.parse,ei.Line=ei.j,ei.Rectangle=ei.u,ei.Ellipse=ei.F,ei.Path=ei.o;function Es(a,y,x,b,E){Br(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 En,this.sr=this.pl.Ja,this.fw=null}Es.prototype.copy=function(){var a=new Es;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ee=Es.prototype,Ee.Xa=function(a){if(!(a instanceof Es&&Nt.B(this.startX,a.startX)&&Nt.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},Ee.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},Ee.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},Ee.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},Ee.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},Ee.add=function(a){return this.pl.add(a),this},Ee.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var ue=re[le];switch(ue.type){case ss:z=ue.endX,ee=ue.endY,b=ue.endX,E=ue.endY;break;case na:if(Nt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case Us:if(Nt.cs(b,E,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case Ie:if(Nt.jv(b,E,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case Ye:case nt:var fe=ue.type===Ye?nl(ue,this):yl(ue,this,b,E),ve=fe.length,Ce=ue.type===Ye?ue.centerX:ue.endX,Le=ue.type===Ye?ue.centerY:ue.endY;if(ve===0){if(Nt.Yb(b,E,Ce,Le,x,a,y))return!0;b=Ce,E=Le;break}for(Ce=null,Le=0;Le<ve;Le++)if(Ce=fe[Le],Le===0&&Nt.Yb(b,E,Ce[0],Ce[1],x,a,y)||Nt.cs(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,a,y,x))return!0;Ce!==null&&(b=Ce[6],E=Ce[7]);break;default:dt("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Nt.Yb(b,E,z,ee,x,a,y))return!0}return!1},Qe.Object.defineProperties(Es.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Fn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Fn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Fn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Fn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Fn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Fn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Es.prototype.add=Es.prototype.add,Es.prototype.equalsApprox=Es.prototype.Xa,Es.className="PathFigure";function vo(a,y,x,b,E,z,ee,re){Br(this),a===void 0&&(a=na),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===nt?(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 ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Ye&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===Ye&&(ee=Math.max(ee,0)),this.Pg=ee):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},Ee=vo.prototype,Ee.Xa=function(a){if(!(a instanceof vo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ss:case na:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY);case Us:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.point1X,a.point1X)&&Nt.B(this.point1Y,a.point1Y)&&Nt.B(this.point2X,a.point2X)&&Nt.B(this.point2Y,a.point2Y);case Ie:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.point1X,a.point1X)&&Nt.B(this.point1Y,a.point1Y);case Ye:return Nt.B(this.startAngle,a.startAngle)&&Nt.B(this.sweepAngle,a.sweepAngle)&&Nt.B(this.centerX,a.centerX)&&Nt.B(this.centerY,a.centerY)&&Nt.B(this.radiusX,a.radiusX)&&Nt.B(this.radiusY,a.radiusY);case nt:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Nt.B(this.xAxisRotation,a.xAxisRotation)&&Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.radiusX,a.radiusX)&&Nt.B(this.radiusY,a.radiusY);default:return!1}},Ee.qb=function(a){a.classType===vo&&(this.type=a)},Ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ss:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case na:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Us:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ie: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 Ye: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 nt: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":"")},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.close=function(){return this.isClosed=!0,this};function nl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Nt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=Mr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),ei.Ha(z,ee),Mr.free(ee)}for(x=z.length,b=0;b<x;b++)ee=z[b],ee[0]+=y,ee[1]+=E,ee[2]+=y,ee[3]+=E,ee[4]+=y,ee[5]+=E,ee[6]+=y,ee[7]+=E;return a.ae=z,a.ae}function yl(a,y,x,b){function E(De,_e,Ze,st){return(De*st<_e*Ze?-1:1)*Math.acos((De*Ze+_e*st)/(Math.sqrt(De*De+_e*_e)*Math.sqrt(Ze*Ze+st*st)))}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 ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,ue=a.Ec,fe=Math.cos(ee),ve=Math.sin(ee),Ce=fe*(x-le)/2+ve*(b-ue)/2;ee=-ve*(x-le)/2+fe*(b-ue)/2;var Le=Ce*Ce/(y*y)+ee*ee/(z*z);return 1<Le&&(y*=Math.sqrt(Le),z*=Math.sqrt(Le)),Le=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ce*Ce)/(y*y*ee*ee+z*z*Ce*Ce)),isNaN(Le)&&(Le=0),re=Le*y*ee/z,Le=Le*-z*Ce/y,isNaN(re)&&(re=0),isNaN(Le)&&(Le=0),x=(x+le)/2+fe*re-ve*Le,b=(b+ue)/2+ve*re+fe*Le,ue=E(1,0,(Ce-re)/y,(ee-Le)/z),fe=(Ce-re)/y,le=(ee-Le)/z,Ce=(-Ce-re)/y,re=(-ee-Le)/z,ee=E(fe,le,Ce,re),Ce=(fe*Ce+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(Ce*Ce+re*re)),-1>=Ce?ee=Math.PI:1<=Ce&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ce=y>z?z/y:1,y=Nt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Mr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,Ce),ei.Ha(y,z),Mr.free(z),a.ae=y,a.ae}Qe.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&&Fn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Fn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Fn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Fn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Fn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Fn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Fn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Fn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Fn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ui(a,">= zero",vo,"radiusX"),this._isFrozen&&Fn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ui(a,">= zero",vo,"radiusY"),this._isFrozen&&Fn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Fn(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&&Fn(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&&Fn(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&&Fn(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&&Fn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),vo.prototype.equalsApprox=vo.prototype.Xa;var ss=new sn(vo,"Move",0),na=new sn(vo,"Line",1),Us=new sn(vo,"Bezier",2),Ie=new sn(vo,"QuadraticBezier",3),Ye=new sn(vo,"Arc",4),nt=new sn(vo,"SvgArc",4);vo.className="PathSegment",vo.Move=ss,vo.Line=na,vo.Bezier=Us,vo.QuadraticBezier=Ie,vo.Arc=Ye,vo.SvgArc=nt;function zt(){this.H=null,this.xu=new Ue(0,0).freeze(),this.mt=new Ue(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}zt.prototype.copy=function(){var a=new zt;return this.clone(a)},zt.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},zt.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},zt.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},zt.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},Qe.Object.defineProperties(zt.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}}}),zt.prototype.getMultiTouchDocumentPoint=zt.prototype.Bz,zt.prototype.getMultiTouchViewPoint=zt.prototype.So,zt.className="InputEvent";function Zt(){this.H=null,this.xa="",this.ar=this.Lr=null}Zt.prototype.copy=function(){var a=new Zt;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Zt.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Qe.Object.defineProperties(Zt.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}}}),Zt.className="DiagramEvent";function pn(){this.Fm=Zn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}pn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},pn.prototype.copy=function(){var a=new pn;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=dn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=dn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=dn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=dn(y)&&typeof y.J=="function"?y.J():y,a},pn.prototype.qb=function(a){a.classType===pn&&(this.change=a)},pn.prototype.toString=function(){var a="";return a=this.change===Sn?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===Sn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=$n(this.object)),this.oldValue!==null&&(a+=" old: "+$n(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+$n(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},pn.prototype.I=function(a){return a?this.oldValue:this.newValue},pn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},pn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},pn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},pn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},pn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Qe.Object.defineProperties(pn.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Sn&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),pn.prototype.redo=pn.prototype.redo,pn.prototype.canRedo=pn.prototype.canRedo,pn.prototype.undo=pn.prototype.undo,pn.prototype.canUndo=pn.prototype.canUndo,pn.prototype.getParam=pn.prototype.Dz,pn.prototype.getValue=pn.prototype.I,pn.prototype.clear=pn.prototype.clear;var Sn=new sn(pn,"Transaction",-1),Zn=new sn(pn,"Property",0),Xn=new sn(pn,"Insert",1),hi=new sn(pn,"Remove",2);pn.className="ChangedEvent",pn.Transaction=Sn,pn.Property=Zn,pn.Insert=Xn,pn.Remove=hi;function Ii(){this.o=new En().freeze(),this.xa="",this.j=!1}Ii.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Ii.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Ii.prototype.canUndo=function(){return this.isComplete},Ii.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Ii.prototype.canRedo=function(){return this.isComplete},Ii.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Ii.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ki,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Zn&&b.object){var E=y.get(b.object);E||(E=new ki,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Qe.Object.defineProperties(Ii.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Ii.prototype.optimize=Ii.prototype.ak,Ii.prototype.redo=Ii.prototype.redo,Ii.prototype.canRedo=Ii.prototype.canRedo,Ii.prototype.undo=Ii.prototype.undo,Ii.prototype.canUndo=Ii.prototype.canUndo,Ii.prototype.clear=Ii.prototype.clear,Ii.className="Transaction";function li(){this.Pt=new An,this.Jd=!1,this.u=new En().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new En().freeze(),this.hl=new En,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}li.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},li.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},li.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ee=li.prototype,Ee.Xw=function(a){this.Pt.add(a)},Ee.Rx=function(a){this.Pt.remove(a)},Ee.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},Ee.eb=function(a){return a===void 0&&(a=""),Li(this,!0,a)},Ee.Kf=function(){return Li(this,!1,"")};function Li(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ji("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 ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-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}Ee.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},li.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},li.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){ji("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},li.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},li.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){ji("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},li.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new pn;for(b.change=Sn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},li.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ii);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||ji("Change not within a transaction: "+x.toString()))}},li.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Qe.Object.defineProperties(li.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),li.prototype.handleChanged=li.prototype.Tu,li.prototype.redo=li.prototype.redo,li.prototype.undo=li.prototype.undo,li.prototype.canUndo=li.prototype.canUndo,li.prototype.discardHistoryAfterIndex=li.prototype.lx,li.prototype.rollbackTransaction=li.prototype.Kf,li.prototype.commitTransaction=li.prototype.eb,li.prototype.startTransaction=li.prototype.Ea,li.prototype.removeModel=li.prototype.Rx,li.prototype.addModel=li.prototype.Xw,li.prototype.clear=li.prototype.clear,li.className="UndoManager";function oi(){Br(this),this.H=ah,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new zt,this.Zr=-1}oi.prototype.toString=function(){return this.name!==""?this.name+" Tool":bn(this.constructor)},oi.prototype.updateAdornments=function(){},oi.prototype.canStart=function(){return this.isEnabled},oi.prototype.doStart=function(){},oi.prototype.doActivate=function(){this.isActive=!0},oi.prototype.doDeactivate=function(){this.isActive=!1},oi.prototype.doStop=function(){},oi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},oi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},oi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},oi.prototype.doMouseMove=function(){},oi.prototype.doMouseUp=function(){this.stopTool()},oi.prototype.doMouseWheel=function(){},oi.prototype.canStartMultiTouch=function(){return!0},oi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),b=y.So(1,Ue.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}Ue.free(x),Ue.free(b)},oi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),b=y.So(1,Ue.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 Ue((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 ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Ue.free(x),Ue.free(b)},oi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},oi.prototype.doKeyUp=function(){},oi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},oi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},oi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(yr?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||(yr?y.meta:y.control)||y.shift||a.clearSelection()}},oi.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Yi(a,b,x),b.handled};function Yi(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}oi.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;b!==null&&(ee=b.mouseEnter,!(ee!==null&&(z===b||z!==null&&z.rg(b)||(ee(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},oi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},oi.prototype.doCurrentObjectChanged=function(){},oi.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Wr&&!y.shift||E===Ui&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Wr&&y.shift||E===Ui&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},oi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},oi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=bi(function(){x.doWaitAfter(b)},a)},oi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ft.clearTimeout(this.Zr),this.Zr=-1},oi.prototype.doWaitAfter=function(){},oi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ao);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},oi.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Qe.Object.defineProperties(oi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Kt&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),oi.prototype.startTransaction=oi.prototype.Ea,oi.className="Tool";function zn(){oi.call(this),this.name="ToolManager",this.hb=new En,this.ob=new En,this.Hb=new En,this.F=this.V=850,this.o=new ri(2,2).ja(),this.Ha=5e3,this.ia=Ui,this.u=Vr,this.Mp=this.j=null,this.zj=-1}Yt(zn,oi),zn.prototype.initializeStandardTools=function(){},zn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ao&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},zn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Yr&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Zr){y.bubbles=!0;return}if(this.gestureBehavior===Yr)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Ui?this.mouseWheelBehavior=Wr:this.mouseWheelBehavior===Wr&&(this.mouseWheelBehavior=Ui)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},zn.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Zr){y.bubbles=!0;return}if(this.gestureBehavior===Yr)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}}Mi(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Mi(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 Ao&&(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 Ao)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},zn.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ao){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof ir&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ft.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=bi(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&&(ft.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ao?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ir&&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)},Qe.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 Ao?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),zn.prototype.replaceStandardTool=zn.prototype.gb;var Ui=new sn(zn,"WheelScroll",0),Wr=new sn(zn,"WheelZoom",1),Nr=new sn(zn,"WheelNone",2),Vr=new sn(zn,"GestureZoom",3),Yr=new sn(zn,"GestureCancel",4),Zr=new sn(zn,"GestureNone",5);zn.className="ToolManager",zn.WheelScroll=Ui,zn.WheelZoom=Wr,zn.WheelNone=Nr,zn.GestureZoom=Vr,zn.GestureCancel=Yr,zn.GestureNone=Zr;function Ri(){oi.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Ue(NaN,NaN),this.Fr=new Ue,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new An().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Uo;Yt(Ri,oi),Ri.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Ri.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Ri.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(yr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ri.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ot=null,this.isActive=!0,this.tl.set(a.position),jo(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&fl(a),hc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ot=this,Qt=this.diagram,this.doSimulatedDragOut()))};function jo(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Qn?(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 mi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ri.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ri.prototype.Pd=function(a){return a===void 0?new Kd(fo):this.isGridSnapEnabled?new Kd(new Ue(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},Ri.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ia(this),Du(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Uo.count){for(var y=Uo,x=y.length,b=0;b<x;b++){var E=y.M(b);ts(E),xa(E),ia(E),E.diagram.ug()}y.clear()}ts(this),this.tl.h(NaN,NaN),Qt!==null&&(Qt.currentCursor=""),Ot=Qt=null,xa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},Ri.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ia(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Xa(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Na(){var a=Ot;xa(a),sa(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ri.prototype.doCancel=function(){xa(this),sa(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ri.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ri.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Aa(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):sa(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new ki,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Qn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,jo(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function xa(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Qn&&(x.value.point=new Ue(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 ga(a,y,x){var b=a.diagram,E=a.startPoint,z=Ue.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ue.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(fl(b),b.hk())}Ri.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Yu(b,a,y,this.dragOptions,x)};function sa(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Qn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),wc(b,-E.x,-E.y)}y.bd()}}function wa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Pa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=Xa(a,E,b),!a.isActive&&Ot===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Pr)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&Ot===null||(a.doDragOver(y,b),!a.isActive&&Ot===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Ri.prototype.findDragOverObject=function(a){var y=this;return Vu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ao||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ri.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Xa(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<E;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ot===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ns(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),b=!0,!y.handled));x++);return b}function ns(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(le){return b.findValidLinkablePort(le,x)});a=Ue.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var oe=re.ga(so,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Ue.free(a),ee}function Pa(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,ee=null;x.fromNode===null&&(z=za(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=za(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),E.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Ki(E,ee,z,oe,re):Ki(E,null,null,null,null)}}}}Ri.prototype.doDragOver=function(){};function As(a,y){var x=a.diagram;a.dragsLink&&Pa(a,!0),ia(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(E,z),E.handled))break;_s(a,E,z),z=ns(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ot!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof ci&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ot!==null){for(a=hn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof ci&&$e(x,b,a);hn.free(a)}}}function _s(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Pr||(x=a.mouseDrop,x!==null&&x(y))}function $e(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 Qn},!0,function(E){return E instanceof Qn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ri.prototype.doDropOnto=function(){},Ri.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Aa(this,!1),hc(a,this.copiedParts),ga(this,this.copiedParts,!1),Du(a,this.copiedParts)):this.mayMove()?(xa(this),ga(this,this.draggedParts,!0)):this.mayDragOut()?(Aa(this,!1),ga(this,this.copiedParts,!1)):xa(this),wa(this,a.lastInput.documentPoint))}},Ri.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(xa(this),Aa(this,!0),hc(a,this.copiedParts),ga(this,this.copiedParts,!1),Du(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,xa(this),this.mayMove()&&(ga(this,this.draggedParts,!0),wa(this,a.lastInput.documentPoint))),this.Ym=!0,As(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ot(this),a.Ya(),Du(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ri.prototype.simulatedMouseMove=function(a,y,x){if(Ot===null)return!1;var b=Ot.diagram;x instanceof Kt||(x=null);var E=Qt;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ot.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Qt=x,x!==null&&x!==b&&(Na(),E=x.toolManager.findTool("Dragging"),E!==null&&(Uo.contains(E)||Uo.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Ri.prototype.simulatedMouseUp=function(a,y,x){if(Ot===null)return!1;var b=Qt,E=Ot.diagram;if(x===null)return Ot.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ot.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Qt=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Na(),Uo.contains(b)||Uo.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Ue),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=Ot,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function ot(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof ci&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ri.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(yr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ri.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ri.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Ri.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ri.prototype.Az=function(){return Ot},Ri.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ot;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ri.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),xl(a),a.animationManager.Cc(),a=Ot,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ri.prototype.doSimulatedDragLeave=function(){var a=Ot;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ri.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ot;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Dt(this,y.draggedParts.Lf(),!1,a.firstInput),ga(this,this.copiedParts,!1),wa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ri.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ot;if(y!==null){var x=y.diagram;if(y.Ym=!0,xa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Dt(this,y.draggedParts.Lf(),!0,a.lastInput),ga(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)})),As(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Dt(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=hn.alloc();E=b=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var ue=le.location;le=ue.x,ue=ue.y,isNaN(le)||isNaN(ue)||(le<b&&(b=le),ue<E&&(E=ue),le>ee&&(ee=le),ue>re&&(re=ue))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,hn.free(z),z=a.Fr,ee=new ki,re=Ue.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof Qn&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,wc(ue,z.x-b,z.y-E),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(b-le.x),z.y-(E-le.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Ue.free(re),a.copiedParts=ee,jo(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ri.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ri.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ue},Qe.Object.defineProperties(Ri.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Ri.prototype.getDraggingSource=Ri.prototype.Az;var Ot=null,Qt=null;Ri.className="DraggingTool",Uo=new En,Wi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),zn.prototype.doCancel=function(){Ot!==null&&Ot.doCancel(),oi.prototype.doCancel.call(this)};function Gt(){oi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Qn,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 ci,y=new Tr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Io,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ci,y=new Tr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Io,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new ki,this.Of=this.gj=this.Pf=null}Yt(Gt,oi),Gt.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Gt.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=ri.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,ri.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=so,z=Ue.alloc(),x.location=y.ga(so,z),Ue.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Gt.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Io,y.fromSpot=Ua,y.toSpot=Ua),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Gt.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Gt.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ci){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Gt.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ci))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof ci)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Gt.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(fe){return E.findValidLinkablePort(fe,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof ci){var oe=ee.ga(so,Ue.alloc()),le=x.x-oe.x,ue=x.y-oe.y;Ue.free(oe),oe=le*le+ue*ue,oe<b&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,b=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof ci&&(x.layer===null||x.layer.allowLink))?y:null},Gt.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},Gt.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},Gt.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Gt.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ci))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof ci))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Gt.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)},Gt.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),Ln(this,x,y,b)};function Ln(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Ln(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Ln(a,y.labeledLink,x,b))))}Gt.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!Cn(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!Cn(this,a,y,x,!0)}if(b===lp)return a===y?a=!0:(b=new An,b.add(y),a=wn(this,b,a,y,x)),!a;if(b===up)return!Cn(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new An,b.add(y),a=ti(this,b,a,y,x)),!a}return!0};function Cn(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 ee=z.value;if(ee!==b&&(!E||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Cn(a,ee,x,b,E)))return!0}return!1}function wn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&wn(a,y,ee,b,E)))return!0}return!1}function ti(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 ee=z.value;if(ee!==E){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&ti(a,y,re,b,E))return!0}}return!1}Qe.Object.defineProperties(Gt.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}}}),Gt.className="LinkingBaseTool";function jn(){Gt.call(this),this.name="Linking",this.V={},this.F=null,this.K=qn,this.Xd=null}Yt(jn,Gt),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 ci)))return null;var x=this.direction;if(x===qn||x===Ei){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===qn||x===Pi)&&(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 ci&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof ci&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},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(){Gt.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 ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof ci&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=ee):(y=re,x=ee,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?(ee===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 Qn)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(){},Qe.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 qn=new sn(jn,"Either",0),Ei=new sn(jn,"ForwardsOnly",0),Pi=new sn(jn,"BackwardsOnly",0);jn.className="LinkingTool",jn.Either=qn,jn.ForwardsOnly=Ei,jn.BackwardsOnly=Pi;function mi(){Gt.call(this),this.name="Relinking";var a=new Tr;a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Tr,a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new hn}Yt(mi,Gt),mi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Qn){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)}},mi.prototype.makeAdornment=function(a,y){var x=new Ao;return x.type=Gn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},mi.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},mi.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ao&&x.adornedPart instanceof Qn))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=Er),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Er),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},mi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Rg||x===Pc)&&(x=Gl),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},mi.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()},mi.prototype.doStop=function(){Gt.prototype.doStop.call(this),this.handle=null},mi.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 ee=this.targetPort.part;ee instanceof ci&&(this.isForwards?(b=ee,E=this.targetPort):(y=ee,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()}}},mi.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},mi.prototype.doNoRelink=function(){};function Ki(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)}Qe.Object.defineProperties(mi.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),mi.className="RelinkingTool",Wi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Wi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Si(){oi.call(this),this.name="LinkReshaping";var a=new Tr;a.figure="Rectangle",a.desiredSize=Ma,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Tr,a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ue,this.Yq=new En}Yt(Si,oi),Si.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Xi},Si.prototype.om=function(a,y){a.reshapingBehavior=y},Si.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Qn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Si.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ao,E.type=Gn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==zu)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,E.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&b){oe=y.i(x);var le=y.i(x+1);Nt.B(oe.x,le.x)&&Nt.B(oe.y,le.y)&&(le=y.i(x-1)),Nt.B(oe.x,le.x)?(this.om(re,Ur),re.cursor="n-resize"):Nt.B(oe.y,le.y)&&(this.om(re,ar),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),le=y.i(z),Nt.B(oe.x,le.x)&&Nt.B(oe.y,le.y)&&(oe=y.i(z+1)),Nt.B(oe.x,le.x)?(this.om(re,Ur),re.cursor="n-resize"):Nt.B(oe.y,le.y)&&(this.om(re,ar),re.cursor="w-resize")):ee!==z&&(this.om(re,oo),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Si.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Si.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Si.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Si.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Qn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Si.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Si.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Si.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Si.prototype.getResegmentingPoint=function(){return this.handle.ga(so)},Si.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Si.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(nr(this,ee,b,E,z,!0)||nr(this,ee,b,E,z,!1))){var re=y.points.copy();nr(this,ee,b,E,z,!0)?(re.cd(x-2,new Ue(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Ue(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Ue((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Ue((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(nr(this,b,E,z,ee,!0)||nr(this,b,E,z,ee,!1))&&(re=y.points.copy(),nr(this,b,E,z,ee,!0)?(re.cd(x-1,new Ue(b.x,(b.y+ee.y)/2)),re.cd(x+2,new Ue(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new Ue((b.x+ee.x)/2,b.y)),re.cd(x+2,new Ue((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Ue.alloc(),Nt.qh(b.x,b.y,z.x,z.y,E.x,E.y,ee)&&ee.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Ue.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function nr(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}Si.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Ur?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ar&&(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===Ur?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ar&&(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),ee=y.i(b+1);Nt.B(z.x,E.x)&&Nt.B(E.y,ee.y)?(Nt.B(z.x,y.i(b-2).x)&&!Nt.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),Nt.B(ee.y,y.i(b+2).y)&&!Nt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)):Nt.B(z.y,E.y)&&Nt.B(E.x,ee.x)?(Nt.B(z.y,y.i(b-2).y)&&!Nt.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),Nt.B(ee.x,y.i(b+2).x)&&!Nt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Nt.B(z.x,E.x)&&Nt.B(E.x,ee.x)?(Nt.B(z.x,y.i(b-2).x)&&!Nt.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),Nt.B(ee.x,y.i(b+2).x)&&!Nt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Nt.B(z.y,E.y)&&Nt.B(E.y,ee.y)&&(Nt.B(z.y,y.i(b-2).y)&&!Nt.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),Nt.B(ee.y,y.i(b+2).y)&&!Nt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(so,Ue.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ue.alloc()),y.L(0,b.x,b.y),Ue.free(z),Ue.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(so,Ue.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ue.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ue.free(x),Ue.free(a));y.zf()},Si.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case oo:return a;case Ur:return new Ue(y.i(x).x,a.y);case ar:return new Ue(a.x,y.i(x).y);default:case Xi:return y.i(x)}},Qe.Object.defineProperties(Si.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Si.prototype.setReshapingBehavior=Si.prototype.om,Si.prototype.getReshapingBehavior=Si.prototype.Ru;var Xi=new sn(Si,"None",0),ar=new sn(Si,"Horizontal",1),Ur=new sn(Si,"Vertical",2),oo=new sn(Si,"All",3);Si.className="LinkReshapingTool",Si.None=Xi,Si.Horizontal=ar,Si.Vertical=Ur,Si.All=oo,Wi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function fr(){oi.call(this),this.name="Resizing",this.o=new ri(1,1).freeze(),this.j=new ri(9999,9999).freeze(),this.yg=new ri(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Tr;a.alignmentFocus=so,a.figure="Rectangle",a.desiredSize=Ma,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ue,this.Dw=new ri,this.Tn=new Ue,this.rt=new ri(0,0),this.qt=new ri(1/0,1/0),this.pt=new ri(1,1)}Yt(fr,oi),fr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Qn)){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)}},fr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ao,y.type=Gn.Spot,y.locationSpot=so;var x=new Zl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,lu)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,es)),y.add(this.makeHandle(a,Ms)),y.add(this.makeHandle(a,bs)),y.add(this.makeHandle(a,hs))}else if(ch(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},fr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},fr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=so),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Gn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},fr.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},fr.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))},fr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},fr.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},fr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},fr.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,Ue.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ue.free(E)}},fr.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,Ue.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ue.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},fr.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 En;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;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()}},fr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=so);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,le=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var ve=ee.height;0>=fe&&(fe=1),0>=ve&&(ve=1),fe=ve/fe}return ve=Ue.alloc(),Nt.No(a.x,a.y,re,oe,E.width,E.height,ve),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ve.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(ve.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(ve.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(ve.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width)):(a.x=Math.max(ve.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ve.x-re,b.width),x.width),a.y=Math.max(ve.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(ve.x-re,b.width),x.width),a.height=Math.max(Math.min(ve.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(ve.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(ve.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ve.y-oe,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))),Ue.free(ve),a},fr.prototype.computeReshape=function(){var a=Bn;return this.adornedObject instanceof Tr&&(a=bv(this.adornedObject)),!(a===Ni||this.diagram.lastInput.shift)},fr.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},fr.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},fr.prototype.computeCellSize=function(){var a=new ri(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Qe.Object.defineProperties(fr.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ao)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),fr.className="ResizingTool",Wi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ar(){oi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ue,this.ue=null;var a=new Tr;a.figure="Ellipse",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ue(NaN,NaN),this.u=0,this.F=50}Yt(Ar,oi),Ar.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)}},Ar.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ao,y.type=Gn.Position,y.locationSpot=so;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ch(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ar.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},Ar.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)},Ar.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(so)},Ar.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)},Ar.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ue(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ar.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ar.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ar.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ar.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()},Ar.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()}},Ar.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},Qe.Object.defineProperties(Ar.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ao)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Ar.className="RotatingTool",Wi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Eo(){oi.call(this),this.name="ClickSelecting"}Yt(Eo,oi),Eo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Eo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Eo.className="ClickSelectingTool";function sr(){oi.call(this),this.name="Action",this.pk=null}Yt(sr,oi),sr.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},sr.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()},sr.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))}},sr.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()},sr.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())},sr.prototype.doStop=function(){this.pk=null},sr.className="ActionTool";function Rr(){oi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ue(0,0)}Yt(Rr,oi),Rr.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)},Rr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Rr.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()&&(ch(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);dn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ue.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ue.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Qe.Object.defineProperties(Rr.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}}}),Rr.className="ClickCreatingTool";function gr(){oi.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}Yt(gr,oi),gr.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))},gr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},gr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},gr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=ri.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ri.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},gr.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()},gr.prototype.computeBoxBounds=function(){var a=this.diagram;return new hn(a.firstInput.documentPoint,a.lastInput.documentPoint)},gr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),yr?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 En,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)}},Qe.Object.defineProperties(gr.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}}}),gr.className="DragSelectingTool";function Zi(){oi.call(this),this.name="Panning",this.Xt=new Ue,this.xy=new Ue,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ft.document,"scroll",a.Kw,!1),a.stopTool()}}Yt(Zi,oi),Zi.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())},Zi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ft.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Zi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Zi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Zi.prototype.doMouseMove=function(){this.move()},Zi.prototype.doMouseUp=function(){this.move(),this.stopTool()},Zi.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)}},Qe.Object.defineProperties(Zi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Zi.className="PanningTool",Wi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Wi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Wi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Wi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Wi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ir(){this.F=this.u=this.j=this.o=null}Qe.Object.defineProperties(ir.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}}}),ir.className="HTMLInfo";function jr(a,y,x){this.text=a,this.hx=y,this.visible=x}jr.className="ContextMenuButtonInfo";function ao(){oi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ue,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Yt(ao,oi);function lo(a){var y=new ir;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Ho=y,a.tu=function(){a.stopTool()},y=gi("div");var x=gi("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=gi("style");ft.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",rr,!1),b.addEventListener(y,"selectstart",rr,!1),b.addEventListener(x,"contextmenu",rr,!1)),y.className="goCXforeground",x.className="goCXbackground",ft.document.body&&(ft.document.body.appendChild(y),ft.document.body.appendChild(x)),Po=y,ea=x,ja=!0}function rr(a){return a.preventDefault(),!1}ao.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},ao.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ao.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ao.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Kt||(a instanceof At?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},ao.prototype.doActivate=function(){},ao.prototype.doMouseDown=function(){if(oi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Lo(this)},ao.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Lo(this)};function Lo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof ir||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Ro(a,!0),a.isActive||a.stopTool())}ao.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ro(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Ho,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof At?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ao&&!a.currentContextMenu.visible&&a.stopTool()}}ao.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ao.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ao){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof ir&&a.show(y,x,this);this.currentContextMenu=a},ao.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},ao.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ao?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ir&&(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 En;return y.add(new jr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new jr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new jr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new jr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new jr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new jr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new jr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new jr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new jr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new jr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new jr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new jr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new jr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}ao.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Wo(this)),Po.innerHTML="",ea.addEventListener("pointerdown",this.tu,!1);var y=this,x=gi("ul");x.className="goCXul",Po.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=gi("li"),z.className="goCXli";var ee=gi("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}Po.style.display="block",ea.style.display="block"},ao.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ho){Po.style.display="none",ea.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ea,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Qe.Object.defineProperties(ao.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ao?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ja===!1&&Ho===null&&qa&&lo(this),Ho},set:function(a){a===null&&(ja=!0),Ho=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ho=null,ja=!1,ea=null,Po=null;ao.className="ContextMenuTool",Wi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function $r(){oi.call(this),this.name="TextEditing",this.Zh=new la,this.ia=null,this.V=Jr,this.vj=null,this.qa=Ai,this.u=1,this.F=!0,this.o=null,this.j=new ir,this.kt=null,po(this,this.j)}Yt($r,oi);function po(a,y){if(qa){var x=gi("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(no)):E==="Tab"?(a.acceptText(yo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ai){var b=a.kt;a.qa===mr&&(a.qa=Fo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ai){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof la&&z instanceof $r)if(z.state===Xs)x.style.border="3px solid red",x.focus();else{var ee=b.ga(so),re=E.position,oe=E.scale,le=b.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ue=b.naturalBounds.width*le+6,fe=b.naturalBounds.height*le+2,ve=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=b.verticalAlignment,oe=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*le,fe=re.y*fe-re.y*oe+re.offsetY-(.5*fe-.5*oe)-oe/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*le+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(ve-ue/2|0)-1+"px",x.style.top=(ee+fe|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=le,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}$r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||sl&&sl!==this&&(sl.acceptText(Ka),sl&&sl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof la&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Jr&&!y.isSelected||this.starting===Or&&2>a.lastInput.clickCount)):!1},$r.prototype.doStart=function(){sl=this,this.textBlock!==null&&this.doActivate()},$r.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof la&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=mr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new hn(this.textBlock.ga(Ls),this.textBlock.ga(ml));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},$r.prototype.doCancel=function(){this.stopTool()},$r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},$r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ka)},$r.prototype.acceptText=function(a){switch(a){case Ka:this.qa===ks?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===mr||this.qa===Xs||this.qa===Fo)&&(this.qa=Xo,Ba(this));break;case Ca:case no:case yo:(no!==a||this.textBlock.isMultiline!==!0)&&(this.qa===mr||this.qa===Xs||this.qa===Fo)&&(this.qa=Xo,Ba(this))}};function Ba(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=ks,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Xs,a.doError(E,z))}}$r.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},$r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},$r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ai,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},Qe.Object.defineProperties($r.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),$r.prototype.measureTemporaryTextBlock=$r.prototype.Lx;var Ca=new sn($r,"LostFocus",0),Ka=new sn($r,"MouseDown",1),yo=new sn($r,"Tab",2),no=new sn($r,"Enter",3),Co=new sn($r,"SingleClick",0),Jr=new sn($r,"SingleClickSelected",1),Or=new sn($r,"DoubleClick",2),Ai=new sn($r,"StateNone",0),mr=new sn($r,"StateActive",1),Fo=new sn($r,"StateEditing",2),Xo=new sn($r,"StateValidating",3),Xs=new sn($r,"StateInvalid",4),ks=new sn($r,"StateValidated",5),sl=null;$r.className="TextEditingTool",$r.LostFocus=Ca,$r.MouseDown=Ka,$r.Tab=yo,$r.Enter=no,$r.SingleClick=Co,$r.SingleClickSelected=Jr,$r.DoubleClick=Or,$r.StateNone=Ai,$r.StateActive=mr,$r.StateEditing=Fo,$r.StateValidating=Xo,$r.StateInvalid=Xs,$r.StateValidated=ks,Wi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function va(a){ms||(Ia(),ms=!0),this.H=ah,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Is,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new 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)}va.prototype.Xe=function(a){this.H=a},va.prototype.canStart=function(){return!0};function Oa(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Js(a.H),a.zb=!0)}function ho(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Is?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===ql&&y.vc.clear(),a.Qw=!!(a.Pk===Cu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ul(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==kl&&b!==null&&(delete b.start.scale,delete b.end.scale),ft.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fl(x),Od(x),a.zb=!1,y.start(),y.bc&&(Va(a),x.Ya(),oh(y,0),xl(x,!0),ds(a),x.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ll(a,y,x,b){a.isTicking||Bs(a)||y instanceof Qn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ee=va.prototype,Ee.fv=function(a){return this.ce.fv(a)},Ee.Xu=function(a){return this.ce.Xu(a)};function ka(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof At&&oe.diagram!==null||oe instanceof Kt){re=!0;break e}}re=!1}re?hu(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Va(E),xl(E.H),ds(E)),ft.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ft.requestAnimationFrame(function(){x()}))}function Ha(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Va(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function ds(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ee.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)},Ee.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))},Ee.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ja(this,a))},Ee.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ls(this.ce,y,"position",y.position,y.position),Ja(this,a))};function Os(a,y,x){!a.zb||y.D(x)||Bs(a)||(a.H.pi||(y=x.copy()),ls(a.ce,a.H,"position",y,x))}function ra(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ja(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function js(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=le):(ue===0||ue===100)&&(oe=z,le=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=E(x,z,oe-z,b)%360,ee=E(x,ee,le-ee,b),re=E(x,re,ue-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Ia(){function a(x,b,E,z,ee,re){x.position=new Ue(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new ki;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Ue(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!0):x.location=new Ue(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Ue(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,re){var oe=x.actualBounds,le=E.actualBounds;E=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ee<re?x.mm(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re),!1):x.position=new Ue(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re))}),y.add("desiredSize",function(x,b,E,z,ee,re){x.desiredSize=new hn(z(ee,b.width,E.width-b.width,re),z(ee,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,ee,re){x.width=z(ee,b,E-b,re)}),y.add("height",function(x,b,E,z,ee,re){x.height=z(ee,b,E-b,re)}),y.add("fill",function(x,b,E,z,ee,re){x.fill=js(b,E,ee,re,z)}),y.add("stroke",function(x,b,E,z,ee,re){x.stroke=js(b,E,ee,re,z)}),y.add("strokeWidth",function(x,b,E,z,ee,re){x.strokeWidth=z(ee,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,ee,re){x.strokeDashOffset=z(ee,b,E-b,re)}),y.add("background",function(x,b,E,z,ee,re){x.background=js(b,E,ee,re,z)}),y.add("areaBackground",function(x,b,E,z,ee,re){x.areaBackground=js(b,E,ee,re,z)}),y.add("opacity",function(x,b,E,z,ee,re){x.opacity=z(ee,b,E-b,re)}),y.add("scale",function(x,b,E,z,ee,re){x.scale=z(ee,b,E-b,re)}),y.add("angle",function(x,b,E,z,ee,re){x.angle=z(ee,b,E-b,re)}),So=y}Qe.Object.defineProperties(va.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&ui(a,">= 1",va,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),va.prototype.stopAnimation=va.prototype.Cc;var So=null,ms=!1,Is=new sn(va,"Default",1),Cu=new sn(va,"AnimateLocations",2),ql=new sn(va,"None",3);va.className="AnimationManager",va.defineAnimationEffect=function(a,y){ms||(Ia(),ms=!0),So.add(a,y)},va.Default=Is,va.AnimateLocations=Cu,va.None=ql;function Wa(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Il,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=fo,this.vc=new ki,this.Tt=new ki,this.yl=new 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,hu(this,!0),Va(this.Yd),xl(this.H),ds(this.Yd),this.H.redraw()};function ul(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ee=Wa.prototype,Ee.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 Kt?a=x:x instanceof At&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Is&&this===y.defaultAnimation&&(this.Lp=Gu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Uf),Va(y),this.yl.each(function(b){b.data=null,a.add(b)}),ds(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ka(y,this),this)},Ee.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ee.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Kt?this.H=a:a instanceof At&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Hi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ls(this,a,y,x,b,E),this};function ls(a,y,x,b,E,z){var ee=a.vc;if(y instanceof Kt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Yd(b),av(),b=[Ru.j,Ru.u,Ru.o,Ru.F],Yd(E),av(),E=[Ru.j,Ru.u,Ru.o,Ru.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=is(b)),le[x]=is(E)}else oe={},le={},oe[x]=is(b),le[x]=is(E),re=oe.position,y instanceof At&&re instanceof Ue&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Ku(oe,le,z),ee.add(y,re);ee=oe[x],ee instanceof Ue&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Hi?re.Ku.location=is(y.location):z&&(re.Ku[x]=is(b))}function is(a){return a instanceof Ue||a instanceof ri?a.copy():a}Ee.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ee.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function hu(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Va(x),oh(a,E),xl(a.H,!0),ds(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function oh(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof At&&z.diagram===null)){var ee=b.value,re=E?ee.end:ee.start;ee=E?ee.start:ee.end;var oe=So,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}Ee.stop=function(){return this.bc?(this.Ml(!0),this):this},Ee.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Va(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=So;b.next();){var ee=b.key,re=b.value,oe=E?re.end:re.start,le=E?re.start:re.end,ue=re.Ku,fe;for(fe in le)if(z.get(fe)!==null){var ve=fe;!re.Hu||ve!=="position:nodeCollapse"&&ve!=="position:placeholder"||(ve="position"),z.get(ve)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof Hi&&(ee.location=ue.location),re.nv&&ee instanceof Hi&&ee.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),xl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)E=fe.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}xl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ds(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ul(this,null),x.Ml(this),y.$b())}},Ee.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Pr&&(b=y.placeholder),b!==null?(x=b.ga(Ls),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ue(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 ci&&this.Cj(b,y)},Ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Pr&&(x=y.placeholder),x!==null){var b=x.ga(Ls);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Pr)for(a=a.memberParts;a.next();)b=a.value,b instanceof ci&&this.Aj(b,y)}},Ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Qe.Object.defineProperties(Wa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ui(a,">= 1",Wa,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:dt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Wa.prototype.getTemporaryState=Wa.prototype.Ez,Wa.prototype.stop=Wa.prototype.stop,Wa.prototype.add=Wa.prototype.add,Wa.prototype.addTemporaryPart=Wa.prototype.Iy;function Il(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Wa.className="Animation",Wa.EaseLinear=function(a,y,x,b){return x*a/b+y},Wa.EaseInOutQuad=Il,Wa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Wa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Wa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Wa.EaseOutExpo=Gu;function Ku(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ku.className="AnimationState";function _l(a,y,x){this.xd=null,this.rf=a,this.so=x||Qa,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Hs))}_l.prototype.copy=function(){var a=new _l(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function ba(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Qe.Object.defineProperties(_l.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Qa=new sn(_l,"Default",1),Hs=new sn(_l,"Immediate",2),rs=new sn(_l,"Bundled",3);_l.className="AnimationTrigger",_l.Default=Qa,_l.Immediate=Hs,_l.Bundled=rs;function Ea(a){Br(this),this.H=null,this.Pa=new En,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)}Ee=Ea.prototype,Ee.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},Ee.Xe=function(a){this.H=a},Ee.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,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Pr?E++:oe instanceof ci?b++:oe instanceof Qn?z++:oe instanceof Ao?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&bo(b)&&(re+=" #"+bo(b)),x instanceof ci?re+=" "+$n(b):x instanceof Qn&&(re+=" "+$n(x.fromNode)+" "+$n(x.toNode));return y+" "+this.Pa.count+": "+re},Ee.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=Ue.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Vc(re)!==!1)&&re.isVisible()&&(E.assign(a),Xr(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Ue.free(E),re}return Ue.free(E),null},Ee.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof En||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=Ue.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Vc(oe)!==!1)&&oe.isVisible()){z.assign(a),Xr(z,oe.oe);var le=oe;oe.ji(z,y,x,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return Ue.free(z),b},Ee.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 En||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 ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Vc(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,b,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return E},Ee.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ee!==!0||Vc(le)!==!1)&&z(le)&&le.isVisible()){var ue=le;le.Cf(a,y,x,b,E)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||E.add(ue))}}return E},Ee.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 En||E instanceof An)&&(z=E),E=!0),z instanceof En||z instanceof An||(z=new An),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Ue.alloc(),oe=Ue.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||Vc(fe)!==!1)&&fe.isVisible()){re.assign(a),Xr(re,fe.oe),oe.h(a.x+y,a.y),Xr(oe,fe.oe);var ve=fe;fe.og(re,oe,x,b,E,z)&&(x!==null&&(ve=x(ve)),ve===null||b!==null&&!b(ve)||z.add(ve))}}return Ue.free(re),Ue.free(oe),z},Ee.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=an();for(var E=an(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof Qn){if(ee.fd===!1)continue}else if(ee instanceof Ao&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&ma(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&E.push(ee))}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]);Mn(a),Mn(E)}}};function Ws(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ee.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=Ws(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=hn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(hn.free(re),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 ee=Ws(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=hn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,re,oe,le,!1)}hn.free(le),y.globalAlpha=ee}}}Ee.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Vc(y))a.Hs(y);else{if(b!==null&&y instanceof Qn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,b=y.containingGroup;b!==null;)ee?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ee=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Eu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(_a(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(_a(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),_a(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Ee.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Zn,a,this,y,x,b,E)},Ee.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Cl(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),bu(this,a,y),a},Ee.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Cl(y),a};function bu(a,y,x){if(y=ac(a,y,x),x instanceof Pr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];if(re===x&&(y=ee,0<=b)||0>b&&re.containingGroup===x&&(b=ee,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&bu(a,-1,y)}x.svg!==null&&x.svg.remove()}function ac(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<E&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>b)for(;;){if(z===-1||ee<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<b)for(;;){if(re===E||oe>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<E&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}Qe.Object.defineProperties(Ea.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&dt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&dt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ui(a,"0 <= value <= 1",Ea,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Ea.prototype.findObjectsNear=Ea.prototype.og,Ea.prototype.findObjectsIn=Ea.prototype.Cf,Ea.prototype.findObjectsAt=Ea.prototype.ji,Ea.prototype.findObjectAt=Ea.prototype.ic,Ea.className="Layer";function Kt(a,y){if(dm||(wl(),dm=!0),Br(this),ah=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,qa){var x=this,b=function(){x.removeEventListener(ft.document,"DOMContentLoaded",b,!1),x.setRTL()};ft.document.body!==null?this.setRTL():x.addEventListener(ft.document,"DOMContentLoaded",b,!1)}this.ol=null,Zh.add("Model",Ko);var E=this;return this.Hb=function(z){var ee=E.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Zn&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Rc(this),this.model=hy(),this.Wg=!0,Id(this),this.layout=new Fa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new cm,a!==void 0&&(typeof a=="string"||ft.Element&&a instanceof Element?Ph(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var wh,ah;function Rc(a){a.Yd=new va,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new En,a.pj=new ki,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ue(NaN,NaN).freeze(),a.du=new Ue(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ue(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Mr,a.zu=new Ue(NaN,NaN).freeze(),a.ut=new hn(NaN,NaN,NaN,NaN).freeze(),a.rj=new zi(0,0,0,0).freeze(),a.sj=fc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=kl,a.zk=Bo,a.Fg=kl,a.pq=Bo,a.yt=Ls,a.Bt=Ls,a.Fc=!0,a.pn=!1,a.De=new An,a.Eh=new ki,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new zi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new zt,a.bq.diagram=a,a.Qg=new zt,a.Qg.diagram=a,a.cj=new zt,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 ki,a.Xn=new En,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 ri(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ue,bounds:new hn,Py:new ri,bA:new ri,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new hn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ri(NaN,NaN).freeze(),a.Sp=new hn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ki;var y=new ci,x=new la;x.bind(new vs("text","",$n)),y.add(x),a.ny=y,a.Lg.add("",y),y=new ci,x=new la,x.stroke="brown",x.bind(new vs("text","",$n)),y.add(x),a.Lg.add("Comment",y),y=new ci,y.selectable=!1,y.avoidable=!1,x=new Tr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ri(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ki,y=new Pr,y.selectionObjectName="GROUPPANEL",y.type=Gn.Vertical,x=new la,x.font="bold 12pt sans-serif",x.bind(new vs("text","",$n)),y.add(x),x=new Gn(Gn.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 Zl,b.padding=new zi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ki,y=new Qn,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 Qn,x=new Tr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ao,y.type=Gn.Auto,x=new Tr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Zl,x.margin=new zi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ao,y.type=Gn.Link,x=new 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 Ko,a.toolManager=new zn,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Rh(),a.eq=null,a.fq=ya,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Ue,a.zy=500,a.wp=new Ue,a.wq=!1}Kt.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=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==E&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;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(),Dr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Rh(){return null}Kt.prototype.reset=function(){this.clear(),this.vb=!0,Rc(this),bh(this),this.Wg=!0,Id(this),this.layout=new Fa,this.Wg=!1,this.model=hy(),this.model.undoManager=new li,this.vb=this.rn=!1,this.N()},Kt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ft.document.body);var y=gi("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},Kt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ft.document.body);var y=0;if(qa){var x=uh;y=wh,x===null&&(x=uh=gi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=wh=gi("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||yr||(y=11)}this.Db=y,this.Gw=!0},Kt.prototype.qb=function(a){a.classType===Kt&&(this.autoScale=a)},Kt.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function Ph(a,y){if(qa){if(y!=null||dt("Diagram setup requires an argument DIV."),a.Ka!==null&&dt("Diagram has already completed setup."),typeof y=="string"?a.Ka=ft.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:dt("No DIV or DIV id supplied: "+y),a.Ka===null&&dt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&dt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ft.ResizeObserver){var x=Vn(function(){a.$b()},250);a.ol=new ft.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ft.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=ft.go;var E=new dh(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ft.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),uc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new dh(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,qa){E=gi("div");var z=gi("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=Vn(function(){a.Yh=null,a.N()},300),a.Ov=Vn(function(){Od(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Rl(a,ee,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),eu(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Rl(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Hd(a,ee,!0,!1,!0,le),yd(a,ee,oe),oe.targetDiagram=sc(ee,ee.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():eu(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Hd(a,ee,!1,!1,!1,re[1]!==null);var oe=ft.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ue=ee;oe&&oe.H&&(ue=ee,le=oe.H),re.targetDiagram=le,yd(a,ue,re),re.targetObject=null,a.doMouseMove(),eu(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Hd(a,ee,!1,!0,!0,!1);var le=ft.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof Kt&&le.H!==a&&yd(le.H,ee,oe),le===null&&(le=ee.target),yd(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=sc(ee,le),oe.targetObject=null,a.doMouseUp(),eu(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[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)}}Kt.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Kt.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(ft,"resize",a.Ov,!1)}function fl(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Di&&Di.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Kt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ft.devicePixelRatio||1},Kt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Kt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Kt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Kt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Kt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Kt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Kt.prototype.doFocus=function(){this.focus()},Kt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ft.scrollX||ft.pageXOffset,y=ft.scrollY||ft.pageYOffset;this.ta.focus(),ft.scrollTo(a,y)}},Kt.prototype.Oy=function(){this.H.R("GainedFocus")},Kt.prototype.Ny=function(){this.H.R("LostFocus")};function Od(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===kl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Id(a){var y=new Ea;y.name="Background",a.Al(y),y=new Ea,y.name="",a.Al(y),y=new Ea,y.name="Foreground",a.Al(y),y=new Ea,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ea,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ea,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Rd(a){var y=new Gn(Gn.Grid);y.name="GRID";var x=new 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)}Kt.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,ee=b.x-z.left,re=b.y-z.top,oe=b.width+z.left+z.right,le=b.height+z.top+z.bottom,ue=b.right+z.right;z=b.bottom+z.bottom;var fe=E.x;b=E.y;var ve=E.width,Ce=E.height,Le=E.right,De=E.bottom;E=this.scale;var _e=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":_e=_e+a.scrollWidth-a.clientWidth;break;case"reverse":_e=a.scrollWidth-_e-a.clientWidth}var Ze=_e;ve<oe||Ce<le?(_e=Ue.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ze&&(_e.x=Ze/E+ee,this.ju=Ze),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(_e.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=_e,Ue.free(_e),this.Ee=this.qr=!1):(_e=Ue.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=_e.h(Ze+ee,this.position.y)),ue>Le&&(this.position=_e.h(-(y.scrollWidth-this.Aa)+Ze-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=_e.h(this.position.x,a.scrollTop+re)),z>De&&(this.position=_e.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ue.free(_e),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Le=E.right,z=b.bottom,De=E.bottom,ee=b.x,fe=E.x,re=b.y,b=E.y,ve>=oe&&ee>=fe&&ue<=Le&&(x.style.width="1px"),Ce>=le&&re>=b&&z<=De&&(x.style.height="1px"))}},Kt.prototype.computeBounds=function(a){return a===void 0&&(a=new hn),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 ee=b[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Kt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(vn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Qn||(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 Qn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new hn(NaN,NaN,0,0):x};function du(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Ue.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=hn.allocAt(0,0,b.width,b.height);var E=Ue.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,hn.free(b),Ue.free(E),Ue.free(x)}x=a.yh,y&&a.Fg!==kl&&(x=a.Fg);var z=x!==kl?zh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?so:oe),zc(a,a.documentBounds,E,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Nt.B(z.x,x)&&Nt.B(z.y,b)&&Nt.B(z.width,E)&&Nt.B(z.height,ee)||a.onViewportBoundsChanged(new hn(x,b,E,ee),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),ee=a.ya+(a.Be?a.Db:0),re=z/E,oe=ee/b;return y===Bu?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zc?(y=oe>re?(ee-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}Kt.prototype.zoomToFit=function(){var a=this.sj;this.sj=fc,this.scale=zh(this,Bu),a!==fc&&(du(this,!1),zc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ee=Kt.prototype,Ee.BA=function(a,y){y===void 0&&(y=Bu);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Bu||y===Zc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Zc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Ue(a.x,a.y)}},Ee.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ue(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))},Ee.zz=function(a){if(a instanceof At){this.eq=a;var y=Ue.alloc();this.fq=this.op(a.ga(Ls,y)),Ue.free(y)}else this.eq=null,this.fq=ya};function zc(a,y,x,b,E,z){var ee=Ue.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=Ue.alloc();le=a.eq.ga(Ls,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,E=Ua,Ue.free(le)}(z||a.scrollMode===fc)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(oe=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?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(oe=Math.min(oe+b/2,y.bottom+Math.max(x,E.bottom)-b/2),oe=Math.max(oe,y.top-Math.max(x,E.top)+b/2),oe-=b/2):oe>y.top?oe=y.top:oe<y.bottom-b&&(oe=y.bottom-b)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Os(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),bh(a),Ue.free(ee)}Ee.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Vu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Hi)return a}else if(a=Vu(this,a,function(x){return x.part}),a instanceof Hi)return a;return null},Ee.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Js(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Vu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Js(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Ee.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 En||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}Ee.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof En||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},Ee.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)},Ee.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof En||E instanceof An||(E=new An),Js(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},Ee.Nu=function(a,y,x,b,E,z){var ee=new An;Js(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,b,ee,E,z)}return ee};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 En||E instanceof An||(E=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}Ee.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)},Ee.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 En||E instanceof An)&&(z=E),E=!0),z instanceof En||z instanceof An||(z=new An),Js(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function od(a,y,x,b,E,z){var ee=null;for(ee===void 0&&(ee=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof En||E instanceof An)&&(z=E),E=!0),z instanceof En||z instanceof An||(z=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,b,E,z)}return z}Kt.prototype.acceptEvent=function(a){return Rl(this,a,a instanceof MouseEvent)};function Rl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yd(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),yr&&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 ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,yr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=b,ee.handled=!1,ee.bubbles=E,ee.isMultiTouch=z,ee}function eu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Kt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Rl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),eu(x,a)},Kt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),eu(x,a)},Kt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),eu(x,a)},Kt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),eu(x,a)},Kt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ue(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?Xr(new Ue(y,a),this.Ab):new Ue(y,a)};function yd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Ue.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Ue.free(y)):x.documentPoint.h(ee,re)}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))}}Kt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function lc(a){a.ld||Js(a),a.Va()}Kt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ee=Kt.prototype,Ee.Pz=function(){return this.kg},Ee.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 Ue(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&bi(function(){b.ld=!1,Oa(y,"Model"),a(b)},1)},Ee.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ft.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ee.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),xl(this))};function Ch(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hh(a)||(y&&Js(a),x&&du(a,!1))}function xl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];Ns(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(oe){oe.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Ch(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(sh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Js(a),z=!1,(!a.hf||a.xh)&&(a.hf?Hc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Hc(a,!1)),z=!0),a.Jk=!1,Js(a),a.ou||lc(a),Ch(a,!0,!1),ee=!1,z?(x=hn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Zd(a)),a.R("LayoutCompleted"),Ch(a,!0,!1),hn.free(x)):x.Ok&&x.Qw&&(a.Fg!==kl?a.scale=zh(a,a.Fg):a.yh!==kl?a.scale=zh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),du(a,!0)),z&&ee&&a.eb("Initial Layout"),Js(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Zd(a){if(a.Fg!==kl)a.scale=zh(a,a.Fg);else if(a.yh!==kl)a.scale=zh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}du(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),sh(a)}function Js(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new An,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Pr&&b.U&65536&&(b.U=b.U^65536)})}}Ee.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()&&Da(this,x);for(a.reset();a.next();)x=a.value,x instanceof Qn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ao&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Da(a,y){for(var x=an(),b=an(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Pr?(Iu(z)||Hl(z)||Kc(z))&&Da(a,z):z instanceof Qn?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(Mn(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();Mn(b)}Ee.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ee.gc=function(a){if(this.Ka!==null){if(this.ta===null&&dt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){fu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,ee=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,Xy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.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&&(Mr.prototype.Cd=Mr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,fu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),re=0;re<E;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Pf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Mr.prototype.Cd=Mr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Di&&Di.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function cs(a,y,x,b,E,z,ee,re,oe,le){if(a.Ka!==null){a.ta===null&&dt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),fu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=E;var fe=a.Wa.s,ve=fe.length;try{var Ce=new hn(z.x,z.y,b.width/E,b.height/E),Le=Ce.copy();Le.Co(x),sh(a,Le),Js(a),a.Fd(fe,ve,a,Ce),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var De=a.Mb;y.scale(De,De);var _e=Mr.alloc();_e.reset(),_e.translate(x.left,x.top),_e.scale(E),z.x===0&&z.y===0||_e.translate(-z.x,-z.y),y.setTransform(_e.m11,_e.m12,_e.m21,_e.m22,_e.dx,_e.dy),y.yc(),y instanceof Eu&&Xy(y,_e.m11,_e.m12,_e.m21,_e.m22,_e.dx,_e.dy),Mr.free(_e),gl(a,y),y.globalAlpha=a.pb;var Ze=a.Qj("Grid");if(ee){var st=new An,ht=ee.iterator;for(ht.reset();ht.next();){var mt=ht.value;mt instanceof Hi&&(le||mt.layer!==Ze)&&(mt.Gj(),st.add(mt))}for(le=0;le<ve;le++)Sl(fe[le],y,a,st,oe);st.each(function(Vt){return Vt.Gj()})}else for(st=0;st<ve;st++){var Lt=fe[st];Lt===Ze?le&&Lt.gc(y,a,!0):Lt.gc(y,a,oe)}a.$i=!1,a.Yf&&Pf(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,ve,a,a.viewportBounds),sh(a),a.ib instanceof Eu&&(a.ib.Nj.PA(),a.redraw())}}}Ee.Gf=function(a){return this.Rg[a]},Ee.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ee.Tx=function(){this.Rg=new Gi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(yr||Qi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function gl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ee.Ql=function(a){return this.on[a]},Ee.sA=function(a,y){this.on[a]=y},Ee.Sx=function(){this.on=new Gi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return this.nm(a)},Ee.nm=function(a){return cu(this,a),this};function cu(a,y){var x=a instanceof Gn,b=a instanceof Kt,E;for(E in y){E===""&&dt("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var re=E.indexOf(".");if(0<re){var oe=E.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),dn(z)?ee=E.substr(re+1):dt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!Un(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&Un(a.toolManager,ee))z=a.toolManager;else if(b&&$a(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ti&&ee==="Changed"){a.Pe(y[ee]);continue}else dt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof At&&z.Vw(ee)}}Ee.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ki,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ee.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")},Kt.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=hn.alloc(),Kf(this,this.computeBounds(b)),hn.free(b)),b=this.ta,b===null||b instanceof sd)))){var ee=this.Mb;E=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==E&&(oe.width=E),oe.height!==re&&(oe.height=re),a.clearRect(0,0,E,re),oe=190*ee;var le=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),ve=Math.floor(E-ue),Ce=Math.floor(re-fe);a.drawImage(b.Oa,ue,fe,ve,Ce,0,0,ve,Ce),Pf(this.Yf,this)&&a.clearRect(0,0,oe,le),b=an(),a=an(),Ce=Math.abs(z),ve=Math.abs(y);var Le=ue===0?0:E-Ce;ue=Ue.allocAt(Le,0),Ce=Ue.allocAt(Ce+Le,re),a.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y)));var De=this.Ab;if(De.reset(),De.scale(ee,ee),this.Ca!==1&&De.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&De.translate(-ee.x,-ee.y),Xr(ue,De),Xr(Ce,De),b.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Le=fe===0?0:re-ve,ue.h(0,Le),Ce.h(E,ve+Le),a.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Xr(ue,De),Xr(Ce,De),b.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Pf(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ue.h(E,re),Ce.h(oe+E,le+re),a.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Xr(ue,De),Xr(Ce,De),b.push(new hn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y)))),Ue.free(ue),Ue.free(Ce),Ch(this,!1,!0),this.Ka===null&&dt("No div specified"),this.ta===null&&dt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(fu(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-le),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&E.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(E.clip(),E.setTransform(re,0,0,re,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,re=0;re<z;re++)if(ee=y[re],oe=b,ee.visible&&ee.pb!==0){le=Ws(ee,E),fe=ee.Zq,fe.length=0,ue=this.scale,ve=hn.alloc(),Ce=ee.Pa.s,De=Ce.length,Le=oe.length;for(var _e=0;_e<De;_e++){var Ze=Ce[_e],st=kf(Ze,Ze.actualBounds);e:{for(var ht=2/ue,mt=4/ue,Lt=0;Lt<Le;Lt++){var Vt=oe[Lt];if(Vt.width!==0&&Vt.height!==0&&st.Vu(Vt.x-ht,Vt.y-ht,Vt.width+mt,Vt.height+mt)){st=!0;break e}}st=!1}st&&ee.Oj(E,Ze,this,fe,ue,ve,!0)}hn.free(ve),E.globalAlpha=le}E.restore(),E.Vc(!0),this.Yf&&Pf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Mn(b),Mn(a),this.ld=!1}}else this.bd();x&&(fl(this),this.bd(),id(this,!0))}else x?(fl(this),this.bd(),id(this,!0)):this.bd()}};function fu(a){a.pn!==!1&&(a.pn=!1,uc(a,a.Aa,a.ya))}function uc(a,y,x){bh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=E.clientWidth||x+ee,le=E.clientHeight||b+re,ue=a.viewportBounds;E=ue.x;var fe=ue.y,ve=ue.width,Ce=ue.height;if((oe!==x+ee||le!==b+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=le,z=a.pn=!0,bh(a)),!a.hf||!a.viewportBounds.w())return!0;var Le=a.ku,De=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var _e=a.documentBounds,Ze=0,st=0,ht=0,mt=0,Lt=ue.width,Vt=ue.height,di=a.rj;a.contentAlignment.sb()?(_e.width>Lt&&(Ze=di.left,st=di.right),_e.height>Vt&&(ht=di.top,mt=di.bottom)):(Ze=di.left,st=di.right,ht=di.top,mt=di.bottom);var Ci=_e.width+Ze+st,vi=_e.height+ht+mt;di=a.scale;var Jn=Ci>oe/di,kn=vi>le/di;if(!(z||a.gf||a.Be||Jn||kn))return!0;Ze=_e.x-Ze,oe=ue.x,st=_e.right+st,le=ue.right+ee,ht=_e.y-ht;var Sr=ue.y;_e=_e.bottom+mt,ue=ue.bottom+re;var dr="1px";if(mt="1px",a.scrollMode===fc&&(Jn||kn)&&(Jn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Jn=1,Ze+1<oe&&(Jn=Math.max((oe-Ze)*di+a.Aa,Jn)),st>le+1&&(Jn=Math.max((st-le)*di+a.Aa,Jn)),Lt+ee+1<Ci&&(Jn=Math.max((Ci-Lt)*di+a.Aa,Jn)),dr=Jn.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Jn=1,ht+1<Sr&&(Jn=Math.max((Sr-ht)*di+a.ya,Jn)),_e>ue+1&&(Jn=Math.max((_e-ue)*di+a.ya,Jn)),Vt+re+1<vi&&(Jn=Math.max((vi-Vt)*di+a.ya,Jn)),mt=Jn.toString()+"px")),Jn=dr!=="1px",kn=mt!=="1px",Jn&&kn||!Jn&&!kn||(kn&&(le-=a.Db),Jn&&(ue-=a.Db),Ci<Lt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ze+1<oe&&(ee=Math.max((oe-Ze)*di+a.Aa,ee)),st>le+1&&(ee=Math.max((st-le)*di+a.Aa,ee)),Lt+1<Ci&&(ee=Math.max((Ci-Lt)*di+a.Aa,ee)),dr=ee.toString()+"px"),Jn=dr!=="1px",ee=a.ya,Jn!==a.Be&&(ee=Jn?a.ya-a.Db:a.ya+a.Db),vi<Vt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,ht+1<Sr&&(re=Math.max((Sr-ht)*di+ee,re)),_e>ue+1&&(re=Math.max((_e-ue)*di+ee,re)),Vt+1<vi&&(re=Math.max((vi-Vt)*di+ee,re)),mt=re.toString()+"px"),kn=mt!=="1px"),a.qr&&Jn===a.Be&&kn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Jn!==a.Be&&(dr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Jn,De.style.width=dr,kn!==a.gf&&(mt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Ue.alloc(),kn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ue.free(re))),z&&bh(a),a.gf=kn,De.style.height=mt,a.gu=!0,z&&(a.pn=!0),y=Le.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Lt+1<Ci?y=(a.position.x-Ze)*di:Ze+1<oe?y=Le.scrollWidth-Le.clientWidth:st>le+1&&(y=a.position.x*di)),a.tn)switch(a.bu){case"negative":y=-(Le.scrollWidth-y-Le.clientWidth);break;case"reverse":y=Le.scrollWidth-y-Le.clientWidth}return Le.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vt+1<vi?Le.scrollTop=(a.position.y-ht)*di:ht+1<Sr?Le.scrollTop=Le.scrollHeight-Le.clientHeight:_e>ue+1&&(Le.scrollTop=a.position.y*di)),oe=a.Aa,le=a.ya,Le.style.width=oe+(a.gf?a.Db:0)+"px",Le.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||b!==le||a.animationManager.zb?(x=hn.allocAt(E,fe,ve,Ce),a.onViewportBoundsChanged(x,a.viewportBounds,di,z),hn.free(x),!1):!0}Ee=Kt.prototype,Ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&dt("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&&dt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Xn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ee.oi=function(a){this.partManager.oi(a);var y=this;Lf(a,function(x){dc(y,x)}),(a instanceof Ao||a instanceof Pr&&a.placeholder!==null)&&a.v(),a.data!==null&&Lf(a,function(x){sy(y.partManager,x)}),Hl(a)!==!0&&Kc(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Ee.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()},Ee.remove=function(a){Gd(this,a,!0)};function Gd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(hi,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ee.Is=function(a,y){if(y===void 0&&(y=!1),vn(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)},Ee.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Kt.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=gf(this)),this.toolManager!==null){var E=new ki;if(a!==null)if(vn(a))for(var z=0;z<a.length;z++)Tu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Tu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Tu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Tu(this,E,a.value,x,b);for(a=this.links;a.next();)Tu(this,E,a.value,x,b)}Yu(this,E,y,b,x)}};function Tu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=gf(a)),x instanceof ci){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Pr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Tu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Tu(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Tu(a,y,x.value,b,E)}else if(x instanceof Qn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Tu(a,y,x.value,b,E);else x instanceof Ao||y.add(x,a.Pd(E,x,x.location))}function Yu(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ue.alloc(),ee=Ue.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||hc(a,y);for(var re=an(),oe=an(),le=y.iterator,ue=Ue.alloc();le.next();){var fe=le.key,ve=le.value;if(fe.Zc()){var Ce=mf(a,fe,y);Ce!==null?re.push(new ie(fe,ve,Ce)):(!E||fe.canMove())&&(Ce=ve.point,z.assign(Ce),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,ve.shifted===void 0&&(ve.shifted=new Ue),ve.shifted.assign(ue.re(Ce)))}else le.key instanceof Qn&&oe.push(le.sa)}for(Ue.free(ue),E=re.length,le=0;le<E;le++)fe=re[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new Ue),fe.node.location=z.add(fe.Su.shifted);for(E=Ue.alloc(),le=Ue.alloc(),fe=oe.length,ve=0;ve<fe;ve++){var Le=oe[ve];if(Ce=Le.key,Ce instanceof Qn)if(Ce.suspendsRouting){Ce.Tg=null,ue=Ce.fromNode;var De=Ce.toNode;if(a.draggedLink!==null&&b.dragsLink)if(De=Le.value.point,Ce.dragComputation===null)y.add(Ce,a.Pd(b,Ce,ee)),wc(Ce,ee.x-De.x,ee.y-De.y);else{Le=Ue.allocAt(0,0),(ue=Ce.i(0))&&ue.w()&&Le.assign(ue);var _e=ue=Ue.alloc().assign(Le).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(_e=Ue.alloc(),pf(a,Ce,ue,_e,b)),ue.assign(Ce.dragComputation(Ce,ue,_e)).re(Le),y.add(Ce,a.Pd(b,Ce,ue)),wc(Ce,ue.x-De.x,ue.y-De.y),Ue.free(Le),Ue.free(ue),_e!==ue&&Ue.free(_e)}else ue!==null&&(E.assign(ue.location),_e=y.I(ue),_e!==null&&E.re(_e.point)),De!==null&&(le.assign(De.location),_e=y.I(De),_e!==null&&le.re(_e.point)),ue!==null&&De!==null?E.Xa(le)?(ue=Le.value.point,De=z,De.assign(E),De.re(ue),y.add(Ce,a.Pd(b,Ce,E)),wc(Ce,De.x,De.y)):(Ce.suspendsRouting=!1,Ce.bb()):(Le=Le.value.point,ue=ue!==null?E:De!==null?le:ee,y.add(Ce,a.Pd(b,Ce,ue)),wc(Ce,ue.x-Le.x,ue.y-Le.y))}else(Ce.fromNode===null||Ce.toNode===null)&&(ue=Le.value.point,y.add(Ce,a.Pd(b,Ce,ee)),wc(Ce,ee.x-ue.x,ee.y-ue.y))}Ue.free(z),Ue.free(ee),Ue.free(E),Ue.free(le),Mn(re),Mn(oe),x||(Js(a),Du(a,y))}}Kt.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ue),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ue.alloc(),pf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,oe))),E!==y&&Ue.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 ee=E.gridSnapOrigin,re=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Ue.allocAt(0,0),z.yi(0,0,a,y,E),Nt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),Ue.free(z)}}function hc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Qn&&(y.suspendsRouting=!0)}function Du(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Qn&&(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}Ee=Kt.prototype,Ee.Pd=function(a,y,x){if(x===void 0)return new Kd(fo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Kd(new Ue(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&&dt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&dt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&dt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&dt("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&&dt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ee.Al=function(a){Wf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Xn,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ee.Ww=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(hi,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Xn,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ee.Cy=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(hi,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Xn,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ee.kA=function(a){if(a.diagram!==this&&dt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(hi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ee.Yw=function(a){return this.pf===null&&(this.pf=new En),this.pf.add(a),this.model.Pe(a),this},Ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ee.Pe=function(a){return this.zg===null&&(this.zg=new En),this.zg.add(a),this},Ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Sn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ee.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new pn;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=ee,this.ds(re)},Ee.g=function(a,y,x,b,E){this.cb(Zn,a,this,y,x,b,E)},Kt.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(La(E,a.propertyName,a.I(y)),E instanceof At){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Xn){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Gn)if(typeof re=="number"&&oe instanceof At){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Ts&&(oe.isRow?hS(ee,re,y?void 0:oe):dS(ee,re,y?void 0:oe));else if(ee instanceof Ea){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof Hi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof Kt?typeof re=="number"&&oe instanceof Ea&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):dt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===hi){var fe=a.object,ve=a.oldParam,Ce=a.oldValue;if(fe instanceof Gn)typeof ve=="number"&&Ce instanceof At?y?fe.Gb(ve,Ce):fe.pc(ve):typeof ve=="number"&&Ce instanceof Ts&&(Ce.isRow?hS(fe,ve,y?Ce:void 0):dS(fe,ve,y?Ce:void 0));else if(fe instanceof Ea){var Le=a.newParam===!0;typeof ve=="number"&&Ce instanceof Hi&&(y?0>fe.Pa.indexOf(Ce)&&fe.oi(ve,Ce,Le):(Ce.isSelected=!1,Ce.isHighlighted=!1,Ce.Wb(),fe.pc(Le?ve:-1,Ce,Le)))}else fe instanceof Kt?typeof ve=="number"&&Ce instanceof Ea&&(y?(Ce.Xe(this),this.Wa.Gb(ve,Ce)):this.Wa.mb(ve)):dt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Sn&&dt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Kt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Kt.prototype.eb=function(a){return this.undoManager.eb(a)},Kt.prototype.Kf=function(){return this.undoManager.Kf()},Kt.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}},Kt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Kt.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,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(wu)?re=0:le.Hf(vl)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Wu)?oe=0:le.Hf(Al)&&(oe=ee-1):oe=le.sb()?le.y*(ee-1):ee/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=Ue.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Ue.free(z),a.Ca=x,bh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),du(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Kt.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==kl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof zn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Mi(E,this)),this.vb||this.invalidateViewport(a,y),sh(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function sh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ri.alloc(),E=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe],ue=Math.abs(le.interval);2>ue||(pv(le.figure)?z=z*ue/Nt.vx(z,ue):E=E*ue/Nt.vx(E,ue))}if(ee=x.gridCellSize,b.h(z*ee.width,E*ee.height),y!==void 0)E=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=hn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){hn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,hn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Ue.alloc(),Nt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ri.free(b),x.part.location=y,Ue.free(y)}}Kt.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)}},Kt.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))},Kt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),vn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Hi||dt("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||dt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Kt.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()}},Ee=Kt.prototype,Ee.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ee.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||dt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ee.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ue.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)),Ue.free(z);return}dt("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):dt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ue.free(z)},Ee.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)},Ee.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ee.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)},Ee.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,re=y.m12,oe=y.m21,le=y.m22,ue=y.dx,fe=y.dy,ve=x*ee+b*oe+ue;y=x*re+b*le+fe;var Ce=E*ee+b*oe+ue;return a=E*re+b*le+fe,b=x*ee+z*oe+ue,x=x*re+z*le+fe,ee=E*ee+z*oe+ue,E=E*re+z*le+fe,z=Math.min(ve,Ce),ve=Math.max(ve,Ce),Ce=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),ve=Math.max(ve,b),Ce=Math.min(Ce,x),y=Math.max(y,x),z=Math.min(z,ee),ve=Math.max(ve,ee),Ce=Math.min(Ce,E),y=Math.max(y,E),new hn(z,Ce,ve-z,y-Ce)},Ee.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),Xr(a.copy(),this.Ab)};function Sg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Zf(a){return a=Zh.get(a),a!==null?new a:new Ko}Kt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Sn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=E}),a.mouseMoveTools.each(function(oe){return oe.diagram=E}),a.mouseUpTools.each(function(oe){return oe.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Sn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Js(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ho(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(Sg(this),this.As.clear(),Ha(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;bi(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function dc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Sd(a,y[b])}function Sd(a,y){if(y instanceof ru){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof 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 ru){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof An&&x.Bg.remove(a),Tg(b));break}}}}}Kt.prototype.Wd=function(){this.partManager.Wd()},Kt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Kt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Kt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Kt.prototype.Vb=function(a){return this.partManager.Vb(a)},Kt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ee=Kt.prototype,Ee.Lc=function(a){return this.partManager.Lc(a)},Ee.ii=function(a){return this.partManager.ii(a)},Ee.Kc=function(a){return this.partManager.Kc(a)},Ee.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:or(yi(y)))},Ee.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:or(yi(y)))};function bh(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Kf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),du(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ee.Va=function(){if(this.Zi){var a=hn.alloc();Kf(this,this.computeBounds(a)),hn.free(a)}},Ee.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},Ee.qz=function(){return this.ai.iterator},Ee.Uz=function(a){Js(this),a&&jc(this,!0),this.ld?Hc(this,!1):(this.Jk=!0,xl(this))};function jc(a,y){for(var x=a.ai.iterator;x.next();)yf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function yf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)yf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Hc(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Oa(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Vf(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Js(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||ho(z),a.aa=x}}}function Vf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vf(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Da(a,y),E.isValidLayout=!0):a.xh=!0)}}Ee.yz=function(){for(var a=new En,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(),ee=new En;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new ki,b=new ki;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function $a(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Mo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;dt("Unknown DiagramEvent name: "+y)}Ee.Bj=function(a,y){return a=Mo(this,a),a!==null&&a.add(y),this},Ee.am=function(a,y){a=Mo(this,a),a!==null&&a.remove(y)},Ee.R=function(a,y,x){var b=Mo(this,a),E=new Zt;if(E.diagram=this,a=$a(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Jo(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ee.Yj=function(a,y){return Ya(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Kt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,a):a.assign(this.documentBounds)};function Ya(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Op(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=Qs(a,x)),x===null){y=hn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&ad(a,ee,b,y)}hn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=hn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof ci&&ad(a,ee,b,y);hn.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 ee=x;ee<=y;ee++)z[ee]=Cc}else if(y instanceof Pr)for(y=y.memberParts;y.next();)E=y.value,E instanceof ci&&ad(a,E,x,b)}}function zl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Kt.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=bi(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=hn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Kf(a,y),hn.free(y),a.Fc=!0,a.bd(),Wh(a))}},a.vp))}Kt.prototype.ug=function(){this.vk!==-1&&(ft.clearTimeout(this.vk),this.vk=-1)},Kt.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=hn.allocAt(0,0,b.width*E,b.height*E);var z=Ue.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<b.x+x.left/2&&(z.x-=ee),a.x<b.x+x.left/4&&(z.x-=4*ee)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>b.x+b.width-x.right/2&&(z.x+=ee),a.x>b.x+b.width-x.right/4&&(z.x+=4*ee));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<b.y+x.top/2&&(z.y-=ee),a.y<b.y+x.top/4&&(z.y-=4*ee)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>b.y+b.height-x.bottom/2&&(z.y+=ee),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(fo)||(y=new Ue(y.x+z.x/E,y.y+z.y/E)),hn.free(b),Ue.free(z),y},Ee=Kt.prototype,Ee.Cs=function(){return null},Ee.av=function(){return null},Ee.bs=function(a,y){this.pj.add(a,y)},Ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Pr&&(y.$p=null)})};function lh(a,y,x){function b(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-le>oe?y(x,E,re):ft.requestAnimationFrame(b)}for(var E=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return ft.requestAnimationFrame(function(){b()}),null}Ee.Wz=function(a){return qa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ee.Jx=function(a){return a===void 0&&(a={}),lh(this,this.Xz,a)},Ee.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"&&dt('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"&&dt("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 ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new ri(1/0,1/0):new ri(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var ve=y.document||document,Ce=y.elementFinished||null,Le=y.showTemporary;Le===void 0&&(Le=!fe),y=y.showGrid,y===void 0&&(y=Le),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new zi(le):le instanceof zi||dt("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),fe=new dh(null,ve,void 0,!0);var De=fe.context;if(!(E||z||oe||re))return fe.width=a.Aa+Math.ceil(le.left+le.right),fe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=ve,b.hs=Ce,cs(a,b.context,le,new ri(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),b.context):(a.Xm=!1,cs(a,De,le,new ri(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),a.Xm=!0,fe.context);var _e=a.Pp,Ze=a.documentBounds.copy();if(Ze.Fv(a.yb),Le)for(var st=a.Wa.s,ht=st.length,mt=0;mt<ht;mt++){var Lt=st[mt];if(Lt.visible&&Lt.isTemporary){Lt=Lt.Pa.s;for(var Vt=Lt.length,di=0;di<Vt;di++){var Ci=Lt[di];Ci.isInDocumentBounds&&Ci.isVisible()&&(Ci=Ci.actualBounds,Ci.w()&&Ze.ed(Ci))}}}if(st=new Ue(Ze.x,Ze.y),oe!==null){for(ht=new hn(0,0,0,0),mt=!0,Lt=oe.iterator,Lt.reset();Lt.next();)Vt=Lt.value,Vt instanceof Hi&&(di=Vt.layer,di!==null&&!di.visible||di!==null&&!Le&&di.isTemporary||!Vt.isVisible()||(Vt=Vt.actualBounds,Vt.w()&&(mt?(mt=!1,ht.assign(Vt)):ht.ed(Vt))));Ze.width=ht.width,Ze.height=ht.height,st.x=ht.x,st.y=ht.y}return re!==null&&re.w()&&(st=re,z||(z=_e)),ht=re=0,le!==null&&(re=le.left+le.right,ht=le.top+le.bottom),mt=Lt=0,E!==null&&(Lt=E.width,mt=E.height,isFinite(Lt)&&(Lt=Math.max(0,Lt-re)),isFinite(mt)&&(mt=Math.max(0,mt-ht))),E!==null&&z!==null?(z==="NaN"&&(z=_e),E.w()?(E=Lt,Ze=mt):isNaN(mt)?(E=Lt,Ze=Ze.height*z):(E=Ze.width*z,Ze=mt)):E!==null?E.w()?(z=Math.min(Lt/Ze.width,mt/Ze.height),E=Lt,Ze=mt):isNaN(mt)?(z=Lt/Ze.width,E=Lt,Ze=Ze.height*z):(z=mt/Ze.height,E=Ze.width*z,Ze=mt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ze.width,(ee.height-ht)/Ze.height),z>_e?(z=_e,E=Ze.width,Ze=Ze.height):(E=ee.width,Ze=ee.height)):(E=Ze.width*z,Ze=Ze.height*z):(z=_e,E=Ze.width,Ze=Ze.height),le!==null?(E+=re,Ze+=ht):le=new zi(0),ee!==null&&(_e=ee.width,ee=ee.height,isNaN(_e)&&(_e=2e3),isNaN(ee)&&(ee=2e3),isFinite(_e)&&(E=Math.min(E,_e)),isFinite(ee)&&(Ze=Math.min(Ze,ee))),fe.width=Math.ceil(E),fe.height=Math.ceil(Ze),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=ve,b.hs=Ce,cs(a,b.context,le,new ri(Math.ceil(E),Math.ceil(Ze)),z,st,oe,ue,Le,y),b.context):(a.Xm=!1,cs(a,De,le,new ri(Math.ceil(E),Math.ceil(Ze)),z,st,oe,ue,Le,y),a.Xm=!0,fe.context)}Qe.Object.defineProperties(Kt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(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,ft.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,ft.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(ft,"resize",this.Ov,!1),this.removeEventListener(ft,"wheel",this.$j,!0),ah===this&&(ah=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ph(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ui(a,"0 <= value <= 1",Kt,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),du(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),du(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),du(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),du(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ui(a,">= 0",Kt,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&ui(a,">= 0",Kt,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else ui(a,">= 0",Kt,"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&&dt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=vd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Oa(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Zf(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(ft,"pointermove",this.dk,!0),this.addEventListener(ft,"pointerdown",this.ui,!0),this.addEventListener(ft,"pointerup",this.fk,!0),this.addEventListener(ft,"pointerout",this.ek,!0),this.addEventListener(ft,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ft,"wheel",this.$j,!0),this.addEventListener(ft,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ft,"pointermove",this.dk,!0),this.removeEventListener(ft,"pointerdown",this.ui,!0),this.removeEventListener(ft,"pointerup",this.fk,!0),this.removeEventListener(ft,"pointerout",this.ek,!0),this.removeEventListener(ft,"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(ft,"wheel",this.$j,!0),this.removeEventListener(ft,"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=Ue.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)}Ue.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Rd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Rd(this)),a.type!==Gn.Grid&&dt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),sh(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),bh(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||dt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===fc&&du(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,du(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,vf(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&vf(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==kl&&du(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||dt("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()||dt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):ui(a,"> 0",Kt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):ui(a,"> 0",Kt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),du(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&dt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gc&&a!==Fs&&a!==xg&&dt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new ri(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Qe.Object.defineProperties(Kt,{licenseKey:{get:function(){return fp.jc()},set:function(a){fp.add(a.replace(/\s/g,""))}},version:{get:function(){return xf}}}),Kt.prototype.makeImageData=Kt.prototype.Jx,Kt.prototype.makeImage=Kt.prototype.Wz,Kt.prototype.cacheGroupExternalLinks=Kt.prototype.Fu,Kt.prototype.addRenderer=Kt.prototype.bs,Kt.prototype.makeSVG=Kt.prototype.av,Kt.prototype.makeSvg=Kt.prototype.Cs,Kt.prototype.stopAutoScroll=Kt.prototype.ug,Kt.prototype.doAutoScroll=Kt.prototype.gs,Kt.prototype.isUnoccupied=Kt.prototype.Yj,Kt.prototype.raiseDiagramEvent=Kt.prototype.R,Kt.prototype.removeDiagramListener=Kt.prototype.am,Kt.prototype.addDiagramListener=Kt.prototype.Bj,Kt.prototype.findTreeRoots=Kt.prototype.yz,Kt.prototype.layoutDiagram=Kt.prototype.Uz,Kt.prototype.findTopLevelGroups=Kt.prototype.qz,Kt.prototype.findTopLevelNodesAndLinks=Kt.prototype.rz,Kt.prototype.ensureBounds=Kt.prototype.Va,Kt.prototype.findLinksByExample=Kt.prototype.ls,Kt.prototype.findNodesByExample=Kt.prototype.ms,Kt.prototype.findLinkForData=Kt.prototype.Kc,Kt.prototype.findNodeForData=Kt.prototype.ii,Kt.prototype.findPartForData=Kt.prototype.Lc,Kt.prototype.findLinkForKey=Kt.prototype.findLinkForKey,Kt.prototype.findNodeForKey=Kt.prototype.Vb,Kt.prototype.findPartForKey=Kt.prototype.findPartForKey,Kt.prototype.rebuildParts=Kt.prototype.Wd,Kt.prototype.transformViewToDoc=Kt.prototype.Ps,Kt.prototype.transformRectDocToView=Kt.prototype.zA,Kt.prototype.transformDocToView=Kt.prototype.op,Kt.prototype.centerRect=Kt.prototype.es,Kt.prototype.scrollToRect=Kt.prototype.tv,Kt.prototype.scroll=Kt.prototype.scroll,Kt.prototype.highlightCollection=Kt.prototype.Jz,Kt.prototype.highlight=Kt.prototype.Iz,Kt.prototype.selectCollection=Kt.prototype.rA,Kt.prototype.select=Kt.prototype.select,Kt.prototype.updateAllRelationshipsFromData=Kt.prototype.rp,Kt.prototype.updateAllTargetBindings=Kt.prototype.updateAllTargetBindings,Kt.prototype.commit=Kt.prototype.commit,Kt.prototype.rollbackTransaction=Kt.prototype.Kf,Kt.prototype.commitTransaction=Kt.prototype.eb,Kt.prototype.startTransaction=Kt.prototype.Ea,Kt.prototype.raiseChanged=Kt.prototype.g,Kt.prototype.raiseChangedEvent=Kt.prototype.cb,Kt.prototype.removeChangedListener=Kt.prototype.ik,Kt.prototype.addChangedListener=Kt.prototype.Pe,Kt.prototype.removeModelChangedListener=Kt.prototype.mA,Kt.prototype.addModelChangedListener=Kt.prototype.Yw,Kt.prototype.findLayer=Kt.prototype.Qj,Kt.prototype.removeLayer=Kt.prototype.kA,Kt.prototype.addLayerAfter=Kt.prototype.Cy,Kt.prototype.addLayerBefore=Kt.prototype.Ww,Kt.prototype.addLayer=Kt.prototype.Al,Kt.prototype.moveParts=Kt.prototype.moveParts,Kt.prototype.copyParts=Kt.prototype.Kj,Kt.prototype.removeParts=Kt.prototype.Is,Kt.prototype.remove=Kt.prototype.remove,Kt.prototype.add=Kt.prototype.add,Kt.prototype.clearDelayedGeometries=Kt.prototype.bx,Kt.prototype.setProperties=Kt.prototype.nm,Kt.prototype.attach=Kt.prototype.Du,Kt.prototype.set=Kt.prototype.set,Kt.prototype.resetInputOptions=Kt.prototype.Sx,Kt.prototype.setInputOption=Kt.prototype.sA,Kt.prototype.getInputOption=Kt.prototype.Ql,Kt.prototype.resetRenderingHints=Kt.prototype.Tx,Kt.prototype.setRenderingHint=Kt.prototype.Xx,Kt.prototype.getRenderingHint=Kt.prototype.Gf,Kt.prototype.maybeUpdate=Kt.prototype.bd,Kt.prototype.requestUpdate=Kt.prototype.$b,Kt.prototype.delayInitialization=Kt.prototype.Xy,Kt.prototype.isUpdateRequested=Kt.prototype.Pz,Kt.prototype.invalidateDocumentBounds=Kt.prototype.Ya,Kt.prototype.findObjectsNear=Kt.prototype.og,Kt.prototype.findPartsNear=Kt.prototype.mz,Kt.prototype.findObjectsIn=Kt.prototype.Cf,Kt.prototype.findPartsIn=Kt.prototype.ux,Kt.prototype.findObjectsAt=Kt.prototype.ji,Kt.prototype.findPartsAt=Kt.prototype.lz,Kt.prototype.findObjectAt=Kt.prototype.ic,Kt.prototype.findPartAt=Kt.prototype.Ol,Kt.prototype.focusObject=Kt.prototype.zz,Kt.prototype.alignDocument=Kt.prototype.Jy,Kt.prototype.zoomToRect=Kt.prototype.BA,Kt.prototype.zoomToFit=Kt.prototype.zoomToFit,Kt.prototype.diagramScroll=Kt.prototype.kx,Kt.prototype.focus=Kt.prototype.focus;var Zh=new ki,uh=null,qa=ft.document!==void 0,Sf=null,Wc="",kl=new sn(Kt,"None",0),Bu=new sn(Kt,"Uniform",1),Zc=new sn(Kt,"UniformToFill",2),Yf=new sn(Kt,"CycleAll",10),lp=new sn(Kt,"CycleNotDirected",11),up=new sn(Kt,"CycleNotDirectedFast",12),hp=new sn(Kt,"CycleNotUndirected",13),dp=new sn(Kt,"CycleDestinationTree",14),cp=new sn(Kt,"CycleSourceTree",15),fc=new sn(Kt,"DocumentScroll",1),Uf=new sn(Kt,"InfiniteScroll",2),gc=new sn(Kt,"TreeParentCollapsed",21),Fs=new sn(Kt,"AllParentsCollapsed",22),xg=new sn(Kt,"AnyParentsCollapsed",23),fp=new En,xf="2.3.10",wf="image",Xf=null,dm=!1;function wl(){if(qa){var a=ft.document.createElement("canvas"),y=a.getContext("2d"),x=qt("7ca11abfd022028846");y[x]=qt("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",fn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Mr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Nt.za],E=1;5>E;E++)y[qt("7ca11abfd7330390")](qt(b[E-1]),10,15*E);for(y[x]=qt("39f046ebb36e4b"),x=1;5>x;x++)y[qt("7ca11abfd7330390")](qt(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Mr.prototype.Cd=Mr.prototype.Eu),Xf=a}}Kt.className="Diagram",Kt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ft.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Kt?y.H:null},Kt.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},Kt.useDOM=function(a){qa=a?ft.document!==void 0:!1},Kt.isUsingDOM=function(){return qa},Kt.None=kl,Kt.Uniform=Bu,Kt.UniformToFill=Zc,Kt.CycleAll=Yf,Kt.CycleNotDirected=lp,Kt.CycleNotDirectedFast=up,Kt.CycleNotUndirected=hp,Kt.CycleDestinationTree=dp,Kt.CycleSourceTree=cp,Kt.DocumentScroll=fc,Kt.InfiniteScroll=Uf,Kt.TreeParentCollapsed=gc,Kt.AllParentsCollapsed=Fs,Kt.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)e:{y="f";var x=ft[qt("76a715b2f73f148a")][qt("72ba13b5")]||"";if(a.Rc=!0,qa){var b=Kt[qt("76a115b6ed251eaf4692")];if(b)for(var E=fp.iterator;E.next()&&(b=E.value,b=qt(b).split(qt("39e9")),!(6>b.length));){var z=qt(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=qt(fn[qt("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=ft[qt("74a900bae4370f8b51")][qt("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[qt("73a612b6fb191d")](qt("3aad1ab6e022098b4dc4")),z=qt(b[2]),-1<ee&&(re=re[qt("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[qt("76ad18b4f73e")],re=x[qt("73a612b6fb191d")](qt("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[qt("73a612b6fb191d")](z),0>ee&&z!==qt("7da71ca0ad381e90")&&(ee=y[qt("73a612b6fb191d")](qt("76a715b2ef3e149757"))),0>ee&&(ee=y[qt("73a612b6fb191d")](qt("76a715b2ef3e149757"))),0>ee&&(ee=y[qt("73a612b6fb191d")](qt("2bfa41fdb3784bca12"))),0>ee&&(ee=x[qt("73a612b6fb191d")](qt("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[qt("73a612b6fb191d")](qt("35"))||y[qt("73a612b6fb191d")](qt("35"))===-1),!a.Rc||x[qt("73a612b6fb191d")](qt("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[qt("73a612b6fb191d")](z)),!a.Rc)||(ee=ft[qt("76a715b2f73f148a")][qt("69ad17a1e03e")],re=ee[qt("73a612b6fb191d")](qt("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[qt("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=ft.document.createElement("div");for(var oe=b[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),b="",b+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[qt("79a417a0f0181a8946")]=b,ft.document[qt("78a712aa")]){ft.document[qt("78a712aa")][qt("7bb806b6ed32388c4a875b")](ee),oe=ft.getComputedStyle(ee).getPropertyValue(qt("78a704b7e62456904c9b12701b6532a8"));var le=ft.getComputedStyle(ee).getPropertyValue(qt("75b817b0ea2202"));if(ft.document[qt("78a712aa")][qt("68ad1bbcf533388c4a875b")](ee),oe){if(ee=ft[qt("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(qt("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(b===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[qt("76ad18b4f73e")],E=x[qt("73a612b6fb191d")](qt("35e7"))+2;E<ue;E++)y+=x[E];x=y[qt("73a612b6fb191d")](qt("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[qt("73a612b6fb191d")](qt("35")))}}}return 0<a.Rc&&a!==a.wy}cm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new Ue:a,this.o=new Ue}Qe.Object.defineProperties(Kd.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Jf="DraggingInfo";Kd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ri(NaN,NaN).freeze(),this.gridSnapCellSpot=Ls,this.gridSnapOrigin=new Ue(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ce(a,y){if(typeof a=="string"||ft.Element&&a instanceof Element)var x=Kt.call(this,a)||this;else x=Kt.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Yt(ce,Kt);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ql,a.layout=new rl}ce.prototype.reset=function(){Kt.prototype.reset.call(this),de(this)},ce.className="Palette";function pe(a,y){if(typeof a=="string"||ft.Element&&a instanceof Element)var x=Kt.call(this,a)||this;else x=Kt.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 et,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new Ue(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){b.Ya(),ze(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&&ze(b)},x.autoScale=Bu,x.vb=!1,y&&Object.assign(x,y),x}Yt(pe,Kt),pe.prototype.computePixelRatio=function(){return 1},pe.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(fu(this),this.ql===null){var x=new dh(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ae(this)}finally{this.ta=a,this.ib=y}}}Kt.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&dt("No div specified"),this.ta===null&&dt("No canvas specified"),!(this.ta instanceof sd)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){fu(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Ae(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 Ae(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=hn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sh(y,E),hn.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 ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)b&&le.layer===re&&(re=Ws(re,E),le.gc(E,oe),E.globalAlpha=re);else{for(var ue=Ws(re,E),fe=oe.scale,ve=hn.alloc(),Ce=re.Pa.s,Le=Ce.length,De=0;De<Le;De++){var _e=Ce[De];(b||_e!==le)&&re.Oj(E,_e,oe,null,fe,ve,!1)}hn.free(ve),E.globalAlpha=ue}}}}}function ze(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=ri.alloc();E.h(x.width,x.height),b.desiredSize=E,ri.free(E),a=2/a.scale,b instanceof Tr&&(b.strokeWidth=a),y.location=new Ue(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Kr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ze(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))},Qe.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&dt("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),ze(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),ze(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)}}}),pe.className="Overview";function et(){Ri.call(this),this.j=null}Yt(et,Ri),et.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 Ue(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)),!0)},et.prototype.doActivate=function(){this.j=null,Ri.prototype.doActivate.call(this)},et.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},et.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 Ue(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)}}},et.className="OverviewDraggingTool";function qe(){Br(this),this.H=ah,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Kr,this.hb=!0,this.cg=null,this.ob=200}qe.prototype.toString=function(){return"CommandHandler"},qe.prototype.Xe=function(a){this.H=a},qe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=yr?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()},qe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},qe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof zn&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},qe.prototype.canStopCommand=function(){return!0},qe.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=""}},qe.prototype.canSelectAll=function(){return this.diagram.allowSelect},qe.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=""}},qe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},qe.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)},qe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},qe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},qe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},qe.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 En,x.addAll(z),Sf=x,Wc=y.model.dataFormat}}y.R("ClipboardChanged",x)},qe.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,ee=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=ee.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},qe.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Yu(y,z,new Ue(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=""}},qe.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)},qe.prototype.undo=function(){this.diagram.undoManager.undo()},qe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},qe.prototype.redo=function(){this.diagram.undoManager.redo()},qe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},qe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===kl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},qe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==kl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},qe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===kl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},qe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==kl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},qe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},qe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},qe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Oa(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Kr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ho(y)},qe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},qe.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Oa(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=yt(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 oe=E.pop();0<E.length&&oe instanceof ci&&oe.isTreeExpanded&&(!(oe instanceof Pr)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof Hi&&y.tv(oe.actualBounds),oe instanceof ci&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Pr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Hi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){bi(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function yt(a,y,x){if(y.isVisible())return x;if(y instanceof Ao)yt(a,y.adornedPart,x);else if(y instanceof Qn){var b=y.fromNode;b!==null&&yt(a,b,x),y=y.toNode,y!==null&&yt(a,y,x)}else y instanceof ci&&(b=y.labeledLink,b!==null&&yt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),yt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),yt(a,y,x));return x}qe.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)},qe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Oa(y.animationManager,"Collapse Tree");var x=new En;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ci&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},qe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ci&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ci&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},qe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Oa(y.animationManager,"Expand Tree");var x=new En;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ci&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},qe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ci)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ci&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},qe.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 En,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new En,oe=E.iterator;oe.next();){var le=oe.value;z=!1;for(var ue=E.iterator;ue.next();)if(le.Td(ue.value)){z=!0;break}z||re.add(le)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){E=!1;for(var ve=re.iterator;ve.next();)if(!ve.value.Td(fe)){E=!0;break}if(E)fe=fe.containingGroup;else break}if(x instanceof Pr)ch(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ce=y.copyNodeData(x);dn(Ce)&&(y.xf(Ce),b=a.ii(Ce))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Le=re.iterator;Le.next();){var De=Le.value;this.isValidMember(b,De)&&(De.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},qe.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function ln(a){var y=an();for(a=a.iterator;a.next();){var x=a.value;x instanceof Qn||y.push(x)}a=new An,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,ee=0;ee<x;ee++)if(E.Td(y[ee])){z=!1;break}z&&a.add(E)}return Mn(y),a}qe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Qn)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},qe.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 En;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 ee=new En;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,ue=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(oe.memberParts);for(var fe=ee.iterator;fe.next();){var ve=fe.value;if(ve.isSelected=!0,!(ve instanceof Qn)){var Ce=ve.data;Ce!==null?x.mp(Ce,ue):ve.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},qe.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},qe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=ln(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},qe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Oa(y.animationManager,"Collapse SubGraph");var x=new En;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")}},qe.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},qe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Oa(y.animationManager,"Expand SubGraph");var x=new En;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")}},qe.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},qe.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof la&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},qe.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof la))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof la&&x.editable}),a!==null))return!0;return!1},qe.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 At?E=a.ga(so):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ue(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Ro(x,!1,a)}},qe.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)},qe.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new ki,a===null)return b;for(var z=a.iterator;z.next();)Tu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Qn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Qe.Object.defineProperties(qe.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||dt("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}}}),qe.className="CommandHandler",Rh=function(){return new qe};function At(){Br(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ue(NaN,NaN).freeze(),this.jd=Ga,this.Ab=new Mr,this.wh=new Mr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=dl,this.uc=new hn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new hn(NaN,NaN,NaN,NaN).freeze(),this.dc=new hn(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 Wn,Bn,Ni,Bi,Ji,Cr,io,Gr,xo,Qo;At.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=Rt(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},At.prototype.Vw=function(a){var y=this.Dh;if(vn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},At.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},At.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},At.prototype.copy=function(){return this.clone()},Ee=At.prototype,Ee.qb=function(a){a.classType===Qn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:dt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===At&&(this.stretch=a)},Ee.toString=function(){return bn(this.constructor)+"#"+bo(this)},Ee.th=function(){this.A!==null&&(this.A.nc=!0)};function Hr(a){a.A===null?a.A=new $f:a.A.nc&&(a.A=a.A.copy())}Ee.Xc=function(){if(this.ba===null){var a=new gp;a.Xi=Ua,a.yj=Ua,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ee.cb=function(a,y,x,b,E,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,ee),x===this&&a===Zn&&hl(this)&&pa(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new ki),ee=z.undoManager.transactionLevel===0,a.startCondition===Hs?ee=!0:a.startCondition===rs&&(ee=!1),ee?(z=new Wa,ba(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Oa(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Gn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof Gn&&Lf(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function pa(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,ee=null;if(z.sourceName!==null){if(ee=L1(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,b)}ee===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ee.ks=function(a){return this.bindingId===a?this:null},Ee.g=function(a,y,x){this.cb(Zn,a,this,y,x)},Ee.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 Mr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Zs(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ee.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Zo(a.x,a.y,0,0,0,b.height)<=y||Zo(a.x,a.y,0,b.height,b.width,b.height)<=y||Zo(a.x,a.y,b.width,b.height,b.width,0)<=y||Zo(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Ee.se=function(){return!0},Ee.ca=function(a){var y=Ue.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ue.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var oe=1/b;if(re.width*b<E&&re.height*b<E)return a=fa(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Ue.free(y),a}return E=!1,(this instanceof Ao||this instanceof Tr?fa(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Ue.free(y),E},Ee.gh=function(a){var y=this.naturalBounds;return fa(0,0,y.width,y.height,a.x,a.y)},Ee.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=hn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Ue.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)))),Ue.free(E),hn.free(y),b},Ee.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ue.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)))),Ue.free(E),b},Ee.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ue.allocAt(0,0),E=Ue.allocAt(0,x.height),z=Ue.allocAt(x.width,x.height),ee=Ue.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=hn.allocAt(0,0,x.width,x.height);var oe=Ue.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Ue.free(oe),hn.free(x),!re&&(Nt.us(a,b,E)||Nt.us(a,E,z)||Nt.us(a,z,ee)||Nt.us(a,ee,b))&&(re=!0)}return Ue.free(b),Ue.free(E),Ue.free(z),Ue.free(ee),re},Ee.ga=function(a,y){if(y===void 0&&(y=new Ue),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},Ee.mi=function(a){a===void 0&&(a=new hn);var y=this.naturalBounds,x=this.oe,b=Ue.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),No(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),No(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),No(a,b.x,b.y,0,0),Ue.free(b),a},Ee.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},Ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ee.qs=function(a,y){return y===void 0&&(y=new Ue),y.assign(a),this.oe.Cd(y),y},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ve=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Nt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*re+y*le+fe,a=a*oe+y*ue+ve,y=x*re+b*le+fe,x=x*oe+b*ue+ve,E.h(0,0),b=this.naturalBounds,x=Nt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},At.prototype.measure=function(a,y,x,b){if(Iu(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+ee:a,y=isFinite(E.width)?E.width+ee:y):(a=isFinite(E.width)?E.width+ee:a,y=isFinite(E.height)?E.height+ee:y),E=x||0,ee=b||0;var re=this instanceof Gn;switch(nu(this,!0)){case Bn:ee=E=0,re&&(y=a=1/0);break;case Wn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case Bi:isFinite(a)&&a>x&&(E=a),ee=0,re&&(y=1/0);break;case Ji:isFinite(y)&&y>b&&(ee=y),E=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;E>re.width&&oe.width<re.width&&(E=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(E,oe.width),b=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<b&&(b=Math.min(oe.height,b)),a=Math.min(re.width,a),y=Math.min(re.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()||dt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ns(this,!1)}},At.prototype.Wl=function(){},At.prototype.Dd=function(){return!1},At.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=hn.alloc();z.assign(this.Ib),this.Ib.ka(),Hl(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&vc(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof la&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||dt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),hn.free(z)},Ee=At.prototype,Ee.eh=function(){};function Fl(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,b+=y,E+=ee,y=nu(a,!0),x===b&&z===E&&(y=Bn),y){case Bn:(x>b||z>E)&&(Ns(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Wn:Ns(a,!0),a.measure(b,E,0,0);break;case Bi:Ns(a,!0),a.measure(b,z,0,0);break;case Ji:Ns(a,!0),a.measure(x,E,0,0)}}}Ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),$o(a,y)||(x.oh(),this.Pn(x)))},Ee.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof ci&&GS(a,this))},Ee.gc=function(a,y){if(!Uu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Gn&&vc(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(_a(this,a,le,!0,!0,oe,re),le instanceof Go&&le.type===Qu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(_a(this,a,ue,!0,!1,oe,re),ue instanceof Go&&ue.type===Qu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&il(this),le=this.part,oe=!1;var fe=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ue=le.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var ve;if(!(ve=y.$i||!ue)){var Ce=this.naturalBounds;ve=this.wh;var Le=ve.m11,De=ve.m21,_e=ve.dx,Ze=ve.m12,st=ve.m22,ht=ve.dy,mt,Lt=mt=0;ve=mt*Le+Lt*De+_e;var Vt=mt*Ze+Lt*st+ht;mt=Ce.width+fe,Lt=0;var di=mt*Le+Lt*De+_e;mt=mt*Ze+Lt*st+ht,Lt=Math.min(ve,di);var Ci=Math.min(Vt,mt),vi=Math.max(ve+0,di)-Lt,Jn=Math.max(Vt+0,mt)-Ci;ve=Lt,Vt=Ci,mt=Ce.width+fe,Lt=Ce.height+fe,di=mt*Le+Lt*De+_e,mt=mt*Ze+Lt*st+ht,Lt=Math.min(ve,di),Ci=Math.min(Vt,mt),vi=Math.max(ve+vi,di)-Lt,Jn=Math.max(Vt+Jn,mt)-Ci,ve=Lt,Vt=Ci,mt=0,Lt=Ce.height+fe,di=mt*Le+Lt*De+_e,mt=mt*Ze+Lt*st+ht,Lt=Math.min(ve,di),Ci=Math.min(Vt,mt),vi=Math.max(ve+vi,di)-Lt,Jn=Math.max(Vt+Jn,mt)-Ci,ve=Lt,Vt=Ci,fe=y.viewportBounds,Ce=fe.x,Le=fe.y,ve=!(ve>fe.width+Ce||Ce>vi+ve||Vt>fe.height+Le||Le>Jn+Vt)}if(ve){if(ve=(this.l&256)!==0,a.clipInsteadOfFill&&(ve=!1),this instanceof la&&(a.font=this.font),ve){if(Vt=re.se()?re.naturalBounds:re.actualBounds,vi=Math.max(ee.x,Vt.x),Jn=Math.max(ee.y,Vt.y),fe=Math.min(ee.right,Vt.right)-vi,Ce=Math.min(ee.bottom,Vt.bottom)-Jn,Le=this.tb,Le!==null&&(vi=Le.x,Jn=Le.y,fe=Le.width,Ce=Le.height),vi>ee.width+ee.x||ee.x>Vt.width+Vt.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(vi,Jn,fe,Ce),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&(Vt=le.shadowOffset,a.Ev(Vt.x*y.scale*this.scale*y.Mb,Vt.y*y.scale*this.scale*y.Mb,le.shadowBlur),Vd(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?Vd(a):oe&&this.shadowVisible===!1&&wd(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ou(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&el(this,re)&&this.shadowVisible===null&&wd(a),this.Ma!==null&&(a.yc(),gu(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||el(this,re))?(Eh(this,!0),this.shadowVisible===null&&wd(a)):Eh(this,!1),this.hh(a,y),oe&&this.l&512&&Vd(a),ue&&oe&&wd(a),ve&&(a.restore(),a.Vc(this instanceof Gn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function el(a,y){return y===null?!1:(vc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Gn.Auto||y.type===Gn.Spot)&&y.Pb()!==a)}Ee.Dv=function(){};function Ou(a,y,x,b){_a(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Go&&a.areaBackground.type===Qu?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function gu(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,re=x.width+E,oe=x.height+E;_a(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Go&&a.Ma.type===Qu?(y.beginPath(),y.rect(z-E/2,ee-E/2,re,oe),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,re,oe)}function Pl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,ee=0;ee<E;ee++)if(b[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Gn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Uu(a,y,x){if(!(y instanceof Eu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&Pl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Vd(y),y.shadowColor=a.shadowColor}a instanceof la&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Gn;var re=a instanceof Gn?vc(a):!1;a.l&4096&&il(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(pp(y,1,0,0,1,0,0),a.svg=y.ad):z?(pp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):pp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],Ou(a,y,E,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),gu(a,y,E,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],gu(a,y,E,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Vd(y),re&&a.shadowVisible===!0?Vd(y):re&&a.shadowVisible===!1&&wd(y),E=a.panel,re&&el(a,E)&&a.shadowVisible===null&&wd(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||el(a,E))?(Eh(a,!0),a.shadowVisible===null&&wd(y)):Eh(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,oe,re),tu(y,le),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,b,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&Vd(y),a.Dd()&&wd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Pl(a,b,re),ee!==null&&ee(a,re)),!0)}Ee.$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 ee=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,ee=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+ca++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof Gn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ee.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=yi(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()}}Ee.hh=function(){},Ee.lv=function(){this.Uc=!0},Ee.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Gn?vc(this):!1;if(!(this instanceof Gn&&E))if(this instanceof ru){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof Gn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Tr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].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):(ee=b.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Ou(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Gn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),gu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ee.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function _a(a,y,x,b,E,z,ee){if(x!==null){var re=1,oe=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 le=a.kq();if(re=z.width,oe=z.height,E?(re=ee.width,oe=ee.height):b||(re+=le,oe+=le),(z=y instanceof Ef)&&x.xe&&(x.type===Mg||x.yk===re&&x.ft===oe))var ue=x.xe;else{var fe=0,ve=0,Ce=0,Le=0,De=0,_e=0;if(_e=De=0,E?(De=ee.x,_e=ee.y):b||(De-=le/2,_e-=le/2),fe=x.start.x*re+x.start.offsetX,ve=x.start.y*oe+x.start.offsetY,Ce=x.end.x*re+x.end.offsetX,Le=x.end.y*oe+x.end.offsetY,fe+=De,Ce+=De,ve+=_e,Le+=_e,x.type===Ud)ue=y.createLinearGradient(fe,ve,Ce,Le);else if(x.type===Qu)_e=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(De=0,_e=Math.max(re,oe)/2):De=x.startRadius,ue=y.createRadialGradient(fe,ve,De,Ce,Le,_e);else if(x.type===Mg)try{ue=y.createPattern(x.pattern,"repeat")}catch(st){ue=null}if(x.type!==Mg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ue.addColorStop(E.key,E.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===Mg&&x.yk!==-1)){x.yk=-1;var Ze=a.diagram;Ze!==null&&x.yk===-1&&bi(function(){Ze.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}Ee.rg=function(a){if(a instanceof Gn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ee.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ee.If=function(){for(var a=this instanceof Gn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function il(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){hh(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}hh(a,!1),Xu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Xu(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Xu(a,!1)))}Ee.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ue.alloc();z.yi(y,x,b,E,so),a.rotate(this.Kb,z.x,z.y),Ue.free(z)}},Ee.v=function(a){if(!Iu(this)){a===void 0&&(a=!1),Ns(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},Ee.Uj=function(){Iu(this)||(Ns(this,!0),xd(this,!0))};function jl(a){if(!Hl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ci&&a.Bd(),y.$b())),xd(a,!0)}}Ee.Uk=function(){!(this.l&2048)&&(hh(this,!0),Xu(this,!0))},Ee.Wu=function(){Xu(this,!0)},Ee.N=function(){var a=this.part;a!==null&&a.N()};function nu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Gn.Table?Gh(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Gn.Auto&&b.Pb()===a?tl(a,Wn,y):x===Cr?b!==null?b.type===Gn.Spot&&b.Pb()===a?tl(a,Wn,y):(x=b.defaultStretch,x===Cr?tl(a,Bn,y):tl(a,x,y)):tl(a,Bn,y):tl(a,x,y)}function Gh(a,y,x,b){var E=a.stretch;if(E!==Cr)return tl(a,E,b);var z=E=null;switch(y.stretch){case Ji:z=!0;break;case Wn:z=!0}switch(x.stretch){case Bi:E=!0;break;case Wn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Bi||y===Wn),z===null&&(z=y===Ji||y===Wn),E===!0&&z===!0?tl(a,Wn,b):E===!0?tl(a,Bi,b):z===!0?tl(a,Ji,b):tl(a,Bn,b)}function tl(a,y,x){if(x)return y;if(y===Bn||(x=a.desiredSize,x.w()))return Bn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Bi)return Bn;if(y===Wn)return Ji}else{if(y===Ji)return Bn;if(y===Wn)return Bi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ji)return Bn;if(y===Wn)return Bi}else{if(y===Bi)return Bn;if(y===Wn)return Ji}return y}function Eh(a,y){a.l=y?a.l|512:a.l&-513}function hl(a){return(a.l&1024)!==0}function Qf(a,y){a.l=y?a.l|1024:a.l&-1025}function hh(a,y){a.l=y?a.l|2048:a.l&-2049}function Xu(a,y){a.l=y?a.l|4096:a.l&-4097}function Iu(a){return(a.l&8192)!==0}function Ns(a,y){a.l=y?a.l|8192:a.l&-8193}function Hl(a){return(a.l&16384)!==0}function xd(a,y){a.l=y?a.l|16384:a.l&-16385}Ee.Gj=function(){this.svg=null},Ee.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ee.Av=function(){},Ee.zv=function(a){return this.pa=a,jl(this),!0},Ee.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ee.kq=function(){return 0};function Cf(a){var y=a.part;if(y instanceof ci&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||GS(y,a)}}function Uy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Gn?a instanceof ci?a.Bd():a.qm(a,function(x){Cf(x)}):Cf(a))}Ee.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new vs(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&cS(a)&&dt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new En),this.localBindings.add(E),this},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return nv(this,a),this},Ee.apply=function(a){return a(this),this},Ee.nm=function(a){return cu(this,a),this},Ee.pz=function(){return this.ih()},Ee.ih=function(){for(var a=this instanceof Gn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ee.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ki),this.animationTriggers.add(a.propertyName,a),this};function Ju(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wg.I(a);typeof z=="function"?(x=Rt(arguments),b=z(x),dn(b)||dt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=ft.go[a]}if(b===null&&(E!=null&&E.constructor||dt("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 Kt&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Ph(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?dt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof la)a.text=y;else if(a instanceof Tr)a.figure=y;else if(a instanceof ru)a.source=y;else if(a instanceof Gn)y=Lh.I(y),y!==null&&(a.type=y);else if(a instanceof Go){var x=ai(Go,y);x!==null?a.type=x:dt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ei?(y=ai(ei,y),y!==null&&(a.type=y)):a instanceof vo&&(y=ai(vo,y),y!==null&&(a.type=y));else if(y instanceof At)a instanceof Gn||dt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ts){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Ts?Nm(b,y):dt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof sn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Rs)a.type=y;else if(y instanceof vs)a instanceof At||a instanceof Ts?a.bind(y):dt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof _l)a instanceof At?a.Jv(y):dt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Es)a instanceof ei&&a.type===ei.o?a.figures.add(y):dt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof vo)a instanceof Es?a.segments.add(y):dt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Fa)a instanceof Kt||a instanceof Pr?a.layout=y:dt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Go){x=new Gi;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);cu(a,x)}else if(a instanceof Ts){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&dt("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)&&dt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Gi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);cu(a,E)}else cu(a,y);else dt('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}Qe.Object.defineProperties(At.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new $f),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new $f),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new $f),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Hr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Hr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Gl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Gl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:fo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Cr},set:function(a){var y=this.stretch;y!==a&&(Hr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Hr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ui(a,"0 <= value <= 1",At,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Uy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&_f(a,"GraphObject.areaBackground"),a instanceof Go&&a.freeze(),Hr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"GraphObject.background"),a instanceof Go&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof 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 Ue(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&&dt("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&&(pa(this,a,"width"),pa(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ri(a,this.jd.height).freeze(),this.v(),this instanceof Tr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ri(this.jd.width,a).freeze(),this.v(),this instanceof Tr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Er},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Hr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ra},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Hr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&il(this),this.Ab}},oe:{get:function(){return this.l&4096&&il(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Hr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Bn},set:function(a){this.reshapingBehavior!==a&&(Hr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&dt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),jl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&ui(a,">= 0",At,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&ui(a,">= 1",At,"columnSpan"),Hr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&ui(a,">= 0",At,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&ui(a,">= 1",At,"rowSpan"),Hr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Hr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof ci||dt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Zv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,YS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ua},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Cf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",At,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Cf(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Cf(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ui(a,">= 0",At,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ua},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Cf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",At,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Cf(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Cf(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ui(a,">= 0",At,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Hr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Hr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Hr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Hr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Hr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Hr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Hr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Hr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Hr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Hr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Hr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Hr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Hr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Hr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Hr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Hr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Hr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Hr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),At.prototype.trigger=At.prototype.Jv,At.prototype.findBindingPanel=At.prototype.ih,At.prototype.findTemplateBinder=At.prototype.pz,At.prototype.setProperties=At.prototype.nm,At.prototype.apply=At.prototype.apply,At.prototype.attach=At.prototype.Du,At.prototype.set=At.prototype.set,At.prototype.isEnabledObject=At.prototype.If,At.prototype.isVisibleObject=At.prototype.Ed,At.prototype.isContainedBy=At.prototype.rg,At.prototype.getNearestIntersectionPoint=At.prototype.rs,At.prototype.getLocalPoint=At.prototype.qs,At.prototype.getDocumentScale=At.prototype.Df,At.prototype.getDocumentAngle=At.prototype.li,At.prototype.getDocumentBounds=At.prototype.mi,At.prototype.getDocumentPoint=At.prototype.ga,At.prototype.intersectsRect=At.prototype.Yc,At.prototype.containedInRect=At.prototype.fh,At.prototype.containsRect=At.prototype.Re,At.prototype.containsPoint=At.prototype.ca,At.prototype.raiseChanged=At.prototype.g,At.prototype.raiseChangedEvent=At.prototype.cb,At.prototype.addCopyProperty=At.prototype.Vw;var wg=null;At.className="GraphObject",wg=new ki,pc("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Ju(Gn,Gn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Gn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Ju(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 Gn&&(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 Gn&&(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 Gn&&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 ee=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ee,ee=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Tr){var z=x.diagram,ee=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=ee}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Tr){var z=x.diagram,ee=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=ee}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Tr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=b._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=b._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),E.skipsUndoManager=z}}},y}),pc("TreeExpanderButton",function(){var a=Ju("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ju(Tr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Sa},new vs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new vs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ao&&(x=x.adornedPart),x instanceof ci){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),pc("SubGraphExpanderButton",function(){var a=Ju("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ju(Tr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Sa},new vs("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ao&&(x=x.adornedPart),x instanceof 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 Ju(Ao,Gn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},Ju(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 Ju(Ao,Gn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},new vs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pc("ContextMenuButton",function(){var a=Ju("Button");a.stretch=Bi;var y=a.fb("ButtonBorder");return y instanceof 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=Ju("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Ju(Tr,{name:"ButtonIcon",strokeWidth:2},new vs("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof 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 ee=E.ih();ee===null&&(ee=E.part),ee!==null&&(E=ee.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),pc("CheckBoxButton",function(a){var y=fm(a);return a=Ju("Button",{desiredSize:new ri(14,14)},Ju(Tr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Wn,geometryStretch:Ni,visible:!1},y!==""?new vs("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Gn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),pc("CheckBox",function(a){a=fm(a),a=Ju("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new zi(0,1,0,0)});var y=Ju(Gn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new zi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),At.None=Bn=new sn(At,"None",0),At.Default=Cr=new sn(At,"Default",0),At.Vertical=Ji=new sn(At,"Vertical",4),At.Horizontal=Bi=new sn(At,"Horizontal",5),At.Fill=Wn=new sn(At,"Fill",3),At.Uniform=Ni=new sn(At,"Uniform",1),At.UniformToFill=io=new sn(At,"UniformToFill",2),At.FlipVertical=Gr=new sn(At,"FlipVertical",1),At.FlipHorizontal=xo=new sn(At,"FlipHorizontal",2),At.FlipBoth=Qo=new sn(At,"FlipBoth",3),At.make=Ju,At.getBuilders=function(){var a=new ki,y;for(y in wg)if(y!==y.toLowerCase()){var x=wg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},At.defineBuilder=pc,At.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 At))return y&&b.set(y),b;dt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},At.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=Er,this.o=Ra,this.hg=Cr,this.ob=this.Bi=1,this.Pf=Bn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}$f.prototype.copy=function(){var a=new $f;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Gc(){this.u=-1/0,this.o=0,this.F=fo,this.rr=Gl,this.j=this.V="None"}Gc.prototype.copy=function(){var a=new Gc;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Gc.className="LinkElementSettings";function gp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}gp.prototype.copy=function(){var a=new gp;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},gp.className="LinkSettings";function bf(){this.ha=[1,0,0,1,0,0]}bf.prototype.copy=function(){var a=new bf;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},bf.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},bf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},bf.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,ee=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]=ee,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?ft.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Eu(this,x)}sd.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},sd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),dn(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},Qe.Object.defineProperties(sd.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),sd.className="SVGSurface";function Eu(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new bf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ca++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,z,ee){a.Nj===void 0?pp(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}Ee=Eu.prototype,Ee.arc=function(a,y,x,b,E,z,ee,re){var oe=2*Math.PI,le=oe-1e-6,ue=x*Math.cos(b),fe=x*Math.sin(b),ve=a+ue,Ce=y+fe,Le=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-ve)||1e-6<Math.abs(re-Ce))&&this.path.push(["L",ve,+Ce]),0>b&&(b=b%oe+oe),b>le?(this.path.push(["A",x,x,0,1,Le,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Le,ve,Ce])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Le,a+x*Math.cos(E),y+x*Math.sin(E)])},Ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ee.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ee.clearRect=function(){},Ee.clip=function(){this.Yl.clipPath=!0},Ee.closePath=function(){this.path.push(["z"])},Ee.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},Ee.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+ca++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(wf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ee.createRadialGradient=function(a,y,x,b,E,z){var ee=new qf("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function Jy(a,y,x,b,E,z,ee,re,oe){b=re/b,E=oe/E,z===0&&ee===0||a.rb.translate(z,ee),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ee.drawImage=function(a,y,x,b,E,z,ee,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ee=x,re=b=ue,oe=E=a),b=b||0,E=E||0,re=re||0,oe=oe||0,Jy(this,y,x,b,E,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||b,height:a||E,href:le},Nt.$(b,re)&&Nt.$(E,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ue||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)},Ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ee.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)},Ee.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))},Ee.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])},Ee.lineTo=function(a,y){this.path.push(["L",a,y])},Ee.moveTo=function(a,y){this.path.push(["M",a,y])},Ee.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ee.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"])},Ee.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},Ee.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())},Ee.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]+")"}Ee.scale=function(a,y){this.rb.scale(a,y)},Ee.translate=function(a,y){this.rb.translate(a,y)},Ee.transform=function(){},Ee.yc=function(){},Ee.stroke=function(){qy(this,this.Yl)},Ee.jk=function(){this.clipInsteadOfFill||this.stroke()},Ee.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ee.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Pg(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof qf?y.fill=rv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function $y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof qf?y.setAttributeNS(null,"fill",rv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof qf)y.stroke=rv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function rv(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+ca++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],ee=0;ee<y;ee++){var re=E[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,ue){return le.offset>ue.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ee.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Rt(a[E]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());b.push(ee.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 re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function pp(a,y,x,b,E,z,ee){var re=new bf;re.ha=[y,x,b,E,z,ee],y={},Pg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ee.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}Ee.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ee.fs=function(){this.Ct=!1},Ee.Vc=function(){},Ee.Wx=function(){},Eu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Eu.prototype.getImageData=function(){return null},Eu.prototype.measureText=function(){return null};function pm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Eu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Eu.className="SVGContext",Kt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new sd(this,ft.document));var y=new sd(this,ft.document,!0);a===void 0&&(a=new Gi);var x=this;return lh(this,function(b,E){return b=cc(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Kt.prototype.makeSvg=Kt.prototype.Cs,Kt.prototype.av=function(a){return this.Cs(a)},Kt.prototype.makeSVG=Kt.prototype.av;function dh(a,y,x,b){this.ownerDocument=y=y===void 0?ft.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ef(y,x,b),y.H=a}dh.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},dh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},dh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},dh.prototype.focus=function(){this.Oa.focus()},dh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Qe.Object.defineProperties(dh.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),dh.className="CanvasSurface";function Ef(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&dt("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 Mr,this.isTemporary=!!x}Ee=Ef.prototype,Ee.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ee.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ee.beginPath=function(){this.Z.beginPath()},Ee.Se=function(){},Ee.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ee.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ee.clip=function(){this.Z.clip()},Ee.closePath=function(){this.Z.closePath()},Ee.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ee.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ee.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ee.drawImage=function(a,y,x,b,E,z,ee,re,oe){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,re,oe)},Ee.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ee.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ee.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ee.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ee.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ee.lineTo=function(a,y){this.Z.lineTo(a,y)},Ee.measureText=function(a){return this.Z.measureText(a)},Ee.moveTo=function(a,y){this.Z.moveTo(a,y)},Ee.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ee.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ee.restore=function(){this.Z.restore()},Ee.save=function(){this.yc(),this.Z.save()},Ef.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ee=Ef.prototype,Ee.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ee.scale=function(a,y){this.El.scale(a,y)},Ee.translate=function(a,y){this.El.translate(a,y)},Ee.stroke=function(){this.Z.stroke()},Ee.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*b,x=ee.m12*x+ee.m22*b,ee.dx=ee.m11*E+ee.m21*z+ee.dx,ee.dy=ee.m12*E+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ee.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ee.ng=function(a,y){if(a instanceof Go&&a.type===Qu){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ee.jk=function(){this.Hm||this.stroke()},Ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ee.Hs=function(){},Qe.Object.defineProperties(Ef.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Ef.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function Go(a,y){Lg||(hv(),Lg=!0),Br(this),this._isFrozen=!1,a===void 0?(this.na=mc,this.xk="black"):typeof a=="string"?(this.na=mc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Ql,this.Lk=Ml):this.Lk=a===Qu?this.Qd=so:this.Qd=Ua,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Go.prototype.copy=function(){var a=new Go;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ee=Go.prototype,Ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ee.ka=function(){return Object.isFrozen(this)&&dt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ee.qb=function(a){a.classType===Go&&(this.type=a)},Ee.toString=function(){var a="Brush(";if(this.type===mc)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===Qu?a+"Radial ":this.type===Mg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ee.addColorStop=function(a,y){return this._isFrozen&&Fn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ui(a,"0 <= loc <= 1",Go,"addColorStop:loc"),this.we===null&&(this.we=new ki),this.we.add(a,y),this.na===mc&&(this.type=Ud),this.xe=null,this},Ee.Vz=function(a,y){if(this._isFrozen&&Fn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===Qu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(y,x)}Ee.Wy=function(a,y){if(this._isFrozen&&Fn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===Qu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function eS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(-y,x)}function ov(a,y,x){Yd(a),a=ha.j;var b=ha.u,E=ha.o,z=ha.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((ha.j-a)*x+a)+", "+Math.round((ha.u-b)*x+b)+", "+Math.round((ha.o-E)*x+E)+", "+Math.round((ha.F-z)*x+z)+")"}Ee.Gx=function(){if(this.type===mc)return Cg(this.color);if((this.type===Ud||this.type===Qu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Qu)return Cg(a.first().value);if(a.get(.5)!==null)return Cg(a.get(.5));if(a.count===2)return a=a.Fa(),Cg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=ee,E=re):z>=E&&re<z&&(b=ee,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Cg(ov(a.get(x),a.get(b),1-z/E))}return!1};function Cg(a){return a?a instanceof Go?a.Gx():(Yd(a),128>(299*ha.j+587*ha.u+114*ha.o)/1e3):!1}function bg(a,y){switch(y){case Ag:y=100*sv(ha.j);var x=100*sv(ha.u),b=100*sv(ha.o);return Wl.j=.4124564*y+.3575761*x+.1804375*b,Wl.u=.2126729*y+.7151522*x+.072175*b,Wl.o=.0193339*y+.119192*x+.9503041*b,Wl.F=ha.F,y=uv(Wl.j/Eg[0]),x=uv(Wl.u/Eg[1]),b=uv(Wl.o/Eg[2]),Pd.j=116*x-16,Pd.u=500*(y-x),Pd.o=200*(x-b),Pd.F=Wl.F,Pd.j=Math.min(100,Math.max(0,Pd.j+100*a)),a=(Pd.j+16)/116,y=a-Pd.o/200,Wl.j=Eg[0]*tS(Pd.u/500+a),Wl.u=Eg[1]*(Pd.j>mm*dv?Math.pow(a,3):Pd.j/mm),Wl.o=Eg[2]*tS(y),Wl.F=Pd.F,a=-.969266*Wl.j+1.8760108*Wl.u+.041556*Wl.o,y=.0556434*Wl.j+-.2040259*Wl.u+1.0572252*Wl.o,ha.j=255*lv((3.2404542*Wl.j+-1.5371385*Wl.u+-.4985314*Wl.o)/100),ha.u=255*lv(a/100),ha.o=255*lv(y/100),ha.F=Wl.F,ha.j=Math.round(ha.j),255<ha.j?ha.j=255:0>ha.j&&(ha.j=0),ha.u=Math.round(ha.u),255<ha.u?ha.u=255:0>ha.u&&(ha.u=0),ha.o=Math.round(ha.o),255<ha.o?ha.o=255:0>ha.o&&(ha.o=0),"rgba("+ha.j+", "+ha.u+", "+ha.o+", "+ha.F+")";case nS:return av(),Ru.o=Math.min(100,Math.max(0,Ru.o+100*a)),"hsla("+Ru.j+", "+Ru.u+"%, "+Ru.o+"%, "+Ru.F+")";default:dt("Unknown color space: "+y)}}function Yd(a){Lg||(hv(),Lg=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,ha.j=a[0],ha.u=a[1],ha.o=a[2],ha.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ha.j=0,ha.u=0,ha.o=0,ha.F=1)}}function av(){var a=ha.j/255,y=ha.u/255,x=ha.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var ee=a=0;else{switch(b){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*E-1))}Ru.j=Math.round(ee),Ru.u=Math.round(100*a),Ru.o=Math.round(100*E),Ru.F=ha.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function tS(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function _f(a,y){typeof a!="string"&&(a instanceof Go||dt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=qa?new dh(null,void 0,{willReadFrequently:!0}).context:null}Qe.Object.defineProperties(Go.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Fn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Ql:a===Qu&&(this.start=so)),this.end.Mc()&&(a===Ud?this.end=Ml:a===Qu&&(this.end=so)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Fn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Fn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Fn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Fn(this,a),0>a&&ui(a,">= zero",Go,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Fn(this,a),0>a&&ui(a,">= zero",Go,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Fn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Fn(this,a),this.cr=a,this.xe=null}}}),Go.prototype.isDark=Go.prototype.Gx,Go.prototype.darkenBy=Go.prototype.Wy,Go.prototype.lightenBy=Go.prototype.Vz,Go.prototype.addColorStop=Go.prototype.addColorStop;var dv=216/24389,mm=24389/27,Eg=[95.047,100,108.883],cv=null,ha=new mp,Ru=new mp,Wl=new mp,Pd=new mp,Lg=!1;Go.className="Brush";var mc;Go.Solid=mc=new sn(Go,"Solid",0);var Ud;Go.Linear=Ud=new sn(Go,"Linear",1);var Qu;Go.Radial=Qu=new sn(Go,"Radial",2);var Mg;Go.Pattern=Mg=new sn(Go,"Pattern",4);var Ag;Go.Lab=Ag=new sn(Go,"Lab",5);var nS;Go.HSL=nS=new sn(Go,"HSL",6),Go.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Go.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Lg||(hv(),Lg=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Go.lighten=function(a){return _y(a)},Go.lightenBy=_y,Go.darken=function(a){return eS(a)},Go.darkenBy=eS,Go.mix=ov,Go.isDark=Cg;function Rs(){this.xa="Base"}Rs.prototype.measure=function(){},Rs.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Rs.prototype.arrange=function(){},Rs.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Rs.prototype.iA=function(a){a.Uj()},Rs.prototype.gc=function(){},Qe.Object.defineProperties(Rs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Gn}}}),Rs.prototype.remeasureObject=Rs.prototype.iA,Rs.prototype.arrangeElement=Rs.prototype.Ly,Rs.prototype.measureElement=Rs.prototype.Yz,Rs.className="PanelLayout";function vm(){this.xa="Base"}Yt(vm,Rs),vm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;a=Xd(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===a){var ue=le.margin,fe=ue.right+ue.left;ue=ue.top+ue.bottom,le.measure(y,x,z,ee);var ve=le.measuredBounds;fe=Math.max(ve.width+fe,0),ue=Math.max(ve.height+ue,0),ve=le.position.x;var Ce=le.position.y;isFinite(ve)||(ve=0),isFinite(Ce)||(Ce=0),le instanceof Tr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,ve-=le,Ce-=le),No(E,ve,Ce,fe,ue)}}},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],ee=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof Tr&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,le-=ue}z.visible&&z.arrange(oe+re.left,le+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}Yt(ym,Rs),ym.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=an(),z=Xd(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===z){var ue=nu(le,!1);if(ue!==Bn&&ue!==Bi)y.push(le);else{le.measure(1/0,x,0,ee),ue=le.margin,le=le.measuredBounds;var fe=Math.max(le.height+ue.top+ue.bottom,0);E.width+=Math.max(le.width+ue.right+ue.left,0),E.height=Math.max(E.height,fe)}}}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++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),E.width+=Math.max(oe.width+re,0),E.height=Math.max(E.height,ue));Mn(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,re=ee?x.width:E.left,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ve=ue.margin,Ce=ve.top+ve.bottom,Le=z+E.bottom,De=fe.height,_e=nu(ue,!1);(isNaN(ue.desiredSize.height)&&_e===Wn||_e===Ji)&&(De=Math.max(x.height-Ce-Le,0)),Ce=De+Ce+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=so),ee&&(re-=fe.width+ve.left+ve.right),ue.arrange(re+Le.offsetX+ve.left,le+Le.offsetY+ve.top+(x.height*Le.y-Ce*Le.y),fe.width,De),ee||(re+=fe.width+ve.left+ve.right)}}};function Sm(){this.xa="Base"}Yt(Sm,Rs),Sm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=an();for(var re=Xd(a),oe=0;oe<ee;oe++){var le=b[oe];if(le.visible||le===re){var ue=nu(le,!1);if(ue!==Bn&&ue!==Ji)x.push(le);else{var fe=le.margin;ue=fe.right+fe.left,fe=fe.top+fe.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,xs(E,Math.max(E.width,Math.max(le.width+ue,0)),E.height+Math.max(le.height+fe,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++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ee=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),E.width=Math.max(E.width,Math.max(oe.width+ee,0)),E.height+=le);Mn(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,re=ee?x.height:E.top,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ve=ue.margin,Ce=ve.left+ve.right,Le=z+E.right,De=fe.width,_e=nu(ue,!1);(isNaN(ue.desiredSize.width)&&_e===Wn||_e===Bi)&&(De=Math.max(x.width-Ce-Le,0)),Ce=De+Ce+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=so),ee&&(re-=fe.height+ve.bottom+ve.top),ue.arrange(le+Le.offsetX+ve.left+(x.width*Le.x-Ce*Le.x),re+Le.offsetY+ve.top,De,fe.height),ee||(re+=fe.height+ve.bottom+ve.top)}}};function xm(){this.xa="Base"}Yt(xm,Rs),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=le.right+le.left,fe=le.top+le.bottom;oe.measure(y,x,z,ee);var ve=oe.measuredBounds;z=ve.width,ee=ve.height;var Ce=Math.max(z+ue,0),Le=Math.max(ee+fe,0),De=a.isClipping,_e=hn.allocAt(-le.left,-le.top,Ce,Le),Ze=hn.allocAt(0,0,z,ee);fv(oe,Ze,!0),z=Ze.width,ee=Ze.height;for(var st=!0,ht=Xd(a),mt=0;mt<re;mt++){var Lt=b[mt];ve=y;var Vt=x;if(Lt!==oe&&(Lt.visible||Lt===ht)){le=Lt.margin;var di=le.left,Ci=le.top;switch(Ce=le.right+le.left,Le=le.top+le.bottom,le=nu(Lt,!1),le){case Wn:ve=z,Vt=ee,Ci=di=Le=Ce=0;break;case Bi:ve=z,di=Ce=0;break;case Ji:Vt=ee,Ci=Le=0}Lt.measure(ve,Vt,0,0),ve=Lt.measuredBounds,Ce=Math.max(ve.width+Ce,0),Le=Math.max(ve.height+Le,0),le=Lt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=so);var vi=Lt.alignmentFocus;if(vi.Xb()&&(vi=so),Vt=null,Lt instanceof Gn&&Lt.$e!==""&&(Vt=Lt.fb(Lt.$e),Vt===Lt&&(Vt=null)),di=Ze.x-di,Ci=Ze.y-Ci,Vt!==null){for(Lt.arrange(0,0,ve.width,ve.height),ve=Vt.actualBounds,ve=Ue.allocAt(ve.x+(vi.x*ve.width-vi.offsetX),ve.y+(vi.y*ve.height-vi.offsetY)),Vt=Vt.panel;Vt!==Lt;)Vt.transform.Ga(ve),Vt=Vt.panel;di+=le.x*z+le.offsetX-ve.x,Ci+=le.y*ee+le.offsetY-ve.y,Ue.free(ve)}else di+=le.x*z+le.offsetX-(vi.x*ve.width+vi.offsetX),Ci+=le.y*ee+le.offsetY-(vi.y*ve.height+vi.offsetY);st?(st=!1,E.h(di,Ci,Ce,Le)):No(E,di,Ci,Ce,Le)}}switch(st?E.assign(_e):De?E.Uu(Ze.x,Ze.y,Ze.width,Ze.height):No(E,_e.x,_e.y,_e.width,_e.height),hn.free(_e),hn.free(Ze),le=oe.stretch,le===Cr&&(le=nu(oe,!1)),le){case Bn:return;case Wn:if(!isFinite(y)&&!isFinite(x))return;break;case Bi:if(!isFinite(y))return;break;case Ji:if(!isFinite(x))return}for(ve=oe.measuredBounds,z=ve.width,ee=ve.height,Ce=Math.max(z+ue,0),Le=Math.max(ee+fe,0),le=oe.margin,Ze=hn.allocAt(-le.left,-le.top,Ce,Le),fv(oe,Ze,!0),z=Ze.width,ee=Ze.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==ht||(le=x.margin,Ce=le.right+le.left,Le=le.top+le.bottom,ve=x.measuredBounds,Ce=Math.max(ve.width+Ce,0),Le=Math.max(ve.height+Le,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=so),x=x.alignmentFocus,x.Xb()&&(x=so),st?(st=!1,E.h(ue.x*z+ue.offsetX-(x.x*ve.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*ve.height+x.offsetY)-le.top,Ce,Le)):No(E,ue.x*z+ue.offsetX-(x.x*ve.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*ve.height+x.offsetY)-le.top,Ce,Le));st?E.assign(_e):De?E.Uu(Ze.x,Ze.y,Ze.width,Ze.height):No(E,_e.x,_e.y,_e.width,_e.height),hn.free(Ze)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,ue=oe-x.y;for(E.arrange(le,ue,ee,re),ee=hn.allocAt(0,0,ee,re),fv(E,ee,!1),re=0;re<b;re++){var fe=y[re];if(fe!==E){le=fe.measuredBounds;var ve=le.width,Ce=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=so);var Le=fe.alignmentFocus;if(Le.Xb()&&(Le=so),le=null,fe instanceof Gn&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var De=le.actualBounds;for(Le=Ue.allocAt(De.x+(Le.x*De.width-Le.offsetX),De.y+(Le.y*De.height-Le.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Le),le=le.panel;le=ue.x*ee.width+ue.offsetX-Le.x,ue=ue.y*ee.height+ue.offsetY-Le.y,Ue.free(Le)}else le=ue.x*ee.width+ue.offsetX-(Le.x*ve+Le.offsetX),ue=ue.y*ee.height+ue.offsetY-(Le.y*Ce+Le.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,oe+ue,ve,Ce)}}hn.free(ee)};function fv(a,y,x){var b=null;if(a instanceof Gn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function wm(){this.xa="Base"}Yt(wm,Rs),wm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=y,fe=x,ve=le.right+le.left,Ce=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Le=0,De=null;oe instanceof Tr&&(De=oe,Le=De.strokeWidth*De.scale);var _e=Math.max(le.width+ve,0);le=Math.max(le.height+Ce,0);var Ze=vv(oe),st=Ze.x*_e+Ze.offsetX;Ze=Ze.y*le+Ze.offsetY;var ht=yv(oe),mt=ht.x*_e+ht.offsetX;for(ht=ht.y*le+ht.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(st-mt)-Le,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ze-ht)-Le,0)),Le=ri.alloc(),Le.h(0,0),a=Xd(a),ht=0;ht<re;ht++)Ze=b[ht],Ze===oe||!Ze.visible&&Ze!==a||(le=Ze.margin,_e=le.right+le.left,st=le.top+le.bottom,Ze.measure(ue,fe,0,0),le=Ze.measuredBounds,_e=Math.max(le.width+_e,0),le=Math.max(le.height+st,0),Le.h(Math.max(_e,Le.width),Math.max(le,Le.height)));if(re===1)E.width=_e,E.height=le,ri.free(Le);else{switch(Ze=vv(oe),ht=yv(oe),re=b=0,ht.x!==Ze.x&&ht.y!==Ze.y&&(b=Le.width/Math.abs(ht.x-Ze.x),re=Le.height/Math.abs(ht.y-Ze.y)),ri.free(Le),Le=0,De!==null&&(Le=De.strokeWidth*De.scale,bv(De)===Ni&&(b=re=Math.max(b,re))),b+=Math.abs(Ze.offsetX)+Math.abs(ht.offsetX)+Le,re+=Math.abs(Ze.offsetY)+Math.abs(ht.offsetY)+Le,De=oe.stretch,De===Cr&&(De=nu(oe,!1)),De){case Bn:ee=z=0;break;case Wn:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case Bi:isFinite(y)&&(b=y),ee=0;break;case Ji:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(b,re,z,ee),E.width=oe.measuredBounds.width+ve,E.height=oe.measuredBounds.height+Ce}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=hn.alloc();z.h(0,0,1,1);var ee=b.margin,re=ee.left;ee=ee.top;var oe=a.padding,le=oe.left;oe=oe.top,b.arrange(le+re,oe+ee,E.width,E.height);var ue=vv(b),fe=yv(b),ve=ue.y*E.height+ue.offsetY,Ce=fe.x*E.width+fe.offsetX;for(fe=fe.y*E.height+fe.offsetY,z.x=ue.x*E.width+ue.offsetX,z.y=ve,No(z,Ce,fe,0,0),z.x+=re+le,z.y+=ee+oe,E=0;E<x;E++)re=y[E],re!==b&&(le=re.measuredBounds,ee=re.margin,oe=Math.max(le.width+ee.right+ee.left,0),ue=Math.max(le.height+ee.top+ee.bottom,0),ve=re.alignment,ve.Xb()&&(ve=a.defaultAlignment),ve.sb()||(ve=so),oe=z.width*ve.x+ve.offsetX-oe*ve.x+ee.left+z.x,ee=z.height*ve.y+ve.offsetY-ue*ve.y+ee.top+z.y,re.visible&&(fa(z.x,z.y,z.width,z.height,oe,ee,le.width,le.height)?re.arrange(oe,ee,le.width,le.height):re.arrange(oe,ee,le.width,le.height,new hn(z.x,z.y,z.width,z.height))));hn.free(z)};function Pm(){this.xa="Base",this.name="Table"}Yt(Pm,Rs),Pm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=an(),re=an(),oe=0;oe<z;oe++){var le=b[oe],ue=le instanceof Gn?le:null;if(ue!==null&&vc(ue)&&le.visible){re.push(ue);for(var fe=ue.O.s,ve=fe.length,Ce=0;Ce<ve;Ce++){var Le=fe[Ce];ue.type===Gn.TableRow?Le.row=le.row:ue.type===Gn.TableColumn&&(Le.column=le.column),ee.push(Le)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var De=[],_e=0;_e<z;_e++){var Ze=ee[_e];Ze.visible&&(Ns(Ze,!0),xd(Ze,!0),De[Ze.row]||(De[Ze.row]=[]),De[Ze.row][Ze.column]||(De[Ze.row][Ze.column]=[]),De[Ze.row][Ze.column].push(Ze))}Mn(ee);var st=an(),ht=an(),mt=an(),Lt={count:0},Vt={count:0},di=y,Ci=x,vi=a.rowDefs,Jn=a.colDefs,kn=null;z=vi.length;for(var Sr=0;Sr<z;Sr++)kn=vi[Sr],kn!==void 0&&(kn.actual=0);z=Jn.length;for(var dr=0;dr<z;dr++)kn=Jn[dr],kn!==void 0&&(kn.actual=0);for(var Do=De.length,aa=0,Gs=0;Gs<Do;Gs++)De[Gs]&&(aa=Math.max(aa,De[Gs].length));var qs=Math.min(a.topIndex,Do-1),Nl=Math.min(a.leftIndex,aa-1),Ks=0;Do=De.length;for(var Mc=Xd(a),ys=0;ys<Do;ys++)if(De[ys]){aa=De[ys].length;var Xh=a.Fb(ys);Xh.actual=0;for(var Tl=Xh.oc=0;Tl<aa;Tl++)if(De[ys][Tl]){var Ac=a.Eb(Tl);st[Tl]===void 0&&(Ac.actual=0,Ac.oc=0,st[Tl]=!0);for(var Hu=De[ys][Tl],ph=Hu.length,Au=0;Au<ph;Au++){var mu=Hu[Au];if(mu.visible||mu===Mc){var rf=1<mu.rowSpan||1<mu.columnSpan;rf&&(ys<qs||Tl<Nl||ht.push(mu));var Jh=mu.margin,$g=Jh.right+Jh.left,ku=Jh.top+Jh.bottom,Dl=Gh(mu,Xh,Ac,!1),im=mu.desiredSize,dg=!isNaN(im.height),hd=!isNaN(im.width)&&dg;if(rf||Dl===Bn||hd||ys<qs||Tl<Nl||(Lt[Tl]!==void 0||Dl!==Wn&&Dl!==Bi||(Lt[Tl]=-1,Lt.count++),Vt[ys]!==void 0||Dl!==Wn&&Dl!==Ji||(Vt[ys]=-1,Vt.count++),mt.push(mu)),mu.measure(1/0,1/0,0,0),!(ys<qs||Tl<Nl)){var vu=mu.measuredBounds,Bf=Math.max(vu.width+$g,0),Fu=Math.max(vu.height+ku,0);if(mu.rowSpan===1&&(Dl===Bn||Dl===Bi)){kn=a.Fb(ys);var of=kn.Wc();Ks=Math.max(Fu-kn.actual,0),Ks+of>Ci&&(Ks=Math.max(Ci-of,0));var V0=kn.oa===0;kn.oc=kn.oc+Ks,kn.actual=kn.oa+Ks,Ci=Math.max(Ci-(Ks+(V0?of:0)),0)}if(mu.columnSpan===1&&(Dl===Bn||Dl===Ji)){kn=a.Eb(Tl);var rm=kn.Wc();Ks=Math.max(Bf-kn.actual,0),Ks+rm>di&&(Ks=Math.max(di-rm,0));var Hy=kn.oa===0;kn.oc=kn.oc+Ks,kn.actual=kn.oa+Ks,di=Math.max(di-(Ks+(Hy?rm:0)),0)}rf&&mu.Uj()}}}}}Mn(st);var Nd=0,$d=0;z=a.columnCount;for(var cg=0;cg<z;cg++){var af=Jn[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=vi[qg];sf!==void 0&&($d+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&($d+=sf.Wc()))}di=Math.max(y-Nd,0);var Td=Ci=Math.max(x-$d,0),kc=di;z=mt.length;for(var yu=0;yu<z;yu++){var dd=mt[yu],Y0=a.Fb(dd.row),qd=a.Eb(dd.column),_g=dd.measuredBounds,Qh=dd.margin,Of=Qh.right+Qh.left,cd=Qh.top+Qh.bottom;Lt[dd.column]=qd.oc===0&&Lt[dd.column]!==void 0?Math.max(_g.width+Of,Lt[dd.column]):null,Vt[dd.row]=Y0.oc===0&&Vt[dd.row]!==void 0?Math.max(_g.height+cd,Vt[dd.row]):null}var fg=0,ep=0,Th;for(Th in Vt)Th!=="count"&&(fg+=Vt[Th]);for(Th in Lt)Th!=="count"&&(ep+=Lt[Th]);for(var ol=ri.alloc(),om=0;om<z;om++){var Xl=mt[om];if(Xl.visible||Xl===Mc){var Ss=a.Fb(Xl.row),Jl=a.Eb(Xl.column),_d=0;isFinite(Jl.width)?_d=Jl.width:(isFinite(di)&&Lt[Xl.column]!==null?ep===0?_d=Jl.actual+di:_d=Lt[Xl.column]/ep*kc:Lt[Xl.column]!==null?_d=di:_d=Jl.actual||di,_d=Math.max(0,_d-Jl.Wc()));var Fc=0;switch(isFinite(Ss.height)?Fc=Ss.height:(isFinite(Ci)&&Vt[Xl.row]!==null?fg===0?Fc=Ss.actual+Ci:Fc=Vt[Xl.row]/fg*Td:Vt[Xl.row]!==null?Fc=Ci:Fc=Ss.actual||Ci,Fc=Math.max(0,Fc-Ss.Wc())),ol.h(Math.max(Jl.minimum,Math.min(_d,Jl.maximum)),Math.max(Ss.minimum,Math.min(Fc,Ss.maximum))),Dl=Gh(Xl,Ss,Jl,!1),Dl){case Bi:ol.height=Math.max(ol.height,Ss.actual+Ci);break;case Ji:ol.width=Math.max(ol.width,Jl.actual+di)}var If=Xl.margin,Wy=If.right+If.left,U0=If.top+If.bottom;Xl.Uj(),Xl.measure(ol.width,ol.height,Jl.minimum,Ss.minimum);var tp=Xl.measuredBounds,Rf=Math.max(tp.width+Wy,0),gg=Math.max(tp.height+U0,0);isFinite(di)&&(Rf=Math.min(Rf,ol.width)),isFinite(Ci)&&(gg=Math.min(gg,ol.height));var Su=0;Su=Ss.actual,Ss.actual=Math.max(Ss.actual,gg),Ss.oc=Math.max(Ss.oc,gg),Ks=Ss.actual-Su,Ci=Math.max(Ci-Ks,0),Vt[Xl.row]===null&&(Td=Math.max(Td-Ks,0)),Su=Jl.actual,Jl.actual=Math.max(Jl.actual,Rf),Jl.oc=Math.max(Jl.oc,Rf),Ks=Jl.actual-Su,di=Math.max(di-Ks,0),Lt[Xl.column]===null&&(kc=Math.max(kc-Ks,0))}}Mn(mt);var ec=ri.alloc(),$h=an(),th=an();if(z=ht.length,z!==0){for(var lf=0;lf<Do;lf++)if(De[lf]){aa=De[lf].length;var np=a.Fb(lf);$h[lf]=np.actual;for(var uf=0;uf<aa;uf++)if(De[lf][uf]){var X0=a.Eb(uf);th[uf]=X0.actual}}}for(var ip=0;ip<z;ip++){var os=ht[ip];if(os.visible||os===Mc){var Dh=a.Fb(os.row),mh=a.Eb(os.column);switch(ol.h(Math.max(mh.minimum,Math.min(y,mh.maximum)),Math.max(Dh.minimum,Math.min(x,Dh.maximum))),Dl=Gh(os,Dh,mh,!1),Dl){case Wn:th[mh.index]!==0&&(ol.width=Math.min(ol.width,th[mh.index])),$h[Dh.index]!==0&&(ol.height=Math.min(ol.height,$h[Dh.index]));break;case Bi:th[mh.index]!==0&&(ol.width=Math.min(ol.width,th[mh.index]));break;case Ji:$h[Dh.index]!==0&&(ol.height=Math.min(ol.height,$h[Dh.index]))}isFinite(mh.width)&&(ol.width=mh.width),isFinite(Dh.height)&&(ol.height=Dh.height),ec.h(0,0);for(var J0=mh.minimum,Nu=Dh.minimum,Nc=1;Nc<os.rowSpan&&!(os.row+Nc>=a.rowCount);Nc++)kn=a.Fb(os.row+Nc),Ks=0,Ks=Dl===Wn||Dl===Ji?Math.max(kn.minimum,$h[os.row+Nc]===0?kn.maximum:Math.min($h[os.row+Nc],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),ec.height+=Ks,Nu+=kn.minimum;for(var vh=1;vh<os.columnSpan&&!(os.column+vh>=a.columnCount);vh++)kn=a.Eb(os.column+vh),Ks=0,Ks=Dl===Wn||Dl===Bi?Math.max(kn.minimum,th[os.column+vh]===0?kn.maximum:Math.min(th[os.column+vh],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),ec.width+=Ks,J0+=kn.minimum;ol.width+=ec.width,ol.height+=ec.height;var rp=os.margin,hf=rp.right+rp.left,am=rp.top+rp.bottom;os.measure(ol.width,ol.height,J0,Nu);for(var op=os.measuredBounds,fd=Math.max(op.width+hf,0),zf=Math.max(op.height+am,0),df=0,ap=0;ap<os.rowSpan&&!(os.row+ap>=a.rowCount);ap++)kn=a.Fb(os.row+ap),df+=kn.total||0;if(df<zf){var Tc=zf-df,Dd=zf-df;if(os.spanAllocation!==null)for(var Dc=os.spanAllocation,tc=0;tc<os.rowSpan&&!(0>=Tc)&&!(os.row+tc>=a.rowCount);tc++){kn=a.Fb(os.row+tc);var Bc=kn.oa||0,jf=Dc(os,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<os.columnSpan&&!(os.column+Oc>=a.columnCount);Oc++)kn=a.Eb(os.column+Oc),pg+=kn.total||0;if(pg<fd){var mg=fd-pg,Zy=fd-pg;if(os.spanAllocation!==null)for(var nc=os.spanAllocation,Hf=0;Hf<os.columnSpan&&!(0>=mg)&&!(os.column+Hf>=a.columnCount);Hf++){kn=a.Eb(os.column+Hf);var sm=kn.oa||0,Gy=nc(os,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)}}}}Mn(ht),ri.free(ec),ri.free(ol),$h!==void 0&&Mn($h),th!==void 0&&Mn(th);var vg=0,yg=0,$0=a.desiredSize,gx=a.maxSize;Dl=nu(a,!0);var lm=$d=Nd=0,um=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Jn[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=Dl!==Bn&&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++)Jn[_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 ev=0;ev<z;ev++)vi[ev]!==void 0&&(kn=a.Fb(ev),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=Dl!==Bn&&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),tv=0;tv<z;tv++)vi[tv]!==void 0&&(kn=a.Fb(tv),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=re.length;for(var Ky=0;Ky<z;Ky++){var hm=re[Ky],Vy=0,Yy=0;hm.type===Gn.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),Ns(hm,!1)}Mn(re),a.inRowsCols=De},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,le=ee.length,ue=0,fe=0;fe<le;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));oe=a.rowDefs,re=a.colDefs;var ve=fe=0,Ce=Math.min(a.topIndex,le-1);if(0<oe.length){for(;Ce!==le&&(oe[Ce]===void 0||oe[Ce].oa===0);)Ce++;Ce=Math.max(Math.min(Ce,le-1),0),fe=-oe[Ce].position}var Le=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Le!==ue&&(re[Le]===void 0||re[Le].oa===0);)Le++;Le=Math.max(Math.min(Le,ue-1),0),ve=-re[Le].position}for(var De=0,_e=0;De!==le&&oe[De]===void 0;)De++;for(;_e!==le&&re[_e]===void 0;)_e++;ue=a.part,a.Fb(De),a.Eb(_e);for(var Ze=0;Ze<y.length;Ze++){var st=y[Ze];if(st instanceof Gn&&st.visible&&vc(st)){if(st.type===Gn.TableRow){re=a.Fb(st.row);var ht=a.Eb(_e)}else re=a.Fb(De),ht=a.Eb(st.column);oe=re.position+fe+E,re.oa!==0&&(oe+=re.Io(Math.max(De,Ce))),re=ht.position+ve+z,ht.oa!==0&&(re+=ht.Io(Math.max(_e,Le))),ht=st.measuredBounds,st.Uk(),st.actualBounds.ka();var mt=st.actualBounds,Lt=hn.allocAt(mt.x,mt.y,mt.width,mt.height);mt.x=st.type===Gn.TableRow?z:re,mt.y=st.type===Gn.TableColumn?E:oe,mt.width=ht.width,mt.height=ht.height,st.actualBounds.freeze(),xd(st,!1),$o(Lt,mt)||ue===null||(ue.oh(),st.Pn(ue)),hn.free(Lt)}}for(Ze=ri.alloc(),st=0;st<le;st++)if(ee[st]){for(ue=ee[st].length,ht=a.Fb(st),oe=ht.position+fe+E,ht.oa!==0&&(oe+=ht.Io(Math.max(De,Ce))),mt=0;mt<ue;mt++)if(ee[st][mt]){Lt=a.Eb(mt),re=Lt.position+ve+z,Lt.oa!==0&&(re+=Lt.Io(Math.max(_e,Le)));for(var Vt=ee[st][mt],di=Vt.length,Ci=0;Ci<di;Ci++){var vi=Vt[Ci],Jn=vi.measuredBounds;Ze.h(0,0);for(var kn=1;kn<vi.rowSpan&&!(st+kn>=a.rowCount);kn++){var Sr=a.Fb(st+kn);Sr.oa!==0&&(Ze.height+=Sr.total)}for(kn=1;kn<vi.columnSpan&&!(mt+kn>=a.columnCount);kn++)Sr=a.Eb(mt+kn),Sr.oa!==0&&(Ze.width+=Sr.total);var dr=Lt.oa+Ze.width,Do=ht.oa+Ze.height;kn=re,Sr=oe;var aa=dr,Gs=Do,qs=re,Nl=oe,Ks=dr,Mc=Do;re+dr>x.width&&(Ks=Math.max(x.width-re,0)),oe+Do>x.height&&(Mc=Math.max(x.height-oe,0));var ys=vi.alignment;if(ys.Xb()){ys=a.defaultAlignment,ys.sb()||(ys=so);var Xh=ys.x,Tl=ys.y,Ac=ys.offsetX;ys=ys.offsetY;var Hu=Lt.alignment,ph=ht.alignment;Hu.sb()&&(Xh=Hu.x,Ac=Hu.offsetX),ph.sb()&&(Tl=ph.y,ys=ph.offsetY)}else Xh=ys.x,Tl=ys.y,Ac=ys.offsetX,ys=ys.offsetY;(isNaN(Xh)||isNaN(Tl))&&(Tl=Xh=.5,ys=Ac=0),Hu=Jn.width,ph=Jn.height;var Au=vi.margin,mu=Au.left+Au.right,rf=Au.top+Au.bottom,Jh=Gh(vi,ht,Lt,!1);!isNaN(vi.desiredSize.width)||Jh!==Wn&&Jh!==Bi||(Hu=Math.max(dr-mu,0)),!isNaN(vi.desiredSize.height)||Jh!==Wn&&Jh!==Ji||(ph=Math.max(Do-rf,0)),dr=vi.maxSize,Do=vi.minSize,Hu=Math.min(dr.width,Hu),ph=Math.min(dr.height,ph),Hu=Math.max(Do.width,Hu),ph=Math.max(Do.height,ph),dr=ph+rf,kn+=aa*Xh-(Hu+mu)*Xh+Ac+Au.left,Sr+=Gs*Tl-dr*Tl+ys+Au.top,vi.visible&&(fa(qs,Nl,Ks,Mc,kn,Sr,Jn.width,Jn.height)?vi.arrange(kn,Sr,Hu,ph):vi.arrange(kn,Sr,Hu,ph,new hn(qs,Nl,Ks,Mc)))}}}for(ri.free(Ze),a=0;a<b;a++)x=y[a],z=x instanceof Gn?x:null,z!==null&&vc(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}Yt(Cm,Rs),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}Yt(bm,Rs),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Em(){this.xa="Base"}Yt(Em,Rs),Em.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&dt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ee);var re=b.measuredBounds,oe=b.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=b.scale,fe=re.width;re=re.height;var ve=Math.max(y-le,0),Ce=Math.max(x-oe,0),Le=1;a.viewboxStretch===Ni?fe!==0&&re!==0&&(Le=Math.min(ve/fe,Ce/re)):fe!==0&&re!==0&&(Le=Math.max(ve/fe,Ce/re)),Le===0&&(Le=1e-4),b.Ca*=Le,ue!==b.scale&&(Ns(b,!0),b.measure(1/0,1/0,z,ee))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+le,0),E.height=isFinite(x)?x:Math.max(re.height+oe,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 ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=so),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-E*ee.y+ee.offsetY,b.width,b.height)};function vp(){this.xa="Base"}Yt(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,ee=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/E),ue=Math.ceil(oe/b),fe=a.gridOrigin,ve=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ce=[],Le=a.O.s,De=Le.length,_e=0;_e<De;_e++){var Ze=Le[_e],st=[];if(Ce.push(st),Ze.visible){var ht=Ze.interval;if(!(0>ht)){Ze=pv(Ze.figure);for(var mt=0;mt<De;mt++)if(mt!==_e){var Lt=Le[mt];Lt.visible&&pv(Lt.figure)===Ze&&(Lt=Lt.interval,Lt>ht&&st.push(Lt))}}}}for(Le=a.O.s,De=Le.length,_e=0;_e<De;_e++){var Vt=Le[_e];if(Vt.visible&&(st=Vt.interval||1,Ze=Math.abs(st),!(2>E*Ze*x))){if(ht=Vt.segmentIndex,(!isFinite(ht)||isNaN(ht))&&(ht=0),0>ht&&(ht=Ze-Math.min(-ht,Ze)),ht=Math.round(ht%Ze),Ze=Vt.opacity,mt=1,Ze!==1){if(Ze===0)continue;mt=y.globalAlpha,y.globalAlpha=mt*Ze}Lt=Ce[_e];var di=!1,Ci=Vt.strokeDashArray;if(Ci!==null&&(di=!0,y.js(Ci,Vt.strokeDashOffset)),Vt.figure==="LineV"&&Vt.stroke!==null&&0<Vt.strokeWidth){for(y.lineWidth=Vt.strokeWidth,_a(a,y,Vt.stroke,!1,!1,z,ee),y.beginPath(),Ci=Vt=Math.floor((ve-E)/E);Ci<=Vt+le;Ci++){var vi=Ci*E+ve;0<=vi&&vi<=re&&Lm(Ci,st,ht,Lt)&&(y.moveTo(vi,0),y.lineTo(vi,oe))}y.stroke(),y.Se()}else if(Vt.figure==="LineH"&&Vt.stroke!==null&&0<Vt.strokeWidth){for(y.lineWidth=Vt.strokeWidth,_a(a,y,Vt.stroke,!1,!1,z,ee),y.beginPath(),Ci=Vt=Math.floor((fe-b)/b);Ci<=Vt+ue;Ci++)vi=Ci*b+fe,0<=vi&&vi<=oe&&Lm(Ci,st,ht,Lt)&&(y.moveTo(0,vi),y.lineTo(re,vi));y.stroke(),y.Se()}else if(Vt.figure==="BarV"&&Vt.fill!==null)for(_a(a,y,Vt.fill,!0,!1,z,ee),Vt=Vt.width,isNaN(Vt)&&(Vt=E),vi=Ci=Math.floor((ve-E)/E);vi<=Ci+le;vi++){var Jn=vi*E+ve;0<=Jn+Vt&&Jn<=re&&Lm(vi,st,ht,Lt)&&y.fillRect(Jn,0,Vt,oe)}else if(Vt.figure==="BarH"&&Vt.fill!==null)for(_a(a,y,Vt.fill,!0,!1,z,ee),Vt=Vt.height,isNaN(Vt)&&(Vt=b),vi=Ci=Math.floor((fe-b)/b);vi<=Ci+ue;vi++)Jn=vi*b+fe,0<=Jn+Vt&&Jn<=oe&&Lm(vi,st,ht,Lt)&&y.fillRect(0,Jn,re,Vt);di&&y.fs(),Ze!==1&&(y.globalAlpha=mt)}}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"}Yt(Mm,Rs),Mm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ao||a instanceof Qn){var ee=null,re=null;if(a instanceof Qn&&(ee=a),a instanceof Ao&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof Qn){var oe=ee;if(z===0)xs(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Ao?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var ve=y.height,Ce=a.j;if(Ce.length=0,le!==null){iS(a,re,ve,le);var Le=le.measuredBounds;x.ed(Le),Ce.push(Le)}Le=Mr.alloc();for(var De=Ue.alloc(),_e=Ue.alloc(),Ze=0;Ze<z;Ze++){var st=b[Ze];if(st!==le)if(st.isPanelMain&&st instanceof Tr){iS(a,re,ve,st);var ht=st.measuredBounds;x.ed(ht),Ce.push(ht)}else if(2>fe)st.measure(1/0,1/0,0,0),ht=st.measuredBounds,x.ed(ht),Ce.push(ht);else{var mt=st.segmentIndex,Lt=st.segmentFraction,Vt=st.alignmentFocus;Vt.Mc()&&(Vt=so);var di=st.segmentOrientation,Ci=st.segmentOffset;if(isNaN(mt)){var vi=oe.ua;ht=an(),vi.Qu(Lt,ht);var Jn=Ue.allocAt(ht[0],ht[1]);if(Jn.add(oe.i(0)),vi.type===ei.j?Jn.offset(-vi.startX,-vi.startY):(vi=vi.figures.first(),vi!==null&&Jn.offset(-vi.startX,-vi.startY)),vi=ht[2],di!==Gl){var kn=oe.computeAngle(st,di,vi);st.Kb=kn}kn=Jn.x-y.x;var Sr=Jn.y-y.y;Ue.free(Jn),Mn(ht)}else if(mt<-fe||mt>=fe)ht=Ue.alloc(),oe.vg(),oe.computeMidPoint(ht),vi=oe.midAngle,di!==Gl&&(kn=oe.computeAngle(st,di,vi),st.Kb=kn),kn=ht.x-y.x,Sr=ht.y-y.y,Ue.free(ht);else{if(kn=0,0<=mt?(Sr=ue.M(mt),ht=mt<fe-1?ue.M(mt+1):Sr):(kn=fe+mt,Sr=ue.M(kn),ht=0<kn?ue.M(kn-1):Sr),Sr.Xa(ht)){0<=mt?(vi=0<mt?ue.M(mt-1):Sr,kn=mt<fe-2?ue.M(mt+2):ht):(vi=kn<fe-1?ue.M(kn+1):Sr,kn=1<kn?ue.M(kn-2):ht),Jn=vi.Bf(Sr);var dr=ht.Bf(kn);vi=Jn>dr+10?0<=mt?vi.ab(Sr):Sr.ab(vi):dr>Jn+10?0<=mt?ht.ab(kn):kn.ab(ht):0<=mt?vi.ab(kn):kn.ab(vi)}else vi=0<=mt?Sr.ab(ht):ht.ab(Sr);di!==Gl&&(kn=oe.computeAngle(st,di,vi),st.Kb=kn),kn=Sr.x+(ht.x-Sr.x)*Lt-y.x,Sr=Sr.y+(ht.y-Sr.y)*Lt-y.y}st.measure(1/0,1/0,0,0),ht=st.measuredBounds,Jn=st.naturalBounds;var Do=0;st instanceof Tr&&(Do=st.strokeWidth),dr=Jn.width+Do;var aa=Jn.height+Do;Le.reset(),Le.translate(-ht.x,-ht.y),Le.scale(st.scale,st.scale),Le.rotate(di===Gl?st.angle:vi,dr/2,aa/2),di!==Fp&&di!==Tp||Le.rotate(90,dr/2,aa/2),di!==Np&&di!==Dp||Le.rotate(-90,dr/2,aa/2),di===i0&&(45<vi&&135>vi||225<vi&&315>vi)&&Le.rotate(-vi,dr/2,aa/2),Jn=new hn(0,0,dr,aa),De.xi(Jn,Vt),Le.Ga(De),Vt=-De.x+Do/2*st.scale,st=-De.y+Do/2*st.scale,_e.assign(Ci),Do=isNaN(Ci.x);var Gs=isNaN(Ci.y);if(Do||Gs){dr=dr/2+3,aa=aa/2+3;var qs=45<=vi&&135>=vi,Nl=225<=vi&&315>=vi;di===Gl&&(qs||Nl)?(_e.x=Gs?dr:Ci.y,_e.y=Do?aa:Ci.x,qs?0<=mt||isNaN(mt)&&.5>Lt||!Do||(_e.y=-aa):Nl&&((0<=mt||isNaN(mt)&&.5>Lt)&&Do&&(_e.y=-aa),Gs&&(_e.x=-dr))):(Do&&(_e.x=0<=mt||isNaN(mt)&&.5>Lt?dr:-dr),Gs&&(_e.y=-aa),_e.rotate(vi))}else _e.rotate(vi);kn+=_e.x,Sr+=_e.y,Jn.set(ht),Jn.h(kn+Vt,Sr+st,ht.width,ht.height),Ce.push(Jn),x.ed(Jn)}}if(ee!==null)for(b=ee.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),xs(E,x.width||0,x.height||0),Mr.free(Le),Ue.free(De),Ue.free(_e)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ao||a instanceof Qn){var b=a,E=null;a instanceof Ao&&(E=a,b=E.adornedPart);var z=a instanceof Ao?null:b.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ee.length){var ue=ee[re];re++,le.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Qn)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var ve=ee.alignmentFocus;if(le=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var Ce=fe.ua,Le=an();Ce.Qu(oe,Le);var De=Ue.allocAt(Le[0],Le[1]);De.add(fe.i(0)),Ce.type===ei.j||(Ce=Ce.figures.first()),De.offset(-Ce.startX,-Ce.startY),Ce=Le[2],le!==Gl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=De.x;var _e=De.y;Ue.free(De),Mn(Le)}else if(re<-x||re>=x)Le=Ue.alloc(),Ce=fe,_e=Le,Ce.vg(),Ce.computeMidPoint(_e),Ce=fe.midAngle,le!==Gl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=Le.x,_e=Le.y,Ue.free(Le);else{if(De=0,0<=re?(Le=y.s[re],_e=re<x-1?y.s[re+1]:Le):(De=x+re,Le=y.s[De],_e=0<De?y.s[De-1]:Le),Le.Xa(_e)){0<=re?(Ce=0<re?y.s[re-1]:Le,De=re<x-2?y.s[re+2]:_e):(Ce=De<x-1?y.s[De+1]:Le,De=1<De?y.s[De-2]:_e);var Ze=Ce.Bf(Le),st=_e.Bf(De);Ce=Ze>st+10?0<=re?Ce.ab(Le):Le.ab(Ce):st>Ze+10?0<=re?_e.ab(De):De.ab(_e):0<=re?Ce.ab(De):De.ab(Ce)}else Ce=0<=re?Le.ab(_e):_e.ab(Le);le!==Gl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=Le.x+(_e.x-Le.x)*oe,_e=Le.y+(_e.y-Le.y)*oe}if(ve.ys())ee.location=new Ue(fe,_e);else{ve.Mc()&&(ve=so),Le=Mr.alloc(),Le.reset(),Le.scale(ee.scale,ee.scale),Le.rotate(ee.angle,0,0);var ht=ee.naturalBounds;De=hn.allocAt(0,0,ht.width,ht.height),Ze=Ue.alloc(),Ze.xi(De,ve),Le.Ga(Ze),ve=-Ze.x,st=-Ze.y;var mt=ht.width,Lt=ht.height;ht=Ue.alloc(),ht.assign(ue);var Vt=isNaN(ue.x),di=isNaN(ue.y);if(Vt||di){mt=mt/2+3,Lt=Lt/2+3;var Ci=45<=Ce&&135>=Ce,vi=225<=Ce&&315>=Ce;le===Gl&&(Ci||vi)?(ht.x=di?mt:ue.y,ht.y=Vt?Lt:ue.x,Ci?0<=re||isNaN(re)&&.5>oe||!Vt||(ht.y=-Lt):vi&&((0<=re||isNaN(re)&&.5>oe)&&Vt&&(ht.y=-Lt),di&&(ht.x=-mt))):(Vt&&(ht.x=0<=re||isNaN(re)&&.5>oe?mt:-mt),di&&(ht.y=-Lt),ht.rotate(Ce))}else ht.rotate(Ce);fe+=ht.x,_e+=ht.y,Le.pp(De),ve+=De.x,st+=De.y,re=Ue.allocAt(fe+ve,_e+st),ee.move(re),Ue.free(re),Ue.free(ht),Ue.free(Ze),hn.free(De),Mr.free(Le)}}E!==null?E.Ul(!1):b.Ul(!1),b=TS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ue.free(b)}};function iS(a,y,x,b){if(Iu(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ao&&a.type===Gn.Link&&a.adornedObject instanceof Tr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Qn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Ao&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ns(b,!1)}}function yp(){this.xa="Base"}Yt(yp,Rs),yp.prototype.measure=function(a,y,x,b,E,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,ve=new hn(-oe.left,-oe.top,Math.max(fe.width+le,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(ve),E.assign(ve);for(var Ce=re.geometry,Le=re.strokeWidth,De=Ce.flattenedSegments,_e=Ce.flattenedLengths,Ze=Ce.flattenedTotalLength,st=De.length,ht=0,mt=0,Lt=an(),Vt=0;Vt<st;Vt++){var di=De[Vt],Ci=[];mt=ht=0;for(var vi=di.length,Jn=0;Jn<vi;Jn+=2){var kn=di[Jn],Sr=di[Jn+1];if(Jn!==0){var dr=180*Math.atan2(Sr-mt,kn-ht)/Math.PI;0>dr&&(dr+=360),Ci.push(dr)}ht=kn,mt=Sr}Lt.push(Ci)}if(a.graduatedIntervals===null){for(var Do=[],aa=a.O.s,Gs=aa.length,qs=0;qs<Gs;qs++){var Nl=aa[qs],Ks=[];if(Do.push(Ks),Nl.visible){var Mc=Nl.interval;if(!(0>Mc)){for(var ys=0;ys<Gs;ys++)if(ys!==qs){var Xh=aa[ys];if(Xh.visible&&Nl.constructor===Xh.constructor){var Tl=Xh.interval;Tl>Mc&&Ks.push(Tl)}}}}}a.graduatedIntervals=Do}var Ac=a.graduatedIntervals,Hu=a.O.s,ph=Hu.length,Au=0,mu=0,rf=Ze;a.graduatedMarks=[];for(var Jh,$g=0;$g<ph;$g++){var ku=Hu[$g];if(Jh=[],ku.visible&&ku!==re){var Dl=Math.abs(ku.interval),im=a.graduatedTickUnit;if(!(2>im*Dl*Ze/a.graduatedRange&&ku.graduatedSkip===null)){var dg=_e[0][0],hd=0,vu=0;mu=Ze*ku.graduatedStart-1e-4,rf=Ze*ku.graduatedEnd+1e-4;var Bf=im*Dl,Fu=a.graduatedTickBase;if(Fu<a.graduatedMin){var of=(a.graduatedMin-Fu)/Bf;of=of%1===0?of:Math.floor(of+1),Fu+=of*Bf}else Fu>a.graduatedMin+Bf&&(Fu-=Math.floor((Fu-a.graduatedMin)/Bf)*Bf);for(var V0=Ac[$g],rm=Fu,Hy=1e-6*a.graduatedMax,Nd=1;Fu<=a.graduatedMax+Hy;Nd++){e:{for(var $d=V0.length,cg=0;cg<$d;cg++){var af=(Fu-a.graduatedTickBase)%(V0[cg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af<qg&&af>-qg){var sf=!1;break e}}sf=!0}if(sf&&(Fu>a.graduatedMax&&(Fu=a.graduatedMax),ku.graduatedSkip===null||ku instanceof la&&!ku.graduatedSkip(Fu,ku)||ku instanceof Tr&&!ku.graduatedSkip(Fu,ku))&&(Au=(Fu-a.graduatedMin)*Ze/a.graduatedRange,Au>Ze&&(Au=Ze),mu<=Au&&Au<=rf)){for(var Td=Lt[hd][vu],kc=_e[hd][vu];hd<_e.length;){for(;Au>dg&&vu<_e[hd].length-1;)vu++,Td=Lt[hd][vu],kc=_e[hd][vu],dg+=kc;if(Au<=dg)break;hd++,vu=0,Td=Lt[hd][vu],kc=_e[hd][vu],dg+=kc}var yu=De[hd],dd=yu[2*vu],Y0=yu[2*vu+1],qd=(Au-(dg-kc))/kc,_g=new Ue(dd+(yu[2*vu+2]-dd)*qd+Le/2-Ce.bounds.x,Y0+(yu[2*vu+3]-Y0)*qd+Le/2-Ce.bounds.y);_g.scale(re.scale,re.scale);e:{var Qh=Td,Of=Lt[hd];if(!(.5005>qd&&.4995<qd)){var cd=Qh;if(.5>qd?0<vu?cd=Of[vu-1]:Nt.$(yu[0],yu[yu.length-2])&&Nt.$(yu[1],yu[yu.length-1])&&(cd=Of[Of.length-1]):.5<qd&&(vu+1<Of.length?cd=Of[vu+1]:Nt.$(yu[0],yu[yu.length-2])&&Nt.$(yu[1],yu[yu.length-1])&&(cd=Of[0])),Qh!==cd){var fg=Math.abs(Qh-cd);if(180<fg&&(Qh<cd?Qh+=360:cd+=360,fg=Math.abs(Qh-cd)),5e-4>qd||.9995<qd){Td=(Qh+cd)/2%360;break e}if(10>fg){var ep=1-Math.abs(.5-qd);Td=(Qh*ep+cd*(1-ep))%360;break e}}}Td=Qh}if(ku instanceof la){var Th="";ku.graduatedFunction!==null?(Th=ku.graduatedFunction(Fu,ku),Th=Th!=null?Th.toString():""):Th=(+Fu.toFixed(2)).toString(),Th!==""&&Jh.push({$l:_g,angle:Td,text:Th})}else Jh.push({$l:_g,angle:Td})}Fu=rm+Nd*Bf}}}a.graduatedMarks.push(Jh)}Mn(Lt);var ol=a.graduatedMarks;if(ol!==null)for(var om=b.length,Xl=0;Xl<om;Xl++){var Ss=b[Xl],Jl=ol[Xl];if(Ss.visible&&Ss!==re&&Jl.length!==0){if(Ss instanceof Tr){var _d=a,Fc=E,If=Ss.alignmentFocus;If.Mc()&&(If=Ql);var Wy=Ss.angle;Ss.Kb=0,Ss.measure(1/0,1/0,0,0),Ss.Kb=Wy;var U0=Ss.measuredBounds,tp=U0.width,Rf=U0.height,gg=hn.allocAt(0,0,tp,Rf),Su=Ue.alloc();Su.xi(gg,If),hn.free(gg);for(var ec=-Su.x,$h=-Su.y,th=new hn,lf=Jl.length,np=0;np<lf;np++)for(var uf=Jl[np],X0=uf.$l.x,ip=uf.$l.y,os=uf.angle,Dh=0;4>Dh;Dh++){switch(Dh){case 0:Su.h(ec,$h);break;case 1:Su.h(ec+tp,$h);break;case 2:Su.h(ec,$h+Rf);break;case 3:Su.h(ec+tp,$h+Rf)}Su.rotate(os+Ss.angle),Su.offset(X0,ip),np===0&&Dh===0?th.h(Su.x,Su.y,0,0):th.Ye(Su),Su.offset(-X0,-ip),Su.rotate(-os-Ss.angle)}Ue.free(Su),_d.graduatedBounds!==null&&_d.graduatedBounds.push(th),No(Fc,th.x,th.y,th.width,th.height)}else if(Ss instanceof la){var mh=a,J0=E;mh.temporaryTextBlock===null&&(mh.temporaryTextBlock=new la);var Nu=mh.temporaryTextBlock;yS(Nu,Ss);var Nc=Ss.alignmentFocus;Nc.Mc()&&(Nc=Ql);for(var vh=Ss.segmentOrientation,rp=Ss.segmentOffset,hf=new hn,am=0,op=0,fd=0,zf=0,df=0,ap=Jl.length,Tc=0;Tc<ap;Tc++){var Dd=Jl[Tc];am=Dd.$l.x,op=Dd.$l.y,fd=Dd.angle,df=zf=Ss.angle,vh!==Gl&&(df=vh===kp||vh===n0?fd+Ss.angle:fd,zf=Qn.computeAngle(vh,df)),Nu.Kb=zf,Nu.text=Dd.text||"",Nu.measure(1/0,1/0,0,0);var Dc=Nu.measuredBounds,tc=Nu.naturalBounds,Bc=tc.width,jf=tc.height,qh=Mr.alloc();qh.reset(),qh.translate(-Dc.x,-Dc.y),qh.scale(Nu.scale,Nu.scale),qh.rotate(df,Bc/2,jf/2),vh!==Fp&&vh!==Tp||qh.rotate(90,Bc/2,jf/2),vh!==Np&&vh!==Dp||qh.rotate(-90,Bc/2,jf/2),vh===i0&&(45<fd&&135>fd||225<fd&&315>fd)&&qh.rotate(-fd,Bc/2,jf/2);var pg=hn.allocAt(0,0,Bc,jf),Oc=Ue.alloc();Oc.xi(pg,Nc),qh.Ga(Oc);var mg=-Oc.x,Zy=-Oc.y,nc=Ue.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 hn(am,op,Dc.width,Dc.height),sm=new hn(Dc.x,Dc.y,Dc.width,Dc.height),Gy=new hn(tc.x,tc.y,tc.width,tc.height);Dd.Sz=zf,Dd.lineCount=Nu.lineCount,Dd.lines=[Nu.Cb,Nu.Ih,Nu.df,Nu.Le,Nu.Qc,Nu.Qb,Nu.ze],Dd.actualBounds=Hf,Dd.measuredBounds=sm,Dd.naturalBounds=Gy,Tc===0?hf.assign(Hf):hf.ed(Hf),Ue.free(nc),Ue.free(Oc),hn.free(pg),Mr.free(qh)}mh.graduatedBounds!==null&&mh.graduatedBounds.push(hf),No(J0,hf.x,hf.y,hf.width,hf.height)}Ns(Ss,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var ue=y[le];re=E[le],ue.visible&&ue!==b&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.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,ee=E.height;E=y instanceof Eu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ue=oe.length,fe=0;fe<ue;fe++){var ve=oe[fe],Ce=le[fe],Le=Ce.length;if(ve.visible&&ve!==z&&Ce.length!==0){if(ve instanceof Tr){if(!(2>a.graduatedTickUnit*ve.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&ve.graduatedSkip===null)){var De=ve.measuredBounds,_e=ve.strokeWidth*ve.scale,Ze=ve.alignmentFocus;Ze.Mc()&&(Ze=Ql);for(var st=0;st<Le;st++){var ht=Ce[st].$l,mt=Ce[st].angle,Lt=Ze,Vt=ve.Ab;Vt.reset(),Vt.translate(ht.x+re.x,ht.y+re.y),Vt.rotate(mt+ve.angle,0,0),Vt.translate(-De.width*Lt.x+Lt.offsetX+_e/2,-De.height*Lt.y+Lt.offsetY+_e/2),Vt.scale(ve.scale,ve.scale),hh(ve,!1),ve.wh.set(ve.Ab),ve.Kk=ve.scale,Xu(ve,!1),ve.gc(y,x),E&&(a.svg.appendChild(ve.svg),ve.svg=null),ve.Ab.reset()}}}else if(ve instanceof la)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new la),De=a.temporaryTextBlock,yS(De,ve),_e=0;_e<Le;_e++)Ze=Ce[_e],Ze.actualBounds&&Ze.measuredBounds&&Ze.naturalBounds&&(De.ec=Ze.text||"",De.Kb=Ze.Sz||0,De.Gc=Ze.lineCount||0,st=Ze.lines,st!==void 0&&(De.Cb=st[0],De.Ih=st[1],De.df=st[2],De.Le=st[3],De.Qc=st[4],De.Qb=st[5],De.ze=st[6]),Ze.naturalBounds&&(De.dc=Ze.naturalBounds),Ze.actualBounds&&(st=Ze.actualBounds,De.arrange(st.x,st.y,st.width,st.height)),st=Ze.actualBounds,De.arrange(st.x,st.y,st.width,st.height),ht=Ze.measuredBounds,Ze=Ze.naturalBounds,mt=De.Ab,mt.reset(),mt.translate(st.x+re.x,st.y+re.y),mt.translate(-ht.x,-ht.y),De.no(mt,Ze.x,Ze.y,Ze.width,Ze.height),hh(De,!1),De.wh.set(De.Ab),De.Kk=De.scale,Xu(De,!1),De.Ng=ve.part,De.Me=ve.panel,De.gc(y,x),De.Me=null,De.Ng=null,E&&(a.svg.appendChild(De.svg),De.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Gn(a,y){if(At.call(this),this.na=null,a===void 0)this.na=Gn.Position;else if(typeof a=="string"){var x=Lh.I(a);x!==null&&(this.na=x)}else a instanceof Rs?this.na=a:a&&(this.na=Gn.Position,y=a);this.na===null&&dt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Gn.Grid?1048576:0),this.O=new En,this.yb=dl,this.Tm=Bo,this.Uf=Cr,this.$g=null,this.$e="",this.jg=new hn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ni,this.jn=Ta,this.kn=fo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Yt(Gn,At),Gn.prototype.cloneProtected=function(a){At.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Gn.prototype.Af=function(a){At.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Gn.prototype.copy=function(){var a=At.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,ee=z.count;if(z.Gb(ee,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof ci&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Xn,"elements",a,null,E,null,ee)}}return a}return null},Ee=Gn.prototype,Ee.toString=function(){return"Panel("+this.type.name+")#"+bo(this)},Ee.Pn=function(a){At.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ee.hh=function(a,y){if(this.na===Gn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Gn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Gn.Table)if(a.yc(),a instanceof Eu){var x=a.yd;a.yd=gm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Gn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===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,ee=a.naturalBounds,re=!0,oe=0;oe<E;oe++){var le=b[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var ue=le.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=le.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){_a(a,y,fe,!1,!1,ee,z),fe=!1;var ve=le.separatorDashArray;ve===null&&(ve=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ve!==null&&(fe=!0,y.js(ve,0)),y.beginPath(),ve=le.position+ue,x?ve>ee.height&&(ue-=ve-ee.height):ve>ee.width&&(ue-=ve-ee.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,ve=ee.width-ue.right,y.moveTo(ue.left,le),y.lineTo(ve,le)):(le+=ue.left,ve=ee.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,ve)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,re=a.naturalBounds,oe=oS(a,!0),le=oS(a,!1),ue=0;ue<z;ue++){var fe=b[ue];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==E&&fe.actual!==0){var ve=x?ee.height:ee.width;if(!(fe.position>ve)){var Ce=fe.Wc(),Le=fe.separatorStrokeWidth;isNaN(Le)&&(Le=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var De=fe.separatorStroke;De===null&&(De=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(De===null||fe.index===(x?oe:le))&&(Le=0),Ce-=Le,Le=fe.position+Le,Ce+=fe.actual,Le+Ce>ve&&(Ce=ve-Le),0>=Ce||(ve=a.yb,_a(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(ve.left,Le+ve.top,ee.width-(ve.left+ve.right),Ce):y.fillRect(Le+ve.left,ve.top,Ce,ee.height-(ve.top+ve.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"}Ee.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ee.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(this.type===Gn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Gn.Grid||this.na===Gn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Ee.nk=function(){return!0},Ee.$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,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;E=ee===0?re.x:Math.min(re.x,E),z=ee===0?re.y:Math.min(re.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 At.prototype.$o.call(this,a,y,x,b)},Ee.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,le=-ee.m12*re,ue=-ee.m21*re,fe=ee.m11*re,ve=re*(ee.m21*ee.dy-ee.m22*ee.dx),Ce=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Nt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*oe+y*ue+ve,re=a*le+y*fe+Ce,a=x*oe+b*ue+ve,oe=x*le+b*fe+Ce,E.h(0,0),x=this.naturalBounds,z=Nt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,ue=le=0,fe=1,Ce=ve=0),re=a*oe+y*ue+ve,a=a*le+y*fe+Ce,oe=x*oe+b*ue+ve,x=x*le+b*fe+Ce,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,fe=this.O.s,Ce=fe.length,ue=Ue.alloc(),ve=null,y=1/0;var Le=null,De=this.isClipping&&this.na===Gn.Spot;De&&(Le=Ue.alloc(),ve=this.Pb(),(le=ve.Sj(re,a,oe,x,Le))&&(y=(re-Le.x)*(re-Le.x)+(a-Le.y)*(a-Le.y)));for(var _e=0;_e<Ce;_e++){var Ze=fe[_e];Ze.visible&&Ze!==ve&&Ze.Sj(re,a,oe,x,ue)&&(le=!0,Ze=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),Ze<b&&(b=Ze,E.set(ue)))}return De&&(y>b&&E.set(Le),Ue.free(Le)),Ue.free(ue),z&&E.transform(ee),le},Ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();At.prototype.Gj.call(this)},Ee.v=function(a){if(!Iu(this)){At.prototype.v.call(this,a),a=null,(this.na===Gn.Auto||this.na===Gn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=nu(E,!1);(E instanceof Zl||E instanceof Gn||E instanceof la||z!==Bn)&&E.v(!0)}}}},Ee.Uj=function(){if(!Iu(this)){Ns(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ee.Uk=function(){if(!(this.l&2048)){hh(this,!0),Xu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ee.Wu=function(){Xu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ee.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,b=ee.height),x=Math.max(x,ee.width),b=Math.max(b,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,E,x,b),a=E.width+oe.left+oe.right,oe=E.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(b,oe),xs(E,a,oe),xs(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ee.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}Ee.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=nu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=Bn),a){case Bn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Wn:this.v(!0),this.measure(x+re,b+ee,0,0);break;case Bi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Ji:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},Ee.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(fa(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ue.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Xr(E.set(a),z.transform),z.ca(E)))return Ue.free(E),!0}return Ue.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ee.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},Ee.qm=function(a,y){if(y(this,a),a instanceof Gn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Gn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)sS(a,y[E],x)}}Ee.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=lS(a,y[E],x);if(z!==null)return z}}return null}Ee.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Sp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Gn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Gn?x=Math.max(x,uS(E)):E instanceof Tr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ee.se=function(){return!(this.type===Gn.TableRow||this.type===Gn.TableColumn)};function vc(a){return a.type===Gn.TableRow||a.type===Gn.TableColumn}Ee.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Hl(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:Xr(Ue.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),fa(-(le*E),-(le*E),b.width+oe*E,b.height+oe*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var ue=E.length;if(re=Ue.alloc(),le=(oe=this.isClipping&&this.na===Gn.Spot)?this.Pb():null,oe&&(le.se()?Xr(re.set(a),le.transform):re.set(a),!le.ca(re)))return Ue.free(re),z||Ue.free(ee),null;for(var fe=Xd(this);ue--;){var ve=E[ue];if((ve.visible||ve===fe)&&(ve.se()?Xr(re.set(a),ve.transform):re.set(a),!oe||ve!==le)){var Ce=null;if(ve instanceof Gn?Ce=ve.ic(re,y,x):ve.pickable===!0&&ve.ca(re)&&(Ce=ve),Ce!==null&&(y!==null&&(Ce=y(Ce)),Ce!==null&&(x===null||x(Ce))))return Ue.free(re),z||Ue.free(ee),Ce}}Ue.free(re)}return this.background===null&&this.areaBackground===null?(z||Ue.free(ee),null):(a=fa(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Ue.free(ee),a)}return z||Ue.free(ee),null},Ee.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(),ee=z?a:Xr(Ue.allocAt(a.x,a.y),this.transform);if(E=fa(0,0,E.width,E.height,ee.x,ee.y),vc(this)||E){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=Ue.alloc(),ue=Xd(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?Xr(le.set(a),fe.transform):le.set(a);var ve=fe;fe=fe instanceof Gn?fe:null,(fe!==null?fe.ji(le,y,x,b):ve.ca(le))&&ve.pickable!==!1&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||b.add(ve))}}Ue.free(le)}return z||Ue.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Ue.free(ee),!1},Ee.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 ee=z;if(z===void 0&&(ee=Mr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Xd(this),oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===re){var fe=ue.actualBounds,ve=this.naturalBounds;fe.x>ve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof Gn?ue:null,ve=Mr.alloc(),ve.set(ee),(ue!==null?ue.Cf(a,y,x,b,E,ve):Zs(fe,a,b,ve))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe)),Mr.free(ve))}}return z===void 0&&Mr.free(ee),b}return z===void 0&&Mr.free(ee),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Gn&&mv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}Ee.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 ee=this.naturalBounds,re=this.se(),oe=re?a:Xr(Ue.allocAt(a.x,a.y),this.transform),le=re?y:Xr(Ue.allocAt(y.x,y.y),this.transform),ue=oe.Bf(le),fe=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Zo(oe.x,oe.y,0,0,0,ee.height)<=ue||Zo(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||Zo(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||Zo(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(Ue.free(oe),Ue.free(le)),fe){if(!this.isAtomic){oe=Ue.alloc(),le=Ue.alloc(),ue=Xd(this);for(var ve=this.O.s,Ce=ve.length;Ce--;){var Le=ve[Ce];if(Le.visible||Le===ue){var De=Le.actualBounds,_e=this.naturalBounds;(!re||!(De.x>_e.width||De.y>_e.height||0>De.x+De.width||0>De.y+De.height))&&(Le.se()?(De=Le.transform,Xr(oe.set(a),De),Xr(le.set(y),De)):(oe.set(a),le.set(y)),De=Le,Le=Le instanceof Gn?Le:null,(Le!==null?Le.og(oe,le,x,b,E,z):De.tx(oe,le,E))&&(x!==null&&(De=x(De)),De===null||b!==null&&!b(De)||z.add(De)))}}Ue.free(oe),Ue.free(le)}return E?fe:ee}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=Ls),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}Ee.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},Ee.M=function(a){return this.O.M(a)},Ee.Gb=function(a,y){y instanceof Hi&&dt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&dt("Cannot make a Panel contain itself: "+this.toString()),dt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&dt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Gn.Grid||y instanceof Tr||dt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Gn.Graduated||y instanceof Tr||y instanceof la||dt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new ki),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else dt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Iu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Gn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ci&&(x.Te=!0),x.Te&&x instanceof ci&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(hi,"elements",this,y,null,b,null),x.cb(Xn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ee.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)},Ee.mb=function(a){0<=a&&this.pc(a,!0)},Ee.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Ns(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof ci&&(b instanceof Gn?b.qm(b,function(ee,re){Zv(z,re,y)}):Zv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(hi,"elements",this,b,null,a,null))},Ee.Fb=function(a){0>a&&ui(a,">= 0",Gn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Xn,"rowdefs",this,null,x,null,a)}return y[a]},Ee.oA=function(a){if(0>a&&ui(a,">= 0",Gn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(hi,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ee.Eb=function(a){0>a&&ui(a,">= 0",Gn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Xn,"coldefs",this,null,x,null,a)}return y[a]},Ee.jA=function(a){if(0>a&&ui(a,">= 0",Gn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(hi,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ee.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},Ee.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ts(y)),this},Ee.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ts(y)),this},Ee.nz=function(a){if(0>a||this.type!==Gn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ee.fz=function(a){if(0>a||this.type!==Gn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ee.Fz=function(a,y){if(y===void 0&&(y=new Ue(NaN,NaN)),this.type!==Gn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ee.Gz=function(a){if(this.type!==Gn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function cS(a){return a=a.allBindings,a!==null&&a._isFrozen}function ch(a){var y=a.allBindings;if(y===null)a.data!==null&&dt("Template cannot have .data be non-null: "+a),a.allBindings=y=new En;else if(y._isFrozen)return;var x=new En;Sv(a,!1),a.qm(a,function(le,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for(Qf(ue,!1),fe=fe.iterator;fe.next();){var ve=fe.value;ve.mode===Wp&&Qf(ue,!0);var Ce=ve.sourceName;Ce!==null&&(Ce==="/"&&Sv(le,!0),Ce=L1(ve,le,ue),Ce!==null&&(x.add(Ce),Ce.srcBindings===null&&(Ce.srcBindings=new En),Ce.srcBindings.add(ve))),y.add(ve)}if(ue instanceof Gn&&ue.type===Gn.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,ve=0;ve<fe;ve++)if(Ce=le[ve],Ce!==void 0&&Ce.be!==null)for(var Le=Ce.be.iterator;Le.next();){var De=Le.value;De.xd=Ce,De.to=2,De.wl=Ce.index,y.add(De)}}if(0<ue.columnCount){for(ue=ue.colDefs,le=ue.length,fe=0;fe<le;fe++)if(ve=ue[fe],ve!==void 0&&ve.be!==null)for(Ce=ve.be.iterator;Ce.next();)Le=Ce.value,Le.xd=ve,Le.to=1,Le.wl=ve.index,y.add(Le)}}});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 ee=z.value;E.localBindings===null&&(E.localBindings=new En),E.localBindings.add(ee)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Gn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):ji('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Ts?(ee=bo(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof At?(ee=bo(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):dt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Hi&&a.Zc()&&a.Va()}Ee.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Gn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&ch(y),y},Ee.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,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Gn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ee.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Gn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var ee=0;E<x&&ee<b;){if(z=a[E],!(z instanceof Gn)||z.data!==y[ee])return!0;E++,ee++}return!1}function Sp(a){if(a.type===Gn.Spot||a.type===Gn.Auto)return Math.min(a.O.length,1);if(a.type===Gn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Tr&&b.isPanelMain))break}return x}return a.type===Gn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Gn&&vc(a))?1:0}Ee.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],ee=b<a.O.length?a.O.M(b):null;if(ee instanceof Gn){if(ee.data!==z){var re=wv(a,ee.data),oe=wv(a,z),le=oe!==re;le||(re=Pv(a,re),le=Pv(a,oe)!==re),le?(a.pc(b,!1),km(a,z,E,!1)):ee.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),Iu(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ci&&(y.Te=!0),y.Te&&y instanceof ci&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(ch(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ki),a.ge.add(y,E)),z=x+Sp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Gn){var E=y,z=x;b.type===Gn.TableRow?b.row=E:b.type===Gn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function wv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=fs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;dt("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,ji('No item template Panel found for category "'+y+'" on '+a),ji(" Using default item template."),a=new Gn,y=new la,y.bind(new vs("text","",$n)),a.add(y),pS=a),b=pS)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Gn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Gn&&!z.isEnabled||Fm(a,z,x)}}}function ld(a,y){y.name=a,Lh.add(a,y)}Qe.Object.defineProperties(Gn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Gn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&ui(a,">= 0",Gn,"padding"),a=new zi(a)):(0>a.left&&ui(a.left,">= 0",Gn,"padding:value.left"),0>a.right&&ui(a.right,">= 0",Gn,"padding:value.right"),0>a.top&&ui(a.top,">= 0",Gn,"padding:value.top"),0>a.bottom&&ui(a.bottom,">= 0",Gn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:dl},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new $u),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new $u),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new $u),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||dt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new $u),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new $u),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new $u),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||dt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new $u),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new $u),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||dt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sh(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||dt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sh(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Jd),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Jd,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Jd,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Jd,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Jd,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new $u),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new $u),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new $u),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new $u),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&dt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new $u),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&dt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new $u),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Hi&&!(this instanceof Ao);ch(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Qn?(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 ki}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Hi||a.isPanelMain)&&dt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Hr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Hr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof 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))}}}),Qe.Object.defineProperties(Gn,{Position:{get:function(){return Lh.I("Position")}},Horizontal:{get:function(){return Lh.I("Horizontal")}},Vertical:{get:function(){return Lh.I("Vertical")}},Spot:{get:function(){return Lh.I("Spot")}},Auto:{get:function(){return Lh.I("Auto")}},Table:{get:function(){return Lh.I("Table")}},Viewbox:{get:function(){return Lh.I("Viewbox")}},TableRow:{get:function(){return Lh.I("TableRow")}},TableColumn:{get:function(){return Lh.I("TableColumn")}},Link:{get:function(){return Lh.I("Link")}},Grid:{get:function(){return Lh.I("Grid")}},Graduated:{get:function(){return Lh.I("Graduated")}}}),Gn.prototype.rebuildItemElements=Gn.prototype.mv,Gn.prototype.findItemPanelForData=Gn.prototype.sx,Gn.prototype.updateTargetBindings=Gn.prototype.La,Gn.prototype.copyTemplate=Gn.prototype.Uy,Gn.prototype.graduatedValueForPoint=Gn.prototype.Gz,Gn.prototype.graduatedPointForValue=Gn.prototype.Fz,Gn.prototype.findColumnForLocalX=Gn.prototype.fz,Gn.prototype.findRowForLocalY=Gn.prototype.nz,Gn.prototype.addColumnDefinition=Gn.prototype.By,Gn.prototype.addRowDefinition=Gn.prototype.Hy,Gn.prototype.addRowColumnDefinition=Gn.prototype.Gy,Gn.prototype.removeColumnDefinition=Gn.prototype.jA,Gn.prototype.getColumnDefinition=Gn.prototype.Eb,Gn.prototype.removeRowDefinition=Gn.prototype.oA,Gn.prototype.getRowDefinition=Gn.prototype.Fb,Gn.prototype.removeAt=Gn.prototype.mb,Gn.prototype.remove=Gn.prototype.remove,Gn.prototype.insertAt=Gn.prototype.Gb,Gn.prototype.elt=Gn.prototype.M,Gn.prototype.add=Gn.prototype.add,Gn.prototype.findObject=Gn.prototype.fb,Gn.prototype.findInVisualTree=Gn.prototype.Nl,Gn.prototype.walkVisualTreeFrom=Gn.prototype.qm,Gn.prototype.findMainElement=Gn.prototype.Pb;var gS=!1,pS=null,Lh=new ki;Gn.className="Panel",Gn.definePanelLayout=ld,ld("Position",new vm),ld("Vertical",new Sm),ld("Auto",new wm),ld("Link",new Mm);function Jd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jd.prototype.copy=function(){var a=new Jd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Jd.className="GradPanelSettings";function $u(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}$u.prototype.copy=function(a){for(var y=new $u,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),E[z]=ee}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),E[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},$u.className="TablePanelSettings";function Ts(a){Br(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=Cr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Ts.prototype.copy=function(){var a=new Ts;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Rt(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=Rt(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ee=Ts.prototype,Ee.qb=function(a){a.classType===Ts&&(this.sizing=a)},Ee.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+bo(this)},Ee.wi=function(a){this.Me=a},Ee.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)},Ee.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Gn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var ee=b?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.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)},Ee.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}Ee.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new vs(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&cS(y)&&dt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new En),this.be.add(E),this},Qe.Object.defineProperties(Ts.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ui(a,">= 0",Ts,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ui(a,">= 0",Ts,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&ui(a,">= 0",Ts,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&ui(a,">= 0",Ts,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.separatorStroke"),a instanceof Go&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||dt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.background"),a instanceof Go&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Ts.prototype.computeEffectiveSpacing=Ts.prototype.Wc,Ts.prototype.computeEffectiveSpacingTop=Ts.prototype.Io;var Cv=new sn(Ts,"Default",0),xp=new sn(Ts,"None",1),Dm=new sn(Ts,"ProportionalExtra",2);Ts.className="RowColumnDefinition",Ts.Default=Cv,Ts.None=xp,Ts.ProportionalExtra=Dm;function Tr(a,y){At.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)}Yt(Tr,At),Tr.prototype.cloneProtected=function(a){At.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=Rt(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())}Ee=Tr.prototype,Ee.th=function(){At.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ee.qb=function(a){a===Bn||a===Ni||a===io||a===Cr?this.geometryStretch=a:At.prototype.qb.call(this,a)},Ee.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+bo(this)};function kg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ue,fe,ve,Ce,Le,De=0,_e=an(),Ze=2;Ze<E;Ze+=2)le=x[Ze],ue=x[Ze+1],fe=le-re,re=ue-oe,fe===0&&(fe=.001),ve=re/fe,Ce=Math.atan2(re,fe),Le=Math.sqrt(fe*fe+re*re),_e.push([fe,Ce,ve,Le]),De+=Le,re=le,oe=ue;re=x[0],oe=x[1],fe=b.measuredBounds.width,b instanceof Tr&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ze=0,Le=_e[Ze],fe=Le[0],Ce=Le[1],ve=Le[2],Le=Le[3];for(var st=0;.1<=De;){if(st===0&&(ue?(E=x,E-=le,De-=le,ue=!1):E=x,E===0&&(E=1)),E>De){Mn(_e);return}E>Le?(st=E-Le,E=Le):st=0;var ht=Math.sqrt(E*E/(1+ve*ve));if(0>fe&&(ht=-ht),re+=ht,oe+=ve*ht,a.translate(re,oe),a.rotate(Ce),a.translate(-(ee/2),-(z/2)),st===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ce),a.translate(-re,-oe),De-=E,Le-=E,st!==0){if(Ze++,Ze===_e.length){Mn(_e);return}Le=_e[Ze],fe=Le[0],Ce=Le[1],ve=Le[2],Le=Le[3],E=st}}Mn(_e)}}Ee.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,ee=this.naturalBounds;b!==null&&_a(this,a,b,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Gn.Link&&re instanceof Ao&&re.category==="Selection"&&re.adornedObject instanceof Tr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(_a(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),E.type===ei.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===ei.u){var le=E.startX;oe=E.startY;var ue=E.endX,fe=E.endY;E=Math.min(le,ue);var ve=Math.min(oe,fe);le=Math.abs(ue-le),oe=Math.abs(fe-oe),a.beginPath(),a.rect(E,ve,le,oe),b!==null&&a.ng(b),x!==null&&(re&&z&&wd(a),a.jk(),re&&z&&Vd(a)),a.Se()}else if(E.type===ei.F)le=E.startX,oe=E.startY,ue=E.endX,fe=E.endY,E=Math.abs(ue-le)/2,ve=Math.abs(fe-oe)/2,le=Math.min(le,ue)+E,oe=Math.min(oe,fe)+ve,a.beginPath(),a.moveTo(le,oe-ve),a.bezierCurveTo(le+Nt.wg*E,oe-ve,le+E,oe-Nt.wg*ve,le+E,oe),a.bezierCurveTo(le+E,oe+Nt.wg*ve,le+Nt.wg*E,oe+ve,le,oe+ve),a.bezierCurveTo(le-Nt.wg*E,oe+ve,le-E,oe+Nt.wg*ve,le-E,oe),a.bezierCurveTo(le-E,oe-Nt.wg*ve,le-Nt.wg*E,oe-ve,le,oe-ve),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&wd(a),a.jk(),re&&z&&Vd(a)),a.Se();else if(E.type===ei.o)for(E=E.figures,oe=E.length,ve=0;ve<oe;ve++){le=E.s[ve],a.beginPath(),a.moveTo(le.startX,le.startY),ue=le.segments.s,fe=ue.length;for(var Ce=null,Le=0;Le<fe;Le++){var De=ue[Le];switch(De.type){case ss:a.moveTo(De.endX,De.endY);break;case na:a.lineTo(De.endX,De.endY);break;case Us:a.bezierCurveTo(De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY);break;case Ie:a.quadraticCurveTo(De.point1X,De.point1Y,De.endX,De.endY);break;case Ye:if(De.radiusX===De.radiusY){var _e=Math.PI/180;a.arc(De.point1X,De.point1Y,De.radiusX,De.startAngle*_e,(De.startAngle+De.sweepAngle)*_e,0>De.sweepAngle,Ce!==null?Ce.endX:le.startX,Ce!==null?Ce.endY:le.startY)}else if(Ce=nl(De,le),_e=Ce.length,_e===0)a.lineTo(De.centerX,De.centerY);else for(var Ze=0;Ze<_e;Ze++){var st=Ce[Ze];Ze===0&&a.lineTo(st[0],st[1]),a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7])}break;case nt:if(Ze=_e=0,Ce!==null&&Ce.type===Ye){if(Ce=nl(Ce,le),st=Ce.length,st===0){a.lineTo(De.endX,De.endY);break}Ce=Ce[st-1]||null,Ce!==null&&(_e=Ce[6],Ze=Ce[7])}else _e=Ce!==null?Ce.endX:le.startX,Ze=Ce!==null?Ce.endY:le.startY;if(Ce=yl(De,le,_e,Ze),_e=Ce.length,_e===0){a.lineTo(De.endX,De.endY);break}for(Ze=0;Ze<_e;Ze++)st=Ce[Ze],a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7]);break;default:dt("Segment not of valid type: "+De.type)}De.isClosed&&a.closePath(),Ce=De}ue=le.isFilled,z?le.isShadowed?(ue===!0&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&(ue&&re&&wd(a),a.jk(),ue&&re&&Vd(a))):(wd(a),ue&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ue&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk()),a.Se(ve)}if(ee&&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=an(),z.type===ei.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===ei.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ee=re.startX,E=re.startY,oe=ee,ve=E,le=re.segments.s,ue=le.length,fe=0;fe<ue;fe++){switch(Le=le[fe],Le.type){case ss:kg(a,y,b,x),b.length=0,b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY,oe=ee,ve=E;break;case na:b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break;case Us:Nt.Qe(ee,E,Le.point1X,Le.point1Y,Le.point2X,Le.point2Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case Ie:Nt.ep(ee,E,Le.point1X,Le.point1Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case Ye:if(De=nl(Le,re),Ce=De.length,Ce===0){b.push(Le.centerX),b.push(Le.centerY),ee=Le.centerX,E=Le.centerY;break}for(_e=0;_e<Ce;_e++)Ze=De[_e],Nt.Qe(ee,E,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,b),ee=Ze[6],E=Ze[7];break;case nt:if(De=yl(Le,re,ee,E),Ce=De.length,Ce===0){b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break}for(_e=0;_e<Ce;_e++)Ze=De[_e],Nt.Qe(ee,E,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,b),ee=Ze[6],E=Ze[7];break;default:dt("Segment not of valid type: "+Le.type)}Le.isClosed&&(b.push(oe),b.push(ve),kg(a,y,b,x))}kg(a,y,b,x)}else if(z.type===ei.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===ei.F){if(E=new Es,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new vo(Ye),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,E.add(ee),z=nl(ee,E),re=z.length,re===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,oe=0;oe<re;oe++)ve=z[oe],Nt.Qe(ee,E,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,b),ee=ve[6],E=ve[7];kg(a,y,b,x)}Mn(b),a.restore(),a.Vc(!1)}}}},Ee.kk=function(a,y,x){return!At.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)},Ee.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:At.prototype.nk.call(this,a)},Ee.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)}},Ee.ga=function(a,y){if(y===void 0&&(y=new Ue),a instanceof Fi){a.Mc()&&dt("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},Ee.mi=function(a){a===void 0&&(a=new hn);var y=this.naturalBounds,x=this.oe;y=hn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ue.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),No(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),No(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),No(a,b.x,b.y,0,0),hn.free(y),Ue.free(b),a},Ee.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!==ei.j||y||(E+=2);var z=hn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return hn.free(z),!1;if(b=E+1e-4,x.type===ei.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:(hn.free(z),Nt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ei.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return hn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),hn.free(z),a}if(x.type===ei.F){ee=x.startX,E=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(E,oe),ee=Math.abs(re-ee)/2,E=Math.abs(oe-E)/2,x=a.x-(x+ee),y=a.y-(y+E),this.fill===null){if(ee-=b,E-=b,0>=ee||0>=E||1>=x*x/(ee*ee)+y*y/(E*E))return hn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),hn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===ei.o)return hn.free(z),this.fill===null?xh(x,a.x,a.y,E):ih(x,a,E,1<this.strokeWidth,y);dt("Unknown Geometry type: "+x.type)},Ee.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 ee=this.geometry.bounds;else{var re=this.figure,oe=Ev[re];if(oe===void 0){var le=Nt.Ze[re];typeof le=="string"&&(le=Nt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Ev[re]=oe):dt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var ue=ee.height;switch(nu(this,!0)){case Bn:b=x=0;break;case Wn:le=Math.max(a-z,0),ue=Math.max(y-z,0);break;case Bi:le=Math.max(a-z,0),b=0;break;case Ji:x=0,ue=Math.max(y-z,0)}isFinite(E.width)&&(le=E.width),isFinite(E.height)&&(ue=E.height);var fe=this.maxSize,ve=this.minSize;switch(x=Math.max(x-z,ve.width),b=Math.max(b-z,ve.height),le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ue=isFinite(ue)?Math.max(b,ue):Math.max(oe,b),x=bv(this),x){case Bn:break;case Wn:re=le,oe=ue;break;case Ni:x=Math.min(le/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:dt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=re/ee.width,ee=oe/ee.height,isFinite(b)||(b=1),isFinite(ee)||(ee=1),this.ua=b===1&&ee===1?x:x.copy().scale(b,ee)):this.ua!==null&&Nt.$(this.ua.Sk,a-z)&&Nt.$(this.ua.Rk,y-z)||(this.ua=Tr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,ue+z),E.w()?(le=E.width,ue=E.height,le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=Math.max(ve.width,le),ue=Math.max(ve.height,ue),this.dc.h(0,0,le,ue)):this.dc.assign(ee)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===Cr?Wn:y:y===Cr?Ev[a.figure].defaultStretch:y}Ee.eh=function(a,y,x,b){Fl(this,a,y,x,b)},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ve=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+fe,ee=a*oe+y*ue+ve,re=x*re+b*le+fe,oe=x*oe+b*ue+ve,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Ce=le.bounds;if(ue=!1,le.type===ei.j)if(1.5>=this.strokeWidth)ue=Nt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,oe,E);else{if(le.startX===le.endX?(b=fe,ue=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ue=fe/Math.sqrt(1+y*y),b=ue*y),y=an(),a=new Ue,Nt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,Nt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,Nt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,Nt.Ve(le.endX+b,le.endY+ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return Mn(y),!1;for(ue=!0,oe=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,E.x=a.x,E.y=a.y);Mn(y)}else if(le.type===ei.u)ue=Nt.Ff(Ce.x-fe,Ce.y-fe,Ce.x+Ce.width+fe,Ce.y+Ce.height+fe,z,ee,re,oe,E);else if(le.type===ei.F){y=hn.allocAt(Ce.x,Ce.y,Ce.width,Ce.height).Bc(fe,fe);e:if(y.width===0)ue=Nt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)ue=Nt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,E);else{if(a=y.width/2,le=y.height/2,b=y.x+a,ue=y.y+le,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-b),0>a*a*x*x+le*le-oe*oe){E.x=NaN,E.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*fe)/(le*le+a*a*x*x)+b,a=(-(a*a*x*oe)-a*le*fe)/(le*le+a*a*x*x)+b,le=x*(re-b)+oe+ue,oe=x*(a-b)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(E.x=re,E.y=le):(E.x=a,E.y=oe)}else{if(re=le*le,oe=z-b,re-=re/(a*a)*oe*oe,0>re){E.x=NaN,E.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(E.x=z,E.y=re):(E.x=z,E.y=oe)}ue=!0}hn.free(y)}else if(le.type===ei.o){ve=Ue.alloc();var Le=re-z,De=oe-ee,_e=Le*Le+De*De,Ze=z,st=ee;if(0<_e&&Ce.contains(Ze,st)&&(ve.x=Ze,ve.y=st,this.ca(ve)))for(Le!==0&&.5>Math.abs(Le)?(De*=.5/Le,Le=.5):De!==0&&.5>Math.abs(De)&&(Le*=.5/De,De=.5),Ze-=Le,st-=De;Ce.contains(Ze,st);)Ze-=Le,st-=De;for(E.x=re,E.y=oe,De=0;De<le.figures.count;De++){var ht=le.figures.s[De],mt=ht.isFilled?Ze:z,Lt=ht.isFilled?st:ee,Vt=ht.segments;Ce=ht.startX,Le=ht.startY;for(var di=Ce,Ci=Le,vi=0;vi<Vt.count;vi++){var Jn=Vt.s[vi],kn=Jn.type,Sr=Jn.endX,dr=Jn.endY,Do=!1;switch(kn){case ss:di=Sr,Ci=dr;break;case na:Do=Om(Ce,Le,Sr,dr,mt,Lt,re,oe,ve);break;case Us:Do=Nt.Eo(Ce,Le,Jn.point1X,Jn.point1Y,Jn.point2X,Jn.point2Y,Sr,dr,mt,Lt,re,oe,.6,ve);break;case Ie:Do=Nt.Eo(Ce,Le,Ce+2/3*(Jn.point1X-Ce),Le+2/3*(Jn.point1Y-Le),Sr+2/3*(Jn.point1X-Sr),dr+2/3*(Jn.point1Y-dr),Sr,dr,mt,Lt,re,oe,.6,ve);break;case Ye:case nt:kn=Jn.type===Ye?nl(Jn,ht):yl(Jn,ht,Ce,Le);var aa=kn.length;if(aa===0){Do=Om(Ce,Le,Jn.type===Ye?Jn.centerX:Jn.endX,Jn.type===Ye?Jn.centerY:Jn.endY,mt,Lt,re,oe,ve);break}for(dr=null,Sr=0;Sr<aa;Sr++){if(dr=kn[Sr],Sr===0&&Om(Ce,Le,dr[0],dr[1],mt,Lt,re,oe,ve)){var Gs=Bm(mt,Lt,ve,_e,E);Gs<_e&&(_e=Gs,ue=!0)}Nt.Eo(dr[0],dr[1],dr[2],dr[3],dr[4],dr[5],dr[6],dr[7],mt,Lt,re,oe,.6,ve)&&(Gs=Bm(mt,Lt,ve,_e,E),Gs<_e&&(_e=Gs,ue=!0))}Sr=dr[6],dr=dr[7];break;default:dt("Unknown Segment type: "+kn)}Ce=Sr,Le=dr,Do&&(Do=Bm(mt,Lt,ve,_e,E),Do<_e&&(_e=Do,ue=!0)),Jn.isClosed&&(Sr=di,dr=Ci,Om(Ce,Le,Sr,dr,mt,Lt,re,oe,ve)&&(Jn=Bm(mt,Lt,ve,_e,E),Jn<_e&&(_e=Jn,ue=!0)))}}z=x-a,ee=b-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),E.x-=z*fe,E.y-=ee*fe,Ue.free(ve)}else dt("Unknown Geometry type: "+le.type);return ue?(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,ee,re,oe){if(Nt.$(a,x)&&Nt.$(y,b)||Nt.$(E,ee)&&Nt.$(z,re))return!1;var le=!1,ue=(E-ee)*(y-b)-(z-re)*(a-x);return ue===0?!1:(oe.x=((E*re-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/ue,oe.y=((E*re-z*ee)*(y-b)-(z-re)*(a*b-y*x))/ue,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(oe.y>a||Nt.$(oe.y,a))&&(oe.y<y||Nt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Nt.$(oe.x,y))&&(oe.x<a||Nt.$(oe.x,a))&&(le=!0)),le)}Ee.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=Ue.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)))),Ue.free(z),E},Ee.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Mr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Ue.alloc();if(ee.h(b,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(E,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0)))return Ue.free(ee),!0;var re=Ue.alloc(),oe=Ue.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Af(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Af(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),Af(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Af(this,ee,re,oe)&&(y=!0)))),Ue.free(ee),Mr.free(x),Ue.free(re),Ue.free(oe),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)}Ee.tx=function(a,y,x){function b(_e,Ze){for(var st=_e.length,ht=0;ht<st;ht+=2)if(Ze.zd(_e[ht],_e[ht+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 ee=y.bounds,re=ee.x,oe=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,oa(a.x,a.y,re,oe)<=E&&oa(a.x,a.y,le,oe)<=E&&oa(a.x,a.y,re,ee)<=E&&oa(a.x,a.y,le,ee)<=E)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===ei.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),Zo(a.x,a.y,re,oe,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?E:z))return!0}else{if(y.type===ei.u)return y=!1,x&&(y=Zo(a.x,a.y,re,oe,re,ee)<=E||Zo(a.x,a.y,re,oe,le,oe)<=E||Zo(a.x,a.y,le,oe,le,ee)<=E||Zo(a.x,a.y,re,ee,le,ee)<=E),y;if(y.type===ei.F){y=a.x-(re+le)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(le-re)/2,fe=Math.abs(ee-oe)/2;if(ue===0||fe===0)return Zo(a.x,a.y,re,oe,le,ee)<=E;if(x){if(a=Nt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(oa(y,z,-ue,0)>=E||oa(y,z,0,-fe)>=E||oa(y,z,0,fe)>=E||oa(y,z,ue,0)>=E)}else if(y.type===ei.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&Zo(a.x,a.y,z,re,z,le)>E&&Zo(a.x,a.y,z,re,oe,re)>E&&Zo(a.x,a.y,oe,le,z,le)>E&&Zo(a.x,a.y,oe,le,oe,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?xh(y,a.x,a.y,z):ih(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>E)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(fe=re[le],fe.type){case ss:case na:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case Us:var ve=an();if(Nt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,ve),ee=b(ve,a),Mn(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Ie:if(ve=an(),Nt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,ve),ee=b(ve,a),Mn(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Ye:case nt:ve=fe.type===Ye?nl(fe,z):yl(fe,z,ee,ue);var Ce=ve.length;if(Ce===0){if(ee=fe.type===Ye?fe.centerX:fe.endX,ue=fe.type===Ye?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Le=an(),De=0;De<Ce;De++)if(fe=ve[De],Le.length=0,Nt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Le),b(Le,a))return Mn(Le),!1;Mn(Le),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:dt("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ee.qc=function(){this.ua=null},Ee.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ms):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Fi(1-Ms.x,Ms.y)))}Tr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Cd[a.toArrow];else a.fromArrow!=="None"?b=Cd[a.fromArrow]:(b=Nt.Ze[a.figure],typeof b=="string"&&(b=Nt.Ze[b]),b===void 0&&dt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Nt.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 Nt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=ei.parse(Nt.um[b],!1),Cd[b]=a,x!==b&&(Cd[x]=b),b}}return typeof y=="string"?y:y instanceof ei?a:null}Qe.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&&pa(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ei.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ue.allocAt(-y.x,-y.y),Ue.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&_f(a,"Shape.fill"),a instanceof Go&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"Shape.stroke"),a instanceof Go&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else ui(a,"value >= 0",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"?ui(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"?ui(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)||dt("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=Nt.Ze[a];typeof x=="function"?x=a:(x=Nt.Ze[a.toLowerCase()])||dt("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?dt("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?dt("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:Cr},set:function(a){var y=this.geometryStretch;y!==a&&(Mf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&sh(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),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 Gi,Ev=new Gi;Tr.className="Shape",Tr.getFigureGenerators=function(){var a=new ki,y;for(y in Nt.Ze)y!==y.toLowerCase()&&a.add(y,Nt.Ze[y]);return a.freeze(),a},Tr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Nt.Ze;b[a]=y,b[x]=a},Tr.getArrowheadGeometries=function(){var a=new ki;for(b in Nt.um)if(Cd[b]===void 0){var y=ei.parse(Nt.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 ei&&a.add(x,b)}return a.freeze(),a},Tr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ei.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||dt("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=Cr,this.gg=this.fg=Bo}Lv.prototype.copy=function(){var a=new Lv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function la(a,y){return At.call(this),Hm||(iu=qa?new dh(null).context:null,Hm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Yt(la,At),la.prototype.cloneProtected=function(a){At.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())}Ee=la.prototype,Ee.th=function(){At.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}Ee.qb=function(a){a.classType===la?this.wrap=a:At.prototype.qb.call(this,a)},Ee.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ee.v=function(){At.prototype.v.call(this)},Ee.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,ee=Pp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;_a(this,a,this.xc,!0,!1,x,b),(oe||le)&&_a(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ue=this.oe,fe=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var ve=y.scale;switch(8>(fe*fe+ue*ue)*ve*ve&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Eu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case xo:a.translate(E,0),a.scale(-1,1);break;case Gr:a.translate(0,z),a.scale(1,-1);break;case Qo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,ve=(y+ee+fe)*ue,z>ve&&(b=this.verticalAlignment,b=b.y*z-b.y*ve+b.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>E&&(fe=E),this.Oj(this.ze,a,0,b+y,E,ee,fe,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(ve=0;ve<ue;ve++){var Ce=this.Qc[ve];Ce>E&&(Ce=E),b+=y,this.Oj(this.Qb[ve],a,0,b,E,ee,Ce,x,re,oe,le),b+=ee+fe}switch(this.flip){case xo:a.scale(-1,1),a.translate(-E,0);break;case Gr:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-E,-z)}}},Ee.Oj=function(a,y,x,b,E,z,ee,re,oe,le,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=E-ee:oe==="center"&&(fe=(E-ee)/2),y.fillRect(x+fe,b+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=E:oe==="center"&&(fe=E/2),E=Im!==null?Im(this,z):.75*z,y.fillText(a,x+fe,b+E),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),le){re=Rm!==null?Rm(this,z):.8*z,oe=x+fe,le=b+re,E=x+fe+ee,re=b+re;var ve=a;y.beginPath(),y.lineWidth=ve,y.moveTo(oe,le),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td")}ue&&(ue=b+z-z/2.2|0,a%2!==0&&(ue+=.5),b=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(b,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td"))}},Ee.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(_a(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)$y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,$y(a,y,!0);return!0},Ee.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:At.prototype.nk.call(this,a)},Ee.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)}},Ee.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;iu!==null&&ES!==z&&(ES=iu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var le=z.indexOf(`
|
|
|
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===Cp&&(re=re.trim()),ee=Math.max(ee,Mh(re)),re=le+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),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)),ee=xS(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===zm&&(y=this.Ae,y=this.overflow===zm?SS(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,Pp(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Mh(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=bp,y=Mh(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),xs(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ee.eh=function(a,y,x,b){Fl(this,a,y,x,b)};function wp(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,b){var E=a.formatting===Cp;E&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Pp(a)+re);var oe=a.overflow===zm?SS(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ee=y,a.wrap===Av){a.Le=1;var le=Mh(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),wp(a,y,a.Cb),b!==null&&b.h(le,re);else{for(z=Fg(a,ee),ee=ee.substr(z.length),y=Fg(a,ee),le=Mh(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Fg(a,ee),le=z+y,E&&(le=le.trim()),le=Mh(le);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Mh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ue=Mh(z);a.Cb=ue,wp(a,z,ue),b!==null&&b.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,wp(a,ee,0));0<ee.length;){for(y=Fg(a,ee),ee=ee.substr(y.length);Mh(y)>x;){var fe=1;for(le=Mh(y.substr(0,fe)),ue=0;le<=x;)fe++,ue=le,le=Mh(y.substr(0,fe));if(fe===1){var ve=le;z=Math.max(z,le)}else ve=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),wp(a,y.substr(0,fe),ve),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Fg(a,ee),le=Mh(y+ue);0<ue.length&&le<=x;)y+=ue,ee=ee.substr(ue.length),ue=Fg(a,ee),le=y+ue,E&&(le=le.trim()),le=Mh(le);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(fe=le,z=Math.max(z,le)):(fe=ue=Mh(y),z=Math.max(z,ue)),wp(a,y,fe),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Fg(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===CS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Mh(a){return iu===null?8*a.length:iu.measureText(a).width}function Pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(iu===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>bS?x=Nv[y]:(x=1.3*iu.measureText("M").width,Nv[y]=x,bS++),a.df=x}function SS(a){if(iu===null)return 6;if(jm[a]!==void 0&&5e3>Tv)var y=jm[a];else y=iu.measureText(bp).width,jm[a]=y,Tv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Pp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Av){a.Le=0;var oe=ri.alloc();Mv(a,z,y,oe),E+=oe.height,ri.free(oe),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}Qe.Object.defineProperties(la.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(ud(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Bn},set:function(a){var y=this.flip;y!==a&&(ud(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ps},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ud(this),this.da.Yr=a,jl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ri.alloc();Mv(this,this.ec,999999,a);var y=a.width;ri.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),xs(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(ud(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(ud(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"TextBlock.stroke"),a instanceof Go&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Pp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(ud(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(ud(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(ud(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(ud(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(ud(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(ud(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(a){var y=this.formatting;y!==a&&(ud(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&ui(a,"> 0",la,"maxLines"),ud(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Im=null,Rm=null,Av=new sn(la,"None",0),wS=new sn(la,"WrapFit",1),kv=new sn(la,"WrapDesiredSize",2),PS=new sn(la,"WrapBreakAll",3),Fv=new sn(la,"OverflowClip",0),zm=new sn(la,"OverflowEllipsis",1),Cp=new sn(la,"FormatTrim",0),CS=new sn(la,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new Gi,bS=0,jm=new Gi,Tv=0,bp="...",ES="",iu=null,Hm=!1;la.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Bn,this.gq=Cp,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ps,this.$r=kv}Dv.prototype.copy=function(){var a=new Dv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},la.getEllipsis=function(){return bp},la.setEllipsis=function(a){bp=a,jm=new Gi,Tv=0},la.getBaseline=function(){return Im},la.setBaseline=function(a){Im=a},la.getUnderline=function(){return Rm},la.setUnderline=function(a){Rm=a},la.isValidFont=function(a){if(Hm||(iu=qa?new dh(null).context:null,Hm=!0),iu===null)return!0;var y=iu.font;if(a===y||a==="10px sans-serif")return!0;iu.font="10px sans-serif",iu.font=a;var x=iu.font;if(x!=="10px sans-serif")return iu.font=y,!0;iu.font="19px serif";var b=iu.font;return iu.font=a,x=iu.font,iu.font=y,x!==b},la.FormatNone=CS,la.FormatTrim=Cp,la.None=Av,la.OverflowClip=Fv,la.OverflowEllipsis=zm,la.WrapBreakAll=PS,la.WrapDesiredSize=kv,la.WrapFit=wS;function bd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bd.prototype.copy=function(){var a=new bd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bd.className="GradElementSettings";function ru(a,y){At.call(this),this.Eg=null,this.qo="",this.Xg=zo,this.Nk=Wn,this.Zg=this.Hd=null,this.Mk=so,this.Xf=Bn,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;Yt(ru,At),ru.prototype.cloneProtected=function(a){At.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},ru.prototype.qb=function(a){a===Bn||a===Ni||a===io?this.imageStretch=a:At.prototype.qb.call(this,a)},ru.prototype.toString=function(){return"Picture("+this.source+")#"+bo(this)};function Tg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Wm--):(Ng=new Gi,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")||"",ee=E.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ns(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null){E=ee.length,z=an();for(var re=0;re<E;re++)z.push(ee[re]);if(y.hn)for(re=0;re<E;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);Mn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ru.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},ru.prototype.redraw=function(){this.N(),this.Uc=!0},ru.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Ef)){var E=a instanceof Eu;b=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||b.width,re=re||b.height,oe!==0&&re!==0){var le=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var fe=oe,ve=re,Ce=this.Nk,Le=this.Mk;switch(Ce){case Bn:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Le.offsetX+(fe*Le.x-b.width*Le.x)),ve>=b.height&&(ee=ee+Le.offsetY+(ve*Le.y-b.height*Le.y)),oe=Math.min(b.width,fe),re=Math.min(b.height,ve);break;case Wn:fe=b.width,ve=b.height;break;case Ni:case io:Ce===Ni?(Ce=Math.min(b.height/ve,b.width/fe),fe*=Ce,ve*=Ce):Ce===io&&(Ce=Math.max(b.height/ve,b.width/fe),fe*=Ce,ve*=Ce,fe>=b.width&&(z=(z+Le.offsetX+(fe*Le.x-b.width*Le.x)/fe)*oe),ve>=b.height&&(ee=(ee+Le.offsetY+(ve*Le.y-b.height*Le.y)/ve)*re),oe*=1/(fe/b.width),re*=1/(ve/b.height),fe=b.width,ve=b.height)}Ce=this.Df()*y.scale;var De=fe*Ce*ve*Ce,_e=oe*re/De,Ze=x.__goCache;Ce=null;var st=xx;if(!E){if(x.sq&&Ze!==void 0&&4<De&&_e>st*st)for(Ze.gi===null&&(AS(Ze,4,le,ue,x),AS(Ze,16,le,ue,x)),E=Ze.gi,le=E.length,ue=0;ue<le&&E[ue].ratio*E[ue].ratio<_e;ue++)Ce=E[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new dh(null).context;try{E.drawImage(this.Eg,0,0)}catch(ht){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ht){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Le.offsetX+(b.width*Le.x-fe*Le.x):0,Le=ve<b.height?Le.offsetY+(b.height*Le.y-ve*Le.y):0,this.flip){case xo:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case Gr:a.translate(0,Math.min(b.height,ve)),a.scale(1,-1);break;case Qo:a.translate(Math.min(b.width,fe),Math.min(b.height,ve)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ze!==void 0&&Ce!==null&&Ce.ratio!==1){a.save(),y=Ce.ratio;try{a.drawImage(Ce.source,z/y,ee/y,Math.min(Ce.source.width,oe/y),Math.min(Ce.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,ve)),a instanceof Eu&&(this.bt=[z/y,ee/y,Math.min(Ce.source.width,oe/y),Math.min(Ce.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,ve)])}catch(ht){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,ve)),a instanceof Eu&&(this.bt=[z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,ve)])}catch(ht){this.en=!1}switch(this.flip){case xo:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case Gr:a.scale(1,-1),a.translate(0,-Math.min(b.height,ve));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(b.width,fe),-Math.min(b.height,ve))}}}}},ru.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=nu(this,!0),ee=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(E.width)||z===Wn||z===Bi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(E.height)||z===Wn||z===Ji?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),b=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),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),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),xs(this.dc,a,y),this.Ge(0,0,a,y)},ru.prototype.eh=function(a,y,x,b){Fl(this,a,y,x,b)},Qe.Object.defineProperties(ru.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||dt("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()||(Ns(this,!1),this.v())):x&&LS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ng;if(qa){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(Tg(),x=Ng),b=gi("img"),b.hn=!0,LS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new MS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),ru.prototype.redraw=ru.prototype.redraw,ru.prototype.reloadSource=ru.prototype.hA;var Wm=0,xx=4;ru.className="Picture",Ng=new Gi,ru.clearCache=Tg;function MS(){this.gi=null}function AS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new dh(null),ee=z.context,re=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),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.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 ei,this.mc=null}Dg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ei,this.mc=null};function Bg(a,y,x,b,E,z){a.mc=new Es,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Dg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new vo(ss);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new vo(na);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function yc(a,y,x,b,E,z,ee){var re;re===void 0&&(re=!1);var oe=new vo(Us);oe.point1X=y,oe.point1Y=x,oe.point2X=b,oe.point2Y=E,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Zm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new vo(Ie);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}Dg.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new vo(Ye);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,ee&&re.close(),this.mc.segments.add(re)};function Px(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new vo(nt,ee,re,y,x,b,E,z),oe&&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=Nt.Ze;b[a]=y,b[x]=a}bl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ei(ei.u),b.endX=y,b.endY=x,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("Square",function(a,y,x){a="s"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ei(ei.u),b.endX=y,b.endY=x,b.defaultStretch=Ni,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.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=Nt.Mf[b];if(E!==void 0)return E;var z=a*Nt.wg;return E=new ei().add(new Es(a,0,!0).add(new vo(na,y-a,0)).add(new vo(Us,y,a,y-z,0,y,z)).add(new vo(na,y,x-a)).add(new vo(Us,y-a,x,y,x-z,y-z,x)).add(new vo(na,a,x)).add(new vo(Us,0,x-a,z,x,0,x-z)).add(new vo(na,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)),Nt.Nf<Nt.vm&&(Nt.Mf[b]=E,Nt.Nf++),E}),bl("Border","RoundedRectangle"),bl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ei(ei.F),b.endX=y,b.endY=x,b.spot1=nh,b.spot2=$l,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("Circle",function(a,y,x){a="c"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ei(ei.F),b.endX=y,b.endY=x,b.spot1=nh,b.spot2=$l,b.defaultStretch=Ni,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("TriangleRight",function(a,y,x){return new ei().add(new Es(0,0).add(new vo(na,y,.5*x)).add(new vo(na,0,x).close())).pm(0,.25,.5,.75)}),bl("TriangleDown",function(a,y,x){return new ei().add(new Es(0,0).add(new vo(na,y,0)).add(new vo(na,.5*y,x).close())).pm(.25,0,.75,.5)}),bl("TriangleLeft",function(a,y,x){return new ei().add(new Es(y,x).add(new vo(na,0,.5*x)).add(new vo(na,y,0).close())).pm(.5,.25,1,.75)}),bl("TriangleUp",function(a,y,x){return new ei().add(new Es(y,x).add(new vo(na,0,x)).add(new vo(na,.5*y,0).close())).pm(.25,.5,.75,1)}),bl("Triangle","TriangleUp"),bl("Diamond",function(a,y,x){return new ei().add(new Es(.5*y,0).add(new vo(na,0,.5*x)).add(new vo(na,.5*y,x)).add(new vo(na,y,.5*x).close())).pm(.25,.25,.75,.75)}),bl("LineH",function(a,y,x){return a=new ei(ei.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 ei(ei.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 ei().add(new Es(0,x/2,!1).add(new vo(na,y,x/2)).add(new vo(ss,y/2,0)).add(new vo(na,y/2,x)))}),bl("XLine",function(a,y,x){return new ei().add(new Es(0,x,!1).add(new vo(na,y,0)).add(new vo(ss,0,0)).add(new vo(na,y,x)))}),bl("LineRight",function(a,y,x){return new ei().add(new Es(.25*y,0,!1).add(new vo(na,.75*y,.5*x)).add(new vo(na,.25*y,x)))}),bl("LineDown",function(a,y,x){return new ei().add(new Es(0,.25*x,!1).add(new vo(na,.5*y,.75*x)).add(new vo(na,y,.25*x)))}),bl("LineLeft",function(a,y,x){return new ei().add(new Es(.75*y,0,!1).add(new vo(na,.25*y,.5*x)).add(new vo(na,.75*y,x)))}),bl("LineUp",function(a,y,x){return new ei().add(new Es(0,.75*x,!1).add(new vo(na,.5*y,.25*x)).add(new vo(na,y,.75*x)))}),Nt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ga,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=Ls,this.Pq=_o,this.Kq=ro,this.Up=null,this.Cq=127,this.zr=Yo,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Hi(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Gn.call(this,a):(Gn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Ue(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new hn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Yt(Hi,Gn),Hi.prototype.cloneProtected=function(a){Gn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ee=Hi.prototype,Ee.Af=function(a){Gn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ee.toString=function(){var a=bn(this.constructor)+"#"+bo(this);return this.data!==null&&(a+="("+$n(this.data)+")"),a};function ou(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Ee.th=function(){Gn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ee.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===Xn&&y==="elements"?E instanceof Gn?Lf(E,function(oe){sy(re.partManager,oe),dc(re,oe)}):Sd(re,E):a===hi&&y==="elements"&&(E instanceof Gn?Lf(E,function(oe){ly(re.partManager,oe,re)}):Gf(re,E)),re.cb(a,y,x,b,E,z,ee))},Ee.La=function(a){if(Gn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Gn&&Lf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},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 ki),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},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=an();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Mn(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()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Pr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ao))break e;ch(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Gn.Link),x.adornedObject=y)}if(x!==null){x.type===Gn.Link&&x.v(),this.bh("Selection",x);break e}}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=hn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),hn.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 Mr);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=so;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ue.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,b,E,z);a.rotate(this.Kb,ee.x,ee.y),Ue.free(ee)}},Hi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Hi.prototype.moveTo=function(a,y,x){a=Ue.allocAt(a,y),this.move(a,x),Ue.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 ki),y.I(a)!==null)return y.I(a);var x=Gn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Sc(a,y,x,b){b===void 0&&(b=new Ue),x=x.Mc()?so:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Hi.prototype.mi=function(a){return a===void 0&&(a=new hn),a.assign(this.actualBounds)},Hi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function TS(a){var y=Ue.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 ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,b-=ee/2,E-=ee/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(Hl(this)===!1)NS(this);else{xd(this,!1);var a=this.Ib,y=hn.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()||Nt.B(y.width,a.width)&&Nt.B(y.height,a.height)||0<=this.vw&&this.C(16),hn.free(y),Rv(this,!1)}},Ee=Hi.prototype,Ee.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=hn.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),hn.free(E)}!(this.G&65536)&&a.D(y)||RS(this,b,x),x.N(),!a.w()&&!y.w()||$o(a,y)||(this instanceof ci&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ee.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 Ue(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Kc(this)===!1&&Hl(this)===!1&&(Km(this),NS(this)),!0};function DS(a,y,x,b,E){y===null||a instanceof Ao||(y=y.animationManager,y.zb&&ll(y,a,new Ue(b,E),x))}Ee.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Kc(this)||Hl(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Km(this)},Ee.Av=function(){this.G&=-2097153,Km(this)};function BS(a,y,x){var b=TS(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?OS(a,y,x,E,b):IS(a,y,x,E,b):z?OS(a,y,x,E,b):ee&&IS(a,y,x,E,b),a.G|=2097152,Ue.free(b),a.Uk()}function OS(a,y,x,b,E){var z=y.x,ee=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ao||ll(x,a,new Ue(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Ue(z,ee),y.copy()))}function IS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function RS(a,y,x){zv(a,!1),a instanceof ci&&zl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Vc(a)?(ma(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ee.si=function(){return!0},Ee.Zc=function(){return!0},Ee.ph=function(){return!1},Ee.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||HS||(HS=!0,ji('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),ji(" Old class: "+bn(a.constructor)+", new class: "+bn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof ci&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=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=ee?a.G|524288:a.G&-524289,a instanceof ci&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?a.U|2:a.U&-3),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}Ee=Hi.prototype,Ee.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}Ee.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ee.N=function(){var a=this.diagram;a!==null&&!Hl(this)&&!Kc(this)&&this.isVisible()&&this.Ib.w()&&a.N(kf(this,this.Ib))},Ee.v=function(){Gn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ci&&this.labeledLink!==null&&jl(this.labeledLink),a.$b(!0))},Ee.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Ee.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Ee.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ee.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof ci&&(y=y.labeledLink,y!==null)?jv(a,y):0}Ee.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof ci&&(x=y.labeledLink,x!==null)?zS(a,x):y}Ee.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 ci&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Ee.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 ci){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof ci&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Pr&&Vm(y,!1),y instanceof ci&&(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 ci&&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 ci&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Yc(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ao)){if(a.add(y),y instanceof ci){if(x&&y instanceof Pr)for(var ee=y.memberParts;ee.next();)Yc(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(E?oe&&le:oe||le)&&Yc(a,re,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 Qn)for(y=y.labelNodes;y.next();)Yc(a,y.value,x,b,E,z)}}Qe.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?wr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(hi,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Xn,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(ou(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&bu(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ao?this.type!==Gn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:_o},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ou(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ro},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ou(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(ou(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Ls},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ou(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Hl(this)===!1&&(Km(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),DS(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Ao)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ao?this instanceof Ao&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(ch(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=d1(x.partManager,b,a),x!==null&&(ch(x),x=x.copy(),x===null||x instanceof Qn||(b=this.location.copy(),Iv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Iv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ou(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ou(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ou(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Qn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ou(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ou(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ou(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Ga},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ou(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ou(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ou(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Bo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ou(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&dt("Cannot make a Group a member of itself: "+this.toString()),dt("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 ci)for(b=b.linksConnected;b.next();)Og(b.value)}if(this instanceof ci){for(x=this.linksConnected;x.next();)Og(x.value);x=this.labeledLink,x!==null&&Og(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&bu(y,-1,a))}}else dt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ou(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ci&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ou(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ou(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Yo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ou(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ou(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ou(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),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 Ao(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)}Yt(Ao,Hi),Ao.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ao.prototype.updateRelationshipsFromData=function(){},Ao.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Qn&&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)}}},Ao.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hl(a))},Ao.prototype.Zc=function(){return!1},Ao.prototype.gk=function(a,y,x,b,E,z,ee){if(a===Xn&&y==="elements"){if(E instanceof Zl)this.$a===null&&(this.$a=E);else if(E instanceof Gn){var re=E.Nl(function(oe){return oe instanceof Zl});re instanceof Zl&&this.$a===null&&(this.$a=re)}}else a===hi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));Hi.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ao.prototype.updateAdornments=function(){},Ao.prototype.Lj=function(){},Qe.Object.defineProperties(Ao.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ao.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=su,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function ci(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Hi.call(this,a):(Hi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new En,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Yt(ci,Hi),ci.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())},Ee=ci.prototype,Ee.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())}Ee.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}Ee.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},Ee.gk=function(a,y,x,b,E,z,ee){a===Xn&&y==="elements"?this.wc=null:a===hi&&y==="elements"&&(this.wc=null),Hi.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ee.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Lu(x.fromPort),Lu(x.toPort),x.bb())}};function GS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Lu(x.fromPort),Lu(x.toPort),x.bb())}}function Lu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Lu(y.port)}}Ee.si=function(){return!0},ci.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ci.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ci.prototype.isVisible=function(){if(!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===Fs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===xg&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},ci.prototype.Zb=function(a){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)}},ci.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(ee){ee.isTreeLink?(E?ee.fromNode===y:ee.toNode===y)&&KS(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}ci.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Oi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ee=ci.prototype,Ee.Mo=function(a){a===void 0&&(a=null);var y=new Oi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ee.Sd=function(a){a===void 0&&(a=null);var y=new Oi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ee.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 er(x):wr},Ee.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 er(x):wr},Ee.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 er(x):wr},Ee.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Oi(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Ee.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Oi(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Ym(a,y,x){Lu(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,y,x),ee!==null&&(ee.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Um(a,y,x){Lu(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=ee)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Ep(y)))}function Ep(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}ci.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ee=ci.prototype,Ee.Vo=function(a){Hi.prototype.Vo.call(this,a),a||(Ep(this),a=this.Yk,a!==null&&_S(a,this))},Ee.Wo=function(a){Hi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ee.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)},Ee.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;VS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function VS(a){a.wc===null?a.wc=new ki:a.wc.clear(),a.qm(a,function(y,x){YS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function YS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Zv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=an()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Mn(x)}}}Ee.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},Ee.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}},Ee.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},Ee.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},Ee.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ci)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ee.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},Ee.uz=function(){return US(this,this)};function US(a,y){return y=y.pg(),y===null?0:1+US(a,y)}Ee.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Oi(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Ee.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 En,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 En,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new er(x):wr},Ee.wz=function(a){a===void 0&&(a=1/0);var y=new An;return Yc(y,this,!1,a,!0),y},ci.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new 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,ee){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),XS(oe,y,x,b-1,E,z,ee)))}else JS(a,y,x,E,z,ee)}function JS(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ue=y.contains(le);if(ue||y.add(le),ee){var fe=x?le.Oo():le.Po();oe.uv=a,fe.all(function(ve){return function(Ce){return Ce===ve.uv||!Ce.isTreeExpanded}}(oe))&&b.Aj(le,E),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ue||JS(le,y,x,b,E,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}ci.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new 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,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();le.vv=a,fe.all(function(ve){return function(Ce){return Ce===ve.vv||!Ce.isTreeExpanded}}(le))&&E.Cj(ue,z)}(2<b||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,QS(ue,y,x,b-1,E,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}Qe.Object.defineProperties(ci.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(xc(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&zl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:su},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&zl(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(xc(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(xc(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(xc(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var ee=z.wa(b);ee!==void 0&&z.Qx(E,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(_S(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),jl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&VS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(xc(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),ci.prototype.expandTree=ci.prototype.expandTree,ci.prototype.collapseTree=ci.prototype.collapseTree,ci.prototype.findTreeParts=ci.prototype.wz,ci.prototype.findTreeChildrenNodes=ci.prototype.Ou,ci.prototype.findTreeChildrenLinks=ci.prototype.Qo,ci.prototype.findTreeLevel=ci.prototype.uz,ci.prototype.findTreeParentChain=ci.prototype.vz,ci.prototype.findTreeParentNode=ci.prototype.pg,ci.prototype.findTreeParentLink=ci.prototype.kh,ci.prototype.findCommonTreeParent=ci.prototype.gz,ci.prototype.findTreeRoot=ci.prototype.xz,ci.prototype.isInTreeOf=ci.prototype.Nz,ci.prototype.findPort=ci.prototype.ns,ci.prototype.findLinksTo=ci.prototype.kz,ci.prototype.findLinksBetween=ci.prototype.jz,ci.prototype.findNodesInto=ci.prototype.Oo,ci.prototype.findNodesOutOf=ci.prototype.Po,ci.prototype.findNodesConnected=ci.prototype.Mu,ci.prototype.findLinksInto=ci.prototype.Sd,ci.prototype.findLinksOutOf=ci.prototype.Mo,ci.prototype.findExternalTreeLinksConnected=ci.prototype.qx,ci.prototype.invalidateConnectedLinks=ci.prototype.Bd,ci.prototype.invalidateLinkBundle=ci.prototype.Lz;var bx=new sn(ci,"SpreadingNone",10),Xm=new sn(ci,"SpreadingEvenly",11),Gv=new sn(ci,"SpreadingPacked",12);ci.className="Node",ci.SpreadingNone=bx,ci.SpreadingEvenly=Xm,ci.SpreadingPacked=Gv;function Pr(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ci.call(this,a):(ci.call(this),a&&(y=a)),this.U|=4608,this.Gn=new An,this.$a=null,this.Sc=new Fa,this.Sc.group=this,this.gl=new An,this.tb=this.$p=null,y&&Object.assign(this,y)}Yt(Pr,ci),Pr.prototype.cloneProtected=function(a){ci.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Zl});y instanceof Zl?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ee=Pr.prototype,Ee.Af=function(a){ci.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof ci)x.Bd(y);else if(x instanceof Qn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ee.gk=function(a,y,x,b,E,z,ee){if(a===Xn&&y==="elements"){if(E instanceof Zl)this.$a===null?this.$a=E:this.$a!==E&&dt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Gn){var re=E.Nl(function(oe){return oe instanceof Zl});re instanceof Zl&&(this.$a===null?this.$a=re:this.$a!==re&&dt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===hi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));ci.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ee.Xl=function(a,y){ci.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Gn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Gn&&(a=a.Pb()),this.tb===null&&(this.tb=new hn),a.mi(this.tb),a instanceof Tr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ee.eh=function(a,y,x,b){this.nf=this.$a,ci.prototype.eh.call(this,a,y,x,b)},Ee.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Qn||y.Va()}),ci.prototype.Va.call(this)},Ee.si=function(){if(!ci.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ci){if(y.isVisible()&&Hl(y))return!1}else if(y instanceof Qn&&y.isVisible()&&Hl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof 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 Qn&&!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 Qn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ee.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}ci.prototype.Lj.call(this)},Pr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=ln(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Pr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=ln(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},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))},Ee=Pr.prototype,Ee.Bd=function(a){var y=(this.U&65536)!==0;if(ci.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Lu(x.fromPort),Lu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Lu(x.fromPort),Lu(x.toPort),x.bb()))}}},Ee.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 ci)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ee.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 ci)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Ee.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new An;return a(this,y),y},Ee.Rj=function(){var a=new An;return Yc(a,this,!0,0,!0),a.remove(this),a},Ee.Zb=function(a){ci.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 ci)z.Bd(y),x.Aj(z,b);else if(z instanceof Qn)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 ci)z.Bd(y),x.Cj(z,b);else if(z instanceof Qn)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=Ue.alloc(),ci.prototype.move.call(this,a,y),a=new An,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Qn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof ci&&E.isLinkLabel)){var ee=E.position,re=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Qn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ee=E.position,z.x=ee.x+b,z.y=ee.y+x,z.w()?E.move(z):E.bb(),Uv(E)&&E.bb());Ue.free(z)}},Qe.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&&dt("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 Zl(a){At.call(this),this.yb=dl,this.ko=new hn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Yt(Zl,At),Zl.prototype.cloneProtected=function(a){At.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Zl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return fa(0,0,y.width,y.height,a.x,a.y)},Zl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Pr||a instanceof Ao)||dt("Placeholder is not inside a Group or Adornment."),a instanceof Pr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(xs(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Ue.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ue.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 ee=0;z instanceof Tr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Gn.Link&&(re=z.ga(a.category==="Selection"?Ls:a.locationSpot,Ue.alloc()),a.location=re,Ue.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(Ls,Ue.alloc()),le=hn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(ml,a)),le.Ye(z.ga(lu,a)),le.Ye(z.ga(Ll,a)),xs(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ue.free(a),hn.free(le)):(xs(y,le+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Zl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Zl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof 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=hn.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)),hn.free(x),b&&y instanceof Pr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Zl.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,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof Qn&&(!y.computesBoundsIncludingLinks||Iu(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.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},Qe.Object.defineProperties(Zl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Zl.className="Placeholder";function Qn(a){Hi.call(this,Gn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Gl,this.Om=0,this.Qm=Gl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new En().freeze(),this.Tg=this.Mg=null,this.ml=new hn,this.ua=new ei,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ue,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Yt(Qn,Hi),Qn.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())},Ee=Qn.prototype,Ee.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&&Lu(y),a=a.toPort,a!==null&&Lu(a)},Ee.qb=function(a){a.classType===Qn?(a.value&2)===2?this.routing=a:a===zu||a===Pc||a===Rg?this.curve=a:a===Ap||a===e0||a===t0?this.adjusting=a:a!==Qv&&a!==Gl&&dt("Unknown Link enum value for a Link property: "+a):Hi.prototype.qb.call(this,a)},Ee.Xc=function(){this.ba===null&&(this.ba=new gp)},Ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hl(a)||Kc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hl(a)||Kc(a)))},Ee.zv=function(){return!1},Ee.Av=function(){},Ee.Zc=function(){return!1},Qn.prototype.computeAngle=function(a,y,x){return Qn.computeAngle(y,x)},Qn.computeAngle=function(a,y){switch(a){default:case Gl:a=0;break;case kp:a=y;break;case Fp:a=y+90;break;case Np:a=y-90;break;case $v:a=y+180;break;case n0:a=Nt.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Nt.bp(y+90),90<a&&270>a&&(a-=180);break;case Dp:a=Nt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Nt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Nt.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,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,x,y),ee!==null&&(ee.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}Ee=Qn.prototype,Ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Hi.prototype.oh.call(this)},Ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ee.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()}Ee.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)}},Ee.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)}},Ee.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))},Qn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Qn.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=Ue.allocAt(x.x+b,x.y+E),Hi.prototype.move.call(this,a,!1),Ue.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)},Qn.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},Qn.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},Qn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ya),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===zu))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===zu){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Nt.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),Nt.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 ee=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=ee[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},Qn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===zu))return this.ua.wx(.5);if(this.computeCurve()===zu&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Nt.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)},Ee=Qn.prototype,Ee.i=function(a){return this.Nb.s[a]},Ee.dd=function(a,y){this.Nb.cd(a,y)},Ee.L=function(a,y,x){this.Nb.cd(a,new Ue(y,x))},Ee.Kz=function(a,y){this.Nb.Gb(a,y)},Ee.m=function(a,y,x){this.Nb.Gb(a,new Ue(y,x))},Ee.ne=function(a){this.Nb.add(a)},Ee.yf=function(a,y){this.Nb.add(new Ue(a,y))},Ee.pv=function(a){this.Nb.mb(a)},Ee.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 En,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Ue(ee.x+y,ee.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),jl(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&ra(ee.animationManager,a,E),a.g("points",z,E)}}Ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ee.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,ee=0;ee<z;ee++){var re=E[ee];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=ee=1/0;for(var oe=y.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ue=E[z],fe=oe[z],ue.x-x!==fe.x-ee||ue.y-b!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ra(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},Ee.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))}Ee.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())}},Ee.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()}}},Qn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ng||(ng=new ci,ng.desiredSize=Er,ng.Va()),this.defaultFromPoint&&(ng.location=this.defaultFromPoint,ng.Va(),y=a=ng)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(ig||(ig=new ci,ig.desiredSize=Er,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,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=Ig(ee),oe=Ig(x),le=y===E&&y!==null,ue=this.isOrthogonal,fe=this.curve===zu;this.Wf=le&&!ue?fe=!0:!1;var ve=this.computeAdjusting()===Gl||le;if(!ue&&!le&&re&&oe){if(re=!1,!ve&&3<=z&&(ve=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,ve,z-1,oe))&&(ve=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,ve,z-1,oe)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),ve=this.getLinkPoint(b,E,x,!1,!1,a,y),re=ve.x-z.x,oe=ve.y-z.y,le=this.computeCurviness(),fe=ue=0;var Ce=z.x+re/3,Le=z.y+oe/3,De=Ce,_e=Le;Nt.B(oe,0)?_e=0<re?_e-le:_e+le:(ue=-re/oe,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),De=(0>oe?-1:1)*fe+Ce,_e=ue*(De-Ce)+Le),Ce=z.x+2*re/3,Le=z.y+2*oe/3;var Ze=Ce,st=Le;Nt.B(oe,0)?st=0<re?st-le:st+le:(Ze=(0>oe?-1:1)*fe+Ce,st=ue*(Ze-Ce)+Le),this.Fj(),this.ne(z),this.yf(De,_e),this.yf(Ze,st),this.ne(ve),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,ve=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,ve),E=this.getLinkPoint(z,ve,x,!1,!1,a,y),this.hasCurviness()?(ve=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+ve/2,y=b.y+x/2,z=a,re=y,Nt.B(x,0)?re=0<ve?re-ee:re+ee:(ve=-ve/x,z=Math.sqrt(ee*ee/(ve*ve+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=ve*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=hn.alloc(),y.mi(re),oe=re.ca(E),ve.mi(re),le=re.ca(b),(oe||le)&&(ee=y.ga($m(ee),new Ue),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=ve.ga($m(x),new Ue),this.dd(1,this.getLinkPointFromPoint(z,ve,x,b,!1,x))),hn.free(re))}else{fe=this.isAvoiding,ve&&(ue&&fe||le)&&this.Fj();var ht=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),Ce=De=Le=0,(ue||!re||le)&&(_e=this.computeEndSegmentLength(a,y,ee,!0),Ce=this.getLinkDirection(a,y,fe,ee,!0,ue,b,E),le&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ce-=ue?90:30,0>ht&&(Ce-=180)),0>Ce?Ce+=360:360<=Ce&&(Ce-=360),le&&(_e+=Math.abs(ht)*(ue?1:2)),Ce===0?Le=_e:Ce===90?De=_e:Ce===180?Le=-_e:Ce===270?De=-_e:(Le=_e*Math.cos(Ce*Math.PI/180),De=_e*Math.sin(Ce*Math.PI/180)),ee.Mc()&&le&&(_e=y.ga(so,Ue.alloc()),Ze=Ue.allocAt(_e.x+1e3*Le,_e.y+1e3*De),this.getLinkPointFromPoint(a,y,_e,Ze,!0,fe),Ue.free(_e),Ue.free(Ze))),_e=this.getLinkPoint(b,E,x,!1,ue,a,y);var mt=st=Ze=0;if(ue||!oe||le){var Lt=this.computeEndSegmentLength(b,E,x,!1);mt=this.getLinkDirection(b,E,_e,x,!1,ue,a,y),le&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(mt+=ue?0:30,0>ht&&(mt+=180)),0>mt?mt+=360:360<=mt&&(mt-=360),le&&(Lt+=Math.abs(ht)*(ue?1:2)),mt===0?Ze=Lt:mt===90?st=Lt:mt===180?Ze=-Lt:mt===270?st=-Lt:(Ze=Lt*Math.cos(mt*Math.PI/180),st=Lt*Math.sin(mt*Math.PI/180)),x.Mc()&&le&&(x=E.ga(so,Ue.alloc()),ee=Ue.allocAt(x.x+1e3*Ze,x.y+1e3*st),this.getLinkPointFromPoint(b,E,x,ee,!1,_e),Ue.free(x),Ue.free(ee))}x=fe,(ue||!re||le)&&(x=new Ue(fe.x+Le,fe.y+De)),ee=_e,(ue||!oe||le)&&(ee=new Ue(_e.x+Ze,_e.y+st)),!ve&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,_e):!ve&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,_e)?this.dd(0,fe):!ve&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,_e)):(this.Fj(),this.ne(fe),(ue||!re||le)&&this.ne(x),ue&&this.addOrthoPoints(x,Ce,ee,mt,a,b),(ue||!oe||le)&&this.ne(ee),this.ne(_e))}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}Qn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ue),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 ee=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*E;var re=-a.m12*E,oe=-a.m21*E,le=a.m11*E,ue=E*(a.m21*a.dy-a.m22*a.dx),fe=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ee+b.y*oe+ue,b=b.x*re+b.y*le+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*le+fe}return y.Sj(E,b,ee,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)}Qn.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new Ue),x.sb()&&!Ig(x))return y.ga(x,re),re;if(x.$c()){var oe=Qm(this,y);if(oe!==null){if(re.assign(oe.Zo),E&&this.routing===t1){var le=Qm(this,ee);if(le!==null&&oe.Gl<le.Gl){oe=Ue.alloc(),le=Ue.alloc();var ue=new hn(y.ga(Ls,oe),y.ga(ml,le)),fe=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,fe,!b,E,a,y,le),(x.Hf(wu)||x.Hf(vl))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(Wu)||x.Hf(Al))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Ue.free(oe),Ue.free(le)}}return re}}return x=y.ga($m(x),Ue.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Yv(x,ee.copy()))):(oe=this.computeSpot(!b,ee),z=Ue.alloc(),ee=ee.ga($m(oe),z),E&&(ee=Yv(x,ee)),Ue.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),Ue.free(x),re},Qn.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,re){e:if(b.sb())var oe=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()&&(oe=Qm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(so,Ue.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Yv(oe,re.copy()):x):(x=Ue.alloc(),re=re.ga(so,x),Ue.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Ue.free(oe),oe=x}return b.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Ig(b)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},Qn.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)},Qn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=so:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bo?Ua:y)):(a=y||this.toPort,a===null?a=so:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bo?Ua:y)),a};function Ig(a){return a===Ua||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:so}Qn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Gl&&4<this.pointsCount?this.computeMidPoint(new Ue):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(so))},Qn.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},Qn.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 ee=z;if(z===void 0&&(ee=Mr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,ve=this.naturalBounds;if(!(fe.x>ve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Mr.alloc(),fe.set(ee),ue instanceof Gn)re=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof Tr)if(re=a,ve=b,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),ve)e:{var Ce=re,Le=fe;if(ue.fh(Ce,Le))re=!0;else{if(Le===void 0&&(Le=ue.transform,Ce.Re(ue.actualBounds))){re=!0;break e}re=Ce.left,ve=Ce.right;var De=Ce.top;Ce=Ce.bottom;var _e=Ue.alloc(),Ze=Ue.alloc(),st=Ue.alloc(),ht=Mr.alloc();ht.set(Le),ht.bv(ue.transform),ht.Vj(),Ze.x=ve,Ze.y=De,Ze.transform(ht),_e.x=re,_e.y=De,_e.transform(ht),Le=!1,Af(ue,_e,Ze,st)?Le=!0:(_e.x=ve,_e.y=Ce,_e.transform(ht),Af(ue,_e,Ze,st)?Le=!0:(Ze.x=re,Ze.y=Ce,Ze.transform(ht),Af(ue,_e,Ze,st)?Le=!0:(_e.x=re,_e.y=De,_e.transform(ht),Af(ue,_e,Ze,st)&&(Le=!0)))),Mr.free(ht),Ue.free(_e),Ue.free(Ze),Ue.free(st),re=Le}}else re=ue.fh(re,fe)}else re=Zs(ue,a,b,fe);re&&(ve=ue,y!==null&&(ve=y(ue)),ve&&(x===null||x(ve))&&E.add(ve)),Mr.free(fe)}}}return z===void 0&&Mr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Mr.free(ee),!1},Qn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?zu:this.curve},Qn.prototype.computeCorner=function(){if(this.curve===zu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Qn.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},Qn.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,ee=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,ee):(y=y.ga(so).ab(x.ga(so))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===zu&&(a*=1.333)}}return a},Qn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Gl&&x.bb()}},Qn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=an(),b=0,E=y.links,z=0;z<E.length;z++){var ee=E[z].computeSpacing();x.push(ee),b+=ee}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),Mn(x)}}return a},Qn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Qn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Qn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=Ap)}switch(E){case e0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var re=ee.x-E,oe=ee.y-z,le=Math.sqrt(re*re+oe*oe);if(!Nt.$(le,0)){if(Nt.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=b.x-ee;var ve=b.y-fe;for(oe=Math.sqrt(re*re+ve*ve),Nt.$(re,0)?ve=0>ve?-Math.PI/2:Math.PI/2:(ve=Math.atan(ve/Math.abs(re)),0>re&&(ve=Math.PI-ve)),le=oe/le,ue=ve-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Nt.$(y,0)||(Nt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=le,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,b)}}return!0;case t0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(b)){E=z.x,z=z.y,ee=fe.x,fe=fe.y,le=(ee-E)*(ee-E)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=b.x,ve=b.y;var Ce=1;if(oe-re!==0){var Le=(ve-ue)/(oe-re);Ce=Math.sqrt(1+1/(Le*Le))}else Le=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var De=y.x,_e=y.y,Ze=.5;le!==0&&(Ze=((E-De)*(E-ee)+(z-_e)*(z-fe))/le);var st=E+Ze*(ee-E),ht=z+Ze*(fe-z);y=Math.sqrt((De-st)*(De-st)+(_e-ht)*(_e-ht)),_e<Le*(De-st)+ht&&(y=-y),0<Le&&(y=-y),De=re+Ze*(oe-re),Ze=ue+Ze*(ve-ue),Le!==0?(y=De+y/Ce,this.L(a,y,Ze-(y-De)/Le)):this.L(a,De,Ze+y)}this.dd(x,b)}return!0;case Ap:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,fe=re,le=ue,Nt.B(E.y,z.y)?Nt.B(z.x,ee.x)?ue=y.y:Nt.B(z.y,ee.y)&&(re=y.x):Nt.B(E.x,z.x)&&(Nt.B(z.y,ee.y)?re=y.x:Nt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,ve=ue,Nt.B(E.y,z.y)?Nt.B(z.x,ee.x)?ue=b.y:Nt.B(z.y,ee.y)&&(re=b.x):Nt.B(E.x,z.x)&&(Nt.B(z.y,ee.y)?re=b.x:Nt.B(z.x,ee.x)&&(ue=b.y)),this.L(x-1,re,ue),Uv(this))){this.L(a+1,fe,le),this.L(x-1,oe,ve),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Qn.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 ee=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 re=E.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Bp,Bp),oe.Bc(Bp,Bp),re.Ye(a),oe.Ye(x);var le=Ue.alloc(),ue=Ue.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&oe.right>a.x||b===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=le.x,ue.y=x.y):b===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===180||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(b===90||b===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&oe.left<a.x||b===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=le.x,ue.y=x.y):b===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===0||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(b===90||b===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&oe.bottom>a.y||b===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=le.y):b===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(b===0||b===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&oe.top<a.y||b===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=le.y):b===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(b===0||b===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var ve=this.diagram;if(ve===null||E===z||this.layer.isTemporary||!Jo(ve)||re.ca(fe)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var Ce=Ya(ve,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ce.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&Ce.Yj(Math.min(le.x,ue.x),Math.min(le.y,ue.y),Math.abs(le.x-ue.x),Math.abs(le.y-ue.y))&&Ce.Yj(Math.min(ue.x,fe.x),Math.min(ue.y,fe.y),Math.abs(ue.x-fe.x),Math.abs(ue.y-fe.y)))y=!1;else{E=a,z=fe;var Le=x=null;if(ve.isVirtualized){ve=Ce.bounds.copy(),ve.Bc(-Ce.Ho,-Ce.Go);var De=Ue.alloc();zg(Ce,a.x,a.y)||(Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,a.x,a.y,le.x,le.y,De)?(x=a=De.copy(),y=De.ab(le)):Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,le.x,le.y,ue.x,ue.y,De)?(x=a=De.copy(),y=De.ab(ue)):Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,ue.x,ue.y,fe.x,fe.y,De)&&(x=a=De.copy(),y=De.ab(fe))),zg(Ce,fe.x,fe.y)||(Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,fe.x,fe.y,ue.x,ue.y,De)?(Le=fe=De.copy(),b=ue.ab(De)):Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,ue.x,ue.y,le.x,le.y,De)?(Le=fe=De.copy(),b=le.ab(De)):Nt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,le.x,le.y,a.x,a.y,De)&&(Le=fe=De.copy(),b=a.ab(De))),Ue.free(De)}re=re.copy().ed(oe),re.Bc(Ce.Ho*Ce.Os,Ce.Go*Ce.Os),o1(Ce,a,y,fe,b,re,!0),oe=Ed(Ce,fe.x,fe.y),!Ce.abort&&oe>=jg&&(r1(Ce),re.Bc(Ce.Ho*Ce.Hx,Ce.Go*Ce.Ix),o1(Ce,a,y,fe,b,re,!1),oe=Ed(Ce,fe.x,fe.y)),!Ce.abort&&oe<jg&&Ed(Ce,fe.x,fe.y)!==Cc?(Xv(this,Ce,fe.x,fe.y,b,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Nt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Nt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ce.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Nt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Nt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ce.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Le!==null&&(b===0||b===180?this.yf(z.x,Le.y):this.yf(Le.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),Ue.free(le),Ue.free(ue)}},Qn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Uv(a){if(a.diagram===null||!a.isAvoiding||!Jo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ya(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Xv(a,y,x,b,E,z,ee){var re=y.Ho,oe=y.Go,le=Ed(y,x,b),ue=x,fe=b;for(E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,E!==ee&&le>Nf&&Ed(y,ue,fe)!==le-1&&(Ed(y,x-re,b)===le-1?(E=180,ue=x-re,fe=b):Ed(y,x+re,b)===le-1?(E=0,ue=x+re,fe=b):Ed(y,x,b-oe)===le-1?(E=270,ue=x,fe=b-oe):Ed(y,x,b+oe)===le-1&&(E=90,ue=x,fe=b+oe));le>Nf&&Ed(y,ue,fe)===le-1;)x=ue,b=fe,E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,--le;z?le>Nf&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/oe)*oe+oe/2),le>Nf&&(z=E,ee=x,ue=b,E===0?(z=90,ue+=oe):E===90?(z=180,ee-=re):E===180?(z=270,ue-=oe):E===270&&(z=0,ee+=re),Ed(y,ee,ue)===le-1?Xv(a,y,ee,ue,z,!1,z):(ee=x,ue=b,E===0?(z=270,ue-=oe):E===90?(z=0,ee+=re):E===180?(z=90,ue+=oe):E===270&&(z=180,ee-=re),Ed(y,ee,ue)===le-1&&Xv(a,y,ee,ue,z,!1,z))),a.yf(x,b)}Qn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Zo(y,a,x.x,x.y,b.x,b.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=Zo(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},Qn.prototype.qc=function(){this.lk=!1,this.v()},Qn.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)}}},Qn.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 ee=this.computeCurve();if(ee===zu&&3<=y&&!Nt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var oe=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),oe=this.i(b),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,oe=z.y}if(b-=this.su.x,oe-=this.su.y,E.x-=b,E.y-=oe,y!==2||Ff(this)){if(a.type=ei.o,re=FS(a),this.computeShortLength(!0)!==0&&(E=eg(this,E,!0,z)),Bg(re,E.x,E.y,!1),ee===zu&&3<=y&&!Nt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-oe,E=this.i(2).copy(),E.x-=b,E.y-=oe,this.computeShortLength(!1)!==0&&(E=eg(this,E,!1,z)),yc(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Ue.allocAt(b,oe),x=Ue.alloc(),x.assign(this.i(1)),z=Ue.allocAt(b,oe),E=Ue.allocAt(b,oe),ee=this.i(0);for(var le,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var ve=ee,Ce=le,Le=this.i(Jv(this,le,fe,!1));if((!Nt.$(ve.x,Ce.x)||!Nt.$(Ce.x,Le.x))&&(!Nt.$(ve.y,Ce.y)||!Nt.$(Ce.y,Le.y))){var De=ue;isNaN(De)&&(De=this.smoothness/3);var _e=ve.x;ve=ve.y;var Ze=Ce.x;Ce=Ce.y;var st=Le.x;Le=Le.y;var ht=De*qm(_e,ve,Ze,Ce);De*=qm(Ze,Ce,st,Le),Nt.$(ve,Ce)&&Nt.$(Ze,st)&&(Ze>_e?Le>Ce?(z.x=Ze-ht,z.y=Ce-ht,E.x=Ze+De,E.y=Ce+De):(z.x=Ze-ht,z.y=Ce+ht,E.x=Ze+De,E.y=Ce-De):Le>Ce?(z.x=Ze+ht,z.y=Ce-ht,E.x=Ze-De,E.y=Ce+De):(z.x=Ze+ht,z.y=Ce+ht,E.x=Ze-De,E.y=Ce-De)),Nt.$(_e,Ze)&&Nt.$(Ce,Le)&&(Ce>ve?(st>Ze?(z.x=Ze-ht,z.y=Ce-ht,E.x=Ze+De):(z.x=Ze+ht,z.y=Ce-ht,E.x=Ze-De),E.y=Ce+De):(st>Ze?(z.x=Ze-ht,z.y=Ce+ht,E.x=Ze+De):(z.x=Ze+ht,z.y=Ce+ht,E.x=Ze-De),E.y=Ce-De)),(Nt.$(_e,Ze)&&Nt.$(Ze,st)||Nt.$(ve,Ce)&&Nt.$(Ce,Le))&&(_e=.5*(_e+st),ve=.5*(ve+Le),z.x=_e,z.y=ve,E.x=_e,E.y=ve),(fe===1||fe===2&&Nt.$(ee.x,this.i(0).x)&&Nt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),yc(re,x.x-b,x.y-oe,z.x-b,z.y-oe,le.x-b,le.y-oe),y.set(z),x.set(E),ee=le}}le=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=eg(this,ue.copy(),!1,fo)),le=.5*(le+ue.x),ee=.5*(ee+ue.y),yc(re,E.x-b,E.y-oe,le-b,ee-oe,ue.x-b,ue.y-oe),Ue.free(y),Ue.free(x),Ue.free(z),Ue.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),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=eg(this,ee.copy(),!1,fo)),yc(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=Ue.alloc(),z.assign(this.i(0)),E=Ue.alloc(),E.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=Jv(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=eg(this,ue.copy(),!1,fo)),tg(this,re,-b,-oe,z,ue,x);else if(le===0)for(fe=1;fe<y;)E.assign(z),ue=this.i(fe++),tg(this,re,-b,-oe,z,ue,x),z.assign(ue);break}if(le=Jv(this,ue,fe+1,fe<y-3),fe=-b,_e=-oe,ve=ue,Ze=this.i(le),De=x,Nt.B(z.y,ve.y)&&Nt.B(ve.x,Ze.x))if(Le=Math.min(ee,Math.abs(ve.x-E.x)/2),Le=ht=Math.min(Le,Math.abs(Ze.y-ve.y)/2),Nt.B(Le,0))tg(this,re,fe,_e,z,ve,De),z.assign(ve);else{var mt=ve.x,Lt=ve.y;Ce=mt,st=Lt,ve.x>z.x?mt=ve.x-Le:mt=ve.x+Le,Ze.y>ve.y?st=ve.y+ht:st=ve.y-ht,Ze=Ue.allocAt(mt,Lt),tg(this,re,fe,_e,z,Ze,De),Ue.free(Ze),Zm(re,ve.x+fe,ve.y+_e,Ce+fe,st+_e),z.h(Ce,st)}else Nt.B(z.x,ve.x)&&Nt.B(ve.y,Ze.y)?(Le=Math.min(ee,Math.abs(ve.y-E.y)/2),Le=ht=Math.min(Le,Math.abs(Ze.x-ve.x)/2),Nt.B(ht,0)?(tg(this,re,fe,_e,z,ve,De),z.assign(ve)):(mt=ve.x,Lt=ve.y,Ce=mt,st=Lt,ve.y>z.y?Lt=ve.y-Le:Lt=ve.y+Le,Ze.x>ve.x?Ce=ve.x+ht:Ce=ve.x-ht,Ze=Ue.allocAt(mt,Lt),tg(this,re,fe,_e,z,Ze,De),Ue.free(Ze),Zm(re,ve.x+fe,ve.y+_e,Ce+fe,st+_e),z.h(Ce,st))):(tg(this,re,fe,_e,z,ve,De),z.assign(ve));E.assign(ue),fe=le}Ue.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=oe,this.computeShortLength(!0)!==0&&(E=eg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=eg(this,re,!1,z)),a.type=ei.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.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),Nt.$(a,0)?y:Nt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function eg(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;Nt.$(y.x,z.x)&&Nt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Nt.$(y.x,z.x)&&!Nt.$(y.y,z.y))return x-1;for(var ee=z;Nt.$(y.x,z.x)&&Nt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Nt.$(y.y,z.y)&&Nt.$(z.y,ee.y)&&(!b||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=E)return E-1;ee=a.i(x++)}return x-2}Qn.prototype.computeJumpLength=function(){return 10};function tg(a,y,x,b,E,z,ee){if(!ee&&Ff(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],le=0;if(a.isVisible()&&(le=Ex(a,E,z,oe)),0<le){if(Nt.B(E.y,z.y))if(E.x<z.x)for(var ue=0;ue<le;){var fe=Math.max(E.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(fe+x,z.y+b);for(var ve=fe+x,Ce=Math.min(fe+ee,z.x);ue<le&&(fe=oe[ue],fe<Ce+ee);)ue++,Ce=Math.min(fe+re,z.x);fe=z.y-ee+b,Ce+=x;var Le=z.y+b;a.curve===Pc?Bg(y,Ce,Le,!1):yc(y,ve,fe,Ce,fe,Ce,Le)}else for(--le;0<=le;){for(ue=Math.min(E.x,Math.max(oe[le--]+re,z.x+ee)),y.lineTo(ue+x,z.y+b),ve=ue+x,fe=Math.max(ue-ee,z.x);0<=le&&(ue=oe[le],ue>fe-ee);)le--,fe=Math.max(ue-re,z.x);ue=z.y-ee+b,fe+=x,Ce=z.y+b,a.curve===Pc?Bg(y,fe,Ce,!1):yc(y,ve,ue,fe,ue,fe,Ce)}else if(Nt.B(E.x,z.x))if(E.y<z.y)for(ue=0;ue<le;){for(fe=Math.max(E.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,fe+b),ve=fe+b,fe=Math.min(fe+ee,z.y);ue<le&&(Ce=oe[ue],Ce<fe+ee);)ue++,fe=Math.min(Ce+re,z.y);Ce=z.x-ee+x,Le=z.x+x,fe+=b,a.curve===Pc?Bg(y,Le,fe,!1):yc(y,Ce,ve,Ce,fe,Le,fe)}else for(--le;0<=le;){for(ue=Math.min(E.y,Math.max(oe[le--]+re,z.y+ee)),y.lineTo(z.x+x,ue+b),ve=ue+b,ue=Math.max(ue-ee,z.y);0<=le&&(fe=oe[le],fe>ue-ee);)le--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,Ce=z.x+x,ue+=b,a.curve===Pc?Bg(y,Ce,ue,!1):yc(y,fe,ve,fe,ue,Ce,ue)}}}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 ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof Qn){if(oe===a)return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length;if(oe.isVisible()&&Ff(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&Lx(y,x,b,oe))}}}}}return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length}function Lx(a,y,x,b){for(var E=Nt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=Ue.alloc(),oe=1;oe<z;oe++){var le=b.i(oe);if(oe<z-1){var ue=b.i(oe+1);if(ee.y===le.y&&le.y===ue.y){if(le.x>ee.x&&ue.x>=le.x||le.x<ee.x&&ue.x<=le.x)continue}else if(ee.x===le.x&&le.x===ue.x&&(le.y>ee.y&&ue.y>=le.y||le.y<ee.y&&ue.y<=le.y))continue}e:{ue=a.x;var fe=a.y,ve=y.x,Ce=y.y,Le=ee.x;ee=ee.y;var De=le.x,_e=le.y;if(Nt.B(ue,ve)){if(!Nt.B(fe,Ce)&&Nt.B(ee,_e)&&Math.min(fe,Ce)<ee&&Math.max(fe,Ce)>ee&&Math.min(Le,De)<ue&&Math.max(Le,De)>ue&&!Nt.B(Le,De)){re.x=ue,re.y=ee,ue=!0;break e}}else if(Nt.B(fe,Ce)&&Nt.B(Le,De)&&Math.min(ue,ve)<Le&&Math.max(ue,ve)>Le&&Math.min(ee,_e)<fe&&Math.max(ee,_e)>fe&&!Nt.B(ee,_e)){re.x=Le,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(E?x.push(re.x):x.push(re.y)),ee=le}Ue.free(re)}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()))}Qn.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 ee=E.length,re=0;re<ee;re++){var oe=E[re];oe instanceof Qn&&(oe===this?z=!0:z&&e1(this,oe,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)re=z[ee],re instanceof Qn&&e1(this,re,a)}}}}};function e1(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())}}Qn.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},Qn.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},Qn.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)},Qn.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,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];(le.ef===y&&le.ff===b&&le.uf===x&&le.vf===E||le.ef===x&&le.ff===E&&le.uf===y&&le.vf===b)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=ZS(y,x,b,E),z===null&&(z=new r0(y,b,x,E),WS(y,z),WS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Mp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(yn(y.links,a),y.Sl()))}Qn.prototype.ph=function(){return!0},Qe.Object.defineProperties(Qn.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 ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.uf!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("fromNode",y,a),Og(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Lu(x),Mp(this),this.ff=a;var b=this.fromPort;b!==null&&Lu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),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 ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.ef!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("toNode",y,a),Og(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Lu(x),Mp(this),this.vf=a;var b=this.toPort;b!==null&&Lu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Lp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Bo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Lu(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",Qn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Bo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Lu(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",Qn,"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?wr: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()===zu&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Nt.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 ee=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),oe=this.i(z);Nt.Dl(E.x,E.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),E=oe}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 Ue)}},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);Nt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Nt.$(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 En,b=0;b<a.length/2;b++)E=new Ue(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(!dn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new En,b=0;b<a.length;b++)E=a[b],x.add(new Ue(E.x,E.y).freeze())}}else if(a instanceof En)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else dt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Jm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ra(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ig(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ig(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),_m(this,y===Pc||y===Rg||a===Pc||a===Rg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),_m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Qn.prototype.invalidateOtherJumpOvers=Qn.prototype.Xo,Qn.prototype.findClosestSegment=Qn.prototype.ez,Qn.prototype.updateRoute=Qn.prototype.vg,Qn.prototype.invalidateRoute=Qn.prototype.bb,Qn.prototype.rollbackRoute=Qn.prototype.rv,Qn.prototype.commitRoute=Qn.prototype.zf,Qn.prototype.startRoute=Qn.prototype.uh,Qn.prototype.clearPoints=Qn.prototype.Fj,Qn.prototype.removePoint=Qn.prototype.pv,Qn.prototype.addPointAt=Qn.prototype.yf,Qn.prototype.addPoint=Qn.prototype.ne,Qn.prototype.insertPointAt=Qn.prototype.m,Qn.prototype.insertPoint=Qn.prototype.Kz,Qn.prototype.setPointAt=Qn.prototype.L,Qn.prototype.setPoint=Qn.prototype.dd,Qn.prototype.getPoint=Qn.prototype.i,Qn.prototype.getOtherPort=Qn.prototype.Cz,Qn.prototype.getOtherNode=Qn.prototype.To;var ng=null,ig=null,Qv=new sn(Qn,"Normal",1),Mx=new sn(Qn,"Orthogonal",2),Ax=new sn(Qn,"AvoidsNodes",6),t1=new sn(Qn,"AvoidsNodesStraight",7),Gl=new sn(Qn,"None",0),zu=new sn(Qn,"Bezier",9),Pc=new sn(Qn,"JumpGap",10),Rg=new sn(Qn,"JumpOver",11),Ap=new sn(Qn,"End",17),e0=new sn(Qn,"Scale",18),t0=new sn(Qn,"Stretch",19),kp=new sn(Qn,"OrientAlong",21),Fp=new sn(Qn,"OrientPlus90",22),Np=new sn(Qn,"OrientMinus90",23),$v=new sn(Qn,"OrientOpposite",24),n0=new sn(Qn,"OrientUpright",25),Tp=new sn(Qn,"OrientPlus90Upright",26),Dp=new sn(Qn,"OrientMinus90Upright",27),i0=new sn(Qn,"OrientUpright45",28),n1=16,i1=14,Bp=8;Qn.className="Link",Qn.Normal=Qv,Qn.Orthogonal=Mx,Qn.AvoidsNodes=Ax,Qn.AvoidsNodesStraight=t1,Qn.None=Gl,Qn.Bezier=zu,Qn.JumpGap=Pc,Qn.JumpOver=Rg,Qn.End=Ap,Qn.Scale=e0,Qn.Stretch=t0,Qn.OrientAlong=kp,Qn.OrientPlus90=Fp,Qn.OrientMinus90=Np,Qn.OrientOpposite=$v,Qn.OrientUpright=n0,Qn.OrientPlus90Upright=Tp,Qn.OrientMinus90Upright=Dp,Qn.OrientUpright45=i0,Qn.EndSegmentStep=8,Qn.CurvinessStart=n1,Qn.SpacingMin=i1,Qn.OrthoShortCut=Bp;function r0(a,y,x,b){Br(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){Br(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,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var le=y|0,ue=x|0,fe=a.ac[le][ue];if(fe>=Nf&&fe<jg)for(E?ue+=b:le+=b,fe+=1;z<=le&&le<=ee&&re<=ue&&ue<=oe&&!(fe>=a.ac[le][ue]);)a.ac[le][ue]=fe,fe+=1,E?ue+=b:le+=b;if(le=E?ue:le,E)if(0<b)for(x+=b;x<le;x+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else for(x+=b;x>le;x+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else if(0<b)for(y+=b;y<le;y+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else for(y+=b;y>le;y+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe)}}function o0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Cc,ue=Nf;for(a.ac[y][x]=ue;le===Cc&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function a0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Cc,ue=jg;for(a.ac[y][x]=ue;le===Cc&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function o1(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(zg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=b.x,ue=b.y;if(zg(a,le,ue))if(le-=a.Nd,le/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;b=z.y,y=z.x+z.width;var ve=z.y+z.height;fe-=a.Nd,fe/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,ve-=a.Od,ve/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,b|0)),ve=Math.min(a.ei,Math.max(0,ve|0)),b=a.ac,re|=0,oe|=0,le|=0,ue|=0;var Ce=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Cc?(o0(a,re,oe,Ce,x,z,y,fe,ve),o0(a,re,oe,1,!x,z,y,fe,ve),o0(a,re,oe,-1,!x,z,y,fe,ve)):o0(a,re,oe,Ce,x,re,oe,re,oe),b[le][ue]===Cc?(a0(a,le,ue,E===0||E===90?1:-1,E===90||E===270,z,y,fe,ve),a0(a,le,ue,1,!(E===90||E===270),z,y,fe,ve),a0(a,le,ue,-1,!(E===90||E===270),z,y,fe,ve)):a0(a,le,ue,Ce,x,le,ue,le,ue),x=an(),ee&&a1(a,le,ue,E,re,oe,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Nf,E=x[x.length-2],ee=x[x.length-1],b[E][ee]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>E?E++:y<E?E--:le>ee?ee++:le<ee&&ee--,b[E][ee]=a++,E!==y||ee!==le;);else Ld(a,re,oe,1,!1,z,y,fe,ve),Ld(a,re,oe,-1,!1,z,y,fe,ve),Ld(a,re,oe,1,!0,z,y,fe,ve),Ld(a,re,oe,-1,!0,z,y,fe,ve);Mn(x)}}}}function a1(a,y,x,b,E,z,ee){for(var re=a.ac,oe=y,le=x;;){if(oe===E&&le===z)return!0;var ue=oe,fe=le;if(b===0)if(ue<E)ue++;else break;else if(b===90)if(fe<z)fe++;else break;else if(b===180)if(ue>E)ue--;else break;else if(fe>z)fe--;else break;var ve=re[ue][fe];if(ve===0||ve===_v)break;oe=ue,le=fe}for(;;){if(ue=b,fe=oe,ve=le,b===0?ve<z?(ue=90,ve++):ve>z&&(ue=270,ve--):b===90?fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--):b===180?ve<z?(ue=90,ve++):ve>z&&(ue=270,ve--):fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--),fe=re[fe][ve],ue!==b&&fe!==0&&fe!==_v){if(ee.push(oe),ee.push(le),a1(a,oe,le,ue,E,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][le]=_v,b===0){if(oe===y)return!1;oe--}else if(b===90){if(le===x)return!1;le--}else if(b===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}Qe.Object.defineProperties(Op.prototype,{bounds:{get:function(){return new hn(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(){Br(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){e: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 ee=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,ee=b.Lu()}z=a.pe.length=0;var re=a.port.ga(Ls,Ue.alloc()),oe=a.port.ga(ml,Ue.alloc());for(E=hn.allocAt(re.x,re.y,0,0),E.Ye(oe),Ue.free(re),Ue.free(oe),re=Ue.allocAt(E.x+E.width/2,E.y+E.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ue=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(b),fe=le.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?le.toPort:le.fromPort,ue!==null)){var ve=ue.part;if(ve!==null){var Ce=ve.findVisibleNode();Ce!==null&&Ce!==ve&&(ve=Ce,ue=ve.port),ue=le.computeOtherPoint(ve,ue),ve=re.ab(ue),ve-=oe,0>ve?ve+=360:360<=ve&&(ve-=360),fe=kx(E,fe,ve,le.isOrthogonal),fe===0?(fe=4,180<ve&&(ve-=360)):fe===90?(fe=8,270<ve&&(ve-=360)):fe===180?fe=2:(fe=1,90>ve&&(ve+=360)),Ce=a.pe[z],Ce===void 0?(Ce=new ey(le,ve,fe),a.pe[z]=Ce):(Ce.link=le,Ce.angle=ve,Ce.Nc=fe),Ce.hv.set(ue),z++}}}}for(Ue.free(re),a.pe.sort(rg.prototype.j),oe=a.pe.length,b=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,re=0),ee.Uo=re,re++);for(b=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==b&&(b=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,fe=a.port,b=a.node.portSpreading,re=Ue.alloc(),oe=Ue.alloc(),ee=Ue.alloc(),le=Ue.alloc(),fe.ga(Ls,re),fe.ga(lu,oe),fe.ga(ml,ee),fe.ga(Ll,le),Ce=ve=ue=fe=0,b===Gv)for(var Le=0;Le<z.length;Le++){var De=z[Le];if(De!==null){var _e=De.link.computeThickness();switch(De.Nc){case 8:ve+=_e;break;case 2:Ce+=_e;break;case 1:fe+=_e;break;default:case 4:ue+=_e}}}var Ze=Le=0,st=1,ht=De=0;for(_e=0;_e<z.length;_e++){var mt=z[_e];if(mt!==null){if(Le!==mt.Nc){switch(Le=mt.Nc,Le){case 8:var Lt=ee;Ze=le;break;case 2:Lt=le,Ze=re;break;case 1:Lt=re,Ze=oe;break;default:case 4:Lt=oe,Ze=ee}switch(De=Ze.x-Lt.x,ht=Ze.y-Lt.y,Le){case 8:ve>Math.abs(De)?(st=Math.abs(De)/ve,ve=Math.abs(De)):st=1;break;case 2:Ce>Math.abs(ht)?(st=Math.abs(ht)/Ce,Ce=Math.abs(ht)):st=1;break;case 1:fe>Math.abs(De)?(st=Math.abs(De)/fe,fe=Math.abs(De)):st=1;break;default:case 4:ue>Math.abs(ht)?(st=Math.abs(ht)/ue,ue=Math.abs(ht)):st=1}Ze=0}var Vt=mt.Zo;if(b===Gv){switch(mt=mt.link.computeThickness(),mt*=st,Vt.set(Lt),Le){case 8:Vt.x=Lt.x+De/2+ve/2-Ze-mt/2;break;case 2:Vt.y=Lt.y+ht/2+Ce/2-Ze-mt/2;break;case 1:Vt.x=Lt.x+De/2-fe/2+Ze+mt/2;break;default:case 4:Vt.y=Lt.y+ht/2-ue/2+Ze+mt/2}Ze+=mt}else{var di=.5;b===Xm&&(di=(mt.Uo+1)/(mt.Gl+1)),Vt.x=Lt.x+De*di,Vt.y=Lt.y+ht*di}}}for(Ue.free(re),Ue.free(oe),Ue.free(ee),Ue.free(le),Lt=a.pe,z=0;z<Lt.length;z++)b=Lt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,hn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}rg.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ua,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},rg.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ue,this.Gl=this.Uo=0,this.Zo=new Ue,this.Ju=0}ey.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ey.className="LinkInfo";function Fa(a){Br(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ue(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Fa.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Fa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Fa.prototype.qb=function(){},Fa.prototype.toString=function(){var a=bn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Fa.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Fa.prototype.createNetwork=function(){return new ua(this)},Fa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Kt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Pr?y.lg(a.memberParts):y.lg(a.iterator),y},Fa.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Fa.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Fa.prototype.doLayout=function(a){var y=new An;a instanceof Kt?(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},Fa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;Ip(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(b,E),re instanceof Pr&&(re.rh=!1),b+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},Fa.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof Qn)&&(Ip(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof Pr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Fa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Pr&&a.rh)};function Uc(a,y,x,b,E,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;b&&!oe.isTopLevel||E!==null&&!E(oe)||!oe.canLayout()||(z&&oe instanceof ci?oe.isLinkLabel||(oe instanceof Pr&&oe.layout===null?Uc(a,y,oe.memberParts,!1,E,z,ee,re):(Ip(oe),y.add(oe))):ee&&oe instanceof Qn?y.add(oe):!re||!oe.Zc()||oe instanceof ci||(Ip(oe),y.add(oe)))}}function Ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Fa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new hn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Fa.prototype.ex=function(a){var y=new An;return a instanceof Kt?(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},Fa.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Ls),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Qe.Object.defineProperties(Fa.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Fa.prototype.collectParts=Fa.prototype.ex,Fa.prototype.getLayoutBounds=Fa.prototype.ni,Fa.prototype.invalidateLayout=Fa.prototype.C,Fa.className="Layout";function ua(a){Br(this),this.Sc=a,this.wf=new An,this.ye=new An,this.Es=new ki,this.zs=new ki}ua.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new An,this.ye=new An,this.Es=new ki,this.zs=new ki},ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1)}return y},ua.prototype.createVertex=function(){return new zs(this)},ua.prototype.createEdge=function(){return new Mu(this)},ua.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof ci)return!ee.isLinkLabel;if(ee instanceof Qn){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof ci&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof 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 Qn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},ua.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ee=ua.prototype,Ee.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ee.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},Ee.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}Ee.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ee.ki=function(a){return a===null?null:this.Es.I(a)},Ee.Bo=function(a){if(a!==null){ty(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ty(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}}Ee.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},Ee.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))}Ee.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ee.Lo=function(a){return a===null?null:this.zs.I(a)},Ee.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},Ee.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))}},Ee.Ko=function(){for(var a=an(),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]);Mn(a)},ua.prototype.deleteArtificialVertexes=function(){for(var a=an(),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=an(),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]);Mn(a),Mn(y)};function Fx(a){for(var y=an(),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]);Mn(y)}ua.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new En;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),ty(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ty(y,x),iy(a,y,x.toVertex))}}ua.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},Qe.Object.defineProperties(ua.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),ua.prototype.findAllParts=ua.prototype.dz,ua.prototype.splitIntoSubNetworks=ua.prototype.Zx,ua.prototype.deleteSelfEdges=ua.prototype.Ko,ua.prototype.reverseEdge=ua.prototype.gm,ua.prototype.linkVertexes=ua.prototype.Zj,ua.prototype.findEdge=ua.prototype.Lo,ua.prototype.deleteLink=ua.prototype.Yy,ua.prototype.deleteEdge=ua.prototype.Mj,ua.prototype.addLink=ua.prototype.Dy,ua.prototype.addEdge=ua.prototype.Bo,ua.prototype.findVertex=ua.prototype.ki,ua.prototype.deleteNode=ua.prototype.Zy,ua.prototype.deleteVertex=ua.prototype.Iu,ua.prototype.addNode=ua.prototype.Bl,ua.prototype.addVertex=ua.prototype.dh,ua.prototype.addParts=ua.prototype.lg,ua.className="LayoutNetwork";function zs(a){Br(this),this.ob=a,this.j=new hn(0,0,10,10).freeze(),this.o=new Ue(5,5).freeze(),this.Sh=this.ub=null,this.tg=new En,this.mg=new En}zs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new En,this.mg=new En},zs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+bo(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},zs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;dn(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=hn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(so);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),hn.free(x);return}hn.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}Qe.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=hn.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),hn.free(x),!(a instanceof Pr)&&(a=a.locationObject.ga(so),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new 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 En,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),zs.prototype.deleteDestinationEdge=zs.prototype.Jl,zs.prototype.addDestinationEdge=zs.prototype.zl,zs.prototype.deleteSourceEdge=zs.prototype.Kl,zs.prototype.addSourceEdge=zs.prototype.Cl,zs.className="LayoutVertex",zs.standardComparer=ry,zs.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Mu(a){Br(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Mu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Mu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+bo(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Mu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Mu.prototype.commit=function(){},Mu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Qe.Object.defineProperties(Mu.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Mu.prototype.getOtherVertex=Mu.prototype.Ax,Mu.className="LayoutEdge";function rl(a){Fa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ri(NaN,NaN).freeze(),this.tf=new ri(10,10).freeze(),this.Jb=Rp,this.Rb=l0,this.nd=zp,this.hd=u1,a&&Object.assign(this,a)}Yt(rl,Fa),rl.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},rl.prototype.qb=function(a){a.classType===rl?a===zp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===Kh?this.arrangement=a:a===Rp||a===s0?this.alignment=a:dt("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},rl.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof 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 ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(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 re=y,oe=x,le=hn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<E.length;fe++){var ve=this.ni(E[fe],le);ue=Math.max(ue,ve.width)}if(ue=Math.max(ue+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(ve=fe=0;ve<E.length;ve++){var Ce=this.ni(E[ve],le);fe=Math.max(fe,Ce.height)}fe=Math.max(fe+oe,1),ve=this.arrangement;for(var Le=Ce=this.arrangementOrigin.x,De=this.arrangementOrigin.y,_e=0,Ze=0,st=0;st<E.length;st++){var ht=E[st],mt=this.ni(ht,le),Lt=Math.ceil((mt.width+re)/ue)*ue,Vt=Math.ceil((mt.height+oe)/fe)*fe;switch(ve){case Kh:var di=Math.abs(Le-mt.width);break;default:di=Le+mt.width}switch((0<z&&_e>z-1||0<ee&&0<_e&&di-Ce>ee)&&(b.push(new hn(0,De,ee+re,Ze)),_e=0,Le=Ce,De+=Ze,Ze=0),Ze=Math.max(Ze,Vt),ve){case Kh:mt=-mt.width;break;default:mt=0}switch(ht.moveTo(Le+mt,De),ve){case Kh:Le-=Lt;break;default:Le+=Lt}_e++}b.push(new hn(0,De,ee+re,Ze)),hn.free(le);break;case Rp:for(oe=ee,ue=z,fe=y,ve=x,ee=hn.alloc(),Ce=Math.max(this.cellSize.width,1),z=De=le=0,re=Ue.alloc(),Le=0;Le<E.length;Le++)Ze=E[Le],_e=this.ni(Ze,ee),Ze=Sc(Ze,Ze.locationObject,Ze.locationSpot,re),le=Math.max(le,Ze.x),De=Math.max(De,_e.width-Ze.x),z=Math.max(z,Ze.y);switch(Le=this.arrangement,Le){case Kh:le+=fe;break;default:De+=fe}Ce=isFinite(Ce)?Math.max(Ce+fe,1):Math.max(le+De,1);var Ci=Ze=this.arrangementOrigin.x;for(st=this.arrangementOrigin.y,De=0,oe>=le&&(oe-=le),le=ht=0,Lt=Math.max(this.cellSize.height,1),mt=z=0,Vt=!0,_e=Ue.alloc(),di=0;di<E.length;di++){var vi=E[di],Jn=this.ni(vi,ee),kn=Sc(vi,vi.locationObject,vi.locationSpot,re);if(0<De)switch(Le){case Kh:Ci=(Ci-Ze-(Jn.width-kn.x))/Ce,Ci=Nt.$(Math.round(Ci),Ci)?Math.round(Ci):Math.floor(Ci),Ci=Ci*Ce+Ze;break;default:Ci=(Ci-Ze+kn.x)/Ce,Ci=Nt.$(Math.round(Ci),Ci)?Math.round(Ci):Math.ceil(Ci),Ci=Ci*Ce+Ze}else switch(Le){case Kh:ht=Ci+kn.x+Jn.width;break;default:ht=Ci-kn.x}switch(Le){case Kh:var Sr=-(Ci+kn.x)+ht;break;default:Sr=Ci+Jn.width-kn.x-ht}if(0<ue&&De>ue-1||0<oe&&0<De&&Sr>oe){for(b.push(new hn(0,Vt?st-z:st,oe+fe,mt+z+ve)),Ci=0;Ci<De&&di!==De;Ci++){Sr=E[di-De+Ci];var dr=Sc(Sr,Sr.locationObject,Sr.locationSpot,_e);Sr.moveTo(Sr.position.x,Sr.position.y+z-dr.y)}mt+=ve,st=Vt?st+mt:st+(mt+z),De=mt=z=0,Ci=Ze,Vt=!1}switch(Ci===Ze&&(le=Le===Kh?Math.max(le,Jn.width-kn.x):Math.min(le,-kn.x)),z=Math.max(z,kn.y),mt=Math.max(mt,Jn.height-kn.y),isFinite(Lt)&&(mt=Math.max(mt,Math.max(Jn.height,Lt)-kn.y)),Vt?vi.moveTo(Ci-kn.x,st-kn.y):vi.moveTo(Ci-kn.x,st),Le){case Kh:Ci-=kn.x+fe;break;default:Ci+=Jn.width-kn.x+fe}De++}if(b.push(new hn(0,st,oe+fe,(Vt?mt:mt+z)+ve)),E.length!==De)for(oe=0;oe<De;oe++)ue=E[E.length-De+oe],fe=Sc(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(Ue.free(re),Ue.free(_e),Le===Kh)for(E=0;E<b.length;E++)z=b[E],z.width+=le,z.x-=le;else for(E=0;E<b.length;E++)z=b[E],z.x>le&&(z.width+=z.x-le,z.x=le);hn.free(ee)}for(re=z=ee=E=0;re<b.length;re++)oe=b[re],E=Math.min(E,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===Kh?this.commitLayers(b,new Ue(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Ue(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},rl.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Qe.Object.defineProperties(rl.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Rp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Kh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==u0&&a!==zp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new sn(rl,"Position",0),Rp=new sn(rl,"Location",1),l0=new sn(rl,"LeftToRight",2),Kh=new sn(rl,"RightToLeft",3),oy=new sn(rl,"Forward",4),u0=new sn(rl,"Reverse",5),zp=new sn(rl,"Ascending",6),h0=new sn(rl,"Descending",7);rl.className="GridLayout",rl.standardComparer=u1,rl.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},rl.Position=s0,rl.Location=Rp,rl.LeftToRight=l0,rl.RightToLeft=Kh,rl.Forward=oy,rl.Reverse=u0,rl.Ascending=zp,rl.Descending=h0;function Ko(){this.On=new An,this.Dn=new An,this.Pa=new An,this.cf=new ki,this.bf=new ki,this.aj=new ki,this.H=null,this.tp=!1}Ee=Ko.prototype,Ee.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ee.Xe=function(a){this.H=a},Ee.oi=function(a){if(a instanceof ci){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 Qn?this.Dn.add(a):a instanceof Ao||this.Pa.add(a);y=a.data,y===null||a instanceof Ao||(a instanceof Qn?this.bf.add(y,a):this.cf.add(y,a))},Ee.pc=function(a){if(a.Ej(),a instanceof ci){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 Qn?this.Dn.remove(a):a instanceof Ao||this.Pa.remove(a);y=a.data,y===null||a instanceof Ao||(a instanceof Qn?this.bf.remove(y):this.cf.remove(y))},Ee.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)&&dt('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||dt('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 Qn||dt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=an(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=an(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=an(),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]);Mn(y),Mn(x),Mn(a)}},Ko.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ko.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&h1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&jc(this.diagram,!1)};function h1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=d1(a,y,b);if(E!==null&&(ch(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Ko.prototype.insertLink=function(){return null},Ko.prototype.resolveReferencesForData=function(){},Ko.prototype.Ro=function(a){return this.H.model.Ro(a)};function d1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(g1||(g1=!0,ji('No Group template found for category "'+x+'"'),ji(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,ji('No Node template found for category "'+x+'"'),ji(" Using default node template")),y=a.ny))),y}Ko.prototype.getLinkCategoryForData=function(){return""},Ko.prototype.setLinkCategoryForData=function(){},Ko.prototype.setFromNodeForLink=function(){},Ko.prototype.setToNodeForLink=function(){},Ko.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,ji('No Link template found for category "'+a+'"'),ji(" Using default link template")),x=y.my)),x},Ko.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ko.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ko.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ko.prototype.unresolveReferencesForPart=function(){},Ko.prototype.removeDataForLink=function(){},Ko.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ko.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ci?a:null)},Ko.prototype.findLinkForKey=function(){return null},Ee=Ko.prototype,Ee.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ee.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ci?a:null)},Ee.Kc=function(a){return a===null?null:this.bf.I(a)},Ee.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 ee=arguments[z];if(dn(ee)&&ay(this,E,ee)){y.add(b);break}}}return y.iterator},Ee.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 ee=arguments[z];if(dn(ee)&&ay(this,E,ee)){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(vn(z)){if(!vn(E)||E.length<z.length)return!1;for(var ee=0;ee<E.length;ee++){var re=z[ee];if(re!==void 0&&!c1(a,E[ee],re))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(dn(y)&&dn(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Ko.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===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===Xn){var ee=a.newValue;b==="nodeDataArray"&&dn(ee)&&h1(this,ee),y.isModified=!0}else if(x===hi){var re=a.oldValue;b==="nodeDataArray"&&dn(re)&&this.ip(re),y.isModified=!0}else x===Sn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Zn){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===Xn||x===hi){var ue=a.change===Xn,fe=ue?a.newParam:a.oldParam,ve=ue?a.newValue:a.oldValue,Ce=this.aj.I(a.object);if(Array.isArray(Ce))for(a=0;a<Ce.length;a++){var Le=Ce[a];if(ue)km(Le,ve,fe,!0);else if(!(0>fe)){var De=fe+Sp(Le);Le.pc(De,!0),xv(Le,De,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ko.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Ko.prototype.rp=function(){for(var a=this.H.model,y=new An,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),E.forEach(function(ee){b1(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&C1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Ko.prototype.refreshDataBoundLinks=function(){},Ko.prototype.updateRelationshipsFromData=function(){},Ko.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var ee=E[z].sx(a);ee!==null&&(x===null&&(x=an()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Mn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(vn(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(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Gf(x,ee[oe])});var b=y.Hh;if(vn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Ko.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new ki;if(vn(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 ki,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof Qn)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof ci&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var le=re.pg();le!==null&&(le=b.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<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 ue=new ki;b.each(function(fe){fe.key.data!==null&&ue.add(fe.key.data,fe.value.data)}),x(ue,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 ci){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=b.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof Pr&&z instanceof Pr)for(y=y.memberParts;y.next();)ee=d0(a,y.value,x,b,E),ee instanceof Qn||ee===null||(ee.containingGroup=z)}else if(y instanceof Qn&&z instanceof Qn)for(ee=y.fromNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,x,b,E),ee!==null&&ee instanceof ci&&(ee.labeledLink=z);return z}Ko.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Qn||(b=E.copyNodeData(b),dn(b)&&(E.xf(b),x=y.Lc(b)))}else ch(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Qn||(E=y.copyNodeData(b)),dn(E)&&(x.data=E)));return x},Qe.Object.defineProperties(Ko.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Ko.prototype.updateAllRelationshipsFromData=Ko.prototype.rp,Ko.prototype.findLinksByExample=Ko.prototype.ls,Ko.prototype.findNodesByExample=Ko.prototype.ms,Ko.prototype.findLinkForData=Ko.prototype.Kc,Ko.prototype.findNodeForData=Ko.prototype.ii,Ko.prototype.findPartForData=Ko.prototype.Lc,Ko.prototype.findNodeForKey=Ko.prototype.Vb,Ko.prototype.removeModeledPart=Ko.prototype.ip,Ko.prototype.removeModeledParts=Ko.prototype.Gs,Ko.prototype.rebuildParts=Ko.prototype.Wd;var f1=!1,g1=!1,p1=!1;Ko.className="PartManager";function $s(a){Ko.apply(this,arguments)}Yt($s,Ko),$s.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},$s.prototype.addModeledParts=function(a){for(Ko.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Og(a.value);jc(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),jc(a.diagram,!1)}function v1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ch(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(E.fromPortId=z),z=ju(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ci&&(E.fromNode=z)),z=p0(x,y,!1),z!==""&&(E.toPortId=z),z=ju(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ci&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}$s.prototype.removeAllModeledParts=function(){var a=this.diagram.model;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(a,y){y.forEach(function(x){a.ip(x)})}$s.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},$s.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},$s.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},$s.prototype.findPartForKey=function(a){var y=Ko.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},$s.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},$s.prototype.doModelChanged=function(a){var y=this;if(Ko.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Zn){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(E==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ue=a.newValue;typeof ue=="string"&&(le.fromPortId=ue)}}else if(E==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var ve=a.newValue;typeof ve=="string"&&(fe.toPortId=ve)}}else if(E==="nodeGroupKey"){var Ce=this.Lc(a.object);if(Ce!==null){var Le=a.newValue;if(Le!==void 0){var De=this.Vb(Le);De instanceof Pr?Ce.containingGroup=De:Ce.containingGroup=null}else Ce.containingGroup=null}}else if(E==="linkLabelKeys"){var _e=this.Kc(a.object);if(_e!==null){var Ze=a.oldValue,st=a.newValue;Array.isArray(Ze)&&Ze.forEach(function(kn){0<=st.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(st)&&st.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=_e)})}}else if(E==="linkCategory"){var ht=this.Kc(a.object),mt=a.newValue;ht!==null&&typeof mt=="string"&&(ht.category=mt)}else E==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(b===Xn){var Lt=a.newValue;if(E==="linkDataArray"&&typeof Lt=="object"&&Lt!==null)v1(this,Lt);else if(E==="linkLabelKeys"&&Jc(Lt)){var Vt=this.Kc(a.object),di=this.Vb(Lt);Vt!==null&&di!==null&&(di.labeledLink=Vt)}x.isModified=!0}else if(b===hi){var Ci=a.oldValue;if(E==="linkDataArray"&&typeof Ci=="object"&&Ci!==null)this.ip(Ci);else if(E==="linkLabelKeys"&&Jc(Ci)){var vi=this.Vb(Ci);vi!==null&&(vi.labeledLink=null)}x.isModified=!0}}else if(b===Zn){var Jn=a.propertyName;a.object!==x.model||Jn!=="linkFromKeyProperty"&&Jn!=="linkToKeyProperty"&&Jn!=="linkFromPortIdProperty"&&Jn!=="linkToPortIdProperty"&&Jn!=="linkLabelKeysProperty"&&Jn!=="nodeIsGroupProperty"&&Jn!=="nodeGroupKeyProperty"&&Jn!=="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 Qn){var E=ju(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=ju(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new An().addAll(y);var ee=new An;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Ao)&&(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 ee=b.value;y.lb(ee)?E instanceof Pr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof ci&&(ju(y,ee,!0)===x&&(z.link.fromNode=E),ju(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(E.labeledLink=re.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 ci){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Vh(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Vh(y,x,b.data)),a instanceof 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=Ko.prototype.copyPartData.call(this,a,y);if(a instanceof Qn)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,ee=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof Qn){if(ch(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof ci&&(ch(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Wg(z,b,z.wa(a.data),!0),Zg(z,b,re,!0),x!==null&&Wg(z,b,z.wa(x.data),!1),Zg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof ci||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},$s.prototype.findLinkForKey=$s.prototype.findLinkForKey,$s.prototype.findPartForKey=$s.prototype.findPartForKey,$s.prototype.removeAllModeledParts=$s.prototype.removeAllModeledParts,$s.prototype.addModeledParts=$s.prototype.addModeledParts,$s.prototype.addAllModeledParts=$s.prototype.addAllModeledParts,$s.className="GraphLinksPartManager";function qu(){Ko.apply(this,arguments),this.Sg=null}Yt(qu,Ko);function c0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Cn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ch(b),b=b.copy(),b!==null))){var ee=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=ee}}}qu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},qu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},qu.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},qu.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},qu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},qu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},qu.prototype.doModelChanged=function(a){if(Ko.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Zn){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),ee=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:c0(this,z,ee)}}else if(b==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var ue=oe.kh();ue!==null&&(ue.category=le)}}y.isModified=!0}}else if(x===Zn){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},qu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof ci&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:c0(this,y,a):b!==null&&Gd(x,b,!1)))}}},qu.prototype.updateDataBindings=function(a,y){Ko.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},qu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof ci&&y.mh(z)===x&&c0(this,E,this.ii(z))}Yh(y,x)}a=y.mh(a),a!==void 0&&E instanceof ci&&(a=this.Vb(a),c0(this,a,E))}},qu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ci){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(hi,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Vh(y,x,E)}},qu.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},qu.prototype.findLinkForKey=qu.prototype.findLinkForKey,qu.className="TreePartManager";function Ti(a,y){this.kl=new An,this.il=new An,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Br(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ki,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new ki,this.Lt=new En,this.Wg=!1,this.o=null,this.undoManager=new li,a!==void 0&&(vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ti.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Ti.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ti.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ti.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+$n(E)}}return y},Ti.prototype.xA=function(a){a.change!==Sn&&dt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ii?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ti.prototype.Qv=function(a,y){var x=this,b=!1,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===Xn?E.add(fe.newValue):fe.change===hi&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==Zn||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(ve){x.lb(ve)&&z.add(ve)}):fe.object instanceof Ti||x.ri()&&x.Jc(fe.object)||w1(x,fe.object).each(function(ve){z.add(ve)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var le=this.kl;le.clear(),ee.each(function(fe){le.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ue=null;return b&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<le.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=le.Fa():ue.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),ue},Ti.prototype.cloneDeep=function(a){return Hg(this,a,!0)};function Hg(a,y,x,b,E,z){function ee(fe,ve){re?(fe.__gohashid===void 0&&z.push(fe),b.set(fe,ve)):(fe=ca++,b.set(fe,ve),E.set(fe,y))}if(!dn(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new ki),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new ki),oe=E.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=b.get(le)))return le}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(Hg(a,y[ue],!1,b,E,z))}else if(y instanceof Ue||y instanceof ri||y instanceof hn||y instanceof zi||y instanceof Fi)oe=y.copy(),ee(y,oe);else{if(y instanceof Go||y instanceof ei||y instanceof sn)return y;if(y instanceof En)oe=new En().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof An)oe=new An().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof ki)oe=new ki().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=Hg(a,y[ue],!1,b,E,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),oe}Ee=Ti.prototype,Ee.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ee.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},Ee.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,dn(y)&&(a.dm(y),a.modelData=y)}Ee.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)},Ee.kv=function(a){S1(this,a),a=a.nodeDataArray,vn(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 ee=b.get(E);ee===null?(ee=new An,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new ki,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Zn?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Xn||z===hi)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function w1(a,y){for(var x=new 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 ee=x[z];if(ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}else if(dn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}return!1}Ee.Pv=function(a,y){var x=this,b=!1,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===Xn?E.add(ue.newValue):ue.change===hi&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==Zn||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof Ti||x.ri()&&x.Jc(ue.object)||w1(x,ue.object).each(function(fe){z.add(fe)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(x.wa(ue)),y&&z.add(ue)}),a="",b&&(a+=`,
|
|
|
"modelData": `+uy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Xc(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Xc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+Xc(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ee.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)&&dt("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new ki;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],ee=this.wa(z);ee!=null&&b.set(ee,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=b.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}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 oe in E)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,E[oe]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ee.$x=function(a,y){a.change!==Sn&&dt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ii?(y===void 0&&(y=Hp(this,this)),x1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ee.yA=function(a,y){return this.$x(a,y)},Ee.np=function(a){return a===void 0&&(a=Hp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ee.toJSON=function(a){return this.np(a)},Ee.Zw=function(a){var y=null;if(typeof a=="string")try{y=ft.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:dt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&dt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ee.Ky=function(a){return this.Zw(a)},Ti.constructGraphLinksModel=function(){return new Ti},Ee=Ti.prototype,Ee.dm=function(a){if(vn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(dn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:dt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(dn(a)){for(y in a)if(x=a[y],dn(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 En,b=0;b<x.length/2;b++)E.add(new Ue(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},Ee.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()):vn(a)?Xc(this,a):dn(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 xi;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var ee=y[z];ee!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ee)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Kl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Ue)y={class:"go.Point",x:Kl(x.x),y:Kl(x.y)};else if(x instanceof ri)y={class:"go.Size",width:Kl(x.width),height:Kl(x.height)};else if(x instanceof hn)y={class:"go.Rect",x:Kl(x.x),y:Kl(x.y),width:Kl(x.width),height:Kl(x.height)};else if(x instanceof zi)y={class:"go.Margin",top:Kl(x.top),right:Kl(x.right),bottom:Kl(x.bottom),left:Kl(x.left)};else if(x instanceof Fi)x.sb()?y={class:"go.Spot",x:Kl(x.x),y:Kl(x.y),offsetX:Kl(x.offsetX),offsetY:Kl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Go){if(y={class:"go.Brush",type:x.type.name},x.type===mc?y.color=x.color:(x.type===Ud||x.type===Qu)&&(y.start=x.start,y.end=x.end,x.type===Qu&&(x.startRadius!==0&&(y.startRadius=Kl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Kl(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof ei?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Kl(x.startX)),x.startY!==0&&(y.startY=Kl(x.startY)),x.endX!==0&&(y.endX=Kl(x.endX)),x.endY!==0&&(y.endY=Kl(x.endY)),x.spot1.D(Ls)||(y.spot1=x.spot1),x.spot2.D(ml)||(y.spot2=x.spot2),x.type===ei.o&&(y.path=ei.ia(x))):x instanceof sn&&(y={class:"go.EnumValue",classType:Hp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=fs(y,E);if(!P1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof En){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function Vl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Ue(Vl(a.x),Vl(a.y));else if(y==="Size")x=new ri(Vl(a.width),Vl(a.height));else if(y==="Rect")x=new hn(Vl(a.x),Vl(a.y),Vl(a.width),Vl(a.height));else if(y==="Margin")x=new zi(Vl(a.top),Vl(a.right),Vl(a.bottom),Vl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ic(a.enum):x=new Fi(Vl(a.x),Vl(a.y),Vl(a.offsetX),Vl(a.offsetY));else if(y==="Brush"){if(x=new Go,x.type=ai(Go,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Fi&&(x.start=a.start),a.end instanceof Fi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Vl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Vl(a.endRadius)),a=a.colorStops,dn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ei.parse(a.path):x=new ei,x.type=ai(ei,a.type),typeof a.startX=="number"&&(x.startX=Vl(a.startX)),typeof a.startY=="number"&&(x.startY=Vl(a.startY)),typeof a.endX=="number"&&(x.endX=Vl(a.endX)),typeof a.endY=="number"&&(x.endY=Vl(a.endY)),a.spot1 instanceof Fi&&(x.spot1=a.spot1),a.spot2 instanceof Fi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=ai(b,a.name)));return x}Ee.Pe=function(a){return this.Lt.add(a),this},Ee.ik=function(a){this.Lt.remove(a)},Ee.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)},Ee.cb=function(a,y,x,b,E,z,ee){Ds(this,"",a,y,x,b,E,z,ee)},Ee.g=function(a,y,x,b,E){Ds(this,"",Zn,a,this,y,x,b,E)},Ee.Fs=function(a,y,x,b,E,z){Ds(this,"",Zn,y,a,x,b,E,z)};function Ds(a,y,x,b,E,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new pn;le.model=a,le.change=x,le.modelChange=y,le.propertyName=b,le.object=E,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=oe,a.ds(le)}Ti.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)),La(x,b,E)}else a.change===Xn?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,dn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&tn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!vn(b)&&a.propertyName&&(b=fs(a.object,a.propertyName)),vn(b)&&typeof x=="number"&&(a=a.newValue,y?yn(b,x):tn(b,x,a))):dt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===hi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,dn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&tn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!vn(b)&&a.propertyName&&(b=fs(a.object,a.propertyName)),vn(b)&&typeof x=="number"&&(a=a.oldValue,y?tn(b,x,a):yn(b,x))):dt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Sn&&dt("unknown ChangedEvent: "+a.toString())},Ti.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ti.prototype.eb=function(a){return this.undoManager.eb(a)},Ti.prototype.Kf=function(){return this.undoManager.Kf()},Ti.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ee=Ti.prototype,Ee.La=function(a,y){y===void 0&&(y=""),Ds(this,"SourceChanged",Sn,y,a,null,null)},Ee.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;dt("Key value for node data "+a+" is not a number or a string: "+y)}}},Ee.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=fs(a,x);b!==y&&this.hc(y)===null&&(La(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ds(this,"nodeKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else La(a,x,y)}};function Jc(a){return typeof a=="number"||typeof a=="string"}Ee.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ee.hc=function(a){return a===null&&dt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.kb.I(a):null},Ee.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){La(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;La(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;La(a,y,x)}}}}},Ee.xf=function(a){a!==null&&(ta(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&&dt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,tn(a.Tc,b,y)),Ds(a,"nodeDataArray",Xn,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ee.Fy=function(a){if(vn(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)},Ee.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){e: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 e}b=-1}if(0>b)return;yn(a.Tc,b)}Ds(a,"nodeDataArray",hi,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ee.nA=function(a){if(vn(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)},Ee.$z=function(a){if(a!==this.nodeDataArray&&vn(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],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ee.jp=function(a,y){y!==void 0&&(a=jp(this,a),a instanceof An&&this.Vf.add(y,a))},Ee.Lv=function(){},Ee.fm=function(){},Ee.em=function(){},Ee.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)}Ee.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ti.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),dn(a)&&Br(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 Br(b),b}if(x&&dn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=fs(y,b),ee=Hp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ti||z instanceof li||z instanceof Ii||z instanceof pn||(z=g0(a,z,!1)),La(x,b,z)}return Br(x),x}return y instanceof Ue||y instanceof ri||y instanceof hn||y instanceof Fi||y instanceof zi?y.copy():y}Ti.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!E1&&a instanceof At&&(E1=!0,ji('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ji(" Is that really your intent?"));var b=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Ee=Ti.prototype,Ee.set=function(a,y,x){this.setDataProperty(a,y,x)},Ee.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])}},Ee.Ay=function(a,y){this.ts(a,-1,y)},Ee.ts=function(a,y,x){0>y&&(y=a.length),tn(a,y,x),Ds(this,"",Xn,"",a,null,x,null,y)},Ee.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&dt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];yn(a,y),Ds(this,"",hi,"",a,x,null,y,null)},Ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=fs(a,y),y===void 0))return"";if(typeof y=="string")return y;dt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"nodeCategory",Zn,x,a,b,y))}else La(a,x,y)}},Ee.lm=function(a,y){this.jm(y,this.Ro(a))},Ee.Tl=function(){return!1},Ee.Wj=function(){return!1},Ee.ri=function(){return!1},Ee.xs=function(){return!1},Ee.Xj=function(){return!1};function hy(){return new Ti}function Hp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Hp(a,y.constructor);return typeof y}function dy(a){return Ah[a]?Ah[a]:ft.go!==void 0&&ft.go[a]?ft.go[a]:null}function fs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function La(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Qe.Object.defineProperties(Ti.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&dt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&dt("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];dn(E)||dt("Model.nodeDataArray must only contain Objects, not: "+E),ta(E)}for(this.Tc=a,b=new En,E=0;E<x;E++){var z=a[E],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?b.add(z):this.kb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Ds(this,"nodeDataArray",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"}}}),Ti.prototype.setCategoryForNodeData=Ti.prototype.jm,Ti.prototype.getCategoryForNodeData=Ti.prototype.Ro,Ti.prototype.removeArrayItem=Ti.prototype.ov,Ti.prototype.insertArrayItem=Ti.prototype.ts,Ti.prototype.addArrayItem=Ti.prototype.Ay,Ti.prototype.assignAllDataProperties=Ti.prototype.Do,Ti.prototype.set=Ti.prototype.set,Ti.prototype.clearUnresolvedReferences=Ti.prototype.Qy,Ti.prototype.mergeNodeDataArray=Ti.prototype.$z,Ti.prototype.removeNodeDataCollection=Ti.prototype.nA,Ti.prototype.removeNodeData=Ti.prototype.cm,Ti.prototype.addNodeDataCollection=Ti.prototype.Fy,Ti.prototype.addNodeData=Ti.prototype.xf,Ti.prototype.makeNodeDataKeyUnique=Ti.prototype.$u,Ti.prototype.findNodeDataForKey=Ti.prototype.hc,Ti.prototype.containsNodeData=Ti.prototype.lb,Ti.prototype.setKeyForNodeData=Ti.prototype.km,Ti.prototype.getKeyForNodeData=Ti.prototype.wa,Ti.prototype.updateTargetBindings=Ti.prototype.La,Ti.prototype.commit=Ti.prototype.commit,Ti.prototype.rollbackTransaction=Ti.prototype.Kf,Ti.prototype.commitTransaction=Ti.prototype.eb,Ti.prototype.startTransaction=Ti.prototype.Ea,Ti.prototype.raiseDataChanged=Ti.prototype.Fs,Ti.prototype.raiseChanged=Ti.prototype.g,Ti.prototype.raiseChangedEvent=Ti.prototype.cb,Ti.prototype.removeChangedListener=Ti.prototype.ik,Ti.prototype.addChangedListener=Ti.prototype.Pe,Ti.prototype.writeJsonValue=Ti.prototype.sm,Ti.prototype.replaceJsonObjects=Ti.prototype.dm,Ti.prototype.applyIncrementalJSON=Ti.prototype.Ky,Ti.prototype.applyIncrementalJson=Ti.prototype.Zw,Ti.prototype.toJSON=Ti.prototype.toJSON,Ti.prototype.toJson=Ti.prototype.np,Ti.prototype.toIncrementalJSON=Ti.prototype.yA,Ti.prototype.toIncrementalJson=Ti.prototype.$x,Ti.prototype.toIncrementalData=Ti.prototype.xA,Ti.prototype.clear=Ti.prototype.clear;var E1=!1,Ah={};Ti.className="Model",Ti.fromJSON=Ti.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ft.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:dt("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=ft[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ti?y=a:dt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ti.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ti.safePropertyValue=fs,Ti.safePropertySet=La,Ah.Brush=Go,Ah.ChangedEvent=pn,Ah.Geometry=ei,Ah.Margin=zi,Ah.Panel=Gn,Ah.Point=Ue,Ah.Rect=hn,Ah.Size=ri,Ah.Spot=Fi,Ah.Transaction=Ii,Ah.UndoManager=li;function vs(a,y,x,b){Br(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}vs.prototype.copy=function(){var a=new vs;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ee=vs.prototype,Ee.qb=function(a){a.classType===vs&&(this.mode=a)},Ee.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.Kx=function(a){return a===void 0&&(a=null),this.mode=Wp,this.backConverter=a,this},Ee.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ee.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)}Ee.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==="")ji("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=fs(y,b)),z!==void 0)if(E===null)x!==""&&La(a,x,z);else try{if(x!==""){var ee=E(z,a);La(a,x,ee)}else E(z,a)}catch(re){}}}},Ee.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,ee=a;if(E!==""&&(ee=fs(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):La(y,x,ee);else if(oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var le=b.itemIndex,ue=b.panel.itemArray;oe.ov(ue,le),oe.ts(ue,le,ee)}}else try{if(x!==""){var fe=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,fe):La(y,x,fe)}else{var ve=z(ee,y,oe);if(ve!==void 0&&oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ce=b.itemIndex,Le=b.panel.itemArray;oe.ov(Le,Ce),oe.ts(Le,Ce,ve)}}}catch(De){}}finally{this.st.remove(a)}}}},Qe.Object.defineProperties(vs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Fn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Fn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Fn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Fn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Fn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Fn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Fn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Fn(this),this.el=a}}}),vs.prototype.updateSource=vs.prototype.sp,vs.prototype.updateTarget=vs.prototype.Mv,vs.prototype.ofModel=vs.prototype.dA,vs.prototype.ofObject=vs.prototype.cp,vs.prototype.makeTwoWay=vs.prototype.Kx;var Tx="Binding",M1=new sn(vs,"OneWay",1),Wp=new sn(vs,"TwoWay",2);vs.className="Binding",vs.parseEnum=function(a,y){return function(x){return x=ai(a,x),x===null?y:x}},vs.toString=$n,vs.OneWay=M1,vs.TwoWay=Wp;function co(a,y,x){Ti.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new An,this.wb=new ki,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(vn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Yt(co,Ti),co.constructGraphLinksModel=Ti.constructGraphLinksModel,co.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ee=co.prototype,Ee.clear=function(){Ti.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ee.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)+":"+$n(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+ju(this,E,!0)+"-->"+ju(this,E,!1)}return y},Ee.Qv=function(a,y){this.linkKeyProperty===""&&dt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ti.prototype.Qv.call(this,a,y),b=this,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===Xn?E.add(ue.newValue):ue.change===hi&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ti||b.lb(ue.object)||A1(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=b.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},Ee.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ee.gp=function(a){Ti.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ee.Rv=function(){var a=Ti.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Xc(this,this.linkDataArray,!0);return a+y},Ee.kv=function(a){Ti.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function A1(a,y){for(var x=new An,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}Ee.Pv=function(a,y){this.linkKeyProperty===""&&dt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ti.prototype.Pv.call(this,a,y),b=this,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===Xn?E.add(ue.newValue):ue.change===hi&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ti||b.lb(ue.object)||A1(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Xc(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Xc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+Xc(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ee.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)&&dt("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var ee in E)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,E[ee]);N1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},co.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===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),La(x,b,E);return}}else if(a.change===Xn){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,dn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===hi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,dn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Ti.prototype.changeState.call(this,a,y)}},Ee=co.prototype,Ee.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),La(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ee.yx=function(a){return ju(this,a,!0)},Ee.wv=function(a,y){Wg(this,a,y,!0)},Ee.Bx=function(a){return ju(this,a,!1)},Ee.Bv=function(a,y){Wg(this,a,y,!1)};function ju(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=fs(y,a),a!==void 0))){if(Jc(a))return a;dt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Wg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=fs(y,E);z!==x&&(Yh(a,z,y),La(y,E,x),a.hc(x)===null&&Vh(a,x,y),Ds(a,b?"linkFromKey":"linkToKey",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Ee.zx=function(a){return p0(this,a,!0)},Ee.xv=function(a,y){Zg(this,a,y,!0)},Ee.Cx=function(a){return p0(this,a,!1)},Ee.Cv=function(a,y){Zg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=fs(y,a),y===void 0?"":y)}function Zg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=fs(y,E);z===void 0&&(z=""),z!==x&&(La(y,E,x),Ds(a,b?"linkFromPortId":"linkToPortId",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Ee.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=fs(a,y),a===void 0?m0:a)},Ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=fs(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Yh(this,b[z],a);for(La(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&Vh(this,ee,a)}Ds(this,"linkLabelKeys",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else La(a,x,y)}},Ee.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fs(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Vh(this,y,a),Ds(this,"linkLabelKeys",Xn,x,a,null,y,null,E)))}else dt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ee.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fs(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Yh(this,y,a),Ds(this,"linkLabelKeys",hi,x,a,y,null,E,null)))}else b!==void 0&&dt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;dt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=fs(a,x);b!==y&&this.jh(y)===null&&(La(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ds(this,"linkKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Ee.jh=function(a){return a===null&&dt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.wb.I(a):null},Ee.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){La(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;La(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;La(a,y,x)}}}}},Ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ee.fi=function(a){a!==null&&(ta(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&&dt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Ds(a,"linkDataArray",Xn,"linkDataArray",a,null,y,null,b),cy(a,y)}Ee.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)},Ee.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Ds(a,"linkDataArray",hi,"linkDataArray",a,y,null,b,null),x=ju(a,y,!0),Yh(a,x,y),x=ju(a,y,!1),Yh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Yh(a,x,y)}Ee.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)},Ee.Zz=function(a){if(this.linkKeyProperty===""&&dt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&vn(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],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),N1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=ju(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y),x=ju(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&Vh(a,x,y)}Ee.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),dn(a)&&(Br(a),this.lf!==""&&La(a,this.lf,void 0),this.mf!==""&&La(a,this.mf,void 0),this.je!==""&&La(a,this.je,[])),a},Ee.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!fs(a,y)},Ee.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;dt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=fs(a,x);b!==y&&(Yh(this,b,a),La(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ds(this,"nodeGroupKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},co.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||fs(a,this.Je)===void 0||La(a,this.Je,void 0),a)},co.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Wg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Wg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Zg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Zg(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Ee=co.prototype,Ee.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&fs(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ee.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(ju(this,b,!0)===E){var ee=this.lf;La(b,ee,z),Ds(this,"linkFromKey",Zn,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(ju(this,b,!1)===E&&(ee=this.mf,La(b,ee,z),Ds(this,"linkToKey",Zn,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var re=ee.length,oe=this.je,le=0;le<re;le++)ee[le]===E&&(ee[le]=z,Ds(this,"linkLabelKeys",Xn,oe,b,E,z,le,le))}},Ee.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;La(a,b,x),Ds(this,"nodeGroupKey",Zn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ee.Lv=function(){Ti.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Ee.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=an();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ds(this,"nodeGroupKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ju(this,b,!0)===a&&(E=this.lf,Ds(this,"linkFromKey",Zn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ju(this,b,!1)===a&&(E=this.mf,Ds(this,"linkToKey",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,ee=this.je,re=0;re<z;re++)E[re]===a&&(Ds(this,"linkLabelKeys",Xn,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)Yh(this,a,x[y]);Mn(x)}},Ee.em=function(a){Ti.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Vh(this,y,a)},Ee.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.lh(a);Yh(this,y,a)},Ee.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=fs(a,y),y===void 0))return"";if(typeof y=="string")return y;dt("getCategoryForLinkData found a non-string category for "+a+": "+y)},co.prototype.getLinkCategoryForData=function(a){return this.ps(a)},co.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"linkCategory",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},co.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ee=co.prototype,Ee.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ee.Wj=function(){return!0},Ee.ri=function(){return!0},Ee.xs=function(){return!0},Ee.Xj=function(){return!0},Qe.Object.defineProperties(co.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];dn(E)||dt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ta(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new En,E=0;E<x;E++){var z=a[E],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?b.add(z):this.wb.add(ee,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,Ds(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"}}}),co.prototype.setCategoryForLinkData=co.prototype.lp,co.prototype.getCategoryForLinkData=co.prototype.ps,co.prototype.assignAllDataProperties=co.prototype.Do,co.prototype.setGroupKeyForNodeData=co.prototype.mp,co.prototype.getGroupKeyForNodeData=co.prototype.lh,co.prototype.isGroupForNodeData=co.prototype.Yu,co.prototype.copyLinkData=co.prototype.Jo,co.prototype.mergeLinkDataArray=co.prototype.Zz,co.prototype.removeLinkDataCollection=co.prototype.lA,co.prototype.removeLinkData=co.prototype.bm,co.prototype.addLinkDataCollection=co.prototype.Ey,co.prototype.addLinkData=co.prototype.fi,co.prototype.containsLinkData=co.prototype.Jc,co.prototype.makeLinkDataKeyUnique=co.prototype.Bs,co.prototype.findLinkDataForKey=co.prototype.jh,co.prototype.setKeyForLinkData=co.prototype.Ks,co.prototype.getKeyForLinkData=co.prototype.Ac,co.prototype.removeLabelKeyForLinkData=co.prototype.Qx,co.prototype.addLabelKeyForLinkData=co.prototype.Bu,co.prototype.setLabelKeysForLinkData=co.prototype.Ls,co.prototype.getLabelKeysForLinkData=co.prototype.Ef,co.prototype.setToPortIdForLinkData=co.prototype.Cv,co.prototype.getToPortIdForLinkData=co.prototype.Cx,co.prototype.setFromPortIdForLinkData=co.prototype.xv,co.prototype.getFromPortIdForLinkData=co.prototype.zx,co.prototype.setToKeyForLinkData=co.prototype.Bv,co.prototype.getToKeyForLinkData=co.prototype.Bx,co.prototype.setFromKeyForLinkData=co.prototype.wv,co.prototype.getFromKeyForLinkData=co.prototype.yx,co.prototype.clear=co.prototype.clear;var m0=Object.freeze([]);co.className="GraphLinksModel",Ah.GraphLinksModel=co,Ti.constructGraphLinksModel=Ti.constructGraphLinksModel=function(){return new co},Ti.initDiagramModel=hy=function(){return new co};function Yl(a,y){Ti.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Yt(Yl,Ti),Yl.constructGraphLinksModel=Ti.constructGraphLinksModel,Yl.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ee=Yl.prototype,Ee.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)+":"+$n(E)}}return y},Ee.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ee.gp=function(a){Ti.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ee.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&dt("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a)},Ee.Vl=function(a){return a},Ee.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;dt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=fs(a,x);b!==y&&(Yh(this,b,a),La(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ds(this,"nodeParentKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Ee.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=fs(a,y),y===void 0)?"":typeof y=="string"?y:(dt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Yl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Yl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"parentLinkCategory",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Yl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Yl.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||fs(a,this.Ke)===void 0||La(a,this.Ke,void 0),a)},Yl.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Ee=Yl.prototype,Ee.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ee.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;La(a,b,x),Ds(this,"nodeParentKey",Zn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ee.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=an();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ds(this,"nodeParentKey",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]);Mn(x)}},Ee.em=function(a){Ti.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Vh(this,y,a)},Ee.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.mh(a);Yh(this,y,a)},Ee.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ee.Tl=function(){return!0},Ee.xs=function(){return!0},Qe.Object.defineProperties(Yl.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Yl.prototype.setParentLinkCategoryForNodeData=Yl.prototype.Ms,Yl.prototype.getParentLinkCategoryForNodeData=Yl.prototype.ss,Yl.prototype.setParentKeyForNodeData=Yl.prototype.qe,Yl.prototype.getParentKeyForNodeData=Yl.prototype.mh,Yl.className="TreeModel",Ah.TreeModel=Yl;function Za(a){Fa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=kh,this.Ti=0,this.Zv=new Ue,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=kh,this.K=Ul,this.nd=Kg,this.hd=ry,this.tf=6,this.Nn=C0,a&&Object.assign(this,a)}Yt(Za,Fa),Za.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Za.prototype.qb=function(a){a.classType===Za?a===w0||a===P0||a===S0||a===x0||a===Kg?this.sorting=a:a===Tf||a===Gg||a===Ul||a===$c?this.direction=a:a===bc||a===Qc||a===kh||a===Fh?this.arrangement=a:(a===og||a===C0)&&(this.nodeDiameterFormula=a):Fa.prototype.qb.call(this,a)},Za.prototype.createNetwork=function(){return new Vg(this)},Za.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new En;y.addAll(a.iterator),a=new En;var x=new En,b=this.sort(y),E,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var ve=this.sweepAngle;if((!isFinite(ve)||360<ve||1>ve)&&(ve=360),y=this.spacing,isFinite(y)||(y=NaN),re===Fh&&oe===og?re=kh:re===Fh&&oe!==og&&(re=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Kg){for(oe=0;!(oe>=b.length)&&(a.add(b.M(oe)),!(oe+1>=b.length));oe+=2)x.add(b.M(oe+1));this.direction===Tf?(this.arrangement===Fh&&a.reverse(),b=new En,b.addAll(a),b.addAll(x)):(this.arrangement===Fh&&x.reverse(),b=new En,b.addAll(x),b.addAll(a))}oe=b.length;for(var Ce=z=E=0;Ce<b.length;Ce++){var Le=fe+ve*z*(this.direction===Ul?1:-1)/oe,De=b.M(Ce).diameter;isNaN(De)&&(De=qc(b.M(Ce),Le)),360>ve&&(Ce===0||Ce===b.length-1)&&(De/=2),E+=De,z++}if(isNaN(le)||re===Fh){if(isNaN(y)&&(y=6),re!==kh&&re!==Fh){for(z=-1/0,ee=0;ee<oe;ee++)Ce=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(Ce.diameter)&&qc(Ce,0),isNaN(E.diameter)&&qc(E,0),z=Math.max(z,(Ce.diameter+E.diameter)/2);ee=z+y,re===bc?le=(z+y)/(2*Math.PI/oe):le=v0(this,ee*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180)}else le=v0(this,E+(360<=ve?oe:oe-1)*(re!==Fh?y:1.6*y),ue,fe*Math.PI/180,ve*Math.PI/180);z=le*ue}else if(z=le*ue,Ce=fy(this,le,z,fe*Math.PI/180,ve*Math.PI/180),isNaN(y))(re===kh||re===Fh)&&(y=(Ce-E)/(360<=ve?oe:oe-1));else if(re===kh||re===Fh)Ce=(Ce-E)/(360<=ve?oe:oe-1),Ce<y?(le=v0(this,E+y*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180),z=le*ue):y=Ce;else{for(ee=-1/0,E=0;E<oe;E++)Le=b.M(E),De=b.M(E===oe-1?0:E+1),isNaN(Le.diameter)&&qc(Le,0),isNaN(De.diameter)&&qc(De,0),ee=Math.max(ee,(Le.diameter+De.diameter)/2);ee+=y,E=v0(this,ee*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180),E>le?(le=E,z=le*ue):ee=Ce/(360<=ve?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ue,this.lw=fe,this.Wp=ve,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,re=this.lc,le=this.lw,ue=this.Wp,fe=this.Ti,ve=this.me,oe=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Fh)if(this.direction===Tf||this.direction===Gg){switch(ee=0,b){case Qc:ee=180*y0(this,re,ve,le,oe)/Math.PI;break;case kh:oe=y=0,ee=a.first(),ee!==null&&(y=qc(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=qc(ee,Math.PI/2)),ee=180*y0(this,re,ve,le,fe+(y+oe)/2)/Math.PI;break;case bc:ee=ue/y.length}if(this.direction===Tf){switch(b){case Qc:Kp(this,a,le,$c);break;case kh:Gp(this,a,le,$c);break;case bc:Zp(this,a,ue/2,le,$c)}switch(b){case Qc:Kp(this,x,le+ee,Ul);break;case kh:Gp(this,x,le+ee,Ul);break;case bc:Zp(this,x,ue/2,le+ee,Ul)}}else{switch(b){case Qc:Kp(this,x,le,$c);break;case kh:Gp(this,x,le,$c);break;case bc:Zp(this,x,ue/2,le,$c)}switch(b){case Qc:Kp(this,a,le+ee,Ul);break;case kh:Gp(this,a,le+ee,Ul);break;case bc:Zp(this,a,ue/2,le+ee,Ul)}}}else switch(b){case Qc:Kp(this,y,le,this.direction);break;case kh:Gp(this,y,le,this.direction);break;case bc:Zp(this,y,ue,le,this.direction);break;case Fh:T1(this,y,ue,le,this.direction)}else T1(this,y,ue,le-ue/2,Ul)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Zp(a,y,x,b,E){var z=a.Wp,ee=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=b+(E===Ul?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),fe=ee*Math.tan(le)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ue.centerX=fe*Math.cos(le),ue.centerY=fe*Math.sin(le),ue.actualAngle=180*le/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),ue=y.M(oe===re-1?0:oe+1),fe=z*Math.sin(x);le.centerX=E*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&qc(le,0),isNaN(ue.diameter)&&qc(ue,0),le=y0(a,E,z,b===Ul?x:-x,(le.diameter+ue.diameter)/2+ee),x+=b===Ul?le:-le}}function Kp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=E*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=y0(a,E,z,b===Ul?x:-x,ee),x+=b===Ul?le:-le}}function T1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Vp,360>x){for(z=b+(E===Ul?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,b,E)}else D1(a,y,x,b,E);a.Xr.commit(y)}function D1(a,y,x,b,E){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=a.me*Math.sin(b*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=Ue.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=oe,ue[fe].centerY=le,!(fe>=ue.length-1));fe++)O1(a,oe,le,ue,fe,E,z)||I1(a,oe,le,ue,fe,E,z),oe=z.x,le=z.y;if(Ue.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,le=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var ve=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),Ce=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(Ce)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<Ce?Ce:1>Math.abs(ve)?0:ve,oe=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=oe<z,(oe=E===Ul?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,D1(a,y,x,b,E))}}}function B1(a,y,x,b,E){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=ee*Math.sin(b*Math.PI/180),ue=Ue.alloc(),fe=y.Fa(),ve=0;ve<fe.length&&(fe[ve].centerX=oe,fe[ve].centerY=le,!(ve>=fe.length-1));ve++)O1(a,oe,le,fe,ve,E,ue)||I1(a,oe,le,fe,ve,E,ue),oe=ue.x,le=ue.y;if(Ue.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=E===Ul?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<fe.length;oe++)ee.mk[oe]=fe[oe].bounds.x,ee.tm[oe]=fe[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,B1(a,y,x,b,E))}}function O1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===Ul)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(le=-le),Math.abs(x-le)>(b[E].height+b[E+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function I1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Ul)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=le,ee.y=z;return}b=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=le,ee.y=z;return}b=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==b&&(le=-le),ee.x=le,ee.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 Ue(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 ee=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){b!==void 0&&E!==void 0?oe=b+le*E/z:oe=le*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}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,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(b+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=E)return re*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:dt("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new En;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>E&&(E=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>E&&(E=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)E=a.indexOf(ee.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 ee=[],re=[];b=[],E=new En;for(var oe=0,le=0;le<y.length;le++){var ue=y[le].length;if(ue===1)b.push(le);else if(ue===0)E.add(a.M(le));else{if(oe===0)x.push(le);else{for(var fe=ue=1/0,ve=-1,Ce=[],Le=0;Le<x.length;Le++)0>y[x[Le]].indexOf(x[Le===x.length-1?0:Le+1])&&Ce.push(Le===x.length-1?0:Le+1);if(Ce.length===0)for(Le=0;Le<x.length;Le++)Ce.push(Le);for(Le=0;Le<Ce.length;Le++){for(var De=Ce[Le],_e=y[le],Ze=0,st=0;st<ee.length;st++){var ht=z[ee[st]],mt=z[re[st]];if(ht<mt){var Lt=ht;ht=mt}else Lt=mt;if(Lt<De&&De<=ht)for(mt=0;mt<_e.length;mt++){var Vt=_e[mt];0>x.indexOf(Vt)||Lt<z[Vt]&&z[Vt]<ht||Lt===z[Vt]||ht===z[Vt]||Ze++}else for(mt=0;mt<_e.length;mt++)Vt=_e[mt],0>x.indexOf(Vt)||Lt<z[Vt]&&z[Vt]<ht&&Lt!==z[Vt]&&ht!==z[Vt]&&Ze++}for(_e=Ze,st=Ze=0;st<y[le].length;st++)Lt=x.indexOf(y[le][st]),0<=Lt&&(Lt=Math.abs(De-(Lt>=De?Lt+1:Lt)),Ze+=Lt<x.length+1-Lt?Lt:x.length+1-Lt);for(st=0;st<ee.length;st++)Lt=z[ee[st]],ht=z[re[st]],Lt>=De&&Lt++,ht>=De&&ht++,Lt>ht&&(mt=ht,ht=Lt,Lt=mt),ht-Lt<(x.length+2)/2==(Lt<De&&De<=ht)&&Ze++;(_e<ue||_e===ue&&Ze<fe)&&(ue=_e,fe=Ze,ve=De)}for(x.splice(ve,0,le),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[le].length;ue++)fe=y[le][ue],0<=x.indexOf(fe)&&(ee.push(le),re.push(fe))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<b.length;re++)if(oe=b[re],le=y[oe][0],ue=x.indexOf(le),0<=ue){for(ve=fe=0;ve<y[le].length;ve++)Ce=x.indexOf(y[le][ve]),0>Ce||Ce===ue||(Le=Ce>ue?Ce-ue:ue-Ce,fe+=Ce<ue!=Le>ee-Le?1:-1);x.splice(0>fe?ue:ue+1,0,oe),b.splice(re,1),re--}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},Qe.Object.defineProperties(Za.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Fh&&a!==kh&&a!==Qc&&a!==bc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ul&&a!==$c&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Kg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==C0&&a!==og||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var kh=new sn(Za,"ConstantSpacing",0),Qc=new sn(Za,"ConstantDistance",1),bc=new sn(Za,"ConstantAngle",2),Fh=new sn(Za,"Packed",3),Ul=new sn(Za,"Clockwise",4),$c=new sn(Za,"Counterclockwise",5),Tf=new sn(Za,"BidirectionalLeft",6),Gg=new sn(Za,"BidirectionalRight",7),S0=new sn(Za,"Forwards",8),x0=new sn(Za,"Reverse",9),w0=new sn(Za,"Ascending",10),P0=new sn(Za,"Descending",11),Kg=new sn(Za,"Optimized",12),C0=new sn(Za,"Pythagorean",13),og=new sn(Za,"Circular",14);Za.className="CircularLayout",Za.ConstantSpacing=kh,Za.ConstantDistance=Qc,Za.ConstantAngle=bc,Za.Packed=Fh,Za.Clockwise=Ul,Za.Counterclockwise=$c,Za.BidirectionalLeft=Tf,Za.BidirectionalRight=Gg,Za.Forwards=S0,Za.Reverse=x0,Za.Ascending=w0,Za.Descending=P0,Za.Optimized=Kg,Za.Pythagorean=C0,Za.Circular=og;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Vp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Vp.className="VertexArrangement";function Vg(a){ua.call(this,a)}Yt(Vg,ua),Vg.prototype.createVertex=function(){return new Yp(this)},Vg.prototype.createEdge=function(){return new b0(this)},Vg.className="CircularNetwork";function Yp(a){zs.call(this,a),this.u=this.Si=NaN}Yt(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}Qe.Object.defineProperties(Yp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Yp.className="CircularVertex";function b0(a){Mu.call(this,a)}Yt(b0,Mu),b0.className="CircularEdge";function pl(a){Fa.call(this),this.ah=null,this.An=0,this.$d=new ri(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Yt(pl,Fa),pl.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},pl.prototype.createNetwork=function(){return new ag(this)},pl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}R1(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var re=ee.count,oe=!0;z=E=0;for(var le=an(),ue=0;ue<re+y.vertexes.count+2;ue++)le[ue]=null;re=0,ee.reset();for(var fe=hn.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),oe)oe=!1,E=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new Ue(fe.x+fe.width+b.width,fe.y),le[1]=new Ue(fe.x,fe.y+fe.height+b.height),re=2;else{var ve=z1(le,re,E,z,fe.width,fe.height,b),Ce=le[ve],Le=new Ue(Ce.x+fe.width+b.width,Ce.y),De=new Ue(Ce.x,Ce.y+fe.height+b.height);for(ve+1<re&&le.splice(ve+1,0,null),le[ve]=Le,le[ve+1]=De,re++,ve=Ce.x-fe.x,Ce=Ce.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Le=ue.value,Le.centerX+=ve,Le.centerY+=Ce}for(hn.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,ve=ee.bounds,2>re?(E=ve.x+ve.width/2,z=ve.y+ve.height/2,le[0]=new Ue(ve.x+ve.width+b.width,ve.y),le[1]=new Ue(ve.x,ve.y+ve.height+b.height),re=2):(oe=z1(le,re,E,z,ve.width,ve.height,b),fe=le[oe],Ce=new Ue(fe.x+ve.width+b.width,fe.y),ve=new Ue(fe.x,fe.y+ve.height+b.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=Ce,le[oe+1]=ve,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(Mn(le),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(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.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 ee=new W1;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new En),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,ee=re.toVertex,E.network===b&&ee.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new En,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new En,ee.Hj=re),re.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Nt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var oe=E.Hj;if(oe!==null&&0<oe.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var le=re=0,ue=oe.count-ee;ue<oe.count;ue++){var fe=oe.M(ue),ve=null;for(z=fe.edges.iterator;z.next();){var Ce=z.value;if(Ce.Ax(fe)===E){ve=Ce;break}}ve!==null&&(le+=ve.length,re+=fe.width*fe.height)}z=E.centerX,oe=E.centerY,ue=E.width,fe=E.height,ve=E.focus,Ce=ue*fe,1>Ce&&(Ce=1),re=Nt.sqrt((re+Ce+le*le*4/(ee*ee))/Ce),ee=(re-1)*ue/2,re=(re-1)*fe/2,E.bounds=new hn(z-ve.x-ee,oe-ve.y-re,ue+2*ee,fe+2*re),E.focus=new Ue(ve.x+ee,ve.y+re)}}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,ee=E.Tv;b.bounds=new hn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Ue(z,ee),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,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Nt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,le=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?oe++:(re=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(Ce,Le){return Ce===null||Le===null||Ce===Le?0:Le.width*Le.height-Ce.width*Ce.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,fe=oe.edges.iterator;fe.next();){ue=fe.value;break}fe=oe.width;var ve=oe.height;fe=Nt.sqrt(fe*fe+ve*ve)/2,ue=z+ue.length+fe,fe=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=b+ue*Math.cos(fe),oe.centerY=E+ue*Math.sin(fe),re++}}}}function z1(a,y,x,b,E,z,ee){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var ue=a[le],fe=ue.x-x,ve=ue.y-b;if(fe=fe*fe+ve*ve,fe<re){for(ve=le-1;0<=ve;ve--)if(a[ve].y>ue.y&&a[ve].x-ue.x<E+ee.width)continue e;for(ve=le+1;ve<y;ve++)if(a[ve].x>ue.x&&a[ve].y-ue.y<z+ee.height)continue e;oe=le,re=fe}}return oe}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,ee=z.x;y=z.y;var re=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Nt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Nt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Nt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Nt.sqrt(b*b+a*a)):b-(ee+re):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,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,b=Math.min(b,oe),E=Math.max(E,oe),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(De,_e){return De===null||_e===null||De===_e?0:De.centerX-_e.centerX}):y.sort(function(De,_e){return De===null||_e===null||De===_e?0:De.centerY-_e.centerY}),x=a.Zf;var le=b=re=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,re=ee.focus,oe=b.x+re.x;var ue=b.y+re.y;b=ee.charge*a.electricalFieldX(oe,ue),le=ee.charge*a.electricalFieldY(oe,ue),b+=ee.mass*a.gravitationalFieldX(oe,ue),le+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=b,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var ve=y[fe];if(ve!==ee){b=ve.bounds,re=ve.focus,le=b.x+re.x;var Ce=b.y+re.y;if(oe-le>x||le-oe>x){if(E)break}else if(ue-Ce>x||Ce-ue>x){if(!E)break}else{var Le=j1(ee,ve);1>Le?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),Le=b.random(),re=b.random(),oe>le?(b=Math.abs(ve.bounds.right-ee.bounds.x),b=(1+b)*Le):oe<le?(b=Math.abs(ve.bounds.x-ee.bounds.right),b=-(1+b)*Le):(b=Math.max(ve.width,ee.width),b=(1+b)*Le-b/2),ue>Ce?(le=Math.abs(ve.bounds.bottom-ee.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(ve.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(ve.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*ve.charge)/(Le*Le),b=(le-oe)/Le*re,le=(Ce-ue)/Le*re),ee.forceX+=b,ee.forceY+=le,ve.forceX-=b,ve.forceY-=le}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,b=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,fe=z.focus,oe=ue.x+fe.x,ue=ue.y+fe.y,fe=j1(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new E0),re=fe.random(),fe=fe.random(),b=(b>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),b=(oe-b)/fe*re,le=(ue-ee)/fe*re),x.forceX+=b,x.forceY+=le,z.forceX-=b,z.forceY-=le;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=hn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,hn.free(x)}x=hn.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()}hn.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},Qe.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"&&dt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),pl.className="ForceDirectedLayout";function W1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}W1.className="ForceDirectedSubnet";function ag(a){ua.call(this,a)}Yt(ag,ua),ag.prototype.createVertex=function(){return new Up(this)},ag.prototype.createEdge=function(){return new Xp(this)},ag.className="ForceDirectedNetwork";function Up(a){zs.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Yt(Up,zs),Qe.Object.defineProperties(Up.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Up.className="ForceDirectedVertex";function Xp(a){Mu.call(this,a),this.j=this.o=NaN}Yt(Xp,Mu),Qe.Object.defineProperties(Xp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Xp.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Vo(a){Fa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=N0,this.Qk=T0,this.bj=4,this.rk=D0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Ue,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Yt(Vo,Fa),Vo.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Vo.prototype.qb=function(a){a.classType===Vo?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:dt("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},Vo.prototype.createNetwork=function(){return new Ug(this)},Vo.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var ee=0,re=0,oe=0,le=0;if(b.link!==null){if(re=b.link,re===null)continue;var ue=E.node;if(ee=z.node,ue===null||ee===null)continue;var fe=re.fromNode;oe=re.toNode;for(var ve=re.fromPort;ve!==null&&!ve.Ed();)ve=ve.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){le=fe;var Ce=ve;fe=oe,ve=re,oe=le,re=Ce}var Le=E.focus;le=z.focus;var De=b.rev?z.bounds:E.bounds;Ce=Ue.alloc(),ue!==fe?De.w()&&fe.isVisible()?fe.actualBounds.w()?(Sc(fe,ve,so,Ce),Ce.x+=fe.actualBounds.x-De.x,Ce.y+=fe.actualBounds.y-De.y):(Sc(fe,ve,so,Ce),Ce.w()||Ce.assign(Le)):Ce.assign(Le):De.w()?(Sc(fe,ve,so,Ce),Ce.w()||Ce.assign(Le)):Ce.assign(Le),fe=b.rev?E.bounds:z.bounds,ue=Ue.alloc(),ee!==oe?fe.w()&&oe.isVisible()?oe.actualBounds.w()?(Sc(oe,re,so,ue),ue.x+=oe.actualBounds.x-fe.x,ue.y+=oe.actualBounds.y-fe.y):(Sc(oe,re,so,ue),ue.w()||ue.assign(le)):ue.assign(le):fe.w()?(Sc(oe,re,so,ue),ue.w()||ue.assign(le)):ue.assign(le),this.K===90||this.K===270?(ee=Math.round((Ce.x-Le.x)/this.kc),oe=Ce.x,re=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((Ce.y-Le.y)/this.kc),oe=Ce.y,re=Math.round((ue.y-le.y)/this.kc),le=ue.y),Ue.free(Ce),Ue.free(ue),b.portFromColOffset=ee,b.portFromPos=oe,b.portToColOffset=re,b.portToPos=le}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ce=E.layer,ue=z.layer,fe=0,De=b.link,De!==null){var _e=De.fromPort,Ze=De.toPort;if(_e!==null&&Ze!==null){var st=De.fromNode;if(ve=De.toNode,st!==null&&ve!==null){var ht=k0(this,!0),mt=k0(this,!1),Lt=this.setsPortSpots?ht:De.computeSpot(!0,_e);Le=this.setsPortSpots?mt:De.computeSpot(!1,Ze);var Vt=De.isOrthogonal;Lt.$c()&&Lt.Hf(mt)&&Le.$c()&&Le.Hf(ht)?fe=0:(ht=De.getLinkPoint(st,_e,Lt,!0,Vt,ve,Ze,Ue.alloc()),mt=De.getLinkDirection(st,_e,ht,Lt,!0,Vt,ve,Ze),Ue.free(ht),Lt.ys()||mt!==Q1(this,b,!0)?this.setsPortSpots&&st!==null&&st.ports.count===1&&b.rev&&(fe+=1):fe+=1,Lt=De.getLinkPoint(ve,Ze,Le,!1,Vt,st,_e,Ue.alloc()),De=De.getLinkDirection(ve,Ze,Lt,Le,!1,Vt,st,_e),Ue.free(Lt),Le.ys()||De!==Q1(this,b,!1)?this.setsPortSpots&&ve!==null&&ve.ports.count===1&&b.rev&&(fe+=2):fe+=2)}}}if(ve=fe,fe=ve===1||ve===3,(ve=ve===2||ve===3)&&(Le=a.createVertex(),Le.node=null,Le.Dj=1,Le.layer=Ce,Le.near=E,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Le),De=1,fe&&De--,Ce-ue>De&&0<Ce){for(b.valid=!1,Le=a.createVertex(),Le.node=null,Le.Dj=2,Le.layer=Ce-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=ve?0:ee,E.portToColOffset=0,E.portFromPos=ve?0:oe,E.portToPos=0,E=Le,Ce--;Ce-ue>De&&0<Ce;)Le=a.createVertex(),Le.node=null,Le.Dj=3,Le.layer=Ce-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Le,Ce--;E=a.Zj(Le,z,b.link),E.valid=!fe,fe&&(Le.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=le}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),ef(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Vo.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Vo.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Vo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function au(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function _u(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function Z1(a,y,x){var b=_c(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<E;ee++){var re=0,oe=b[ee],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var fe=b[ue];fe.near===le&&fe.Dj===le.Dj||re++}else for(ue=ee-1;ue>oe;ue--)fe=b[ue],fe.near===le&&fe.Dj===le.Dj||re++;var ve;if(0<=x)for(oe=b[ee].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var Ce=oe[le];if(Ce.valid&&Ce.fromVertex.layer!==y)for(fe=Ce.fromVertex.index,ue=Ce.portToPos,Ce=Ce.portFromPos,ve=le+1;ve<oe.length;ve++){var Le=oe[ve];if(Le.valid&&Le.fromVertex.layer!==y){var De=Le.fromVertex.index,_e=Le.portToPos;Le=Le.portFromPos,ue<_e&&(fe>De||fe===De&&Ce>Le)&&re++,_e<ue&&(De>fe||De===fe&&Le>Ce)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Ce=oe[le],Ce.valid&&Ce.toVertex.layer!==y)for(fe=Ce.toVertex.index,ue=Ce.portToPos,Ce=Ce.portFromPos,ve=le+1;ve<oe.length;ve++)Le=oe[ve],Le.valid&&Le.toVertex.layer!==y&&(De=Le.toVertex.index,_e=Le.portToPos,Le=Le.portFromPos,Ce<Le&&(fe>De||fe===De&&ue>_e)&&re++,Le<Ce&&(De>fe||De===fe&&_e>ue)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var Ze=0,st=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var ht=b[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Ce=re[le],Ce.valid&&Ce.fromVertex.layer!==y)for(fe=Ce.fromVertex.index,Ce=Ce.portFromPos,ve=0;ve<ht.length;ve++)Le=ht[ve],Le.valid&&Le.fromVertex.layer!==y&&(De=Le.fromVertex.index,Le=Le.portFromPos,(fe<De||fe===De&&Ce<Le)&&st++,(De<fe||De===fe&&Le<Ce)&&Ze++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,ht=b[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Ce=re[le],Ce.valid&&Ce.toVertex.layer!==y)for(fe=Ce.toVertex.index,ue=Ce.portToPos,ve=0;ve<ht.length;ve++)Le=ht[ve],Le.valid&&Le.toVertex.layer!==y&&(De=Le.toVertex.index,_e=Le.portToPos,(fe<De||fe===De&&ue<_e)&&st++,(De<fe||De===fe&&_e<ue)&&Ze++)}z[ee*E+oe]=Ze,z[oe*E+ee]=st}}return ef(a,y,b),z}Vo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=_c(b,E),ee=b.tc[E],re=0,oe=0;oe<ee;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var ue=0;ue<le.length;ue++){var fe=le[ue];if(fe.valid&&fe.toVertex.layer!==E){var ve=fe.fromVertex.column+fe.portFromColOffset,Ce=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(ve-Ce)+1)*gy(fe)}}}ef(b,E,z),y+=re}return y}Vo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function py(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=0,ve=re.near;if(ve!==null&&ve.layer===re.layer&&(ue+=ve.column-1,fe++),oe!==null)for(ve=0;ve<oe.length;ve++){re=oe[ve];var Ce=re.fromVertex;re.valid&&!re.rev&&Ce.layer!==y&&(ue+=Ce.column,fe++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],ve=re.toVertex,re.valid&&!re.rev&&ve.layer!==y&&(ue+=ve.column,fe++);z[ee]=fe===0?-1:ue/fe}return ef(a,y,b),z}function G1(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=[],ve=re.near;if(ve!==null&&ve.layer===re.layer&&(fe[ue]=ve.column-1,ue++),re=void 0,oe!==null)for(ve=0;ve<oe.length;ve++){re=oe[ve];var Ce=re.fromVertex;re.valid&&!re.rev&&Ce.layer!==y&&(fe[ue]=Ce.column+re.portFromColOffset,ue++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],ve=re.toVertex,re.valid&&!re.rev&&ve.layer!==y&&(fe[ue]=ve.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Le,De){return Le-De}),le=ue>>1,z[ee]=ue&1?fe[le]:fe[le-1]+fe[le]>>1)}return ef(a,y,b),z}function Jp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Jp(a,oe,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Jp(a,oe,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)my(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Vo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=K1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=K1(a);for(E=V1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=V1(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(E===null||z<oe-le)&&(E=re,z=oe-le)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case F0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Qp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function K1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function V1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,vy(a,E))}y.finish=a.Kn,a.Kn++}Vo.prototype.assignLayers=function(){switch(this.Zk){case xy:Y1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case N0:for(Y1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Y1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=U1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function U1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,U1(a,z)+E)}y.layer=x}else x=y.layer;return x}function X1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,X1(a,z)+E)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var ee=b[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Jp(a,re,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ue=0,fe=!1,ve=le.sourceEdgesArrayAccess;E=ve.length;for(var Ce=0;Ce<E;Ce++){var Le=ve[Ce],De=Le.fromVertex;ue+=1,De.component!==1&&(z+=1,De=De.layer-le.layer,Le=a.linkMinLength(Le),b=Math.min(b,De-Le))}for(ve=le.destinationEdgesArrayAccess,E=ve.length,Ce=0;Ce<E;Ce++)Le=ve[Ce].toVertex,--ue,Le.component!==1?--z:fe=!0;(oe===null||ue<re)&&!fe&&(oe=le,re=ue)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Jp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(le=0,ue=!1,ve=ee.sourceEdgesArrayAccess,fe=ve.length,Ce=0;Ce<fe;Ce++)Le=ve[Ce].fromVertex,le+=1,Le.component!==1?b+=1:ue=!0;for(ve=ee.destinationEdgesArrayAccess,fe=ve.length,Ce=0;Ce<fe;Ce++)Le=ve[Ce],De=Le.toVertex,--le,De.component!==1&&(--b,De=ee.layer-De.layer,Le=a.linkMinLength(Le),E=Math.min(E,De-Le));(re===null||le>z)&&!ue&&(re=ee,z=le)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function Q1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Vo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case T0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x)}};function $1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&$1(a,b))}function q1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&q1(a,b))}Vo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=au(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),fh(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=au(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),fh(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=au(this))}for(_u(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),fh(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=au(this)),b=this.Ia;0<=b;b--)M0(this,b,0),fh(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=au(this))}_u(this,y);var z,ee,re;switch(this.rk){case by:break;case Ey:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,-1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,0)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,0)||z;E>=a?_u(this,y):(a=E,y=au(this))}break;default:case D0:for(x=this.Ia,ee=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,-1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=fh(this,b,0)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=fh(this,b,0)||z;E>=a?_u(this,y):(a=E,y=au(this))}}_u(this,y)};function M0(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),ee=py(a,y,x);for(x=0;x<E;x++)ee[x]===-1&&(ee[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=b[x],b[x]=b[x+1],b[x+1]=oe);for(x=z=0;x<E;x++)oe=b[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);ef(a,y,b)}function fh(a,y,x){var b=_c(a,y),E=a.tc[y];x=Z1(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<E-1;z++){var ue=x[b[z].index*E+b[z+1].index],fe=x[b[z+1].index*E+b[z].index],ve=0,Ce=0,Le=b[z].column,De=b[z+1].column,_e=a.nodeMinColumnSpace(b[z],!0),Ze=a.nodeMinColumnSpace(b[z],!1),st=a.nodeMinColumnSpace(b[z+1],!0),ht=a.nodeMinColumnSpace(b[z+1],!1);_e=Le-_e+st,Ze=De-Ze+ht;var mt=b[z].sourceEdges.iterator;for(mt.reset();mt.next();)if(st=mt.value,ht=st.fromVertex,st.valid&&ht.layer===y){for(st=0;b[st]!==ht;)st++;st<z&&(ve+=2*(z-st),Ce+=2*(z+1-st)),st===z+1&&(ve+=1),st>z+1&&(ve+=4*(st-z),Ce+=4*(st-(z+1)))}for(mt=b[z].destinationEdges.iterator,mt.reset();mt.next();)if(st=mt.value,ht=st.toVertex,st.valid&&ht.layer===y){for(st=0;b[st]!==ht;)st++;st===z+1&&(Ce+=1)}for(mt=b[z+1].sourceEdges.iterator,mt.reset();mt.next();)if(st=mt.value,ht=st.fromVertex,st.valid&&ht.layer===y){for(st=0;b[st]!==ht;)st++;st<z&&(ve+=2*(z+1-st),Ce+=2*(z-st)),st===z&&(Ce+=1),st>z+1&&(ve+=4*(st-(z+1)),Ce+=4*(st-z))}for(mt=b[z+1].destinationEdges.iterator,mt.reset();mt.next();)if(st=mt.value,ht=st.toVertex,st.valid&&ht.layer===y){for(st=0;b[st]!==ht;)st++;st===z&&(ve+=1)}st=ht=0,mt=ee[b[z].index];var Lt=re[b[z].index],Vt=ee[b[z+1].index],di=re[b[z+1].index];mt!==-1&&(ht+=Math.abs(mt-Le),st+=Math.abs(mt-Ze)),Lt!==-1&&(ht+=Math.abs(Lt-Le),st+=Math.abs(Lt-Ze)),Vt!==-1&&(ht+=Math.abs(Vt-De),st+=Math.abs(Vt-_e)),di!==-1&&(ht+=Math.abs(di-De),st+=Math.abs(di-_e)),(Ce<ve-.5||Ce===ve&&fe<ue-.5||Ce===ve&&fe===ue&&st<ht-.5)&&(le=oe=!0,b[z].column=Ze,b[z+1].column=_e,ue=b[z],b[z]=b[z+1],b[z+1]=ue)}for(z=0;z<E;z++)b[z].index=z;return ef(a,y,b),oe}Vo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Ux)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,-1)||x;x=Yg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(_1(this,-1),_1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,0)||x}}else Gx(this)};function Yg(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=_c(a,y),z=a.tc[y],ee=py(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var re=py(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var oe=!1,le=!0;le;)for(le=!1,b=0;b<z;b++){var ue=E[b].column,fe=a.nodeMinColumnSpace(E[b],!0),ve=a.nodeMinColumnSpace(E[b],!1),Ce=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?Ce=ue-1:Ce=ue,fe=b+1>=z||E[b+1].column-ue-1>ve+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Le=ve=0,De=0;if(0>=x)for(var _e=E[b].sourceEdges.iterator;_e.next();){var Ze=_e.value,st=Ze.fromVertex;if(Ze.valid&&st.layer!==y){var ht=gy(Ze),mt=Ze.portFromColOffset;Ze=Ze.portToColOffset,st=st.column,ve+=(Math.abs(ue+Ze-(st+mt))+1)*ht,Le+=(Math.abs(Ce+Ze-(st+mt))+1)*ht,De+=(Math.abs(fe+Ze-(st+mt))+1)*ht}}if(0<=x)for(_e=E[b].destinationEdges.iterator;_e.next();)Ze=_e.value,st=Ze.toVertex,Ze.valid&&st.layer!==y&&(ht=gy(Ze),mt=Ze.portFromColOffset,Ze=Ze.portToColOffset,st=st.column,ve+=(Math.abs(ue+mt-(st+Ze))+1)*ht,Le+=(Math.abs(Ce+mt-(st+Ze))+1)*ht,De+=(Math.abs(fe+mt-(st+Ze))+1)*ht);Ze=mt=ht=0,_e=ee[E[b].index],st=re[E[b].index],_e!==-1&&(ht+=Math.abs(_e-ue),mt+=Math.abs(_e-Ce),Ze+=Math.abs(_e-fe)),st!==-1&&(ht+=Math.abs(st-ue),mt+=Math.abs(st-Ce),Ze+=Math.abs(st-fe)),Le<ve||Le===ve&&mt<ht?(le=oe=!0,E[b].column=Ce):(De<ve||De===ve&&Ze<ht)&&(le=oe=!0,E[b].column=fe)}return ef(a,y,E),a.normalize(),oe}function yy(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),ee=[];for(x=0;x<E;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,oe=a.nodeMinColumnSpace(b[x],!0),le=a.nodeMinColumnSpace(b[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===E-1)ue=re;else if(x===0){var fe=b[x+1].column;fe-re===le+a.nodeMinColumnSpace(b[x+1],!0)?ue=re-1:ue=re}else x===E-1?(fe=b[x-1].column,ue=re-fe===oe+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=(oe+le)/2|0);else x===0&&x===E-1?ue=ee[x]:x===0?(fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=Math.min(ee[x],le)):x===E-1?(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,oe<ee[x]&&ee[x]<le?ue=ee[x]:oe>=ee[x]?ue=oe:le<=ee[x]&&(ue=le));ue!==re&&(z=!0,b[x].column=ue)}ef(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),ee=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+ee>=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 ee=a.network.vertexes.iterator;ee.next();){b=ee.value;var re=b.column-a.nodeMinColumnSpace(b,!0),oe=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&oe>=y&&(E[b.layer]=!0),re<=x&&oe>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function _1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Zx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=au(a),z=L0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var ee=L0(a);ee>z?_u(a,E):ee<z&&(z=ee,E=au(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=au(a),z=L0(a),b=z+1;z<b;)b=z,ex(a,x,-1),ee=L0(a),ee>z?_u(a,E):ee<z&&(z=ee,E=au(a));a.normalize()}function ex(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(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 ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)E[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee+1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee+1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee-1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee-1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),E[oe])for(E[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.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=an(),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,ee=null,re=null,oe=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,ve=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=A0(a,y,!1,!1)),b=yi(y),E=b.next();!E.done;E=b.next())E.value.reverse();ve&&(a.verticalAlignment(y,x,!1),oe=A0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=A0(a,y,!0,!0)),Mn(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ce){var Le=an();le&&Le.push(z.get(Ce)),ue&&Le.push(ee.get(Ce)),fe&&Le.push(re.get(Ce)),ve&&Le.push(oe.get(Ce)),Le.sort(function(_e,Ze){return _e-Ze});var De=Le.length;De=(Le[Math.floor((De-1)/2)]+Le[Math.ceil((De-1)/2)])/2,Mn(Le),Ce.zc=De})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],re=a[b+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var ue=Ly(le);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(oe===re.length-1||fe){for(ue=ee.length-1,fe&&(ue=Ly(le)[0].index);z<=oe;){if(le=re[z],!le.bo){fe=[];for(var ve=yi(le.sourceEdgesArrayAccess),Ce=ve.next();!Ce.done;Ce=ve.next())Ce=Ce.value,Ce.valid&&fe.push(Ce);le.bo=fe}for(le=yi(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,ve=fe.fromVertex.index,(ve<E||ve>ue)&&y.add(fe);z++}E=ue}}}Vo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=yi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=yi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?Ly(z):Xx(z),re=ee.length;if(0<re){ee.sort(function(fe,ve){return fe.vi-ve.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ee[re],ue=void 0;ue=x?B0(le,z):B0(z,le),!y.contains(ue)&&E<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,E=le.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=yi(y),ee=z.next();!ee.done;ee=z.next()){var re=yi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=yi(y),re=z.next();!re.done;re=z.next()){re=yi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,ue=oe;ue.align!==oe;){var fe=ue.align,ve=ee?ue.width:ue.height,Ce=ee?fe.width:fe.height;if(x){var Le=B0(ue,fe),De=Le.portFromPos,_e=Le.portToPos;Le.link!==null&&(ue.node&&ue.node!==Le.link.fromNode&&(De=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.toNode&&(_e=ee?fe.focusX:fe.focusY))}else Le=B0(fe,ue),De=Le.portToPos,_e=Le.portFromPos,Le.link!==null&&(ue.node&&ue.node!==Le.link.toNode&&(De=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.fromNode&&(_e=ee?fe.focusX:fe.focusY));ve=b?ue.qg+(ve-De)-(Ce-_e):ue.qg+De-_e,fe.qg=ve,le=Math.min(le,ve),ue=ue.align}ue=oe;do ue.qg=ue.qg-le,ue=ue.align;while(ue!==oe)}}for(x=yi(y),ee=x.next();!ee.done;ee=x.next())for(z=yi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&tx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=nx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new ki,y=yi(y),ee=y.next();!ee.done;ee=y.next())for(x=yi(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=E?ee.width:ee.height,a.add(ee,b?-ee.zc-z:ee.zc);return a}function tx(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;tx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+ee-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&&dt("Could not determine previous vertex in layer"),y[x][a-1]}Vo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=an(),E=an(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=Yx(this,y[ee],b,E,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?b[x]-b[ee]:E[x]-E[ee],z.delta!==0&&y[ee].each(function(oe){return function(le){le.value+=oe.delta}}(z)));Mn(b),Mn(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,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[E]=z,b[E]=ee,ee-z}Vo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?es:bs:a.K===90?y?bs:es:a.K===180?y?hs:Ms:y?Ms:hs}Vo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,ee=E=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,ue=oe.column|0;b?(ee=y.x+this.kc*ue,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=le,x&&isFinite(oe.zc)&&(b?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),E=Math.min(oe.y,E),b?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=E,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-E,this.Rf=new Ue(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new hn(0,0,x,Math.abs(this.Ta[0]))):y.push(new hn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new hn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new hn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new hn(0,0,Math.abs(this.Ta[0]),x)):y.push(new hn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new hn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new hn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Vo.prototype.commitLayers=function(){},Vo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,ee=b.fromPort,re=b.toPort;if(E!==null){var oe=E.findVisibleNode();oe!==null&&oe!==E&&(E=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===zu&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,ee!==null&&le===Ua&&(b=!0),re!==null&&oe===Ua&&(x=!0),(b||x)&&(oe=null,b&&(oe=y.getLinkPointFromPoint(E,ee,ee.ga(so),y.i(3),!0),oe.w()||oe.set(E.actualBounds.center),y.L(0,oe.x,oe.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(so),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.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(ue.layer===fe.layer)y.zf();else{var ve=!1,Ce=!1,Le=this.ie,De=y.firstPickIndex+1;if(y.isOrthogonal){Ce=!0;var _e=y.pointsCount;4<_e&&y.points.removeRange(2,_e-3)}else if(y.curve===zu)ve=!0,_e=y.pointsCount,4<_e&&y.points.removeRange(2,_e-3),_e===4&&(De=2);else{_e=y.pointsCount;var Ze=le===Ua,st=oe===Ua;2<_e&&Ze&&st?y.points.removeRange(1,_e-2):3<_e&&Ze&&!st?y.points.removeRange(1,_e-3):3<_e&&!Ze&&st?y.points.removeRange(2,_e-2):4<_e&&!Ze&&!st&&y.points.removeRange(2,_e-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var ht=_e=null;for(Ze=fe.sourceEdges.iterator;Ze.next()&&(st=Ze.value,st.link!==x.link||(_e=st.fromVertex,ht=st.toVertex,_e.node!==null)););if(_e===null)break;if(_e!==ue){Ze=y.i(De-1).x,st=y.i(De-1).y;var mt=_e.centerX,Lt=_e.centerY;if(Ce)this.K===180||this.K===0?De===y.firstPickIndex+1?(y.m(De++,Ze,st),y.m(De++,Ze,Lt)):(ht!==null?ht.centerY:st)!==Lt&&(ht=this.Ta[_e.layer-1]+this.Rf.x,y.m(De++,ht,st),y.m(De++,ht,Lt)):De===y.firstPickIndex+1?(y.m(De++,Ze,st),y.m(De++,mt,st)):(ht!==null?ht.centerX:Ze)!==mt&&(ht=this.Ta[_e.layer-1]+this.Rf.y,y.m(De++,Ze,ht),y.m(De++,mt,ht));else if(De===y.firstPickIndex+1){ht=Math.max(10,this.he[fe.layer]);var Vt=Math.max(10,this.Ld[fe.layer]);if(ve)this.K===180?mt<=fe.bounds.x?(fe=fe.bounds.x,y.m(De++,fe-ht,Lt),y.m(De++,fe,Lt),y.m(De++,fe+Vt,Lt)):(y.m(De++,mt-ht,Lt),y.m(De++,mt,Lt),y.m(De++,mt+Vt,Lt)):this.K===90?Lt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(De++,mt,fe+Vt),y.m(De++,mt,fe),y.m(De++,mt,fe-ht)):(y.m(De++,mt,Lt+Vt),y.m(De++,mt,Lt),y.m(De++,mt,Lt-ht)):this.K===270?Lt<=fe.bounds.y?(fe=fe.bounds.y,y.m(De++,mt,fe-ht),y.m(De++,mt,fe),y.m(De++,mt,fe+Vt)):(y.m(De++,mt,Lt-ht),y.m(De++,mt,Lt),y.m(De++,mt,Lt+Vt)):this.K===0&&(mt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(De++,fe+Vt,Lt),y.m(De++,fe,Lt),y.m(De++,fe-ht,Lt)):(y.m(De++,mt+Vt,Lt),y.m(De++,mt,Lt),y.m(De++,mt-ht,Lt)));else{y.m(De++,Ze,st);var di=0;this.K===180||this.K===0?((this.K===180?mt>=fe.bounds.right:mt<=fe.bounds.x)&&(di=(this.K===0?-ht:Vt)/2),y.m(De++,Ze+di,Lt)):((this.K===270?Lt>=fe.bounds.bottom:Lt<=fe.bounds.y)&&(di=(this.K===90?-ht:Vt)/2),y.m(De++,mt,st+di)),y.m(De++,mt,Lt)}}else ht=Math.max(10,this.he[_e.layer]),Vt=Math.max(10,this.Ld[_e.layer]),ve?this.K===180?(y.m(De++,mt-ht-Le,Lt),y.m(De++,Math.min(mt-ht+Le/2,mt),Lt),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,Math.max(mt+Vt-Le/2,mt),Lt),y.m(De++,mt+Vt+Le,Lt)):this.K===90?(y.m(De++,mt,Lt+Vt+Le),y.m(De++,mt,Math.max(Lt+Vt-Le/2,Lt)),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,mt,Math.min(Lt-ht+Le/2,Lt)),y.m(De++,mt,Lt-ht-Le)):this.K===270?(y.m(De++,mt,Lt-ht-Le),y.m(De++,mt,Math.min(Lt-ht+Le/2,Lt)),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,mt,Math.max(Lt+Vt-Le/2,Lt)),y.m(De++,mt,Lt+Vt+Le)):(y.m(De++,mt+Vt+Le,Lt),y.m(De++,Math.max(mt+Vt-Le/2,mt),Lt),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,Math.min(mt-ht+Le/2,mt),Lt),y.m(De++,mt-ht-Le,Lt)):y.m(De++,mt,Lt)}fe=_e}(re===null||le!==Ua||Ce)&&(Ze=y.i(De-1).x,st=y.i(De-1).y,mt=y.i(De).x,Lt=y.i(De).y,Ce?(Le=this.Ld[ue.layer],this.K===180||this.K===0?(Ce=st,Ce>=ue.bounds.y&&Ce<=ue.bounds.bottom&&(this.K===180?mt>=ue.bounds.x:mt<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Le:Le),Ce<ue.bounds.y+ue.bounds.height/2?Ce=ue.bounds.y-this.kc/2:Ce=ue.bounds.bottom+this.kc/2,y.m(De++,fe,st),y.m(De++,fe,Ce)),y.m(De++,mt,Ce)):(Ce=Ze,Ce>=ue.bounds.x&&Ce<=ue.bounds.right&&(this.K===270?Lt>=ue.bounds.y:Lt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Le:Le),Ce<ue.bounds.x+ue.bounds.width/2?Ce=ue.bounds.x-this.kc/2:Ce=ue.bounds.right+this.kc/2,y.m(De++,Ze,fe),y.m(De++,Ce,fe)),y.m(De++,Ce,Lt)),y.m(De++,mt,Lt)):ve?(ht=Math.max(10,this.he[ue.layer]),Vt=Math.max(10,this.Ld[ue.layer]),this.K===180&&mt>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(De-2,fe,st),y.L(De-1,fe+Vt,st)):this.K===90&&Lt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe-ht)):this.K===270&&Lt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe+Vt)):this.K===0&&mt<=ue.bounds.right&&(fe=ue.bounds.x,y.L(De-2,fe,st),y.L(De-1,fe-ht,st))):(ht=Math.max(10,this.he[ue.layer]),Vt=Math.max(10,this.Ld[ue.layer]),Ce=0,this.K===180||this.K===0?((this.K===180?mt<=ue.bounds.x:mt>=ue.bounds.right)&&(Ce=(this.K===0?Vt:-ht)/2),y.m(De++,mt+Ce,st)):((this.K===270?Lt<=ue.bounds.y:Lt>=ue.bounds.bottom)&&(Ce=(this.K===90?Vt:-ht)/2),y.m(De++,Ze,Lt+Ce)),y.m(De++,mt,Lt)))}else{for(;ue!==null&&ue!==fe;){for(ht=_e=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ze=ue.value,Ze.link!==x.link||(_e=Ze.toVertex,ht=Ze.fromVertex,ht.node!==null&&(ht=null),_e.node!==null)););if(_e===null)break;_e!==fe&&(Ze=y.i(De-1).x,st=y.i(De-1).y,mt=_e.centerX,Lt=_e.centerY,Ce?this.K===180||this.K===0?(ht!==null?ht.centerY:st)!==Lt&&(ht=this.Ta[_e.layer]+this.Rf.x,De===y.firstPickIndex+1&&(ht=this.K===0?Math.max(ht,Ze):Math.min(ht,Ze)),y.m(De++,ht,st),y.m(De++,ht,Lt)):(ht!==null?ht.centerX:Ze)!==mt&&(ht=this.Ta[_e.layer]+this.Rf.y,De===y.firstPickIndex+1&&(ht=this.K===90?Math.max(ht,st):Math.min(ht,st)),y.m(De++,Ze,ht),y.m(De++,mt,ht)):(ht=Math.max(10,this.he[_e.layer]),Vt=Math.max(10,this.Ld[_e.layer]),ve?this.K===180?(y.m(De++,mt+Vt+Le,Lt),y.m(De++,Math.max(mt+Vt-Le/2,mt),Lt),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,Math.min(mt-ht+Le/2,mt),Lt),y.m(De++,mt-ht-Le,Lt)):this.K===90?(y.m(De++,mt,Lt-ht-Le),y.m(De++,mt,Math.min(Lt-ht+Le/2,Lt)),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,mt,Math.max(Lt+Vt-Le/2,Lt)),y.m(De++,mt,Lt+Vt+Le)):this.K===270?(y.m(De++,mt,Lt+Vt+Le),y.m(De++,mt,Math.max(Lt+Vt-Le/2,Lt)),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,mt,Math.min(Lt-ht+Le/2,Lt)),y.m(De++,mt,Lt-ht-Le)):(y.m(De++,mt-ht-Le,Lt),y.m(De++,Math.min(mt-ht+Le/2,mt),Lt),y.m(De++,mt,Lt),y.m(De++,mt,Lt),y.m(De++,Math.max(mt+Vt-Le/2,mt),Lt),y.m(De++,mt+Vt+Le,Lt)):this.K===180?(y.m(De++,mt+Vt,Lt),y.m(De++,mt-ht,Lt)):this.K===90?(y.m(De++,mt,Lt-ht),y.m(De++,mt,Lt+Vt)):this.K===270?(y.m(De++,mt,Lt+Vt),y.m(De++,mt,Lt-ht)):(y.m(De++,mt-ht,Lt),y.m(De++,mt+Vt,Lt)))),ue=_e}Ce&&(Ze=y.i(De-1).x,st=y.i(De-1).y,mt=y.i(De).x,Lt=y.i(De).y,this.K===180||this.K===0?st!==Lt&&(ht=this.K===0?Math.min(Math.max((mt+Ze)/2,this.Ta[fe.layer]+this.Rf.x),mt):Math.max(Math.min((mt+Ze)/2,this.Ta[fe.layer]+this.Rf.x),mt),y.m(De++,ht,st),y.m(De++,ht,Lt)):Ze!==mt&&(ht=this.K===90?Math.min(Math.max((Lt+st)/2,this.Ta[fe.layer]+this.Rf.y),Lt):Math.max(Math.min((Lt+st)/2,this.Ta[fe.layer]+this.Rf.y),Lt),y.m(De++,Ze,ht),y.m(De++,mt,ht)))}b!==null&&ve&&4<=y.pointsCount&&(ee!==null&&(ee=le===Ua?y.getLinkPointFromPoint(E,ee,ee.ga(so),y.i(3),!0):y.i(0),le===Ua&&(le=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,b.x,(le.y+b.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+b.x)/2,b.y))),ee.w()||ee.set(E.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(E=oe===Ua?y.getLinkPointFromPoint(z,re,re.ga(so),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Ua&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new En,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),ee=b.i(E+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new tf;re.layer=Math.floor(z.y/2);var oe=b.i(0),le=b.i(b.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=E,re.link=b,E+2<b.pointsCount){oe=b.i(E-1),le=b.i(E+2);var ue=0;oe.y<z.y?ue=le.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=le.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}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(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++){var ve=x[fe];(oe?ve.first:ve.jc)!==re&&(ue++,re=oe?ve.first:ve.jc);var Ce=ve.link;z=Ce.i(ve.index),ee=Ce.i(ve.index+1);var Le=this.linkSpacing*(ue-(le-1)/2);y++,Ce.uh(),Ce.L(ve.index,z.x,z.y+Le),Ce.L(ve.index+1,ee.x,ee.y+Le),Ce.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),ee=b.i(E+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new tf,re.layer=Math.floor(z.x/2),oe=b.i(0),le=b.i(b.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=E,re.link=b,E+2<b.pointsCount&&(oe=b.i(E-1),le=b.i(E+2),ue=0,oe.x<z.x?ue=le.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=le.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));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(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++)ve=x[fe],(oe?ve.first:ve.jc)!==re&&(ue++,re=oe?ve.first:ve.jc),Ce=ve.link,z=Ce.i(ve.index),ee=Ce.i(ve.index+1),Le=this.linkSpacing*(ue-(le-1)/2),y++,Ce.uh(),Ce.L(ve.index,z.x+Le,z.y),Ce.L(ve.index+1,ee.x+Le,ee.y),Ce.zf()}z=E}a=b}}}},Ee=Vo.prototype,Ee.Vx=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.Ux=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.Js=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.B=function(a,y){return a-=y,-1<a&&1>a},Ee.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&dt("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 ef(a,y,x){a.He[a.tc[y]]=x}Qe.Object.defineProperties(Vo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):dt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==Qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==by&&a!==D0&&a!==Ey||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var F0=new sn(Vo,"CycleDepthFirst",0),Sy=new sn(Vo,"CycleGreedy",1),Qp=new sn(Vo,"CycleFromLayers",2),N0=new sn(Vo,"LayerOptimalLinkLength",0),xy=new sn(Vo,"LayerLongestPathSink",1),wy=new sn(Vo,"LayerLongestPathSource",2),T0=new sn(Vo,"InitDepthFirstOut",0),Py=new sn(Vo,"InitDepthFirstIn",1),Cy=new sn(Vo,"InitNaive",2),by=new sn(Vo,"AggressiveNone",0),D0=new sn(Vo,"AggressiveLess",1),Ey=new sn(Vo,"AggressiveMore",2),Ux=8;Vo.className="LayeredDigraphLayout",Vo.CycleDepthFirst=F0,Vo.CycleGreedy=Sy,Vo.CycleFromLayers=Qp,Vo.LayerOptimalLinkLength=N0,Vo.LayerLongestPathSink=xy,Vo.LayerLongestPathSource=wy,Vo.InitDepthFirstOut=T0,Vo.InitDepthFirstIn=Py,Vo.InitNaive=Cy,Vo.AggressiveNone=by,Vo.AggressiveLess=D0,Vo.AggressiveMore=Ey,Vo.PackNone=0,Vo.PackExpand=1,Vo.PackStraighten=2,Vo.PackMedian=4,Vo.PackAll=15,Vo.AlignNone=0,Vo.AlignUpperLeft=1,Vo.AlignUpperRight=2,Vo.AlignLowerLeft=4,Vo.AlignLowerRight=8,Vo.AlignAll=15;function tf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}tf.className="SegInfo";function Ug(a){ua.call(this,a)}Yt(Ug,ua),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}Yt(eh,zs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=yi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=yi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;dt("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=yi(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=yi(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},Qe.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){Mu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Yt($p,Mu),Qe.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 qr(a){Fa.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 ri(10,10).freeze();var y=new hg(this);this.W=new gh(y),this.Y=new gh(y),this.ru=[],a&&Object.assign(this,a)}Yt(qr,Fa),qr.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},qr.prototype.qb=function(a){a.classType===qr?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:dt("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},qr.prototype.createNetwork=function(){return new hg(this)},qr.prototype.makeNetwork=function(a){function y(b){if(b instanceof ci)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Qn){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 Kt?(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},qr.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 Kt&&(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 ci?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof gh&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&lx(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new 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}qr.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:dt("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:dt("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 En,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 En,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:dt("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}qr.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,ee=z.length,re=0;re<ee;re++){var oe=z[re];ax(a,oe),x+=oe.descendantCount+1,b=Math.max(b,oe.maxChildrenCount),E=Math.max(E,oe.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}}qr.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])}}qr.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])}}qr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xg:break;case _p:a.children.reverse();break;case em:a.children.sort(a.comparer);break;case tm:a.children.sort(a.comparer),a.children.reverse();break;default:dt("Unhandled sorting value "+a.sorting.toString())}},qr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},qr.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,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ue=le.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=hn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,hn.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}qr.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 ee=a.childrenCount===0,re=Ay(a),oe=0,le=a.comments,ue=le.length,fe=Ue.alloc(),ve=0;ve<ue;ve++){var Ce=le[ve],Le=Ce.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Le.width,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();){var De=Ce.value;De.fromSpot=hs,De.toSpot=Ms}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=Ms,De.toSpot=hs;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=Ms,De.toSpot=hs;else for(fe.h(a.bounds.x+a.commentMargin-Le.width,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=hs,De.toSpot=Ms;oe=0<=a.commentSpacing?oe+(Le.height+a.commentSpacing):oe+(a.commentSpacing-Le.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Le.height),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=es,De.toSpot=bs;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=bs,De.toSpot=es;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=bs,De.toSpot=es;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Le.height),Ce.move(fe),Ce=Ce.Sd();Ce.next();)De=Ce.value,De.fromSpot=es,De.toSpot=bs;oe=0<=a.commentSpacing?oe+(Le.width+a.commentSpacing):oe+(a.commentSpacing-Le.width)}}if(Ue.free(fe),y=oe-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)}},qr.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,ee=a.children,re=ee.length;for(x=0;x<re;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var oe=a.alignment;b=oe===Ad;var le=oe===kd,ue=nf(oe),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var ve=a.nodeSpacing,Ce=this.computeNodeIndent(a),Le=a.rowSpacing,De=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(De=Math.max(0,a.rowIndent)),b=a.width;var _e=a.height,Ze=0,st=0,ht=0,mt=null,Lt=null,Vt=0,di=0,Ci=0,vi=0,Jn=0,kn=0,Sr=0,dr=0;if(ue&&!qp(oe)&&135<E&&ee.reverse(),qp(oe))if(1<re)for(var Do=0;Do<re;Do++)Do%2===0&&Do!==re-1&&(dr=Math.max(dr,y?ee[Do].Da.width:ee[Do].Da.height));else re===1&&(dr=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Ec:st=135>E?hx(this,a,ee,dr,Ze,st):dx(this,a,ee,dr,Ze,st),dr=st.x,Ze=st.width,st=st.height;break;case Lc:for(mt=0;mt<re;mt++)Lt=ee[mt],fe=Lt.Da,ht=kn===0?0:Le,y?(Lt.S.h(z-fe.width,vi+ht),Ze=Math.max(Ze,fe.width),st=Math.max(st,vi+ht+fe.height),vi+=ht+fe.height):(Lt.S.h(Ci+ht,z-fe.height),Ze=Math.max(Ze,Ci+ht+fe.width),st=Math.max(st,fe.height),Ci+=ht+fe.width),kn++;break;case Qd:for(mt=0;mt<re;mt++)Lt=ee[mt],z=Lt.Da,fe=kn===0?0:Le,y?(Lt.S.h(ve/2+a.focus.x,vi+fe),Ze=Math.max(Ze,z.width),st=Math.max(st,vi+fe+z.height),vi+=fe+z.height):(Lt.S.h(Ci+fe,ve/2+a.focus.y),Ze=Math.max(Ze,Ci+fe+z.width),st=Math.max(st,z.height),Ci+=fe+z.width),kn++}mt=pu(this,2),Lt=pu(this,2),y?(mt[0].h(0,0),mt[1].h(0,st),Lt[0].h(Ze,0)):(mt[0].h(0,0),mt[1].h(Ze,0),Lt[0].h(0,st)),Lt[1].h(Ze,st)}else for(Do=0;Do<re;Do++){var aa=ee[Do],Gs=aa.Da;if(y){0<fe&&0<kn&&Ci+ve+Gs.width>fe&&(Ci<z&&Df(a,oe,z-Ci,0,Sr,Do-1),Jn++,kn=0,Sr=Do,ht=st,Ci=0,vi=135<E?-st-Le:st+Le),I0(this,aa,0,vi);var qs=0;if(kn===0)mt=aa.Yo,Lt=aa.kp,Vt=Gs.width,di=Gs.height,(mt===null||Lt===null||E!==Nh(aa))&&(mt=pu(this,2),Lt=pu(this,2),mt[0].h(0,0),mt[1].h(0,di),Lt[0].h(Vt,0),Lt[1].h(Vt,di));else{var Nl=an();di=cx(this,a,aa,mt,Lt,Vt,di,Nl),qs=di.x,mt=Nl[0],Lt=Nl[1],Vt=di.width,di=di.height,Mn(Nl),Ci<Gs.width&&0>qs&&(sg(a,-qs,0,Sr,Do-1),R0(mt,-qs,0),R0(Lt,-qs,0),qs=0)}aa.S.h(qs,vi),Ze=Math.max(Ze,Vt),st=Math.max(st,ht+(Jn===0?0:Le)+Gs.height),Ci=Vt}else 0<fe&&0<kn&&vi+ve+Gs.height>fe&&(vi<z&&Df(a,oe,0,z-vi,Sr,Do-1),Jn++,kn=0,Sr=Do,ht=Ze,vi=0,Ci=135<E?-Ze-Le:Ze+Le),I0(this,aa,Ci,0),qs=0,kn===0?(mt=aa.Yo,Lt=aa.kp,Vt=Gs.width,di=Gs.height,(mt===null||Lt===null||E!==Nh(aa))&&(mt=pu(this,2),Lt=pu(this,2),mt[0].h(0,0),mt[1].h(Vt,0),Lt[0].h(0,di),Lt[1].h(Vt,di))):(Nl=an(),di=cx(this,a,aa,mt,Lt,Vt,di,Nl),qs=di.x,mt=Nl[0],Lt=Nl[1],Vt=di.width,di=di.height,Mn(Nl),vi<Gs.height&&0>qs&&(sg(a,0,-qs,Sr,Do-1),R0(mt,0,-qs),R0(Lt,0,-qs),qs=0)),aa.S.h(Ci,qs),st=Math.max(st,di),Ze=Math.max(Ze,ht+(Jn===0?0:Le)+Gs.width),vi=di;kn++}switch(0<Jn&&(y?(st+=Math.max(0,x),Ci<Ze&&Df(a,oe,Ze-Ci,0,Sr,re-1),0<De&&(le||sg(a,De,0,0,re-1),Ze+=De)):(Ze+=Math.max(0,x),vi<st&&Df(a,oe,0,st-vi,Sr,re-1),0<De&&(le||sg(a,0,De,0,re-1),st+=De))),De=le=0,oe){case Jg:y?le+=Ze/2-a.focus.x-Ce/2:De+=st/2-a.focus.y-Ce/2;break;case ug:0<Jn?y?le+=Ze/2-a.focus.x-Ce/2:De+=st/2-a.focus.y-Ce/2:y?(dr=ee[0].S.x+ee[0].la.x,le+=dr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-dr)/2-a.focus.x-Ce/2):(dr=ee[0].S.y+ee[0].la.y,De+=dr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-dr)/2-a.focus.y-Ce/2);break;case Ad:y?(le-=Ce,Ze+=Ce):(De-=Ce,st+=Ce);break;case kd:y?(le+=Ze-a.width+Ce,Ze+=Ce):(De+=st-a.height+Ce,st+=Ce);break;case Ec:y?1<re?le+=dr+ve/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?De+=dr+ve/2-a.focus.y:De+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Lc:y?le+=Ze+ve/2-a.focus.x:De+=st+ve/2-a.focus.y;break;case Qd:break;default:st=this.customAlignment(a,le,De,Ze,st),le=st[0],De=st[1],Ze=st[2],st=st[3]}for(Ce=0;Ce<re;Ce++)dr=ee[Ce],y?dr.S.h(dr.S.x+dr.la.x-le,dr.S.y+(135<E?(ue?-st:-dr.Da.height)+dr.la.y-x:_e+x+dr.la.y)):dr.S.h(dr.S.x+(135<E?(ue?-Ze:-dr.Da.width)+dr.la.x-x:b+x+dr.la.x),dr.S.y+dr.la.y-De);if(re=ee=0,ue?y?(Ze=ky(a,Ze,le),0>le&&(le=0),135<E&&(De+=st+x),st+=_e+x,oe===Qd&&(ee+=ve/2+a.focus.x),re+=_e+x):(135<E&&(le+=Ze+x),Ze+=b+x,st=Fy(a,st,De),0>De&&(De=0),oe===Qd&&(re+=ve/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>Ze&&(Ze=Ny(oe,b-Ze,0),ee=Ze.x,re=Ze.y,Ze=b,le=0):Ze=ky(a,Ze,le),0>le&&(ee-=le,le=0),135<E&&(De+=st+x),st=Math.max(Math.max(st,_e),st+_e+x),re+=_e+x):(135<E&&(le+=Ze+x),Ze=Math.max(Math.max(Ze,b),Ze+b+x),a.comments===null?_e>st&&(st=Ny(oe,0,_e-st),ee=st.x,re=st.y,st=_e,De=0):st=Fy(a,st,De),0>De&&(re-=De,De=0),ee+=b+x),0<Jn)E=pu(this,4),Jn=pu(this,4),y?(E[2].h(0,_e+x),E[3].h(E[2].x,st),Jn[2].h(Ze,E[2].y),Jn[3].h(Jn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ze,E[2].y),Jn[2].h(E[2].x,st),Jn[3].h(E[3].x,Jn[2].y));else{for(E=pu(this,mt.length+2),Jn=pu(this,Lt.length+2),oe=0;oe<mt.length;oe++)ue=mt[oe],E[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<Lt.length;oe++)ue=Lt[oe],Jn[oe+2].h(ue.x+ee,ue.y+re)}y?(E[0].h(le,0),E[1].h(E[0].x,_e),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])),Jn[0].h(le+b,0),Jn[1].h(Jn[0].x,_e),Jn[2].y<Jn[1].y&&(Jn[2].x<Jn[0].x?Jn[2].assign(Jn[1]):Jn[1].assign(Jn[2])),Jn[3].y<Jn[2].y&&(Jn[3].x<Jn[0].x?Jn[3].assign(Jn[2]):Jn[2].assign(Jn[3])),E[2].y-=x/2,Jn[2].y-=x/2):(E[0].h(0,De),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])),Jn[0].h(0,De+_e),Jn[1].h(b,Jn[0].y),Jn[2].x<Jn[1].x&&(Jn[2].y<Jn[0].y?Jn[2].assign(Jn[1]):Jn[1].assign(Jn[2])),Jn[3].x<Jn[2].x&&(Jn[3].y<Jn[0].y?Jn[3].assign(Jn[2]):Jn[2].assign(Jn[3])),E[2].x-=x/2,Jn[2].x-=x/2),Uh(this,mt),Uh(this,Lt),a.Yo=E,a.kp=Jn,a.la.h(le,De),a.Da.h(Ze,st)}break;default:dt("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 ee=E.length,re=0;re<ee;re++){var oe=E[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,ue=le===Ad,fe=le===kd;re=nf(le);var ve=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Ce=y.nodeSpacing,Le=a.computeNodeIndent(y),De=ue||fe?0:Le/2,_e=y.rowSpacing,Ze=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ze=Math.max(0,y.rowIndent)),ue=y.width;var st=y.height,ht=0,mt=0,Lt=0,Vt=0,di=0,Ci=0,vi=0,Jn=0,kn=0,Sr=0;if(re&&!qp(le)&&135<b&&E.reverse(),qp(le))if(1<ee)for(var dr=0;dr<ee;dr++){var Do=E[dr],aa=Do.Da;dr%2===0&&dr!==ee-1?kn=Math.max(kn,(x?aa.width:aa.height)+a.computeBusNodeSpacing(Do)-Ce):dr%2!==0&&(Sr=Math.max(Sr,(x?aa.width:aa.height)+a.computeBusNodeSpacing(Do)-Ce))}else ee===1&&(kn=x?E[0].Da.width:E[0].Da.height);if(re)switch(le){case Ec:case Fd:mt=135>b?hx(a,y,E,kn,ht,mt):dx(a,y,E,kn,ht,mt),kn=mt.x,ht=mt.width,mt=mt.height;break;case Lc:for(ve=0;ve<ee;ve++)De=E[ve],Lt=De.Da,Sr=vi===0?0:_e,x?(De.S.h(z-Lt.width,di+Sr),ht=Math.max(ht,Lt.width),mt=Math.max(mt,di+Sr+Lt.height),di+=Sr+Lt.height):(De.S.h(Vt+Sr,z-Lt.height),ht=Math.max(ht,Vt+Sr+Lt.width),mt=Math.max(mt,Lt.height),Vt+=Sr+Lt.width),vi++;break;case Qd:for(z=0;z<ee;z++)ve=E[z],De=ve.Da,Lt=vi===0?0:_e,x?(ve.S.h(Ce/2+y.focus.x,di+Lt),ht=Math.max(ht,De.width),mt=Math.max(mt,di+Lt+De.height),di+=Lt+De.height):(ve.S.h(Vt+Lt,Ce/2+y.focus.y),ht=Math.max(ht,Vt+Lt+De.width),mt=Math.max(mt,De.height),Vt+=Lt+De.width),vi++}else for(Sr=0;Sr<ee;Sr++)dr=E[Sr],Do=dr.Da,x?(0<ve&&0<vi&&Vt+Ce+Do.width>ve&&(Vt<z&&Df(y,le,z-Vt,0,Jn,Sr-1),Ci++,vi=0,Jn=Sr,Lt=mt,Vt=0,di=135<b?-mt-_e:mt+_e),aa=vi===0?De:Ce,I0(a,dr,0,di),dr.S.h(Vt+aa,di),ht=Math.max(ht,Vt+aa+Do.width),mt=Math.max(mt,Lt+(Ci===0?0:_e)+Do.height),Vt+=aa+Do.width):(0<ve&&0<vi&&di+Ce+Do.height>ve&&(di<z&&Df(y,le,0,z-di,Jn,Sr-1),Ci++,vi=0,Jn=Sr,Lt=ht,di=0,Vt=135<b?-ht-_e:ht+_e),aa=vi===0?De:Ce,I0(a,dr,Vt,0),dr.S.h(Vt,di+aa),mt=Math.max(mt,di+aa+Do.height),ht=Math.max(ht,Lt+(Ci===0?0:_e)+Do.width),di+=aa+Do.height),vi++;switch(0<Ci&&(x?(mt+=Math.max(0,oe),Vt<ht&&Df(y,le,ht-Vt,0,Jn,ee-1),0<Ze&&(fe||sg(y,Ze,0,0,ee-1),ht+=Ze)):(ht+=Math.max(0,oe),di<mt&&Df(y,le,0,mt-di,Jn,ee-1),0<Ze&&(fe||sg(y,0,Ze,0,ee-1),mt+=Ze))),Ze=fe=0,le){case Jg:x?fe+=ht/2-y.focus.x-Le/2:Ze+=mt/2-y.focus.y-Le/2;break;case ug:0<Ci?x?fe+=ht/2-y.focus.x-Le/2:Ze+=mt/2-y.focus.y-Le/2:x?(a=E[0].S.x+E[0].la.x,fe+=a+(E[ee-1].S.x+E[ee-1].la.x+2*E[ee-1].focus.x-a)/2-y.focus.x-Le/2):(a=E[0].S.y+E[0].la.y,Ze+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Le/2);break;case Ad:x?(fe-=Le,ht+=Le):(Ze-=Le,mt+=Le);break;case kd:x?(fe+=ht-y.width+Le,ht+=Le):(Ze+=mt-y.height+Le,mt+=Le);break;case Ec:case Fd:x?1<ee?fe+=kn+Ce/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ze+=kn+Ce/2-y.focus.y:Ze+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Lc:x?fe+=ht+Ce/2-y.focus.x:Ze+=mt+Ce/2-y.focus.y;break;case Qd:break;default:a=a.customAlignment(y,fe,Ze,ht,mt),fe=a[0],Ze=a[1],ht=a[2],mt=a[3]}for(a=0;a<ee;a++)Le=E[a],x?Le.S.h(Le.S.x+Le.la.x-fe,Le.S.y+(135<b?(re?-mt:-Le.Da.height)+Le.la.y-oe:st+oe+Le.la.y)):Le.S.h(Le.S.x+(135<b?(re?-ht:-Le.Da.width)+Le.la.x-oe:ue+oe+Le.la.x),Le.S.y+Le.la.y-Ze);x?(ht=ky(y,ht,fe),0>fe&&(fe=0),135<b&&(Ze+=mt+oe),mt=Math.max(Math.max(mt,st),mt+st+oe)):(135<b&&(fe+=ht+oe),ht=Math.max(Math.max(ht,ue),ht+ue+oe),mt=Fy(y,mt,Ze),0>Ze&&(Ze=0)),y.la.h(fe,Ze),y.Da.h(ht,mt)}}qr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new hn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new hn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Nh(y)===90,ue=0,fe=0,ve=0,Ce=0;Ce<ee;Ce++)if(!(Ce%2!==0||1<ee&&Ce===ee-1)){var Le=x[Ce],De=Le.Da,_e=ue===0?0:oe;if(le){var Ze=a.computeBusNodeSpacing(Le)-re;Le.S.h(b-(De.width+Ze),ve+_e),E=Math.max(E,De.width+Ze),z=Math.max(z,ve+_e+De.height),ve+=_e+De.height}else Ze=a.computeBusNodeSpacing(Le)-re,Le.S.h(fe+_e,b-(De.height+Ze)),z=Math.max(z,De.height+Ze),E=Math.max(E,fe+_e+De.width),fe+=_e+De.width;ue++}for(ue=0,Le=fe,Ce=ve,le?(fe=b+re,ve=0):(fe=0,ve=b+re),De=0;De<ee;De++)if(De%2!==0){_e=x[De],Ze=_e.Da;var st=ue===0?0:oe;if(le){var ht=a.computeBusNodeSpacing(_e)-re;_e.S.h(fe+ht,ve+st),E=Math.max(E,fe+Ze.width+ht),z=Math.max(z,ve+st+Ze.height),ve+=st+Ze.height}else ht=a.computeBusNodeSpacing(_e)-re,_e.S.h(fe+st,ve+ht),E=Math.max(E,fe+st+Ze.width),z=Math.max(z,ve+Ze.height+ht),fe+=st+Ze.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Ce),Math.abs(ve)):Math.max(Math.abs(Le),Math.abs(fe))),le?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),le=b+re/2-x.focus.x-x.la.x,E=Math.max(E,le+ee.width),0>le&&(E-=le),z=Math.max(z,Math.max(Ce,ve)+a+ee.height),0>x.S.x&&(b=O0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Le,fe)+a+ee.width),ve=b+re/2-x.focus.y-x.la.y,z=Math.max(z,ve+ee.height),0>ve&&(z-=ve),0>x.S.y&&(b=O0(y,x.S.y,!0,b,re)))),new hn(b,0,E,z)}function dx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new hn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new hn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Nh(y)===270,ue=0,fe=0,ve=0,Ce=0;Ce<ee;Ce++)if(!(Ce%2!==0||1<ee&&Ce===ee-1)){var Le=x[Ce],De=Le.Da,_e=ue===0?0:oe;if(le){var Ze=a.computeBusNodeSpacing(Le)-re;ve-=_e+De.height,Le.S.h(b-(De.width+Ze),ve),E=Math.max(E,De.width+Ze),z=Math.max(z,Math.abs(ve))}else Ze=a.computeBusNodeSpacing(Le)-re,fe-=_e+De.width,Le.S.h(fe,b-(De.height+Ze)),z=Math.max(z,De.height+Ze),E=Math.max(E,Math.abs(fe));ue++}for(ue=0,Le=fe,Ce=ve,le?(fe=b+re,ve=0):(fe=0,ve=b+re),De=0;De<ee;De++)if(De%2!==0){_e=x[De],Ze=_e.Da;var st=ue===0?0:oe;if(le){var ht=a.computeBusNodeSpacing(_e)-re;ve-=st+Ze.height,_e.S.h(fe+ht,ve),E=Math.max(E,fe+Ze.width+ht),z=Math.max(z,Math.abs(ve))}else ht=a.computeBusNodeSpacing(_e)-re,fe-=st+Ze.width,_e.S.h(fe,ve+ht),z=Math.max(z,ve+Ze.height+ht),E=Math.max(E,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(Ce),Math.abs(ve)):Math.max(Math.abs(Le),Math.abs(fe))),le?(oe.S.h(b+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),fe=b+re/2-oe.focus.x-oe.la.x,E=Math.max(E,fe+ue.width),0>fe&&(E-=fe),z=Math.max(z,Math.abs(Math.min(Ce,ve))+a+ue.height),0>oe.S.x&&(b=O0(y,oe.S.x,!1,b,re))):(oe.S.h(-E-ue.width-a,b+re/2-oe.focus.y-oe.la.y),E=Math.max(E,Math.abs(Math.min(Le,fe))+a+ue.width),ve=b+re/2-oe.focus.y-oe.la.y,z=Math.max(z,ve+ue.height),0>ve&&(z-=ve),0>oe.S.y&&(b=O0(y,oe.S.y,!0,b,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new hn(b,0,E,z)}qr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},qr.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,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].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:dt("Unhandled alignment value "+a.toString())}return new Ue(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:dt("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,ee,re){var oe=Nh(y),le=oe===90||oe===270,ue=y.nodeSpacing;y=b;var fe=E;b=z;var ve=ee,Ce=x.Yo,Le=x.kp;ee=x.Da;var De=le?Math.max(ve,ee.height):Math.max(b,ee.width);if((Ce===null||oe!==Nh(x))&&(Ce=pu(a,2),Le=pu(a,2),le?(Ce[0].h(0,0),Ce[1].h(0,ee.height),Le[0].h(ee.width,0),Le[1].h(Le[0].x,Ce[1].y)):(Ce[0].h(0,0),Ce[1].h(ee.width,0),Le[0].h(0,ee.height),Le[1].h(Ce[1].x,Le[0].y))),le){if(ve=9999999,!(fe===null||2>fe.length||Ce===null||2>Ce.length))for(E=x=0;x<fe.length&&E<Ce.length;){z=fe[x];var _e=Ce[E];oe=_e.x,le=_e.y,oe+=b;var Ze=z;x+1<fe.length&&(Ze=fe[x+1]);var st=_e;_e=st.x,st=st.y,E+1<Ce.length&&(st=Ce[E+1],_e=st.x,st=st.y,_e+=b);var ht=ve;z.y===le?ht=oe-z.x:z.y>le&&z.y<st?ht=oe+(z.y-le)/(st-le)*(_e-oe)-z.x:le>z.y&&le<Ze.y&&(ht=oe-(z.x+(le-z.y)/(Ze.y-z.y)*(Ze.x-z.x))),ht<ve&&(ve=ht),Ze.y<=z.y?x++:st<=le?E++:(Ze.y<=st&&x++,st<=Ze.y&&E++)}if(ve=b-ve,ve+=ue,x=Ce,E=ve,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=pu(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ue[b++].h(le.x+E,le.y);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],ue[b++].h(le.x+E,le.y);for(x=pu(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);Uh(a,ue),b=x}if(z=Le,oe=ve,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=pu(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ze=fe[x++],ue[E++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ue[E++].h(Ze.x+oe,Ze.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=pu(a,E),x=0;x<E;x++)z[x].assign(ue[x]);Uh(a,ue),E=z}return z=Math.max(0,ve)+ee.width,ee=De,Uh(a,y),Uh(a,Ce),Uh(a,fe),Uh(a,Le),re[0]=b,re[1]=E,new hn(ve,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||Ce===null||2>Ce.length))for(E=x=0;x<fe.length&&E<Ce.length;)z=fe[x],_e=Ce[E],oe=_e.x,le=_e.y,le+=ve,Ze=z,x+1<fe.length&&(Ze=fe[x+1]),st=_e,_e=st.x,st=st.y,E+1<Ce.length&&(st=Ce[E+1],_e=st.x,st=st.y,st+=ve),ht=b,z.x===oe?ht=le-z.y:z.x>oe&&z.x<_e?ht=le+(z.x-oe)/(_e-oe)*(st-le)-z.y:oe>z.x&&oe<Ze.x&&(ht=le-(z.y+(oe-z.x)/(Ze.x-z.x)*(Ze.y-z.y))),ht<b&&(b=ht),Ze.x<=z.x?x++:_e<=oe?E++:(Ze.x<=_e&&x++,_e<=Ze.x&&E++);if(ve-=b,ve+=ue,x=Ce,E=ve,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=pu(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ue[b++].h(le.x,le.y+E);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],ue[b++].h(le.x,le.y+E);for(x=pu(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);Uh(a,ue),b=x}if(z=Le,oe=ve,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=pu(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ze=fe[x++],ue[E++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ue[E++].h(Ze.x,Ze.y+oe);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=pu(a,E),x=0;x<E;x++)z[x].assign(ue[x]);Uh(a,ue),E=z}return z=De,ee=Math.max(0,ve)+ee.height,Uh(a,y),Uh(a,Ce),Uh(a,fe),Uh(a,Le),re[0]=b,re[1]=E,new hn(ve,0,z,ee)}function pu(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Ue;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)}qr.prototype.arrangeTrees=function(){if(this.Rb===Z0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof gh){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof gh&&a.push(x);switch(this.sorting){case Xg:break;case _p:a.reverse();break;case em:a.sort(this.comparer);break;case tm:a.sort(this.comparer),a.reverse();break;default:dt("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:dt("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 ee=y[z];Ty(a,ee,x+ee.S.x,b+ee.S.y)}}}qr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},qr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},qr.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 Ue(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ue(-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 ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,E.push(new hn(0,z,x,re))):this.angle===90?(E.push(new hn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new hn(z,0,re,x))):(E.push(new hn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},qr.prototype.commitLayers=function(){},qr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},qr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof gh&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}qr.prototype.setPortSpots=function(a){var y=a.alignment;if(nf(y)){var x=this.ud===Md,b=Nh(a);switch(b){case 0:var E=Ms;break;case 90:E=bs;break;case 180:E=hs;break;default:E=es}var z=a.children,ee=z.length;switch(y){case Ec:case Fd:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=b===90||b===270?hs:es;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=hs;break;case 90:oe=es;break;case 180:oe=Ms;break;default:oe=bs}else y%2===0&&(oe=b===90||b===270?Ms:bs);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=E))}}break;case Lc:for(b=b===90||b===270?Ms:bs,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)));break;case Qd:for(b=b===90||b===270?hs:es,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)))}}else if(x=Nh(a),this.ud===Md){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ms;break;case 90:b.fromSpot=bs;break;case 180:b.fromSpot=hs;break;default:b.fromSpot=es}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=hs;break;case 90:b.toSpot=es;break;case 180:b.toSpot=Ms;break;default:b.toSpot=bs}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ms;break;case 90:b.toSpot=bs;break;case 180:b.toSpot=hs;break;default:b.toSpot=es}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=hs;break;case 90:b.fromSpot=es;break;case 180:b.fromSpot=Ms;break;default:b.fromSpot=bs}else b.fromSpot=a.childPortSpot}};function Nh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}qr.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},qr.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)},Qe.Object.defineProperties(qr.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!==em&&!tm||(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()):dt("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!==em&&!tm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==j0&&a!==nm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var z0=new sn(qr,"PathDefault",-1),Md=new sn(qr,"PathDestination",0),lg=new sn(qr,"PathSource",1),Xg=new sn(qr,"SortingForwards",10),_p=new sn(qr,"SortingReverse",11),em=new sn(qr,"SortingAscending",12),tm=new sn(qr,"SortingDescending",13),Jg=new sn(qr,"AlignmentCenterSubtrees",20),ug=new sn(qr,"AlignmentCenterChildren",21),Ad=new sn(qr,"AlignmentStart",22),kd=new sn(qr,"AlignmentEnd",23),Ec=new sn(qr,"AlignmentBus",24),Fd=new sn(qr,"AlignmentBusBranching",25),Lc=new sn(qr,"AlignmentTopLeftBus",26),Qd=new sn(qr,"AlignmentBottomRightBus",27),j0=new sn(qr,"CompactionNone",30),nm=new sn(qr,"CompactionBlock",31),H0=new sn(qr,"StyleLayered",40),Dy=new sn(qr,"StyleLastParents",41),By=new sn(qr,"StyleAlternating",42),Oy=new sn(qr,"StyleRootOnly",43),W0=new sn(qr,"ArrangementVertical",50),Iy=new sn(qr,"ArrangementHorizontal",51),Z0=new sn(qr,"ArrangementFixedRoots",52),Ry=new sn(qr,"LayerIndividual",60),zy=new sn(qr,"LayerSiblings",61),G0=new sn(qr,"LayerUniform",62);qr.className="TreeLayout",qr.PathDefault=z0,qr.PathDestination=Md,qr.PathSource=lg,qr.SortingForwards=Xg,qr.SortingReverse=_p,qr.SortingAscending=em,qr.SortingDescending=tm,qr.AlignmentCenterSubtrees=Jg,qr.AlignmentCenterChildren=ug,qr.AlignmentStart=Ad,qr.AlignmentEnd=kd,qr.AlignmentBus=Ec,qr.AlignmentBusBranching=Fd,qr.AlignmentTopLeftBus=Lc,qr.AlignmentBottomRightBus=Qd,qr.CompactionNone=j0,qr.CompactionBlock=nm,qr.StyleLayered=H0,qr.StyleLastParents=Dy,qr.StyleAlternating=By,qr.StyleRootOnly=Oy,qr.ArrangementVertical=W0,qr.ArrangementHorizontal=Iy,qr.ArrangementFixedRoots=Z0,qr.LayerIndividual=Ry,qr.LayerSiblings=zy,qr.LayerUniform=G0;function hg(a){ua.call(this,a)}Yt(hg,ua),hg.prototype.createVertex=function(){return new gh(this)},hg.prototype.createEdge=function(){return new Qg(this)},hg.className="TreeNetwork";function gh(a){zs.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ue(0,0),this.Da=new ri(0,0),this.la=new Ue(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}Yt(gh,zs),gh.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Qe.Object.defineProperties(gh.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),gh.className="TreeVertex";function Qg(a){Mu.call(this,a),this.$t=new Ue(0,0)}Yt(Qg,Mu),Qg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Md:x=this.fromVertex,b=this.toVertex;break;case lg:x=this.toVertex,b=this.fromVertex;break;default:dt("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),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===zu,le=a.isOrthogonal,ue;if(a.uh(),le||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),ve=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),ve=a.i(a.pointsCount-1)}var Ce=a.i(a.pointsCount-1);z===0?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&fe.y>Ce.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&fe.y<Ce.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.right+ee,z),ue++,a.m(ue,b.right+ee+(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+2*(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+(E.x-re),z),ue++,a.m(ue,ve.x,z)):(le&&(a.m(ue,b.right+ee/2,fe.y),ue++),a.m(ue,b.right+ee/2,z),ue++,a.m(ue,b.right+ee+E.x-(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,ve.y))):z===90?(x.alignment===kd?(z=b.right+E.x,E.x===0&&fe.x>Ce.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&fe.x<Ce.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.bottom+ee),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+2*(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)),ue++,a.m(ue,z,ve.y)):(le&&(a.m(ue,fe.x,b.bottom+ee/2),ue++),a.m(ue,z,b.bottom+ee/2),ue++,a.m(ue,z,b.bottom+ee+E.y-(le?re/2:re)),ue++,le&&a.m(ue,ve.x,a.i(ue-1).y))):z===180?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&fe.y>Ce.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&fe.y<Ce.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.left-ee,z),ue++,a.m(ue,b.left-ee+(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+2*(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+(E.x+re),z),ue++,a.m(ue,ve.x,z)):(le&&(a.m(ue,b.left-ee/2,fe.y),ue++),a.m(ue,b.left-ee/2,z),ue++,a.m(ue,b.left-ee+E.x+(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,ve.y))):z===270?(x.alignment===kd?(z=b.right+E.x,E.x===0&&fe.x>Ce.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&fe.x<Ce.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.top-ee),ue++,a.m(ue,z,b.top-ee+(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+2*(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+(E.y+re)),ue++,a.m(ue,z,ve.y)):(le&&(a.m(ue,fe.x,b.top-ee/2),ue++),a.m(ue,z,b.top-ee/2),ue++,a.m(ue,z,b.top-ee+E.y+(le?re/2:re)),ue++,le&&a.m(ue,ve.x,a.i(ue-1).y))):dt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Nh(x),y!==Nh(E)&&(ee=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===zu,E=a.isOrthogonal,b=nf(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/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=re.bottom+ee/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=re.left-ee/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=re.top-ee/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()))}}},Qe.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 sr,this.mouseDownTools),this.gb("Relinking",new mi,this.mouseDownTools),this.gb("LinkReshaping",new Si,this.mouseDownTools),this.gb("Rotating",new Ar,this.mouseDownTools),this.gb("Resizing",new fr,this.mouseDownTools),this.gb("Linking",new jn,this.mouseMoveTools),this.gb("Dragging",new Ri,this.mouseMoveTools),this.gb("DragSelecting",new gr,this.mouseMoveTools),this.gb("Panning",new Zi,this.mouseMoveTools),this.gb("ContextMenu",new ao,this.mouseUpTools),this.gb("TextEditing",new $r,this.mouseUpTools),this.gb("ClickCreating",new Rr,this.mouseUpTools),this.gb("ClickSelecting",new Eo,this.mouseUpTools)},ld("Horizontal",new ym),ld("Spot",new xm),ld("Table",new Pm),ld("Viewbox",new Em),ld("TableRow",new Cm),ld("TableColumn",new bm),ld("Graduated",new yp),ld("Grid",new vp),Zh.add("GraphLinksModel",$s),Zh.add("TreeModel",qu);var K0=ft.go,jy={get licenseKey(){return Kt.licenseKey},set licenseKey(a){Kt.licenseKey=a},get version(){return Kt.version},Group:Pr,EnumValue:sn,List:En,Set:An,Map:ki,Point:Ue,Size:ri,Rect:hn,Margin:zi,Spot:Fi,Geometry:ei,PathFigure:Es,PathSegment:vo,InputEvent:zt,DiagramEvent:Zt,ChangedEvent:pn,Model:Ti,GraphLinksModel:co,TreeModel:Yl,Binding:vs,Transaction:Ii,UndoManager:li,CommandHandler:qe,Tool:oi,DraggingTool:Ri,DraggingInfo:Kd,DraggingOptions:ae,LinkingBaseTool:Gt,LinkingTool:jn,RelinkingTool:mi,LinkReshapingTool:Si,ResizingTool:fr,RotatingTool:Ar,ClickSelectingTool:Eo,ActionTool:sr,ClickCreatingTool:Rr,HTMLInfo:ir,ContextMenuTool:ao,DragSelectingTool:gr,PanningTool:Zi,TextEditingTool:$r,ToolManager:zn,Animation:Wa,AnimationManager:va,AnimationTrigger:_l,Layer:Ea,Diagram:Kt,Palette:ce,Overview:pe,Brush:Go,GraphObject:At,Panel:Gn,RowColumnDefinition:Ts,Shape:Tr,TextBlock:la,Picture:ru,Part:Hi,Adornment:Ao,Node:ci,Link:Qn,Placeholder:Zl,Layout:Fa,LayoutNetwork:ua,LayoutVertex:zs,LayoutEdge:Mu,GridLayout:rl,PanelLayout:Rs,CircularLayout:Za,CircularNetwork:Vg,CircularVertex:Yp,CircularEdge:b0,ForceDirectedLayout:pl,ForceDirectedNetwork:ag,ForceDirectedVertex:Up,ForceDirectedEdge:Xp,LayeredDigraphLayout:Vo,LayeredDigraphNetwork:Ug,LayeredDigraphVertex:eh,LayeredDigraphEdge:$p,TreeLayout:qr,TreeNetwork:hg,TreeVertex:gh,TreeEdge:Qg};typeof K0=="object"&&K0.version&&ji("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+jy.version),Kt.prototype.go=jy,ft.go=jy,typeof On.exports=="object"&&(On.exports=typeof ye.g!="undefined"?ye.g.go:self.go)}();var be=typeof ye.g!="undefined"?ye.g.go:self.go;const Re=typeof ye.g!="undefined"?ye.g.go:self.go,at=Re.Group,kt=Re.EnumValue,Je=Re.List,it=Re.Set,Te=Re.Map,Tt=Re.Point,Pt=Re.Size,rt=Re.Rect,It=Re.Margin,gt=Re.Spot,Ct=Re.Geometry,Fe=Re.PathFigure,te=Re.PathSegment,ne=Re.InputEvent,he=Re.DiagramEvent,se=Re.ChangedEvent,ge=Re.Model,me=Re.GraphLinksModel,Pe=Re.TreeModel,ke=Re.Binding,we=Re.Transaction,Oe=Re.UndoManager,He=Re.CommandHandler,We=Re.Tool,Ve=Re.DraggingTool,ut=Re.DraggingInfo,Ke=Re.LinkingBaseTool,Wt=Re.LinkingTool,pt=Re.RelinkingTool,Ut=Re.LinkReshapingTool,Ht=Re.ResizingTool,jt=Re.RotatingTool,Xt=Re.ClickSelectingTool,Nn=Re.ActionTool,St=Re.ClickCreatingTool,Ge=Re.HTMLInfo,en=Re.ContextMenuTool,Hn=Re.DragSelectingTool,_n=Re.PanningTool,Bt=Re.TextEditingTool,rn=Re.ToolManager,cn=Re.Animation,Kn=Re.AnimationManager,nn=Re.AnimationTrigger,Rn=Re.Layer,vt=Re.Diagram,Yn=Re.Palette,ni=Re.Overview,je=Re.Brush,Me=Re.GraphObject,xe=Re.Panel,Ne=Re.RowColumnDefinition,Be=Re.Shape,Se=Re.TextBlock,lt=Re.TextBlockMetrics,Et=Re.Picture,Xe=Re.Part,tt=Re.Adornment,wt=Re.Node,xt=Re.Link,ct=Re.Placeholder,Ft=Re.Layout,Pn=Re.LayoutNetwork,mn=Re.LayoutVertex,Jt=Re.LayoutEdge,gn=Re.GridLayout,Tn=Re.PanelLayout,bt=Re.CircularLayout,_t=Re.CircularNetwork,$t=Re.CircularVertex,Dn=Re.CircularEdge,ii=Re.ForceDirectedLayout,pi=Re.ForceDirectedNetwork,fi=Re.ForceDirectedVertex,wi=Re.ForceDirectedEdge,Vi=Re.LayeredDigraphLayout,vr=Re.LayeredDigraphNetwork,cr=Re.LayeredDigraphVertex,pr=Re.LayeredDigraphEdge,_r=Re.TreeLayout,Ir=Re.TreeNetwork,$i=Re.TreeVertex,eo=Re.TreeEdge,kr=Re.version},2859:function(On,xn,ye){"use strict";ye.d(xn,{hP:function(){return ni}});var be=function(je,Me){return(be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ne){xe.__proto__=Ne}||function(xe,Ne){for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&(xe[Be]=Ne[Be])})(je,Me)};function Re(je,Me){function xe(){this.constructor=je}be(je,Me),je.prototype=Me===null?Object.create(Me):(xe.prototype=Me.prototype,new xe)}function at(je,Me,xe,Ne){return new(xe||(xe=Promise))(function(Be,Se){function lt(tt){try{Xe(Ne.next(tt))}catch(wt){Se(wt)}}function Et(tt){try{Xe(Ne.throw(tt))}catch(wt){Se(wt)}}function Xe(tt){var wt;tt.done?Be(tt.value):(wt=tt.value,wt instanceof xe?wt:new xe(function(xt){xt(wt)})).then(lt,Et)}Xe((Ne=Ne.apply(je,Me||[])).next())})}function kt(je,Me){var xe,Ne,Be,Se,lt={label:0,sent:function(){if(1&Be[0])throw Be[1];return Be[1]},trys:[],ops:[]};return Se={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function Et(Xe){return function(tt){return function(wt){if(xe)throw new TypeError("Generator is already executing.");for(;lt;)try{if(xe=1,Ne&&(Be=2&wt[0]?Ne.return:wt[0]?Ne.throw||((Be=Ne.return)&&Be.call(Ne),0):Ne.next)&&!(Be=Be.call(Ne,wt[1])).done)return Be;switch(Ne=0,Be&&(wt=[2&wt[0],Be.value]),wt[0]){case 0:case 1:Be=wt;break;case 4:return lt.label++,{value:wt[1],done:!1};case 5:lt.label++,Ne=wt[1],wt=[0];continue;case 7:wt=lt.ops.pop(),lt.trys.pop();continue;default:if(Be=lt.trys,!((Be=Be.length>0&&Be[Be.length-1])||wt[0]!==6&&wt[0]!==2)){lt=0;continue}if(wt[0]===3&&(!Be||wt[1]>Be[0]&&wt[1]<Be[3])){lt.label=wt[1];break}if(wt[0]===6&<.label<Be[1]){lt.label=Be[1],Be=wt;break}if(Be&<.label<Be[2]){lt.label=Be[2],lt.ops.push(wt);break}Be[2]&<.ops.pop(),lt.trys.pop();continue}wt=Me.call(je,lt)}catch(xt){wt=[6,xt],Ne=0}finally{xe=Be=0}if(5&wt[0])throw wt[1];return{value:wt[0]?wt[1]:void 0,done:!0}}([Xe,tt])}}}function Je(){for(var je=0,Me=0,xe=arguments.length;Me<xe;Me++)je+=arguments[Me].length;var Ne=Array(je),Be=0;for(Me=0;Me<xe;Me++)for(var Se=arguments[Me],lt=0,Et=Se.length;lt<Et;lt++,Be++)Ne[Be]=Se[lt];return Ne}var it=function(){function je(){}return je.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},je.setAttributes=function(Me,xe){for(var Ne=0,Be=xe;Ne<Be.length;Ne++){var Se=Be[Ne],lt=Se[0],Et=Se[1];Me.setAttribute(lt,Et)}},je.createRect=function(Me,xe,Ne){var Be=document.createElementNS("http://www.w3.org/2000/svg","rect");return Be.setAttribute("width",Me.toString()),Be.setAttribute("height",xe.toString()),Ne&&je.setAttributes(Be,Ne),Be},je.createLine=function(Me,xe,Ne,Be,Se){var lt=document.createElementNS("http://www.w3.org/2000/svg","line");return lt.setAttribute("x1",Me.toString()),lt.setAttribute("y1",xe.toString()),lt.setAttribute("x2",Ne.toString()),lt.setAttribute("y2",Be.toString()),Se&&je.setAttributes(lt,Se),lt},je.createPolygon=function(Me,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",Me),xe&&je.setAttributes(Ne,xe),Ne},je.createCircle=function(Me,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(Me/2).toString()),Ne.setAttribute("cy",(Me/2).toString()),Ne.setAttribute("r",Me.toString()),xe&&je.setAttributes(Ne,xe),Ne},je.createEllipse=function(Me,xe,Ne){var Be=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Be.setAttribute("cx",(Me/2).toString()),Be.setAttribute("cy",(xe/2).toString()),Be.setAttribute("rx",(Me/2).toString()),Be.setAttribute("ry",(xe/2).toString()),Ne&&je.setAttributes(Be,Ne),Be},je.createGroup=function(Me){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Me&&je.setAttributes(xe,Me),xe},je.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},je.createMarker=function(Me,xe,Ne,Be,Se,lt,Et){var Xe=document.createElementNS("http://www.w3.org/2000/svg","marker");return je.setAttributes(Xe,[["id",Me],["orient",xe],["markerWidth",Ne.toString()],["markerHeight",Be.toString()],["refX",Se.toString()],["refY",lt.toString()]]),Xe.appendChild(Et),Xe},je.createText=function(Me){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Me&&je.setAttributes(xe,Me),xe},je.createTSpan=function(Me,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=Me,xe&&je.setAttributes(Ne,xe),Ne},je.createImage=function(Me){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Me&&je.setAttributes(xe,Me),xe},je.createPoint=function(Me,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=Me,Ne.y=xe,Ne},je.createPath=function(Me,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",Me),xe&&je.setAttributes(Ne,xe),Ne},je}(),Te=function(){function je(){}return je.addKey=function(Me){je.key=Me},Object.defineProperty(je,"isLicensed",{get:function(){return!!je.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(je.key)},enumerable:!1,configurable:!0}),je}(),Tt=function(){function je(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return je.prototype.rasterize=function(Me,xe,Ne){var Be=this;return new Promise(function(Se){var lt=Ne!==void 0?Ne:document.createElement("canvas");Me===null&&(Be.markersOnly=!0,Be.naturalSize=!1);var Et=document.createElementNS("http://www.w3.org/2000/svg","svg");Et.setAttribute("xmlns","http://www.w3.org/2000/svg"),Et.setAttribute("width",xe.width.baseVal.valueAsString),Et.setAttribute("height",xe.height.baseVal.valueAsString),Et.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),Et.innerHTML=xe.innerHTML,Be.naturalSize===!0?(Et.width.baseVal.value=Me.naturalWidth,Et.height.baseVal.value=Me.naturalHeight):Be.width!==void 0&&Be.height!==void 0&&(Et.width.baseVal.value=Be.width,Et.height.baseVal.value=Be.height),lt.width=Et.width.baseVal.value,lt.height=Et.height.baseVal.value;var Xe=Et.outerHTML,tt=lt.getContext("2d");Be.markersOnly!==!0&&tt.drawImage(Me,0,0,lt.width,lt.height);var wt=window.URL,xt=new Image(lt.width,lt.height);xt.setAttribute("crossOrigin","anonymous");var ct=new Blob([Xe],{type:"image/svg+xml"}),Ft=wt.createObjectURL(ct);xt.onload=function(){tt.drawImage(xt,0,0),wt.revokeObjectURL(Ft);var Pn=lt.toDataURL(Be.imageType,Be.imageQuality);Se(Pn)},xt.src=Ft})},je}(),Pt=function(){},rt=function(){function je(Me){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Me+"_"}return Object.defineProperty(je.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(je.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(je.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),je.prototype.addClass=function(Me){return this.styleSheet===void 0&&this.addStyleSheet(),Me.name=""+this.classNamePrefix+Me.localName,this.classes.push(Me),this.styleSheet.sheet.insertRule("."+Me.name+" {"+Me.style+"}",this.styleSheet.sheet.cssRules.length),Me},je.prototype.addRule=function(Me){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Me),this.styleSheet.sheet.insertRule(Me.selector+" {"+Me.style+"}",this.styleSheet.sheet.cssRules.length)},je.prototype.addStyleSheet=function(){var Me;this.styleSheet=document.createElement("style"),((Me=this.styleSheetRoot)!==null&&Me!==void 0?Me:document.head).appendChild(this.styleSheet),this.addRule(new It("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new It("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new It("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new gt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new gt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},je.prototype.removeStyleSheet=function(){var Me;this.styleSheet&&(((Me=this.styleSheetRoot)!==null&&Me!==void 0?Me:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},je}(),It=function(je,Me){this.selector=je,this.style=Me},gt=function(je,Me){this.localName=je,this.style=Me},Ct=function(){function je(Me,xe,Ne,Be,Se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Me,this.displayMode=xe,this.markerItems=Ne,this.uiStyleSettings=Be,this.styles=Se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return je.prototype.show=function(Me){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Me,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Se){var lt=document.createElement("div");lt.className=""+xe.toolbarButtonStyleClass.name,lt.setAttribute("data-type-name",Se.typeName),lt.innerHTML=Se.icon,lt.addEventListener("click",function(){xe.markerToolbarButtonClicked(lt,Se)}),xe.buttons.push(lt),xe.markerButtons.push(lt)}),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 Be=document.createElement("div");Be.className=this.toolbarBlockStyleClass.name,Be.style.whiteSpace="nowrap",Be.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Be),this.addActionButton(Be,'<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(Be,'<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()},je.prototype.addButtonClickListener=function(Me){this.buttonClickListeners.push(Me)},je.prototype.removeButtonClickListener=function(Me){this.buttonClickListeners.indexOf(Me)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Me),1)},je.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},je.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Me=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Me||xe===Me&&this.markerButtons.length-1===Me?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Me&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},je.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")},je.prototype.resetButtonStyles=function(){var Me=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Me.uiStyleSettings.toolbarButtonStyleColorsClassName?Me.uiStyleSettings.toolbarButtonStyleColorsClassName:Me.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Me.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Me.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Me.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Me.uiStyleSettings.toolbarButtonStyleColorsClassName?Me.uiStyleSettings.toolbarButtonStyleColorsClassName:Me.toolbarButtonStyleColorsClass.name)})},je.prototype.addActionButton=function(Me,xe,Ne){var Be=this,Se=document.createElement("div");switch(Se.className=""+this.toolbarButtonStyleClass.name,Se.innerHTML=xe,Se.setAttribute("data-action",Ne),Se.addEventListener("click",function(){Be.actionToolbarButtonClicked(Se,Ne)}),Ne){case"select":Se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Se.style.fill=this.uiStyleSettings.closeButtonColor}Me.appendChild(Se),this.buttons.push(Se)},je.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new gt("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 gt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new gt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new gt("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 gt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Me=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new gt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Me)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Me)+`px;
|
|
|
padding: `+Me+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new gt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new gt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new It("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new It("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},je.prototype.markerToolbarButtonClicked=function(Me,xe){this.setActiveButton(Me),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},je.prototype.actionToolbarButtonClicked=function(Me,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},je.prototype.setActiveButton=function(Me){this.resetButtonStyles(),Me.className=Me.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Me.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},je.prototype.setActiveMarkerButton=function(Me){var xe=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===Me});xe&&this.setActiveButton(xe)},je.prototype.setCurrentMarker=function(Me){var xe=this;this.currentMarker=Me,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){xe.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},je}(),Fe=function(){function je(Me,xe,Ne,Be){this.panels=[],this.panelButtons=[],this.markerjsContainer=Me,this.displayMode=xe,this.uiStyleSettings=Ne,this.styles=Be,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return je.prototype.addStyles=function(){var Me;this.toolboxStyleClass=this.styles.addClass(new gt("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 gt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new gt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new gt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new gt("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 gt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Me=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Me!==void 0?Me:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new gt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new gt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new gt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new It("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new It("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},je.prototype.show=function(Me){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Me,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},je.prototype.setPanelButtons=function(Me){var xe,Ne,Be=this;this.panels=Me,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Se){var lt;Se.uiStyleSettings=Be.uiStyleSettings;var Et=document.createElement("div");Et.className=Be.toolboxButtonStyleClass.name+" "+((lt=Be.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&<!==void 0?lt:Be.toolboxButtonStyleColorsClass.name),Et.innerHTML=Se.icon,Et.title=Se.title,Et.addEventListener("click",function(){Be.panelButtonClick(Se)}),Be.panelButtons.push(Et),Be.buttonRow.appendChild(Et)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},je.prototype.panelButtonClick=function(Me){var xe=this,Ne=-1;if(Me!==this.activePanel){Ne=this.panels.indexOf(Me),this.panelRow.innerHTML="";var Be=Me.getUi();Be.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Be),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=Me}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Se,lt){var Et,Xe;Se.className=xe.toolboxButtonStyleClass.name+" "+(lt===Ne?""+((Et=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Et!==void 0?Et:xe.toolboxActiveButtonStyleColorsClass.name):""+((Xe=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:xe.toolboxButtonStyleColorsClass.name))})},je}(),te=function(je,Me){this.title=je,this.icon=Me},ne=function(je){function Me(xe,Ne,Be,Se){var lt=je.call(this,xe,Se||'<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 lt.colors=[],lt.addTransparent=!1,lt.colorBoxes=[],lt.colors=Ne,lt.currentColor=Be,lt.setCurrentColor=lt.setCurrentColor.bind(lt),lt.getColorBox=lt.getColorBox.bind(lt),lt}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(Be){var Se=xe.getColorBox(Be);Ne.appendChild(Se),xe.colorBoxes.push(Se)}),Ne},Me.prototype.getColorBox=function(xe){var Ne=this,Be=this.uiStyleSettings.toolbarHeight/4,Se=this.uiStyleSettings.toolbarHeight-Be,lt=document.createElement("div");lt.style.display="inline-block",lt.style.boxSizing="content-box",lt.style.width=Se-2+"px",lt.style.height=Se-2+"px",lt.style.padding="1px",lt.style.marginRight="2px",lt.style.marginBottom="2px",lt.style.borderWidth="2px",lt.style.borderStyle="solid",lt.style.borderRadius=(Se+2)/2+"px",lt.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",lt.addEventListener("click",function(){Ne.setCurrentColor(xe,lt)});var Et=document.createElement("div");return Et.style.display="inline-block",Et.style.width=Se-2+"px",Et.style.height=Se-2+"px",Et.style.backgroundColor=xe,Et.style.borderRadius=Se/2+"px",xe==="transparent"&&(Et.style.fill=this.uiStyleSettings.toolboxAccentColor,Et.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>`),lt.appendChild(Et),lt},Me.prototype.setCurrentColor=function(xe,Ne){var Be=this;this.currentColor=xe,this.colorBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Me}(te),he=function(){function je(Me,xe,Ne){this._state="new",this._isSelected=!1,this._container=Me,this._overlayContainer=xe,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(je.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(Me){return!1},Object.defineProperty(je.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},je.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},je.prototype.pointerDown=function(Me,xe){},je.prototype.dblClick=function(Me,xe){},je.prototype.manipulate=function(Me){},je.prototype.pointerUp=function(Me){this.stateChanged()},je.prototype.dispose=function(){},je.prototype.addMarkerVisualToContainer=function(Me){this.container.childNodes.length>0?this.container.insertBefore(Me,this.container.childNodes[0]):this.container.appendChild(Me)},je.prototype.getState=function(){return{typeName:je.typeName,state:this.state,notes:this.notes}},je.prototype.restoreState=function(Me){this._state=Me.state,this.notes=Me.notes},je.prototype.scale=function(Me,xe){},je.prototype.colorChanged=function(Me){this.onColorChanged&&this.onColorChanged(Me),this.stateChanged()},je.prototype.fillColorChanged=function(Me){this.onFillColorChanged&&this.onFillColorChanged(Me),this.stateChanged()},je.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Me=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Me.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Me)&&this.onStateChanged(this)}},je.typeName="MarkerBase",je}(),se=function(){function je(){this.findGripByVisual=this.findGripByVisual.bind(this)}return je.prototype.findGripByVisual=function(Me){return this.topLeft.ownsTarget(Me)?this.topLeft:this.topCenter.ownsTarget(Me)?this.topCenter:this.topRight.ownsTarget(Me)?this.topRight:this.centerLeft.ownsTarget(Me)?this.centerLeft:this.centerRight.ownsTarget(Me)?this.centerRight:this.bottomLeft.ownsTarget(Me)?this.bottomLeft:this.bottomCenter.ownsTarget(Me)?this.bottomCenter:this.bottomRight.ownsTarget(Me)?this.bottomRight:void 0},je}(),ge=function(){function je(){this.GRIP_SIZE=10,this.visual=it.createGroup(),this.visual.appendChild(it.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(it.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return je.prototype.ownsTarget=function(Me){return Me===this.visual||Me===this.visual.childNodes[0]||Me===this.visual.childNodes[1]},je}(),me=function(){function je(){}return je.toITransformMatrix=function(Me){return{a:Me.a,b:Me.b,c:Me.c,d:Me.d,e:Me.e,f:Me.f}},je.toSVGMatrix=function(Me,xe){return Me.a=xe.a,Me.b=xe.b,Me.c=xe.c,Me.d=xe.d,Me.e=xe.e,Me.f=xe.f,Me},je}(),Pe=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.left=0,Se.top=0,Se.width=0,Se.height=0,Se.defaultSize={x:50,y:20},Se.offsetX=0,Se.offsetY=0,Se.rotationAngle=0,Se.CB_DISTANCE=10,Se._suppressMarkerCreateEvent=!1,Se.container.transform.baseVal.appendItem(it.createTransform()),Se.setupControlBox(),Se}return Re(Me,je),Object.defineProperty(Me.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Ne=it.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),Me.prototype.ownsTarget=function(xe){return!!je.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Be=this.unrotatePoint(xe);if(this.manipulationStartX=Be.x,this.manipulationStartY=Be.y,this.offsetX=Be.x-this.left,this.offsetY=Be.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var Se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Se.x-this.width/2,this.top=Se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var lt=this.container.transform.baseVal.getItem(0);lt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(lt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Me.prototype.pointerUp=function(xe){var Ne=this.state;je.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Me.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Me.prototype.manipulate=function(xe){var Ne=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(xe)},Me.prototype.resize=function(xe){var Ne=this.manipulationStartLeft,Be=this.manipulationStartWidth,Se=this.manipulationStartTop,lt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+xe.x-this.manipulationStartX,Be=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Be=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Se=this.manipulationStartTop+xe.y-this.manipulationStartY,lt=this.manipulationStartHeight+this.manipulationStartTop-Se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:lt=this.manipulationStartHeight+xe.y-this.manipulationStartY}Be>=0?(this.left=Ne,this.width=Be):(this.left=Ne+Be,this.width=-Be),lt>=0?(this.top=Se,this.height=lt):(this.top=Se+lt,this.height=-lt),this.setSize()},Me.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Me.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var Ne=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},Me.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Me.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM(),Be=it.createPoint(xe.x,xe.y);return{x:(Be=Be.matrixTransform(Ne)).x,y:Be.y}},Me.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM();Ne=Ne.inverse();var Be=it.createPoint(xe.x,xe.y);return{x:(Be=Be.matrixTransform(Ne)).x,y:Be.y}},Me.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Me.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},Me.prototype.setupControlBox=function(){this.controlBox=it.createGroup();var xe=it.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=it.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=it.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 se,this.addControlGrips(),this.controlBox.style.display="none"},Me.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,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()},Me.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()},Me.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(it.createTransform()),this.controlBox.appendChild(xe.visual),xe},Me.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Ne=-xe/2,Be=Ne,Se=(this.width+this.CB_DISTANCE)/2-xe/2,lt=(this.height+this.CB_DISTANCE)/2-xe/2,Et=this.height+this.CB_DISTANCE-xe/2,Xe=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,Be),this.positionGrip(this.controlGrips.topCenter.visual,Se,Be),this.positionGrip(this.controlGrips.topRight.visual,Xe,Be),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,lt),this.positionGrip(this.controlGrips.centerRight.visual,Xe,lt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Et),this.positionGrip(this.controlGrips.bottomCenter.visual,Se,Et),this.positionGrip(this.controlGrips.bottomRight.visual,Xe,Et),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Se,Be-3*this.CB_DISTANCE)},Me.prototype.positionGrip=function(xe,Ne,Be){var Se=xe.transform.baseVal.getItem(0);Se.setTranslate(Ne,Be),xe.transform.baseVal.replaceItem(Se,0)},Me.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Me.prototype.showControlBox=function(){this.controlBox.style.display=""},Me.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},je.prototype.getState.call(this))},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe);var Ne=xe;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne);var Be=this.rotatePoint({x:this.left,y:this.top}),Se=this.unrotatePoint({x:Be.x*xe,y:Be.y*Ne});this.left=Se.x,this.top=Se.y,this.width=this.width*xe,this.height=this.height*Ne,this.adjustControlBox()},Me}(he),ke=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.opacity=1,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Me.prototype.createVisual=function(){this.visual=it.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)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Me.prototype.manipulate=function(xe){je.prototype.manipulate.call(this,xe)},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),this.setSize()},Me.prototype.setSize=function(){je.prototype.setSize.call(this),it.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Me.prototype.pointerUp=function(xe){je.prototype.pointerUp.call(this,xe),this.setSize()},Me.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&it.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Me.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&it.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Me.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&it.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Me.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&it.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Me.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this))},Me.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),je.prototype.restoreState.call(this,xe),this.setSize()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.setSize()},Me.title="Rectangle marker",Me}(Pe),we=function(je){function Me(xe,Ne,Be,Se){var lt=je.call(this,xe,Se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return lt.widths=[],lt.widthBoxes=[],lt.widths=Ne,lt.currentWidth=Be,lt.setCurrentWidth=lt.setCurrentWidth.bind(lt),lt}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(Be){var Se=document.createElement("div");Se.style.display="flex",Se.style.flexGrow="2",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=Be===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){xe.setCurrentWidth(Be,Se)}),Ne.appendChild(Se);var lt=document.createElement("div");lt.innerText=Be.toString(),lt.style.marginRight="5px",Se.appendChild(lt);var Et=document.createElement("div");Et.style.minHeight="20px",Et.style.flexGrow="2",Et.style.display="flex",Et.style.alignItems="center";var Xe=document.createElement("hr");Xe.style.minWidth="20px",Xe.style.border="0px",Xe.style.borderTop=Be+"px solid "+xe.uiStyleSettings.toolboxColor,Xe.style.flexGrow="2",Et.appendChild(Xe),Se.appendChild(Et),xe.widthBoxes.push(Se)}),Ne},Me.prototype.setCurrentWidth=function(xe,Ne){var Be=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Me}(te),Oe=function(je){function Me(xe,Ne,Be,Se){var lt=je.call(this,xe,Se||'<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 lt.styles=[],lt.styleBoxes=[],lt.styles=Ne,lt.currentStyle=Be,lt.setCurrentStyle=lt.setCurrentStyle.bind(lt),lt}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(Be){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/xe.styles.length-5+"%",Se.style.borderColor=Be===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){xe.setCurrentStyle(Be,Se)}),Ne.appendChild(Se);var lt=document.createElement("div");lt.style.minHeight="20px",lt.style.flexGrow="2",lt.style.overflow="hidden";var Et=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Be!==""?'stroke-dasharray="'+Be+'"':"")+` />
|
|
|
</svg>`;lt.innerHTML=Et,Se.appendChild(lt),xe.styleBoxes.push(Se)}),Ne},Me.prototype.setCurrentStyle=function(xe,Ne){var Be=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Me}(te),He=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.strokeColor=Be.defaultColor,Se.strokeWidth=Be.defaultStrokeWidth,Se.strokeDasharray=Be.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",Be.defaultColorSet,Be.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Oe("Line style",Be.defaultStrokeDasharrays,Be.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Re(Me,je),Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=je.prototype.getState.call(this);return xe.typeName=Me.typeName,xe},Me.typeName="FrameMarker",Me.title="Frame marker",Me.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Me}(ke),We=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"},Ve=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.x1=0,Se.y1=0,Se.x2=0,Se.y2=0,Se.defaultLength=50,Se.manipulationStartX=0,Se.manipulationStartY=0,Se.manipulationStartX1=0,Se.manipulationStartY1=0,Se.manipulationStartX2=0,Se.manipulationStartY2=0,Se.setupControlBox(),Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!!je.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Me.prototype.pointerUp=function(xe){var Ne=this.state;je.prototype.pointerUp.call(this,xe),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(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Me.prototype.adjustVisual=function(){},Me.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Me.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Me.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Me.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},Me.prototype.setupControlBox=function(){this.controlBox=it.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Me.prototype.adjustControlBox=function(){this.positionGrips()},Me.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Me.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(it.createTransform()),this.controlBox.appendChild(xe.visual),xe},Me.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Me.prototype.positionGrip=function(xe,Ne,Be){var Se=xe.transform.baseVal.getItem(0);Se.setTranslate(Ne,Be),xe.transform.baseVal.replaceItem(Se,0)},Me.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},je.prototype.getState.call(this))},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe);var Ne=xe;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.x1=this.x1*xe,this.y1=this.y1*Ne,this.x2=this.x2*xe,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},Me}(he),ut=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.strokeColor=Be.defaultColor,Se.strokeWidth=Be.defaultStrokeWidth,Se.strokeDasharray=Be.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",Be.defaultColorSet,Be.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Oe("Line style",Be.defaultStrokeDasharrays,Be.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Me.prototype.createVisual=function(){this.visual=it.createGroup(),this.selectorLine=it.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=it.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)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Me.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()),it.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),it.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),it.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Me.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Me.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Me.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},Me.typeName="LineMarker",Me.title="Line marker",Me.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Me}(Ve),Ke=function(je){function Me(xe,Ne,Be,Se){var lt=je.call(this,xe,Se||'<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 lt.fonts=[],lt.fontBoxes=[],lt.fonts=Ne,lt.currentFont=Be,lt.setCurrentFont=lt.setCurrentFont.bind(lt),lt}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(Be){var Se=document.createElement("div");Se.style.display="inline-block",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/xe.fonts.length-5+"%",Se.style.borderColor=Be===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){xe.setCurrentFont(Be,Se)}),Ne.appendChild(Se);var lt=document.createElement("div");lt.style.display="flex",lt.style.minHeight="20px",lt.style.flexGrow="2",lt.style.fontFamily=Be,lt.style.overflow="hidden";var Et=document.createElement("div");Et.style.whiteSpace="nowrap",Et.style.overflow="hidden",Et.style.textOverflow="ellipsis",Et.innerHTML="The quick brown fox jumps over the lazy dog",lt.appendChild(Et),Se.appendChild(lt),xe.fontBoxes.push(Se)}),Ne},Me.prototype.setCurrentFont=function(xe,Ne){var Be=this;this.currentFont=xe,this.fontBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Me}(te),Wt=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.color="transparent",Se.padding=5,Se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Se.text=Se.DEFAULT_TEXT,Se.isMoved=!1,Se.color=Be.defaultColor,Se.fontFamily=Be.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setColor=Se.setColor.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.renderText=Se.renderText.bind(Se),Se.sizeText=Se.sizeText.bind(Se),Se.textEditDivClicked=Se.textEditDivClicked.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.setSize=Se.setSize.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.colorPanel=new ne("Color",Be.defaultColorSet,Be.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.fontFamilyPanel=new Ke("Font",Be.defaultFontFamilies,Be.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){if(je.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(Be){Be===xe&&(Ne=!0)}),Ne},Me.prototype.createVisual=function(){this.visual=it.createGroup(),this.bgRectangle=it.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=it.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(it.createTransform()),this.textElement.transform.baseVal.appendItem(it.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Me.prototype.renderText=function(){var xe=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(Ne){xe.textElement.appendChild(it.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Me.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Ne=1;if(xe.width>0&&xe.height>0){var Be=(1*this.width-this.width*this.padding*2/100)/xe.width,Se=(1*this.height-this.height*this.padding*2/100)/xe.height;Ne=Math.min(Be,Se)}return Ne},Me.prototype.getTextPosition=function(xe){var Ne=this.textElement.getBBox(),Be=0,Se=0;return Ne.width>0&&Ne.height>0&&(Be=(this.width-Ne.width*xe)/2,Se=this.height/2-Ne.height*xe/2),{x:Be,y:Se}},Me.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Ne=this.getTextScale(),Be=this.getTextPosition(Ne);Be.y-=xe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Be.x+"px, "+Be.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Be.x,Be.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},Me.prototype.manipulate=function(xe){je.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Me.prototype.setSize=function(){je.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(it.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),it.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Me.prototype.pointerUp=function(xe){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),je.prototype.pointerUp.call(this,xe),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Me.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,xe.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var Be=Ne.clipboardData.getData("text"),Se=window.getSelection();if(!Se.rangeCount)return!1;Se.deleteFromDocument(),Se.getRangeAt(0).insertNode(document.createTextNode(Be)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Me.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Be=this.textElement.getBBox(),Se={x:Be.width*xe,y:Be.height*xe};Ne.x-=Se.x/2,Ne.y-=Se.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Me.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Me.prototype.select=function(){je.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Me.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),je.prototype.deselect.call(this)},Me.prototype.dblClick=function(xe,Ne){je.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Me.prototype.setColor=function(xe){this.textElement&&it.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Me.prototype.setFont=function(xe){this.textElement&&it.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Me.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Me.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){var Ne=xe;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),je.prototype.restoreState.call(this,xe),this.setSize()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},Me.typeName="TextMarker",Me.title="Text marker",Me.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>',Me}(Pe),pt=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.color="transparent",Se.lineWidth=3,Se.drawing=!1,Se.pixelRatio=1,Se.color=Be.defaultColor,Se.lineWidth=Be.defaultStrokeWidth,Se.pixelRatio=Be.freehandPixelRatio,Se.setColor=Se.setColor.bind(Se),Se.addCanvas=Se.addCanvas.bind(Se),Se.finishCreation=Se.finishCreation.bind(Se),Se.setLineWidth=Se.setLineWidth.bind(Se),Se.colorPanel=new ne("Color",Be.defaultColorSet,Be.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.lineWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.lineWidthPanel.onWidthChanged=Se.setLineWidth,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Me.prototype.createVisual=function(){this.visual=it.createGroup(),this.drawingImage=it.createImage(),this.visual.appendChild(this.drawingImage);var xe=it.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Me.prototype.pointerDown=function(xe,Ne){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(xe.x,xe.y),this.drawing=!0):je.prototype.pointerDown.call(this,xe,Ne)},Me.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):je.prototype.manipulate.call(this,xe)},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),it.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),it.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Me.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):je.prototype.pointerUp.call(this,xe)},Me.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)},Me.prototype.select=function(){this.state==="creating"&&this.finishCreation(),je.prototype.select.call(this)},Me.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),je.prototype.deselect.call(this)},Me.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Be=Ne[0],Se=Ne[1],lt=Ne[2],Et=Ne[3],Xe=!1,tt=0;tt<this.canvasElement.height;tt++)for(var wt=0;wt<this.canvasElement.width;wt++)xe.data[tt*this.canvasElement.width*4+4*wt+3]>0&&(Xe=!0,tt<Se&&(Se=tt),wt<Be&&(Be=wt),tt>Et&&(Et=tt),wt>lt&&(lt=wt));if(Xe){this.left=Be/this.pixelRatio,this.top=Se/this.pixelRatio,this.width=(lt-Be)/this.pixelRatio,this.height=(Et-Se)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=lt-Be,xt.height=Et-Se,xt.getContext("2d").putImageData(this.canvasContext.getImageData(Be,Se,lt-Be,Et-Se),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Me.prototype.setDrawingImage=function(){it.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),it.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Me.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Me.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){this.createVisual(),je.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.setDrawingImage()},Me.typeName="FreehandMarker",Me.title="Freehand marker",Me.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>',Me}(Pe),Ut=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Be||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Se.typeBoxes=[],Se.currentType=Ne,Se.setCurrentType=Se.setCurrentType.bind(Se),Se}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var Be=function(Et){var Xe="both";switch(Et){case 0:Xe="both";break;case 1:Xe="start";break;case 2:Xe="end";break;case 3:Xe="none"}var tt=document.createElement("div");if(tt.style.display="flex",tt.style.flexGrow="2",tt.style.alignItems="center",tt.style.justifyContent="space-between",tt.style.padding="5px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderColor=Xe===Se.currentType?Se.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){xe.setCurrentType(Xe,tt)}),Ne.appendChild(tt),Xe==="both"||Xe==="start"){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.minHeight="20px",wt.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="`+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,wt.style.marginLeft="5px",tt.appendChild(wt)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var ct=document.createElement("hr");if(ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop="3px solid "+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee"),ct.style.flexGrow="2",xt.appendChild(ct),tt.appendChild(xt),Xe==="both"||Xe==="end"){var Ft=document.createElement("div");Ft.style.display="flex",Ft.style.alignItems="center",Ft.style.minHeight="20px",Ft.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="`+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ft.style.marginRight="5px",tt.appendChild(Ft)}Se.typeBoxes.push(tt)},Se=this,lt=0;lt<4;lt++)Be(lt);return Ne},Me.prototype.setCurrentType=function(xe,Ne){var Be=this;this.currentType=xe,this.typeBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Me}(te),Ht=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.arrowType="end",Se.arrowBaseHeight=10,Se.arrowBaseWidth=10,Se.getArrowPoints=Se.getArrowPoints.bind(Se),Se.setArrowType=Se.setArrowType.bind(Se),Se.arrowTypePanel=new Ut("Arrow type","end"),Se.arrowTypePanel.onArrowTypeChanged=Se.setArrowType,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Me.prototype.getArrowPoints=function(xe,Ne){var Be=this.arrowBaseWidth+2*this.strokeWidth,Se=this.arrowBaseHeight+2*this.strokeWidth;return xe-Be/2+","+(Ne+Se/2)+" "+xe+","+(Ne-Se/2)+" "+(xe+Be/2)+","+(Ne+Se/2)},Me.prototype.createTips=function(){this.arrow1=it.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(it.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=it.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(it.createTransform()),this.visual.appendChild(this.arrow2)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Me.prototype.adjustVisual=function(){if(je.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",it.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),it.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var Be=this.arrow2.transform.baseVal.getItem(0);Be.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Be,0)}},Me.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe);var Ne=xe;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},Me.typeName="ArrowMarker",Me.title="Arrow marker",Me.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Me}(ut),jt=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.fillColor=Be.defaultFillColor,Se.strokeWidth=0,Se.fillPanel=new ne("Color",Be.defaultColorSet,Be.defaultFillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se}return Re(Me,je),Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=je.prototype.getState.call(this);return xe.typeName=Me.typeName,xe},Me.typeName="CoverMarker",Me.title="Cover marker",Me.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Me}(ke),Xt=function(je){function Me(xe,Ne,Be,Se){var lt=je.call(this,xe,Se||'<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 lt.opacities=[],lt.opacityBoxes=[],lt.opacities=Ne,lt.currentOpacity=Be,lt.setCurrentOpacity=lt.setCurrentOpacity.bind(lt),lt}return Re(Me,je),Me.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(Be){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="center",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=Be===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){xe.setCurrentOpacity(Be,Se)}),Ne.appendChild(Se);var lt=document.createElement("div");lt.innerText=100*Be+"%",Se.appendChild(lt),xe.opacityBoxes.push(Se)}),Ne},Me.prototype.setCurrentOpacity=function(xe,Ne){var Be=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?Be.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Me}(te),Nn=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.setOpacity=Se.setOpacity.bind(Se),Se.fillColor=Be.defaultHighlightColor,Se.strokeWidth=0,Se.opacity=Be.defaultHighlightOpacity,Se.fillPanel=new ne("Color",Be.defaultColorSet,Se.fillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se.opacityPanel=new Xt("Opacity",Be.defaultOpacitySteps,Se.opacity),Se.opacityPanel.onOpacityChanged=Se.setOpacity,Se}return Re(Me,je),Me.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&it.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=je.prototype.getState.call(this);return xe.typeName=Me.typeName,xe},Me.typeName="HighlightMarker",Me.title="Highlight marker",Me.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>',Me}(jt),St='<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>',Ge='<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(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.bgColor="transparent",Se.tipPosition={x:0,y:0},Se.tipBase1Position={x:0,y:0},Se.tipBase2Position={x:0,y:0},Se.tipMoving=!1,Se.color=Be.defaultStrokeColor,Se.bgColor=Be.defaultFillColor,Se.fontFamily=Be.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setBgColor=Se.setBgColor.bind(Se),Se.getTipPoints=Se.getTipPoints.bind(Se),Se.positionTip=Se.positionTip.bind(Se),Se.setTipPoints=Se.setTipPoints.bind(Se),Se.colorPanel=new ne("Text color",Be.defaultColorSet,Se.color,St),Se.colorPanel.onColorChanged=Se.setColor,Se.bgColorPanel=new ne("Fill color",Be.defaultColorSet,Se.bgColor,Ge),Se.bgColorPanel.onColorChanged=Se.setBgColor,Se.fontFamilyPanel=new Ke("Font",Be.defaultFontFamilies,Be.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.tipGrip=new ge,Se.tipGrip.visual.transform.baseVal.appendItem(it.createTransform()),Se.controlBox.appendChild(Se.tipGrip.visual),Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return je.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Me.prototype.createTip=function(){it.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=it.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Me.prototype.pointerDown=function(xe,Ne){this.state==="new"&&je.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):je.prototype.pointerDown.call(this,xe,Ne)},Me.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,je.prototype.pointerUp.call(this,xe);else{var Ne=this.state==="creating";je.prototype.pointerUp.call(this,xe),this.setTipPoints(Ne),this.positionTip()}},Me.prototype.manipulate=function(xe){if(this.tipMoving){var Ne=this.unrotatePoint(xe);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else je.prototype.manipulate.call(this,xe)},Me.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(it.setAttributes(this.bgRectangle,[["fill",xe]]),it.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Me.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},Me.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Ne=Math.min(this.height/2,15),Be=this.height/5;xe&&(this.tipPosition={x:Ne+Be/2,y:this.height+20});var Se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Be=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+Be,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+Be}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Be=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-Be,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+Be}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Be=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-Be,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-Be},this.tipBase2Position={x:this.width,y:this.height-Ne}):Se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Be=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+Be,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-Be})},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),this.positionTip()},Me.prototype.positionTip=function(){it.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Me.prototype.select=function(){this.positionTip(),je.prototype.select.call(this)},Me.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){var Ne=xe;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,je.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Ne},this.positionTip()},Me.typeName="CalloutMarker",Me.title="Callout marker",Me.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>',Me}(Wt),Hn=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.opacity=1,Se.strokeColor=Be.defaultColor,Se.strokeWidth=Be.defaultStrokeWidth,Se.strokeDasharray=Be.defaultStrokeDasharray,Se.fillColor=Be.defaultFillColor,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.setOpacity=Se.setOpacity.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se.strokePanel=new ne("Line color",Je(Be.defaultColorSet,["transparent"]),Be.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.fillPanel=new ne("Fill color",Je(Be.defaultColorSet,["transparent"]),Se.fillColor,Ge),Se.fillPanel.onColorChanged=Se.setFillColor,Se.strokeWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Oe("Line style",Be.defaultStrokeDasharrays,Be.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se.opacityPanel=new Xt("Opacity",Be.defaultOpacitySteps,Se.opacity),Se.opacityPanel.onOpacityChanged=Se.setOpacity,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Me.prototype.createVisual=function(){this.visual=it.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)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Me.prototype.manipulate=function(xe){je.prototype.manipulate.call(this,xe)},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),this.setSize()},Me.prototype.setSize=function(){je.prototype.setSize.call(this),it.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Me.prototype.pointerUp=function(xe){je.prototype.pointerUp.call(this,xe),this.setSize()},Me.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&it.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Me.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&it.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Me.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&it.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Me.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&it.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Me.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&it.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),je.prototype.restoreState.call(this,xe),this.setSize()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.setSize()},Me.typeName="EllipseMarker",Me.title="Ellipse marker",Me.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>',Me}(Pe),_n=function(je){function Me(xe,Ne,Be){return je.call(this,xe,Ne,Be)||this}return Re(Me,je),Object.defineProperty(Me.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Me.prototype.createTips=function(){this.tip1=it.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(it.createTransform()),this.visual.appendChild(this.tip1),this.tip2=it.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(it.createTransform()),this.visual.appendChild(this.tip2)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Me.prototype.adjustVisual=function(){if(je.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(it.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()]]),it.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 xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var Be=this.tip2.transform.baseVal.getItem(0);Be.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Be,0)}},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=je.prototype.getState.call(this);return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Me.typeName="MeasurementMarker",Me.title="Measurement marker",Me.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>',Me}(ut),Bt=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.strokePanel.colors=Be.defaultColorSet,Se.fillColor="transparent",Se}return Re(Me,je),Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=je.prototype.getState.call(this);return xe.typeName=Me.typeName,xe},Me.typeName="EllipseFrameMarker",Me.title="Ellipse frame marker",Me.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>',Me}(Hn),rn=function(){function je(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),je.prototype.addUndoStep=function(Me){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Me)||(this.undoStack.push(Me),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Me)&&this.redoStack.splice(0,this.redoStack.length))},je.prototype.replaceLastUndoStep=function(Me){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Me)},je.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},je.prototype.undo=function(){if(this.undoStack.length>1){var Me=this.undoStack.pop();return Me!==void 0&&this.redoStack.push(Me),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},je.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},je}(),cn=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.curveX=0,Se.curveY=0,Se.manipulationStartCurveX=0,Se.manipulationStartCurveY=0,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.positionGrips=Se.positionGrips.bind(Se),Se.addControlGrips=Se.addControlGrips.bind(Se),Se.adjustVisual=Se.adjustVisual.bind(Se),Se.setupControlBox=Se.setupControlBox.bind(Se),Se.resize=Se.resize.bind(Se),Se.strokeColor=Be.defaultColor,Se.strokeWidth=Be.defaultStrokeWidth,Se.strokeDasharray=Be.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",Be.defaultColorSet,Be.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Oe("Line style",Be.defaultStrokeDasharrays,Be.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Me.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Me.prototype.createVisual=function(){this.visual=it.createGroup(),this.selectorCurve=it.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=it.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)},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},Me.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),it.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),it.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),it.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Me.prototype.setupControlBox=function(){je.prototype.setupControlBox.call(this),this.curveControlLine1=it.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=it.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)},Me.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,je.prototype.addControlGrips.call(this)},Me.prototype.positionGrips=function(){je.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/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()))},Me.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),je.prototype.manipulate.call(this,xe)},Me.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),je.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Me.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Me.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Me.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Me.prototype.scale=function(xe,Ne){this.curveX=this.curveX*xe,this.curveY=this.curveY*Ne,je.prototype.scale.call(this,xe,Ne)},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},je.prototype.getState.call(this));return xe.typeName=Me.typeName,xe},Me.prototype.restoreState=function(xe){je.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},Me.typeName="CurveMarker",Me.title="Curve marker",Me.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>',Me}(Ve),Kn=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,Ne,Be)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.textColor="transparent",Se.fontSize="1rem",Se.isMoved=!1,Se.captionText="Caption",Se.PADDING=5,Se.captionBoxWidth=0,Se.captionBoxHeight=0,Se.strokeColor=Be.defaultColor,Se.strokeWidth=Be.defaultStrokeWidth,Se.strokeDasharray=Be.defaultStrokeDasharray,Se.fillColor=Be.defaultFillColor,Se.textColor=Be.defaultStrokeColor,Se.fontFamily=Be.defaultFontFamily,Se.fontSize=Be.defaultCaptionFontSize,Se.captionText=Be.defaultCaptionText,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se.sizeCaption=Se.sizeCaption.bind(Se),Se.setCaptionText=Se.setCaptionText.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.finishTextEditing=Se.finishTextEditing.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.setTextColor=Se.setTextColor.bind(Se),Se.strokePanel=new ne("Line color",Je(Be.defaultColorSet,["transparent"]),Se.strokeColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.fillPanel=new ne("Fill color",Je(Be.defaultColorSet,["transparent"]),Se.fillColor,Ge),Se.fillPanel.onColorChanged=Se.setFillColor,Se.strokeWidthPanel=new we("Line width",Be.defaultStrokeWidths,Be.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Oe("Line style",Be.defaultStrokeDasharrays,Be.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se.fontFamilyPanel=new Ke("Font",Be.defaultFontFamilies,Be.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.textColorPanel=new ne("Text color",Be.defaultColorSet,Se.textColor,St),Se.textColorPanel.onColorChanged=Se.setTextColor,Se}return Re(Me,je),Me.prototype.ownsTarget=function(xe){return!(!je.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Me.prototype.createVisual=function(){this.visual=it.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=it.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=it.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=it.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()},Me.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Me.prototype.pointerDown=function(xe,Ne){je.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Me.prototype.manipulate=function(xe){je.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Me.prototype.resize=function(xe){je.prototype.resize.call(this,xe),this.setSize()},Me.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),it.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')"]]),it.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')"]])},Me.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Me.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"))},Me.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Me.prototype.setFont=function(xe){this.captionElement&&it.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Me.prototype.setTextColor=function(xe){this.captionElement&&it.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Me.prototype.setSize=function(){je.prototype.setSize.call(this),it.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Me.prototype.pointerUp=function(xe){je.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Me.prototype.dblClick=function(xe,Ne){je.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Me.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&it.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Me.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&it.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Me.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&it.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Me.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&it.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Me.prototype.getState=function(){var xe=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},je.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Me.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),je.prototype.restoreState.call(this,xe),this.setSize()},Me.prototype.scale=function(xe,Ne){je.prototype.scale.call(this,xe,Ne),this.setSize()},Me.typeName="CaptionFrameMarker",Me.title="Caption frame marker",Me.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>',Me}(Pe),nn=function(){function je(Me,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Me,this.cancelable=xe}return Object.defineProperty(je.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),je.prototype.preventDefault=function(){this._defaultPrevented=!0},je}(),Rn=function(je){function Me(xe,Ne,Be){var Se=je.call(this,xe,!1)||this;return Se.dataUrl=Ne,Se.state=Be,Se}return Re(Me,je),Me}(nn),vt=function(je){function Me(xe,Ne,Be){Be===void 0&&(Be=!1);var Se=je.call(this,xe,Be)||this;return Se.marker=Ne,Se}return Re(Me,je),Me}(nn),Yn=function(){function je(){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 je.prototype.addEventListener=function(Me,xe){this[Me].push(xe)},je.prototype.removeEventListener=function(Me,xe){var Ne=this[Me].indexOf(xe);Ne>-1&&this[Me].splice(Ne,1)},je}(),ni=function(){function je(Me){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new We,this._isOpen=!1,this.undoRedoManager=new rn,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 Yn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=je.instanceCounter++,this.styles=new rt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Me,this.targetRoot=document.body,this.width=Me.clientWidth,this.height=Me.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(je.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,pt,Ht,Wt,Bt,Hn,Nn,en,_n,jt,ut,cn,Kn]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,pt,Ht,Wt,Hn,Nn,en]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,pt,Ht,Wt,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Me){var xe=this;this._availableMarkerTypes.splice(0),Me.forEach(function(Ne){if(typeof Ne=="string"){var Be=xe.ALL_MARKER_TYPES.find(function(Se){return Se.typeName===Ne});Be!==void 0&&xe._availableMarkerTypes.push(Be)}else xe._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Me){this._zoomLevel=Me,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(je.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),je.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},je.prototype.show=function(){var Me=this;this.styles.styleSheetRoot===void 0&&Pt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new nn(Me))})},je.prototype.render=function(){return at(this,void 0,void 0,function(){var Me;return kt(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Me=new Tt).naturalSize=this.renderAtNaturalSize,Me.imageType=this.renderImageType,Me.imageQuality=this.renderImageQuality,Me.markersOnly=this.renderMarkersOnly,Me.width=this.renderWidth,Me.height=this.renderHeight,[4,Me.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Me.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},je.prototype.close=function(Me){var xe=this;if(Me===void 0&&(Me=!1),this.isOpen){var Ne=!1;Me||this.eventListeners.beforeclose.forEach(function(Be){var Se=new nn(xe,!0);Be(Se),Se.defaultPrevented&&(Ne=!0)}),Ne||(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(Be){return Be(new nn(xe))}),this.detachEvents(),this._isOpen=!1)}},je.prototype.addMarkersToToolbar=function(){for(var Me,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];(Me=this._availableMarkerTypes).push.apply(Me,xe)},je.prototype.addRenderEventListener=function(Me){this.addEventListener("render",function(xe){Me(xe.dataUrl,xe.state)})},je.prototype.removeRenderEventListener=function(Me){},je.prototype.addCloseEventListener=function(Me){this.addEventListener("close",function(){Me()})},je.prototype.removeCloseEventListener=function(Me){},je.prototype.setupResizeObserver=function(){var Me=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Me.resize(Me.target.clientWidth,Me.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Me.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},je.prototype.onPopupTargetResize=function(){var Me=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Me>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Me:this.editorCanvas.clientWidth,Ne=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Me;this.resize(xe,Ne)},je.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},je.prototype.resize=function(Me,xe){this._isResizing=!0;var Ne=Me/this.imageWidth,Be=xe/this.imageHeight;this.imageWidth=Math.round(Me),this.imageHeight=Math.round(xe),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(Ne,Be),this._isResizing=!1},je.prototype.scaleMarkers=function(Me,xe){var Ne,Be=this;this._currentMarker&&this._currentMarker instanceof Wt?this._currentMarker.scale(Me,xe):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Se){Se!==Be._currentMarker&&Se.scale(Me,xe)}),Ne!==void 0&&this.setCurrentMarker(Ne)},je.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"},je.prototype.setTopLeft=function(){var Me=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Me.left-xe.left,this.top=Me.top-xe.top},je.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)},je.prototype.addDefs=function(){for(var Me,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];this.defs=it.createDefs(),this.addDefsToImage(),(Me=this.defs).append.apply(Me,xe)},je.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},je.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)},je.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},je.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},je.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)},je.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},je.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)},je.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 Me=document.createElement("a");Me.href="https://markerjs.com/",Me.target="_blank",Me.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>',Me.title="Powered by marker.js",Me.style.display="grid",Me.style.alignItems="center",Me.style.justifyItems="center",Me.style.padding="3px",Me.style.width="20px",Me.style.height="20px",this.logoUI.appendChild(Me),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},je.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")},je.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"},je.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},je.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 Me=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=Me+"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 Ct(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 Fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},je.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},je.prototype.removeMarker=function(Me){this.markerImage.removeChild(Me.container),this.markers.indexOf(Me)>-1&&this.markers.splice(this.markers.indexOf(Me),1),Me.dispose()},je.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())},je.prototype.toolbarButtonClicked=function(Me,xe){if(Me==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Me==="action")switch(xe){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()}},je.prototype.deleteSelectedMarker=function(){var Me=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Be){var Se=new vt(Me,Me._currentMarker,!0);Be(Se),Se.defaultPrevented&&(xe=!0)}),!xe){var Ne=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(Be){return Be(new vt(Me,Ne))})}}},je.prototype.clear=function(){var Me=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(lt){var Et=new vt(Me,void 0,!0);lt(Et),Et.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Ne=function(lt){var Et=Be.markers[lt];Be.setCurrentMarker(Be.markers[lt]),Be._currentMarker.dispose(),Be.markerImage.removeChild(Be._currentMarker.container),Be.markers.splice(Be.markers.indexOf(Be._currentMarker),1),Be.eventListeners.markerdelete.forEach(function(Xe){return Xe(new vt(Me,Et))})},Be=this,Se=this.markers.length-1;Se>=0;Se--)Ne(Se);this.addUndoStep()}},Object.defineProperty(je.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),je.prototype.showNotesEditor=function(){var Me;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=(Me=this._currentMarker.notes)!==null&&Me!==void 0?Me:"",this.overlayContainer.appendChild(this.notesArea))},je.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)},je.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},je.prototype.addUndoStep=function(){var Me=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===xe.width&&Ne.height===xe.height){var Be=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Be<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Se){return Se(new nn(Me))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Se){return Se(new nn(Me))})}},je.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},je.prototype.undoStep=function(){var Me=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new nn(Me))}))},je.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},je.prototype.redoStep=function(){var Me=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new nn(Me))}))},je.prototype.stepZoom=function(){var Me=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Me<this.zoomSteps.length-1?this.zoomSteps[Me+1]:this.zoomSteps[0]},je.prototype.panTo=function(Me){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Me.x,top:this.prevPanPoint.y-Me.y}),this.prevPanPoint=Me},je.prototype.startRenderAndClose=function(){return at(this,void 0,void 0,function(){var Me,xe,Ne=this;return kt(this,function(Be){switch(Be.label){case 0:return[4,this.render()];case 1:return Me=Be.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Se){return Se(new Rn(Ne,Me,xe))}),this.close(!0),[2]}})})},je.prototype.getState=function(Me){Me===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ne){return xe.markers.push(Ne.getState())}),xe},je.prototype.restoreState=function(Me){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Me.markers.forEach(function(Ne){var Be=xe._availableMarkerTypes.find(function(lt){return lt.typeName===Ne.typeName});if(Be!==void 0){var Se=xe.addNewMarker(Be);Se.restoreState(Ne),xe.markers.push(Se)}}),Me.width&&Me.height&&(Me.width!==this.imageWidth||Me.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Me.width,this.imageHeight/Me.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new nn(xe))})},je.prototype.addNewMarker=function(Me){var xe=it.createGroup();return this.markerImage.appendChild(xe),new Me(xe,this.overlayContainer,this.settings)},je.prototype.createNewMarker=function(Me){var xe,Ne=this;(xe=typeof Me=="string"?this._availableMarkerTypes.find(function(Be){return Be.typeName===Me}):Me)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),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(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Be){return Be(new vt(Ne,Ne._currentMarker))}))},je.prototype.markerCreated=function(Me){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Me),this.setCurrentMarker(Me),Me instanceof pt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(pt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new vt(xe,xe._currentMarker))})},je.prototype.colorChanged=function(Me){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Me,this.settings.defaultStrokeColor=Me)},je.prototype.fillColorChanged=function(Me){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Me)},je.prototype.markerStateChanged=function(Me){var xe=this;this.eventListeners.markerchange.forEach(function(Ne){return Ne(new vt(xe,Me))})},je.prototype.setCurrentMarker=function(Me){var xe=this;this._currentMarker!==Me&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ne){return Ne(new vt(xe,xe._currentMarker))})),this._currentMarker=Me,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(Ne){return Ne(new vt(xe,xe._currentMarker))}))},je.prototype.onPointerDown=function(Me){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Me.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Me.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Me.clientX,Me.clientY),Me.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Me.clientX,y:Me.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Me.clientX,Me.clientY))},je.prototype.onDblClick=function(Me){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Me.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Me.clientX,Me.clientY),Me.target):this.setCurrentMarker()}},je.prototype.onPointerMove=function(Me){this.touchPoints!==1&&Me.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Me.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Me.clientX,Me.clientY)):this.zoomLevel>1&&this.panTo({x:Me.clientX,y:Me.clientY}))},je.prototype.onPointerUp=function(Me){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Me.clientX,Me.clientY)),this.isDragging=!1,this.addUndoStep()},je.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},je.prototype.onKeyUp=function(Me){this._currentMarker===void 0||this.notesArea!==void 0||Me.key!=="Delete"&&Me.key!=="Backspace"||this.deleteSelectedMarker()},je.prototype.clientToLocalCoordinates=function(Me,xe){var Ne=this.markerImage.getBoundingClientRect();return{x:(Me-Ne.left)/this.zoomLevel,y:(xe-Ne.top)/this.zoomLevel}},je.prototype.onWindowResize=function(){this.positionUI()},je.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Me=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Me+"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()},je.prototype.addLicenseKey=function(Me){Te.addKey(Me)},je.prototype.addEventListener=function(Me,xe){this.eventListeners.addEventListener(Me,xe)},je.prototype.removeEventListener=function(Me,xe){this.eventListeners.removeEventListener(Me,xe)},je.prototype.renderState=function(Me){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Me),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(je.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),je.prototype.focus=function(){var Me=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new nn(Me))}))},je.prototype.blur=function(){var Me=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new nn(Me))}))},je.instanceCounter=0,je}()},17115:function(On,xn,ye){"use strict";ye.d(xn,{ZP:function(){return Te}});var be=ye(52487),Re=ye(59301),at=ye(47273),kt=0,Je=(0,at.Z)();function it(){var Tt;return Je?(Tt=kt,kt+=1):Tt="TEST_OR_SSR",Tt}function Te(Tt){var Pt=Re.useState(),rt=(0,be.Z)(Pt,2),It=rt[0],gt=rt[1];return Re.useEffect(function(){gt("rc_select_".concat(it()))},[]),Tt||It}},77861:function(On,xn,ye){"use strict";ye.d(xn,{Ac:function(){return Ft},Xo:function(){return wi},Wx:function(){return vr},ZP:function(){return In},lk:function(){return Pe}});var be=ye(72308),Re=ye(80702),at=ye(49618),kt=ye(77321),Je=ye(52487),it=ye(74416),Te=ye(62853),Tt=ye(18929),Pt=ye(48736),rt=ye(59301),It=ye(92310),gt=ye.n(It),Ct=ye(34280),Fe=ye(49658),te=ye(10228),ne=ye(8654),he=function(ft){var fn=ft.className,Vn=ft.customizeIcon,bi=ft.customizeIconProps,gi=ft.onMouseDown,dt=ft.onClick,Fn=ft.children,ui;return typeof Vn=="function"?ui=Vn(bi):ui=Vn,rt.createElement("span",{className:fn,onMouseDown:function(dn){dn.preventDefault(),gi&&gi(dn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:dt,"aria-hidden":!0},ui!==void 0?ui:rt.createElement("span",{className:gt()(fn.split(/\s+/).map(function(ji){return"".concat(ji,"-icon")}))},Fn))},se=he;function ge(Mt,ft,fn,Vn,bi){var gi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,dt=arguments.length>6?arguments[6]:void 0,Fn=arguments.length>7?arguments[7]:void 0,ui=rt.useMemo(function(){if((0,Te.Z)(Vn)==="object")return Vn.clearIcon;if(bi)return bi},[Vn,bi]),ji=rt.useMemo(function(){return!!(!gi&&Vn&&(fn.length||dt)&&!(Fn==="combobox"&&dt===""))},[Vn,gi,fn.length,dt,Fn]);return{allowClear:ji,clearIcon:rt.createElement(se,{className:"".concat(Mt,"-clear"),onMouseDown:ft,customizeIcon:ui},"\xD7")}}var me=rt.createContext(null);function Pe(){return rt.useContext(me)}function ke(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ft=rt.useState(!1),fn=(0,Je.Z)(ft,2),Vn=fn[0],bi=fn[1],gi=rt.useRef(null),dt=function(){window.clearTimeout(gi.current)};rt.useEffect(function(){return dt},[]);var Fn=function(ji,dn){dt(),gi.current=window.setTimeout(function(){bi(ji),dn&&dn()},Mt)};return[Vn,Fn,dt]}function we(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ft=rt.useRef(null),fn=rt.useRef(null);rt.useEffect(function(){return function(){window.clearTimeout(fn.current)}},[]);function Vn(bi){(bi||ft.current===null)&&(ft.current=bi),window.clearTimeout(fn.current),fn.current=window.setTimeout(function(){ft.current=null},Mt)}return[function(){return ft.current},Vn]}function Oe(Mt,ft,fn,Vn){var bi=rt.useRef(null);bi.current={open:ft,triggerOpen:fn,customizedTrigger:Vn},rt.useEffect(function(){function gi(dt){var Fn;if(!((Fn=bi.current)!==null&&Fn!==void 0&&Fn.customizedTrigger)){var ui=dt.target;ui.shadowRoot&&dt.composed&&(ui=dt.composedPath()[0]||ui),bi.current.open&&Mt().filter(function(ji){return ji}).every(function(ji){return!ji.contains(ui)&&ji!==ui})&&bi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",gi),function(){return window.removeEventListener("mousedown",gi)}},[])}var He=ye(26112),We=ye(11780),Ve=function(ft,fn){var Vn,bi,gi=ft.prefixCls,dt=ft.id,Fn=ft.inputElement,ui=ft.disabled,ji=ft.tabIndex,dn=ft.autoFocus,vn=ft.autoComplete,Rt=ft.editable,tn=ft.activeDescendantId,yn=ft.value,an=ft.maxLength,Mn=ft.onKeyDown,bn=ft.onMouseDown,$n=ft.onChange,Un=ft.onPaste,Wi=ft.onCompositionStart,qt=ft.onCompositionEnd,Qi=ft.open,yr=ft.attrs,Dr=Fn||rt.createElement("input",null),sn=Dr,ai=sn.ref,xi=sn.props,Gi=xi.onKeyDown,Di=xi.onChange,_i=xi.onMouseDown,wr=xi.onCompositionStart,er=xi.onCompositionEnd,Oi=xi.style;return(0,Pt.Kp)(!("maxLength"in Dr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Dr=rt.cloneElement(Dr,(0,kt.Z)((0,kt.Z)((0,kt.Z)({type:"search"},xi),{},{id:dt,ref:(0,ne.sQ)(fn,ai),disabled:ui,tabIndex:ji,autoComplete:vn||"off",autoFocus:dn,className:gt()("".concat(gi,"-selection-search-input"),(Vn=Dr)===null||Vn===void 0||(bi=Vn.props)===null||bi===void 0?void 0:bi.className),role:"combobox","aria-label":"Search","aria-expanded":Qi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(dt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(dt,"_list"),"aria-activedescendant":Qi?tn:void 0},yr),{},{value:Rt?yn:"",maxLength:an,readOnly:!Rt,unselectable:Rt?null:"on",style:(0,kt.Z)((0,kt.Z)({},Oi),{},{opacity:Rt?null:0}),onKeyDown:function(En){Mn(En),Gi&&Gi(En)},onMouseDown:function(En){bn(En),_i&&_i(En)},onChange:function(En){$n(En),Di&&Di(En)},onCompositionStart:function(En){Wi(En),wr&&wr(En)},onCompositionEnd:function(En){qt(En),er&&er(En)},onPaste:Un})),Dr},ut=rt.forwardRef(Ve);ut.displayName="Input";var Ke=ut;function Wt(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var pt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ut=pt;function Ht(Mt){return Mt!=null}function jt(Mt){return!Mt&&Mt!==0}function Xt(Mt){return["string","number"].includes((0,Te.Z)(Mt))}function Nn(Mt){var ft=void 0;return Mt&&(Xt(Mt.title)?ft=Mt.title.toString():Xt(Mt.label)&&(ft=Mt.label.toString())),ft}function St(Mt,ft){Ut?rt.useLayoutEffect(Mt,ft):rt.useEffect(Mt,ft)}function Ge(Mt){var ft;return(ft=Mt.key)!==null&&ft!==void 0?ft:Mt.value}var en=function(ft){ft.preventDefault(),ft.stopPropagation()},Hn=function(ft){var fn=ft.id,Vn=ft.prefixCls,bi=ft.values,gi=ft.open,dt=ft.searchValue,Fn=ft.autoClearSearchValue,ui=ft.inputRef,ji=ft.placeholder,dn=ft.disabled,vn=ft.mode,Rt=ft.showSearch,tn=ft.autoFocus,yn=ft.autoComplete,an=ft.activeDescendantId,Mn=ft.tabIndex,bn=ft.removeIcon,$n=ft.maxTagCount,Un=ft.maxTagTextLength,Wi=ft.maxTagPlaceholder,qt=Wi===void 0?function(fo){return"+ ".concat(fo.length," ...")}:Wi,Qi=ft.tagRender,yr=ft.onToggleOpen,Dr=ft.onRemove,sn=ft.onInputChange,ai=ft.onInputPaste,xi=ft.onInputKeyDown,Gi=ft.onInputMouseDown,Di=ft.onInputCompositionStart,_i=ft.onInputCompositionEnd,wr=rt.useRef(null),er=(0,rt.useState)(0),Oi=(0,Je.Z)(er,2),br=Oi[0],En=Oi[1],wo=(0,rt.useState)(!1),An=(0,Je.Z)(wo,2),Br=An[0],ta=An[1],bo="".concat(Vn,"-selection"),ca=gi||vn==="multiple"&&Fn===!1||vn==="tags"?dt:"",qo=vn==="tags"||vn==="multiple"&&Fn===!1||Rt&&(gi||Br);St(function(){En(wr.current.scrollWidth)},[ca]);function lr(fo,_o,ro,Yo,ya){return rt.createElement("span",{className:gt()("".concat(bo,"-item"),(0,at.Z)({},"".concat(bo,"-item-disabled"),ro)),title:Nn(fo)},rt.createElement("span",{className:"".concat(bo,"-item-content")},_o),Yo&&rt.createElement(se,{className:"".concat(bo,"-item-remove"),onMouseDown:en,onClick:ya,customizeIcon:bn},"\xD7"))}function tr(fo,_o,ro,Yo,ya){var Lr=function(uo){en(uo),yr(!gi)};return rt.createElement("span",{onMouseDown:Lr},Qi({label:_o,value:fo,disabled:ro,closable:Yo,onClose:ya}))}function to(fo){var _o=fo.disabled,ro=fo.label,Yo=fo.value,ya=!dn&&!_o,Lr=ro;if(typeof Un=="number"&&(typeof ro=="string"||typeof ro=="number")){var Fr=String(Lr);Fr.length>Un&&(Lr="".concat(Fr.slice(0,Un),"..."))}var uo=function(Zo){Zo&&Zo.stopPropagation(),Dr(fo)};return typeof Qi=="function"?tr(Yo,Lr,_o,ya,uo):lr(fo,Lr,_o,ya,uo)}function ko(fo){var _o=typeof qt=="function"?qt(fo):qt;return lr({title:_o},_o,!1)}var ki=rt.createElement("div",{className:"".concat(bo,"-search"),style:{width:br},onFocus:function(){ta(!0)},onBlur:function(){ta(!1)}},rt.createElement(Ke,{ref:ui,open:gi,prefixCls:Vn,id:fn,inputElement:null,disabled:dn,autoFocus:tn,autoComplete:yn,editable:qo,activeDescendantId:an,value:ca,onKeyDown:xi,onMouseDown:Gi,onChange:sn,onPaste:ai,onCompositionStart:Di,onCompositionEnd:_i,tabIndex:Mn,attrs:(0,He.Z)(ft,!0)}),rt.createElement("span",{ref:wr,className:"".concat(bo,"-search-mirror"),"aria-hidden":!0},ca,"\xA0")),Ue=rt.createElement(We.Z,{prefixCls:"".concat(bo,"-overflow"),data:bi,renderItem:to,renderRest:ko,suffix:ki,itemKey:Ge,maxCount:$n});return rt.createElement(rt.Fragment,null,Ue,!bi.length&&!ca&&rt.createElement("span",{className:"".concat(bo,"-placeholder")},ji))},_n=Hn,Bt=function(ft){var fn=ft.inputElement,Vn=ft.prefixCls,bi=ft.id,gi=ft.inputRef,dt=ft.disabled,Fn=ft.autoFocus,ui=ft.autoComplete,ji=ft.activeDescendantId,dn=ft.mode,vn=ft.open,Rt=ft.values,tn=ft.placeholder,yn=ft.tabIndex,an=ft.showSearch,Mn=ft.searchValue,bn=ft.activeValue,$n=ft.maxLength,Un=ft.onInputKeyDown,Wi=ft.onInputMouseDown,qt=ft.onInputChange,Qi=ft.onInputPaste,yr=ft.onInputCompositionStart,Dr=ft.onInputCompositionEnd,sn=ft.title,ai=rt.useState(!1),xi=(0,Je.Z)(ai,2),Gi=xi[0],Di=xi[1],_i=dn==="combobox",wr=_i||an,er=Rt[0],Oi=Mn||"";_i&&bn&&!Gi&&(Oi=bn),rt.useEffect(function(){_i&&Di(!1)},[_i,bn]);var br=dn!=="combobox"&&!vn&&!an?!1:!!Oi,En=sn===void 0?Nn(er):sn,wo=function(){if(er)return null;var Br=br?{visibility:"hidden"}:void 0;return rt.createElement("span",{className:"".concat(Vn,"-selection-placeholder"),style:Br},tn)};return rt.createElement(rt.Fragment,null,rt.createElement("span",{className:"".concat(Vn,"-selection-search")},rt.createElement(Ke,{ref:gi,prefixCls:Vn,id:bi,open:vn,inputElement:fn,disabled:dt,autoFocus:Fn,autoComplete:ui,editable:wr,activeDescendantId:ji,value:Oi,onKeyDown:Un,onMouseDown:Wi,onChange:function(Br){Di(!0),qt(Br)},onPaste:Qi,onCompositionStart:yr,onCompositionEnd:Dr,tabIndex:yn,attrs:(0,He.Z)(ft,!0),maxLength:_i?$n:void 0})),!_i&&er?rt.createElement("span",{className:"".concat(Vn,"-selection-item"),title:En,style:br?{visibility:"hidden"}:void 0},er.label):null,wo())},rn=Bt;function cn(Mt){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(Mt)}var Kn=function(ft,fn){var Vn=(0,rt.useRef)(null),bi=(0,rt.useRef)(!1),gi=ft.prefixCls,dt=ft.open,Fn=ft.mode,ui=ft.showSearch,ji=ft.tokenWithEnter,dn=ft.autoClearSearchValue,vn=ft.onSearch,Rt=ft.onSearchSubmit,tn=ft.onToggleOpen,yn=ft.onInputKeyDown,an=ft.domRef;rt.useImperativeHandle(fn,function(){return{focus:function(){Vn.current.focus()},blur:function(){Vn.current.blur()}}});var Mn=we(0),bn=(0,Je.Z)(Mn,2),$n=bn[0],Un=bn[1],Wi=function(Oi){var br=Oi.which;(br===te.Z.UP||br===te.Z.DOWN)&&Oi.preventDefault(),yn&&yn(Oi),br===te.Z.ENTER&&Fn==="tags"&&!bi.current&&!dt&&(Rt==null||Rt(Oi.target.value)),cn(br)&&tn(!0)},qt=function(){Un(!0)},Qi=(0,rt.useRef)(null),yr=function(Oi){vn(Oi,!0,bi.current)!==!1&&tn(!0)},Dr=function(){bi.current=!0},sn=function(Oi){bi.current=!1,Fn!=="combobox"&&yr(Oi.target.value)},ai=function(Oi){var br=Oi.target.value;if(ji&&Qi.current&&/[\r\n]/.test(Qi.current)){var En=Qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");br=br.replace(En,Qi.current)}Qi.current=null,yr(br)},xi=function(Oi){var br=Oi.clipboardData,En=br.getData("text");Qi.current=En},Gi=function(Oi){var br=Oi.target;if(br!==Vn.current){var En=document.body.style.msTouchAction!==void 0;En?setTimeout(function(){Vn.current.focus()}):Vn.current.focus()}},Di=function(Oi){var br=$n();Oi.target!==Vn.current&&!br&&Fn!=="combobox"&&Oi.preventDefault(),(Fn!=="combobox"&&(!ui||!br)||!dt)&&(dt&&dn!==!1&&vn("",!0,!1),tn())},_i={inputRef:Vn,onInputKeyDown:Wi,onInputMouseDown:qt,onInputChange:ai,onInputPaste:xi,onInputCompositionStart:Dr,onInputCompositionEnd:sn},wr=Fn==="multiple"||Fn==="tags"?rt.createElement(_n,(0,be.Z)({},ft,_i)):rt.createElement(rn,(0,be.Z)({},ft,_i));return rt.createElement("div",{ref:an,className:"".concat(gi,"-selector"),onClick:Gi,onMouseDown:Di},wr)},nn=rt.forwardRef(Kn);nn.displayName="Selector";var Rn=nn,vt=ye(35593),Yn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ni=function(ft){var fn=ft===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"}}},je=function(ft,fn){var Vn=ft.prefixCls,bi=ft.disabled,gi=ft.visible,dt=ft.children,Fn=ft.popupElement,ui=ft.animation,ji=ft.transitionName,dn=ft.dropdownStyle,vn=ft.dropdownClassName,Rt=ft.direction,tn=Rt===void 0?"ltr":Rt,yn=ft.placement,an=ft.builtinPlacements,Mn=ft.dropdownMatchSelectWidth,bn=ft.dropdownRender,$n=ft.dropdownAlign,Un=ft.getPopupContainer,Wi=ft.empty,qt=ft.getTriggerDOMNode,Qi=ft.onPopupVisibleChange,yr=ft.onPopupMouseEnter,Dr=(0,it.Z)(ft,Yn),sn="".concat(Vn,"-dropdown"),ai=Fn;bn&&(ai=bn(Fn));var xi=rt.useMemo(function(){return an||ni(Mn)},[an,Mn]),Gi=ui?"".concat(sn,"-").concat(ui):ji,Di=typeof Mn=="number",_i=rt.useMemo(function(){return Di?null:Mn===!1?"minWidth":"width"},[Mn,Di]),wr=dn;Di&&(wr=(0,kt.Z)((0,kt.Z)({},wr),{},{width:Mn}));var er=rt.useRef(null);return rt.useImperativeHandle(fn,function(){return{getPopupElement:function(){return er.current}}}),rt.createElement(vt.Z,(0,be.Z)({},Dr,{showAction:Qi?["click"]:[],hideAction:Qi?["click"]:[],popupPlacement:yn||(tn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xi,prefixCls:sn,popupTransitionName:Gi,popup:rt.createElement("div",{ref:er,onMouseEnter:yr},ai),stretch:_i,popupAlign:$n,popupVisible:gi,getPopupContainer:Un,popupClassName:gt()(vn,(0,at.Z)({},"".concat(sn,"-empty"),Wi)),popupStyle:wr,getTriggerDOMNode:qt,onPopupVisibleChange:Qi}),dt)},Me=rt.forwardRef(je);Me.displayName="SelectTrigger";var xe=Me,Ne=ye(68413);function Be(Mt,ft){var fn=Mt.key,Vn;return"value"in Mt&&(Vn=Mt.value),fn!=null?fn:Vn!==void 0?Vn:"rc-index-key-".concat(ft)}function Se(Mt,ft){var fn=Mt||{},Vn=fn.label,bi=fn.value,gi=fn.options,dt=fn.groupLabel,Fn=Vn||(ft?"children":"label");return{label:Fn,value:bi||"value",options:gi||"options",groupLabel:dt||Fn}}function lt(Mt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=ft.fieldNames,Vn=ft.childrenAsData,bi=[],gi=Se(fn,!1),dt=gi.label,Fn=gi.value,ui=gi.options,ji=gi.groupLabel;function dn(vn,Rt){vn.forEach(function(tn){if(Rt||!(ui in tn)){var yn=tn[Fn];bi.push({key:Be(tn,bi.length),groupOption:Rt,data:tn,label:tn[dt],value:yn})}else{var an=tn[ji];an===void 0&&Vn&&(an=tn.label),bi.push({key:Be(tn,bi.length),group:!0,data:tn,label:an}),dn(tn[ui],!0)}})}return dn(Mt,!1),bi}function Et(Mt){var ft=(0,kt.Z)({},Mt);return"props"in ft||Object.defineProperty(ft,"props",{get:function(){return(0,Pt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ft}}),ft}function Xe(Mt,ft){if(!ft||!ft.length)return null;var fn=!1;function Vn(gi,dt){var Fn=(0,Ne.Z)(dt),ui=Fn[0],ji=Fn.slice(1);if(!ui)return[gi];var dn=gi.split(ui);return fn=fn||dn.length>1,dn.reduce(function(vn,Rt){return[].concat((0,Re.Z)(vn),(0,Re.Z)(Vn(Rt,ji)))},[]).filter(function(vn){return vn})}var bi=Vn(Mt,ft);return fn?bi:null}var tt=["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"],wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xt(Mt){return Mt==="tags"||Mt==="multiple"}var ct=rt.forwardRef(function(Mt,ft){var fn,Vn,bi=Mt.id,gi=Mt.prefixCls,dt=Mt.className,Fn=Mt.showSearch,ui=Mt.tagRender,ji=Mt.direction,dn=Mt.omitDomProps,vn=Mt.displayValues,Rt=Mt.onDisplayValuesChange,tn=Mt.emptyOptions,yn=Mt.notFoundContent,an=yn===void 0?"Not Found":yn,Mn=Mt.onClear,bn=Mt.mode,$n=Mt.disabled,Un=Mt.loading,Wi=Mt.getInputElement,qt=Mt.getRawInputElement,Qi=Mt.open,yr=Mt.defaultOpen,Dr=Mt.onDropdownVisibleChange,sn=Mt.activeValue,ai=Mt.onActiveValueChange,xi=Mt.activeDescendantId,Gi=Mt.searchValue,Di=Mt.autoClearSearchValue,_i=Mt.onSearch,wr=Mt.onSearchSplit,er=Mt.tokenSeparators,Oi=Mt.allowClear,br=Mt.suffixIcon,En=Mt.clearIcon,wo=Mt.OptionList,An=Mt.animation,Br=Mt.transitionName,ta=Mt.dropdownStyle,bo=Mt.dropdownClassName,ca=Mt.dropdownMatchSelectWidth,qo=Mt.dropdownRender,lr=Mt.dropdownAlign,tr=Mt.placement,to=Mt.builtinPlacements,ko=Mt.getPopupContainer,ki=Mt.showAction,Ue=ki===void 0?[]:ki,fo=Mt.onFocus,_o=Mt.onBlur,ro=Mt.onKeyUp,Yo=Mt.onKeyDown,ya=Mt.onMouseDown,Lr=(0,it.Z)(Mt,tt),Fr=xt(bn),uo=(Fn!==void 0?Fn:Fr)||bn==="combobox",Xr=(0,kt.Z)({},Lr);wt.forEach(function(Bo){delete Xr[Bo]}),dn==null||dn.forEach(function(Bo){delete Xr[Bo]});var Zo=rt.useState(!1),oa=(0,Je.Z)(Zo,2),ur=oa[0],hr=oa[1];rt.useEffect(function(){hr((0,Fe.Z)())},[]);var ri=rt.useRef(null),Er=rt.useRef(null),Io=rt.useRef(null),Ma=rt.useRef(null),Sa=rt.useRef(null),Ta=ke(),Ra=(0,Je.Z)(Ta,3),Ga=Ra[0],Vs=Ra[1],us=Ra[2];rt.useImperativeHandle(ft,function(){var Bo,da;return{focus:(Bo=Ma.current)===null||Bo===void 0?void 0:Bo.focus,blur:(da=Ma.current)===null||da===void 0?void 0:da.blur,scrollTo:function(Ps){var Cs;return(Cs=Sa.current)===null||Cs===void 0?void 0:Cs.scrollTo(Ps)}}});var Ys=rt.useMemo(function(){var Bo;if(bn!=="combobox")return Gi;var da=(Bo=vn[0])===null||Bo===void 0?void 0:Bo.value;return typeof da=="string"||typeof da=="number"?String(da):""},[Gi,bn,vn]),hn=bn==="combobox"&&typeof Wi=="function"&&Wi()||null,xs=typeof qt=="function"&&qt(),yh=(0,ne.x1)(Er,xs==null||(fn=xs.props)===null||fn===void 0?void 0:fn.ref),El=rt.useState(!1),$o=(0,Je.Z)(El,2),To=$o[0],as=$o[1];(0,Ct.Z)(function(){as(!0)},[]);var ma=(0,Tt.Z)(!1,{defaultValue:yr,value:Qi}),No=(0,Je.Z)(ma,2),fa=No[0],al=No[1],Kr=To?fa:!1,zo=!an&&tn;($n||zo&&Kr&&bn==="combobox")&&(Kr=!1);var Oo=zo?!1:Kr,zi=rt.useCallback(function(Bo){var da=Bo!==void 0?Bo:!Kr;$n||(al(da),Kr!==da&&(Dr==null||Dr(da)))},[$n,Kr,al,Dr]),gs=rt.useMemo(function(){return(er||[]).some(function(Bo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bo)})},[er]),ws=function(da,cl,Ps){var Cs=!0,es=da;ai==null||ai(null);var hs=Ps?null:Xe(da,er);return bn!=="combobox"&&hs&&(es="",wr==null||wr(hs),zi(!1),Cs=!1),_i&&Ys!==es&&_i(es,{source:cl?"typing":"effect"}),Cs},dl=function(da){!da||!da.trim()||_i(da,{source:"submit"})};rt.useEffect(function(){!Kr&&!Fr&&bn!=="combobox"&&ws("",!1,!1)},[Kr]),rt.useEffect(function(){fa&&$n&&al(!1),$n&&Vs(!1)},[$n]);var su=we(),xu=(0,Je.Z)(su,2),Fi=xu[0],Ua=xu[1],Ls=function(da){var cl=Fi(),Ps=da.which;if(Ps===te.Z.ENTER&&(bn!=="combobox"&&da.preventDefault(),Kr||zi(!0)),Ua(!!Ys),Ps===te.Z.BACKSPACE&&!cl&&Fr&&!Ys&&vn.length){for(var Cs=(0,Re.Z)(vn),es=null,hs=Cs.length-1;hs>=0;hs-=1){var Ms=Cs[hs];if(!Ms.disabled){Cs.splice(hs,1),es=Ms;break}}es&&Rt(Cs,{type:"remove",values:[es]})}for(var bs=arguments.length,nh=new Array(bs>1?bs-1:0),$l=1;$l<bs;$l++)nh[$l-1]=arguments[$l];if(Kr&&Sa.current){var ps;(ps=Sa.current).onKeyDown.apply(ps,[da].concat(nh))}Yo==null||Yo.apply(void 0,[da].concat(nh))},Ql=function(da){for(var cl=arguments.length,Ps=new Array(cl>1?cl-1:0),Cs=1;Cs<cl;Cs++)Ps[Cs-1]=arguments[Cs];if(Kr&&Sa.current){var es;(es=Sa.current).onKeyUp.apply(es,[da].concat(Ps))}ro==null||ro.apply(void 0,[da].concat(Ps))},lu=function(da){var cl=vn.filter(function(Ps){return Ps!==da});Rt(cl,{type:"remove",values:[da]})},uu=rt.useRef(!1),so=function(){Vs(!0),$n||(fo&&!uu.current&&fo.apply(void 0,arguments),Ue.includes("focus")&&zi(!0)),uu.current=!0},Sh=function(){Vs(!1,function(){uu.current=!1,zi(!1)}),!$n&&(Ys&&(bn==="tags"?_i(Ys,{source:"submit"}):bn==="multiple"&&_i("",{source:"blur"})),_o&&_o.apply(void 0,arguments))},Ll=[];rt.useEffect(function(){return function(){Ll.forEach(function(Bo){return clearTimeout(Bo)}),Ll.splice(0,Ll.length)}},[]);var Ml=function(da){var cl,Ps=da.target,Cs=(cl=Io.current)===null||cl===void 0?void 0:cl.getPopupElement();if(Cs&&Cs.contains(Ps)){var es=setTimeout(function(){var nh=Ll.indexOf(es);if(nh!==-1&&Ll.splice(nh,1),us(),!ur&&!Cs.contains(document.activeElement)){var $l;($l=Ma.current)===null||$l===void 0||$l.focus()}});Ll.push(es)}for(var hs=arguments.length,Ms=new Array(hs>1?hs-1:0),bs=1;bs<hs;bs++)Ms[bs-1]=arguments[bs];ya==null||ya.apply(void 0,[da].concat(Ms))},ml=rt.useState({}),Wu=(0,Je.Z)(ml,2),wu=Wu[1];function vl(){wu({})}var Al;xs&&(Al=function(da){zi(da)}),Oe(function(){var Bo;return[ri.current,(Bo=Io.current)===null||Bo===void 0?void 0:Bo.getPopupElement()]},Oo,zi,!!xs);var Bh=rt.useMemo(function(){return(0,kt.Z)((0,kt.Z)({},Mt),{},{notFoundContent:an,open:Kr,triggerOpen:Oo,id:bi,showSearch:uo,multiple:Fr,toggleOpen:zi})},[Mt,an,Oo,Kr,bi,uo,Fr,zi]),_h=!!br||Un,Oh;_h&&(Oh=rt.createElement(se,{className:gt()("".concat(gi,"-arrow"),(0,at.Z)({},"".concat(gi,"-arrow-loading"),Un)),customizeIcon:br,customizeIconProps:{loading:Un,searchValue:Ys,open:Kr,focused:Ga,showSearch:uo}}));var gd=function(){var da;Mn==null||Mn(),(da=Ma.current)===null||da===void 0||da.focus(),Rt([],{type:"clear",values:vn}),ws("",!1,!1)},Ih=ge(gi,gd,vn,Oi,En,$n,Ys,bn),Zu=Ih.allowClear,Bl=Ih.clearIcon,Ol=rt.createElement(wo,{ref:Sa}),pd=gt()(gi,dt,(Vn={},(0,at.Z)(Vn,"".concat(gi,"-focused"),Ga),(0,at.Z)(Vn,"".concat(gi,"-multiple"),Fr),(0,at.Z)(Vn,"".concat(gi,"-single"),!Fr),(0,at.Z)(Vn,"".concat(gi,"-allow-clear"),Oi),(0,at.Z)(Vn,"".concat(gi,"-show-arrow"),_h),(0,at.Z)(Vn,"".concat(gi,"-disabled"),$n),(0,at.Z)(Vn,"".concat(gi,"-loading"),Un),(0,at.Z)(Vn,"".concat(gi,"-open"),Kr),(0,at.Z)(Vn,"".concat(gi,"-customize-input"),hn),(0,at.Z)(Vn,"".concat(gi,"-show-search"),uo),Vn)),ed=rt.createElement(xe,{ref:Io,disabled:$n,prefixCls:gi,visible:Oo,popupElement:Ol,animation:An,transitionName:Br,dropdownStyle:ta,dropdownClassName:bo,direction:ji,dropdownMatchSelectWidth:ca,dropdownRender:qo,dropdownAlign:lr,placement:tr,builtinPlacements:to,getPopupContainer:ko,empty:tn,getTriggerDOMNode:function(){return Er.current},onPopupVisibleChange:Al,onPopupMouseEnter:vl},xs?rt.cloneElement(xs,{ref:yh}):rt.createElement(Rn,(0,be.Z)({},Mt,{domRef:Er,prefixCls:gi,inputElement:hn,ref:Ma,id:bi,showSearch:uo,autoClearSearchValue:Di,mode:bn,activeDescendantId:xi,tagRender:ui,values:vn,open:Kr,onToggleOpen:zi,activeValue:sn,searchValue:Ys,onSearch:ws,onSearchSubmit:dl,onRemove:lu,tokenWithEnter:gs}))),Pu;return xs?Pu=ed:Pu=rt.createElement("div",(0,be.Z)({className:pd},Xr,{ref:ri,onMouseDown:Ml,onKeyDown:Ls,onKeyUp:Ql,onFocus:so,onBlur:Sh}),Ga&&!Kr&&rt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(vn.map(function(Bo){var da=Bo.label,cl=Bo.value;return["number","string"].includes((0,Te.Z)(da))?da:cl}).join(", "))),ed,Oh,Zu&&Bl),rt.createElement(me.Provider,{value:Bh},Pu)}),Ft=ct,Pn=function(Mt,ft){var fn=rt.useRef({values:new Map,options:new Map}),Vn=rt.useMemo(function(){var gi=fn.current,dt=gi.values,Fn=gi.options,ui=Mt.map(function(vn){if(vn.label===void 0){var Rt;return(0,kt.Z)((0,kt.Z)({},vn),{},{label:(Rt=dt.get(vn.value))===null||Rt===void 0?void 0:Rt.label})}return vn}),ji=new Map,dn=new Map;return ui.forEach(function(vn){ji.set(vn.value,vn),dn.set(vn.value,ft.get(vn.value)||Fn.get(vn.value))}),fn.current.values=ji,fn.current.options=dn,ui},[Mt,ft]),bi=rt.useCallback(function(gi){return ft.get(gi)||fn.current.options.get(gi)},[ft]);return[Vn,bi]};function mn(Mt,ft){return Wt(Mt).join("").toUpperCase().includes(ft)}var Jt=function(Mt,ft,fn,Vn,bi){return rt.useMemo(function(){if(!fn||Vn===!1)return Mt;var gi=ft.options,dt=ft.label,Fn=ft.value,ui=[],ji=typeof Vn=="function",dn=fn.toUpperCase(),vn=ji?Vn:function(tn,yn){return bi?mn(yn[bi],dn):yn[gi]?mn(yn[dt!=="children"?dt:"label"],dn):mn(yn[Fn],dn)},Rt=ji?function(tn){return Et(tn)}:function(tn){return tn};return Mt.forEach(function(tn){if(tn[gi]){var yn=vn(fn,Rt(tn));if(yn)ui.push(tn);else{var an=tn[gi].filter(function(Mn){return vn(fn,Rt(Mn))});an.length&&ui.push((0,kt.Z)((0,kt.Z)({},tn),{},(0,at.Z)({},gi,an)))}return}vn(fn,Rt(tn))&&ui.push(tn)}),ui},[Mt,Vn,bi,fn,ft])},gn=ye(17115),Tn=ye(11592),bt=["children","value"],_t=["children"];function $t(Mt){var ft=Mt,fn=ft.key,Vn=ft.props,bi=Vn.children,gi=Vn.value,dt=(0,it.Z)(Vn,bt);return(0,kt.Z)({key:fn,value:gi!==void 0?gi:fn,children:bi},dt)}function Dn(Mt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tn.Z)(Mt).map(function(fn,Vn){if(!rt.isValidElement(fn)||!fn.type)return null;var bi=fn,gi=bi.type.isSelectOptGroup,dt=bi.key,Fn=bi.props,ui=Fn.children,ji=(0,it.Z)(Fn,_t);return ft||!gi?$t(fn):(0,kt.Z)((0,kt.Z)({key:"__RC_SELECT_GRP__".concat(dt===null?Vn:dt,"__"),label:dt},ji),{},{options:Dn(ui)})}).filter(function(fn){return fn})}function ii(Mt,ft,fn,Vn,bi){return rt.useMemo(function(){var gi=Mt,dt=!Mt;dt&&(gi=Dn(ft));var Fn=new Map,ui=new Map,ji=function(Rt,tn,yn){yn&&typeof yn=="string"&&Rt.set(tn[yn],tn)};function dn(vn){for(var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<vn.length;tn+=1){var yn=vn[tn];!yn[fn.options]||Rt?(Fn.set(yn[fn.value],yn),ji(ui,yn,fn.label),ji(ui,yn,Vn),ji(ui,yn,bi)):dn(yn[fn.options],!0)}}return dn(gi),{options:gi,valueOptions:Fn,labelOptions:ui}},[Mt,ft,fn,Vn,bi])}function pi(Mt){var ft=rt.useRef();ft.current=Mt;var fn=rt.useCallback(function(){return ft.current.apply(ft,arguments)},[]);return fn}var fi=function(){return null};fi.isSelectOptGroup=!0;var wi=fi,Vi=function(){return null};Vi.isSelectOption=!0;var vr=Vi,cr=ye(80547),pr=ye(2738),_r=ye(45680),Ir=rt.createContext(null),$i=Ir;function eo(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kr=["disabled","title","children","style","className"];function Ee(Mt){return typeof Mt=="string"||typeof Mt=="number"}var si=function(ft,fn){var Vn=Pe(),bi=Vn.prefixCls,gi=Vn.id,dt=Vn.open,Fn=Vn.multiple,ui=Vn.mode,ji=Vn.searchValue,dn=Vn.toggleOpen,vn=Vn.notFoundContent,Rt=Vn.onPopupScroll,tn=rt.useContext($i),yn=tn.flattenOptions,an=tn.onActiveValue,Mn=tn.defaultActiveFirstOption,bn=tn.onSelect,$n=tn.menuItemSelectedIcon,Un=tn.rawValues,Wi=tn.fieldNames,qt=tn.virtual,Qi=tn.direction,yr=tn.listHeight,Dr=tn.listItemHeight,sn="".concat(bi,"-item"),ai=(0,cr.Z)(function(){return yn},[dt,yn],function(lr,tr){return tr[0]&&lr[1]!==tr[1]}),xi=rt.useRef(null),Gi=function(tr){tr.preventDefault()},Di=function(tr){xi.current&&xi.current.scrollTo(typeof tr=="number"?{index:tr}:tr)},_i=function(tr){for(var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ko=ai.length,ki=0;ki<ko;ki+=1){var Ue=(tr+ki*to+ko)%ko,fo=ai[Ue],_o=fo.group,ro=fo.data;if(!_o&&!ro.disabled)return Ue}return-1},wr=rt.useState(function(){return _i(0)}),er=(0,Je.Z)(wr,2),Oi=er[0],br=er[1],En=function(tr){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;br(tr);var ko={source:to?"keyboard":"mouse"},ki=ai[tr];if(!ki){an(null,-1,ko);return}an(ki.value,tr,ko)};(0,rt.useEffect)(function(){En(Mn!==!1?_i(0):-1)},[ai.length,ji]);var wo=rt.useCallback(function(lr){return Un.has(lr)&&ui!=="combobox"},[ui,(0,Re.Z)(Un).toString(),Un.size]);(0,rt.useEffect)(function(){var lr=setTimeout(function(){if(!Fn&&dt&&Un.size===1){var to=Array.from(Un)[0],ko=ai.findIndex(function(ki){var Ue=ki.data;return Ue.value===to});ko!==-1&&(En(ko),Di(ko))}});if(dt){var tr;(tr=xi.current)===null||tr===void 0||tr.scrollTo(void 0)}return function(){return clearTimeout(lr)}},[dt,ji,yn.length]);var An=function(tr){tr!==void 0&&bn(tr,{selected:!Un.has(tr)}),Fn||dn(!1)};if(rt.useImperativeHandle(fn,function(){return{onKeyDown:function(tr){var to=tr.which,ko=tr.ctrlKey;switch(to){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var ki=0;if(to===te.Z.UP?ki=-1:to===te.Z.DOWN?ki=1:eo()&&ko&&(to===te.Z.N?ki=1:to===te.Z.P&&(ki=-1)),ki!==0){var Ue=_i(Oi+ki,ki);Di(Ue),En(Ue,!0)}break}case te.Z.ENTER:{var fo=ai[Oi];fo&&!fo.data.disabled?An(fo.value):An(void 0),dt&&tr.preventDefault();break}case te.Z.ESC:dn(!1),dt&&tr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(tr){Di(tr)}}}),ai.length===0)return rt.createElement("div",{role:"listbox",id:"".concat(gi,"_list"),className:"".concat(sn,"-empty"),onMouseDown:Gi},vn);var Br=Object.keys(Wi).map(function(lr){return Wi[lr]}),ta=function(tr){return tr.label};function bo(lr,tr){var to=lr.group;return{role:to?"presentation":"option",id:"".concat(gi,"_list_").concat(tr)}}var ca=function(tr){var to=ai[tr];if(!to)return null;var ko=to.data||{},ki=ko.value,Ue=to.group,fo=(0,He.Z)(ko,!0),_o=ta(to);return to?rt.createElement("div",(0,be.Z)({"aria-label":typeof _o=="string"&&!Ue?_o:null},fo,{key:tr},bo(to,tr),{"aria-selected":wo(ki)}),ki):null},qo={role:"listbox",id:"".concat(gi,"_list")};return rt.createElement(rt.Fragment,null,qt&&rt.createElement("div",(0,be.Z)({},qo,{style:{height:0,width:0,overflow:"hidden"}}),ca(Oi-1),ca(Oi),ca(Oi+1)),rt.createElement(_r.Z,{itemKey:"key",ref:xi,data:ai,height:yr,itemHeight:Dr,fullHeight:!1,onMouseDown:Gi,onScroll:Rt,virtual:qt,direction:Qi,innerProps:qt?null:qo},function(lr,tr){var to,ko=lr.group,ki=lr.groupOption,Ue=lr.data,fo=lr.label,_o=lr.value,ro=Ue.key;if(ko){var Yo,ya=(Yo=Ue.title)!==null&&Yo!==void 0?Yo:Ee(fo)?fo.toString():void 0;return rt.createElement("div",{className:gt()(sn,"".concat(sn,"-group")),title:ya},fo!==void 0?fo:ro)}var Lr=Ue.disabled,Fr=Ue.title,uo=Ue.children,Xr=Ue.style,Zo=Ue.className,oa=(0,it.Z)(Ue,kr),ur=(0,pr.Z)(oa,Br),hr=wo(_o),ri="".concat(sn,"-option"),Er=gt()(sn,ri,Zo,(to={},(0,at.Z)(to,"".concat(ri,"-grouped"),ki),(0,at.Z)(to,"".concat(ri,"-active"),Oi===tr&&!Lr),(0,at.Z)(to,"".concat(ri,"-disabled"),Lr),(0,at.Z)(to,"".concat(ri,"-selected"),hr),to)),Io=ta(lr),Ma=!$n||typeof $n=="function"||hr,Sa=typeof Io=="number"?Io:Io||_o,Ta=Ee(Sa)?Sa.toString():void 0;return Fr!==void 0&&(Ta=Fr),rt.createElement("div",(0,be.Z)({},(0,He.Z)(ur),qt?{}:bo(lr,tr),{"aria-selected":hr,className:Er,title:Ta,onMouseMove:function(){Oi===tr||Lr||En(tr)},onClick:function(){Lr||An(_o)},style:Xr}),rt.createElement("div",{className:"".concat(ri,"-content")},Sa),rt.isValidElement($n)||hr,Ma&&rt.createElement(se,{className:"".concat(sn,"-option-state"),customizeIcon:$n,customizeIconProps:{isSelected:hr}},hr?"\u2713":null))}))},yi=rt.forwardRef(si);yi.displayName="OptionList";var or=yi;function xr(Mt){var ft=Mt.mode,fn=Mt.options,Vn=Mt.children,bi=Mt.backfill,gi=Mt.allowClear,dt=Mt.placeholder,Fn=Mt.getInputElement,ui=Mt.showSearch,ji=Mt.onSearch,dn=Mt.defaultOpen,vn=Mt.autoFocus,Rt=Mt.labelInValue,tn=Mt.value,yn=Mt.inputValue,an=Mt.optionLabelProp,Mn=isMultiple(ft),bn=ui!==void 0?ui:Mn||ft==="combobox",$n=fn||convertChildrenToData(Vn);if(warning(ft!=="tags"||$n.every(function(Qi){return!Qi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ft==="tags"||ft==="combobox"){var Un=$n.some(function(Qi){return Qi.options?Qi.options.some(function(yr){return typeof("value"in yr?yr.value:yr.key)=="number"}):typeof("value"in Qi?Qi.value:Qi.key)=="number"});warning(!Un,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ft!=="combobox"||!an,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ft==="combobox"||!bi,"`backfill` only works with `combobox` mode."),warning(ft==="combobox"||!Fn,"`getInputElement` only work with `combobox` mode."),noteOnce(ft!=="combobox"||!Fn||!gi||!dt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ji&&!bn&&ft!=="combobox"&&ft!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!dn||vn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tn!=null){var Wi=toArray(tn);warning(!Rt||Wi.every(function(Qi){return _typeof(Qi)==="object"&&("key"in Qi||"value"in Qi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mn||Array.isArray(tn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Vn){var qt=null;toNodeArray(Vn).some(function(Qi){if(!React.isValidElement(Qi)||!Qi.type)return!1;var yr=Qi,Dr=yr.type;if(Dr.isSelectOption)return!1;if(Dr.isSelectOptGroup){var sn=toNodeArray(Qi.props.children).every(function(ai){return!React.isValidElement(ai)||!Qi.type||ai.type.isSelectOption?!0:(qt=ai.type,!1)});return!sn}return qt=Dr,!0}),qt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qt.displayName||qt.name||qt,"`.")),warning(yn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qi(Mt,ft){if(Mt){var fn=function Vn(bi){for(var gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=0;dt<bi.length;dt++){var Fn=bi[dt];if(Fn[ft==null?void 0:ft.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!gi&&Array.isArray(Fn[ft==null?void 0:ft.options])&&Vn(Fn[ft==null?void 0:ft.options],!0))break}};fn(Mt)}}var Qr=null,mo=["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"],zr=["inputValue"];function on(Mt){return!Mt||(0,Te.Z)(Mt)!=="object"}var Yt=rt.forwardRef(function(Mt,ft){var fn=Mt.id,Vn=Mt.mode,bi=Mt.prefixCls,gi=bi===void 0?"rc-select":bi,dt=Mt.backfill,Fn=Mt.fieldNames,ui=Mt.inputValue,ji=Mt.searchValue,dn=Mt.onSearch,vn=Mt.autoClearSearchValue,Rt=vn===void 0?!0:vn,tn=Mt.onSelect,yn=Mt.onDeselect,an=Mt.dropdownMatchSelectWidth,Mn=an===void 0?!0:an,bn=Mt.filterOption,$n=Mt.filterSort,Un=Mt.optionFilterProp,Wi=Mt.optionLabelProp,qt=Mt.options,Qi=Mt.children,yr=Mt.defaultActiveFirstOption,Dr=Mt.menuItemSelectedIcon,sn=Mt.virtual,ai=Mt.direction,xi=Mt.listHeight,Gi=xi===void 0?200:xi,Di=Mt.listItemHeight,_i=Di===void 0?20:Di,wr=Mt.value,er=Mt.defaultValue,Oi=Mt.labelInValue,br=Mt.onChange,En=(0,it.Z)(Mt,mo),wo=(0,gn.ZP)(fn),An=xt(Vn),Br=!!(!qt&&Qi),ta=rt.useMemo(function(){return bn===void 0&&Vn==="combobox"?!1:bn},[bn,Vn]),bo=rt.useMemo(function(){return Se(Fn,Br)},[JSON.stringify(Fn),Br]),ca=(0,Tt.Z)("",{value:ji!==void 0?ji:ui,postState:function(zo){return zo||""}}),qo=(0,Je.Z)(ca,2),lr=qo[0],tr=qo[1],to=ii(qt,Qi,bo,Un,Wi),ko=to.valueOptions,ki=to.labelOptions,Ue=to.options,fo=rt.useCallback(function(Kr){var zo=Wt(Kr);return zo.map(function(Oo){var zi,gs,ws,dl,su;if(on(Oo))zi=Oo;else{var xu;ws=Oo.key,gs=Oo.label,zi=(xu=Oo.value)!==null&&xu!==void 0?xu:ws}var Fi=ko.get(zi);if(Fi){var Ua;if(gs===void 0&&(gs=Fi==null?void 0:Fi[Wi||bo.label]),ws===void 0&&(ws=(Ua=Fi==null?void 0:Fi.key)!==null&&Ua!==void 0?Ua:zi),dl=Fi==null?void 0:Fi.disabled,su=Fi==null?void 0:Fi.title,0)var Ls}return{label:gs,value:zi,key:ws,disabled:dl,title:su}})},[bo,Wi,ko]),_o=(0,Tt.Z)(er,{value:wr}),ro=(0,Je.Z)(_o,2),Yo=ro[0],ya=ro[1],Lr=rt.useMemo(function(){var Kr,zo=fo(Yo);return Vn==="combobox"&&jt((Kr=zo[0])===null||Kr===void 0?void 0:Kr.value)?[]:zo},[Yo,fo,Vn]),Fr=Pn(Lr,ko),uo=(0,Je.Z)(Fr,2),Xr=uo[0],Zo=uo[1],oa=rt.useMemo(function(){if(!Vn&&Xr.length===1){var Kr=Xr[0];if(Kr.value===null&&(Kr.label===null||Kr.label===void 0))return[]}return Xr.map(function(zo){var Oo;return(0,kt.Z)((0,kt.Z)({},zo),{},{label:(Oo=zo.label)!==null&&Oo!==void 0?Oo:zo.value})})},[Vn,Xr]),ur=rt.useMemo(function(){return new Set(Xr.map(function(Kr){return Kr.value}))},[Xr]);rt.useEffect(function(){if(Vn==="combobox"){var Kr,zo=(Kr=Xr[0])===null||Kr===void 0?void 0:Kr.value;tr(Ht(zo)?String(zo):"")}},[Xr]);var hr=pi(function(Kr,zo){var Oo,zi=zo!=null?zo:Kr;return Oo={},(0,at.Z)(Oo,bo.value,Kr),(0,at.Z)(Oo,bo.label,zi),Oo}),ri=rt.useMemo(function(){if(Vn!=="tags")return Ue;var Kr=(0,Re.Z)(Ue),zo=function(zi){return ko.has(zi)};return(0,Re.Z)(Xr).sort(function(Oo,zi){return Oo.value<zi.value?-1:1}).forEach(function(Oo){var zi=Oo.value;zo(zi)||Kr.push(hr(zi,Oo.label))}),Kr},[hr,Ue,ko,Xr,Vn]),Er=Jt(ri,bo,lr,ta,Un),Io=rt.useMemo(function(){return Vn!=="tags"||!lr||Er.some(function(Kr){return Kr[Un||"value"]===lr})||Er.some(function(Kr){return Kr[bo.value]===lr})?Er:[hr(lr)].concat((0,Re.Z)(Er))},[hr,Un,Vn,Er,lr,bo]),Ma=rt.useMemo(function(){return $n?(0,Re.Z)(Io).sort(function(Kr,zo){return $n(Kr,zo)}):Io},[Io,$n]),Sa=rt.useMemo(function(){return lt(Ma,{fieldNames:bo,childrenAsData:Br})},[Ma,bo,Br]),Ta=function(zo){var Oo=fo(zo);if(ya(Oo),br&&(Oo.length!==Xr.length||Oo.some(function(ws,dl){var su;return((su=Xr[dl])===null||su===void 0?void 0:su.value)!==(ws==null?void 0:ws.value)}))){var zi=Oi?Oo:Oo.map(function(ws){return ws.value}),gs=Oo.map(function(ws){return Et(Zo(ws.value))});br(An?zi:zi[0],An?gs:gs[0])}},Ra=rt.useState(null),Ga=(0,Je.Z)(Ra,2),Vs=Ga[0],us=Ga[1],Ys=rt.useState(0),hn=(0,Je.Z)(Ys,2),xs=hn[0],yh=hn[1],El=yr!==void 0?yr:Vn!=="combobox",$o=rt.useCallback(function(Kr,zo){var Oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zi=Oo.source,gs=zi===void 0?"keyboard":zi;yh(zo),dt&&Vn==="combobox"&&Kr!==null&&gs==="keyboard"&&us(String(Kr))},[dt,Vn]),To=function(zo,Oo,zi){var gs=function(){var uu,so=Zo(zo);return[Oi?{label:so==null?void 0:so[bo.label],value:zo,key:(uu=so==null?void 0:so.key)!==null&&uu!==void 0?uu:zo}:zo,Et(so)]};if(Oo&&tn){var ws=gs(),dl=(0,Je.Z)(ws,2),su=dl[0],xu=dl[1];tn(su,xu)}else if(!Oo&&yn&&zi!=="clear"){var Fi=gs(),Ua=(0,Je.Z)(Fi,2),Ls=Ua[0],Ql=Ua[1];yn(Ls,Ql)}},as=pi(function(Kr,zo){var Oo,zi=An?zo.selected:!0;zi?Oo=An?[].concat((0,Re.Z)(Xr),[Kr]):[Kr]:Oo=Xr.filter(function(gs){return gs.value!==Kr}),Ta(Oo),To(Kr,zi),Vn==="combobox"?us(""):(!xt||Rt)&&(tr(""),us(""))}),ma=function(zo,Oo){Ta(zo);var zi=Oo.type,gs=Oo.values;(zi==="remove"||zi==="clear")&&gs.forEach(function(ws){To(ws.value,!1,zi)})},No=function(zo,Oo){if(tr(zo),us(null),Oo.source==="submit"){var zi=(zo||"").trim();if(zi){var gs=Array.from(new Set([].concat((0,Re.Z)(ur),[zi])));Ta(gs),To(zi,!0),tr("")}return}Oo.source!=="blur"&&(Vn==="combobox"&&Ta(zo),dn==null||dn(zo))},fa=function(zo){var Oo=zo;Vn!=="tags"&&(Oo=zo.map(function(gs){var ws=ki.get(gs);return ws==null?void 0:ws.value}).filter(function(gs){return gs!==void 0}));var zi=Array.from(new Set([].concat((0,Re.Z)(ur),(0,Re.Z)(Oo))));Ta(zi),zi.forEach(function(gs){To(gs,!0)})},al=rt.useMemo(function(){var Kr=sn!==!1&&Mn!==!1;return(0,kt.Z)((0,kt.Z)({},to),{},{flattenOptions:Sa,onActiveValue:$o,defaultActiveFirstOption:El,onSelect:as,menuItemSelectedIcon:Dr,rawValues:ur,fieldNames:bo,virtual:Kr,direction:ai,listHeight:Gi,listItemHeight:_i,childrenAsData:Br})},[to,Sa,$o,El,as,Dr,ur,bo,sn,Mn,Gi,_i,Br]);return rt.createElement($i.Provider,{value:al},rt.createElement(Ft,(0,be.Z)({},En,{id:wo,prefixCls:gi,ref:ft,omitDomProps:zr,mode:Vn,displayValues:oa,onDisplayValuesChange:ma,direction:ai,searchValue:lr,onSearch:No,autoClearSearchValue:Rt,onSearchSplit:fa,dropdownMatchSelectWidth:Mn,OptionList:or,emptyOptions:!Sa.length,activeValue:Vs,activeDescendantId:"".concat(wo,"_list_").concat(xs)})))}),Qe=Yt;Qe.Option=vr,Qe.OptGroup=wi;var un=Qe,In=un},9296:function(On,xn,ye){"use strict";ye.r(xn),ye.d(xn,{ResizableTextArea:function(){return ut},default:function(){return jt}});var be=ye(72308),Re=ye(77321),at=ye(49618),kt=ye(62853),Je=ye(52487),it=ye(74416),Te=ye(80702),Tt=ye(92310),Pt=ye.n(Tt),rt=ye(93681),It=ye(5643),gt=ye(18929),Ct=ye(59301),Fe=ye(29301),te=ye(34280),ne=ye(16089),he=`
|
|
|
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;
|
|
|
`,se=["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"],ge={},me;function Pe(Xt){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=Xt.getAttribute("id")||Xt.getAttribute("data-reactid")||Xt.getAttribute("name");if(Nn&&ge[St])return ge[St];var Ge=window.getComputedStyle(Xt),en=Ge.getPropertyValue("box-sizing")||Ge.getPropertyValue("-moz-box-sizing")||Ge.getPropertyValue("-webkit-box-sizing"),Hn=parseFloat(Ge.getPropertyValue("padding-bottom"))+parseFloat(Ge.getPropertyValue("padding-top")),_n=parseFloat(Ge.getPropertyValue("border-bottom-width"))+parseFloat(Ge.getPropertyValue("border-top-width")),Bt=se.map(function(cn){return"".concat(cn,":").concat(Ge.getPropertyValue(cn))}).join(";"),rn={sizingStyle:Bt,paddingSize:Hn,borderSize:_n,boxSizing:en};return Nn&&St&&(ge[St]=rn),rn}function ke(Xt){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;me||(me=document.createElement("textarea"),me.setAttribute("tab-index","-1"),me.setAttribute("aria-hidden","true"),document.body.appendChild(me)),Xt.getAttribute("wrap")?me.setAttribute("wrap",Xt.getAttribute("wrap")):me.removeAttribute("wrap");var en=Pe(Xt,Nn),Hn=en.paddingSize,_n=en.borderSize,Bt=en.boxSizing,rn=en.sizingStyle;me.setAttribute("style","".concat(rn,";").concat(he)),me.value=Xt.value||Xt.placeholder||"";var cn=void 0,Kn=void 0,nn,Rn=me.scrollHeight;if(Bt==="border-box"?Rn+=_n:Bt==="content-box"&&(Rn-=Hn),St!==null||Ge!==null){me.value=" ";var vt=me.scrollHeight-Hn;St!==null&&(cn=vt*St,Bt==="border-box"&&(cn=cn+Hn+_n),Rn=Math.max(cn,Rn)),Ge!==null&&(Kn=vt*Ge,Bt==="border-box"&&(Kn=Kn+Hn+_n),nn=Rn>Kn?"":"hidden",Rn=Math.min(Kn,Rn))}var Yn={height:Rn,overflowY:nn,resize:"none"};return cn&&(Yn.minHeight=cn),Kn&&(Yn.maxHeight=Kn),Yn}var we=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Oe=0,He=1,We=2,Ve=Ct.forwardRef(function(Xt,Nn){var St=Xt,Ge=St.prefixCls,en=St.onPressEnter,Hn=St.defaultValue,_n=St.value,Bt=St.autoSize,rn=St.onResize,cn=St.className,Kn=St.style,nn=St.disabled,Rn=St.onChange,vt=St.onInternalAutoSize,Yn=(0,it.Z)(St,we),ni=(0,gt.Z)(Hn,{value:_n,postState:function(wi){return wi!=null?wi:""}}),je=(0,Je.Z)(ni,2),Me=je[0],xe=je[1],Ne=function(wi){xe(wi.target.value),Rn==null||Rn(wi)},Be=Ct.useRef();Ct.useImperativeHandle(Nn,function(){return{textArea:Be.current}});var Se=Ct.useMemo(function(){return Bt&&(0,kt.Z)(Bt)==="object"?[Bt.minRows,Bt.maxRows]:[]},[Bt]),lt=(0,Je.Z)(Se,2),Et=lt[0],Xe=lt[1],tt=!!Bt,wt=function(){try{if(document.activeElement===Be.current){var wi=Be.current,Vi=wi.selectionStart,vr=wi.selectionEnd,cr=wi.scrollTop;Be.current.setSelectionRange(Vi,vr),Be.current.scrollTop=cr}}catch(pr){}},xt=Ct.useState(We),ct=(0,Je.Z)(xt,2),Ft=ct[0],Pn=ct[1],mn=Ct.useState(),Jt=(0,Je.Z)(mn,2),gn=Jt[0],Tn=Jt[1],bt=function(){Pn(Oe)};(0,te.Z)(function(){tt&&bt()},[_n,Et,Xe,tt]),(0,te.Z)(function(){if(Ft===Oe)Pn(He);else if(Ft===He){var fi=ke(Be.current,!1,Et,Xe);Pn(We),Tn(fi)}else wt()},[Ft]);var _t=Ct.useRef(),$t=function(){ne.Z.cancel(_t.current)},Dn=function(wi){Ft===We&&(rn==null||rn(wi),Bt&&($t(),_t.current=(0,ne.Z)(function(){bt()})))};Ct.useEffect(function(){return $t},[]);var ii=tt?gn:null,pi=(0,Re.Z)((0,Re.Z)({},Kn),ii);return(Ft===Oe||Ft===He)&&(pi.overflowY="hidden",pi.overflowX="hidden"),Ct.createElement(Fe.Z,{onResize:Dn,disabled:!(Bt||rn)},Ct.createElement("textarea",(0,be.Z)({},Yn,{ref:Be,style:pi,className:Pt()(Ge,cn,(0,at.Z)({},"".concat(Ge,"-disabled"),nn)),disabled:nn,value:Me,onChange:Ne})))}),ut=Ve,Ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Wt(Xt,Nn){return(0,Te.Z)(Xt||"").slice(0,Nn).join("")}function pt(Xt,Nn,St,Ge){var en=St;return Xt?en=Wt(St,Ge):(0,Te.Z)(Nn||"").length<St.length&&(0,Te.Z)(St||"").length>Ge&&(en=Nn),en}var Ut=Ct.forwardRef(function(Xt,Nn){var St,Ge=Xt.defaultValue,en=Xt.value,Hn=Xt.onFocus,_n=Xt.onBlur,Bt=Xt.onChange,rn=Xt.allowClear,cn=Xt.maxLength,Kn=Xt.onCompositionStart,nn=Xt.onCompositionEnd,Rn=Xt.suffix,vt=Xt.prefixCls,Yn=vt===void 0?"rc-textarea":vt,ni=Xt.classes,je=Xt.showCount,Me=Xt.className,xe=Xt.style,Ne=Xt.disabled,Be=Xt.hidden,Se=Xt.classNames,lt=Xt.styles,Et=Xt.onResize,Xe=(0,it.Z)(Xt,Ke),tt=(0,gt.Z)(Ge,{value:en,defaultValue:Ge}),wt=(0,Je.Z)(tt,2),xt=wt[0],ct=wt[1],Ft=(0,Ct.useRef)(null),Pn=Ct.useState(!1),mn=(0,Je.Z)(Pn,2),Jt=mn[0],gn=mn[1],Tn=Ct.useState(!1),bt=(0,Je.Z)(Tn,2),_t=bt[0],$t=bt[1],Dn=Ct.useRef(),ii=Ct.useRef(0),pi=Ct.useState(null),fi=(0,Je.Z)(pi,2),wi=fi[0],Vi=fi[1],vr=function(){var on;(on=Ft.current)===null||on===void 0||on.textArea.focus()};(0,Ct.useImperativeHandle)(Nn,function(){return{resizableTextArea:Ft.current,focus:vr,blur:function(){var on;(on=Ft.current)===null||on===void 0||on.textArea.blur()}}}),(0,Ct.useEffect)(function(){gn(function(zr){return!Ne&&zr})},[Ne]);var cr=Number(cn)>0,pr=function(on){$t(!0),Dn.current=xt,ii.current=on.currentTarget.selectionStart,Kn==null||Kn(on)},_r=function(on){$t(!1);var Yt=on.currentTarget.value;if(cr){var Qe,un=ii.current>=cn+1||ii.current===((Qe=Dn.current)===null||Qe===void 0?void 0:Qe.length);Yt=pt(un,Dn.current,Yt,cn)}Yt!==xt&&(ct(Yt),(0,It.rJ)(on.currentTarget,on,Bt,Yt)),nn==null||nn(on)},Ir=function(on){var Yt=on.target.value;if(!_t&&cr){var Qe=on.target.selectionStart>=cn+1||on.target.selectionStart===Yt.length||!on.target.selectionStart;Yt=pt(Qe,xt,Yt,cn)}ct(Yt),(0,It.rJ)(on.currentTarget,on,Bt,Yt)},$i=function(on){var Yt=Xe.onPressEnter,Qe=Xe.onKeyDown;on.key==="Enter"&&Yt&&Yt(on),Qe==null||Qe(on)},eo=function(on){gn(!0),Hn==null||Hn(on)},kr=function(on){gn(!1),_n==null||_n(on)},Ee=function(on){var Yt;ct(""),vr(),(0,It.rJ)((Yt=Ft.current)===null||Yt===void 0?void 0:Yt.textArea,on,Bt)},si=(0,It.D7)(xt);!_t&&cr&&en==null&&(si=Wt(si,cn));var yi=Rn,or;if(je){var xr=(0,Te.Z)(si).length;(0,kt.Z)(je)==="object"?or=je.formatter({value:si,count:xr,maxLength:cn}):or="".concat(xr).concat(cr?" / ".concat(cn):""),yi=Ct.createElement(Ct.Fragment,null,yi,Ct.createElement("span",{className:Pt()("".concat(Yn,"-data-count"),Se==null?void 0:Se.count),style:lt==null?void 0:lt.count},or))}var qi=function(on){var Yt;Et==null||Et(on),(Yt=Ft.current)!==null&&Yt!==void 0&&Yt.textArea.style.height&&Vi(!0)},Qr=!Xe.autoSize&&!je&&!rn,mo=Ct.createElement(rt.BaseInput,{value:si,allowClear:rn,handleReset:Ee,suffix:yi,prefixCls:Yn,classes:{affixWrapper:Pt()(ni==null?void 0:ni.affixWrapper,(St={},(0,at.Z)(St,"".concat(Yn,"-show-count"),je),(0,at.Z)(St,"".concat(Yn,"-textarea-allow-clear"),rn),St))},disabled:Ne,focused:Jt,className:Me,style:(0,Re.Z)((0,Re.Z)({},xe),wi&&!Qr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof or=="string"?or:void 0}},hidden:Be,inputElement:Ct.createElement(ut,(0,be.Z)({},Xe,{onKeyDown:$i,onChange:Ir,onFocus:eo,onBlur:kr,onCompositionStart:pr,onCompositionEnd:_r,className:Se==null?void 0:Se.textarea,style:(0,Re.Z)((0,Re.Z)({},lt==null?void 0:lt.textarea),{},{resize:xe==null?void 0:xe.resize}),disabled:Ne,prefixCls:Yn,onResize:qi,ref:Ft}))});return mo}),Ht=Ut,jt=Ht},39417:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return He}});var be=ye(72308),Re=ye(49618),at=ye(74416),kt=ye(77321),Je=ye(96949),it=ye(55090),Te=ye(80237),Tt=ye(77205),Pt=ye(38793),rt=ye(92310),It=ye.n(rt),gt=ye(26112),Ct=ye(59301),Fe=ye(39378),te=function(Ve){for(var ut=Ve.prefixCls,Ke=Ve.level,Wt=Ve.isStart,pt=Ve.isEnd,Ut="".concat(ut,"-indent-unit"),Ht=[],jt=0;jt<Ke;jt+=1){var Xt;Ht.push(Ct.createElement("span",{key:jt,className:It()(Ut,(Xt={},(0,Re.Z)(Xt,"".concat(Ut,"-start"),Wt[jt]),(0,Re.Z)(Xt,"".concat(Ut,"-end"),pt[jt]),Xt))}))}return Ct.createElement("span",{"aria-hidden":"true",className:"".concat(ut,"-indent")},Ht)},ne=Ct.memo(te),he=ye(67841),se=ye(71430),ge=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],me="open",Pe="close",ke="---",we=function(We){(0,Tt.Z)(ut,We);var Ve=(0,Pt.Z)(ut);function ut(){var Ke;(0,Je.Z)(this,ut);for(var Wt=arguments.length,pt=new Array(Wt),Ut=0;Ut<Wt;Ut++)pt[Ut]=arguments[Ut];return Ke=Ve.call.apply(Ve,[this].concat(pt)),Ke.state={dragNodeHighlight:!1},Ke.selectHandle=void 0,Ke.cacheIndent=void 0,Ke.onSelectorClick=function(Ht){var jt=Ke.props.context.onNodeClick;jt(Ht,(0,se.F)(Ke.props)),Ke.isSelectable()?Ke.onSelect(Ht):Ke.onCheck(Ht)},Ke.onSelectorDoubleClick=function(Ht){var jt=Ke.props.context.onNodeDoubleClick;jt(Ht,(0,se.F)(Ke.props))},Ke.onSelect=function(Ht){if(!Ke.isDisabled()){var jt=Ke.props.context.onNodeSelect;jt(Ht,(0,se.F)(Ke.props))}},Ke.onCheck=function(Ht){if(!Ke.isDisabled()){var jt=Ke.props,Xt=jt.disableCheckbox,Nn=jt.checked,St=Ke.props.context.onNodeCheck;if(!(!Ke.isCheckable()||Xt)){var Ge=!Nn;St(Ht,(0,se.F)(Ke.props),Ge)}}},Ke.onMouseEnter=function(Ht){var jt=Ke.props.context.onNodeMouseEnter;jt(Ht,(0,se.F)(Ke.props))},Ke.onMouseLeave=function(Ht){var jt=Ke.props.context.onNodeMouseLeave;jt(Ht,(0,se.F)(Ke.props))},Ke.onContextMenu=function(Ht){var jt=Ke.props.context.onNodeContextMenu;jt(Ht,(0,se.F)(Ke.props))},Ke.onDragStart=function(Ht){var jt=Ke.props.context.onNodeDragStart;Ht.stopPropagation(),Ke.setState({dragNodeHighlight:!0}),jt(Ht,(0,Te.Z)(Ke));try{Ht.dataTransfer.setData("text/plain","")}catch(Xt){}},Ke.onDragEnter=function(Ht){var jt=Ke.props.context.onNodeDragEnter;Ht.preventDefault(),Ht.stopPropagation(),jt(Ht,(0,Te.Z)(Ke))},Ke.onDragOver=function(Ht){var jt=Ke.props.context.onNodeDragOver;Ht.preventDefault(),Ht.stopPropagation(),jt(Ht,(0,Te.Z)(Ke))},Ke.onDragLeave=function(Ht){var jt=Ke.props.context.onNodeDragLeave;Ht.stopPropagation(),jt(Ht,(0,Te.Z)(Ke))},Ke.onDragEnd=function(Ht){var jt=Ke.props.context.onNodeDragEnd;Ht.stopPropagation(),Ke.setState({dragNodeHighlight:!1}),jt(Ht,(0,Te.Z)(Ke))},Ke.onDrop=function(Ht){var jt=Ke.props.context.onNodeDrop;Ht.preventDefault(),Ht.stopPropagation(),Ke.setState({dragNodeHighlight:!1}),jt(Ht,(0,Te.Z)(Ke))},Ke.onExpand=function(Ht){var jt=Ke.props,Xt=jt.loading,Nn=jt.context.onNodeExpand;Xt||Nn(Ht,(0,se.F)(Ke.props))},Ke.setSelectHandle=function(Ht){Ke.selectHandle=Ht},Ke.getNodeState=function(){var Ht=Ke.props.expanded;return Ke.isLeaf()?null:Ht?me:Pe},Ke.hasChildren=function(){var Ht=Ke.props.eventKey,jt=Ke.props.context.keyEntities,Xt=(0,he.Z)(jt,Ht)||{},Nn=Xt.children;return!!(Nn||[]).length},Ke.isLeaf=function(){var Ht=Ke.props,jt=Ht.isLeaf,Xt=Ht.loaded,Nn=Ke.props.context.loadData,St=Ke.hasChildren();return jt===!1?!1:jt||!Nn&&!St||Nn&&Xt&&!St},Ke.isDisabled=function(){var Ht=Ke.props.disabled,jt=Ke.props.context.disabled;return!!(jt||Ht)},Ke.isCheckable=function(){var Ht=Ke.props.checkable,jt=Ke.props.context.checkable;return!jt||Ht===!1?!1:jt},Ke.syncLoadData=function(Ht){var jt=Ht.expanded,Xt=Ht.loading,Nn=Ht.loaded,St=Ke.props.context,Ge=St.loadData,en=St.onNodeLoad;Xt||Ge&&jt&&!Ke.isLeaf()&&!Ke.hasChildren()&&!Nn&&en((0,se.F)(Ke.props))},Ke.isDraggable=function(){var Ht=Ke.props,jt=Ht.data,Xt=Ht.context.draggable;return!!(Xt&&(!Xt.nodeDraggable||Xt.nodeDraggable(jt)))},Ke.renderDragHandler=function(){var Ht=Ke.props.context,jt=Ht.draggable,Xt=Ht.prefixCls;return jt!=null&&jt.icon?Ct.createElement("span",{className:"".concat(Xt,"-draggable-icon")},jt.icon):null},Ke.renderSwitcherIconDom=function(Ht){var jt=Ke.props.switcherIcon,Xt=Ke.props.context.switcherIcon,Nn=jt||Xt;return typeof Nn=="function"?Nn((0,kt.Z)((0,kt.Z)({},Ke.props),{},{isLeaf:Ht})):Nn},Ke.renderSwitcher=function(){var Ht=Ke.props.expanded,jt=Ke.props.context.prefixCls;if(Ke.isLeaf()){var Xt=Ke.renderSwitcherIconDom(!0);return Xt!==!1?Ct.createElement("span",{className:It()("".concat(jt,"-switcher"),"".concat(jt,"-switcher-noop"))},Xt):null}var Nn=It()("".concat(jt,"-switcher"),"".concat(jt,"-switcher_").concat(Ht?me:Pe)),St=Ke.renderSwitcherIconDom(!1);return St!==!1?Ct.createElement("span",{onClick:Ke.onExpand,className:Nn},St):null},Ke.renderCheckbox=function(){var Ht=Ke.props,jt=Ht.checked,Xt=Ht.halfChecked,Nn=Ht.disableCheckbox,St=Ke.props.context.prefixCls,Ge=Ke.isDisabled(),en=Ke.isCheckable();if(!en)return null;var Hn=typeof en!="boolean"?en:null;return Ct.createElement("span",{className:It()("".concat(St,"-checkbox"),jt&&"".concat(St,"-checkbox-checked"),!jt&&Xt&&"".concat(St,"-checkbox-indeterminate"),(Ge||Nn)&&"".concat(St,"-checkbox-disabled")),onClick:Ke.onCheck},Hn)},Ke.renderIcon=function(){var Ht=Ke.props.loading,jt=Ke.props.context.prefixCls;return Ct.createElement("span",{className:It()("".concat(jt,"-iconEle"),"".concat(jt,"-icon__").concat(Ke.getNodeState()||"docu"),Ht&&"".concat(jt,"-icon_loading"))})},Ke.renderSelector=function(){var Ht=Ke.state.dragNodeHighlight,jt=Ke.props,Xt=jt.title,Nn=Xt===void 0?ke:Xt,St=jt.selected,Ge=jt.icon,en=jt.loading,Hn=jt.data,_n=Ke.props.context,Bt=_n.prefixCls,rn=_n.showIcon,cn=_n.icon,Kn=_n.loadData,nn=_n.titleRender,Rn=Ke.isDisabled(),vt="".concat(Bt,"-node-content-wrapper"),Yn;if(rn){var ni=Ge||cn;Yn=ni?Ct.createElement("span",{className:It()("".concat(Bt,"-iconEle"),"".concat(Bt,"-icon__customize"))},typeof ni=="function"?ni(Ke.props):ni):Ke.renderIcon()}else Kn&&en&&(Yn=Ke.renderIcon());var je;typeof Nn=="function"?je=Nn(Hn):nn?je=nn(Hn):je=Nn;var Me=Ct.createElement("span",{className:"".concat(Bt,"-title")},je);return Ct.createElement("span",{ref:Ke.setSelectHandle,title:typeof Nn=="string"?Nn:"",className:It()("".concat(vt),"".concat(vt,"-").concat(Ke.getNodeState()||"normal"),!Rn&&(St||Ht)&&"".concat(Bt,"-node-selected")),onMouseEnter:Ke.onMouseEnter,onMouseLeave:Ke.onMouseLeave,onContextMenu:Ke.onContextMenu,onClick:Ke.onSelectorClick,onDoubleClick:Ke.onSelectorDoubleClick},Yn,Me,Ke.renderDropIndicator())},Ke.renderDropIndicator=function(){var Ht=Ke.props,jt=Ht.disabled,Xt=Ht.eventKey,Nn=Ke.props.context,St=Nn.draggable,Ge=Nn.dropLevelOffset,en=Nn.dropPosition,Hn=Nn.prefixCls,_n=Nn.indent,Bt=Nn.dropIndicatorRender,rn=Nn.dragOverNodeKey,cn=Nn.direction,Kn=!!St,nn=!jt&&Kn&&rn===Xt,Rn=_n!=null?_n:Ke.cacheIndent;return Ke.cacheIndent=_n,nn?Bt({dropPosition:en,dropLevelOffset:Ge,indent:Rn,prefixCls:Hn,direction:cn}):null},Ke}return(0,it.Z)(ut,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Wt=this.props.selectable,pt=this.props.context.selectable;return typeof Wt=="boolean"?Wt:pt}},{key:"render",value:function(){var Wt,pt=this.props,Ut=pt.eventKey,Ht=pt.className,jt=pt.style,Xt=pt.dragOver,Nn=pt.dragOverGapTop,St=pt.dragOverGapBottom,Ge=pt.isLeaf,en=pt.isStart,Hn=pt.isEnd,_n=pt.expanded,Bt=pt.selected,rn=pt.checked,cn=pt.halfChecked,Kn=pt.loading,nn=pt.domRef,Rn=pt.active,vt=pt.data,Yn=pt.onMouseMove,ni=pt.selectable,je=(0,at.Z)(pt,ge),Me=this.props.context,xe=Me.prefixCls,Ne=Me.filterTreeNode,Be=Me.keyEntities,Se=Me.dropContainerKey,lt=Me.dropTargetKey,Et=Me.draggingNodeKey,Xe=this.isDisabled(),tt=(0,gt.Z)(je,{aria:!0,data:!0}),wt=(0,he.Z)(Be,Ut)||{},xt=wt.level,ct=Hn[Hn.length-1],Ft=this.isDraggable(),Pn=!Xe&&Ft,mn=Et===Ut,Jt=ni!==void 0?{"aria-selected":!!ni}:void 0;return Ct.createElement("div",(0,be.Z)({ref:nn,className:It()(Ht,"".concat(xe,"-treenode"),(Wt={},(0,Re.Z)(Wt,"".concat(xe,"-treenode-disabled"),Xe),(0,Re.Z)(Wt,"".concat(xe,"-treenode-switcher-").concat(_n?"open":"close"),!Ge),(0,Re.Z)(Wt,"".concat(xe,"-treenode-checkbox-checked"),rn),(0,Re.Z)(Wt,"".concat(xe,"-treenode-checkbox-indeterminate"),cn),(0,Re.Z)(Wt,"".concat(xe,"-treenode-selected"),Bt),(0,Re.Z)(Wt,"".concat(xe,"-treenode-loading"),Kn),(0,Re.Z)(Wt,"".concat(xe,"-treenode-active"),Rn),(0,Re.Z)(Wt,"".concat(xe,"-treenode-leaf-last"),ct),(0,Re.Z)(Wt,"".concat(xe,"-treenode-draggable"),Ft),(0,Re.Z)(Wt,"dragging",mn),(0,Re.Z)(Wt,"drop-target",lt===Ut),(0,Re.Z)(Wt,"drop-container",Se===Ut),(0,Re.Z)(Wt,"drag-over",!Xe&&Xt),(0,Re.Z)(Wt,"drag-over-gap-top",!Xe&&Nn),(0,Re.Z)(Wt,"drag-over-gap-bottom",!Xe&&St),(0,Re.Z)(Wt,"filter-node",Ne&&Ne((0,se.F)(this.props))),Wt)),style:jt,draggable:Pn,"aria-grabbed":mn,onDragStart:Pn?this.onDragStart:void 0,onDragEnter:Ft?this.onDragEnter:void 0,onDragOver:Ft?this.onDragOver:void 0,onDragLeave:Ft?this.onDragLeave:void 0,onDrop:Ft?this.onDrop:void 0,onDragEnd:Ft?this.onDragEnd:void 0,onMouseMove:Yn},Jt,tt),Ct.createElement(ne,{prefixCls:xe,level:xt,isStart:en,isEnd:Hn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ut}(Ct.Component),Oe=function(Ve){return Ct.createElement(Fe.k.Consumer,null,function(ut){return Ct.createElement(we,(0,be.Z)({},Ve,{context:ut}))})};Oe.displayName="TreeNode",Oe.isTreeNode=1;var He=Oe},39378:function(On,xn,ye){"use strict";ye.d(xn,{k:function(){return Re}});var be=ye(59301),Re=be.createContext(null)},54844:function(On,xn,ye){"use strict";ye.d(xn,{O:function(){return He.Z},Z:function(){return Me}});var be=ye(72308),Re=ye(49618),at=ye(62853),kt=ye(77321),Je=ye(80702),it=ye(96949),Te=ye(55090),Tt=ye(80237),Pt=ye(77205),rt=ye(38793),It=ye(92310),gt=ye.n(It),Ct=ye(10228),Fe=ye(26112),te=ye(48736),ne=ye(59301),he=ye(39378);function se(xe){var Ne=xe.dropPosition,Be=xe.dropLevelOffset,Se=xe.indent,lt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ne){case-1:lt.top=0,lt.left=-Be*Se;break;case 1:lt.bottom=0,lt.left=-Be*Se;break;case 0:lt.bottom=0,lt.left=Se;break}return ne.createElement("div",{style:lt})}function ge(xe){if(xe==null)throw new TypeError("Cannot destructure "+xe)}var me=ye(52487),Pe=ye(74416),ke=ye(34280),we=ye(45680),Oe=ye(77900),He=ye(39417);function We(xe,Ne){var Be=ne.useState(!1),Se=(0,me.Z)(Be,2),lt=Se[0],Et=Se[1];ne.useLayoutEffect(function(){if(lt)return xe(),function(){Ne()}},[lt]),ne.useLayoutEffect(function(){return Et(!0),function(){Et(!1)}},[])}var Ve=ye(71430),ut=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ke=function(Ne,Be){var Se=Ne.className,lt=Ne.style,Et=Ne.motion,Xe=Ne.motionNodes,tt=Ne.motionType,wt=Ne.onMotionStart,xt=Ne.onMotionEnd,ct=Ne.active,Ft=Ne.treeNodeRequiredProps,Pn=(0,Pe.Z)(Ne,ut),mn=ne.useState(!0),Jt=(0,me.Z)(mn,2),gn=Jt[0],Tn=Jt[1],bt=ne.useContext(he.k),_t=bt.prefixCls,$t=Xe&&tt!=="hide";(0,ke.Z)(function(){Xe&&$t!==gn&&Tn($t)},[Xe]);var Dn=function(){Xe&&wt()},ii=ne.useRef(!1),pi=function(){Xe&&!ii.current&&(ii.current=!0,xt())};We(Dn,pi);var fi=function(Vi){$t===Vi&&pi()};return Xe?ne.createElement(Oe.default,(0,be.Z)({ref:Be,visible:gn},Et,{motionAppear:tt==="show",onVisibleChanged:fi}),function(wi,Vi){var vr=wi.className,cr=wi.style;return ne.createElement("div",{ref:Vi,className:gt()("".concat(_t,"-treenode-motion"),vr),style:cr},Xe.map(function(pr){var _r=(0,be.Z)({},(ge(pr.data),pr.data)),Ir=pr.title,$i=pr.key,eo=pr.isStart,kr=pr.isEnd;delete _r.children;var Ee=(0,Ve.H8)($i,Ft);return ne.createElement(He.Z,(0,be.Z)({},_r,Ee,{title:Ir,active:ct,data:pr.data,key:$i,isStart:eo,isEnd:kr}))}))}):ne.createElement(He.Z,(0,be.Z)({domRef:Be,className:Se,style:lt},Pn,{active:ct}))};Ke.displayName="MotionTreeNode";var Wt=ne.forwardRef(Ke),pt=Wt;function Ut(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Be=xe.length,Se=Ne.length;if(Math.abs(Be-Se)!==1)return{add:!1,key:null};function lt(Et,Xe){var tt=new Map;Et.forEach(function(xt){tt.set(xt,!0)});var wt=Xe.filter(function(xt){return!tt.has(xt)});return wt.length===1?wt[0]:null}return Be<Se?{add:!0,key:lt(xe,Ne)}:{add:!1,key:lt(Ne,xe)}}function Ht(xe,Ne,Be){var Se=xe.findIndex(function(tt){return tt.key===Be}),lt=xe[Se+1],Et=Ne.findIndex(function(tt){return tt.key===Be});if(lt){var Xe=Ne.findIndex(function(tt){return tt.key===lt.key});return Ne.slice(Et+1,Xe)}return Ne.slice(Et+1)}var jt=["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"],Xt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Nn=function(){},St="RC_TREE_MOTION_".concat(Math.random()),Ge={key:St},en={key:St,level:0,index:0,pos:"0",node:Ge,nodes:[Ge]},Hn={parent:null,children:[],pos:en.pos,data:Ge,title:null,key:St,isStart:[],isEnd:[]};function _n(xe,Ne,Be,Se){return Ne===!1||!Be?xe:xe.slice(0,Math.ceil(Be/Se)+1)}function Bt(xe){var Ne=xe.key,Be=xe.pos;return(0,Ve.km)(Ne,Be)}function rn(xe){for(var Ne=String(xe.data.key),Be=xe;Be.parent;)Be=Be.parent,Ne="".concat(Be.data.key," > ").concat(Ne);return Ne}var cn=ne.forwardRef(function(xe,Ne){var Be=xe.prefixCls,Se=xe.data,lt=xe.selectable,Et=xe.checkable,Xe=xe.expandedKeys,tt=xe.selectedKeys,wt=xe.checkedKeys,xt=xe.loadedKeys,ct=xe.loadingKeys,Ft=xe.halfCheckedKeys,Pn=xe.keyEntities,mn=xe.disabled,Jt=xe.dragging,gn=xe.dragOverNodeKey,Tn=xe.dropPosition,bt=xe.motion,_t=xe.height,$t=xe.itemHeight,Dn=xe.virtual,ii=xe.focusable,pi=xe.activeItem,fi=xe.focused,wi=xe.tabIndex,Vi=xe.onKeyDown,vr=xe.onFocus,cr=xe.onBlur,pr=xe.onActiveChange,_r=xe.onListChangeStart,Ir=xe.onListChangeEnd,$i=(0,Pe.Z)(xe,jt),eo=ne.useRef(null),kr=ne.useRef(null);ne.useImperativeHandle(Ne,function(){return{scrollTo:function(vn){eo.current.scrollTo(vn)},getIndentWidth:function(){return kr.current.offsetWidth}}});var Ee=ne.useState(Xe),si=(0,me.Z)(Ee,2),yi=si[0],or=si[1],xr=ne.useState(Se),qi=(0,me.Z)(xr,2),Qr=qi[0],mo=qi[1],zr=ne.useState(Se),on=(0,me.Z)(zr,2),Yt=on[0],Qe=on[1],un=ne.useState([]),In=(0,me.Z)(un,2),Mt=In[0],ft=In[1],fn=ne.useState(null),Vn=(0,me.Z)(fn,2),bi=Vn[0],gi=Vn[1],dt=ne.useRef(Se);dt.current=Se;function Fn(){var dn=dt.current;mo(dn),Qe(dn),ft([]),gi(null),Ir()}(0,ke.Z)(function(){or(Xe);var dn=Ut(yi,Xe);if(dn.key!==null)if(dn.add){var vn=Qr.findIndex(function(bn){var $n=bn.key;return $n===dn.key}),Rt=_n(Ht(Qr,Se,dn.key),Dn,_t,$t),tn=Qr.slice();tn.splice(vn+1,0,Hn),Qe(tn),ft(Rt),gi("show")}else{var yn=Se.findIndex(function(bn){var $n=bn.key;return $n===dn.key}),an=_n(Ht(Se,Qr,dn.key),Dn,_t,$t),Mn=Se.slice();Mn.splice(yn+1,0,Hn),Qe(Mn),ft(an),gi("hide")}else Qr!==Se&&(mo(Se),Qe(Se))},[Xe,Se]),ne.useEffect(function(){Jt||Fn()},[Jt]);var ui=bt?Yt:Se,ji={expandedKeys:Xe,selectedKeys:tt,loadedKeys:xt,loadingKeys:ct,checkedKeys:wt,halfCheckedKeys:Ft,dragOverNodeKey:gn,dropPosition:Tn,keyEntities:Pn};return ne.createElement(ne.Fragment,null,fi&&pi&&ne.createElement("span",{style:Xt,"aria-live":"assertive"},rn(pi)),ne.createElement("div",null,ne.createElement("input",{style:Xt,disabled:ii===!1||mn,tabIndex:ii!==!1?wi:null,onKeyDown:Vi,onFocus:vr,onBlur:cr,value:"",onChange:Nn,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(Be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(Be,"-indent")},ne.createElement("div",{ref:kr,className:"".concat(Be,"-indent-unit")}))),ne.createElement(we.Z,(0,be.Z)({},$i,{data:ui,itemKey:Bt,height:_t,fullHeight:!1,virtual:Dn,itemHeight:$t,prefixCls:"".concat(Be,"-list"),ref:eo,onVisibleChange:function(vn,Rt){var tn=new Set(vn),yn=Rt.filter(function(an){return!tn.has(an)});yn.some(function(an){return Bt(an)===St})&&Fn()}}),function(dn){var vn=dn.pos,Rt=(0,be.Z)({},(ge(dn.data),dn.data)),tn=dn.title,yn=dn.key,an=dn.isStart,Mn=dn.isEnd,bn=(0,Ve.km)(yn,vn);delete Rt.key,delete Rt.children;var $n=(0,Ve.H8)(bn,ji);return ne.createElement(pt,(0,be.Z)({},Rt,$n,{title:tn,active:!!pi&&yn===pi.key,pos:vn,data:dn.data,isStart:an,isEnd:Mn,motion:bt,motionNodes:yn===St?Mt:null,motionType:bi,onMotionStart:_r,onMotionEnd:Fn,treeNodeRequiredProps:ji,onMouseMove:function(){pr(null)}}))}))});cn.displayName="NodeList";var Kn=cn,nn=ye(35654),Rn=ye(90782),vt=ye(67841),Yn=10,ni=function(xe){(0,Pt.Z)(Be,xe);var Ne=(0,rt.Z)(Be);function Be(){var Se;(0,it.Z)(this,Be);for(var lt=arguments.length,Et=new Array(lt),Xe=0;Xe<lt;Xe++)Et[Xe]=arguments[Xe];return Se=Ne.call.apply(Ne,[this].concat(Et)),Se.destroyed=!1,Se.delayedDragEnterLogic=void 0,Se.loadingRetryTimes={},Se.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ve.w$)()},Se.dragStartMousePosition=null,Se.dragNode=void 0,Se.currentMouseOverDroppableNodeKey=null,Se.listRef=ne.createRef(),Se.onNodeDragStart=function(tt,wt){var xt=Se.state,ct=xt.expandedKeys,Ft=xt.keyEntities,Pn=Se.props.onDragStart,mn=wt.props.eventKey;Se.dragNode=wt,Se.dragStartMousePosition={x:tt.clientX,y:tt.clientY};var Jt=(0,nn._5)(ct,mn);Se.setState({draggingNodeKey:mn,dragChildrenKeys:(0,nn.wA)(mn,Ft),indent:Se.listRef.current.getIndentWidth()}),Se.setExpandedKeys(Jt),window.addEventListener("dragend",Se.onWindowDragEnd),Pn==null||Pn({event:tt,node:(0,Ve.F)(wt.props)})},Se.onNodeDragEnter=function(tt,wt){var xt=Se.state,ct=xt.expandedKeys,Ft=xt.keyEntities,Pn=xt.dragChildrenKeys,mn=xt.flattenNodes,Jt=xt.indent,gn=Se.props,Tn=gn.onDragEnter,bt=gn.onExpand,_t=gn.allowDrop,$t=gn.direction,Dn=wt.props,ii=Dn.pos,pi=Dn.eventKey,fi=(0,Tt.Z)(Se),wi=fi.dragNode;if(Se.currentMouseOverDroppableNodeKey!==pi&&(Se.currentMouseOverDroppableNodeKey=pi),!wi){Se.resetDragState();return}var Vi=(0,nn.OM)(tt,wi,wt,Jt,Se.dragStartMousePosition,_t,mn,Ft,ct,$t),vr=Vi.dropPosition,cr=Vi.dropLevelOffset,pr=Vi.dropTargetKey,_r=Vi.dropContainerKey,Ir=Vi.dropTargetPos,$i=Vi.dropAllowed,eo=Vi.dragOverNodeKey;if(Pn.indexOf(pr)!==-1||!$i){Se.resetDragState();return}if(Se.delayedDragEnterLogic||(Se.delayedDragEnterLogic={}),Object.keys(Se.delayedDragEnterLogic).forEach(function(kr){clearTimeout(Se.delayedDragEnterLogic[kr])}),wi.props.eventKey!==wt.props.eventKey&&(tt.persist(),Se.delayedDragEnterLogic[ii]=window.setTimeout(function(){if(Se.state.draggingNodeKey!==null){var kr=(0,Je.Z)(ct),Ee=(0,vt.Z)(Ft,wt.props.eventKey);Ee&&(Ee.children||[]).length&&(kr=(0,nn.L0)(ct,wt.props.eventKey)),"expandedKeys"in Se.props||Se.setExpandedKeys(kr),bt==null||bt(kr,{node:(0,Ve.F)(wt.props),expanded:!0,nativeEvent:tt.nativeEvent})}},800)),wi.props.eventKey===pr&&cr===0){Se.resetDragState();return}Se.setState({dragOverNodeKey:eo,dropPosition:vr,dropLevelOffset:cr,dropTargetKey:pr,dropContainerKey:_r,dropTargetPos:Ir,dropAllowed:$i}),Tn==null||Tn({event:tt,node:(0,Ve.F)(wt.props),expandedKeys:ct})},Se.onNodeDragOver=function(tt,wt){var xt=Se.state,ct=xt.dragChildrenKeys,Ft=xt.flattenNodes,Pn=xt.keyEntities,mn=xt.expandedKeys,Jt=xt.indent,gn=Se.props,Tn=gn.onDragOver,bt=gn.allowDrop,_t=gn.direction,$t=(0,Tt.Z)(Se),Dn=$t.dragNode;if(Dn){var ii=(0,nn.OM)(tt,Dn,wt,Jt,Se.dragStartMousePosition,bt,Ft,Pn,mn,_t),pi=ii.dropPosition,fi=ii.dropLevelOffset,wi=ii.dropTargetKey,Vi=ii.dropContainerKey,vr=ii.dropAllowed,cr=ii.dropTargetPos,pr=ii.dragOverNodeKey;ct.indexOf(wi)!==-1||!vr||(Dn.props.eventKey===wi&&fi===0?Se.state.dropPosition===null&&Se.state.dropLevelOffset===null&&Se.state.dropTargetKey===null&&Se.state.dropContainerKey===null&&Se.state.dropTargetPos===null&&Se.state.dropAllowed===!1&&Se.state.dragOverNodeKey===null||Se.resetDragState():pi===Se.state.dropPosition&&fi===Se.state.dropLevelOffset&&wi===Se.state.dropTargetKey&&Vi===Se.state.dropContainerKey&&cr===Se.state.dropTargetPos&&vr===Se.state.dropAllowed&&pr===Se.state.dragOverNodeKey||Se.setState({dropPosition:pi,dropLevelOffset:fi,dropTargetKey:wi,dropContainerKey:Vi,dropTargetPos:cr,dropAllowed:vr,dragOverNodeKey:pr}),Tn==null||Tn({event:tt,node:(0,Ve.F)(wt.props)}))}},Se.onNodeDragLeave=function(tt,wt){Se.currentMouseOverDroppableNodeKey===wt.props.eventKey&&!tt.currentTarget.contains(tt.relatedTarget)&&(Se.resetDragState(),Se.currentMouseOverDroppableNodeKey=null);var xt=Se.props.onDragLeave;xt==null||xt({event:tt,node:(0,Ve.F)(wt.props)})},Se.onWindowDragEnd=function(tt){Se.onNodeDragEnd(tt,null,!0),window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDragEnd=function(tt,wt){var xt=Se.props.onDragEnd;Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),xt==null||xt({event:tt,node:(0,Ve.F)(wt.props)}),Se.dragNode=null,window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDrop=function(tt,wt){var xt,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ft=Se.state,Pn=Ft.dragChildrenKeys,mn=Ft.dropPosition,Jt=Ft.dropTargetKey,gn=Ft.dropTargetPos,Tn=Ft.dropAllowed;if(Tn){var bt=Se.props.onDrop;if(Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),Jt!==null){var _t=(0,kt.Z)((0,kt.Z)({},(0,Ve.H8)(Jt,Se.getTreeNodeRequiredProps())),{},{active:((xt=Se.getActiveItem())===null||xt===void 0?void 0:xt.key)===Jt,data:(0,vt.Z)(Se.state.keyEntities,Jt).node}),$t=Pn.indexOf(Jt)!==-1;(0,te.ZP)(!$t,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Dn=(0,nn.yx)(gn),ii={event:tt,node:(0,Ve.F)(_t),dragNode:Se.dragNode?(0,Ve.F)(Se.dragNode.props):null,dragNodesKeys:[Se.dragNode.props.eventKey].concat(Pn),dropToGap:mn!==0,dropPosition:mn+Number(Dn[Dn.length-1])};ct||bt==null||bt(ii),Se.dragNode=null}}},Se.cleanDragState=function(){var tt=Se.state.draggingNodeKey;tt!==null&&Se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Se.dragStartMousePosition=null,Se.currentMouseOverDroppableNodeKey=null},Se.triggerExpandActionExpand=function(tt,wt){var xt=Se.state,ct=xt.expandedKeys,Ft=xt.flattenNodes,Pn=wt.expanded,mn=wt.key,Jt=wt.isLeaf;if(!(Jt||tt.shiftKey||tt.metaKey||tt.ctrlKey)){var gn=Ft.filter(function(bt){return bt.key===mn})[0],Tn=(0,Ve.F)((0,kt.Z)((0,kt.Z)({},(0,Ve.H8)(mn,Se.getTreeNodeRequiredProps())),{},{data:gn.data}));Se.setExpandedKeys(Pn?(0,nn._5)(ct,mn):(0,nn.L0)(ct,mn)),Se.onNodeExpand(tt,Tn)}},Se.onNodeClick=function(tt,wt){var xt=Se.props,ct=xt.onClick,Ft=xt.expandAction;Ft==="click"&&Se.triggerExpandActionExpand(tt,wt),ct==null||ct(tt,wt)},Se.onNodeDoubleClick=function(tt,wt){var xt=Se.props,ct=xt.onDoubleClick,Ft=xt.expandAction;Ft==="doubleClick"&&Se.triggerExpandActionExpand(tt,wt),ct==null||ct(tt,wt)},Se.onNodeSelect=function(tt,wt){var xt=Se.state.selectedKeys,ct=Se.state,Ft=ct.keyEntities,Pn=ct.fieldNames,mn=Se.props,Jt=mn.onSelect,gn=mn.multiple,Tn=wt.selected,bt=wt[Pn.key],_t=!Tn;_t?gn?xt=(0,nn.L0)(xt,bt):xt=[bt]:xt=(0,nn._5)(xt,bt);var $t=xt.map(function(Dn){var ii=(0,vt.Z)(Ft,Dn);return ii?ii.node:null}).filter(function(Dn){return Dn});Se.setUncontrolledState({selectedKeys:xt}),Jt==null||Jt(xt,{event:"select",selected:_t,node:wt,selectedNodes:$t,nativeEvent:tt.nativeEvent})},Se.onNodeCheck=function(tt,wt,xt){var ct=Se.state,Ft=ct.keyEntities,Pn=ct.checkedKeys,mn=ct.halfCheckedKeys,Jt=Se.props,gn=Jt.checkStrictly,Tn=Jt.onCheck,bt=wt.key,_t,$t={event:"check",node:wt,checked:xt,nativeEvent:tt.nativeEvent};if(gn){var Dn=xt?(0,nn.L0)(Pn,bt):(0,nn._5)(Pn,bt),ii=(0,nn._5)(mn,bt);_t={checked:Dn,halfChecked:ii},$t.checkedNodes=Dn.map(function(cr){return(0,vt.Z)(Ft,cr)}).filter(function(cr){return cr}).map(function(cr){return cr.node}),Se.setUncontrolledState({checkedKeys:Dn})}else{var pi=(0,Rn.S)([].concat((0,Je.Z)(Pn),[bt]),!0,Ft),fi=pi.checkedKeys,wi=pi.halfCheckedKeys;if(!xt){var Vi=new Set(fi);Vi.delete(bt);var vr=(0,Rn.S)(Array.from(Vi),{checked:!1,halfCheckedKeys:wi},Ft);fi=vr.checkedKeys,wi=vr.halfCheckedKeys}_t=fi,$t.checkedNodes=[],$t.checkedNodesPositions=[],$t.halfCheckedKeys=wi,fi.forEach(function(cr){var pr=(0,vt.Z)(Ft,cr);if(pr){var _r=pr.node,Ir=pr.pos;$t.checkedNodes.push(_r),$t.checkedNodesPositions.push({node:_r,pos:Ir})}}),Se.setUncontrolledState({checkedKeys:fi},!1,{halfCheckedKeys:wi})}Tn==null||Tn(_t,$t)},Se.onNodeLoad=function(tt){var wt=tt.key,xt=new Promise(function(ct,Ft){Se.setState(function(Pn){var mn=Pn.loadedKeys,Jt=mn===void 0?[]:mn,gn=Pn.loadingKeys,Tn=gn===void 0?[]:gn,bt=Se.props,_t=bt.loadData,$t=bt.onLoad;if(!_t||Jt.indexOf(wt)!==-1||Tn.indexOf(wt)!==-1)return null;var Dn=_t(tt);return Dn.then(function(){var ii=Se.state.loadedKeys,pi=(0,nn.L0)(ii,wt);$t==null||$t(pi,{event:"load",node:tt}),Se.setUncontrolledState({loadedKeys:pi}),Se.setState(function(fi){return{loadingKeys:(0,nn._5)(fi.loadingKeys,wt)}}),ct()}).catch(function(ii){if(Se.setState(function(fi){return{loadingKeys:(0,nn._5)(fi.loadingKeys,wt)}}),Se.loadingRetryTimes[wt]=(Se.loadingRetryTimes[wt]||0)+1,Se.loadingRetryTimes[wt]>=Yn){var pi=Se.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Se.setUncontrolledState({loadedKeys:(0,nn.L0)(pi,wt)}),ct()}Ft(ii)}),{loadingKeys:(0,nn.L0)(Tn,wt)}})});return xt.catch(function(){}),xt},Se.onNodeMouseEnter=function(tt,wt){var xt=Se.props.onMouseEnter;xt==null||xt({event:tt,node:wt})},Se.onNodeMouseLeave=function(tt,wt){var xt=Se.props.onMouseLeave;xt==null||xt({event:tt,node:wt})},Se.onNodeContextMenu=function(tt,wt){var xt=Se.props.onRightClick;xt&&(tt.preventDefault(),xt({event:tt,node:wt}))},Se.onFocus=function(){var tt=Se.props.onFocus;Se.setState({focused:!0});for(var wt=arguments.length,xt=new Array(wt),ct=0;ct<wt;ct++)xt[ct]=arguments[ct];tt==null||tt.apply(void 0,xt)},Se.onBlur=function(){var tt=Se.props.onBlur;Se.setState({focused:!1}),Se.onActiveChange(null);for(var wt=arguments.length,xt=new Array(wt),ct=0;ct<wt;ct++)xt[ct]=arguments[ct];tt==null||tt.apply(void 0,xt)},Se.getTreeNodeRequiredProps=function(){var tt=Se.state,wt=tt.expandedKeys,xt=tt.selectedKeys,ct=tt.loadedKeys,Ft=tt.loadingKeys,Pn=tt.checkedKeys,mn=tt.halfCheckedKeys,Jt=tt.dragOverNodeKey,gn=tt.dropPosition,Tn=tt.keyEntities;return{expandedKeys:wt||[],selectedKeys:xt||[],loadedKeys:ct||[],loadingKeys:Ft||[],checkedKeys:Pn||[],halfCheckedKeys:mn||[],dragOverNodeKey:Jt,dropPosition:gn,keyEntities:Tn}},Se.setExpandedKeys=function(tt){var wt=Se.state,xt=wt.treeData,ct=wt.fieldNames,Ft=(0,Ve.oH)(xt,tt,ct);Se.setUncontrolledState({expandedKeys:tt,flattenNodes:Ft},!0)},Se.onNodeExpand=function(tt,wt){var xt=Se.state.expandedKeys,ct=Se.state,Ft=ct.listChanging,Pn=ct.fieldNames,mn=Se.props,Jt=mn.onExpand,gn=mn.loadData,Tn=wt.expanded,bt=wt[Pn.key];if(!Ft){var _t=xt.indexOf(bt),$t=!Tn;if((0,te.ZP)(Tn&&_t!==-1||!Tn&&_t===-1,"Expand state not sync with index check"),$t?xt=(0,nn.L0)(xt,bt):xt=(0,nn._5)(xt,bt),Se.setExpandedKeys(xt),Jt==null||Jt(xt,{node:wt,expanded:$t,nativeEvent:tt.nativeEvent}),$t&&gn){var Dn=Se.onNodeLoad(wt);Dn&&Dn.then(function(){var ii=(0,Ve.oH)(Se.state.treeData,xt,Pn);Se.setUncontrolledState({flattenNodes:ii})}).catch(function(){var ii=Se.state.expandedKeys,pi=(0,nn._5)(ii,bt);Se.setExpandedKeys(pi)})}}},Se.onListChangeStart=function(){Se.setUncontrolledState({listChanging:!0})},Se.onListChangeEnd=function(){setTimeout(function(){Se.setUncontrolledState({listChanging:!1})})},Se.onActiveChange=function(tt){var wt=Se.state.activeKey,xt=Se.props.onActiveChange;wt!==tt&&(Se.setState({activeKey:tt}),tt!==null&&Se.scrollTo({key:tt}),xt==null||xt(tt))},Se.getActiveItem=function(){var tt=Se.state,wt=tt.activeKey,xt=tt.flattenNodes;return wt===null?null:xt.find(function(ct){var Ft=ct.key;return Ft===wt})||null},Se.offsetActiveKey=function(tt){var wt=Se.state,xt=wt.flattenNodes,ct=wt.activeKey,Ft=xt.findIndex(function(Jt){var gn=Jt.key;return gn===ct});Ft===-1&&tt<0&&(Ft=xt.length),Ft=(Ft+tt+xt.length)%xt.length;var Pn=xt[Ft];if(Pn){var mn=Pn.key;Se.onActiveChange(mn)}else Se.onActiveChange(null)},Se.onKeyDown=function(tt){var wt=Se.state,xt=wt.activeKey,ct=wt.expandedKeys,Ft=wt.checkedKeys,Pn=wt.fieldNames,mn=Se.props,Jt=mn.onKeyDown,gn=mn.checkable,Tn=mn.selectable;switch(tt.which){case Ct.Z.UP:{Se.offsetActiveKey(-1),tt.preventDefault();break}case Ct.Z.DOWN:{Se.offsetActiveKey(1),tt.preventDefault();break}}var bt=Se.getActiveItem();if(bt&&bt.data){var _t=Se.getTreeNodeRequiredProps(),$t=bt.data.isLeaf===!1||!!(bt.data[Pn.children]||[]).length,Dn=(0,Ve.F)((0,kt.Z)((0,kt.Z)({},(0,Ve.H8)(xt,_t)),{},{data:bt.data,active:!0}));switch(tt.which){case Ct.Z.LEFT:{$t&&ct.includes(xt)?Se.onNodeExpand({},Dn):bt.parent&&Se.onActiveChange(bt.parent.key),tt.preventDefault();break}case Ct.Z.RIGHT:{$t&&!ct.includes(xt)?Se.onNodeExpand({},Dn):bt.children&&bt.children.length&&Se.onActiveChange(bt.children[0].key),tt.preventDefault();break}case Ct.Z.ENTER:case Ct.Z.SPACE:{gn&&!Dn.disabled&&Dn.checkable!==!1&&!Dn.disableCheckbox?Se.onNodeCheck({},Dn,!Ft.includes(xt)):!gn&&Tn&&!Dn.disabled&&Dn.selectable!==!1&&Se.onNodeSelect({},Dn);break}}}Jt==null||Jt(tt)},Se.setUncontrolledState=function(tt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Se.destroyed){var ct=!1,Ft=!0,Pn={};Object.keys(tt).forEach(function(mn){if(mn in Se.props){Ft=!1;return}ct=!0,Pn[mn]=tt[mn]}),ct&&(!wt||Ft)&&Se.setState((0,kt.Z)((0,kt.Z)({},Pn),xt))}},Se.scrollTo=function(tt){Se.listRef.current.scrollTo(tt)},Se}return(0,Te.Z)(Be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var lt=this.props.activeKey;lt!==void 0&<!==this.state.activeKey&&(this.setState({activeKey:lt}),lt!==null&&this.scrollTo({key:lt}))}},{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 lt,Et=this.state,Xe=Et.focused,tt=Et.flattenNodes,wt=Et.keyEntities,xt=Et.draggingNodeKey,ct=Et.activeKey,Ft=Et.dropLevelOffset,Pn=Et.dropContainerKey,mn=Et.dropTargetKey,Jt=Et.dropPosition,gn=Et.dragOverNodeKey,Tn=Et.indent,bt=this.props,_t=bt.prefixCls,$t=bt.className,Dn=bt.style,ii=bt.showLine,pi=bt.focusable,fi=bt.tabIndex,wi=fi===void 0?0:fi,Vi=bt.selectable,vr=bt.showIcon,cr=bt.icon,pr=bt.switcherIcon,_r=bt.draggable,Ir=bt.checkable,$i=bt.checkStrictly,eo=bt.disabled,kr=bt.motion,Ee=bt.loadData,si=bt.filterTreeNode,yi=bt.height,or=bt.itemHeight,xr=bt.virtual,qi=bt.titleRender,Qr=bt.dropIndicatorRender,mo=bt.onContextMenu,zr=bt.onScroll,on=bt.direction,Yt=bt.rootClassName,Qe=bt.rootStyle,un=(0,Fe.Z)(this.props,{aria:!0,data:!0}),In;return _r&&((0,at.Z)(_r)==="object"?In=_r:typeof _r=="function"?In={nodeDraggable:_r}:In={}),ne.createElement(he.k.Provider,{value:{prefixCls:_t,selectable:Vi,showIcon:vr,icon:cr,switcherIcon:pr,draggable:In,draggingNodeKey:xt,checkable:Ir,checkStrictly:$i,disabled:eo,keyEntities:wt,dropLevelOffset:Ft,dropContainerKey:Pn,dropTargetKey:mn,dropPosition:Jt,dragOverNodeKey:gn,indent:Tn,direction:on,dropIndicatorRender:Qr,loadData:Ee,filterTreeNode:si,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}},ne.createElement("div",{role:"tree",className:gt()(_t,$t,Yt,(lt={},(0,Re.Z)(lt,"".concat(_t,"-show-line"),ii),(0,Re.Z)(lt,"".concat(_t,"-focused"),Xe),(0,Re.Z)(lt,"".concat(_t,"-active-focused"),ct!==null),lt)),style:Qe},ne.createElement(Kn,(0,be.Z)({ref:this.listRef,prefixCls:_t,style:Dn,data:tt,disabled:eo,selectable:Vi,checkable:!!Ir,motion:kr,dragging:xt!==null,height:yi,itemHeight:or,virtual:xr,focusable:pi,focused:Xe,tabIndex:wi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:mo,onScroll:zr},this.getTreeNodeRequiredProps(),un))))}}],[{key:"getDerivedStateFromProps",value:function(lt,Et){var Xe=Et.prevProps,tt={prevProps:lt};function wt(pi){return!Xe&&pi in lt||Xe&&Xe[pi]!==lt[pi]}var xt,ct=Et.fieldNames;if(wt("fieldNames")&&(ct=(0,Ve.w$)(lt.fieldNames),tt.fieldNames=ct),wt("treeData")?xt=lt.treeData:wt("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xt=(0,Ve.zn)(lt.children)),xt){tt.treeData=xt;var Ft=(0,Ve.I8)(xt,{fieldNames:ct});tt.keyEntities=(0,kt.Z)((0,Re.Z)({},St,en),Ft.keyEntities)}var Pn=tt.keyEntities||Et.keyEntities;if(wt("expandedKeys")||Xe&&wt("autoExpandParent"))tt.expandedKeys=lt.autoExpandParent||!Xe&<.defaultExpandParent?(0,nn.r7)(lt.expandedKeys,Pn):lt.expandedKeys;else if(!Xe&<.defaultExpandAll){var mn=(0,kt.Z)({},Pn);delete mn[St],tt.expandedKeys=Object.keys(mn).map(function(pi){return mn[pi].key})}else!Xe&<.defaultExpandedKeys&&(tt.expandedKeys=lt.autoExpandParent||lt.defaultExpandParent?(0,nn.r7)(lt.defaultExpandedKeys,Pn):lt.defaultExpandedKeys);if(tt.expandedKeys||delete tt.expandedKeys,xt||tt.expandedKeys){var Jt=(0,Ve.oH)(xt||Et.treeData,tt.expandedKeys||Et.expandedKeys,ct);tt.flattenNodes=Jt}if(lt.selectable&&(wt("selectedKeys")?tt.selectedKeys=(0,nn.BT)(lt.selectedKeys,lt):!Xe&<.defaultSelectedKeys&&(tt.selectedKeys=(0,nn.BT)(lt.defaultSelectedKeys,lt))),lt.checkable){var gn;if(wt("checkedKeys")?gn=(0,nn.E6)(lt.checkedKeys)||{}:!Xe&<.defaultCheckedKeys?gn=(0,nn.E6)(lt.defaultCheckedKeys)||{}:xt&&(gn=(0,nn.E6)(lt.checkedKeys)||{checkedKeys:Et.checkedKeys,halfCheckedKeys:Et.halfCheckedKeys}),gn){var Tn=gn,bt=Tn.checkedKeys,_t=bt===void 0?[]:bt,$t=Tn.halfCheckedKeys,Dn=$t===void 0?[]:$t;if(!lt.checkStrictly){var ii=(0,Rn.S)(_t,!0,Pn);_t=ii.checkedKeys,Dn=ii.halfCheckedKeys}tt.checkedKeys=_t,tt.halfCheckedKeys=Dn}}return wt("loadedKeys")&&(tt.loadedKeys=lt.loadedKeys),tt}}]),Be}(ne.Component);ni.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:se,allowDrop:function(){return!0},expandAction:!1},ni.TreeNode=He.Z;var je=ni,Me=je},35654:function(On,xn,ye){"use strict";ye.d(xn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return rt},OM:function(){return te},_5:function(){return Pt},r7:function(){return me},wA:function(){return gt},yx:function(){return It}});var be=ye(80702),Re=ye(62853),at=ye(48736),kt=ye(59301),Je=ye(39417),it=ye(67841),Te=ye(71430),Tt=null;function Pt(Pe,ke){if(!Pe)return[];var we=Pe.slice(),Oe=we.indexOf(ke);return Oe>=0&&we.splice(Oe,1),we}function rt(Pe,ke){var we=(Pe||[]).slice();return we.indexOf(ke)===-1&&we.push(ke),we}function It(Pe){return Pe.split("-")}function gt(Pe,ke){var we=[],Oe=(0,it.Z)(ke,Pe);function He(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];We.forEach(function(Ve){var ut=Ve.key,Ke=Ve.children;we.push(ut),He(Ke)})}return He(Oe.children),we}function Ct(Pe){if(Pe.parent){var ke=It(Pe.pos);return Number(ke[ke.length-1])===Pe.parent.children.length-1}return!1}function Fe(Pe){var ke=It(Pe.pos);return Number(ke[ke.length-1])===0}function te(Pe,ke,we,Oe,He,We,Ve,ut,Ke,Wt){var pt,Ut=Pe.clientX,Ht=Pe.clientY,jt=Pe.target.getBoundingClientRect(),Xt=jt.top,Nn=jt.height,St=(Wt==="rtl"?-1:1)*(((He==null?void 0:He.x)||0)-Ut),Ge=(St-12)/Oe,en=(0,it.Z)(ut,we.props.eventKey);if(Ht<Xt+Nn/2){var Hn=Ve.findIndex(function(Me){return Me.key===en.key}),_n=Hn<=0?0:Hn-1,Bt=Ve[_n].key;en=(0,it.Z)(ut,Bt)}var rn=en.key,cn=en,Kn=en.key,nn=0,Rn=0;if(!Ke.includes(rn))for(var vt=0;vt<Ge&&Ct(en);vt+=1)en=en.parent,Rn+=1;var Yn=ke.props.data,ni=en.node,je=!0;return Fe(en)&&en.level===0&&Ht<Xt+Nn/2&&We({dragNode:Yn,dropNode:ni,dropPosition:-1})&&en.key===we.props.eventKey?nn=-1:(cn.children||[]).length&&Ke.includes(Kn)?We({dragNode:Yn,dropNode:ni,dropPosition:0})?nn=0:je=!1:Rn===0?Ge>-1.5?We({dragNode:Yn,dropNode:ni,dropPosition:1})?nn=1:je=!1:We({dragNode:Yn,dropNode:ni,dropPosition:0})?nn=0:We({dragNode:Yn,dropNode:ni,dropPosition:1})?nn=1:je=!1:We({dragNode:Yn,dropNode:ni,dropPosition:1})?nn=1:je=!1,{dropPosition:nn,dropLevelOffset:Rn,dropTargetKey:en.key,dropTargetPos:en.pos,dragOverNodeKey:Kn,dropContainerKey:nn===0?null:((pt=en.parent)===null||pt===void 0?void 0:pt.key)||null,dropAllowed:je}}function ne(Pe,ke){if(Pe){var we=ke.multiple;return we?Pe.slice():Pe.length?[Pe[0]]:Pe}}var he=function(ke){return ke};function se(Pe,ke){if(!Pe)return[];var we=ke||{},Oe=we.processProps,He=Oe===void 0?he:Oe,We=Array.isArray(Pe)?Pe:[Pe];return We.map(function(Ve){var ut=Ve.children,Ke=_objectWithoutProperties(Ve,Tt),Wt=se(ut,ke);return React.createElement(TreeNode,_extends({key:Ke.key},He(Ke)),Wt)})}function ge(Pe){if(!Pe)return null;var ke;if(Array.isArray(Pe))ke={checkedKeys:Pe,halfCheckedKeys:void 0};else if((0,Re.Z)(Pe)==="object")ke={checkedKeys:Pe.checked||void 0,halfCheckedKeys:Pe.halfChecked||void 0};else return(0,at.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function me(Pe,ke){var we=new Set;function Oe(He){if(!we.has(He)){var We=(0,it.Z)(ke,He);if(We){we.add(He);var Ve=We.parent,ut=We.node;ut.disabled||Ve&&Oe(Ve.key)}}}return(Pe||[]).forEach(function(He){Oe(He)}),(0,be.Z)(we)}},90782:function(On,xn,ye){"use strict";ye.d(xn,{S:function(){return Te}});var be=ye(48736),Re=ye(67841);function at(Tt,Pt){var rt=new Set;return Tt.forEach(function(It){Pt.has(It)||rt.add(It)}),rt}function kt(Tt){var Pt=Tt||{},rt=Pt.disabled,It=Pt.disableCheckbox,gt=Pt.checkable;return!!(rt||It)||gt===!1}function Je(Tt,Pt,rt,It){for(var gt=new Set(Tt),Ct=new Set,Fe=0;Fe<=rt;Fe+=1){var te=Pt.get(Fe)||new Set;te.forEach(function(ge){var me=ge.key,Pe=ge.node,ke=ge.children,we=ke===void 0?[]:ke;gt.has(me)&&!It(Pe)&&we.filter(function(Oe){return!It(Oe.node)}).forEach(function(Oe){gt.add(Oe.key)})})}for(var ne=new Set,he=rt;he>=0;he-=1){var se=Pt.get(he)||new Set;se.forEach(function(ge){var me=ge.parent,Pe=ge.node;if(!(It(Pe)||!ge.parent||ne.has(ge.parent.key))){if(It(ge.parent.node)){ne.add(me.key);return}var ke=!0,we=!1;(me.children||[]).filter(function(Oe){return!It(Oe.node)}).forEach(function(Oe){var He=Oe.key,We=gt.has(He);ke&&!We&&(ke=!1),!we&&(We||Ct.has(He))&&(we=!0)}),ke&>.add(me.key),we&&Ct.add(me.key),ne.add(me.key)}})}return{checkedKeys:Array.from(gt),halfCheckedKeys:Array.from(at(Ct,gt))}}function it(Tt,Pt,rt,It,gt){for(var Ct=new Set(Tt),Fe=new Set(Pt),te=0;te<=It;te+=1){var ne=rt.get(te)||new Set;ne.forEach(function(me){var Pe=me.key,ke=me.node,we=me.children,Oe=we===void 0?[]:we;!Ct.has(Pe)&&!Fe.has(Pe)&&!gt(ke)&&Oe.filter(function(He){return!gt(He.node)}).forEach(function(He){Ct.delete(He.key)})})}Fe=new Set;for(var he=new Set,se=It;se>=0;se-=1){var ge=rt.get(se)||new Set;ge.forEach(function(me){var Pe=me.parent,ke=me.node;if(!(gt(ke)||!me.parent||he.has(me.parent.key))){if(gt(me.parent.node)){he.add(Pe.key);return}var we=!0,Oe=!1;(Pe.children||[]).filter(function(He){return!gt(He.node)}).forEach(function(He){var We=He.key,Ve=Ct.has(We);we&&!Ve&&(we=!1),!Oe&&(Ve||Fe.has(We))&&(Oe=!0)}),we||Ct.delete(Pe.key),Oe&&Fe.add(Pe.key),he.add(Pe.key)}})}return{checkedKeys:Array.from(Ct),halfCheckedKeys:Array.from(at(Fe,Ct))}}function Te(Tt,Pt,rt,It){var gt=[],Ct;It?Ct=It:Ct=kt;var Fe=new Set(Tt.filter(function(se){var ge=!!(0,Re.Z)(rt,se);return ge||gt.push(se),ge})),te=new Map,ne=0;Object.keys(rt).forEach(function(se){var ge=rt[se],me=ge.level,Pe=te.get(me);Pe||(Pe=new Set,te.set(me,Pe)),Pe.add(ge),ne=Math.max(ne,me)}),(0,be.ZP)(!gt.length,"Tree missing follow keys: ".concat(gt.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return Pt===!0?he=Je(Fe,te,ne,Ct):he=it(Fe,Pt.halfCheckedKeys,te,ne,Ct),he}},67841:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return be}});function be(Re,at){return Re[at]}},71430:function(On,xn,ye){"use strict";ye.d(xn,{F:function(){return me},H8:function(){return ge},I8:function(){return se},km:function(){return gt},oH:function(){return ne},w$:function(){return Ct},zn:function(){return te}});var be=ye(62853),Re=ye(80702),at=ye(77321),kt=ye(74416),Je=ye(11592),it=ye(2738),Te=ye(48736),Tt=ye(67841),Pt=["children"];function rt(Pe,ke){return"".concat(Pe,"-").concat(ke)}function It(Pe){return Pe&&Pe.type&&Pe.type.isTreeNode}function gt(Pe,ke){return Pe!=null?Pe:ke}function Ct(Pe){var ke=Pe||{},we=ke.title,Oe=ke._title,He=ke.key,We=ke.children,Ve=we||"title";return{title:Ve,_title:Oe||[Ve],key:He||"key",children:We||"children"}}function Fe(Pe,ke){var we=new Map;function Oe(He){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(He||[]).forEach(function(Ve){var ut=Ve[ke.key],Ke=Ve[ke.children];warning(ut!=null,"Tree node must have a certain key: [".concat(We).concat(ut,"]"));var Wt=String(ut);warning(!we.has(Wt)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(Wt)),we.set(Wt,!0),Oe(Ke,"".concat(We).concat(Wt," > "))})}Oe(Pe)}function te(Pe){function ke(we){var Oe=(0,Je.Z)(we);return Oe.map(function(He){if(!It(He))return(0,Te.ZP)(!He,"Tree/TreeNode can only accept TreeNode as children."),null;var We=He.key,Ve=He.props,ut=Ve.children,Ke=(0,kt.Z)(Ve,Pt),Wt=(0,at.Z)({key:We},Ke),pt=ke(ut);return pt.length&&(Wt.children=pt),Wt}).filter(function(He){return He})}return ke(Pe)}function ne(Pe,ke,we){var Oe=Ct(we),He=Oe._title,We=Oe.key,Ve=Oe.children,ut=new Set(ke===!0?[]:ke),Ke=[];function Wt(pt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return pt.map(function(Ht,jt){for(var Xt=rt(Ut?Ut.pos:"0",jt),Nn=gt(Ht[We],Xt),St,Ge=0;Ge<He.length;Ge+=1){var en=He[Ge];if(Ht[en]!==void 0){St=Ht[en];break}}var Hn=(0,at.Z)((0,at.Z)({},(0,it.Z)(Ht,[].concat((0,Re.Z)(He),[We,Ve]))),{},{title:St,key:Nn,parent:Ut,pos:Xt,children:null,data:Ht,isStart:[].concat((0,Re.Z)(Ut?Ut.isStart:[]),[jt===0]),isEnd:[].concat((0,Re.Z)(Ut?Ut.isEnd:[]),[jt===pt.length-1])});return Ke.push(Hn),ke===!0||ut.has(Nn)?Hn.children=Wt(Ht[Ve]||[],Hn):Hn.children=[],Hn})}return Wt(Pe),Ke}function he(Pe,ke,we){var Oe={};(0,be.Z)(we)==="object"?Oe=we:Oe={externalGetKey:we},Oe=Oe||{};var He=Oe,We=He.childrenPropName,Ve=He.externalGetKey,ut=He.fieldNames,Ke=Ct(ut),Wt=Ke.key,pt=Ke.children,Ut=We||pt,Ht;Ve?typeof Ve=="string"?Ht=function(Nn){return Nn[Ve]}:typeof Ve=="function"&&(Ht=function(Nn){return Ve(Nn)}):Ht=function(Nn,St){return gt(Nn[Wt],St)};function jt(Xt,Nn,St,Ge){var en=Xt?Xt[Ut]:Pe,Hn=Xt?rt(St.pos,Nn):"0",_n=Xt?[].concat((0,Re.Z)(Ge),[Xt]):[];if(Xt){var Bt=Ht(Xt,Hn),rn={node:Xt,index:Nn,pos:Hn,key:Bt,parentPos:St.node?St.pos:null,level:St.level+1,nodes:_n};ke(rn)}en&&en.forEach(function(cn,Kn){jt(cn,Kn,{node:Xt,pos:Hn,level:St?St.level+1:-1},_n)})}jt(null)}function se(Pe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=ke.initWrapper,Oe=ke.processEntity,He=ke.onProcessFinished,We=ke.externalGetKey,Ve=ke.childrenPropName,ut=ke.fieldNames,Ke=arguments.length>2?arguments[2]:void 0,Wt=We||Ke,pt={},Ut={},Ht={posEntities:pt,keyEntities:Ut};return we&&(Ht=we(Ht)||Ht),he(Pe,function(jt){var Xt=jt.node,Nn=jt.index,St=jt.pos,Ge=jt.key,en=jt.parentPos,Hn=jt.level,_n=jt.nodes,Bt={node:Xt,nodes:_n,index:Nn,key:Ge,pos:St,level:Hn},rn=gt(Ge,St);pt[St]=Bt,Ut[rn]=Bt,Bt.parent=pt[en],Bt.parent&&(Bt.parent.children=Bt.parent.children||[],Bt.parent.children.push(Bt)),Oe&&Oe(Bt,Ht)},{externalGetKey:Wt,childrenPropName:Ve,fieldNames:ut}),He&&He(Ht),Ht}function ge(Pe,ke){var we=ke.expandedKeys,Oe=ke.selectedKeys,He=ke.loadedKeys,We=ke.loadingKeys,Ve=ke.checkedKeys,ut=ke.halfCheckedKeys,Ke=ke.dragOverNodeKey,Wt=ke.dropPosition,pt=ke.keyEntities,Ut=(0,Tt.Z)(pt,Pe),Ht={eventKey:Pe,expanded:we.indexOf(Pe)!==-1,selected:Oe.indexOf(Pe)!==-1,loaded:He.indexOf(Pe)!==-1,loading:We.indexOf(Pe)!==-1,checked:Ve.indexOf(Pe)!==-1,halfChecked:ut.indexOf(Pe)!==-1,pos:String(Ut?Ut.pos:""),dragOver:Ke===Pe&&Wt===0,dragOverGapTop:Ke===Pe&&Wt===-1,dragOverGapBottom:Ke===Pe&&Wt===1};return Ht}function me(Pe){var ke=Pe.data,we=Pe.expanded,Oe=Pe.selected,He=Pe.checked,We=Pe.loaded,Ve=Pe.loading,ut=Pe.halfChecked,Ke=Pe.dragOver,Wt=Pe.dragOverGapTop,pt=Pe.dragOverGapBottom,Ut=Pe.pos,Ht=Pe.active,jt=Pe.eventKey,Xt=(0,at.Z)((0,at.Z)({},ke),{},{expanded:we,selected:Oe,checked:He,loaded:We,loading:Ve,halfChecked:ut,dragOver:Ke,dragOverGapTop:Wt,dragOverGapBottom:pt,pos:Ut,active:Ht,key:jt});return"props"in Xt||Object.defineProperty(Xt,"props",{get:function(){return(0,Te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pe}}),Xt}},8224:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Re}});var be=ye(4676);function Re(at,kt,Je,it){var Te=be.unstable_batchedUpdates?function(Pt){be.unstable_batchedUpdates(Je,Pt)}:Je;return at!=null&&at.addEventListener&&at.addEventListener(kt,Te,it),{remove:function(){at!=null&&at.removeEventListener&&at.removeEventListener(kt,Te,it)}}}},55468:function(On,xn,ye){"use strict";ye.d(xn,{g1:function(){return It},os:function(){return Ct}});var be=/margin|padding|width|height|max|min|offset/,Re={left:!0,top:!0},at={cssFloat:1,styleFloat:1,float:1};function kt(Fe){return Fe.nodeType===1?Fe.ownerDocument.defaultView.getComputedStyle(Fe,null):{}}function Je(Fe,te,ne){if(te=te.toLowerCase(),ne==="auto"){if(te==="height")return Fe.offsetHeight;if(te==="width")return Fe.offsetWidth}return te in Re||(Re[te]=be.test(te)),Re[te]?parseFloat(ne)||0:ne}function it(Fe,te){var ne=arguments.length,he=kt(Fe);return te=at[te]?"cssFloat"in Fe.style?"cssFloat":"styleFloat":te,ne===1?he:Je(Fe,te,he[te]||Fe.style[te])}function Te(Fe,te,ne){var he=arguments.length;if(te=at[te]?"cssFloat"in Fe.style?"cssFloat":"styleFloat":te,he===3)return typeof ne=="number"&&be.test(te)&&(ne="".concat(ne,"px")),Fe.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&Te(Fe,se,te[se]);return kt(Fe)}function Tt(Fe){return Fe===document.body?document.documentElement.clientWidth:Fe.offsetWidth}function Pt(Fe){return Fe===document.body?window.innerHeight||document.documentElement.clientHeight:Fe.offsetHeight}function rt(){var Fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Fe,height:te}}function It(){var Fe=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Fe,height:te}}function gt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ct(Fe){var te=Fe.getBoundingClientRect(),ne=document.documentElement;return{left:te.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24514:function(On,xn,ye){"use strict";ye.d(xn,{G:function(){return kt}});var be=ye(47273),Re=function(it){if((0,be.Z)()&&window.document.documentElement){var Te=Array.isArray(it)?it:[it],Tt=window.document.documentElement;return Te.some(function(Pt){return Pt in Tt.style})}return!1},at=function(it,Te){if(!Re(it))return!1;var Tt=document.createElement("div"),Pt=Tt.style[it];return Tt.style[it]=Te,Tt.style[it]!==Pt};function kt(Je,it){return!Array.isArray(Je)&&it!==void 0?at(Je,it):Re(Je)}},45680:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return ni}});var be=ye(72308),Re=ye(62853),at=ye(77321),kt=ye(49618),Je=ye(52487),it=ye(74416),Te=ye(92310),Tt=ye.n(Te),Pt=ye(29301),rt=ye(70425),It=ye(34280),gt=ye(59301),Ct=ye(4676),Fe=gt.forwardRef(function(je,Me){var xe=je.height,Ne=je.offsetY,Be=je.offsetX,Se=je.children,lt=je.prefixCls,Et=je.onInnerResize,Xe=je.innerProps,tt=je.rtl,wt=je.extra,xt={},ct={display:"flex",flexDirection:"column"};return Ne!==void 0&&(xt={height:xe,position:"relative",overflow:"hidden"},ct=(0,at.Z)((0,at.Z)({},ct),{},(0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)({transform:"translateY(".concat(Ne,"px)")},tt?"marginRight":"marginLeft",-Be),"position","absolute"),"left",0),"right",0),"top",0))),gt.createElement("div",{style:xt},gt.createElement(Pt.Z,{onResize:function(Pn){var mn=Pn.offsetHeight;mn&&Et&&Et()}},gt.createElement("div",(0,be.Z)({style:ct,className:Tt()((0,kt.Z)({},"".concat(lt,"-holder-inner"),lt)),ref:Me},Xe),Se,wt)))});Fe.displayName="Filler";var te=Fe;function ne(je){var Me=je.children,xe=je.setRef,Ne=gt.useCallback(function(Be){xe(Be)},[]);return gt.cloneElement(Me,{ref:Ne})}function he(je,Me,xe,Ne,Be,Se,lt,Et){var Xe=Et.getKey;return je.slice(Me,xe+1).map(function(tt,wt){var xt=Me+wt,ct=lt(tt,xt,{style:{width:Ne},offsetX:Be}),Ft=Xe(tt);return gt.createElement(ne,{key:Ft,setRef:function(mn){return Se(tt,mn)}},ct)})}function se(je,Me,xe,Ne){var Be=xe-je,Se=Me-xe,lt=Math.min(Be,Se)*2;if(Ne<=lt){var Et=Math.floor(Ne/2);return Ne%2?xe+Et+1:xe-Et}return Be>Se?xe-(Ne-Se):xe+(Ne-Be)}function ge(je,Me,xe){var Ne=je.length,Be=Me.length,Se,lt;if(Ne===0&&Be===0)return null;Ne<Be?(Se=je,lt=Me):(Se=Me,lt=je);var Et={__EMPTY_ITEM__:!0};function Xe(Pn){return Pn!==void 0?xe(Pn):Et}for(var tt=null,wt=Math.abs(Ne-Be)!==1,xt=0;xt<lt.length;xt+=1){var ct=Xe(Se[xt]),Ft=Xe(lt[xt]);if(ct!==Ft){tt=xt,wt=wt||ct!==Xe(lt[xt+1]);break}}return tt===null?null:{index:tt,multiple:wt}}function me(je,Me,xe){var Ne=gt.useState(je),Be=(0,Je.Z)(Ne,2),Se=Be[0],lt=Be[1],Et=gt.useState(null),Xe=(0,Je.Z)(Et,2),tt=Xe[0],wt=Xe[1];return gt.useEffect(function(){var xt=ge(Se||[],je||[],Me);(xt==null?void 0:xt.index)!==void 0&&(xe==null||xe(xt.index),wt(je[xt.index])),lt(je)},[je]),[tt]}var Pe=ye(16089),ke=(typeof navigator=="undefined"?"undefined":(0,Re.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),we=ke,Oe=function(je,Me,xe,Ne){var Be=(0,gt.useRef)(!1),Se=(0,gt.useRef)(null);function lt(){clearTimeout(Se.current),Be.current=!0,Se.current=setTimeout(function(){Be.current=!1},50)}var Et=(0,gt.useRef)({top:je,bottom:Me,left:xe,right:Ne});return Et.current.top=je,Et.current.bottom=Me,Et.current.left=xe,Et.current.right=Ne,function(Xe,tt){var wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=Xe?tt<0&&Et.current.left||tt>0&&Et.current.right:tt<0&&Et.current.top||tt>0&&Et.current.bottom;return wt&&xt?(clearTimeout(Se.current),Be.current=!1):(!xt||Be.current)&<(),!Be.current&&xt}};function He(je,Me,xe,Ne,Be,Se,lt){var Et=(0,gt.useRef)(0),Xe=(0,gt.useRef)(null),tt=(0,gt.useRef)(null),wt=(0,gt.useRef)(!1),xt=Oe(Me,xe,Ne,Be);function ct(Tn,bt){if(Pe.Z.cancel(Xe.current),!xt(!1,bt)){var _t=Tn;if(!_t._virtualHandled)_t._virtualHandled=!0;else return;Et.current+=bt,tt.current=bt,we||_t.preventDefault(),Xe.current=(0,Pe.Z)(function(){var $t=wt.current?10:1;lt(Et.current*$t,!1),Et.current=0})}}function Ft(Tn,bt){lt(bt,!0),we||Tn.preventDefault()}var Pn=(0,gt.useRef)(null),mn=(0,gt.useRef)(null);function Jt(Tn){if(je){Pe.Z.cancel(mn.current),mn.current=(0,Pe.Z)(function(){Pn.current=null},2);var bt=Tn.deltaX,_t=Tn.deltaY,$t=Tn.shiftKey,Dn=bt,ii=_t;(Pn.current==="sx"||!Pn.current&&$t&&_t&&!bt)&&(Dn=_t,ii=0,Pn.current="sx");var pi=Math.abs(Dn),fi=Math.abs(ii);Pn.current===null&&(Pn.current=Se&&pi>fi?"x":"y"),Pn.current==="y"?ct(Tn,ii):Ft(Tn,Dn)}}function gn(Tn){je&&(wt.current=Tn.detail===tt.current)}return[Jt,gn]}function We(je,Me,xe,Ne){var Be=gt.useMemo(function(){return[new Map,[]]},[je,xe.id,Ne]),Se=(0,Je.Z)(Be,2),lt=Se[0],Et=Se[1],Xe=function(wt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wt,ct=lt.get(wt),Ft=lt.get(xt);if(ct===void 0||Ft===void 0)for(var Pn=je.length,mn=Et.length;mn<Pn;mn+=1){var Jt,gn=je[mn],Tn=Me(gn);lt.set(Tn,mn);var bt=(Jt=xe.get(Tn))!==null&&Jt!==void 0?Jt:Ne;if(Et[mn]=(Et[mn-1]||0)+bt,Tn===wt&&(ct=mn),Tn===xt&&(Ft=mn),ct!==void 0&&Ft!==void 0)break}return{top:Et[ct-1]||0,bottom:Et[Ft]}};return Xe}var Ve=ye(96949),ut=ye(55090),Ke=function(){function je(){(0,Ve.Z)(this,je),(0,kt.Z)(this,"maps",void 0),(0,kt.Z)(this,"id",0),(0,kt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ut.Z)(je,[{key:"set",value:function(xe,Ne){this.maps[xe]=Ne,this.id+=1,this.diffKeys.add(xe)}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),je}(),Wt=Ke;function pt(je){var Me=parseFloat(je);return isNaN(Me)?0:Me}function Ut(je,Me,xe){var Ne=gt.useState(0),Be=(0,Je.Z)(Ne,2),Se=Be[0],lt=Be[1],Et=(0,gt.useRef)(new Map),Xe=(0,gt.useRef)(new Wt),tt=(0,gt.useRef)(0);function wt(){tt.current+=1}function xt(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;wt();var Pn=function(){var gn=!1;Et.current.forEach(function(Tn,bt){if(Tn&&Tn.offsetParent){var _t=Tn.offsetHeight,$t=getComputedStyle(Tn),Dn=$t.marginTop,ii=$t.marginBottom,pi=pt(Dn),fi=pt(ii),wi=_t+pi+fi;Xe.current.get(bt)!==wi&&(Xe.current.set(bt,wi),gn=!0)}}),gn&<(function(Tn){return Tn+1})};if(Ft)Pn();else{tt.current+=1;var mn=tt.current;Promise.resolve().then(function(){mn===tt.current&&Pn()})}}function ct(Ft,Pn){var mn=je(Ft),Jt=Et.current.get(mn);Pn?(Et.current.set(mn,Pn),xt()):Et.current.delete(mn),!Jt!=!Pn&&(Pn?Me==null||Me(Ft):xe==null||xe(Ft))}return(0,gt.useEffect)(function(){return wt},[]),[ct,xt,Xe.current,Se]}var Ht=14/15;function jt(je,Me,xe){var Ne=(0,gt.useRef)(!1),Be=(0,gt.useRef)(0),Se=(0,gt.useRef)(0),lt=(0,gt.useRef)(null),Et=(0,gt.useRef)(null),Xe,tt=function(Ft){if(Ne.current){var Pn=Math.ceil(Ft.touches[0].pageX),mn=Math.ceil(Ft.touches[0].pageY),Jt=Be.current-Pn,gn=Se.current-mn,Tn=Math.abs(Jt)>Math.abs(gn);Tn?Be.current=Pn:Se.current=mn;var bt=xe(Tn,Tn?Jt:gn,!1,Ft);bt&&Ft.preventDefault(),clearInterval(Et.current),bt&&(Et.current=setInterval(function(){Tn?Jt*=Ht:gn*=Ht;var _t=Math.floor(Tn?Jt:gn);(!xe(Tn,_t,!0)||Math.abs(_t)<=.1)&&clearInterval(Et.current)},16))}},wt=function(){Ne.current=!1,Xe()},xt=function(Ft){Xe(),Ft.touches.length===1&&!Ne.current&&(Ne.current=!0,Be.current=Math.ceil(Ft.touches[0].pageX),Se.current=Math.ceil(Ft.touches[0].pageY),lt.current=Ft.target,lt.current.addEventListener("touchmove",tt,{passive:!1}),lt.current.addEventListener("touchend",wt,{passive:!0}))};Xe=function(){lt.current&&(lt.current.removeEventListener("touchmove",tt),lt.current.removeEventListener("touchend",wt))},(0,It.Z)(function(){return je&&Me.current.addEventListener("touchstart",xt,{passive:!0}),function(){var ct;(ct=Me.current)===null||ct===void 0||ct.removeEventListener("touchstart",xt),Xe(),clearInterval(Et.current)}},[je])}function Xt(je){return Math.floor(Math.pow(je,.5))}function Nn(je,Me){var xe="touches"in je?je.touches[0]:je;return xe[Me?"pageX":"pageY"]-window[Me?"scrollX":"scrollY"]}function St(je,Me,xe){gt.useEffect(function(){var Ne=Me.current;if(je&&Ne){var Be=!1,Se,lt,Et=function(){Pe.Z.cancel(Se)},Xe=function ct(){Et(),Se=(0,Pe.Z)(function(){xe(lt),ct()})},tt=function(Ft){if(!(Ft.target.draggable||Ft.button!==0)){var Pn=Ft;Pn._virtualHandled||(Pn._virtualHandled=!0,Be=!0)}},wt=function(){Be=!1,Et()},xt=function(Ft){if(Be){var Pn=Nn(Ft,!1),mn=Ne.getBoundingClientRect(),Jt=mn.top,gn=mn.bottom;if(Pn<=Jt){var Tn=Jt-Pn;lt=-Xt(Tn),Xe()}else if(Pn>=gn){var bt=Pn-gn;lt=Xt(bt),Xe()}else Et()}};return Ne.addEventListener("mousedown",tt),Ne.ownerDocument.addEventListener("mouseup",wt),Ne.ownerDocument.addEventListener("mousemove",xt),function(){Ne.removeEventListener("mousedown",tt),Ne.ownerDocument.removeEventListener("mouseup",wt),Ne.ownerDocument.removeEventListener("mousemove",xt),Et()}}},[je])}var Ge=10;function en(je,Me,xe,Ne,Be,Se,lt,Et){var Xe=gt.useRef(),tt=gt.useState(null),wt=(0,Je.Z)(tt,2),xt=wt[0],ct=wt[1];return(0,It.Z)(function(){if(xt&&xt.times<Ge){if(!je.current){ct(function(kr){return(0,at.Z)({},kr)});return}Se();var Ft=xt.targetAlign,Pn=xt.originAlign,mn=xt.index,Jt=xt.offset,gn=je.current.clientHeight,Tn=!1,bt=Ft,_t=null;if(gn){for(var $t=Ft||Pn,Dn=0,ii=0,pi=0,fi=Math.min(Me.length-1,mn),wi=0;wi<=fi;wi+=1){var Vi=Be(Me[wi]);ii=Dn;var vr=xe.get(Vi);pi=ii+(vr===void 0?Ne:vr),Dn=pi}for(var cr=$t==="top"?Jt:gn-Jt,pr=fi;pr>=0;pr-=1){var _r=Be(Me[pr]),Ir=xe.get(_r);if(Ir===void 0){Tn=!0;break}if(cr-=Ir,cr<=0)break}switch($t){case"top":_t=ii-Jt;break;case"bottom":_t=pi-gn+Jt;break;default:{var $i=je.current.scrollTop,eo=$i+gn;ii<$i?bt="top":pi>eo&&(bt="bottom")}}_t!==null&<(_t),_t!==xt.lastTop&&(Tn=!0)}Tn&&ct((0,at.Z)((0,at.Z)({},xt),{},{times:xt.times+1,targetAlign:bt,lastTop:_t}))}},[xt,je.current]),function(Ft){if(Ft==null){Et();return}if(Pe.Z.cancel(Xe.current),typeof Ft=="number")lt(Ft);else if(Ft&&(0,Re.Z)(Ft)==="object"){var Pn,mn=Ft.align;"index"in Ft?Pn=Ft.index:Pn=Me.findIndex(function(Tn){return Be(Tn)===Ft.key});var Jt=Ft.offset,gn=Jt===void 0?0:Jt;ct({times:0,index:Pn,offset:gn,originAlign:mn})}}}var Hn=gt.forwardRef(function(je,Me){var xe=je.prefixCls,Ne=je.rtl,Be=je.scrollOffset,Se=je.scrollRange,lt=je.onStartMove,Et=je.onStopMove,Xe=je.onScroll,tt=je.horizontal,wt=je.spinSize,xt=je.containerSize,ct=je.style,Ft=je.thumbStyle,Pn=je.showScrollBar,mn=gt.useState(!1),Jt=(0,Je.Z)(mn,2),gn=Jt[0],Tn=Jt[1],bt=gt.useState(null),_t=(0,Je.Z)(bt,2),$t=_t[0],Dn=_t[1],ii=gt.useState(null),pi=(0,Je.Z)(ii,2),fi=pi[0],wi=pi[1],Vi=!Ne,vr=gt.useRef(),cr=gt.useRef(),pr=gt.useState(Pn),_r=(0,Je.Z)(pr,2),Ir=_r[0],$i=_r[1],eo=gt.useRef(),kr=function(){Pn===!0||Pn===!1||(clearTimeout(eo.current),$i(!0),eo.current=setTimeout(function(){$i(!1)},3e3))},Ee=Se-xt||0,si=xt-wt||0,yi=gt.useMemo(function(){if(Be===0||Ee===0)return 0;var Qe=Be/Ee;return Qe*si},[Be,Ee,si]),or=function(un){un.stopPropagation(),un.preventDefault()},xr=gt.useRef({top:yi,dragging:gn,pageY:$t,startTop:fi});xr.current={top:yi,dragging:gn,pageY:$t,startTop:fi};var qi=function(un){Tn(!0),Dn(Nn(un,tt)),wi(xr.current.top),lt(),un.stopPropagation(),un.preventDefault()};gt.useEffect(function(){var Qe=function(ft){ft.preventDefault()},un=vr.current,In=cr.current;return un.addEventListener("touchstart",Qe,{passive:!1}),In.addEventListener("touchstart",qi,{passive:!1}),function(){un.removeEventListener("touchstart",Qe),In.removeEventListener("touchstart",qi)}},[]);var Qr=gt.useRef();Qr.current=Ee;var mo=gt.useRef();mo.current=si,gt.useEffect(function(){if(gn){var Qe,un=function(ft){var fn=xr.current,Vn=fn.dragging,bi=fn.pageY,gi=fn.startTop;Pe.Z.cancel(Qe);var dt=vr.current.getBoundingClientRect(),Fn=xt/(tt?dt.width:dt.height);if(Vn){var ui=(Nn(ft,tt)-bi)*Fn,ji=gi;!Vi&&tt?ji-=ui:ji+=ui;var dn=Qr.current,vn=mo.current,Rt=vn?ji/vn:0,tn=Math.ceil(Rt*dn);tn=Math.max(tn,0),tn=Math.min(tn,dn),Qe=(0,Pe.Z)(function(){Xe(tn,tt)})}},In=function(){Tn(!1),Et()};return window.addEventListener("mousemove",un,{passive:!0}),window.addEventListener("touchmove",un,{passive:!0}),window.addEventListener("mouseup",In,{passive:!0}),window.addEventListener("touchend",In,{passive:!0}),function(){window.removeEventListener("mousemove",un),window.removeEventListener("touchmove",un),window.removeEventListener("mouseup",In),window.removeEventListener("touchend",In),Pe.Z.cancel(Qe)}}},[gn]),gt.useEffect(function(){return kr(),function(){clearTimeout(eo.current)}},[Be]),gt.useImperativeHandle(Me,function(){return{delayHidden:kr}});var zr="".concat(xe,"-scrollbar"),on={position:"absolute",visibility:Ir?null:"hidden"},Yt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return tt?(on.height=8,on.left=0,on.right=0,on.bottom=0,Yt.height="100%",Yt.width=wt,Vi?Yt.left=yi:Yt.right=yi):(on.width=8,on.top=0,on.bottom=0,Vi?on.right=0:on.left=0,Yt.width="100%",Yt.height=wt,Yt.top=yi),gt.createElement("div",{ref:vr,className:Tt()(zr,(0,kt.Z)((0,kt.Z)((0,kt.Z)({},"".concat(zr,"-horizontal"),tt),"".concat(zr,"-vertical"),!tt),"".concat(zr,"-visible"),Ir)),style:(0,at.Z)((0,at.Z)({},on),ct),onMouseDown:or,onMouseMove:kr},gt.createElement("div",{ref:cr,className:Tt()("".concat(zr,"-thumb"),(0,kt.Z)({},"".concat(zr,"-thumb-moving"),gn)),style:(0,at.Z)((0,at.Z)({},Yt),Ft),onMouseDown:qi}))}),_n=Hn,Bt=20;function rn(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=je/Me*je;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Bt),Math.floor(xe)}var cn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Kn=[],nn={overflowY:"auto",overflowAnchor:"none"};function Rn(je,Me){var xe=je.prefixCls,Ne=xe===void 0?"rc-virtual-list":xe,Be=je.className,Se=je.height,lt=je.itemHeight,Et=je.fullHeight,Xe=Et===void 0?!0:Et,tt=je.style,wt=je.data,xt=je.children,ct=je.itemKey,Ft=je.virtual,Pn=je.direction,mn=je.scrollWidth,Jt=je.component,gn=Jt===void 0?"div":Jt,Tn=je.onScroll,bt=je.onVirtualScroll,_t=je.onVisibleChange,$t=je.innerProps,Dn=je.extraRender,ii=je.styles,pi=je.showScrollBar,fi=pi===void 0?"optional":pi,wi=(0,it.Z)(je,cn),Vi=gt.useCallback(function(Lr){return typeof ct=="function"?ct(Lr):Lr==null?void 0:Lr[ct]},[ct]),vr=Ut(Vi,null,null),cr=(0,Je.Z)(vr,4),pr=cr[0],_r=cr[1],Ir=cr[2],$i=cr[3],eo=!!(Ft!==!1&&Se&<),kr=gt.useMemo(function(){return Object.values(Ir.maps).reduce(function(Lr,Fr){return Lr+Fr},0)},[Ir.id,Ir.maps]),Ee=eo&&wt&&(Math.max(lt*wt.length,kr)>Se||!!mn),si=Pn==="rtl",yi=Tt()(Ne,(0,kt.Z)({},"".concat(Ne,"-rtl"),si),Be),or=wt||Kn,xr=(0,gt.useRef)(),qi=(0,gt.useRef)(),Qr=(0,gt.useRef)(),mo=(0,gt.useState)(0),zr=(0,Je.Z)(mo,2),on=zr[0],Yt=zr[1],Qe=(0,gt.useState)(0),un=(0,Je.Z)(Qe,2),In=un[0],Mt=un[1],ft=(0,gt.useState)(!1),fn=(0,Je.Z)(ft,2),Vn=fn[0],bi=fn[1],gi=function(){bi(!0)},dt=function(){bi(!1)},Fn={getKey:Vi};function ui(Lr){Yt(function(Fr){var uo;typeof Lr=="function"?uo=Lr(Fr):uo=Lr;var Xr=_i(uo);return xr.current.scrollTop=Xr,Xr})}var ji=(0,gt.useRef)({start:0,end:or.length}),dn=(0,gt.useRef)(),vn=me(or,Vi),Rt=(0,Je.Z)(vn,1),tn=Rt[0];dn.current=tn;var yn=gt.useMemo(function(){if(!eo)return{scrollHeight:void 0,start:0,end:or.length-1,offset:void 0};if(!Ee){var Lr;return{scrollHeight:((Lr=qi.current)===null||Lr===void 0?void 0:Lr.offsetHeight)||0,start:0,end:or.length-1,offset:void 0}}for(var Fr=0,uo,Xr,Zo,oa=or.length,ur=0;ur<oa;ur+=1){var hr=or[ur],ri=Vi(hr),Er=Ir.get(ri),Io=Fr+(Er===void 0?lt:Er);Io>=on&&uo===void 0&&(uo=ur,Xr=Fr),Io>on+Se&&Zo===void 0&&(Zo=ur),Fr=Io}return uo===void 0&&(uo=0,Xr=0,Zo=Math.ceil(Se/lt)),Zo===void 0&&(Zo=or.length-1),Zo=Math.min(Zo+1,or.length-1),{scrollHeight:Fr,start:uo,end:Zo,offset:Xr}},[Ee,eo,on,or,$i,Se]),an=yn.scrollHeight,Mn=yn.start,bn=yn.end,$n=yn.offset;ji.current.start=Mn,ji.current.end=bn,gt.useLayoutEffect(function(){var Lr=Ir.getRecord();if(Lr.size===1){var Fr=Array.from(Lr)[0],uo=or[Mn];if(uo){var Xr=Vi(uo);if(Xr===Fr){var Zo=Ir.get(Fr),oa=Zo-lt;ui(function(ur){return ur+oa})}}}Ir.resetRecord()},[an]);var Un=gt.useState({width:0,height:Se}),Wi=(0,Je.Z)(Un,2),qt=Wi[0],Qi=Wi[1],yr=function(Fr){Qi({width:Fr.offsetWidth,height:Fr.offsetHeight})},Dr=(0,gt.useRef)(),sn=(0,gt.useRef)(),ai=gt.useMemo(function(){return rn(qt.width,mn)},[qt.width,mn]),xi=gt.useMemo(function(){return rn(qt.height,an)},[qt.height,an]),Gi=an-Se,Di=(0,gt.useRef)(Gi);Di.current=Gi;function _i(Lr){var Fr=Lr;return Number.isNaN(Di.current)||(Fr=Math.min(Fr,Di.current)),Fr=Math.max(Fr,0),Fr}var wr=on<=0,er=on>=Gi,Oi=In<=0,br=In>=mn,En=Oe(wr,er,Oi,br),wo=function(){return{x:si?-In:In,y:on}},An=(0,gt.useRef)(wo()),Br=(0,rt.useEvent)(function(Lr){if(bt){var Fr=(0,at.Z)((0,at.Z)({},wo()),Lr);(An.current.x!==Fr.x||An.current.y!==Fr.y)&&(bt(Fr),An.current=Fr)}});function ta(Lr,Fr){var uo=Lr;Fr?((0,Ct.flushSync)(function(){Mt(uo)}),Br()):ui(uo)}function bo(Lr){var Fr=Lr.currentTarget.scrollTop;Fr!==on&&ui(Fr),Tn==null||Tn(Lr),Br()}var ca=function(Fr){var uo=Fr,Xr=mn?mn-qt.width:0;return uo=Math.max(uo,0),uo=Math.min(uo,Xr),uo},qo=(0,rt.useEvent)(function(Lr,Fr){Fr?((0,Ct.flushSync)(function(){Mt(function(uo){var Xr=uo+(si?-Lr:Lr);return ca(Xr)})}),Br()):ui(function(uo){var Xr=uo+Lr;return Xr})}),lr=He(eo,wr,er,Oi,br,!!mn,qo),tr=(0,Je.Z)(lr,2),to=tr[0],ko=tr[1];jt(eo,xr,function(Lr,Fr,uo,Xr){var Zo=Xr;return En(Lr,Fr,uo)?!1:!Zo||!Zo._virtualHandled?(Zo&&(Zo._virtualHandled=!0),to({preventDefault:function(){},deltaX:Lr?Fr:0,deltaY:Lr?0:Fr}),!0):!1}),St(Ee,xr,function(Lr){ui(function(Fr){return Fr+Lr})}),(0,It.Z)(function(){function Lr(uo){var Xr=wr&&uo.detail<0,Zo=er&&uo.detail>0;eo&&!Xr&&!Zo&&uo.preventDefault()}var Fr=xr.current;return Fr.addEventListener("wheel",to,{passive:!1}),Fr.addEventListener("DOMMouseScroll",ko,{passive:!0}),Fr.addEventListener("MozMousePixelScroll",Lr,{passive:!1}),function(){Fr.removeEventListener("wheel",to),Fr.removeEventListener("DOMMouseScroll",ko),Fr.removeEventListener("MozMousePixelScroll",Lr)}},[eo,wr,er]),(0,It.Z)(function(){if(mn){var Lr=ca(In);Mt(Lr),Br({x:Lr})}},[qt.width,mn]);var ki=function(){var Fr,uo;(Fr=Dr.current)===null||Fr===void 0||Fr.delayHidden(),(uo=sn.current)===null||uo===void 0||uo.delayHidden()},Ue=en(xr,or,Ir,lt,Vi,function(){return _r(!0)},ui,ki);gt.useImperativeHandle(Me,function(){return{nativeElement:Qr.current,getScrollInfo:wo,scrollTo:function(Fr){function uo(Xr){return Xr&&(0,Re.Z)(Xr)==="object"&&("left"in Xr||"top"in Xr)}uo(Fr)?(Fr.left!==void 0&&Mt(ca(Fr.left)),Ue(Fr.top)):Ue(Fr)}}}),(0,It.Z)(function(){if(_t){var Lr=or.slice(Mn,bn+1);_t(Lr,or)}},[Mn,bn,or]);var fo=We(or,Vi,Ir,lt),_o=Dn==null?void 0:Dn({start:Mn,end:bn,virtual:Ee,offsetX:In,offsetY:$n,rtl:si,getSize:fo}),ro=he(or,Mn,bn,mn,In,pr,xt,Fn),Yo=null;Se&&(Yo=(0,at.Z)((0,kt.Z)({},Xe?"height":"maxHeight",Se),nn),eo&&(Yo.overflowY="hidden",mn&&(Yo.overflowX="hidden"),Vn&&(Yo.pointerEvents="none")));var ya={};return si&&(ya.dir="rtl"),gt.createElement("div",(0,be.Z)({ref:Qr,style:(0,at.Z)((0,at.Z)({},tt),{},{position:"relative"}),className:yi},ya,wi),gt.createElement(Pt.Z,{onResize:yr},gt.createElement(gn,{className:"".concat(Ne,"-holder"),style:Yo,ref:xr,onScroll:bo,onMouseEnter:ki},gt.createElement(te,{prefixCls:Ne,height:an,offsetX:In,offsetY:$n,scrollWidth:mn,onInnerResize:_r,ref:qi,innerProps:$t,rtl:si,extra:_o},ro))),Ee&&an>Se&>.createElement(_n,{ref:Dr,prefixCls:Ne,scrollOffset:on,scrollRange:an,rtl:si,onScroll:ta,onStartMove:gi,onStopMove:dt,spinSize:xi,containerSize:qt.height,style:ii==null?void 0:ii.verticalScrollBar,thumbStyle:ii==null?void 0:ii.verticalScrollBarThumb,showScrollBar:fi}),Ee&&mn>qt.width&>.createElement(_n,{ref:sn,prefixCls:Ne,scrollOffset:In,scrollRange:mn,rtl:si,onScroll:ta,onStartMove:gi,onStopMove:dt,spinSize:ai,containerSize:qt.width,horizontal:!0,style:ii==null?void 0:ii.horizontalScrollBar,thumbStyle:ii==null?void 0:ii.horizontalScrollBarThumb,showScrollBar:fi}))}var vt=gt.forwardRef(Rn);vt.displayName="List";var Yn=vt,ni=Yn},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,xn,ye){"use strict";On.exports=ye.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(On){"use strict";On.exports="data:image/png;base64,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"},16722:function(On,xn,ye){"use strict";ye.d(xn,{Z:function(){return Tt}});const be=Pt=>typeof Pt=="object"&&Pt!=null&&Pt.nodeType===1,Re=(Pt,rt)=>(!rt||Pt!=="hidden")&&Pt!=="visible"&&Pt!=="clip",at=(Pt,rt)=>{if(Pt.clientHeight<Pt.scrollHeight||Pt.clientWidth<Pt.scrollWidth){const It=getComputedStyle(Pt,null);return Re(It.overflowY,rt)||Re(It.overflowX,rt)||(gt=>{const Ct=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(te){return null}})(gt);return!!Ct&&(Ct.clientHeight<gt.scrollHeight||Ct.clientWidth<gt.scrollWidth)})(Pt)}return!1},kt=(Pt,rt,It,gt,Ct,Fe,te,ne)=>Fe<Pt&&te>rt||Fe>Pt&&te<rt?0:Fe<=Pt&&ne<=It||te>=rt&&ne>=It?Fe-Pt-gt:te>rt&&ne<It||Fe<Pt&&ne>It?te-rt+Ct:0,Je=Pt=>{const rt=Pt.parentElement;return rt==null?Pt.getRootNode().host||null:rt},it=(Pt,rt)=>{var It,gt,Ct,Fe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:he,boundary:se,skipOverflowHiddenElements:ge}=rt,me=typeof se=="function"?se:_n=>_n!==se;if(!be(Pt))throw new TypeError("Invalid target");const Pe=document.scrollingElement||document.documentElement,ke=[];let we=Pt;for(;be(we)&&me(we);){if(we=Je(we),we===Pe){ke.push(we);break}we!=null&&we===document.body&&at(we)&&!at(document.documentElement)||we!=null&&at(we,ge)&&ke.push(we)}const Oe=(gt=(It=window.visualViewport)==null?void 0:It.width)!=null?gt:innerWidth,He=(Fe=(Ct=window.visualViewport)==null?void 0:Ct.height)!=null?Fe:innerHeight,{scrollX:We,scrollY:Ve}=window,{height:ut,width:Ke,top:Wt,right:pt,bottom:Ut,left:Ht}=Pt.getBoundingClientRect(),{top:jt,right:Xt,bottom:Nn,left:St}=(_n=>{const Bt=window.getComputedStyle(_n);return{top:parseFloat(Bt.scrollMarginTop)||0,right:parseFloat(Bt.scrollMarginRight)||0,bottom:parseFloat(Bt.scrollMarginBottom)||0,left:parseFloat(Bt.scrollMarginLeft)||0}})(Pt);let Ge=ne==="start"||ne==="nearest"?Wt-jt:ne==="end"?Ut+Nn:Wt+ut/2-jt+Nn,en=he==="center"?Ht+Ke/2-St+Xt:he==="end"?pt+Xt:Ht-St;const Hn=[];for(let _n=0;_n<ke.length;_n++){const Bt=ke[_n],{height:rn,width:cn,top:Kn,right:nn,bottom:Rn,left:vt}=Bt.getBoundingClientRect();if(te==="if-needed"&&Wt>=0&&Ht>=0&&Ut<=He&&pt<=Oe&&(Bt===Pe&&!at(Bt)||Wt>=Kn&&Ut<=Rn&&Ht>=vt&&pt<=nn))return Hn;const Yn=getComputedStyle(Bt),ni=parseInt(Yn.borderLeftWidth,10),je=parseInt(Yn.borderTopWidth,10),Me=parseInt(Yn.borderRightWidth,10),xe=parseInt(Yn.borderBottomWidth,10);let Ne=0,Be=0;const Se="offsetWidth"in Bt?Bt.offsetWidth-Bt.clientWidth-ni-Me:0,lt="offsetHeight"in Bt?Bt.offsetHeight-Bt.clientHeight-je-xe:0,Et="offsetWidth"in Bt?Bt.offsetWidth===0?0:cn/Bt.offsetWidth:0,Xe="offsetHeight"in Bt?Bt.offsetHeight===0?0:rn/Bt.offsetHeight:0;if(Pe===Bt)Ne=ne==="start"?Ge:ne==="end"?Ge-He:ne==="nearest"?kt(Ve,Ve+He,He,je,xe,Ve+Ge,Ve+Ge+ut,ut):Ge-He/2,Be=he==="start"?en:he==="center"?en-Oe/2:he==="end"?en-Oe:kt(We,We+Oe,Oe,ni,Me,We+en,We+en+Ke,Ke),Ne=Math.max(0,Ne+Ve),Be=Math.max(0,Be+We);else{Ne=ne==="start"?Ge-Kn-je:ne==="end"?Ge-Rn+xe+lt:ne==="nearest"?kt(Kn,Rn,rn,je,xe+lt,Ge,Ge+ut,ut):Ge-(Kn+rn/2)+lt/2,Be=he==="start"?en-vt-ni:he==="center"?en-(vt+cn/2)+Se/2:he==="end"?en-nn+Me+Se:kt(vt,nn,cn,ni,Me+Se,en,en+Ke,Ke);const{scrollLeft:tt,scrollTop:wt}=Bt;Ne=Xe===0?0:Math.max(0,Math.min(wt+Ne/Xe,Bt.scrollHeight-rn/Xe+lt)),Be=Et===0?0:Math.max(0,Math.min(tt+Be/Et,Bt.scrollWidth-cn/Et+Se)),Ge+=wt-Ne,en+=tt-Be}Hn.push({el:Bt,top:Ne,left:Be})}return Hn},Te=Pt=>Pt===!1?{block:"end",inline:"nearest"}:(rt=>rt===Object(rt)&&Object.keys(rt).length!==0)(Pt)?Pt:{block:"start",inline:"nearest"};function Tt(Pt,rt){if(!Pt.isConnected||!(Ct=>{let Fe=Ct;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Pt))return;const It=(Ct=>{const Fe=window.getComputedStyle(Ct);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Pt);if((Ct=>typeof Ct=="object"&&typeof Ct.behavior=="function")(rt))return rt.behavior(it(Pt,rt));const gt=typeof rt=="boolean"||rt==null?void 0:rt.behavior;for(const{el:Ct,top:Fe,left:te}of it(Pt,Te(rt))){const ne=Fe-It.top+It.bottom,he=te-It.left+It.right;Ct.scroll({top:ne,left:he,behavior:gt})}}}}]);
|