!(function(){var sP=Object.defineProperty,aP=Object.defineProperties;var lP=Object.getOwnPropertyDescriptors;var J0=Object.getOwnPropertySymbols;var Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable;var yx=(Sn,Ve,Pt)=>Ve in Sn?sP(Sn,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):Sn[Ve]=Pt,ud=(Sn,Ve)=>{for(var Pt in Ve||(Ve={}))Sx.call(Ve,Pt)&&yx(Sn,Pt,Ve[Pt]);if(J0)for(var Pt of J0(Ve))xx.call(Ve,Pt)&&yx(Sn,Pt,Ve[Pt]);return Sn},Xy=(Sn,Ve)=>aP(Sn,lP(Ve));var Px=(Sn,Ve)=>{var Pt={};for(var vt in Sn)Sx.call(Sn,vt)&&Ve.indexOf(vt)<0&&(Pt[vt]=Sn[vt]);if(Sn!=null&&J0)for(var vt of J0(Sn))Ve.indexOf(vt)<0&&xx.call(Sn,vt)&&(Pt[vt]=Sn[vt]);return Pt};(self.webpackChunk=self.webpackChunk||[]).push([[8447],{40001:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},26227:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},49198:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},41464:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},73331:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},15277:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},52671:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},8657:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},56082:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},33853:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},15075:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},43531:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},61485:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},38819:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},47472:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(te,Fe){return It.createElement($t.Z,(0,vt.Z)({},te,{ref:Fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Sn,Ve){"use strict";Ve.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},76895:function(Sn,Ve){"use strict";Ve.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},74413:function(){"use strict";function Sn(Ot,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Ot,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(Sn.prototype,"name",{get:function(){return this._name},set:function(Ot){if(typeof Ot!="string"||Ot==="")throw new Error("Shape name must be a valid string.");this._name=Ot}}),Object.defineProperty(Sn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("The default value must be a real number, not: "+Ot);this._defaultValue=Ot}}),Object.defineProperty(Sn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("Minimum must be a real number, not: "+Ot);this._minimum=Ot}}),Object.defineProperty(Sn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("Maximum must be a real number, not: "+Ot);this._maximum=Ot}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ot,et){var nt=go.Shape._FigureParameters[Ot];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Ot,et,nt){if(!(nt instanceof Sn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValuent.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Ot];ht||(ht=[],go.Shape._FigureParameters[Ot]=ht),ht[et]=nt};var Ve=[];function Pt(Ot,et){var nt=Ve.pop();return nt===void 0?new go.Point(Ot,et):(nt.x=Ot,nt.y=et,nt)}function vt(){var Ot=Ve.pop();return Ot===void 0?new go.Point:Ot}function It(Ot){Ve.push(Ot)}function oe(Ot,et,nt,ht,at,ft,mt,wt,Et){Et||(Et=new go.Point);var Nt=Ot-nt,Dt=at-mt,At=NaN,Kt=NaN;if(Nt===0)if(Dt===0)Ot===nt&&(At=Ot,Kt=et);else{var Wt=(ft-wt)/Dt,xe=ft-Wt*at;At=Ot,Kt=Wt*At+xe}else if(Dt===0){var Vt=(et-ht)/Nt,Ie=et-Vt*Ot;At=at,Kt=Vt*At+Ie}else{var Vt=(et-ht)/Nt,Wt=(ft-wt)/Dt,Ie=et-Vt*Ot,xe=ft-Wt*at;At=(xe-Ie)/(Vt-Wt),Kt=Vt*At+Ie}return Et.x=At,Et.y=Kt,Et}function de(Ot,et,nt,ht,at,ft,mt,wt,Et,Nt,Dt,At,Kt,Wt){var xe=1-Et,Vt=Et,Ie=Ot*xe+nt*Vt,Se=et*xe+ht*Vt,Ye=nt*xe+at*Vt,Le=ht*xe+ft*Vt,Pe=at*xe+mt*Vt,We=ft*xe+wt*Vt,Ue=Ie*xe+Ye*Vt,ue=Se*xe+Le*Vt,Ht=Ye*xe+Pe*Vt,ke=Le*xe+We*Vt,pn=Ue*xe+Ht*Vt,ln=ue*xe+ke*Vt;Nt.x=Ie,Nt.y=Se,Dt.x=Ue,Dt.y=ue,At.x=pn,At.y=ln,Kt.x=Ht,Kt.y=ke,Wt.x=Pe,Wt.y=We}var $t=new go.Spot(.156,.156),Ut=new go.Spot(.844,.844),Jt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Sn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*Jt,ft=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-at,0,et,at)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-at,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,at,nt,0,nt-at)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,at,at,0).close()));return at>1&&(ft.spot1=new go.Spot(0,0,at,at),ft.spot2=new go.Spot(1,1,-at,-at)),ft}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ot,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Ot,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ot,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ot,et,nt){var ht=et/2,at=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return at.spot1=$t,at.spot2=Ut,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Line1",function(Ot,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Ot,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Jt*et,0,et,(1-Jt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Jt*nt,(1-Jt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Jt*nt,Jt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Jt)*et,0,0,(1-Jt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Sn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var at=Math.abs(ht)*et;if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),atet&&(ht=et);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),at.5&&(ht=.5);var at=Math.abs(ht)*et;if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),atet&&(ht=et/2);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),atet&&(ht=et/2);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())):ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),at0&&(mt.add(new go.PathSegment(go.PathSegment.Move,et/2+wt,et/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,at,at,wt,wt).close())),ft.spot1=$t,ft.spot2=Ut,ft.defaultStretch=go.GraphObject.Uniform,ft}),go.Shape.defineFigureGenerator("Cloud",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ot,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new Sn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Sn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN,at=Ot?Ot.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(at)&&(at=315);var ft=ht%360;ft<0&&(ft+=360);var mt=at%360,wt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,ft,mt,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ot,et,nt){var ht=Jt/Math.SQRT2*.5,at=Math.SQRT2/2,ft=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,at*et,ft*nt,et,(1-ht)*nt,(at+ht)*et,(ft+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Sn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var at=Math.min(ht,et)/2,ft=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(ft-at,0,!0).add(new go.PathSegment(go.PathSegment.Line,ft+at,0)).add(new go.PathSegment(go.PathSegment.Line,ft+at,mt-at)).add(new go.PathSegment(go.PathSegment.Line,et,mt-at)).add(new go.PathSegment(go.PathSegment.Line,et,mt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,mt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,mt+at)).add(new go.PathSegment(go.PathSegment.Line,0,mt+at)).add(new go.PathSegment(go.PathSegment.Line,0,mt-at)).add(new go.PathSegment(go.PathSegment.Line,ft-at,mt-at).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Sn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var at=Math.min(ht,et)/2,ft=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(ft-at,0,!0).add(new go.PathSegment(go.PathSegment.Line,ft+at,0)).add(new go.PathSegment(go.PathSegment.Line,ft+at,mt-at)).add(new go.PathSegment(go.PathSegment.Line,et,mt-at)).add(new go.PathSegment(go.PathSegment.Line,et,mt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,mt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,mt+at)).add(new go.PathSegment(go.PathSegment.Line,0,mt+at)).add(new go.PathSegment(go.PathSegment.Line,0,mt-at)).add(new go.PathSegment(go.PathSegment.Line,ft-at,mt-at).close()))}),go.Shape.setFigureParameter("ThickX",0,new Sn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=et,at.endY=nt,at}else{var ft=et/2,mt=nt/2,wt=Math.atan2(nt,et),Et=ht-Math.min(Math.cos(wt)*ht/2,ft),Nt=ht-Math.min(Math.sin(wt)*ht/2,mt),at=new go.Geometry,Dt=new go.PathFigure(Et,0,!0);return at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,ft,.2*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-Et,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,Nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,nt-Nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-Et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ft,.8*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,Et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,nt-Nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Nt).close()),at}}),go.Shape.setFigureParameter("ThinX",0,new Sn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var at=new go.Geometry,ft=new go.PathFigure(.1*et,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),at}),go.Shape.setFigureParameter("SquareIBeam",0,new Sn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.2);var at=new go.Geometry,ft=new go.PathFigure(0,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),at}),go.Shape.setFigureParameter("RoundedIBeam",0,new Sn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.5);var at=new go.Geometry,ft=new go.PathFigure(0,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),at}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Jt*et,0,et,(.5-Jt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Jt/2)*nt,Jt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.4*et,.6*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var ft=.2,mt=.3,wt=0,Et=ft*Jt;return at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+ft+wt)*nt,(.5-ft+mt)*et,(.5+Et+wt)*nt,(.5-Et+mt)*et,(.5+ft+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+mt)*et,(.5+wt)*nt,(.5+Et+mt)*et,(.5+ft+wt)*nt,(.5+ft+mt)*et,(.5+Et+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-ft+wt)*nt,(1-.5+ft+mt)*et,(.5-Et+wt)*nt,(.5+Et+mt)*et,(.5-ft+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Et+mt)*et,(.5-ft+wt)*nt,(.5-ft+mt+.05)*et,(.5-Et+wt-.02)*nt)),ft=.2,mt=0,wt=-.3,Et=ft*Jt,at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+mt)*et,(.5+wt)*nt,(.5+Et+mt)*et,(.5+ft+wt)*nt,(.5+ft+mt)*et,(.5+Et+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-ft+wt)*nt,(1-.5+ft+mt)*et,(.5-Et+wt)*nt,(.5+Et+mt)*et,(.5-ft+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+mt)*et,(.5+wt)*nt,(.5-Et+mt)*et,(.5-ft+wt)*nt,(.5-ft+mt)*et,(.5-Et+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Et+mt)*et,(.5+ft+wt)*nt,(.5-ft+mt)*et,(.5+Et+wt)*nt,(.5-Et+mt)*et,(.5+ft+wt)*nt)),ft=.2,mt=-.3,wt=0,Et=ft*Jt,at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-ft+wt)*nt,(1-.5+ft+mt-.05)*et,(.5-Et+wt-.02)*nt,(.5+Et+mt)*et,(.5-ft+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+mt)*et,(.5+wt)*nt,(.5-Et+mt)*et,(.5-ft+wt)*nt,(.5-ft+mt)*et,(.5-Et+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+ft+wt)*nt,(.5-ft+mt)*et,(.5+Et+wt)*nt,(.5-Et+mt)*et,(.5+ft+wt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Et+mt)*et,(.5+ft+wt)*nt,(.5+ft+mt)*et,(.5+Et+wt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.5,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),at.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ft=.1,mt=.5,wt=.25;return at.add(new go.PathSegment(go.PathSegment.Move,(mt+ft)*et,wt*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*mt,nt*wt,ft*et,ft*et).close()),at=new go.PathFigure(et*.5,0,!1),ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),wt=.75,at=new go.PathFigure((mt+ft)*et,wt*nt,!0),ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*mt,nt*wt,ft*et,ft*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Ot,et,nt){var ht=.8535533905932737,at=.5*et,ft=.5*nt;return new go.Geometry().add(new go.PathFigure(at,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,at,ft,at,ft)).add(new go.PathSegment(go.PathSegment.Line,at,nt)).add(new go.PathSegment(go.PathSegment.Move,at,ft)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,at,ft)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=.5,mt=.5,wt=.5,Et=new go.PathFigure(mt*et,(wt-ft)*nt);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),ft=.4,at=Jt*.4;var Nt=vt(),Dt=vt(),At=vt(),Kt=vt();de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.42,Nt,Dt,At,Kt,Kt);var Wt=vt(),xe=vt(),Vt=vt();de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.58,Kt,Kt,Vt,Wt,xe);var Ie=vt(),Se=vt(),Ye=vt();de(mt,wt+ft,mt-at,wt+ft,mt-ft,wt+at,mt-ft,wt,.42,Ie,Se,Ye,Kt,Kt);var Le=vt(),Pe=vt(),We=vt();return de(mt,wt+ft,mt-at,wt+ft,mt-ft,wt+at,mt-ft,wt,.58,Kt,Kt,We,Le,Pe),Et.add(new go.PathSegment(go.PathSegment.Move,We.x*et,We.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,Le.x*et,Le.y*nt,Pe.x*et,Pe.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,At.x*et,At.y*nt,Nt.x*et,Nt.y*nt,Dt.x*et,Dt.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,We.x*et,We.y*nt).close()),Et.add(new go.PathSegment(go.PathSegment.Move,Ye.x*et,Ye.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,Vt.x*et,Vt.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,Wt.x*et,Wt.y*nt,xe.x*et,xe.y*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Ye.x*et,Ye.y*nt,Ie.x*et,Ie.y*nt,Se.x*et,Se.y*nt).close()),It(Nt),It(Dt),It(At),It(Kt),It(Wt),It(xe),It(Vt),It(Ie),It(Se),It(Ye),It(Le),It(Pe),It(We),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Sn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var at=(et-ht)/2,ft=at+ht;return new go.Geometry().add(new go.PathFigure(ft,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,at,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.4,ft=.4,mt=.5,wt=.5,Et=vt(),Nt=vt(),Dt=vt(),At=vt(),Kt=new go.PathFigure((mt-ft)*et,wt*nt,!1);ht.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt)),de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.44,Dt,At,Nt,Et,Et),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*et,Nt.y*nt,Dt.x*et,Dt.y*nt,At.x*et,At.y*nt));var Wt=Pt(Nt.x,Nt.y);de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.56,Et,Et,Nt,Dt,At);var xe=Pt(Nt.x,Nt.y);Kt.add(new go.PathSegment(go.PathSegment.Line,(Wt.x*.1+.95*.9)*et,Wt.y*.1*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.85*et,Wt.y*.1*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*et,.15*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*et,(xe.y*.1+.05*.9)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,xe.x*et,xe.y*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,Dt.x*et,Dt.y*nt,At.x*et,At.y*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt)),ft=.35,at=Jt*.35;var Vt=new go.PathFigure(mt*et,(wt-ft)*nt,!1);ht.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt));var Ie=new go.PathFigure((mt-ft)*et,wt*nt,!1);return ht.add(Ie),It(Et),It(Nt),It(Dt),It(At),It(Wt),It(xe),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Ot,et,nt){var ht=new go.Geometry,at=.375,ft=0,mt=-.125,wt=at*Jt,Et=new go.PathFigure((.525+ft)*et,(.5+at+mt)*nt,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ft)*et,(.5+mt)*nt,(.5+wt+ft)*et,(.5+at+mt)*nt,(.5+at+ft)*et,(.5+wt+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+mt)*nt,(1-.5+at+ft)*et,(.5-wt+mt)*nt,(.5+wt+ft)*et,(.5-at+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+mt)*nt,(.5-wt+ft)*et,(.5-at+mt)*nt,(.5-at+ft)*et,(.5-wt+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ft)*et,(.5+at+mt)*nt,(.5-at+ft)*et,(.5+wt+mt)*nt,(.5-wt+ft)*et,(.5+at+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),at=.325,ft=0,mt=-.125,wt=at*Jt;var Et=new go.PathFigure((1-.5+at+ft)*et,(.5+mt)*nt,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5+at+mt)*nt,(.5+at+ft)*et,(.5+wt+mt)*nt,(.5+wt+ft)*et,(.5+at+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+mt)*nt,(.5-wt+ft)*et,(.5+at+mt)*nt,(.5-at+ft)*et,(.5+wt+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+mt)*nt,(.5-at+ft)*et,(.5-wt+mt)*nt,(.5-wt+ft)*et,(.5-at+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ft)*et,(.5+mt)*nt,(.5+wt+ft)*et,(.5-at+mt)*nt,(1-.5+at+ft)*et,(.5-wt+mt)*nt));var Et=new go.PathFigure((.525+ft)*et,(.5+at+mt)*nt,!1);return ht.add(Et),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ot,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ot,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ot,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Sn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Sn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=.3);var ft=(1-ht)*et,mt=(.5-at/2)*nt,wt=(.5+at/2)*nt,Et=new go.Geometry,Nt=new go.PathFigure(0,mt,!0);Et.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,mt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,wt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,mt/nt);var Dt=oe(0,wt/nt,1,wt/nt,ft/et,1,1,.5,vt());return Et.spot2=new go.Spot(Dt.x,Dt.y),It(Dt),Et}),go.Shape.setFigureParameter("Arrow2",0,new Sn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Sn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var at=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=30),at=Math.min(at,nt/2);var ft=et-ht,mt=(nt-at)/2,wt=mt+at,Et=new go.Geometry,Nt=new go.PathFigure(0,mt,!0);Et.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,mt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ft,wt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,mt/nt);var Dt=oe(0,wt/nt,1,wt/nt,ft/et,1,1,.5,vt());return Et.spot2=new go.Spot(Dt.x,Dt.y),It(Dt),Et}),go.Shape.defineFigureGenerator("Chevron",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Sn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,mt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);mt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Et=oe(0,.5,.3,0,0,at/nt,.1,at/nt,vt());return mt.spot1=new go.Spot(Et.x,Et.y),Et=oe(.7,1,1,.5,0,ft/nt,1,ft/nt,Et),mt.spot2=new go.Spot(Et.x,Et.y),It(Et),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Sn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Sn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,mt=ft+ht,wt=(nt-at)/2,Et=wt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,mt=ft+ht,wt=0,Et=nt):(ft=0,mt=nt,wt=0,Et=nt));var Nt=new go.Geometry,Dt=new go.PathFigure(et,.5*nt,!0);Nt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Et)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Et)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,wt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close());var At=oe(0,.5,.3,wt/nt,0,ft/nt,1,ft/nt,vt());return Nt.spot1=new go.Spot(At.x,At.y),At=oe(.7,Et/nt,1,.5,0,mt/nt,1,mt/nt,At),Nt.spot2=new go.Spot(At.x,At.y),It(At),Nt}),go.Shape.setFigureParameter("IBeamArrow",0,new Sn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,mt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);mt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(0,at/nt);var Et=oe(.7,1,1,.5,0,ft/nt,1,ft/nt,vt());return mt.spot2=new go.Spot(Et.x,Et.y),It(Et),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Sn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Sn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,mt=ft+ht,wt=(nt-at)/2,Et=wt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,mt=ft+ht,wt=0,Et=nt):(ft=0,mt=nt,wt=0,Et=nt));var Nt=new go.Geometry,Dt=new go.PathFigure(et,.5*nt,!0);Nt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Et)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Et)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Et)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,wt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,wt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close()),Nt.spot1=new go.Spot(0,ft/nt);var At=oe(.7,Et/nt,1,.5,0,mt/nt,1,mt/nt,vt());return Nt.spot2=new go.Spot(At.x,At.y),It(At),Nt}),go.Shape.setFigureParameter("Pointer",0,new Sn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.1);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),at.spot1=new go.Spot(ht,.35);var mt=oe(.2,.65,1,.65,0,1,1,.5,vt());return at.spot2=new go.Spot(mt.x,mt.y),It(mt),at}),go.Shape.setFigureParameter("RoundedPointer",0,new Sn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),at.spot1=new go.Spot(ht,.35);var mt=oe(0,.65,1,.65,0,1,1,.5,vt());return at.spot2=new go.Spot(mt.x,mt.y),It(mt),at}),go.Shape.setFigureParameter("SplitEndArrow",0,new Sn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.4);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,mt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);mt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,.3);var Et=oe(.7,1,1,.5,0,ft/nt,1,ft/nt,vt());return mt.spot2=new go.Spot(Et.x,Et.y),It(Et),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Sn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=50);var at=(nt-ht)/2,ft=at+ht;ht>nt&&(at=0,ft=nt);var mt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);mt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,at/nt);var Et=oe(.7,1,1,.5,0,ft/nt,1,ft/nt,vt());return mt.spot2=new go.Spot(Et.x,Et.y),It(Et),mt}),go.Shape.setFigureParameter("SquareArrow",0,new Sn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.7);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(ht,1),at}),go.Shape.defineFigureGenerator("Cone1",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=Jt*.1,mt=new go.PathFigure(0,.9*nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.9*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var ft=new go.PathFigure(0,.9*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var ft=new go.PathFigure(.5*et,nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.3*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ft=new go.PathFigure(0,.3*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=Jt*.5,mt=new go.PathFigure(0,ht,!0);at.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Jt*ht,(.5-ft)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+ft)*et,0,1*et,Jt*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Jt*ht,(.5+ft)*et,1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,1*nt,0,nt-Jt*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var wt=new go.PathFigure(et,ht,!1);return at.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-Jt*ht,(.5+ft)*et,2*ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-ft)*et,2*ht,0,2*ht-Jt*ht)),at.spot1=new go.Spot(0,0,0,2*ht),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Cylinder2",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=Jt*.5,mt=new go.PathFigure(0,nt-ht,!0);at.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Jt*ht,(.5-ft)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+ft)*et,0,et,Jt*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Jt*ht,(.5+ft)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,nt,0,nt-Jt*ht));var wt=new go.PathFigure(0,nt-ht,!1);return at.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-Jt*ht,(.5-ft)*et,nt-2*ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+ft)*et,nt-2*ht,et,nt-ht-Jt*ht)),at.spot1=new go.Spot(0,0),at.spot2=new go.Spot(1,1,0,-2*ht),at}),go.Shape.defineFigureGenerator("Cylinder3",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=Jt*.5,mt=new go.PathFigure(ht,0,!0);at.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Jt*ht,0,et,(.5-ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-Jt*ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Jt*ht,nt,0,(.5+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,Jt*ht,0));var wt=new go.PathFigure(ht,0,!1);return at.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+Jt*ht,0,2*ht,(.5-ft)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+ft)*nt,ht+Jt*ht,nt)),at.spot1=new go.Spot(0,0,2*ht,0),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Cylinder4",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=Jt*.5,mt=new go.PathFigure(et-ht,0,!0);at.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Jt*ht,0,et,(.5-ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-Jt*ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Jt*ht,nt,0,(.5+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,Jt*ht,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var wt=new go.PathFigure(et-ht,0,!1);return at.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-Jt*ht,0,et-2*ht,(.5-ft)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+ft)*nt,et-ht-Jt*ht,nt)),at.spot1=new go.Spot(0,0),at.spot2=new go.Spot(1,1,-2*ht,0),at}),go.Shape.defineFigureGenerator("Prism1",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,.25*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.25*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(0,nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var ft=new go.PathFigure(.5*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var ft=new go.PathFigure(.5*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Ot,et,nt){var ht=new go.Geometry,at=.2,ft=.1,mt=Jt*at,wt=Jt*ft,Et=.5,Nt=.1,Dt=new go.PathFigure(Et*et,(Nt+ft)*nt,!0);ht.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-at)*et,Nt*nt,(Et-mt)*et,(Nt+ft)*nt,(Et-at)*et,(Nt+wt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-ft)*nt,(Et-at)*et,(Nt-wt)*nt,(Et-mt)*et,(Nt-ft)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+at)*et,Nt*nt,(Et+mt)*et,(Nt-ft)*nt,(Et+at)*et,(Nt-wt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt+ft)*nt,(Et+at)*et,(Nt+wt)*nt,(Et+mt)*et,(Nt+ft)*nt));var At=.05,Kt=Jt*At;Et=.05,Nt=.25;var Wt=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Et=.95,Nt=.25,Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+At)*et,Nt*nt,(Et+Kt)*et,(Nt-At)*nt,(Et+At)*et,(Nt-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),At=.025,Kt=Jt*At,Et=.825,Nt=.35,Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-At)*nt,(Et+At)*et,(Nt-Kt)*nt,(Et+Kt)*et,(Nt-At)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-At)*et,Nt*nt,(Et-Kt)*et,(Nt-At)*nt,(Et-At)*et,(Nt-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),At=.05,Kt=Jt*At,Et=.5,Nt=.7,Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-At)*nt,(Et+At)*et,(Nt-Kt)*nt,(Et+Kt)*et,(Nt-At)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-At)*et,Nt*nt,(Et-Kt)*et,(Nt-At)*nt,(Et-At)*et,(Nt-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),At=.025,Kt=Jt*At,Et=.175,Nt=.35,Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-At)*nt,(Et+At)*et,(Nt-Kt)*nt,(Et+Kt)*et,(Nt-At)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-At)*et,Nt*nt,(Et-Kt)*et,(Nt-At)*nt,(Et-At)*et,(Nt-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),At=.05,Kt=Jt*At,Et=.05,Nt=.25,Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-At)*nt,(Et-At)*et,(Nt-Kt)*nt,(Et-Kt)*et,(Nt-At)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new Sn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;isNaN(ht)&&(ht=.2);var at=new go.Geometry,ft=new go.PathFigure(et,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),at.spot1=new go.Spot(0,ht),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Collate",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var ft=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,at*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-at)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=Jt*.1,mt=new go.PathFigure(et,.1*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ft)*nt,(.5-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+at)*et,0,et,(.1-ft)*nt));var wt=new go.PathFigure(et,.1*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-at)*et,.3*nt,0,(.2+ft)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+ft)*nt,(.5+at)*et,.4*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-at)*et,.4*nt,0,(.3+ft)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=Jt*.1,mt=new go.PathFigure(et,.1*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ft)*nt,(.5-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+at)*et,0,et,(.1-ft)*nt));var wt=new go.PathFigure(et,.1*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-at)*et,.3*nt,0,(.2+ft)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)?at=.2:at<.15&&(at=.15);var ft=Jt*.2,mt=new go.PathFigure(0,.2*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ft)*nt,(.2-ft)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+ft)*et,0,et,(.2-ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+ft)*nt,(.8+ft)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-ft)*et,nt,0,(.8+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var wt=new go.PathFigure(0,at*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;(isNaN(at)||at<.1)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,at*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Ot,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;(isNaN(at)||at<.2)&&(at=.2);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(at*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,at*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,et,at*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-at)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var ft=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(.75*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var ft=new go.PathFigure(et,.5*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt));var mt=new go.PathFigure(et,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN,ft=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.1);var mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var wt=new go.PathFigure(at*et,0,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,ft*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,et,ft*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Ot,et,nt){var ht=new go.Geometry,at=1/Math.SQRT2,ft=(1-1/Math.SQRT2)/2,mt=Jt*.5,wt=.5,Et=new go.PathFigure(et,wt*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,nt,et,(wt+mt)*nt,(wt+mt)*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*nt,(wt-mt)*et,nt,0,(wt+mt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,0,0,(wt-mt)*nt,(wt-mt)*et,0)),Et.add(new go.PathSegment(go.PathSegment.Bezier,et,wt*nt,(wt+mt)*et,0,et,(wt-mt)*nt));var Nt=new go.PathFigure((ft+at)*et,(ft+at)*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,ft*et,ft*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,ft*et,(ft+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(ft+at)*et,ft*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Ot,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var ft=new go.PathFigure(.1*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=.5,mt=new go.PathFigure(.5*et,nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+.1)*et,.9*nt,et,(ft+at)*nt,(ft+at)*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.7);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,at*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.25);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,at*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Ot,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ft=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,.1*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var ft=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.1);var ft=1-at,mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var wt=new go.PathFigure(.5*at*et,at*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*at)*et,at*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=.5,mt=new go.PathFigure(et,ft*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,nt,et,(ft+at)*nt,(ft+at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt));var wt=new go.PathFigure(et,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Ot,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN,ft=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN,ft=Ot?Ot.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure((1-at)*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,at*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(at*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var ft=new go.PathFigure(0,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.25);var ft=new go.PathFigure(at*et,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var mt=new go.PathFigure(at*et,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,nt)),ht.spot1=new go.Spot(at,0),ht.spot2=new go.Spot(1-at,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ot,et,nt){var ht=new go.Geometry,at=Ot?Ot.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+at)*et,0,et,(.5-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+at)*nt,(.5+at)*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=.5,mt=new go.PathFigure(et,ft*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,nt,et,(ft+at)*nt,(ft+at)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt));var wt=new go.PathFigure(et,ft*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,ft*nt));var Et=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.1,ft=.1,mt=.9,wt=.5,Et=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Et.add(new go.PathSegment(go.PathSegment.Line,0,0)),Et.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Nt=new go.PathFigure((mt+ft)*et,wt*nt,!0);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,(mt+at)*et,(wt-ft)*nt,(mt+ft)*et,(wt-at)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=Jt*.4,mt=Jt*.1,wt=.1,Et=.9,Nt=.5,Dt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+ft)*nt,(.4+at)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+at)*et,0,.8*et,(.5-ft)*nt));var At=new go.PathFigure((Et+wt)*et,Nt*nt,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt+wt)*nt,(Et+wt)*et,(Nt+mt)*nt,(Et+mt)*et,(Nt+wt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*et,Nt*nt,(Et-mt)*et,(Nt+wt)*nt,(Et-wt)*et,(Nt+mt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-wt)*nt,(Et-wt)*et,(Nt-mt)*nt,(Et-mt)*et,(Nt-wt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*et,Nt*nt,(Et+mt)*et,(Nt-wt)*nt,(Et+wt)*et,(Nt-mt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*at,mt=0,wt=.5,Et=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+ft)*et,(wt-at)*nt,.7*et,(wt-ft)*nt)),at=.1,ft=Jt*.1,mt=.9,wt=.5;var Nt=new go.PathFigure((mt-at)*et,wt*nt,!0);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*at,mt=0,wt=.5,Et=new go.PathFigure(0,0,!0);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+ft+ft)*et,(wt-at)*nt,.8*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(wt+ft)*nt,(mt+ft+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*at,mt=.2,wt=.5,Et=new go.PathFigure(.1*et,0,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Nt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+ft)*et,(wt-at)*nt,.7*et,(wt-ft)*nt)),at=.1,ft=Jt*.1,mt=.9,wt=.5;var Dt=new go.PathFigure((mt-at)*et,wt*nt,!0);return ht.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*at,mt=.2,wt=.5,Et=new go.PathFigure(.1*et,0,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Nt=new go.PathFigure(.2*et,0,!0);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+ft)*et,(wt-at)*nt,.9*et,(wt-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.1,ft=.1,mt=.1,wt=.5,Et=new go.PathFigure((mt-at*.5)*et,nt,!1);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,0,(mt-at)*et,nt,(mt-ft)*et,0)),mt=.3,Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+ft)*et,0,(mt+at)*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,0,(mt-at)*et,nt,(mt-ft)*et,0)),mt=.5,Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+ft)*et,0,(mt+at)*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,0,(mt-at)*et,nt,(mt-ft)*et,0)),mt=.7,Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+ft)*et,0,(mt+at)*et,nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,0,(mt-at)*et,nt,(mt-ft)*et,0)),mt=.9,Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at*.5)*et,nt,(mt+ft)*et,0,(mt+at)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.5,ft=.5,mt=.5,wt=.5,Et=new go.PathFigure((mt-ft)*et,wt*nt,!1);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,(mt+at)*et,(wt-ft)*nt,(mt+ft)*et,(wt-at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Move,(mt-ft+.1)*et,wt*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft-.1)*et,wt*nt,mt*et,(wt-ft)*nt,mt*et,(wt+ft)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.75*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Ot,et,nt){var ht=new go.Geometry,at=et,ft=nt;et=et*.38,nt=nt*.6;var mt=Jt*.8,wt=.8,Et=0,Nt=.5,Dt=(at-et)/2,At=(ft-nt)/2,Kt=new go.PathFigure(Et*et+Dt,(Nt+wt)*nt+At,!0);ht.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*et+Dt,Nt*nt+At,(Et-mt)*et+Dt,(Nt+wt)*nt+At,(Et-wt)*et+Dt,(Nt+mt)*nt+At)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt-wt)*nt+At,(Et-wt)*et+Dt,(Nt-mt)*nt+At,(Et-mt)*et+Dt,(Nt-wt)*nt+At)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+mt*.5)*et+Dt,Nt*nt+At,Et*et+Dt,(Nt-wt)*nt+At,(Et-wt+mt*.5)*et+Dt,(Nt-mt)*nt+At)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt+wt)*nt+At,(Et-wt+mt*.5)*et+Dt,(Nt+mt)*nt+At,Et*et+Dt,(Nt+wt)*nt+At).close()),mt=Jt*.4,wt=.4,Et=.2,Nt=.5;var Wt=new go.PathFigure(Et*et+Dt,(Nt+wt)*nt+At,!0);ht.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*et+Dt,Nt*nt+At,(Et-mt)*et+Dt,(Nt+wt)*nt+At,(Et-wt)*et+Dt,(Nt+mt)*nt+At)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt-wt)*nt+At,(Et-wt)*et+Dt,(Nt-mt)*nt+At,(Et-mt)*et+Dt,(Nt-wt)*nt+At)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+mt*.5)*et+Dt,Nt*nt+At,Et*et+Dt,(Nt-wt)*nt+At,(Et-wt+mt*.5)*et+Dt,(Nt-mt)*nt+At)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt+wt)*nt+At,(Et-wt+mt*.5)*et+Dt,(Nt+mt)*nt+At,Et*et+Dt,(Nt+wt)*nt+At).close()),mt=Jt*.2,wt=.2,Et=.5,Nt=.5;var xe=new go.PathFigure((Et-wt)*et+Dt,Nt*nt+At,!0);ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt-wt)*nt+At,(Et-wt)*et+Dt,(Nt-mt)*nt+At,(Et-mt)*et+Dt,(Nt-wt)*nt+At)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*et+Dt,Nt*nt+At,(Et+mt)*et+Dt,(Nt-wt)*nt+At,(Et+wt)*et+Dt,(Nt-mt)*nt+At)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt+wt)*nt+At,(Et+wt)*et+Dt,(Nt+mt)*nt+At,(Et+mt)*et+Dt,(Nt+wt)*nt+At)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*et+Dt,Nt*nt+At,(Et-mt)*et+Dt,(Nt+wt)*nt+At,(Et-wt)*et+Dt,(Nt+mt)*nt+At)),mt=Jt*.4,wt=.4,Et=.8,Nt=.5;var Vt=new go.PathFigure(Et*et+Dt,(Nt-wt)*nt+At,!0);ht.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*et+Dt,Nt*nt+At,(Et+mt)*et+Dt,(Nt-wt)*nt+At,(Et+wt)*et+Dt,(Nt-mt)*nt+At)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt+wt)*nt+At,(Et+wt)*et+Dt,(Nt+mt)*nt+At,(Et+mt)*et+Dt,(Nt+wt)*nt+At)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-mt*.5)*et+Dt,Nt*nt+At,Et*et+Dt,(Nt+wt)*nt+At,(Et+wt-mt*.5)*et+Dt,(Nt+mt)*nt+At)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt-wt)*nt+At,(Et+wt-mt*.5)*et+Dt,(Nt-mt)*nt+At,Et*et+Dt,(Nt-wt)*nt+At).close()),mt=Jt*.8,wt=.8,Et=1,Nt=.5;var Ie=new go.PathFigure(Et*et+Dt,(Nt-wt)*nt+At,!0);return ht.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*et+Dt,Nt*nt+At,(Et+mt)*et+Dt,(Nt-wt)*nt+At,(Et+wt)*et+Dt,(Nt-mt)*nt+At)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt+wt)*nt+At,(Et+wt)*et+Dt,(Nt+mt)*nt+At,(Et+mt)*et+Dt,(Nt+wt)*nt+At)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-mt*.5)*et+Dt,Nt*nt+At,Et*et+Dt,(Nt+wt)*nt+At,(Et+wt-mt*.5)*et+Dt,(Nt+mt)*nt+At)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Et*et+Dt,(Nt-wt)*nt+At,(Et+wt-mt*.5)*et+Dt,(Nt-mt)*nt+At,Et*et+Dt,(Nt-wt)*nt+At).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Move,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.35*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ft=new go.PathFigure(.1*et,nt,!0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var mt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var wt=new go.PathFigure(0,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Ot,et,nt){var ht=new go.Geometry,at=Jt*.4,ft=.4,mt=.5,wt=.5,Et=vt(),Nt=vt(),Dt=vt(),At=vt();de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.5,Et,Et,Nt,Dt,At);var Kt=Pt(Nt.x,Nt.y),Wt=new go.PathFigure(Nt.x*et,Nt.y*nt,!0);ht.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,Dt.x*et,Dt.y*nt,At.x*et,At.y*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,(mt-at)*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt)),de(mt-ft,wt,mt-ft,wt-at,mt-at,wt-ft,mt,wt-ft,.5,Dt,At,Nt,Et,Et),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*et,Nt.y*nt,Dt.x*et,Dt.y*nt,At.x*et,At.y*nt)),at=Jt*.3,ft=.3,de(mt-ft,wt,mt-ft,wt-at,mt-at,wt-ft,mt,wt-ft,.5,Dt,At,Nt,Et,Et),Wt.add(new go.PathSegment(go.PathSegment.Line,Nt.x*et,Nt.y*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ft)*et,wt*nt,At.x*et,At.y*nt,Dt.x*et,Dt.y*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+ft)*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ft)*et,wt*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),de(mt,wt-ft,mt+at,wt-ft,mt+ft,wt-at,mt+ft,wt,.5,Et,Et,Nt,Dt,At),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*et,Nt.y*nt,At.x*et,At.y*nt,Dt.x*et,Dt.y*nt).close());var Wt=new go.PathFigure(.45*et,0,!0);return ht.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),It(Et),It(Nt),It(Dt),It(At),It(Kt),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt/2,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function ft(mt,wt,Et){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*et,(.8+Et)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*et,(.5+Et)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*et,(.5+Et)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*et,(.8+Et)*nt).close())}return ft(at,0,0),ft(at,.4,0),ft(at,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.2*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.37*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=0,mt=0,wt=at*Jt,Et=.4*Math.SQRT2/2+.5,Nt=.5-.5*Math.SQRT2/2,Dt=1,At=.5,Kt=.5,Wt=0,xe=new go.PathFigure(Et*et,(1-Nt)*nt,!1);return ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,At*nt,Dt*et,.7*nt,Dt*et,At*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+ft)*et,(Wt+ft)*nt,(.5+at+ft)*et,(.5-wt+ft)*nt,(.5+wt+ft)*et,(.5-at+ft)*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+mt)*nt,(.5-wt+ft)*et,(.5-at+mt)*nt,(.5-at+ft)*et,(.5-wt+mt)*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ft)*et,.9*nt,(.5-at+ft)*et,(.5+wt+mt)*nt,(.5-wt+ft)*et,.9*nt)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+ft)*et,.8*nt)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+ft)*et,.9*nt)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+ft)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(et,nt,!1);ht.add(ft);var mt=new go.PathFigure(0,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.2*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var at=new go.PathFigure(0,.2*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.7*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var ft=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var mt=.5-.285,wt=.5,Et=mt,Nt=Math.PI/4,Dt=4*(1-Math.cos(Nt))/(3*Math.sin(Nt)),At=Dt*.5,Kt=mt,Wt=mt,xe=Dt*Kt,Vt=Dt*Wt;ft.add(new go.PathSegment(go.PathSegment.Bezier,(wt-Kt)*et,Et*nt,(wt-(xe+Kt)/2)*et,(Et+(Wt+Vt)/2)*nt,(wt-Kt)*et,(Et+Vt)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Et-Wt)*nt,(wt-Kt)*et,(Et-Vt)*nt,(wt-xe)*et,(Et-Wt)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(wt+Kt)*et,Et*nt,(wt+xe)*et,(Et-Wt)*nt,(wt+Kt)*et,(Et-Vt)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(wt+Kt)*et,(Et+Vt)*nt,(wt+(xe+Kt)/2)*et,(Et+(Wt+Vt)/2)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Ie=new go.PathFigure(.2*et,nt,!1);ht.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var Se=new go.PathFigure(.8*et,nt,!1);return ht.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var ft=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(et,nt,!1);ht.add(ft);var mt=new go.PathFigure(.1*et,nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.05*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var ft=.05;return at.add(new go.PathSegment(go.PathSegment.Move,(.5-ft)*et,.875*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,ft*et,ft*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.45*et,.95*nt,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var ft=new go.PathFigure(.475*et,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var mt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*.5,mt=new go.PathFigure(et,at*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,at*et,nt,et,(at+ft)*nt,(at+ft)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,at*nt,(at-ft)*et,nt,0,(at+ft)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,at*et,0,0,(at-ft)*nt,(at-ft)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,at*nt,(at+ft)*et,0,et,(at-ft)*nt));var wt=new go.PathFigure(at*et,0,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,at*et,.15*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,at*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,at*et,.85*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*et,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.15*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(0,.15*nt,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(0,.5*nt,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var ft=new go.PathFigure(0,.2*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var mt=new go.PathFigure(0,.6*nt,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.15*et,.6*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var ft=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(et,.8*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var mt=.1,wt=Jt*.1,Et=.2,Nt=.9,Dt=new go.PathFigure((Et-mt)*et,Nt*nt,!0);ht.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-mt)*nt,(Et-mt)*et,(Nt-wt)*nt,(Et-wt)*et,(Nt-mt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+mt)*et,Nt*nt,(Et+wt)*et,(Nt-mt)*nt,(Et+mt)*et,(Nt-wt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt+mt)*nt,(Et+mt)*et,(Nt+wt)*nt,(Et+wt)*et,(Nt+mt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-mt)*et,Nt*nt,(Et-wt)*et,(Nt+mt)*nt,(Et-mt)*et,(Nt+wt)*nt).close()),mt=.1,wt=Jt*.1,Et=.8,Nt=.9;var At=new go.PathFigure((Et-mt)*et,Nt*nt,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt-mt)*nt,(Et-mt)*et,(Nt-wt)*nt,(Et-wt)*et,(Nt-mt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Et+mt)*et,Nt*nt,(Et+wt)*et,(Nt-mt)*nt,(Et+mt)*et,(Nt-wt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Nt+mt)*nt,(Et+mt)*et,(Nt+wt)*nt,(Et+wt)*et,(Nt+mt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Et-mt)*et,Nt*nt,(Et-wt)*et,(Nt+mt)*nt,(Et-mt)*et,(Nt+wt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.2*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0));var ft=new go.PathFigure(0,.5*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var mt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var wt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Et=.1,Nt=Jt*.1,Dt=.1,At=.9,Kt=new go.PathFigure((Dt-Et)*et,At*nt,!0);ht.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(At-Et)*nt,(Dt-Et)*et,(At-Nt)*nt,(Dt-Nt)*et,(At-Et)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Et)*et,At*nt,(Dt+Nt)*et,(At-Et)*nt,(Dt+Et)*et,(At-Nt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(At+Et)*nt,(Dt+Et)*et,(At+Nt)*nt,(Dt+Nt)*et,(At+Et)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Et)*et,At*nt,(Dt-Nt)*et,(At+Et)*nt,(Dt-Et)*et,(At+Nt)*nt)),Et=.1,Nt=Jt*.1,Dt=.4,At=.9;var Wt=new go.PathFigure((Dt-Et)*et,At*nt,!0);return ht.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(At-Et)*nt,(Dt-Et)*et,(At-Nt)*nt,(Dt-Nt)*et,(At-Et)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Et)*et,At*nt,(Dt+Nt)*et,(At-Et)*nt,(Dt+Et)*et,(At-Nt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(At+Et)*nt,(Dt+Et)*et,(At+Nt)*nt,(Dt+Nt)*et,(At+Et)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Et)*et,At*nt,(Dt-Nt)*et,(At+Et)*nt,(Dt-Et)*et,(At+Nt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,.4*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var ft=new go.PathFigure(.45*et,.7*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var mt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Dt=.05,At=Jt*.05,Kt=.175,Wt=.95,wt=new go.PathFigure((Kt-Dt)*et,Wt*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt-Dt)*nt,(Kt-Dt)*et,(Wt-At)*nt,(Kt-At)*et,(Wt-Dt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Dt)*et,Wt*nt,(Kt+At)*et,(Wt-Dt)*nt,(Kt+Dt)*et,(Wt-At)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt+Dt)*nt,(Kt+Dt)*et,(Wt+At)*nt,(Kt+At)*et,(Wt+Dt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Dt)*et,Wt*nt,(Kt-At)*et,(Wt+Dt)*nt,(Kt-Dt)*et,(Wt+At)*nt));var Dt=.05,At=Jt*.05,Kt=.375,Wt=.95,Et=new go.PathFigure((Kt-Dt)*et,Wt*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt-Dt)*nt,(Kt-Dt)*et,(Wt-At)*nt,(Kt-At)*et,(Wt-Dt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Dt)*et,Wt*nt,(Kt+At)*et,(Wt-Dt)*nt,(Kt+Dt)*et,(Wt-At)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt+Dt)*nt,(Kt+Dt)*et,(Wt+At)*nt,(Kt+At)*et,(Wt+Dt)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Dt)*et,Wt*nt,(Kt-At)*et,(Wt+Dt)*nt,(Kt-Dt)*et,(Wt+At)*nt));var Dt=.05,At=Jt*.05,Kt=.625,Wt=.95,Nt=new go.PathFigure((Kt-Dt)*et,Wt*nt,!0);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt-Dt)*nt,(Kt-Dt)*et,(Wt-At)*nt,(Kt-At)*et,(Wt-Dt)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Dt)*et,Wt*nt,(Kt+At)*et,(Wt-Dt)*nt,(Kt+Dt)*et,(Wt-At)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt+Dt)*nt,(Kt+Dt)*et,(Wt+At)*nt,(Kt+At)*et,(Wt+Dt)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Dt)*et,Wt*nt,(Kt-At)*et,(Wt+Dt)*nt,(Kt-Dt)*et,(Wt+At)*nt));var Dt=.05,At=Jt*.05,Kt=.825,Wt=.95,xe=new go.PathFigure((Kt-Dt)*et,Wt*nt,!0);ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt-Dt)*nt,(Kt-Dt)*et,(Wt-At)*nt,(Kt-At)*et,(Wt-Dt)*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Dt)*et,Wt*nt,(Kt+At)*et,(Wt-Dt)*nt,(Kt+Dt)*et,(Wt-At)*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(Wt+Dt)*nt,(Kt+Dt)*et,(Wt+At)*nt,(Kt+At)*et,(Wt+Dt)*nt)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Dt)*et,Wt*nt,(Kt-At)*et,(Wt+Dt)*nt,(Kt-Dt)*et,(Wt+At)*nt).close());var Vt=new go.PathFigure(0,nt,!1);return ht.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(.15*et,nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var wt=.05,Et=Jt*.05,Nt=.35,Dt=.775,At=new go.PathFigure((Nt-wt)*et,Dt*nt,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Dt-wt)*nt,(Nt-wt)*et,(Dt-Et)*nt,(Nt-Et)*et,(Dt-wt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+wt)*et,Dt*nt,(Nt+Et)*et,(Dt-wt)*nt,(Nt+wt)*et,(Dt-Et)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Dt+wt)*nt,(Nt+wt)*et,(Dt+Et)*nt,(Nt+Et)*et,(Dt+wt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-wt)*et,Dt*nt,(Nt-Et)*et,(Dt+wt)*nt,(Nt-wt)*et,(Dt+Et)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.75*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.25*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Ot,et,nt){var ht=new go.Geometry,at=.3,ft=Jt*.3,mt=.5,wt=.7,Et=new go.PathFigure((mt-at)*et,wt*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt));var Nt=new go.PathFigure(0,.7*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var ft=new go.PathFigure(0,.6*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*.5,mt=.5,wt=.5,Et=new go.PathFigure((mt-at)*et,wt*nt,!0);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt));var Nt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.1*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Ot,et,nt){var ht=new go.Geometry,at=.5,ft=Jt*.5,mt=.5,wt=.5,Et=new go.PathFigure((mt-at)*et,wt*nt,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt).close()),at=.05,ft=Jt*.05,mt=.5,wt=.8;var Nt=new go.PathFigure((mt-at)*et,wt*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt-at)*nt,(mt-at)*et,(wt-ft)*nt,(mt-ft)*et,(wt-at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+at)*et,wt*nt,(mt+ft)*et,(wt-at)*nt,(mt+at)*et,(wt-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(wt+at)*nt,(mt+at)*et,(wt+ft)*nt,(mt+ft)*et,(wt+at)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-at)*et,wt*nt,(mt-ft)*et,(wt+at)*nt,(mt-at)*et,(wt+ft)*nt).close()),Nt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var ft=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var ft=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.2*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),at.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var ft=new go.PathFigure(0,nt*.6,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*1,nt*1,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var ft=new go.PathFigure(.126*et,.85*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var mt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var wt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Et=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Et.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt*1,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),at.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),at.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt*1,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var ft=new go.PathFigure(et*.204,nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var mt=new go.PathFigure(et*.408,nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var wt=new go.PathFigure(et*.612,nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Et=new go.PathFigure(et*.816,nt,!0);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Et.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Et.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ft=new go.PathFigure(et*.055,.07*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var mt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var wt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Et=new go.PathFigure(et*1,0,!0);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Et.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Et.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.55*et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*1,nt*.5,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),at.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var ft=new go.PathFigure(0,0,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var mt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var wt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Et=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Et.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Et.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ot,et,nt){var ht=new go.Geometry,at=8,ft=at*Jt,mt=new go.PathFigure(at,0,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-at)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-at,nt,et,nt-ft,et-ft,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,at,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-at,ft,nt,0,nt-ft)),mt.add(new go.PathSegment(go.PathSegment.Line,0,at)),mt.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,ft,ft,0).close());var wt=new go.PathFigure(et*.83,0,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Et=new go.PathFigure(et*.83,nt*1,!1);ht.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Nt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ot,et,nt){var ht=Ot?Ot.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*Jt,ft=nt*.8,mt=new go.Geometry,wt=new go.PathFigure(ht,0,!0);return mt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-at,0,et,at)),wt.add(new go.PathSegment(go.PathSegment.Line,et,ft-ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,ft,et,ft-at,et-at,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ft)),wt.add(new go.PathSegment(go.PathSegment.Line,ht,ft)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft-ht,at,ft,0,ft-at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,at,at,0).close()),at>1?(mt.spot1=new go.Spot(0,0,at,at),mt.spot2=new go.Spot(1,.8,-at,-at)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*.45,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var ft=new go.PathFigure(et*1,nt*.55,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*.1,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var ft=new go.PathFigure(et*.1,nt*.2,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var mt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Ot,et,nt){var ht=new go.Geometry,at=15,ft=at*Jt,mt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-at)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-at,nt,et,nt-ft,et-ft,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,at,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-at,ft,nt,0,nt-ft)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),ft>1?(ht.spot1=new go.Spot(0,0,ft,ft),ht.spot2=new go.Spot(1,1,-ft,-ft)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close());var mt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;return at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close());var mt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.15,nt*0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.15,nt*0,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var ft=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Ot,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.5,nt*0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Sn={},Ve="5.0",Pt={},vt=null,It=!1,oe=!1,de=null,$t=!1,Ut=null,Jt=null,De=0;De4?parseFloat(Ee):5};Sn.setHTML5Codebase=function(Ee,Ke){Jt=Ee,ke(Ee,Ke)},Sn.setJavaCodebase=Sn.setJavaCodebaseVersion=Sn.isCompiledInstalled=Sn.setPreCompiledScriptPath=Sn.setPreCompiledResourcePath=function(){},Sn.setHTML5CodebaseVersion=function(Ee,Ke){var gn=parseFloat(Ee);if(gn!==NaN&&gn<5){console.log("The GeoGebra HTML5 codebase version "+gn+" is deprecated. Using version latest instead.");return}Ut=Ee,Ht(Ee,Ke)},Sn.getHTML5CodebaseVersion=function(){return Ot},Sn.getParameters=function(){return Pt},Sn.setFontsCSSURL=function(Ee){mt=Ee},Sn.setGiacJSURL=function(Ee){},Sn.setJNLPFile=function(Ee){te=Ee},Sn.setJNLPBaseDir=function(Ee){},Sn.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ke="auto",gn=Pt.id,Bn,dn=!1,In=0;In=5)return!0;var Ee=Sn.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},Sn.startAnimation=function(){var Ee=Sn.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},Sn.stopAnimation=function(){var Ee=Sn.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},Sn.getAppletObject=function(){var Ee=Pt.id!==void 0?Pt.id:"ggbApplet";return window[Ee]},Sn.resize=function(){};var xe=function(Ee,Ke,gn){var Bn=document.createElement("param");Bn.setAttribute("name",Ke),Bn.setAttribute("value",gn),Ee.appendChild(Bn)},Vt=function(Ee){return Ee&&Ee!=="false"},Ie=function(Ee,Ke,gn){Et(Ot)<=4.2&&(gn=!0);var Bn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ot||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Bn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var dn=document.createElement("div");dn.classList.add("appletParameters","notranslate");var In=Ke.width,Ce=Ke.height;if(Ke.disableAutoScale=Ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ke.disableAutoScale,Ke.width!==void 0)if(Et(Ot)<=4.4)Vt(Ke.showToolBar)&&(Ke.height-=7),Vt(Ke.showAlgebraInput)&&(Ke.height-=37),Ke.width<605&&Vt(Ke.showToolBar)&&(Ke.width=605,In=605);else{var $n=100;(Vt(Ke.showToolBar)||Vt(Ke.showMenuBar))&&(Ke.hasOwnProperty("customToolBar")&&(Ke.customToolbar=Ke.customToolBar),$n=Vt(Ke.showMenuBar)?245:155),In<$n&&(Ke.width=$n,In=$n)}dn.style.border="none",dn.style.display="inline-block";for(var Qn in Ke)Ke.hasOwnProperty(Qn)&&Qn!=="appletOnLoad"&&dn.setAttribute("data-param-"+Qn,Ke[Qn]);mt&&dn.setAttribute("data-param-fontscssurl",mt),Sn.resize=function(){GGBAppletUtils.responsiveResize(Ee,Ke)},window.addEventListener("resize",function(ne){Sn.resize()});var jt=typeof Ke.appletOnLoad=="function"?Ke.appletOnLoad:function(){};if(!gn&&Ke.width!==void 0){Ke.hasOwnProperty("showSplash")||dn.setAttribute("data-param-showSplash","false");var Lt=Ee.querySelector(".applet_scaler.prerender"),xt=Lt!==null;if(xt)var Tt=Lt.querySelector(".ggb_preview");else{var Tt=We(In,Ce,Ke.borderColor,!1);Lt=document.createElement("div"),Lt.className="applet_scaler",Lt.style.position="relative",Lt.style.display="block",Lt.style.width=In+"px",Lt.style.height=Ce+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Lt,"66%"),Et(Ot)>=5?(Ke.appletOnLoad=function(ne){var Ne=Ee.querySelector(".ggb_preview");Ne&&Ne.parentNode.removeChild(Ne),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Lt),window.GGBT_wsf_view&&$(window).trigger("resize"),jt(ne)},xt||Lt.appendChild(Tt)):dn.appendChild(Tt),Lt.appendChild(dn),xt||Ee.appendChild(Lt),setTimeout(function(){Sn.resize()},1)}else{var Ft=document.createElement("div");Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.appendChild(dn),Ee.appendChild(Ft),Ke.appletOnLoad=function(ne){Sn.resize(),jt(ne)}}function yt(ne,Ne){Ne&&typeof Ne.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ne,Ne.appletOnLoad):renderGGBElement(ne),pn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ne)}function ee(ne,Ne){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ne,params:Ne}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(hn){yt(hn.article,hn.params)}),html5AppletsToProcess=null)},Et(Ot)<5&&(ne.className+=" geogebraweb")):yt(ne,Ne)}if(Bn){scriptLoadStarted=!0;for(var pe=0;pe0?(Qn.remove(),Lt.attr("id","fullscreencontent").show(),jQuery(jt).append(Lt),window.dispatchEvent(new Event("resize"))):Ie(Qn,Ke,!1),window.GGBT_wsf_view.launchFullScreen(jt)}else me=Bn,Ie(Ee,Ke,!1);if(!window.GGBT_wsf_view)for(Ce=0;Ce<$n.length;Ce++)Ee.removeChild($n[Ce])},In=Ee.getElementsByClassName("ggb_preview_play"),Ce=0;CeEe/4*3&&(Qn=Ee/4*3),jt=Qn/5.8,$n.setAttribute("src",at),$n.setAttribute("width",Qn),$n.setAttribute("height",jt);var Lt=(Ee-Qn)/2,xt=(Ke-jt)/2;$n.style.left=Lt+"px",$n.style.top=xt+"px",dn.appendChild($n)}}return dn.appendChild(Ce),dn},Ue=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},ue=["web","webSimple","web3d","tablet","tablet3d","phone"],Ht=function(Ee,Ke){if(Ot=Ee,Ke){ke(Ot,!0);return}var gn=!It;if(gn){var Bn=Et(Ot);!isNaN(Bn)&&Bn<4.4&&(gn=!1)}var dn,In;window.location.protocol.substr(0,4)==="http"?dn=window.location.protocol:dn="http:";var Ce=Ot.indexOf("//");Ce>0?In=Ot:Ce===0?In=dn+Ot:In="https://www.geogebra.org/apps/5.2.814.0/";for(var $n in ue)if(Ot.slice(ue[$n].length*-1)===ue[$n]||Ot.slice((ue[$n].length+1)*-1)===ue[$n]+"/"){ke(In,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&gn&&!vt.is3D&&!vt.AV&&!vt.SV&&!vt.CV&&!vt.EV2&&!vt.CP&&!vt.PC&&!vt.DA&&!vt.FI&&!vt.PV&&!Vt(Pt.showToolBar)&&!Vt(Pt.showMenuBar)&&!Vt(Pt.showAlgebraInput)&&!Vt(Pt.enableRightClick)&&(!Pt.appName||Pt.appName=="classic")?In+="webSimple/":In+="web3d/",ke(In,!1)},ke=function(Ee,Ke){if(Ee.requirejs){Fe=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Fe=Ee,Ke===null&&(Ke=Ee.indexOf("http")===-1),re=Ke,et="web.nocache.js",nt=!1;var gn=Fe.split("/");gn.length>1&&(!Ke&&gn[gn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):ue.indexOf(gn[gn.length-2])>=0&&(et=gn[gn.length-2]+".nocache.js")),gn=Ee.split("/"),Ot=gn[gn.length-3],Ot.substr(0,4)==="test"?Ot=Ot.substr(4,1)+"."+Ot.substr(5,1):(Ot.substr(0,3)==="war"||Ot.substr(0,4)==="beta")&&(Ot="5.0");var Bn=parseFloat(Ot);Bn!==NaN&&Bn<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bn+" is deprecated. Using version latest instead."),Ht("5.0",Ke))},pn=function(Ee,Ke){window.console&&window.console.log&&(!Ke||typeof Ke.showLogging=="undefined"||Ke.showLogging&&Ke.showLogging!=="false")&&console.log(Ee)};Pt.material_id!==void 0?At(ln):ln();function ln(){var Ee=Ve;Ut!==null?Ee=Ut:parseFloat(Ee)<5&&(Ee="5.0"),Ht(Ee,!1),Jt!==null&&ke(Jt,re),$t=!0}return Sn},GGBAppletUtils=function(){"use strict";function Sn(){return window.GGBT_wsf_edit!==void 0}function Ve($t,Ut){Ut!=1?($t.style.transformOrigin="0% 0% 0px",$t.style.webkitTransformOrigin="0% 0% 0px",$t.style.transform="scale("+Ut+","+Ut+")",$t.style.webkitTransform="scale("+Ut+","+Ut+")",$t.style.maxWidth="initial",$t.querySelector(".ggb_preview")!==null&&($t.querySelector(".ggb_preview").style.maxWidth="initial"),$t.querySelectorAll(".ggb_preview img")[0]!==void 0&&($t.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),$t.querySelectorAll(".ggb_preview img")[1]!==void 0&&($t.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):($t.style.transform="none",$t.style.webkitTransform="none")}function Pt($t,Ut,Jt,De,we,te){var Fe=null;if(te!=null&&te!="")for(var re=$t.parentNode;re!=null;)if((" "+re.className+" ").indexOf(" "+te+" ")>-1){Fe=re;break}else re=re.parentNode;var me=0,Ot=0,et=0,nt=0,ht=0,at=0,ft=0;if(Fe)me=Fe.offsetWidth,Ot=Math.max(De?Fe.offsetWidth:0,Fe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(me=Math.min(window.innerWidth,document.documentElement.clientWidth),Ot=Math.min(window.innerHeight,document.documentElement.clientHeight),et=me):(me=window.innerWidth,Ot=window.innerHeight,et=window.innerWidth),$t){var mt=$t.getBoundingClientRect();mt.left>0&&mt.left<=me&&(we===void 0||!we)&&(document.dir==="rtl"?(ht=me-mt.width-mt.left,at=et<=480?10:30):(at=mt.left,ht=et<=480?10:30),nt=at+ht)}if($t&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=$t.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,ft=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,ft=40)}}return $t&&((Jt===void 0||!Jt)&&Ut>0&&Ut+nt1&&(te=!0)),Ut&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(te=!0),!($t.hasOwnProperty("disableAutoScale")&&$t.disableAutoScale))we=vt($t,Ut,te,Jt,$t.scaleContainerClass);else return De;return te&&(!$t.hasOwnProperty("scale")||De===1)?we:Math.min(De,we)}function oe($t){var Ut=Math.min(window.innerWidth,document.documentElement.clientWidth),Jt=Math.min(window.innerHeight,document.documentElement.clientHeight),De=$t.getBoundingClientRect(),we=(Ut-De.width)/2,te=(Jt-De.height)/2;te<0&&(te=0),$t.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?$t.style.left="40px":$t.style.left=we+"px",$t.style.top=te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te<40?$t.style.top="40px":$t.style.top=te+"px",$t.style.left=we+"px")}function de($t,Ut){var Jt=$t.querySelector(".appletParameters");if(Jt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ut.id!==Jt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition($t)}if(Jt.parentElement&&/fullscreen/.test(Jt.parentElement.className))return;var De=It(Ut,$t);Sn()&&Jt.setAttribute("data-param-scale",De);for(var we=null,te=0;te<$t.childNodes.length;te++)if($t.childNodes[te].className!==void 0&&$t.childNodes[te].className.match(/^applet_scaler/)){we=$t.childNodes[te];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var Fe=Ut.id!==void 0?Ut.id:"ggbApplet",re=window[Fe];(re==null||!re.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(De)&&De!==1?(we.parentNode.style.width=Ut.width*De+"px",we.parentNode.style.height=Ut.height*De+"px",Ve(we,De)):(Ve(we,1),we.parentNode.style.width=Ut.width+"px",we.parentNode.style.height=Ut.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe($t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Jt).parents(".content-added-content"))}}return{responsiveResize:de,isFlexibleWorksheetEditor:Sn,positionCenter:oe,getScale:It,scaleElement:Ve}}();__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="",W="",X="",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 Sn=n.location.search;return Sn.indexOf(J)!=-1||Sn.indexOf(K)!=-1}function q(Sn,Ve){}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(Sn){var Ve=s[L].bindings;s[L].bindings=function(){for(var Pt=Ve?Ve():{},vt=Sn[webModule.__softPermutationId],It=O;It=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(Sn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Sn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Sn){var Ve=c[Sn];return Ve==null?null:Ve},r=d,webModule.__errFn=e}function B(){function Sn($t){var Ut=$t.lastIndexOf(rb);Ut==-1&&(Ut=$t.length);var Jt=$t.indexOf(sb);Jt==-1&&(Jt=$t.length);var De=$t.lastIndexOf(tb,Math.min(Jt,Ut));return De>=O?$t.substring(O,De+P):W}function Ve($t){if(!$t.match(/^\w+:\/\//)){var Ut=o.createElement(ub);Ut.src=$t+vb,$t=Sn(Ut.src)}return $t}function Pt(){var $t=__gwt_getMetaProperty(wb);return $t!=null?$t:W}function vt(){for(var $t=o.getElementsByTagName(_),Ut=O;Ut<$t.length;++Ut)if($t[Ut].src.indexOf(xb)!=-1)return Sn($t[Ut].src);return W}function It(){var $t=o.getElementsByTagName(yb);return $t.length>O?$t[$t.length-P].href:W}function oe(){var $t=o.location;return $t.href==$t.protocol+zb+$t.host+$t.pathname+$t.search+$t.hash}var de=Pt();return de==W&&(de=vt()),de==W&&(de=It()),de==W&&oe()&&(de=Sn(o.location.href)),de=Ve(de),de}function C(Sn){return Sn.match(/^\//)||Sn.match(/^[a-zA-Z]+:\/\//)?Sn:webModule.__moduleBase+Sn}function D(){var Sn=[],Ve=O,Pt=[],vt=[];function It($t){var Ut=vt[$t](),Jt=Pt[$t];if(Ut in Jt)return Ut;var De=[];for(var we in Jt)De[Jt[we]]=we;throw r&&r($t,De,Ut),null}if(__gwt_isKnownPropertyValue=function($t,Ut){return Ut in Pt[$t]},webModule.__getPropMap=function(){var $t={};for(var Ut in Pt)Pt.hasOwnProperty(Ut)&&($t[Ut]=It(Ut));return $t},webModule.__computePropValue=It,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var de=oe.indexOf(Db);de!=-1&&(Ve=parseInt(oe.substring(de+P),$),oe=oe.substring(O,de))}catch($t){}return webModule.__softPermutationId=Ve,C(oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Ax:function(){return de},Ds:function(){return $t},KI:function(){return Jt},SI:function(){return oe},f1:function(){return It}});var vt=Pt(3294);function It(De){let we=!0;if(De.length>0){for(let te=0;tenew Promise((et,nt)=>{var ht=mt=>{try{ft(Ot.next(mt))}catch(wt){nt(wt)}},at=mt=>{try{ft(Ot.throw(mt))}catch(wt){nt(wt)}},ft=mt=>mt.done?et(mt.value):Promise.resolve(mt.value).then(ht,at);ft((Ot=Ot.apply(re,me)).next())}),Fe=({data:re,className:me,fullWidth:Ot,style:et={},onClose:nt,onOk:ht,showFullTools:at,noAssociationId:ft})=>{const mt=(0,vt.useRef)(null),wt=(0,vt.useRef)(null),Et=(0,vt.useRef)(null),Nt=(0,vt.useRef)(null),[Dt,At]=(0,vt.useState)(!1),[Kt,Wt]=(0,vt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,vt.useEffect)(()=>(Et.current||(Et.current=document.createElement("style"),document.head.appendChild(Et.current)),re!=null&&re.visible?(document.body.setAttribute("data-custom","y-hidden"),Et.current.innerHTML=" html { overflow-y: hidden; }",re!=null&&re.src&&xe()):(document.body.removeAttribute("data-custom"),Et.current&&(document.head.removeChild(Et.current),Et.current=null)),()=>{document.body.removeAttribute("data-custom"),Et.current&&(document.head.removeChild(Et.current),Et.current=null)}),[re==null?void 0:re.visible]);const xe=()=>we(void 0,null,function*(){At(!0),Wt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,De.ZJ)(re==null?void 0:re.src);mt.current.src="",mt.current.src=Ye,mt.current.onload=function(){Se()},At(!1),Wt("")}),Vt=Ye=>we(void 0,null,function*(){At(!0),Wt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Le=yield(0,Jt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:re.title,file:Ye.dataUrl}});Le!=null&&Le.id&&!ft?(yield(0,Jt.ZP)(`/api/attachments/${re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Le==null?void 0:Le.id,settings:JSON.stringify(Ye.state)}})).status===0&&ht():Le!=null&&Le.id&&ht(Le),At(!1),Wt("")}),Ie=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.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(Pe=>{const We=document.querySelector(Pe.name);We&&We.setAttribute("title",Pe.title)})},Se=()=>{wt.current=new Ut.hP(mt.current),wt.current.targetRoot=Nt.current,wt.current.addEventListener("render",Vt),wt.current.addEventListener("beforeclose",nt),at&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),re!=null&&re.snapshotData&&wt.current.restoreState(re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ie()},300)};return vt.createElement(vt.Fragment,null,(re==null?void 0:re.visible)&&vt.createElement($t.Z,{spinning:Dt,tip:Kt,style:{position:"absolute",width:"100vw"}},vt.createElement("div",{ref:Nt,className:de()(It.imageDimensions,me,Ot?It.fullWidth:""),style:et},vt.createElement("img",{className:It.img,ref:mt}))))}},41588:function(Sn,Ve,Pt){"use strict";var vt=Pt(59301),It=Pt(95237),oe=Pt(43604),de=Pt(99313),$t=Pt(3113),Ut=Pt(85149),Jt=Pt(88010),De=Pt(48136),we=Pt(59301);const te=(0,vt.forwardRef)(({callback:Fe,showSaveButton:re,value:me=""},Ot)=>{const et=(0,vt.useRef)(),nt=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ht=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],at=wt=>{et.current.setValue(et.current.getValue()+" "+wt.value+" ")},ft=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(It.Z,{className:Jt.Z.lists,gutter:[10,10]},nt.map((wt,Et)=>we.createElement(oe.Z,{flex:"110px",className:Jt.Z.item},we.createElement("div",null,we.createElement(Ut.Z,{value:`$$${wt.value}$$`}),wt.name),we.createElement("div",{className:Jt.Z.children},wt.children.map((Nt,Dt)=>we.createElement("div",{key:Dt},we.createElement("h1",null,Nt.name),we.createElement(It.Z,{gutter:[10,10]},Nt.data.map((At,Kt)=>we.createElement(oe.Z,{key:Kt,onClick:()=>at(At),className:Jt.Z.diamond},we.createElement(Ut.Z,{value:"`$$"+At.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(It.Z,{className:Jt.Z.lists,gutter:[10,10]},ht.map((wt,Et)=>we.createElement(oe.Z,{flex:"110px",className:Jt.Z.item},we.createElement("div",null,we.createElement(Ut.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),we.createElement("div",{className:Jt.Z.children},wt.children.map((Nt,Dt)=>we.createElement("div",{key:Dt},Nt.name&&we.createElement("h1",null,Nt.name),we.createElement(It.Z,{gutter:[10,10]},Nt.data.map((At,Kt)=>we.createElement(oe.Z,{key:Kt,onClick:()=>at(At),className:Jt.Z.diamond},we.createElement(Ut.Z,{value:"`$$"+At.value+"$$`"}))))))))))}],mt=()=>{var wt=document.createElement("div");wt.innerHTML=et.current.getValue();var Et=wt.innerText;return Fe&&Fe(Et),Et};return(0,vt.useImperativeHandle)(Ot,()=>({getData:mt})),we.createElement("div",{className:Jt.Z.mathWrap},we.createElement(de.default,{defaultActiveKey:"1",items:ft}),we.createElement("math-field",{locale:"zh_cn",className:Jt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},me||""),re&&we.createElement("div",{className:Jt.Z.button},we.createElement($t.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ve.Z=te},8797:function(Sn,Ve,Pt){"use strict";var vt=Pt(59301),It=Pt(93314),oe=Pt(3113),de=Object.defineProperty,$t=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,te=(Ot,et,nt)=>et in Ot?de(Ot,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ot[et]=nt,Fe=(Ot,et)=>{for(var nt in et||(et={}))De.call(et,nt)&&te(Ot,nt,et[nt]);if(Jt)for(var nt of Jt(et))we.call(et,nt)&&te(Ot,nt,et[nt]);return Ot},re=(Ot,et)=>$t(Ot,Ut(et));const me=({img:Ot,buttonProps:et={},styles:nt={},customText:ht,ButtonText:at,ButtonClick:ft,Buttonclass:mt,ButtonTwo:wt,imgStyles:Et,loading:Nt=!1})=>vt.createElement("section",{className:"tc animated fadeIn",style:Fe(Fe({},{color:"#999",margin:"100px auto",visibility:Nt?"hidden":"visible"}),nt)},vt.createElement("img",{src:Ot||It,style:re(Fe({},Et),{pointerEvents:"none",userSelect:"none"})}),vt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),at&&vt.createElement(oe.ZP,Fe({className:mt,onClick:ft},et),at),wt&&wt);Ve.Z=me},23210:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return mt}});var vt=Pt(59301),It={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=Pt(3113),de=Pt(70557),$t=Pt(23954),Ut=Pt(6848),Jt=Pt(955),De=Pt(94941),we=Pt(8797),te=Pt(3294),Fe=Pt(19381),re=Pt(59301),me=Object.defineProperty,Ot=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(wt,Et,Nt)=>Et in wt?me(wt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):wt[Et]=Nt,at=(wt,Et)=>{for(var Nt in Et||(Et={}))et.call(Et,Nt)&&ht(wt,Nt,Et[Nt]);if(Ot)for(var Nt of Ot(Et))nt.call(Et,Nt)&&ht(wt,Nt,Et[Nt]);return wt},ft=(wt,Et,Nt)=>new Promise((Dt,At)=>{var Kt=Vt=>{try{xe(Nt.next(Vt))}catch(Ie){At(Ie)}},Wt=Vt=>{try{xe(Nt.throw(Vt))}catch(Ie){At(Ie)}},xe=Vt=>Vt.done?Dt(Vt.value):Promise.resolve(Vt.value).then(Kt,Wt);xe((Nt=Nt.apply(wt,Et)).next())}),mt=({editOffice:wt="view",data:Et,theme:Nt,type:Dt,filename:At,monacoEditor:Kt,className:Wt,style:xe,close:Vt,onClose:Ie,hasMask:Se,disabledDownload:Ye,onImgDimensions:Le,showNodata:Pe,recordInfo:We})=>{const[Ue,ue]=(0,vt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ht,ke]=(0,vt.useState)(""),[pn,ln]=(0,vt.useState)(),Ee=window.ENV==="build"?"/react/build":"",Ke=location.host.startsWith("localhost")?te.Z.PROXY_SERVER:te.Z.API_SERVER,Bn=10*(1024*1024),dn=(0,vt.useRef)();Et!=null&&Et.startsWith("/api")&&Dt!=="txt"&&(Et=te.Z.API_SERVER+Et);const In=jt=>jt.substring(jt.lastIndexOf("/")+1).split(".").pop();At&&Kt&&(Kt.filename=At),(0,vt.useEffect)(()=>{var jt,Lt;const xt=(Lt=(jt=document.cookie)==null?void 0:jt.replace(/\s/g,""))==null?void 0:Lt.split(";");xt==null||xt.map(Tt=>{let Ft=Tt.split("=");Ft[0]==="_educoder_session"&&ke(Ft[1])})},[]),(0,vt.useEffect)(()=>{Dt==="office"&&(Et.indexOf("bigfilescdn.")>-1||Et.indexOf("bigfiles1")>-1?ln({url:Et,fileType:In(Et),model:Et.indexOf("model=edit")?"edit":"view"}):Ce())},[Dt,Et]);const Ce=()=>ft(void 0,null,function*(){console.log("data:",Et);let jt=Et;Et.startsWith("http")||(jt=location.origin+jt);let Lt=new URL(jt).pathname.split("/").pop();const xt=yield(0,De.gJ)({attachment_id:Lt});xt.url=Ke+xt.url,ln(xt)}),$n=()=>{if(Et.startsWith("http")||Et.startsWith("blob:")){Qn();return}(0,Jt.Sv)(At||"educoder",Et,At)},Qn=()=>{We&&(0,Fe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Jt.Nd)(At||"educoder",decodeURIComponent(Et))};return re.createElement("div",{style:at({},xe||{}),className:`${Se&&It.bgBlack} ${Dt?It.wrp:"hide"}`},Vt&&re.createElement("div",{className:It.close,ref:dn},!!Le&&re.createElement(Ut.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>dn.current},re.createElement("span",{onClick:()=>{Ie(),Le()}},re.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&re.createElement(Ut.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>dn.current},re.createElement("span",{onClick:Qn},re.createElement("i",{className:"icon-quxiaozhiding"}))),re.createElement(Ut.Z,{title:"\u5173\u95ED",getPopupContainer:()=>dn.current},re.createElement("span",{className:"",onClick:Ie},re.createElement("i",{className:"icon-guanbi1"})))),re.createElement("div",{className:`${It[Wt]} ${Wt} ${It.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&re.createElement(re.Fragment,null,re.createElement($t.ZP,at({},Kt)))),Dt==="audio"&&re.createElement("audio",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Et}`,autoPlay:!0}),Dt==="video"&&re.createElement(re.Fragment,null,(Et==null?void 0:Et.indexOf("http"))>-1?re.createElement("video",{controls:!0,src:`${Et}`,autoPlay:!0}):re.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Et}`,autoPlay:!0})),Dt==="office"&&pn&&re.createElement("iframe",{src:`${Ee}/office.html?key=${pn.key}&url=${btoa(pn.url)}&callbackUrl=${Ke+(pn.callbackUrl||"")}&fileType=${pn.fileType}&title=${pn.title||""}&model=${wt}&officeServer=${te.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),Dt==="html"&&re.createElement("iframe",{src:Et+"&disposition=inline"}),Dt==="pdf"&&re.createElement("iframe",{src:`${Ee}/js/pdfview/index.html?filename=${At||"educoder.pdf"}&url=${encodeURIComponent(Et)}&disabledDownload=${!!Ye}`}),Dt==="image"&&re.createElement("img",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Et}`}),(Dt==="other"||Dt==="download")&&re.createElement(re.Fragment,null,Pe?re.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:re.createElement(oe.ZP,{icon:re.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:$n,disabled:Ye},"\u4E0B\u8F7D")}):re.createElement(oe.ZP,{type:"primary",size:"middle",onClick:$n,disabled:Ye},re.createElement(de.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{z:function(){return Dt},Z:function(){return At}});var vt=Pt(59301),It=Pt(50304),oe=Pt(24768),de=Pt(64018),$t=Pt(40846),Ut=Pt(3294),Jt=Pt(955),De=Pt(15342),we=Pt(1012),te=Pt(23210),Fe=Pt(59301),me=({html:Kt})=>{const Wt=(0,vt.useRef)(null),xe=(0,vt.useRef)(null),Vt=`.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,vt.useEffect)(()=>{const Ie=Wt.current.attachShadow({mode:"open"});xe.current=document.createElement("div"),xe.current.className="markdown-body",xe.current.innerHTML=Kt,Ie.appendChild(xe.current);const Se=document.createElement("style");return Se.textContent=Vt,Ie.appendChild(Se),()=>{Ie.innerHTML=""}},[]),(0,vt.useEffect)(()=>{xe.current&&(xe.current.innerHTML=Kt)},[Kt]),Fe.createElement("div",{ref:Wt})},Ot=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,at=(Kt,Wt,xe)=>Wt in Kt?Ot(Kt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Kt[Wt]=xe,ft=(Kt,Wt)=>{for(var xe in Wt||(Wt={}))nt.call(Wt,xe)&&at(Kt,xe,Wt[xe]);if(et)for(var xe of et(Wt))ht.call(Wt,xe)&&at(Kt,xe,Wt[xe]);return Kt};const mt="@\u2581\u2581@",wt="@\u2581@",Et=/]*>/g;function Nt(Kt){let Wt=document.createElement("div");return Wt.innerHTML=Kt,Wt.childNodes.length===0?"":Wt.childNodes[0].nodeValue}const Dt=(Kt,Wt)=>{Kt=Kt||"";const xe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Vt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ie=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Se=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Wt?Kt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(xe,(Ye,Le,Pe,We,Ue,ue,Ht)=>{const ke=Le||We||ue,pn=Pe||Ue||Ht||"?";return Ut.Z.API_SERVER+"/api/attachments/"+ke+pn+"&t="+(0,Jt.Jn)(ke,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Kt=Kt.replace(Se,(Ye,Le,Pe,We,Ue,ue,Ht)=>{const ke=Le||We||ue,pn=Pe||Ue||Ht||"?";return Ut.Z.API_SERVER+"/attachments/download/"+ke+pn+"&t="+(0,Jt.Jn)(ke,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(xe,(Ye,Le,Pe,We,Ue,ue,Ht)=>{const ke=Le||We||ue,pn=Pe||Ue||Ht||"?";return Ut.Z.API_SERVER+"/api/attachments/"+ke+pn+"&t="+(0,Jt.Jn)(ke,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(Vt,(Ye,Le,Pe,We,Ue)=>{const ue=Le||We,Ht=Pe||Ue||"";return'"'+Ut.Z.API_SERVER+"/api/attachments/"+ue+Ht+ue+Ht+"&t="+(0,Jt.Jn)(ue,Date.now())}).replace(Ie,(Ye,Le,Pe,We,Ue)=>{const ue=Le||We,Ht=Pe||Ue||"";return"("+Ut.Z.API_SERVER+"/files/uploads/"+ue+Ht+ue+Ht+"&t="+(0,Jt.Jn)(ue,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,` `),Kt)};var At=({value:Kt="",className:Wt,showTextOnly:xe,showLines:Vt,style:Ie={},stylesPrev:Se={},highlightKeywords:Ye,showProgramFill:Le,isProgramFill:Pe,disabledFill:We=!1,programFillValue:Ue,onFillChange:ue=pn=>{},onFillBlur:Ht=()=>{},onFillFocus:ke=()=>{}})=>{let pn=String(Kt);const[ln,Ee]=(0,vt.useState)(""),[Ke,gn]=(0,vt.useState)("office"),[Bn,dn]=(0,vt.useState)([]),In=(0,vt.useRef)("a"+(0,we.Z)()),Ce={},$n=(fe,ce,ne)=>{const Ne=document.createElement(fe===wt?"input":"textarea");Ne.style.width="100%",Ne.style.height=fe===wt?"40px":"151px",Ne.rows=5,Ne.spellcheck=!1,Ne.name="edu-program-fill",Ne.placeholder="\u8BF7\u8F93\u5165",Ne.dataset.id=ce;const hn=Object.keys(Ce).length;return Ce[hn]=Ne,`${Ne.outerHTML}`};function Qn(fe){return fe=fe.replace(/!\[.*?\]\(.*?\)/g,""),fe=fe.replace(/\[.*?\]\(.*?\)/g,""),fe=fe.replace(new RegExp("","gs"),""),fe=fe.replace(//g,""),fe=fe.replace(//g,""),fe=fe.replace(new RegExp(".*?<\\/video>","gs"),""),fe=fe.replace(new RegExp(".*?<\\/audio>","gs"),""),fe=fe.replace(new RegExp(".*?<\\/style>","gs"),""),fe=fe.replace(new RegExp(".*?<\\/script>","gs"),""),fe}const jt=fe=>fe.replace(/([\s\S]+?)<\/style>/gim,function(ce,ne){let Ne=ne.replace(/(\n|\r)/g,"").split("}"),hn=[];return Ne.map(an=>{an!=""&&hn.push(`.${In.current} ${an}`)}),``}),Lt=(0,vt.useMemo)(()=>{try{const Ne=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,an=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,_e=/\(\/attachments\/download\//g;pn=pn.replace(_e,"("+Ut.Z.API_SERVER+"/attachments/download/").replace(Ne,"("+Ut.Z.API_SERVER+"/api/attachments/").replace(hn,'"'+Ut.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Ut.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(Ne){}if(Le){let Ne=-1;return pn=pn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(hn,an,_e){var En;return++Ne,$n(hn,Ne,(En=Ue==null?void 0:Ue[Ne])==null?void 0:En.value.replaceAll("<","<").replaceAll(">",">"))}),`
${jt(pn||"")}
`}let fe=jt(pn);fe=(0,oe.ZP)(fe);const ce=(0,oe.ez)();pn.match(/\[TOC\]/)&&(fe=fe.replace("

[TOC]

",(0,oe.Qv)()),(0,oe.Iy)()),fe=fe.replace(/(__special_katext_id_\d+__)/g,(Ne,hn)=>{const{type:an,expression:_e}=ce[hn];return(0,De.renderToString)(Nt(_e)||"",{displayMode:an==="block",throwOnError:!1,output:"html"})}),fe=fe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const ne=document.createElement("div");if(ne.innerHTML=fe,xe)return ne.innerText;if(Ye){const Ne=Ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return yt(ne,Ne),ne.innerHTML}return setTimeout(()=>qt(),500),ne.innerHTML},[pn,Ye]);(0,vt.useEffect)(()=>{ee.current&&ee.current.querySelectorAll(["input","textarea"]).forEach(ce=>{ce.oninput=xt,ce.onblur=Tt,ce.onfocus=Ft})},[Bn]),(0,vt.useEffect)(()=>{var fe,ce,ne,Ne,hn;if(Ue!=null&&Ue.length)try{const an=ee.current.querySelectorAll(".edu-program-fill-score"),_e=ee.current.querySelectorAll('[name="edu-program-fill"]');for(const[En,Ln]of _e.entries())Ln.value=((fe=Ue==null?void 0:Ue[En])==null?void 0:fe.value)||"",((ce=Ue==null?void 0:Ue[En])==null?void 0:ce.type)==="warning"?Ln.className="program-fill-warning":((ne=Ue==null?void 0:Ue[En])==null?void 0:ne.type)==="success"?Ln.className="program-fill-success":Ln.className="";for(const[En,Ln]of an.entries())Ln.innerHTML=(Ne=Ue==null?void 0:Ue[En])!=null&&Ne.score?`${(hn=Ue==null?void 0:Ue[En])==null?void 0:hn.score}\u5206`:"";dn(Ue)}catch(an){console.log(an,"error")}},[Ue]);const xt=fe=>{Bn[fe.target.dataset.id]=Bn[fe.target.dataset.id]||{},Bn[fe.target.dataset.id].value=fe.target.value,dn([...Bn]),ue(Bn,fe.target.dataset.id)},Tt=fe=>{Bn[fe.target.dataset.id]=Bn[fe.target.dataset.id]||{},Bn[fe.target.dataset.id].value=fe.target.value,dn([...Bn]),Ht(Bn,fe.target.dataset.id)},Ft=fe=>{Bn[fe.target.dataset.id]=Bn[fe.target.dataset.id]||{},Bn[fe.target.dataset.id].value=fe.target.value,dn([...Bn]),ke(Bn,fe.target.dataset.id)};function yt(fe,ce){return fe.childNodes.forEach(ne=>{var Ne;if(ne.childNodes.length>0)yt(ne,ce);else if(ne.nodeName!=="IMG")if(ne.innerHTML)ne.innerHTML=(Ne=ne.innerHTML)==null?void 0:Ne.replace(new RegExp(ce,"gi"),'$&');else{const hn=document.createElement("span");hn.innerHTML=ne.textContent.replace(new RegExp(ce,"gi"),'$&'),ne.replaceWith(hn)}})}const ee=(0,vt.useRef)();oe.jb.WebkitLineClamp=Vt,Vt&&(Ie=ft(ft({},Ie),oe.jb));function pe(fe){let ce=fe.target;if(ce.tagName.toUpperCase()==="A"){let ne=ce.getAttribute("href");if(ne.indexOf("office")>-1)fe.preventDefault(),Ee(ne),gn("office");else if(ne.indexOf("application/pdf")>-1)fe.preventDefault(),Ee(ne),gn("pdf");else if(ne.indexOf("text/html")>-1)fe.preventDefault(),Ee(ne),gn("html");else if(ne.startsWith("#")){fe.preventDefault();let Ne=document.getElementById(ne.replace("#",""));Ne&&Ne.scrollIntoView(!0)}}}const qt=()=>{var fe;const ce=(fe=ee.current)==null?void 0:fe.querySelectorAll("video");ce==null||ce.forEach(ne=>{if(ne.oncontextmenu=()=>!1,ne.src.indexOf(".m3u8")>-1&&!ne.canPlayType("application/vnd.apple.mpegurl")){if($t.ZP.isSupported()){var Ne=new $t.ZP;Ne.loadSource(ne.src),Ne.attachMedia(ne)}}})};(0,vt.useEffect)(()=>{if(ee.current&&Lt&&Lt.match(Et)&&window.PR.prettyPrint(),ee.current)return ee.current.addEventListener("click",pe),()=>{var fe;(fe=ee.current)==null||fe.removeEventListener("click",pe),(0,oe.AL)(),(0,oe.Iy)()}},[Lt,ee.current,pe]),(0,vt.useEffect)(()=>{var fe;const ce=ne=>{ne.preventDefault(),ne.clipboardData.setData("text",window.getSelection().toString())};return(fe=ee.current)==null||fe.addEventListener("copy",ce),()=>{var ne;(ne=ee.current)==null||ne.removeEventListener("copy",ce)}},[ee.current]);const Zt=fe=>//i.test(fe||"");return vt.createElement(vt.Fragment,null,xe&&vt.createElement("div",{ref:ee},Lt),!xe&&!Zt(Lt)&&vt.createElement("div",{ref:ee,style:ft({},Ie),className:`${Wt||""} ${We?"disabled-fill":""} markdown-body ${In.current}`,dangerouslySetInnerHTML:{__html:Lt}}),!xe&&Zt(Lt)&&vt.createElement(me,{html:Lt}),vt.createElement(te.Z,{close:!0,data:ln,type:ln!=null&&ln.length?Ke:"",style:ft({},Se),onClose:()=>Ee("")}))}},97692:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{h:function(){return wt}});var vt=Pt(59301),It=Pt(57809),oe=Pt(78241),de=Pt(3113),$t=Pt(89780),Ut=Pt.n($t),Jt=Pt(37036),De=Pt(95625),we=Object.defineProperty,te=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,et=(Et,Nt,Dt)=>Nt in Et?we(Et,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Et[Nt]=Dt,nt=(Et,Nt)=>{for(var Dt in Nt||(Nt={}))me.call(Nt,Dt)&&et(Et,Dt,Nt[Dt]);if(re)for(var Dt of re(Nt))Ot.call(Nt,Dt)&&et(Et,Dt,Nt[Dt]);return Et},ht=(Et,Nt)=>te(Et,Fe(Nt));const at=It.default.Option,ft={labelCol:{span:4},wrapperCol:{span:20}},mt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ve.Z=({callback:Et,onCancel:Nt})=>{const[Dt,At]=(0,vt.useState)("python");function Kt(xe){At(mt[xe][1])}function Wt(xe){Et(xe)}return vt.createElement(oe.default,ht(nt({},ft),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Wt,style:{width:500}}),vt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},vt.createElement(It.default,{getPopupContainer:xe=>xe.parentNode,onChange:Kt},Object.keys(mt).map(xe=>vt.createElement(at,{key:xe,value:xe},mt[xe][0])))),vt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},vt.createElement(wt,{mode:Dt})),vt.createElement("div",{className:"flex-container flex-end"},vt.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(de.ZP,{type:"ghost",onClick:Nt},"\u53D6\u6D88")))};function wt({value:Et,onChange:Nt,mode:Dt,options:At={}}){const Kt=(0,vt.useRef)(),[Wt,xe]=(0,vt.useState)();return(0,vt.useEffect)(()=>{if(Wt){let Vt=function(Ie){const Se=Ie.getValue();Nt&&Nt(Se)};return Wt.on("change",Vt),()=>{Wt.off("change",Vt)}}},[Wt,Nt]),(0,vt.useEffect)(()=>{Wt&&Wt.setOption("mode",Dt)},[Wt,Dt]),(0,vt.useEffect)(()=>{Wt&&(Et!==Wt.getValue()||Et==="")&&setTimeout(()=>{Wt.setValue(Et||"")},300)},[Wt,Et]),(0,vt.useEffect)(()=>{if(Kt.current&&!Wt){const Vt=Ut().fromTextArea(Kt.current,nt({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},At));xe(Vt)}},[Kt.current,Wt]),vt.createElement("div",{className:"my-codemirror-container"},vt.createElement("textarea",{ref:Kt}))}},12290:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return di}});var vt=Pt(59301),It=Pt(89780),oe=Pt.n(It),de=Pt(76374),$t=Pt(37036),Ut=Pt(6313),Jt=Pt(25717),De=Pt(99498),we=Pt(25419),te=Pt(67549),Fe=Pt(85149),re=({value:Ae="",className:Be,showTextOnly:_t,showLines:Je,style:cn={}})=>{const ve=(0,vt.useMemo)(()=>"",[Ae]);return vt.createElement(vt.Fragment,null,vt.createElement("div",{dangerouslySetInnerHTML:{__html:ve}}))},me=Pt(59301),Ot=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,mt=(Ae,Be,_t)=>Be in Ae?Ot(Ae,Be,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ae[Be]=_t,wt=(Ae,Be)=>{for(var _t in Be||(Be={}))at.call(Be,_t)&&mt(Ae,_t,Be[_t]);if(ht)for(var _t of ht(Be))ft.call(Be,_t)&&mt(Ae,_t,Be[_t]);return Ae},Et=(Ae,Be)=>et(Ae,nt(Be));let Nt=[{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 Dt({onActionCallback:Ae,title:Be,icon:_t,actionName:Je,className:cn="",children:ve}){function ie(){Ae(Je)}return me.createElement("a",{title:Be,className:cn,onClick:ie},me.createElement("i",{className:`${_t}`}),ve)}var At=({watch:Ae,showNullButton:Be,showNullProgramButton:_t,onActionCallback:Je,fullScreen:cn,insertTemp:ve,hidetoolBar:ie,extraUse:Qe})=>{const yn=[...Nt,{title:`${Ae?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ae?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return me.createElement("ul",{className:"markdown-toolbar-container"},!ie&&yn.map((Nn,_n)=>me.createElement("li",{key:_n},Nn.actionName?me.createElement(Dt,Et(wt({},Nn),{onActionCallback:Je})):me.createElement("span",{className:"v-line"}))),Be?me.createElement("li",null,me.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Je},me.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,_t?me.createElement(me.Fragment,null,me.createElement("li",null,me.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Je},me.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),me.createElement("li",null,me.createElement(Dt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Je},me.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ve&&me.createElement("li",null,me.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ve}`,onActionCallback:Je},me.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qe&&me.createElement("li",null,Qe),me.createElement("li",{className:"btn-full-screen"},me.createElement(Dt,{icon:`${cn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:cn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Je})))},Kt=Pt(79346),Wt=Pt(78241),xe=Pt(92832),Vt=Pt(3113),Ie=Object.defineProperty,Se=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ue=(Ae,Be,_t)=>Be in Ae?Ie(Ae,Be,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ae[Be]=_t,ue=(Ae,Be)=>{for(var _t in Be||(Be={}))Pe.call(Be,_t)&&Ue(Ae,_t,Be[_t]);if(Le)for(var _t of Le(Be))We.call(Be,_t)&&Ue(Ae,_t,Be[_t]);return Ae},Ht=(Ae,Be)=>Se(Ae,Ye(Be));const ke={labelCol:{span:4},wrapperCol:{span:20}};var pn=({callback:Ae,onCancel:Be})=>{function _t(Je){Ae(Je)}return vt.createElement(Wt.default,Ht(ue({},ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:_t,style:{width:500}}),vt.createElement(Wt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},vt.createElement(xe.default,null)),vt.createElement(Wt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},vt.createElement(xe.default,null)),vt.createElement("div",{className:"flex-container flex-end"},vt.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(Vt.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},ln=Pt(97692),Ee=Pt(28451),Ke=Pt(43418),gn=Pt(95237),Bn=Pt(73524),dn=Pt(59301),In=({callback:Ae,onCancel:Be})=>{const _t=document.createElement("canvas"),Je=_t.getContext("2d");_t.width=1e3,_t.height=800,Je.fillStyle="#ffffff",Je.fillRect(0,0,_t.width,_t.height);const cn=_t.toDataURL("image/png");return dn.createElement(Ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},dn.createElement(gn.Z,{style:{height:"100vh"}},dn.createElement(Bn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:cn,visible:!0,title:String(Date.now())},onOk:ve=>{Ae({src:ve.url})},onClose:Be})))},Ce=Pt(12378);function $n(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit($n,go.CommandHandler),$n.prototype.canAlignSelection=function(){var Ae=this.diagram;return!(Ae===null||Ae.isReadOnly||Ae.isModelReadOnly||Ae.selection.count<2)},$n.prototype.alignLeft=function(){var Ae=this.diagram;Ae.startTransaction("aligning left");var Be=1/0;Ae.selection.each(function(_t){_t instanceof go.Link||(Be=Math.min(_t.position.x,Be))}),Ae.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(Be,_t.position.y))}),Ae.commitTransaction("aligning left")},$n.prototype.alignRight=function(){var Ae=this.diagram;Ae.startTransaction("aligning right");var Be=-1/0;Ae.selection.each(function(_t){if(!(_t instanceof go.Link)){var Je=_t.actualBounds.x+_t.actualBounds.width;Be=Math.max(Je,Be)}}),Ae.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(Be-_t.actualBounds.width,_t.position.y))}),Ae.commitTransaction("aligning right")},$n.prototype.alignTop=function(){var Ae=this.diagram;Ae.startTransaction("alignTop");var Be=1/0;Ae.selection.each(function(_t){_t instanceof go.Link||(Be=Math.min(_t.position.y,Be))}),Ae.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(_t.position.x,Be))}),Ae.commitTransaction("alignTop")},$n.prototype.alignBottom=function(){var Ae=this.diagram;Ae.startTransaction("aligning bottom");var Be=-1/0;Ae.selection.each(function(_t){if(!(_t instanceof go.Link)){var Je=_t.actualBounds.y+_t.actualBounds.height;Be=Math.max(Je,Be)}}),Ae.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(_t.actualBounds.x,Be-_t.actualBounds.height))}),Ae.commitTransaction("aligning bottom")},$n.prototype.alignCenterX=function(){var Ae=this.diagram,Be=Ae.selection.first();if(Be){Ae.startTransaction("aligning Center X");var _t=Be.actualBounds.x+Be.actualBounds.width/2;Ae.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(_t-Je.actualBounds.width/2,Je.actualBounds.y))}),Ae.commitTransaction("aligning Center X")}},$n.prototype.alignCenterY=function(){var Ae=this.diagram,Be=Ae.selection.first();if(Be){Ae.startTransaction("aligning Center Y");var _t=Be.actualBounds.y+Be.actualBounds.height/2;Ae.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(Je.actualBounds.x,_t-Je.actualBounds.height/2))}),Ae.commitTransaction("aligning Center Y")}},$n.prototype.alignColumn=function(Ae){var Be=this.diagram;Be.startTransaction("align Column"),Ae===void 0&&(Ae=0),Ae=parseFloat(Ae);var _t=new Array;Be.selection.each(function(Qe){Qe instanceof go.Link||_t.push(Qe)});for(var Je=0;Je<_t.length-1;Je++){var cn=_t[Je],ve=cn.actualBounds.y+cn.actualBounds.height+Ae,ie=_t[Je+1];ie.move(new go.Point(cn.actualBounds.x,ve))}Be.commitTransaction("align Column")},$n.prototype.alignRow=function(Ae){Ae===void 0&&(Ae=0),Ae=parseFloat(Ae);var Be=this.diagram;Be.startTransaction("align Row");var _t=new Array;Be.selection.each(function(Qe){Qe instanceof go.Link||_t.push(Qe)});for(var Je=0;Je<_t.length-1;Je++){var cn=_t[Je],ve=cn.actualBounds.x+cn.actualBounds.width+Ae,ie=_t[Je+1];ie.move(new go.Point(ve,cn.actualBounds.y))}Be.commitTransaction("align Row")},$n.prototype.canRotate=function(Ae){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},$n.prototype.rotate=function(Ae){Ae===void 0&&(Ae=90);var Be=this.diagram;Be.startTransaction("rotate "+Ae.toString());var Be=this.diagram;Be.selection.each(function(_t){_t instanceof go.Link||_t instanceof go.Group||(_t.angle+=Ae)}),Be.commitTransaction("rotate "+Ae.toString())},$n.prototype.pullToFront=function(){var Ae=this.diagram;Ae.startTransaction("pullToFront");var Be=new go.Map;Ae.selection.each(function(_t){Be.set(_t.layer,0)}),Be.iteratorKeys.each(function(_t){var Je=0;_t.parts.each(function(cn){if(!cn.isSelected){var ve=cn.zOrder;isNaN(ve)?cn.zOrder=0:Je=Math.max(Je,ve)}}),Be.set(_t,Je)}),Ae.selection.each(function(_t){$n._assignZOrder(_t,Be.get(_t.layer)+1)}),Ae.commitTransaction("pullToFront")},$n.prototype.pushToBack=function(){var Ae=this.diagram;Ae.startTransaction("pushToBack");var Be=new go.Map;Ae.selection.each(function(_t){Be.set(_t.layer,0)}),Be.iteratorKeys.each(function(_t){var Je=0;_t.parts.each(function(cn){if(!cn.isSelected){var ve=cn.zOrder;isNaN(ve)?cn.zOrder=0:Je=Math.min(Je,ve)}}),Be.set(_t,Je)}),Ae.selection.each(function(_t){$n._assignZOrder(_t,Be.get(_t.layer)-1-$n._findGroupDepth(_t))}),Ae.commitTransaction("pushToBack")},$n._assignZOrder=function(Ae,Be,_t){_t===void 0&&(_t=Ae),Ae.layer===_t.layer&&(Ae.zOrder=Be),Ae instanceof go.Group&&Ae.memberParts.each(function(Je){$n._assignZOrder(Je,Be+1,_t)})},$n._findGroupDepth=function(Ae){if(Ae instanceof go.Group){var Be=0;return Ae.memberParts.each(function(_t){Be=Math.max(Be,$n._findGroupDepth(_t))}),Be+1}else return 0},$n.prototype.doKeyDown=function(){var Ae=this.diagram;if(Ae!==null){var Be=Ae.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var _t=this.arrowKeyBehavior;if(_t==="none")return;if(_t==="select"){this._arrowKeySelect();return}else if(_t==="move"){this._arrowKeyMove();return}else if(_t==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},$n.prototype._getAllParts=function(){var Ae=new Array;return this.diagram.nodes.each(function(Be){Ae.push(Be)}),this.diagram.parts.each(function(Be){Ae.push(Be)}),Ae},$n.prototype._arrowKeyMove=function(){var Ae=this.diagram,Be=Ae.lastInput,_t=0,Je=0;if(Be.control||Be.meta)_t=1,Je=1;else if(Ae.grid!==null){var cn=Ae.grid.gridCellSize;Je=cn.width,_t=cn.height}Ae.startTransaction("arrowKeyMove"),Ae.selection.each(function(ve){Be.key==="Up"?ve.move(new go.Point(ve.actualBounds.x,ve.actualBounds.y-_t)):Be.key==="Down"?ve.move(new go.Point(ve.actualBounds.x,ve.actualBounds.y+_t)):Be.key==="Left"?ve.move(new go.Point(ve.actualBounds.x-Je,ve.actualBounds.y)):Be.key==="Right"&&ve.move(new go.Point(ve.actualBounds.x+Je,ve.actualBounds.y))}),Ae.commitTransaction("arrowKeyMove")},$n.prototype._arrowKeySelect=function(){var Ae=this.diagram,Be=Ae.lastInput,_t=null;Be.key==="Up"?_t=this._findNearestPartTowards(270):Be.key==="Down"?_t=this._findNearestPartTowards(90):Be.key==="Left"?_t=this._findNearestPartTowards(180):Be.key==="Right"&&(_t=this._findNearestPartTowards(0)),_t!==null&&(Be.shift?_t.isSelected=!0:Be.control||Be.meta?_t.isSelected=!_t.isSelected:Ae.select(_t))},$n.prototype._findNearestPartTowards=function(Ae){var Be=this.diagram.selection.first();if(Be===null)return null;for(var _t=Be.actualBounds.center,Je=this._getAllParts(),cn=1/0,ve=Be,ie=0;ie0){for(var Qe=ve.elt(ie-1);Qe!==null&&Qe.isTreeExpanded&&!Qe.isTreeLeaf;){var yn=this._sortTreeChildrenByY(Qe);Qe=yn.last()}Qe!==null&&Ae.select(Qe)}else Ae.select(cn)}}else if(_t.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var Je=this._sortTreeChildrenByY(Be).first();Je!==null&&Ae.select(Je)}else for(;Be!==null;){var cn=Be.findTreeParentNode();if(cn===null)break;var ve=this._sortTreeChildrenByY(cn),ie=ve.indexOf(Be);if(ieve.y?1:cn.xve.x?1:0}),Be},$n.prototype.copyToClipboard=function(Ae){go.CommandHandler.prototype.copyToClipboard.call(this,Ae),this._lastPasteOffset.set(this.pasteOffset)},$n.prototype.pasteFromClipboard=function(){var Ae=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ae,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ae},Object.defineProperty($n.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ae){if(Ae!=="move"&&Ae!=="select"&&Ae!=="scroll"&&Ae!=="tree"&&Ae!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ae);this._arrowKeyBehavior=Ae}}),Object.defineProperty($n.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ae){if(!(Ae instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ae);this._pasteOffset.set(Ae)}});var Qn=$n,jt=Pt(74413),Lt=Pt(43604),xt=Pt(99064),Tt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ft=Pt(24065),yt=Pt(59301),ee=(Ae,Be,_t)=>new Promise((Je,cn)=>{var ve=yn=>{try{Qe(_t.next(yn))}catch(Nn){cn(Nn)}},ie=yn=>{try{Qe(_t.throw(yn))}catch(Nn){cn(Nn)}},Qe=yn=>yn.done?Je(yn.value):Promise.resolve(yn.value).then(ve,ie);Qe((_t=_t.apply(Ae,Be)).next())});function pe({onCancel:Ae,callback:Be}){let _t=(0,vt.useRef)(),Je=(0,vt.useRef)(),cn=(0,vt.useRef)(),ve=(0,vt.useRef)(!1);const ie=(0,vt.useRef)(!1),[Qe,yn]=(0,vt.useState)(0);function Nn(){const le=Ce.bx.make,mn={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"};_t.current=new Ce.S0(Je.current,{padding:20,grid:le(Ce.s_,"Grid",le(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Vn=>{var ze=Vn.diagram.commandHandler.addTopLevelParts(Vn.diagram.selection,!0);ze||Vn.diagram.currentTool.doCancel()},commandHandler:le(Qn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Vn=>{var ze=Vn.subject;ze.location=ze.location.copy().snapToGridPoint(Vn.diagram.grid.gridOrigin,Vn.diagram.grid.gridCellSize),setTimeout(()=>{Vn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Vn=>{var ze=Vn.subject;setTimeout(()=>{Vn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Vn=>{var ze=Vn.parameter.part;ze.invalidateConnectedLinks();var Ge=Vn.subject;Vn.diagram.toolManager.linkingTool.isForwards?Ge.toNode.invalidateConnectedLinks():Ge.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),_t.current.nodeTemplate=le(Ce.NB,"Auto",{locationSpot:Ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ce.$u(120,60),minSize:new Ce.$u(40,40),resizable:!0,resizeCellSize:new Ce.$u(10,10),rotatable:!0},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),new Ce.KX("desiredSize","size",Ce.$u.parse).makeTwoWay(Ce.$u.stringify),le(Ce.bn,{name:"SHAPE",fill:mn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("figure"),new Ce.KX("fill"),new Ce.KX("stroke","borderColor"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),le(Ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),le(Ce.al,{margin:1,textAlign:"center",overflow:Ce.al.OverflowEllipsis,editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),_t.current.nodeTemplate.toolTip=le("ToolTip",le(Ce.s_,"Vertical",{maxSize:new Ce.$u(200,NaN)},le(Ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ce.KX("text")),le(Ce.al,{font:"10pt sans-serif",textAlign:"center"},new Ce.KX("text","details"))));function Gn(Vn,ze){var Ge=(Oe,un)=>{Oe.handled=!0,Oe.diagram.model.commit(kn=>{var Tn=un.part.adornedPart,Rn=new Ce.E9().setRectSpot(Tn.actualBounds,Vn);Rn.subtract(Tn.location),Rn.scale(2,2),Rn.x+=Math.sign(Rn.x)*130,Rn.y+=Math.sign(Rn.y)*130,Rn.add(Tn.location),Rn.snapToGridPoint(Oe.diagram.grid.gridOrigin,Oe.diagram.grid.gridCellSize);var ei=kn.copyNodeData(Tn.data);kn.setGroupKeyForNodeData(ei,kn.getGroupKeyForNodeData(Tn.data)),kn.addNodeData(ei);var qe={from:Tn.key,to:kn.getKeyForNodeData(ei)};kn.addLinkData(qe);var pi=Oe.diagram.findNodeForData(ei);pi.location=Rn,Oe.diagram.select(pi),setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()},20)})};return le(Ce.bn,{figure:ze,alignment:Vn,alignmentFocus:Vn.opposite(),width:Vn.equals(Ce.z6.Top)||Vn.equals(Ce.z6.Bottom)?25:18,height:Vn.equals(Ce.z6.Top)||Vn.equals(Ce.z6.Bottom)?18:25,fill:"orange",stroke:mn.white,strokeWidth:4,mouseEnter:(Oe,un)=>un.fill="dodgerblue",mouseLeave:(Oe,un)=>un.fill="orange",isActionable:!0,click:Ge,contextClick:Ge})}function si(Vn){return le(Ce.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:(ze,Ge)=>Ge.fill="dodgerblue",mouseLeave:(ze,Ge)=>Ge.fill="orange",click:(ze,Ge)=>{ze.diagram.commandHandler.showContextMenu(Ge.part.adornedPart)}},Vn||{})}_t.current.nodeTemplate.selectionAdornmentTemplate=le(Ce.uz,"Spot",le(Ce.Vm,{padding:10}),Gn(Ce.z6.Top,"TriangleUp"),Gn(Ce.z6.Left,"TriangleLeft"),Gn(Ce.z6.Right,"TriangleRight"),Gn(Ce.z6.Bottom,"TriangleDown"),si({alignment:new Ce.z6(.75,0)}));function Re(Vn,ze){return(Ge,Oe)=>{Ge.handled=!0,Ge.diagram.model.commit(un=>{un.set(Oe.part.adornedPart.data,Vn,ze)})}}function fn(Vn,ze){return ze||(ze="color"),le(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:Vn,margin:1,background:"transparent",mouseEnter:(Ge,Oe)=>Oe.stroke="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.stroke="lightgray",click:Re(ze,Vn),contextClick:Re(ze,Vn)})}function He(){return[le("ContextMenuButton",le(Ce.s_,"Horizontal",fn(mn.white,"fill"),fn(mn.beige,"fill"),fn(mn.extralightblue,"fill"),fn(mn.extralightred,"fill"))),le("ContextMenuButton",le(Ce.s_,"Horizontal",fn(mn.lightgray,"fill"),fn(mn.lightgreen,"fill"),fn(mn.lightblue,"fill"),fn(mn.lightred,"fill")))]}function je(){return[le("ContextMenuButton",le(Ce.s_,"Horizontal",fn(mn.black),fn(mn.green),fn(mn.blue),fn(mn.red))),le("ContextMenuButton",le(Ce.s_,"Horizontal",fn(mn.white),fn(mn.magenta),fn(mn.purple),fn(mn.orange)))]}function vn(Vn,ze){return ze||(ze="thickness"),le(Ce.bn,"LineH",{width:16,height:16,strokeWidth:Vn,margin:1,background:"transparent",mouseEnter:(Ge,Oe)=>Oe.background="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.background="transparent",click:Re(ze,Vn),contextClick:Re(ze,Vn)})}function rn(Vn,ze){return ze||(ze="dash"),le(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Vn,margin:1,background:"transparent",mouseEnter:(Ge,Oe)=>Oe.background="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.background="transparent",click:Re(ze,Vn),contextClick:Re(ze,Vn)})}function bn(){return[le("ContextMenuButton",le(Ce.s_,"Horizontal",vn(1),vn(2),vn(3),vn(4))),le("ContextMenuButton",le(Ce.s_,"Horizontal",rn(null),rn([2,4]),rn([4,4])))]}function xn(Vn,ze){return ze||(ze="figure"),le(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Vn,margin:1,background:"transparent",mouseEnter:(Ge,Oe)=>Oe.fill="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.fill="lightgray",click:Re(ze,Vn),contextClick:Re(ze,Vn)})}_t.current.nodeTemplate.contextMenu=le("ContextMenu",le("ContextMenuButton",le(Ce.s_,"Horizontal",xn("Rectangle"),xn("RoundedRectangle"),xn("Ellipse"),xn("Diamond"))),le("ContextMenuButton",le(Ce.s_,"Horizontal",xn("Parallelogram2"),xn("ManualOperation"),xn("Procedure"),xn("Cylinder1"))),le("ContextMenuButton",le(Ce.s_,"Horizontal",xn("Terminator"),xn("CreateRequest"),xn("Document"),xn("TriangleDown"))),He(),je(),bn()),_t.current.groupTemplate=le(Ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Vn,ze)=>{var Ge=ze.addMembers(ze.diagram.selection,!0);Ge||ze.diagram.currentTool.doCancel()},avoidable:!1},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),le(Ce.s_,"Auto",{name:"BODY"},le(Ce.bn,{parameter1:10,fill:mn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("fill"),new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),le(Ce.Vm,{background:"transparent",margin:20})),le(Ce.al,{alignment:Ce.z6.Top,alignmentFocus:Ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ce.KX("text"),new Ce.KX("stroke","color"))),_t.current.groupTemplate.selectionAdornmentTemplate=le(Ce.uz,"Spot",le(Ce.s_,"Auto",le(Ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),le(Ce.Vm,{margin:1.5})),si({alignment:Ce.z6.TopRight,alignmentFocus:Ce.z6.BottomRight})),_t.current.groupTemplate.contextMenu=le("ContextMenu",He(),je(),bn()),_t.current.linkTemplate=le(Ce.rU,{layerName:"Foreground",routing:Ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ce.KX("fromSpot","fromSpot",Ce.z6.parse),new Ce.KX("toSpot","toSpot",Ce.z6.parse),new Ce.KX("fromShortLength","dir",Vn=>Vn>=1?10:0),new Ce.KX("toShortLength","dir",Vn=>Vn>=1?10:0),new Ce.KX("points").makeTwoWay(),le(Ce.bn,{strokeWidth:2},new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),le(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,0),segmentOrientation:Ce.rU.OrientAlong,alignmentFocus:Ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",Vn=>Vn===1)),le(Ce.bn,{segmentIndex:-1,segmentOffset:new Ce.E9(-10,6),segmentOrientation:Ce.rU.OrientPlus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",Vn=>Vn>=1),new Ce.KX("width","thickness",Vn=>7+3*Vn),new Ce.KX("height","thickness",Vn=>7+3*Vn),new Ce.KX("segmentOffset","thickness",Vn=>new Ce.E9(-15,4+1.5*Vn))),le(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,-6),segmentOrientation:Ce.rU.OrientMinus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",Vn=>Vn===2),new Ce.KX("width","thickness",Vn=>7+3*Vn),new Ce.KX("height","thickness",Vn=>7+3*Vn),new Ce.KX("segmentOffset","thickness",Vn=>new Ce.E9(-15,4+1.5*Vn))),le(Ce.al,{alignmentFocus:new Ce.z6(0,1,-4,0),editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),_t.current.linkTemplate.selectionAdornmentTemplate=le(Ce.uz,le(Ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:On(2)},new Ce.KX("pathPattern","thickness",On)),si({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function On(Vn){return le(Ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Vn+4).toString()+" H3"})}function zn(Vn){var ze="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Vn===0?ze="M0 0 M16 16 M0 8 L16 8":Vn===2&&(ze="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),le(Ce.bn,{geometryString:ze,margin:2,background:"transparent",mouseEnter:(Ge,Oe)=>Oe.background="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.background="transparent",click:Re("dir",Vn),contextClick:Re("dir",Vn)})}function yi(Vn){var ze=(Ge,Oe)=>{Ge.handled=!0,Ge.diagram.model.commit(un=>{var kn=Oe.part.adornedPart;un.set(kn.data,Vn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(Vn?kn.toNode:kn.fromNode).invalidateConnectedLinks()})};return le(Ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ge,Oe)=>Oe.background="dodgerblue",mouseLeave:(Ge,Oe)=>Oe.background="transparent",click:ze,contextClick:ze})}function Xe(Vn,ze){var Ge=0,Oe=Ce.z6.RightSide;Vn.equals(Ce.z6.Top)?(Ge=270,Oe=Ce.z6.TopSide):Vn.equals(Ce.z6.Left)?(Ge=180,Oe=Ce.z6.LeftSide):Vn.equals(Ce.z6.Bottom)&&(Ge=90,Oe=Ce.z6.BottomSide),ze||(Ge-=180);var un=(kn,Tn)=>{kn.handled=!0,kn.diagram.model.commit(Rn=>{var ei=Tn.part.adornedPart;Rn.set(ei.data,ze?"toSpot":"fromSpot",Ce.z6.stringify(Oe)),(ze?ei.toNode:ei.fromNode).invalidateConnectedLinks()})};return le(Ce.bn,{alignment:Vn,alignmentFocus:Vn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ge,background:"transparent",mouseEnter:(kn,Tn)=>Tn.background="dodgerblue",mouseLeave:(kn,Tn)=>Tn.background="transparent",click:un,contextClick:un})}_t.current.linkTemplate.contextMenu=le("ContextMenu",je(),bn(),le("ContextMenuButton",le(Ce.s_,"Horizontal",zn(0),zn(1),zn(2))),le("ContextMenuButton",le(Ce.s_,"Horizontal",le(Ce.s_,"Spot",yi(!1),Xe(Ce.z6.Top,!1),Xe(Ce.z6.Left,!1),Xe(Ce.z6.Right,!1),Xe(Ce.z6.Bottom,!1)),le(Ce.s_,"Spot",{margin:new Ce.Zt(0,0,0,2)},yi(!0),Xe(Ce.z6.Top,!0),Xe(Ce.z6.Left,!0),Xe(Ce.z6.Right,!0),Xe(Ce.z6.Bottom,!0)))));const Li=`{ "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 ji=["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 Ei(Vn){return console.log("shapeName:",Vn),ji.indexOf(Vn)>=0}var nn=new Ce.YI(cn.current,{maxSelectionCount:1,linkTemplate:le(Ce.rU,{locationSpot:Ce.z6.Center,selectionAdornmentTemplate:le(Ce.uz,"Link",{locationSpot:Ce.z6.Center},le(Ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),le(Ce.bn,{toArrow:"Standard",stroke:null}))},{routing:Ce.rU.AvoidsNodes,curve:Ce.rU.JumpOver,corner:5,toShortLength:4},new Ce.KX("points"),le(Ce.bn,{isPanelMain:!0,strokeWidth:2}),le(Ce.bn,{toArrow:"Standard",stroke:null})),model:new Ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ce.bn.getFigureGenerators().toArray().map(Vn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Vn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return _t.current.addDiagramListener("TextEdited",function(Vn){var ze;const Ge=Vn.subject.part;var Oe=(ze=document.activeElement)==null?void 0:ze.value;typeof Oe=="string"&&Oe.trim()===""&&_t.current.model.commit(function(un){un.set(Ge.data,"text","\u672A\u547D\u540D"),_t.current.commandHandler.stopCommand()},"increment")}),nn.nodeTemplate=le(Ce.NB,"Auto",{locationSpot:Ce.z6.Center},new Ce.KX("location","location",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),le(Ce.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 Ce.KX("stroke").makeTwoWay(),new Ce.KX("fill").makeTwoWay(),new Ce.KX("figure")),le(Ce.al,{margin:new Ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ce.$u(16,16),maxSize:new Ce.$u(10,NaN),textAlign:"center",editable:!0},new Ce.KX("key").makeTwoWay())),setTimeout(()=>{_t.current.grid=le(Ce.s_,"Grid",le(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),_t.current.grid.visible=!0,_t.current.grid.gridCellStroke="darkgray",_t.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=_t.current,_t.current}const _n=()=>ee(this,null,function*(){var le,mn=_t.current.makeImage();const Gn=yield(0,xt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mn.src,file_data:JSON.stringify({login:(le=(0,Ft.eY)())==null?void 0:le.login,data:JSON.parse(_t.current.model.toJson())})}});Be({src:Gn.url})});return(0,vt.useEffect)(()=>(setTimeout(()=>{Nn()},500),yn(Qe+1),()=>{_t.current=null}),[]),yt.createElement("div",{ref:ie,className:ve.current?`${Tt.maxH60} body-overflow-initial`:"body-overflow-initial"},yt.createElement(Ke.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qe,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:yt.createElement(gn.Z,null,yt.createElement(Lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),yt.createElement(Lt.Z,{onClick:()=>{var le,mn,Gn=_t.current.selection.first();if(ve.current=!ve.current,document.activeElement&&Gn){let si=(mn=(le=document.activeElement)==null?void 0:le.value)==null?void 0:mn.trim();typeof si=="string"&&_t.current.model.commit(function(Re){Re.set(Gn.data,"text",si||"\u672A\u547D\u540D"),_t.current.commandHandler.stopCommand()},"increment")}yn(Qe+1)}},yt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ae},yt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Tt.flowChartWrp},yt.createElement("div",{style:{display:"flex",height:"100%"}},yt.createElement("div",{style:{width:"300px",height:"100%"}},yt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),yt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Tt.myPaletteDiv,ref:cn})),yt.createElement("div",{style:{flex:1,position:"relative"}},yt.createElement("div",{ref:Je,style:{height:"80vh"}}))),yt.createElement("div",{className:"tr"},yt.createElement(Vt.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var qt=pe,Zt=Pt(5112),fe=Pt(5871);const ce=Zt.ZP.Group,ne={margin:"0 8px"};var Ne=({callback:Ae,onCancel:Be})=>{function _t(Je){Ae(Je)}return vt.createElement(Wt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:_t},vt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},vt.createElement("span",{style:ne},"\u5355\u5143\u683C\u6570\uFF1A"),vt.createElement("span",{style:ne},"\u884C\u6570"),vt.createElement(Wt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},vt.createElement(fe.Z,null)),vt.createElement("span",{style:ne},"\u5217\u6570"),vt.createElement(Wt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},vt.createElement(fe.Z,null))),vt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},vt.createElement("span",{style:ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),vt.createElement(Wt.default.Item,{name:"align"},vt.createElement(ce,null,vt.createElement(Zt.ZP,{value:"default"},vt.createElement("i",{className:"fa fa-align-justify"})),vt.createElement(Zt.ZP,{value:"left"},vt.createElement("i",{className:"fa fa-align-left"})),vt.createElement(Zt.ZP,{value:"center"},vt.createElement("i",{className:"fa fa-align-center"})),vt.createElement(Zt.ZP,{value:"right"},vt.createElement("i",{className:"fa fa-align-right"}))))),vt.createElement("div",{className:"flex-container flex-end"},vt.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(Vt.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},hn=Pt(78673),an=Pt(80727),_e=Pt.n(an),Ln=(0,vt.forwardRef)(({use3d:Ae,width:Be,height:_t,callback:Je,showSaveButton:cn},ve)=>{const ie=(0,vt.useRef)(),Qe=(0,vt.useRef)(),[yn,Nn]=(0,vt.useState)(!1),_n=(0,vt.useRef)({id:ie,appName:"graphing",width:Be||1e3,height:_t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,vt.useEffect)(()=>{Qe.current=new(_e())(_n.current,!0),window.onload=function(){Qe.current.inject("applet_container")}},[]);const le=()=>{var mn=window.ggbApplet.getPNGBase64(1,!0,72);return Je&&Je(mn),mn};return(0,vt.useEffect)(()=>{_n.current.appName=yn?"3D":"graphing",Qe.current.inject("applet_container")},[yn]),(0,vt.useEffect)(()=>{Nn(Ae)},[Ae]),(0,vt.useImperativeHandle)(ve,()=>({getImgData:le})),vt.createElement(vt.Fragment,null,vt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ie}),vt.createElement(gn.Z,{align:"middle"},vt.createElement(Lt.Z,{flex:1},vt.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yn,onChange:mn=>Nn(mn)})),vt.createElement(Lt.Z,null,vt.createElement(Vt.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ye=Pt(41588),on=Pt(8591);const Pn="link",Cn="upload-image",An="add-flowchart",Jn="draw-image",ui="add-flowchart",ni="code-block",fi="add-table",Bi="------------",Ti={default:Bi,left:`:${Bi}`,center:`:${Bi}:`,right:`${Bi}:`};var Di=Pt(58856);function io(){}let to=0;const Ri=1e4,Qi="\u2581",Zn="@\u2581\u2581@",Mt="@\u2581@",so=` **\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`,Ii=["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 Wi(Ae){return/^\d+$/.test(Ae)?`${Ae}px`:Ae}const Bo=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mo={[Bo+"-B"]:"bold",[Bo+"-I"]:"italic"},ai={[Pn]:"\u6DFB\u52A0\u94FE\u63A5",[ni]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Cn]:"\u6DFB\u52A0\u56FE\u7247",[Jn]:"\u6DFB\u52A0\u753B\u56FE",[An]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[fi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var di=({defaultValue:Ae="",onChange:Be,width:_t="100%",height:Je=400,miniToolbar:cn=!1,isFocus:ve=!1,watch:ie,insertTemp:Qe,mode:yn="markdown",id:Nn="markdown-editor-id",showResizeBar:_n=!1,noStorage:le=!1,showNullButton:mn=!1,showNullProgramButton:Gn=!1,hidetoolBar:si=!1,fullScreen:Re=!1,onBlur:fn,onCMBeforeChange:He,onFullScreen:je,className:vn="",disablePaste:rn=!1,disabled:bn=!1,disabledFill:xn=!1,placeholder:On="",values:zn="",extraUse:yi})=>{const[Xe,Li]=(0,vt.useState)(null),[ji,Ei]=(0,vt.useState)(Ae),[nn,Vn]=(0,vt.useState)(ie),[ze,Ge]=(0,vt.useState)(Re),[Oe,un]=(0,vt.useState)(""),[kn,Tn]=(0,vt.useState)(0),[Rn,ei]=(0,vt.useState)(Je),[qe,pi]=(0,vt.useState)(!1),[tn,Ci]=(0,vt.useState)(0),[Ui,$i]=(0,vt.useState)(0),Co=(0,vt.useRef)(),lo=(0,vt.useRef)(),Si=(0,vt.useRef)(),ii=(0,vt.useRef)();(0,vt.useEffect)(()=>{const Pi=window.scrollY||window.pageYOffset;Ei(zn),Xe==null||Xe.setValue(zn),window.scrollTo(0,Pi)},[zn]),(0,vt.useEffect)(()=>{je==null||je(ze)},[ze]),(0,vt.useEffect)(()=>{if(Co.current){let Pi=function(Wn,zi){var xo;if(rn){zi.preventDefault();return}const Ko=zi.clipboardData;if(Ko){const Uo=Ko.types.toString(),Qo=Ko.items;if(Uo==="Files"||Ko.types.indexOf("Files")>-1){if(zi.preventDefault(),yn=="stex")return;try{let ar=Qo[1];((xo=Qo[0])==null?void 0:xo.kind)==="file"&&(ar=Qo[0]);const Ro=ar.getAsFile(),er=Ro.name.split(".").pop();(0,Ee.I)(Ro,nr=>{var qr,sn,wr;nr.id?((qr=Ro==null?void 0:Ro.type)==null?void 0:qr.indexOf("image"))>-1?Ni.replaceSelection(``):((sn=Ro==null?void 0:Ro.type)==null?void 0:sn.indexOf("video"))>-1?Ni.replaceSelection(``):((wr=Ro==null?void 0:Ro.type)==null?void 0:wr.indexOf("pdf"))>-1?Ni.replaceSelection(`${Ro.name}`):Ii.includes(er)?Ni.replaceSelection(`${Ro.name}`):Ni.replaceSelection(`[${Ro.name}](/api/attachments/${nr.id}?type=${nr.content_type})`):(nr==null?void 0:nr.status)===401&&(document.location.href="/user/login")})}catch(ar){on.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ni=oe().fromTextArea(Co.current,{mode:yn,lineNumbers:!cn,lineWrapping:!0,value:Ae,autoCloseTags:!0,autoCloseBrackets:!0});return Ni.on("keyup",function(Wn,zi){zi.keyCode===8&&(Wn.getValue()==""?Ni.setOption("placeholder",On):Ni.setOption("placeholder",null))}),Ni.on("keydown",function(Wn,zi){if(zi.keyCode===8){var xo=oo(Wn);xo&&zi.preventDefault()}}),ve&&Ni.focus(),Ni.on("paste",Pi),bn&&Ni.on("beforeChange",function(Wn,zi){(zi.origin==="paste"||zi.origin==="+input")&&zi.cancel()}),Li(Ni),()=>{Ni.off("paste",Pi)}}},[]);const Yi=(0,vt.useCallback)(()=>{if(lo.current)try{}catch(Pi){console.log(Pi,"---- to set md editor body height")}},[Rn,lo,ze]);(0,vt.useEffect)(()=>{function Pi(){let Ni=new de.Z(Wn=>{for(let zi of Wn)(zi.target.offsetHeight>0||zi.target.offsetWidth>0)&&(Yi(),Xe.setSize("100%","100%"),Xe.refresh())});return Ni.observe(Co.current.parentElement),Ni}if(Xe){const Ni=Pi();return()=>{var Wn,zi;(Wn=Co.current)!=null&&Wn.parentElement&&Ni.unobserve((zi=Co.current)==null?void 0:zi.parentElement)}}},[Xe,Yi]),(0,vt.useEffect)(()=>{if(Xe){let Pi=[];for(const[Ni,Wn]of Object.entries(Mo)){let zi={[Ni]:()=>{Yn(Wn)}};Pi.push(zi),Xe.addKeyMap(zi)}return()=>{for(let Ni of Pi)Xe.removeKeyMap(Ni)}}},[Xe]),(0,vt.useEffect)(()=>{Re!==ze&&Ge(Re)},[Re]),(0,Di.Z)(()=>{if(!le&&kn>0){let Pi=new Date().getTime(),Ni=window.sessionStorage.getItem(Nn);Pi>=kn+Ri&&(!Ni||Ni!==ji)&&(window.sessionStorage.setItem(Nn,ji),pi(!0))}},Ri),(0,vt.useEffect)(()=>{Vn(ie)},[Xe,ie]),(0,vt.useEffect)(()=>{Xe&&ve&&Xe.focus()},[Xe,ve]),(0,vt.useEffect)(()=>{if(nn&&Xe){let Pi=function(Wn){let zi=Wn.target;if(ii.current){let xo=zi.scrollTop/zi.scrollHeight;ii.current.scrollTop=ii.current.scrollHeight*xo}};const Ni=Xe.getScrollerElement();return Ni.addEventListener("scroll",Pi),()=>{Ni.removeEventListener("scroll",Pi)}}},[Xe,nn]),(0,vt.useEffect)(()=>{if(Xe&&He){let Pi=function(Ni,Wn){He(Ni,Wn)};return Xe.on("beforeChange",Pi),()=>{Xe.off("beforeChange",Pi)}}},[Xe,He]),(0,vt.useEffect)(()=>{if(Xe&&fn){let Pi=function(){fn(Xe.getValue())};return Xe.on("blur",Pi),()=>{Xe.off("blur",Pi)}}},[Xe,fn]);function oo(Pi,Ni){var Wn=Pi.getDoc(),zi=Wn.getCursor(),xo=Wn.getLine(zi.line),Ko=xo.charAt(zi.ch-1),Uo=xo.lastIndexOf("@\u2581@",zi.ch),Qo=xo.lastIndexOf("@\u2581\u2581@",zi.ch),ar=Uo>Qo?Uo:Qo,Ro=Uo>Qo?3:4;if(Zn.indexOf(Ko)===-1)return null;if(console.log("change1:",Ni,Pi,xo,zi,ar,Uo,Qo,Ko),ar>=0&&zi.ch-ar<5){var er=ar+Ro;return Wn.replaceRange("",{line:zi.line,ch:ar},{line:zi.line,ch:er}),{line:zi.line,ch:er}}return null}(0,vt.useEffect)(()=>{if(Xe){let Pi=function(Ni,Wn){const zi=Ni.getValue();Ei(zi),Tn(new Date().getTime()),Ni.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Be&&(Gn?Be(zi,xi(zi)):Be(zi))};return Xe.on("change",Pi),()=>{Xe.off("change",Pi)}}},[Xe,Be]),(0,vt.useEffect)(()=>{if(Xe)if(Ae==null)Xe.setValue(""),Ei("");else{const Pi=window.scrollY||window.pageYOffset;Ae!==Xe.getValue()&&(Xe.setValue(Ae),Ei(Ae),Xe.setCursor(bn?1:Xe.lineCount(),0),window.scrollTo(0,Pi))}},[Xe,Ae]);const Yn=(0,vt.useCallback)(Pi=>{const Ni=Xe.getCursor(),Wn=Xe.getSelection();let zi=Wn.split(` `);switch(Pi){case"bold":return Xe.replaceSelection("**"+Wn+"**"),Wn===""&&Xe.setCursor(Ni.line,Ni.ch+2),Xe.focus();case"italic":return Xe.replaceSelection("*"+Wn+"*"),Wn===""&&Xe.setCursor(Ni.line,Ni.ch+1),Xe.focus();case"code":return Xe.replaceSelection("`"+Wn+"`"),Wn===""&&Xe.setCursor(Ni.line,Ni.ch+1),Xe.focus();case"inline-latex":return un("inline-latex"),Xe.focus();case"latex":return Xe.replaceSelection("```latex\n"+Wn+"\n```"),Xe.setCursor(Ni.line+1,Wn.length+1),Xe.focus();case"line-break":return Xe.replaceSelection(`
`),Xe.focus();case"list-ul":return Wn===""?Xe.replaceSelection("- "+Wn):Xe.replaceSelection(zi.map(xo=>xo===""?"":`- ${xo}`).join(` `)),Xe.focus();case"list-ol":return Wn===""?Xe.replaceSelection("1. "+Wn):Xe.replaceSelection(zi.map((xo,Ko)=>xo===""?"":`${Ko+1}. ${xo}`).join(` `)),Xe.focus();case"add-null-ch":return Wn===""&&Xe.setCursor(Ni.line,Ni.ch),Xe.replaceSelection(Qi),Xe.focus();case"add-signal":return Wn===""&&Xe.setCursor(Ni.line,Ni.ch),Xe.replaceSelection(Mt),Xe.focus();case"add-multiple":return Wn===""&&Xe.setCursor(Ni.line,Ni.ch),Xe.replaceSelection(Zn),Xe.focus();case"inster-template-1":return Wn===""&&Xe.setCursor(Ni.line,Ni.ch),Xe.replaceSelection(so),Xe.focus();case"eraser":return Xe.setValue(""),Xe.focus();case"trigger-watch":return Vn(!nn),Xe.focus();case"trigger-full-screen":return Ge(!ze),Xe.focus();case Pn:un(Pn);return;case ni:un(ni);return;case Cn:un(Cn);return;case Jn:un(Jn);return;case"maths-latex":un("maths-latex");return;case An:un(An);return;case fi:un(fi);return;default:throw new Error}},[Xe,nn,ze]),zt=(0,vt.useCallback)((Pi,Ni)=>{var Wn,zi,xo,Ko,Uo,Qo;switch(un(""),Oe){case Pn:const{title:qr,link:sn}=Pi;return Xe.replaceSelection(`[${qr}](${sn})`),Xe.focus();case ni:const{language:wr,content:Sa}=Pi;return Xe.replaceSelection(["```"+wr,Sa,"```"].join(` `)),Xe.focus();case"maths-latex":for(var ar=atob(Pi),Ro=new Uint8Array(ar.length),er=0;er{no.id?Xe.replaceSelection(`![,](/api/attachments/${no.id}?type=${no.content_type})`):(no==null?void 0:no.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xe.replaceSelection("`$$"+Pi+"$$`");break;case Cn:case Jn:case ui:const{src:Cs,alt:jo}=Pi,Lo=Ni,vr=(xo=(zi=(Wn=Lo==null?void 0:Lo.name)==null?void 0:Wn.split("."))==null?void 0:zi.pop)==null?void 0:xo.call(zi);return((Ko=Lo==null?void 0:Lo.type)==null?void 0:Ko.indexOf("image"))>-1||!(Lo!=null&&Lo.type)?Lo!=null&&Lo.align||Lo!=null&&Lo.width?Xe.replaceSelection(`

${jo||

`):Xe.replaceSelection(`${jo||`):((Uo=Lo==null?void 0:Lo.type)==null?void 0:Uo.indexOf("video"))>-1?Xe.replaceSelection(``):((Qo=Lo==null?void 0:Lo.type)==null?void 0:Qo.indexOf("pdf"))>-1?Xe.replaceSelection(`${Lo.name}`):Ii.includes(vr)?Xe.replaceSelection(`${Lo.name}`):Xe.replaceSelection(`[${Lo.name}](${Cs})`),Xe.focus();case fi:const{row:Xo,col:bo,align:Ao}=Pi;let ur=` `;for(let no=0;no{switch(Oe){case Pn:return vt.createElement(pn,{callback:zt,onCancel:vo});case ni:return vt.createElement(ln.Z,{callback:zt,onCancel:vo});case Cn:return vt.createElement(Ee.Z,{callback:zt,onCancel:vo});case An:return vt.createElement(qt,{callback:zt,onCancel:vo});case fi:return vt.createElement(Ne,{callback:zt,onCancel:vo});case"maths-latex":return vt.createElement(Ln,{showSaveButton:!0,callback:zt});case"inline-latex":return vt.createElement(ye.Z,{showSaveButton:!0,callback:zt});default:return null}},[Oe]);function vo(){un("")}(0,vt.useEffect)(()=>{if(Si.current){let Pi=function(Uo){xo=!0,Ko=Uo.pageY},Ni=function(){xo=!1},Wn=function(Uo){if(xo){let Qo=Uo.pageY-Ko;Qo<0&&(Qo=0),Qo>300&&(Qo=300);let ar=Je+Qo+"px";ei(ar)}},zi=Si.current,xo=!1,Ko=0;return zi.addEventListener("mousedown",Pi),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",Ni),()=>{zi.removeEventListener("mousedown",Pi),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",Ni)}}},[Xe,Si]),(0,vt.useEffect)(()=>{ei(Je)},[Je]);const ao=Wi(_t),Eo=Wi(Rn),Ho={width:ao,height:Eo},Zi=(0,vt.useMemo)(()=>{if(kn){let Pi=new Date(kn),Ni=Pi.getHours(),Wn=Pi.getMinutes(),zi=Pi.getSeconds();return Ni=Ni<10?"0"+Ni:Ni,Wn=Wn<10?"0"+Wn:Wn,zi=zi<10?"0"+zi:zi,`${Ni}:${Wn}:${zi}`}return 0},[kn]),xi=Pi=>{const Ni=[];if(Gn){let Wn=-1;Pi=Pi.replace(/(@▁▁@|@▁@)/g,function(zi,xo,Ko){Ni.push({multiLine:zi!==Mt})})}return Ni};function Fi(){window.sessionStorage.removeItem(Nn),pi(!1),Tn(0)}function Mi(){pi(!1),Tn(0),Xe.setValue(window.sessionStorage.getItem(Nn))}(0,vt.useEffect)(()=>{ai[Oe]&&Oe!==Jn&&Oe!==An&&setTimeout(()=>{const Pi=document.getElementsByClassName("markdown-popup-form")[0],Ni=window.innerWidth/2-Pi.offsetWidth/2,Wn=window.innerHeight/2-Pi.offsetHeight/2;Ci(Ni),$i(Wn)},0)},[Oe]);const co=Pi=>{Pi.preventDefault();const Ni=Pi.clientX-tn,Wn=Pi.clientY-Ui;document.body.onmousemove=zi=>{let xo=zi.clientX-Ni,Ko=zi.clientY-Wn;const Uo=document.getElementsByClassName("markdown-popup-form")[0],Qo=window.innerWidth-Uo.offsetWidth,ar=window.innerHeight-Uo.offsetHeight;xo=Math.max(0,Math.min(xo,Qo)),Ko=Math.max(0,Math.min(Ko,ar)),uo(zi.clientX,zi.clientY,Ni,Wn)&&(Ci(xo),$i(Ko))},document.body.onmouseup=function(){document.body.onmousemove=null}},uo=(Pi,Ni,Wn,zi)=>{const xo=document.body.clientHeight,Ko=document.body.clientWidth;return Pi<20&&Wn>Pi||Pi>Ko-20&&WnNi||Ni>xo-20&&ziWt in Kt?Fe(Kt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Kt[Wt]=xe,at=(Kt,Wt)=>{for(var xe in Wt||(Wt={}))et.call(Wt,xe)&&ht(Kt,xe,Wt[xe]);if(Ot)for(var xe of Ot(Wt))nt.call(Wt,xe)&&ht(Kt,xe,Wt[xe]);return Kt},ft=(Kt,Wt)=>re(Kt,me(Wt));const{useForm:mt}=vt.default,wt={width:280,marginRight:10},Et={labelCol:{span:5},wrapperCol:{span:19}};var Nt=({callback:Kt,onCancel:Wt})=>{const[xe]=mt();let Vt=(0,we.useRef)();function Ie(Le){Vt.current.width=xe.getFieldValue("width"),Vt.current.align=xe.getFieldValue("align"),Kt(Le,Vt.current)}function Se(Le,Pe){if(Le.status===-1){It.ZP.error(Le.message);return}xe.setFieldsValue({src:`/api/attachments/${Le.id}`,type:Pe.type})}function Ye(Le){let Pe=Le.target.files[0];Vt.current=Pe,At(Pe,Se)}return te.createElement(vt.default,ft(at({form:xe},Et),{className:"upload-image-panel",onFinish:Ie,style:{width:470,overflow:"hidden"}}),te.createElement(vt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},te.createElement("div",{className:"flex-container"},te.createElement(vt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},te.createElement(oe.default,{style:wt})),te.createElement(Dt,{onFileChange:Ye}))),te.createElement(vt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},te.createElement(oe.default,{style:{width:264}})),te.createElement(vt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},te.createElement(de.Z,null,te.createElement(vt.default.Item,{name:"width",style:{margin:0}},te.createElement($t.Z,{style:{width:264}})),te.createElement("span",{className:"ml8"},"%"))),te.createElement(vt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},te.createElement(Ut.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"}]})),te.createElement("aside",null,te.createElement(vt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},te.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Jt.ZP,{type:"default",onClick:Wt},"\u53D6\u6D88"))))};function Dt({onFileChange:Kt}){return te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",te.createElement("input",{type:"file",onChange:Kt}))}function At(Kt,Wt){if(!Kt)throw new String("\u6CA1\u6709\u6587\u4EF6");let xe=new FormData;xe.append("editormd-image-file",Kt),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var Vt=new window.XMLHttpRequest;Vt.withCredentials=!0,Vt.addEventListener("load",function(Ie){Wt(JSON.parse(Ie.target.responseText),Kt)},!1),Vt.addEventListener("error",function(Ie){console.error(Ie)},!1),Vt.open("POST",`${De.KI}/api/attachments.json`),Vt.send(xe)}},79346:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return oe}});var vt=Pt(59301),It=Pt(4676);class oe extends vt.Component{constructor($t){super($t);const Ut=window.document;this.node=Ut.createElement("div"),Ut.body.appendChild(this.node)}render(){const{children:$t}=this.props;return(0,It.createPortal)($t,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{SV:function(){return ee},ZP:function(){return yt}});var vt=Pt(59301),It=Pt(76374);const oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},de={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"]},$t={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Ut={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(` `)}]},Jt={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var De=Pt(53184),we=Pt.n(De),te=Object.defineProperty,Fe=Object.defineProperties,re=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(pe,qt,Zt)=>qt in pe?te(pe,qt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):pe[qt]=Zt,ht=(pe,qt)=>{for(var Zt in qt||(qt={}))Ot.call(qt,Zt)&&nt(pe,Zt,qt[Zt]);if(me)for(var Zt of me(qt))et.call(qt,Zt)&&nt(pe,Zt,qt[Zt]);return pe},at=(pe,qt)=>Fe(pe,re(qt)),ft=(pe,qt,Zt)=>new Promise((fe,ce)=>{var ne=an=>{try{hn(Zt.next(an))}catch(_e){ce(_e)}},Ne=an=>{try{hn(Zt.throw(an))}catch(_e){ce(_e)}},hn=an=>an.done?fe(an.value):Promise.resolve(an.value).then(ne,Ne);hn((Zt=Zt.apply(pe,qt)).next())});const mt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},wt=(pe,qt)=>qt.map(Zt=>({label:Zt,kind:pe.languages.CompletionItemKind.Keyword,insertText:Zt})),Et=pe=>Object.keys(mt.tables).map(qt=>({label:qt,kind:pe.languages.CompletionItemKind.Variable,insertText:qt})),Nt=(pe,qt)=>{const Zt=mt.tables[pe];return Zt?Zt.map(fe=>({label:fe,kind:qt.languages.CompletionItemKind.Field,insertText:fe})):[]};function Dt(pe,qt,Zt,fe,ce){let ne=qt.getWordUntilPosition(Zt),Ne={startLineNumber:Zt.lineNumber,endLineNumber:Zt.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},hn=fe.map(an=>({label:an,kind:pe.languages.CompletionItemKind.Keyword,insertText:an,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}));return ce.map(an=>{hn.push(at(ht({},an),{range:Ne}))}),hn}var At=pe=>{mt.languages.map(ce=>(pe.languages.registerDocumentFormattingEditProvider(ce,{provideDocumentFormattingEdits(ne,Ne,hn){return ft(this,null,function*(){const an=we()(ne.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:ne.getFullModelRange(),text:an}]})}}),ce));const qt=$t.quickKey.map(ce=>({label:ce.label,kind:pe.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Zt=Ut.quickKey.map(ce=>({label:ce.label,kind:pe.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),fe=de.quickKey.map(ce=>({label:ce.label,kind:pe.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));pe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ce,ne){var Ne=ce.getWordUntilPosition(ne),hn={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},an=ce.getLineContent(ne.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...$t.keywords.map(_e=>({label:_e,kind:pe.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn})),...$t.quickKey.map(_e=>({label:_e.label,kind:pe.languages.CompletionItemKind.Function,documentation:_e.content,insertText:an.startsWith("#")?_e.content.replace(/#/,""):_e.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}))]}}}),pe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ce,ne){var Ne=ce.getWordUntilPosition(ne),hn={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn};return{suggestions:[...oe.keywords.map(an=>({label:an,kind:pe.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}))]}}}),pe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ce,ne){var Ne=ce.getWordUntilPosition(ne),hn={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},an=ce.getLineContent(ne.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...de.keywords.map(_e=>({label:_e,kind:pe.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn})),...de.quickKey.map(_e=>({label:_e.label,kind:pe.languages.CompletionItemKind.Function,documentation:_e.content,insertText:an.startsWith("#")?_e.content.replace(/#/,""):_e.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}))]}}}),pe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ce,ne){var Ne=ce.getWordUntilPosition(ne),hn={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},an=ce.getLineContent(ne.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...Jt.keywords.map(_e=>({label:_e,kind:pe.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn})),...Jt.quickKey.map(_e=>({label:_e.label,kind:pe.languages.CompletionItemKind.Function,documentation:_e.content,insertText:an.startsWith("#")?_e.content.replace(/#/,""):_e.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}))]}}}),pe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ce,ne){var Ne=ce.getWordUntilPosition(ne),hn={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},an=ce.getLineContent(ne.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...Ut.keywords.map(_e=>({label:_e,kind:pe.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn})),...Ut.quickKey.map(_e=>({label:_e.label,kind:pe.languages.CompletionItemKind.Function,documentation:_e.content,insertText:an.startsWith("#")?_e.content.replace(/#/,""):_e.content,insertTextRules:pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}))]}}})};const Kt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Wt=Object.defineProperty,xe=(pe,qt,Zt)=>qt in pe?Wt(pe,qt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):pe[qt]=Zt,Vt=(pe,qt,Zt)=>xe(pe,typeof qt!="symbol"?qt+"":qt,Zt);const Ie=class wx{constructor(qt,Zt,fe){this.placeholder=qt,this.editor=Zt,this.monaco=fe,Zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return wx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Vt(Ie,"ID","editor.widget.placeholderHint");var Ye=Ie,Le=Pt(96236),Pe=Pt(8591),We=Pt(6848),Ue=Pt(89392),ue=Pt(34604),Ht=Pt(56102),ke=Object.defineProperty,pn=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Bn=(pe,qt,Zt)=>qt in pe?ke(pe,qt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):pe[qt]=Zt,dn=(pe,qt)=>{for(var Zt in qt||(qt={}))Ke.call(qt,Zt)&&Bn(pe,Zt,qt[Zt]);if(Ee)for(var Zt of Ee(qt))gn.call(qt,Zt)&&Bn(pe,Zt,qt[Zt]);return pe},In=(pe,qt)=>pn(pe,ln(qt)),Ce=(pe,qt)=>{var Zt={};for(var fe in pe)Ke.call(pe,fe)&&qt.indexOf(fe)<0&&(Zt[fe]=pe[fe]);if(pe!=null&&Ee)for(var fe of Ee(pe))qt.indexOf(fe)<0&&gn.call(pe,fe)&&(Zt[fe]=pe[fe]);return Zt},$n=(pe,qt,Zt)=>new Promise((fe,ce)=>{var ne=an=>{try{hn(Zt.next(an))}catch(_e){ce(_e)}},Ne=an=>{try{hn(Zt.throw(an))}catch(_e){ce(_e)}},hn=an=>an.done?fe(an.value):Promise.resolve(an.value).then(ne,Ne);hn((Zt=Zt.apply(pe,qt)).next())});function Qn(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}function jt(){}let Lt=!1;const xt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Tt(pe=[]){let qt=pe;if(Array.isArray(pe)){for(let Zt=0;Zt{var qt=pe,{width:Zt="100%",height:fe="100%",value:ce,language:ne="javascript",style:Ne={},options:hn={},overrideServices:an={},theme:_e="vs-dark",onEditBlur:En,isCopy:Ln=!1,onSave:ye,autoHeight:on=!1,forbidCopy:Pn=!1,onChange:Cn=jt,editorDidMount:An=jt,onFocus:Jn=jt,onBreakPoint:ui=jt,breakPointValue:ni=[],filename:fi="educoder.txt",errorLine:Bi,errorContent:Ti="",highlightLine:Di,openBreakPoint:io=!1,placeholder:to=""}=qt,Ri=Ce(qt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Qi=(0,vt.useRef)(),Zn=(0,vt.useRef)({}),Mt=(0,vt.useRef)(),so=(0,vt.useRef)(),Ii=(0,vt.useRef)([]),Wi=(0,vt.useRef)(!1),ki=(0,vt.useRef)(),Bo=(0,vt.useRef)(),Mo=(0,vt.useRef)(!1),[ai,di]=(0,vt.useState)(!1);function Ae(){let Re;return Qi.current&&(Re=new It.Z(fn=>{for(let He of fn)(He.target.offsetHeight>0||He.target.offsetWidth>0)&&Zn.current.instance.layout()}),Re.observe(Qi.current)),Re}function Be(){Pe.ZP.warning({content:decodeURIComponent(Kt),key:"monaco-editor-tip"})}const _t=()=>{let Re=Zn.current.instance;if(ce!=null&&Re&&ai){const fn=Re.getModel();fn&&ce!==fn.getValue()&&(Lt=!0,fn.setValue(ce),Re.layout(),Lt=!1)}};(0,vt.useEffect)(()=>{const Re=ue.Z.subscribe("formatDocument",fn=>{var He;let je=Zn.current.instance;(He=je==null?void 0:je.getAction)==null||He.call(je,"editor.action.formatDocument").run()});return window.updateMonacoValue=fn=>{Cn(fn)},Re},[]),(0,vt.useEffect)(()=>{var Re;let fn=Zn.current.instance;so.current&&clearTimeout(so.current),so.current=setTimeout(()=>{_t()},500),ce&&(ce!=null&&ce.length)&&((Re=fn==null?void 0:fn.updateOptions)==null||Re.call(fn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ce.split(/\r\n|\r|\n/g).length))+3,5)}))},[ce,ai,Zn.current]),(0,vt.useEffect)(()=>{if(Bi&&Zn.current&&Zn.current.instance){let fn=Zn.current.instance;fn.changeViewZones(function(He){var je=document.createElement("div");je.style.padding="10px 20px",je.style.width="calc(100% - 20px)",je.className="my-error-line-wrp",je.innerHTML=Ti,He.addZone({afterLineNumber:Bi||11,heightInLines:3,domNode:je})});var Re={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}};fn.addOverlayWidget(Re),fn.revealPositionInCenter({lineNumber:20,column:1})}},[Bi,Zn.current,ai]);const Je=(Re="",fn)=>{if(!Re||Re.trim()==="")return!0;const je=Zn.current.instance.getModel().getLineTokens(fn);let vn=!1;for(let rn=0;rn<2;rn++)je.getStandardTokenType(rn)===1&&(vn=!0);return vn};(0,vt.useEffect)(()=>{var Re;const fn=(Re=Zn.current)==null?void 0:Re.instance;if(fn&&ai&&Pn){const He=fn.onDidBlurEditorWidget(()=>{Mo.current=!1}),je=fn.onDidFocusEditorText(()=>{Mo.current=!0});return()=>{He.dispose(),je.dispose()}}},[Zn.current,ai,Pn]),(0,vt.useEffect)(()=>{var Re;if((Re=Zn.current)!=null&&Re.instance&&ai&&io){let fn=Zn.current.instance,He=fn.getModel();if(!He)return;(()=>{var Ei;let nn=[],Vn=[];const ze=He.getAllDecorations();for(let Oe of ze)Oe.options.className==="highlighted-line"&&(nn.push((Ei=Oe==null?void 0:Oe.range)==null?void 0:Ei.startLineNumber),Vn.push(Oe==null?void 0:Oe.id));if(Di===nn[0])return;He.deltaDecorations(Vn,[]);const Ge=He.getLineCount();Di&&Di<=Ge&&(fn.deltaDecorations([],[{range:new Ft.Range(Di,1,Di,He.getLineMaxColumn(Di)),options:{isWholeLine:!0,className:"highlighted-line"}}]),fn.revealLineInCenter(Di))})();const vn=(Ei=!1)=>{var nn;let Vn=[],ze=[];const Ge=He.getAllDecorations();for(let Oe of Ge)Oe.options.linesDecorationsClassName==="breakpoints-select"&&(Vn.push((nn=Oe==null?void 0:Oe.range)==null?void 0:nn.startLineNumber),ze.push(Oe==null?void 0:Oe.id));if(Ei)return{lines:Vn,ids:ze};ui(Vn)},rn=Ei=>$n(void 0,null,function*(){let nn={range:new Ft.Range(Ei,1,Ei,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield He.deltaDecorations([],[nn]),vn()}),bn=Ei=>$n(void 0,null,function*(){let nn=[];const Vn=fn.getLineDecorations(Ei);for(let ze of Vn)ze.options.linesDecorationsClassName==="breakpoints-select"&&nn.push(ze.id);yield He.deltaDecorations(nn,[]),vn()}),xn=Ei=>{let nn=fn.getLineDecorations(Ei);for(let Vn of nn)if(Vn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ue.isEqual)(ni,vn(!0).lines)){He.deltaDecorations(vn(!0).ids,[]);const Ei=ni.map(nn=>({range:new Ft.Range(nn,1,nn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));He.deltaDecorations([],Ei)}const On=fn.onDidChangeModelContent(Ei=>{let nn=fn.getPosition();if(nn){let Vn=nn.lineNumber;clearTimeout(Bo.current),Bo.current=setTimeout(()=>{Je(He.getLineContent(Vn),Vn)?bn(Vn):xn(Vn)?(bn(Vn),rn(Vn)):vn()},100)}}),zn=fn.onMouseDown(Ei=>{var nn,Vn,ze;if(Ei.target.detail&&((ze=(Vn=(nn=Ei.target)==null?void 0:nn.element)==null?void 0:Vn.className)!=null&&ze.includes("line-numbers"))){let Ge=Ei.target.position.lineNumber;if(Je(He.getLineContent(Ge),Ge))return;xn(Ge)?bn(Ge):rn(Ge)}}),yi=Ei=>{let nn={range:new Ft.Range(Ei,1,Ei,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ii.current=fn.deltaDecorations(Ii.current,[nn])},Xe=()=>{Ii.current=fn.deltaDecorations(Ii.current,[])},Li=fn.onMouseMove(Ei=>{var nn,Vn,ze;if(Xe(),Ei.target.detail&&((ze=(Vn=(nn=Ei.target)==null?void 0:nn.element)==null?void 0:Vn.className)!=null&&ze.includes("line-numbers"))){let Ge=Ei.target.position.lineNumber;if(Je(He.getLineContent(Ge),Ge))return;yi(Ge)}}),ji=fn.onMouseLeave(()=>{Xe()});return()=>{On.dispose(),zn.dispose(),Li.dispose(),ji.dispose()}}},[Zn.current,ai,ni,Di,io,ne]),(0,vt.useEffect)(()=>{var Re;(Re=Zn.current)!=null&&Re.instance&&io&&Zn.current.instance.setPosition({lineNumber:0,column:0})},[Di]);function cn(){let Re=Zn.current.instance;if(Re){const fn=Re.getSelection(),He=Zn.current.pastePos||{},je=new Ft.Range(He.startLineNumber||fn.endLineNumber,He.startColumn||fn.endColumn,He.endLineNumber||fn.endLineNumber,He.endColumn||fn.endColumn);setTimeout(()=>{Re.executeEdits("",[{range:je,text:""}])},300)}}function ve(Re){(window.navigator.platform.match("Mac")?Re.metaKey:Re.ctrlKey)&&Re.keyCode==83&&(Re.preventDefault(),ye())}const ie=()=>{if(on&&Zn.current.instance){const Re=Zn.current.instance.getContentHeight();Gn(Re{if(!Mo.current)return;const{keyCode:fn,ctrlKey:He,metaKey:je,target:vn,type:rn}=Re;return(rn==="paste"||(fn===67||fn===86)&&(je||He))&&vn.nodeName==="TEXTAREA"&&(Be(),Re.preventDefault()),!1};function Nn(Re,fn){var He=window.URL||window.webkitURL||window,je=new Blob([fn]),vn=document.createElementNS("http://www.w3.org/1999/xhtml","a");vn.href=He.createObjectURL(je),vn.download=Re,Qe(vn)}(0,vt.useEffect)(()=>{ie()},[ie]),(0,vt.useEffect)(()=>{Qi.current&&!ai&&Promise.all([Pt.e(8909),Pt.e(3267)]).then(Pt.bind(Pt,71448)).then(Re=>{try{Ft=Re,Zn.current.instance=Ft.editor.create(Qi.current,{value:ce,language:Tt(ne),theme:_e,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},an);const fn=Zn.current.instance;let vn=[...Le.BH._menuItems].find(On=>On[0]._debugName=="EditorContext")[1],rn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bn=(On,zn)=>{var yi,Xe;let Li=On._first;do zn.includes((Xe=(yi=Li.element)==null?void 0:yi.command)==null?void 0:Xe.id)&&On._remove(Li);while(Li=Li.next)};if(An(fn,Ft),setTimeout(()=>{ie(),Zn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nn(fi||"educoder.txt",fn.getValue())}})},500),Zn.current.subscription=fn.onDidChangeModelContent(On=>{Wi.current?clearTimeout(ki.current):(ie(),Cn(fn.getValue(),On)),ki.current=setTimeout(()=>{Wi.current=!1},500)}),window.Monaco||At(Ft,Tt(ne)),Pn&&(bn(vn,rn),Qi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",yn),window.removeEventListener("paste",yn),window.addEventListener("keydown",yn),window.addEventListener("paste",yn)),window.Monaco=Ft,En&&fn.onDidBlurEditorWidget(()=>{En(fn.getValue())}),Jn&&fn.onDidFocusEditorText(()=>{Jn(fn.getValue())}),Pn)try{fn.onDidPaste(On=>{const zn=fn.getSelection(),yi=Zn.current.pastePos||{},Xe=new Ft.Range(yi.startLineNumber||zn.endLineNumber,yi.startColumn||zn.endColumn,yi.endLineNumber||zn.endLineNumber,yi.endColumn||zn.endColumn);fn.executeEdits("",[{range:On.range,text:""}])})}catch(On){}let xn=Ae();return to&&typeof to=="string"&&new Ye(to,fn,Ft),di(!0),()=>{const On=Zn.current.instance;On.dispose();const zn=On.getModel();zn&&zn.dispose(),Zn.current.subscription&&Zn.current.subscription.dispose(),xn.unobserve(Qi.current)}}catch(fn){}})},[]),(0,vt.useEffect)(()=>{if(Zn.current.instance&&ai)return document.addEventListener("keydown",ve,!1),()=>{document.removeEventListener("keydown",ve)}},[ye,ai]),(0,vt.useEffect)(()=>{let Re=Zn.current.instance;if(Re&&ai){let fn=Tt(ne);Ft.editor.setModelLanguage(Re.getModel(),fn)}},[ne,ai]),(0,vt.useEffect)(()=>{Zn.current.instance&&ai&&Ft.editor.setTheme(_e)},[_e,ai]),(0,vt.useEffect)(()=>{let Re=Zn.current.instance;Mt.current=hn,Re&&ai&&(Re.updateOptions(dn({},hn)),setTimeout(()=>{Re.getModel().updateOptions(dn({},hn))},200))},[JSON.stringify(hn),ai]),(0,vt.useEffect)(()=>{let Re=Zn.current.instance;Re&&ai&&Re.layout()},[Zt,fe,ai]);const[_n,le]=(0,vt.useState)(Qn(Zt)),[mn,Gn]=(0,vt.useState)(Qn(fe)),si=In(dn({},Ne),{width:_n,height:mn,position:"relative"});return vt.createElement("div",{className:"my-monaco-editor",ref:Qi,style:si},Ln&&vt.createElement(Ht.CopyToClipboard,{text:ce,onCopy:()=>Pe.ZP.success("\u590D\u5236\u6210\u529F")},vt.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},vt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},vt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ee({width:pe="100%",height:qt="100%",original:Zt,modified:fe,language:ce,options:ne={}}){const Ne=(0,vt.useRef)(),[hn,an]=(0,vt.useState)(null);function _e(on){let Pn;return Ne.current&&(Pn=new It.Z(Cn=>{for(let An of Cn)(An.target.offsetHeight>0||An.target.offsetWidth>0)&&on.layout()}),Pn.observe(Ne.current)),Pn}(0,vt.useEffect)(()=>(Ne.current&&Promise.all([Pt.e(8909),Pt.e(9404)]).then(Pt.bind(Pt,2550)).then(on=>{Ft=on;const Pn=Ft.editor.createDiffEditor(Ne.current,In(dn({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},ne),{wordWrap:!0}));an(Pn);let Cn=_e(Pn);return()=>{Pn.dispose();const An=Pn.getModel();An&&An.dispose(),Cn.unobserve(Ne.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,vt.useEffect)(()=>{hn&&hn.setModel({original:Ft.editor.createModel(Zt,ce),modified:Ft.editor.createModel(fe,ce)})},[Zt,fe,ce,hn]);const En=Qn(pe),Ln=Qn(qt),ye={width:En,height:Ln};return vt.createElement("div",{className:"my-diff-editor",ref:Ne,style:ye})}},85057:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{jL:function(){return $t},w9:function(){return Ke},QD:function(){return Cn},cQ:function(){return Ht},op:function(){return _e},O5:function(){return Mo},_b:function(){return Bi},t7:function(){return at},Gi:function(){return $n},YG:function(){return In},qp:function(){return Fe},vr:function(){return ui},qE:function(){return ye},Je:function(){return wt},wb:function(){return Le},cq:function(){return Ft},tp:function(){return Ot}});var vt=Pt(59301),It={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",$t=({dataSource:ai=[],img:di,imgWidth:Ae=346,title:Be,sunTitle:_t,bannerExtraContent:Je})=>vt.createElement("div",{className:It.banner},vt.createElement("div",{className:It.content},vt.createElement("aside",null,vt.createElement("p",null,vt.createElement("b",null,Be),vt.createElement("span",null,_t)),ai.length>0&&vt.createElement("div",{className:It.btns},ai.map((cn,ve)=>vt.createElement("div",{key:ve,onClick:cn.click},cn.name,cn.sign?vt.createElement("img",{src:oe,width:39}):null))),Je),di&&vt.createElement("img",{style:{marginTop:33,marginRight:38},src:di,width:Ae}))),Ut={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Jt=Pt(92310),De=Pt.n(Jt),we=Pt(89392),Fe=({dataSource:ai=[],value:di,onChange:Ae,onTitleChange:Be,className:_t,title:Je,titleWidth:cn=41,style:ve={},fontColor:ie="#6A7283",showCount:Qe})=>{const[yn,Nn]=(0,vt.useState)(0),[_n,le]=(0,vt.useState)(!1),mn=(0,vt.useRef)(null),Gn=(0,vt.useRef)(null);return(0,vt.useEffect)(()=>{var si;ai.length!==0&&(((si=mn==null?void 0:mn.current)==null?void 0:si.clientHeight)>97?Nn(1):Nn(0)),ai.length===0&&Nn(0),le(!1)},[ai]),vt.createElement("div",{className:De()(Ut.row,_t),style:ve},vt.createElement("div",{onClick:(0,we.throttle)(()=>Be==null?void 0:Be(),2e3),style:{width:cn,marginTop:_n?12:4},className:`${Ut.title} ${Be?"current":""}`},Je),vt.createElement("div",{className:_n?`${Ut.tagsWrap} ${Ut.tagsBorderWrap}`:Ut.tagsWrap},vt.createElement("div",{className:Ut.bar,ref:Gn,style:yn>0?{height:yn===1?97:"auto",overflow:yn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},vt.createElement("div",{className:Ut.tag,ref:mn},ai==null?void 0:ai.map(si=>vt.createElement("span",{onClick:()=>Ae(si.id),key:si.id,style:{color:ie},className:di===si.id?Ut.active:""},vt.createElement("span",{title:si.name,className:Ut.name},si.name),!!Qe&&vt.createElement("span",{className:Ut.num},si.count))))),!!yn&&vt.createElement(vt.Fragment,null,yn===1?vt.createElement("div",{onClick:()=>{var si;Nn(2),((si=mn==null?void 0:mn.current)==null?void 0:si.clientHeight)>245?le(!0):le(!1)},className:Ut.action},"\u5C55\u5F00",vt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):vt.createElement("div",{onClick:()=>{Gn.current.scrollTop=0,Nn(1),le(!1)},className:Ut.action},"\u6536\u8D77",vt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ot=({dataSource:ai=[],value:di,onChange:Ae,className:Be,style:_t={}})=>vt.createElement("div",{style:_t,className:De()(re.tabs,Be)},ai.map(Je=>vt.createElement("span",{onClick:()=>Ae(Je.id),className:di===Je.id?re.active:"",key:Je.id},Je.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},nt=Pt(92832),at=({dataSource:ai=[],value:di="",onChange:Ae,onInputChange:Be=()=>{},className:_t,style:Je={},placeholder:cn,allowClear:ve=!1})=>{var ie;const[Qe,yn]=(0,vt.useState)(""),[Nn,_n]=(0,vt.useState)("");(0,vt.useEffect)(()=>{var Gn;let si=di;(Gn=JSON.stringify(di))!=null&&Gn.includes("{")&&(yn(di.id),si=di.value||"");try{_n(decodeURIComponent(si||""))}catch(Re){_n(decodeURIComponent(si||""))}},[di]);const le=()=>{Ae(encodeURIComponent(Nn),Qe||null)},mn=Gn=>{Gn!==Qe&&(yn(Gn),Ae(encodeURIComponent(Nn),Gn))};return vt.createElement("div",{className:De()(et.input,_t),style:Je},!!ai.length&&vt.createElement("div",{className:et.dropdown},vt.createElement("div",{className:et.text},(ie=ai.find(Gn=>Gn.id===Qe))==null?void 0:ie.name,vt.createElement("i",{className:"iconfont icon-zhankai4"}),vt.createElement("b",{className:et.b1}),vt.createElement("b",{className:et.b2})),vt.createElement("div",{className:et.menu},ai.map((Gn,si)=>vt.createElement("div",{key:si,onClick:()=>mn(Gn.id)},Gn.name)))),vt.createElement(nt.default,{onPressEnter:le,value:Nn,onChange:Gn=>{_n(Gn.target.value),Be(encodeURIComponent(Gn.target.value),Qe||null)},bordered:!1,placeholder:cn}),vt.createElement("i",{onClick:le,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ft={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},wt=({value:ai,onChange:di,className:Ae,total:Be,pageSize:_t,style:Je={}})=>{const cn=ai<2,ve=ai>=Math.ceil(Be/_t);return Be<=_t?vt.createElement(vt.Fragment,null):vt.createElement("div",{className:De()(ft.quickPager,Ae),style:Je},vt.createElement("div",{onClick:()=>{cn||di(ai-1,"prev")},className:cn?ft.disabled:""},"\u4E0A\u4E00\u9875"),vt.createElement("div",{onClick:()=>{ve||di(ai+1,"next")},className:ve?ft.disabled:""},"\u4E0B\u4E00\u9875"))},Et={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Nt=Pt(71418),Dt=Pt(6848),At=Pt(13570),Kt=Pt(3294),Wt=Pt(955),xe=Pt(96908),Vt=Pt(57177),Ie=Pt(81378),Se=Pt(8797),Le=({className:ai,dataSource:di=[],col:Ae=4,right:Be,bottom:_t=23,precision:Je=0,wrapWidth:cn=1200,trackEventItems:ve,loading:ie})=>{const Qe=Math.floor((cn-(Ae-1)*Be)/Ae);return vt.createElement(Nt.Z,{spinning:ie},vt.createElement("div",{className:De()(Et.list,ai)},!!di.length&&di.map((yn,Nn)=>{const{name:_n,id:le,identifier:mn,power:Gn,cover_image_id:si,pic:Re}=yn;return vt.createElement("div",{className:Et.wrap,key:le,style:{width:Qe,marginRight:(1+Nn)%Ae===0?0:Be+Je,marginBottom:_t}},vt.createElement("a",{target:"_blank",href:`/shixuns/${mn}/challenges`,className:Et.li,onClick:fn=>{fn.preventDefault(),ve&&(0,Wt.L9)([ve]),Gn&&(0,Wt.xg)(`/shixuns/${mn}/challenges`)}},vt.createElement("div",{className:Et.img},vt.createElement("img",{className:Et.cover,src:`${Re}`}),yn.is_jupyter&&vt.createElement("img",{className:Et.sign,src:xe}),yn.is_jupyter_lab&&vt.createElement("img",{className:Et.sign,src:Vt}),yn.is_unity_3d&&vt.createElement("img",{className:Et.sign,src:Ie})),vt.createElement("div",{className:Et.name},vt.createElement(Dt.Z,{title:_n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},vt.createElement("span",{className:Et.e},_n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),vt.createElement("div",{className:Et.tags},vt.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),vt.createElement("span",null,yn.challenges_count))),!!yn.myshixuns_count&&vt.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),vt.createElement("span",null,yn.myshixuns_count))),vt.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},vt.createElement("span",null,vt.createElement("span",null,yn.level))),vt.createElement("div",{className:Et.rate},vt.createElement(At.Z,{allowHalf:!0,disabled:!0,defaultValue:yn.score_info}),vt.createElement("span",null,"\xA0",yn.score_info?`${yn.score_info}\u5206`:"5\u5206")))),!Gn&&vt.createElement("div",{className:Et.lockWrap},vt.createElement("img",{src:`${Kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!di.length&&vt.createElement(Se.Z,null)))},Pe={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},We=Pt(24065),Ue=Pt(59301),Ht=({className:ai,dataSource:di=[],col:Ae=4,right:Be,bottom:_t=23,precision:Je=0,wrapWidth:cn=1200,trackEventItems:ve,loading:ie,onRemove:Qe=()=>{},isCurrent:yn=!0,showAlias:Nn=!1})=>{const _n=Math.floor((cn-(Ae-1)*Be)/Ae),le=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ue.createElement(Nt.Z,{spinning:ie},Ue.createElement("div",{className:De()(Pe.list,ai)},!!(di!=null&&di.length)&&(di==null?void 0:di.map((mn,Gn)=>{var si;const{name:Re,id:fn,identifier:He,featured:je,school_name:vn,image_url:rn,excellent:bn,is_plan:xn}=mn;return Ue.createElement("div",{key:fn,className:Pe.wrap,style:{width:_n,marginRight:(1+Gn)%Ae===0?0:Be+Je,marginBottom:_t}},Ue.createElement("a",{className:Pe.li,onClick:On=>{On.preventDefault(),On.stopPropagation(),ve&&(0,Wt.L9)([ve]),(0,Wt.xg)(`/paths/${He}`)}},Ue.createElement("div",{className:Pe.img},Ue.createElement("img",{className:Pe.cover,src:`${rn}`}),yn&&(0,We.bg)()&&(mn==null?void 0:mn.studying)&&Ue.createElement("div",{className:`${Pe.movebq} user-path-items`,onClick:On=>{On.stopPropagation(),Qe(mn)}},Ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),(si=mn==null?void 0:mn.subject_tags)==null?void 0:si.map((On,zn)=>{var yi,Xe;if(zn===0){const ji=(yi=le.find(Ei=>Ei.name==On))==null?void 0:yi.swimg;return Ue.createElement("img",{className:Pe.sign,src:ji,style:{left:"-4px"}})}const Li=(Xe=le.find(ji=>ji.name==On))==null?void 0:Xe.ptimg;return Ue.createElement("img",{className:Pe.sign,src:Li,style:{left:`${48+52*(zn-1)+2*zn}px`}})}),Ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(mn==null?void 0:mn.excellent)&&Ue.createElement("div",{className:Pe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ue.createElement("div",{className:Pe.name},Ue.createElement(Dt.Z,{title:Nn&&(mn!=null&&mn.excellent_alias_name)?Ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Re}`,Ue.createElement("br",null),Ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${mn==null?void 0:mn.excellent_alias_name}`)):Re},Ue.createElement("span",{className:Pe.e},Nn&&(mn==null?void 0:mn.excellent_alias_name)||Re))),Ue.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${vn}`},Ue.createElement("div",{className:Pe.unit},Ue.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),vn)),Ue.createElement("div",{className:Pe.tags},Ue.createElement("div",null,Ue.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ue.createElement("span",null,mn.stages_count))),Ue.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ue.createElement("span",null,mn.members_count)))))))})),!di.length&&Ue.createElement(Se.Z,null)))},ke={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ln=Pt(59301),Ke=({className:ai,dataSource:di=[],col:Ae=4,right:Be,bottom:_t=23,precision:Je=0,wrapWidth:cn=1200,trackEventItems:ve,loading:ie,handleVery:Qe=()=>!0})=>{const yn=Math.floor((cn-(Ae-1)*Be)/Ae);return ln.createElement(Nt.Z,{spinning:ie},ln.createElement("div",{className:De()(ke.list,ai)},!!di.length&&di.map((Nn,_n)=>{const{subject_identifier:le,id:mn,identifier:Gn,power:si}=Nn,Re=Nn.is_public!=0&&Nn.is_public;return ln.createElement("div",{className:ke.wrap,key:mn,style:{width:yn,marginRight:(1+_n)%Ae===0?0:Be+Je,marginBottom:_t}},ln.createElement("a",{className:ke.li,onClick:fn=>{fn.preventDefault(),Qe(Nn==null?void 0:Nn.first_category_url)&&(ve&&(0,Wt.L9)([ve]),(0,Wt.xg)(Nn.first_category_url))}},ln.createElement("div",{className:ke.top},ln.createElement(Dt.Z,{title:Nn.name},ln.createElement("div",{className:ke.name},Nn.name)),ln.createElement("img",{className:ke.img,src:Kt.Z.IMG_SERVER+"/images/"+Nn.avatar_url}),ln.createElement("div",{className:ke.text,title:Nn.creator},Nn.creator),le&&ln.createElement("div",{className:ke.btns},ln.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ln.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Re&&ln.createElement("div",{className:ke.sign},"\u516C\u5F00")),ln.createElement("div",{className:ke.bottom},Nn.visits>0&&ln.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ln.createElement("span",null,ln.createElement("i",{className:"iconfont icon-liulanyan"}),ln.createElement("span",null,Nn.visits))),Nn.course_members_count>0&&ln.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},ln.createElement("span",null,ln.createElement("i",{className:"iconfont icon-chengyuan"}),Nn.course_members_count)),Nn.tasks_count>0&&ln.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ln.createElement("span",null,ln.createElement("i",{className:"iconfont icon-zuoye"}),Nn.tasks_count)),Nn.is_end?ln.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ln.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nn.is_accessible&&ln.createElement("div",{className:ke.lockWrap},ln.createElement("img",{src:`${Kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ln.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!di.length&&ln.createElement(Se.Z,null)))},gn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Bn=Pt(89070),In=({dataSource:ai=[],value:di,onChange:Ae,className:Be,style:_t={},tabBarExtraContent:Je})=>vt.createElement("div",{className:De()(gn.tabs,Be),style:_t},vt.createElement("div",{className:gn.tabsWrap},ai.map((cn,ve)=>!(cn!=null&&cn.hide)&&vt.createElement("aside",{className:gn.tab,onClick:()=>{Ae(cn.id),cn.link&&Bn.history.push(cn.link)},key:ve},vt.createElement("div",{className:di===cn.id?gn.active:""},cn.name),(cn==null?void 0:cn.resetCount)==null&&(cn==null?void 0:cn.total)!==void 0&&vt.createElement("span",null,"\uFF08",cn==null?void 0:cn.total,"\uFF09"),(cn==null?void 0:cn.resetCount)!==void 0&&(cn==null?void 0:cn.total)!==void 0&&vt.createElement(Dt.Z,{title:(cn==null?void 0:cn.tip)!=null?cn==null?void 0:cn.tip:""},vt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",vt.createElement("span",{style:{color:"#000"}},cn==null?void 0:cn.resetCount),"/",vt.createElement("span",null,cn==null?void 0:cn.total),"\uFF09"))))),vt.createElement("div",{className:gn.tabBar},Je)),$n=({className:ai,style:di={},children:Ae})=>vt.createElement("div",{className:De()(ai),style:di},Ae),Qn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},jt=Pt(38854),Lt=Pt(20834);const xt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ft=({sortValue:ai,dropValue:di,className:Ae,onSort:Be,onDrop:_t,dataSource:Je=xt})=>{var cn;return vt.createElement("div",{className:De()(Qn.orderWrap,Ae)},vt.createElement(jt.Z,{dropdownRender:()=>vt.createElement(Lt.default,null,Je.map((ve,ie)=>vt.createElement(Lt.default.Item,{key:ie,onClick:()=>_t(ve.id)},ve.name)))},vt.createElement("span",{className:Qn.orderTextWrap},(cn=Je.find(ve=>di===ve.id))==null?void 0:cn.name)),vt.createElement("span",{className:Qn.orderIconWrap},vt.createElement("span",{className:Qn.orderAsc},vt.createElement("i",{className:ai==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qn.cursorPointer}`,onClick:()=>Be(ai==="asc"?"desc":"asc")})),vt.createElement("span",{className:Qn.orderDesc},vt.createElement("i",{className:ai==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer} ${Qn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qn.cursorPointer}`,onClick:()=>Be(ai==="asc"?"desc":"asc")}))))},yt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ee=Pt(3113),pe=Object.defineProperty,qt=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,ce=(ai,di,Ae)=>di in ai?pe(ai,di,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ai[di]=Ae,ne=(ai,di)=>{for(var Ae in di||(di={}))Zt.call(di,Ae)&&ce(ai,Ae,di[Ae]);if(qt)for(var Ae of qt(di))fe.call(di,Ae)&&ce(ai,Ae,di[Ae]);return ai},Ne=(ai,di)=>{var Ae={};for(var Be in ai)Zt.call(ai,Be)&&di.indexOf(Be)<0&&(Ae[Be]=ai[Be]);if(ai!=null&&qt)for(var Be of qt(ai))di.indexOf(Be)<0&&fe.call(ai,Be)&&(Ae[Be]=ai[Be]);return Ae},hn=(ai,di,Ae)=>new Promise((Be,_t)=>{var Je=ie=>{try{ve(Ae.next(ie))}catch(Qe){_t(Qe)}},cn=ie=>{try{ve(Ae.throw(ie))}catch(Qe){_t(Qe)}},ve=ie=>ie.done?Be(ie.value):Promise.resolve(ie.value).then(Je,cn);ve((Ae=Ae.apply(ai,di)).next())}),_e=ai=>{var di=ai,{className:Ae,style:Be,children:_t,loading:Je=!1,openLoading:cn,onClick:ve=()=>{},size:ie="middle",shape:Qe="round"}=di,yn=Ne(di,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Nn,_n]=(0,vt.useState)(!1);return vt.createElement(ee.ZP,ne({onClick:(0,we.throttle)(le=>hn(void 0,null,function*(){cn&&_n(!0);try{yield ve(le)}catch(mn){console.log("error",mn)}cn&&_n(!1)}),2e3,{leading:!0,trailing:!1}),className:De()(yt.btn,yt[`${ie}-${Qe}`],Ae),style:Be,size:ie,shape:Qe,loading:Nn||Je},yn),_t)},En={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ye=({className:ai,style:di,children:Ae=null,onClick:Be,title:_t})=>vt.createElement("div",{className:De()(En.head,ai),style:di},vt.createElement("span",{className:"primary-hover",onClick:Be},vt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),vt.createElement("b",{title:_t},_t),vt.createElement("div",{className:En.node},Ae)),on={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Cn=({confirmShow:ai=!0,confirmTitle:di,confirmClick:Ae,cancelShow:Be=!0,cancelTitle:_t,cancelClick:Je,className:cn,style:ve,confirmLoading:ie=!1})=>vt.createElement("div",{className:De()(on.btns,cn),style:ve},ai&&vt.createElement(ee.ZP,{loading:ie,onClick:Ae,type:"primary",className:on.confirm},di),Be&&vt.createElement(ee.ZP,{onClick:Je,className:on.cancel},_t)),An={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ui=({className:ai,style:di={},LeftContent:Ae,children:Be,RightContent:_t})=>vt.createElement("div",{className:De()(An.fixedBottom,ai),style:di},vt.createElement("div",{className:An.wrap},vt.createElement("div",{className:An.left},Ae),vt.createElement("div",{className:An.center},Be),vt.createElement("div",{className:An.right},_t))),ni={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Bi=({className:ai,style:di={},dataSource:Ae=[]})=>vt.createElement("div",{className:De()(ni.crumbs,ai),style:di},Ae.map((Be,_t)=>_tBn.history.push(Be.path)},Be.name):vt.createElement("span",null,Be.name),vt.createElement("span",null,"\xA0",">","\xA0")):vt.createElement("span",{key:_t,style:{color:"#5F6368"}},Be.name))),Ti=Pt(31797),Di=Object.defineProperty,io=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,Mt=(ai,di,Ae)=>di in ai?Di(ai,di,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ai[di]=Ae,so=(ai,di)=>{for(var Ae in di||(di={}))Qi.call(di,Ae)&&Mt(ai,Ae,di[Ae]);if(Ri)for(var Ae of Ri(di))Zn.call(di,Ae)&&Mt(ai,Ae,di[Ae]);return ai},Ii=(ai,di)=>io(ai,to(di)),Wi=(ai,di)=>{var Ae={};for(var Be in ai)Qi.call(ai,Be)&&di.indexOf(Be)<0&&(Ae[Be]=ai[Be]);if(ai!=null&&Ri)for(var Be of Ri(ai))di.indexOf(Be)<0&&Zn.call(ai,Be)&&(Ae[Be]=ai[Be]);return Ae};const{Countdown:ki}=Ti.default;var Mo=ai=>{var di=ai,{onChange:Ae}=di,Be=Wi(di,["onChange"]);const[_t,Je]=(0,vt.useState)(null);(0,vt.useEffect)(()=>{typeof _t=="number"&&_t>=0&&Ae(_t)},[_t]);const cn=ve=>{const ie=Math.floor(ve/1e3);Je(ie)};return vt.createElement(ki,Ii(so({},Be),{onChange:cn}))}},58856:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return It}});var vt=Pt(59301);function It(oe,de){const $t=(0,vt.useRef)();(0,vt.useEffect)(()=>{$t.current=oe}),(0,vt.useEffect)(()=>{function Ut(){$t.current()}if(de!==null){let Jt=setInterval(Ut,de);return()=>clearInterval(Jt)}},[de])}},79803:function(Sn,Ve,Pt){"use strict";Pt.r(Ve),Pt.d(Ve,{default:function(){return Vn}});var vt=Pt(59301),It=Pt(89070),oe=Pt(78241),de=Pt(43418),$t=Pt(95237),Ut=Pt(71418),Jt=Pt(8591),De=Pt(24905),we={flex_box_center:"flex_box_center___JKPl3",flex_space_between:"flex_space_between___QuVBb",flex_box_vertical_center:"flex_box_vertical_center___Ksaxh",flex_box_center_end:"flex_box_center_end___nIhjx",flex_box_column:"flex_box_column___NAJ16",wrap:"wrap___NZWPs",content:"content___OLcvS",name:"name____Thh2",list:"list___F7fxl",head:"head___ffJpn",models:"models___kudCc",btns:"btns___CQDPq",rowsHead:"rowsHead___oC1SU",time:"time___r7Qed",rowsBody:"rowsBody___ZNF9c"},te=Pt(99064),Fe=Pt(85057),re=Pt(12290),me=Pt(85149),Ot=Pt(76895),et=Pt(24065),nt=Pt(955),ht=Pt(3113),at=Pt(6848),ft=Pt(38854),mt=Pt(57809),wt=Pt(92832),Et=Pt(17574),Nt=Pt(43604),Dt=Pt(54580),At=Pt(73755),Kt=Pt(92310),Wt=Pt.n(Kt),xe=Pt(29301),Vt=Pt(8654),Ie=Pt(69507),Se=Pt(36355),Ye=Pt(8628),Pe=vt.createContext({}),We=Pt(17313),Ue=Pt(83116),ue=Pt(37613);const Ht=ze=>{const{antCls:Ge,componentCls:Oe,iconCls:un,avatarBg:kn,avatarColor:Tn,containerSize:Rn,containerSizeLG:ei,containerSizeSM:qe,textFontSize:pi,textFontSizeLG:tn,textFontSizeSM:Ci,borderRadius:Ui,borderRadiusLG:$i,borderRadiusSM:Co,lineWidth:lo,lineType:Si}=ze,ii=(Yi,oo,Yn)=>({width:Yi,height:Yi,lineHeight:`${Yi-lo*2}px`,borderRadius:"50%",[`&${Oe}-square`]:{borderRadius:Yn},[`${Oe}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${Oe}-icon`]:{fontSize:oo,[`> ${un}`]:{margin:0}}});return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,We.Wf)(ze)),{position:"relative",display:"inline-block",overflow:"hidden",color:Tn,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:kn,border:`${lo}px ${Si} transparent`,"&-image":{background:"transparent"},[`${Ge}-image-img`]:{display:"block"}}),ii(Rn,pi,Ui)),{"&-lg":Object.assign({},ii(ei,tn,$i)),"&-sm":Object.assign({},ii(qe,Ci,Co)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ke=ze=>{const{componentCls:Ge,groupBorderColor:Oe,groupOverlapping:un,groupSpace:kn}=ze;return{[`${Ge}-group`]:{display:"inline-flex",[`${Ge}`]:{borderColor:Oe},"> *:not(:first-child)":{marginInlineStart:un}},[`${Ge}-group-popover`]:{[`${Ge} + ${Ge}`]:{marginInlineStart:kn}}}};var pn=(0,Ue.Z)("Avatar",ze=>{const{colorTextLightSolid:Ge,colorTextPlaceholder:Oe}=ze,un=(0,ue.TS)(ze,{avatarBg:Oe,avatarColor:Ge});return[Ht(un),ke(un)]},ze=>{const{controlHeight:Ge,controlHeightLG:Oe,controlHeightSM:un,fontSize:kn,fontSizeLG:Tn,fontSizeXL:Rn,fontSizeHeading3:ei,marginXS:qe,marginXXS:pi,colorBorderBg:tn}=ze;return{containerSize:Ge,containerSizeLG:Oe,containerSizeSM:un,textFontSize:Math.round((Tn+Rn)/2),textFontSizeLG:ei,textFontSizeSM:kn,groupSpace:pi,groupOverlapping:-qe,groupBorderColor:tn}}),ln=Pt(19716),Ee=function(ze,Ge){var Oe={};for(var un in ze)Object.prototype.hasOwnProperty.call(ze,un)&&Ge.indexOf(un)<0&&(Oe[un]=ze[un]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,un=Object.getOwnPropertySymbols(ze);kn{const[Oe,un]=vt.useState(1),[kn,Tn]=vt.useState(!1),[Rn,ei]=vt.useState(!0),qe=vt.useRef(null),pi=vt.useRef(null),tn=(0,Vt.sQ)(Ge,qe),{getPrefixCls:Ci,avatar:Ui}=vt.useContext(Se.E_),$i=vt.useContext(Pe),Co=()=>{if(!pi.current||!qe.current)return;const Ro=pi.current.offsetWidth,er=qe.current.offsetWidth;if(Ro!==0&&er!==0){const{gap:nr=4}=ze;nr*2{Tn(!0)},[]),vt.useEffect(()=>{ei(!0),un(1)},[ze.src]),vt.useEffect(Co,[ze.gap]);const lo=()=>{const{onError:Ro}=ze;(Ro==null?void 0:Ro())!==!1&&ei(!1)},{prefixCls:Si,shape:ii,size:Yi,src:oo,srcSet:Yn,icon:zt,className:Ai,rootClassName:vo,alt:ao,draggable:Eo,children:Ho,crossOrigin:Zi}=ze,xi=Ee(ze,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),Fi=(0,ln.Z)(Ro=>{var er,nr;return(nr=(er=Yi!=null?Yi:$i==null?void 0:$i.size)!==null&&er!==void 0?er:Ro)!==null&&nr!==void 0?nr:"default"}),Mi=Object.keys(typeof Fi=="object"?Fi||{}:{}).some(Ro=>["xs","sm","md","lg","xl","xxl"].includes(Ro)),co=(0,Ye.Z)(Mi),uo=vt.useMemo(()=>{if(typeof Fi!="object")return{};const Ro=Ie.c4.find(nr=>co[nr]),er=Fi[Ro];return er?{width:er,height:er,lineHeight:`${er}px`,fontSize:zt?er/2:18}:{}},[co,Fi]),Pi=Ci("avatar",Si),[Ni,Wn]=pn(Pi),zi=Wt()({[`${Pi}-lg`]:Fi==="large",[`${Pi}-sm`]:Fi==="small"}),xo=vt.isValidElement(oo),Ko=ii||($i==null?void 0:$i.shape)||"circle",Uo=Wt()(Pi,zi,Ui==null?void 0:Ui.className,`${Pi}-${Ko}`,{[`${Pi}-image`]:xo||oo&&Rn,[`${Pi}-icon`]:!!zt},Ai,vo,Wn),Qo=typeof Fi=="number"?{width:Fi,height:Fi,lineHeight:`${Fi}px`,fontSize:zt?Fi/2:18}:{};let ar;if(typeof oo=="string"&&Rn)ar=vt.createElement("img",{src:oo,draggable:Eo,srcSet:Yn,onError:lo,alt:ao,crossOrigin:Zi});else if(xo)ar=oo;else if(zt)ar=zt;else if(kn||Oe!==1){const Ro=`scale(${Oe}) translateX(-50%)`,er={msTransform:Ro,WebkitTransform:Ro,transform:Ro},nr=typeof Fi=="number"?{lineHeight:`${Fi}px`}:{};ar=vt.createElement(xe.Z,{onResize:Co},vt.createElement("span",{className:`${Pi}-string`,ref:pi,style:Object.assign(Object.assign({},nr),er)},Ho))}else ar=vt.createElement("span",{className:`${Pi}-string`,style:{opacity:0},ref:pi},Ho);return delete xi.onError,delete xi.gap,Ni(vt.createElement("span",Object.assign({},xi,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Qo),uo),Ui==null?void 0:Ui.style),xi.style),className:Uo,ref:tn}),ar))};var Bn=vt.forwardRef(Ke),dn=Pt(11592),In=Pt(60324),Ce=Pt(92343);const $n=ze=>{const{size:Ge,shape:Oe}=vt.useContext(Pe),un=vt.useMemo(()=>({size:ze.size||Ge,shape:ze.shape||Oe}),[ze.size,ze.shape,Ge,Oe]);return vt.createElement(Pe.Provider,{value:un},ze.children)};var jt=ze=>{const{getPrefixCls:Ge,direction:Oe}=vt.useContext(Se.E_),{prefixCls:un,className:kn,rootClassName:Tn,style:Rn,maxCount:ei,maxStyle:qe,size:pi,shape:tn,maxPopoverPlacement:Ci="top",maxPopoverTrigger:Ui="hover",children:$i}=ze,Co=Ge("avatar",un),lo=`${Co}-group`,[Si,ii]=pn(Co),Yi=Wt()(lo,{[`${lo}-rtl`]:Oe==="rtl"},kn,Tn,ii),oo=(0,dn.Z)($i).map((zt,Ai)=>(0,Ce.Tm)(zt,{key:`avatar-key-${Ai}`})),Yn=oo.length;if(ei&&ei=0;ei--)(Rn=ze[ei])&&(Tn=(kn<3?Rn(Tn):kn>3?Rn(Ge,Oe,Tn):Rn(Ge,Oe))||Tn);return kn>3&&Tn&&Object.defineProperty(Ge,Oe,Tn),Tn}function qt(ze,Ge){return function(Oe,un){Ge(Oe,un,ze)}}function Zt(ze,Ge,Oe,un,kn,Tn){function Rn(ii){if(ii!==void 0&&typeof ii!="function")throw new TypeError("Function expected");return ii}for(var ei=un.kind,qe=ei==="getter"?"get":ei==="setter"?"set":"value",pi=!Ge&&ze?un.static?ze:ze.prototype:null,tn=Ge||(pi?Object.getOwnPropertyDescriptor(pi,un.name):{}),Ci,Ui=!1,$i=Oe.length-1;$i>=0;$i--){var Co={};for(var lo in un)Co[lo]=lo==="access"?{}:un[lo];for(var lo in un.access)Co.access[lo]=un.access[lo];Co.addInitializer=function(ii){if(Ui)throw new TypeError("Cannot add initializers after decoration has completed");Tn.push(Rn(ii||null))};var Si=(0,Oe[$i])(ei==="accessor"?{get:tn.get,set:tn.set}:tn[qe],Co);if(ei==="accessor"){if(Si===void 0)continue;if(Si===null||typeof Si!="object")throw new TypeError("Object expected");(Ci=Rn(Si.get))&&(tn.get=Ci),(Ci=Rn(Si.set))&&(tn.set=Ci),(Ci=Rn(Si.init))&&kn.unshift(Ci)}else(Ci=Rn(Si))&&(ei==="field"?kn.unshift(Ci):tn[qe]=Ci)}pi&&Object.defineProperty(pi,un.name,tn),Ui=!0}function fe(ze,Ge,Oe){for(var un=arguments.length>2,kn=0;kn0&&Tn[Tn.length-1])&&(pi[0]===6||pi[0]===2)){Oe=0;continue}if(pi[0]===3&&(!Tn||pi[1]>Tn[0]&&pi[1]=ze.length&&(ze=void 0),{value:ze&&ze[un++],done:!ze}}};throw new TypeError(Ge?"Object is not iterable.":"Symbol.iterator is not defined.")}function ye(ze,Ge){var Oe=typeof Symbol=="function"&&ze[Symbol.iterator];if(!Oe)return ze;var un=Oe.call(ze),kn,Tn=[],Rn;try{for(;(Ge===void 0||Ge-- >0)&&!(kn=un.next()).done;)Tn.push(kn.value)}catch(ei){Rn={error:ei}}finally{try{kn&&!kn.done&&(Oe=un.return)&&Oe.call(un)}finally{if(Rn)throw Rn.error}}return Tn}function on(){for(var ze=[],Ge=0;Ge1||ei(Ui,$i)})})}function ei(Ui,$i){try{qe(un[Ui]($i))}catch(Co){Ci(Tn[0][3],Co)}}function qe(Ui){Ui.value instanceof An?Promise.resolve(Ui.value.v).then(pi,tn):Ci(Tn[0][2],Ui)}function pi(Ui){ei("next",Ui)}function tn(Ui){ei("throw",Ui)}function Ci(Ui,$i){Ui($i),Tn.shift(),Tn.length&&ei(Tn[0][0],Tn[0][1])}}function ui(ze){var Ge,Oe;return Ge={},un("next"),un("throw",function(kn){throw kn}),un("return"),Ge[Symbol.iterator]=function(){return this},Ge;function un(kn,Tn){Ge[kn]=ze[kn]?function(Rn){return(Oe=!Oe)?{value:An(ze[kn](Rn)),done:!1}:Tn?Tn(Rn):Rn}:Tn}}function ni(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ge=ze[Symbol.asyncIterator],Oe;return Ge?Ge.call(ze):(ze=typeof Ln=="function"?Ln(ze):ze[Symbol.iterator](),Oe={},un("next"),un("throw"),un("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function un(Tn){Oe[Tn]=ze[Tn]&&function(Rn){return new Promise(function(ei,qe){Rn=ze[Tn](Rn),kn(ei,qe,Rn.done,Rn.value)})}}function kn(Tn,Rn,ei,qe){Promise.resolve(qe).then(function(pi){Tn({value:pi,done:ei})},Rn)}}function fi(ze,Ge){return Object.defineProperty?Object.defineProperty(ze,"raw",{value:Ge}):ze.raw=Ge,ze}var Bi=Object.create?function(ze,Ge){Object.defineProperty(ze,"default",{enumerable:!0,value:Ge})}:function(ze,Ge){ze.default=Ge};function Ti(ze){if(ze&&ze.__esModule)return ze;var Ge={};if(ze!=null)for(var Oe in ze)Oe!=="default"&&Object.prototype.hasOwnProperty.call(ze,Oe)&&_e(Ge,ze,Oe);return Bi(Ge,ze),Ge}function Di(ze){return ze&&ze.__esModule?ze:{default:ze}}function io(ze,Ge,Oe,un){if(Oe==="a"&&!un)throw new TypeError("Private accessor was defined without a getter");if(typeof Ge=="function"?ze!==Ge||!un:!Ge.has(ze))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Oe==="m"?un:Oe==="a"?un.call(ze):un?un.value:Ge.get(ze)}function to(ze,Ge,Oe,un,kn){if(un==="m")throw new TypeError("Private method is not writable");if(un==="a"&&!kn)throw new TypeError("Private accessor was defined without a setter");if(typeof Ge=="function"?ze!==Ge||!kn:!Ge.has(ze))throw new TypeError("Cannot write private member to an object whose class did not declare it");return un==="a"?kn.call(ze,Oe):kn?kn.value=Oe:Ge.set(ze,Oe),Oe}function Ri(ze,Ge){if(Ge===null||typeof Ge!="object"&&typeof Ge!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ze=="function"?Ge===ze:ze.has(Ge)}var Qi={__extends:Ft,__assign:yt,__rest:ee,__decorate:pe,__param:qt,__metadata:Ne,__awaiter:hn,__generator:an,__createBinding:_e,__exportStar:En,__values:Ln,__read:ye,__spread:on,__spreadArrays:Pn,__spreadArray:Cn,__await:An,__asyncGenerator:Jn,__asyncDelegator:ui,__asyncValues:ni,__makeTemplateObject:fi,__importStar:Ti,__importDefault:Di,__classPrivateFieldGet:io,__classPrivateFieldSet:to,__classPrivateFieldIn:Ri},Zn=Pt(12378);var Mt=function(ze){Ft(Ge,ze);function Ge(Oe){var un=ze.call(this,Oe)||this;return un.wasCleared=!1,un.modelChangedListener=null,un.divRef=vt.createRef(),un}return Ge.prototype.getDiagram=function(){return this.divRef.current===null?null:Zn.S0.fromDiv(this.divRef.current)},Ge.prototype.clear=function(){var Oe=this.getDiagram();Oe!==null&&(Oe.clear(),this.wasCleared=!0)},Ge.prototype.componentDidMount=function(){var Oe=this;if(this.divRef.current!==null){var un=this.props.initDiagram();un.div=this.divRef.current,this.modelChangedListener=function(kn){if(kn.isTransactionFinished&&kn.model&&!kn.model.isReadOnly&&Oe.props.onModelChange){var Tn=kn.model.toIncrementalData(kn);Tn!==null&&Oe.props.onModelChange(Tn)}},un.addModelChangedListener(this.modelChangedListener),un.delayInitialization(function(){Oe.mergeData(un,!0)})}},Ge.prototype.componentWillUnmount=function(){var Oe=this.getDiagram();Oe!==null&&(Oe.div=null,this.modelChangedListener!==null&&(Oe.removeModelChangedListener(this.modelChangedListener),this.modelChangedListener=null))},Ge.prototype.shouldComponentUpdate=function(Oe,un){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:!(Oe.skipsDiagramUpdate||Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)},Ge.prototype.componentDidUpdate=function(Oe,un){var kn=this;if(!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)){var Tn=this.getDiagram();Tn!==null&&(this.wasCleared?Tn.delayInitialization(function(){kn.mergeData(Tn,!0),kn.wasCleared=!1}):this.mergeData(Tn,!1))}},Ge.prototype.mergeData=function(Oe,un){var kn=this,Tn=Oe.model;Tn.commit(function(Rn){kn.props.modelData!==void 0&&Rn.assignAllDataProperties(Rn.modelData,kn.props.modelData),Rn.mergeNodeDataArray(kn.props.nodeDataArray),kn.props.linkDataArray!==void 0&&Rn instanceof Zn.FJ&&Rn.mergeLinkDataArray(kn.props.linkDataArray)},un?"initial merge":"merge data")},Ge.prototype.render=function(){return vt.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},Ge}(vt.Component),so=function(ze){Ft(Ge,ze);function Ge(Oe){var un=ze.call(this,Oe)||this;return un.divRef=vt.createRef(),un}return Ge.prototype.getOverview=function(){return this.divRef.current===null?null:Zn.S0.fromDiv(this.divRef.current)},Ge.prototype.componentDidMount=function(){if(this.divRef.current!==null){var Oe;this.props.initOverview!==void 0?Oe=this.props.initOverview():(Oe=new Zn.g2,Oe.contentAlignment=Zn.z6.Center),Oe.div=this.divRef.current,Oe.observed=this.props.observedDiagram}},Ge.prototype.componentWillUnmount=function(){var Oe=this.getOverview();Oe!==null&&(Oe.div=null,Oe.observed=null)},Ge.prototype.shouldComponentUpdate=function(Oe,un){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:Oe.observedDiagram!==this.props.observedDiagram},Ge.prototype.componentDidUpdate=function(Oe,un){if(Oe.observedDiagram!==this.props.observedDiagram){var kn=this.getOverview();kn!==null&&(kn.observed=this.props.observedDiagram)}},Ge.prototype.render=function(){return vt.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},Ge}(vt.Component),Ii=function(ze){Ft(Ge,ze);function Ge(Oe){var un=ze.call(this,Oe)||this;return un.wasCleared=!1,un.divRef=vt.createRef(),un}return Ge.prototype.getPalette=function(){return this.divRef.current===null?null:Zn.S0.fromDiv(this.divRef.current)},Ge.prototype.clear=function(){var Oe=this.getPalette();Oe!==null&&(Oe.clear(),this.wasCleared=!0)},Ge.prototype.componentDidMount=function(){var Oe=this;if(this.divRef.current!==null){var un=this.props.initPalette();un.div=this.divRef.current,un.delayInitialization(function(){Oe.mergeData(un,!0)})}},Ge.prototype.componentWillUnmount=function(){var Oe=this.getPalette();Oe!==null&&(Oe.div=null)},Ge.prototype.shouldComponentUpdate=function(Oe,un){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)},Ge.prototype.componentDidUpdate=function(Oe,un){var kn=this;if(!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)){var Tn=this.getPalette();Tn!==null&&(this.wasCleared?Tn.delayInitialization(function(){kn.mergeData(Tn,!0),kn.wasCleared=!1}):this.mergeData(Tn,!1))}},Ge.prototype.mergeData=function(Oe,un){var kn=this,Tn=Oe.model;Tn.commit(function(Rn){kn.props.modelData!==void 0&&Rn.assignAllDataProperties(Rn.modelData,kn.props.modelData),Rn.mergeNodeDataArray(kn.props.nodeDataArray),kn.props.linkDataArray!==void 0&&Rn instanceof Zn.FJ&&Rn.mergeLinkDataArray(kn.props.linkDataArray)},un?"initial merge":"merge data")},Ge.prototype.render=function(){return vt.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},Ge}(vt.Component),Wi=Pt(4901),ki={flex_box_center:"flex_box_center___dw6yv",flex_space_between:"flex_space_between___bkc32",flex_box_vertical_center:"flex_box_vertical_center___jDpm2",flex_box_center_end:"flex_box_center_end___g9JOB",flex_box_column:"flex_box_column___ngIjI","diagram-component":"diagram-component___fHDp0",rightmodal:"rightmodal___Fwj_F",title:"title___YZZgl",button:"button___yQKxh",linetitles:"linetitles___CFVw5",line:"line___hSEjG",additem:"additem___cy1wv",lebels:"lebels___E2znG",describe:"describe___emw2X",describetitle:"describetitle___bgNOs",ehover:"ehover____RCDx",dhover:"dhover___IP_3b",header:"header___PCDQg",headeractivite:"headeractivite___x56tJ",a:"a___QYqeC"},Bo=Pt(8797),Mo=Pt(3294),ai=Pt(12911),di=Pt.n(ai),Ae=Pt(26724),Be=Pt.n(Ae),_t=Object.defineProperty,Je=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,yn=(ze,Ge,Oe)=>Ge in ze?_t(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ze[Ge]=Oe,Nn=(ze,Ge)=>{for(var Oe in Ge||(Ge={}))ie.call(Ge,Oe)&&yn(ze,Oe,Ge[Oe]);if(ve)for(var Oe of ve(Ge))Qe.call(Ge,Oe)&&yn(ze,Oe,Ge[Oe]);return ze},_n=(ze,Ge)=>Je(ze,cn(Ge)),le=(ze,Ge,Oe)=>new Promise((un,kn)=>{var Tn=qe=>{try{ei(Oe.next(qe))}catch(pi){kn(pi)}},Rn=qe=>{try{ei(Oe.throw(qe))}catch(pi){kn(pi)}},ei=qe=>qe.done?un(qe.value):Promise.resolve(qe.value).then(Tn,Rn);ei((Oe=Oe.apply(ze,Ge)).next())});class mn extends Zn.hD{isFixed(Ge){return Ge.node.isSelected}doLayout(Ge){this._isObserving||(this._isObserving=!0,this.diagram.addModelChangedListener(un=>{(un.modelChange!==""||un.change===Zn.Vk.Transaction&&un.propertyName==="StartingFirstTransaction")&&(this.network=null)}));var Oe=this.network;Oe===null?this.network=Oe=this.makeNetwork(Ge):this.diagram.nodes.each(un=>{var kn=Oe.findVertex(un);kn!==null&&(kn.bounds=un.actualBounds)}),super.doLayout(Ge),this.network=Oe}}let Gn=["\u6839\u8282\u70B9","\u7AE0\u8282\u77E5\u8BC6\u5355\u5143","\u8D44\u6E90\u77E5\u8BC6\u5355\u5143","\u77E5\u8BC6\u70B9"],si=["#3CDAA3","#30A7F1","#F84F90","#6656FF"],Re=[{name:"\u5B9E\u8BAD",type:"Shixun"},{name:"\u8BFE\u4EF6",type:"Attachment"},{name:"\u89C6\u9891",type:"VideoItem"},{name:"\u8003\u8BD5",type:"ExaminationBank"},{name:"\u4F5C\u4E1A",type:"SubjectHomework"},{name:"\u7EC3\u4E60",type:"Practice"},{name:"\u6587\u672C",type:"Text"}];const fn=({globalSetting:ze,dispatch:Ge,virtualSpaces:Oe})=>{var un,kn,Tn,Rn;const ei=(0,It.useParams)(),qe=(0,vt.useRef)(),[pi,tn]=(0,vt.useState)(!1),[Ci,Ui]=(0,vt.useState)(!1),[$i,Co]=(0,vt.useState)(!1),[lo,Si]=(0,vt.useState)(!1),[ii,Yi]=(0,vt.useState)(!0),[oo,Yn]=(0,vt.useState)(!1);let[zt,Ai]=(0,vt.useState)({});const[vo]=oe.default.useForm(),[ao,Eo]=(0,vt.useState)(!1),[Ho,Zi]=(0,vt.useState)(!0),[xi,Fi]=(0,vt.useState)({index:"",name:"",add:!1});let[Mi,co]=(0,vt.useState)({});const uo=(0,vt.useRef)(null),[Pi,Ni]=(0,vt.useState)(!1),[Wn,zi]=(0,vt.useState)(!1),[xo,Ko]=(0,vt.useState)([]),[Uo,Qo]=(0,vt.useState)([]),[ar,Ro]=(0,vt.useState)([]),[er,nr]=(0,vt.useState)(""),[qr,sn]=(0,vt.useState)(!0),[wr,Sa]=(0,vt.useState)(),[Cs,jo]=(0,vt.useState)([]),[Lo,vr]=(0,vt.useState)(!1),[Xo,bo]=(0,vt.useState)(!1),Ao=(0,vt.useRef)(),ur=(0,vt.useRef)(),[no,ko]=(0,vt.useState)(!1),[No,mi]=(0,vt.useState)({left:0,top:0,bottom:0,right:0}),Fr=(0,vt.useRef)(null),{virtualSpacesDetails:Or}=Oe,jr=(Or==null?void 0:Or.is_member)||(0,et.Ny)(),[xa,Ta]=(0,vt.useState)(!1),[ri,hr]=(0,vt.useState)(!1),[Dr,Js]=(0,vt.useState)([]),[Nl,sa]=(0,vt.useState)(!1),[po,hu]=(0,vt.useState)(1),[Gs,bs]=(0,vt.useState)(!1),Ws=(qn,li)=>{var Vi;const{clientWidth:wi,clientHeight:Hi}=window.document.documentElement,Fo=(Vi=Fr.current)==null?void 0:Vi.getBoundingClientRect();mi({left:-Fo.left+li.x,right:wi-(Fo.right-li.x),top:-Fo.top+li.y,bottom:Hi-(Fo.bottom-li.y)-70})};let[Tl,vl]=(0,vt.useState)(600);(0,vt.useEffect)(()=>{co({}),hs()},[ei,ii]),(0,vt.useEffect)(()=>{Ks(),Jt.ZP.config({getContainer:()=>uo.current,top:100})},[]);const Ks=()=>{if(ur.current)return;const qn=Zn.bx.make;var li=new Zn.S0("myDiagramDiv",{"commandHandler.copiesTree":!1,"commandHandler.copiesParentKey":!1,"commandHandler.deletesTree":!1,"draggingTool.dragsTree":!1,"undoManager.isEnabled":!1,doubleClick:!1});ur.current=li;var Vi=Zn.bx.make(Zn.FF);Vi.angle=0,Vi.arrangement=Zn.FF.ArrangementFixedRoots,li.layout=Vi,li.nodeTemplate=qn(Zn.NB,"Vertical",{selectionObjectName:"TEXT"},qn(Zn.al,{name:"TEXT",minSize:new Zn.$u(30,15)},new Zn.KX("text","text").makeTwoWay(),new Zn.KX("scale","scale").makeTwoWay(),new Zn.KX("font","font").makeTwoWay()),qn(Zn.bn,"LineH",{stretch:Zn.bx.Horizontal,strokeWidth:3,height:3,portId:"",fromSpot:Zn.z6.LeftRightSides,toSpot:Zn.z6.LeftRightSides},new Zn.KX("stroke","brush"),new Zn.KX("fromSpot","dir",Hi=>$a(Hi,!0)),new Zn.KX("toSpot","dir",Hi=>$a(Hi,!1))),new Zn.KX("location","loc",Zn.E9.parse).makeTwoWay(Zn.E9.stringify),new Zn.KX("locationSpot","dir",Hi=>$a(Hi,!1)),{click(Hi,Fo){hr(!1),Ai(Fo==null?void 0:Fo.data),mi({left:0,top:0,bottom:0,right:0})}}),li.allowDoubleClick=!1,li.allowSelect="single",li.commandHandler.canDeleteSelection=!1,li.commandHandler.canUndo=!1;const wi=li.toolManager.clickSelectingTool;wi.canStartMulti=!1,li.linkTemplate=qn(Zn.rU,{curve:Zn.rU.Bezier,fromShortLength:-2,toShortLength:-2,selectable:!1},qn(Zn.bn,{strokeWidth:3},new Zn.KX("stroke","toNode",Hi=>Hi.data.brush?Hi.data.brush:"black").ofObject()))};function aa(qn,li){var Vi=qn.findNodeForKey(li);if(Vi!==null){qn.startTransaction("Layout");var wi=new Zn.l4,Hi=new Zn.l4;Vi.findLinksConnected().each(Fo=>{var lr=Fo.toNode;lr.data.dir==="left"?(Hi.add(Vi),Hi.add(Fo),Hi.addAll(lr.findTreeParts())):(wi.add(Vi),wi.add(Fo),wi.addAll(lr.findTreeParts()))}),Kl(wi,0),Kl(Hi,180),qn.commitTransaction("Layout")}}function Kl(qn,li){var Vi=Zn.bx.make(Zn.FF,{angle:li,arrangement:Zn.FF.ArrangementFixedRoots,nodeSpacing:5,layerSpacing:20,setsPortSpot:!1,setsChildPortSpot:!1});Vi.doLayout(qn)}function Du(qn){var li;const Vi=(li=qn==null?void 0:qn[0])==null?void 0:li.id;let wi=0;ur.current.model=Zn.Hn.fromJson(JSON.stringify({class:"go.TreeModel",nodeDataArray:qn.map(Hi=>(Hi.parent==Vi&&(wi%2===0?Hi.dir="left":Hi.dir="right",++wi),Hi.brush=Hi.unit_type===0?"#3CDAA3":[1,2,5,6,7,8].includes(Hi.unit_type)?"#F84F90":Hi.unit_type===3?"#30A7F1":"#6656FF",Hi))})),aa(ur.current,Vi)}function hs(){return le(this,null,function*(){var qn,li;let Vi=ii?"/api/knowledge_graphs/tree.json":"/api/knowledge_graphs/map.json",wi=yield(0,te.ZP)(Vi,{method:"get",params:{type:2,identifier:ei.virtual_spacesId,type:2,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if(wi.status===0){let Hi=(qn=wi==null?void 0:wi.nodeData)==null?void 0:qn.map((lr,fr)=>_n(Nn({},lr),{bgcolor:lr.unit_type===0?"#3CDAA3":[1,2,5,6,7,8].includes(lr.unit_type)?"#F84F90":lr.unit_type===3?"#30A7F1":"#6656FF",parent:lr.parent_id}));co(_n(Nn({},wi),{nodeData:Hi})),ii?(Du(Hi),setTimeout(()=>{Qs()},300)):Qs();let Fo=(li=wi==null?void 0:wi.nodeData)==null?void 0:li.filter(lr=>lr.id===zt.id);(Fo==null?void 0:Fo.length)>0&&Ai(Nn({},Fo==null?void 0:Fo[0]))}})}const xh={onRemove:()=>{Ko([])},beforeUpload:qn=>{if(console.log(qn),(qn==null?void 0:qn.size)>1024*1024*50)return Jt.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let li=[];return li.push(qn),Ko([...li]),!1},fileList:xo,accept:".xls,.xlsx"},$l=(0,vt.useMemo)(()=>{const qn=li=>li.map(Vi=>{const wi=Vi.title,Hi=wi.indexOf(er),Fo=wi.substring(0,Hi),lr=wi.slice(Hi+er.length),fr=Hi>-1?vt.createElement("span",null,Fo,vt.createElement("span",{style:{color:"#f50"}},er),lr):vt.createElement("span",null,wi);return Vi.children?{title:fr,key:Vi.key,children:qn(Vi.children)}:{title:fr,key:Vi.key}});return qn(Uo)},[er,Uo]);function du(){const qn=Zn.bx.make,li=qn(Zn.S0,{allowSelect:!1,"undoManager.isEnabled":!0,initialAutoScale:Zn.S0.Uniform,contentAlignment:Zn.z6.Center,layout:qn(mn,{defaultSpringLength:30,defaultElectricalCharge:100}),SelectionMoved:wi=>wi.diagram.layout.invalidateLayout(),model:qn(Zn.FJ,{linkKeyProperty:"key",makeUniqueKeyFunction:(wi,Hi)=>{let Fo=Hi.key||1;for(;wi.findNodeDataForKey(Fo);)Fo++;return Hi.key=Fo,Fo},makeUniqueLinkKeyFunction:(wi,Hi)=>{let Fo=Hi.key||-1;for(;wi.findLinkDataForKey(Fo);)Fo--;return Hi.key=Fo,Fo}})});li.toolManager.draggingTool.doMouseMove=function(){Zn.h1.prototype.doMouseMove.call(this),this.isActive&&this.diagram.layout.doLayout(!0)},li.nodeTemplate=qn(Zn.NB,"Auto",{minSize:new Zn.$u(100,100)},qn(Zn.bn,"Circle",{stroke:"white",spot1:new Zn.z6(0,0,5,5),spot2:new Zn.z6(1,1,-5,-5)},new Zn.KX("fill","bgcolor")),qn(Zn.al,{font:"bold 10pt helvetica, bold arial, sans-serif",stroke:"white",textAlign:"center",maxSize:new Zn.$u(100,NaN)},new Zn.KX("text","text")),{click(wi,Hi){hr(!1),Ai(Hi==null?void 0:Hi.data),mi({left:0,top:0,bottom:0,right:0})}}),li.linkTemplate=qn(Zn.rU,{layerName:"Background"},qn(Zn.bn,{stroke:"black"}),qn(Zn.bn,{toArrow:"standard",stroke:null}),qn(Zn.s_,"Auto",qn(Zn.bn,{fill:qn(Zn.BD,"Radial",{0:"rgb(240, 240, 240)",.3:"rgb(240, 240, 240)",1:"rgba(240, 240, 240, 0)"}),stroke:null}),qn(Zn.al,{textAlign:"center",font:"10pt helvetica, arial, sans-serif",stroke:"#555555",margin:4},new Zn.KX("text","text")))),li.doubleClick=!1,li.allowDoubleClick=!1,li.allowSelect="single",li.commandHandler.canDeleteSelection=!1,li.commandHandler.canUndo=!1,li.allowInsert=!1;const Vi=li.toolManager.clickSelectingTool;return Vi.canStartMulti=!1,Ao.current=li,li}function $a(qn,li){return qn==="left"?li?Zn.z6.Left:Zn.z6.Right:li?Zn.z6.Right:Zn.z6.Left}function Qs(){var qn,li,Vi,wi;vl(600),(li=(qn=ur.current)==null?void 0:qn.zoomToFit)==null||li.call(qn),(wi=(Vi=Ao.current)==null?void 0:Vi.zoomToFit)==null||wi.call(Vi)}return vt.createElement("div",{ref:uo,style:{paddingBottom:20,background:"#FFF",position:"relative",height:"100vh"}},vt.createElement(Ut.Z,{spinning:oo},(Mi==null?void 0:Mi.is_root)&&vt.createElement(Bo.Z,{ButtonClick:()=>le(void 0,null,function*(){Yn(!0);let qn=yield(0,te.ZP)("/api/knowledge_graphs/set_root.json",{method:"post",body:{type:2,identifier:ei.virtual_spacesId,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});Yn(!1),qn.status===0&&hs()}),buttonProps:{type:"primary"},ButtonText:jr&&"\u65B0\u589E\u8282\u70B9",ButtonTwo:jr&&vt.createElement(ht.ZP,{style:{marginLeft:20},onClick:()=>{zi(!0)},type:"primary"},"\u6587\u4EF6\u5BFC\u5165"),styles:{margin:"auto",paddingTop:100}}),!(Mi!=null&&Mi.is_root)&&vt.createElement("div",{style:{height:60,border:"1px solid #e7e7e7",display:"flex"}},vt.createElement("div",{onClick:()=>{Yi(!0),Ai({})},className:ii?ki.headeractivite:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-zhishishu"})),vt.createElement("div",null,"\u77E5\u8BC6\u6811")),vt.createElement("div",{onClick:()=>{Yi(!1),Ai({})},className:ii?ki.header:ki.headeractivite},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-guanxitu"})),vt.createElement("div",null,"\u5173\u7CFB\u56FE")),vt.createElement("div",{onClick:()=>{var qn,li,Vi,wi,Hi=ii?ur.current.viewportBounds.width:Ao.current.viewportBounds.width,Fo=ii?ur.current.viewportBounds.height:Ao.current.viewportBounds.height;(li=(qn=ur.current)==null?void 0:qn.zoomToRect)==null||li.call(qn,new Zn.UL(1,1,Hi/1.1,Fo/1.1)),(wi=(Vi=Ao.current)==null?void 0:Vi.zoomToRect)==null||wi.call(Vi,new Zn.UL(1,1,Hi/1.1,Fo/1.1))},className:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-fangda3"})),vt.createElement("div",null,"\u653E\u5927")),vt.createElement("div",{onClick:()=>{var qn,li,Vi,wi,Hi=ii?ur.current.viewportBounds.width:Ao.current.viewportBounds.width,Fo=ii?ur.current.viewportBounds.height:Ao.current.viewportBounds.height;(li=(qn=ur.current)==null?void 0:qn.zoomToRect)==null||li.call(qn,new Zn.UL(1,1,Hi*1.1,Fo*1.1)),(wi=(Vi=Ao.current)==null?void 0:Vi.zoomToRect)==null||wi.call(Vi,new Zn.UL(1,1,Hi*1.1,Fo*1.1))},className:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-suoxiao3"})),vt.createElement("div",null,"\u7F29\u5C0F")),vt.createElement("div",{onClick:()=>{var qn,li,Vi,wi;vl(600),(li=(qn=ur.current)==null?void 0:qn.zoomToFit)==null||li.call(qn),(wi=(Vi=Ao.current)==null?void 0:Vi.zoomToFit)==null||wi.call(Vi)},className:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-zishiying"})),vt.createElement("div",null,"\u6700\u4F73\u9002\u5E94")),vt.createElement("div",{onClick:()=>le(void 0,null,function*(){var qn;bo(!0);let li=yield(0,te.ZP)("/api/knowledge_graphs.json",{method:"get",params:{type:2,identifier:ei.virtual_spacesId}});li.status===0&&(jo(li==null?void 0:li.list),Qo(li==null?void 0:li.knowledge_graphs),Ro((qn=li==null?void 0:li.list)==null?void 0:qn.map(Vi=>Vi.key)))}),className:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-chazhao"})),vt.createElement("div",null,"\u67E5\u627E")),jr&&vt.createElement("div",{onClick:()=>{zi(!0)},className:ki.header},vt.createElement("div",null," ",vt.createElement("i",{className:"iconfont icon-daoru"})),vt.createElement("div",null,"\u5BFC\u5165")),vt.createElement("div",{style:{flex:1,textAlign:"end",lineHeight:"60px"}},jr&&vt.createElement(at.Z,{title:"\u5386\u53F2\u8BB0\u5F55"},vt.createElement("i",{className:`iconfont icon-lishijilu ${ki.ehover}`,onClick:()=>le(void 0,null,function*(){var qn;let li=yield(0,te.ZP)("/api/knowledge_graphs/history.json",{method:"get",params:{identifier:ei.virtual_spacesId,limit:10,type:2,page:po}});li.status===0&&(bs(!0),((qn=li==null?void 0:li.histories)==null?void 0:qn.length)<10&&sa(!1),Js(li==null?void 0:li.histories))}),style:{marginRight:30}})),jr&&vt.createElement(at.Z,{title:"\u6E05\u7A7A\u6240\u6709\u6570\u636E",getPopupContainer:()=>uo.current},vt.createElement("i",{onClick:()=>{de.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:()=>uo.current,content:"\u8BF7\u786E\u5B9A\u662F\u5426\u5C06\u77E5\u8BC6\u56FE\u8C31\u6240\u6709\u7684\u6570\u636E\u6E05\u7A7A\uFF0C\u6062\u590D\u7A7A\u72B6\u6001\uFF0C\u6E05\u7A7A\u540E\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF01\u672C\u6B21\u6E05\u7A7A\u4E0D\u4F1A\u5F71\u54CD\u5230\u8BFE\u7A0B\u7AE0\u8282\u5185\u5BB9\uFF0C\u4EC5\u4F5C\u7528\u4E8E\u77E5\u8BC6\u56FE\u8C31\u7684\u6570\u636E\u3002",onOk:()=>le(void 0,null,function*(){(yield(0,te.ZP)("/api/knowledge_graphs/delete_all.json",{method:"DELETE",body:{type:2,identifier:ei.virtual_spacesId,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}})).status===0&&(hs(),Ai({}))})})},className:`iconfont icon-shanchu14 ${ki.dhover}`})),jr&&vt.createElement(at.Z,{title:"\u540C\u6B65\u8BFE\u7A0B\u77E5\u8BC6\u7ED3\u6784",getPopupContainer:()=>uo.current},vt.createElement("i",{onClick:()=>{de.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:()=>uo.current,content:"\u8BF7\u786E\u5B9A\u662F\u5426\u5C06\u540C\u6B65\u8BFE\u7A0B\u77E5\u8BC6\u7ED3\u6784\uFF0C\u66F4\u65B0\u540E\u539F\u6709\u77E5\u8BC6\u7ED3\u6784\u5C06\u88AB\u8986\u76D6\uFF0C\u8986\u76D6\u540E\u4E0D\u53EF\u64A4\u9500\u6062\u590D\u3002",onOk:()=>le(void 0,null,function*(){Yn(!0);let qn=yield(0,te.ZP)("/api/knowledge_graphs/sync.json",{method:"post",body:{identifier:ei.pathId,type:2}});Yn(!1),qn.status===0&&hs()})})},style:{margin:"0px 30px"},className:`iconfont icon-jiazai_shuaxin_o ${ki.ehover}`})),jr&&vt.createElement(ft.Z,{getPopupContainer:()=>uo.current,menu:{items:[{key:"1",style:{width:100},label:vt.createElement("a",{href:`${Mo.Z.API_SERVER}/api/knowledge_graphs/export.xlsx?identifier=${ei.virtual_spacesId}&type=2`},"\u5BFC\u51FAExcel")},{key:"2",label:vt.createElement("a",{href:`${Mo.Z.API_SERVER}/api/knowledge_graphs/export.json?identifier=${ei.virtual_spacesId}&type=2`},"\u5BFC\u51FAWord")}]}},vt.createElement("i",{className:`iconfont icon-xiazai6 ${ki.ehover}`})),vt.createElement("i",{onClick:()=>{(0,Wi.vp)()?(Ni(!1),(0,Wi.BU)()):(Ni(!0),(0,Wi.Dj)(uo.current)),Qs()},style:{marginLeft:30,marginRight:20},className:`iconfont ${Pi?"icon-tuichuquanping3":"icon-quanping4"} ${ki.ehover}`}))),vt.createElement("div",{className:"relative"},!ii&&vt.createElement(Mt,{ref:qe,divClassName:"diagram-component",style:{backgroundColor:"#fff",height:Pi?"calc(100vh - 100px)":540,visibility:Mi!=null&&Mi.is_root?"hidden":"visible"},initDiagram:du,nodeDataArray:Mi==null?void 0:Mi.nodeData,linkDataArray:Mi==null?void 0:Mi.linkData}),vt.createElement("div",{id:"myDiagramDiv",style:{height:Pi?"calc(100vh - 100px)":540,width:"100%",visibility:Mi!=null&&Mi.is_root?"hidden":ii?"visible":"hidden",position:ii?"relative":"absolute"}})),vt.createElement("div",null,!(Mi!=null&&Mi.is_root)&&Gn.map((qn,li)=>vt.createElement("span",{style:{marginLeft:li===0&&20,marginRight:30}},vt.createElement("span",{style:{marginRight:6,width:16,height:8,background:si[li],display:"inline-flex",borderRadius:4}}),vt.createElement("span",{style:{color:"#9096A3"}},qn))))),vt.createElement("div",{style:{zIndex:1e3}},vt.createElement(di(),{disabled:no,bounds:No,onStart:(qn,li)=>Ws(qn,li)},vt.createElement("div",{ref:Fr,style:{position:"fixed",cursor:"move",right:0,top:Pi?60:260,zIndex:12}},vt.createElement("div",{onMouseOver:()=>{no&&ko(!Ho)},onMouseOut:()=>{ko(!0)}},zt.id&&vt.createElement("div",{className:ki.rightmodal},vt.createElement(Ut.Z,{spinning:oo},vt.createElement("div",{style:{display:"flex",padding:25,paddingBottom:0}},vt.createElement("div",{className:ki.title},zt.text," ",ri&&vt.createElement("i",{onClick:()=>{tn(!0),vo.setFieldsValue({name:zt.text})},className:"iconfont icon-bianji3",style:{marginLeft:14,color:"#666666",cursor:"pointer"}})),vt.createElement("div",null,vt.createElement("i",{style:{cursor:"pointer"},onClick:()=>{var qn,li;if(ri){hr(!1);return}Ai({}),(qn=ur.current)==null||qn.clearSelection(),(li=Ao.current)==null||li.clearSelection()},className:"iconfont icon-danchuangguanbi"}))),vt.createElement("div",{style:{maxHeight:580,overflow:"auto",padding:25,paddingTop:0}},ri&&vt.createElement("div",{style:{marginTop:25}},vt.createElement("span",{className:ki.button,onClick:()=>{if(zt.unit_type>=4||zt.unit_type===0){zt.unit_type===0?Jt.ZP.info("\u6839\u8282\u70B9\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u70B9"):Jt.ZP.info("\u77E5\u8BC6\u70B9\u4E3A\u6700\u5C0F\u5355\u4F4D\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u70B9");return}vo.setFieldsValue({name:""}),Co(!0)}},vt.createElement("i",{style:{marginRight:8},className:"iconfont icon-charuzhishidian1"})," \u63D2\u5165\u77E5\u8BC6\u70B9"),vt.createElement("span",{className:ki.button,onClick:()=>{if(zt.unit_type>=4){Jt.ZP.info("\u77E5\u8BC6\u70B9\u4E3A\u6700\u5C0F\u5355\u4F4D\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u5355\u5143");return}vo.setFieldsValue({name:"",unit_type:3,url:""}),Si(!0)}},vt.createElement("i",{style:{marginRight:8},className:"iconfont icon-charuzhishidanyuan"})," \u63D2\u5165\u77E5\u8BC6\u5355\u5143"),vt.createElement("span",{className:ki.button,onClick:()=>{de.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,getContainer:()=>uo.current,content:"\u5220\u9664\u8BE5\u8282\u70B9\u4F1A\u5BFC\u81F4\u5B83\u7684\u5B50\u8282\u70B9\u4E00\u5E76\u5220\u9664\uFF0C\u5220\u9664\u8282\u70B9\u4E0D\u4F1A\u5F71\u54CD\u5230\u8BFE\u7A0B\u7AE0\u8282\u5185\u5BB9\uFF0C\u5220\u9664\u540E\uFF0C\u6570\u636E\u4E0D\u53EF\u6062\u590D\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>le(void 0,null,function*(){Yn(!0);let qn=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"DELETE"});Yn(!1),(qn==null?void 0:qn.status)===0&&(Ai({}),hs())})})}},vt.createElement("i",{style:{marginRight:8},className:"iconfont icon-shanchujiedian"})," \u5220\u9664\u8282\u70B9"),vt.createElement("span",{className:ki.button,onClick:()=>le(void 0,null,function*(){var qn;Eo(!0);let li=yield(0,te.ZP)("/api/knowledge_graphs.json",{method:"get",params:{identifier:ei.pathId,type:2}});li.status===0&&(jo(li==null?void 0:li.list),Qo(li==null?void 0:li.knowledge_graphs),Ro((qn=li==null?void 0:li.list)==null?void 0:qn.map(Vi=>Vi.key)))})},vt.createElement("i",{style:{marginRight:8},className:"iconfont icon-guanxi"})," \u5173\u7CFB")),ri&&vt.createElement("div",{style:{marginTop:20}},vt.createElement("div",{className:ki.linetitles},vt.createElement("span",{className:ki.line}),"\u5C5E\u6027"),zt.unit_type!=4&&zt.unit_type>0&&vt.createElement("div",{style:{paddingLeft:8}},vt.createElement("label",{className:ki.lebels},"\u7C7B\u578B"),vt.createElement(mt.default,{size:"large",getPopupContainer:()=>uo.current,style:{width:"100%",marginTop:6},value:zt.unit_type,onChange:qn=>le(void 0,null,function*(){zt.unit_type=qn,Ai(Nn({},zt)),Yn(!0);let li=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"put",body:{unit_type:qn}});Yn(!1),li.status===0&&(tn(!1),hs())}),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},vt.createElement(mt.default.Option,{value:1},"\u8BFE\u4EF6"),vt.createElement(mt.default.Option,{value:3},"\u6587\u672C"),vt.createElement(mt.default.Option,{value:2},"\u5B9E\u8BAD"),vt.createElement(mt.default.Option,{value:5},"\u8003\u8BD5"),vt.createElement(mt.default.Option,{value:6},"\u4F5C\u4E1A"),vt.createElement(mt.default.Option,{value:7},"\u7EC3\u4E60"),vt.createElement(mt.default.Option,{value:8},"\u89C6\u9891"))),vt.createElement("div",{style:{paddingLeft:8,marginTop:15}},vt.createElement("label",{className:ki.lebels,style:{display:"flex"}},"\u8DF3\u8F6C\u5730\u5740"),vt.createElement(wt.default,{size:"large",value:zt.url,onChange:qn=>{zt.url=qn.target.value,Ai(Nn({},zt))},disabled:Ho,onBlur:qn=>le(void 0,null,function*(){if(ko(!1),qn.target.value){var li=new RegExp(/^(https?:\/\/)?([\w.-]+)\.([a-z]{2,})(\/\S*)?$/,"i");if(!li.test(qn.target.value)){Jt.ZP.info("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8DF3\u8F6C\u5730\u5740");return}}Yn(!0);let Vi=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"put",body:{url:qn.target.value}});Yn(!1),Zi(!0),Vi.status===0&&(tn(!1),hs())}),style:{width:"81%",marginTop:6}}),vt.createElement("i",{onClick:()=>{Zi(!1)},className:"iconfont icon-bianji3",style:{marginLeft:12,marginRight:20,color:"#666666",cursor:"pointer"}}),vt.createElement("span",{className:ki.button,style:{marginRight:0},onClick:()=>{if(!zt.url){Jt.ZP.info("\u94FE\u63A5\u4E0D\u80FD\u4E3A\u7A7A");return}window.open(zt.url)}},"\u8DF3\u8F6C"))),ri&&vt.createElement("div",{style:{marginTop:20}},vt.createElement("div",{className:ki.linetitles},vt.createElement("span",{className:ki.line}),"\u5173\u7CFB"),(un=zt==null?void 0:zt.relations)==null?void 0:un.map((qn,li)=>vt.createElement("div",{style:{display:"flex",paddingLeft:8}},vt.createElement("div",{className:ki.multi_ellipsis1},"\u4E0E\u8282\u70B9\u201C",vt.createElement("span",{style:{fontWeight:600,color:"#000000"}},qn.name),"\u201D\u4E3A",qn.relation,"\u5173\u7CFB"),vt.createElement("div",{style:{width:"10%",textAlign:"end"}},vt.createElement("i",{onClick:()=>{de.default.confirm({icon:null,title:"\u63D0\u793A",getContainer:()=>uo.current,centered:!0,content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u8282\u70B9\u4E4B\u95F4\u7684\u5173\u7CFB\u89E3\u7ED1",onOk:()=>le(void 0,null,function*(){var Vi;Yn(!0);let wi=yield(0,te.ZP)(`/api/knowledge_graphs/${zt==null?void 0:zt.id}/delete_relation.json`,{method:"POST",body:{relation_id:qn.relation_id}});Yn(!1),wi.status===0&&((Vi=zt.relations)==null||Vi.splice(li,1),Ai(Nn({},zt)),hs())})})},className:`${ki.dhover} iconfont icon-shanchu10`}))))),!ri&&vt.createElement("div",{style:{marginTop:20}},vt.createElement("div",{className:ki.linetitles},vt.createElement("span",{className:ki.line}),"\u5B66\u4E60\u8D44\u6E90"),(kn=zt==null?void 0:zt.sub_knowledge_graphs)==null?void 0:kn.map((qn,li)=>{var Vi,wi;return vt.createElement("div",{className:ki.a,onClick:()=>{window.open(qn==null?void 0:qn.url)},style:{display:"flex",paddingLeft:8,alignItems:"center",cursor:"pointer"}},vt.createElement("i",{className:"iconfont icon-lianjie2",style:{marginRight:10,fontSize:12}}),vt.createElement("span",{className:`${ki.multi_ellipsis1} ${ki.a}`,style:{fontWeight:600,marginTop:0,width:"90%",display:"inline-flex"}}," \u3010",((wi=(Vi=Re==null?void 0:Re.filter(Hi=>qn.type===Hi.type))==null?void 0:Vi[0])==null?void 0:wi.name)||"\u6587\u672C","\u3011 ",qn.name," "),vt.createElement("div",null,"\u67E5\u770B"))})),!ri&&vt.createElement("div",{style:{marginTop:20}},vt.createElement("div",{className:ki.linetitles},vt.createElement("span",{className:ki.line}),"\u5B58\u5728\u5173\u7CFB\u7684\u77E5\u8BC6\u8282\u70B9"),(Tn=zt==null?void 0:zt.relations)==null?void 0:Tn.map((qn,li)=>vt.createElement("div",{className:ki.a,onClick:()=>{var Vi,wi,Hi,Fo,lr,fr,gr,Sr,xr,yr,Za,la;(Vi=ur.current)==null||Vi.clearSelection(),(wi=Ao.current)==null||wi.clearSelection();const Cr=(Fo=(Hi=Ao.current)==null?void 0:Hi.findNodeForKey)==null?void 0:Fo.call(Hi,qn==null?void 0:qn.relation_id),Bu=(fr=(lr=ur.current)==null?void 0:lr.findNodeForKey)==null?void 0:fr.call(lr,qn==null?void 0:qn.relation_id);(Sr=(gr=ur.current)==null?void 0:gr.commandHandler)==null||Sr.scrollToPart(Bu),(yr=(xr=Ao.current)==null?void 0:xr.commandHandler)==null||yr.scrollToPart(Cr),Cr&&(Cr.isSelected=!0),Bu&&(Bu.isSelected=!0);let hd=(la=(Za=Mi==null?void 0:Mi.nodeData)==null?void 0:Za.filter(Ph=>(Ph==null?void 0:Ph.id)===(qn==null?void 0:qn.relation_id)))==null?void 0:la[0];Ai(Nn({},hd))},style:{display:"flex",paddingLeft:8,cursor:"pointer"}},vt.createElement("div",{className:ki.multi_ellipsis1},"\u3010",qn.relation,"\u3011",qn.name)))),vt.createElement("div",{style:{marginTop:20}},vt.createElement("div",{className:ki.linetitles},vt.createElement("span",{className:ki.line}),"\u63CF\u8FF0",vt.createElement("div",{style:{flex:1,textAlign:"end"}},ri&&vt.createElement("span",{onClick:()=>{Fi({add:!0,name:""}),vo.setFieldsValue({describe:""})},className:ki.additem},vt.createElement("i",{style:{fontSize:12},className:"iconfont icon-tianjiashitixiaojiahao"})," \u6DFB\u52A0"))),vt.createElement("div",{style:{height:200,overflow:"auto"}},(Rn=zt.descriptions)==null?void 0:Rn.map((qn,li)=>vt.createElement("div",{className:ki.describe},vt.createElement("div",{className:ki.describetitle},vt.createElement("div",{style:{fontSize:14,color:"#000000",fontWeight:500}},"\u63CF\u8FF0",li+1),ri&&vt.createElement("div",null,vt.createElement("i",{onClick:()=>{Fi({index:li,name:qn}),vo.setFieldsValue({describe:qn})},style:{marginRight:10},className:`iconfont icon-bianji-moren ${ki.ehover}`}),vt.createElement("i",{onClick:()=>{de.default.confirm({icon:null,title:"\u63D0\u793A",getContainer:()=>uo.current,centered:!0,content:"\u5220\u9664\u63CF\u8FF0\u540E\uFF0C\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>le(void 0,null,function*(){var Vi;(Vi=zt.descriptions)==null||Vi.splice(li,1),Ai(Nn({},zt)),Yn(!0);let wi=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"put",body:{descriptions:zt.descriptions}});Yn(!1),wi.status===0&&(tn(!1),hs())})})},className:`iconfont icon-shanchutimu ${ki.dhover}`}))),vt.createElement(me.Z,{value:qn||""})))),!ri&&jr&&vt.createElement("div",{style:{textAlign:"center",marginTop:10}},vt.createElement(ht.ZP,{type:"primary",style:{width:120},onClick:()=>{hr(!0)}},"\u7F16\u8F91")))))))))),vt.createElement(de.default,{open:pi,centered:!0,title:"\u7F16\u8F91",getContainer:()=>uo.current,onCancel:()=>tn(!1),okButtonProps:{loading:Ci},onOk:()=>{vo.submit()}},vt.createElement(oe.default,{size:"large",form:vo,onFinish:qn=>le(void 0,null,function*(){Ui(!0);let li=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"put",body:{type:2,name:qn.name}});Ui(!1),li.status===0&&(ii&&(zt.text=qn.name,Ai(zt)),tn(!1),Jt.ZP.info("\u4FEE\u6539\u6210\u529F"),hs())})},vt.createElement(oe.default.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,validator:(qn,li)=>{var Vi;return((Vi=li==null?void 0:li.replaceAll(" ",""))==null?void 0:Vi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u540D\u79F0")}}]},vt.createElement(wt.default,{maxLength:30})))),vt.createElement(de.default,{open:$i,centered:!0,title:"\u63D2\u5165\u77E5\u8BC6\u70B9",getContainer:()=>uo.current,onCancel:()=>Co(!1),okButtonProps:{loading:Ci},onOk:()=>{vo.submit()}},vt.createElement(oe.default,{size:"large",form:vo,onFinish:qn=>le(void 0,null,function*(){Ui(!0);let li=yield(0,te.ZP)("/api/knowledge_graphs.json",{method:"post",body:_n(Nn({},qn),{unit_type:4,type:2,identifier:ei.virtual_spacesId,parent_id:zt.id,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});Ui(!1),li.status===0&&(Co(!1),hs(),Jt.ZP.info("\u63D2\u5165\u77E5\u8BC6\u70B9\u6210\u529F"))})},vt.createElement(oe.default.Item,{name:"name",label:"\u77E5\u8BC6\u70B9\u540D\u79F0",rules:[{required:!0,validator:(qn,li)=>{var Vi;return((Vi=li==null?void 0:li.replaceAll(" ",""))==null?void 0:Vi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0")}}]},vt.createElement(wt.default,{maxLength:20})))),vt.createElement(de.default,{open:lo,centered:!0,width:550,title:"\u63D2\u5165\u77E5\u8BC6\u5355\u5143",getContainer:()=>uo.current,onCancel:()=>Si(!1),okButtonProps:{loading:Ci},onOk:()=>{vo.submit()}},vt.createElement(oe.default,{size:"large",form:vo,labelCol:{span:5},onFinish:qn=>le(void 0,null,function*(){let li=yield(0,te.ZP)("/api/knowledge_graphs.json",{method:"post",body:_n(Nn({},qn),{type:2,identifier:ei.virtual_spacesId,parent_id:zt.id,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});Ui(!1),li.status===0&&(Si(!1),hs(),Jt.ZP.info("\u63D2\u5165\u77E5\u8BC6\u5355\u5143\u6210\u529F"))})},vt.createElement(oe.default.Item,{name:"name",label:"\u77E5\u8BC6\u5355\u5143\u540D\u79F0",rules:[{required:!0,validator:(qn,li)=>{var Vi;return((Vi=li==null?void 0:li.replaceAll(" ",""))==null?void 0:Vi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u77E5\u8BC6\u5355\u5143\u540D\u79F0")}}]},vt.createElement(wt.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u5355\u5143\u540D\u79F0",maxLength:20})),vt.createElement(oe.default.Item,{name:"unit_type",label:"\u7C7B\u578B"},vt.createElement(mt.default,{getPopupContainer:()=>uo.current,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},vt.createElement(mt.default.Option,{value:1},"\u8BFE\u4EF6"),vt.createElement(mt.default.Option,{value:3},"\u6587\u672C"),vt.createElement(mt.default.Option,{value:2},"\u5B9E\u8BAD"),vt.createElement(mt.default.Option,{value:5},"\u8003\u8BD5"),vt.createElement(mt.default.Option,{value:6},"\u4F5C\u4E1A"),vt.createElement(mt.default.Option,{value:7},"\u7EC3\u4E60"),vt.createElement(mt.default.Option,{value:8},"\u89C6\u9891"))),vt.createElement(oe.default.Item,{name:"url",label:"\u8DF3\u8F6C\u5730\u5740",rules:[{pattern:new RegExp(/^(https?:\/\/)?([\w.-]+)\.([a-z]{2,})(\/\S*)?$/,"i"),message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u5730\u5740"}]},vt.createElement(wt.default,{placeholder:"\u8BF7\u8F93\u5165\u70B9\u51FB\u8BE5\u8282\u70B9\u8DF3\u8F6C\u7684\u94FE\u63A5\u5730\u5740"})))),ao&&vt.createElement(de.default,{open:ao,centered:!0,width:550,title:"\u6DFB\u52A0\u5173\u7CFB",getContainer:()=>uo.current,onCancel:()=>{Sa(""),Eo(!1)},okButtonProps:{loading:Ci},onOk:()=>{if(!wr){Jt.ZP.info("\u8BF7\u5148\u9009\u62E9\u8282\u70B9");return}Eo(!1),vr(!0),vo.setFieldsValue({relation:1}),nr("")}},vt.createElement(wt.default.Search,{size:"large",onChange:qn=>{let li=qn.target.value;const Vi=Cs.filter(wi=>wi.title.indexOf(li)>-1).map(wi=>wi.key);Ro(Vi),sn(!0),nr(qn.target.value)}}),vt.createElement(Et.default,{onExpand:qn=>{Ro(qn),sn(!1)},style:{maxHeight:300,height:300,marginTop:20,overflow:"auto"},onSelect:qn=>{console.log("---",qn),Sa(qn==null?void 0:qn[0])},expandedKeys:ar,defaultExpandAll:!0,autoExpandParent:qr,treeData:$l})),(xi.name||xi.add)&&vt.createElement(de.default,{open:xi.name||xi.add,title:"\u63CF\u8FF0",width:900,getContainer:()=>uo.current,centered:!0,onCancel:()=>{Fi("")},okButtonProps:{loading:Ci},onOk:()=>{vo.submit()}},vt.createElement(oe.default,{form:vo,onFinish:qn=>le(void 0,null,function*(){Ui(!0),xi.add?(zt.descriptions.push(qn.describe),Ai(Nn({},zt))):(zt.descriptions[xi.index]=qn.describe,Ai(Nn({},zt)));let li=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}.json`,{method:"put",body:{type:2,descriptions:zt.descriptions}});Ui(!1),Fi(""),li.status===0&&(tn(!1),hs())})},vt.createElement(oe.default.Item,{name:"describe",style:{marginBottom:-10},rules:[{required:!0,validator:(qn,li)=>{var Vi;return((Vi=li==null?void 0:li.replaceAll(" ",""))==null?void 0:Vi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9")}}]},vt.createElement(re.Z,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u5236\u4E3A65000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:xi.name})))),vt.createElement(de.default,{title:"\u6587\u4EF6\u5BFC\u5165",open:Wn,centered:!0,getContainer:()=>uo.current,okButtonProps:{loading:Ci},onCancel:()=>{zi(!1),Ko([])},onOk:()=>le(void 0,null,function*(){var qn;const li=new FormData;if(xo.length>0)li.append("file",xo[0]);else{Jt.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}Ui(!0),li.append("ec_year_id",ei.ec_year_id),li.append("identifier",ei.virtual_spacesId),li.append("type","2"),li.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId"));let Vi=yield(0,te.ZP)("/api/knowledge_graphs/import.json",{method:"post",body:li},!0);Ui(!1),(Vi==null?void 0:Vi.status)===0&&(((qn=Vi==null?void 0:Vi.fail)==null?void 0:qn.length)>0&&de.default.confirm({icon:null,title:"\u5BFC\u5165\u5931\u8D25",content:vt.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",vt.createElement("a",{href:`${Mo.Z.API_SERVER}${Vi==null?void 0:Vi.url}`,download:"\u5931\u8D25\u6570\u636E.xlsx"},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}),Ko([]),zt={},Ai({}),(Vi==null?void 0:Vi.success)>0&&Jt.ZP.info("\u6DFB\u52A0\u6210\u529F"),hs(),zi(!1))})},!(Mi!=null&&Mi.is_root)&&vt.createElement("div",{style:{marginBottom:30,color:"#333333"}},"\u68C0\u6D4B\u5F53\u524D\u5DF2\u5B58\u5728\u6570\u636E\uFF0C\u5BFC\u5165\u540E\u539F\u6570\u636E\u5C06\u4F1A\u88AB\u5220\u9664\uFF0C\u6309\u7167\u6700\u65B0\u5BFC\u5165\u7684\u4E3A\u4E3B\uFF0C\u5982\u7EE7\u7EED\u5BFC\u5165\uFF0C\u8BF7\u6309\u7167\u4E0B\u65B9\u6B65\u9AA4\u8FDB\u884C"),vt.createElement("p",{style:{color:"#5F6368"}},"\u6B65\u9AA41\uFF1A",vt.createElement("span",{style:{color:"#000000"}},"\u4E0B\u8F7D"),vt.createElement("a",{href:`${Mo.Z.API_SERVER}/api/knowledge_graphs/down_template.json`,download:"\u6A21\u7248.xlsx"},"\u77E5\u8BC6\u56FE\u8C31\u5BFC\u5165\u6A21\u7248")),vt.createElement($t.Z,null,vt.createElement(Nt.Z,{style:{color:"#5F6368"}},"\u6B65\u9AA42\uFF1A",vt.createElement("span",{style:{color:"#000000"}},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u77E5\u8BC6\u56FE\u8C31\u5BFC\u5165\u6A21\u7248\u300B"))),vt.createElement($t.Z,{style:{marginTop:10,marginLeft:50}},vt.createElement(Dt.default,Nn({},xh),vt.createElement("span",{style:{padding:"0px 16px",color:"#3061D0",cursor:"pointer",height:32,alignItems:"center",display:"inline-flex",borderRadius:2,border:"1px solid #BACFFE",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)"}},vt.createElement("i",{style:{fontSize:12,marginRight:6},className:"iconfont icon-tianjiashitixiaojiahao"})," \u9009\u62E9\u6587\u4EF6")))),vt.createElement(de.default,{open:Lo,title:"\u6DFB\u52A0\u5173\u7CFB",width:500,getContainer:()=>uo.current,centered:!0,onCancel:()=>{vr(!1),vo.setFieldsValue({relation:null})},okButtonProps:{loading:Ci},onOk:()=>{vo.submit()}},vt.createElement(oe.default,{form:vo,onFinish:qn=>le(void 0,null,function*(){Ui(!0);let li=yield(0,te.ZP)(`/api/knowledge_graphs/${zt.id}/relation.json`,{method:"post",body:Nn({type:2,parent_id:wr},qn)});Ui(!1),li.status===0&&(Jt.ZP.info("\u5173\u8054\u6210\u529F"),hs(),Sa(""),vr(!1),vo.setFieldsValue({relation:null}))})},vt.createElement(oe.default.Item,{name:"relation",label:"\u7C7B\u578B"},vt.createElement(mt.default,{getPopupContainer:()=>uo.current,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},vt.createElement(mt.default.Option,{value:1},"\u5173\u8054"),vt.createElement(mt.default.Option,{value:2},"\u540E\u5E8F"))))),Xo&&vt.createElement(de.default,{open:Xo,centered:!0,width:550,title:"\u67E5\u627E",getContainer:()=>uo.current,onCancel:()=>{Sa(""),bo(!1)},okButtonProps:{loading:Ci},onOk:()=>{var qn,li,Vi,wi,Hi,Fo,lr,fr,gr,Sr;bo(!1),(qn=ur.current)==null||qn.clearSelection(),(li=Ao.current)==null||li.clearSelection();const xr=(wi=(Vi=Ao.current)==null?void 0:Vi.findNodeForKey)==null?void 0:wi.call(Vi,wr),yr=(Fo=(Hi=ur.current)==null?void 0:Hi.findNodeForKey)==null?void 0:Fo.call(Hi,wr);(fr=(lr=ur.current)==null?void 0:lr.commandHandler)==null||fr.scrollToPart(yr),(Sr=(gr=Ao.current)==null?void 0:gr.commandHandler)==null||Sr.scrollToPart(xr),xr&&(xr.isSelected=!0,jr&&(mi({left:0,top:0,bottom:0,right:0}),Ai(xr.data))),yr&&(yr.isSelected=!0,jr&&(mi({left:0,top:0,bottom:0,right:0}),Ai(yr.data))),Sa(""),nr("")}},vt.createElement(wt.default.Search,{size:"large",allowClear:!0,onChange:qn=>{let li=qn.target.value;const Vi=Cs.filter(wi=>wi.title.indexOf(li)>-1).map(wi=>wi.key);Ro(Vi),Vi.length<=0?Ta(!0):Ta(!1),sn(!0),nr(qn.target.value)}}),xa?vt.createElement(Bo.Z,null):vt.createElement(Et.default,{onExpand:qn=>{Ro(qn),sn(!1)},style:{maxHeight:400,height:400,marginTop:20,overflow:"auto"},onSelect:qn=>{Sa(qn==null?void 0:qn[0])},expandedKeys:ar,defaultExpandAll:!0,autoExpandParent:qr,treeData:$l})),vt.createElement(de.default,{title:"\u5386\u53F2\u8BB0\u5F55",open:Gs,onCancel:()=>bs(!1),footer:!1},vt.createElement("div",{style:{maxHeight:200,overflow:"auto",padding:10}},vt.createElement(Be(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>le(void 0,null,function*(){var qn;hu(po+1);let li=yield(0,te.ZP)("/api/knowledge_graphs/history.json",{method:"get",params:{identifier:ei.virtual_spacesId,limit:10,page:po+1}});li.status===0&&(Js([...Dr,...li==null?void 0:li.histories]),((qn=li==null?void 0:li.histories)==null?void 0:qn.length)<10&&sa(!1))}),hasMore:Nl,useWindow:!1},vt.createElement(At.Z,{dataSource:Dr,renderItem:qn=>vt.createElement(At.Z.Item,{key:qn.id},vt.createElement(At.Z.Item.Meta,{avatar:vt.createElement(xt,{src:Mo.Z.IMG_SERVER+"/images/"+qn.avatar_url}),title:vt.createElement("span",null,qn.real_name),description:qn.content}),vt.createElement("div",null,qn.created_at))})))))};var He=(0,It.connect)(({virtualSpaces:ze,globalSetting:Ge})=>({globalSetting:Ge,virtualSpaces:ze}))(fn),je=Pt(59301),vn=Object.defineProperty,rn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,xn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,yi=(ze,Ge,Oe)=>Ge in ze?vn(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ze[Ge]=Oe,Xe=(ze,Ge)=>{for(var Oe in Ge||(Ge={}))On.call(Ge,Oe)&&yi(ze,Oe,Ge[Oe]);if(xn)for(var Oe of xn(Ge))zn.call(Ge,Oe)&&yi(ze,Oe,Ge[Oe]);return ze},Li=(ze,Ge)=>rn(ze,bn(Ge)),ji=(ze,Ge,Oe)=>new Promise((un,kn)=>{var Tn=qe=>{try{ei(Oe.next(qe))}catch(pi){kn(pi)}},Rn=qe=>{try{ei(Oe.throw(qe))}catch(pi){kn(pi)}},ei=qe=>qe.done?un(qe.value):Promise.resolve(qe.value).then(Tn,Rn);ei((Oe=Oe.apply(ze,Ge)).next())});const Ei={1:"position_and_target",2:"desc",3:"knowledge_graph",4:"knowledge"},nn=({globalSetting:ze,dispatch:Ge,virtualSpaces:Oe})=>{var un;const[kn]=(0,It.useSearchParams)(),[Tn,Rn]=(0,vt.useState)(!0),[ei,qe]=(0,vt.useState)(!1),[pi,tn]=(0,vt.useState)(!1),[Ci,Ui]=(0,vt.useState)(!1),[$i,Co]=(0,vt.useState)({}),[lo,Si]=(0,vt.useState)(""),[ii,Yi]=(0,vt.useState)((kn==null?void 0:kn.get("active"))||"position_and_target"),{virtualSpacesDetails:oo}=Oe,Yn=(0,It.useParams)(),zt=(oo==null?void 0:oo.is_member)||(0,et.Ny)(),[Ai]=oe.default.useForm();(0,vt.useEffect)(()=>{Eo()},[ii,window.localStorage.getItem("vtrsModuleId")]);const[vo,ao]=(0,vt.useState)([]),Eo=()=>ji(void 0,null,function*(){Rn(!0);let xi=yield(0,te.ZP)(`/api/virtual_classrooms/${Yn.virtual_spacesId}/knowledge_systems/show.json`,{method:"get",params:{column:ii,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if((xi==null?void 0:xi.status)!==-1){Co(Xe({},xi)),Si((xi==null?void 0:xi[ii])||"");let Fi=[],Mi=[],co=[];const uo=xi==null?void 0:xi.knowledge_tabs;Object.entries(uo).forEach(([Pi,Ni])=>{if(Ni)switch(Pi){case"show_position_and_target":Fi.push(1),co.push("position_and_target"),Mi.push({id:"position_and_target",name:"\u8BFE\u7A0B\u5B9A\u4F4D\u4E0E\u76EE\u6807"});break;case"show_knowledge_point":Fi.push(2),co.push("desc"),Mi.push({id:"desc",name:"\u8BFE\u7A0B\u77E5\u8BC6\u70B9"});break;case"show_knowledge_graph_desc":Fi.push(3),co.push("knowledge_graph"),Mi.push({id:"knowledge_graph",name:"\u77E5\u8BC6\u56FE\u8C31\u63CF\u8FF0"});break;case"show_knowledge_graph":Fi.push(4),co.push("knowledge"),Mi.push({id:"knowledge",name:"\u77E5\u8BC6\u56FE\u8C31"});break;default:break}}),Ai.setFieldValue("checkData",Fi),ao([...Mi]),co!=null&&co.includes(ii)||Yi(Ei[Fi[0]])}Rn(!1)}),Ho=()=>ji(void 0,null,function*(){qe(!0);const xi={};xi[ii]=lo;let Fi=yield(0,te.ZP)(`/api/virtual_classrooms/${Yn.virtual_spacesId}/knowledge_systems/edit.json`,{method:"put",body:Li(Xe({},xi),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(Fi==null?void 0:Fi.status)!==-1&&(Eo(),tn(!1)),qe(!1)}),Zi=(xi,Fi)=>{de.default.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{danger:!0},icon:!1,className:Ot.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:je.createElement("div",null,je.createElement("div",null,"\u786E\u8BA4\u5220\u9664 ",Fi," \u5417\uFF1F"),je.createElement("div",{className:"mt10"},"\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C")),onOk:()=>ji(void 0,null,function*(){const Mi=yield(0,te.ZP)(`/api/virtual_classrooms/${Yn.virtual_spacesId}/knowledge_systems/${xi}/del_content.json`,{method:"delete"});(Mi==null?void 0:Mi.status)!==-1&&Eo()})})};return je.createElement("section",{className:we.wrap},je.createElement(Fe.YG,{value:ii,onChange:xi=>{xi!==ii&&(Yi(xi),tn(!1))},tabBarExtraContent:zt&&je.createElement("div",{style:{display:"flex",alignItems:"center"}},je.createElement("i",{className:"iconfont icon-a-bianzu21 font20 mr20",style:{cursor:"pointer"},onClick:()=>{Ui(!0)}}),ii==="position_and_target"&&je.createElement(Fe.op,{onClick:()=>tn(!0)}," ",je.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91"),ii==="desc"&&je.createElement($t.Z,{align:"middle"},je.createElement(Fe.op,{onClick:()=>tn(!0)}," ",je.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91\u8BF4\u660E"),je.createElement(Fe.op,{onClick:()=>{It.history.push(`/${nt.AS}/${Yn.virtual_spacesId}/knowledge/add?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},className:"ml20"}," ",je.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u65B0\u589E\u77E5\u8BC6\u70B9\u6A21\u5757")),ii==="knowledge_graph"&&je.createElement(Fe.op,{onClick:()=>tn(!0)}," ",je.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91\u77E5\u8BC6\u56FE\u8C31")),dataSource:vo}),je.createElement(Ut.Z,{spinning:Tn},ii!=="desc"&&je.createElement("div",{className:ii!=="knowledge"&&"mt20"},pi?je.createElement(je.Fragment,null,je.createElement(re.Z,{onChange:xi=>Si(xi),watch:!0,defaultValue:lo}),je.createElement(Fe.QD,{confirmTitle:"\u4FDD\u5B58",confirmLoading:ei,confirmClick:Ho,cancelClick:()=>{tn(!1),Si($i[ii]||"")},cancelTitle:"\u53D6\u6D88",className:"mb25"})):je.createElement(me.Z,{value:lo})),ii==="knowledge"&&je.createElement(He,null),ii==="desc"&&je.createElement("div",{className:we.content},!!lo&&je.createElement("div",{className:we.name},je.createElement("aside",null,"\u8BF4\u660E"),je.createElement(me.Z,{value:lo})),(un=$i==null?void 0:$i.subject_modules)==null?void 0:un.map(xi=>{const{members:{module_content:Fi,module_name:Mi,subject_module_id:co}}=xi;return je.createElement("div",{className:we.list,key:co},je.createElement("div",{className:we.head},je.createElement("div",{className:we.models},Mi),zt&&je.createElement("div",{className:we.btns},je.createElement("div",{onClick:()=>It.history.push(`/${nt.AS}/${Yn.virtual_spacesId}/knowledge/${co}/edit?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},je.createElement("span",{className:"primary-hover"},je.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),je.createElement("div",{onClick:()=>Zi(co,Mi)},je.createElement("span",{className:"delete-hover"}," ",je.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u5220\u9664")))),je.createElement("div",{className:we.rowsHead},je.createElement("div",null,"\u77E5\u8BC6\u70B9"),je.createElement("div",null,"\u4E3B\u8981\u5185\u5BB9"),je.createElement("div",null,"\u80FD\u529B\u76EE\u6807"),je.createElement("div",{className:we.time},"\u5B66\u65F6"),je.createElement("div",{style:{marginRight:0}},"\u6559\u6848")),Fi==null?void 0:Fi.map((uo,Pi)=>{const{knowledge_point:Ni,content:Wn,target:zi,class_hour:xo,lesson_plan:Ko}=uo;return je.createElement("div",{className:we.rowsBody,key:Pi},je.createElement("div",null,Ni),je.createElement("pre",null,Wn),je.createElement("pre",null,zi),je.createElement("div",{className:we.time},xo),je.createElement("div",{style:{marginRight:0}},je.createElement(me.Z,{value:Ko})))}))})),je.createElement(de.default,{title:"\u7F16\u8F91\u8BF4\u660E",destroyOnClose:!0,open:ii==="desc"&&pi,onOk:Ho,centered:!0,onCancel:()=>{tn(!1),Si($i[ii]||"")},confirmLoading:ei,width:686,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:Ot.Z.CustomCss},je.createElement("div",null,"\u8BF4\u660E\uFF1A"),je.createElement(re.Z,{onChange:xi=>Si(xi),watch:!0,defaultValue:lo})),je.createElement(de.default,{title:"\u77E5\u8BC6\u4F53\u7CFB\u6A21\u5757\u8BBE\u7F6E",destroyOnClose:!0,open:Ci,onOk:()=>ji(void 0,null,function*(){var xi,Fi,Mi,co,uo;if(((xi=Ai.getFieldValue("checkData"))==null?void 0:xi.length)==0)return Jt.ZP.error("\u81F3\u5C11\u9700\u8981\u9009\u62E9\u4E00\u4E2A\u9009\u9879"),!1;const Pi=yield(0,te.ZP)(`/api/virtual_classrooms/${Yn.virtual_spacesId}/knowledge_systems/tabs_setting.json`,{method:"put",body:{virtual_module_id:window.localStorage.getItem("vtrsModuleId"),knowledge_system_id:$i==null?void 0:$i.id,show_position_and_target:(Fi=Ai.getFieldValue("checkData"))==null?void 0:Fi.includes(1),show_knowledge_point:(Mi=Ai.getFieldValue("checkData"))==null?void 0:Mi.includes(2),show_knowledge_graph_desc:(co=Ai.getFieldValue("checkData"))==null?void 0:co.includes(3),show_knowledge_graph:(uo=Ai.getFieldValue("checkData"))==null?void 0:uo.includes(4)}});(Pi==null?void 0:Pi.status)!==-1&&(Eo(),Ui(!1))}),centered:!0,onCancel:()=>{Ui(!1)},confirmLoading:ei,width:530,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:Ot.Z.CustomCss},je.createElement(oe.default,{form:Ai,style:{marginBottom:"-20px",marginTop:"10px"}},je.createElement(oe.default.Item,{name:"checkData"},je.createElement(De.default.Group,null,je.createElement(De.default,{value:1},"\u8BFE\u7A0B\u5B9A\u4F4D\u4E0E\u76EE\u6807"),je.createElement(De.default,{value:2},"\u8BFE\u7A0B\u77E5\u8BC6\u70B9"),je.createElement(De.default,{value:3},"\u77E5\u8BC6\u56FE\u8C31\u63CF\u8FF0"),je.createElement(De.default,{value:4},"\u77E5\u8BC6\u56FE\u8C31")))))))};var Vn=(0,It.connect)(({virtualSpaces:ze,globalSetting:Ge})=>({globalSetting:Ge,virtualSpaces:ze}))(nn)},4901:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{BU:function(){return It},Dj:function(){return vt},gH:function(){return oe},vp:function(){return de}});function vt($t){try{$t.mozRequestFullScreen?$t.mozRequestFullScreen():$t.webkitRequestFullScreen&&$t.webkitRequestFullScreen()}catch(Ut){console.log(Ut,":e")}}function It(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const oe=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function de(){var $t=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,Ut=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",$t),window.isFullScreen?window.isFullScreen:$t!=null}},24768:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{AL:function(){return wt},Iy:function(){return Fe},Qv:function(){return Ot},ez:function(){return mt},jb:function(){return re}});var vt=Pt(32834),It=Pt.n(vt),oe=Pt(11690),de=Pt.n(oe);let $t=1;function Ut(Kt,Wt){const xe=Kt.match(/^(\s+)(?:```)/);if(xe===null)return Wt;const Vt=xe[1];return Wt.split(` `).map(Ie=>{const Se=Ie.match(/^\s+/);if(Se===null)return Ie;const[Ye]=Se;return Ye.length>=Vt.length?Ie.slice(Vt.length):Ie}).join(` `)}let Jt=[],De=["
    "];const we=new(It()).Renderer,te=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Fe(){Jt.length=0,De=["
      "]}const re={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function me(Kt,Wt,xe,Vt){if(Wt>=Kt.length||Kt[Wt].level<=xe)return Wt;var Ie=Kt[Wt];Vt.push("
    • "+Ie.text+""),Wt++;var Se=[];return Wt=me(Kt,Wt,Ie.level,Se),Se.length>0&&(Vt.push("
        "),Se.forEach(function(Ye){Vt.push(Ye)}),Vt.push("
      ")),Vt.push("
    • "),Wt=me(Kt,Wt,xe,Vt),Wt}function Ot(){return me(Jt,0,0,De),De.push("
    "),De.join("")}const et={heading(Kt){const Wt=te.exec(Kt);if($t+=1,Wt)return{type:"heading",raw:Wt[0],depth:Wt[1].length,text:Wt[2]}},fences(Kt){const Wt=this.rules.block.fences.exec(Kt);if(Wt){const xe=Wt[0];let Vt=Ut(xe,Wt[3]||"");const Ie=Wt[2]?Wt[2].trim():Wt[2];if(["latex","katex","math"].indexOf(Ie)>=0){const Se=at(),Ye=Vt;Vt=Se,ft[Se]={type:"block",expression:Ye}}return{type:"code",raw:xe,lang:Ie,text:Vt}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const at=()=>`__special_katext_id_${ht++}__`;let ft={};function mt(){return ft}function wt(){ht=0,ft={}}function Et(Kt){return Kt=Kt.replace(nt,(Wt,xe)=>{const Vt=at();return ft[Vt]={type:"inline",expression:xe},Vt}),Kt}const Nt=we.listitem;we.listitem=function(Kt){return Nt(Et(Kt))};const Dt=we.paragraph;we.paragraph=function(Kt){return Dt(Et(Kt))};const At=we.tablecell;we.tablecell=function(Kt,Wt){return At(Et(Kt),Wt)},we.code=function(Kt,Wt,xe){const Vt=(Wt||"").match(/\S*/)[0];return Vt?["latex","katex","math"].indexOf(Vt)>=0?`

    ${Kt}

    `:`
    ${xe?Kt:(0,oe.escape)(Kt,!0)}
    `:'
    '+(xe?Kt:(0,oe.escape)(Kt,!0))+"
    "},we.heading=function(Kt,Wt,xe){let Vt=this.options.headerPrefix+xe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Jt.push({anchor:Vt,level:Wt,text:Kt}),"'+Kt+""},It().setOptions({silent:!0,gfm:!0,pedantic:!1}),It().use({tokenizer:et,renderer:we}),Ve.ZP=It()},50371:function(Sn,Ve){"use strict";function Pt(){const vt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let It=1;It{const $t=oe[de];$t!==void 0&&(vt[de]=$t)})}return vt}Ve.Z=Pt},77578:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return vt}});const vt=It=>It?typeof It=="function"?It():It:null},56762:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return It}});var vt=Pt(59301);function It(){const[,oe]=vt.useReducer(de=>de+1,0);return oe}},24905:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return Dt}});var vt=Pt(92310),It=Pt.n(vt),oe=Pt(5630),de=Pt(59301),$t=Pt(36355),Ut=Pt(1684),Jt=Pt(32441),we=de.createContext(null),te=Pt(98447),Fe=Pt(14088),re=Pt(4572),me=function(At,Kt){var Wt={};for(var xe in At)Object.prototype.hasOwnProperty.call(At,xe)&&Kt.indexOf(xe)<0&&(Wt[xe]=At[xe]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,xe=Object.getOwnPropertySymbols(At);Vt{var Wt;const{prefixCls:xe,className:Vt,rootClassName:Ie,children:Se,indeterminate:Ye=!1,style:Le,onMouseEnter:Pe,onMouseLeave:We,skipGroup:Ue=!1,disabled:ue}=At,Ht=me(At,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ke,direction:pn,checkbox:ln}=de.useContext($t.E_),Ee=de.useContext(we),{isFormItemInput:Ke}=de.useContext(Jt.aM),gn=de.useContext(Ut.Z),Bn=(Wt=(Ee==null?void 0:Ee.disabled)||ue)!==null&&Wt!==void 0?Wt:gn,dn=de.useRef(Ht.value);de.useEffect(()=>{Ee==null||Ee.registerValue(Ht.value)},[]),de.useEffect(()=>{if(!Ue)return Ht.value!==dn.current&&(Ee==null||Ee.cancelValue(dn.current),Ee==null||Ee.registerValue(Ht.value),dn.current=Ht.value),()=>Ee==null?void 0:Ee.cancelValue(Ht.value)},[Ht.value]);const In=ke("checkbox",xe),[Ce,$n]=(0,te.ZP)(In),Qn=Object.assign({},Ht);Ee&&!Ue&&(Qn.onChange=function(){Ht.onChange&&Ht.onChange.apply(Ht,arguments),Ee.toggleOption&&Ee.toggleOption({label:Se,value:Ht.value})},Qn.name=Ee.name,Qn.checked=Ee.value.includes(Ht.value));const jt=It()(`${In}-wrapper`,{[`${In}-rtl`]:pn==="rtl",[`${In}-wrapper-checked`]:Qn.checked,[`${In}-wrapper-disabled`]:Bn,[`${In}-wrapper-in-form-item`]:Ke},ln==null?void 0:ln.className,Vt,Ie,$n),Lt=It()({[`${In}-indeterminate`]:Ye},re.A,$n),xt=Ye?"mixed":void 0;return Ce(de.createElement(Fe.Z,{component:"Checkbox",disabled:Bn},de.createElement("label",{className:jt,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Le),onMouseEnter:Pe,onMouseLeave:We},de.createElement(oe.Z,Object.assign({"aria-checked":xt},Qn,{prefixCls:In,className:Lt,disabled:Bn,ref:Kt})),Se!==void 0&&de.createElement("span",null,Se))))};var nt=de.forwardRef(Ot),ht=Pt(19127),at=Pt(2738),ft=function(At,Kt){var Wt={};for(var xe in At)Object.prototype.hasOwnProperty.call(At,xe)&&Kt.indexOf(xe)<0&&(Wt[xe]=At[xe]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,xe=Object.getOwnPropertySymbols(At);Vt{const{defaultValue:Wt,children:xe,options:Vt=[],prefixCls:Ie,className:Se,rootClassName:Ye,style:Le,onChange:Pe}=At,We=ft(At,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:ue}=de.useContext($t.E_),[Ht,ke]=de.useState(We.value||Wt||[]),[pn,ln]=de.useState([]);de.useEffect(()=>{"value"in We&&ke(We.value||[])},[We.value]);const Ee=de.useMemo(()=>Vt.map(Tt=>typeof Tt=="string"||typeof Tt=="number"?{label:Tt,value:Tt}:Tt),[Vt]),Ke=Tt=>{ln(Ft=>Ft.filter(yt=>yt!==Tt))},gn=Tt=>{ln(Ft=>[].concat((0,ht.Z)(Ft),[Tt]))},Bn=Tt=>{const Ft=Ht.indexOf(Tt.value),yt=(0,ht.Z)(Ht);Ft===-1?yt.push(Tt.value):yt.splice(Ft,1),"value"in We||ke(yt),Pe==null||Pe(yt.filter(ee=>pn.includes(ee)).sort((ee,pe)=>{const qt=Ee.findIndex(fe=>fe.value===ee),Zt=Ee.findIndex(fe=>fe.value===pe);return qt-Zt}))},dn=Ue("checkbox",Ie),In=`${dn}-group`,[Ce,$n]=(0,te.ZP)(dn),Qn=(0,at.Z)(We,["value","disabled"]),jt=Vt.length?Ee.map(Tt=>de.createElement(nt,{prefixCls:dn,key:Tt.value.toString(),disabled:"disabled"in Tt?Tt.disabled:We.disabled,value:Tt.value,checked:Ht.includes(Tt.value),onChange:Tt.onChange,className:`${In}-item`,style:Tt.style,title:Tt.title},Tt.label)):xe,Lt={toggleOption:Bn,value:Ht,disabled:We.disabled,name:We.name,registerValue:gn,cancelValue:Ke},xt=It()(In,{[`${In}-rtl`]:ue==="rtl"},Se,Ye,$n);return Ce(de.createElement("div",Object.assign({className:xt,style:Le},Qn,{ref:Kt}),de.createElement(we.Provider,{value:Lt},jt)))},wt=de.forwardRef(mt);var Et=de.memo(wt);const Nt=nt;Nt.Group=Et,Nt.__ANT_CHECKBOX=!0;var Dt=Nt},98447:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{C2:function(){return $t}});var vt=Pt(17313),It=Pt(37613),oe=Pt(83116);const de=Ut=>{const{checkboxCls:Jt}=Ut,De=`${Jt}-wrapper`;return[{[`${Jt}-group`]:Object.assign(Object.assign({},(0,vt.Wf)(Ut)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ut.marginXS,[`> ${Ut.antCls}-row`]:{flex:1}}),[De]:Object.assign(Object.assign({},(0,vt.Wf)(Ut)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${De}`]:{marginInlineStart:0},[`&${De}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Jt]:Object.assign(Object.assign({},(0,vt.Wf)(Ut)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ut.borderRadiusSM,alignSelf:"center",[`${Jt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Jt}-inner`]:Object.assign({},(0,vt.oN)(Ut))},[`${Jt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ut.checkboxSize,height:Ut.checkboxSize,direction:"ltr",backgroundColor:Ut.colorBgContainer,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.colorBorder}`,borderRadius:Ut.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ut.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ut.checkboxSize/14*5,height:Ut.checkboxSize/14*8,border:`${Ut.lineWidthBold}px solid ${Ut.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ut.motionDurationFast} ${Ut.motionEaseInBack}, opacity ${Ut.motionDurationFast}`}},"& + span":{paddingInlineStart:Ut.paddingXS,paddingInlineEnd:Ut.paddingXS}})},{[` ${De}:not(${De}-disabled), ${Jt}:not(${Jt}-disabled) `]:{[`&:hover ${Jt}-inner`]:{borderColor:Ut.colorPrimary}},[`${De}:not(${De}-disabled)`]:{[`&:hover ${Jt}-checked:not(${Jt}-disabled) ${Jt}-inner`]:{backgroundColor:Ut.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Jt}-checked:not(${Jt}-disabled):after`]:{borderColor:Ut.colorPrimaryHover}}},{[`${Jt}-checked`]:{[`${Jt}-inner`]:{backgroundColor:Ut.colorPrimary,borderColor:Ut.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ut.motionDurationMid} ${Ut.motionEaseOutBack} ${Ut.motionDurationFast}`}}},[` ${De}-checked:not(${De}-disabled), ${Jt}-checked:not(${Jt}-disabled) `]:{[`&:hover ${Jt}-inner`]:{backgroundColor:Ut.colorPrimaryHover,borderColor:"transparent"}}},{[Jt]:{"&-indeterminate":{[`${Jt}-inner`]:{backgroundColor:Ut.colorBgContainer,borderColor:Ut.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ut.fontSizeLG/2,height:Ut.fontSizeLG/2,backgroundColor:Ut.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${De}-disabled`]:{cursor:"not-allowed"},[`${Jt}-disabled`]:{[`&, ${Jt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Jt}-inner`]:{background:Ut.colorBgContainerDisabled,borderColor:Ut.colorBorder,"&:after":{borderColor:Ut.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ut.colorTextDisabled},[`&${Jt}-indeterminate ${Jt}-inner::after`]:{background:Ut.colorTextDisabled}}}]};function $t(Ut,Jt){const De=(0,It.TS)(Jt,{checkboxCls:`.${Ut}`,checkboxSize:Jt.controlInteractiveSize});return[de(De)]}Ve.ZP=(0,oe.Z)("Checkbox",(Ut,Jt)=>{let{prefixCls:De}=Jt;return[$t(De,Ut)]})},93891:function(Sn,Ve,Pt){"use strict";var vt=Pt(59301),It=Pt(36355),oe=Pt(64165);const de=$t=>{const{componentName:Ut}=$t,{getPrefixCls:Jt}=(0,vt.useContext)(It.E_),De=Jt("empty");switch(Ut){case"Table":case"List":return vt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return vt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${De}-small`});default:return vt.createElement(oe.Z,null)}};Ve.Z=de},91857:function(Sn,Ve,Pt){"use strict";var vt=Pt(59301),It=Pt(38819),oe=Pt(92310),de=Pt.n(oe),$t=Pt(31561),Ut=Pt(70425),Jt=Pt(18929),De=Pt(2738),we=Pt(79676),te=Pt(53487),Fe=Pt(92343),re=Pt(36355),me=Pt(20834),Ot=Pt(40875),et=Pt(88088),nt=Pt(47211);const ht=null,at=Et=>{const{menu:Nt,arrow:Dt,prefixCls:At,children:Kt,trigger:Wt,disabled:xe,dropdownRender:Vt,getPopupContainer:Ie,overlayClassName:Se,rootClassName:Ye,open:Le,onOpenChange:Pe,visible:We,onVisibleChange:Ue,mouseEnterDelay:ue=.15,mouseLeaveDelay:Ht=.1,autoAdjustOverflow:ke=!0,placement:pn="",overlay:ln,transitionName:Ee}=Et,{getPopupContainer:Ke,getPrefixCls:gn,direction:Bn}=vt.useContext(re.E_),dn=vt.useMemo(()=>{const ne=gn();return Ee!==void 0?Ee:pn.includes("top")?`${ne}-slide-down`:`${ne}-slide-up`},[gn,pn,Ee]),In=vt.useMemo(()=>pn?pn.includes("Center")?pn.slice(0,pn.indexOf("Center")):pn:Bn==="rtl"?"bottomRight":"bottomLeft",[pn,Bn]),Ce=gn("dropdown",At),[$n,Qn]=(0,nt.Z)(Ce),[,jt]=(0,et.Z)(),Lt=vt.Children.only(Kt),xt=(0,Fe.Tm)(Lt,{className:de()(`${Ce}-trigger`,{[`${Ce}-rtl`]:Bn==="rtl"},Lt.props.className),disabled:xe}),Tt=xe?[]:Wt;let Ft;Tt&&Tt.includes("contextMenu")&&(Ft=!0);const[yt,ee]=(0,Jt.Z)(!1,{value:Le!=null?Le:We}),pe=(0,Ut.useEvent)(ne=>{Pe==null||Pe(ne),Ue==null||Ue(ne),ee(ne)}),qt=de()(Se,Ye,Qn,{[`${Ce}-rtl`]:Bn==="rtl"}),Zt=(0,we.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:ke,offset:jt.marginXXS,arrowWidth:Dt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius}),fe=vt.useCallback(()=>{ee(!1)},[]),ce=()=>{let ne;return Nt!=null&&Nt.items?ne=vt.createElement(me.default,Object.assign({},Nt)):typeof ln=="function"?ne=ln():ne=ln,Vt&&(ne=Vt(ne)),ne=vt.Children.only(typeof ne=="string"?vt.createElement("span",null,ne):ne),vt.createElement(Ot.J,{prefixCls:`${Ce}-menu`,expandIcon:vt.createElement("span",{className:`${Ce}-menu-submenu-arrow`},vt.createElement(It.Z,{className:`${Ce}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:fe,validator:Ne=>{let{mode:hn}=Ne}},ne)};return $n(vt.createElement($t.Z,Object.assign({alignPoint:Ft},(0,De.Z)(Et,["rootClassName"]),{mouseEnterDelay:ue,mouseLeaveDelay:Ht,visible:yt,builtinPlacements:Zt,arrow:!!Dt,overlayClassName:qt,prefixCls:Ce,getPopupContainer:Ie||Ke,transitionName:dn,trigger:Tt,overlay:ce,placement:In,onVisibleChange:pe}),xt))};function ft(Et){return Object.assign(Object.assign({},Et),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const mt=(0,te.Z)(at,"dropdown",Et=>Et,ft),wt=Et=>vt.createElement(mt,Object.assign({},Et),vt.createElement("span",null));at._InternalPanelDoNotUseOrYouWillBeFired=wt,Ve.Z=at},38854:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return et}});var vt=Pt(91857),It=Pt(92310),oe=Pt.n(It),de=Pt(59301),$t=Pt(18785),Ut=Pt(3113),Jt=Pt(36355),De=Pt(81327),we=Pt(33234),te=Pt(47211),Fe=function(nt,ht){var at={};for(var ft in nt)Object.prototype.hasOwnProperty.call(nt,ft)&&ht.indexOf(ft)<0&&(at[ft]=nt[ft]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ft=Object.getOwnPropertySymbols(nt);mt{const{getPopupContainer:ht,getPrefixCls:at,direction:ft}=de.useContext(Jt.E_),{prefixCls:mt,type:wt="default",danger:Et,disabled:Nt,loading:Dt,onClick:At,htmlType:Kt,children:Wt,className:xe,menu:Vt,arrow:Ie,autoFocus:Se,overlay:Ye,trigger:Le,align:Pe,open:We,onOpenChange:Ue,placement:ue,getPopupContainer:Ht,href:ke,icon:pn=de.createElement($t.Z,null),title:ln,buttonsRender:Ee=ce=>ce,mouseEnterDelay:Ke,mouseLeaveDelay:gn,overlayClassName:Bn,overlayStyle:dn,destroyPopupOnHide:In,dropdownRender:Ce}=nt,$n=Fe(nt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Qn=at("dropdown",mt),jt=`${Qn}-button`,[Lt,xt]=(0,te.Z)(Qn),Tt={menu:Vt,arrow:Ie,autoFocus:Se,align:Pe,disabled:Nt,trigger:Nt?[]:Le,onOpenChange:Ue,getPopupContainer:Ht||ht,mouseEnterDelay:Ke,mouseLeaveDelay:gn,overlayClassName:Bn,overlayStyle:dn,destroyPopupOnHide:In,dropdownRender:Ce},{compactSize:Ft,compactItemClassnames:yt}=(0,we.ri)(Qn,ft),ee=oe()(jt,yt,xe,xt);"overlay"in nt&&(Tt.overlay=Ye),"open"in nt&&(Tt.open=We),"placement"in nt?Tt.placement=ue:Tt.placement=ft==="rtl"?"bottomLeft":"bottomRight";const pe=de.createElement(Ut.ZP,{type:wt,danger:Et,disabled:Nt,loading:Dt,onClick:At,htmlType:Kt,href:ke,title:ln},Wt),qt=de.createElement(Ut.ZP,{type:wt,danger:Et,icon:pn}),[Zt,fe]=Ee([pe,qt]);return Lt(de.createElement(De.Z.Compact,Object.assign({className:ee,size:Ft,block:!0},$n),Zt,de.createElement(vt.Z,Object.assign({},Tt),fe)))};re.__ANT_BUTTON=!0;var me=re;const Ot=vt.Z;Ot.Button=me;var et=Ot},47211:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Fe}});var vt=Pt(17313),It=Pt(13826),oe=Pt(92899),de=Pt(29878),$t=Pt(19447),Ut=Pt(83116),Jt=Pt(37613),we=re=>{const{componentCls:me,menuCls:Ot,colorError:et,colorTextLightSolid:nt}=re,ht=`${Ot}-item`;return{[`${me}, ${me}-menu-submenu`]:{[`${Ot} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const te=re=>{const{componentCls:me,menuCls:Ot,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:at,iconCls:ft,motionDurationMid:mt,dropdownPaddingVertical:wt,fontSize:Et,dropdownEdgeChildPadding:Nt,colorTextDisabled:Dt,fontSizeIcon:At,controlPaddingHorizontal:Kt,colorBgElevated:Wt}=re;return[{[me]:Object.assign(Object.assign({},(0,vt.Wf)(re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${at}-btn`]:{[`& > ${ft}-down, & > ${at}-btn-icon > ${ft}-down`]:{fontSize:At}},[`${me}-wrap`]:{position:"relative",[`${at}-btn > ${ft}-down`]:{fontSize:At},[`${ft}-down::before`]:{transition:`transform ${mt}`}},[`${me}-wrap-open`]:{[`${ft}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottomLeft, &${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottomLeft, &${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottom, &${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottom, &${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottomRight, &${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottomRight`]:{animationName:It.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-topLeft, &${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-topLeft, &${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-top, &${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-top, &${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-topRight, &${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-topRight`]:{animationName:It.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottomLeft, &${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottom, &${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottomRight`]:{animationName:It.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-topLeft, &${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-top, &${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-topRight`]:{animationName:It.ly}})},(0,$t.ZP)(re,{colorBg:Wt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${me} ${Ot}`]:{position:"relative",margin:0},[`${Ot}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${me}, ${me}-menu-submenu`]:{[Ot]:Object.assign(Object.assign({padding:Nt,listStyleType:"none",backgroundColor:Wt,backgroundClip:"padding-box",borderRadius:re.borderRadiusLG,outline:"none",boxShadow:re.boxShadowSecondary},(0,vt.Qy)(re)),{[`${Ot}-item-group-title`]:{padding:`${wt}px ${Kt}px`,color:re.colorTextDescription,transition:`all ${mt}`},[`${Ot}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ot}-item-icon`]:{minWidth:Et,marginInlineEnd:re.marginXS,fontSize:re.fontSizeSM},[`${Ot}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${mt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ot}-item, ${Ot}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${wt}px ${Kt}px`,color:re.colorText,fontWeight:"normal",fontSize:Et,lineHeight:re.lineHeight,cursor:"pointer",transition:`all ${mt}`,borderRadius:re.borderRadiusSM,"&:hover, &-active":{backgroundColor:re.controlItemBgHover}},(0,vt.Qy)(re)),{"&-selected":{color:re.colorPrimary,backgroundColor:re.controlItemBgActive,"&:hover, &-active":{backgroundColor:re.controlItemBgActiveHover}},"&-disabled":{color:Dt,cursor:"not-allowed","&:hover":{color:Dt,backgroundColor:Wt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:re.colorSplit},[`${me}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:re.paddingXS,[`${me}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:re.colorTextDescription,fontSize:At,fontStyle:"normal"}}}),[`${Ot}-item-group-list`]:{margin:`0 ${re.marginXS}px`,padding:0,listStyle:"none"},[`${Ot}-submenu-title`]:{paddingInlineEnd:Kt+re.fontSizeSM},[`${Ot}-submenu-vertical`]:{position:"relative"},[`${Ot}-submenu${Ot}-submenu-disabled ${me}-menu-submenu-title`]:{[`&, ${me}-menu-submenu-arrow-icon`]:{color:Dt,backgroundColor:Wt,cursor:"not-allowed"}},[`${Ot}-submenu-selected ${me}-menu-submenu-title`]:{color:re.colorPrimary}})}},[(0,It.oN)(re,"slide-up"),(0,It.oN)(re,"slide-down"),(0,oe.Fm)(re,"move-up"),(0,oe.Fm)(re,"move-down"),(0,de._y)(re,"zoom-big")]]};var Fe=(0,Ut.Z)("Dropdown",(re,me)=>{let{rootPrefixCls:Ot}=me;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:at,lineHeight:ft,paddingXXS:mt,componentCls:wt,borderRadiusLG:Et}=re,Nt=(ht-at*ft)/2,{dropdownArrowOffset:Dt}=(0,$t.fS)({contentRadius:Et}),At=(0,Jt.TS)(re,{menuCls:`${wt}-menu`,rootPrefixCls:Ot,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:Dt,dropdownPaddingVertical:Nt,dropdownEdgeChildPadding:mt});return[te(At),we(At)]},re=>({zIndexPopup:re.zIndexPopupBase+50}))},64165:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return mt}});var vt=Pt(92310),It=Pt.n(vt),oe=Pt(59301),de=Pt(36355),$t=Pt(9763),Ut=Pt(64993),Jt=Pt(88088),we=()=>{const[,wt]=(0,Jt.Z)(),Nt=new Ut.C(wt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Nt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Fe=()=>{const[,wt]=(0,Jt.Z)(),{colorFill:Et,colorFillTertiary:Nt,colorFillQuaternary:Dt,colorBgContainer:At}=wt,{borderColor:Kt,shadowColor:Wt,contentColor:xe}=(0,oe.useMemo)(()=>({borderColor:new Ut.C(Et).onBackground(At).toHexShortString(),shadowColor:new Ut.C(Nt).onBackground(At).toHexShortString(),contentColor:new Ut.C(Dt).onBackground(At).toHexShortString()}),[Et,Nt,Dt,At]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:Wt,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Kt},oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:xe}))))},re=Pt(83116),me=Pt(37613);const Ot=wt=>{const{componentCls:Et,margin:Nt,marginXS:Dt,marginXL:At,fontSize:Kt,lineHeight:Wt}=wt;return{[Et]:{marginInline:Dt,fontSize:Kt,lineHeight:Wt,textAlign:"center",[`${Et}-image`]:{height:wt.emptyImgHeight,marginBottom:Dt,opacity:wt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Et}-description`]:{color:wt.colorText},[`${Et}-footer`]:{marginTop:Nt},"&-normal":{marginBlock:At,color:wt.colorTextDisabled,[`${Et}-description`]:{color:wt.colorTextDisabled},[`${Et}-image`]:{height:wt.emptyImgHeightMD}},"&-small":{marginBlock:Dt,color:wt.colorTextDisabled,[`${Et}-image`]:{height:wt.emptyImgHeightSM}}}}};var et=(0,re.Z)("Empty",wt=>{const{componentCls:Et,controlHeightLG:Nt}=wt,Dt=(0,me.TS)(wt,{emptyImgCls:`${Et}-img`,emptyImgHeight:Nt*2.5,emptyImgHeightMD:Nt,emptyImgHeightSM:Nt*.875});return[Ot(Dt)]}),nt=function(wt,Et){var Nt={};for(var Dt in wt)Object.prototype.hasOwnProperty.call(wt,Dt)&&Et.indexOf(Dt)<0&&(Nt[Dt]=wt[Dt]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Dt=Object.getOwnPropertySymbols(wt);At{var{className:Et,rootClassName:Nt,prefixCls:Dt,image:At=ht,description:Kt,children:Wt,imageStyle:xe,style:Vt}=wt,Ie=nt(wt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Se,direction:Ye,empty:Le}=oe.useContext(de.E_),Pe=Se("empty",Dt),[We,Ue]=et(Pe),[ue]=(0,$t.Z)("Empty"),Ht=typeof Kt!="undefined"?Kt:ue==null?void 0:ue.description,ke=typeof Ht=="string"?Ht:"empty";let pn=null;return typeof At=="string"?pn=oe.createElement("img",{alt:ke,src:At}):pn=At,We(oe.createElement("div",Object.assign({className:It()(Ue,Pe,Le==null?void 0:Le.className,{[`${Pe}-normal`]:At===at,[`${Pe}-rtl`]:Ye==="rtl"},Et,Nt),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),Vt)},Ie),oe.createElement("div",{className:`${Pe}-image`,style:xe},pn),Ht&&oe.createElement("div",{className:`${Pe}-description`},Ht),Wt&&oe.createElement("div",{className:`${Pe}-footer`},Wt)))};ft.PRESENTED_IMAGE_DEFAULT=ht,ft.PRESENTED_IMAGE_SIMPLE=at;var mt=ft},78241:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return Be}});var vt=Pt(19127),It=Pt(92310),oe=Pt.n(It),de=Pt(77900),$t=Pt(59301),Ut=Pt(62892),Jt=Pt(32441);function De(_t){const[Je,cn]=$t.useState(_t);return $t.useEffect(()=>{const ve=setTimeout(()=>{cn(_t)},_t.length?0:10);return()=>{clearTimeout(ve)}},[_t]),Je}var we=Pt(17313),te=Pt(29878),Fe=Pt(8378),re=Pt(37613),me=Pt(83116),et=_t=>{const{componentCls:Je}=_t,cn=`${Je}-show-help`,ve=`${Je}-show-help-item`;return{[cn]:{transition:`opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ve]:{overflow:"hidden",transition:`height ${_t.motionDurationSlow} ${_t.motionEaseInOut}, opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut}, transform ${_t.motionDurationSlow} ${_t.motionEaseInOut} !important`,[`&${ve}-appear, &${ve}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ve}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=_t=>({legend:{display:"block",width:"100%",marginBottom:_t.marginLG,padding:0,color:_t.colorTextDescription,fontSize:_t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_t.lineWidth}px ${_t.lineType} ${_t.colorBorder}`},label:{fontSize:_t.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 ${_t.controlOutlineWidth}px ${_t.controlOutline}`},output:{display:"block",paddingTop:15,color:_t.colorText,fontSize:_t.fontSize,lineHeight:_t.lineHeight}}),ht=(_t,Je)=>{const{formItemCls:cn}=_t;return{[cn]:{[`${cn}-label > label`]:{height:Je},[`${cn}-control-input`]:{minHeight:Je}}}},at=_t=>{const{componentCls:Je}=_t;return{[_t.componentCls]:Object.assign(Object.assign(Object.assign({},(0,we.Wf)(_t)),nt(_t)),{[`${Je}-text`]:{display:"inline-block",paddingInlineEnd:_t.paddingSM},"&-small":Object.assign({},ht(_t,_t.controlHeightSM)),"&-large":Object.assign({},ht(_t,_t.controlHeightLG))})}},ft=_t=>{const{formItemCls:Je,iconCls:cn,componentCls:ve,rootPrefixCls:ie,labelRequiredMarkColor:Qe,labelColor:yn,labelFontSize:Nn,labelHeight:_n,labelColonMarginInlineStart:le,labelColonMarginInlineEnd:mn,itemMarginBottom:Gn}=_t;return{[Je]:Object.assign(Object.assign({},(0,we.Wf)(_t)),{marginBottom:Gn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${ie}-row`]:{display:"none"},"&-has-warning":{[`${Je}-split`]:{color:_t.colorError}},"&-has-error":{[`${Je}-split`]:{color:_t.colorWarning}},[`${Je}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${_t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:_n,color:yn,fontSize:Nn,[`> ${cn}`]:{fontSize:_t.fontSize,verticalAlign:"top"},[`&${Je}-required:not(${Je}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:_t.marginXXS,color:Qe,fontSize:_t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ve}-hide-required-mark &`]:{display:"none"}},[`${Je}-optional`]:{display:"inline-block",marginInlineStart:_t.marginXXS,color:_t.colorTextDescription,[`${ve}-hide-required-mark &`]:{display:"none"}},[`${Je}-tooltip`]:{color:_t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:_t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:le,marginInlineEnd:mn},[`&${Je}-no-colon::after`]:{content:'"\\a0"'}}},[`${Je}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ie}-col-'"]):not([class*="' ${ie}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:_t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Je]:{"&-explain, &-extra":{clear:"both",color:_t.colorTextDescription,fontSize:_t.fontSize,lineHeight:_t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:_t.controlHeightSM,transition:`color ${_t.motionDurationMid} ${_t.motionEaseOut}`},"&-explain":{"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning}}},[`&-with-help ${Je}-explain`]:{height:"auto",opacity:1},[`${Je}-feedback-icon`]:{fontSize:_t.fontSize,textAlign:"center",visibility:"visible",animationName:te.kr,animationDuration:_t.motionDurationMid,animationTimingFunction:_t.motionEaseOutBack,pointerEvents:"none","&-success":{color:_t.colorSuccess},"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning},"&-validating":{color:_t.colorPrimary}}})}},mt=_t=>{const{componentCls:Je,formItemCls:cn}=_t;return{[`${Je}-horizontal`]:{[`${cn}-label`]:{flexGrow:0},[`${cn}-control`]:{flex:"1 1 0",minWidth:0},[`${cn}-label[class$='-24'], ${cn}-label[class*='-24 ']`]:{[`& + ${cn}-control`]:{minWidth:"unset"}}}}},wt=_t=>{const{componentCls:Je,formItemCls:cn}=_t;return{[`${Je}-inline`]:{display:"flex",flexWrap:"wrap",[cn]:{flex:"none",marginInlineEnd:_t.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${cn}-label, > ${cn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${cn}-label`]:{flex:"none"},[`${Je}-text`]:{display:"inline-block"},[`${cn}-has-feedback`]:{display:"inline-block"}}}}},Et=_t=>({padding:_t.verticalLabelPadding,margin:_t.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Nt=_t=>{const{componentCls:Je,formItemCls:cn,rootPrefixCls:ve}=_t;return{[`${cn} ${cn}-label`]:Et(_t),[Je]:{[cn]:{flexWrap:"wrap",[`${cn}-label, ${cn}-control`]:{[`&:not([class*=" ${ve}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Dt=_t=>{const{componentCls:Je,formItemCls:cn,rootPrefixCls:ve}=_t;return{[`${Je}-vertical`]:{[cn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Je}-item-control`]:{width:"100%"}}},[`${Je}-vertical ${cn}-label, .${ve}-col-24${cn}-label, .${ve}-col-xl-24${cn}-label`]:Et(_t),[`@media (max-width: ${_t.screenXSMax}px)`]:[Nt(_t),{[Je]:{[`.${ve}-col-xs-24${cn}-label`]:Et(_t)}}],[`@media (max-width: ${_t.screenSMMax}px)`]:{[Je]:{[`.${ve}-col-sm-24${cn}-label`]:Et(_t)}},[`@media (max-width: ${_t.screenMDMax}px)`]:{[Je]:{[`.${ve}-col-md-24${cn}-label`]:Et(_t)}},[`@media (max-width: ${_t.screenLGMax}px)`]:{[Je]:{[`.${ve}-col-lg-24${cn}-label`]:Et(_t)}}}},At=(_t,Je)=>(0,re.TS)(_t,{formItemCls:`${_t.componentCls}-item`,rootPrefixCls:Je});var Kt=(0,me.Z)("Form",(_t,Je)=>{let{rootPrefixCls:cn}=Je;const ve=At(_t,cn);return[at(ve),ft(ve),et(ve),mt(ve),wt(ve),Dt(ve),(0,Fe.Z)(ve),te.kr]},_t=>({labelRequiredMarkColor:_t.colorError,labelColor:_t.colorTextHeading,labelFontSize:_t.fontSize,labelHeight:_t.controlHeight,labelColonMarginInlineStart:_t.marginXXS/2,labelColonMarginInlineEnd:_t.marginXS,itemMarginBottom:_t.marginLG,verticalLabelPadding:`0 0 ${_t.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Wt=[];function xe(_t,Je,cn){let ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _t=="string"?_t:`${Je}-${ve}`,error:_t,errorStatus:cn}}var Ie=_t=>{let{help:Je,helpStatus:cn,errors:ve=Wt,warnings:ie=Wt,className:Qe,fieldId:yn,onVisibleChanged:Nn}=_t;const{prefixCls:_n}=$t.useContext(Jt.Rk),le=`${_n}-item-explain`,[,mn]=Kt(_n),Gn=(0,$t.useMemo)(()=>(0,Ut.Z)(_n),[_n]),si=De(ve),Re=De(ie),fn=$t.useMemo(()=>Je!=null?[xe(Je,"help",cn)]:[].concat((0,vt.Z)(si.map((je,vn)=>xe(je,"error","error",vn))),(0,vt.Z)(Re.map((je,vn)=>xe(je,"warning","warning",vn)))),[Je,cn,si,Re]),He={};return yn&&(He.id=`${yn}_help`),$t.createElement(de.default,{motionDeadline:Gn.motionDeadline,motionName:`${_n}-show-help`,visible:!!fn.length,onVisibleChanged:Nn},je=>{const{className:vn,style:rn}=je;return $t.createElement("div",Object.assign({},He,{className:oe()(le,vn,Qe,mn),style:rn,role:"alert"}),$t.createElement(de.CSSMotionList,Object.assign({keys:fn},(0,Ut.Z)(_n),{motionName:`${_n}-show-help-item`,component:!1}),bn=>{const{key:xn,error:On,errorStatus:zn,className:yi,style:Xe}=bn;return $t.createElement("div",{key:xn,className:oe()(yi,{[`${le}-${zn}`]:zn}),style:Xe},On)}))})},Se=Pt(95013),Ye=Pt(36355),Le=Pt(1684),Pe=Pt(52946),We=Pt(19716),Ue=Pt(16722);const ue=["parentNode"],Ht="form_item";function ke(_t){return _t===void 0||_t===!1?[]:Array.isArray(_t)?_t:[_t]}function pn(_t,Je){if(!_t.length)return;const cn=_t.join("_");return Je?`${Je}_${cn}`:ue.includes(cn)?`${Ht}_${cn}`:cn}function ln(_t,Je,cn,ve,ie,Qe){let yn=ve;return Qe!==void 0?yn=Qe:cn.validating?yn="validating":_t.length?yn="error":Je.length?yn="warning":(cn.touched||ie&&cn.validated)&&(yn="success"),yn}function Ee(_t){return ke(_t).join("_")}function Ke(_t){const[Je]=(0,Se.useForm)(),cn=$t.useRef({}),ve=$t.useMemo(()=>_t!=null?_t:Object.assign(Object.assign({},Je),{__INTERNAL__:{itemRef:ie=>Qe=>{const yn=Ee(ie);Qe?cn.current[yn]=Qe:delete cn.current[yn]}},scrollToField:function(ie){let Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const yn=ke(ie),Nn=pn(yn,ve.__INTERNAL__.name),_n=Nn?document.getElementById(Nn):null;_n&&(0,Ue.Z)(_n,Object.assign({scrollMode:"if-needed",block:"nearest"},Qe))},getFieldInstance:ie=>{const Qe=Ee(ie);return cn.current[Qe]}}),[_t,Je]);return[ve]}var gn=Pt(28726),Bn=function(_t,Je){var cn={};for(var ve in _t)Object.prototype.hasOwnProperty.call(_t,ve)&&Je.indexOf(ve)<0&&(cn[ve]=_t[ve]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ve=Object.getOwnPropertySymbols(_t);ie{const cn=$t.useContext(Le.Z),{getPrefixCls:ve,direction:ie,form:Qe}=$t.useContext(Ye.E_),{prefixCls:yn,className:Nn,rootClassName:_n,size:le,disabled:mn=cn,form:Gn,colon:si,labelAlign:Re,labelWrap:fn,labelCol:He,wrapperCol:je,hideRequiredMark:vn,layout:rn="horizontal",scrollToFirstError:bn,requiredMark:xn,onFinishFailed:On,name:zn,style:yi,feedbackIcons:Xe}=_t,Li=Bn(_t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ji=(0,We.Z)(le),Ei=$t.useContext(gn.Z),nn=(0,$t.useMemo)(()=>xn!==void 0?xn:Qe&&Qe.requiredMark!==void 0?Qe.requiredMark:!vn,[vn,xn,Qe]),Vn=si!=null?si:Qe==null?void 0:Qe.colon,ze=ve("form",yn),[Ge,Oe]=Kt(ze),un=oe()(ze,`${ze}-${rn}`,{[`${ze}-hide-required-mark`]:nn===!1,[`${ze}-rtl`]:ie==="rtl",[`${ze}-${ji}`]:ji},Oe,Qe==null?void 0:Qe.className,Nn,_n),[kn]=Ke(Gn),{__INTERNAL__:Tn}=kn;Tn.name=zn;const Rn=(0,$t.useMemo)(()=>({name:zn,labelAlign:Re,labelCol:He,labelWrap:fn,wrapperCol:je,vertical:rn==="vertical",colon:Vn,requiredMark:nn,itemRef:Tn.itemRef,form:kn,feedbackIcons:Xe}),[zn,Re,He,je,rn,Vn,nn,kn,Xe]);$t.useImperativeHandle(Je,()=>kn);const ei=(pi,tn)=>{if(pi){let Ci={block:"nearest"};typeof pi=="object"&&(Ci=pi),kn.scrollToField(tn,Ci)}},qe=pi=>{if(On==null||On(pi),pi.errorFields.length){const tn=pi.errorFields[0].name;if(bn!==void 0){ei(bn,tn);return}Qe&&Qe.scrollToFirstError!==void 0&&ei(Qe.scrollToFirstError,tn)}};return Ge($t.createElement(Le.n,{disabled:mn},$t.createElement(Pe.q,{size:ji},$t.createElement(Jt.RV,Object.assign({},{validateMessages:Ei}),$t.createElement(Jt.q3.Provider,{value:Rn},$t.createElement(Se.default,Object.assign({id:zn},Li,{name:zn,onFinishFailed:qe,form:kn,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),yi),className:un})))))))};var Ce=$t.forwardRef(dn),$n=Pt(41799),Qn=Pt(8654),jt=Pt(92343),Lt=Pt(11592);function xt(_t){if(typeof _t=="function")return _t;const Je=(0,Lt.Z)(_t);return Je.length<=1?Je[0]:Je}const Tt=()=>{const{status:_t,errors:Je=[],warnings:cn=[]}=(0,$t.useContext)(Jt.aM);return{status:_t,errors:Je,warnings:cn}};Tt.Context=Jt.aM;var Ft=Tt,yt=Pt(16089);function ee(_t){const[Je,cn]=$t.useState(_t),ve=(0,$t.useRef)(null),ie=(0,$t.useRef)([]),Qe=(0,$t.useRef)(!1);$t.useEffect(()=>(Qe.current=!1,()=>{Qe.current=!0,yt.Z.cancel(ve.current),ve.current=null}),[]);function yn(Nn){Qe.current||(ve.current===null&&(ie.current=[],ve.current=(0,yt.Z)(()=>{ve.current=null,cn(_n=>{let le=_n;return ie.current.forEach(mn=>{le=mn(le)}),le})})),ie.current.push(Nn))}return[Je,yn]}function pe(){const{itemRef:_t}=$t.useContext(Jt.q3),Je=$t.useRef({});function cn(ve,ie){const Qe=ie&&typeof ie=="object"&&ie.ref,yn=ve.join("_");return(Je.current.name!==yn||Je.current.originRef!==Qe)&&(Je.current.name=yn,Je.current.originRef=Qe,Je.current.ref=(0,Qn.sQ)(_t(ve),Qe)),Je.current.ref}return cn}var qt=Pt(29194),Zt=Pt(34280),fe=Pt(2738),ce=Pt(27382),ne=Pt(37028);const Ne=_t=>{const{formItemCls:Je}=_t;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Je}-control`]:{display:"flex"}}}};var hn=(0,me.b)(["Form","item-item"],(_t,Je)=>{let{rootPrefixCls:cn}=Je;const ve=At(_t,cn);return[Ne(ve)]}),_e=_t=>{const{prefixCls:Je,status:cn,wrapperCol:ve,children:ie,errors:Qe,warnings:yn,_internalItemRender:Nn,extra:_n,help:le,fieldId:mn,marginBottom:Gn,onErrorVisibleChanged:si}=_t,Re=`${Je}-item`,fn=$t.useContext(Jt.q3),He=ve||fn.wrapperCol||{},je=oe()(`${Re}-control`,He.className),vn=$t.useMemo(()=>Object.assign({},fn),[fn]);delete vn.labelCol,delete vn.wrapperCol;const rn=$t.createElement("div",{className:`${Re}-control-input`},$t.createElement("div",{className:`${Re}-control-input-content`},ie)),bn=$t.useMemo(()=>({prefixCls:Je,status:cn}),[Je,cn]),xn=Gn!==null||Qe.length||yn.length?$t.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},$t.createElement(Jt.Rk.Provider,{value:bn},$t.createElement(Ie,{fieldId:mn,errors:Qe,warnings:yn,help:le,helpStatus:cn,className:`${Re}-explain-connected`,onVisibleChanged:si})),!!Gn&&$t.createElement("div",{style:{width:0,height:Gn}})):null,On={};mn&&(On.id=`${mn}_extra`);const zn=_n?$t.createElement("div",Object.assign({},On,{className:`${Re}-extra`}),_n):null,yi=Nn&&Nn.mark==="pro_table_render"&&Nn.render?Nn.render(_t,{input:rn,errorList:xn,extra:zn}):$t.createElement($t.Fragment,null,rn,xn,zn);return $t.createElement(Jt.q3.Provider,{value:vn},$t.createElement(ne.Z,Object.assign({},He,{className:je}),yi),$t.createElement(hn,{prefixCls:Je}))},En=Pt(61485),Ln=Pt(31724),ye=Pt(9763),on=Pt(6848),Pn=function(_t,Je){var cn={};for(var ve in _t)Object.prototype.hasOwnProperty.call(_t,ve)&&Je.indexOf(ve)<0&&(cn[ve]=_t[ve]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ve=Object.getOwnPropertySymbols(_t);ie{let{prefixCls:Je,label:cn,htmlFor:ve,labelCol:ie,labelAlign:Qe,colon:yn,required:Nn,requiredMark:_n,tooltip:le}=_t;var mn;const[Gn]=(0,ye.Z)("Form"),{vertical:si,labelAlign:Re,labelCol:fn,labelWrap:He,colon:je}=$t.useContext(Jt.q3);if(!cn)return null;const vn=ie||fn||{},rn=Qe||Re,bn=`${Je}-item-label`,xn=oe()(bn,rn==="left"&&`${bn}-left`,vn.className,{[`${bn}-wrap`]:!!He});let On=cn;const zn=yn===!0||je!==!1&&yn!==!1;zn&&!si&&typeof cn=="string"&&cn.trim()!==""&&(On=cn.replace(/[:|:]\s*$/,""));const Xe=Cn(le);if(Xe){const{icon:nn=$t.createElement(En.Z,null)}=Xe,Vn=Pn(Xe,["icon"]),ze=$t.createElement(on.Z,Object.assign({},Vn),$t.cloneElement(nn,{className:`${Je}-item-tooltip`,title:""}));On=$t.createElement($t.Fragment,null,On,ze)}const Li=_n==="optional",ji=typeof _n=="function";ji?On=_n(On,{required:!!Nn}):Li&&!Nn&&(On=$t.createElement($t.Fragment,null,On,$t.createElement("span",{className:`${Je}-item-optional`,title:""},(Gn==null?void 0:Gn.optional)||((mn=Ln.Z.Form)===null||mn===void 0?void 0:mn.optional))));const Ei=oe()({[`${Je}-item-required`]:Nn,[`${Je}-item-required-mark-optional`]:Li||ji,[`${Je}-item-no-colon`]:!zn});return $t.createElement(ne.Z,Object.assign({},vn,{className:xn}),$t.createElement("label",{htmlFor:ve,className:Ei,title:typeof cn=="string"?cn:""},On))},ui=Pt(29679),ni=Pt(19248),fi=Pt(96512),Bi=Pt(58617);const Ti={success:ui.Z,warning:fi.Z,error:ni.Z,validating:Bi.Z};function Di(_t){let{children:Je,errors:cn,warnings:ve,hasFeedback:ie,validateStatus:Qe,prefixCls:yn,meta:Nn,noStyle:_n}=_t;const le=`${yn}-item`,{feedbackIcons:mn}=$t.useContext(Jt.q3),Gn=ln(cn,ve,Nn,null,!!ie,Qe),{isFormItemInput:si,status:Re}=$t.useContext(Jt.aM),fn=$t.useMemo(()=>{var He;let je;if(ie){const bn=ie!==!0&&ie.icons||mn,xn=Gn&&((He=bn==null?void 0:bn({status:Gn,errors:cn,warnings:ve}))===null||He===void 0?void 0:He[Gn]),On=Gn&&Ti[Gn];je=xn!==!1&&On?$t.createElement("span",{className:oe()(`${le}-feedback-icon`,`${le}-feedback-icon-${Gn}`)},xn||$t.createElement(On,null)):null}let vn=!0,rn=Gn||"";return _n&&(vn=si,rn=(Gn!=null?Gn:Re)||""),{status:rn,errors:cn,warnings:ve,hasFeedback:!!ie,feedbackIcon:je,isFormItemInput:vn}},[Gn,ie,_n,si,Re]);return $t.createElement(Jt.aM.Provider,{value:fn},Je)}var io=function(_t,Je){var cn={};for(var ve in _t)Object.prototype.hasOwnProperty.call(_t,ve)&&Je.indexOf(ve)<0&&(cn[ve]=_t[ve]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ve=Object.getOwnPropertySymbols(_t);ie{if(Xe&&xn.current){const Oe=getComputedStyle(xn.current);Ei(parseInt(Oe.marginBottom,10))}},[Xe,Li]);const nn=Oe=>{Oe||Ei(null)},ze=function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const un=Oe?On:le.errors,kn=Oe?zn:le.warnings;return ln(un,kn,le,"",!!mn,_n)}(),Ge=oe()(rn,cn,ve,{[`${rn}-with-help`]:yi||On.length||zn.length,[`${rn}-has-feedback`]:ze&&mn,[`${rn}-has-success`]:ze==="success",[`${rn}-has-warning`]:ze==="warning",[`${rn}-has-error`]:ze==="error",[`${rn}-is-validating`]:ze==="validating",[`${rn}-hidden`]:Gn});return $t.createElement("div",{className:Ge,style:ie,ref:xn},$t.createElement(ce.Z,Object.assign({className:`${rn}-row`},(0,fe.Z)(vn,["_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"])),$t.createElement(Jn,Object.assign({htmlFor:Re},_t,{requiredMark:bn,required:fn!=null?fn:He,prefixCls:Je})),$t.createElement(_e,Object.assign({},_t,le,{errors:On,warnings:zn,prefixCls:Je,status:ze,help:Qe,marginBottom:ji,onErrorVisibleChanged:nn}),$t.createElement(Jt.qI.Provider,{value:je},$t.createElement(Di,{prefixCls:Je,meta:le,errors:le.errors,warnings:le.warnings,hasFeedback:mn,validateStatus:ze},si)))),!!ji&&$t.createElement("div",{className:`${rn}-margin-offset`,style:{marginBottom:-ji}}))}const Ri="__SPLIT__",Qi=null,Zn=$t.memo(_t=>{let{children:Je}=_t;return Je},(_t,Je)=>_t.value===Je.value&&_t.update===Je.update&&_t.childProps.length===Je.childProps.length&&_t.childProps.every((cn,ve)=>cn===Je.childProps[ve]));function Mt(_t){return _t!=null}function so(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ii(_t){const{name:Je,noStyle:cn,className:ve,dependencies:ie,prefixCls:Qe,shouldUpdate:yn,rules:Nn,children:_n,required:le,label:mn,messageVariables:Gn,trigger:si="onChange",validateTrigger:Re,hidden:fn,help:He}=_t,{getPrefixCls:je}=$t.useContext(Ye.E_),{name:vn}=$t.useContext(Jt.q3),rn=xt(_n),bn=typeof rn=="function",xn=$t.useContext(Jt.qI),{validateTrigger:On}=$t.useContext(Se.FieldContext),zn=Re!==void 0?Re:On,yi=Mt(Je),Xe=je("form",Qe),[Li,ji]=Kt(Xe),Ei=$t.useContext(Se.ListContext),nn=$t.useRef(),[Vn,ze]=ee({}),[Ge,Oe]=(0,$n.Z)(()=>so()),un=tn=>{const Ci=Ei==null?void 0:Ei.getKey(tn.name);if(Oe(tn.destroy?so():tn,!0),cn&&He!==!1&&xn){let Ui=tn.name;if(tn.destroy)Ui=nn.current||Ui;else if(Ci!==void 0){const[$i,Co]=Ci;Ui=[$i].concat((0,vt.Z)(Co)),nn.current=Ui}xn(tn,Ui)}},kn=(tn,Ci)=>{ze(Ui=>{const $i=Object.assign({},Ui),lo=[].concat((0,vt.Z)(tn.name.slice(0,-1)),(0,vt.Z)(Ci)).join(Ri);return tn.destroy?delete $i[lo]:$i[lo]=tn,$i})},[Tn,Rn]=$t.useMemo(()=>{const tn=(0,vt.Z)(Ge.errors),Ci=(0,vt.Z)(Ge.warnings);return Object.values(Vn).forEach(Ui=>{tn.push.apply(tn,(0,vt.Z)(Ui.errors||[])),Ci.push.apply(Ci,(0,vt.Z)(Ui.warnings||[]))}),[tn,Ci]},[Vn,Ge.errors,Ge.warnings]),ei=pe();function qe(tn,Ci,Ui){return cn&&!fn?$t.createElement(Di,{prefixCls:Xe,hasFeedback:_t.hasFeedback,validateStatus:_t.validateStatus,meta:Ge,errors:Tn,warnings:Rn,noStyle:!0},tn):$t.createElement(to,Object.assign({key:"row"},_t,{className:oe()(ve,ji),prefixCls:Xe,fieldId:Ci,isRequired:Ui,errors:Tn,warnings:Rn,meta:Ge,onSubItemMetaChange:kn}),tn)}if(!yi&&!bn&&!ie)return Li(qe(rn));let pi={};return typeof mn=="string"?pi.label=mn:Je&&(pi.label=String(Je)),Gn&&(pi=Object.assign(Object.assign({},pi),Gn)),Li($t.createElement(Se.Field,Object.assign({},_t,{messageVariables:pi,trigger:si,validateTrigger:zn,onMetaChange:un}),(tn,Ci,Ui)=>{const $i=ke(Je).length&&Ci?Ci.name:[],Co=pn($i,vn),lo=le!==void 0?le:!!(Nn&&Nn.some(Yi=>{if(Yi&&typeof Yi=="object"&&Yi.required&&!Yi.warningOnly)return!0;if(typeof Yi=="function"){const oo=Yi(Ui);return oo&&oo.required&&!oo.warningOnly}return!1})),Si=Object.assign({},tn);let ii=null;if(Array.isArray(rn)&&yi)ii=rn;else if(!(bn&&(!(yn||ie)||yi))){if(!(ie&&!bn&&!yi))if((0,jt.l$)(rn)){const Yi=Object.assign(Object.assign({},rn.props),Si);if(Yi.id||(Yi.id=Co),He||Tn.length>0||Rn.length>0||_t.extra){const zt=[];(He||Tn.length>0)&&zt.push(`${Co}_help`),_t.extra&&zt.push(`${Co}_extra`),Yi["aria-describedby"]=zt.join(" ")}Tn.length>0&&(Yi["aria-invalid"]="true"),lo&&(Yi["aria-required"]="true"),(0,Qn.Yr)(rn)&&(Yi.ref=ei($i,rn)),new Set([].concat((0,vt.Z)(ke(si)),(0,vt.Z)(ke(zn)))).forEach(zt=>{Yi[zt]=function(){for(var Ai,vo,ao,Eo,Ho,Zi=arguments.length,xi=new Array(Zi),Fi=0;Fi{var{prefixCls:Je,children:cn}=_t,ve=Bo(_t,["prefixCls","children"]);const{getPrefixCls:ie}=$t.useContext(Ye.E_),Qe=ie("form",Je),yn=$t.useMemo(()=>({prefixCls:Qe,status:"error"}),[Qe]);return $t.createElement(Se.List,Object.assign({},ve),(Nn,_n,le)=>$t.createElement(Jt.Rk.Provider,{value:yn},cn(Nn.map(mn=>Object.assign(Object.assign({},mn),{fieldKey:mn.key})),_n,{errors:le.errors,warnings:le.warnings})))};function di(){const{form:_t}=(0,$t.useContext)(Jt.q3);return _t}const Ae=Ce;Ae.Item=ki,Ae.List=ai,Ae.ErrorList=Ie,Ae.useForm=Ke,Ae.useFormInstance=di,Ae.useWatch=Se.useWatch,Ae.Provider=Jt.RV,Ae.create=()=>{};var Be=Ae},8628:function(Sn,Ve,Pt){"use strict";var vt=Pt(59301),It=Pt(34280),oe=Pt(56762),de=Pt(69507);function $t(){let Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Jt=(0,vt.useRef)({}),De=(0,oe.Z)(),we=(0,de.ZP)();return(0,It.Z)(()=>{const te=we.subscribe(Fe=>{Jt.current=Fe,Ut&&De()});return()=>we.unsubscribe(te)},[]),Jt.current}Ve.Z=$t},9432:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return ft},n:function(){return ht}});var vt=Pt(19248),It=Pt(92310),oe=Pt.n(It),de=Pt(93681),$t=Pt(8654),Ut=Pt(59301),Jt=Pt(19080),De=Pt(36355),we=Pt(1684),te=Pt(19716),Fe=Pt(32441),re=Pt(33234),me=Pt(59412),Ot=Pt(9937);function et(mt){return!!(mt.prefix||mt.suffix||mt.allowClear)}var nt=function(mt,wt){var Et={};for(var Nt in mt)Object.prototype.hasOwnProperty.call(mt,Nt)&&wt.indexOf(Nt)<0&&(Et[Nt]=mt[Nt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Nt=Object.getOwnPropertySymbols(mt);Dt{var Et;const{prefixCls:Nt,bordered:Dt=!0,status:At,size:Kt,disabled:Wt,onBlur:xe,onFocus:Vt,suffix:Ie,allowClear:Se,addonAfter:Ye,addonBefore:Le,className:Pe,style:We,styles:Ue,rootClassName:ue,onChange:Ht,classNames:ke}=mt,pn=nt(mt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ln,direction:Ee,input:Ke}=Ut.useContext(De.E_),gn=ln("input",Nt),Bn=(0,Ut.useRef)(null),[dn,In]=(0,Ot.ZP)(gn),{compactSize:Ce,compactItemClassnames:$n}=(0,re.ri)(gn,Ee),Qn=(0,te.Z)(hn=>{var an;return(an=Kt!=null?Kt:Ce)!==null&&an!==void 0?an:hn}),jt=Ut.useContext(we.Z),Lt=Wt!=null?Wt:jt,{status:xt,hasFeedback:Tt,feedbackIcon:Ft}=(0,Ut.useContext)(Fe.aM),yt=(0,Jt.F)(xt,At),ee=et(mt)||!!Tt,pe=(0,Ut.useRef)(ee);(0,Ut.useEffect)(()=>{var hn;ee&&pe.current,pe.current=ee},[ee]);const qt=(0,me.Z)(Bn,!0),Zt=hn=>{qt(),xe==null||xe(hn)},fe=hn=>{qt(),Vt==null||Vt(hn)},ce=hn=>{qt(),Ht==null||Ht(hn)},ne=(Tt||Ie)&&Ut.createElement(Ut.Fragment,null,Ie,Tt&&Ft);let Ne;return typeof Se=="object"&&(Se!=null&&Se.clearIcon)?Ne=Se:Se&&(Ne={clearIcon:Ut.createElement(vt.Z,null)}),dn(Ut.createElement(de.default,Object.assign({ref:(0,$t.sQ)(wt,Bn),prefixCls:gn,autoComplete:Ke==null?void 0:Ke.autoComplete},pn,{disabled:Lt,onBlur:Zt,onFocus:fe,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),We),styles:Object.assign(Object.assign({},Ke==null?void 0:Ke.styles),Ue),suffix:ne,allowClear:Ne,className:oe()(Pe,ue,$n,Ke==null?void 0:Ke.className),onChange:ce,addonAfter:Ye&&Ut.createElement(re.BR,null,Ut.createElement(Fe.Ux,{override:!0,status:!0},Ye)),addonBefore:Le&&Ut.createElement(re.BR,null,Ut.createElement(Fe.Ux,{override:!0,status:!0},Le)),classNames:Object.assign(Object.assign(Object.assign({},ke),Ke==null?void 0:Ke.classNames),{input:oe()({[`${gn}-sm`]:Qn==="small",[`${gn}-lg`]:Qn==="large",[`${gn}-rtl`]:Ee==="rtl",[`${gn}-borderless`]:!Dt},!ee&&(0,Jt.Z)(gn,yt),ke==null?void 0:ke.input,(Et=Ke==null?void 0:Ke.classNames)===null||Et===void 0?void 0:Et.input,In)}),classes:{affixWrapper:oe()({[`${gn}-affix-wrapper-sm`]:Qn==="small",[`${gn}-affix-wrapper-lg`]:Qn==="large",[`${gn}-affix-wrapper-rtl`]:Ee==="rtl",[`${gn}-affix-wrapper-borderless`]:!Dt},(0,Jt.Z)(`${gn}-affix-wrapper`,yt,Tt),In),wrapper:oe()({[`${gn}-group-rtl`]:Ee==="rtl"},In),group:oe()({[`${gn}-group-wrapper-sm`]:Qn==="small",[`${gn}-group-wrapper-lg`]:Qn==="large",[`${gn}-group-wrapper-rtl`]:Ee==="rtl",[`${gn}-group-wrapper-disabled`]:Lt},(0,Jt.Z)(`${gn}-group-wrapper`,yt,Tt),In)}})))})},1643:function(Sn,Ve,Pt){"use strict";var vt=Pt(19248),It=Pt(92310),oe=Pt.n(It),de=Pt(9296),$t=Pt(59301),Ut=Pt(19080),Jt=Pt(36355),De=Pt(1684),we=Pt(19716),te=Pt(32441),Fe=Pt(9432),re=Pt(9937),me=function(et,nt){var ht={};for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&nt.indexOf(at)<0&&(ht[at]=et[at]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,at=Object.getOwnPropertySymbols(et);ft{const{prefixCls:ht,bordered:at=!0,size:ft,disabled:mt,status:wt,allowClear:Et,showCount:Nt,classNames:Dt,rootClassName:At,className:Kt}=et,Wt=me(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:xe,direction:Vt}=$t.useContext(Jt.E_),Ie=(0,we.Z)(ft),Se=$t.useContext(De.Z),Ye=mt!=null?mt:Se,{status:Le,hasFeedback:Pe,feedbackIcon:We}=$t.useContext(te.aM),Ue=(0,Ut.F)(Le,wt),ue=$t.useRef(null);$t.useImperativeHandle(nt,()=>{var Ee;return{resizableTextArea:(Ee=ue.current)===null||Ee===void 0?void 0:Ee.resizableTextArea,focus:Ke=>{var gn,Bn;(0,Fe.n)((Bn=(gn=ue.current)===null||gn===void 0?void 0:gn.resizableTextArea)===null||Bn===void 0?void 0:Bn.textArea,Ke)},blur:()=>{var Ke;return(Ke=ue.current)===null||Ke===void 0?void 0:Ke.blur()}}});const Ht=xe("input",ht);let ke;typeof Et=="object"&&(Et!=null&&Et.clearIcon)?ke=Et:Et&&(ke={clearIcon:$t.createElement(vt.Z,null)});const[pn,ln]=(0,re.ZP)(Ht);return pn($t.createElement(de.default,Object.assign({},Wt,{disabled:Ye,allowClear:ke,className:oe()(Kt,At),classes:{affixWrapper:oe()(`${Ht}-textarea-affix-wrapper`,{[`${Ht}-affix-wrapper-rtl`]:Vt==="rtl",[`${Ht}-affix-wrapper-borderless`]:!at,[`${Ht}-affix-wrapper-sm`]:Ie==="small",[`${Ht}-affix-wrapper-lg`]:Ie==="large",[`${Ht}-textarea-show-count`]:Nt},(0,Ut.Z)(`${Ht}-affix-wrapper`,Ue),ln)},classNames:Object.assign(Object.assign({},Dt),{textarea:oe()({[`${Ht}-borderless`]:!at,[`${Ht}-sm`]:Ie==="small",[`${Ht}-lg`]:Ie==="large"},(0,Ut.Z)(Ht,Ue),ln,Dt==null?void 0:Dt.textarea)}),prefixCls:Ht,suffix:Pe&&$t.createElement("span",{className:`${Ht}-textarea-suffix`},We),showCount:Nt,ref:ue})))});Ve.Z=Ot},59412:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return It}});var vt=Pt(59301);function It(oe,de){const $t=(0,vt.useRef)([]),Ut=()=>{$t.current.push(setTimeout(()=>{var Jt,De,we,te;!((Jt=oe.current)===null||Jt===void 0)&&Jt.input&&((De=oe.current)===null||De===void 0?void 0:De.input.getAttribute("type"))==="password"&&(!((we=oe.current)===null||we===void 0)&&we.input.hasAttribute("value"))&&((te=oe.current)===null||te===void 0||te.input.removeAttribute("value"))}))};return(0,vt.useEffect)(()=>(de&&Ut(),()=>$t.current.forEach(Jt=>{Jt&&clearTimeout(Jt)})),[]),Ut}},92832:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return Ie}});var vt=Pt(92310),It=Pt.n(vt),oe=Pt(59301),de=Pt(36355),$t=Pt(32441),Ut=Pt(9937),De=Se=>{const{getPrefixCls:Ye,direction:Le}=(0,oe.useContext)(de.E_),{prefixCls:Pe,className:We}=Se,Ue=Ye("input-group",Pe),ue=Ye("input"),[Ht,ke]=(0,Ut.ZP)(ue),pn=It()(Ue,{[`${Ue}-lg`]:Se.size==="large",[`${Ue}-sm`]:Se.size==="small",[`${Ue}-compact`]:Se.compact,[`${Ue}-rtl`]:Le==="rtl"},ke,We),ln=(0,oe.useContext)($t.aM),Ee=(0,oe.useMemo)(()=>Object.assign(Object.assign({},ln),{isFormItemInput:!1}),[ln]);return Ht(oe.createElement("span",{className:pn,style:Se.style,onMouseEnter:Se.onMouseEnter,onMouseLeave:Se.onMouseLeave,onFocus:Se.onFocus,onBlur:Se.onBlur},oe.createElement($t.aM.Provider,{value:Ee},Se.children)))},we=Pt(9432),te=Pt(73331),Fe=Pt(15277),re=Pt(2738),me=Pt(8654),Ot=Pt(59412),et=function(Se,Ye){var Le={};for(var Pe in Se)Object.prototype.hasOwnProperty.call(Se,Pe)&&Ye.indexOf(Pe)<0&&(Le[Pe]=Se[Pe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Pe=Object.getOwnPropertySymbols(Se);WeSe?oe.createElement(Fe.Z,null):oe.createElement(te.Z,null),ht={click:"onClick",hover:"onMouseOver"};var ft=oe.forwardRef((Se,Ye)=>{const{visibilityToggle:Le=!0}=Se,Pe=typeof Le=="object"&&Le.visible!==void 0,[We,Ue]=(0,oe.useState)(()=>Pe?Le.visible:!1),ue=(0,oe.useRef)(null);oe.useEffect(()=>{Pe&&Ue(Le.visible)},[Pe,Le]);const Ht=(0,Ot.Z)(ue),ke=()=>{const{disabled:Lt}=Se;Lt||(We&&Ht(),Ue(xt=>{var Tt;const Ft=!xt;return typeof Le=="object"&&((Tt=Le.onVisibleChange)===null||Tt===void 0||Tt.call(Le,Ft)),Ft}))},pn=Lt=>{const{action:xt="click",iconRender:Tt=nt}=Se,Ft=ht[xt]||"",yt=Tt(We),ee={[Ft]:ke,className:`${Lt}-icon`,key:"passwordIcon",onMouseDown:pe=>{pe.preventDefault()},onMouseUp:pe=>{pe.preventDefault()}};return oe.cloneElement(oe.isValidElement(yt)?yt:oe.createElement("span",null,yt),ee)},{className:ln,prefixCls:Ee,inputPrefixCls:Ke,size:gn}=Se,Bn=et(Se,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:dn}=oe.useContext(de.E_),In=dn("input",Ke),Ce=dn("input-password",Ee),$n=Le&&pn(Ce),Qn=It()(Ce,ln,{[`${Ce}-${gn}`]:!!gn}),jt=Object.assign(Object.assign({},(0,re.Z)(Bn,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:Qn,prefixCls:In,suffix:$n});return gn&&(jt.size=gn),oe.createElement(we.Z,Object.assign({ref:(0,me.sQ)(Ye,ue)},jt))}),mt=Pt(47472),wt=Pt(92343),Et=Pt(3113),Nt=Pt(19716),Dt=Pt(33234),At=function(Se,Ye){var Le={};for(var Pe in Se)Object.prototype.hasOwnProperty.call(Se,Pe)&&Ye.indexOf(Pe)<0&&(Le[Pe]=Se[Pe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Pe=Object.getOwnPropertySymbols(Se);We{const{prefixCls:Le,inputPrefixCls:Pe,className:We,size:Ue,suffix:ue,enterButton:Ht=!1,addonAfter:ke,loading:pn,disabled:ln,onSearch:Ee,onChange:Ke,onCompositionStart:gn,onCompositionEnd:Bn}=Se,dn=At(Se,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:In,direction:Ce}=oe.useContext(de.E_),$n=oe.useRef(!1),Qn=In("input-search",Le),jt=In("input",Pe),{compactSize:Lt}=(0,Dt.ri)(Qn,Ce),xt=(0,Nt.Z)(_e=>{var En;return(En=Ue!=null?Ue:Lt)!==null&&En!==void 0?En:_e}),Tt=oe.useRef(null),Ft=_e=>{_e&&_e.target&&_e.type==="click"&&Ee&&Ee(_e.target.value,_e,{source:"clear"}),Ke&&Ke(_e)},yt=_e=>{var En;document.activeElement===((En=Tt.current)===null||En===void 0?void 0:En.input)&&_e.preventDefault()},ee=_e=>{var En,Ln;Ee&&Ee((Ln=(En=Tt.current)===null||En===void 0?void 0:En.input)===null||Ln===void 0?void 0:Ln.value,_e,{source:"input"})},pe=_e=>{$n.current||pn||ee(_e)},qt=typeof Ht=="boolean"?oe.createElement(mt.Z,null):null,Zt=`${Qn}-button`;let fe;const ce=Ht||{},ne=ce.type&&ce.type.__ANT_BUTTON===!0;ne||ce.type==="button"?fe=(0,wt.Tm)(ce,Object.assign({onMouseDown:yt,onClick:_e=>{var En,Ln;(Ln=(En=ce==null?void 0:ce.props)===null||En===void 0?void 0:En.onClick)===null||Ln===void 0||Ln.call(En,_e),ee(_e)},key:"enterButton"},ne?{className:Zt,size:xt}:{})):fe=oe.createElement(Et.ZP,{className:Zt,type:Ht?"primary":void 0,size:xt,disabled:ln,key:"enterButton",onMouseDown:yt,onClick:ee,loading:pn,icon:qt},Ht),ke&&(fe=[fe,(0,wt.Tm)(ke,{key:"addonAfter"})]);const Ne=It()(Qn,{[`${Qn}-rtl`]:Ce==="rtl",[`${Qn}-${xt}`]:!!xt,[`${Qn}-with-button`]:!!Ht},We),hn=_e=>{$n.current=!0,gn==null||gn(_e)},an=_e=>{$n.current=!1,Bn==null||Bn(_e)};return oe.createElement(we.Z,Object.assign({ref:(0,me.sQ)(Tt,Ye),onPressEnter:pe},dn,{size:xt,onCompositionStart:hn,onCompositionEnd:an,prefixCls:jt,addonAfter:fe,suffix:ue,onChange:Ft,className:Ne,disabled:ln}))}),xe=Pt(1643);const Vt=we.Z;Vt.Group=De,Vt.Search=Wt,Vt.TextArea=xe.Z,Vt.Password=ft;var Ie=Vt},45818:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{D:function(){return mt},Z:function(){return Nt}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(At,Kt){return It.createElement($t.Z,(0,vt.Z)({},At,{ref:Kt,icon:de}))},Jt=It.forwardRef(Ut),De=Jt,we=Pt(33853),te=Pt(38819),Fe=Pt(92310),re=Pt.n(Fe),me=Pt(2738),et=Dt=>!isNaN(parseFloat(Dt))&&isFinite(Dt),nt=Pt(36355),ht=Pt(84966),at=function(Dt,At){var Kt={};for(var Wt in Dt)Object.prototype.hasOwnProperty.call(Dt,Wt)&&At.indexOf(Wt)<0&&(Kt[Wt]=Dt[Wt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Wt=Object.getOwnPropertySymbols(Dt);xe{let Dt=0;return function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Dt+=1,`${At}${Dt}`}})();var Nt=It.forwardRef((Dt,At)=>{const{prefixCls:Kt,className:Wt,trigger:xe,children:Vt,defaultCollapsed:Ie=!1,theme:Se="dark",style:Ye={},collapsible:Le=!1,reverseArrow:Pe=!1,width:We=200,collapsedWidth:Ue=80,zeroWidthTriggerStyle:ue,breakpoint:Ht,onCollapse:ke,onBreakpoint:pn}=Dt,ln=at(Dt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,It.useContext)(ht.Gs),[Ke,gn]=(0,It.useState)("collapsed"in Dt?Dt.collapsed:Ie),[Bn,dn]=(0,It.useState)(!1);(0,It.useEffect)(()=>{"collapsed"in Dt&&gn(Dt.collapsed)},[Dt.collapsed]);const In=(xt,Tt)=>{"collapsed"in Dt||gn(xt),ke==null||ke(xt,Tt)},Ce=(0,It.useRef)();Ce.current=xt=>{dn(xt.matches),pn==null||pn(xt.matches),Ke!==xt.matches&&In(xt.matches,"responsive")},(0,It.useEffect)(()=>{function xt(Ft){return Ce.current(Ft)}let Tt;if(typeof window!="undefined"){const{matchMedia:Ft}=window;if(Ft&&Ht&&Ht in ft){Tt=Ft(`(max-width: ${ft[Ht]})`);try{Tt.addEventListener("change",xt)}catch(yt){Tt.addListener(xt)}xt(Tt)}}return()=>{try{Tt==null||Tt.removeEventListener("change",xt)}catch(Ft){Tt==null||Tt.removeListener(xt)}}},[Ht]),(0,It.useEffect)(()=>{const xt=wt("ant-sider-");return Ee.addSider(xt),()=>Ee.removeSider(xt)},[]);const $n=()=>{In(!Ke,"clickTrigger")},{getPrefixCls:Qn}=(0,It.useContext)(nt.E_),jt=()=>{const xt=Qn("layout-sider",Kt),Tt=(0,me.Z)(ln,["collapsed"]),Ft=Ke?Ue:We,yt=et(Ft)?`${Ft}px`:String(Ft),ee=parseFloat(String(Ue||0))===0?It.createElement("span",{onClick:$n,className:re()(`${xt}-zero-width-trigger`,`${xt}-zero-width-trigger-${Pe?"right":"left"}`),style:ue},xe||It.createElement(De,null)):null,Zt={expanded:Pe?It.createElement(te.Z,null):It.createElement(we.Z,null),collapsed:Pe?It.createElement(we.Z,null):It.createElement(te.Z,null)}[Ke?"collapsed":"expanded"],fe=xe!==null?ee||It.createElement("div",{className:`${xt}-trigger`,onClick:$n,style:{width:yt}},xe||Zt):null,ce=Object.assign(Object.assign({},Ye),{flex:`0 0 ${yt}`,maxWidth:yt,minWidth:yt,width:yt}),ne=re()(xt,`${xt}-${Se}`,{[`${xt}-collapsed`]:!!Ke,[`${xt}-has-trigger`]:Le&&xe!==null&&!ee,[`${xt}-below`]:!!Bn,[`${xt}-zero-width`]:parseFloat(yt)===0},Wt);return It.createElement("aside",Object.assign({className:ne},Tt,{style:ce,ref:At}),It.createElement("div",{className:`${xt}-children`},Vt),Le||Bn&&ee?fe:null)},Lt=It.useMemo(()=>({siderCollapsed:Ke}),[Ke]);return It.createElement(mt.Provider,{value:Lt},jt())})},84966:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{VY:function(){return mt},$_:function(){return ft},h4:function(){return at},Gs:function(){return me},ZP:function(){return wt}});var vt=Pt(19127),It=Pt(92310),oe=Pt.n(It),de=Pt(2738),$t=Pt(59301),Ut=Pt(36355),Jt=Pt(83116),we=Et=>{const{componentCls:Nt,bodyBg:Dt,lightSiderBg:At,lightTriggerBg:Kt,lightTriggerColor:Wt}=Et;return{[`${Nt}-sider-light`]:{background:At,[`${Nt}-sider-trigger`]:{color:Wt,background:Kt},[`${Nt}-sider-zero-width-trigger`]:{color:Wt,background:Kt,border:`1px solid ${Dt}`,borderInlineStart:0}}}};const te=Et=>{const{antCls:Nt,componentCls:Dt,colorText:At,triggerColor:Kt,footerBg:Wt,triggerBg:xe,headerHeight:Vt,headerPadding:Ie,headerColor:Se,footerPadding:Ye,triggerHeight:Le,zeroTriggerHeight:Pe,zeroTriggerWidth:We,motionDurationMid:Ue,motionDurationSlow:ue,fontSize:Ht,borderRadius:ke,bodyBg:pn,headerBg:ln,siderBg:Ee}=Et;return{[Dt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:pn,"&, *":{boxSizing:"border-box"},[`&${Dt}-has-sider`]:{flexDirection:"row",[`> ${Dt}, > ${Dt}-content`]:{width:0}},[`${Dt}-header, &${Dt}-footer`]:{flex:"0 0 auto"},[`${Dt}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Ue}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Nt}-menu${Nt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Kt,lineHeight:`${Le}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${Ue}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Vt,insetInlineEnd:-We,zIndex:1,width:We,height:Pe,color:Kt,fontSize:Et.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:ke,borderEndEndRadius:ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ke}}}}},we(Et)),{"&-rtl":{direction:"rtl"}}),[`${Dt}-header`]:{height:Vt,padding:Ie,color:Se,lineHeight:`${Vt}px`,background:ln,[`${Nt}-menu`]:{lineHeight:"inherit"}},[`${Dt}-footer`]:{padding:Ye,color:At,fontSize:Ht,background:Wt},[`${Dt}-content`]:{flex:"auto",minHeight:0}}};var Fe=(0,Jt.Z)("Layout",Et=>[te(Et)],Et=>{const{colorBgLayout:Nt,controlHeight:Dt,controlHeightLG:At,colorText:Kt,controlHeightSM:Wt,marginXXS:xe,colorTextLightSolid:Vt,colorBgContainer:Ie}=Et,Se=At*1.25;return{colorBgHeader:"#001529",colorBgBody:Nt,colorBgTrigger:"#002140",bodyBg:Nt,headerBg:"#001529",headerHeight:Dt*2,headerPadding:`0 ${Se}px`,headerColor:Kt,footerPadding:`${Wt}px ${Se}px`,footerBg:Nt,siderBg:"#001529",triggerHeight:At+xe*2,triggerBg:"#002140",triggerColor:Vt,zeroTriggerWidth:At,zeroTriggerHeight:At,lightSiderBg:Ie,lightTriggerBg:Ie,lightTriggerColor:Kt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),re=function(Et,Nt){var Dt={};for(var At in Et)Object.prototype.hasOwnProperty.call(Et,At)&&Nt.indexOf(At)<0&&(Dt[At]=Et[At]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,At=Object.getOwnPropertySymbols(Et);Ktnull,removeSider:()=>null}});function Ot(Et){let{suffixCls:Nt,tagName:Dt,displayName:At}=Et;return Kt=>$t.forwardRef((xe,Vt)=>$t.createElement(Kt,Object.assign({ref:Vt,suffixCls:Nt,tagName:Dt},xe)))}const et=$t.forwardRef((Et,Nt)=>{const{prefixCls:Dt,suffixCls:At,className:Kt,tagName:Wt}=Et,xe=re(Et,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Vt}=$t.useContext(Ut.E_),Ie=Vt("layout",Dt),[Se,Ye]=Fe(Ie),Le=At?`${Ie}-${At}`:Ie;return Se($t.createElement(Wt,Object.assign({className:oe()(Dt||Le,Kt,Ye),ref:Nt},xe)))}),nt=$t.forwardRef((Et,Nt)=>{const{direction:Dt}=$t.useContext(Ut.E_),[At,Kt]=$t.useState([]),{prefixCls:Wt,className:xe,rootClassName:Vt,children:Ie,hasSider:Se,tagName:Ye,style:Le}=Et,Pe=re(Et,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,de.Z)(Pe,["suffixCls"]),{getPrefixCls:Ue,layout:ue}=$t.useContext(Ut.E_),Ht=Ue("layout",Wt),[ke,pn]=Fe(Ht),ln=oe()(Ht,{[`${Ht}-has-sider`]:typeof Se=="boolean"?Se:At.length>0,[`${Ht}-rtl`]:Dt==="rtl"},ue==null?void 0:ue.className,xe,Vt,pn),Ee=$t.useMemo(()=>({siderHook:{addSider:Ke=>{Kt(gn=>[].concat((0,vt.Z)(gn),[Ke]))},removeSider:Ke=>{Kt(gn=>gn.filter(Bn=>Bn!==Ke))}}}),[]);return ke($t.createElement(me.Provider,{value:Ee},$t.createElement(Ye,Object.assign({ref:Nt,className:ln,style:Object.assign(Object.assign({},ue==null?void 0:ue.style),Le)},We),Ie)))}),ht=Ot({tagName:"div",displayName:"Layout"})(nt),at=Ot({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ft=Ot({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),mt=Ot({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var wt=ht},73755:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Ye}});var vt=Pt(19127),It=Pt(92310),oe=Pt.n(It),de=Pt(59301),$t=Pt(50371),Ut=Pt(69507),Jt=Pt(36355),De=Pt(93891),we=Pt(27382),te=Pt(8628),Fe=Pt(58421),re=Pt(71418),me=Pt(92343),Ot=Pt(37028);const et=de.createContext({}),nt=et.Consumer;var ht=function(Le,Pe){var We={};for(var Ue in Le)Object.prototype.hasOwnProperty.call(Le,Ue)&&Pe.indexOf(Ue)<0&&(We[Ue]=Le[Ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ue=Object.getOwnPropertySymbols(Le);ue{var{prefixCls:Pe,className:We,avatar:Ue,title:ue,description:Ht}=Le,ke=ht(Le,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:pn}=(0,de.useContext)(Jt.E_),ln=pn("list",Pe),Ee=oe()(`${ln}-item-meta`,We),Ke=de.createElement("div",{className:`${ln}-item-meta-content`},ue&&de.createElement("h4",{className:`${ln}-item-meta-title`},ue),Ht&&de.createElement("div",{className:`${ln}-item-meta-description`},Ht));return de.createElement("div",Object.assign({},ke,{className:Ee}),Ue&&de.createElement("div",{className:`${ln}-item-meta-avatar`},Ue),(ue||Ht)&&Ke)},ft=(Le,Pe)=>{var{prefixCls:We,children:Ue,actions:ue,extra:Ht,className:ke,colStyle:pn}=Le,ln=ht(Le,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:Ee,itemLayout:Ke}=(0,de.useContext)(et),{getPrefixCls:gn}=(0,de.useContext)(Jt.E_),Bn=()=>{let jt;return de.Children.forEach(Ue,Lt=>{typeof Lt=="string"&&(jt=!0)}),jt&&de.Children.count(Ue)>1},dn=()=>Ke==="vertical"?!!Ht:!Bn(),In=gn("list",We),Ce=ue&&ue.length>0&&de.createElement("ul",{className:`${In}-item-action`,key:"actions"},ue.map((jt,Lt)=>de.createElement("li",{key:`${In}-item-action-${Lt}`},jt,Lt!==ue.length-1&&de.createElement("em",{className:`${In}-item-action-split`})))),$n=Ee?"div":"li",Qn=de.createElement($n,Object.assign({},ln,Ee?{}:{ref:Pe},{className:oe()(`${In}-item`,{[`${In}-item-no-flex`]:!dn()},ke)}),Ke==="vertical"&&Ht?[de.createElement("div",{className:`${In}-item-main`,key:"content"},Ue,Ce),de.createElement("div",{className:`${In}-item-extra`,key:"extra"},Ht)]:[Ue,Ce,(0,me.Tm)(Ht,{key:"extra"})]);return Ee?de.createElement(Ot.Z,{ref:Pe,flex:1,style:pn},Qn):Qn},mt=(0,de.forwardRef)(ft);mt.Meta=at;var wt=mt,Et=Pt(17313),Nt=Pt(83116),Dt=Pt(37613);const At=Le=>{const{listBorderedCls:Pe,componentCls:We,paddingLG:Ue,margin:ue,itemPaddingSM:Ht,itemPaddingLG:ke,marginLG:pn,borderRadiusLG:ln}=Le;return{[`${Pe}`]:{border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:ln,[`${We}-header,${We}-footer,${We}-item`]:{paddingInline:Ue},[`${We}-pagination`]:{margin:`${ue}px ${pn}px`}},[`${Pe}${We}-sm`]:{[`${We}-item,${We}-header,${We}-footer`]:{padding:Ht}},[`${Pe}${We}-lg`]:{[`${We}-item,${We}-header,${We}-footer`]:{padding:ke}}}},Kt=Le=>{const{componentCls:Pe,screenSM:We,screenMD:Ue,marginLG:ue,marginSM:Ht,margin:ke}=Le;return{[`@media screen and (max-width:${Ue})`]:{[`${Pe}`]:{[`${Pe}-item`]:{[`${Pe}-item-action`]:{marginInlineStart:ue}}},[`${Pe}-vertical`]:{[`${Pe}-item`]:{[`${Pe}-item-extra`]:{marginInlineStart:ue}}}},[`@media screen and (max-width: ${We})`]:{[`${Pe}`]:{[`${Pe}-item`]:{flexWrap:"wrap",[`${Pe}-action`]:{marginInlineStart:Ht}}},[`${Pe}-vertical`]:{[`${Pe}-item`]:{flexWrap:"wrap-reverse",[`${Pe}-item-main`]:{minWidth:Le.contentWidth},[`${Pe}-item-extra`]:{margin:`auto auto ${ke}px`}}}}}},Wt=Le=>{const{componentCls:Pe,antCls:We,controlHeight:Ue,minHeight:ue,paddingSM:Ht,marginLG:ke,padding:pn,itemPadding:ln,colorPrimary:Ee,itemPaddingSM:Ke,itemPaddingLG:gn,paddingXS:Bn,margin:dn,colorText:In,colorTextDescription:Ce,motionDurationSlow:$n,lineWidth:Qn,headerBg:jt,footerBg:Lt,emptyTextPadding:xt,metaMarginBottom:Tt,avatarMarginRight:Ft,titleMarginBottom:yt,descriptionFontSize:ee}=Le,pe={};return["start","center","end"].forEach(qt=>{pe[`&-align-${qt}`]={textAlign:qt}}),{[`${Pe}`]:Object.assign(Object.assign({},(0,Et.Wf)(Le)),{position:"relative","*":{outline:"none"},[`${Pe}-header`]:{background:jt},[`${Pe}-footer`]:{background:Lt},[`${Pe}-header, ${Pe}-footer`]:{paddingBlock:Ht},[`${Pe}-pagination`]:Object.assign(Object.assign({marginBlockStart:ke},pe),{[`${We}-pagination-options`]:{textAlign:"start"}}),[`${Pe}-spin`]:{minHeight:ue,textAlign:"center"},[`${Pe}-items`]:{margin:0,padding:0,listStyle:"none"},[`${Pe}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:ln,color:In,[`${Pe}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${Pe}-item-meta-avatar`]:{marginInlineEnd:Ft},[`${Pe}-item-meta-content`]:{flex:"1 0",width:0,color:In},[`${Pe}-item-meta-title`]:{margin:`0 0 ${Le.marginXXS}px 0`,color:In,fontSize:Le.fontSize,lineHeight:Le.lineHeight,"> a":{color:In,transition:`all ${$n}`,"&:hover":{color:Ee}}},[`${Pe}-item-meta-description`]:{color:Ce,fontSize:ee,lineHeight:Le.lineHeight}},[`${Pe}-item-action`]:{flex:"0 0 auto",marginInlineStart:Le.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Bn}px`,color:Ce,fontSize:Le.fontSize,lineHeight:Le.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${Pe}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:Qn,height:Math.ceil(Le.fontSize*Le.lineHeight)-Le.marginXXS*2,transform:"translateY(-50%)",backgroundColor:Le.colorSplit}}},[`${Pe}-empty`]:{padding:`${pn}px 0`,color:Ce,fontSize:Le.fontSizeSM,textAlign:"center"},[`${Pe}-empty-text`]:{padding:xt,color:Le.colorTextDisabled,fontSize:Le.fontSize,textAlign:"center"},[`${Pe}-item-no-flex`]:{display:"block"}}),[`${Pe}-grid ${We}-col > ${Pe}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:dn,paddingBlock:0,borderBlockEnd:"none"},[`${Pe}-vertical ${Pe}-item`]:{alignItems:"initial",[`${Pe}-item-main`]:{display:"block",flex:1},[`${Pe}-item-extra`]:{marginInlineStart:ke},[`${Pe}-item-meta`]:{marginBlockEnd:Tt,[`${Pe}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:yt,color:In,fontSize:Le.fontSizeLG,lineHeight:Le.lineHeightLG}},[`${Pe}-item-action`]:{marginBlockStart:pn,marginInlineStart:"auto","> li":{padding:`0 ${pn}px`,"&:first-child":{paddingInlineStart:0}}}},[`${Pe}-split ${Pe}-item`]:{borderBlockEnd:`${Le.lineWidth}px ${Le.lineType} ${Le.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${Pe}-split ${Pe}-header`]:{borderBlockEnd:`${Le.lineWidth}px ${Le.lineType} ${Le.colorSplit}`},[`${Pe}-split${Pe}-empty ${Pe}-footer`]:{borderTop:`${Le.lineWidth}px ${Le.lineType} ${Le.colorSplit}`},[`${Pe}-loading ${Pe}-spin-nested-loading`]:{minHeight:Ue},[`${Pe}-split${Pe}-something-after-last-item ${We}-spin-container > ${Pe}-items > ${Pe}-item:last-child`]:{borderBlockEnd:`${Le.lineWidth}px ${Le.lineType} ${Le.colorSplit}`},[`${Pe}-lg ${Pe}-item`]:{padding:gn},[`${Pe}-sm ${Pe}-item`]:{padding:Ke},[`${Pe}:not(${Pe}-vertical)`]:{[`${Pe}-item-no-flex`]:{[`${Pe}-item-action`]:{float:"right"}}}}};var xe=(0,Nt.Z)("List",Le=>{const Pe=(0,Dt.TS)(Le,{listBorderedCls:`${Le.componentCls}-bordered`,minHeight:Le.controlHeightLG});return[Wt(Pe),At(Pe),Kt(Pe)]},Le=>({contentWidth:220,itemPadding:`${Le.paddingContentVertical}px 0`,itemPaddingSM:`${Le.paddingContentVerticalSM}px ${Le.paddingContentHorizontal}px`,itemPaddingLG:`${Le.paddingContentVerticalLG}px ${Le.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:Le.padding,metaMarginBottom:Le.padding,avatarMarginRight:Le.padding,titleMarginBottom:Le.paddingSM,descriptionFontSize:Le.fontSize})),Vt=Pt(19716),Ie=function(Le,Pe){var We={};for(var Ue in Le)Object.prototype.hasOwnProperty.call(Le,Ue)&&Pe.indexOf(Ue)<0&&(We[Ue]=Le[Ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ue=Object.getOwnPropertySymbols(Le);ue(Wi,ki)=>{var Bo;ee(Wi),qt(ki),We&&We[Ii]&&((Bo=We==null?void 0:We[Ii])===null||Bo===void 0||Bo.call(We,Wi,ki))},an=hn("onChange"),_e=hn("onShowSizeChange"),En=(Ii,Wi)=>{if(!Lt)return null;let ki;return typeof jt=="function"?ki=jt(Ii):jt?ki=Ii[jt]:ki=Ii.key,ki||(ki=`list-item-${Wi}`),de.createElement(de.Fragment,{key:ki},Lt(Ii,Wi))},Ln=()=>!!(gn||We||$n),ye=Zt("list",Ue),[on,Pn]=xe(ye);let Cn=Qn;typeof Cn=="boolean"&&(Cn={spinning:Cn});const An=Cn&&Cn.spinning,Jn=(0,Vt.Z)(In);let ui="";switch(Jn){case"large":ui="lg";break;case"small":ui="sm";break;default:break}const ni=oe()(ye,{[`${ye}-vertical`]:Ke==="vertical",[`${ye}-${ui}`]:ui,[`${ye}-split`]:Ht,[`${ye}-bordered`]:ue,[`${ye}-loading`]:An,[`${ye}-grid`]:!!Bn,[`${ye}-something-after-last-item`]:Ln(),[`${ye}-rtl`]:ce==="rtl"},ne==null?void 0:ne.className,ke,pn,Pn),fi=(0,$t.Z)(Ne,{total:dn.length,current:yt,pageSize:pe},We||{}),Bi=Math.ceil(fi.total/fi.pageSize);fi.current>Bi&&(fi.current=Bi);const Ti=We?de.createElement("div",{className:oe()(`${ye}-pagination`,`${ye}-pagination-align-${(Pe=fi==null?void 0:fi.align)!==null&&Pe!==void 0?Pe:"end"}`)},de.createElement(Fe.Z,Object.assign({},fi,{onChange:an,onShowSizeChange:_e}))):null;let Di=(0,vt.Z)(dn);We&&dn.length>(fi.current-1)*fi.pageSize&&(Di=(0,vt.Z)(dn).splice((fi.current-1)*fi.pageSize,fi.pageSize));const io=Object.keys(Bn||{}).some(Ii=>["xs","sm","md","lg","xl","xxl"].includes(Ii)),to=(0,te.Z)(io),Ri=de.useMemo(()=>{for(let Ii=0;Ii{if(!Bn)return;const Ii=Ri&&Bn[Ri]?Bn[Ri]:Bn.column;if(Ii)return{width:`${100/Ii}%`,maxWidth:`${100/Ii}%`}},[Bn==null?void 0:Bn.column,Ri]);let Zn=An&&de.createElement("div",{style:{minHeight:53}});if(Di.length>0){const Ii=Di.map((Wi,ki)=>En(Wi,ki));Zn=Bn?de.createElement(we.Z,{gutter:Bn.gutter},de.Children.map(Ii,Wi=>de.createElement("div",{key:Wi==null?void 0:Wi.key,style:Qi},Wi))):de.createElement("ul",{className:`${ye}-items`},Ii)}else!Ee&&!An&&(Zn=de.createElement("div",{className:`${ye}-empty-text`},xt&&xt.emptyText||(fe==null?void 0:fe("List"))||de.createElement(De.Z,{componentName:"List"})));const Mt=fi.position||"bottom",so=de.useMemo(()=>({grid:Bn,itemLayout:Ke}),[JSON.stringify(Bn),Ke]);return on(de.createElement(et.Provider,{value:so},de.createElement("div",Object.assign({style:Object.assign(Object.assign({},ne==null?void 0:ne.style),ln),className:ni},Tt),(Mt==="top"||Mt==="both")&&Ti,Ce&&de.createElement("div",{className:`${ye}-header`},Ce),de.createElement(re.Z,Object.assign({},Cn),Zn,Ee),$n&&de.createElement("div",{className:`${ye}-footer`},$n),gn||(Mt==="bottom"||Mt==="both")&&Ti)))}Se.Item=wt;var Ye=Se},40875:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{J:function(){return Ut}});var vt=Pt(59301),It=Pt(33234),oe=Pt(70425),de=function(Jt,De){var we={};for(var te in Jt)Object.prototype.hasOwnProperty.call(Jt,te)&&De.indexOf(te)<0&&(we[te]=Jt[te]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,te=Object.getOwnPropertySymbols(Jt);Fe{const{children:we}=Jt,te=de(Jt,["children"]),Fe=vt.useContext($t),re=vt.useMemo(()=>Object.assign(Object.assign({},Fe),te),[Fe,te.prefixCls,te.mode,te.selectable]);return vt.createElement($t.Provider,{value:re},vt.createElement(It.BR,null,(0,oe.supportNodeRef)(we)?vt.cloneElement(we,{ref:De}):we))});Ve.Z=$t},20834:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return Lt}});var vt=Pt(15285),It=Pt(59301),oe=Pt(45818),de=Pt(92310),$t=Pt.n(de),Ut=Pt(36355),Jt=function(xt,Tt){var Ft={};for(var yt in xt)Object.prototype.hasOwnProperty.call(xt,yt)&&Tt.indexOf(yt)<0&&(Ft[yt]=xt[yt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,yt=Object.getOwnPropertySymbols(xt);ee{const{prefixCls:Tt,className:Ft,dashed:yt}=xt,ee=Jt(xt,["prefixCls","className","dashed"]),{getPrefixCls:pe}=It.useContext(Ut.E_),qt=pe("menu",Tt),Zt=$t()({[`${qt}-item-divider-dashed`]:!!yt},Ft);return It.createElement(vt.iz,Object.assign({className:Zt},ee))},te=Pt(11592),Fe=Pt(2738),re=Pt(6848),me=Pt(92343),et=(0,It.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=xt=>{var Tt;const{className:Ft,children:yt,icon:ee,title:pe,danger:qt}=xt,{prefixCls:Zt,firstLevel:fe,direction:ce,disableMenuItemTitleTooltip:ne,inlineCollapsed:Ne}=It.useContext(et),hn=on=>{const Pn=It.createElement("span",{className:`${Zt}-title-content`},yt);return(!ee||(0,me.l$)(yt)&&yt.type==="span")&&yt&&on&&fe&&typeof yt=="string"?It.createElement("div",{className:`${Zt}-inline-collapsed-noicon`},yt.charAt(0)):Pn},{siderCollapsed:an}=It.useContext(oe.D);let _e=pe;typeof pe=="undefined"?_e=fe?yt:"":pe===!1&&(_e="");const En={title:_e};!an&&!Ne&&(En.title=null,En.open=!1);const Ln=(0,te.Z)(yt).length;let ye=It.createElement(vt.ck,Object.assign({},(0,Fe.Z)(xt,["title","icon","danger"]),{className:$t()({[`${Zt}-item-danger`]:qt,[`${Zt}-item-only-child`]:(ee?Ln+1:Ln)===1},Ft),title:typeof pe=="string"?pe:void 0}),(0,me.Tm)(ee,{className:$t()((0,me.l$)(ee)?(Tt=ee.props)===null||Tt===void 0?void 0:Tt.className:"",`${Zt}-item-icon`)}),hn(Ne));return ne||(ye=It.createElement(re.Z,Object.assign({},En,{placement:ce==="rtl"?"left":"right",overlayClassName:`${Zt}-inline-collapsed-tooltip`}),ye)),ye},ft=xt=>{var Tt;const{popupClassName:Ft,icon:yt,title:ee,theme:pe}=xt,qt=It.useContext(et),{prefixCls:Zt,inlineCollapsed:fe,theme:ce}=qt,ne=(0,vt.Xl)();let Ne;if(!yt)Ne=fe&&!ne.length&&ee&&typeof ee=="string"?It.createElement("div",{className:`${Zt}-inline-collapsed-noicon`},ee.charAt(0)):It.createElement("span",{className:`${Zt}-title-content`},ee);else{const an=(0,me.l$)(ee)&&ee.type==="span";Ne=It.createElement(It.Fragment,null,(0,me.Tm)(yt,{className:$t()((0,me.l$)(yt)?(Tt=yt.props)===null||Tt===void 0?void 0:Tt.className:"",`${Zt}-item-icon`)}),an?ee:It.createElement("span",{className:`${Zt}-title-content`},ee))}const hn=It.useMemo(()=>Object.assign(Object.assign({},qt),{firstLevel:!1}),[qt]);return It.createElement(et.Provider,{value:hn},It.createElement(vt.Wd,Object.assign({},(0,Fe.Z)(xt,["icon"]),{title:Ne,popupClassName:$t()(Zt,Ft,`${Zt}-${pe||ce}`)})))},mt=Pt(18785),wt=Pt(70425),Et=Pt(62892),Nt=Pt(40875),Dt=function(xt,Tt){var Ft={};for(var yt in xt)Object.prototype.hasOwnProperty.call(xt,yt)&&Tt.indexOf(yt)<0&&(Ft[yt]=xt[yt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,yt=Object.getOwnPropertySymbols(xt);ee{if(Tt&&typeof Tt=="object"){const yt=Tt,{label:ee,children:pe,key:qt,type:Zt}=yt,fe=Dt(yt,["label","children","key","type"]),ce=qt!=null?qt:`tmp-${Ft}`;return pe||Zt==="group"?Zt==="group"?It.createElement(vt.BW,Object.assign({key:ce},fe,{title:ee}),At(pe)):It.createElement(ft,Object.assign({key:ce},fe,{title:ee}),At(pe)):Zt==="divider"?It.createElement(we,Object.assign({key:ce},fe)):It.createElement(ht,Object.assign({key:ce},fe),ee)}return null}).filter(Tt=>Tt)}function Kt(xt){return It.useMemo(()=>xt&&At(xt),[xt])}var Wt=Pt(64993),xe=Pt(17313),Vt=Pt(8378),Ie=Pt(13826),Se=Pt(29878),Ye=Pt(83116),Le=Pt(37613),We=xt=>{const{componentCls:Tt,motionDurationSlow:Ft,horizontalLineHeight:yt,colorSplit:ee,lineWidth:pe,lineType:qt,itemPaddingInline:Zt}=xt;return{[`${Tt}-horizontal`]:{lineHeight:yt,border:0,borderBottom:`${pe}px ${qt} ${ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Tt}-item, ${Tt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Zt},[`> ${Tt}-item:hover, > ${Tt}-item-active, > ${Tt}-submenu ${Tt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Tt}-item, ${Tt}-submenu-title`]:{transition:[`border-color ${Ft}`,`background ${Ft}`].join(",")},[`${Tt}-submenu-arrow`]:{display:"none"}}}},ue=xt=>{let{componentCls:Tt,menuArrowOffset:Ft}=xt;return{[`${Tt}-rtl`]:{direction:"rtl"},[`${Tt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Tt}-rtl${Tt}-vertical, ${Tt}-submenu-rtl ${Tt}-vertical`]:{[`${Tt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ft})`},"&::after":{transform:`rotate(45deg) translateY(${Ft})`}}}}};const Ht=xt=>Object.assign({},(0,xe.oN)(xt));var pn=(xt,Tt)=>{const{componentCls:Ft,itemColor:yt,itemSelectedColor:ee,groupTitleColor:pe,itemBg:qt,subMenuItemBg:Zt,itemSelectedBg:fe,activeBarHeight:ce,activeBarWidth:ne,activeBarBorderWidth:Ne,motionDurationSlow:hn,motionEaseInOut:an,motionEaseOut:_e,itemPaddingInline:En,motionDurationMid:Ln,itemHoverColor:ye,lineType:on,colorSplit:Pn,itemDisabledColor:Cn,dangerItemColor:An,dangerItemHoverColor:Jn,dangerItemSelectedColor:ui,dangerItemActiveBg:ni,dangerItemSelectedBg:fi,itemHoverBg:Bi,itemActiveBg:Ti,menuSubMenuBg:Di,horizontalItemSelectedColor:io,horizontalItemSelectedBg:to,horizontalItemBorderRadius:Ri,horizontalItemHoverBg:Qi,popupBg:Zn}=xt;return{[`${Ft}-${Tt}, ${Ft}-${Tt} > ${Ft}`]:{color:yt,background:qt,[`&${Ft}-root:focus-visible`]:Object.assign({},Ht(xt)),[`${Ft}-item-group-title`]:{color:pe},[`${Ft}-submenu-selected`]:{[`> ${Ft}-submenu-title`]:{color:ee}},[`${Ft}-item-disabled, ${Ft}-submenu-disabled`]:{color:`${Cn} !important`},[`${Ft}-item:not(${Ft}-item-selected):not(${Ft}-submenu-selected)`]:{[`&:hover, > ${Ft}-submenu-title:hover`]:{color:ye}},[`&:not(${Ft}-horizontal)`]:{[`${Ft}-item:not(${Ft}-item-selected)`]:{"&:hover":{backgroundColor:Bi},"&:active":{backgroundColor:Ti}},[`${Ft}-submenu-title`]:{"&:hover":{backgroundColor:Bi},"&:active":{backgroundColor:Ti}}},[`${Ft}-item-danger`]:{color:An,[`&${Ft}-item:hover`]:{[`&:not(${Ft}-item-selected):not(${Ft}-submenu-selected)`]:{color:Jn}},[`&${Ft}-item:active`]:{background:ni}},[`${Ft}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ft}-item-selected`]:{color:ee,[`&${Ft}-item-danger`]:{color:ui},"a, a:hover":{color:"inherit"}},[`& ${Ft}-item-selected`]:{backgroundColor:fe,[`&${Ft}-item-danger`]:{backgroundColor:fi}},[`${Ft}-item, ${Ft}-submenu-title`]:{[`&:not(${Ft}-item-disabled):focus-visible`]:Object.assign({},Ht(xt))},[`&${Ft}-submenu > ${Ft}`]:{backgroundColor:Di},[`&${Ft}-popup > ${Ft}`]:{backgroundColor:Zn},[`&${Ft}-horizontal`]:Object.assign(Object.assign({},Tt==="dark"?{borderBottom:0}:{}),{[`> ${Ft}-item, > ${Ft}-submenu`]:{top:Ne,marginTop:-Ne,marginBottom:0,borderRadius:Ri,"&::after":{position:"absolute",insetInline:En,bottom:0,borderBottom:`${ce}px solid transparent`,transition:`border-color ${hn} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:Qi,"&::after":{borderBottomWidth:ce,borderBottomColor:io}},"&-selected":{color:io,backgroundColor:to,"&:hover":{backgroundColor:to},"&::after":{borderBottomWidth:ce,borderBottomColor:io}}}}),[`&${Ft}-root`]:{[`&${Ft}-inline, &${Ft}-vertical`]:{borderInlineEnd:`${Ne}px ${on} ${Pn}`}},[`&${Ft}-inline`]:{[`${Ft}-sub${Ft}-inline`]:{background:Zt},[`${Ft}-item, ${Ft}-submenu-title`]:Ne&&ne?{width:`calc(100% + ${Ne}px)`}:{},[`${Ft}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ne}px solid ${ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ln} ${_e}`,`opacity ${Ln} ${_e}`].join(","),content:'""'},[`&${Ft}-item-danger`]:{"&::after":{borderInlineEndColor:ui}}},[`${Ft}-selected, ${Ft}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ln} ${an}`,`opacity ${Ln} ${an}`].join(",")}}}}}};const ln=xt=>{const{componentCls:Tt,itemHeight:Ft,itemMarginInline:yt,padding:ee,menuArrowSize:pe,marginXS:qt,itemMarginBlock:Zt}=xt,fe=ee+pe+qt;return{[`${Tt}-item`]:{position:"relative",overflow:"hidden"},[`${Tt}-item, ${Tt}-submenu-title`]:{height:Ft,lineHeight:`${Ft}px`,paddingInline:ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:yt,marginBlock:Zt,width:`calc(100% - ${yt*2}px)`},[`> ${Tt}-item, > ${Tt}-submenu > ${Tt}-submenu-title`]:{height:Ft,lineHeight:`${Ft}px`},[`${Tt}-item-group-list ${Tt}-submenu-title, ${Tt}-submenu-title`]:{paddingInlineEnd:fe}}};var Ke=xt=>{const{componentCls:Tt,iconCls:Ft,itemHeight:yt,colorTextLightSolid:ee,dropdownWidth:pe,controlHeightLG:qt,motionDurationMid:Zt,motionEaseOut:fe,paddingXL:ce,itemMarginInline:ne,fontSizeLG:Ne,motionDurationSlow:hn,paddingXS:an,boxShadowSecondary:_e,collapsedWidth:En,collapsedIconSize:Ln}=xt,ye={height:yt,lineHeight:`${yt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Tt]:{"&-inline, &-vertical":Object.assign({[`&${Tt}-root`]:{boxShadow:"none"}},ln(xt))},[`${Tt}-submenu-popup`]:{[`${Tt}-vertical`]:Object.assign(Object.assign({},ln(xt)),{boxShadow:_e})}},{[`${Tt}-submenu-popup ${Tt}-vertical${Tt}-sub`]:{minWidth:pe,maxHeight:`calc(100vh - ${qt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Tt}-inline`]:{width:"100%",[`&${Tt}-root`]:{[`${Tt}-item, ${Tt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${hn}`,`background ${hn}`,`padding ${Zt} ${fe}`].join(","),[`> ${Tt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Tt}-sub${Tt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Tt}-submenu > ${Tt}-submenu-title`]:ye,[`& ${Tt}-item-group-title`]:{paddingInlineStart:ce}},[`${Tt}-item`]:ye}},{[`${Tt}-inline-collapsed`]:{width:En,[`&${Tt}-root`]:{[`${Tt}-item, ${Tt}-submenu ${Tt}-submenu-title`]:{[`> ${Tt}-inline-collapsed-noicon`]:{fontSize:Ne,textAlign:"center"}}},[`> ${Tt}-item, > ${Tt}-item-group > ${Tt}-item-group-list > ${Tt}-item, > ${Tt}-item-group > ${Tt}-item-group-list > ${Tt}-submenu > ${Tt}-submenu-title, > ${Tt}-submenu > ${Tt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ne/2}px - ${ne}px)`,textOverflow:"clip",[` ${Tt}-submenu-arrow, ${Tt}-submenu-expand-icon `]:{opacity:0},[`${Tt}-item-icon, ${Ft}`]:{margin:0,fontSize:Ln,lineHeight:`${yt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Tt}-item-icon, ${Ft}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Tt}-item-icon, ${Ft}`]:{display:"none"},"a, a:hover":{color:ee}},[`${Tt}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:an})}}]};const gn=xt=>{const{componentCls:Tt,motionDurationSlow:Ft,motionDurationMid:yt,motionEaseInOut:ee,motionEaseOut:pe,iconCls:qt,iconSize:Zt,iconMarginInlineEnd:fe}=xt;return{[`${Tt}-item, ${Tt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ft}`,`background ${Ft}`,`padding ${Ft} ${ee}`].join(","),[`${Tt}-item-icon, ${qt}`]:{minWidth:Zt,fontSize:Zt,transition:[`font-size ${yt} ${pe}`,`margin ${Ft} ${ee}`,`color ${Ft}`].join(","),"+ span":{marginInlineStart:fe,opacity:1,transition:[`opacity ${Ft} ${ee}`,`margin ${Ft}`,`color ${Ft}`].join(",")}},[`${Tt}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${Tt}-item-only-child`]:{[`> ${qt}, > ${Tt}-item-icon`]:{marginInlineEnd:0}}},[`${Tt}-item-disabled, ${Tt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Tt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bn=xt=>{const{componentCls:Tt,motionDurationSlow:Ft,motionEaseInOut:yt,borderRadius:ee,menuArrowSize:pe,menuArrowOffset:qt}=xt;return{[`${Tt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xt.margin,width:pe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ft} ${yt}, opacity ${Ft}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:pe*.6,height:pe*.15,backgroundColor:"currentcolor",borderRadius:ee,transition:[`background ${Ft} ${yt}`,`transform ${Ft} ${yt}`,`top ${Ft} ${yt}`,`color ${Ft} ${yt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${qt})`},"&::after":{transform:`rotate(-45deg) translateY(${qt})`}}}}},dn=xt=>{const{antCls:Tt,componentCls:Ft,fontSize:yt,motionDurationSlow:ee,motionDurationMid:pe,motionEaseInOut:qt,paddingXS:Zt,padding:fe,colorSplit:ce,lineWidth:ne,zIndexPopup:Ne,borderRadiusLG:hn,subMenuItemBorderRadius:an,menuArrowSize:_e,menuArrowOffset:En,lineType:Ln,menuPanelMaskInset:ye,groupTitleLineHeight:on,groupTitleFontSize:Pn}=xt;return[{"":{[`${Ft}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${Ft}-submenu-hidden`]:{display:"none"}},{[Ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(xt)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:yt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ft}-item`]:{flex:"none"}},[`${Ft}-item, ${Ft}-submenu, ${Ft}-submenu-title`]:{borderRadius:xt.itemBorderRadius},[`${Ft}-item-group-title`]:{padding:`${Zt}px ${fe}px`,fontSize:Pn,lineHeight:on,transition:`all ${ee}`},[`&-horizontal ${Ft}-submenu`]:{transition:[`border-color ${ee} ${qt}`,`background ${ee} ${qt}`].join(",")},[`${Ft}-submenu, ${Ft}-submenu-inline`]:{transition:[`border-color ${ee} ${qt}`,`background ${ee} ${qt}`,`padding ${pe} ${qt}`].join(",")},[`${Ft}-submenu ${Ft}-sub`]:{cursor:"initial",transition:[`background ${ee} ${qt}`,`padding ${ee} ${qt}`].join(",")},[`${Ft}-title-content`]:{transition:`color ${ee}`},[`${Ft}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ft}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ce,borderStyle:Ln,borderWidth:0,borderTopWidth:ne,marginBlock:ne,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gn(xt)),{[`${Ft}-item-group`]:{[`${Ft}-item-group-list`]:{margin:0,padding:0,[`${Ft}-item, ${Ft}-submenu-title`]:{paddingInline:`${yt*2}px ${fe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ne,borderRadius:hn,boxShadow:"none",transformOrigin:"0 0",[`&${Ft}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:xt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xt.paddingXS},[`> ${Ft}`]:Object.assign(Object.assign(Object.assign({borderRadius:hn},gn(xt)),Bn(xt)),{[`${Ft}-item, ${Ft}-submenu > ${Ft}-submenu-title`]:{borderRadius:an},[`${Ft}-submenu-title::after`]:{transition:`transform ${ee} ${qt}`}})}}),Bn(xt)),{[`&-inline-collapsed ${Ft}-submenu-arrow, &-inline ${Ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${En})`},"&::after":{transform:`rotate(45deg) translateX(-${En})`}},[`${Ft}-submenu-open${Ft}-submenu-inline > ${Ft}-submenu-title > ${Ft}-submenu-arrow`]:{transform:`translateY(-${_e*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${En})`},"&::before":{transform:`rotate(45deg) translateX(${En})`}}})},{[`${Tt}-layout-header`]:{[Ft]:{lineHeight:"inherit"}}}]};var In=(xt,Tt)=>(0,Ye.Z)("Menu",yt=>{if(Tt===!1)return[];const{colorBgElevated:ee,colorPrimary:pe,colorTextLightSolid:qt,controlHeightLG:Zt,fontSize:fe,darkItemColor:ce,darkDangerItemColor:ne,darkItemBg:Ne,darkSubMenuItemBg:hn,darkItemSelectedColor:an,darkItemSelectedBg:_e,darkDangerItemSelectedBg:En,darkItemHoverBg:Ln,darkGroupTitleColor:ye,darkItemHoverColor:on,darkItemDisabledColor:Pn,darkDangerItemHoverColor:Cn,darkDangerItemSelectedColor:An,darkDangerItemActiveBg:Jn}=yt,ui=fe/7*5,ni=(0,Le.TS)(yt,{menuArrowSize:ui,menuHorizontalHeight:Zt*1.15,menuArrowOffset:`${ui*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ee}),fi=(0,Le.TS)(ni,{itemColor:ce,itemHoverColor:on,groupTitleColor:ye,itemSelectedColor:an,itemBg:Ne,popupBg:Ne,subMenuItemBg:hn,itemActiveBg:"transparent",itemSelectedBg:_e,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ln,itemDisabledColor:Pn,dangerItemColor:ne,dangerItemHoverColor:Cn,dangerItemSelectedColor:An,dangerItemActiveBg:Jn,dangerItemSelectedBg:En,menuSubMenuBg:hn,horizontalItemSelectedColor:qt,horizontalItemSelectedBg:pe});return[dn(ni),We(ni),Ke(ni),pn(ni,"light"),pn(fi,"dark"),ue(ni),(0,Vt.Z)(ni),(0,Ie.oN)(ni,"slide-up"),(0,Ie.oN)(ni,"slide-down"),(0,Se._y)(ni,"zoom-big")]},yt=>{const{colorPrimary:ee,colorError:pe,colorTextDisabled:qt,colorErrorBg:Zt,colorText:fe,colorTextDescription:ce,colorBgContainer:ne,colorFillAlter:Ne,colorFillContent:hn,lineWidth:an,lineWidthBold:_e,controlItemBgActive:En,colorBgTextHover:Ln,controlHeightLG:ye,lineHeight:on,colorBgElevated:Pn,marginXXS:Cn,padding:An,fontSize:Jn,controlHeightSM:ui,fontSizeLG:ni,colorTextLightSolid:fi,colorErrorHover:Bi}=yt,Ti=new Wt.C(fi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:yt.zIndexPopupBase+50,radiusItem:yt.borderRadiusLG,itemBorderRadius:yt.borderRadiusLG,radiusSubMenuItem:yt.borderRadiusSM,subMenuItemBorderRadius:yt.borderRadiusSM,colorItemText:fe,itemColor:fe,colorItemTextHover:fe,itemHoverColor:fe,colorItemTextHoverHorizontal:ee,horizontalItemHoverColor:ee,colorGroupTitle:ce,groupTitleColor:ce,colorItemTextSelected:ee,itemSelectedColor:ee,colorItemTextSelectedHorizontal:ee,horizontalItemSelectedColor:ee,colorItemBg:ne,itemBg:ne,colorItemBgHover:Ln,itemHoverBg:Ln,colorItemBgActive:hn,itemActiveBg:En,colorSubItemBg:Ne,subMenuItemBg:Ne,colorItemBgSelected:En,itemSelectedBg:En,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_e,activeBarHeight:_e,colorActiveBarBorderSize:an,activeBarBorderWidth:an,colorItemTextDisabled:qt,itemDisabledColor:qt,colorDangerItemText:pe,dangerItemColor:pe,colorDangerItemTextHover:pe,dangerItemHoverColor:pe,colorDangerItemTextSelected:pe,dangerItemSelectedColor:pe,colorDangerItemBgActive:Zt,dangerItemActiveBg:Zt,colorDangerItemBgSelected:Zt,dangerItemSelectedBg:Zt,itemMarginInline:yt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:on,collapsedWidth:ye*2,popupBg:Pn,itemMarginBlock:Cn,itemPaddingInline:An,horizontalLineHeight:`${ye*1.15}px`,iconSize:Jn,iconMarginInlineEnd:ui-Jn,collapsedIconSize:ni,groupTitleFontSize:Jn,darkItemDisabledColor:new Wt.C(fi).setAlpha(.25).toRgbString(),darkItemColor:Ti,darkDangerItemColor:pe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:fi,darkItemSelectedBg:ee,darkDangerItemSelectedBg:pe,darkItemHoverBg:"transparent",darkGroupTitleColor:Ti,darkItemHoverColor:fi,darkDangerItemHoverColor:Bi,darkDangerItemSelectedColor:fi,darkDangerItemActiveBg:pe}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(xt),Ce=function(xt,Tt){var Ft={};for(var yt in xt)Object.prototype.hasOwnProperty.call(xt,yt)&&Tt.indexOf(yt)<0&&(Ft[yt]=xt[yt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,yt=Object.getOwnPropertySymbols(xt);ee{var Ft,yt;const ee=It.useContext(Nt.Z),pe=ee||{},{getPrefixCls:qt,getPopupContainer:Zt,direction:fe,menu:ce}=It.useContext(Ut.E_),ne=qt(),{prefixCls:Ne,className:hn,style:an,theme:_e="light",expandIcon:En,_internalDisableMenuItemTitleTooltip:Ln,inlineCollapsed:ye,siderCollapsed:on,items:Pn,children:Cn,rootClassName:An,mode:Jn,selectable:ui,onClick:ni,overflowedIndicatorPopupClassName:fi}=xt,Bi=Ce(xt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ti=(0,Fe.Z)(Bi,["collapsedWidth"]),Di=Kt(Pn)||Cn;(Ft=pe.validator)===null||Ft===void 0||Ft.call(pe,{mode:Jn});const io=(0,wt.useEvent)(function(){var Mo;ni==null||ni.apply(void 0,arguments),(Mo=pe.onClick)===null||Mo===void 0||Mo.call(pe)}),to=pe.mode||Jn,Ri=ui!=null?ui:pe.selectable,Qi=It.useMemo(()=>on!==void 0?on:ye,[ye,on]),Zn={horizontal:{motionName:`${ne}-slide-up`},inline:(0,Et.Z)(ne),other:{motionName:`${ne}-zoom-big`}},Mt=qt("menu",Ne||pe.prefixCls),[so,Ii]=In(Mt,!ee),Wi=$t()(`${Mt}-${_e}`,ce==null?void 0:ce.className,hn);let ki;if(typeof En=="function")ki=En;else if(En===null||En===!1)ki=null;else if(pe.expandIcon===null||pe.expandIcon===!1)ki=null;else{const Mo=En!=null?En:pe.expandIcon;ki=(0,me.Tm)(Mo,{className:$t()(`${Mt}-submenu-expand-icon`,(0,me.l$)(Mo)?(yt=Mo.props)===null||yt===void 0?void 0:yt.className:"")})}const Bo=It.useMemo(()=>({prefixCls:Mt,inlineCollapsed:Qi||!1,direction:fe,firstLevel:!0,theme:_e,mode:to,disableMenuItemTitleTooltip:Ln}),[Mt,Qi,fe,Ln,_e]);return so(It.createElement(Nt.Z.Provider,{value:null},It.createElement(et.Provider,{value:Bo},It.createElement(vt.ZP,Object.assign({getPopupContainer:Zt,overflowedIndicator:It.createElement(mt.Z,null),overflowedIndicatorPopupClassName:$t()(Mt,`${Mt}-${_e}`,fi),mode:to,selectable:Ri,onClick:io},Ti,{inlineCollapsed:Qi,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),an),className:Wi,prefixCls:Mt,direction:fe,defaultMotions:Zn,expandIcon:ki,ref:Tt,rootClassName:$t()(An,Ii)}),Di))))});const jt=(0,It.forwardRef)((xt,Tt)=>{const Ft=(0,It.useRef)(null),yt=It.useContext(oe.D);return(0,It.useImperativeHandle)(Tt,()=>({menu:Ft.current,focus:ee=>{var pe;(pe=Ft.current)===null||pe===void 0||pe.focus(ee)}})),It.createElement(Qn,Object.assign({ref:Ft},xt,yt))});jt.Item=ht,jt.SubMenu=ft,jt.Divider=we,jt.ItemGroup=vt.BW;var Lt=jt},58421:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return pe}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},de=oe,$t=Pt(7657),Ut=function(Zt,fe){return It.createElement($t.Z,(0,vt.Z)({},Zt,{ref:fe,icon:de}))},Jt=It.forwardRef(Ut),De=Jt,we=Pt(49198),te=Pt(33853),Fe=Pt(38819),re=Pt(92310),me=Pt.n(re),Ot=Pt(90493),et=Pt(44127),nt=Pt(52884),ht=Pt(95727),at=Pt(65711),ft=Pt(85745),mt=Pt(26112),wt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Et=wt,Nt=Pt(91735),Dt=function(qt){(0,at.Z)(fe,qt);var Zt=(0,ft.Z)(fe);function fe(){var ce;(0,nt.Z)(this,fe);for(var ne=arguments.length,Ne=new Array(ne),hn=0;hn=0||an.relatedTarget.className.indexOf("".concat(ye,"-item"))>=0))&&Ln(ce.getValidValue()))},ce.go=function(an){var _e=ce.state.goInputText;_e!==""&&(an.keyCode===Et.ENTER||an.type==="click")&&(ce.setState({goInputText:""}),ce.props.quickGo(ce.getValidValue()))},ce}return(0,ht.Z)(fe,[{key:"getPageSizeOptions",value:function(){var ne=this.props,Ne=ne.pageSize,hn=ne.pageSizeOptions;return hn.some(function(an){return an.toString()===Ne.toString()})?hn:hn.concat([Ne.toString()]).sort(function(an,_e){var En=Number.isNaN(Number(an))?0:Number(an),Ln=Number.isNaN(Number(_e))?0:Number(_e);return En-Ln})}},{key:"render",value:function(){var ne=this,Ne=this.props,hn=Ne.pageSize,an=Ne.locale,_e=Ne.rootPrefixCls,En=Ne.changeSize,Ln=Ne.quickGo,ye=Ne.goButton,on=Ne.selectComponentClass,Pn=Ne.buildOptionText,Cn=Ne.selectPrefixCls,An=Ne.disabled,Jn=this.state.goInputText,ui="".concat(_e,"-options"),ni=on,fi=null,Bi=null,Ti=null;if(!En&&!Ln)return null;var Di=this.getPageSizeOptions();if(En&&ni){var io=Di.map(function(to,Ri){return It.createElement(ni.Option,{key:Ri,value:to.toString()},(Pn||ne.buildOptionText)(to))});fi=It.createElement(ni,{disabled:An,prefixCls:Cn,showSearch:!1,className:"".concat(ui,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(hn||Di[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ri){return Ri.parentNode},"aria-label":an.page_size,defaultOpen:!1},io)}return Ln&&(ye&&(Ti=typeof ye=="boolean"?It.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:An,className:"".concat(ui,"-quick-jumper-button")},an.jump_to_confirm):It.createElement("span",{onClick:this.go,onKeyUp:this.go},ye)),Bi=It.createElement("div",{className:"".concat(ui,"-quick-jumper")},an.jump_to,It.createElement("input",{disabled:An,type:"text",value:Jn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":an.page}),an.page,Ti)),It.createElement("li",{className:"".concat(ui)},fi,Bi)}}]),fe}(It.Component);Dt.defaultProps={pageSizeOptions:["10","20","50","100"]};var At=Dt,Kt=function(Zt){var fe,ce=Zt.rootPrefixCls,ne=Zt.page,Ne=Zt.active,hn=Zt.className,an=Zt.showTitle,_e=Zt.onClick,En=Zt.onKeyPress,Ln=Zt.itemRender,ye="".concat(ce,"-item"),on=me()(ye,"".concat(ye,"-").concat(ne),(fe={},(0,Ot.Z)(fe,"".concat(ye,"-active"),Ne),(0,Ot.Z)(fe,"".concat(ye,"-disabled"),!ne),(0,Ot.Z)(fe,Zt.className,hn),fe)),Pn=function(){_e(ne)},Cn=function(ui){En(ui,_e,ne)},An=Ln(ne,"page",It.createElement("a",{rel:"nofollow"},ne));return An?It.createElement("li",{title:an?ne.toString():null,className:on,onClick:Pn,onKeyPress:Cn,tabIndex:0},An):null},Wt=Kt;function xe(){}function Vt(qt){var Zt=Number(qt);return typeof Zt=="number"&&!Number.isNaN(Zt)&&isFinite(Zt)&&Math.floor(Zt)===Zt}var Ie=function(Zt,fe,ce){return ce};function Se(qt,Zt,fe){var ce=typeof qt=="undefined"?Zt.pageSize:qt;return Math.floor((fe.total-1)/ce)+1}var Ye=function(qt){(0,at.Z)(fe,qt);var Zt=(0,ft.Z)(fe);function fe(ce){var ne;(0,nt.Z)(this,fe),ne=Zt.call(this,ce),ne.paginationNode=It.createRef(),ne.getJumpPrevPage=function(){return Math.max(1,ne.state.current-(ne.props.showLessItems?3:5))},ne.getJumpNextPage=function(){return Math.min(Se(void 0,ne.state,ne.props),ne.state.current+(ne.props.showLessItems?3:5))},ne.getItemIcon=function(En,Ln){var ye=ne.props.prefixCls,on=En||It.createElement("button",{type:"button","aria-label":Ln,className:"".concat(ye,"-item-link")});return typeof En=="function"&&(on=It.createElement(En,(0,et.Z)({},ne.props))),on},ne.isValid=function(En){var Ln=ne.props.total;return Vt(En)&&En!==ne.state.current&&Vt(Ln)&&Ln>0},ne.shouldDisplayQuickJumper=function(){var En=ne.props,Ln=En.showQuickJumper,ye=En.total,on=ne.state.pageSize;return ye<=on?!1:Ln},ne.handleKeyDown=function(En){(En.keyCode===Et.ARROW_UP||En.keyCode===Et.ARROW_DOWN)&&En.preventDefault()},ne.handleKeyUp=function(En){var Ln=ne.getValidValue(En),ye=ne.state.currentInputValue;Ln!==ye&&ne.setState({currentInputValue:Ln}),En.keyCode===Et.ENTER?ne.handleChange(Ln):En.keyCode===Et.ARROW_UP?ne.handleChange(Ln-1):En.keyCode===Et.ARROW_DOWN&&ne.handleChange(Ln+1)},ne.handleBlur=function(En){var Ln=ne.getValidValue(En);ne.handleChange(Ln)},ne.changePageSize=function(En){var Ln=ne.state.current,ye=Se(En,ne.state,ne.props);Ln=Ln>ye?ye:Ln,ye===0&&(Ln=ne.state.current),typeof En=="number"&&("pageSize"in ne.props||ne.setState({pageSize:En}),"current"in ne.props||ne.setState({current:Ln,currentInputValue:Ln})),ne.props.onShowSizeChange(Ln,En),"onChange"in ne.props&&ne.props.onChange&&ne.props.onChange(Ln,En)},ne.handleChange=function(En){var Ln=ne.props,ye=Ln.disabled,on=Ln.onChange,Pn=ne.state,Cn=Pn.pageSize,An=Pn.current,Jn=Pn.currentInputValue;if(ne.isValid(En)&&!ye){var ui=Se(void 0,ne.state,ne.props),ni=En;return En>ui?ni=ui:En<1&&(ni=1),"current"in ne.props||ne.setState({current:ni}),ni!==Jn&&ne.setState({currentInputValue:ni}),on(ni,Cn),ni}return An},ne.prev=function(){ne.hasPrev()&&ne.handleChange(ne.state.current-1)},ne.next=function(){ne.hasNext()&&ne.handleChange(ne.state.current+1)},ne.jumpPrev=function(){ne.handleChange(ne.getJumpPrevPage())},ne.jumpNext=function(){ne.handleChange(ne.getJumpNextPage())},ne.hasPrev=function(){return ne.state.current>1},ne.hasNext=function(){return ne.state.current2?ye-2:0),Pn=2;Pn=hn?_e=hn:_e=Number(Ne),_e}},{key:"getShowSizeChanger",value:function(){var ne=this.props,Ne=ne.showSizeChanger,hn=ne.total,an=ne.totalBoundaryShowSizeChanger;return typeof Ne!="undefined"?Ne:hn>an}},{key:"render",value:function(){var ne=this.props,Ne=ne.prefixCls,hn=ne.className,an=ne.style,_e=ne.disabled,En=ne.hideOnSinglePage,Ln=ne.total,ye=ne.locale,on=ne.showQuickJumper,Pn=ne.showLessItems,Cn=ne.showTitle,An=ne.showTotal,Jn=ne.simple,ui=ne.itemRender,ni=ne.showPrevNextJumpers,fi=ne.jumpPrevIcon,Bi=ne.jumpNextIcon,Ti=ne.selectComponentClass,Di=ne.selectPrefixCls,io=ne.pageSizeOptions,to=this.state,Ri=to.current,Qi=to.pageSize,Zn=to.currentInputValue;if(En===!0&&Ln<=Qi)return null;var Mt=Se(void 0,this.state,this.props),so=[],Ii=null,Wi=null,ki=null,Bo=null,Mo=null,ai=on&&on.goButton,di=Pn?1:2,Ae=Ri-1>0?Ri-1:0,Be=Ri+1Ln?Ln:Ri*Qi]));if(Jn){ai&&(typeof ai=="boolean"?Mo=It.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ye.jump_to_confirm):Mo=It.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ai),Mo=It.createElement("li",{title:Cn?"".concat(ye.jump_to).concat(Ri,"/").concat(Mt):null,className:"".concat(Ne,"-simple-pager")},Mo));var cn=this.renderPrev(Ae);return It.createElement("ul",(0,vt.Z)({className:me()(Ne,"".concat(Ne,"-simple"),(0,Ot.Z)({},"".concat(Ne,"-disabled"),_e),hn),style:an,ref:this.paginationNode},_t),Je,cn?It.createElement("li",{title:Cn?ye.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Ne,"-prev"),(0,Ot.Z)({},"".concat(Ne,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},cn):null,It.createElement("li",{title:Cn?"".concat(Ri,"/").concat(Mt):null,className:"".concat(Ne,"-simple-pager")},It.createElement("input",{type:"text",value:Zn,disabled:_e,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),It.createElement("span",{className:"".concat(Ne,"-slash")},"/"),Mt),It.createElement("li",{title:Cn?ye.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:me()("".concat(Ne,"-next"),(0,Ot.Z)({},"".concat(Ne,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Be)),Mo)}if(Mt<=3+di*2){var ve={locale:ye,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Cn,itemRender:ui};Mt||so.push(It.createElement(Wt,(0,vt.Z)({},ve,{key:"noPager",page:1,className:"".concat(Ne,"-item-disabled")})));for(var ie=1;ie<=Mt;ie+=1){var Qe=Ri===ie;so.push(It.createElement(Wt,(0,vt.Z)({},ve,{key:ie,page:ie,active:Qe})))}}else{var yn=Pn?ye.prev_3:ye.prev_5,Nn=Pn?ye.next_3:ye.next_5,_n=ui(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(fi,"prev page")),le=ui(this.getJumpNextPage(),"jump-next",this.getItemIcon(Bi,"next page"));ni&&(Ii=_n?It.createElement("li",{title:Cn?yn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:me()("".concat(Ne,"-jump-prev"),(0,Ot.Z)({},"".concat(Ne,"-jump-prev-custom-icon"),!!fi))},_n):null,Wi=le?It.createElement("li",{title:Cn?Nn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:me()("".concat(Ne,"-jump-next"),(0,Ot.Z)({},"".concat(Ne,"-jump-next-custom-icon"),!!Bi))},le):null),Bo=It.createElement(Wt,{locale:ye,last:!0,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mt,page:Mt,active:!1,showTitle:Cn,itemRender:ui}),ki=It.createElement(Wt,{locale:ye,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Cn,itemRender:ui});var mn=Math.max(1,Ri-di),Gn=Math.min(Ri+di,Mt);Ri-1<=di&&(Gn=1+di*2),Mt-Ri<=di&&(mn=Mt-di*2);for(var si=mn;si<=Gn;si+=1){var Re=Ri===si;so.push(It.createElement(Wt,{locale:ye,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:si,page:si,active:Re,showTitle:Cn,itemRender:ui}))}Ri-1>=di*2&&Ri!==3&&(so[0]=(0,It.cloneElement)(so[0],{className:"".concat(Ne,"-item-after-jump-prev")}),so.unshift(Ii)),Mt-Ri>=di*2&&Ri!==Mt-2&&(so[so.length-1]=(0,It.cloneElement)(so[so.length-1],{className:"".concat(Ne,"-item-before-jump-next")}),so.push(Wi)),mn!==1&&so.unshift(ki),Gn!==Mt&&so.push(Bo)}var fn=!this.hasPrev()||!Mt,He=!this.hasNext()||!Mt,je=this.renderPrev(Ae),vn=this.renderNext(Be);return It.createElement("ul",(0,vt.Z)({className:me()(Ne,hn,(0,Ot.Z)({},"".concat(Ne,"-disabled"),_e)),style:an,ref:this.paginationNode},_t),Je,je?It.createElement("li",{title:Cn?ye.prev_page:null,onClick:this.prev,tabIndex:fn?null:0,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Ne,"-prev"),(0,Ot.Z)({},"".concat(Ne,"-disabled"),fn)),"aria-disabled":fn},je):null,so,vn?It.createElement("li",{title:Cn?ye.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:me()("".concat(Ne,"-next"),(0,Ot.Z)({},"".concat(Ne,"-disabled"),He)),"aria-disabled":He},vn):null,It.createElement(At,{disabled:_e,locale:ye,rootPrefixCls:Ne,selectComponentClass:Ti,selectPrefixCls:Di,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ri,pageSize:Qi,pageSizeOptions:io,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ai}))}}],[{key:"getDerivedStateFromProps",value:function(ne,Ne){var hn={};if("current"in ne&&(hn.current=ne.current,ne.current!==Ne.current&&(hn.currentInputValue=hn.current)),"pageSize"in ne&&ne.pageSize!==Ne.pageSize){var an=Ne.current,_e=Se(ne.pageSize,Ne,ne);an=an>_e?_e:an,"current"in ne||(hn.current=an,hn.currentInputValue=an),hn.pageSize=ne.pageSize}return hn}}]),fe}(It.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:xe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:xe,locale:Nt.Z,style:{},itemRender:Ie,totalBoundaryShowSizeChanger:50};var Le=Ye,Pe=Pt(22075),We=Pt(36355),Ue=Pt(19716),ue=Pt(8628),Ht=Pt(9763),ke=Pt(57809);const pn=qt=>It.createElement(ke.default,Object.assign({},qt,{showSearch:!0,size:"small"})),ln=qt=>It.createElement(ke.default,Object.assign({},qt,{showSearch:!0,size:"middle"}));pn.Option=ke.default.Option,ln.Option=ke.default.Option;var Ee=Pt(9937),Ke=Pt(17313),gn=Pt(83116),Bn=Pt(37613);const dn=qt=>{const{componentCls:Zt}=qt;return{[`${Zt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Zt}-item-link`]:{color:qt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Zt}-item-link`]:{color:qt.colorTextDisabled,cursor:"not-allowed"}}},[`&${Zt}-disabled`]:{cursor:"not-allowed",[`${Zt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:qt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:qt.colorBorder,backgroundColor:qt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:qt.itemActiveBgDisabled},a:{color:qt.itemActiveColorDisabled}}},[`${Zt}-item-link`]:{color:qt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Zt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Zt}-simple-pager`]:{color:qt.colorTextDisabled},[`${Zt}-jump-prev, ${Zt}-jump-next`]:{[`${Zt}-item-link-icon`]:{opacity:0},[`${Zt}-item-ellipsis`]:{opacity:1}}},[`&${Zt}-simple`]:{[`${Zt}-prev, ${Zt}-next`]:{[`&${Zt}-disabled ${Zt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},In=qt=>{const{componentCls:Zt}=qt;return{[`&${Zt}-mini ${Zt}-total-text, &${Zt}-mini ${Zt}-simple-pager`]:{height:qt.itemSizeSM,lineHeight:`${qt.itemSizeSM}px`},[`&${Zt}-mini ${Zt}-item`]:{minWidth:qt.itemSizeSM,height:qt.itemSizeSM,margin:0,lineHeight:`${qt.itemSizeSM-2}px`},[`&${Zt}-mini:not(${Zt}-disabled) ${Zt}-item:not(${Zt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:qt.colorBgTextHover},"&:active":{backgroundColor:qt.colorBgTextActive}},[`&${Zt}-mini ${Zt}-prev, &${Zt}-mini ${Zt}-next`]:{minWidth:qt.itemSizeSM,height:qt.itemSizeSM,margin:0,lineHeight:`${qt.itemSizeSM}px`},[`&${Zt}-mini:not(${Zt}-disabled)`]:{[`${Zt}-prev, ${Zt}-next`]:{[`&:hover ${Zt}-item-link`]:{backgroundColor:qt.colorBgTextHover},[`&:active ${Zt}-item-link`]:{backgroundColor:qt.colorBgTextActive},[`&${Zt}-disabled:hover ${Zt}-item-link`]:{backgroundColor:"transparent"}}},[` &${Zt}-mini ${Zt}-prev ${Zt}-item-link, &${Zt}-mini ${Zt}-next ${Zt}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:qt.itemSizeSM,lineHeight:`${qt.itemSizeSM}px`}},[`&${Zt}-mini ${Zt}-jump-prev, &${Zt}-mini ${Zt}-jump-next`]:{height:qt.itemSizeSM,marginInlineEnd:0,lineHeight:`${qt.itemSizeSM}px`},[`&${Zt}-mini ${Zt}-options`]:{marginInlineStart:qt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:qt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:qt.itemSizeSM,lineHeight:`${qt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ee.x0)(qt)),{width:qt.paginationMiniQuickJumperInputWidth,height:qt.controlHeightSM})}}}},Ce=qt=>{const{componentCls:Zt}=qt;return{[` &${Zt}-simple ${Zt}-prev, &${Zt}-simple ${Zt}-next `]:{height:qt.itemSizeSM,lineHeight:`${qt.itemSizeSM}px`,verticalAlign:"top",[`${Zt}-item-link`]:{height:qt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:qt.colorBgTextHover},"&:active":{backgroundColor:qt.colorBgTextActive},"&::after":{height:qt.itemSizeSM,lineHeight:`${qt.itemSizeSM}px`}}},[`&${Zt}-simple ${Zt}-simple-pager`]:{display:"inline-block",height:qt.itemSizeSM,marginInlineEnd:qt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:qt.marginXS,padding:`0 ${qt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:qt.itemInputBg,border:`${qt.lineWidth}px ${qt.lineType} ${qt.colorBorder}`,borderRadius:qt.borderRadius,outline:"none",transition:`border-color ${qt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:qt.colorPrimary},"&:focus":{borderColor:qt.colorPrimaryHover,boxShadow:`${qt.inputOutlineOffset}px 0 ${qt.controlOutlineWidth}px ${qt.controlOutline}`},"&[disabled]":{color:qt.colorTextDisabled,backgroundColor:qt.colorBgContainerDisabled,borderColor:qt.colorBorder,cursor:"not-allowed"}}}}},$n=qt=>{const{componentCls:Zt}=qt;return{[`${Zt}-jump-prev, ${Zt}-jump-next`]:{outline:0,[`${Zt}-item-container`]:{position:"relative",[`${Zt}-item-link-icon`]:{color:qt.colorPrimary,fontSize:qt.fontSizeSM,opacity:0,transition:`all ${qt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Zt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:qt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:qt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:qt.paginationEllipsisTextIndent,opacity:1,transition:`all ${qt.motionDurationMid}`}},"&:hover":{[`${Zt}-item-link-icon`]:{opacity:1},[`${Zt}-item-ellipsis`]:{opacity:0}}},[` ${Zt}-prev, ${Zt}-jump-prev, ${Zt}-jump-next `]:{marginInlineEnd:qt.marginXS},[` ${Zt}-prev, ${Zt}-next, ${Zt}-jump-prev, ${Zt}-jump-next `]:{display:"inline-block",minWidth:qt.itemSize,height:qt.itemSize,color:qt.colorText,fontFamily:qt.fontFamily,lineHeight:`${qt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:qt.borderRadius,cursor:"pointer",transition:`all ${qt.motionDurationMid}`},[`${Zt}-prev, ${Zt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:qt.colorText,cursor:"pointer",userSelect:"none"},[`${Zt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:qt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${qt.lineWidth}px ${qt.lineType} transparent`,borderRadius:qt.borderRadius,outline:"none",transition:`all ${qt.motionDurationMid}`},[`&:hover ${Zt}-item-link`]:{backgroundColor:qt.colorBgTextHover},[`&:active ${Zt}-item-link`]:{backgroundColor:qt.colorBgTextActive},[`&${Zt}-disabled:hover`]:{[`${Zt}-item-link`]:{backgroundColor:"transparent"}}},[`${Zt}-slash`]:{marginInlineEnd:qt.paginationSlashMarginInlineEnd,marginInlineStart:qt.paginationSlashMarginInlineStart},[`${Zt}-options`]:{display:"inline-block",marginInlineStart:qt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:qt.controlHeight,marginInlineStart:qt.marginXS,lineHeight:`${qt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ee.ik)(qt)),{width:qt.controlHeightLG*1.25,height:qt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:qt.marginXS,marginInlineEnd:qt.marginXS})}}}},Qn=qt=>{const{componentCls:Zt}=qt;return{[`${Zt}-item`]:{display:"inline-block",minWidth:qt.itemSize,height:qt.itemSize,marginInlineEnd:qt.marginXS,fontFamily:qt.fontFamily,lineHeight:`${qt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${qt.lineWidth}px ${qt.lineType} transparent`,borderRadius:qt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${qt.paginationItemPaddingInline}px`,color:qt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Zt}-item-active)`]:{"&:hover":{transition:`all ${qt.motionDurationMid}`,backgroundColor:qt.colorBgTextHover},"&:active":{backgroundColor:qt.colorBgTextActive}},"&-active":{fontWeight:qt.fontWeightStrong,backgroundColor:qt.itemActiveBg,borderColor:qt.colorPrimary,a:{color:qt.colorPrimary},"&:hover":{borderColor:qt.colorPrimaryHover},"&:hover a":{color:qt.colorPrimaryHover}}}}},jt=qt=>{const{componentCls:Zt}=qt;return{[Zt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(qt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Zt}-total-text`]:{display:"inline-block",height:qt.itemSize,marginInlineEnd:qt.marginXS,lineHeight:`${qt.itemSize-2}px`,verticalAlign:"middle"}}),Qn(qt)),$n(qt)),Ce(qt)),In(qt)),dn(qt)),{[`@media only screen and (max-width: ${qt.screenLG}px)`]:{[`${Zt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${qt.screenSM}px)`]:{[`${Zt}-options`]:{display:"none"}}}),[`&${qt.componentCls}-rtl`]:{direction:"rtl"}}},Lt=qt=>{const{componentCls:Zt}=qt;return{[`${Zt}${Zt}-disabled:not(${Zt}-mini)`]:{"&, &:hover":{[`${Zt}-item-link`]:{borderColor:qt.colorBorder}},"&:focus-visible":{[`${Zt}-item-link`]:{borderColor:qt.colorBorder}},[`${Zt}-item, ${Zt}-item-link`]:{backgroundColor:qt.colorBgContainerDisabled,borderColor:qt.colorBorder,[`&:hover:not(${Zt}-item-active)`]:{backgroundColor:qt.colorBgContainerDisabled,borderColor:qt.colorBorder,a:{color:qt.colorTextDisabled}},[`&${Zt}-item-active`]:{backgroundColor:qt.itemActiveBgDisabled}},[`${Zt}-prev, ${Zt}-next`]:{"&:hover button":{backgroundColor:qt.colorBgContainerDisabled,borderColor:qt.colorBorder,color:qt.colorTextDisabled},[`${Zt}-item-link`]:{backgroundColor:qt.colorBgContainerDisabled,borderColor:qt.colorBorder}}},[`${Zt}:not(${Zt}-mini)`]:{[`${Zt}-prev, ${Zt}-next`]:{"&:hover button":{borderColor:qt.colorPrimaryHover,backgroundColor:qt.itemBg},[`${Zt}-item-link`]:{backgroundColor:qt.itemLinkBg,borderColor:qt.colorBorder},[`&:hover ${Zt}-item-link`]:{borderColor:qt.colorPrimary,backgroundColor:qt.itemBg,color:qt.colorPrimary},[`&${Zt}-disabled`]:{[`${Zt}-item-link`]:{borderColor:qt.colorBorder,color:qt.colorTextDisabled}}},[`${Zt}-item`]:{backgroundColor:qt.itemBg,border:`${qt.lineWidth}px ${qt.lineType} ${qt.colorBorder}`,[`&:hover:not(${Zt}-item-active)`]:{borderColor:qt.colorPrimary,backgroundColor:qt.itemBg,a:{color:qt.colorPrimary}},"&-active":{borderColor:qt.colorPrimary}}}}},xt=qt=>{const{componentCls:Zt}=qt;return{[`${Zt}:not(${Zt}-disabled)`]:{[`${Zt}-item`]:Object.assign({},(0,Ke.Qy)(qt)),[`${Zt}-jump-prev, ${Zt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Zt}-item-link-icon`]:{opacity:1},[`${Zt}-item-ellipsis`]:{opacity:0}},(0,Ke.oN)(qt))},[`${Zt}-prev, ${Zt}-next`]:{[`&:focus-visible ${Zt}-item-link`]:Object.assign({},(0,Ke.oN)(qt))}}}};var Tt=(0,gn.Z)("Pagination",qt=>{const Zt=(0,Bn.TS)(qt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:qt.marginXXS/2,paginationMiniQuickJumperInputWidth:qt.controlHeightLG*1.1,paginationItemPaddingInline:qt.marginXXS*1.5,paginationEllipsisLetterSpacing:qt.marginXXS/2,paginationSlashMarginInlineStart:qt.marginXXS,paginationSlashMarginInlineEnd:qt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ee.e5)(qt),(0,Ee.TM)(qt));return[jt(Zt),xt(Zt),qt.wireframe&&Lt(Zt)]},qt=>({itemBg:qt.colorBgContainer,itemSize:qt.controlHeight,itemSizeSM:qt.controlHeightSM,itemActiveBg:qt.colorBgContainer,itemLinkBg:qt.colorBgContainer,itemActiveColorDisabled:qt.colorTextDisabled,itemActiveBgDisabled:qt.controlItemBgActiveDisabled,itemInputBg:qt.colorBgContainer,miniOptionsSizeChangerTop:0})),Ft=function(qt,Zt){var fe={};for(var ce in qt)Object.prototype.hasOwnProperty.call(qt,ce)&&Zt.indexOf(ce)<0&&(fe[ce]=qt[ce]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ce=Object.getOwnPropertySymbols(qt);ne{const{prefixCls:Zt,selectPrefixCls:fe,className:ce,rootClassName:ne,style:Ne,size:hn,locale:an,selectComponentClass:_e,responsive:En,showSizeChanger:Ln}=qt,ye=Ft(qt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:on}=(0,ue.Z)(En),{getPrefixCls:Pn,direction:Cn,pagination:An={}}=It.useContext(We.E_),Jn=Pn("pagination",Zt),[ui,ni]=Tt(Jn),fi=Ln!=null?Ln:An.showSizeChanger,Bi=It.useMemo(()=>{const Mt=It.createElement("span",{className:`${Jn}-item-ellipsis`},"\u2022\u2022\u2022"),so=It.createElement("button",{className:`${Jn}-item-link`,type:"button",tabIndex:-1},Cn==="rtl"?It.createElement(Fe.Z,null):It.createElement(te.Z,null)),Ii=It.createElement("button",{className:`${Jn}-item-link`,type:"button",tabIndex:-1},Cn==="rtl"?It.createElement(te.Z,null):It.createElement(Fe.Z,null)),Wi=It.createElement("a",{className:`${Jn}-item-link`},It.createElement("div",{className:`${Jn}-item-container`},Cn==="rtl"?It.createElement(we.Z,{className:`${Jn}-item-link-icon`}):It.createElement(De,{className:`${Jn}-item-link-icon`}),Mt)),ki=It.createElement("a",{className:`${Jn}-item-link`},It.createElement("div",{className:`${Jn}-item-container`},Cn==="rtl"?It.createElement(De,{className:`${Jn}-item-link-icon`}):It.createElement(we.Z,{className:`${Jn}-item-link-icon`}),Mt));return{prevIcon:so,nextIcon:Ii,jumpPrevIcon:Wi,jumpNextIcon:ki}},[Cn,Jn]),[Ti]=(0,Ht.Z)("Pagination",Pe.Z),Di=Object.assign(Object.assign({},Ti),an),io=(0,Ue.Z)(hn),to=io==="small"||!!(on&&!io&&En),Ri=Pn("select",fe),Qi=me()({[`${Jn}-mini`]:to,[`${Jn}-rtl`]:Cn==="rtl"},An==null?void 0:An.className,ce,ne,ni),Zn=Object.assign(Object.assign({},An==null?void 0:An.style),Ne);return ui(It.createElement(Le,Object.assign({},Bi,ye,{style:Zn,prefixCls:Jn,selectPrefixCls:Ri,className:Qi,selectComponentClass:_e||(to?pn:ln),locale:Di,showSizeChanger:fi})))},pe=ee},39722:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{t5:function(){return te}});var vt=Pt(92310),It=Pt.n(vt),oe=Pt(55477),de=Pt(59301),$t=Pt(36355),Ut=Pt(77578),Jt=Pt(17356),De=function(re,me){var Ot={};for(var et in re)Object.prototype.hasOwnProperty.call(re,et)&&me.indexOf(et)<0&&(Ot[et]=re[et]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(re);nt{if(!(!me&&!Ot))return de.createElement(de.Fragment,null,me&&de.createElement("div",{className:`${re}-title`},(0,Ut.Z)(me)),de.createElement("div",{className:`${re}-inner-content`},(0,Ut.Z)(Ot)))},te=re=>{const{hashId:me,prefixCls:Ot,className:et,style:nt,placement:ht="top",title:at,content:ft,children:mt}=re;return de.createElement("div",{className:It()(me,Ot,`${Ot}-pure`,`${Ot}-placement-${ht}`,et),style:nt},de.createElement("div",{className:`${Ot}-arrow`}),de.createElement(oe.G,Object.assign({},re,{className:me,prefixCls:Ot}),mt||we(Ot,at,ft)))},Fe=re=>{const{prefixCls:me}=re,Ot=De(re,["prefixCls"]),{getPrefixCls:et}=de.useContext($t.E_),nt=et("popover",me),[ht,at]=(0,Jt.Z)(nt);return ht(de.createElement(te,Object.assign({},Ot,{prefixCls:nt,hashId:at})))};Ve.ZP=Fe},60324:function(Sn,Ve,Pt){"use strict";var vt=Pt(92310),It=Pt.n(vt),oe=Pt(59301),de=Pt(77578),$t=Pt(62892),Ut=Pt(36355),Jt=Pt(6848),De=Pt(39722),we=Pt(17356),te=function(me,Ot){var et={};for(var nt in me)Object.prototype.hasOwnProperty.call(me,nt)&&Ot.indexOf(nt)<0&&(et[nt]=me[nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(me);ht{let{title:Ot,content:et,prefixCls:nt}=me;return oe.createElement(oe.Fragment,null,Ot&&oe.createElement("div",{className:`${nt}-title`},(0,de.Z)(Ot)),oe.createElement("div",{className:`${nt}-inner-content`},(0,de.Z)(et)))},re=oe.forwardRef((me,Ot)=>{const{prefixCls:et,title:nt,content:ht,overlayClassName:at,placement:ft="top",trigger:mt="hover",mouseEnterDelay:wt=.1,mouseLeaveDelay:Et=.1,overlayStyle:Nt={}}=me,Dt=te(me,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:At}=oe.useContext(Ut.E_),Kt=At("popover",et),[Wt,xe]=(0,we.Z)(Kt),Vt=At(),Ie=It()(at,xe);return Wt(oe.createElement(Jt.Z,Object.assign({placement:ft,trigger:mt,mouseEnterDelay:wt,mouseLeaveDelay:Et,overlayStyle:Nt},Dt,{prefixCls:Kt,overlayClassName:Ie,ref:Ot,overlay:nt||ht?oe.createElement(Fe,{prefixCls:Kt,title:nt,content:ht}):null,transitionName:(0,$t.m)(Vt,"zoom-big",Dt.transitionName),"data-popover-inject":!0})))});re._InternalPanelDoNotUseOrYouWillBeFired=De.ZP,Ve.Z=re},17356:function(Sn,Ve,Pt){"use strict";var vt=Pt(17313),It=Pt(29878),oe=Pt(19447),de=Pt(33166),$t=Pt(83116),Ut=Pt(37613);const Jt=te=>{const{componentCls:Fe,popoverColor:re,minWidth:me,fontWeightStrong:Ot,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:ht,borderRadiusLG:at,zIndexPopup:ft,marginXS:mt,colorBgElevated:wt,popoverBg:Et}=te;return[{[Fe]:Object.assign(Object.assign({},(0,vt.Wf)(te)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ft,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Fe}-content`]:{position:"relative"},[`${Fe}-inner`]:{backgroundColor:Et,backgroundClip:"padding-box",borderRadius:at,boxShadow:nt,padding:et},[`${Fe}-title`]:{minWidth:me,marginBottom:mt,color:ht,fontWeight:Ot},[`${Fe}-inner-content`]:{color:re}})},(0,oe.ZP)(te,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Fe}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow,display:"inline-block",[`${Fe}-content`]:{display:"inline-block"}}}]},De=te=>{const{componentCls:Fe}=te;return{[Fe]:de.i.map(re=>{const me=te[`${re}6`];return{[`&${Fe}-${re}`]:{"--antd-arrow-background-color":me,[`${Fe}-inner`]:{backgroundColor:me},[`${Fe}-arrow`]:{background:"transparent"}}}})}},we=te=>{const{componentCls:Fe,lineWidth:re,lineType:me,colorSplit:Ot,paddingSM:et,controlHeight:nt,fontSize:ht,lineHeight:at,padding:ft}=te,mt=nt-Math.round(ht*at),wt=mt/2,Et=mt/2-re,Nt=ft;return{[Fe]:{[`${Fe}-inner`]:{padding:0},[`${Fe}-title`]:{margin:0,padding:`${wt}px ${Nt}px ${Et}px`,borderBottom:`${re}px ${me} ${Ot}`},[`${Fe}-inner-content`]:{padding:`${et}px ${Nt}px`}}}};Ve.Z=(0,$t.Z)("Popover",te=>{const{colorBgElevated:Fe,colorText:re,wireframe:me}=te,Ot=(0,Ut.TS)(te,{popoverPadding:12,popoverBg:Fe,popoverColor:re});return[Jt(Ot),De(Ot),me&&we(Ot),(0,It._y)(Ot,"zoom-big")]},te=>({width:177,minWidth:177,zIndexPopup:te.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Ln}});var vt=Pt(59301),It=Pt(29679),oe=Pt(40001),de=Pt(19248),$t=Pt(99267),Ut=Pt(92310),Jt=Pt.n(Ut),De=Pt(2738),we=Pt(36355),te=Pt(96663),Fe=Pt(44127),re=Pt(6620),me={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ot=function(){var on=(0,vt.useRef)([]),Pn=(0,vt.useRef)(null);return(0,vt.useEffect)(function(){var Cn=Date.now(),An=!1;on.current.forEach(function(Jn){if(Jn){An=!0;var ui=Jn.style;ui.transitionDuration=".3s, .3s, .3s, .06s",Pn.current&&Cn-Pn.current<100&&(ui.transitionDuration="0s, 0s")}}),An&&(Pn.current=Date.now())}),on.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nt=function(on){var Pn=(0,Fe.Z)((0,Fe.Z)({},me),on),Cn=Pn.className,An=Pn.percent,Jn=Pn.prefixCls,ui=Pn.strokeColor,ni=Pn.strokeLinecap,fi=Pn.strokeWidth,Bi=Pn.style,Ti=Pn.trailColor,Di=Pn.trailWidth,io=Pn.transition,to=(0,re.Z)(Pn,et);delete to.gapPosition;var Ri=Array.isArray(An)?An:[An],Qi=Array.isArray(ui)?ui:[ui],Zn=Ot(),Mt=fi/2,so=100-fi/2,Ii="M ".concat(ni==="round"?Mt:0,",").concat(Mt,` L `).concat(ni==="round"?so:100,",").concat(Mt),Wi="0 0 100 ".concat(fi),ki=0;return vt.createElement("svg",(0,te.Z)({className:Jt()("".concat(Jn,"-line"),Cn),viewBox:Wi,preserveAspectRatio:"none",style:Bi},to),vt.createElement("path",{className:"".concat(Jn,"-line-trail"),d:Ii,strokeLinecap:ni,stroke:Ti,strokeWidth:Di||fi,fillOpacity:"0"}),Ri.map(function(Bo,Mo){var ai=1;switch(ni){case"round":ai=1-fi/100;break;case"square":ai=1-fi/2/100;break;default:ai=1;break}var di={strokeDasharray:"".concat(Bo*ai,"px, 100px"),strokeDashoffset:"-".concat(ki,"px"),transition:io||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ae=Qi[Mo]||Qi[Qi.length-1];return ki+=Bo,vt.createElement("path",{key:Mo,className:"".concat(Jn,"-line-path"),d:Ii,strokeLinecap:ni,stroke:Ae,strokeWidth:fi,fillOpacity:"0",ref:function(_t){Zn[Mo]=_t},style:di})}))},ht=nt,at=Pt(20135),ft=Pt(72071),mt=Pt(47273),wt=0,Et=(0,mt.Z)();function Nt(){var ye;return Et?(ye=wt,wt+=1):ye="TEST_OR_SSR",ye}var Dt=function(ye){var on=vt.useState(),Pn=(0,ft.Z)(on,2),Cn=Pn[0],An=Pn[1];return vt.useEffect(function(){An("rc_progress_".concat(Nt()))},[]),ye||Cn},At=function(on){var Pn=on.bg,Cn=on.children;return vt.createElement("div",{style:{width:"100%",height:"100%",background:Pn}},Cn)};function Kt(ye,on){return Object.keys(ye).map(function(Pn){var Cn=parseFloat(Pn),An="".concat(Math.floor(Cn*on),"%");return"".concat(ye[Pn]," ").concat(An)})}var Wt=vt.forwardRef(function(ye,on){var Pn=ye.prefixCls,Cn=ye.color,An=ye.gradientId,Jn=ye.radius,ui=ye.style,ni=ye.ptg,fi=ye.strokeLinecap,Bi=ye.strokeWidth,Ti=ye.size,Di=ye.gapDegree,io=Cn&&(0,at.Z)(Cn)==="object",to=io?"#FFF":void 0,Ri=Ti/2,Qi=vt.createElement("circle",{className:"".concat(Pn,"-circle-path"),r:Jn,cx:Ri,cy:Ri,stroke:to,strokeLinecap:fi,strokeWidth:Bi,opacity:ni===0?0:1,style:ui,ref:on});if(!io)return Qi;var Zn="".concat(An,"-conic"),Mt=Di?"".concat(180+Di/2,"deg"):"0deg",so=Kt(Cn,(360-Di)/360),Ii=Kt(Cn,1),Wi="conic-gradient(from ".concat(Mt,", ").concat(so.join(", "),")"),ki="linear-gradient(to ".concat(Di?"bottom":"top",", ").concat(Ii.join(", "),")");return vt.createElement(vt.Fragment,null,vt.createElement("mask",{id:Zn},Qi),vt.createElement("foreignObject",{x:0,y:0,width:Ti,height:Ti,mask:"url(#".concat(Zn,")")},vt.createElement(At,{bg:ki},vt.createElement(At,{bg:Wi}))))}),xe=Wt,Vt=100,Ie=function(on,Pn,Cn,An,Jn,ui,ni,fi,Bi,Ti){var Di=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,io=Cn/100*360*((360-ui)/360),to=ui===0?0:{bottom:0,top:180,left:90,right:-90}[ni],Ri=(100-An)/100*Pn;Bi==="round"&&An!==100&&(Ri+=Ti/2,Ri>=Pn&&(Ri=Pn-.01));var Qi=Vt/2;return{stroke:typeof fi=="string"?fi:void 0,strokeDasharray:"".concat(Pn,"px ").concat(on),strokeDashoffset:Ri+Di,transform:"rotate(".concat(Jn+io+to,"deg)"),transformOrigin:"".concat(Qi,"px ").concat(Qi,"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}},Se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ye(ye){var on=ye!=null?ye:[];return Array.isArray(on)?on:[on]}var Le=function(on){var Pn=(0,Fe.Z)((0,Fe.Z)({},me),on),Cn=Pn.id,An=Pn.prefixCls,Jn=Pn.steps,ui=Pn.strokeWidth,ni=Pn.trailWidth,fi=Pn.gapDegree,Bi=fi===void 0?0:fi,Ti=Pn.gapPosition,Di=Pn.trailColor,io=Pn.strokeLinecap,to=Pn.style,Ri=Pn.className,Qi=Pn.strokeColor,Zn=Pn.percent,Mt=(0,re.Z)(Pn,Se),so=Vt/2,Ii=Dt(Cn),Wi="".concat(Ii,"-gradient"),ki=so-ui/2,Bo=Math.PI*2*ki,Mo=Bi>0?90+Bi/2:-90,ai=Bo*((360-Bi)/360),di=(0,at.Z)(Jn)==="object"?Jn:{count:Jn,space:2},Ae=di.count,Be=di.space,_t=Ye(Zn),Je=Ye(Qi),cn=Je.find(function(le){return le&&(0,at.Z)(le)==="object"}),ve=cn&&(0,at.Z)(cn)==="object",ie=ve?"butt":io,Qe=Ie(Bo,ai,0,100,Mo,Bi,Ti,Di,ie,ui),yn=Ot(),Nn=function(){var mn=0;return _t.map(function(Gn,si){var Re=Je[si]||Je[Je.length-1],fn=Ie(Bo,ai,mn,Gn,Mo,Bi,Ti,Re,ie,ui);return mn+=Gn,vt.createElement(xe,{key:si,color:Re,ptg:Gn,radius:ki,prefixCls:An,gradientId:Wi,style:fn,strokeLinecap:ie,strokeWidth:ui,gapDegree:Bi,ref:function(je){yn[si]=je},size:Vt})}).reverse()},_n=function(){var mn=Math.round(Ae*(_t[0]/100)),Gn=100/Ae,si=0;return new Array(Ae).fill(null).map(function(Re,fn){var He=fn<=mn-1?Je[0]:Di,je=He&&(0,at.Z)(He)==="object"?"url(#".concat(Wi,")"):void 0,vn=Ie(Bo,ai,si,Gn,Mo,Bi,Ti,He,"butt",ui,Be);return si+=(ai-vn.strokeDashoffset+Be)*100/ai,vt.createElement("circle",{key:fn,className:"".concat(An,"-circle-path"),r:ki,cx:so,cy:so,stroke:je,strokeWidth:ui,opacity:1,style:vn,ref:function(bn){yn[fn]=bn}})})};return vt.createElement("svg",(0,te.Z)({className:Jt()("".concat(An,"-circle"),Ri),viewBox:"0 0 ".concat(Vt," ").concat(Vt),style:to,id:Cn,role:"presentation"},Mt),!Ae&&vt.createElement("circle",{className:"".concat(An,"-circle-trail"),r:ki,cx:so,cy:so,stroke:Di,strokeLinecap:ie,strokeWidth:ni||ui,style:Qe}),Ae?_n():Nn())},Pe=Le,We={Line:ht,Circle:Pe},Ue=Pt(6848),ue=Pt(93398);function Ht(ye){return!ye||ye<0?0:ye>100?100:ye}function ke(ye){let{success:on,successPercent:Pn}=ye,Cn=Pn;return on&&"progress"in on&&(Cn=on.progress),on&&"percent"in on&&(Cn=on.percent),Cn}const pn=ye=>{let{percent:on,success:Pn,successPercent:Cn}=ye;const An=Ht(ke({success:Pn,successPercent:Cn}));return[An,Ht(Ht(on)-An)]},ln=ye=>{let{success:on={},strokeColor:Pn}=ye;const{strokeColor:Cn}=on;return[Cn||ue.presetPrimaryColors.green,Pn||null]},Ee=(ye,on,Pn)=>{var Cn,An,Jn,ui;let ni=-1,fi=-1;if(on==="step"){const Bi=Pn.steps,Ti=Pn.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(ni=ye==="small"?2:14,fi=Ti!=null?Ti:8):typeof ye=="number"?[ni,fi]=[ye,ye]:[ni=14,fi=8]=ye,ni*=Bi}else if(on==="line"){const Bi=Pn==null?void 0:Pn.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?fi=Bi||(ye==="small"?6:8):typeof ye=="number"?[ni,fi]=[ye,ye]:[ni=-1,fi=8]=ye}else(on==="circle"||on==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[ni,fi]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[ni,fi]=[ye,ye]:(ni=(An=(Cn=ye[0])!==null&&Cn!==void 0?Cn:ye[1])!==null&&An!==void 0?An:120,fi=(ui=(Jn=ye[0])!==null&&Jn!==void 0?Jn:ye[1])!==null&&ui!==void 0?ui:120));return[ni,fi]},Ke=3,gn=ye=>Ke/ye*100;var dn=ye=>{const{prefixCls:on,trailColor:Pn=null,strokeLinecap:Cn="round",gapPosition:An,gapDegree:Jn,width:ui=120,type:ni,children:fi,success:Bi,size:Ti=ui}=ye,[Di,io]=Ee(Ti,"circle");let{strokeWidth:to}=ye;to===void 0&&(to=Math.max(gn(Di),6));const Ri={width:Di,height:io,fontSize:Di*.15+6},Qi=vt.useMemo(()=>{if(Jn||Jn===0)return Jn;if(ni==="dashboard")return 75},[Jn,ni]),Zn=An||ni==="dashboard"&&"bottom"||void 0,Mt=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",so=ln({success:Bi,strokeColor:ye.strokeColor}),Ii=Jt()(`${on}-inner`,{[`${on}-circle-gradient`]:Mt}),Wi=vt.createElement(Pe,{percent:pn(ye),strokeWidth:to,trailWidth:to,strokeColor:so,strokeLinecap:Cn,trailColor:Pn,prefixCls:on,gapDegree:Qi,gapPosition:Zn});return vt.createElement("div",{className:Ii,style:Ri},Di<=20?vt.createElement(Ue.Z,{title:fi},vt.createElement("span",null,Wi)):vt.createElement(vt.Fragment,null,Wi,fi))},In=function(ye,on){var Pn={};for(var Cn in ye)Object.prototype.hasOwnProperty.call(ye,Cn)&&on.indexOf(Cn)<0&&(Pn[Cn]=ye[Cn]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,Cn=Object.getOwnPropertySymbols(ye);An{let on=[];return Object.keys(ye).forEach(Pn=>{const Cn=parseFloat(Pn.replace(/%/g,""));isNaN(Cn)||on.push({key:Cn,value:ye[Pn]})}),on=on.sort((Pn,Cn)=>Pn.key-Cn.key),on.map(Pn=>{let{key:Cn,value:An}=Pn;return`${An} ${Cn}%`}).join(", ")},$n=(ye,on)=>{const{from:Pn=ue.presetPrimaryColors.blue,to:Cn=ue.presetPrimaryColors.blue,direction:An=on==="rtl"?"to left":"to right"}=ye,Jn=In(ye,["from","to","direction"]);if(Object.keys(Jn).length!==0){const ui=Ce(Jn);return{backgroundImage:`linear-gradient(${An}, ${ui})`}}return{backgroundImage:`linear-gradient(${An}, ${Pn}, ${Cn})`}};var jt=ye=>{const{prefixCls:on,direction:Pn,percent:Cn,size:An,strokeWidth:Jn,strokeColor:ui,strokeLinecap:ni="round",children:fi,trailColor:Bi=null,success:Ti}=ye,Di=ui&&typeof ui!="string"?$n(ui,Pn):{backgroundColor:ui},io=ni==="square"||ni==="butt"?0:void 0,to={backgroundColor:Bi||void 0,borderRadius:io},Ri=An!=null?An:[-1,Jn||(An==="small"?6:8)],[Qi,Zn]=Ee(Ri,"line",{strokeWidth:Jn}),Mt=Object.assign({width:`${Ht(Cn)}%`,height:Zn,borderRadius:io},Di),so=ke(ye),Ii={width:`${Ht(so)}%`,height:Zn,borderRadius:io,backgroundColor:Ti==null?void 0:Ti.strokeColor},Wi={width:Qi<0?"100%":Qi,height:Zn};return vt.createElement(vt.Fragment,null,vt.createElement("div",{className:`${on}-outer`,style:Wi},vt.createElement("div",{className:`${on}-inner`,style:to},vt.createElement("div",{className:`${on}-bg`,style:Mt}),so!==void 0?vt.createElement("div",{className:`${on}-success-bg`,style:Ii}):null)),fi)},xt=ye=>{const{size:on,steps:Pn,percent:Cn=0,strokeWidth:An=8,strokeColor:Jn,trailColor:ui=null,prefixCls:ni,children:fi}=ye,Bi=Math.round(Pn*(Cn/100)),Ti=on==="small"?2:14,Di=on!=null?on:[Ti,An],[io,to]=Ee(Di,"step",{steps:Pn,strokeWidth:An}),Ri=io/Pn,Qi=new Array(Pn);for(let Zn=0;Zn{const on=ye?"100%":"-100%";return new Tt.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${on}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${on}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},qt=ye=>{const{componentCls:on,iconCls:Pn}=ye;return{[on]:Object.assign(Object.assign({},(0,Ft.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${on}-outer`]:{display:"inline-block",width:"100%"},[`&${on}-show-info`]:{[`${on}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${on}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${on}-inner:not(${on}-circle-gradient)`]:{[`${on}-circle-path`]:{stroke:ye.defaultColor}},[`${on}-success-bg, ${on}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${on}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${on}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Pn]:{fontSize:ye.fontSize}},[`&${on}-status-active`]:{[`${on}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:pe(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${on}-rtl${on}-status-active`]:{[`${on}-bg::before`]:{animationName:pe(!0)}},[`&${on}-status-exception`]:{[`${on}-bg`]:{backgroundColor:ye.colorError},[`${on}-text`]:{color:ye.colorError}},[`&${on}-status-exception ${on}-inner:not(${on}-circle-gradient)`]:{[`${on}-circle-path`]:{stroke:ye.colorError}},[`&${on}-status-success`]:{[`${on}-bg`]:{backgroundColor:ye.colorSuccess},[`${on}-text`]:{color:ye.colorSuccess}},[`&${on}-status-success ${on}-inner:not(${on}-circle-gradient)`]:{[`${on}-circle-path`]:{stroke:ye.colorSuccess}}})}},Zt=ye=>{const{componentCls:on,iconCls:Pn}=ye;return{[on]:{[`${on}-circle-trail`]:{stroke:ye.remainingColor},[`&${on}-circle ${on}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${on}-circle ${on}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Pn]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${on}-circle&-status-exception`]:{[`${on}-text`]:{color:ye.colorError}},[`${on}-circle&-status-success`]:{[`${on}-text`]:{color:ye.colorSuccess}}},[`${on}-inline-circle`]:{lineHeight:1,[`${on}-inner`]:{verticalAlign:"bottom"}}}},fe=ye=>{const{componentCls:on}=ye;return{[on]:{[`${on}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},ce=ye=>{const{componentCls:on,iconCls:Pn}=ye;return{[on]:{[`${on}-small&-line, ${on}-small&-line ${on}-text ${Pn}`]:{fontSize:ye.fontSizeSM}}}};var ne=(0,yt.Z)("Progress",ye=>{const on=ye.marginXXS/2,Pn=(0,ee.TS)(ye,{progressStepMarginInlineEnd:on,progressStepMinWidth:on,progressActiveMotionDuration:"2.4s"});return[qt(Pn),Zt(Pn),fe(Pn),ce(Pn)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ne=function(ye,on){var Pn={};for(var Cn in ye)Object.prototype.hasOwnProperty.call(ye,Cn)&&on.indexOf(Cn)<0&&(Pn[Cn]=ye[Cn]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,Cn=Object.getOwnPropertySymbols(ye);An{const{prefixCls:Pn,className:Cn,rootClassName:An,steps:Jn,strokeColor:ui,percent:ni=0,size:fi="default",showInfo:Bi=!0,type:Ti="line",status:Di,format:io,style:to}=ye,Ri=Ne(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Qi=vt.useMemo(()=>{var _t,Je;const cn=ke(ye);return parseInt(cn!==void 0?(_t=cn!=null?cn:0)===null||_t===void 0?void 0:_t.toString():(Je=ni!=null?ni:0)===null||Je===void 0?void 0:Je.toString(),10)},[ni,ye.success,ye.successPercent]),Zn=vt.useMemo(()=>!an.includes(Di)&&Qi>=100?"success":Di||"normal",[Di,Qi]),{getPrefixCls:Mt,direction:so,progress:Ii}=vt.useContext(we.E_),Wi=Mt("progress",Pn),[ki,Bo]=ne(Wi),Mo=vt.useMemo(()=>{if(!Bi)return null;const _t=ke(ye);let Je;const cn=io||(ie=>`${ie}%`),ve=Ti==="line";return io||Zn!=="exception"&&Zn!=="success"?Je=cn(Ht(ni),Ht(_t)):Zn==="exception"?Je=ve?vt.createElement(de.Z,null):vt.createElement($t.Z,null):Zn==="success"&&(Je=ve?vt.createElement(It.Z,null):vt.createElement(oe.Z,null)),vt.createElement("span",{className:`${Wi}-text`,title:typeof Je=="string"?Je:void 0},Je)},[Bi,ni,Qi,Zn,Ti,Wi,io]),ai=Array.isArray(ui)?ui[0]:ui,di=typeof ui=="string"||Array.isArray(ui)?ui:void 0;let Ae;Ti==="line"?Ae=Jn?vt.createElement(xt,Object.assign({},ye,{strokeColor:di,prefixCls:Wi,steps:Jn}),Mo):vt.createElement(jt,Object.assign({},ye,{strokeColor:ai,prefixCls:Wi,direction:so}),Mo):(Ti==="circle"||Ti==="dashboard")&&(Ae=vt.createElement(dn,Object.assign({},ye,{strokeColor:ai,prefixCls:Wi,progressStatus:Zn}),Mo));const Be=Jt()(Wi,`${Wi}-status-${Zn}`,`${Wi}-${Ti==="dashboard"&&"circle"||Jn&&"steps"||Ti}`,{[`${Wi}-inline-circle`]:Ti==="circle"&&Ee(fi,"circle")[0]<=20,[`${Wi}-show-info`]:Bi,[`${Wi}-${fi}`]:typeof fi=="string",[`${Wi}-rtl`]:so==="rtl"},Ii==null?void 0:Ii.className,Cn,An,Bo);return ki(vt.createElement("div",Object.assign({ref:on,style:Object.assign(Object.assign({},Ii==null?void 0:Ii.style),to),className:Be,role:"progressbar","aria-valuenow":Qi},(0,De.Z)(Ri,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ae))}),Ln=En},13570:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Ht}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},de=oe,$t=Pt(7657),Ut=function(pn,ln){return It.createElement($t.Z,(0,vt.Z)({},pn,{ref:ln,icon:de}))},Jt=It.forwardRef(Ut),De=Jt,we=Pt(92310),te=Pt.n(we),Fe=Pt(90493),re=Pt(72071),me=Pt(6620),Ot=Pt(18929),et=Pt(10228),nt=Pt(26112);function ht(ke,pn){var ln=ke.disabled,Ee=ke.prefixCls,Ke=ke.character,gn=ke.characterRender,Bn=ke.index,dn=ke.count,In=ke.value,Ce=ke.allowHalf,$n=ke.focused,Qn=ke.onHover,jt=ke.onClick,Lt=function(Zt){Qn(Zt,Bn)},xt=function(Zt){jt(Zt,Bn)},Tt=function(Zt){Zt.keyCode===et.Z.ENTER&&jt(Zt,Bn)},Ft=Bn+1,yt=new Set([Ee]);In===0&&Bn===0&&$n?yt.add("".concat(Ee,"-focused")):Ce&&In+.5>=Ft&&InBn?"true":"false","aria-posinset":Bn+1,"aria-setsize":dn,tabIndex:ln?-1:0},It.createElement("div",{className:"".concat(Ee,"-first")},ee),It.createElement("div",{className:"".concat(Ee,"-second")},ee)));return gn&&(pe=gn(pe,ke)),pe}var at=It.forwardRef(ht);function ft(){var ke=It.useRef({});function pn(Ee){return ke.current[Ee]}function ln(Ee){return function(Ke){ke.current[Ee]=Ke}}return[pn,ln]}function mt(ke){var pn=ke.pageXOffset,ln="scrollLeft";if(typeof pn!="number"){var Ee=ke.document;pn=Ee.documentElement[ln],typeof pn!="number"&&(pn=Ee.body[ln])}return pn}function wt(ke){var pn,ln,Ee=ke.ownerDocument,Ke=Ee.body,gn=Ee&&Ee.documentElement,Bn=ke.getBoundingClientRect();return pn=Bn.left,ln=Bn.top,pn-=gn.clientLeft||Ke.clientLeft||0,ln-=gn.clientTop||Ke.clientTop||0,{left:pn,top:ln}}function Et(ke){var pn=wt(ke),ln=ke.ownerDocument,Ee=ln.defaultView||ln.parentWindow;return pn.left+=mt(Ee),pn.left}var Nt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Dt(ke,pn){var ln,Ee=ke.prefixCls,Ke=Ee===void 0?"rc-rate":Ee,gn=ke.className,Bn=ke.defaultValue,dn=ke.value,In=ke.count,Ce=In===void 0?5:In,$n=ke.allowHalf,Qn=$n===void 0?!1:$n,jt=ke.allowClear,Lt=jt===void 0?!0:jt,xt=ke.character,Tt=xt===void 0?"\u2605":xt,Ft=ke.characterRender,yt=ke.disabled,ee=ke.direction,pe=ee===void 0?"ltr":ee,qt=ke.tabIndex,Zt=qt===void 0?0:qt,fe=ke.autoFocus,ce=ke.onHoverChange,ne=ke.onChange,Ne=ke.onFocus,hn=ke.onBlur,an=ke.onKeyDown,_e=ke.onMouseLeave,En=(0,me.Z)(ke,Nt),Ln=ft(),ye=(0,re.Z)(Ln,2),on=ye[0],Pn=ye[1],Cn=It.useRef(null),An=function(){if(!yt){var ie;(ie=Cn.current)===null||ie===void 0||ie.focus()}};It.useImperativeHandle(pn,function(){return{focus:An,blur:function(){if(!yt){var ie;(ie=Cn.current)===null||ie===void 0||ie.blur()}}}});var Jn=(0,Ot.Z)(Bn||0,{value:dn}),ui=(0,re.Z)(Jn,2),ni=ui[0],fi=ui[1],Bi=(0,Ot.Z)(null),Ti=(0,re.Z)(Bi,2),Di=Ti[0],io=Ti[1],to=function(ie,Qe){var yn=pe==="rtl",Nn=ie+1;if(Qn){var _n=on(ie),le=Et(_n),mn=_n.clientWidth;(yn&&Qe-le>mn/2||!yn&&Qe-le0&&!yn||Qe===et.Z.RIGHT&&Nn>0&&yn?(Qn?Nn-=.5:Nn-=1,Ri(Nn),ie.preventDefault()):Qe===et.Z.LEFT&&Nn{const{componentCls:pn}=ke;return{[`${pn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ke.marginXS},"> div":{transition:`all ${ke.motionDurationMid}, outline 0s`,"&:hover":{transform:ke.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ke.lineWidth}px dashed ${ke.starColor}`,transform:ke.starHoverScale}},"&-first, &-second":{color:ke.starBg,transition:`all ${ke.motionDurationMid}`,userSelect:"none",[ke.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${pn}-star-first, &-half ${pn}-star-second`]:{opacity:1},[`&-half ${pn}-star-first, &-full ${pn}-star-second`]:{color:"inherit"}}}},Le=ke=>({[`&-rtl${ke.componentCls}`]:{direction:"rtl"}}),Pe=ke=>{const{componentCls:pn}=ke;return{[pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Vt.Wf)(ke)),{display:"inline-block",margin:0,padding:0,color:ke.starColor,fontSize:ke.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${pn} ${pn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ye(ke)),{[`+ ${pn}-text`]:{display:"inline-block",marginInlineStart:ke.marginXS,fontSize:ke.fontSize}}),Le(ke))}};var We=(0,Ie.Z)("Rate",ke=>{const pn=(0,Se.TS)(ke,{});return[Pe(pn)]},ke=>({starColor:ke.yellow6,starSize:ke.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ke.colorFillContent})),Ue=function(ke,pn){var ln={};for(var Ee in ke)Object.prototype.hasOwnProperty.call(ke,Ee)&&pn.indexOf(Ee)<0&&(ln[Ee]=ke[Ee]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ee=Object.getOwnPropertySymbols(ke);Ke{const{prefixCls:ln,className:Ee,rootClassName:Ke,style:gn,tooltips:Bn,character:dn=It.createElement(De,null)}=ke,In=Ue(ke,["prefixCls","className","rootClassName","style","tooltips","character"]),Ce=(yt,ee)=>{let{index:pe}=ee;return Bn?It.createElement(xe.Z,{title:Bn[pe]},yt):yt},{getPrefixCls:$n,direction:Qn,rate:jt}=It.useContext(Wt.E_),Lt=$n("rate",ln),[xt,Tt]=We(Lt),Ft=Object.assign(Object.assign({},jt==null?void 0:jt.style),gn);return xt(It.createElement(Kt,Object.assign({ref:pn,character:dn,characterRender:Ce},In,{className:te()(Ee,Ke,Tt,jt==null?void 0:jt.className),style:Ft,prefixCls:Lt,direction:Qn})))})},57809:function(Sn,Ve,Pt){"use strict";var vt=Pt(92310),It=Pt.n(vt),oe=Pt(77861),de=Pt(2738),$t=Pt(59301),Ut=Pt(53487),Jt=Pt(62892),De=Pt(19080),we=Pt(36355),te=Pt(1684),Fe=Pt(93891),re=Pt(19716),me=Pt(32441),Ot=Pt(33234),et=Pt(14154),nt=Pt(58582),ht=Pt(84443),at=Pt(66339),ft=function(Dt,At){var Kt={};for(var Wt in Dt)Object.prototype.hasOwnProperty.call(Dt,Wt)&&At.indexOf(Wt)<0&&(Kt[Wt]=Dt[Wt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Wt=Object.getOwnPropertySymbols(Dt);xe{var Kt,{prefixCls:Wt,bordered:xe=!0,className:Vt,rootClassName:Ie,getPopupContainer:Se,popupClassName:Ye,dropdownClassName:Le,listHeight:Pe=256,placement:We,listItemHeight:Ue=24,size:ue,disabled:Ht,notFoundContent:ke,status:pn,builtinPlacements:ln,dropdownMatchSelectWidth:Ee,popupMatchSelectWidth:Ke,direction:gn,style:Bn,allowClear:dn}=Dt,In=ft(Dt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ce,getPrefixCls:$n,renderEmpty:Qn,direction:jt,virtual:Lt,popupMatchSelectWidth:xt,popupOverflow:Tt,select:Ft}=$t.useContext(we.E_),yt=$n("select",Wt),ee=$n(),pe=gn!=null?gn:jt,{compactSize:qt,compactItemClassnames:Zt}=(0,Ot.ri)(yt,pe),[fe,ce]=(0,et.Z)(yt),ne=$t.useMemo(()=>{const{mode:Zn}=In;if(Zn!=="combobox")return Zn===mt?"combobox":Zn},[In.mode]),Ne=ne==="multiple"||ne==="tags",hn=(0,ht.Z)(In.suffixIcon,In.showArrow),an=(Kt=Ke!=null?Ke:Ee)!==null&&Kt!==void 0?Kt:xt,{status:_e,hasFeedback:En,isFormItemInput:Ln,feedbackIcon:ye}=$t.useContext(me.aM),on=(0,De.F)(_e,pn);let Pn;ke!==void 0?Pn=ke:ne==="combobox"?Pn=null:Pn=(Qn==null?void 0:Qn("Select"))||$t.createElement(Fe.Z,{componentName:"Select"});const{suffixIcon:Cn,itemIcon:An,removeIcon:Jn,clearIcon:ui}=(0,at.Z)(Object.assign(Object.assign({},In),{multiple:Ne,hasFeedback:En,feedbackIcon:ye,showSuffixIcon:hn,prefixCls:yt,showArrow:In.showArrow,componentName:"Select"})),ni=dn===!0?{clearIcon:ui}:dn,fi=(0,de.Z)(In,["suffixIcon","itemIcon"]),Bi=It()(Ye||Le,{[`${yt}-dropdown-${pe}`]:pe==="rtl"},Ie,ce),Ti=(0,re.Z)(Zn=>{var Mt;return(Mt=ue!=null?ue:qt)!==null&&Mt!==void 0?Mt:Zn}),Di=$t.useContext(te.Z),io=Ht!=null?Ht:Di,to=It()({[`${yt}-lg`]:Ti==="large",[`${yt}-sm`]:Ti==="small",[`${yt}-rtl`]:pe==="rtl",[`${yt}-borderless`]:!xe,[`${yt}-in-form-item`]:Ln},(0,De.Z)(yt,on,En),Zt,Ft==null?void 0:Ft.className,Vt,Ie,ce),Ri=$t.useMemo(()=>We!==void 0?We:pe==="rtl"?"bottomRight":"bottomLeft",[We,pe]),Qi=(0,nt.Z)(ln,Tt);return fe($t.createElement(oe.ZP,Object.assign({ref:At,virtual:Lt,showSearch:Ft==null?void 0:Ft.showSearch},fi,{style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Bn),dropdownMatchSelectWidth:an,builtinPlacements:Qi,transitionName:(0,Jt.m)(ee,"slide-up",In.transitionName),listHeight:Pe,listItemHeight:Ue,mode:ne,prefixCls:yt,placement:Ri,direction:pe,suffixIcon:Cn,menuItemSelectedIcon:An,removeIcon:Jn,allowClear:ni,notFoundContent:Pn,className:to,getPopupContainer:Se||Ce,dropdownClassName:Bi,disabled:io})))},Et=$t.forwardRef(wt),Nt=(0,Ut.Z)(Et);Et.SECRET_COMBOBOX_MODE_DO_NOT_USE=mt,Et.Option=oe.Wx,Et.OptGroup=oe.Xo,Et._InternalPanelDoNotUseOrYouWillBeFired=Nt,Ve.default=Et},14154:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Et}});var vt=Pt(17313),It=Pt(74207),oe=Pt(37613),de=Pt(83116),$t=Pt(13826),Ut=Pt(92899);const Jt=Nt=>{const{optionHeight:Dt,optionFontSize:At,optionLineHeight:Kt,optionPadding:Wt}=Nt;return{position:"relative",display:"block",minHeight:Dt,padding:Wt,color:Nt.colorText,fontWeight:"normal",fontSize:At,lineHeight:Kt,boxSizing:"border-box"}};var we=Nt=>{const{antCls:Dt,componentCls:At}=Nt,Kt=`${At}-item`,Wt=`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active`,xe=`&${Dt}-slide-up-appear${Dt}-slide-up-appear-active`,Vt=`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active`,Ie=`${At}-dropdown-placement-`;return[{[`${At}-dropdown`]:Object.assign(Object.assign({},(0,vt.Wf)(Nt)),{position:"absolute",top:-9999,zIndex:Nt.zIndexPopup,boxSizing:"border-box",padding:Nt.paddingXXS,overflow:"hidden",fontSize:Nt.fontSize,fontVariant:"initial",backgroundColor:Nt.colorBgElevated,borderRadius:Nt.borderRadiusLG,outline:"none",boxShadow:Nt.boxShadowSecondary,[` ${Wt}${Ie}bottomLeft, ${xe}${Ie}bottomLeft `]:{animationName:$t.fJ},[` ${Wt}${Ie}topLeft, ${xe}${Ie}topLeft, ${Wt}${Ie}topRight, ${xe}${Ie}topRight `]:{animationName:$t.Qt},[`${Vt}${Ie}bottomLeft`]:{animationName:$t.Uw},[` ${Vt}${Ie}topLeft, ${Vt}${Ie}topRight `]:{animationName:$t.ly},"&-hidden":{display:"none"},[`${Kt}`]:Object.assign(Object.assign({},Jt(Nt)),{cursor:"pointer",transition:`background ${Nt.motionDurationSlow} ease`,borderRadius:Nt.borderRadiusSM,"&-group":{color:Nt.colorTextDescription,fontSize:Nt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},vt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Kt}-option-disabled)`]:{backgroundColor:Nt.optionActiveBg},[`&-selected:not(${Kt}-option-disabled)`]:{color:Nt.optionSelectedColor,fontWeight:Nt.optionSelectedFontWeight,backgroundColor:Nt.optionSelectedBg,[`${Kt}-option-state`]:{color:Nt.colorPrimary}},"&-disabled":{[`&${Kt}-option-selected`]:{backgroundColor:Nt.colorBgContainerDisabled},color:Nt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Nt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,$t.oN)(Nt,"slide-up"),(0,$t.oN)(Nt,"slide-down"),(0,Ut.Fm)(Nt,"move-up"),(0,Ut.Fm)(Nt,"move-down")]};const te=2,Fe=Nt=>{let{controlHeightSM:Dt,controlHeight:At,lineWidth:Kt}=Nt;const Wt=(At-Dt)/2-Kt,xe=Math.ceil(Wt/2);return[Wt,xe]};function re(Nt,Dt){const{componentCls:At,iconCls:Kt}=Nt,Wt=`${At}-selection-overflow`,xe=Nt.multipleSelectItemHeight,[Vt]=Fe(Nt),Ie=Dt?`${At}-${Dt}`:"";return{[`${At}-multiple${Ie}`]:{fontSize:Nt.fontSize,[Wt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${At}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Vt-te}px ${te*2}px`,borderRadius:Nt.borderRadius,[`${At}-show-search&`]:{cursor:"text"},[`${At}-disabled&`]:{background:Nt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${te}px 0`,lineHeight:`${xe}px`,visibility:"hidden",content:'"\\a0"'}},[` &${At}-show-arrow ${At}-selector, &${At}-allow-clear ${At}-selector `]:{paddingInlineEnd:Nt.fontSizeIcon+Nt.controlPaddingHorizontal},[`${At}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:xe,marginTop:te,marginBottom:te,lineHeight:`${xe-Nt.lineWidth*2}px`,background:Nt.multipleItemBg,border:`${Nt.lineWidth}px ${Nt.lineType} ${Nt.multipleItemBorderColor}`,borderRadius:Nt.borderRadiusSM,cursor:"default",transition:`font-size ${Nt.motionDurationSlow}, line-height ${Nt.motionDurationSlow}, height ${Nt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:te*2,paddingInlineStart:Nt.paddingXS,paddingInlineEnd:Nt.paddingXS/2,[`${At}-disabled&`]:{color:Nt.multipleItemColorDisabled,borderColor:Nt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Nt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,vt.Ro)()),{display:"inline-flex",alignItems:"center",color:Nt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Kt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Nt.colorIconHover}})},[`${Wt}-item + ${Wt}-item`]:{[`${At}-selection-search`]:{marginInlineStart:0}},[`${At}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Nt.inputPaddingHorizontalBase-Vt,"\n &-input,\n &-mirror\n ":{height:xe,fontFamily:Nt.fontFamily,lineHeight:`${xe}px`,transition:`all ${Nt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${At}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Nt.inputPaddingHorizontalBase,insetInlineEnd:Nt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Nt.motionDurationSlow}`}}}}var Ot=Nt=>{const{componentCls:Dt}=Nt,At=(0,oe.TS)(Nt,{controlHeight:Nt.controlHeightSM,multipleSelectItemHeight:Nt.controlHeightXS,borderRadius:Nt.borderRadiusSM,borderRadiusSM:Nt.borderRadiusXS}),Kt=(0,oe.TS)(Nt,{fontSize:Nt.fontSizeLG,controlHeight:Nt.controlHeightLG,multipleSelectItemHeight:Nt.multipleItemHeightLG,borderRadius:Nt.borderRadiusLG,borderRadiusSM:Nt.borderRadius}),[,Wt]=Fe(Nt);return[re(Nt),re(At,"sm"),{[`${Dt}-multiple${Dt}-sm`]:{[`${Dt}-selection-placeholder`]:{insetInline:Nt.controlPaddingHorizontalSM-Nt.lineWidth},[`${Dt}-selection-search`]:{marginInlineStart:Wt}}},re(Kt,"lg")]};function et(Nt,Dt){const{componentCls:At,inputPaddingHorizontalBase:Kt,borderRadius:Wt}=Nt,xe=Nt.controlHeight-Nt.lineWidth*2,Vt=Math.ceil(Nt.fontSize*1.25),Ie=Dt?`${At}-${Dt}`:"";return{[`${At}-single${Ie}`]:{fontSize:Nt.fontSize,[`${At}-selector`]:Object.assign(Object.assign({},(0,vt.Wf)(Nt)),{display:"flex",borderRadius:Wt,[`${At}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Kt,insetInlineEnd:Kt,bottom:0,"&-input":{width:"100%"}},[` ${At}-selection-item, ${At}-selection-placeholder `]:{padding:0,lineHeight:`${xe}px`,transition:`all ${Nt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${xe}px`}},[`${At}-selection-item`]:{position:"relative",userSelect:"none"},[`${At}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${At}-selection-item:after`,`${At}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${At}-show-arrow ${At}-selection-item, &${At}-show-arrow ${At}-selection-placeholder `]:{paddingInlineEnd:Vt},[`&${At}-open ${At}-selection-item`]:{color:Nt.colorTextPlaceholder},[`&:not(${At}-customize-input)`]:{[`${At}-selector`]:{width:"100%",height:Nt.controlHeight,padding:`0 ${Kt}px`,[`${At}-selection-search-input`]:{height:xe},"&:after":{lineHeight:`${xe}px`}}},[`&${At}-customize-input`]:{[`${At}-selector`]:{"&:after":{display:"none"},[`${At}-selection-search`]:{position:"static",width:"100%"},[`${At}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Kt}px`,"&:after":{display:"none"}}}}}}}function nt(Nt){const{componentCls:Dt}=Nt,At=Nt.controlPaddingHorizontalSM-Nt.lineWidth;return[et(Nt),et((0,oe.TS)(Nt,{controlHeight:Nt.controlHeightSM,borderRadius:Nt.borderRadiusSM}),"sm"),{[`${Dt}-single${Dt}-sm`]:{[`&:not(${Dt}-customize-input)`]:{[`${Dt}-selection-search`]:{insetInlineStart:At,insetInlineEnd:At},[`${Dt}-selector`]:{padding:`0 ${At}px`},[`&${Dt}-show-arrow ${Dt}-selection-search`]:{insetInlineEnd:At+Nt.fontSize*1.5},[` &${Dt}-show-arrow ${Dt}-selection-item, &${Dt}-show-arrow ${Dt}-selection-placeholder `]:{paddingInlineEnd:Nt.fontSize*1.5}}}},et((0,oe.TS)(Nt,{controlHeight:Nt.singleItemHeightLG,fontSize:Nt.fontSizeLG,borderRadius:Nt.borderRadiusLG}),"lg")]}const ht=Nt=>{const{componentCls:Dt,selectorBg:At}=Nt;return{position:"relative",backgroundColor:At,border:`${Nt.lineWidth}px ${Nt.lineType} ${Nt.colorBorder}`,transition:`all ${Nt.motionDurationMid} ${Nt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Dt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Dt}-disabled&`]:{color:Nt.colorTextDisabled,background:Nt.colorBgContainerDisabled,cursor:"not-allowed",[`${Dt}-multiple&`]:{background:Nt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},at=function(Nt,Dt){let At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Kt,borderHoverColor:Wt,outlineColor:xe,antCls:Vt}=Dt,Ie=At?{[`${Kt}-selector`]:{borderColor:Wt}}:{};return{[Nt]:{[`&:not(${Kt}-disabled):not(${Kt}-customize-input):not(${Vt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ie),{[`${Kt}-focused& ${Kt}-selector`]:{borderColor:Wt,boxShadow:`0 0 0 ${Dt.controlOutlineWidth}px ${xe}`,outline:0},[`&:hover ${Kt}-selector`]:{borderColor:Wt}})}}},ft=Nt=>{const{componentCls:Dt}=Nt;return{[`${Dt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},mt=Nt=>{const{componentCls:Dt,inputPaddingHorizontalBase:At,iconCls:Kt}=Nt;return{[Dt]:Object.assign(Object.assign({},(0,vt.Wf)(Nt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Dt}-customize-input) ${Dt}-selector`]:Object.assign(Object.assign({},ht(Nt)),ft(Nt)),[`${Dt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},vt.vS),[`${Dt}-selection-placeholder`]:Object.assign(Object.assign({},vt.vS),{flex:1,color:Nt.colorTextPlaceholder,pointerEvents:"none"}),[`${Dt}-arrow`]:Object.assign(Object.assign({},(0,vt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,height:Nt.fontSizeIcon,marginTop:-Nt.fontSizeIcon/2,color:Nt.colorTextQuaternary,fontSize:Nt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Kt]:{verticalAlign:"top",transition:`transform ${Nt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Dt}-suffix)`]:{pointerEvents:"auto"}},[`${Dt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Dt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,zIndex:1,display:"inline-block",width:Nt.fontSizeIcon,height:Nt.fontSizeIcon,marginTop:-Nt.fontSizeIcon/2,color:Nt.colorTextQuaternary,fontSize:Nt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Nt.clearBg,cursor:"pointer",opacity:0,transition:`color ${Nt.motionDurationMid} ease, opacity ${Nt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Nt.colorTextTertiary}},"&:hover":{[`${Dt}-clear`]:{opacity:1}}}),[`${Dt}-has-feedback`]:{[`${Dt}-clear`]:{insetInlineEnd:At+Nt.fontSize+Nt.paddingXS}}}},wt=Nt=>{const{componentCls:Dt}=Nt;return[{[Dt]:{[`&-borderless ${Dt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Dt}-in-form-item`]:{width:"100%"}}},mt(Nt),nt(Nt),Ot(Nt),we(Nt),{[`${Dt}-rtl`]:{direction:"rtl"}},at(Dt,(0,oe.TS)(Nt,{borderHoverColor:Nt.colorPrimaryHover,outlineColor:Nt.controlOutline})),at(`${Dt}-status-error`,(0,oe.TS)(Nt,{borderHoverColor:Nt.colorErrorHover,outlineColor:Nt.colorErrorOutline}),!0),at(`${Dt}-status-warning`,(0,oe.TS)(Nt,{borderHoverColor:Nt.colorWarningHover,outlineColor:Nt.colorWarningOutline}),!0),(0,It.c)(Nt,{borderElCls:`${Dt}-selector`,focusElCls:`${Dt}-focused`})]};var Et=(0,de.Z)("Select",(Nt,Dt)=>{let{rootPrefixCls:At}=Dt;const Kt=(0,oe.TS)(Nt,{rootPrefixCls:At,inputPaddingHorizontalBase:Nt.paddingSM-1,multipleSelectItemHeight:Nt.multipleItemHeight});return[wt(Kt)]},Nt=>{const{fontSize:Dt,lineHeight:At,controlHeight:Kt,controlPaddingHorizontal:Wt,zIndexPopupBase:xe,colorText:Vt,fontWeightStrong:Ie,controlItemBgActive:Se,controlItemBgHover:Ye,colorBgContainer:Le,colorFillSecondary:Pe,controlHeightLG:We,controlHeightSM:Ue,colorBgContainerDisabled:ue,colorTextDisabled:Ht}=Nt;return{zIndexPopup:xe+50,optionSelectedColor:Vt,optionSelectedFontWeight:Ie,optionSelectedBg:Se,optionActiveBg:Ye,optionPadding:`${(Kt-Dt*At)/2}px ${Wt}px`,optionFontSize:Dt,optionLineHeight:At,optionHeight:Kt,selectorBg:Le,clearBg:Le,singleItemHeightLG:We,multipleItemBg:Pe,multipleItemBorderColor:"transparent",multipleItemHeight:Ue,multipleItemHeightLG:Kt,multipleSelectorBgDisabled:ue,multipleItemColorDisabled:Ht,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return It}});const vt=oe=>{const $t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},$t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},$t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},$t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},$t),{points:["br","tr"],offset:[0,-4]})}};function It(oe,de){return oe||vt(de)}},84443:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return vt}});function vt(It,oe){return oe!==void 0?oe:It!==null}},66339:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return De}});var vt=Pt(40001),It=Pt(19248),oe=Pt(99267),de=Pt(84105),$t=Pt(58617),Ut=Pt(47472),Jt=Pt(59301);function De(we){let{suffixIcon:te,clearIcon:Fe,menuItemSelectedIcon:re,removeIcon:me,loading:Ot,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:at,feedbackIcon:ft,showArrow:mt,componentName:wt}=we;const Et=Fe!=null?Fe:Jt.createElement(It.Z,null),Nt=Wt=>te===null&&!nt&&!mt?null:Jt.createElement(Jt.Fragment,null,at!==!1&&Wt,nt&&ft);let Dt=null;if(te!==void 0)Dt=Nt(te);else if(Ot)Dt=Nt(Jt.createElement($t.Z,{spin:!0}));else{const Wt=`${ht}-suffix`;Dt=xe=>{let{open:Vt,showSearch:Ie}=xe;return Nt(Vt&&Ie?Jt.createElement(Ut.Z,{className:Wt}):Jt.createElement(de.Z,{className:Wt}))}}let At=null;re!==void 0?At=re:et?At=Jt.createElement(vt.Z,null):At=null;let Kt=null;return me!==void 0?Kt=me:Kt=Jt.createElement(oe.Z,null),{clearIcon:Et,suffixIcon:Dt,itemIcon:At,removeIcon:Kt}}},61621:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Tt}});var vt=Pt(92310),It=Pt.n(vt),oe=Pt(59301),de=Pt(36355),$t=Pt(2738),Jt=Ft=>{const{prefixCls:yt,className:ee,style:pe,size:qt,shape:Zt}=Ft,fe=It()({[`${yt}-lg`]:qt==="large",[`${yt}-sm`]:qt==="small"}),ce=It()({[`${yt}-circle`]:Zt==="circle",[`${yt}-square`]:Zt==="square",[`${yt}-round`]:Zt==="round"}),ne=oe.useMemo(()=>typeof qt=="number"?{width:qt,height:qt,lineHeight:`${qt}px`}:{},[qt]);return oe.createElement("span",{className:It()(yt,fe,ce,ee),style:Object.assign(Object.assign({},ne),pe)})},De=Pt(93083),we=Pt(83116),te=Pt(37613);const Fe=new De.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),re=Ft=>({height:Ft,lineHeight:`${Ft}px`}),me=Ft=>Object.assign({width:Ft},re(Ft)),Ot=Ft=>({background:Ft.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Fe,animationDuration:Ft.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Ft=>Object.assign({width:Ft*5,minWidth:Ft*5},re(Ft)),nt=Ft=>{const{skeletonAvatarCls:yt,gradientFromColor:ee,controlHeight:pe,controlHeightLG:qt,controlHeightSM:Zt}=Ft;return{[`${yt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ee},me(pe)),[`${yt}${yt}-circle`]:{borderRadius:"50%"},[`${yt}${yt}-lg`]:Object.assign({},me(qt)),[`${yt}${yt}-sm`]:Object.assign({},me(Zt))}},ht=Ft=>{const{controlHeight:yt,borderRadiusSM:ee,skeletonInputCls:pe,controlHeightLG:qt,controlHeightSM:Zt,gradientFromColor:fe}=Ft;return{[`${pe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe,borderRadius:ee},et(yt)),[`${pe}-lg`]:Object.assign({},et(qt)),[`${pe}-sm`]:Object.assign({},et(Zt))}},at=Ft=>Object.assign({width:Ft},re(Ft)),ft=Ft=>{const{skeletonImageCls:yt,imageSizeBase:ee,gradientFromColor:pe,borderRadiusSM:qt}=Ft;return{[`${yt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:pe,borderRadius:qt},at(ee*2)),{[`${yt}-path`]:{fill:"#bfbfbf"},[`${yt}-svg`]:Object.assign(Object.assign({},at(ee)),{maxWidth:ee*4,maxHeight:ee*4}),[`${yt}-svg${yt}-svg-circle`]:{borderRadius:"50%"}}),[`${yt}${yt}-circle`]:{borderRadius:"50%"}}},mt=(Ft,yt,ee)=>{const{skeletonButtonCls:pe}=Ft;return{[`${ee}${pe}-circle`]:{width:yt,minWidth:yt,borderRadius:"50%"},[`${ee}${pe}-round`]:{borderRadius:yt}}},wt=Ft=>Object.assign({width:Ft*2,minWidth:Ft*2},re(Ft)),Et=Ft=>{const{borderRadiusSM:yt,skeletonButtonCls:ee,controlHeight:pe,controlHeightLG:qt,controlHeightSM:Zt,gradientFromColor:fe}=Ft;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe,borderRadius:yt,width:pe*2,minWidth:pe*2},wt(pe))},mt(Ft,pe,ee)),{[`${ee}-lg`]:Object.assign({},wt(qt))}),mt(Ft,qt,`${ee}-lg`)),{[`${ee}-sm`]:Object.assign({},wt(Zt))}),mt(Ft,Zt,`${ee}-sm`))},Nt=Ft=>{const{componentCls:yt,skeletonAvatarCls:ee,skeletonTitleCls:pe,skeletonParagraphCls:qt,skeletonButtonCls:Zt,skeletonInputCls:fe,skeletonImageCls:ce,controlHeight:ne,controlHeightLG:Ne,controlHeightSM:hn,gradientFromColor:an,padding:_e,marginSM:En,borderRadius:Ln,titleHeight:ye,blockRadius:on,paragraphLiHeight:Pn,controlHeightXS:Cn,paragraphMarginTop:An}=Ft;return{[`${yt}`]:{display:"table",width:"100%",[`${yt}-header`]:{display:"table-cell",paddingInlineEnd:_e,verticalAlign:"top",[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:an},me(ne)),[`${ee}-circle`]:{borderRadius:"50%"},[`${ee}-lg`]:Object.assign({},me(Ne)),[`${ee}-sm`]:Object.assign({},me(hn))},[`${yt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${pe}`]:{width:"100%",height:ye,background:an,borderRadius:on,[`+ ${qt}`]:{marginBlockStart:hn}},[`${qt}`]:{padding:0,"> li":{width:"100%",height:Pn,listStyle:"none",background:an,borderRadius:on,"+ li":{marginBlockStart:Cn}}},[`${qt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${yt}-content`]:{[`${pe}, ${qt} > li`]:{borderRadius:Ln}}},[`${yt}-with-avatar ${yt}-content`]:{[`${pe}`]:{marginBlockStart:En,[`+ ${qt}`]:{marginBlockStart:An}}},[`${yt}${yt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Et(Ft)),nt(Ft)),ht(Ft)),ft(Ft)),[`${yt}${yt}-block`]:{width:"100%",[`${Zt}`]:{width:"100%"},[`${fe}`]:{width:"100%"}},[`${yt}${yt}-active`]:{[` ${pe}, ${qt} > li, ${ee}, ${Zt}, ${fe}, ${ce} `]:Object.assign({},Ot(Ft))}}};var Dt=(0,we.Z)("Skeleton",Ft=>{const{componentCls:yt}=Ft,ee=(0,te.TS)(Ft,{skeletonAvatarCls:`${yt}-avatar`,skeletonTitleCls:`${yt}-title`,skeletonParagraphCls:`${yt}-paragraph`,skeletonButtonCls:`${yt}-button`,skeletonInputCls:`${yt}-input`,skeletonImageCls:`${yt}-image`,imageSizeBase:Ft.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ft.gradientFromColor} 25%, ${Ft.gradientToColor} 37%, ${Ft.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Nt(ee)]},Ft=>{const{colorFillContent:yt,colorFill:ee}=Ft,pe=yt,qt=ee;return{color:pe,colorGradientEnd:qt,gradientFromColor:pe,gradientToColor:qt,titleHeight:Ft.controlHeight/2,blockRadius:Ft.borderRadiusSM,paragraphMarginTop:Ft.marginLG+Ft.marginXXS,paragraphLiHeight:Ft.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Kt=Ft=>{const{prefixCls:yt,className:ee,rootClassName:pe,active:qt,shape:Zt="circle",size:fe="default"}=Ft,{getPrefixCls:ce}=oe.useContext(de.E_),ne=ce("skeleton",yt),[Ne,hn]=Dt(ne),an=(0,$t.Z)(Ft,["prefixCls","className"]),_e=It()(ne,`${ne}-element`,{[`${ne}-active`]:qt},ee,pe,hn);return Ne(oe.createElement("div",{className:_e},oe.createElement(Jt,Object.assign({prefixCls:`${ne}-avatar`,shape:Zt,size:fe},an))))},xe=Ft=>{const{prefixCls:yt,className:ee,rootClassName:pe,active:qt,block:Zt=!1,size:fe="default"}=Ft,{getPrefixCls:ce}=oe.useContext(de.E_),ne=ce("skeleton",yt),[Ne,hn]=Dt(ne),an=(0,$t.Z)(Ft,["prefixCls"]),_e=It()(ne,`${ne}-element`,{[`${ne}-active`]:qt,[`${ne}-block`]:Zt},ee,pe,hn);return Ne(oe.createElement("div",{className:_e},oe.createElement(Jt,Object.assign({prefixCls:`${ne}-button`,size:fe},an))))};const Vt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Se=Ft=>{const{prefixCls:yt,className:ee,rootClassName:pe,style:qt,active:Zt}=Ft,{getPrefixCls:fe}=oe.useContext(de.E_),ce=fe("skeleton",yt),[ne,Ne]=Dt(ce),hn=It()(ce,`${ce}-element`,{[`${ce}-active`]:Zt},ee,pe,Ne);return ne(oe.createElement("div",{className:hn},oe.createElement("div",{className:It()(`${ce}-image`,ee),style:qt},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ce}-image-svg`},oe.createElement("path",{d:Vt,className:`${ce}-image-path`})))))},Le=Ft=>{const{prefixCls:yt,className:ee,rootClassName:pe,active:qt,block:Zt,size:fe="default"}=Ft,{getPrefixCls:ce}=oe.useContext(de.E_),ne=ce("skeleton",yt),[Ne,hn]=Dt(ne),an=(0,$t.Z)(Ft,["prefixCls"]),_e=It()(ne,`${ne}-element`,{[`${ne}-active`]:qt,[`${ne}-block`]:Zt},ee,pe,hn);return Ne(oe.createElement("div",{className:_e},oe.createElement(Jt,Object.assign({prefixCls:`${ne}-input`,size:fe},an))))},Pe=Pt(96663),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ue=We,ue=Pt(7657),Ht=function(yt,ee){return oe.createElement(ue.Z,(0,Pe.Z)({},yt,{ref:ee,icon:Ue}))},ke=oe.forwardRef(Ht),pn=ke,Ee=Ft=>{const{prefixCls:yt,className:ee,rootClassName:pe,style:qt,active:Zt,children:fe}=Ft,{getPrefixCls:ce}=oe.useContext(de.E_),ne=ce("skeleton",yt),[Ne,hn]=Dt(ne),an=It()(ne,`${ne}-element`,{[`${ne}-active`]:Zt},hn,ee,pe),_e=fe!=null?fe:oe.createElement(pn,null);return Ne(oe.createElement("div",{className:an},oe.createElement("div",{className:It()(`${ne}-image`,ee),style:qt},_e)))},Ke=Pt(19127),Bn=Ft=>{const yt=ce=>{const{width:ne,rows:Ne=2}=Ft;if(Array.isArray(ne))return ne[ce];if(Ne-1===ce)return ne},{prefixCls:ee,className:pe,style:qt,rows:Zt}=Ft,fe=(0,Ke.Z)(Array(Zt)).map((ce,ne)=>oe.createElement("li",{key:ne,style:{width:yt(ne)}}));return oe.createElement("ul",{className:It()(ee,pe),style:qt},fe)},In=Ft=>{let{prefixCls:yt,className:ee,width:pe,style:qt}=Ft;return oe.createElement("h3",{className:It()(yt,ee),style:Object.assign({width:pe},qt)})};function Ce(Ft){return Ft&&typeof Ft=="object"?Ft:{}}function $n(Ft,yt){return Ft&&!yt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qn(Ft,yt){return!Ft&&yt?{width:"38%"}:Ft&&yt?{width:"50%"}:{}}function jt(Ft,yt){const ee={};return(!Ft||!yt)&&(ee.width="61%"),!Ft&&yt?ee.rows=3:ee.rows=2,ee}const Lt=Ft=>{const{prefixCls:yt,loading:ee,className:pe,rootClassName:qt,style:Zt,children:fe,avatar:ce=!1,title:ne=!0,paragraph:Ne=!0,active:hn,round:an}=Ft,{getPrefixCls:_e,direction:En,skeleton:Ln}=oe.useContext(de.E_),ye=_e("skeleton",yt),[on,Pn]=Dt(ye);if(ee||!("loading"in Ft)){const Cn=!!ce,An=!!ne,Jn=!!Ne;let ui;if(Cn){const Bi=Object.assign(Object.assign({prefixCls:`${ye}-avatar`},$n(An,Jn)),Ce(ce));ui=oe.createElement("div",{className:`${ye}-header`},oe.createElement(Jt,Object.assign({},Bi)))}let ni;if(An||Jn){let Bi;if(An){const Di=Object.assign(Object.assign({prefixCls:`${ye}-title`},Qn(Cn,Jn)),Ce(ne));Bi=oe.createElement(In,Object.assign({},Di))}let Ti;if(Jn){const Di=Object.assign(Object.assign({prefixCls:`${ye}-paragraph`},jt(Cn,An)),Ce(Ne));Ti=oe.createElement(Bn,Object.assign({},Di))}ni=oe.createElement("div",{className:`${ye}-content`},Bi,Ti)}const fi=It()(ye,{[`${ye}-with-avatar`]:Cn,[`${ye}-active`]:hn,[`${ye}-rtl`]:En==="rtl",[`${ye}-round`]:an},Ln==null?void 0:Ln.className,pe,qt,Pn);return on(oe.createElement("div",{className:fi,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),Zt)},ui,ni))}return typeof fe!="undefined"?fe:null};Lt.Button=xe,Lt.Avatar=Kt,Lt.Input=Le,Lt.Image=Se,Lt.Node=Ee;var xt=Lt,Tt=xt},81327:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return ht}});var vt=Pt(59301),It=Pt(92310),oe=Pt.n(It),de=Pt(11592),$t=Pt(36355),Ut=Pt(33234);const Jt=vt.createContext({latestIndex:0}),De=Jt.Provider;var te=at=>{let{className:ft,index:mt,children:wt,split:Et,style:Nt}=at;const{latestIndex:Dt}=vt.useContext(Jt);return wt==null?null:vt.createElement(vt.Fragment,null,vt.createElement("div",{className:ft,style:Nt},wt),mt{var mt,wt;const{getPrefixCls:Et,space:Nt,direction:Dt}=vt.useContext($t.E_),{size:At=(Nt==null?void 0:Nt.size)||"small",align:Kt,className:Wt,rootClassName:xe,children:Vt,direction:Ie="horizontal",prefixCls:Se,split:Ye,style:Le,wrap:Pe=!1,classNames:We,styles:Ue}=at,ue=Ot(at,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ht,ke]=Array.isArray(At)?At:[At,At],pn=re(ke),ln=re(Ht),Ee=me(ke),Ke=me(Ht),gn=(0,de.Z)(Vt,{keepEmpty:!0}),Bn=Kt===void 0&&Ie==="horizontal"?"center":Kt,dn=Et("space",Se),[In,Ce]=(0,Fe.Z)(dn),$n=oe()(dn,Nt==null?void 0:Nt.className,Ce,`${dn}-${Ie}`,{[`${dn}-rtl`]:Dt==="rtl",[`${dn}-align-${Bn}`]:Bn,[`${dn}-gap-row-${ke}`]:pn,[`${dn}-gap-col-${Ht}`]:ln},Wt,xe),Qn=oe()(`${dn}-item`,(mt=We==null?void 0:We.item)!==null&&mt!==void 0?mt:(wt=Nt==null?void 0:Nt.classNames)===null||wt===void 0?void 0:wt.item);let jt=0;const Lt=gn.map((Ft,yt)=>{var ee,pe;Ft!=null&&(jt=yt);const qt=Ft&&Ft.key||`${Qn}-${yt}`;return vt.createElement(te,{className:Qn,key:qt,index:yt,split:Ye,style:(ee=Ue==null?void 0:Ue.item)!==null&&ee!==void 0?ee:(pe=Nt==null?void 0:Nt.styles)===null||pe===void 0?void 0:pe.item},Ft)}),xt=vt.useMemo(()=>({latestIndex:jt}),[jt]);if(gn.length===0)return null;const Tt={};return Pe&&(Tt.flexWrap="wrap"),!ln&&Ke&&(Tt.columnGap=Ht),!pn&&Ee&&(Tt.rowGap=ke),In(vt.createElement("div",Object.assign({ref:ft,className:$n,style:Object.assign(Object.assign(Object.assign({},Tt),Nt==null?void 0:Nt.style),Le)},ue),vt.createElement(De,{value:xt},Lt)))});nt.Compact=Ut.ZP;var ht=nt},31797:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return Dt}});var vt=Pt(59301),It=Pt(56762),oe=Pt(92343),de=Pt(92310),$t=Pt.n(de),Ut=Pt(36355),Jt=Pt(61621),we=At=>{const{value:Kt,formatter:Wt,precision:xe,decimalSeparator:Vt,groupSeparator:Ie="",prefixCls:Se}=At;let Ye;if(typeof Wt=="function")Ye=Wt(Kt);else{const Le=String(Kt),Pe=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Pe||Le==="-")Ye=Le;else{const We=Pe[1];let Ue=Pe[2]||"0",ue=Pe[4]||"";Ue=Ue.replace(/\B(?=(\d{3})+(?!\d))/g,Ie),typeof xe=="number"&&(ue=ue.padEnd(xe,"0").slice(0,xe>0?xe:0)),ue&&(ue=`${Vt}${ue}`),Ye=[vt.createElement("span",{key:"int",className:`${Se}-content-value-int`},We,Ue),ue&&vt.createElement("span",{key:"decimal",className:`${Se}-content-value-decimal`},ue)]}}return vt.createElement("span",{className:`${Se}-content-value`},Ye)},te=Pt(17313),Fe=Pt(83116),re=Pt(37613);const me=At=>{const{componentCls:Kt,marginXXS:Wt,padding:xe,colorTextDescription:Vt,titleFontSize:Ie,colorTextHeading:Se,contentFontSize:Ye,fontFamily:Le}=At;return{[`${Kt}`]:Object.assign(Object.assign({},(0,te.Wf)(At)),{[`${Kt}-title`]:{marginBottom:Wt,color:Vt,fontSize:Ie},[`${Kt}-skeleton`]:{paddingTop:xe},[`${Kt}-content`]:{color:Se,fontSize:Ye,fontFamily:Le,[`${Kt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Kt}-content-prefix, ${Kt}-content-suffix`]:{display:"inline-block"},[`${Kt}-content-prefix`]:{marginInlineEnd:Wt},[`${Kt}-content-suffix`]:{marginInlineStart:Wt}}})}};var Ot=(0,Fe.Z)("Statistic",At=>{const Kt=(0,re.TS)(At,{});return[me(Kt)]},At=>{const{fontSizeHeading3:Kt,fontSize:Wt}=At;return{titleFontSize:Wt,contentFontSize:Kt}}),nt=At=>{const{prefixCls:Kt,className:Wt,rootClassName:xe,style:Vt,valueStyle:Ie,value:Se=0,title:Ye,valueRender:Le,prefix:Pe,suffix:We,loading:Ue=!1,onMouseEnter:ue,onMouseLeave:Ht,decimalSeparator:ke=".",groupSeparator:pn=","}=At,{getPrefixCls:ln,direction:Ee,statistic:Ke}=vt.useContext(Ut.E_),gn=ln("statistic",Kt),[Bn,dn]=Ot(gn),In=vt.createElement(we,Object.assign({decimalSeparator:ke,groupSeparator:pn,prefixCls:gn},At,{value:Se})),Ce=$t()(gn,{[`${gn}-rtl`]:Ee==="rtl"},Ke==null?void 0:Ke.className,Wt,xe,dn);return Bn(vt.createElement("div",{className:Ce,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Vt),onMouseEnter:ue,onMouseLeave:Ht},Ye&&vt.createElement("div",{className:`${gn}-title`},Ye),vt.createElement(Jt.Z,{paragraph:!1,loading:Ue,className:`${gn}-skeleton`},vt.createElement("div",{style:Ie,className:`${gn}-content`},Pe&&vt.createElement("span",{className:`${gn}-content-prefix`},Pe),Le?Le(In):In,We&&vt.createElement("span",{className:`${gn}-content-suffix`},We)))))};const ht=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function at(At,Kt){let Wt=At;const xe=/\[[^\]]*]/g,Vt=(Kt.match(xe)||[]).map(Le=>Le.slice(1,-1)),Ie=Kt.replace(xe,"[]"),Se=ht.reduce((Le,Pe)=>{let[We,Ue]=Pe;if(Le.includes(We)){const ue=Math.floor(Wt/Ue);return Wt-=ue*Ue,Le.replace(new RegExp(`${We}+`,"g"),Ht=>{const ke=Ht.length;return ue.toString().padStart(ke,"0")})}return Le},Ie);let Ye=0;return Se.replace(xe,()=>{const Le=Vt[Ye];return Ye+=1,Le})}function ft(At,Kt){const{format:Wt=""}=Kt,xe=new Date(At).getTime(),Vt=Date.now(),Ie=Math.max(xe-Vt,0);return at(Ie,Wt)}const mt=1e3/30;function wt(At){return new Date(At).getTime()}const Et=At=>{const{value:Kt,format:Wt="HH:mm:ss",onChange:xe,onFinish:Vt}=At,Ie=(0,It.Z)(),Se=vt.useRef(null),Ye=()=>{Vt==null||Vt(),Se.current&&(clearInterval(Se.current),Se.current=null)},Le=()=>{const Ue=wt(Kt);Ue>=Date.now()&&(Se.current=setInterval(()=>{Ie(),xe==null||xe(Ue-Date.now()),Ue(Le(),()=>{Se.current&&(clearInterval(Se.current),Se.current=null)}),[Kt]);const Pe=(Ue,ue)=>ft(Ue,Object.assign(Object.assign({},ue),{format:Wt})),We=Ue=>(0,oe.Tm)(Ue,{title:void 0});return vt.createElement(nt,Object.assign({},At,{valueRender:We,formatter:Pe}))};var Nt=vt.memo(Et);nt.Countdown=Nt;var Dt=nt},78673:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Ie}});var vt=Pt(58617),It=Pt(92310),oe=Pt.n(It),de=Pt(96663),$t=Pt(90493),Ut=Pt(72071),Jt=Pt(6620),De=Pt(59301),we=Pt(18929),te=Pt(10228),Fe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],re=De.forwardRef(function(Se,Ye){var Le,Pe=Se.prefixCls,We=Pe===void 0?"rc-switch":Pe,Ue=Se.className,ue=Se.checked,Ht=Se.defaultChecked,ke=Se.disabled,pn=Se.loadingIcon,ln=Se.checkedChildren,Ee=Se.unCheckedChildren,Ke=Se.onClick,gn=Se.onChange,Bn=Se.onKeyDown,dn=(0,Jt.Z)(Se,Fe),In=(0,we.Z)(!1,{value:ue,defaultValue:Ht}),Ce=(0,Ut.Z)(In,2),$n=Ce[0],Qn=Ce[1];function jt(Ft,yt){var ee=$n;return ke||(ee=Ft,Qn(ee),gn==null||gn(ee,yt)),ee}function Lt(Ft){Ft.which===te.Z.LEFT?jt(!1,Ft):Ft.which===te.Z.RIGHT&&jt(!0,Ft),Bn==null||Bn(Ft)}function xt(Ft){var yt=jt(!$n,Ft);Ke==null||Ke(yt,Ft)}var Tt=oe()(We,Ue,(Le={},(0,$t.Z)(Le,"".concat(We,"-checked"),$n),(0,$t.Z)(Le,"".concat(We,"-disabled"),ke),Le));return De.createElement("button",(0,de.Z)({},dn,{type:"button",role:"switch","aria-checked":$n,disabled:ke,className:Tt,ref:Ye,onKeyDown:Lt,onClick:xt}),pn,De.createElement("span",{className:"".concat(We,"-inner")},De.createElement("span",{className:"".concat(We,"-inner-checked")},ln),De.createElement("span",{className:"".concat(We,"-inner-unchecked")},Ee)))});re.displayName="Switch";var me=re,Ot=Pt(14088),et=Pt(36355),nt=Pt(1684),ht=Pt(19716),at=Pt(64993),ft=Pt(17313),mt=Pt(83116),wt=Pt(37613);const Et=Se=>{const{componentCls:Ye,trackHeightSM:Le,trackPadding:Pe,trackMinWidthSM:We,innerMinMarginSM:Ue,innerMaxMarginSM:ue,handleSizeSM:Ht}=Se,ke=`${Ye}-inner`;return{[Ye]:{[`&${Ye}-small`]:{minWidth:We,height:Le,lineHeight:`${Le}px`,[`${Ye}-inner`]:{paddingInlineStart:ue,paddingInlineEnd:Ue,[`${ke}-checked`]:{marginInlineStart:`calc(-100% + ${Ht+Pe*2}px - ${ue*2}px)`,marginInlineEnd:`calc(100% - ${Ht+Pe*2}px + ${ue*2}px)`},[`${ke}-unchecked`]:{marginTop:-Le,marginInlineStart:0,marginInlineEnd:0}},[`${Ye}-handle`]:{width:Ht,height:Ht},[`${Ye}-loading-icon`]:{top:(Ht-Se.switchLoadingIconSize)/2,fontSize:Se.switchLoadingIconSize},[`&${Ye}-checked`]:{[`${Ye}-inner`]:{paddingInlineStart:Ue,paddingInlineEnd:ue,[`${ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ke}-unchecked`]:{marginInlineStart:`calc(100% - ${Ht+Pe*2}px + ${ue*2}px)`,marginInlineEnd:`calc(-100% + ${Ht+Pe*2}px - ${ue*2}px)`}},[`${Ye}-handle`]:{insetInlineStart:`calc(100% - ${Ht+Pe}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${ke}`]:{[`${ke}-unchecked`]:{marginInlineStart:Se.marginXXS/2,marginInlineEnd:-Se.marginXXS/2}},[`&${Ye}-checked ${ke}`]:{[`${ke}-checked`]:{marginInlineStart:-Se.marginXXS/2,marginInlineEnd:Se.marginXXS/2}}}}}}},Nt=Se=>{const{componentCls:Ye,handleSize:Le}=Se;return{[Ye]:{[`${Ye}-loading-icon${Se.iconCls}`]:{position:"relative",top:(Le-Se.fontSize)/2,color:Se.switchLoadingIconColor,verticalAlign:"top"},[`&${Ye}-checked ${Ye}-loading-icon`]:{color:Se.switchColor}}}},Dt=Se=>{const{componentCls:Ye,motion:Le,trackPadding:Pe,handleBg:We,handleShadow:Ue,handleSize:ue}=Se,Ht=`${Ye}-handle`;return{[Ye]:{[Ht]:{position:"absolute",top:Pe,insetInlineStart:Pe,width:ue,height:ue,transition:`all ${Se.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:ue/2,boxShadow:Ue,transition:`all ${Se.switchDuration} ease-in-out`,content:'""'}},[`&${Ye}-checked ${Ht}`]:{insetInlineStart:`calc(100% - ${ue+Pe}px)`},[`&:not(${Ye}-disabled):active`]:Le?{[`${Ht}::before`]:{insetInlineEnd:Se.switchHandleActiveInset,insetInlineStart:0},[`&${Ye}-checked ${Ht}::before`]:{insetInlineEnd:0,insetInlineStart:Se.switchHandleActiveInset}}:{}}}},At=Se=>{const{componentCls:Ye,trackHeight:Le,trackPadding:Pe,innerMinMargin:We,innerMaxMargin:Ue,handleSize:ue}=Se,Ht=`${Ye}-inner`;return{[Ye]:{[Ht]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ue,paddingInlineEnd:We,transition:`padding-inline-start ${Se.switchDuration} ease-in-out, padding-inline-end ${Se.switchDuration} ease-in-out`,[`${Ht}-checked, ${Ht}-unchecked`]:{display:"block",color:Se.colorTextLightSolid,fontSize:Se.fontSizeSM,transition:`margin-inline-start ${Se.switchDuration} ease-in-out, margin-inline-end ${Se.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ht}-checked`]:{marginInlineStart:`calc(-100% + ${ue+Pe*2}px - ${Ue*2}px)`,marginInlineEnd:`calc(100% - ${ue+Pe*2}px + ${Ue*2}px)`},[`${Ht}-unchecked`]:{marginTop:-Le,marginInlineStart:0,marginInlineEnd:0}},[`&${Ye}-checked ${Ht}`]:{paddingInlineStart:We,paddingInlineEnd:Ue,[`${Ht}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ht}-unchecked`]:{marginInlineStart:`calc(100% - ${ue+Pe*2}px + ${Ue*2}px)`,marginInlineEnd:`calc(-100% + ${ue+Pe*2}px - ${Ue*2}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${Ht}`]:{[`${Ht}-unchecked`]:{marginInlineStart:Pe*2,marginInlineEnd:-Pe*2}},[`&${Ye}-checked ${Ht}`]:{[`${Ht}-checked`]:{marginInlineStart:-Pe*2,marginInlineEnd:Pe*2}}}}}},Kt=Se=>{const{componentCls:Ye,trackHeight:Le,trackMinWidth:Pe}=Se;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Se)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Pe,height:Le,lineHeight:`${Le}px`,verticalAlign:"middle",background:Se.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Se.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ye}-disabled)`]:{background:Se.colorTextTertiary}}),(0,ft.Qy)(Se)),{[`&${Ye}-checked`]:{background:Se.switchColor,[`&:hover:not(${Ye}-disabled)`]:{background:Se.colorPrimaryHover}},[`&${Ye}-loading, &${Ye}-disabled`]:{cursor:"not-allowed",opacity:Se.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ye}-rtl`]:{direction:"rtl"}})}};var Wt=(0,mt.Z)("Switch",Se=>{const Ye=(0,wt.TS)(Se,{switchDuration:Se.motionDurationMid,switchColor:Se.colorPrimary,switchDisabledOpacity:Se.opacityLoading,switchLoadingIconSize:Se.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Se.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kt(Ye),At(Ye),Dt(Ye),Nt(Ye),Et(Ye)]},Se=>{const{fontSize:Ye,lineHeight:Le,controlHeight:Pe,colorWhite:We}=Se,Ue=Ye*Le,ue=Pe/2,Ht=2,ke=Ue-Ht*2,pn=ue-Ht*2;return{trackHeight:Ue,trackHeightSM:ue,trackMinWidth:ke*2+Ht*4,trackMinWidthSM:pn*2+Ht*2,trackPadding:Ht,handleBg:We,handleSize:ke,handleSizeSM:pn,handleShadow:`0 2px 4px 0 ${new at.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ke/2,innerMaxMargin:ke+Ht+Ht*2,innerMinMarginSM:pn/2,innerMaxMarginSM:pn+Ht+Ht*2}}),xe=function(Se,Ye){var Le={};for(var Pe in Se)Object.prototype.hasOwnProperty.call(Se,Pe)&&Ye.indexOf(Pe)<0&&(Le[Pe]=Se[Pe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Pe=Object.getOwnPropertySymbols(Se);We{const{prefixCls:Le,size:Pe,disabled:We,loading:Ue,className:ue,rootClassName:Ht,style:ke}=Se,pn=xe(Se,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ln,direction:Ee,switch:Ke}=De.useContext(et.E_),gn=De.useContext(nt.Z),Bn=(We!=null?We:gn)||Ue,dn=ln("switch",Le),In=De.createElement("div",{className:`${dn}-handle`},Ue&&De.createElement(vt.Z,{className:`${dn}-loading-icon`})),[Ce,$n]=Wt(dn),Qn=(0,ht.Z)(Pe),jt=oe()(Ke==null?void 0:Ke.className,{[`${dn}-small`]:Qn==="small",[`${dn}-loading`]:Ue,[`${dn}-rtl`]:Ee==="rtl"},ue,Ht,$n),Lt=Object.assign(Object.assign({},Ke==null?void 0:Ke.style),ke);return Ce(De.createElement(Ot.Z,{component:"Switch"},De.createElement(me,Object.assign({},pn,{prefixCls:dn,className:jt,style:Lt,disabled:Bn,ref:Ye,loadingIcon:In}))))});Vt.__ANT_SWITCH=!0;var Ie=Vt},17574:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return ue}});var vt=Pt(43858),It=Pt(19127),oe=Pt(52671),de=Pt(8657),$t=Pt(96663),Ut=Pt(59301),Jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},De=Jt,we=Pt(7657),te=function(ke,pn){return Ut.createElement(we.Z,(0,$t.Z)({},ke,{ref:pn,icon:De}))},Fe=Ut.forwardRef(te),re=Fe,me=Pt(92310),Ot=Pt.n(me),et=Pt(35654),nt=Pt(71430),ht=Pt(36355),at=Pt(56082),ft=Pt(62892),mt=Pt(20648);const wt=4;function Et(Ht){const{dropPosition:ke,dropLevelOffset:pn,prefixCls:ln,indent:Ee,direction:Ke="ltr"}=Ht,gn=Ke==="ltr"?"left":"right",Bn=Ke==="ltr"?"right":"left",dn={[gn]:-pn*Ee+wt,[Bn]:0};switch(ke){case-1:dn.top=-3;break;case 1:dn.bottom=-3;break;default:dn.bottom=-3,dn[gn]=Ee+wt;break}return Ut.createElement("div",{style:dn,className:`${ln}-drop-indicator`})}var Nt=Pt(71997),At=Ut.forwardRef((Ht,ke)=>{const{getPrefixCls:pn,direction:ln,virtual:Ee,tree:Ke}=Ut.useContext(ht.E_),{prefixCls:gn,className:Bn,showIcon:dn=!1,showLine:In,switcherIcon:Ce,blockNode:$n=!1,children:Qn,checkable:jt=!1,selectable:Lt=!0,draggable:xt,motion:Tt,style:Ft}=Ht,yt=pn("tree",gn),ee=pn(),pe=Tt!=null?Tt:Object.assign(Object.assign({},(0,ft.Z)(ee)),{motionAppear:!1}),qt=Object.assign(Object.assign({},Ht),{checkable:jt,selectable:Lt,showIcon:dn,motion:pe,blockNode:$n,showLine:!!In,dropIndicatorRender:Et}),[Zt,fe]=(0,mt.ZP)(yt),ce=Ut.useMemo(()=>{if(!xt)return!1;let Ne={};switch(typeof xt){case"function":Ne.nodeDraggable=xt;break;case"object":Ne=Object.assign({},xt);break;default:break}return Ne.icon!==!1&&(Ne.icon=Ne.icon||Ut.createElement(at.Z,null)),Ne},[xt]),ne=Ne=>Ut.createElement(Nt.Z,{prefixCls:yt,switcherIcon:Ce,treeNodeProps:Ne,showLine:In});return Zt(Ut.createElement(vt.Z,Object.assign({itemHeight:20,ref:ke,virtual:Ee},qt,{style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Ft),prefixCls:yt,className:Ot()({[`${yt}-icon-hide`]:!dn,[`${yt}-block-node`]:$n,[`${yt}-unselectable`]:!Lt,[`${yt}-rtl`]:ln==="rtl"},Ke==null?void 0:Ke.className,Bn,fe),direction:ln,checkable:jt&&Ut.createElement("span",{className:`${yt}-checkbox-inner`}),selectable:Lt,switcherIcon:ne,draggable:ce}),Qn))}),Kt;(function(Ht){Ht[Ht.None=0]="None",Ht[Ht.Start=1]="Start",Ht[Ht.End=2]="End"})(Kt||(Kt={}));function Wt(Ht,ke){function pn(ln){const{key:Ee,children:Ke}=ln;ke(Ee,ln)!==!1&&Wt(Ke||[],ke)}Ht.forEach(pn)}function xe(Ht){let{treeData:ke,expandedKeys:pn,startKey:ln,endKey:Ee}=Ht;const Ke=[];let gn=Kt.None;if(ln&&ln===Ee)return[ln];if(!ln||!Ee)return[];function Bn(dn){return dn===ln||dn===Ee}return Wt(ke,dn=>{if(gn===Kt.End)return!1;if(Bn(dn)){if(Ke.push(dn),gn===Kt.None)gn=Kt.Start;else if(gn===Kt.Start)return gn=Kt.End,!1}else gn===Kt.Start&&Ke.push(dn);return pn.includes(dn)}),Ke}function Vt(Ht,ke){const pn=(0,It.Z)(ke),ln=[];return Wt(Ht,(Ee,Ke)=>{const gn=pn.indexOf(Ee);return gn!==-1&&(ln.push(Ke),pn.splice(gn,1)),!!pn.length}),ln}var Ie=function(Ht,ke){var pn={};for(var ln in Ht)Object.prototype.hasOwnProperty.call(Ht,ln)&&ke.indexOf(ln)<0&&(pn[ln]=Ht[ln]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ln=Object.getOwnPropertySymbols(Ht);Ee{var{defaultExpandAll:pn,defaultExpandParent:ln,defaultExpandedKeys:Ee}=Ht,Ke=Ie(Ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const gn=Ut.useRef(),Bn=Ut.useRef(),dn=()=>{const{keyEntities:ce}=(0,nt.I8)(Ye(Ke));let ne;return pn?ne=Object.keys(ce):ln?ne=(0,et.r7)(Ke.expandedKeys||Ee||[],ce):ne=Ke.expandedKeys||Ee,ne},[In,Ce]=Ut.useState(Ke.selectedKeys||Ke.defaultSelectedKeys||[]),[$n,Qn]=Ut.useState(()=>dn());Ut.useEffect(()=>{"selectedKeys"in Ke&&Ce(Ke.selectedKeys)},[Ke.selectedKeys]),Ut.useEffect(()=>{"expandedKeys"in Ke&&Qn(Ke.expandedKeys)},[Ke.expandedKeys]);const jt=(ce,ne)=>{var Ne;return"expandedKeys"in Ke||Qn(ce),(Ne=Ke.onExpand)===null||Ne===void 0?void 0:Ne.call(Ke,ce,ne)},Lt=(ce,ne)=>{var Ne;const{multiple:hn}=Ke,{node:an,nativeEvent:_e}=ne,{key:En=""}=an,Ln=Ye(Ke),ye=Object.assign(Object.assign({},ne),{selected:!0}),on=(_e==null?void 0:_e.ctrlKey)||(_e==null?void 0:_e.metaKey),Pn=_e==null?void 0:_e.shiftKey;let Cn;hn&&on?(Cn=ce,gn.current=En,Bn.current=Cn,ye.selectedNodes=Vt(Ln,Cn)):hn&&Pn?(Cn=Array.from(new Set([].concat((0,It.Z)(Bn.current||[]),(0,It.Z)(xe({treeData:Ln,expandedKeys:$n,startKey:En,endKey:gn.current}))))),ye.selectedNodes=Vt(Ln,Cn)):(Cn=[En],gn.current=En,Bn.current=Cn,ye.selectedNodes=Vt(Ln,Cn)),(Ne=Ke.onSelect)===null||Ne===void 0||Ne.call(Ke,Cn,ye),"selectedKeys"in Ke||Ce(Cn)},{getPrefixCls:xt,direction:Tt}=Ut.useContext(ht.E_),{prefixCls:Ft,className:yt,showIcon:ee=!0,expandAction:pe="click"}=Ke,qt=Ie(Ke,["prefixCls","className","showIcon","expandAction"]),Zt=xt("tree",Ft),fe=Ot()(`${Zt}-directory`,{[`${Zt}-directory-rtl`]:Tt==="rtl"},yt);return Ut.createElement(At,Object.assign({icon:Se,ref:ke,blockNode:!0},qt,{showIcon:ee,expandAction:pe,prefixCls:Zt,className:fe,expandedKeys:$n,selectedKeys:In,onSelect:Lt,onExpand:jt}))};var We=Ut.forwardRef(Le);const Ue=At;Ue.DirectoryTree=We,Ue.TreeNode=vt.O;var ue=Ue},20648:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{TM:function(){return me},Yk:function(){return re}});var vt=Pt(93083),It=Pt(98447),oe=Pt(17313),de=Pt(8378),$t=Pt(37613),Ut=Pt(83116);const Jt=new vt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),De=(Ot,et)=>({[`.${Ot}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),we=(Ot,et)=>({[`.${Ot}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),te=(Ot,et)=>{const{treeCls:nt,treeNodeCls:ht,treeNodePadding:at,titleHeight:ft,nodeSelectedBg:mt,nodeHoverBg:wt}=et,Et=et.paddingXS;return{[nt]:Object.assign(Object.assign({},(0,oe.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${nt}-rtl`]:{[`${nt}-switcher`]:{"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${nt}-active-focused)`]:Object.assign({},(0,oe.oN)(et)),[`${nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${nt}-block-node`]:{[`${nt}-list-holder-inner`]:{alignItems:"stretch",[`${nt}-node-content-wrapper`]:{flex:"auto"},[`${ht}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:at,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Jt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ht}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${at}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${nt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${nt}-node-content-wrapper`]:Object.assign({},(0,oe.oN)(et)),[`&:not(${ht}-disabled).filter-node ${nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${nt}-draggable-icon`]:{flexShrink:0,width:ft,lineHeight:`${ft}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${ht}:hover &`]:{opacity:.45}},[`&${ht}-disabled`]:{[`${nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ft}},[`${nt}-draggable-icon`]:{visibility:"hidden"},[`${nt}-switcher`]:Object.assign(Object.assign({},De(Ot,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ft,margin:0,lineHeight:`${ft}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ft/2,bottom:-at,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ft/2*.8,height:ft/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${nt}-checkbox`]:{top:"initial",marginInlineEnd:Et},[`${nt}-node-content-wrapper, ${nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ft,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ft}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:wt},[`&${nt}-node-selected`]:{backgroundColor:mt},[`${nt}-iconEle`]:{display:"inline-block",width:ft,height:ft,lineHeight:`${ft}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${nt}-unselectable ${nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}-node-content-wrapper`]:Object.assign({lineHeight:`${ft}px`,userSelect:"none"},we(Ot,et)),[`${ht}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ft/2,bottom:-at,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ht}-leaf-last`]:{[`${nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ft/2}px !important`}}}}})}},Fe=Ot=>{const{treeCls:et,treeNodeCls:nt,treeNodePadding:ht,directoryNodeSelectedBg:at,directoryNodeSelectedColor:ft}=Ot;return{[`${et}${et}-directory`]:{[nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ht,insetInlineStart:0,transition:`background-color ${Ot.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ot.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Ot.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ft,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:at},[`${et}-switcher`]:{color:ft},[`${et}-node-content-wrapper`]:{color:ft,background:"transparent"}}}}}},re=(Ot,et)=>{const nt=`.${Ot}`,ht=`${nt}-treenode`,at=et.paddingXS/2,ft=(0,$t.TS)(et,{treeCls:nt,treeNodeCls:ht,treeNodePadding:at});return[te(Ot,ft),Fe(ft)]},me=Ot=>{const{controlHeightSM:et}=Ot;return{titleHeight:et,nodeHoverBg:Ot.controlItemBgHover,nodeSelectedBg:Ot.controlItemBgActive}};Ve.ZP=(0,Ut.Z)("Tree",(Ot,et)=>{let{prefixCls:nt}=et;return[{[Ot.componentCls]:(0,It.C2)(`${nt}-checkbox`,Ot)},re(nt,Ot),(0,de.Z)(Ot)]},Ot=>{const{colorTextLightSolid:et,colorPrimary:nt}=Ot;return Object.assign(Object.assign({},me(Ot)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:nt})})},71997:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return ht}});var vt=Pt(96663),It=Pt(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},de=oe,$t=Pt(7657),Ut=function(ft,mt){return It.createElement($t.Z,(0,vt.Z)({},ft,{ref:mt,icon:de}))},Jt=It.forwardRef(Ut),De=Jt,we=Pt(52671),te=Pt(58617),Fe=Pt(15075),re=Pt(43531),me=Pt(92310),Ot=Pt.n(me),et=Pt(92343),ht=at=>{const{prefixCls:ft,switcherIcon:mt,treeNodeProps:wt,showLine:Et}=at,{isLeaf:Nt,expanded:Dt,loading:At}=wt;if(At)return It.createElement(te.Z,{className:`${ft}-switcher-loading-icon`});let Kt;if(Et&&typeof Et=="object"&&(Kt=Et.showLeafIcon),Nt){if(!Et)return null;if(typeof Kt!="boolean"&&Kt){const Vt=typeof Kt=="function"?Kt(wt):Kt,Ie=`${ft}-switcher-line-custom-icon`;return(0,et.l$)(Vt)?(0,et.Tm)(Vt,{className:Ot()(Vt.props.className||"",Ie)}):Vt}return Kt?It.createElement(we.Z,{className:`${ft}-switcher-line-icon`}):It.createElement("span",{className:`${ft}-switcher-leaf-line`})}const Wt=`${ft}-switcher-icon`,xe=typeof mt=="function"?mt(wt):mt;return(0,et.l$)(xe)?(0,et.Tm)(xe,{className:Ot()(xe.props.className||"",Wt)}):xe!==void 0?xe:Et?Dt?It.createElement(Fe.Z,{className:`${ft}-switcher-line-icon`}):It.createElement(re.Z,{className:`${ft}-switcher-line-icon`}):It.createElement(De,{className:Wt})}},54580:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{default:function(){return fn}});var vt=Pt(59301),It=Pt(19127),oe=Pt(92310),de=Pt.n(oe),$t=Pt(96663),Ut=Pt(52884),Jt=Pt(95727),De=Pt(65711),we=Pt(85745),te=Pt(90493),Fe=Pt(6620),re=Pt(49581),me=Pt(20135),Ot=Pt(73324),et=Pt(26112);function nt(He,je){var vn="cannot ".concat(He.method," ").concat(He.action," ").concat(je.status,"'"),rn=new Error(vn);return rn.status=je.status,rn.method=He.method,rn.url=He.action,rn}function ht(He){var je=He.responseText||He.response;if(!je)return je;try{return JSON.parse(je)}catch(vn){return je}}function at(He){var je=new XMLHttpRequest;He.onProgress&&je.upload&&(je.upload.onprogress=function(xn){xn.total>0&&(xn.percent=xn.loaded/xn.total*100),He.onProgress(xn)});var vn=new FormData;He.data&&Object.keys(He.data).forEach(function(bn){var xn=He.data[bn];if(Array.isArray(xn)){xn.forEach(function(On){vn.append("".concat(bn,"[]"),On)});return}vn.append(bn,xn)}),He.file instanceof Blob?vn.append(He.filename,He.file,He.file.name):vn.append(He.filename,He.file),je.onerror=function(xn){He.onError(xn)},je.onload=function(){return je.status<200||je.status>=300?He.onError(nt(He,je),ht(je)):He.onSuccess(ht(je),je)},je.open(He.method,He.action,!0),He.withCredentials&&"withCredentials"in je&&(je.withCredentials=!0);var rn=He.headers||{};return rn["X-Requested-With"]!==null&&je.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(rn).forEach(function(bn){rn[bn]!==null&&je.setRequestHeader(bn,rn[bn])}),je.send(vn),{abort:function(){je.abort()}}}var ft=+new Date,mt=0;function wt(){return"rc-upload-".concat(ft,"-").concat(++mt)}var Et=Pt(48736),Nt=function(He,je){if(He&&je){var vn=Array.isArray(je)?je:je.split(","),rn=He.name||"",bn=He.type||"",xn=bn.replace(/\/.*$/,"");return vn.some(function(On){var zn=On.trim();if(/^\*(\/\*)?$/.test(On))return!0;if(zn.charAt(0)==="."){var yi=rn.toLowerCase(),Xe=zn.toLowerCase(),Li=[Xe];return(Xe===".jpg"||Xe===".jpeg")&&(Li=[".jpg",".jpeg"]),Li.some(function(ji){return yi.endsWith(ji)})}return/\/\*$/.test(zn)?xn===zn.replace(/\/.*$/,""):bn===zn?!0:/^\w+$/.test(zn)?((0,Et.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(zn,"'.Skip for check.")),!0):!1})}return!0};function Dt(He,je){var vn=He.createReader(),rn=[];function bn(){vn.readEntries(function(xn){var On=Array.prototype.slice.apply(xn);rn=rn.concat(On);var zn=!On.length;zn?je(rn):bn()})}bn()}var At=function(je,vn,rn){var bn=function xn(On,zn){On&&(On.path=zn||"",On.isFile?On.file(function(yi){rn(yi)&&(On.fullPath&&!yi.webkitRelativePath&&(Object.defineProperties(yi,{webkitRelativePath:{writable:!0}}),yi.webkitRelativePath=On.fullPath.replace(/^\//,""),Object.defineProperties(yi,{webkitRelativePath:{writable:!1}})),vn([yi]))}):On.isDirectory&&Dt(On,function(yi){yi.forEach(function(Xe){xn(Xe,"".concat(zn).concat(On.name,"/"))})}))};je.forEach(function(xn){bn(xn.webkitGetAsEntry())})},Kt=At,Wt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(He){(0,De.Z)(vn,He);var je=(0,we.Z)(vn);function vn(){var rn;(0,Ut.Z)(this,vn);for(var bn=arguments.length,xn=new Array(bn),On=0;On{let{uid:xn}=bn;return xn===He.uid});return rn===-1?vn.push(He):vn[rn]=He,vn}function Ne(He,je){const vn=He.uid!==void 0?"uid":"name";return je.filter(rn=>rn[vn]===He[vn])[0]}function hn(He,je){const vn=He.uid!==void 0?"uid":"name",rn=je.filter(bn=>bn[vn]!==He[vn]);return rn.length===je.length?null:rn}const an=function(){const je=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),rn=je[je.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(rn)||[""])[0]},_e=He=>He.indexOf("image/")===0,En=He=>{if(He.type&&!He.thumbUrl)return _e(He.type);const je=He.thumbUrl||He.url||"",vn=an(je);return/^data:image\//.test(je)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(vn)?!0:!(/^data:/.test(je)||vn)},Ln=200;function ye(He){return new Promise(je=>{if(!He.type||!_e(He.type)){je("");return}const vn=document.createElement("canvas");vn.width=Ln,vn.height=Ln,vn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ln}px; height: ${Ln}px; z-index: 9999; display: none;`,document.body.appendChild(vn);const rn=vn.getContext("2d"),bn=new Image;if(bn.onload=()=>{const{width:xn,height:On}=bn;let zn=Ln,yi=Ln,Xe=0,Li=0;xn>On?(yi=On*(Ln/xn),Li=-(yi-zn)/2):(zn=xn*(Ln/On),Xe=-(zn-yi)/2),rn.drawImage(bn,Xe,Li,zn,yi);const ji=vn.toDataURL();document.body.removeChild(vn),window.URL.revokeObjectURL(bn.src),je(ji)},bn.crossOrigin="anonymous",He.type.startsWith("image/svg+xml")){const xn=new FileReader;xn.onload=()=>{xn.result&&(bn.src=xn.result)},xn.readAsDataURL(He)}else if(He.type.startsWith("image/gif")){const xn=new FileReader;xn.onload=()=>{xn.result&&je(xn.result)},xn.readAsDataURL(He)}else bn.src=window.URL.createObjectURL(He)})}var on=Pt(26227),Pn=Pt(41464),Cn=Pt(15277),An=Pt(93948),Jn=Pt(6848),ni=vt.forwardRef((He,je)=>{let{prefixCls:vn,className:rn,style:bn,locale:xn,listType:On,file:zn,items:yi,progress:Xe,iconRender:Li,actionIconRender:ji,itemRender:Ei,isImgUrl:nn,showPreviewIcon:Vn,showRemoveIcon:ze,showDownloadIcon:Ge,previewIcon:Oe,removeIcon:un,downloadIcon:kn,onPreview:Tn,onDownload:Rn,onClose:ei}=He;var qe,pi;const{status:tn}=zn,[Ci,Ui]=vt.useState(tn);vt.useEffect(()=>{tn!=="removed"&&Ui(tn)},[tn]);const[$i,Co]=vt.useState(!1);vt.useEffect(()=>{const uo=setTimeout(()=>{Co(!0)},300);return()=>{clearTimeout(uo)}},[]);const lo=Li(zn);let Si=vt.createElement("div",{className:`${vn}-icon`},lo);if(On==="picture"||On==="picture-card"||On==="picture-circle")if(Ci==="uploading"||!zn.thumbUrl&&!zn.url){const uo=de()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:Ci!=="uploading"});Si=vt.createElement("div",{className:uo},lo)}else{const uo=nn!=null&&nn(zn)?vt.createElement("img",{src:zn.thumbUrl||zn.url,alt:zn.name,className:`${vn}-list-item-image`,crossOrigin:zn.crossOrigin}):lo,Pi=de()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:nn&&!nn(zn)});Si=vt.createElement("a",{className:Pi,onClick:Ni=>Tn(zn,Ni),href:zn.url||zn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},uo)}const ii=de()(`${vn}-list-item`,`${vn}-list-item-${Ci}`),Yi=typeof zn.linkProps=="string"?JSON.parse(zn.linkProps):zn.linkProps,oo=ze?ji((typeof un=="function"?un(zn):un)||vt.createElement(on.Z,null),()=>ei(zn),vn,xn.removeFile):null,Yn=Ge&&Ci==="done"?ji((typeof kn=="function"?kn(zn):kn)||vt.createElement(Pn.Z,null),()=>Rn(zn),vn,xn.downloadFile):null,zt=On!=="picture-card"&&On!=="picture-circle"&&vt.createElement("span",{key:"download-delete",className:de()(`${vn}-list-item-actions`,{picture:On==="picture"})},Yn,oo),Ai=de()(`${vn}-list-item-name`),vo=zn.url?[vt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ai,title:zn.name},Yi,{href:zn.url,onClick:uo=>Tn(zn,uo)}),zn.name),zt]:[vt.createElement("span",{key:"view",className:Ai,onClick:uo=>Tn(zn,uo),title:zn.name},zn.name),zt],ao={pointerEvents:"none",opacity:.5},Eo=Vn?vt.createElement("a",{href:zn.url||zn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:zn.url||zn.thumbUrl?void 0:ao,onClick:uo=>Tn(zn,uo),title:xn.previewFile},typeof Oe=="function"?Oe(zn):Oe||vt.createElement(Cn.Z,null)):null,Ho=(On==="picture-card"||On==="picture-circle")&&Ci!=="uploading"&&vt.createElement("span",{className:`${vn}-list-item-actions`},Eo,Ci==="done"&&Yn,oo),{getPrefixCls:Zi}=vt.useContext(Ue.E_),xi=Zi(),Fi=vt.createElement("div",{className:ii},Si,vo,Ho,$i&&vt.createElement(ee.default,{motionName:`${xi}-fade`,visible:Ci==="uploading",motionDeadline:2e3},uo=>{let{className:Pi}=uo;const Ni="percent"in zn?vt.createElement(An.Z,Object.assign({},Xe,{type:"line",percent:zn.percent,"aria-label":zn["aria-label"],"aria-labelledby":zn["aria-labelledby"]})):null;return vt.createElement("div",{className:de()(`${vn}-list-item-progress`,Pi)},Ni)})),Mi=zn.response&&typeof zn.response=="string"?zn.response:((qe=zn.error)===null||qe===void 0?void 0:qe.statusText)||((pi=zn.error)===null||pi===void 0?void 0:pi.message)||xn.uploadError,co=Ci==="error"?vt.createElement(Jn.Z,{title:Mi,getPopupContainer:uo=>uo.parentNode},Fi):Fi;return vt.createElement("div",{className:de()(`${vn}-list-item-container`,rn),style:bn,ref:je},Ei?Ei(co,zn,yi,{download:Rn.bind(null,zn),preview:Tn.bind(null,zn),remove:ei.bind(null,zn)}):co)});const fi=(He,je)=>{const{listType:vn="text",previewFile:rn=ye,onPreview:bn,onDownload:xn,onRemove:On,locale:zn,iconRender:yi,isImageUrl:Xe=En,prefixCls:Li,items:ji=[],showPreviewIcon:Ei=!0,showRemoveIcon:nn=!0,showDownloadIcon:Vn=!1,removeIcon:ze,previewIcon:Ge,downloadIcon:Oe,progress:un={size:[-1,2],showInfo:!1},appendAction:kn,appendActionVisible:Tn=!0,itemRender:Rn,disabled:ei}=He,qe=(0,pe.Z)(),[pi,tn]=vt.useState(!1);vt.useEffect(()=>{vn!=="picture"&&vn!=="picture-card"&&vn!=="picture-circle"||(ji||[]).forEach(ao=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ao.originFileObj instanceof File||ao.originFileObj instanceof Blob)||ao.thumbUrl!==void 0||(ao.thumbUrl="",rn&&rn(ao.originFileObj).then(Eo=>{ao.thumbUrl=Eo||"",qe()}))})},[vn,ji,rn]),vt.useEffect(()=>{tn(!0)},[]);const Ci=(ao,Eo)=>{if(bn)return Eo==null||Eo.preventDefault(),bn(ao)},Ui=ao=>{typeof xn=="function"?xn(ao):ao.url&&window.open(ao.url)},$i=ao=>{On==null||On(ao)},Co=ao=>{if(yi)return yi(ao,vn);const Eo=ao.status==="uploading",Ho=Xe&&Xe(ao)?vt.createElement(yt,null):vt.createElement(Bn,null);let Zi=Eo?vt.createElement(dn.Z,null):vt.createElement(jt,null);return vn==="picture"?Zi=Eo?vt.createElement(dn.Z,null):Ho:(vn==="picture-card"||vn==="picture-circle")&&(Zi=Eo?zn.uploading:Ho),Zi},lo=(ao,Eo,Ho,Zi)=>{const xi={type:"text",size:"small",title:Zi,onClick:Fi=>{Eo(),(0,Zt.l$)(ao)&&ao.props.onClick&&ao.props.onClick(Fi)},className:`${Ho}-list-item-action`,disabled:ei};if((0,Zt.l$)(ao)){const Fi=(0,Zt.Tm)(ao,Object.assign(Object.assign({},ao.props),{onClick:()=>{}}));return vt.createElement(fe.ZP,Object.assign({},xi,{icon:Fi}))}return vt.createElement(fe.ZP,Object.assign({},xi),vt.createElement("span",null,ao))};vt.useImperativeHandle(je,()=>({handlePreview:Ci,handleDownload:Ui}));const{getPrefixCls:Si}=vt.useContext(Ue.E_),ii=Si("upload",Li),Yi=Si(),oo=de()(`${ii}-list`,`${ii}-list-${vn}`),Yn=(0,It.Z)(ji.map(ao=>({key:ao.uid,file:ao})));let Ai={motionDeadline:2e3,motionName:`${ii}-${vn==="picture-card"||vn==="picture-circle"?"animate-inline":"animate"}`,keys:Yn,motionAppear:pi};const vo=vt.useMemo(()=>{const ao=Object.assign({},(0,qt.Z)(Yi));return delete ao.onAppearEnd,delete ao.onEnterEnd,delete ao.onLeaveEnd,ao},[Yi]);return vn!=="picture-card"&&vn!=="picture-circle"&&(Ai=Object.assign(Object.assign({},vo),Ai)),vt.createElement("div",{className:oo},vt.createElement(ee.CSSMotionList,Object.assign({},Ai,{component:!1}),ao=>{let{key:Eo,file:Ho,className:Zi,style:xi}=ao;return vt.createElement(ni,{key:Eo,locale:zn,prefixCls:ii,className:Zi,style:xi,file:Ho,items:ji,progress:un,listType:vn,isImgUrl:Xe,showPreviewIcon:Ei,showRemoveIcon:nn,showDownloadIcon:Vn,removeIcon:ze,previewIcon:Ge,downloadIcon:Oe,iconRender:Co,actionIconRender:lo,itemRender:Rn,onPreview:Ci,onDownload:Ui,onClose:$i})}),kn&&vt.createElement(ee.default,Object.assign({},Ai,{visible:Tn,forceRender:!0}),ao=>{let{className:Eo,style:Ho}=ao;return(0,Zt.Tm)(kn,Zi=>({className:de()(Zi.className,Eo),style:Object.assign(Object.assign(Object.assign({},Ho),{pointerEvents:Eo?"none":void 0}),Zi.style)}))}))};var Ti=vt.forwardRef(fi),Di=Pt(17313),io=Pt(8378),to=Pt(83116),Ri=Pt(37613),Zn=He=>{const{componentCls:je,iconCls:vn}=He;return{[`${je}-wrapper`]:{[`${je}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:He.colorFillAlter,border:`${He.lineWidth}px dashed ${He.colorBorder}`,borderRadius:He.borderRadiusLG,cursor:"pointer",transition:`border-color ${He.motionDurationSlow}`,[je]:{padding:`${He.padding}px 0`},[`${je}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${je}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${je}-disabled):hover`]:{borderColor:He.colorPrimaryHover},[`p${je}-drag-icon`]:{marginBottom:He.margin,[vn]:{color:He.colorPrimary,fontSize:He.uploadThumbnailSize}},[`p${je}-text`]:{margin:`0 0 ${He.marginXXS}px`,color:He.colorTextHeading,fontSize:He.fontSizeLG},[`p${je}-hint`]:{color:He.colorTextDescription,fontSize:He.fontSize},[`&${je}-disabled`]:{cursor:"not-allowed",[`p${je}-drag-icon ${vn}, p${je}-text, p${je}-hint `]:{color:He.colorTextDisabled}}}}}},so=He=>{const{componentCls:je,antCls:vn,iconCls:rn,fontSize:bn,lineHeight:xn}=He,On=`${je}-list-item`,zn=`${On}-actions`,yi=`${On}-action`,Xe=Math.round(bn*xn);return{[`${je}-wrapper`]:{[`${je}-list`]:Object.assign(Object.assign({},(0,Di.dF)()),{lineHeight:He.lineHeight,[On]:{position:"relative",height:He.lineHeight*bn,marginTop:He.marginXS,fontSize:bn,display:"flex",alignItems:"center",transition:`background-color ${He.motionDurationSlow}`,"&:hover":{backgroundColor:He.controlItemBgHover},[`${On}-name`]:Object.assign(Object.assign({},Di.vS),{padding:`0 ${He.paddingXS}px`,lineHeight:xn,flex:"auto",transition:`all ${He.motionDurationSlow}`}),[zn]:{[yi]:{opacity:0},[`${yi}${vn}-btn-sm`]:{height:Xe,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${yi}:focus-visible, &.picture ${yi} `]:{opacity:1},[rn]:{color:He.actionsColor,transition:`all ${He.motionDurationSlow}`},[`&:hover ${rn}`]:{color:He.colorText}},[`${je}-icon ${rn}`]:{color:He.colorTextDescription,fontSize:bn},[`${On}-progress`]:{position:"absolute",bottom:-He.uploadProgressOffset,width:"100%",paddingInlineStart:bn+He.paddingXS,fontSize:bn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${On}:hover ${yi}`]:{opacity:1,color:He.colorText},[`${On}-error`]:{color:He.colorError,[`${On}-name, ${je}-icon ${rn}`]:{color:He.colorError},[zn]:{[`${rn}, ${rn}:hover`]:{color:He.colorError},[yi]:{opacity:1}}},[`${je}-list-item-container`]:{transition:`opacity ${He.motionDurationSlow}, height ${He.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ii=Pt(93083),Wi=Pt(1950);const ki=new Ii.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Bo=new Ii.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ai=He=>{const{componentCls:je}=He,vn=`${je}-animate-inline`;return[{[`${je}-wrapper`]:{[`${vn}-appear, ${vn}-enter, ${vn}-leave`]:{animationDuration:He.motionDurationSlow,animationTimingFunction:He.motionEaseInOutCirc,animationFillMode:"forwards"},[`${vn}-appear, ${vn}-enter`]:{animationName:ki},[`${vn}-leave`]:{animationName:Bo}}},{[`${je}-wrapper`]:(0,Wi.J$)(He)},ki,Bo]},di=Pt(93398),Ae=Pt(64993);const Be=He=>{const{componentCls:je,iconCls:vn,uploadThumbnailSize:rn,uploadProgressOffset:bn}=He,xn=`${je}-list`,On=`${xn}-item`;return{[`${je}-wrapper`]:{[` ${xn}${xn}-picture, ${xn}${xn}-picture-card, ${xn}${xn}-picture-circle `]:{[On]:{position:"relative",height:rn+He.lineWidth*2+He.paddingXS*2,padding:He.paddingXS,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadiusLG,"&:hover":{background:"transparent"},[`${On}-thumbnail`]:Object.assign(Object.assign({},Di.vS),{width:rn,height:rn,lineHeight:`${rn+He.paddingSM}px`,textAlign:"center",flex:"none",[vn]:{fontSize:He.fontSizeHeading2,color:He.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${On}-progress`]:{bottom:bn,width:`calc(100% - ${He.paddingSM*2}px)`,marginTop:0,paddingInlineStart:rn+He.paddingXS}},[`${On}-error`]:{borderColor:He.colorError,[`${On}-thumbnail ${vn}`]:{[`svg path[fill='${di.blue[0]}']`]:{fill:He.colorErrorBg},[`svg path[fill='${di.blue.primary}']`]:{fill:He.colorError}}},[`${On}-uploading`]:{borderStyle:"dashed",[`${On}-name`]:{marginBottom:bn}}},[`${xn}${xn}-picture-circle ${On}`]:{[`&, &::before, ${On}-thumbnail`]:{borderRadius:"50%"}}}}},_t=He=>{const{componentCls:je,iconCls:vn,fontSizeLG:rn,colorTextLightSolid:bn}=He,xn=`${je}-list`,On=`${xn}-item`,zn=He.uploadPicCardSize;return{[` ${je}-wrapper${je}-picture-card-wrapper, ${je}-wrapper${je}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Di.dF)()),{display:"inline-block",width:"100%",[`${je}${je}-select`]:{width:zn,height:zn,marginInlineEnd:He.marginXS,marginBottom:He.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:He.colorFillAlter,border:`${He.lineWidth}px dashed ${He.colorBorder}`,borderRadius:He.borderRadiusLG,cursor:"pointer",transition:`border-color ${He.motionDurationSlow}`,[`> ${je}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${je}-disabled):hover`]:{borderColor:He.colorPrimary}},[`${xn}${xn}-picture-card, ${xn}${xn}-picture-circle`]:{[`${xn}-item-container`]:{display:"inline-block",width:zn,height:zn,marginBlock:`0 ${He.marginXS}px`,marginInline:`0 ${He.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[On]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${He.paddingXS*2}px)`,height:`calc(100% - ${He.paddingXS*2}px)`,backgroundColor:He.colorBgMask,opacity:0,transition:`all ${He.motionDurationSlow}`,content:'" "'}},[`${On}:hover`]:{[`&::before, ${On}-actions`]:{opacity:1}},[`${On}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${He.motionDurationSlow}`,[`${vn}-eye, ${vn}-download, ${vn}-delete`]:{zIndex:10,width:rn,margin:`0 ${He.marginXXS}px`,fontSize:rn,cursor:"pointer",transition:`all ${He.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${On}-actions, ${On}-actions:hover`]:{[`${vn}-eye, ${vn}-download, ${vn}-delete`]:{color:new Ae.C(bn).setAlpha(.65).toRgbString(),"&:hover":{color:bn}}},[`${On}-thumbnail, ${On}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${On}-name`]:{display:"none",textAlign:"center"},[`${On}-file + ${On}-name`]:{position:"absolute",bottom:He.margin,display:"block",width:`calc(100% - ${He.paddingXS*2}px)`},[`${On}-uploading`]:{[`&${On}`]:{backgroundColor:He.colorFillAlter},[`&::before, ${vn}-eye, ${vn}-download, ${vn}-delete`]:{display:"none"}},[`${On}-progress`]:{bottom:He.marginXL,width:`calc(100% - ${He.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${je}-wrapper${je}-picture-circle-wrapper`]:{[`${je}${je}-select`]:{borderRadius:"50%"}}}};var cn=He=>{const{componentCls:je}=He;return{[`${je}-rtl`]:{direction:"rtl"}}};const ve=He=>{const{componentCls:je,colorTextDisabled:vn}=He;return{[`${je}-wrapper`]:Object.assign(Object.assign({},(0,Di.Wf)(He)),{[je]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${je}-select`]:{display:"inline-block"},[`${je}-disabled`]:{color:vn,cursor:"not-allowed"}})}};var ie=(0,to.Z)("Upload",He=>{const{fontSizeHeading3:je,fontSize:vn,lineHeight:rn,lineWidth:bn,controlHeightLG:xn}=He,On=Math.round(vn*rn),zn=(0,Ri.TS)(He,{uploadThumbnailSize:je*2,uploadProgressOffset:On/2+bn,uploadPicCardSize:xn*2.55});return[ve(zn),Zn(zn),Be(zn),_t(zn),so(zn),ai(zn),cn(zn),(0,io.Z)(zn)]},He=>({actionsColor:He.colorTextDescription})),Qe=function(He,je,vn,rn){function bn(xn){return xn instanceof vn?xn:new vn(function(On){On(xn)})}return new(vn||(vn=Promise))(function(xn,On){function zn(Li){try{Xe(rn.next(Li))}catch(ji){On(ji)}}function yi(Li){try{Xe(rn.throw(Li))}catch(ji){On(ji)}}function Xe(Li){Li.done?xn(Li.value):bn(Li.value).then(zn,yi)}Xe((rn=rn.apply(He,je||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,Nn=(He,je)=>{const{fileList:vn,defaultFileList:rn,onRemove:bn,showUploadList:xn=!0,listType:On="text",onPreview:zn,onDownload:yi,onChange:Xe,onDrop:Li,previewFile:ji,disabled:Ei,locale:nn,iconRender:Vn,isImageUrl:ze,progress:Ge,prefixCls:Oe,className:un,type:kn="select",children:Tn,style:Rn,itemRender:ei,maxCount:qe,data:pi={},multiple:tn=!1,action:Ci="",accept:Ui="",supportServerRender:$i=!0,rootClassName:Co}=He,lo=vt.useContext(ue.Z),Si=Ei!=null?Ei:lo,[ii,Yi]=(0,Pe.Z)(rn||[],{value:vn,postState:jo=>jo!=null?jo:[]}),[oo,Yn]=vt.useState("drop"),zt=vt.useRef(null);vt.useMemo(()=>{const jo=Date.now();(vn||[]).forEach((Lo,vr)=>{!Lo.uid&&!Object.isFrozen(Lo)&&(Lo.uid=`__AUTO__${jo}_${vr}__`)})},[vn]);const Ai=(jo,Lo,vr)=>{let Xo=(0,It.Z)(Lo),bo=!1;qe===1?Xo=Xo.slice(-1):qe&&(bo=Xo.length>qe,Xo=Xo.slice(0,qe)),(0,We.flushSync)(()=>{Yi(Xo)});const Ao={file:jo,fileList:Xo};vr&&(Ao.event=vr),(!bo||Xo.some(ur=>ur.uid===jo.uid))&&(0,We.flushSync)(()=>{Xe==null||Xe(Ao)})},vo=(jo,Lo)=>Qe(void 0,void 0,void 0,function*(){const{beforeUpload:vr,transformFile:Xo}=He;let bo=jo;if(vr){const Ao=yield vr(jo,Lo);if(Ao===!1)return!1;if(delete jo[yn],Ao===yn)return Object.defineProperty(jo,yn,{value:!0,configurable:!0}),!1;typeof Ao=="object"&&Ao&&(bo=Ao)}return Xo&&(bo=yield Xo(bo)),bo}),ao=jo=>{const Lo=jo.filter(bo=>!bo.file[yn]);if(!Lo.length)return;const vr=Lo.map(bo=>ce(bo.file));let Xo=(0,It.Z)(ii);vr.forEach(bo=>{Xo=ne(bo,Xo)}),vr.forEach((bo,Ao)=>{let ur=bo;if(Lo[Ao].parsedFile)bo.status="uploading";else{const{originFileObj:no}=bo;let ko;try{ko=new File([no],no.name,{type:no.type})}catch(No){ko=new Blob([no],{type:no.type}),ko.name=no.name,ko.lastModifiedDate=new Date,ko.lastModified=new Date().getTime()}ko.uid=bo.uid,ur=ko}Ai(ur,Xo)})},Eo=(jo,Lo,vr)=>{try{typeof jo=="string"&&(jo=JSON.parse(jo))}catch(Ao){}if(!Ne(Lo,ii))return;const Xo=ce(Lo);Xo.status="done",Xo.percent=100,Xo.response=jo,Xo.xhr=vr;const bo=ne(Xo,ii);Ai(Xo,bo)},Ho=(jo,Lo)=>{if(!Ne(Lo,ii))return;const vr=ce(Lo);vr.status="uploading",vr.percent=jo.percent;const Xo=ne(vr,ii);Ai(vr,Xo,jo)},Zi=(jo,Lo,vr)=>{if(!Ne(vr,ii))return;const Xo=ce(vr);Xo.error=jo,Xo.response=Lo,Xo.status="error";const bo=ne(Xo,ii);Ai(Xo,bo)},xi=jo=>{let Lo;Promise.resolve(typeof bn=="function"?bn(jo):bn).then(vr=>{var Xo;if(vr===!1)return;const bo=hn(jo,ii);bo&&(Lo=Object.assign(Object.assign({},jo),{status:"removed"}),ii==null||ii.forEach(Ao=>{const ur=Lo.uid!==void 0?"uid":"name";Ao[ur]===Lo[ur]&&!Object.isFrozen(Ao)&&(Ao.status="removed")}),(Xo=zt.current)===null||Xo===void 0||Xo.abort(Lo),Ai(Lo,bo))})},Fi=jo=>{Yn(jo.type),jo.type==="drop"&&(Li==null||Li(jo))};vt.useImperativeHandle(je,()=>({onBatchStart:ao,onSuccess:Eo,onProgress:Ho,onError:Zi,fileList:ii,upload:zt.current}));const{getPrefixCls:Mi,direction:co,upload:uo}=vt.useContext(Ue.E_),Pi=Mi("upload",Oe),Ni=Object.assign(Object.assign({onBatchStart:ao,onError:Zi,onProgress:Ho,onSuccess:Eo},He),{data:pi,multiple:tn,action:Ci,accept:Ui,supportServerRender:$i,prefixCls:Pi,disabled:Si,beforeUpload:vo,onChange:void 0});delete Ni.className,delete Ni.style,(!Tn||Si)&&delete Ni.id;const[Wn,zi]=ie(Pi),[xo]=(0,Ht.Z)("Upload",ke.Z.Upload),{showRemoveIcon:Ko,showPreviewIcon:Uo,showDownloadIcon:Qo,removeIcon:ar,previewIcon:Ro,downloadIcon:er}=typeof xn=="boolean"?{}:xn,nr=(jo,Lo)=>xn?vt.createElement(Ti,{prefixCls:Pi,listType:On,items:ii,previewFile:ji,onPreview:zn,onDownload:yi,onRemove:xi,showRemoveIcon:!Si&&Ko,showPreviewIcon:Uo,showDownloadIcon:Qo,removeIcon:ar,previewIcon:Ro,downloadIcon:er,iconRender:Vn,locale:Object.assign(Object.assign({},xo),nn),isImageUrl:ze,progress:Ge,appendAction:jo,appendActionVisible:Lo,itemRender:ei,disabled:Si}):jo,qr=de()(`${Pi}-wrapper`,un,Co,zi,uo==null?void 0:uo.className,{[`${Pi}-rtl`]:co==="rtl",[`${Pi}-picture-card-wrapper`]:On==="picture-card",[`${Pi}-picture-circle-wrapper`]:On==="picture-circle"}),sn=Object.assign(Object.assign({},uo==null?void 0:uo.style),Rn);if(kn==="drag"){const jo=de()(zi,Pi,`${Pi}-drag`,{[`${Pi}-drag-uploading`]:ii.some(Lo=>Lo.status==="uploading"),[`${Pi}-drag-hover`]:oo==="dragover",[`${Pi}-disabled`]:Si,[`${Pi}-rtl`]:co==="rtl"});return Wn(vt.createElement("span",{className:qr},vt.createElement("div",{className:jo,style:sn,onDrop:Fi,onDragOver:Fi,onDragLeave:Fi},vt.createElement(Le,Object.assign({},Ni,{ref:zt,className:`${Pi}-btn`}),vt.createElement("div",{className:`${Pi}-drag-container`},Tn))),nr()))}const wr=de()(Pi,`${Pi}-select`,{[`${Pi}-disabled`]:Si}),Cs=(jo=>vt.createElement("div",{className:wr,style:jo},vt.createElement(Le,Object.assign({},Ni,{ref:zt}))))(Tn?void 0:{display:"none"});return Wn(On==="picture-card"||On==="picture-circle"?vt.createElement("span",{className:qr},nr(Cs,!!Tn)):vt.createElement("span",{className:qr},Cs,nr()))};var le=vt.forwardRef(Nn),mn=function(He,je){var vn={};for(var rn in He)Object.prototype.hasOwnProperty.call(He,rn)&&je.indexOf(rn)<0&&(vn[rn]=He[rn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,rn=Object.getOwnPropertySymbols(He);bn{var{style:vn,height:rn}=He,bn=mn(He,["style","height"]);return vt.createElement(le,Object.assign({ref:je},bn,{type:"drag",style:Object.assign(Object.assign({},vn),{height:rn})}))});const Re=le;Re.Dragger=si,Re.LIST_IGNORE=yn;var fn=Re},57780:function(Sn,Ve,Pt){"use strict";Pt.r(Ve),Pt.d(Ve,{clsx:function(){return It}});function vt(oe){var de,$t,Ut="";if(typeof oe=="string"||typeof oe=="number")Ut+=oe;else if(typeof oe=="object")if(Array.isArray(oe))for(de=0;de`,triples:"",explode:"[]{}"},oe=vt.Pos;vt.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=vt.Init&&(et.removeKeyMap($t),et.state.closeBrackets=null),nt&&(Ut(de(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap($t))});function de(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:It[nt]}var $t={Backspace:we,Enter:te};function Ut(et){for(var nt=0;nt=0;ft--){var wt=at[ft].head;et.replaceRange("",oe(wt.line,wt.ch-1),oe(wt.line,wt.ch+1),"+delete")}}function te(et){var nt=De(et),ht=nt&&de(nt,"explode");if(!ht||et.getOption("disableInput"))return vt.Pass;for(var at=et.listSelections(),ft=0;ft0;return{anchor:new oe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new oe(et.head.line,et.head.ch+(nt?1:-1))}}function re(et,nt){var ht=De(et);if(!ht||et.getOption("disableInput"))return vt.Pass;var at=de(ht,"pairs"),ft=at.indexOf(nt);if(ft==-1)return vt.Pass;for(var mt=de(ht,"closeBefore"),wt=de(ht,"triples"),Et=at.charAt(ft+1)==nt,Nt=et.listSelections(),Dt=ft%2==0,At,Kt=0;Kt=0&&et.getRange(xe,oe(xe.line,xe.ch+3))==nt+nt+nt?Vt="skipThree":Vt="skip";else if(Et&&xe.ch>1&&wt.indexOf(nt)>=0&&et.getRange(oe(xe.line,xe.ch-2),xe)==nt+nt){if(xe.ch>2&&/\bstring/.test(et.getTokenTypeAt(oe(xe.line,xe.ch-2))))return vt.Pass;Vt="addFour"}else if(Et){var Se=xe.ch==0?" ":et.getRange(oe(xe.line,xe.ch-1),xe);if(!vt.isWordChar(Ie)&&Se!=nt&&!vt.isWordChar(Se))Vt="both";else return vt.Pass}else if(Dt&&(Ie.length===0||/\s/.test(Ie)||mt.indexOf(Ie)>-1))Vt="both";else return vt.Pass;if(!At)At=Vt;else if(At!=Vt)return vt.Pass}var Ye=ft%2?at.charAt(ft-1):nt,Le=ft%2?nt:at.charAt(ft+1);et.operation(function(){if(At=="skip")et.execCommand("goCharRight");else if(At=="skipThree")for(var Pe=0;Pe<3;Pe++)et.execCommand("goCharRight");else if(At=="surround"){for(var We=et.getSelections(),Pe=0;Pe'"]=function(me){return de(me)}),we.addKeyMap(re)}});var It=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function de(we){if(we.getOption("disableInput"))return vt.Pass;for(var te=we.listSelections(),Fe=[],re=we.getOption("autoCloseTags"),me=0;meOt.ch&&(ft=ft.slice(0,ft.length-et.end+Ot.ch));var Nt=ft.toLowerCase();if(!ft||et.type=="string"&&(et.end!=Ot.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&at.close||et.string.indexOf("/")==Ot.ch-et.start-1||wt&&Jt(wt,Nt)>-1||De(we,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],ft,Ot,!0))return vt.Pass;var Dt=typeof re=="object"&&re.emptyTags;if(Dt&&Jt(Dt,ft)>-1){Fe[me]={text:"/>",newPos:vt.Pos(Ot.line,Ot.ch+2)};continue}var At=Et&&Jt(Et,Nt)>-1;Fe[me]={indent:At,text:">"+(At?` `:"")+"",newPos:At?vt.Pos(Ot.line+1,0):vt.Pos(Ot.line,Ot.ch+1)}}for(var Kt=typeof re=="object"&&re.dontIndentOnAutoClose,me=te.length-1;me>=0;me--){var Wt=Fe[me];we.replaceRange(Wt.text,te[me].head,te[me].anchor,"+insert");var xe=we.listSelections().slice(0);xe[me]={head:Wt.newPos,anchor:Wt.newPos},we.setSelections(xe),!Kt&&Wt.indent&&(we.indentLine(Wt.newPos.line,null,!0),we.indentLine(Wt.newPos.line+1,null,!0))}}function $t(we,te){for(var Fe=we.listSelections(),re=[],me=te?"/":""&&(wt+=">"),re[nt]=wt}if(we.replaceSelections(re),Fe=we.listSelections(),!et)for(var nt=0;nt=0&&te[ht]==Fe;ht--)++nt;re=et.to;for(var ht=1;ht=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function te(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function Fe(ht){for(;;){var at=ht.text.indexOf(">",ht.ch);if(at==-1){if(we(ht))continue;return}if(!De(ht,at+1)){ht.ch=at+1;continue}var ft=ht.text.lastIndexOf("/",at),mt=ft>-1&&!/\S/.test(ht.text.slice(ft+1,at));return ht.ch=at+1,mt?"selfClose":"regular"}}function re(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(at==-1){if(te(ht))continue;return}if(!De(ht,at+1)){ht.ch=at;continue}Ut.lastIndex=at,ht.ch=at;var ft=Ut.exec(ht.text);if(ft&&ft.index==at)return ft}}function me(ht){for(;;){Ut.lastIndex=ht.ch;var at=Ut.exec(ht.text);if(!at){if(we(ht))continue;return}if(!De(ht,at.index+1)){ht.ch=at.index+1;continue}return ht.ch=at.index+at[0].length,at}}function Ot(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(at==-1){if(te(ht))continue;return}if(!De(ht,at+1)){ht.ch=at;continue}var ft=ht.text.lastIndexOf("/",at),mt=ft>-1&&!/\S/.test(ht.text.slice(ft+1,at));return ht.ch=at+1,mt?"selfClose":"regular"}}function et(ht,at){for(var ft=[];;){var mt=me(ht),wt,Et=ht.line,Nt=ht.ch-(mt?mt[0].length:0);if(!mt||!(wt=Fe(ht)))return;if(wt!="selfClose")if(mt[1]){for(var Dt=ft.length-1;Dt>=0;--Dt)if(ft[Dt]==mt[2]){ft.length=Dt;break}if(Dt<0&&(!at||at==mt[2]))return{tag:mt[2],from:It(Et,Nt),to:It(ht.line,ht.ch)}}else ft.push(mt[2])}}function nt(ht,at){for(var ft=[];;){var mt=Ot(ht);if(!mt)return;if(mt=="selfClose"){re(ht);continue}var wt=ht.line,Et=ht.ch,Nt=re(ht);if(!Nt)return;if(Nt[1])ft.push(Nt[2]);else{for(var Dt=ft.length-1;Dt>=0;--Dt)if(ft[Dt]==Nt[2]){ft.length=Dt;break}if(Dt<0&&(!at||at==Nt[2]))return{tag:Nt[2],from:It(ht.line,ht.ch),to:It(wt,Et)}}}}vt.registerHelper("fold","xml",function(ht,at){for(var ft=new Jt(ht,at.line,0);;){var mt=me(ft);if(!mt||ft.line!=at.line)return;var wt=Fe(ft);if(!wt)return;if(!mt[1]&&wt!="selfClose"){var Et=It(ft.line,ft.ch),Nt=et(ft,mt[2]);return Nt&&oe(Nt.from,Et)>0?{from:Et,to:Nt.from}:null}}}),vt.findMatchingTag=function(ht,at,ft){var mt=new Jt(ht,at.line,at.ch,ft);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var wt=Fe(mt),Et=wt&&It(mt.line,mt.ch),Nt=wt&&re(mt);if(!(!wt||!Nt||oe(mt,at)>0)){var Dt={from:It(mt.line,mt.ch),to:Et,tag:Nt[2]};return wt=="selfClose"?{open:Dt,close:null,at:"open"}:Nt[1]?{open:nt(mt,Nt[2]),close:Dt,at:"close"}:(mt=new Jt(ht,Et.line,Et.ch,ft),{open:Dt,close:et(mt,Nt[2]),at:"open"})}}},vt.findEnclosingTag=function(ht,at,ft,mt){for(var wt=new Jt(ht,at.line,at.ch,ft);;){var Et=nt(wt,mt);if(!Et)break;var Nt=new Jt(ht,at.line,at.ch,ft),Dt=et(Nt,Et.tag);if(Dt)return{open:Et,close:Dt}}},vt.scanForClosingTag=function(ht,at,ft,mt){var wt=new Jt(ht,at.line,at.ch,mt?{from:0,to:mt}:null);return et(wt,ft)}})},89780:function(Sn){(function(Ve,Pt){Sn.exports=Pt()})(this,function(){"use strict";var Ve=navigator.userAgent,Pt=navigator.platform,vt=/gecko\/\d/i.test(Ve),It=/MSIE \d/.test(Ve),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ve),de=/Edge\/(\d+)/.exec(Ve),$t=It||oe||de,Ut=$t&&(It?document.documentMode||6:+(de||oe)[1]),Jt=!de&&/WebKit\//.test(Ve),De=Jt&&/Qt\/\d+\.\d+/.test(Ve),we=!de&&/Chrome\//.test(Ve),te=/Opera\//.test(Ve),Fe=/Apple Computer/.test(navigator.vendor),re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ve),me=/PhantomJS/.test(Ve),Ot=!de&&/AppleWebKit/.test(Ve)&&/Mobile\/\w+/.test(Ve),et=/Android/.test(Ve),nt=Ot||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ve),ht=Ot||/Mac/.test(Pt),at=/\bCrOS\b/.test(Ve),ft=/win/i.test(Pt),mt=te&&Ve.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(te=!1,Jt=!0);var wt=ht&&(De||te&&(mt==null||mt<12.11)),Et=vt||$t&&Ut>=9;function Nt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Dt=function(it,st){var ct=it.className,dt=Nt(st).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function At(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function Kt(it,st){return At(it).appendChild(st)}function Wt(it,st,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof st=="string")pt.appendChild(document.createTextNode(st));else if(st)for(var kt=0;kt=st)return Rt+(st-kt);Rt+=Qt-kt,Rt+=ct-Rt%ct,kt=Qt+1}}var Ht=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};Ht.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Ht.prototype.set=function(it,st){this.f=st;var ct=+new Date+it;(!this.id||ct=st)return dt+Math.min(Rt,st-pt);if(pt+=kt-dt,pt+=ct-pt%ct,dt=kt+1,pt>=st)return dt}}var dn=[""];function In(it){for(;dn.length<=it;)dn.push(Ce(dn)+" ");return dn[it]}function Ce(it){return it[it.length-1]}function $n(it,st){for(var ct=[],dt=0;dt"\x80"&&(it.toUpperCase()!=it.toLowerCase()||xt.test(it))}function Ft(it,st){return st?st.source.indexOf("\\w")>-1&&Tt(it)?!0:st.test(it):Tt(it)}function yt(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var ee=/[\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 pe(it){return it.charCodeAt(0)>=768&&ee.test(it)}function qt(it,st,ct){for(;(ct<0?st>0:stct?-1:1;;){if(st==ct)return st;var pt=(st+ct)/2,kt=dt<0?Math.ceil(pt):Math.floor(pt);if(kt==st)return it(kt)?st:ct;it(kt)?ct=kt:st=kt+dt}}function fe(it,st,ct,dt){if(!it)return dt(st,ct,"ltr",0);for(var pt=!1,kt=0;ktst||st==ct&&Rt.to==st)&&(dt(Math.max(Rt.from,st),Math.min(Rt.to,ct),Rt.level==1?"rtl":"ltr",kt),pt=!0)}pt||dt(st,ct,"ltr")}var ce=null;function ne(it,st,ct){var dt;ce=null;for(var pt=0;ptst)return pt;kt.to==st&&(kt.from!=kt.to&&ct=="before"?dt=pt:ce=pt),kt.from==st&&(kt.from!=kt.to&&ct!="before"?dt=pt:ce=pt)}return dt!=null?dt:ce}var Ne=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(ge){return ge<=247?it.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?st.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,kt=/[LRr]/,Rt=/[Lb1n]/,Qt=/[1n]/;function Xt(ge,en,Me){this.level=ge,this.from=en,this.to=Me}return function(ge,en){var Me=en=="ltr"?"L":"R";if(ge.length==0||en=="ltr"&&!dt.test(ge))return!1;for(var Fn=ge.length,Mn=[],hi=0;hi-1&&(dt[st]=pt.slice(0,kt).concat(pt.slice(kt+1)))}}}function ye(it,st){var ct=En(it,st);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt0}function An(it){it.prototype.on=function(st,ct){_e(this,st,ct)},it.prototype.off=function(st,ct){Ln(this,st,ct)}}function Jn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function ui(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function ni(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function fi(it){Jn(it),ui(it)}function Bi(it){return it.target||it.srcElement}function Ti(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),ht&&it.ctrlKey&&st==1&&(st=3),st}var Di=function(){if($t&&Ut<9)return!1;var it=Wt("div");return"draggable"in it||"dragDrop"in it}(),io;function to(it){if(io==null){var st=Wt("span","\u200B");Kt(it,Wt("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(io=st.offsetWidth<=1&&st.offsetHeight>2&&!($t&&Ut<8))}var ct=io?Wt("span","\u200B"):Wt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Ri;function Qi(it){if(Ri!=null)return Ri;var st=Kt(it,document.createTextNode("A\u062EA")),ct=Vt(st,0,1).getBoundingClientRect(),dt=Vt(st,1,2).getBoundingClientRect();return At(it),!ct||ct.left==ct.right?!1:Ri=dt.right-ct.right<3}var Zn=` b`.split(/\n/).length!=3?function(it){for(var st=0,ct=[],dt=it.length;st<=dt;){var pt=it.indexOf(` `,st);pt==-1&&(pt=it.length);var kt=it.slice(st,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=kt.indexOf("\r");Rt!=-1?(ct.push(kt.slice(0,Rt)),st+=Rt+1):(ct.push(kt),st=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Mt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(ct){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},so=function(){var it=Wt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Ii=null;function Wi(it){if(Ii!=null)return Ii;var st=Kt(it,Wt("span","x")),ct=st.getBoundingClientRect(),dt=Vt(st,0,1).getBoundingClientRect();return Ii=Math.abs(ct.left-dt.left)>1}var ki={},Bo={};function Mo(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ki[it]=st}function ai(it,st){Bo[it]=st}function di(it){if(typeof it=="string"&&Bo.hasOwnProperty(it))it=Bo[it];else if(it&&typeof it.name=="string"&&Bo.hasOwnProperty(it.name)){var st=Bo[it.name];typeof st=="string"&&(st={name:st}),it=Lt(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return di("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return di("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ae(it,st){st=di(st);var ct=ki[st.name];if(!ct)return Ae(it,"text/plain");var dt=ct(it,st);if(Be.hasOwnProperty(st.name)){var pt=Be[st.name];for(var kt in pt)pt.hasOwnProperty(kt)&&(dt.hasOwnProperty(kt)&&(dt["_"+kt]=dt[kt]),dt[kt]=pt[kt])}if(dt.name=st.name,st.helperType&&(dt.helperType=st.helperType),st.modeProps)for(var Rt in st.modeProps)dt[Rt]=st.modeProps[Rt];return dt}var Be={};function _t(it,st){var ct=Be.hasOwnProperty(it)?Be[it]:Be[it]={};Ue(st,ct)}function Je(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var ct={};for(var dt in st){var pt=st[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function cn(it,st){for(var ct;it.innerMode&&(ct=it.innerMode(st),!(!ct||ct.mode==it));)st=ct.state,it=ct.mode;return ct||{mode:it,state:st}}function ve(it,st,ct){return it.startState?it.startState(st,ct):!0}var ie=function(it,st,ct){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};ie.prototype.eol=function(){return this.pos>=this.string.length},ie.prototype.sol=function(){return this.pos==this.lineStart},ie.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ie.prototype.next=function(){if(this.posst},ie.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ie.prototype.skipToEnd=function(){this.pos=this.string.length},ie.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},ie.prototype.backUp=function(it){this.pos-=it},ie.prototype.column=function(){return this.lastColumnPos0?null:(kt&&st!==!1&&(this.pos+=kt[0].length),kt)}},ie.prototype.current=function(){return this.string.slice(this.start,this.pos)},ie.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},ie.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},ie.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Qe(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],kt=pt.chunkSize();if(st=it.first&&stct?Re(ct,Qe(it,ct).text.length):On(st,Qe(it,st.line).text.length)}function On(it,st){var ct=it.ch;return ct==null||ct>st?Re(it.line,st):ct<0?Re(it.line,0):it}function zn(it,st){for(var ct=[],dt=0;dtthis.maxLookAhead&&(this.maxLookAhead=it),st},Xe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Xe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xe.fromSaved=function(it,st,ct){return st instanceof yi?new Xe(it,Je(it.mode,st.state),ct,st.lookAhead):new Xe(it,Je(it.mode,st),ct)},Xe.prototype.save=function(it){var st=it!==!1?Je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(st,this.maxLookAhead):st};function Li(it,st,ct,dt){var pt=[it.state.modeGen],kt={};kn(it,st.text,it.doc.mode,ct,function(ge,en){return pt.push(ge,en)},kt,dt);for(var Rt=ct.state,Qt=function(ge){ct.baseTokens=pt;var en=it.state.overlays[ge],Me=1,Fn=0;ct.state=!0,kn(it,st.text,en.mode,ct,function(Mn,hi){for(var gi=Me;FnMn&&pt.splice(Me,1,Mn,pt[Me+1],bi),Me+=2,Fn=Math.min(Mn,bi)}if(hi)if(en.opaque)pt.splice(gi,Me-gi,Mn,"overlay "+hi),Me=gi+2;else for(;giit.options.maxHighlightLength&&Je(it.doc.mode,dt.state),kt=Li(it,st,dt);pt&&(dt.state=pt),st.stateAfter=dt.save(!pt),st.styles=kt.styles,kt.classes?st.styleClasses=kt.classes:st.styleClasses&&(st.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function Ei(it,st,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new Xe(dt,!0,st);var kt=Tn(it,st,ct),Rt=kt>dt.first&&Qe(dt,kt-1).stateAfter,Qt=Rt?Xe.fromSaved(dt,Rt,kt):new Xe(dt,ve(dt.mode),kt);return dt.iter(kt,st,function(Xt){nn(it,Xt.text,Qt);var ge=Qt.line;Xt.stateAfter=ge==st-1||ge%5==0||ge>=pt.viewFrom&&gest.start)return kt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Ge=function(it,st,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=ct};function Oe(it,st,ct,dt){var pt=it.doc,kt=pt.mode,Rt;st=xn(pt,st);var Qt=Qe(pt,st.line),Xt=Ei(it,st.line,ct),ge=new ie(Qt.text,it.options.tabSize,Xt),en;for(dt&&(en=[]);(dt||ge.posit.options.maxHighlightLength?(Qt=!1,Rt&&nn(it,st,dt,en.pos),en.pos=st.length,Me=null):Me=un(ze(ct,en,dt.state,Fn),kt),Fn){var Mn=Fn[0].name;Mn&&(Me="m-"+(Me?Mn+" "+Me:Mn))}if(!Qt||ge!=Me){for(;XtRt;--Qt){if(Qt<=kt.first)return kt.first;var Xt=Qe(kt,Qt-1),ge=Xt.stateAfter;if(ge&&(!ct||Qt+(ge instanceof yi?ge.lookAhead:0)<=kt.modeFrontier))return Qt;var en=ue(Xt.text,null,it.options.tabSize);(pt==null||dt>en)&&(pt=Qt-1,dt=en)}return pt}function Rn(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierct;dt--){var pt=Qe(it,dt).stateAfter;if(pt&&(!(pt instanceof yi)||dt+pt.lookAhead=st:kt.to>st);(dt||(dt=[])).push(new Ci(Rt,kt.from,Xt?null:kt.to))}}return dt}function Si(it,st,ct){var dt;if(it)for(var pt=0;pt=st:kt.to>st);if(Qt||kt.from==st&&Rt.type=="bookmark"&&(!ct||kt.marker.insertLeft)){var Xt=kt.from==null||(Rt.inclusiveLeft?kt.from<=st:kt.from0&&Qt)for(var mo=0;mo0)){var en=[Xt,1],Me=fn(ge.from,Qt.from),Fn=fn(ge.to,Qt.to);(Me<0||!Rt.inclusiveLeft&&!Me)&&en.push({from:ge.from,to:Qt.from}),(Fn>0||!Rt.inclusiveRight&&!Fn)&&en.push({from:Qt.to,to:ge.to}),pt.splice.apply(pt,en),Xt+=en.length-3}}return pt}function Yn(it){var st=it.markedSpans;if(st){for(var ct=0;ctst)&&(!dt||ao(dt,kt.marker)<0)&&(dt=kt.marker)}return dt}function Fi(it,st,ct,dt,pt){var kt=Qe(it,st),Rt=qe&&kt.markedSpans;if(Rt)for(var Qt=0;Qt=0&&Me<=0||en<=0&&Me>=0)&&(en<=0&&(Xt.marker.inclusiveRight&&pt.inclusiveLeft?fn(ge.to,ct)>=0:fn(ge.to,ct)>0)||en>=0&&(Xt.marker.inclusiveRight&&pt.inclusiveLeft?fn(ge.from,dt)<=0:fn(ge.from,dt)<0)))return!0}}}function Mi(it){for(var st;st=Ho(it);)it=st.find(-1,!0).line;return it}function co(it){for(var st;st=Zi(it);)it=st.find(1,!0).line;return it}function uo(it){for(var st,ct;st=Zi(it);)it=st.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Pi(it,st){var ct=Qe(it,st),dt=Mi(ct);return ct==dt?st:le(dt)}function Ni(it,st){if(st>it.lastLine())return st;var ct=Qe(it,st),dt;if(!Wn(it,ct))return st;for(;dt=Zi(ct);)ct=dt.find(1,!0).line;return le(ct)+1}function Wn(it,st){var ct=qe&&st.markedSpans;if(ct){for(var dt=void 0,pt=0;ptst.maxLineLength&&(st.maxLineLength=pt,st.maxLine=dt)})}var Qo=function(it,st,ct){this.text=it,zt(this,st),this.height=ct?ct(this):1};Qo.prototype.lineNo=function(){return le(this)},An(Qo);function ar(it,st,ct,dt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Yn(it),zt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&_n(it,pt)}function Ro(it){it.parent=null,Yn(it)}var er={},nr={};function qr(it,st){if(!it||/^\s*$/.test(it))return null;var ct=st.addModeClass?nr:er;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function sn(it,st){var ct=xe("span",null,null,Jt?"padding-right: .1px":null),dt={pre:xe("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var pt=0;pt<=(st.rest?st.rest.length:0);pt++){var kt=pt?st.rest[pt-1]:st.line,Rt=void 0;dt.pos=0,dt.addToken=Sa,Qi(it.display.measure)&&(Rt=hn(kt,it.doc.direction))&&(dt.addToken=jo(dt.addToken,Rt)),dt.map=[];var Qt=st!=it.display.externalMeasured&&le(kt);vr(kt,dt,ji(it,kt,Qt)),kt.styleClasses&&(kt.styleClasses.bgClass&&(dt.bgClass=Le(kt.styleClasses.bgClass,dt.bgClass||"")),kt.styleClasses.textClass&&(dt.textClass=Le(kt.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(to(it.display.measure))),pt==0?(st.measure.map=dt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(dt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Jt){var Xt=dt.content.lastChild;(/\bcm-tab\b/.test(Xt.className)||Xt.querySelector&&Xt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return ye(it,"renderLine",it,st.line,dt.pre),dt.pre.className&&(dt.textClass=Le(dt.pre.className,dt.textClass||"")),dt}function wr(it){var st=Wt("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Sa(it,st,ct,dt,pt,kt,Rt){if(st){var Qt=it.splitSpaces?Cs(st,it.trailingSpace):st,Xt=it.cm.state.specialChars,ge=!1,en;if(!Xt.test(st))it.col+=st.length,en=document.createTextNode(Qt),it.map.push(it.pos,it.pos+st.length,en),$t&&Ut<9&&(ge=!0),it.pos+=st.length;else{en=document.createDocumentFragment();for(var Me=0;;){Xt.lastIndex=Me;var Fn=Xt.exec(st),Mn=Fn?Fn.index-Me:st.length-Me;if(Mn){var hi=document.createTextNode(Qt.slice(Me,Me+Mn));$t&&Ut<9?en.appendChild(Wt("span",[hi])):en.appendChild(hi),it.map.push(it.pos,it.pos+Mn,hi),it.col+=Mn,it.pos+=Mn}if(!Fn)break;Me+=Mn+1;var gi=void 0;if(Fn[0]==" "){var bi=it.cm.options.tabSize,_i=bi-it.col%bi;gi=en.appendChild(Wt("span",In(_i),"cm-tab")),gi.setAttribute("role","presentation"),gi.setAttribute("cm-text"," "),it.col+=_i}else Fn[0]=="\r"||Fn[0]==` `?(gi=en.appendChild(Wt("span",Fn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),gi.setAttribute("cm-text",Fn[0]),it.col+=1):(gi=it.cm.options.specialCharPlaceholder(Fn[0]),gi.setAttribute("cm-text",Fn[0]),$t&&Ut<9?en.appendChild(Wt("span",[gi])):en.appendChild(gi),it.col+=1);it.map.push(it.pos,it.pos+1,gi),it.pos++}}if(it.trailingSpace=Qt.charCodeAt(st.length-1)==32,ct||dt||pt||ge||kt||Rt){var ho=ct||"";dt&&(ho+=dt),pt&&(ho+=pt);var qi=Wt("span",[en],ho,kt);if(Rt)for(var mo in Rt)Rt.hasOwnProperty(mo)&&mo!="style"&&mo!="class"&&qi.setAttribute(mo,Rt[mo]);return it.content.appendChild(qi)}it.content.appendChild(en)}}function Cs(it,st){if(it.length>1&&!/ /.test(it))return it;for(var ct=st,dt="",pt=0;ptge&&Me.from<=ge));Fn++);if(Me.to>=en)return it(ct,dt,pt,kt,Rt,Qt,Xt);it(ct,dt.slice(0,Me.to-ge),pt,kt,null,Qt,Xt),kt=null,dt=dt.slice(Me.to-ge),ge=Me.to}}}function Lo(it,st,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+st,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=st,it.trailingSpace=!1}function vr(it,st,ct){var dt=it.markedSpans,pt=it.text,kt=0;if(!dt){for(var Rt=1;RtXt||Vo.collapsed&&Ji.to==Xt&&Ji.from==Xt)){if(Ji.to!=null&&Ji.to!=Xt&&Mn>Ji.to&&(Mn=Ji.to,gi=""),Vo.className&&(hi+=" "+Vo.className),Vo.css&&(Fn=(Fn?Fn+";":"")+Vo.css),Vo.startStyle&&Ji.from==Xt&&(bi+=" "+Vo.startStyle),Vo.endStyle&&Ji.to==Mn&&(mo||(mo=[])).push(Vo.endStyle,Ji.to),Vo.title&&((ho||(ho={})).title=Vo.title),Vo.attributes)for(var $r in Vo.attributes)(ho||(ho={}))[$r]=Vo.attributes[$r];Vo.collapsed&&(!_i||ao(_i.marker,Vo)<0)&&(_i=Ji)}else Ji.from>Xt&&Mn>Ji.from&&(Mn=Ji.from)}if(mo)for(var Ss=0;Ss=Qt)break;for(var ba=Math.min(Qt,Mn);;){if(en){var ta=Xt+en.length;if(!_i){var fs=ta>ba?en.slice(0,ba-Xt):en;st.addToken(st,fs,Me?Me+hi:hi,bi,Xt+fs.length==Mn?gi:"",Fn,ho)}if(ta>=ba){en=en.slice(ba-Xt),Xt=ba;break}Xt=ta,bi=""}en=pt.slice(kt,kt=ct[ge++]),Me=qr(ct[ge++],st.cm.options)}}}function Xo(it,st,ct){this.line=st,this.rest=uo(st),this.size=this.rest?le(Ce(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=Wn(it,st)}function bo(it,st,ct){for(var dt=[],pt,kt=st;kt2&&kt.push((Xt.bottom+ge.top)/2-ct.top)}}kt.push(ct.bottom-ct.top)}}function hs(it,st,ct){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dtct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function xh(it,st){st=Mi(st);var ct=le(st),dt=it.display.externalMeasured=new Xo(it.doc,st,ct);dt.lineN=ct;var pt=dt.built=sn(it,dt);return dt.text=pt.pre,Kt(it.display.lineMeasure,pt.pre),dt}function $l(it,st,ct,dt){return Qs(it,$a(it,st),ct,dt)}function du(it,st){if(st>=it.display.viewFrom&&st=ct.lineN&&stst)&&(kt=Xt-Qt,pt=kt-1,st>=Xt&&(Rt="right")),pt!=null){if(dt=it[ge+2],Qt==Xt&&ct==(dt.insertLeft?"left":"right")&&(Rt=ct),ct=="left"&&pt==0)for(;ge&&it[ge-2]==it[ge-3]&&it[ge-1].insertLeft;)dt=it[(ge-=3)+2],Rt="left";if(ct=="right"&&pt==Xt-Qt)for(;ge=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function wi(it,st,ct,dt){var pt=li(st.map,ct,dt),kt=pt.node,Rt=pt.start,Qt=pt.end,Xt=pt.collapse,ge;if(kt.nodeType==3){for(var en=0;en<4;en++){for(;Rt&&pe(st.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+Qt0&&(Xt=dt="right");var Me;it.options.lineWrapping&&(Me=kt.getClientRects()).length>1?ge=Me[dt=="right"?Me.length-1:0]:ge=kt.getBoundingClientRect()}if($t&&Ut<9&&!Rt&&(!ge||!ge.left&&!ge.right)){var Fn=kt.parentNode.getClientRects()[0];Fn?ge={left:Fn.left,right:Fn.left+wh(it.display),top:Fn.top,bottom:Fn.bottom}:ge=qn}for(var Mn=ge.top-st.rect.top,hi=ge.bottom-st.rect.top,gi=(Mn+hi)/2,bi=st.view.measure.heights,_i=0;_i=dt.text.length?(Xt=dt.text.length,ge="before"):Xt<=0&&(Xt=0,ge="after"),!Qt)return Rt(ge=="before"?Xt-1:Xt,ge=="before");function en(hi,gi,bi){var _i=Qt[gi],ho=_i.level==1;return Rt(bi?hi-1:hi,ho!=bi)}var Me=ne(Qt,Xt,ge),Fn=ce,Mn=en(Xt,Me,ge=="before");return Fn!=null&&(Mn.other=en(Xt,Fn,ge!="before")),Mn}function Bu(it,st){var ct=0;st=xn(it.doc,st),it.options.lineWrapping||(ct=wh(it.display)*st.ch);var dt=Qe(it.doc,st.line),pt=xo(dt)+Ws(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function hd(it,st,ct,dt,pt){var kt=Re(it,st,ct);return kt.xRel=pt,dt&&(kt.outside=dt),kt}function Ph(it,st,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return hd(dt.first,0,null,-1,-1);var pt=mn(dt,ct),kt=dt.first+dt.size-1;if(pt>kt)return hd(dt.first+dt.size-1,Qe(dt,kt).text.length,null,1,1);st<0&&(st=0);for(var Rt=Qe(dt,pt);;){var Qt=Kn(it,Rt,pt,st,ct),Xt=xi(Rt,Qt.ch+(Qt.xRel>0||Qt.outside>0?1:0));if(!Xt)return Qt;var ge=Xt.find(1);if(ge.line==pt)return ge;Rt=Qe(dt,pt=ge.line)}}function eo(it,st,ct,dt){dt-=xr(st);var pt=st.text.length,kt=Zt(function(Rt){return Qs(it,ct,Rt-1).bottom<=dt},pt,0);return pt=Zt(function(Rt){return Qs(it,ct,Rt).top>dt},kt,pt),{begin:kt,end:pt}}function Qf(it,st,ct,dt){ct||(ct=$a(it,st));var pt=yr(it,st,Qs(it,ct,dt),"line").top;return eo(it,st,ct,pt)}function Te(it,st,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>st}function Kn(it,st,ct,dt,pt){pt-=xo(st);var kt=$a(it,st),Rt=xr(st),Qt=0,Xt=st.text.length,ge=!0,en=hn(st,it.doc.direction);if(en){var Me=(it.options.lineWrapping?Bp:Dp)(it,st,ct,kt,en,dt,pt);ge=Me.level!=1,Qt=ge?Me.from:Me.to-1,Xt=ge?Me.to:Me.from-1}var Fn=null,Mn=null,hi=Zt(function(Io){var Ji=Qs(it,kt,Io);return Ji.top+=Rt,Ji.bottom+=Rt,Te(Ji,dt,pt,!1)?(Ji.top<=pt&&Ji.left<=dt&&(Fn=Io,Mn=Ji),!0):!1},Qt,Xt),gi,bi,_i=!1;if(Mn){var ho=dt-Mn.left=mo.bottom?1:0}return hi=qt(st.text,hi,1),hd(ct,hi,bi,_i,dt-gi)}function Dp(it,st,ct,dt,pt,kt,Rt){var Qt=Zt(function(Me){var Fn=pt[Me],Mn=Fn.level!=1;return Te(Cr(it,Re(ct,Mn?Fn.to:Fn.from,Mn?"before":"after"),"line",st,dt),kt,Rt,!0)},0,pt.length-1),Xt=pt[Qt];if(Qt>0){var ge=Xt.level!=1,en=Cr(it,Re(ct,ge?Xt.from:Xt.to,ge?"after":"before"),"line",st,dt);Te(en,kt,Rt,!0)&&en.top>Rt&&(Xt=pt[Qt-1])}return Xt}function Bp(it,st,ct,dt,pt,kt,Rt){var Qt=eo(it,st,dt,Rt),Xt=Qt.begin,ge=Qt.end;/\s/.test(st.text.charAt(ge-1))&&ge--;for(var en=null,Me=null,Fn=0;Fn=ge||Mn.to<=Xt)){var hi=Mn.level!=1,gi=Qs(it,dt,hi?Math.min(ge,Mn.to)-1:Math.max(Xt,Mn.from)).right,bi=gibi)&&(en=Mn,Me=bi)}}return en||(en=pt[pt.length-1]),en.fromge&&(en={from:en.from,to:ge,level:en.level}),en}var cu;function fu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(cu==null){cu=Wt("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)cu.appendChild(document.createTextNode("x")),cu.appendChild(Wt("br"));cu.appendChild(document.createTextNode("x"))}Kt(it.measure,cu);var ct=cu.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),At(it.measure),ct||1}function wh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=Wt("span","xxxxxxxxxx"),ct=Wt("pre",[st],"CodeMirror-line-like");Kt(it.measure,ct);var dt=st.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function zc(it){for(var st=it.display,ct={},dt={},pt=st.gutters.clientLeft,kt=st.gutters.firstChild,Rt=0;kt;kt=kt.nextSibling,++Rt){var Qt=it.display.gutterSpecs[Rt].className;ct[Qt]=kt.offsetLeft+kt.clientLeft+pt,dt[Qt]=kt.clientWidth}return{fixedPos:Vd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:st.wrapper.clientWidth}}function Vd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Wr(it){var st=fu(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/wh(it.display)-3);return function(pt){if(Wn(it.doc,pt))return 0;var kt=0;if(pt.widgets)for(var Rt=0;Rt0&&(ge=Qe(it.doc,Xt.line).text).length==Xt.ch){var en=ue(ge,ge.length,it.options.tabSize)-ge.length;Xt=Re(Xt.line,Math.max(0,Math.round((kt-vl(it.display).left)/wh(it.display))-en))}return Xt}function _a(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var ct=it.display.view,dt=0;dtst)&&(pt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=pt.viewTo)qe&&Pi(it.doc,st)pt.viewFrom?rs(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(st<=pt.viewFrom&&ct>=pt.viewTo)rs(it);else if(st<=pt.viewFrom){var kt=Pa(it,ct,ct+dt,1);kt?(pt.view=pt.view.slice(kt.index),pt.viewFrom=kt.lineN,pt.viewTo+=dt):rs(it)}else if(ct>=pt.viewTo){var Rt=Pa(it,st,st,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):rs(it)}else{var Qt=Pa(it,st,st,-1),Xt=Pa(it,ct,ct+dt,1);Qt&&Xt?(pt.view=pt.view.slice(0,Qt.index).concat(bo(it,Qt.lineN,Xt.lineN)).concat(pt.view.slice(Xt.index)),pt.viewTo+=dt):rs(it)}var ge=pt.externalMeasured;ge&&(ct=pt.lineN&&st=dt.viewTo)){var kt=dt.view[_a(it,st)];if(kt.node!=null){var Rt=kt.changes||(kt.changes=[]);ke(Rt,ct)==-1&&Rt.push(ct)}}}function rs(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Pa(it,st,ct,dt){var pt=_a(it,st),kt,Rt=it.display.view;if(!qe||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var Qt=it.display.viewFrom,Xt=0;Xt0){if(pt==Rt.length-1)return null;kt=Qt+Rt[pt].size-st,pt++}else kt=Qt-st;st+=kt,ct+=kt}for(;Pi(it.doc,ct)!=ct;){if(pt==(dt<0?0:Rt.length-1))return null;ct+=dt*Rt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Tr(it,st,ct){var dt=it.display,pt=dt.view;pt.length==0||st>=dt.viewTo||ct<=dt.viewFrom?(dt.view=bo(it,st,ct),dt.viewFrom=st):(dt.viewFrom>st?dt.view=bo(it,st,dt.viewFrom).concat(dt.view):dt.viewFromct&&(dt.view=dt.view.slice(0,_a(it,ct)))),dt.viewTo=ct}function Fa(it){for(var st=it.display.view,ct=0,dt=0;dt=it.display.viewTo||Qt.to().line0?st.blinker=setInterval(function(){it.hasFocus()||Ch(it),st.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function zr(it){it.state.focused||(it.display.input.focus(),or(it))}function Vr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Ch(it))},100)}function or(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(ye(it,"focus",it,st),it.state.focused=!0,Ye(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Jt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),br(it))}function Ch(it,st){it.state.delayingBlurEvent||(it.state.focused&&(ye(it,"blur",it,st),it.state.focused=!1,Dt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function yo(it){for(var st=it.display,ct=st.lineDiv.offsetTop,dt=0;dt.005||en<-.005)&&(_n(pt.line,Rt),Ap(pt.line),pt.rest))for(var Me=0;Meit.display.sizerWidth){var Fn=Math.ceil(Qt/wh(it.display));Fn>it.display.maxLineLength&&(it.display.maxLineLength=Fn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Ap(it){if(it.widgets)for(var st=0;st=Rt&&(kt=mn(st,xo(Qe(st,Xt))-it.wrapper.clientHeight),Rt=Xt)}return{from:kt,to:Math.max(Rt,kt+1)}}function Ip(it,st){if(!on(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(st.top+dt.top<0?pt=!0:st.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!me){var kt=Wt("div","\u200B",null,`position: absolute; top: `+(st.top-ct.viewOffset-Ws(it.display))+`px; height: `+(st.bottom-st.top+Ks(it)+ct.barHeight)+`px; left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(kt),kt.scrollIntoView(pt),it.display.lineSpace.removeChild(kt)}}}function dd(it,st,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&st==ct&&(st=st.ch?Re(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,ct=st.sticky=="before"?Re(st.line,st.ch+1,"before"):st);for(var kt=0;kt<5;kt++){var Rt=!1,Qt=Cr(it,st),Xt=!ct||ct==st?Qt:Cr(it,ct);pt={left:Math.min(Qt.left,Xt.left),top:Math.min(Qt.top,Xt.top)-dt,right:Math.max(Qt.left,Xt.left),bottom:Math.max(Qt.bottom,Xt.bottom)+dt};var ge=qf(it,pt),en=it.doc.scrollTop,Me=it.doc.scrollLeft;if(ge.scrollTop!=null&&(Lh(it,ge.scrollTop),Math.abs(it.doc.scrollTop-en)>1&&(Rt=!0)),ge.scrollLeft!=null&&(pu(it,ge.scrollLeft),Math.abs(it.doc.scrollLeft-Me)>1&&(Rt=!0)),!Rt)break}return pt}function Ud(it,st){var ct=qf(it,st);ct.scrollTop!=null&&Lh(it,ct.scrollTop),ct.scrollLeft!=null&&pu(it,ct.scrollLeft)}function qf(it,st){var ct=it.display,dt=fu(it.display);st.top<0&&(st.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,kt=Kl(it),Rt={};st.bottom-st.top>kt&&(st.bottom=st.top+kt);var Qt=it.doc.height+Tl(ct),Xt=st.topQt-dt;if(st.toppt+kt){var en=Math.min(st.top,(ge?Qt:st.bottom)-kt);en!=pt&&(Rt.scrollTop=en)}var Me=it.options.fixedGutter?0:ct.gutters.offsetWidth,Fn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Me,Mn=aa(it)-ct.gutters.offsetWidth,hi=st.right-st.left>Mn;return hi&&(st.right=st.left+Mn),st.left<10?Rt.scrollLeft=0:st.leftMn+Fn-3&&(Rt.scrollLeft=st.right+(hi?0:10)-Mn),Rt}function Hc(it,st){st!=null&&(Zl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function gu(it){Zl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function bh(it,st,ct){(st!=null||ct!=null)&&Zl(it),st!=null&&(it.curOp.scrollLeft=st),ct!=null&&(it.curOp.scrollTop=ct)}function rr(it,st){Zl(it),it.curOp.scrollToPos=st}function Zl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var ct=Bu(it,st.from),dt=Bu(it,st.to);Gc(it,ct,dt,st.margin)}}function Gc(it,st,ct,dt){var pt=qf(it,{left:Math.min(st.left,ct.left),top:Math.min(st.top,ct.top)-dt,right:Math.max(st.right,ct.right),bottom:Math.max(st.bottom,ct.bottom)+dt});bh(it,pt.scrollLeft,pt.scrollTop)}function Lh(it,st){Math.abs(it.doc.scrollTop-st)<2||(vt||Gu(it,{top:st}),tg(it,st,!0),vt&&Gu(it),cd(it,100))}function tg(it,st,ct){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!ct)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function pu(it,st,ct,dt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!dt)&&(it.doc.scrollLeft=st,$c(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function ol(it){var st=it.display,ct=st.gutters.offsetWidth,dt=Math.round(it.doc.height+Tl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+Ks(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:ct}}var Iu=function(it,st,ct){this.cm=ct;var dt=this.vert=Wt("div",[Wt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Wt("div",[Wt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),_e(dt,"scroll",function(){dt.clientHeight&&st(dt.scrollTop,"vertical")}),_e(pt,"scroll",function(){pt.clientWidth&&st(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,$t&&Ut<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Iu.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=st?dt+"px":"0";var pt=it.viewHeight-(st?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var kt=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+kt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:st?dt:0}},Iu.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Iu.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Iu.prototype.zeroWidthHack=function(){var it=ht&&!re?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ht,this.disableVert=new Ht},Iu.prototype.enableZeroWidthBar=function(it,st,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),kt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);kt!=it?it.style.pointerEvents="none":st.set(1e3,dt)}st.set(1e3,dt)},Iu.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Fl=function(){};Fl.prototype.update=function(){return{bottom:0,right:0}},Fl.prototype.setScrollLeft=function(){},Fl.prototype.setScrollTop=function(){},Fl.prototype.clear=function(){};function Ru(it,st){st||(st=ol(it));var ct=it.display.barWidth,dt=it.display.barHeight;Wc(it,st);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&yo(it),Wc(it,ol(it)),ct=it.display.barWidth,dt=it.display.barHeight}function Wc(it,st){var ct=it.display,dt=ct.scrollbars.update(st);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=st.gutterWidth+"px"):ct.gutterFiller.style.display=""}var eg={native:Iu,null:Fl};function ng(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Dt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new eg[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),_e(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,ct){ct=="horizontal"?pu(it,st):Lh(it,st)},it),it.display.scrollbars.addClass&&Ye(it.display.wrapper,it.display.scrollbars.addClass)}var Rp=0;function ju(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Rp},ur(it.curOp)}function zu(it){var st=it.curOp;st&&ko(st,function(ct){for(var dt=0;dt=ct.viewTo)||ct.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Mh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function tv(it){it.updatedDisplay=it.mustUpdate&&Kc(it.cm,it.update)}function jp(it){var st=it.cm,ct=st.display;it.updatedDisplay&&yo(st),it.barMeasure=ol(st),ct.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=$l(st,ct.maxLine,ct.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+Ks(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-aa(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function ts(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=Ei(it,st.highlightFrontier),pt=[];st.iter(dt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(kt){if(dt.line>=it.display.viewFrom){var Rt=kt.styles,Qt=kt.text.length>it.options.maxHighlightLength?Je(st.mode,dt.state):null,Xt=Li(it,kt,dt,!0);Qt&&(dt.state=Qt),kt.styles=Xt.styles;var ge=kt.styleClasses,en=Xt.classes;en?kt.styleClasses=en:ge&&(kt.styleClasses=null);for(var Me=!Rt||Rt.length!=kt.styles.length||ge!=en&&(!ge||!en||ge.bgClass!=en.bgClass||ge.textClass!=en.textClass),Fn=0;!Me&&Fnct)return cd(it,it.options.workDelay),!0}),st.highlightFrontier=dt.line,st.modeFrontier=Math.max(st.modeFrontier,dt.line),pt.length&&pr(it,function(){for(var kt=0;kt=ct.viewFrom&&st.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&Fa(it)==0)return!1;ds(it)&&(rs(it),st.dims=zc(it));var pt=dt.first+dt.size,kt=Math.max(st.visible.from-it.options.viewportMargin,dt.first),Rt=Math.min(pt,st.visible.to+it.options.viewportMargin);ct.viewFromRt&&ct.viewTo-Rt<20&&(Rt=Math.min(pt,ct.viewTo)),qe&&(kt=Pi(it.doc,kt),Rt=Ni(it.doc,Rt));var Qt=kt!=ct.viewFrom||Rt!=ct.viewTo||ct.lastWrapHeight!=st.wrapperHeight||ct.lastWrapWidth!=st.wrapperWidth;Tr(it,kt,Rt),ct.viewOffset=xo(Qe(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Xt=Fa(it);if(!Qt&&Xt==0&&!st.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var ge=Hp(it);return Xt>4&&(ct.lineDiv.style.display="none"),ig(it,ct.updateLineNumbers,st.dims),Xt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,wa(ge),At(ct.cursorDiv),At(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Qt&&(ct.lastWrapHeight=st.wrapperHeight,ct.lastWrapWidth=st.wrapperWidth,cd(it,400)),ct.updateLineNumbers=null,!0}function Lr(it,st){for(var ct=st.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||st.oldDisplayWidth==aa(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Tl(it.display)-Kl(it),ct.top)}),st.visible=qo(it.display,it.doc,ct),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else dt&&(st.visible=qo(it.display,it.doc,ct));if(!Kc(it,st))break;yo(it);var pt=ol(it);ms(it),Ru(it,pt),Ku(it,pt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Gu(it,st){var ct=new Mh(it,st);if(Kc(it,ct)){yo(it),Lr(it,ct);var dt=ol(it);ms(it),Ru(it,dt),Ku(it,dt),ct.finish()}}function ig(it,st,ct){var dt=it.display,pt=it.options.lineNumbers,kt=dt.lineDiv,Rt=kt.firstChild;function Qt(hi){var gi=hi.nextSibling;return Jt&&ht&&it.display.currentWheelTarget==hi?hi.style.display="none":hi.parentNode.removeChild(hi),gi}for(var Xt=dt.view,ge=dt.viewFrom,en=0;en-1&&(Mn=!1),Or(it,Me,ge,ct)),Mn&&(At(Me.lineNumber),Me.lineNumber.appendChild(document.createTextNode(si(it.options,ge)))),Rt=Me.node.nextSibling}ge+=Me.size}for(;Rt;)Rt=Qt(Rt)}function Wu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Ku(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Ks(it)+"px"}function $c(it){var st=it.display,ct=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var dt=Vd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,pt=st.gutters.offsetWidth,kt=dt+"px",Rt=0;RtRt.clientWidth,Xt=Rt.scrollHeight>Rt.clientHeight;if(dt&&Qt||pt&&Xt){if(pt&&ht&&Jt){t:for(var ge=st.target,en=kt.view;ge!=Rt;ge=ge.parentNode)for(var Me=0;Me=0&&fn(it,dt.to())<=0)return ct}return-1};var Mr=function(it,st){this.anchor=it,this.head=st};Mr.prototype.from=function(){return rn(this.anchor,this.head)},Mr.prototype.to=function(){return vn(this.anchor,this.head)},Mr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yl(it,st,ct){var dt=it&&it.options.selectionsMayTouch,pt=st[ct];st.sort(function(Fn,Mn){return fn(Fn.from(),Mn.from())}),ct=ke(st,pt);for(var kt=1;kt0:Xt>=0){var ge=rn(Qt.from(),Rt.from()),en=vn(Qt.to(),Rt.to()),Me=Qt.empty()?Rt.from()==Rt.head:Qt.from()==Qt.head;kt<=ct&&--ct,st.splice(--kt,2,new Mr(Me?en:ge,Me?ge:en))}}return new rl(st,ct)}function mu(it,st){return new rl([new Mr(it,st||it)],0)}function Zu(it){return it.text?Re(it.from.line+it.text.length-1,Ce(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function kh(it,st){if(fn(it,st.from)<0)return it;if(fn(it,st.to)<=0)return Zu(st);var ct=it.line+st.text.length-(st.to.line-st.from.line)-1,dt=it.ch;return it.line==st.to.line&&(dt+=Zu(st).ch-st.to.ch),Re(ct,dt)}function Xd(it,st){for(var ct=[],dt=0;dt1&&it.remove(Qt.line+1,hi-1),it.insert(Qt.line+1,_i)}mi(it,"change",it,st)}function Dl(it,st,ct){function dt(pt,kt,Rt){if(pt.linked)for(var Qt=0;Qt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Ce(it.done)}function tc(it,st,ct,dt){var pt=it.history;pt.undone.length=0;var kt=+new Date,Rt,Qt;if((pt.lastOp==dt||pt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&pt.lastModTime>kt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Rt=qd(pt,pt.lastOp==dt)))Qt=Ce(Rt.changes),fn(st.from,st.to)==0&&fn(st.from,Qt.to)==0?Qt.to=Zu(st):Rt.changes.push(Vc(it,st));else{var Xt=Ce(pt.done);for((!Xt||!Xt.ranges)&&md(it.sel,pt.done),Rt={changes:[Vc(it,st)],generation:pt.generation},pt.done.push(Rt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=kt,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=st.origin,Qt||ye(it,"historyAdded")}function rg(it,st,ct,dt){var pt=st.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function ec(it,st,ct,dt){var pt=it.history,kt=dt&&dt.origin;ct==pt.lastSelOp||kt&&pt.lastSelOrigin==kt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==kt||rg(it,kt,Ce(pt.done),st))?pt.done[pt.done.length-1]=st:md(st,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=kt,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&pd(pt.undone)}function md(it,st){var ct=Ce(st);ct&&ct.ranges&&ct.equals(it)||st.push(it)}function _u(it,st,ct,dt){var pt=st["spans_"+it.id],kt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(Rt){Rt.markedSpans&&((pt||(pt=st["spans_"+it.id]={}))[kt]=Rt.markedSpans),++kt})}function da(it){if(!it)return null;for(var st,ct=0;ct-1&&(Ce(Qt)[Me]=ge[Me],delete ge[Me])}}return dt}function Xc(it,st,ct,dt){if(dt){var pt=it.anchor;if(ct){var kt=fn(st,pt)<0;kt!=fn(ct,pt)<0?(pt=st,st=ct):kt!=fn(st,ct)<0&&(st=ct)}return new Mr(pt,st)}else return new Mr(ct||st,st)}function Yc(it,st,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),qs(it,new rl([Xc(it.sel.primary(),st,ct,pt)],0),dt)}function Gp(it,st,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),kt=0;kt=st.ch:Qt.to>st.ch))){if(pt&&(ye(Xt,"beforeCursorEnter"),Xt.explicitlyCleared))if(kt.markedSpans){--Rt;continue}else break;if(!Xt.atomic)continue;if(ct){var Me=Xt.find(dt<0?1:-1),Fn=void 0;if((dt<0?en:ge)&&(Me=ag(it,Me,-dt,Me&&Me.line==st.line?kt:null)),Me&&Me.line==st.line&&(Fn=fn(Me,ct))&&(dt<0?Fn<0:Fn>0))return yu(it,Me,st,dt,pt)}var Mn=Xt.find(dt<0?-1:1);return(dt<0?ge:en)&&(Mn=ag(it,Mn,dt,Mn.line==st.line?kt:null)),Mn?yu(it,Mn,st,dt,pt):null}}return st}function oc(it,st,ct,dt,pt){var kt=dt||1,Rt=yu(it,st,ct,kt,pt)||!pt&&yu(it,st,ct,kt,!0)||yu(it,st,ct,-kt,pt)||!pt&&yu(it,st,ct,-kt,!0);return Rt||(it.cantEdit=!0,Re(it.first,0))}function ag(it,st,ct,dt){return ct<0&&st.ch==0?st.line>it.first?xn(it,Re(st.line-1)):null:ct>0&&st.ch==(dt||Qe(it,st.line)).text.length?st.line=0;--pt)Fh(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:st.text,origin:st.origin});else Fh(it,st)}}function Fh(it,st){if(!(st.text.length==1&&st.text[0]==""&&fn(st.from,st.to)==0)){var ct=Xd(it,st);tc(it,st,ct,it.cm?it.cm.curOp.id:NaN),vd(it,st,ct,ii(it,st));var dt=[];Dl(it,function(pt,kt){!kt&&ke(dt,pt.history)==-1&&(ug(pt.history,st),dt.push(pt.history)),vd(pt,st,null,ii(pt,st))})}}function sc(it,st,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,kt,Rt=it.sel,Qt=st=="undo"?pt.done:pt.undone,Xt=st=="undo"?pt.undone:pt.done,ge=0;ge=0;--Mn){var hi=Fn(Mn);if(hi)return hi.v}}}}function lg(it,st){if(st!=0&&(it.first+=st,it.sel=new rl($n(it.sel.ranges,function(pt){return new Mr(Re(pt.anchor.line+st,pt.anchor.ch),Re(pt.head.line+st,pt.head.ch))}),it.sel.primIndex),it.cm)){Kr(it.cm,it.first,it.first-st,st);for(var ct=it.cm.display,dt=ct.viewFrom;dtit.lastLine())){if(st.from.linekt&&(st={from:st.from,to:Re(kt,Qe(it,kt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=yn(it,st.from,st.to),ct||(ct=Xd(it,st)),it.cm?Kp(it.cm,st,dt):Zc(it,st,dt),Th(it,ct,Ee),it.cantEdit&&oc(it,Re(it.firstLine(),0))&&(it.cantEdit=!1)}}function Kp(it,st,ct){var dt=it.doc,pt=it.display,kt=st.from,Rt=st.to,Qt=!1,Xt=kt.line;it.options.lineWrapping||(Xt=le(Mi(Qe(dt,kt.line))),dt.iter(Xt,Rt.line+1,function(Mn){if(Mn==pt.maxLine)return Qt=!0,!0})),dt.sel.contains(st.from,st.to)>-1&&Pn(it),Zc(dt,st,ct,Wr(it)),it.options.lineWrapping||(dt.iter(Xt,kt.line+st.text.length,function(Mn){var hi=Ko(Mn);hi>pt.maxLineLength&&(pt.maxLine=Mn,pt.maxLineLength=hi,pt.maxLineChanged=!0,Qt=!1)}),Qt&&(it.curOp.updateMaxLine=!0)),Rn(dt,kt.line),cd(it,400);var ge=st.text.length-(Rt.line-kt.line)-1;st.full?Kr(it):kt.line==Rt.line&&st.text.length==1&&!og(it.doc,st)?Zo(it,kt.line,"text"):Kr(it,kt.line,Rt.line+1,ge);var en=Cn(it,"changes"),Me=Cn(it,"change");if(Me||en){var Fn={from:kt,to:Rt,text:st.text,removed:st.removed,origin:st.origin};Me&&mi(it,"change",it,Fn),en&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Fn)}it.display.selForContextMenu=null}function Oh(it,st,ct,dt,pt){var kt;dt||(dt=ct),fn(dt,ct)<0&&(kt=[dt,ct],ct=kt[0],dt=kt[1]),typeof st=="string"&&(st=it.splitLines(st)),Uu(it,{from:ct,to:dt,text:st,origin:pt})}function sl(it,st,ct,dt){ct1||!(this.children[0]instanceof yd))){var Qt=[];this.collapse(Qt),this.children=[new yd(Qt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Rt=pt.lines.length%25+25,Qt=Rt;Qt10);it.parent.maybeSpill()}},iterN:function(it,st,ct){for(var dt=0;dtit.display.maxLineLength&&(it.display.maxLine=ge,it.display.maxLineLength=en,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&Kr(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&nc(it.doc)),it&&mi(it,"markerCleared",it,this,dt,pt),st&&zu(it),this.parent&&this.parent.clear()}},Ze.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt0||Rt==0&&kt.clearWhenEmpty!==!1)return kt;if(kt.replacedWith&&(kt.collapsed=!0,kt.widgetNode=xe("span",[kt.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||kt.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(kt.widgetNode.insertLeft=!0)),kt.collapsed){if(Fi(it,st.line,st,ct,kt)||st.line!=ct.line&&Fi(it,ct.line,st,ct,kt))throw new Error("Inserting collapsed marker partially overlapping an existing one");tn()}kt.addToHistory&&tc(it,{from:st,to:ct,origin:"markText"},it.sel,NaN);var Qt=st.line,Xt=it.cm,ge;if(it.iter(Qt,ct.line+1,function(Me){Xt&&kt.collapsed&&!Xt.options.lineWrapping&&Mi(Me)==Xt.display.maxLine&&(ge=!0),kt.collapsed&&Qt!=st.line&&_n(Me,0),Co(Me,new Ci(kt,Qt==st.line?st.ch:null,Qt==ct.line?ct.ch:null)),++Qt}),kt.collapsed&&it.iter(st.line,ct.line+1,function(Me){Wn(it,Me)&&_n(Me,0)}),kt.clearOnEnter&&_e(kt,"beforeCursorEnter",function(){return kt.clear()}),kt.readOnly&&(pi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),kt.collapsed&&(kt.id=++_p,kt.atomic=!0),Xt){if(ge&&(Xt.curOp.updateMaxLine=!0),kt.collapsed)Kr(Xt,st.line,ct.line+1);else if(kt.className||kt.startStyle||kt.endStyle||kt.css||kt.attributes||kt.title)for(var en=st.line;en<=ct.line;en++)Zo(Xt,en,"text");kt.atomic&&nc(Xt.doc),mi(Xt,"markerAdded",Xt,kt)}return kt}var Vl=function(it,st){this.markers=it,this.primary=st;for(var ct=0;ct=0;Xt--)Uu(this,dt[Xt]);Qt?Jc(this,Qt):this.cm&&gu(this.cm)}),undo:Ms(function(){sc(this,"undo")}),redo:Ms(function(){sc(this,"redo")}),undoSelection:Ms(function(){sc(this,"undo",!0)}),redoSelection:Ms(function(){sc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,ct=0,dt=0;dt=it.ch)&&st.push(pt.marker.parent||pt.marker)}return st},findMarks:function(it,st,ct){it=xn(this,it),st=xn(this,st);var dt=[],pt=it.line;return this.iter(it.line,st.line+1,function(kt){var Rt=kt.markedSpans;if(Rt)for(var Qt=0;Qt=Xt.to||Xt.from==null&&pt!=it.line||Xt.from!=null&&pt==st.line&&Xt.from>=st.ch)&&(!ct||ct(Xt.marker))&&dt.push(Xt.marker.parent||Xt.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(st){var ct=st.markedSpans;if(ct)for(var dt=0;dtit)return st=it,!0;it-=kt,++ct}),xn(this,Re(ct,st))},indexFromPos:function(it){it=xn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var en=it.dataTransfer.getData("Text");if(en){var Me;if(st.state.draggingText&&!st.state.draggingText.copy&&(Me=st.listSelections()),Th(st.doc,mu(ct,ct)),Me)for(var Fn=0;Fn=0;Qt--)Oh(it.doc,"",dt[Qt].from,dt[Qt].to,"+delete");gu(it)})}function yg(it,st,ct){var dt=qt(it.text,st+ct,ct);return dt<0||dt>it.text.length?null:dt}function ls(it,st,ct){var dt=yg(it,st.ch,ct);return dt==null?null:new Re(st.line,dt,ct<0?"after":"before")}function hc(it,st,ct,dt,pt){if(it){st.doc.direction=="rtl"&&(pt=-pt);var kt=hn(ct,st.doc.direction);if(kt){var Rt=pt<0?Ce(kt):kt[0],Qt=pt<0==(Rt.level==1),Xt=Qt?"after":"before",ge;if(Rt.level>0||st.doc.direction=="rtl"){var en=$a(st,ct);ge=pt<0?ct.text.length-1:0;var Me=Qs(st,en,ge).top;ge=Zt(function(Fn){return Qs(st,en,Fn).top==Me},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,ge),Xt=="before"&&(ge=yg(ct,ge,1))}else ge=pt<0?Rt.to:Rt.from;return new Re(dt,ge,Xt)}}return new Re(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function tf(it,st,ct,dt){var pt=hn(st,it.doc.direction);if(!pt)return ls(st,ct,dt);ct.ch>=st.text.length?(ct.ch=st.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var kt=ne(pt,ct.ch,ct.sticky),Rt=pt[kt];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(dt>0?Rt.to>ct.ch:Rt.from=Rt.from&&Fn>=en.begin)){var Mn=Me?"before":"after";return new Re(ct.line,Fn,Mn)}}var hi=function(_i,ho,qi){for(var mo=function($r,Ss){return Ss?new Re(ct.line,Qt($r,1),"before"):new Re(ct.line,$r,"after")};_i>=0&&_i0==(Io.level!=1),Vo=Ji?qi.begin:Qt(qi.end,-1);if(Io.from<=Vo&&Vo0?en.end:Qt(en.begin,-1);return bi!=null&&!(dt>0&&bi==st.text.length)&&(gi=hi(dt>0?0:pt.length-1,dt,ge(bi)),gi)?gi:null}var Xu={selectAll:as,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ee)},killLine:function(it){return Ba(it,function(st){if(st.empty()){var ct=Qe(it.doc,st.head.line).text.length;return st.head.ch==ct&&st.head.line0)pt=new Re(pt.line,pt.ch+1),it.replaceRange(kt.charAt(pt.ch-1)+kt.charAt(pt.ch-2),Re(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=Qe(it.doc,pt.line-1).text;Rt&&(pt=new Re(pt.line,1),it.replaceRange(kt.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),Re(pt.line-1,Rt.length-1),pt,"+transpose"))}}ct.push(new Mr(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return pr(it,function(){for(var st=it.listSelections(),ct=st.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),st[ct].anchor,st[ct].head,"+input");st=it.listSelections();for(var dt=0;dtit&&fn(st,this.pos)==0&&ct==this.button};var bd,jh;function Lg(it,st){var ct=+new Date;return jh&&jh.compare(ct,it,st)?(bd=jh=null,"triple"):bd&&bd.compare(ct,it,st)?(jh=new bg(ct,it,st),bd=null,"double"):(bd=new bg(ct,it,st),jh=null,"single")}function Al(it){var st=this,ct=st.display;if(!(on(st,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,bs(ct,it)){Jt||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!af(st,it)){var dt=ua(st,it),pt=Ti(it),kt=dt?Lg(dt,pt):"single";window.focus(),pt==1&&st.state.selectingText&&st.state.selectingText(it),!(dt&&Mg(st,pt,dt,kt,it))&&(pt==1?dt?em(st,dt,kt,it):Bi(it)==ct.scroller&&Jn(it):pt==2?(dt&&Yc(st.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(Et?st.display.input.onContextMenu(it):Vr(st)))}}}function Mg(it,st,ct,dt,pt){var kt="Click";return dt=="double"?kt="Double"+kt:dt=="triple"&&(kt="Triple"+kt),kt=(st==1?"Left":st==2?"Middle":"Right")+kt,Ih(it,vg(kt,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=Xu[Rt]),!Rt)return!1;var Qt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Qt=Rt(it,ct)!=ln}finally{it.state.suppressEdits=!1}return Qt})}function rf(it,st,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,st,ct):{};if(pt.unit==null){var kt=at?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=kt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function em(it,st,ct,dt){$t?setTimeout(We(zr,it),0):it.curOp.focus=Se();var pt=rf(it,ct,dt),kt=it.doc.sel,Rt;it.options.dragDrop&&Di&&!it.isReadOnly()&&ct=="single"&&(Rt=kt.contains(st))>-1&&(fn((Rt=kt.ranges[Rt]).from(),st)<0||st.xRel>0)&&(fn(Rt.to(),st)>0||st.xRel<0)?Eg(it,dt,st,pt):iv(it,dt,st,pt)}function Eg(it,st,ct,dt){var pt=it.display,kt=!1,Rt=vs(it,function(ge){Jt&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Ln(pt.wrapper.ownerDocument,"mouseup",Rt),Ln(pt.wrapper.ownerDocument,"mousemove",Qt),Ln(pt.scroller,"dragstart",Xt),Ln(pt.scroller,"drop",Rt),kt||(Jn(ge),dt.addNew||Yc(it.doc,ct,null,null,dt.extend),Jt&&!Fe||$t&&Ut==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),Qt=function(ge){kt=kt||Math.abs(st.clientX-ge.clientX)+Math.abs(st.clientY-ge.clientY)>=10},Xt=function(){return kt=!0};Jt&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),_e(pt.wrapper.ownerDocument,"mouseup",Rt),_e(pt.wrapper.ownerDocument,"mousemove",Qt),_e(pt.scroller,"dragstart",Xt),_e(pt.scroller,"drop",Rt),Vr(it),setTimeout(function(){return pt.input.focus()},20)}function kg(it,st,ct){if(ct=="char")return new Mr(st,st);if(ct=="word")return it.findWordAt(st);if(ct=="line")return new Mr(Re(st.line,0),xn(it.doc,Re(st.line+1,0)));var dt=ct(it,st);return new Mr(dt.from,dt.to)}function iv(it,st,ct,dt){var pt=it.display,kt=it.doc;Jn(st);var Rt,Qt,Xt=kt.sel,ge=Xt.ranges;if(dt.addNew&&!dt.extend?(Qt=kt.sel.contains(ct),Qt>-1?Rt=ge[Qt]:Rt=new Mr(ct,ct)):(Rt=kt.sel.primary(),Qt=kt.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Rt=new Mr(ct,ct)),ct=ua(it,st,!0,!0),Qt=-1;else{var en=kg(it,ct,dt.unit);dt.extend?Rt=Xc(Rt,en.anchor,en.head,dt.extend):Rt=en}dt.addNew?Qt==-1?(Qt=ge.length,qs(kt,yl(it,ge.concat([Rt]),Qt),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[Qt].empty()&&dt.unit=="char"&&!dt.extend?(qs(kt,yl(it,ge.slice(0,Qt).concat(ge.slice(Qt+1)),0),{scroll:!1,origin:"*mouse"}),Xt=kt.sel):Vu(kt,Qt,Rt,Ke):(Qt=0,qs(kt,new rl([Rt],0),Ke),Xt=kt.sel);var Me=ct;function Fn(qi){if(fn(Me,qi)!=0)if(Me=qi,dt.unit=="rectangle"){for(var mo=[],Io=it.options.tabSize,Ji=ue(Qe(kt,ct.line).text,ct.ch,Io),Vo=ue(Qe(kt,qi.line).text,qi.ch,Io),$r=Math.min(Ji,Vo),Ss=Math.max(Ji,Vo),Jr=Math.min(ct.line,qi.line),ba=Math.min(it.lastLine(),Math.max(ct.line,qi.line));Jr<=ba;Jr++){var ta=Qe(kt,Jr).text,fs=Bn(ta,$r,Io);$r==Ss?mo.push(new Mr(Re(Jr,fs),Re(Jr,fs))):ta.length>fs&&mo.push(new Mr(Re(Jr,fs),Re(Jr,Bn(ta,Ss,Io))))}mo.length||mo.push(new Mr(ct,ct)),qs(kt,yl(it,Xt.ranges.slice(0,Qt).concat(mo),Qt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(qi)}else{var Aa=Rt,Zs=kg(it,qi,dt.unit),gs=Aa.anchor,cr;fn(Zs.anchor,gs)>0?(cr=Zs.head,gs=rn(Aa.from(),Zs.anchor)):(cr=Zs.anchor,gs=vn(Aa.to(),Zs.head));var es=Xt.ranges.slice(0);es[Qt]=nm(it,new Mr(xn(kt,gs),cr)),qs(kt,yl(it,es,Qt),Ke)}}var Mn=pt.wrapper.getBoundingClientRect(),hi=0;function gi(qi){var mo=++hi,Io=ua(it,qi,!0,dt.unit=="rectangle");if(Io)if(fn(Io,Me)!=0){it.curOp.focus=Se(),Fn(Io);var Ji=qo(pt,kt);(Io.line>=Ji.to||Io.lineMn.bottom?20:0;Vo&&setTimeout(vs(it,function(){hi==mo&&(pt.scroller.scrollTop+=Vo,gi(qi))}),50)}}function bi(qi){it.state.selectingText=!1,hi=1/0,qi&&(Jn(qi),pt.input.focus()),Ln(pt.wrapper.ownerDocument,"mousemove",_i),Ln(pt.wrapper.ownerDocument,"mouseup",ho),kt.history.lastSelOrigin=null}var _i=vs(it,function(qi){qi.buttons===0||!Ti(qi)?bi(qi):gi(qi)}),ho=vs(it,bi);it.state.selectingText=ho,_e(pt.wrapper.ownerDocument,"mousemove",_i),_e(pt.wrapper.ownerDocument,"mouseup",ho)}function nm(it,st){var ct=st.anchor,dt=st.head,pt=Qe(it.doc,ct.line);if(fn(ct,dt)==0&&ct.sticky==dt.sticky)return st;var kt=hn(pt);if(!kt)return st;var Rt=ne(kt,ct.ch,ct.sticky),Qt=kt[Rt];if(Qt.from!=ct.ch&&Qt.to!=ct.ch)return st;var Xt=Rt+(Qt.from==ct.ch==(Qt.level!=1)?0:1);if(Xt==0||Xt==kt.length)return st;var ge;if(dt.line!=ct.line)ge=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var en=ne(kt,dt.ch,dt.sticky),Me=en-Rt||(dt.ch-ct.ch)*(Qt.level==1?-1:1);en==Xt-1||en==Xt?ge=Me<0:ge=Me>0}var Fn=kt[Xt+(ge?-1:0)],Mn=ge==(Fn.level==1),hi=Mn?Fn.from:Fn.to,gi=Mn?"after":"before";return ct.ch==hi&&ct.sticky==gi?st:new Mr(new Re(ct.line,hi,gi),dt)}function sf(it,st,ct,dt){var pt,kt;if(st.touches)pt=st.touches[0].clientX,kt=st.touches[0].clientY;else try{pt=st.clientX,kt=st.clientY}catch(Fn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&Jn(st);var Rt=it.display,Qt=Rt.lineDiv.getBoundingClientRect();if(kt>Qt.bottom||!Cn(it,ct))return ni(st);kt-=Qt.top-Rt.viewOffset;for(var Xt=0;Xt=pt){var en=mn(it.doc,kt),Me=it.display.gutterSpecs[Xt];return ye(it,ct,it,en,Me.className,st),ni(st)}}}function af(it,st){return sf(it,st,"gutterClick",!0)}function lf(it,st){bs(it.display,st)||im(it,st)||on(it,st,"contextmenu")||Et||it.display.input.onContextMenu(st)}function im(it,st){return Cn(it,"gutterContextMenu")?sf(it,st,"gutterContextMenu",!1):!1}function uf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(it)}var Yu={toString:function(){return"CodeMirror.Init"}},Ng={},dc={};function om(it){var st=it.optionHandlers;function ct(dt,pt,kt,Rt){it.defaults[dt]=pt,kt&&(st[dt]=Rt?function(Qt,Xt,ge){ge!=Yu&&kt(Qt,Xt,ge)}:kt)}it.defineOption=ct,it.Init=Yu,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,_o(dt)},!0),ct("indentUnit",2,_o,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){Jd(dt),fr(dt),Kr(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var kt=[],Rt=dt.doc.first;dt.doc.iter(function(Xt){for(var ge=0;;){var en=Xt.text.indexOf(pt,ge);if(en==-1)break;ge=en+pt.length,kt.push(Re(Rt,en))}Rt++});for(var Qt=kt.length-1;Qt>=0;Qt--)Oh(dt.doc,pt,kt[Qt],Re(kt[Qt].line,kt[Qt].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,kt){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),kt!=Yu&&dt.refresh()}),ct("specialCharPlaceholder",wr,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!ft),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){uf(dt),Va(dt)},!0),ct("keyMap","default",function(dt,pt,kt){var Rt=Ah(pt),Qt=kt!=Yu&&Ah(kt);Qt&&Qt.detach&&Qt.detach(dt,Rt),Rt.attach&&Rt.attach(dt,Qt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,rm,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=ks(pt,dt.options.lineNumbers),Va(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?Vd(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return Ru(dt)},!0),ct("scrollbarStyle","native",function(dt){ng(dt),Ru(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=ks(dt.options.gutters,pt),Va(dt)},!0),ct("firstLineNumber",1,Va,!0),ct("lineNumberFormatter",function(dt){return dt},Va,!0),ct("showCursorWhenSelecting",!1,ms,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(Ch(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,hf),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,ms,!0),ct("singleCursorHeightPerLine",!0,ms,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,Jd,!0),ct("addModeClass",!1,Jd,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,Jd,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function hf(it,st,ct){var dt=ct&&ct!=Yu;if(!st!=!dt){var pt=it.display.dragFunctions,kt=st?_e:Ln;kt(it.display.scroller,"dragstart",pt.start),kt(it.display.scroller,"dragenter",pt.enter),kt(it.display.scroller,"dragover",pt.over),kt(it.display.scroller,"dragleave",pt.leave),kt(it.display.scroller,"drop",pt.drop)}}function rm(it){it.options.lineWrapping?(Ye(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Dt(it.display.wrapper,"CodeMirror-wrap"),Uo(it)),Po(it),Kr(it),fr(it),setTimeout(function(){return Ru(it)},100)}function dr(it,st){var ct=this;if(!(this instanceof dr))return new dr(it,st);this.options=st=st?Ue(st):{},Ue(Ng,st,!1);var dt=st.value;typeof dt=="string"?dt=new $s(dt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(dt.modeOption=st.mode),this.doc=dt;var pt=new dr.inputStyles[st.inputStyle](this),kt=this.display=new $u(it,dt,pt,st);kt.wrapper.CodeMirror=this,uf(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ng(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 Ht,keySeq:null,specialChars:null},st.autofocus&&!nt&&kt.input.focus(),$t&&Ut<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Ld(this),Xa(),ju(this),this.curOp.forceUpdate=!0,_c(this,dt),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&or(ct)},20):Ch(this);for(var Rt in dc)dc.hasOwnProperty(Rt)&&dc[Rt](this,st[Rt],Yu);ds(this),st.finishInit&&st.finishInit(this);for(var Qt=0;Qt20*20}_e(st.scroller,"touchstart",function(Xt){if(!on(it,Xt)&&!kt(Xt)&&!af(it,Xt)){st.input.ensurePolled(),clearTimeout(ct);var ge=+new Date;st.activeTouch={start:ge,moved:!1,prev:ge-dt.end<=300?dt:null},Xt.touches.length==1&&(st.activeTouch.left=Xt.touches[0].pageX,st.activeTouch.top=Xt.touches[0].pageY)}}),_e(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),_e(st.scroller,"touchend",function(Xt){var ge=st.activeTouch;if(ge&&!bs(st,Xt)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var en=it.coordsChar(st.activeTouch,"page"),Me;!ge.prev||Rt(ge,ge.prev)?Me=new Mr(en,en):!ge.prev.prev||Rt(ge,ge.prev.prev)?Me=it.findWordAt(en):Me=new Mr(Re(en.line,0),xn(it.doc,Re(en.line+1,0))),it.setSelection(Me.anchor,Me.head),it.focus(),Jn(Xt)}pt()}),_e(st.scroller,"touchcancel",pt),_e(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Lh(it,st.scroller.scrollTop),pu(it,st.scroller.scrollLeft,!0),ye(it,"scroll",it))}),_e(st.scroller,"mousewheel",function(Xt){return Ns(it,Xt)}),_e(st.scroller,"DOMMouseScroll",function(Xt){return Ns(it,Xt)}),_e(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Xt){on(it,Xt)||fi(Xt)},over:function(Xt){on(it,Xt)||(Yp(it,Xt),fi(Xt))},start:function(Xt){return Xp(it,Xt)},drop:vs(it,cg),leave:function(Xt){on(it,Xt)||Jp(it)}};var Qt=st.input.getField();_e(Qt,"keyup",function(Xt){return Cg.call(it,Xt)}),_e(Qt,"keydown",vs(it,Pg)),_e(Qt,"keypress",vs(it,Bl)),_e(Qt,"focus",function(Xt){return or(it,Xt)}),_e(Qt,"blur",function(Xt){return Ch(it,Xt)})}var zh=[];dr.defineInitHook=function(it){return zh.push(it)};function ys(it,st,ct,dt){var pt=it.doc,kt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?kt=Ei(it,st).state:ct="prev");var Rt=it.options.tabSize,Qt=Qe(pt,st),Xt=ue(Qt.text,null,Rt);Qt.stateAfter&&(Qt.stateAfter=null);var ge=Qt.text.match(/^\s*/)[0],en;if(!dt&&!/\S/.test(Qt.text))en=0,ct="not";else if(ct=="smart"&&(en=pt.mode.indent(kt,Qt.text.slice(ge.length),Qt.text),en==ln||en>150)){if(!dt)return;ct="prev"}ct=="prev"?st>pt.first?en=ue(Qe(pt,st-1).text,null,Rt):en=0:ct=="add"?en=Xt+it.options.indentUnit:ct=="subtract"?en=Xt-it.options.indentUnit:typeof ct=="number"&&(en=Xt+ct),en=Math.max(0,en);var Me="",Fn=0;if(it.options.indentWithTabs)for(var Mn=Math.floor(en/Rt);Mn;--Mn)Fn+=Rt,Me+=" ";if(FnRt,Xt=Zn(st),ge=null;if(Qt&&dt.ranges.length>1)if(Ca&&Ca.text.join(` `)==st){if(dt.ranges.length%Ca.text.length==0){ge=[];for(var en=0;en=0;Fn--){var Mn=dt.ranges[Fn],hi=Mn.from(),gi=Mn.to();Mn.empty()&&(ct&&ct>0?hi=Re(hi.line,hi.ch-ct):it.state.overwrite&&!Qt?gi=Re(gi.line,Math.min(Qe(kt,gi.line).text.length,gi.ch+Ce(Xt).length)):Qt&&Ca&&Ca.lineWise&&Ca.text.join(` `)==Xt.join(` `)&&(hi=gi=Re(hi.line,0)));var bi={from:hi,to:gi,text:ge?ge[Fn%ge.length]:Xt,origin:pt||(Qt?"paste":it.state.cutIncoming>Rt?"cut":"+input")};Uu(it.doc,bi),mi(it,"inputRead",it,bi)}st&&!Qt&&Fg(it,st),gu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Me),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Tg(it,st){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&pr(st,function(){return cc(st,ct,0,null,"paste")}),!0}function Fg(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var kt=it.getModeAt(pt.head),Rt=!1;if(kt.electricChars){for(var Qt=0;Qt-1){Rt=ys(it,pt.head.line,"smart");break}}else kt.electricInput&&kt.electricInput.test(Qe(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=ys(it,pt.head.line,"smart"));Rt&&mi(it,"electricInput",it,pt.head.line)}}}function Og(it){for(var st=[],ct=[],dt=0;dtkt&&(ys(this,Qt.head.line,dt,!0),kt=Qt.head.line,Rt==this.doc.sel.primIndex&&gu(this));else{var Xt=Qt.from(),ge=Qt.to(),en=Math.max(kt,Xt.line);kt=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var Me=en;Me0&&Vu(this.doc,Rt,new Mr(Xt,Fn[Rt].to()),Ee)}}}),getTokenAt:function(dt,pt){return Oe(this,dt,pt)},getLineTokens:function(dt,pt){return Oe(this,Re(dt),pt,!0)},getTokenTypeAt:function(dt){dt=xn(this.doc,dt);var pt=ji(this,Qe(this.doc,dt.line)),kt=0,Rt=(pt.length-1)/2,Qt=dt.ch,Xt;if(Qt==0)Xt=pt[2];else for(;;){var ge=kt+Rt>>1;if((ge?pt[ge*2-1]:0)>=Qt)Rt=ge;else if(pt[ge*2+1]Xt&&(dt=Xt,Rt=!0),Qt=Qe(this.doc,dt)}else Qt=dt;return yr(this,Qt,{top:0,left:0},pt||"page",kt||Rt).top+(Rt?this.doc.height-xo(Qt):0)},defaultTextHeight:function(){return fu(this.display)},defaultCharWidth:function(){return wh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,kt,Rt,Qt){var Xt=this.display;dt=Cr(this,xn(this.doc,dt));var ge=dt.bottom,en=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Xt.sizer.appendChild(pt),Rt=="over")ge=dt.top;else if(Rt=="above"||Rt=="near"){var Me=Math.max(Xt.wrapper.clientHeight,this.doc.height),Fn=Math.max(Xt.sizer.clientWidth,Xt.lineSpace.clientWidth);(Rt=="above"||dt.bottom+pt.offsetHeight>Me)&&dt.top>pt.offsetHeight?ge=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=Me&&(ge=dt.bottom),en+pt.offsetWidth>Fn&&(en=Fn-pt.offsetWidth)}pt.style.top=ge+"px",pt.style.left=pt.style.right="",Qt=="right"?(en=Xt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(Qt=="left"?en=0:Qt=="middle"&&(en=(Xt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=en+"px"),kt&&Ud(this,{left:en,top:ge,right:en+pt.offsetWidth,bottom:ge+pt.offsetHeight})},triggerOnKeyDown:Ls(Pg),triggerOnKeyPress:Ls(Bl),triggerOnKeyUp:Cg,triggerOnMouseDown:Ls(Al),execCommand:function(dt){if(Xu.hasOwnProperty(dt))return Xu[dt].call(null,this)},triggerElectric:Ls(function(dt){Fg(this,dt)}),findPosH:function(dt,pt,kt,Rt){var Qt=1;pt<0&&(Qt=-1,pt=-pt);for(var Xt=xn(this.doc,dt),ge=0;ge0&&en(kt.charAt(Rt-1));)--Rt;for(;Qt.5||this.options.lineWrapping)&&Po(this),ye(this,"refresh",this)}),swapDoc:Ls(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),_c(this,dt),fr(this),this.display.input.reset(),bh(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,mi(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},An(it),it.registerHelper=function(dt,pt,kt){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=kt},it.registerGlobalHelper=function(dt,pt,kt,Rt){it.registerHelper(dt,pt,Rt),ct[dt]._global.push({pred:kt,val:Rt})}}function fc(it,st,ct,dt,pt){var kt=st,Rt=ct,Qt=Qe(it,st.line),Xt=pt&&it.direction=="rtl"?-ct:ct;function ge(){var ho=st.line+Xt;return ho=it.first+it.size?!1:(st=new Re(ho,st.ch,st.sticky),Qt=Qe(it,ho))}function en(ho){var qi;if(dt=="codepoint"){var mo=Qt.text.charCodeAt(st.ch+(dt>0?0:-1));isNaN(mo)?qi=null:qi=new Re(st.line,Math.max(0,Math.min(Qt.text.length,st.ch+ct*(mo>=55296&&mo<56320?2:1))),-ct)}else pt?qi=tf(it.cm,Qt,st,ct):qi=ls(Qt,st,ct);if(qi==null)if(!ho&&ge())st=hc(pt,it.cm,Qt,st.line,Xt);else return!1;else st=qi;return!0}if(dt=="char"||dt=="codepoint")en();else if(dt=="column")en(!0);else if(dt=="word"||dt=="group")for(var Me=null,Fn=dt=="group",Mn=it.cm&&it.cm.getHelper(st,"wordChars"),hi=!0;!(ct<0&&!en(!hi));hi=!1){var gi=Qt.text.charAt(st.ch)||` `,bi=Ft(gi,Mn)?"w":Fn&&gi==` `?"n":!Fn||/\s/.test(gi)?null:"p";if(Fn&&!hi&&!bi&&(bi="s"),Me&&Me!=bi){ct<0&&(ct=1,en(),st.sticky="after");break}if(bi&&(Me=bi),ct>0&&!en(!hi))break}var _i=oc(it,st,kt,Rt,!0);return He(kt,_i)&&(_i.hitSide=!0),_i}function Qu(it,st,ct,dt){var pt=it.doc,kt=st.left,Rt;if(dt=="page"){var Qt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Xt=Math.max(Qt-.5*fu(it.display),3);Rt=(ct>0?st.bottom:st.top)+ct*Xt}else dt=="line"&&(Rt=ct>0?st.bottom+3:st.top-3);for(var ge;ge=Ph(it,kt,Rt),!!ge.outside;){if(ct<0?Rt<=0:Rt>=pt.height){ge.hitSide=!0;break}Rt+=ct*5}return ge}var Br=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ht,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Br.prototype.init=function(it){var st=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;Dg(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function kt(Qt){for(var Xt=Qt.target;Xt;Xt=Xt.parentNode){if(Xt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Xt.className))break}return!1}_e(pt,"paste",function(Qt){!kt(Qt)||on(dt,Qt)||Tg(Qt,dt)||Ut<=11&&setTimeout(vs(dt,function(){return st.updateFromDOM()}),20)}),_e(pt,"compositionstart",function(Qt){st.composing={data:Qt.data,done:!1}}),_e(pt,"compositionupdate",function(Qt){st.composing||(st.composing={data:Qt.data,done:!1})}),_e(pt,"compositionend",function(Qt){st.composing&&(Qt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),_e(pt,"touchstart",function(){return ct.forceCompositionEnd()}),_e(pt,"input",function(){st.composing||st.readFromDOMSoon()});function Rt(Qt){if(!(!kt(Qt)||on(dt,Qt))){if(dt.somethingSelected())Hh({lineWise:!1,text:dt.getSelections()}),Qt.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Xt=Og(dt);Hh({lineWise:!0,text:Xt.text}),Qt.type=="cut"&&dt.operation(function(){dt.setSelections(Xt.ranges,0,Ee),dt.replaceSelection("",null,"cut")})}else return;if(Qt.clipboardData){Qt.clipboardData.clearData();var ge=Ca.text.join(` `);if(Qt.clipboardData.setData("Text",ge),Qt.clipboardData.getData("Text")==ge){Qt.preventDefault();return}}var en=Bg(),Me=en.firstChild;dt.display.lineSpace.insertBefore(en,dt.display.lineSpace.firstChild),Me.value=Ca.text.join(` `);var Fn=document.activeElement;Pe(Me),setTimeout(function(){dt.display.lineSpace.removeChild(en),Fn.focus(),Fn==pt&&ct.showPrimarySelection()},50)}}_e(pt,"copy",Rt),_e(pt,"cut",Rt)},Br.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Br.prototype.prepareSelection=function(){var it=Au(this.cm,!1);return it.focus=document.activeElement==this.div,it},Br.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Br.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Br.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,ct=st.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(st.display.viewTo==st.display.viewFrom||dt.line>=st.display.viewTo||pt.line=st.display.viewFrom&&df(st,dt)||{node:Qt[0].measure.map[2],offset:0},ge=pt.lineit.firstLine()&&(dt=Re(dt.line-1,Qe(it.doc,dt.line-1).length)),pt.ch==Qe(it.doc,pt.line).text.length&&pt.linest.viewTo-1)return!1;var kt,Rt,Qt;dt.line==st.viewFrom||(kt=_a(it,dt.line))==0?(Rt=le(st.view[0].line),Qt=st.view[0].node):(Rt=le(st.view[kt].line),Qt=st.view[kt-1].node.nextSibling);var Xt=_a(it,pt.line),ge,en;if(Xt==st.view.length-1?(ge=st.viewTo-1,en=st.lineDiv.lastChild):(ge=le(st.view[Xt+1].line)-1,en=st.view[Xt+1].node.previousSibling),!Qt)return!1;for(var Me=it.doc.splitLines(Ed(it,Qt,en,Rt,ge)),Fn=yn(it.doc,Re(Rt,0),Re(ge,Qe(it.doc,ge).text.length));Me.length>1&&Fn.length>1;)if(Ce(Me)==Ce(Fn))Me.pop(),Fn.pop(),ge--;else if(Me[0]==Fn[0])Me.shift(),Fn.shift(),Rt++;else break;for(var Mn=0,hi=0,gi=Me[0],bi=Fn[0],_i=Math.min(gi.length,bi.length);Mn<_i&&gi.charCodeAt(Mn)==bi.charCodeAt(Mn);)++Mn;for(var ho=Ce(Me),qi=Ce(Fn),mo=Math.min(ho.length-(Me.length==1?Mn:0),qi.length-(Fn.length==1?Mn:0));hidt.ch&&ho.charCodeAt(ho.length-hi-1)==qi.charCodeAt(qi.length-hi-1);)Mn--,hi++;Me[Me.length-1]=ho.slice(0,ho.length-hi).replace(/^\u200b+/,""),Me[0]=Me[0].slice(Mn).replace(/\u200b+$/,"");var Io=Re(Rt,Mn),Ji=Re(ge,Fn.length?Ce(Fn).length-hi:0);if(Me.length>1||Me[0]||fn(Io,Ji))return Oh(it.doc,Me,Io,Ji,"+input"),!0},Br.prototype.ensurePolled=function(){this.forceCompositionEnd()},Br.prototype.reset=function(){this.forceCompositionEnd()},Br.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Br.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},Br.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&pr(this.cm,function(){return Kr(it.cm)})},Br.prototype.setUneditable=function(it){it.contentEditable="false"},Br.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||vs(this.cm,cc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Br.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Br.prototype.onContextMenu=function(){},Br.prototype.resetPosition=function(){},Br.prototype.needsContentAttribute=!0;function df(it,st){var ct=du(it,st.line);if(!ct||ct.hidden)return null;var dt=Qe(it.doc,st.line),pt=hs(ct,dt,st.line),kt=hn(dt,it.doc.direction),Rt="left";if(kt){var Qt=ne(kt,st.ch);Rt=Qt%2?"right":"left"}var Xt=li(pt.map,st.ch,Rt);return Xt.offset=Xt.collapse=="right"?Xt.end:Xt.start,Xt}function Ag(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Md(it,st){return st&&(it.bad=!0),it}function Ed(it,st,ct,dt,pt){var kt="",Rt=!1,Qt=it.doc.lineSeparator(),Xt=!1;function ge(Mn){return function(hi){return hi.id==Mn}}function en(){Rt&&(kt+=Qt,Xt&&(kt+=Qt),Rt=Xt=!1)}function Me(Mn){Mn&&(en(),kt+=Mn)}function Fn(Mn){if(Mn.nodeType==1){var hi=Mn.getAttribute("cm-text");if(hi){Me(hi);return}var gi=Mn.getAttribute("cm-marker"),bi;if(gi){var _i=it.findMarks(Re(dt,0),Re(pt+1,0),ge(+gi));_i.length&&(bi=_i[0].find(0))&&Me(yn(it.doc,bi.from,bi.to).join(Qt));return}if(Mn.getAttribute("contenteditable")=="false")return;var ho=/^(pre|div|p|li|table|br)$/i.test(Mn.nodeName);if(!/^br$/i.test(Mn.nodeName)&&Mn.textContent.length==0)return;ho&&en();for(var qi=0;qi=9&&st.hasSelection&&(st.hasSelection=null),ct.poll()}),_e(pt,"paste",function(Rt){on(dt,Rt)||Tg(Rt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function kt(Rt){if(!on(dt,Rt)){if(dt.somethingSelected())Hh({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var Qt=Og(dt);Hh({lineWise:!0,text:Qt.text}),Rt.type=="cut"?dt.setSelections(Qt.ranges,null,Ee):(ct.prevInput="",pt.value=Qt.text.join(` `),Pe(pt))}else return;Rt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}_e(pt,"cut",kt),_e(pt,"copy",kt),_e(it.scroller,"paste",function(Rt){if(!(bs(it,Rt)||on(dt,Rt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var Qt=new Event("paste");Qt.clipboardData=Rt.clipboardData,pt.dispatchEvent(Qt)}}),_e(it.lineSpace,"selectstart",function(Rt){bs(it,Rt)||Jn(Rt)}),_e(pt,"compositionstart",function(){var Rt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Rt,range:dt.markText(Rt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},cs.prototype.createField=function(it){this.wrapper=Bg(),this.textarea=this.wrapper.firstChild},cs.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},cs.prototype.prepareSelection=function(){var it=this.cm,st=it.display,ct=it.doc,dt=Au(it);if(it.options.moveInputWithCursor){var pt=Cr(it,ct.sel.primary().head,"div"),kt=st.wrapper.getBoundingClientRect(),Rt=st.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,pt.top+Rt.top-kt.top)),dt.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,pt.left+Rt.left-kt.left))}return dt},cs.prototype.showSelection=function(it){var st=this.cm,ct=st.display;Kt(ct.cursorDiv,it.cursors),Kt(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},cs.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var ct=st.getSelection();this.textarea.value=ct,st.state.focused&&Pe(this.textarea),$t&&Ut>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",$t&&Ut>=9&&(this.hasSelection=null))}},cs.prototype.getField=function(){return this.textarea},cs.prototype.supportsTouch=function(){return!1},cs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||Se()!=this.textarea))try{this.textarea.focus()}catch(it){}},cs.prototype.blur=function(){this.textarea.blur()},cs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cs.prototype.receivedFocus=function(){this.slowPoll()},cs.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},cs.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function ct(){var dt=st.poll();!dt&&!it?(it=!0,st.polling.set(60,ct)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,ct)},cs.prototype.poll=function(){var it=this,st=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!st.state.focused||Mt(ct)&&!dt&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!st.somethingSelected())return!1;if($t&&Ut>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var kt=pt.charCodeAt(0);if(kt==8203&&!dt&&(dt="\u200B"),kt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,Qt=Math.min(dt.length,pt.length);Rt1e3||pt.indexOf(` `)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cs.prototype.onKeyPress=function(){$t&&Ut>=9&&(this.hasSelection=null),this.fastPoll()},cs.prototype.onContextMenu=function(it){var st=this,ct=st.cm,dt=ct.display,pt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var kt=ua(ct,it),Rt=dt.scroller.scrollTop;if(!kt||te)return;var Qt=ct.options.resetSelectionOnContextMenu;Qt&&ct.doc.sel.contains(kt)==-1&&vs(ct,qs)(ct.doc,mu(kt),Ee);var Xt=pt.style.cssText,ge=st.wrapper.style.cssText,en=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-en.top-5)+"px; left: "+(it.clientX-en.left-5)+`px; z-index: 1000; background: `+($t?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Me;Jt&&(Me=window.scrollY),dt.input.focus(),Jt&&window.scrollTo(null,Me),dt.input.reset(),ct.somethingSelected()||(pt.value=st.prevInput=" "),st.contextMenuPending=Mn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function Fn(){if(pt.selectionStart!=null){var gi=ct.somethingSelected(),bi="\u200B"+(gi?pt.value:"");pt.value="\u21DA",pt.value=bi,st.prevInput=gi?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=bi.length,dt.selForContextMenu=ct.doc.sel}}function Mn(){if(st.contextMenuPending==Mn&&(st.contextMenuPending=!1,st.wrapper.style.cssText=ge,pt.style.cssText=Xt,$t&&Ut<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!$t||$t&&Ut<9)&&Fn();var gi=0,bi=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&st.prevInput=="\u200B"?vs(ct,as)(ct):gi++<10?dt.detectingSelectAll=setTimeout(bi,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(bi,200)}}if($t&&Ut>=9&&Fn(),Et){fi(it);var hi=function(){Ln(window,"mouseup",hi),setTimeout(Mn,20)};_e(window,"mouseup",hi)}else setTimeout(Mn,50)},cs.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},cs.prototype.setUneditable=function(){},cs.prototype.needsContentAttribute=!1;function am(it,st){if(st=st?Ue(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var ct=Se();st.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=Qt.getValue()}var pt;if(it.form&&(_e(it.form,"submit",dt),!st.leaveSubmitMethodAlone)){var kt=it.form;pt=kt.submit;try{var Rt=kt.submit=function(){dt(),kt.submit=pt,kt.submit(),kt.submit=Rt}}catch(Xt){}}st.finishInit=function(Xt){Xt.save=dt,Xt.getTextArea=function(){return it},Xt.toTextArea=function(){Xt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Xt.getWrapperElement()),it.style.display="",it.form&&(Ln(it.form,"submit",dt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var Qt=dr(function(Xt){return it.parentNode.insertBefore(Xt,it.nextSibling)},st);return Qt}function kd(it){it.off=Ln,it.on=_e,it.wheelEventPixels=Ua,it.Doc=$s,it.splitLines=Zn,it.countColumn=ue,it.findColumn=Bn,it.isWordChar=Tt,it.Pass=ln,it.signal=ye,it.Line=Qo,it.changeEnd=Zu,it.scrollbarModel=eg,it.Pos=Re,it.cmpPos=fn,it.modes=ki,it.mimeModes=Bo,it.resolveMode=di,it.getMode=Ae,it.modeExtensions=Be,it.extendMode=_t,it.copyState=Je,it.startState=ve,it.innerMode=cn,it.commands=Xu,it.keyMap=Da,it.keyName=qp,it.isModifierKey=xd,it.lookupKey=al,it.normalizeKeyMap=mg,it.StringStream=ie,it.SharedTextMarker=Vl,it.TextMarker=Ze,it.LineWidget=Su,it.e_preventDefault=Jn,it.e_stopPropagation=ui,it.e_stop=fi,it.addClass=Ye,it.contains=Ie,it.rmClass=Dt,it.keyNames=Ul}om(dr),Ju(dr);var xu="iter insert remove copy getEditor constructor".split(" ");for(var pc in $s.prototype)$s.prototype.hasOwnProperty(pc)&&ke(xu,pc)<0&&(dr.prototype[pc]=function(it){return function(){return it.apply(this.doc,arguments)}}($s.prototype[pc]));return An($s),dr.inputStyles={textarea:cs,contenteditable:Br},dr.defineMode=function(it){!dr.defaults.mode&&it!="null"&&(dr.defaults.mode=it),Mo.apply(this,arguments)},dr.defineMIME=ai,dr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),dr.defineMIME("text/plain","null"),dr.defineExtension=function(it,st){dr.prototype[it]=st},dr.defineDocExtension=function(it,st){$s.prototype[it]=st},dr.fromTextArea=am,kd(dr),dr.version="5.58.2",dr})},25419:function(Sn,Ve,Pt){(function(vt){vt(Pt(89780),Pt(15525),Pt(98101))})(function(vt){"use strict";vt.defineMode("markdown",function(It,oe){var de=vt.getMode(It,"text/html"),$t=de.name=="null";function Ut(ue){if(vt.findModeByName){var Ht=vt.findModeByName(ue);Ht&&(ue=Ht.mime||Ht.mimes[0])}var ke=vt.getMode(It,ue);return ke.name=="null"?null:ke}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.tokenTypeOverrides={});var Jt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var De in Jt)Jt.hasOwnProperty(De)&&oe.tokenTypeOverrides[De]&&(Jt[De]=oe.tokenTypeOverrides[De]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Fe=/^\[(x| )\](?=\s)/i,re=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ot=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,at=" ";function ft(ue,Ht,ke){return Ht.f=Ht.inline=ke,ke(ue,Ht)}function mt(ue,Ht,ke){return Ht.f=Ht.block=ke,ke(ue,Ht)}function wt(ue){return!ue||!/\S/.test(ue.string)}function Et(ue){if(ue.linkTitle=!1,ue.linkHref=!1,ue.linkText=!1,ue.em=!1,ue.strong=!1,ue.strikethrough=!1,ue.quote=0,ue.indentedCode=!1,ue.f==Dt){var Ht=$t;if(!Ht){var ke=vt.innerMode(de,ue.htmlState);Ht=ke.mode.name=="xml"&&ke.state.tagStart===null&&!ke.state.context&&ke.state.tokenize.isInText}Ht&&(ue.f=xe,ue.block=Nt,ue.htmlState=null)}return ue.trailingSpace=0,ue.trailingSpaceNewLine=!1,ue.prevLine=ue.thisLine,ue.thisLine={stream:null},null}function Nt(ue,Ht){var ke=ue.column()===Ht.indentation,pn=wt(Ht.prevLine.stream),ln=Ht.indentedCode,Ee=Ht.prevLine.hr,Ke=Ht.list!==!1,gn=(Ht.listStack[Ht.listStack.length-1]||0)+3;Ht.indentedCode=!1;var Bn=Ht.indentation;if(Ht.indentationDiff===null&&(Ht.indentationDiff=Ht.indentation,Ke)){for(Ht.list=null;Bn=4&&(ln||Ht.prevLine.fencedCodeEnd||Ht.prevLine.header||pn))return ue.skipToEnd(),Ht.indentedCode=!0,Jt.code;if(ue.eatSpace())return null;if(ke&&Ht.indentation<=gn&&(Ce=ue.match(re))&&Ce[1].length<=6)return Ht.quote=0,Ht.header=Ce[1].length,Ht.thisLine.header=!0,oe.highlightFormatting&&(Ht.formatting="header"),Ht.f=Ht.inline,Kt(Ht);if(Ht.indentation<=gn&&ue.eat(">"))return Ht.quote=ke?1:Ht.quote+1,oe.highlightFormatting&&(Ht.formatting="quote"),ue.eatSpace(),Kt(Ht);if(!In&&!Ht.setext&&ke&&Ht.indentation<=gn&&(Ce=ue.match(te))){var $n=Ce[1]?"ol":"ul";return Ht.indentation=Bn+ue.current().length,Ht.list=!0,Ht.quote=0,Ht.listStack.push(Ht.indentation),Ht.em=!1,Ht.strong=!1,Ht.code=!1,Ht.strikethrough=!1,oe.taskLists&&ue.match(Fe,!1)&&(Ht.taskList=!0),Ht.f=Ht.inline,oe.highlightFormatting&&(Ht.formatting=["list","list-"+$n]),Kt(Ht)}else{if(ke&&Ht.indentation<=gn&&(Ce=ue.match(et,!0)))return Ht.quote=0,Ht.fencedEndRE=new RegExp(Ce[1]+"+ *$"),Ht.localMode=oe.fencedCodeBlockHighlighting&&Ut(Ce[2]||oe.fencedCodeBlockDefaultMode),Ht.localMode&&(Ht.localState=vt.startState(Ht.localMode)),Ht.f=Ht.block=At,oe.highlightFormatting&&(Ht.formatting="code-block"),Ht.code=-1,Kt(Ht);if(Ht.setext||(!dn||!Ke)&&!Ht.quote&&Ht.list===!1&&!Ht.code&&!In&&!nt.test(ue.string)&&(Ce=ue.lookAhead(1))&&(Ce=Ce.match(me)))return Ht.setext?(Ht.header=Ht.setext,Ht.setext=0,ue.skipToEnd(),oe.highlightFormatting&&(Ht.formatting="header")):(Ht.header=Ce[0].charAt(0)=="="?1:2,Ht.setext=Ht.header),Ht.thisLine.header=!0,Ht.f=Ht.inline,Kt(Ht);if(In)return ue.skipToEnd(),Ht.hr=!0,Ht.thisLine.hr=!0,Jt.hr;if(ue.peek()==="[")return ft(ue,Ht,Le)}return ft(ue,Ht,Ht.inline)}function Dt(ue,Ht){var ke=de.token(ue,Ht.htmlState);if(!$t){var pn=vt.innerMode(de,Ht.htmlState);(pn.mode.name=="xml"&&pn.state.tagStart===null&&!pn.state.context&&pn.state.tokenize.isInText||Ht.md_inside&&ue.current().indexOf(">")>-1)&&(Ht.f=xe,Ht.block=Nt,Ht.htmlState=null)}return ke}function At(ue,Ht){var ke=Ht.listStack[Ht.listStack.length-1]||0,pn=Ht.indentation=ue.quote?Ht.push(Jt.formatting+"-"+ue.formatting[ke]+"-"+ue.quote):Ht.push("error"))}if(ue.taskOpen)return Ht.push("meta"),Ht.length?Ht.join(" "):null;if(ue.taskClosed)return Ht.push("property"),Ht.length?Ht.join(" "):null;if(ue.linkHref?Ht.push(Jt.linkHref,"url"):(ue.strong&&Ht.push(Jt.strong),ue.em&&Ht.push(Jt.em),ue.strikethrough&&Ht.push(Jt.strikethrough),ue.emoji&&Ht.push(Jt.emoji),ue.linkText&&Ht.push(Jt.linkText),ue.code&&Ht.push(Jt.code),ue.image&&Ht.push(Jt.image),ue.imageAltText&&Ht.push(Jt.imageAltText,"link"),ue.imageMarker&&Ht.push(Jt.imageMarker)),ue.header&&Ht.push(Jt.header,Jt.header+"-"+ue.header),ue.quote&&(Ht.push(Jt.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=ue.quote?Ht.push(Jt.quote+"-"+ue.quote):Ht.push(Jt.quote+"-"+oe.maxBlockquoteDepth)),ue.list!==!1){var pn=(ue.listStack.length-1)%3;pn?pn===1?Ht.push(Jt.list2):Ht.push(Jt.list3):Ht.push(Jt.list1)}return ue.trailingSpaceNewLine?Ht.push("trailing-space-new-line"):ue.trailingSpace&&Ht.push("trailing-space-"+(ue.trailingSpace%2?"a":"b")),Ht.length?Ht.join(" "):null}function Wt(ue,Ht){if(ue.match(Ot,!0))return Kt(Ht)}function xe(ue,Ht){var ke=Ht.text(ue,Ht);if(typeof ke!="undefined")return ke;if(Ht.list)return Ht.list=null,Kt(Ht);if(Ht.taskList){var pn=ue.match(Fe,!0)[1]===" ";return pn?Ht.taskOpen=!0:Ht.taskClosed=!0,oe.highlightFormatting&&(Ht.formatting="task"),Ht.taskList=!1,Kt(Ht)}if(Ht.taskOpen=!1,Ht.taskClosed=!1,Ht.header&&ue.match(/^#+$/,!0))return oe.highlightFormatting&&(Ht.formatting="header"),Kt(Ht);var ln=ue.next();if(Ht.linkTitle){Ht.linkTitle=!1;var Ee=ln;ln==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ke="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(ue.match(new RegExp(Ke),!0))return Jt.linkHref}if(ln==="`"){var gn=Ht.formatting;oe.highlightFormatting&&(Ht.formatting="code"),ue.eatWhile("`");var Bn=ue.current().length;if(Ht.code==0&&(!Ht.quote||Bn==1))return Ht.code=Bn,Kt(Ht);if(Bn==Ht.code){var dn=Kt(Ht);return Ht.code=0,dn}else return Ht.formatting=gn,Kt(Ht)}else if(Ht.code)return Kt(Ht);if(ln==="\\"&&(ue.next(),oe.highlightFormatting)){var In=Kt(Ht),Ce=Jt.formatting+"-escape";return In?In+" "+Ce:Ce}if(ln==="!"&&ue.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ht.imageMarker=!0,Ht.image=!0,oe.highlightFormatting&&(Ht.formatting="image"),Kt(Ht);if(ln==="["&&Ht.imageMarker&&ue.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ht.imageMarker=!1,Ht.imageAltText=!0,oe.highlightFormatting&&(Ht.formatting="image"),Kt(Ht);if(ln==="]"&&Ht.imageAltText){oe.highlightFormatting&&(Ht.formatting="image");var In=Kt(Ht);return Ht.imageAltText=!1,Ht.image=!1,Ht.inline=Ht.f=Ie,In}if(ln==="["&&!Ht.image)return Ht.linkText&&ue.match(/^.*?\]/)||(Ht.linkText=!0,oe.highlightFormatting&&(Ht.formatting="link")),Kt(Ht);if(ln==="]"&&Ht.linkText){oe.highlightFormatting&&(Ht.formatting="link");var In=Kt(Ht);return Ht.linkText=!1,Ht.inline=Ht.f=ue.match(/\(.*?\)| ?\[.*?\]/,!1)?Ie:xe,In}if(ln==="<"&&ue.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ht.f=Ht.inline=Vt,oe.highlightFormatting&&(Ht.formatting="link");var In=Kt(Ht);return In?In+=" ":In="",In+Jt.linkInline}if(ln==="<"&&ue.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ht.f=Ht.inline=Vt,oe.highlightFormatting&&(Ht.formatting="link");var In=Kt(Ht);return In?In+=" ":In="",In+Jt.linkEmail}if(oe.xml&&ln==="<"&&ue.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $n=ue.string.indexOf(">",ue.pos);if($n!=-1){var Qn=ue.string.substring(ue.start,$n);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Qn)&&(Ht.md_inside=!0)}return ue.backUp(1),Ht.htmlState=vt.startState(de),mt(ue,Ht,Dt)}if(oe.xml&&ln==="<"&&ue.match(/^\/\w*?>/))return Ht.md_inside=!1,"tag";if(ln==="*"||ln==="_"){for(var jt=1,Lt=ue.pos==1?" ":ue.string.charAt(ue.pos-2);jt<3&&ue.eat(ln);)jt++;var xt=ue.peek()||" ",Tt=!/\s/.test(xt)&&(!ht.test(xt)||/\s/.test(Lt)||ht.test(Lt)),Ft=!/\s/.test(Lt)&&(!ht.test(Lt)||/\s/.test(xt)||ht.test(xt)),yt=null,ee=null;if(jt%2&&(!Ht.em&&Tt&&(ln==="*"||!Ft||ht.test(Lt))?yt=!0:Ht.em==ln&&Ft&&(ln==="*"||!Tt||ht.test(xt))&&(yt=!1)),jt>1&&(!Ht.strong&&Tt&&(ln==="*"||!Ft||ht.test(Lt))?ee=!0:Ht.strong==ln&&Ft&&(ln==="*"||!Tt||ht.test(xt))&&(ee=!1)),ee!=null||yt!=null){oe.highlightFormatting&&(Ht.formatting=yt==null?"strong":ee==null?"em":"strong em"),yt===!0&&(Ht.em=ln),ee===!0&&(Ht.strong=ln);var dn=Kt(Ht);return yt===!1&&(Ht.em=!1),ee===!1&&(Ht.strong=!1),dn}}else if(ln===" "&&(ue.eat("*")||ue.eat("_"))){if(ue.peek()===" ")return Kt(Ht);ue.backUp(1)}if(oe.strikethrough){if(ln==="~"&&ue.eatWhile(ln)){if(Ht.strikethrough){oe.highlightFormatting&&(Ht.formatting="strikethrough");var dn=Kt(Ht);return Ht.strikethrough=!1,dn}else if(ue.match(/^[^\s]/,!1))return Ht.strikethrough=!0,oe.highlightFormatting&&(Ht.formatting="strikethrough"),Kt(Ht)}else if(ln===" "&&ue.match(/^~~/,!0)){if(ue.peek()===" ")return Kt(Ht);ue.backUp(2)}}if(oe.emoji&&ln===":"&&ue.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ht.emoji=!0,oe.highlightFormatting&&(Ht.formatting="emoji");var pe=Kt(Ht);return Ht.emoji=!1,pe}return ln===" "&&(ue.match(/^ +$/,!1)?Ht.trailingSpace++:Ht.trailingSpace&&(Ht.trailingSpaceNewLine=!0)),Kt(Ht)}function Vt(ue,Ht){var ke=ue.next();if(ke===">"){Ht.f=Ht.inline=xe,oe.highlightFormatting&&(Ht.formatting="link");var pn=Kt(Ht);return pn?pn+=" ":pn="",pn+Jt.linkInline}return ue.match(/^[^>]+/,!0),Jt.linkInline}function Ie(ue,Ht){if(ue.eatSpace())return null;var ke=ue.next();return ke==="("||ke==="["?(Ht.f=Ht.inline=Ye(ke==="("?")":"]"),oe.highlightFormatting&&(Ht.formatting="link-string"),Ht.linkHref=!0,Kt(Ht)):"error"}var Se={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ye(ue){return function(Ht,ke){var pn=Ht.next();if(pn===ue){ke.f=ke.inline=xe,oe.highlightFormatting&&(ke.formatting="link-string");var ln=Kt(ke);return ke.linkHref=!1,ln}return Ht.match(Se[ue]),ke.linkHref=!0,Kt(ke)}}function Le(ue,Ht){return ue.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ht.f=Pe,ue.next(),oe.highlightFormatting&&(Ht.formatting="link"),Ht.linkText=!0,Kt(Ht)):ft(ue,Ht,xe)}function Pe(ue,Ht){if(ue.match(/^\]:/,!0)){Ht.f=Ht.inline=We,oe.highlightFormatting&&(Ht.formatting="link");var ke=Kt(Ht);return Ht.linkText=!1,ke}return ue.match(/^([^\]\\]|\\.)+/,!0),Jt.linkText}function We(ue,Ht){return ue.eatSpace()?null:(ue.match(/^[^\s]+/,!0),ue.peek()===void 0?Ht.linkTitle=!0:ue.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ht.f=Ht.inline=xe,Jt.linkHref+" url")}var Ue={startState:function(){return{f:Nt,prevLine:{stream:null},thisLine:{stream:null},block:Nt,htmlState:null,indentation:0,inline:xe,text:Wt,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(ue){return{f:ue.f,prevLine:ue.prevLine,thisLine:ue.thisLine,block:ue.block,htmlState:ue.htmlState&&vt.copyState(de,ue.htmlState),indentation:ue.indentation,localMode:ue.localMode,localState:ue.localMode?vt.copyState(ue.localMode,ue.localState):null,inline:ue.inline,text:ue.text,formatting:!1,linkText:ue.linkText,linkTitle:ue.linkTitle,linkHref:ue.linkHref,code:ue.code,em:ue.em,strong:ue.strong,strikethrough:ue.strikethrough,emoji:ue.emoji,header:ue.header,setext:ue.setext,hr:ue.hr,taskList:ue.taskList,list:ue.list,listStack:ue.listStack.slice(0),quote:ue.quote,indentedCode:ue.indentedCode,trailingSpace:ue.trailingSpace,trailingSpaceNewLine:ue.trailingSpaceNewLine,md_inside:ue.md_inside,fencedEndRE:ue.fencedEndRE}},token:function(ue,Ht){if(Ht.formatting=!1,ue!=Ht.thisLine.stream){if(Ht.header=0,Ht.hr=!1,ue.match(/^\s*$/,!0))return Et(Ht),null;if(Ht.prevLine=Ht.thisLine,Ht.thisLine={stream:ue},Ht.taskList=!1,Ht.trailingSpace=0,Ht.trailingSpaceNewLine=!1,!Ht.localState&&(Ht.f=Ht.block,Ht.f!=Dt)){var ke=ue.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(Ht.indentation=ke,Ht.indentationDiff=null,ke>0)return null}}return Ht.f(ue,Ht)},innerMode:function(ue){return ue.block==Dt?{state:ue.htmlState,mode:de}:ue.localState?{state:ue.localState,mode:ue.localMode}:{state:ue,mode:Ue}},indent:function(ue,Ht,ke){return ue.block==Dt&&de.indent?de.indent(ue.htmlState,Ht,ke):ue.localState&&ue.localMode.indent?ue.localMode.indent(ue.localState,Ht,ke):vt.Pass},blankLine:Et,getType:Kt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ue},"xml"),vt.defineMIME("text/markdown","markdown"),vt.defineMIME("text/x-markdown","markdown")})},98101:function(Sn,Ve,Pt){(function(vt){vt(Pt(89780))})(function(vt){"use strict";vt.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 It=0;It-1&&de.substring(Jt+1,de.length);if(De)return vt.findModeByExtension(De)},vt.findModeByName=function(de){de=de.toLowerCase();for(var $t=0;$t0?Ot.cmdState[Ot.cmdState.length-1]:null}function Ut(Ot){var et=Ot.cmdState.pop();et&&et.closeBracket()}function Jt(Ot){for(var et=Ot.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function De(Ot,et,nt){return function(){this.name=Ot,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=De("importmodule","tag",["string","builtin"]),we.documentclass=De("documentclass","tag",["","atom"]),we.usepackage=De("usepackage","tag",["atom"]),we.begin=De("begin","tag",["atom"]),we.end=De("end","tag",["atom"]),we.label=De("label","tag",["atom"]),we.ref=De("ref","tag",["atom"]),we.eqref=De("eqref","tag",["atom"]),we.cite=De("cite","tag",["atom"]),we.bibitem=De("bibitem","tag",["atom"]),we.Bibitem=De("Bibitem","tag",["atom"]),we.RBibitem=De("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function te(Ot,et){Ot.f=et}function Fe(Ot,et){var nt;if(Ot.match(/^\\[a-zA-Z@]+/)){var ht=Ot.current().slice(1);return nt=we.hasOwnProperty(ht)?we[ht]:we.DEFAULT,nt=new nt,de(et,nt),te(et,me),nt.style}if(Ot.match(/^\\[$&%#{}_]/)||Ot.match(/^\\[,;!\/\\]/))return"tag";if(Ot.match("\\["))return te(et,function(ft,mt){return re(ft,mt,"\\]")}),"keyword";if(Ot.match("\\("))return te(et,function(ft,mt){return re(ft,mt,"\\)")}),"keyword";if(Ot.match("$$"))return te(et,function(ft,mt){return re(ft,mt,"$$")}),"keyword";if(Ot.match("$"))return te(et,function(ft,mt){return re(ft,mt,"$")}),"keyword";var at=Ot.next();if(at=="%")return Ot.skipToEnd(),"comment";if(at=="}"||at=="]"){if(nt=$t(et),nt)nt.closeBracket(at),te(et,me);else return"error";return"bracket"}else return at=="{"||at=="["?(nt=we.DEFAULT,nt=new nt,de(et,nt),"bracket"):/\d/.test(at)?(Ot.eatWhile(/[\w.%]/),"atom"):(Ot.eatWhile(/[\w\-_]/),nt=Jt(et),nt.name=="begin"&&(nt.argument=Ot.current()),nt.styleIdentifier())}function re(Ot,et,nt){if(Ot.eatSpace())return null;if(nt&&Ot.match(nt))return te(et,Fe),"keyword";if(Ot.match(/^\\[a-zA-Z@]+/))return"tag";if(Ot.match(/^[a-zA-Z]+/))return"variable-2";if(Ot.match(/^\\[$&%#{}_]/)||Ot.match(/^\\[,;!\/]/)||Ot.match(/^[\^_&]/))return"tag";if(Ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Ot.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Ot.skipToEnd(),"comment"):"error"}function me(Ot,et){var nt=Ot.peek(),ht;return nt=="{"||nt=="["?(ht=$t(et),ht.openBracket(nt),Ot.eat(nt),te(et,Fe),"bracket"):/[ \t\r]/.test(nt)?(Ot.eat(nt),null):(te(et,Fe),Ut(et),Fe(Ot,et))}return{startState:function(){var Ot=oe.inMathMode?function(et,nt){return re(et,nt)}:Fe;return{cmdState:[],f:Ot}},copyState:function(Ot){return{cmdState:Ot.cmdState.slice(),f:Ot.f}},token:function(Ot,et){return et.f(Ot,et)},blankLine:function(Ot){Ot.f=Fe,Ot.cmdState.length=0},lineComment:"%"}}),vt.defineMIME("text/x-stex","stex"),vt.defineMIME("text/x-latex","stex")})},15525:function(Sn,Ve,Pt){(function(vt){vt(Pt(89780))})(function(vt){"use strict";var It={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};vt.defineMode("xml",function(de,$t){var Ut=de.indentUnit,Jt={},De=$t.htmlMode?It:oe;for(var we in De)Jt[we]=De[we];for(var we in $t)Jt[we]=$t[we];var te,Fe;function re(Vt,Ie){function Se(Pe){return Ie.tokenize=Pe,Pe(Vt,Ie)}var Ye=Vt.next();if(Ye=="<")return Vt.eat("!")?Vt.eat("[")?Vt.match("CDATA[")?Se(et("atom","]]>")):null:Vt.match("--")?Se(et("comment","-->")):Vt.match("DOCTYPE",!0,!0)?(Vt.eatWhile(/[\w\._\-]/),Se(nt(1))):null:Vt.eat("?")?(Vt.eatWhile(/[\w\._\-]/),Ie.tokenize=et("meta","?>"),"meta"):(te=Vt.eat("/")?"closeTag":"openTag",Ie.tokenize=me,"tag bracket");if(Ye=="&"){var Le;return Vt.eat("#")?Vt.eat("x")?Le=Vt.eatWhile(/[a-fA-F\d]/)&&Vt.eat(";"):Le=Vt.eatWhile(/[\d]/)&&Vt.eat(";"):Le=Vt.eatWhile(/[\w\.\-:]/)&&Vt.eat(";"),Le?"atom":"error"}else return Vt.eatWhile(/[^&<]/),null}re.isInText=!0;function me(Vt,Ie){var Se=Vt.next();if(Se==">"||Se=="/"&&Vt.eat(">"))return Ie.tokenize=re,te=Se==">"?"endTag":"selfcloseTag","tag bracket";if(Se=="=")return te="equals",null;if(Se=="<"){Ie.tokenize=re,Ie.state=mt,Ie.tagName=Ie.tagStart=null;var Ye=Ie.tokenize(Vt,Ie);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test(Se)?(Ie.tokenize=Ot(Se),Ie.stringStartCol=Vt.column(),Ie.tokenize(Vt,Ie)):(Vt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ot(Vt){var Ie=function(Se,Ye){for(;!Se.eol();)if(Se.next()==Vt){Ye.tokenize=me;break}return"string"};return Ie.isInAttribute=!0,Ie}function et(Vt,Ie){return function(Se,Ye){for(;!Se.eol();){if(Se.match(Ie)){Ye.tokenize=re;break}Se.next()}return Vt}}function nt(Vt){return function(Ie,Se){for(var Ye;(Ye=Ie.next())!=null;){if(Ye=="<")return Se.tokenize=nt(Vt+1),Se.tokenize(Ie,Se);if(Ye==">")if(Vt==1){Se.tokenize=re;break}else return Se.tokenize=nt(Vt-1),Se.tokenize(Ie,Se)}return"meta"}}function ht(Vt,Ie,Se){this.prev=Vt.context,this.tagName=Ie,this.indent=Vt.indented,this.startOfLine=Se,(Jt.doNotIndent.hasOwnProperty(Ie)||Vt.context&&Vt.context.noIndent)&&(this.noIndent=!0)}function at(Vt){Vt.context&&(Vt.context=Vt.context.prev)}function ft(Vt,Ie){for(var Se;;){if(!Vt.context||(Se=Vt.context.tagName,!Jt.contextGrabbers.hasOwnProperty(Se)||!Jt.contextGrabbers[Se].hasOwnProperty(Ie)))return;at(Vt)}}function mt(Vt,Ie,Se){return Vt=="openTag"?(Se.tagStart=Ie.column(),wt):Vt=="closeTag"?Et:mt}function wt(Vt,Ie,Se){return Vt=="word"?(Se.tagName=Ie.current(),Fe="tag",At):Jt.allowMissingTagName&&Vt=="endTag"?(Fe="tag bracket",At(Vt,Ie,Se)):(Fe="error",wt)}function Et(Vt,Ie,Se){if(Vt=="word"){var Ye=Ie.current();return Se.context&&Se.context.tagName!=Ye&&Jt.implicitlyClosed.hasOwnProperty(Se.context.tagName)&&at(Se),Se.context&&Se.context.tagName==Ye||Jt.matchClosing===!1?(Fe="tag",Nt):(Fe="tag error",Dt)}else return Jt.allowMissingTagName&&Vt=="endTag"?(Fe="tag bracket",Nt(Vt,Ie,Se)):(Fe="error",Dt)}function Nt(Vt,Ie,Se){return Vt!="endTag"?(Fe="error",Nt):(at(Se),mt)}function Dt(Vt,Ie,Se){return Fe="error",Nt(Vt,Ie,Se)}function At(Vt,Ie,Se){if(Vt=="word")return Fe="attribute",Kt;if(Vt=="endTag"||Vt=="selfcloseTag"){var Ye=Se.tagName,Le=Se.tagStart;return Se.tagName=Se.tagStart=null,Vt=="selfcloseTag"||Jt.autoSelfClosers.hasOwnProperty(Ye)?ft(Se,Ye):(ft(Se,Ye),Se.context=new ht(Se,Ye,Le==Se.indented)),mt}return Fe="error",At}function Kt(Vt,Ie,Se){return Vt=="equals"?Wt:(Jt.allowMissing||(Fe="error"),At(Vt,Ie,Se))}function Wt(Vt,Ie,Se){return Vt=="string"?xe:Vt=="word"&&Jt.allowUnquoted?(Fe="string",At):(Fe="error",At(Vt,Ie,Se))}function xe(Vt,Ie,Se){return Vt=="string"?xe:At(Vt,Ie,Se)}return{startState:function(Vt){var Ie={tokenize:re,state:mt,indented:Vt||0,tagName:null,tagStart:null,context:null};return Vt!=null&&(Ie.baseIndent=Vt),Ie},token:function(Vt,Ie){if(!Ie.tagName&&Vt.sol()&&(Ie.indented=Vt.indentation()),Vt.eatSpace())return null;te=null;var Se=Ie.tokenize(Vt,Ie);return(Se||te)&&Se!="comment"&&(Fe=null,Ie.state=Ie.state(te||Se,Vt,Ie),Fe&&(Se=Fe=="error"?Se+" error":Fe)),Se},indent:function(Vt,Ie,Se){var Ye=Vt.context;if(Vt.tokenize.isInAttribute)return Vt.tagStart==Vt.indented?Vt.stringStartCol+1:Vt.indented+Ut;if(Ye&&Ye.noIndent)return vt.Pass;if(Vt.tokenize!=me&&Vt.tokenize!=re)return Se?Se.match(/^(\s*)/)[0].length:0;if(Vt.tagName)return Jt.multilineTagIndentPastTag!==!1?Vt.tagStart+Vt.tagName.length+2:Vt.tagStart+Ut*(Jt.multilineTagIndentFactor||1);if(Jt.alignCDATA&&/$/,blockCommentStart:"",configuration:Jt.htmlMode?"html":"xml",helperType:Jt.htmlMode?"html":"xml",skipAttribute:function(Vt){Vt.state==Wt&&(Vt.state=At)},xmlCurrentTag:function(Vt){return Vt.tagName?{name:Vt.tagName,close:Vt.type=="closeTag"}:null},xmlCurrentContext:function(Vt){for(var Ie=[],Se=Vt.context;Se;Se=Se.prev)Se.tagName&&Ie.push(Se.tagName);return Ie.reverse()}}}),vt.defineMIME("text/xml","xml"),vt.defineMIME("application/xml","xml"),vt.mimeModes.hasOwnProperty("text/html")||vt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{$u:function(){return we},BD:function(){return jt},E9:function(){return De},FF:function(){return io},FJ:function(){return mt},Hn:function(){return ft},KX:function(){return Et},NB:function(){return fe},S0:function(){return Ce},UL:function(){return te},Vk:function(){return at},Vm:function(){return ne},YI:function(){return $n},ZA:function(){return oe},Zt:function(){return Fe},al:function(){return yt},bn:function(){return Ft},bx:function(){return Lt},g2:function(){return Qn},h1:function(){return Wt},hD:function(){return An},l4:function(){return Ut},rU:function(){return ce},s_:function(){return xt},uz:function(){return Zt},z6:function(){return re}}),Sn=Pt.hmd(Sn),function(){var Mt;function so(a){var y=0;return function(){return yx&&(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=a.length?a.push(x):a.splice(y,0,x):le("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function vn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):le("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function rn(){var a=Ei.pop();return a===void 0?[]:a}function bn(a){a.length=0,Ei.push(a)}function xn(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(Re(a)&&a.constructor)return xn(a.constructor);return typeof a}function On(a){var y=a;return Re(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 zn(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 yi(a,y,x){Object.defineProperty(qo.prototype,a,{get:y,set:x})}function Xe(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;Ex;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt-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 Li=ie.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},ei.prototype.Ad=function(){return this.next()},ei.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},ei.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},ei.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},ei.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},ei.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 qe,a.s=x,a.xb(),a.iterator},ei.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 qe,a.s=x,a.xb(),a.iterator},ei.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ei.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},_t.Object.defineProperties(ei.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ei.prototype.first=ei.prototype.first,ei.prototype.hasNext=ei.prototype.Ad,ei.prototype.next=ei.prototype.next,ei.prototype.reset=ei.prototype.reset,ei.className="ListIteratorBackwards";function qe(a){Ci(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&le("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Mt=qe.prototype,Mt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Gn(a,"0 <= i < length",qe,"elt:i"),y[a]},Mt.get=function(a){return this.M(a)},Mt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Gn(a,"0 <= i < length",qe,"setElt:i"),this._isFrozen&&mn(this,a),x[a]=y},Mt.set=function(a,y){this.cd(a,y)},Mt.first=function(){var a=this.s;return a.length===0?null:a[0]},Mt.jc=function(){var a=this.s,y=a.length;return 0a&&Gn(a,">= 0",qe,"insertAt:i"),this._isFrozen&&mn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Mt.remove=function(a){if(a===null)return!1;this._isFrozen&&mn(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)},Mt.delete=function(a){return this.remove(a)},Mt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Gn(a,"0 <= i < length",qe,"removeAt:i"),this._isFrozen&&mn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Mt.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&&mn(this);for(var E=a,z=y+1;z=z)return this;if((0>y||y>=E-1)&&Gn(y,"0 <= from < length",qe,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a=E)for(x=b.slice(y),x.sort(a),a=y;a=this.s.length)return kn;var a=this.Sa;return a!==null?(a.reset(),a):new Rn(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return kn;var a=this.Hg;return a!==null?(a.reset(),a):new ei(this)}}}),qe.prototype.reverse=qe.prototype.reverse,qe.prototype.sortRange=qe.prototype.zi,qe.prototype.sort=qe.prototype.sort,qe.prototype.toSet=qe.prototype.Iv,qe.prototype.toArray=qe.prototype.Fa,qe.prototype.removeRange=qe.prototype.removeRange,qe.prototype.removeAt=qe.prototype.mb,qe.prototype.delete=qe.prototype.delete,qe.prototype.remove=qe.prototype.remove,qe.prototype.insertAt=qe.prototype.Gb,qe.prototype.pop=qe.prototype.pop,qe.prototype.last=qe.prototype.jc,qe.prototype.first=qe.prototype.first,qe.prototype.set=qe.prototype.set,qe.prototype.setElt=qe.prototype.cd,qe.prototype.get=qe.prototype.get,qe.prototype.elt=qe.prototype.M,qe.prototype.indexOf=qe.prototype.indexOf,qe.prototype.has=qe.prototype.has,qe.prototype.contains=qe.prototype.contains,qe.prototype.clear=qe.prototype.clear,qe.prototype.addAll=qe.prototype.addAll,qe.prototype.push=qe.prototype.push,qe.prototype.add=qe.prototype.add,qe.prototype.thaw=qe.prototype.ka,qe.prototype.freeze=qe.prototype.freeze,qe.className="List";function pi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}pi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},pi.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)},pi.prototype.Ad=function(){return this.next()},pi.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},pi.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},pi.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},pi.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},pi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new qe;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},pi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new qe;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},pi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},pi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},_t.Object.defineProperties(pi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),pi.prototype.first=pi.prototype.first,pi.prototype.hasNext=pi.prototype.Ad,pi.prototype.next=pi.prototype.next,pi.prototype.reset=pi.prototype.reset,pi.className="SetIterator";function tn(a){Ci(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&le("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Mt=tn.prototype,Mt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return kn;var a=this.Sa;return a!==null?(a.reset(),a):new pi(this)}}}),tn.prototype.toList=tn.prototype.Hv,tn.prototype.toArray=tn.prototype.Fa,tn.prototype.clear=tn.prototype.clear,tn.prototype.retainAll=tn.prototype.pA,tn.prototype.removeAll=tn.prototype.hp,tn.prototype.delete=tn.prototype.delete,tn.prototype.remove=tn.prototype.remove,tn.prototype.first=tn.prototype.first,tn.prototype.containsAny=tn.prototype.Ty,tn.prototype.containsAll=tn.prototype.Sy,tn.prototype.has=tn.prototype.has,tn.prototype.contains=tn.prototype.contains,tn.prototype.addAll=tn.prototype.addAll,tn.prototype.add=tn.prototype.add,tn.prototype.thaw=tn.prototype.ka,tn.prototype.freeze=tn.prototype.freeze;var Co=1;tn.className="Set",tn.uniqueHash=Ci,tn.hashIdUnique=Ui,tn.hashId=$i;function lo(a){this.ma=a,this.qa=a.Ja,this.sa=null}lo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},lo.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)},lo.prototype.Ad=function(){return this.next()},lo.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},lo.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},lo.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},lo.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},lo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new qe;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},lo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new qe;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},lo.prototype.de=function(){this.value=this.key=null,this.qa=-1},lo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},_t.Object.defineProperties(lo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),lo.prototype.first=lo.prototype.first,lo.prototype.hasNext=lo.prototype.Ad,lo.prototype.next=lo.prototype.next,lo.prototype.reset=lo.prototype.reset,lo.className="MapKeySetIterator";function Si(a){tn.call(this),Ci(this),this._isFrozen=!0,this.ma=a}Be(Si,tn),Mt=Si.prototype,Mt.freeze=function(){return this},Mt.ka=function(){return this},Mt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Mt.add=function(){le("This Set is read-only: "+this.toString())},Mt.contains=function(a){return this.ma.contains(a)},Mt.has=function(a){return this.contains(a)},Mt.remove=function(){le("This Set is read-only: "+this.toString())},Mt.delete=function(a){return this.remove(a)},Mt.clear=function(){le("This Set is read-only: "+this.toString())},Mt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Si.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Si.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Si.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Si.prototype.map=function(a){for(var y=new tn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Si.prototype.filter=function(a){for(var y=new tn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Si.prototype.copy=function(){return new Si(this.ma)},Si.prototype.Iv=function(){var a=new tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Si.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},Si.prototype.Hv=function(){var a=new qe,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},_t.Object.defineProperties(Si.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?kn:new lo(this.ma)}}}),Si.prototype.toList=Si.prototype.Hv,Si.prototype.toArray=Si.prototype.Fa,Si.prototype.toSet=Si.prototype.Iv,Si.prototype.first=Si.prototype.first,Si.prototype.clear=Si.prototype.clear,Si.prototype.delete=Si.prototype.delete,Si.prototype.remove=Si.prototype.remove,Si.prototype.has=Si.prototype.has,Si.prototype.contains=Si.prototype.contains,Si.prototype.add=Si.prototype.add,Si.prototype.thaw=Si.prototype.ka,Si.prototype.freeze=Si.prototype.freeze,Si.className="MapKeySet";function ii(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ii.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ii.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)},ii.prototype.Ad=function(){return this.next()},ii.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},ii.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},ii.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},ii.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},ii.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new qe;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ii.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new qe;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},ii.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ii.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},_t.Object.defineProperties(ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ii.prototype.first=ii.prototype.first,ii.prototype.hasNext=ii.prototype.Ad,ii.prototype.next=ii.prototype.next,ii.prototype.reset=ii.prototype.reset,ii.className="MapValueSetIterator";function Yi(a,y){this.key=a,this.value=y,this.ll=this.va=null}Yi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Yi.className="KeyValuePair";function oo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}oo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},oo.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)},oo.prototype.Ad=function(){return this.next()},oo.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},oo.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},oo.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},oo.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},oo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new qe;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},oo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new qe;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},oo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},oo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},_t.Object.defineProperties(oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),oo.prototype.first=oo.prototype.first,oo.prototype.hasNext=oo.prototype.Ad,oo.prototype.next=oo.prototype.next,oo.prototype.reset=oo.prototype.reset,oo.className="MapIterator";function Yn(a){Ci(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"&&le("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Mt=Yn.prototype,Mt.xb=function(){var a=this.Ja;a++,999999999=this.count)return kn;var a=this.Sa;return a!==null?(a.reset(),a):new oo(this)}},iteratorKeys:{get:function(){return 0>=this.count?kn:new lo(this)}},iteratorValues:{get:function(){if(0>=this.count)return kn;var a=this.jf;return a!==null?(a.reset(),a):new ii(this)}}}),Yn.prototype.toKeySet=Yn.prototype.Lf,Yn.prototype.toArray=Yn.prototype.Fa,Yn.prototype.clear=Yn.prototype.clear,Yn.prototype.delete=Yn.prototype.delete,Yn.prototype.remove=Yn.prototype.remove,Yn.prototype.get=Yn.prototype.get,Yn.prototype.getValue=Yn.prototype.I,Yn.prototype.has=Yn.prototype.has,Yn.prototype.contains=Yn.prototype.contains,Yn.prototype.first=Yn.prototype.first,Yn.prototype.addAll=Yn.prototype.addAll,Yn.prototype.set=Yn.prototype.set,Yn.prototype.add=Yn.prototype.add,Yn.prototype.thaw=Yn.prototype.ka,Yn.prototype.freeze=Yn.prototype.freeze,Yn.className="Map";function zt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):le("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Ai,vo,ao,Eo,Ho;zt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},zt.prototype.h=function(a,y){return this.x=a,this.y=y,this},zt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},zt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},zt.prototype.copy=function(){var a=new zt;return a.x=this.x,a.y=this.y,a},Mt=zt.prototype,Mt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Mt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this};function Zi(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 zt(x,E)}return new zt}function xi(a){return a.x.toString()+" "+a.y.toString()}Mt.toString=function(){return"Point("+this.x+","+this.y+")"},Mt.D=function(a){return a instanceof zt?this.x===a.x&&this.y===a.y:!1},Mt.hi=function(a,y){return this.x===a&&this.y===y},Mt.Xa=function(a){return Te.B(this.x,a.x)&&Te.B(this.y,a.y)},Mt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Mt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Mt.offset=function(a,y){return this.x+=a,this.y+=y,this},zt.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},Mt=zt.prototype,Mt.scale=function(a,y){return this.x*=a,this.y*=y,this},Mt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Mt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Mt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Mt.Ry=function(a,y){return Te.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Mt.fA=function(a,y,x,b){return Te.qh(a,y,x,b,this.x,this.y,this),this},Mt.gA=function(a,y){return Te.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Mt.uA=function(a,y,x,b){return Te.No(this.x,this.y,a,y,x,b,this),this},Mt.vA=function(a,y){return Te.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Mt.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},Mt.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},Mt.transform=function(a){return a.Ga(this),this};function Mi(a,y){return y.Cd(a),a}function co(a,y,x,b,E,z){var tt=E-x,ot=z-b,rt=tt*tt+ot*ot;x-=a,b-=y;var lt=-x*tt-b*ot;return 0>=lt||lt>=rt?(tt=E-a,ot=z-y,Math.min(x*x+b*b,tt*tt+ot*ot)):(a=tt*b-ot*x,a*a/rt)}function uo(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Pi(a,y,x,b){return a=x-a,y=b-y,a===0?0y?270:0:y===0?0a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Mt.w=function(){return isFinite(this.x)&&isFinite(this.y)},zt.alloc=function(){var a=Ni.pop();return a===void 0?new zt:a},zt.allocAt=function(a,y){var x=Ni.pop();return x===void 0?new zt(a,y):(x.x=a,x.y=y,x)},zt.free=function(a){Ni.push(a)},zt.prototype.isReal=zt.prototype.w,zt.prototype.setSpot=zt.prototype.yi,zt.prototype.setRectSpot=zt.prototype.xi,zt.prototype.snapToGridPoint=zt.prototype.vA,zt.prototype.snapToGrid=zt.prototype.uA,zt.prototype.projectOntoLineSegmentPoint=zt.prototype.gA,zt.prototype.projectOntoLineSegment=zt.prototype.fA,zt.intersectingLineSegments=function(a,y,x,b,E,z,tt,ot){return Te.Rl(a,y,x,b,E,z,tt,ot)},zt.prototype.compareWithLineSegmentPoint=zt.prototype.Ry,zt.compareWithLineSegment=function(a,y,x,b,E,z){return Te.Fl(a,y,x,b,E,z)},zt.prototype.direction=zt.prototype.direction,zt.prototype.directionPoint=zt.prototype.ab,zt.prototype.normalize=zt.prototype.normalize,zt.prototype.distanceSquared=zt.prototype.zd,zt.prototype.distanceSquaredPoint=zt.prototype.Bf,zt.prototype.scale=zt.prototype.scale,zt.prototype.rotate=zt.prototype.rotate,zt.prototype.offset=zt.prototype.offset,zt.prototype.subtract=zt.prototype.re,zt.prototype.add=zt.prototype.add,zt.prototype.equalsApprox=zt.prototype.Xa,zt.prototype.equalTo=zt.prototype.hi,zt.prototype.equals=zt.prototype.D,zt.prototype.set=zt.prototype.set,zt.prototype.setTo=zt.prototype.sg;var Ni=[];zt.className="Point",zt.parse=Zi,zt.stringify=xi,zt.distanceLineSegmentSquared=co,zt.distanceSquared=uo,zt.direction=Pi,zt.Origin=Ai=new zt(0,0).ja(),zt.InfiniteTopLeft=vo=new zt(-1/0,-1/0).ja(),zt.InfiniteBottomRight=ao=new zt(1/0,1/0).ja(),zt.SixPoint=Eo=new zt(6,6).ja(),zt.NoPoint=Ho=new zt(NaN,NaN).ja(),zt.parse=Zi,zt.stringify=xi,zt.distanceLineSegmentSquared=co,zt.distanceSquared=uo,zt.direction=Pi;function Wn(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):le("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var zi,xo,Ko,Uo,Qo,ar,Ro;Wn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.copy=function(){var a=new Wn;return a.width=this.width,a.height=this.height,a},Mt=Wn.prototype,Mt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Mt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this};function er(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Wn(x,E)}return new Wn}function nr(a){return a.width.toString()+" "+a.height.toString()}Mt.toString=function(){return"Size("+this.width+","+this.height+")"},Mt.D=function(a){return a instanceof Wn?this.width===a.width&&this.height===a.height:!1},Mt.hi=function(a,y){return this.width===a&&this.height===y},Mt.Xa=function(a){return Te.B(this.width,a.width)&&Te.B(this.height,a.height)},Mt.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},Mt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Wn.alloc=function(){var a=qr.pop();return a===void 0?new Wn:a},Wn.free=function(a){qr.push(a)},Wn.prototype.isReal=Wn.prototype.w,Wn.prototype.inflate=Wn.prototype.Bc,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.prototype.equalTo=Wn.prototype.hi,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var qr=[];Wn.className="Size",Wn.parse=er,Wn.stringify=nr,Wn.ZeroSize=zi=new Wn(0,0).ja(),Wn.OneSize=xo=new Wn(1,1).ja(),Wn.SixSize=Ko=new Wn(6,6).ja(),Wn.EightSize=Uo=new Wn(8,8).ja(),Wn.TenSize=Qo=new Wn(10,10).ja(),Wn.InfiniteSize=ar=new Wn(1/0,1/0).ja(),Wn.NoSize=Ro=new Wn(NaN,NaN).ja(),Wn.parse=er,Wn.stringify=nr;function sn(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 zt?(x=a.x,a=a.y,y instanceof zt?(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 Wn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):le("Incorrect second argument supplied to Rect constructor "+y)):le("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Mt=sn.prototype,Mt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Mt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function wr(a,y,x){a.width=y,a.height=x}Mt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Mt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Mt.dd=function(a){return this.x=a.x,this.y=a.y,this},Mt.tA=function(a){return this.width=a.width,this.height=a.height,this},sn.prototype.copy=function(){var a=new sn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Mt=sn.prototype,Mt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Mt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new sn(x,E,z,tt)}return new sn}function Cs(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Mt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Mt.D=function(a){return a instanceof sn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Mt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Mt.Xa=function(a){return Te.B(this.x,a.x)&&Te.B(this.y,a.y)&&Te.B(this.width,a.width)&&Te.B(this.height,a.height)};function jo(a,y){return Te.$(a.x,y.x)&&Te.$(a.y,y.y)&&Te.$(a.width,y.width)&&Te.$(a.height,y.height)}Mt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Mt.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},Mt.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},Mt.offset=function(a,y){return this.x+=a,this.y+=y,this},Mt.Bc=function(a,y){return Lo(this,y,a,y,a)},Mt.Co=function(a){return Lo(this,a.top,a.right,a.bottom,a.left)},Mt.Fv=function(a){return Lo(this,-a.top,-a.right,-a.bottom,-a.left)},Mt.Hz=function(a,y,x,b){return Lo(this,a,y,x,b)};function Lo(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}Mt.Ex=function(a){return vr(this,a.x,a.y,a.width,a.height)},Mt.Uu=function(a,y,x,b){return vr(this,a,y,x,b)};function vr(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Mt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Mt.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 Xo(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))}Mt.Ye=function(a){return bo(this,a.x,a.y,0,0)},Mt.ed=function(a){return bo(this,a.x,a.y,a.width,a.height)},Mt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),bo(this,a,y,x,b)};function bo(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Mt.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 Ao(a,y,x,b,E,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=E&&E+tt<=a+x&&y<=z&&z+ot<=y+b}function ur(a,y,x,b,E,z,tt,ot){return a>tt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Mt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Mt.Mz=function(){return this.width===0&&this.height===0},sn.alloc=function(){var a=No.pop();return a===void 0?new sn:a},sn.allocAt=function(a,y,x,b){var E=No.pop();return E===void 0?new sn(a,y,x,b):E.h(a,y,x,b)},sn.free=function(a){No.push(a)},_t.Object.defineProperties(sn.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 zt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Wn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new zt(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}}}),sn.prototype.isEmpty=sn.prototype.Mz,sn.prototype.isReal=sn.prototype.w,sn.intersectsLineSegment=function(a,y,x,b,E,z,tt,ot){return Te.Fx(a,y,x,b,E,z,tt,ot)},sn.prototype.setSpot=sn.prototype.yi,sn.prototype.union=sn.prototype.Kv,sn.prototype.unionRect=sn.prototype.ed,sn.prototype.unionPoint=sn.prototype.Ye,sn.prototype.intersects=sn.prototype.Vu,sn.prototype.intersectsRect=sn.prototype.Yc,sn.prototype.intersect=sn.prototype.Uu,sn.prototype.intersectRect=sn.prototype.Ex,sn.prototype.grow=sn.prototype.Hz,sn.prototype.subtractMargin=sn.prototype.Fv,sn.prototype.addMargin=sn.prototype.Co,sn.prototype.inflate=sn.prototype.Bc,sn.prototype.offset=sn.prototype.offset,sn.prototype.contains=sn.prototype.contains,sn.prototype.containsRect=sn.prototype.Re,sn.prototype.containsPoint=sn.prototype.ca,sn.prototype.equalsApprox=sn.prototype.Xa,sn.prototype.equalTo=sn.prototype.hi,sn.prototype.equals=sn.prototype.D,sn.prototype.setSize=sn.prototype.tA,sn.prototype.setPoint=sn.prototype.dd,sn.prototype.set=sn.prototype.set,sn.prototype.setTo=sn.prototype.sg;var no=null,ko=null,No=[];sn.className="Rect",sn.parse=Sa,sn.stringify=Cs,sn.contains=Ao,sn.intersects=ur,sn.ZeroRect=no=new sn(0,0,0,0).ja(),sn.NoRect=ko=new sn(NaN,NaN,NaN,NaN).ja(),sn.parse=Sa,sn.stringify=Cs,sn.contains=Ao,sn.intersects=ur;function mi(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):le("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}mi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},mi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mi.prototype.copy=function(){var a=new mi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Mt=mi.prototype,Mt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Mt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new mi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new mi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new mi(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new mi(x,E):new mi(x,E,z,tt)}return new mi}function Or(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Mt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Mt.D=function(a){return a instanceof mi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Mt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Mt.Xa=function(a){return Te.B(this.top,a.top)&&Te.B(this.right,a.right)&&Te.B(this.bottom,a.bottom)&&Te.B(this.left,a.left)},Mt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},mi.alloc=function(){var a=Ta.pop();return a===void 0?new mi:a},mi.free=function(a){Ta.push(a)},mi.prototype.isReal=mi.prototype.w,mi.prototype.equalsApprox=mi.prototype.Xa,mi.prototype.equalTo=mi.prototype.hi,mi.prototype.equals=mi.prototype.D,mi.prototype.set=mi.prototype.set,mi.prototype.setTo=mi.prototype.sg;var jr=null,xa=null,Ta=[];mi.className="Margin",mi.parse=Fr,mi.stringify=Or,mi.ZeroMargin=jr=new mi(0,0,0,0).ja(),mi.TwoMargin=xa=new mi(2,2,2,2).ja(),mi.parse=Fr,mi.stringify=Or;function ri(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 hr,Dr,Js,Nl,sa,po,hu,Gs,bs,Ws,Tl,vl,Ks,aa,Kl,Du,hs,xh,$l,du,$a,Qs,qn,li,Vi,wi,Hi,Fo,lr,fr,gr,Sr,xr,yr,Za,la;ri.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ri.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},ri.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ri.prototype.copy=function(){var a=new ri;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Mt=ri.prototype,Mt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Mt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this};function Cr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Bu(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return hr;if(a==="TopLeft")return Dr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Js;if(a==="TopRight")return Nl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return sa;if(a==="Center")return po;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return hu;if(a==="BottomLeft")return Gs;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return bs;if(a==="BottomRight")return Ws;if(a==="TopSide")return Tl;if(a==="LeftSide")return vl;if(a==="RightSide")return Ks;if(a==="BottomSide")return aa;if(a==="TopBottomSides")return Kl;if(a==="LeftRightSides")return Du;if(a==="TopLeftSides")return hs;if(a==="TopRightSides")return xh;if(a==="BottomLeftSides")return $l;if(a==="BottomRightSides")return du;if(a==="NotTopSide")return $a;if(a==="NotLeftSide")return Qs;if(a==="NotRightSide")return qn;if(a==="NotBottomSide")return li;if(a==="AllSides")return Vi;if(a==="Default")return wi;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Mt=eo.prototype,Mt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Mt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Mt.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)},Mt.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))},Mt.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))},Mt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,lt=this.dx,ut=this.dy,gt=y*z+x*ot+lt,St=y*tt+x*rt+ut,Ct=b*z+x*ot+lt,bt=b*tt+x*rt+ut;return x=y*z+E*ot+lt,y=y*tt+E*rt+ut,z=b*z+E*ot+lt,b=b*tt+E*rt+ut,E=Math.min(gt,Ct),gt=Math.max(gt,Ct),Ct=Math.min(St,bt),St=Math.max(St,bt),E=Math.min(E,x),gt=Math.max(gt,x),Ct=Math.min(Ct,y),St=Math.max(St,y),E=Math.min(E,z),gt=Math.max(gt,z),Ct=Math.min(Ct,b),St=Math.max(St,b),a.h(E,Ct,gt-E,St-Ct),a},eo.alloc=function(){var a=Qf.pop();return a===void 0?new eo:a},eo.free=function(a){Qf.push(a)},eo.prototype.transformRect=eo.prototype.pp,eo.prototype.transformPoint=eo.prototype.Ga,eo.prototype.scale=eo.prototype.scale,eo.prototype.translate=eo.prototype.translate,eo.prototype.rotate=eo.prototype.rotate,eo.prototype.invert=eo.prototype.Vj,eo.prototype.multiplyInverted=eo.prototype.bv,eo.prototype.multiply=eo.prototype.multiply,eo.prototype.reset=eo.prototype.reset,eo.prototype.isIdentity=eo.prototype.ws,eo.prototype.equals=eo.prototype.D,eo.prototype.setTransform=eo.prototype.setTransform,eo.prototype.set=eo.prototype.set;var Qf=[];eo.className="Transform",eo.xF="54a702f3e53909c447824c6706603faf4c";var Te={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Te.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Te.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&&-.5a&&-5e-8=E&&(E=1e-6),aut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,ot,rt,lt,ut,gt){if(Te.Yb(a,y,tt,ot,gt,x,b)&&Te.Yb(a,y,tt,ot,gt,E,z))return Te.Yb(a,y,tt,ot,gt,lt,ut);var St=(a+x)/2,Ct=(y+b)/2,bt=(x+E)/2,Bt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(St+bt)/2,x=(Ct+Bt)/2,bt=(bt+E)/2,Bt=(Bt+z)/2;var Yt=(b+bt)/2,Gt=(x+Bt)/2;return Te.cs(a,y,St,Ct,b,x,Yt,Gt,rt,lt,ut,gt)||Te.cs(Yt,Gt,bt,Bt,E,z,tt,ot,rt,lt,ut,gt)},ax:function(a,y,x,b,E,z,tt,ot,rt){var lt=(x+E)/2,ut=(b+z)/2;return rt.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,b,E,z,tt,ot){var rt=(x+E)/2,lt=(b+z)/2;return Pi(((a+x)/2+rt)/2,((y+b)/2+lt)/2,(rt+(E+tt)/2)/2,(lt+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,tt,ot,rt,lt){if(Te.Yb(a,y,tt,ot,rt,x,b)&&Te.Yb(a,y,tt,ot,rt,E,z))bo(lt,a,y,0,0),bo(lt,tt,ot,0,0);else{var ut=(a+x)/2,gt=(y+b)/2,St=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(ut+St)/2,x=(gt+Ct)/2,St=(St+E)/2,Ct=(Ct+z)/2;var bt=(b+St)/2,Bt=(x+Ct)/2;Te.Dl(a,y,ut,gt,b,x,bt,Bt,rt,lt),Te.Dl(bt,Bt,St,Ct,E,z,tt,ot,rt,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,ot,rt,lt){if(Te.Yb(a,y,tt,ot,rt,x,b)&&Te.Yb(a,y,tt,ot,rt,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(ot);else{var ut=(a+x)/2,gt=(y+b)/2,St=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(ut+St)/2,x=(gt+Ct)/2,St=(St+E)/2,Ct=(Ct+z)/2;var bt=(b+St)/2,Bt=(x+Ct)/2;Te.Qe(a,y,ut,gt,b,x,bt,Bt,rt,lt),Te.Qe(bt,Bt,St,Ct,E,z,tt,ot,rt,lt)}return lt},jv:function(a,y,x,b,E,z,tt,ot,rt,lt){if(Te.Yb(a,y,E,z,lt,x,b))return Te.Yb(a,y,E,z,lt,ot,rt);var ut=(a+x)/2,gt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var St=(ut+x)/2,Ct=(gt+b)/2;return Te.jv(a,y,ut,gt,St,Ct,tt,ot,rt,lt)||Te.jv(St,Ct,x,b,E,z,tt,ot,rt,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,ot){if(Te.Yb(a,y,E,z,tt,x,b))bo(ot,a,y,0,0),bo(ot,E,z,0,0);else{var rt=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(rt+x)/2,gt=(lt+b)/2;Te.iv(a,y,rt,lt,ut,gt,tt,ot),Te.iv(ut,gt,x,b,E,z,tt,ot)}return ot},ep:function(a,y,x,b,E,z,tt,ot){if(Te.Yb(a,y,E,z,tt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var rt=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(rt+x)/2,gt=(lt+b)/2;Te.ep(a,y,rt,lt,ut,gt,tt,ot),Te.ep(ut,gt,x,b,E,z,tt,ot)}return ot},Eo:function(a,y,x,b,E,z,tt,ot,rt,lt,ut,gt,St,Ct){if(Te.Yb(a,y,tt,ot,St,x,b)&&Te.Yb(a,y,tt,ot,St,E,z))return!Te.Rl(a,y,tt,ot,rt,lt,ut,gt)||(St=(a-tt)*(lt-gt)-(y-ot)*(rt-ut),St===0)?!1:(Ct.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*gt-lt*ut))/St,((a*ot-y*tt)*(lt-gt)-(y-ot)*(rt*gt-lt*ut))/St),!0);var bt=(a+x)/2,Bt=(y+b)/2,Yt=(x+E)/2,Gt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(bt+Yt)/2,x=(Bt+Gt)/2,Yt=(Yt+E)/2,Gt=(Gt+z)/2;var se=(b+Yt)/2,ae=(x+Gt)/2,he=1/0,be=!1,$e=0,Un=0;return Te.Eo(a,y,bt,Bt,b,x,se,ae,rt,lt,ut,gt,St,Ct)&&(a=(Ct.x-rt)*(Ct.x-rt)+(Ct.y-lt)*(Ct.y-lt),a=ut)return Ct;if((rt>ut?rt-ut:ut-rt)<(lt>gt?lt-gt:gt-lt)){if(ya)return Ct}else if(aa)return Ct;0St&&Ct--}else{bt=(a+x)/2,Bt=(y+b)/2;var Yt=(x+E)/2,Gt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(bt+Yt)/2,x=(Bt+Gt)/2,Yt=(Yt+E)/2,Gt=(Gt+z)/2;var se=(b+Yt)/2,ae=(x+Gt)/2;Ct+=Te.Fo(a,y,bt,Bt,b,x,se,ae,rt,lt,ut,gt,St),Ct+=Te.Fo(se,ae,Yt,Gt,E,z,tt,ot,rt,lt,ut,gt,St)}return Ct},qh:function(a,y,x,b,E,z,tt){return Te.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Te.$(y,b)?(aa?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(b-y)/(x-a),Te.$(ot,tt)?(Te.qh(a,y,x,b,E,z,rt),!1):(E=(tt*a-ot*E+z-y)/(tt-ot),Te.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(E,y),!0)):Te.qh(a,y,x,b,E,tt*(E-a)+y,rt))))},MA:function(a,y,x,b,E){return Te.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,ot,rt,lt){function ut(Yt,Gt){var se=(Yt-a)*(Yt-a)+(Gt-y)*(Gt-y);se(x>a?x-a:a-x)){if(St=1-(x-E)*(x-E)/(St*St),0>St)return rt;St=Math.sqrt(St),b=-lt*St+z,ut(x,lt*St+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(St*St)+x*x/(lt*lt),ot=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(St*St),St=ot*ot-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(St*St)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>St)return rt;St=Math.sqrt(St),lt=(-ot+St)/(2*b),ut(lt,x*lt-x*a+y),St=(-ot-St)/(2*b),ut(St,x*St-x*a+y)}return rt},Ff:function(a,y,x,b,E,z,tt,ot,rt){var lt=1e21,ut=a,gt=y;if(Te.Ve(a,y,a,b,E,z,tt,ot,rt)){var St=(rt.x-E)*(rt.x-E)+(rt.y-z)*(rt.y-z);Stlt},us:function(a,y,x){return Te.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,ot){var rt=a+x,lt=y+b;return E===tt?(z=y):z===ot?(E=a):!!(Ao(a,y,x,b,E,z)||Ao(a,y,x,b,tt,ot)||Te.Rl(a,y,rt,y,E,z,tt,ot)||Te.Rl(rt,y,rt,lt,E,z,tt,ot)||Te.Rl(rt,lt,a,lt,E,z,tt,ot)||Te.Rl(a,lt,a,y,E,z,tt,ot))},Rl:function(a,y,x,b,E,z,tt,ot){return a===x&&y===b&&E===tt&&z===ot?a===E&&y===z:0>=Te.Fl(a,y,x,b,E,z)*Te.Fl(a,y,x,b,tt,ot)&&0>=Te.Fl(E,z,tt,ot,a,y)*Te.Fl(E,z,tt,ot,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,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var ot=b>E?-1:1;z=[];var rt=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return rt=lt+ot*Math.min(b,rt),ot=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(lt+y)/2,z.push([ot,lt,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>b;if(alt&&(y=.5*(ot+rt),!(y===ot||y===rt));++lt){var ut=a/(y+E),gt=tt/(y+z);if(ut=ut*ut+gt*gt-1,0ut)rt=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,za?"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 Kn.u:var y=new sn(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 Kn.F:if(y=new sn(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 Kn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E=he-1?!0:lt[Bt+1].match(be)!==null}function b(){return Bt++,lt[Bt]}function E(Gi){var Oi=parseFloat(b()),wo=parseFloat(b());Yt===Yt.toLowerCase()&&(Oi=ae.x+Oi,wo=ae.y+wo),Gi.h(Oi,wo)}function z(){return E(ae),ae}function tt(){return E(se),se}function ot(){var Gi=Gt.toLowerCase();return Gi!=="c"&&Gi!=="s"&&Gi!=="q"&&Gi!=="t"?ae:new zt(2*ae.x-se.x,2*ae.y-se.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a=he-1);)if(Gt=Yt,Yt=b(),Yt!=="")switch(Yt.toUpperCase()){case"X":Ct=!0,gt=ut=!1;break;case"M":for(bt=z(),a.mc===null||Ct===!0?(Lf(a,bt.x,bt.y,ut,!gt,St),Ct=!1):a.moveTo(bt.x,bt.y),rt.assign(ae);!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"L":for(;!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"H":for(;!x();)ae=new zt((Yt===Yt.toLowerCase()?ae.x:0)+parseFloat(b()),ae.y),a.lineTo(ae.x,ae.y);break;case"V":for(;!x();)ae=new zt(ae.x,(Yt===Yt.toLowerCase()?ae.y:0)+parseFloat(b())),a.lineTo(ae.x,ae.y);break;case"C":for(;!x();){bt=new zt,E(bt);var $e=tt(),Un=z();nh(a,bt.x,bt.y,$e.x,$e.y,Un.x,Un.y)}break;case"S":for(;!x();)bt=ot(),$e=tt(),Un=z(),nh(a,bt.x,bt.y,$e.x,$e.y,Un.x,Un.y);break;case"Q":for(;!x();)bt=tt(),$e=z(),Rm(a,bt.x,bt.y,$e.x,$e.y);break;case"T":for(;!x();)se=bt=ot(),$e=z(),Rm(a,bt.x,bt.y,$e.x,$e.y);break;case"B":for(;!x();){bt=parseFloat(b()),$e=parseFloat(b()),Un=parseFloat(b());var oi=parseFloat(b()),ti=parseFloat(b()),jn=ti,wn=!1;x()||(jn=parseFloat(b()),x()||(wn=parseFloat(b())!==0)),Yt===Yt.toLowerCase()&&(Un+=ae.x,oi+=ae.y),a.arcTo(bt,$e,Un,oi,ti,jn,wn)}break;case"A":for(;!x();)bt=Math.abs(parseFloat(b())),$e=Math.abs(parseFloat(b())),Un=parseFloat(b()),ti=oi=!1,wn=jn=0,jn=b(),jn.length===1?(oi=!!parseFloat(jn),ti=!!parseFloat(b()),jn=parseFloat(b())):jn.length===2?(oi=!!parseFloat(jn[0]),ti=!!parseFloat(jn[1]),jn=parseFloat(b())):(oi=!!parseFloat(jn[0]),ti=!!parseFloat(jn[1]),jn=parseFloat(jn.slice(2))),wn=parseFloat(b()),Yt===Yt.toLowerCase()&&(jn=ae.x+jn,wn=ae.y+wn),ae.h(jn,wn),Nx(a,bt,$e,Un,oi,ti,jn,wn);break;case"Z":kx(a),ae.assign(rt);break;case"F":for(bt="",$e=1;lt[Bt+$e];)if(lt[Bt+$e]==="0")St=!0,$e++;else if(lt[Bt+$e].match(/[Uu]/)!==null)$e++;else if(lt[Bt+$e].match(be)===null)$e++;else{bt=lt[Bt+$e];break}bt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),bt.startAngle+=tt),0>a&&(bt.startAngle=180-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),0>b&&(bt.startAngle=-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY!==void 0&&(bt.radiusY*=Math.sqrt(y*y+b*b));break;case Fa:if(tt=bt.endX,ot=bt.endY,bt.endX=tt*a+ot*x+E,bt.endY=tt*y+ot*b+z,bt.radiusX===0||bt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.xAxisRotation+=tt),0>a&&(bt.xAxisRotation=180-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),0>b&&(bt.xAxisRotation=-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY*=Math.sqrt(y*y+b*b);break;default:le("Unknown Segment type: "+bt.type)}}}}return this._isInvalidBounds=!0,this},Mt.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 Kn.j:return Te.Yb(x,b,E,z,y,a.x,a.y);case Kn.u:var tt=sn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),sn.free(tt),a;case Kn.F:tt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case Kn.o:return cu(this,a,y,!0,!1);default:return!1}};function cu(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,lt,ut,gt,St=a.figures.s,Ct=St.length,bt=0;bt=a)return 0;if((E>tt?E-tt:tt-E)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(Ett)return 0}else if(ltE)return 0;return 0a?a=0:1=z)return b=z-tt,b=ut===0?0:b/ut,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Mt.wx=function(a){if(0>a?a=0:1=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=lt}}return NaN},Mt.Qu=function(a,y){if(0>a?a=0:1=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;tt+=ut}}return y},Mt.xx=function(a){if(this.type===Kn.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=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var ot=zt.alloc();return Te.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,zt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Kn.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(E=this.endY,tt!==rt||ot!==E){y=rt-tt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),rt),a=Math.min(Math.max(a,ot),E),tt=Math.abs(b-tt),rt=Math.abs(b-rt),ot=Math.abs(a-ot),E=Math.abs(a-E);var lt=Math.min(tt,rt,ot,E);if(lt===ot)return b/z;if(lt===rt)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=zt.alloc(),E=1/0,ot=tt=0,rt=y.length;for(var ut=lt=0,gt=0;gta?0:1a?"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;Ea&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Tr&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Tr&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Po.prototype.copy=function(){var a=new Po;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},Mt=Po.prototype,Mt.Xa=function(a){if(!(a instanceof Po)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Kr:case Zo:return Te.B(this.endX,a.endX)&&Te.B(this.endY,a.endY);case rs:return Te.B(this.endX,a.endX)&&Te.B(this.endY,a.endY)&&Te.B(this.point1X,a.point1X)&&Te.B(this.point1Y,a.point1Y)&&Te.B(this.point2X,a.point2X)&&Te.B(this.point2Y,a.point2Y);case Pa:return Te.B(this.endX,a.endX)&&Te.B(this.endY,a.endY)&&Te.B(this.point1X,a.point1X)&&Te.B(this.point1Y,a.point1Y);case Tr:return Te.B(this.startAngle,a.startAngle)&&Te.B(this.sweepAngle,a.sweepAngle)&&Te.B(this.centerX,a.centerX)&&Te.B(this.centerY,a.centerY)&&Te.B(this.radiusX,a.radiusX)&&Te.B(this.radiusY,a.radiusY);case Fa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Te.B(this.xAxisRotation,a.xAxisRotation)&&Te.B(this.endX,a.endX)&&Te.B(this.endY,a.endY)&&Te.B(this.radiusX,a.radiusX)&&Te.B(this.radiusY,a.radiusY);default:return!1}},Mt.qb=function(a){a.classType===Po&&(this.type=a)},Mt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Kr:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case rs: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 Pa: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 Tr: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 Fa: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":"")},Mt.freeze=function(){return this._isFrozen=!0,this},Mt.ka=function(){return this._isFrozen=!1,this},Mt.close=function(){return this.isClosed=!0,this};function ua(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=Te.jx(0,0,x=Ct?tt=Math.PI:1<=Ct&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,Ct=y>z?z/y:1,y=Te.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=eo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(rt,Ct),Kn.Ha(y,z),eo.free(z),a.ae=y,a.ae}_t.Object.defineProperties(Po.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&&mn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Gn(a,">= zero",Po,"radiusX"),this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Gn(a,">= zero",Po,"radiusY"),this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(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&&mn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mn(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&&mn(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&&mn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Po.prototype.equalsApprox=Po.prototype.Xa;var Kr=new nn(Po,"Move",0),Zo=new nn(Po,"Line",1),rs=new nn(Po,"Bezier",2),Pa=new nn(Po,"QuadraticBezier",3),Tr=new nn(Po,"Arc",4),Fa=new nn(Po,"SvgArc",4);Po.className="PathSegment",Po.Move=Kr,Po.Line=Zo,Po.Bezier=rs,Po.QuadraticBezier=Pa,Po.Arc=Tr,Po.SvgArc=Fa;function ms(){this.H=null,this.xu=new zt(0,0).freeze(),this.mt=new zt(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}ms.prototype.copy=function(){var a=new ms;return this.clone(a)},ms.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},ms.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},ms.prototype.So=function(a,y){var x=this.diagram;return x===null||vg(x,a,y),y},ms.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vg(x,a,y),y.assign(x.Ps(y))),y},_t.Object.defineProperties(ms.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}}}),ms.prototype.getMultiTouchDocumentPoint=ms.prototype.Bz,ms.prototype.getMultiTouchViewPoint=ms.prototype.So,ms.className="InputEvent";function Au(){this.H=null,this.xa="",this.ar=this.Lr=null}Au.prototype.copy=function(){var a=new Au;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Au.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},_t.Object.defineProperties(Au.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}}}),Au.className="DiagramEvent";function ir(){this.Fm=tr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ir.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ir.prototype.copy=function(){var a=new ir;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=Re(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Re(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Re(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Re(y)&&typeof y.J=="function"?y.J():y,a},ir.prototype.qb=function(a){a.classType===ir&&(this.change=a)},ir.prototype.toString=function(){var a="";return a=this.change===ha?a+"* ":this.change===tr?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===ha?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=On(this.object)),this.oldValue!==null&&(a+=" old: "+On(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+On(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ir.prototype.I=function(a){return a?this.oldValue:this.newValue},ir.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ir.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ir.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ir.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ir.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},_t.Object.defineProperties(ir.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===ha&&(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}}}),ir.prototype.redo=ir.prototype.redo,ir.prototype.canRedo=ir.prototype.canRedo,ir.prototype.undo=ir.prototype.undo,ir.prototype.canUndo=ir.prototype.canUndo,ir.prototype.getParam=ir.prototype.Dz,ir.prototype.getValue=ir.prototype.I,ir.prototype.clear=ir.prototype.clear;var ha=new nn(ir,"Transaction",-1),tr=new nn(ir,"Property",0),br=new nn(ir,"Insert",1),zr=new nn(ir,"Remove",2);ir.className="ChangedEvent",ir.Transaction=ha,ir.Property=tr,ir.Insert=br,ir.Remove=zr;function Vr(){this.o=new qe().freeze(),this.xa="",this.j=!1}Vr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},_t.Object.defineProperties(Vr.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}}}),Vr.prototype.optimize=Vr.prototype.ak,Vr.prototype.redo=Vr.prototype.redo,Vr.prototype.canRedo=Vr.prototype.canRedo,Vr.prototype.undo=Vr.prototype.undo,Vr.prototype.canUndo=Vr.prototype.canUndo,Vr.prototype.clear=Vr.prototype.clear,Vr.className="Transaction";function or(){this.Pt=new tn,this.Jd=!1,this.u=new qe().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new qe().freeze(),this.hl=new qe,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}or.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;ba.transactionLevel&&si("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=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}Mt.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()}},or.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||si("Change not within a transaction: "+x.toString()))}},or.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},_t.Object.defineProperties(or.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.historyIndexE||Math.abs(y.y-a.y)>b},_t.Object.defineProperties(yo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ze&&(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}}}),yo.prototype.startTransaction=yo.prototype.Ea,yo.className="Tool";function qo(){yo.call(this),this.name="ToolManager",this.hb=new qe,this.ob=new qe,this.Hb=new qe,this.F=this.V=850,this.o=new Wn(2,2).ja(),this.Ha=5e3,this.ia=dd,this.u=Hc,this.Mp=this.j=null,this.zj=-1}Be(qo,yo),qo.prototype.initializeStandardTools=function(){},qo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof So&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},qo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===gu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===bh){y.bubbles=!0;return}if(this.gestureBehavior===gu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;bE.right&&(x.x-=b.width+5/y.scale),x.xE.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=Rp(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Rp(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),E.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Kc(E,tt,z,rt,ot):Kc(E,null,null,null,null)}}}}rr.prototype.doDragOver=function(){};function zu(a,y){var x=a.diagram;a.dragsLink&&ju(a,!0),Lh(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;Q0(a,E,z),z=ng(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||ts!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Xn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||ts!==null){for(a=sn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Xn&&q0(x,b,a);sn.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ki||(x=a.mouseDrop,x!==null&&x(y))}function q0(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 Hn},!0,function(E){return E instanceof Hn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}rr.prototype.doDropOnto=function(){},rr.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()?(pu(this,!1),of(a,this.copiedParts),Fl(this,this.copiedParts,!1),Rh(a,this.copiedParts)):this.mayMove()?(ol(this),Fl(this,this.draggedParts,!0)):this.mayDragOut()?(pu(this,!1),Fl(this,this.copiedParts,!1)):ol(this),Wc(this,a.lastInput.documentPoint))}},rr.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?(ol(this),pu(this,!0),of(a,this.copiedParts),Fl(this,this.copiedParts,!1),Rh(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,ol(this),this.mayMove()&&(Fl(this,this.draggedParts,!0),Wc(this,a.lastInput.documentPoint))),this.Ym=!0,zu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&tv(this),a.Ya(),Rh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},rr.prototype.simulatedMouseMove=function(a,y,x){if(ts===null)return!1;var b=ts.diagram;x instanceof Ze||(x=null);var E=Hu;return x!==E&&(E!==null&&E!==b&&(E.ug(),ts.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Hu=x,x!==null&&x!==b&&(tg(),E=x.toolManager.findTool("Dragging"),E!==null&&(Zl.contains(E)||Zl.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&&(0tt&&(tt=lt),ut>ot&&(ot=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,sn.free(z),z=a.Fr,tt=new Yn,ot=zt.alloc(),rt=y.iterator;rt.next();)lt=rt.value,lt instanceof Hn&<.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,rh(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(rt=x.I(lt),rt!==null&&(lt=lt.location,ot.h(z.x-(b-lt.x),z.y-(E-lt.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));zt.free(ot),a.copiedParts=tt,Gc(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,rh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}rr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},rr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new zt},_t.Object.defineProperties(rr.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}}}),rr.prototype.getDraggingSource=rr.prototype.Az;var ts=null,Hu=null;rr.className="DraggingTool",Zl=new qe,yi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),qo.prototype.doCancel=function(){ts!==null&&ts.doCancel(),yo.prototype.doCancel.call(this)};function pr(){yo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hn,y=new Xi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Xi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xn,y=new Xi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=xo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xn,y=new Xi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=xo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Yn,this.Of=this.gj=this.Pf=null}Be(pr,yo),pr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},pr.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=Wn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,Wn.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=po,z=zt.alloc(),x.location=y.ga(po,z),zt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},pr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=xo,y.fromSpot=hr,y.toSpot=hr),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},pr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},pr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xn){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)}},pr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Xn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},pr.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(gt){return E.findValidLinkablePort(gt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Xn){var rt=tt.ga(po,zt.alloc()),lt=x.x-rt.x,ut=x.y-rt.y;zt.free(rt),rt=lt*lt+ut*ut,rtx){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},pr.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},pr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},pr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Xn))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},pr.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)},pr.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 tn;return b.add(a),vs(this,x,y,b)};function vs(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),vs(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),vs(a,y.labeledLink,x,b))))}pr.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!==cc){if(b===Dg){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!Ls(this,a,y,x,!0)}if(b===Bg){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!Ls(this,a,y,x,!0)}if(b===Tg)return a===y?a=!0:(b=new tn,b.add(y),a=Ms(this,b,a,y,x)),!a;if(b===Fg)return!Ls(this,a,y,x,!1);if(b===Og)return a===y?a=!0:(b=new tn,b.add(y),a=cd(this,b,a,y,x)),!a}return!0};function Ls(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Ls(a,tt,x,b,E)))return!0}return!1}function Ms(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Ms(a,y,tt,b,E)))return!0}return!1}function cd(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&cd(a,y,ot,b,E))return!0}}return!1}_t.Object.defineProperties(pr.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}}}),pr.className="LinkingBaseTool";function Es(){pr.call(this),this.name="Linking",this.V={},this.F=null,this.K=Mh,this.Xd=null}Be(Es,pr),Es.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},Es.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 Xn)))return null;var x=this.direction;if(x===Mh||x===zp){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===Mh||x===Hp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Es.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 Xn&&(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 Xn&&(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)},Es.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()},Es.prototype.doStop=function(){pr.prototype.doStop.call(this),this.startObject=null},Es.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Xn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=tt):(y=ot,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Es.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Hn)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)},Es.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Es.prototype.doNoLink=function(){},_t.Object.defineProperties(Es.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 Mh=new nn(Es,"Either",0),zp=new nn(Es,"ForwardsOnly",0),Hp=new nn(Es,"BackwardsOnly",0);Es.className="LinkingTool",Es.Either=Mh,Es.ForwardsOnly=zp,Es.BackwardsOnly=Hp;function wa(){pr.call(this),this.name="Relinking";var a=new Xi;a.figure="Diamond",a.desiredSize=Uo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Xi,a.figure="Diamond",a.desiredSize=Uo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new sn}Be(wa,pr),wa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){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)}},wa.prototype.makeAdornment=function(a,y){var x=new So;return x.type=Dn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},wa.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},wa.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 So&&x.adornedPart instanceof Hn))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&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Dn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ds.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},ds.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))},ds.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ds.prototype.stopTransaction=function(){var a=this.diagram,y=yo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ds.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ds.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,zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),zt.free(E)}},ds.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,zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),zt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ds.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 Ki){var b=new qe;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new st;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()}},ds.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=po);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,gt=1;if(!z){gt=tt.width;var St=tt.height;0>=gt&&(gt=1),0>=St&&(St=1),gt=St/gt}return St=zt.alloc(),Te.No(a.x,a.y,ot,rt,E.width,E.height,St),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(St.y-rt,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=lt-a.width)):(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(St.x-ot,b.width),x.width),a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(St.x-ot,b.width),x.width),a.height=Math.max(Math.min(St.y-rt,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(St.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(lt-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(St.y-rt,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(lt-ot-a.width))),zt.free(St),a},ds.prototype.computeReshape=function(){var a=Mn;return this.adornedObject instanceof Xi&&(a=Mv(this.adornedObject)),!(a===hi||this.diagram.lastInput.shift)},ds.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},ds.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?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)},ks.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new zt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ks.prototype.stopTransaction=function(){var a=this.diagram,y=yo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ks.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ks.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ks.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()},ks.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()}},ks.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&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},_t.Object.defineProperties(ks.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 So))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 So)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}}}),ks.className="RotatingTool",yi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Eh(){yo.call(this),this.name="ClickSelecting"}Be(Eh,yo),Eh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Eh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Eh.className="ClickSelectingTool";function Va(){yo.call(this),this.name="Action",this.pk=null}Be(Va,yo),Va.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},Va.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()},Va.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))}},Va.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()},Va.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())},Va.prototype.doStop=function(){this.pk=null},Va.className="ActionTool";function $u(){yo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new zt(0,0)}Be($u,yo),$u.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)},$u.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},$u.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 vi)x.Zc()&&(Qa(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Re(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=zt.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),zt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},_t.Object.defineProperties($u.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}}}),$u.className="ClickCreatingTool";function Oa(){yo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new vi;a.layerName="Tool",a.selectable=!1;var y=new Xi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Be(Oa,yo),Oa.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.timestampE.right&&(x.x-=b.width+5/y.scale),x.xE.bottom&&(x.y-=b.height+5/y.scale),x.ya.lastInput.clickCount)):!1},_o.prototype.doStart=function(){_u=this,this.textBlock!==null&&this.doActivate()},_o.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 Go&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=qd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new sn(this.textBlock.ga(Dr),this.textBlock.ga(Ws));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_o.prototype.doCancel=function(){this.stopTool()},_o.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_o.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Dl)},_o.prototype.acceptText=function(a){switch(a){case Dl:this.qa===md?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===qd||this.qa===ec||this.qa===tc)&&(this.qa=rg,og(this));break;case Zc:case Qd:case _c:(Qd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===qd||this.qa===ec||this.qa===tc)&&(this.qa=rg,og(this))}};function og(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=md,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=ec,a.doError(E,z))}}_o.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)},_o.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_o.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=pd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_o.prototype.doStop=function(){_u=null},_o.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)))},_o.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},_t.Object.defineProperties(_o.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)}}}),_o.prototype.measureTemporaryTextBlock=_o.prototype.Lx;var Zc=new nn(_o,"LostFocus",0),Dl=new nn(_o,"MouseDown",1),_c=new nn(_o,"Tab",2),Qd=new nn(_o,"Enter",3),ev=new nn(_o,"SingleClick",0),gd=new nn(_o,"SingleClickSelected",1),Vc=new nn(_o,"DoubleClick",2),pd=new nn(_o,"StateNone",0),qd=new nn(_o,"StateActive",1),tc=new nn(_o,"StateEditing",2),rg=new nn(_o,"StateValidating",3),ec=new nn(_o,"StateInvalid",4),md=new nn(_o,"StateValidated",5),_u=null;_o.className="TextEditingTool",_o.LostFocus=Zc,_o.MouseDown=Dl,_o.Tab=_c,_o.Enter=Qd,_o.SingleClick=ev,_o.SingleClickSelected=gd,_o.DoubleClick=Vc,_o.StateNone=pd,_o.StateActive=qd,_o.StateEditing=tc,_o.StateValidating=rg,_o.StateInvalid=ec,_o.StateValidated=md,yi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function da(a){ic||(sg(),ic=!0),this.H=Vl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=yu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new tn,this.ce=new as,this.ce.Yd=this,this.Ei=new tn,this.pu=new tn,this.Sr=new tn,this.pr=new tn,a&&Object.assign(this,a)}da.prototype.Xe=function(a){this.H=a},da.prototype.canStart=function(){return!0};function _l(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ls(a.H),a.zb=!0)}function Uc(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===yu?(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===ag&&y.vc.clear(),a.Qw=!!(a.Pk===oc&&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(),rc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ys&&b!==null&&(delete b.start.scale,delete b.end.scale),ie.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&$s(x),cg(x),a.zb=!1,y.start(),y.bc&&(Vu(a),x.Ya(),lg(y,0),Ba(x,!0),Nh(a),x.R("AnimationStarting",a)))}))}}function vu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Xc(a,y,x,b){a.isTicking||vu(a)||y instanceof Hn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Mt=da.prototype,Mt.fv=function(a){return this.ce.fv(a)},Mt.Xu=function(a){return this.ce.Xu(a)};function Yc(a,y){function x(){if(0z?z+=360:rt+=360),z=E(x,z,rt-z,b)%360,tt=E(x,tt,lt-tt,b),ot=E(x,ot,ut-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function sg(){function a(x,b,E,z,tt,ot){x.position=new zt(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot))}var y=new Yn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,ot){tta&&Gn(a,">= 1",da,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),da.prototype.stopAnimation=da.prototype.Cc;var nc=null,ic=!1,yu=new nn(da,"Default",1),oc=new nn(da,"AnimateLocations",2),ag=new nn(da,"None",3);da.className="AnimationManager",da.defineAnimationEffect=function(a,y){ic||(sg(),ic=!0),nc.add(a,y)},da.Default=yu,da.AnimateLocations=oc,da.None=ag;function as(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=vd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Ai,this.vc=new Yn,this.Tt=new Yn,this.yl=new tn,this.Ut=new tn,this.dw=Ju,a&&Object.assign(this,a)}as.prototype.suspend=function(){this.Xk=!0},as.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,sc(this,!0),Vu(this.Yd),Ba(this.H),Nh(this.Yd),this.H.redraw()};function rc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,Ea.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function lg(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Me&&z.diagram===null)){var tt=b.value,ot=E?tt.end:tt.start;tt=E?tt.start:tt.end;var rt=nc,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(lt)===null||rt.get(lt)(z,ot[lt],tt[lt],a.Lp,y,x,a)}}}Mt.stop=function(){return this.bc?(this.Ml(!0),this):this},Mt.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,Vu(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=nc;b.next();){var tt=b.key,ot=b.value,rt=E?ot.end:ot.start,lt=E?ot.start:ot.end,ut=ot.Ku,gt;for(gt in lt)if(z.get(gt)!==null){var St=gt;!ot.Hu||St!=="position:nodeCollapse"&&St!=="position:placeholder"||(St="position"),z.get(St)(tt,rt[gt],ut[gt]!==void 0?ut[gt]:ot.Hu?rt[gt]:lt[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof vi&&(tt.location=ut.location),ot.nv&&tt instanceof vi&&tt.Zb(!1)}if(y.As.clear(),ac(y,!1),y.Ya(),y.N(),Ba(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)E=gt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Ba(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Nh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),rc(this,null),x.Ml(this),y.$b())}},Mt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Ki&&(b=y.placeholder),b!==null?(x=b.ga(Dr),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new zt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ki)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Cj(b,y)},Mt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ki&&(x=y.placeholder),x!==null){var b=x.ga(Dr);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 Ki)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Aj(b,y)}},Mt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},_t.Object.defineProperties(as.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Gn(a,">= 1",as,"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){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Kp(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}as.className="Animation",as.EaseLinear=function(a,y,x,b){return x*a/b+y},as.EaseInOutQuad=vd,as.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},as.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},as.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},as.EaseOutExpo=Kp;function Oh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Oh.className="AnimationState";function sl(a,y,x){this.xd=null,this.rf=a,this.so=x||ug,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Dh))}sl.prototype.copy=function(){var a=new sl(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 $p(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))}_t.Object.defineProperties(sl.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 ug=new nn(sl,"Default",1),Dh=new nn(sl,"Immediate",2),yd=new nn(sl,"Bundled",3);sl.className="AnimationTrigger",sl.Default=ug,sl.Immediate=Dh,sl.Bundled=yd;function Yr(a){Ci(this),this.H=null,this.Pa=new qe,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)}Mt=Yr.prototype,Mt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Ki?E++:rt instanceof Xn?b++:rt instanceof Hn?z++:rt instanceof So?tt++:x++}if(ot="",0x.Oq||ot.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&&(cr(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(cr(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),cr(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))}},Mt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(tr,a,this,y,x,b,E)},Mt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&gs(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)),Qc(this,a,y),a},Mt.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,gs(y),a};function Qc(a,y,x){if(y=_p(a,y,x),x instanceof Ki&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;ttb&&ot.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otb)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function dg(a,y){if(dr){if(y!=null||le("Diagram setup requires an argument DIV."),a.Ka!==null&&le("Diagram has already completed setup."),typeof y=="string"?a.Ka=ie.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:le("No DIV or DIV id supplied: "+y),a.Ka===null&&le("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&le("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ie.ResizeObserver){var x=yn(function(){a.$b()},250);a.ol=new ie.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ie.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=ie.go;var E=new Ja(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ie.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),Sg(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Ja(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,dr){E=_n("div");var z=_n("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=Jp,E.addEventListener("pointerdown",Qp),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=yn(function(){a.Yh=null,a.N()},300),a.Ov=yn(function(){cg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=Da(a,tt,!0);ot.bubbles=!0;var rt=0,lt=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(lt.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():al(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=mg(a,tt,!1,!1,!1,ot[1]!==null);var rt=ie.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;rt&&rt.H&&(ut=tt,lt=rt.H),ot.targetDiagram=lt,xd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),al(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=mg(a,tt,!1,!0,!0,!1);var lt=ie.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof Ze&<.H!==a&&xd(lt.H,tt,rt),lt===null&&(lt=tt.target),xd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=pg(tt,lt),rt.targetObject=null,a.doMouseUp(),al(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+pc[1]+pc[2]+"wI"+Ed.slice(1,5)]["b"+zx.slice(1,y)](b.Z,gc,y,y),b.Vc(!0),nv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ze.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ze.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function nv(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(ie,"resize",a.Ov,!1)}function $s(a){30bt&&(this.position=Yt.h(-(y.scrollWidth-this.Aa)+Gt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otBt&&(this.position=Yt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),zt.free(Yt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,bt=E.right,z=b.bottom,Bt=E.bottom,tt=b.x,gt=E.x,ot=b.y,b=E.y,St>=rt&&tt>=gt&&ut<=bt&&(x.style.width="1px"),Ct>=lt&&ot>=b&&z<=Bt&&(x.style.height="1px"))}},Ze.prototype.computeBounds=function(a){return a===void 0&&(a=new sn),ls(this),fg(this,a)};function fg(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;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Hh?(y=rt>ot?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Ze.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ju,this.scale=Sd(this,Ca),a!==Ju&&(Xa(this,!1),gg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Mt=Ze.prototype,Mt.BA=function(a,y){y===void 0&&(y=Ca);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ca||y===Hh)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===Hh?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 zt(a.x,a.y)}},Mt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new zt(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))},Mt.zz=function(a){if(a instanceof Me){this.eq=a;var y=zt.alloc();this.fq=this.op(a.ga(Dr,y)),zt.free(y)}else this.eq=null,this.fq=Ho};function gg(a,y,x,b,E,z){var tt=zt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var lt=zt.alloc();lt=a.eq.ga(Dr,lt),ot=lt.x-a.fq.x/a.scale,rt=lt.y-a.fq.y/a.scale,E=hr,zt.free(lt)}(z||a.scrollMode===Ju)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(rt=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new tn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Ki&&b.U&65536&&(b.U=b.U^65536)})}}Mt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ki||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ki&&x.isVisible()&&hc(this,x);for(a.reset();a.next();)x=a.value,x instanceof Hn&&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 So&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function hc(a,y){for(var x=rn(),b=rn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Ki?(La(z)||Fs(z)||Wh(z))&&hc(a,z):z instanceof Hn?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;Ebe&&(Gt=Un.left,se=Un.right),Yt.height>$e&&(ae=Un.top,he=Un.bottom)):(Gt=Un.left,se=Un.right,ae=Un.top,he=Un.bottom);var oi=Yt.width+Gt+se,ti=Yt.height+ae+he;Un=a.scale;var jn=oi>rt/Un,wn=ti>lt/Un;if(!(z||a.gf||a.Be||jn||wn))return!0;Gt=Yt.x-Gt,rt=ut.x,se=Yt.right+se,lt=ut.right+tt,ae=Yt.y-ae;var Gi=ut.y;Yt=Yt.bottom+he,ut=ut.bottom+ot;var Oi="1px";if(he="1px",a.scrollMode===Ju&&(jn||wn)&&(jn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(jn=1,Gt+1lt+1&&(jn=Math.max((se-lt)*Un+a.Aa,jn)),be+tt+1ut+1&&(jn=Math.max((Yt-ut)*Un+a.ya,jn)),$e+ot+1lt+1&&(tt=Math.max((se-lt)*Un+a.Aa,tt)),be+1ut+1&&(ot=Math.max((Yt-ut)*Un+tt,ot)),$e+1lt+1&&(y=a.position.x*Un)),a.tn)switch(a.bu){case"negative":y=-(bt.scrollWidth-y-bt.clientWidth);break;case"reverse":y=bt.scrollWidth-y-bt.clientWidth}return bt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&($e+1ut+1&&(bt.scrollTop=a.position.y*Un)),rt=a.Aa,lt=a.ya,bt.style.width=rt+(a.gf?a.Db:0)+"px",bt.style.height=lt+(a.Be?a.Db:0)+"px",x!==rt||b!==lt||a.animationManager.zb?(x=sn.allocAt(E,gt,St,Ct),a.onViewportBoundsChanged(x,a.viewportBounds,Un,z),sn.free(x),!1):!0}Mt=Ze.prototype,Mt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&le("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&&le('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(br,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Mt.oi=function(a){this.partManager.oi(a);var y=this;Od(a,function(x){bd(y,x)}),(a instanceof So||a instanceof Ki&&a.placeholder!==null)&&a.v(),a.data!==null&&Od(a,function(x){uy(y.partManager,x)}),Fs(a)!==!0&&Wh(a)!==!0||this.De.add(a),H1(a,!0,this),W1(a)?(a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.$b()},Mt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Od(a,function(x){hy(y.partManager,x,y)}),this.De.remove(a),W1(a)?(a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.$b()},Mt.remove=function(a){xg(this,a,!0)};function xg(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(zr,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Mt.Is=function(a,y){if(y===void 0&&(y=!1),fn(a))for(var x=a.length,b=0;bb&&this.Ya(),this},Mt.Cy=function(a,y){wg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(zr,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;zb&&this.Ya(),this},Mt.kA=function(a){if(a.diagram!==this&&le("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(zr,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Mt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Mt.Yw=function(a){return this.pf===null&&(this.pf=new qe),this.pf.add(a),this.model.Pe(a),this},Mt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Mt.Pe=function(a){return this.zg===null&&(this.zg=new qe),this.zg.add(a),this},Mt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Mt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ha&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;bgt.Pa.indexOf(Ct)&>.oi(St,Ct,bt):(Ct.isSelected=!1,Ct.isHighlighted=!1,Ct.Wb(),gt.pc(bt?St:-1,Ct,bt)))}else gt instanceof Ze?typeof St=="number"&&Ct instanceof Yr&&(y?(Ct.Xe(this),this.Wa.Gb(St,Ct)):this.Wa.mb(St)):le("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ha&&le("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ze.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ze.prototype.eb=function(a){return this.undoManager.eb(a)},Ze.prototype.Kf=function(){return this.undoManager.Kf()},Ze.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}},Ze.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ze.prototype.rp=function(){this.partManager.rp()};function Cg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Al(a),a.N(),a.Ee=!0,b.zb&&(vu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Al(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,lt=a.contentAlignment;isNaN(ot)&&(lt.$c()?lt.Hf(vl)?ot=0:lt.Hf(Ks)&&(ot=z-1):ot=lt.sb()?lt.x*(z-1):z/2),isNaN(rt)&&(lt.$c()?lt.Hf(Tl)?rt=0:lt.Hf(aa)&&(rt=tt-1):rt=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=zt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,zt.free(z),a.Ca=x,Al(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Xa(a,!1),b.zb&&(vu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ze.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!==ys||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof qo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(E,this)),this.vb||this.invalidateViewport(a,y),Bl(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 Bl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Wn.alloc(),E=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(vv(lt.figure)?z=z*ut/Te.vx(z,ut):E=E*ut/Te.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=sn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){sn.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,sn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=zt.alloc(),Te.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Wn.free(b),x.part.location=y,zt.free(y)}}Ze.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&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||_l(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)kg(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),ls(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||Uc(z),a.aa=x}}}function kg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)kg(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),hc(a,y),E.isValidLayout=!0):a.xh=!0)}}Mt.yz=function(){for(var a=new qe,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function iv(a){function y(E){var z=E.toLowerCase(),tt=new qe;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new Yn,b=new Yn;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 nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function sf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;le("Unknown DiagramEvent name: "+y)}Mt.Bj=function(a,y){return a=sf(this,a),a!==null&&a.add(y),this},Mt.am=function(a,y){a=sf(this,a),a!==null&&a.remove(y)},Mt.R=function(a,y,x){var b=sf(this,a),E=new Au;if(E.diagram=this,a=nm(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=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=sn.allocAt(0,0,b.width*E,b.height*E);var z=zt.allocAt(0,0);if(a.x>=b.x&&a.xb.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.yb.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Ai)||(y=new zt(y.x+z.x/E,y.y+z.y/E)),sn.free(b),zt.free(z),y},Mt=Ze.prototype,Mt.Cs=function(){return null},Mt.av=function(){return null},Mt.bs=function(a,y){this.pj.add(a,y)},Mt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ki&&(y.$p=null)})};function dc(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>rt?y(x,E,ot):ie.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,rt=x.callbackTimeout||300,lt=+new Date;return ie.requestAnimationFrame(function(){b()}),null}Mt.Wz=function(a){return dr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Mt.Jx=function(a){return a===void 0&&(a={}),dc(this,this.Xz,a)},Mt.Xz=function(a,y,x){var b=om(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 Ed+"data":E=b.getImageData(0,0,x.width,x.height);break;case Ed:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&le('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 om(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&le("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Wn(1/0,1/0):new Wn(2e3,2e3));var ot=y.position||null,rt=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var St=y.document||document,Ct=y.elementFinished||null,bt=y.showTemporary;bt===void 0&&(bt=!gt),y=y.showGrid,y===void 0&&(y=bt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new mi(lt):lt instanceof mi||le("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),gt=new Ja(null,St,void 0,!0);var Bt=gt.context;if(!(E||z||rt||ot))return gt.width=a.Aa+Math.ceil(lt.left+lt.right),gt.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=St,b.hs=Ct,tf(a,b.context,lt,new Wn(gt.width,gt.height),a.Ca,a.pa,rt,ut,bt,y),b.context):(a.Xm=!1,tf(a,Bt,lt,new Wn(gt.width,gt.height),a.Ca,a.pa,rt,ut,bt,y),a.Xm=!0,gt.context);var Yt=a.Pp,Gt=a.documentBounds.copy();if(Gt.Fv(a.yb),bt)for(var se=a.Wa.s,ae=se.length,he=0;heYt?(z=Yt,E=Gt.width,Gt=Gt.height):(E=tt.width,Gt=tt.height)):(E=Gt.width*z,Gt=Gt.height*z):(z=Yt,E=Gt.width,Gt=Gt.height),lt!==null?(E+=ot,Gt+=ae):lt=new mi(0),tt!==null&&(Yt=tt.width,tt=tt.height,isNaN(Yt)&&(Yt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Yt)&&(E=Math.min(E,Yt)),isFinite(tt)&&(Gt=Math.min(Gt,tt))),gt.width=Math.ceil(E),gt.height=Math.ceil(Gt),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=St,b.hs=Ct,tf(a,b.context,lt,new Wn(Math.ceil(E),Math.ceil(Gt)),z,se,rt,ut,bt,y),b.context):(a.Xm=!1,tf(a,Bt,lt,new Wn(Math.ceil(E),Math.ceil(Gt)),z,se,rt,ut,bt,y),a.Xm=!0,gt.context)}_t.Object.defineProperties(Ze.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Il(this,ie.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 Il(this,ie.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(ie,"resize",this.Ov,!1),this.removeEventListener(ie,"wheel",this.$j,!0),Vl===this&&(Vl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),dg(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||1a&&Gn(a,">= 0",Ze,"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&&Gn(a,">= 0",Ze,"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= 0",Ze,"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||tm(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&&le("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=hg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,_l(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=bg(this.cc.type);for(var E=0;Ethis.scale&&(this.scale=a)):Gn(a,"> 0",Ze,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Ze,"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),Xa(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 mi(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&&le("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();)Vg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Qu&&a!==Br&&a!==df&&le("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 Wn(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 mi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),_t.Object.defineProperties(Ze,{licenseKey:{get:function(){return Ag.jc()},set:function(a){Ag.add(a.replace(/\s/g,""))}},version:{get:function(){return Md}}}),Ze.prototype.makeImageData=Ze.prototype.Jx,Ze.prototype.makeImage=Ze.prototype.Wz,Ze.prototype.cacheGroupExternalLinks=Ze.prototype.Fu,Ze.prototype.addRenderer=Ze.prototype.bs,Ze.prototype.makeSVG=Ze.prototype.av,Ze.prototype.makeSvg=Ze.prototype.Cs,Ze.prototype.stopAutoScroll=Ze.prototype.ug,Ze.prototype.doAutoScroll=Ze.prototype.gs,Ze.prototype.isUnoccupied=Ze.prototype.Yj,Ze.prototype.raiseDiagramEvent=Ze.prototype.R,Ze.prototype.removeDiagramListener=Ze.prototype.am,Ze.prototype.addDiagramListener=Ze.prototype.Bj,Ze.prototype.findTreeRoots=Ze.prototype.yz,Ze.prototype.layoutDiagram=Ze.prototype.Uz,Ze.prototype.findTopLevelGroups=Ze.prototype.qz,Ze.prototype.findTopLevelNodesAndLinks=Ze.prototype.rz,Ze.prototype.ensureBounds=Ze.prototype.Va,Ze.prototype.findLinksByExample=Ze.prototype.ls,Ze.prototype.findNodesByExample=Ze.prototype.ms,Ze.prototype.findLinkForData=Ze.prototype.Kc,Ze.prototype.findNodeForData=Ze.prototype.ii,Ze.prototype.findPartForData=Ze.prototype.Lc,Ze.prototype.findLinkForKey=Ze.prototype.findLinkForKey,Ze.prototype.findNodeForKey=Ze.prototype.Vb,Ze.prototype.findPartForKey=Ze.prototype.findPartForKey,Ze.prototype.rebuildParts=Ze.prototype.Wd,Ze.prototype.transformViewToDoc=Ze.prototype.Ps,Ze.prototype.transformRectDocToView=Ze.prototype.zA,Ze.prototype.transformDocToView=Ze.prototype.op,Ze.prototype.centerRect=Ze.prototype.es,Ze.prototype.scrollToRect=Ze.prototype.tv,Ze.prototype.scroll=Ze.prototype.scroll,Ze.prototype.highlightCollection=Ze.prototype.Jz,Ze.prototype.highlight=Ze.prototype.Iz,Ze.prototype.selectCollection=Ze.prototype.rA,Ze.prototype.select=Ze.prototype.select,Ze.prototype.updateAllRelationshipsFromData=Ze.prototype.rp,Ze.prototype.updateAllTargetBindings=Ze.prototype.updateAllTargetBindings,Ze.prototype.commit=Ze.prototype.commit,Ze.prototype.rollbackTransaction=Ze.prototype.Kf,Ze.prototype.commitTransaction=Ze.prototype.eb,Ze.prototype.startTransaction=Ze.prototype.Ea,Ze.prototype.raiseChanged=Ze.prototype.g,Ze.prototype.raiseChangedEvent=Ze.prototype.cb,Ze.prototype.removeChangedListener=Ze.prototype.ik,Ze.prototype.addChangedListener=Ze.prototype.Pe,Ze.prototype.removeModelChangedListener=Ze.prototype.mA,Ze.prototype.addModelChangedListener=Ze.prototype.Yw,Ze.prototype.findLayer=Ze.prototype.Qj,Ze.prototype.removeLayer=Ze.prototype.kA,Ze.prototype.addLayerAfter=Ze.prototype.Cy,Ze.prototype.addLayerBefore=Ze.prototype.Ww,Ze.prototype.addLayer=Ze.prototype.Al,Ze.prototype.moveParts=Ze.prototype.moveParts,Ze.prototype.copyParts=Ze.prototype.Kj,Ze.prototype.removeParts=Ze.prototype.Is,Ze.prototype.remove=Ze.prototype.remove,Ze.prototype.add=Ze.prototype.add,Ze.prototype.clearDelayedGeometries=Ze.prototype.bx,Ze.prototype.setProperties=Ze.prototype.nm,Ze.prototype.attach=Ze.prototype.Du,Ze.prototype.set=Ze.prototype.set,Ze.prototype.resetInputOptions=Ze.prototype.Sx,Ze.prototype.setInputOption=Ze.prototype.sA,Ze.prototype.getInputOption=Ze.prototype.Ql,Ze.prototype.resetRenderingHints=Ze.prototype.Tx,Ze.prototype.setRenderingHint=Ze.prototype.Xx,Ze.prototype.getRenderingHint=Ze.prototype.Gf,Ze.prototype.maybeUpdate=Ze.prototype.bd,Ze.prototype.requestUpdate=Ze.prototype.$b,Ze.prototype.delayInitialization=Ze.prototype.Xy,Ze.prototype.isUpdateRequested=Ze.prototype.Pz,Ze.prototype.invalidateDocumentBounds=Ze.prototype.Ya,Ze.prototype.findObjectsNear=Ze.prototype.og,Ze.prototype.findPartsNear=Ze.prototype.mz,Ze.prototype.findObjectsIn=Ze.prototype.Cf,Ze.prototype.findPartsIn=Ze.prototype.ux,Ze.prototype.findObjectsAt=Ze.prototype.ji,Ze.prototype.findPartsAt=Ze.prototype.lz,Ze.prototype.findObjectAt=Ze.prototype.ic,Ze.prototype.findPartAt=Ze.prototype.Ol,Ze.prototype.focusObject=Ze.prototype.zz,Ze.prototype.alignDocument=Ze.prototype.Jy,Ze.prototype.zoomToRect=Ze.prototype.BA,Ze.prototype.zoomToFit=Ze.prototype.zoomToFit,Ze.prototype.diagramScroll=Ze.prototype.kx,Ze.prototype.focus=Ze.prototype.focus;var hf=new Yn,rm=null,dr=ie.document!==void 0,Ld=null,zh="",ys=new nn(Ze,"None",0),Ca=new nn(Ze,"Uniform",1),Hh=new nn(Ze,"UniformToFill",2),cc=new nn(Ze,"CycleAll",10),Tg=new nn(Ze,"CycleNotDirected",11),Fg=new nn(Ze,"CycleNotDirectedFast",12),Og=new nn(Ze,"CycleNotUndirected",13),Dg=new nn(Ze,"CycleDestinationTree",14),Bg=new nn(Ze,"CycleSourceTree",15),Ju=new nn(Ze,"DocumentScroll",1),fc=new nn(Ze,"InfiniteScroll",2),Qu=new nn(Ze,"TreeParentCollapsed",21),Br=new nn(Ze,"AllParentsCollapsed",22),df=new nn(Ze,"AnyParentsCollapsed",23),Ag=new qe,Md="2.3.10",Ed="image",gc=null,sm=!1;function cs(){if(dr){var a=ie.document.createElement("canvas"),y=a.getContext("2d"),x=Xe("7ca11abfd022028846");y[x]=Xe("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Qe.Dx+"4ae6247590da4bb21c324ba3a84e385776",eo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Te.za],E=1;5>E;E++)y[Xe("7ca11abfd7330390")](Xe(b[E-1]),10,15*E);for(y[x]=Xe("39f046ebb36e4b"),x=1;5>x;x++)y[Xe("7ca11abfd7330390")](Xe(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(eo.prototype.Cd=eo.prototype.Eu),gc=a}}Ze.className="Diagram",Ze.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ie.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ze?y.H:null},Ze.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},Ze.useDOM=function(a){dr=a?ie.document!==void 0:!1},Ze.isUsingDOM=function(){return dr},Ze.None=ys,Ze.Uniform=Ca,Ze.UniformToFill=Hh,Ze.CycleAll=cc,Ze.CycleNotDirected=Tg,Ze.CycleNotDirectedFast=Fg,Ze.CycleNotUndirected=Og,Ze.CycleDestinationTree=Dg,Ze.CycleSourceTree=Bg,Ze.DocumentScroll=Ju,Ze.InfiniteScroll=fc,Ze.TreeParentCollapsed=Qu,Ze.AllParentsCollapsed=Br,Ze.AnyParentsCollapsed=df;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=ie[Xe("76a715b2f73f148a")][Xe("72ba13b5")]||"";if(a.Rc=!0,dr){var b=Ze[Xe("76a115b6ed251eaf4692")];if(b)for(var E=Ag.iterator;E.next()&&(b=E.value,b=Xe(b).split(Xe("39e9")),!(6>b.length));){var z=Xe(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=Xe(Qe[Xe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=ie[Xe("74a900bae4370f8b51")][Xe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Xe("73a612b6fb191d")](Xe("3aad1ab6e022098b4dc4")),z=Xe(b[2]),-1tt&&z!==Xe("7da71ca0ad381e90")&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Xe("73a612b6fb191d")](Xe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=ie.document.createElement("div");for(var rt=b[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),b="",b+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Xe("79a417a0f0181a8946")]=b,ie.document[Xe("78a712aa")]){ie.document[Xe("78a712aa")][Xe("7bb806b6ed32388c4a875b")](tt),rt=ie.getComputedStyle(tt).getPropertyValue(Xe("78a704b7e62456904c9b12701b6532a8"));var lt=ie.getComputedStyle(tt).getPropertyValue(Xe("75b817b0ea2202"));if(ie.document[Xe("78a712aa")][Xe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=ie[Xe("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Xe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;zb.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Rt(b)},x.autoScale=Ca,x.vb=!1,y&&Object.assign(x,y),x}Be(pt,Ze),pt.prototype.computePixelRatio=function(){return 1},pt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(wd(this),this.ql===null){var x=new Ja(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),kt(this)}finally{this.ta=a,this.ib=y}}}Ze.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&le("No div specified"),this.ta===null&&le("No canvas specified"),!(this.ta instanceof Il)&&(Rv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wd(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?kt(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;ba&&(a=0),this.ia!==a&&(this.ia=a)}}}),pt.className="Overview";function Qt(){rr.call(this),this.j=null}Be(Qt,rr),Qt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Xt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Xt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Xt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Xt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Xt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Xt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;_l(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=no):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Uc(y)},Xt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Xt.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(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Mt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Mt.qs=function(a,y){return y===void 0&&(y=new zt),y.assign(a),this.oe.Cd(y),y},Mt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Mt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,gt=tt*(z.m21*z.dy-z.m22*z.dx),St=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Te.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*ot+y*lt+gt,a=a*rt+y*ut+St,y=x*ot+b*lt+gt,x=x*rt+b*ut+St,E.h(0,0),b=this.naturalBounds,x=Te.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},Me.prototype.measure=function(a,y,x,b){if(La(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var ot=this instanceof Dn;switch(_s(this,!0)){case Mn:tt=E=0,ot&&(y=a=1/0);break;case Fn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case gi:isFinite(a)&&a>x&&(E=a),tt=0,ot&&(y=1/0);break;case bi:isFinite(y)&&y>b&&(tt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;E>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||le("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Yl(this,!1),sn.free(z)},Mt=Me.prototype,Mt.eh=function(){};function Ss(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=_s(a,!0),x===b&&z===E&&(y=Mn),y){case Mn:(x>b||z>E)&&(Ar(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Fn:Ar(a,!0),a.measure(b,E,0,0);break;case gi:Ar(a,!0),a.measure(b,z,0,0);break;case bi:Ar(a,!0),a.measure(x,E,0,0)}}}Mt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Hv(x,!0),this.N(),jo(a,y)||(x.oh(),this.Pn(x)))},Mt.Pn=function(a){this.portId!==null&&(Hv(a,!0),a instanceof Xn&&_1(a,this))},Mt.gc=function(a,y){if(!Aa(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 Dn&&eh(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(cr(this,a,lt,!0,!0,rt,ot),lt instanceof To&<.type===ja?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(lt)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(cr(this,a,ut,!0,!1,rt,ot),ut instanceof To&&ut.type===ja?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&es(this),lt=this.part,rt=!1;var gt=0;lt&&y.Gf("drawShadows")&&(rt=lt.isShadowed)&&(ut=lt.shadowOffset,gt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var St;if(!(St=y.$i||!ut)){var Ct=this.naturalBounds;St=this.wh;var bt=St.m11,Bt=St.m21,Yt=St.dx,Gt=St.m12,se=St.m22,ae=St.dy,he,be=he=0;St=he*bt+be*Bt+Yt;var $e=he*Gt+be*se+ae;he=Ct.width+gt,be=0;var Un=he*bt+be*Bt+Yt;he=he*Gt+be*se+ae,be=Math.min(St,Un);var oi=Math.min($e,he),ti=Math.max(St+0,Un)-be,jn=Math.max($e+0,he)-oi;St=be,$e=oi,he=Ct.width+gt,be=Ct.height+gt,Un=he*bt+be*Bt+Yt,he=he*Gt+be*se+ae,be=Math.min(St,Un),oi=Math.min($e,he),ti=Math.max(St+ti,Un)-be,jn=Math.max($e+jn,he)-oi,St=be,$e=oi,he=0,be=Ct.height+gt,Un=he*bt+be*Bt+Yt,he=he*Gt+be*se+ae,be=Math.min(St,Un),oi=Math.min($e,he),ti=Math.max(St+ti,Un)-be,jn=Math.max($e+jn,he)-oi,St=be,$e=oi,gt=y.viewportBounds,Ct=gt.x,bt=gt.y,St=!(St>gt.width+Ct||Ct>ti+St||$e>gt.height+bt||bt>jn+$e)}if(St){if(St=(this.l&256)!==0,a.clipInsteadOfFill&&(St=!1),this instanceof Go&&(a.font=this.font),St){if($e=ot.se()?ot.naturalBounds:ot.actualBounds,ti=Math.max(tt.x,$e.x),jn=Math.max(tt.y,$e.y),gt=Math.min(tt.right,$e.right)-ti,Ct=Math.min(tt.bottom,$e.bottom)-jn,bt=this.tb,bt!==null&&(ti=bt.x,jn=bt.y,gt=bt.width,Ct=bt.height),ti>tt.width+tt.x||tt.x>$e.width+$e.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(ti,jn,gt,Ct),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}rt&&($e=lt.shadowOffset,a.Ev($e.x*y.scale*this.scale*y.Mb,$e.y*y.scale*this.scale*y.Mb,lt.shadowBlur),Pu(a),a.shadowColor=lt.shadowColor)}rt&&this.shadowVisible===!0?Pu(a):rt&&this.shadowVisible===!1&&Jl(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ba(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&Jr(this,ot)&&this.shadowVisible===null&&Jl(a),this.Ma!==null&&(a.yc(),ta(this,a,lt,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||Jr(this,ot))?(ll(this,!0),this.shadowVisible===null&&Jl(a)):ll(this,!1),this.hh(a,y),rt&&this.l&512&&Pu(a),ut&&rt&&Jl(a),St&&(a.restore(),a.Vc(this instanceof Dn)),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 Jr(a,y){return y===null?!1:(eh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Dn.Auto||y.type===Dn.Spot)&&y.Pb()!==a)}Mt.Dv=function(){};function ba(a,y,x,b){cr(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof To&&a.areaBackground.type===ja?(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 ta(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,ot=x.width+E,rt=x.height+E;cr(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof To&&a.Ma.type===ja?(y.beginPath(),y.rect(z-E/2,tt-E/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,ot,rt)}function fs(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;ttE)&&le("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)&&le("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Ge;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Pd(a,E)}else Pd(a,y);else le('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function qu(a,y){cf.add(a,y)}function lm(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}_t.Object.defineProperties(Me.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new vc),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 vc),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 vc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Ji(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&&(Ji(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Bs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Bs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&le("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,Yy(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 Xi&&this.qc(),this.g("desiredSize",b,a),os(this)&&(a=this.part,a!==null&&(Vo(this,a,"width"),Vo(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 Wn(a,this.jd.height).freeze(),this.v(),this instanceof Xi&&this.qc(),this.g("desiredSize",y,a),os(this)&&(a=this.part,a!==null&&Vo(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 Wn(this.jd.width,a).freeze(),this.v(),this instanceof Xi&&this.qc(),this.g("desiredSize",y,a),os(this)&&(a=this.part,a!==null&&Vo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:zi},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(),Ji(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ar},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(),Ji(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 mi(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&&es(this),this.Ab}},oe:{get:function(){return this.l&4096&&es(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Ji(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Mn},set:function(a){this.reshapingBehavior!==a&&(Ji(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()&&le("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ts(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&&Gn(a,">= 0",Me,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Gn(a,">= 1",Me,"columnSpan"),Ji(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&&Gn(a,">= 0",Me,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Gn(a,">= 1",Me,"rowSpan"),Ji(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&&(Ji(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 Xn||le("Cannot set portID on a Link: "+a),y!==null&&x!==null&&$v(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:hr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Nd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Gn(a,">= 0",Me,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Nd(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),Nd(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&&Gn(a,">= 0",Me,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:hr},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Nd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Gn(a,">= 0",Me,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Nd(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),Nd(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&&Gn(a,">= 0",Me,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(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&&(Ji(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Me.prototype.trigger=Me.prototype.Jv,Me.prototype.findBindingPanel=Me.prototype.ih,Me.prototype.findTemplateBinder=Me.prototype.pz,Me.prototype.setProperties=Me.prototype.nm,Me.prototype.apply=Me.prototype.apply,Me.prototype.attach=Me.prototype.Du,Me.prototype.set=Me.prototype.set,Me.prototype.isEnabledObject=Me.prototype.If,Me.prototype.isVisibleObject=Me.prototype.Ed,Me.prototype.isContainedBy=Me.prototype.rg,Me.prototype.getNearestIntersectionPoint=Me.prototype.rs,Me.prototype.getLocalPoint=Me.prototype.qs,Me.prototype.getDocumentScale=Me.prototype.Df,Me.prototype.getDocumentAngle=Me.prototype.li,Me.prototype.getDocumentBounds=Me.prototype.mi,Me.prototype.getDocumentPoint=Me.prototype.ga,Me.prototype.intersectsRect=Me.prototype.Yc,Me.prototype.containedInRect=Me.prototype.fh,Me.prototype.containsRect=Me.prototype.Re,Me.prototype.containsPoint=Me.prototype.ca,Me.prototype.raiseChanged=Me.prototype.g,Me.prototype.raiseChangedEvent=Me.prototype.cb,Me.prototype.addCopyProperty=Me.prototype.Vw;var cf=null;Me.className="GraphObject",cf=new Yn,qu("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=Ra(Dn,Dn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Dn){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"},Ra(Xi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ri(0,0,2.76142374915397,2.761423749153969),spot2:new ri(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 Dn&&(x=b.fb("ButtonBorder"),x instanceof Xi)){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 Dn&&(x=b.fb("ButtonBorder"),x instanceof Xi&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Xi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Xi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Xi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Xi))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),qu("TreeExpanderButton",function(){var a=Ra("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ra(Xi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Uo},new Er("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Er("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof So&&(x=x.adornedPart),x instanceof Xn){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}),qu("SubGraphExpanderButton",function(){var a=Ra("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ra(Xi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Uo},new Er("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 So&&(x=x.adornedPart),x instanceof Ki){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}),qu("ToolTip",function(){return Ra(So,Dn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new zt(0,3),shadowBlur:5},Ra(Xi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ri(0,0,4,6),spot2:new ri(1,1,-4,-4)}))}),qu("ContextMenu",function(){return Ra(So,Dn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new zt(0,3),shadowBlur:5},new Er("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),qu("ContextMenuButton",function(){var a=Ra("Button");a.stretch=gi;var y=a.fb("ButtonBorder");return y instanceof Xi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ri(0,0,2,3),y.spot2=new ri(1,1,-2,-2)),a}),qu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Ra("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},Ra(Xi,{name:"ButtonIcon",strokeWidth:2},new Er("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Xi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),qu("CheckBoxButton",function(a){var y=lm(a);return a=Ra("Button",{desiredSize:new Wn(14,14)},Ra(Xi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Fn,geometryStretch:hi,visible:!1},y!==""?new Er("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Dn){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}),qu("CheckBox",function(a){a=lm(a),a=Ra("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new mi(0,1,0,0)});var y=Ra(Dn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new mi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Me.None=Mn=new nn(Me,"None",0),Me.Default=_i=new nn(Me,"Default",0),Me.Vertical=bi=new nn(Me,"Vertical",4),Me.Horizontal=gi=new nn(Me,"Horizontal",5),Me.Fill=Fn=new nn(Me,"Fill",3),Me.Uniform=hi=new nn(Me,"Uniform",1),Me.UniformToFill=ho=new nn(Me,"UniformToFill",2),Me.FlipVertical=qi=new nn(Me,"FlipVertical",1),Me.FlipHorizontal=mo=new nn(Me,"FlipHorizontal",2),Me.FlipBoth=Io=new nn(Me,"FlipBoth",3),Me.make=Ra,Me.getBuilders=function(){var a=new Yn,y;for(y in cf)if(y!==y.toLowerCase()){var x=cf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Me.defineBuilder=qu,Me.build=function(a,y,x){for(var b=[],E=2;Ea&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Td.className="STransform";function yc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}yc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},yc.className="SGradient";function Il(a,y,x){this.ownerDocument=a=y===void 0?ie.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 ca(this,x)}Il.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},Il.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Re(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},Il.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Il.prototype.focus=function(){this.Oa.focus()},Il.prototype.mx=function(){this.ownerDocument=null},_t.Object.defineProperties(Il.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}}}),Il.className="SVGSurface";function ca(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 Td,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Co++,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 Jy(a,y,x,b,E,z,tt){a.Nj===void 0?Rg(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Mt=ca.prototype,Mt.arc=function(a,y,x,b,E,z,tt,ot){var rt=2*Math.PI,lt=rt-1e-6,ut=x*Math.cos(b),gt=x*Math.sin(b),St=a+ut,Ct=y+gt,bt=z?0:1;b=z?b-E:E-b,(1e-6b&&(b=b%rt+rt),b>lt?(this.path.push(["A",x,x,0,1,bt,a-ut,y-gt]),this.path.push(["A",x,x,0,1,bt,St,Ct])):1e-6=Math.PI),bt,a+x*Math.cos(E),y+x*Math.sin(E)])},Mt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Mt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Mt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Mt.clearRect=function(){},Mt.clip=function(){this.Yl.clipPath=!0},Mt.closePath=function(){this.path.push(["z"])},Mt.createLinearGradient=function(a,y,x,b){var E=new yc("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Mt.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"+Co++,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(Ed,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Mt.createRadialGradient=function(a,y,x,b,E,z){var tt=new yc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Qy(a,y,x,b,E,z,tt,ot,rt){b=ot/b,E=rt/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Mt.drawImage=function(a,y,x,b,E,z,tt,ot,rt){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,ot=b=ut,rt=E=a),b=b||0,E=E||0,ot=ot||0,rt=rt||0,Qy(this,y,x,b,E,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||b,height:a||E,href:lt},Te.$(b,ot)&&Te.$(E,rt)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ff(this,Ed,z,this.rb),this.addElement(Ed,z)},Mt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},Mt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Mt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ff(this,"fill",a,this.rb),this.addElement("rect",a)},Mt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ff(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},Mt.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},ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Mt.lineTo=function(a,y){this.path.push(["L",a,y])},Mt.moveTo=function(a,y){this.path.push(["M",a,y])},Mt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Mt.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"])},Mt.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},Mt.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;yut.offset?1:-1}),E=0;Ex?(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)},Mt.jk=function(){this.Hm||this.stroke()},Mt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Mt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Mt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Cx),a.lineDashOffset=0)},Mt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Mt.Hs=function(){},_t.Object.defineProperties(Fd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var Cx=Object.freeze([]);Fd.className="CanvasSurfaceContext";function jg(){this.F=this.o=this.u=this.j=0}jg.className="ColorNumbers";function To(a,y){vf||(cv(),vf=!0),Ci(this),this._isFrozen=!1,a===void 0?(this.na=th,this.xk="black"):typeof a=="string"?(this.na=th,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Cu?(this.Qd=Js,this.Lk=bs):this.Lk=a===ja?this.Qd=po:this.Qd=hr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}To.prototype.copy=function(){var a=new To;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},Mt=To.prototype,Mt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Mt.ka=function(){return Object.isFrozen(this)&&le("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Mt.qb=function(a){a.classType===To&&(this.type=a)},Mt.toString=function(){var a="Brush(";if(this.type===th)a+=this.color;else if(a=this.type===Cu?a+"Linear ":this.type===ja?a+"Radial ":this.type===yf?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+")"},Mt.addColorStop=function(a,y){return this._isFrozen&&mn(this),(typeof a!="number"||!isFinite(a)||1a)&&Gn(a,"0 <= loc <= 1",To,"addColorStop:loc"),this.we===null&&(this.we=new Yn),this.we.add(a,y),this.na===th&&(this.type=Cu),this.xe=null,this},Mt.Vz=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===th)wu(this.color),this.color=pf(a,y);else if((this.type===Cu||this.type===ja)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wu(x.value),this.addColorStop(x.key,pf(a,y));return this};function n1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,wu(a),pf(y,x)}Mt.Wy=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===th)wu(this.color),this.color=pf(-a,y);else if((this.type===Cu||this.type===ja)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wu(x.value),this.addColorStop(x.key,pf(-a,y));return this};function i1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,wu(a),pf(-y,x)}function av(a,y,x){wu(a),a=$o.j;var b=$o.u,E=$o.o,z=$o.F;return wu(y),x===void 0&&(x=.5),"rgba("+Math.round(($o.j-a)*x+a)+", "+Math.round(($o.u-b)*x+b)+", "+Math.round(($o.o-E)*x+E)+", "+Math.round(($o.F-z)*x+z)+")"}Mt.Gx=function(){if(this.type===th)return gf(this.color);if((this.type===Cu||this.type===ja)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ja)return gf(a.first().value);if(a.get(.5)!==null)return gf(a.get(.5));if(a.count===2)return a=a.Fa(),gf(av(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);E>z&&ot=E&&otb&&(z=x,x=b,b=z,z=E),E=b-x,gf(av(a.get(x),a.get(b),1-z/E))}return!1};function gf(a){return a?a instanceof To?a.Gx():(wu(a),128>(299*$o.j+587*$o.u+114*$o.o)/1e3):!1}function pf(a,y){switch(y){case Sf:y=100*uv($o.j);var x=100*uv($o.u),b=100*uv($o.o);return Os.j=.4124564*y+.3575761*x+.1804375*b,Os.u=.2126729*y+.7151522*x+.072175*b,Os.o=.0193339*y+.119192*x+.9503041*b,Os.F=$o.F,y=dv(Os.j/mf[0]),x=dv(Os.u/mf[1]),b=dv(Os.o/mf[2]),Ql.j=116*x-16,Ql.u=500*(y-x),Ql.o=200*(x-b),Ql.F=Os.F,Ql.j=Math.min(100,Math.max(0,Ql.j+100*a)),a=(Ql.j+16)/116,y=a-Ql.o/200,Os.j=mf[0]*o1(Ql.u/500+a),Os.u=mf[1]*(Ql.j>dm*fv?Math.pow(a,3):Ql.j/dm),Os.o=mf[2]*o1(y),Os.F=Ql.F,a=-.969266*Os.j+1.8760108*Os.u+.041556*Os.o,y=.0556434*Os.j+-.2040259*Os.u+1.0572252*Os.o,$o.j=255*hv((3.2404542*Os.j+-1.5371385*Os.u+-.4985314*Os.o)/100),$o.u=255*hv(a/100),$o.o=255*hv(y/100),$o.F=Os.F,$o.j=Math.round($o.j),255<$o.j?$o.j=255:0>$o.j&&($o.j=0),$o.u=Math.round($o.u),255<$o.u?$o.u=255:0>$o.u&&($o.u=0),$o.o=Math.round($o.o),255<$o.o?$o.o=255:0>$o.o&&($o.o=0),"rgba("+$o.j+", "+$o.u+", "+$o.o+", "+$o.F+")";case r1:return lv(),Ma.o=Math.min(100,Math.max(0,Ma.o+100*a)),"hsla("+Ma.j+", "+Ma.u+"%, "+Ma.o+"%, "+Ma.F+")";default:le("Unknown color space: "+y)}}function wu(a){vf||(cv(),vf=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,$o.j=a[0],$o.u=a[1],$o.o=a[2],$o.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,$o.j=0,$o.u=0,$o.o=0,$o.F=1)}}function lv(){var a=$o.j/255,y=$o.u/255,x=$o.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}Ma.j=Math.round(tt),Ma.u=Math.round(100*a),Ma.o=Math.round(100*E),Ma.F=$o.F}function uv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function hv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function dv(a){return a>fv?Math.pow(a,1/3):(dm*a+16)/116}function o1(a){var y=a*a*a;return y>fv?y:(116*a-16)/dm}function Sc(a,y){typeof a!="string"&&(a instanceof To||le("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){gv=dr?new Ja(null,void 0,{willReadFrequently:!0}).context:null}_t.Object.defineProperties(To.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this.start.Mc()&&(a===Cu?this.start=Js:a===ja&&(this.start=po)),this.end.Mc()&&(a===Cu?this.end=bs:a===ja&&(this.end=po)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mn(this,a),0>a&&Gn(a,">= zero",To,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mn(this,a),0>a&&Gn(a,">= zero",To,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mn(this,a),this.cr=a,this.xe=null}}}),To.prototype.isDark=To.prototype.Gx,To.prototype.darkenBy=To.prototype.Wy,To.prototype.lightenBy=To.prototype.Vz,To.prototype.addColorStop=To.prototype.addColorStop;var fv=216/24389,dm=24389/27,mf=[95.047,100,108.883],gv=null,$o=new jg,Ma=new jg,Os=new jg,Ql=new jg,vf=!1;To.className="Brush";var th;To.Solid=th=new nn(To,"Solid",0);var Cu;To.Linear=Cu=new nn(To,"Linear",1);var ja;To.Radial=ja=new nn(To,"Radial",2);var yf;To.Pattern=yf=new nn(To,"Pattern",4);var Sf;To.Lab=Sf=new nn(To,"Lab",5);var r1;To.HSL=r1=new nn(To,"HSL",6),To.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},To.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vf||(cv(),vf=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},To.lighten=function(a){return n1(a)},To.lightenBy=n1,To.darken=function(a){return i1(a)},To.darkenBy=i1,To.mix=av,To.isDark=gf;function Hr(){this.xa="Base"}Hr.prototype.measure=function(){},Hr.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Hr.prototype.arrange=function(){},Hr.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Hr.prototype.iA=function(a){a.Uj()},Hr.prototype.gc=function(){},_t.Object.defineProperties(Hr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Dn}}}),Hr.prototype.remeasureObject=Hr.prototype.iA,Hr.prototype.arrangeElement=Hr.prototype.Ly,Hr.prototype.measureElement=Hr.prototype.Yz,Hr.className="PanelLayout";function cm(){this.xa="Base"}Be(cm,Hr),cm.prototype.measure=function(a,y,x,b,E,z,tt){var ot=b.length;a=bu(a);for(var rt=0;rtoi&&(_r=Math.max(oi-nd,0));var H0=wn.oa===0;wn.oc=wn.oc+_r,wn.actual=wn.oa+_r,oi=Math.max(oi-(_r+(H0?nd:0)),0)}if(na.columnSpan===1&&(ws===Mn||ws===bi)){wn=a.Eb(Ps);var Mp=wn.Wc();_r=Math.max(Hd-wn.actual,0),_r+Mp>Un&&(_r=Math.max(Un-Mp,0));var Wy=wn.oa===0;wn.oc=wn.oc+_r,wn.actual=wn.oa+_r,Un=Math.max(Un-(_r+(Wy?Mp:0)),0)}ed&&na.Uj()}}}}}bn(se);var au=0,Eu=0;z=a.columnCount;for(var Oc=0;Oc=a.rowCount);ph++)wn=a.Fb(mr.row+ph),_r=0,_r=ws===Fn||ws===bi?Math.max(wn.minimum,El[mr.row+ph]===0?wn.maximum:Math.min(El[mr.row+ph],wn.maximum)):Math.max(wn.minimum,isNaN(wn.Hc)?wn.maximum:Math.min(wn.Hc,wn.maximum)),Tu.height+=_r,ya+=wn.minimum;for(var il=1;il=a.columnCount);il++)wn=a.Eb(mr.column+il),_r=0,_r=ws===Fn||ws===gi?Math.max(wn.minimum,Ka[mr.column+il]===0?wn.maximum:Math.min(Ka[mr.column+il],wn.maximum)):Math.max(wn.minimum,isNaN(wn.Hc)?wn.maximum:Math.min(wn.Hc,wn.maximum)),Tu.width+=_r,$0+=wn.minimum;is.width+=Tu.width,is.height+=Tu.height;var Xf=mr.margin,ad=Xf.right+Xf.left,kp=Xf.top+Xf.bottom;mr.measure(is.width,is.height,$0,ya);for(var Yf=mr.measuredBounds,Wl=Math.max(Yf.width+ad,0),$d=Math.max(Yf.height+kp,0),ld=0,Jf=0;Jf=a.rowCount);Jf++)wn=a.Fb(mr.row+Jf),ld+=wn.total||0;if(ld<$d){var mh=$d-ld,uu=$d-ld;if(mr.spanAllocation!==null)for(var vh=mr.spanAllocation,Fu=0;Fu=mh)&&!(mr.row+Fu>=a.rowCount);Fu++){wn=a.Fb(mr.row+Fu);var yh=wn.oa||0,Zd=vh(mr,wn,uu);wn.actual=Math.min(wn.maximum,yh+Zd),wn.oa!==yh&&(mh-=wn.oa-yh)}for(;0kl&&(wn.actual=Math.min(wn.maximum,kl+mh),wn.oa!==kl&&(mh-=wn.oa-kl)),wn.index===0)break;wn=a.Fb(wn.index-1)}}for(var Ac=0,Sh=0;Sh=a.columnCount);Sh++)wn=a.Eb(mr.column+Sh),Ac+=wn.total||0;if(Ac=Ic)&&!(mr.column+_d>=a.columnCount);_d++){wn=a.Eb(mr.column+_d);var Np=wn.oa||0,Zy=Ou(mr,wn,$y);wn.actual=Math.min(wn.maximum,Np+Zy),wn.oa!==Np&&(Ic-=wn.oa-Np)}for(;0Z0&&(wn.actual=Math.min(wn.maximum,Z0+Ic),wn.oa!==Z0&&(Ic-=wn.oa-Z0)),wn.index===0)break;wn=a.Eb(wn.index-1)}}}}bn(ae),Wn.free(Tu),Wn.free(is),El!==void 0&&bn(El),Ka!==void 0&&bn(Ka);var Rc=0,jc=0,_0=a.desiredSize,vx=a.maxSize;ws=_s(a,!0);var Tp=Eu=au=0,Fp=0;z=a.columnCount;for(var V0=0;V0=a.rowCount);wn++){var Gi=a.Fb(se+wn);Gi.oa!==0&&(Gt.height+=Gi.total)}for(wn=1;wn=a.columnCount);wn++)Gi=a.Eb(he+wn),Gi.oa!==0&&(Gt.width+=Gi.total);var Oi=be.oa+Gt.width,wo=ae.oa+Gt.height;wn=ot,Gi=rt;var zo=Oi,Zr=wo,Xr=ot,xs=rt,_r=Oi,dh=wo;ot+Oi>x.width&&(_r=Math.max(x.width-ot,0)),rt+wo>x.height&&(dh=Math.max(x.height-rt,0));var kr=ti.alignment;if(kr.Xb()){kr=a.defaultAlignment,kr.sb()||(kr=po);var bl=kr.x,Ps=kr.y,ch=kr.offsetX;kr=kr.offsetY;var Na=be.alignment,el=ae.alignment;Na.sb()&&(bl=Na.x,ch=Na.offsetX),el.sb()&&(Ps=el.y,kr=el.offsetY)}else bl=kr.x,Ps=kr.y,ch=kr.offsetX,kr=kr.offsetY;(isNaN(bl)||isNaN(Ps))&&(Ps=bl=.5,kr=ch=0),Na=jn.width,el=jn.height;var pa=ti.margin,na=pa.left+pa.right,ed=pa.top+pa.bottom,Ll=Sl(ti,ae,be,!1);!isNaN(ti.desiredSize.width)||Ll!==Fn&&Ll!==gi||(Na=Math.max(Oi-na,0)),!isNaN(ti.desiredSize.height)||Ll!==Fn&&Ll!==bi||(el=Math.max(wo-ed,0)),Oi=ti.maxSize,wo=ti.minSize,Na=Math.min(Oi.width,Na),el=Math.min(Oi.height,el),Na=Math.max(wo.width,Na),el=Math.max(wo.height,el),Oi=el+ed,wn+=zo*bl-(Na+na)*bl+ch+pa.left,Gi+=Zr*Ps-Oi*Ps+kr+pa.top,ti.visible&&(Ao(Xr,xs,_r,dh,wn,Gi,jn.width,jn.height)?ti.arrange(wn,Gi,Na,el):ti.arrange(wn,Gi,Na,el,new sn(Xr,xs,_r,dh)))}}}for(Wn.free(Gt),a=0;a=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,lt=Math.ceil(ot/E),ut=Math.ceil(rt/b),gt=a.gridOrigin,St=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var Ct=[],bt=a.O.s,Bt=bt.length,Yt=0;Ytae)){Gt=vv(Gt.figure);for(var he=0;heae&&se.push(be))}}}}for(bt=a.O.s,Bt=bt.length,Yt=0;YtE*Gt*x))){if(ae=$e.segmentIndex,(!isFinite(ae)||isNaN(ae))&&(ae=0),0>ae&&(ae=Gt-Math.min(-ae,Gt)),ae=Math.round(ae%Gt),Gt=$e.opacity,he=1,Gt!==1){if(Gt===0)continue;he=y.globalAlpha,y.globalAlpha=he*Gt}be=Ct[Yt];var Un=!1,oi=$e.strokeDashArray;if(oi!==null&&(Un=!0,y.js(oi,$e.strokeDashOffset)),$e.figure==="LineV"&&$e.stroke!==null&&0<$e.strokeWidth){for(y.lineWidth=$e.strokeWidth,cr(a,y,$e.stroke,!1,!1,z,tt),y.beginPath(),oi=$e=Math.floor((St-E)/E);oi<=$e+lt;oi++){var ti=oi*E+St;0<=ti&&ti<=ot&&Pm(oi,se,ae,be)&&(y.moveTo(ti,0),y.lineTo(ti,rt))}y.stroke(),y.Se()}else if($e.figure==="LineH"&&$e.stroke!==null&&0<$e.strokeWidth){for(y.lineWidth=$e.strokeWidth,cr(a,y,$e.stroke,!1,!1,z,tt),y.beginPath(),oi=$e=Math.floor((gt-b)/b);oi<=$e+ut;oi++)ti=oi*b+gt,0<=ti&&ti<=rt&&Pm(oi,se,ae,be)&&(y.moveTo(0,ti),y.lineTo(ot,ti));y.stroke(),y.Se()}else if($e.figure==="BarV"&&$e.fill!==null)for(cr(a,y,$e.fill,!0,!1,z,tt),$e=$e.width,isNaN($e)&&($e=E),ti=oi=Math.floor((St-E)/E);ti<=oi+lt;ti++){var jn=ti*E+St;0<=jn+$e&&jn<=ot&&Pm(ti,se,ae,be)&&y.fillRect(jn,0,$e,rt)}else if($e.figure==="BarH"&&$e.fill!==null)for(cr(a,y,$e.fill,!0,!1,z,tt),$e=$e.height,isNaN($e)&&($e=b),ti=oi=Math.floor((gt-b)/b);ti<=oi+ut;ti++)jn=ti*b+gt,0<=jn+$e&&jn<=rt&&Pm(ti,se,ae,be)&&y.fillRect(0,jn,ot,$e);Un&&y.fs(),Gt!==1&&(y.globalAlpha=he)}}y.restore(),y.Vc(!1)};function Pm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;Egt)se.measure(1/0,1/0,0,0),ae=se.measuredBounds,x.ed(ae),Ct.push(ae);else{var he=se.segmentIndex,be=se.segmentFraction,$e=se.alignmentFocus;$e.Mc()&&($e=po);var Un=se.segmentOrientation,oi=se.segmentOffset;if(isNaN(he)){var ti=rt.ua;ae=rn(),ti.Qu(be,ae);var jn=zt.allocAt(ae[0],ae[1]);if(jn.add(rt.i(0)),ti.type===Kn.j?jn.offset(-ti.startX,-ti.startY):(ti=ti.figures.first(),ti!==null&&jn.offset(-ti.startX,-ti.startY)),ti=ae[2],Un!==Bs){var wn=rt.computeAngle(se,Un,ti);se.Kb=wn}wn=jn.x-y.x;var Gi=jn.y-y.y;zt.free(jn),bn(ae)}else if(he<-gt||he>=gt)ae=zt.alloc(),rt.vg(),rt.computeMidPoint(ae),ti=rt.midAngle,Un!==Bs&&(wn=rt.computeAngle(se,Un,ti),se.Kb=wn),wn=ae.x-y.x,Gi=ae.y-y.y,zt.free(ae);else{if(wn=0,0<=he?(Gi=ut.M(he),ae=heOi+10?0<=he?ti.ab(Gi):Gi.ab(ti):Oi>jn+10?0<=he?ae.ab(wn):wn.ab(ae):0<=he?ti.ab(wn):wn.ab(ti)}else ti=0<=he?Gi.ab(ae):ae.ab(Gi);Un!==Bs&&(wn=rt.computeAngle(se,Un,ti),se.Kb=wn),wn=Gi.x+(ae.x-Gi.x)*be-y.x,Gi=Gi.y+(ae.y-Gi.y)*be-y.y}se.measure(1/0,1/0,0,0),ae=se.measuredBounds,jn=se.naturalBounds;var wo=0;se instanceof Xi&&(wo=se.strokeWidth),Oi=jn.width+wo;var zo=jn.height+wo;bt.reset(),bt.translate(-ae.x,-ae.y),bt.scale(se.scale,se.scale),bt.rotate(Un===Bs?se.angle:ti,Oi/2,zo/2),Un!==Qg&&Un!==tp||bt.rotate(90,Oi/2,zo/2),Un!==qg&&Un!==ep||bt.rotate(-90,Oi/2,zo/2),Un===Qm&&(45ti||225ti)&&bt.rotate(-ti,Oi/2,zo/2),jn=new sn(0,0,Oi,zo),Bt.xi(jn,$e),bt.Ga(Bt),$e=-Bt.x+wo/2*se.scale,se=-Bt.y+wo/2*se.scale,Yt.assign(oi),wo=isNaN(oi.x);var Zr=isNaN(oi.y);if(wo||Zr){Oi=Oi/2+3,zo=zo/2+3;var Xr=45<=ti&&135>=ti,xs=225<=ti&&315>=ti;Un===Bs&&(Xr||xs)?(Yt.x=Zr?Oi:oi.y,Yt.y=wo?zo:oi.x,Xr?0<=he||isNaN(he)&&.5>be||!wo||(Yt.y=-zo):xs&&((0<=he||isNaN(he)&&.5>be)&&wo&&(Yt.y=-zo),Zr&&(Yt.x=-Oi))):(wo&&(Yt.x=0<=he||isNaN(he)&&.5>be?Oi:-Oi),Zr&&(Yt.y=-zo),Yt.rotate(ti))}else Yt.rotate(ti);wn+=Yt.x,Gi+=Yt.y,jn.set(ae),jn.h(wn+$e,Gi+se,ae.width,ae.height),Ct.push(jn),x.ed(jn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),wr(E,x.width||0,x.height||0),eo.free(bt),zt.free(Bt),zt.free(Yt)}}}},wm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof So||a instanceof Hn){var b=a,E=null;a instanceof So&&(E=a,b=E.adornedPart);var z=a instanceof So?null:b.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)bt=zt.alloc(),Ct=gt,Yt=bt,Ct.vg(),Ct.computeMidPoint(Yt),Ct=gt.midAngle,lt!==Bs&&(gt=gt.computeAngle(tt,lt,Ct),tt.angle=gt),gt=bt.x,Yt=bt.y,zt.free(bt);else{if(Bt=0,0<=ot?(bt=y.s[ot],Yt=otse+10?0<=ot?Ct.ab(bt):bt.ab(Ct):se>Gt+10?0<=ot?Yt.ab(Bt):Bt.ab(Yt):0<=ot?Ct.ab(Bt):Bt.ab(Ct)}else Ct=0<=ot?bt.ab(Yt):Yt.ab(bt);lt!==Bs&&(gt=gt.computeAngle(tt,lt,Ct),tt.angle=gt),gt=bt.x+(Yt.x-bt.x)*rt,Yt=bt.y+(Yt.y-bt.y)*rt}if(St.ys())tt.location=new zt(gt,Yt);else{St.Mc()&&(St=po),bt=eo.alloc(),bt.reset(),bt.scale(tt.scale,tt.scale),bt.rotate(tt.angle,0,0);var ae=tt.naturalBounds;Bt=sn.allocAt(0,0,ae.width,ae.height),Gt=zt.alloc(),Gt.xi(Bt,St),bt.Ga(Gt),St=-Gt.x,se=-Gt.y;var he=ae.width,be=ae.height;ae=zt.alloc(),ae.assign(ut);var $e=isNaN(ut.x),Un=isNaN(ut.y);if($e||Un){he=he/2+3,be=be/2+3;var oi=45<=Ct&&135>=Ct,ti=225<=Ct&&315>=Ct;lt===Bs&&(oi||ti)?(ae.x=Un?he:ut.y,ae.y=$e?be:ut.x,oi?0<=ot||isNaN(ot)&&.5>rt||!$e||(ae.y=-be):ti&&((0<=ot||isNaN(ot)&&.5>rt)&&$e&&(ae.y=-be),Un&&(ae.x=-he))):($e&&(ae.x=0<=ot||isNaN(ot)&&.5>rt?he:-he),Un&&(ae.y=-be),ae.rotate(Ct))}else ae.rotate(Ct);gt+=ae.x,Yt+=ae.y,bt.pp(Bt),St+=Bt.x,se+=Bt.y,ot=zt.allocAt(gt+St,Yt+se),tt.move(ot),zt.free(ot),zt.free(ae),zt.free(Gt),sn.free(Bt),eo.free(bt)}}E!==null?E.Ul(!1):b.Ul(!1),b=A1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),zt.free(b)}};function s1(a,y,x,b){if(La(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof So&&a.type===Dn.Link&&a.adornedObject instanceof Xi&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Hn&&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 So&&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),Ar(b,!1)}}function Hg(){this.xa="Base"}Be(Hg,Hr),Hg.prototype.measure=function(a,y,x,b,E,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,lt=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var gt=ot.measuredBounds,St=new sn(-rt.left,-rt.top,Math.max(gt.width+lt,0),Math.max(gt.height+ut,0));a.graduatedBounds.push(St),E.assign(St);for(var Ct=ot.geometry,bt=ot.strokeWidth,Bt=Ct.flattenedSegments,Yt=Ct.flattenedLengths,Gt=Ct.flattenedTotalLength,se=Bt.length,ae=0,he=0,be=rn(),$e=0;$eOi&&(Oi+=360),oi.push(Oi)}ae=wn,he=Gi}be.push(oi)}if(a.graduatedIntervals===null){for(var wo=[],zo=a.O.s,Zr=zo.length,Xr=0;Xrdh)){for(var kr=0;krdh&&_r.push(Ps)}}}}}a.graduatedIntervals=wo}var ch=a.graduatedIntervals,Na=a.O.s,el=Na.length,pa=0,na=0,ed=Gt;a.graduatedMarks=[];for(var Ll,Wf=0;WfLp*ws*Gt/a.graduatedRange&&ma.graduatedSkip===null)){var Fc=Yt[0][0],zl=0,ia=0;na=Gt*ma.graduatedStart-1e-4,ed=Gt*ma.graduatedEnd+1e-4;var Hd=Lp*ws,va=a.graduatedTickBase;if(vaa.graduatedMin+Hd&&(va-=Math.floor((va-a.graduatedMin)/Hd)*Hd);for(var H0=ch[Wf],Mp=va,Wy=1e-6*a.graduatedMax,au=1;va<=a.graduatedMax+Wy;au++){t:{for(var Eu=H0.length,Oc=0;Oc-Kf){var od=!1;break t}}od=!0}if(od&&(va>a.graduatedMax&&(va=a.graduatedMax),ma.graduatedSkip===null||ma instanceof Go&&!ma.graduatedSkip(va,ma)||ma instanceof Xi&&!ma.graduatedSkip(va,ma))&&(pa=(va-a.graduatedMin)*Gt/a.graduatedRange,pa>Gt&&(pa=Gt),na<=pa&&pa<=ed)){for(var lu=be[zl][ia],fh=Yt[zl][ia];zlFc&&iaku&&.4995ku?0ku||.9995Dc){var Zf=1-Math.abs(.5-ku);lu=(Ml*Zf+Gl*(1-Zf))%360;break t}}}lu=Ml}if(ma instanceof Go){var pl="";ma.graduatedFunction!==null?(pl=ma.graduatedFunction(va,ma),pl=pl!=null?pl.toString():""):pl=(+va.toFixed(2)).toString(),pl!==""&&Ll.push({$l:$f,angle:lu,text:pl})}else Ll.push({$l:$f,angle:lu})}va=Mp+au*Hd}}}a.graduatedMarks.push(Ll)}bn(be);var is=a.graduatedMarks;if(is!==null)for(var Ep=b.length,zs=0;zsml;ml++){switch(ml){case 0:ra.h(Tu,El);break;case 1:ra.h(Tu+_f,El);break;case 2:ra.h(Tu,El+Kd);break;case 3:ra.h(Tu+_f,El+Kd)}ra.rotate(mr+Nr.angle),ra.offset(K0,Uf),Vf===0&&ml===0?Ka.h(ra.x,ra.y,0,0):Ka.Ye(ra),ra.offset(-K0,-Uf),ra.rotate(-mr-Nr.angle)}zt.free(ra),Nu.graduatedBounds!==null&&Nu.graduatedBounds.push(Ka),bo(gh,Ka.x,Ka.y,Ka.width,Ka.height)}else if(Nr instanceof Go){var nl=a,$0=E;nl.temporaryTextBlock===null&&(nl.temporaryTextBlock=new Go);var ya=nl.temporaryTextBlock;P1(ya,Nr);var ph=Nr.alignmentFocus;ph.Mc()&&(ph=Js);for(var il=Nr.segmentOrientation,Xf=Nr.segmentOffset,ad=new sn,kp=0,Yf=0,Wl=0,$d=0,ld=0,Jf=Hs.length,mh=0;mhWl||225Wl)&&kl.rotate(-Wl,yh/2,Zd/2);var Ac=sn.allocAt(0,0,yh,Zd),Sh=zt.alloc();Sh.xi(Ac,ph),kl.Ga(Sh);var Ic=-Sh.x,$y=-Sh.y,Ou=zt.alloc();Ou.assign(Xf),isNaN(Ou.x)&&(Ou.x=yh/2+3),isNaN(Ou.y)&&(Ou.y=-(Zd/2+3)),Ou.rotate(Wl),kp+=Ou.x+Ic,Yf+=Ou.y+$y;var _d=new sn(kp,Yf,vh.width,vh.height),Np=new sn(vh.x,vh.y,vh.width,vh.height),Zy=new sn(Fu.x,Fu.y,Fu.width,Fu.height);uu.Sz=$d,uu.lineCount=ya.lineCount,uu.lines=[ya.Cb,ya.Ih,ya.df,ya.Le,ya.Qc,ya.Qb,ya.ze],uu.actualBounds=_d,uu.measuredBounds=Np,uu.naturalBounds=Zy,mh===0?ad.assign(_d):ad.ed(_d),zt.free(Ou),zt.free(Sh),sn.free(Ac),eo.free(kl)}nl.graduatedBounds!==null&&nl.graduatedBounds.push(ad),bo($0,ad.x,ad.y,ad.width,ad.height)}Ar(Nr,!1)}}},Hg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,lt=0;lt=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,lt=a.graduatedMarks,ut=rt.length,gt=0;gta.graduatedTickUnit*St.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&St.graduatedSkip===null)){var Bt=St.measuredBounds,Yt=St.strokeWidth*St.scale,Gt=St.alignmentFocus;Gt.Mc()&&(Gt=Js);for(var se=0;sett.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=lt.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&>!==null){cr(a,y,gt,!1,!1,tt,z),gt=!1;var St=lt.separatorDashArray;St===null&&(St=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),St!==null&&(gt=!0,y.js(St,0)),y.beginPath(),St=lt.position+ut,x?St>tt.height&&(ut-=St-tt.height):St>tt.width&&(ut-=St-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,St=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(St,lt)):(lt+=ut.left,St=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,St)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Cm(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,ot=a.naturalBounds,rt=l1(a,!0),lt=l1(a,!1),ut=0;utSt)){var Ct=gt.Wc(),bt=gt.separatorStrokeWidth;isNaN(bt)&&(bt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Bt=gt.separatorStroke;Bt===null&&(Bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Bt===null||gt.index===(x?rt:lt))&&(bt=0),Ct-=bt,bt=gt.position+bt,Ct+=gt.actual,bt+Ct>St&&(Ct=St-bt),0>=Ct||(St=a.yb,cr(a,y,gt.background,!0,!1,ot,tt),x?y.fillRect(St.left,bt+St.top,tt.width-(St.left+St.right),Ct):y.fillRect(bt+St.left,St.top,Ct,tt.height-(St.top+St.bottom)))}}}}function l1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;bb&&E.set(bt),zt.free(bt)),zt.free(ut),z&&E.transform(tt),lt},Mt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Fn:this.v(!0),this.measure(x+ot,b+tt,0,0);break;case gi:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case bi:this.v(!0),this.measure(y+ot,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Mt.gh=function(a){var y=this.naturalBounds,x=bu(this);if(Ao(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=zt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Mi(E.set(a),z.transform),z.ca(E)))return zt.free(E),!0}return zt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Mt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;bSt.width||gt.y>St.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ut,ut=ut instanceof Dn?ut:null,St=eo.alloc(),St.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,St):$r(gt,a,b,St))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||E.add(gt)),eo.free(St))}}return z===void 0&&eo.free(tt),b}return z===void 0&&eo.free(tt),!1};function yv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Dn&&yv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Mt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Mi(zt.allocAt(a.x,a.y),this.transform),lt=ot?y:Mi(zt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(lt),gt=0Yt.width||Bt.y>Yt.height||0>Bt.x+Bt.width||0>Bt.y+Bt.height))&&(bt.se()?(Bt=bt.transform,Mi(rt.set(a),Bt),Mi(lt.set(y),Bt)):(rt.set(a),lt.set(y)),Bt=bt,bt=bt instanceof Dn?bt:null,(bt!==null?bt.og(rt,lt,x,b,E,z):Bt.tx(rt,lt,E))&&(x!==null&&(Bt=x(Bt)),Bt===null||b!==null&&!b(Bt)||z.add(Bt)))}}zt.free(rt),zt.free(lt)}return E?gt:tt}return!1};function Sv(a){var y=null;return a instanceof Xi&&(y=a.spot1,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Dr),y}function xv(a){var y=null;return a instanceof Xi&&(y=a.spot2,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ws),y}Mt.add=function(a){for(var y=[],x=0;x=E.count&&a>=E.count)return;E.mb(z),b=z}else le("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),La(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Dn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Xn&&(x.Te=!0),x.Te&&x instanceof Xn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(zr,"elements",this,y,null,b,null),x.cb(br,"elements",this,null,y,null,a)))};function Pv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Mt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;Ea&&Gn(a,">= 0",Dn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ir;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(br,"rowdefs",this,null,x,null,a)}return y[a]},Mt.oA=function(a){if(0>a&&Gn(a,">= 0",Dn,"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(zr,"rowdefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ir?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Mt.Eb=function(a){0>a&&Gn(a,">= 0",Dn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ir;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(br,"coldefs",this,null,x,null,a)}return y[a]},Mt.jA=function(a){if(0>a&&Gn(a,">= 0",Dn,"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(zr,"coldefs",this,x,null,a,null),this.v()}}};function g1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ir?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Mt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Mm(y,a),this},Mt.Hy=function(a,y){return(a=this.Fb(a))&&Mm(a,new Ir(y)),this},Mt.By=function(a,y){return(a=this.Eb(a))&&Mm(a,new Ir(y)),this},Mt.nz=function(a){if(0>a||this.type!==Dn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;Ea||this.type!==Dn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;Ea;)this.pc(this.O.length-1,!1);m1(this,this.itemArray)};function m1(a,y){var x=Gg(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;bx)){var E=Cv(a,y);if(E=bv(a,E),E!==null){if(Qa(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Pv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Yn),a.ge.add(y,E)),z=x+Gg(a),a.Gb(z,E),b&&(E.ub=y,wv(a,z,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;ya&&Gn(a,">= 0",Dn,"padding"),a=new mi(a)):(0>a.left&&Gn(a.left,">= 0",Dn,"padding:value.left"),0>a.right&&Gn(a.right,">= 0",Dn,"padding:value.right"),0>a.top&&Gn(a.top,">= 0",Dn,"padding:value.top"),0>a.bottom&&Gn(a.bottom,">= 0",Dn,"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:jr},set:function(a){typeof a=="number"&&(a=new mi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new za),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 To)&&(a instanceof To&&a.freeze(),this.T===null&&(this.T=new za),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 za),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;Ea)&&le("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new za),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)&&le("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new za),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 vi&&!(this instanceof So);Qa(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Hn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof vi&&(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 vc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Lx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&hy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&uy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||m1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Yn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof vi||a.isPanelMain)&&le("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(););Ji(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&&(Ji(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 Ki&&(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&&Lm(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))}}}),_t.Object.defineProperties(Dn,{Position:{get:function(){return ul.I("Position")}},Horizontal:{get:function(){return ul.I("Horizontal")}},Vertical:{get:function(){return ul.I("Vertical")}},Spot:{get:function(){return ul.I("Spot")}},Auto:{get:function(){return ul.I("Auto")}},Table:{get:function(){return ul.I("Table")}},Viewbox:{get:function(){return ul.I("Viewbox")}},TableRow:{get:function(){return ul.I("TableRow")}},TableColumn:{get:function(){return ul.I("TableColumn")}},Link:{get:function(){return ul.I("Link")}},Grid:{get:function(){return ul.I("Grid")}},Graduated:{get:function(){return ul.I("Graduated")}}}),Dn.prototype.rebuildItemElements=Dn.prototype.mv,Dn.prototype.findItemPanelForData=Dn.prototype.sx,Dn.prototype.updateTargetBindings=Dn.prototype.La,Dn.prototype.copyTemplate=Dn.prototype.Uy,Dn.prototype.graduatedValueForPoint=Dn.prototype.Gz,Dn.prototype.graduatedPointForValue=Dn.prototype.Fz,Dn.prototype.findColumnForLocalX=Dn.prototype.fz,Dn.prototype.findRowForLocalY=Dn.prototype.nz,Dn.prototype.addColumnDefinition=Dn.prototype.By,Dn.prototype.addRowDefinition=Dn.prototype.Hy,Dn.prototype.addRowColumnDefinition=Dn.prototype.Gy,Dn.prototype.removeColumnDefinition=Dn.prototype.jA,Dn.prototype.getColumnDefinition=Dn.prototype.Eb,Dn.prototype.removeRowDefinition=Dn.prototype.oA,Dn.prototype.getRowDefinition=Dn.prototype.Fb,Dn.prototype.removeAt=Dn.prototype.mb,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.insertAt=Dn.prototype.Gb,Dn.prototype.elt=Dn.prototype.M,Dn.prototype.add=Dn.prototype.add,Dn.prototype.findObject=Dn.prototype.fb,Dn.prototype.findInVisualTree=Dn.prototype.Nl,Dn.prototype.walkVisualTreeFrom=Dn.prototype.qm,Dn.prototype.findMainElement=Dn.prototype.Pb;var v1=!1,y1=null,ul=new Yn;Dn.className="Panel",Dn.definePanelLayout=Rl,Rl("Position",new cm),Rl("Vertical",new gm),Rl("Auto",new mm),Rl("Link",new wm);function Lu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Lu.prototype.copy=function(){var a=new Lu;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},Lu.className="GradPanelSettings";function za(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=jr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}za.prototype.copy=function(a){for(var y=new za,x=this.Pc,b=x.length,E=y.Pc,z=0;za&&Gn(a,">= 0",Ir,"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&&Gn(a,">= 0",Ir,"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))&&Gn(a,">= 0",Ir,"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&&Gn(a,">= 0",Ir,"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 mi(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&&Sc(a,"RowColumnDefinition.separatorStroke"),a instanceof To&&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;EE)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],lt,ut,gt,St,Ct,bt,Bt=0,Yt=rn(),Gt=2;Gtgt&&(gt=1),E=x=gt,lt=tt/2,ut=lt!==0,Gt=0,bt=Yt[Gt],gt=bt[0],Ct=bt[1],St=bt[2],bt=bt[3];for(var se=0;.1<=Bt;){if(se===0&&(ut?(E=x,E-=lt,Bt-=lt,ut=!1):E=x,E===0&&(E=1)),E>Bt){bn(Yt);return}E>bt?(se=E-bt,E=bt):se=0;var ae=Math.sqrt(E*E/(1+St*St));if(0>gt&&(ae=-ae),ot+=ae,rt+=St*ae,a.translate(ot,rt),a.rotate(Ct),a.translate(-(tt/2),-(z/2)),se===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Ct),a.translate(-ot,-rt),Bt-=E,bt-=E,se!==0){if(Gt++,Gt===Yt.length){bn(Yt);return}bt=Yt[Gt],gt=bt[0],Ct=bt[1],St=bt[2],bt=bt[3],E=se}}bn(Yt)}}Mt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&cr(this,a,b,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Dn.Link&&ot instanceof So&&ot.category==="Selection"&&ot.adornedObject instanceof Xi&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(cr(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),E.type===Kn.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===Kn.u){var lt=E.startX;rt=E.startY;var ut=E.endX,gt=E.endY;E=Math.min(lt,ut);var St=Math.min(rt,gt);lt=Math.abs(ut-lt),rt=Math.abs(gt-rt),a.beginPath(),a.rect(E,St,lt,rt),b!==null&&a.ng(b),x!==null&&(ot&&z&&Jl(a),a.jk(),ot&&z&&Pu(a)),a.Se()}else if(E.type===Kn.F)lt=E.startX,rt=E.startY,ut=E.endX,gt=E.endY,E=Math.abs(ut-lt)/2,St=Math.abs(gt-rt)/2,lt=Math.min(lt,ut)+E,rt=Math.min(rt,gt)+St,a.beginPath(),a.moveTo(lt,rt-St),a.bezierCurveTo(lt+Te.wg*E,rt-St,lt+E,rt-Te.wg*St,lt+E,rt),a.bezierCurveTo(lt+E,rt+Te.wg*St,lt+Te.wg*E,rt+St,lt,rt+St),a.bezierCurveTo(lt-Te.wg*E,rt+St,lt-E,rt+Te.wg*St,lt-E,rt),a.bezierCurveTo(lt-E,rt-Te.wg*St,lt-Te.wg*E,rt-St,lt,rt-St),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&Jl(a),a.jk(),ot&&z&&Pu(a)),a.Se();else if(E.type===Kn.o)for(E=E.figures,rt=E.length,St=0;StBt.sweepAngle,Ct!==null?Ct.endX:lt.startX,Ct!==null?Ct.endY:lt.startY)}else if(Ct=ua(Bt,lt),Yt=Ct.length,Yt===0)a.lineTo(Bt.centerX,Bt.centerY);else for(var Gt=0;Gt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(sn.free(z),Te.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Kn.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return sn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),sn.free(z),a}if(x.type===Kn.F){tt=x.startX,E=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(E,rt),tt=Math.abs(ot-tt)/2,E=Math.abs(rt-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return sn.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),sn.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===Kn.o)return sn.free(z),this.fill===null?wh(x,a.x,a.y,E):cu(x,a,E,1=this.strokeWidth)ut=Te.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,ot,rt,E);else{if(lt.startX===lt.endX?(b=gt,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=gt/Math.sqrt(1+y*y),b=ut*y),y=rn(),a=new zt,Te.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new zt,Te.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new zt,Te.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new zt,Te.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return bn(y),!1;for(ut=!0,rt=1/0,b=0;bMath.abs(x)){if(rt=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-rt*rt){E.x=NaN,E.y=NaN,ut=!1;break t}gt=Math.sqrt(a*a*x*x+lt*lt-rt*rt),ot=(-(a*a*x*rt)+a*lt*gt)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*rt)-a*lt*gt)/(lt*lt+a*a*x*x)+b,lt=x*(ot-b)+rt+ut,rt=x*(a-b)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-lt)*(tt-lt))ot){E.x=NaN,E.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(bt)?(Bt*=.5/bt,bt=.5):Bt!==0&&.5>Math.abs(Bt)&&(bt*=.5/Bt,Bt=.5),Gt-=bt,se-=Bt;Ct.contains(Gt,se);)Gt-=bt,se-=Bt;for(E.x=ot,E.y=rt,Bt=0;Btx?a-x:x-a)<(y>b?y-b:b-y)?(a=ya||Te.$(rt.y,a))&&(rt.yy||Te.$(rt.x,y))&&(rt.x=a&&b<=y):(a=b&&x<=a)}Mt.tx=function(a,y,x){function b(Yt,Gt){for(var se=Yt.length,ae=0;aeE)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=E||uo(y,z,0,-gt)>=E||uo(y,z,0,gt)>=E||uo(y,z,ut,0)>=E)}else if(y.type===Kn.o){if(lt=y.bounds,z=lt.x,ot=lt.y,rt=lt.x+lt.width,lt=lt.y+lt.height,a.x>rt&&a.xlt&&a.yE&&co(a.x,a.y,z,ot,rt,ot)>E&&co(a.x,a.y,rt,lt,z,lt)>E&&co(a.x,a.y,rt,lt,rt,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?wh(y,a.x,a.y,z):cu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yE)return!1;for(ot=z.segments.s,rt=ot.length,lt=0;ltE)return!1;break;case rs:var St=rn();if(Te.Qe(tt,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,St),tt=b(St,a),bn(St),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>E))return!1;break;case Pa:if(St=rn(),Te.ep(tt,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,St),tt=b(St,a),bn(St),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>E))return!1;break;case Tr:case Fa:St=gt.type===Tr?ua(gt,z):_a(gt,z,tt,ut);var Ct=St.length;if(Ct===0){if(tt=gt.type===Tr?gt.centerX:gt.endX,ut=gt.type===Tr?gt.centerY:gt.endY,a.zd(tt,ut)>E)return!1;break}gt=null;for(var bt=rn(),Bt=0;Bt= 0",Xi,"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"?Gn(a,'"butt", "round", or "square"',Xi,"strokeCap"):(Dd(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"?Gn(a,'"miter", "bevel", or "round"',Xi,"strokeJoin"):(Dd(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){Dd(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;Ea?a=0:1a?a=0:1(gt*gt+ut*ut)*St*St&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof ca&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case mo:a.translate(E,0),a.scale(-1,1);break;case qi:a.translate(0,z),a.scale(1,-1);break;case Io:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,St=(y+tt+gt)*ut,z>St&&(b=this.verticalAlignment,b=b.y*z-b.y*St+b.offsetY),ut===1&&this.ze!==null)gt=this.Cb,gt>E&&(gt=E),this.Oj(this.ze,a,0,b+y,E,tt,gt,x,ot,rt,lt);else if(this.Qc!==null&&this.Qb!==null)for(St=0;StE&&(Ct=E),b+=y,this.Oj(this.Qb[St],a,0,b,E,tt,Ct,x,ot,rt,lt),b+=tt+gt}switch(this.flip){case mo:a.scale(-1,1),a.translate(-E,0);break;case qi:a.scale(1,-1),a.translate(0,-z);break;case Io:a.scale(-1,-1),a.translate(-E,-z)}}},Mt.Oj=function(a,y,x,b,E,z,tt,ot,rt,lt,ut){var gt=0;if(ot)rt==="left"?gt=0:rt==="right"?gt=E-tt:rt==="center"&&(gt=(E-tt)/2),y.fillRect(x+gt,b+.25*z,tt,1);else{if(rt==="left"?gt=0:rt==="right"?gt=E:rt==="center"&&(gt=E/2),E=Fm!==null?Fm(this,z):.75*z,y.fillText(a,x+gt,b+E),a=z/20|0,a===0&&(a=1),rt==="right"?gt-=tt:rt==="center"&&(gt-=tt/2),lt){ot=Om!==null?Om(this,z):.8*z,rt=x+gt,lt=b+ot,E=x+gt+tt,ot=b+ot;var St=a;y.beginPath(),y.lineWidth=St,y.moveTo(rt,lt),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof ca&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+gt,z=ut,x=x+gt+tt,tt=ut,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof ca&&y.ad.classList.add("gojs-td"))}},Mt.kk=function(a,y,x){if(!Me.prototype.kk.call(this,a,y,x))return!1;if(cr(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=this.Qb.length))){for(this.l|=16777216,lt=this.Qb[rt],y=Math.max(1,a-y);hl(lt)>y&&1a.maxLines&&(a.l|=16777216))}function Nv(a,y,x,b){var E=a.formatting===Zg;E&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,$g(a)+ot);var rt=a.overflow===Dm?w1(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(tt=y,a.wrap===Tv){a.Le=1;var lt=hl(y);if(rt===0||lt<=x)a.Cb=Math.max(a.Cb,lt),Kg(a,y,a.Cb),b!==null&&b.h(lt,ot);else{for(z=Pf(a,tt),tt=tt.substr(z.length),y=Pf(a,tt),lt=hl(z+y);0x&&1x;){var gt=1;for(lt=hl(y.substr(0,gt)),ut=0;lt<=x;)gt++,ut=lt,lt=hl(y.substr(0,gt));if(gt===1){var St=lt;z=Math.max(z,lt)}else St=ut,z=Math.max(z,ut);if(gt--,1>gt&&(gt=1),Kg(a,y.substr(0,gt),St),rt++,y=y.substr(gt),a.Gc+rt>a.maxLines)break}for(ut=Pf(a,tt),lt=hl(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function Pf(a,y){if(a.wrap===L1)return y.substr(0,1);for(var x=y.length,b=0,E=Mx;b=y.length?y:y.substr(0,b)}function hl(a){return Vs===null?8*a.length:Vs.measureText(a).width}function $g(a){if(a.df!==null)return a.df;var y=a.Ae;if(Vs===null){var x=16;return a.df=x}return Dv[y]!==void 0&&5e3>E1?x=Dv[y]:(x=1.3*Vs.measureText("M").width,Dv[y]=x,E1++),a.df=x}function w1(a){if(Vs===null)return 6;if(Bm[a]!==void 0&&5e3>Bv)var y=Bm[a];else y=Vs.measureText(_g).width,Bm[a]=y,Bv++;return y}function C1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,$g(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(` `,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,ot=!1;!ot;){if(tt=x.indexOf(` `,z),tt===-1&&(tt=x.length,ot=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Tv){a.Le=0;var rt=Wn.alloc();Nv(a,z,y,rt),E+=rt.height,Wn.free(rt),a.Gc+=a.Le}else Nv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=tt+1}return a.Lq=E}_t.Object.defineProperties(Go.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"||(jl(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Mn},set:function(a){var y=this.flip;y!==a&&(jl(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:lr},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),jl(this),this.da.Yr=a,Ts(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Wn.alloc();Nv(this,this.ec,999999,a);var y=a.width;Wn.free(a),a=C1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),wr(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:Fv},set:function(a){var y=this.wrap;y!==a&&(jl(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Ov},set:function(a){var y=this.overflow;y!==a&&(jl(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&&Sc(a,"TextBlock.stroke"),a instanceof To&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return $g(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&&(jl(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&&(jl(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 tu),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:1a?a=0:1=a&&Gn(a,"> 0",Go,"maxLines"),jl(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 Fm=null,Om=null,Tv=new nn(Go,"None",0),b1=new nn(Go,"WrapFit",1),Fv=new nn(Go,"WrapDesiredSize",2),L1=new nn(Go,"WrapBreakAll",3),Ov=new nn(Go,"OverflowClip",0),Dm=new nn(Go,"OverflowEllipsis",1),Zg=new nn(Go,"FormatTrim",0),M1=new nn(Go,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Dv=new Ge,E1=0,Bm=new Ge,Bv=0,_g="...",k1="",Vs=null,Am=!1;Go.className="TextBlock";function Av(){this.nc=!1,this.Hd=null,this.Xf=Mn,this.gq=Zg,this.Jq=1/0,this.$q=Ov,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=lr,this.$r=Fv}Av.prototype.copy=function(){var a=new Av;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},Go.getEllipsis=function(){return _g},Go.setEllipsis=function(a){_g=a,Bm=new Ge,Bv=0},Go.getBaseline=function(){return Fm},Go.setBaseline=function(a){Fm=a},Go.getUnderline=function(){return Om},Go.setUnderline=function(a){Om=a},Go.isValidFont=function(a){if(Am||(Vs=dr?new Ja(null).context:null,Am=!0),Vs===null)return!0;var y=Vs.font;if(a===y||a==="10px sans-serif")return!0;Vs.font="10px sans-serif",Vs.font=a;var x=Vs.font;if(x!=="10px sans-serif")return Vs.font=y,!0;Vs.font="19px serif";var b=Vs.font;return Vs.font=a,x=Vs.font,Vs.font=y,x!==b},Go.FormatNone=M1,Go.FormatTrim=Zg,Go.None=Tv,Go.OverflowClip=Ov,Go.OverflowEllipsis=Dm,Go.WrapBreakAll=L1,Go.WrapDesiredSize=Fv,Go.WrapFit=b1;function tu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}tu.prototype.copy=function(){var a=new tu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},tu.className="GradElementSettings";function Us(a,y){Me.call(this),this.Eg=null,this.qo="",this.Xg=ko,this.Nk=Fn,this.Zg=this.Hd=null,this.Mk=po,this.Xf=Mn,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 wf;Be(Us,Me),Us.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Us.prototype.qb=function(a){a===Mn||a===hi||a===ho?this.imageStretch=a:Me.prototype.qb.call(this,a)},Us.prototype.toString=function(){return"Picture("+this.source+")#"+$i(this)};function Cf(a){a===void 0&&(a=""),a!==""?wf[a]&&(delete wf[a],Im--):(wf=new Ge,Im=0)}function N1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=b.width&&(z=z+bt.offsetX+(gt*bt.x-b.width*bt.x)),St>=b.height&&(tt=tt+bt.offsetY+(St*bt.y-b.height*bt.y)),rt=Math.min(b.width,gt),ot=Math.min(b.height,St);break;case Fn:gt=b.width,St=b.height;break;case hi:case ho:Ct===hi?(Ct=Math.min(b.height/St,b.width/gt),gt*=Ct,St*=Ct):Ct===ho&&(Ct=Math.max(b.height/St,b.width/gt),gt*=Ct,St*=Ct,gt>=b.width&&(z=(z+bt.offsetX+(gt*bt.x-b.width*bt.x)/gt)*rt),St>=b.height&&(tt=(tt+bt.offsetY+(St*bt.y-b.height*bt.y)/St)*ot),rt*=1/(gt/b.width),ot*=1/(St/b.height),gt=b.width,St=b.height)}Ct=this.Df()*y.scale;var Bt=gt*Ct*St*Ct,Yt=rt*ot/Bt,Gt=x.__goCache;Ct=null;var se=Ex;if(!E){if(x.sq&&Gt!==void 0&&4se*se)for(Gt.gi===null&&(F1(Gt,4,lt,ut,x),F1(Gt,16,lt,ut,x)),E=Gt.gi,lt=E.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Te.Mf[b];if(E!==void 0)return E;var z=a*Te.wg;return E=new Kn().add(new Wr(a,0,!0).add(new Po(Zo,y-a,0)).add(new Po(rs,y,a,y-z,0,y,z)).add(new Po(Zo,y,x-a)).add(new Po(rs,y-a,x,y,x-z,y-z,x)).add(new Po(Zo,a,x)).add(new Po(rs,0,x-a,z,x,0,x-z)).add(new Po(Zo,0,a)).add(new Po(rs,a,0,0,z,z,0).close())),1E.x&&a.y>E.y&&a.rightE.x&&y.y>E.y&&y.right=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&&(Xs(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&&(Xs(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&&(Xs(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 Hn?(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&&(Xs(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&&(Xs(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&&(Xs(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:Ro},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Xs(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&&(Xs(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&&(Xs(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:wi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Xs(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&&le("Cannot make a Group a member of itself: "+this.toString()),le("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 Ki&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?_v(a,this):this instanceof Ki&&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 Ki){for(x=new tn,$h(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Xn)for(b=b.linksConnected;b.next();)Mf(b.value)}if(this instanceof Xn){for(x=this.linksConnected;x.next();)Mf(x.value);x=this.labeledLink,x!==null&&Mf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Qc(y,-1,a))}}else le("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&&(Xs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Xs(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&&(Xs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Eo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Xs(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&&(Xs(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&&(Xs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),vi.prototype.invalidateLayout=vi.prototype.C,vi.prototype.findCommonContainingGroup=vi.prototype.px,vi.prototype.isMemberOf=vi.prototype.Td,vi.prototype.findTopLevelPart=vi.prototype.sz,vi.prototype.findSubGraphLevel=vi.prototype.oz,vi.prototype.ensureBounds=vi.prototype.Va,vi.prototype.getDocumentBounds=vi.prototype.mi,vi.prototype.findObject=vi.prototype.fb,vi.prototype.moveTo=vi.prototype.moveTo,vi.prototype.invalidateAdornments=vi.prototype.Wb,vi.prototype.clearAdornments=vi.prototype.Ej,vi.prototype.removeAdornment=vi.prototype.Jf,vi.prototype.addAdornment=vi.prototype.bh,vi.prototype.findAdornment=vi.prototype.Pj,vi.prototype.updateTargetBindings=vi.prototype.La;var K1=!1;vi.className="Part",vi.LayoutNone=0,vi.LayoutAdded=1,vi.LayoutRemoved=2,vi.LayoutShown=4,vi.LayoutHidden=8,vi.LayoutNodeSized=16,vi.LayoutGroupLayout=32,vi.LayoutNodeReplaced=64,vi.LayoutStandard=127,vi.LayoutAll=16777215;function So(a,y){a===void 0||a instanceof Hr||typeof a=="string"?vi.call(this,a):(vi.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)}Be(So,vi),So.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},So.prototype.updateRelationshipsFromData=function(){},So.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Hn&&y instanceof Xi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;ba&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new tn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Qu),y.Ue=!1}};function J1(a,y,x,b,E,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new tn;x.add(this),q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Qu),y.Ue=!1}};function q1(a,y,x,b,E,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),lt={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var gt=x?ut.Oo():ut.Po();lt.vv=a,gt.all(function(St){return function(Ct){return Ct===St.vv||!Ct.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2E&&(E=ot.right),ot.bottom>z&&(z=ot.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},_t.Object.defineProperties(Ds.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new mi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ds.className="Placeholder";function Hn(a){vi.call(this,Dn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Bs,this.Om=0,this.Qm=Bs,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new qe().freeze(),this.Tg=this.Mg=null,this.ml=new sn,this.ua=new Kn,this.u=this.o=this.Sf=this.Wf=null,this.su=new zt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Be(Hn,vi),Hn.prototype.cloneProtected=function(a){vi.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())},Mt=Hn.prototype,Mt.Af=function(a){vi.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&&fa(y),a=a.toPort,a!==null&&fa(a)},Mt.qb=function(a){a.classType===Hn?(a.value&2)===2?this.routing=a:a===Ea||a===sh||a===kf?this.curve=a:a===Yg||a===Xm||a===Ym?this.adjusting=a:a!==Qv&&a!==Bs&&le("Unknown Link enum value for a Link property: "+a):vi.prototype.qb.call(this,a)},Mt.Xc=function(){this.ba===null&&(this.ba=new Ig)},Mt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Fs(a)||Wh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Fs(a)||Wh(a)))},Mt.zv=function(){return!1},Mt.Av=function(){},Mt.Zc=function(){return!1},Hn.prototype.computeAngle=function(a,y,x){return Hn.computeAngle(y,x)},Hn.computeAngle=function(a,y){switch(a){default:case Bs:a=0;break;case Jg:a=y;break;case Qg:a=y+90;break;case qg:a=y-90;break;case qv:a=y+180;break;case Jm:a=Te.bp(y),90a&&(a-=180);break;case tp:a=Te.bp(y+90),90a&&(a-=180);break;case ep:a=Te.bp(y-90),90a&&(a-=180);break;case Qm:if(a=Te.bp(y),45a||225a)return 0;90a&&(a-=180)}return Te.bp(a)};function Mf(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&&_v(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Mt=Hn.prototype,Mt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&vi.prototype.oh.call(this)},Mt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Mt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function nS(a,y){a.wd===null&&(a.wd=new tn),a.wd.add(y),a.v()}Mt.Vo=function(a){if(vi.prototype.Vo.call(this,a),Id(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}Ug(this)}},Mt.Wo=function(a){if(vi.prototype.Wo.call(this,a),Id(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Wm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Wm(x,this,b)}Xg(this)}},Mt.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))},Hn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Hn.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?vi.prototype.move.call(this,a,!1):(a=zt.allocAt(x.x+b,x.y+E),vi.prototype.move.call(this,a,!1),zt.free(a)),rh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Hn.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},Hn.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},Hn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ho),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()===Ea))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()===Ea){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Te.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),Te.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;bx/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},Hn.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()===Ea))return this.ua.wx(.5);if(this.computeCurve()===Ea&&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),Te.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0b/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(0Math.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)},Mt=Hn.prototype,Mt.i=function(a){return this.Nb.s[a]},Mt.dd=function(a,y){this.Nb.cd(a,y)},Mt.L=function(a,y,x){this.Nb.cd(a,new zt(y,x))},Mt.Kz=function(a,y){this.Nb.Gb(a,y)},Mt.m=function(a,y,x){this.Nb.Gb(a,new zt(y,x))},Mt.ne=function(a){this.Nb.add(a)},Mt.yf=function(a,y){this.Nb.add(new zt(a,y))},Mt.pv=function(a){this.Nb.mb(a)},Mt.Fj=function(){this.Nb.clear()};function rh(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 qe,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new zt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ts(a)),b?$m(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jc(tt.animationManager,a,E),a.g("points",z,E)}}Mt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Mt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;ttlt&&(gt=-gt),Bt=(0>rt?-1:1)*gt+Ct,Yt=ut*(Bt-Ct)+bt),Ct=z.x+2*ot/3,bt=z.y+2*rt/3;var Gt=Ct,se=bt;Te.B(rt,0)?se=0rt?-1:1)*gt+Ct,se=ut*(Gt-Ct)+bt),this.Fj(),this.ne(z),this.yf(Bt,Yt),this.yf(Gt,se),this.ne(St),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,St=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,St),E=this.getLinkPoint(z,St,x,!1,!1,a,y),this.hasCurviness()?(St=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+St/2,y=b.y+x/2,z=a,ot=y,Te.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=St*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=sn.alloc(),y.mi(ot),rt=ot.ca(E),St.mi(ot),lt=ot.ca(b),(rt||lt)&&(tt=y.ga(_m(tt),new zt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=St.ga(_m(x),new zt),this.dd(1,this.getLinkPointFromPoint(z,St,x,b,!1,x))),sn.free(ot))}else{gt=this.isAvoiding,St&&(ut&>||lt)&&this.Fj();var ae=lt?this.computeCurviness():0;gt=this.getLinkPoint(a,y,tt,!0,ut,b,E),Ct=Bt=bt=0,(ut||!ot||lt)&&(Yt=this.computeEndSegmentLength(a,y,tt,!0),Ct=this.getLinkDirection(a,y,gt,tt,!0,ut,b,E),lt&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ct-=ut?90:30,0>ae&&(Ct-=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),lt&&(Yt+=Math.abs(ae)*(ut?1:2)),Ct===0?bt=Yt:Ct===90?Bt=Yt:Ct===180?bt=-Yt:Ct===270?Bt=-Yt:(bt=Yt*Math.cos(Ct*Math.PI/180),Bt=Yt*Math.sin(Ct*Math.PI/180)),tt.Mc()&<&&(Yt=y.ga(po,zt.alloc()),Gt=zt.allocAt(Yt.x+1e3*bt,Yt.y+1e3*Bt),this.getLinkPointFromPoint(a,y,Yt,Gt,!0,gt),zt.free(Yt),zt.free(Gt))),Yt=this.getLinkPoint(b,E,x,!1,ut,a,y);var he=se=Gt=0;if(ut||!rt||lt){var be=this.computeEndSegmentLength(b,E,x,!1);he=this.getLinkDirection(b,E,Yt,x,!1,ut,a,y),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(he+=ut?0:30,0>ae&&(he+=180)),0>he?he+=360:360<=he&&(he-=360),lt&&(be+=Math.abs(ae)*(ut?1:2)),he===0?Gt=be:he===90?se=be:he===180?Gt=-be:he===270?se=-be:(Gt=be*Math.cos(he*Math.PI/180),se=be*Math.sin(he*Math.PI/180)),x.Mc()&<&&(x=E.ga(po,zt.alloc()),tt=zt.allocAt(x.x+1e3*Gt,x.y+1e3*se),this.getLinkPointFromPoint(b,E,x,tt,!1,Yt),zt.free(x),zt.free(tt))}x=gt,(ut||!ot||lt)&&(x=new zt(gt.x+bt,gt.y+Bt)),tt=Yt,(ut||!rt||lt)&&(tt=new zt(Yt.x+Gt,Yt.y+se)),!St&&!ut&&ot&&3Math.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}Hn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new zt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var ot=-a.m12*E,rt=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),gt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*rt+ut,b=b.x*ot+b.y*lt+gt,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*lt+gt}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Zm(a,y){var x=y.Zn;return x===null&&(x=new bc,x.port=y,x.node=y.part,y.Zn=x),hS(x,a)}Hn.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,ot){if(ot===void 0&&(ot=new zt),x.sb()&&!Ef(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Zm(this,y);if(rt!==null){if(ot.assign(rt.Zo),E&&this.routing===oS){var lt=Zm(this,tt);if(lt!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(Tl)||x.Hf(aa))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),zt.free(rt),zt.free(lt)}}return ot}}return x=y.ga(_m(x),zt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Uv(x,tt.copy()))):(rt=this.computeSpot(!b,tt),z=zt.alloc(),tt=tt.ga(_m(rt),z),E&&(tt=Uv(x,tt)),zt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,ot),zt.free(x),ot},Hn.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,ot){t:if(b.sb())var rt=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Uv(rt,ot.copy()):x):(x=zt.alloc(),ot=ot.ga(po,x),zt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,zt.free(rt),rt=x}return b.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Ef(b)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Hn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Zm(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)},Hn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=po:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===wi?hr:y)):(a=y||this.toPort,a===null?a=po:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===wi?hr:y)),a};function Ef(a){return a===hr||a.x===.5&&a.y===.5}function _m(a){return a.x===.5&&a.y===.5?a:po}Hn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Bs&&4St.width||gt.y>St.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=eo.alloc(),gt.set(tt),ut instanceof Dn)ot=ut.Cf(a,y,x,b,E,gt);else if(this.path===ut){if(ut instanceof Xi)if(ot=a,St=b,ut.pickable===!1)ot=!1;else if(gt.multiply(ut.transform),St)t:{var Ct=ot,bt=gt;if(ut.fh(Ct,bt))ot=!0;else{if(bt===void 0&&(bt=ut.transform,Ct.Re(ut.actualBounds))){ot=!0;break t}ot=Ct.left,St=Ct.right;var Bt=Ct.top;Ct=Ct.bottom;var Yt=zt.alloc(),Gt=zt.alloc(),se=zt.alloc(),ae=eo.alloc();ae.set(bt),ae.bv(ut.transform),ae.Vj(),Gt.x=St,Gt.y=Bt,Gt.transform(ae),Yt.x=ot,Yt.y=Bt,Yt.transform(ae),bt=!1,Bd(ut,Yt,Gt,se)?bt=!0:(Yt.x=St,Yt.y=Ct,Yt.transform(ae),Bd(ut,Yt,Gt,se)?bt=!0:(Gt.x=ot,Gt.y=Ct,Gt.transform(ae),Bd(ut,Yt,Gt,se)?bt=!0:(Yt.x=ot,Yt.y=Bt,Yt.transform(ae),Bd(ut,Yt,Gt,se)&&(bt=!0)))),eo.free(ae),zt.free(Yt),zt.free(Gt),zt.free(se),ot=bt}}else ot=ut.fh(ot,gt)}else ot=$r(ut,a,b,gt);ot&&(St=ut,y!==null&&(St=y(ut)),St&&(x===null||x(St))&&E.add(St)),eo.free(gt)}}}return z===void 0&&eo.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&eo.free(tt),!1},Hn.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?Ea:this.curve},Hn.prototype.computeCorner=function(){if(this.curve===Ea)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Hn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;brt?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var gt=y.y;ot=b.x-tt;var St=b.y-gt;for(rt=Math.sqrt(ot*ot+St*St),Te.$(ot,0)?St=0>St?-Math.PI/2:Math.PI/2:(St=Math.atan(St/Math.abs(ot)),0>ot&&(St=Math.PI-St)),lt=rt/lt,ut=St-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=lt,this.L(a,tt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case Ym:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(b)){E=z.x,z=z.y,tt=gt.x,gt=gt.y,lt=(tt-E)*(tt-E)+(gt-z)*(gt-z),ot=y.x,ut=y.y,rt=b.x,St=b.y;var Ct=1;if(rt-ot!==0){var bt=(St-ut)/(rt-ot);Ct=Math.sqrt(1+1/(bt*bt))}else bt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(np,np),rt.Bc(np,np),ot.Ye(a),rt.Ye(x);var lt=zt.alloc(),ut=zt.alloc();y===0?x.x>a.x||b===270&&x.ya.x||b===90&&x.y>a.y&&rt.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.ya.y?(lt.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=lt.x,ut.y=x.y):b===0&&a.xrt.top&&a.yot.bottom)&&(b===180&&(rt.ca(a)||ot.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>ot.top&<.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.ya.y&&rt.lefta.y?(lt.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(b===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(b===0&&(rt.ca(a)||ot.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>ot.top&<.y=a.x||a.x>=rt.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.ya.y||b===180&&x.xa.y||b===0&&x.x>a.x&&rt.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.xa.x?(lt.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.yrt.left&&a.xot.right)&&(b===270&&(rt.ca(a)||ot.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>ot.left&<.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.xa.x&&rt.top=a.x?(lt.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(b===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(b===90&&(rt.ca(a)||ot.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>ot.left&<.x=a.y||a.y>=rt.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x=Tf&&(aS(Ct),ot.Bc(Ct.Ho*Ct.Hx,Ct.Go*Ct.Ix),lS(Ct,a,y,gt,b,ot,!1),rt=eu(Ct,gt.x,gt.y)),!Ct.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Te.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Te.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=Ct.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Te.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Te.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=Ct.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),bt!==null&&(b===0||b===180?this.yf(z.x,bt.y):this.yf(bt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),zt.free(lt),zt.free(ut)}},Hn.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 Xv(a){if(a.diagram===null||!a.isAvoiding||!af(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=lf(a.diagram,!0,a.containingGroup,null);for(var b=1;bRd&&eu(y,ut,gt)!==lt-1&&(eu(y,x-ot,b)===lt-1?(E=180,ut=x-ot,gt=b):eu(y,x+ot,b)===lt-1?(E=0,ut=x+ot,gt=b):eu(y,x,b-rt)===lt-1?(E=270,ut=x,gt=b-rt):eu(y,x,b+rt)===lt-1&&(E=90,ut=x,gt=b+rt));lt>Rd&&eu(y,ut,gt)===lt-1;)x=ut,b=gt,E===0?ut+=ot:E===90?gt+=rt:E===180?ut-=ot:gt-=rt,--lt;z?lt>Rd&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/rt)*rt+rt/2),lt>Rd&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=rt):E===90?(z=180,tt-=ot):E===180?(z=270,ut-=rt):E===270&&(z=0,tt+=ot),eu(y,tt,ut)===lt-1?Yv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=rt):E===90?(z=0,tt+=ot):E===180?(z=90,ut+=rt):E===270&&(z=180,tt-=ot),eu(y,tt,ut)===lt-1&&Yv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}Hn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=co(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;ttthis.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=y&&(b=y-1),rt=this.i(b),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,rt=z.y}else{for(rt=0;rtYt?bt>Ct?(z.x=Gt-ae,z.y=Ct-ae,E.x=Gt+Bt,E.y=Ct+Bt):(z.x=Gt-ae,z.y=Ct+ae,E.x=Gt+Bt,E.y=Ct-Bt):bt>Ct?(z.x=Gt+ae,z.y=Ct-ae,E.x=Gt-Bt,E.y=Ct+Bt):(z.x=Gt+ae,z.y=Ct+ae,E.x=Gt-Bt,E.y=Ct-Bt)),Te.$(Yt,Gt)&&Te.$(Ct,bt)&&(Ct>St?(se>Gt?(z.x=Gt-ae,z.y=Ct-ae,E.x=Gt+Bt):(z.x=Gt+ae,z.y=Ct-ae,E.x=Gt-Bt),E.y=Ct+Bt):(se>Gt?(z.x=Gt-ae,z.y=Ct+ae,E.x=Gt+Bt):(z.x=Gt+ae,z.y=Ct+ae,E.x=Gt-Bt),E.y=Ct-Bt)),(Te.$(Yt,Gt)&&Te.$(Gt,se)||Te.$(St,Ct)&&Te.$(Ct,bt))&&(Yt=.5*(Yt+se),St=.5*(St+bt),z.x=Yt,z.y=St,E.x=Yt,E.y=St),(gt===1||gt===2&&Te.$(tt.x,this.i(0).x)&&Te.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),nh(ot,x.x-b,x.y-rt,z.x-b,z.y-rt,lt.x-b,lt.y-rt),y.set(z),x.set(E),tt=lt}}lt=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=xc(this,ut.copy(),!1,Ai)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),nh(ot,E.x-b,E.y-rt,lt-b,tt-rt,ut.x-b,ut.y-rt),zt.free(y),zt.free(x),zt.free(z),zt.free(E)}else for(x=3;x=y&&(x=y-1),E=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=xc(this,tt.copy(),!1,Ai)),nh(ot,z.x-b,z.y-rt,E.x-b,E.y-rt,tt.x-b,tt.y-rt);else{for(z=zt.alloc(),z.assign(this.i(0)),E=zt.alloc(),E.assign(z),tt=this.computeCorner(),gt=1,lt=0;gt=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=xc(this,ut.copy(),!1,Ai)),Pc(this,ot,-b,-rt,z,ut,x);else if(lt===0)for(gt=1;gtz.x?he=St.x-bt:he=St.x+bt,Gt.y>St.y?se=St.y+ae:se=St.y-ae,Gt=zt.allocAt(he,be),Pc(this,ot,gt,Yt,z,Gt,Bt),zt.free(Gt),Rm(ot,St.x+gt,St.y+Yt,Ct+gt,se+Yt),z.h(Ct,se)}else Te.B(z.x,St.x)&&Te.B(St.y,Gt.y)?(bt=Math.min(tt,Math.abs(St.y-E.y)/2),bt=ae=Math.min(bt,Math.abs(Gt.x-St.x)/2),Te.B(ae,0)?(Pc(this,ot,gt,Yt,z,St,Bt),z.assign(St)):(he=St.x,be=St.y,Ct=he,se=be,St.y>z.y?be=St.y-bt:be=St.y+bt,Gt.x>St.x?Ct=St.x+ae:Ct=St.x-ae,Gt=zt.allocAt(he,be),Pc(this,ot,gt,Yt,z,Gt,Bt),zt.free(Gt),Rm(ot,St.x+gt,St.y+Yt,Ct+gt,se+Yt),z.h(Ct,se))):(Pc(this,ot,gt,Yt,z,St,Bt),z.assign(St));E.assign(ut),gt=lt}zt.free(z)}jm=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=rt,this.computeShortLength(!0)!==0&&(E=xc(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=xc(this,ot,!1,z)),a.type=Kn.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Vm(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),Te.$(a,0)?y:Te.$(y,0)?a:Math.sqrt(a*a+y*y)))}function xc(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=Vm(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=Vm(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;Te.$(y.x,z.x)&&Te.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Te.$(y.x,z.x)&&!Te.$(y.y,z.y))return x-1;for(var tt=z;Te.$(y.x,z.x)&&Te.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Te.$(y.y,z.y)&&Te.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}Hn.prototype.computeJumpLength=function(){return 10};function Pc(a,y,x,b,E,z,tt){if(!tt&&Id(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],lt=0;if(a.isVisible()&&(lt=Ox(a,E,z,rt)),0gt-tt);)lt--,gt=Math.max(ut-ot,z.x);ut=z.y-tt+b,gt+=x,Ct=z.y+b,a.curve===sh?Lf(y,gt,Ct,!1):nh(y,St,ut,gt,ut,gt,Ct)}else if(Te.B(E.x,z.x))if(E.yut-tt);)lt--,ut=Math.max(gt-ot,z.y);gt=z.x-tt+x,Ct=z.x+x,ut+=b,a.curve===sh?Lf(y,Ct,ut,!1):nh(y,gt,St,gt,ut,Ct,ut)}}}y.lineTo(z.x+x,z.y+b)}function Ox(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=lt.x||lt.xtt.y&&ut.y>=lt.y||lt.ytt&&Math.min(bt,Bt)ut&&!Te.B(bt,Bt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Te.B(gt,Ct)&&Te.B(bt,Bt)&&Math.min(ut,St)bt&&Math.min(tt,Yt)gt&&!Te.B(tt,Yt)){ot.x=bt,ot.y=gt,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(E?x.push(ot.x):x.push(ot.y)),tt=lt}zt.free(ot)}function Id(a){return a=a.curve,a===kf||a===sh}function Um(a,y){(y||Id(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()))}Hn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,ot=0;ota&&Gn(a,">= 0",Hn,"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:wi},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&&fa(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&&Gn(a,">= 0",Hn,"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=b&&(z=b-1);var ot=this.i(z-1),rt=this.i(z);Te.Dl(E.x,E.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),E=rt}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;Eb&&(b=-b)):Te.$(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;bthis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ef(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ef(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(),Um(this,y===sh||y===kf||a===sh||a===kf),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(),Um(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)}}}),Hn.prototype.invalidateOtherJumpOvers=Hn.prototype.Xo,Hn.prototype.findClosestSegment=Hn.prototype.ez,Hn.prototype.updateRoute=Hn.prototype.vg,Hn.prototype.invalidateRoute=Hn.prototype.bb,Hn.prototype.rollbackRoute=Hn.prototype.rv,Hn.prototype.commitRoute=Hn.prototype.zf,Hn.prototype.startRoute=Hn.prototype.uh,Hn.prototype.clearPoints=Hn.prototype.Fj,Hn.prototype.removePoint=Hn.prototype.pv,Hn.prototype.addPointAt=Hn.prototype.yf,Hn.prototype.addPoint=Hn.prototype.ne,Hn.prototype.insertPointAt=Hn.prototype.m,Hn.prototype.insertPoint=Hn.prototype.Kz,Hn.prototype.setPointAt=Hn.prototype.L,Hn.prototype.setPoint=Hn.prototype.dd,Hn.prototype.getPoint=Hn.prototype.i,Hn.prototype.getOtherPort=Hn.prototype.Cz,Hn.prototype.getOtherNode=Hn.prototype.To;var wc=null,Cc=null,Qv=new nn(Hn,"Normal",1),Bx=new nn(Hn,"Orthogonal",2),Ax=new nn(Hn,"AvoidsNodes",6),oS=new nn(Hn,"AvoidsNodesStraight",7),Bs=new nn(Hn,"None",0),Ea=new nn(Hn,"Bezier",9),sh=new nn(Hn,"JumpGap",10),kf=new nn(Hn,"JumpOver",11),Yg=new nn(Hn,"End",17),Xm=new nn(Hn,"Scale",18),Ym=new nn(Hn,"Stretch",19),Jg=new nn(Hn,"OrientAlong",21),Qg=new nn(Hn,"OrientPlus90",22),qg=new nn(Hn,"OrientMinus90",23),qv=new nn(Hn,"OrientOpposite",24),Jm=new nn(Hn,"OrientUpright",25),tp=new nn(Hn,"OrientPlus90Upright",26),ep=new nn(Hn,"OrientMinus90Upright",27),Qm=new nn(Hn,"OrientUpright45",28),rS=16,sS=14,np=8;Hn.className="Link",Hn.Normal=Qv,Hn.Orthogonal=Bx,Hn.AvoidsNodes=Ax,Hn.AvoidsNodesStraight=oS,Hn.None=Bs,Hn.Bezier=Ea,Hn.JumpGap=sh,Hn.JumpOver=kf,Hn.End=Yg,Hn.Scale=Xm,Hn.Stretch=Ym,Hn.OrientAlong=Jg,Hn.OrientPlus90=Qg,Hn.OrientMinus90=qg,Hn.OrientOpposite=qv,Hn.OrientUpright=Jm,Hn.OrientPlus90Upright=tp,Hn.OrientMinus90Upright=ep,Hn.OrientUpright45=Qm,Hn.EndSegmentStep=8,Hn.CurvinessStart=rS,Hn.SpacingMin=sS,Hn.OrthoShortCut=np;function qm(a,y,x,b){Ci(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}qm.prototype.Sl=function(){if(!this.qq){var a=this.links;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=Rd&&(x[b]=ty)}ip.prototype.Yj=function(a,y,x,b){if(a>this.En||a+xthis.Fn||y+ba&&(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]===ah)return!1}return!0};function nu(a,y,x,b,E,z,tt,ot,rt){if(!(ytt||xrt)){var lt=y|0,ut=x|0,gt=a.ac[lt][ut];if(gt>=Rd&>=a.ac[lt][ut]);)a.ac[lt][ut]=gt,gt+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0lt;x+=b)nu(a,y,x,1,!E,z,tt,ot,rt),nu(a,y,x,-1,!E,z,tt,ot,rt);else if(0lt;y+=b)nu(a,y,x,1,!E,z,tt,ot,rt),nu(a,y,x,-1,!E,z,tt,ot,rt)}}function t0(a,y,x,b,E,z,tt,ot,rt){y|=0,x|=0;var lt=ah,ut=Rd;for(a.ac[y][x]=ut;lt===ah&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-lt)&&1>=Math.abs(rt-ut))a.abort=!0;else{var gt=z.x;b=z.y,y=z.x+z.width;var St=z.y+z.height;gt-=a.Nd,gt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,St-=a.Od,St/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,b|0)),St=Math.min(a.ei,Math.max(0,St|0)),b=a.ac,ot|=0,rt|=0,lt|=0,ut|=0;var Ct=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][rt]===ah?(t0(a,ot,rt,Ct,x,z,y,gt,St),t0(a,ot,rt,1,!x,z,y,gt,St),t0(a,ot,rt,-1,!x,z,y,gt,St)):t0(a,ot,rt,Ct,x,ot,rt,ot,rt),b[lt][ut]===ah?(e0(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,gt,St),e0(a,lt,ut,1,!(E===90||E===270),z,y,gt,St),e0(a,lt,ut,-1,!(E===90||E===270),z,y,gt,St)):e0(a,lt,ut,Ct,x,lt,ut,lt,ut),x=rn(),tt&&uS(a,lt,ut,E,ot,rt,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Rd,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:ytt?tt++:ltE)ut--;else break;else if(gt>z)gt--;else break;var St=ot[ut][gt];if(St===0||St===ey)break;rt=ut,lt=gt}for(;;){if(ut=b,gt=rt,St=lt,b===0?Stz&&(ut=270,St--):b===90?gtE&&(ut=180,gt--):b===180?Stz&&(ut=270,St--):gtE&&(ut=180,gt--),gt=ot[gt][St],ut!==b&>!==0&>!==ey){if(tt.push(rt),tt.push(lt),uS(a,rt,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][lt]=ey,b===0){if(rt===y)return!1;rt--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(rt===y)return!1;rt++}else{if(lt===x)return!1;lt++}}}_t.Object.defineProperties(ip.prototype,{bounds:{get:function(){return new sn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=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 90180+a&&x<=360-a?270:0;case 13:return 180a&&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}bc.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Ki?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(Dr,zt.alloc()),rt=a.port.ga(Ws,zt.alloc());for(E=sn.allocAt(ot.x,ot.y,0,0),E.Ye(rt),zt.free(ot),zt.free(rt),ot=zt.allocAt(E.x+E.width/2,E.y+E.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(b),gt=lt.computeSpot(ut,a.port);if(gt.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var St=ut.part;if(St!==null){var Ct=St.findVisibleNode();Ct!==null&&Ct!==St&&(St=Ct,ut=St.port),ut=lt.computeOtherPoint(St,ut),St=ot.ab(ut),St-=rt,0>St?St+=360:360<=St&&(St-=360),gt=Ix(E,gt,St,lt.isOrthogonal),gt===0?(gt=4,180St&&(St+=360)),Ct=a.pe[z],Ct===void 0?(Ct=new ny(lt,St,gt),a.pe[z]=Ct):(Ct.link=lt,Ct.angle=St,Ct.Nc=gt),Ct.hv.set(ut),z++}}}}for(zt.free(ot),a.pe.sort(bc.prototype.j),rt=a.pe.length,b=-1,z=ot=0;zMath.abs(Bt)?(se=Math.abs(Bt)/St,St=Math.abs(Bt)):se=1;break;case 2:Ct>Math.abs(ae)?(se=Math.abs(ae)/Ct,Ct=Math.abs(ae)):se=1;break;case 1:gt>Math.abs(Bt)?(se=Math.abs(Bt)/gt,gt=Math.abs(Bt)):se=1;break;default:case 4:ut>Math.abs(ae)?(se=Math.abs(ae)/ut,ut=Math.abs(ae)):se=1}Gt=0}var $e=he.Zo;if(b===Zv){switch(he=he.link.computeThickness(),he*=se,$e.set(be),bt){case 8:$e.x=be.x+Bt/2+St/2-Gt-he/2;break;case 2:$e.y=be.y+ae/2+Ct/2-Gt-he/2;break;case 1:$e.x=be.x+Bt/2-gt/2+Gt+he/2;break;default:case 4:$e.y=be.y+ae/2-ut/2+Gt+he/2}Gt+=he}else{var Un=.5;b===Km&&(Un=(he.Uo+1)/(he.Gl+1)),$e.x=be.x+Bt*Un,$e.y=be.y+ae*Un}}}for(zt.free(ot),zt.free(rt),zt.free(tt),zt.free(lt),be=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},bc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,hr,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=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Jo.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Hn)&&(op(ot),this.rh(ot))){var rt=ot.measuredBounds,lt=rt.width;rt=rt.height,ot.moveTo(x,b),ot instanceof Ki&&(ot.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(rt,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Jo.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ki&&a.rh)};function Zh(a,y,x,b,E,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;b&&!rt.isTopLevel||E!==null&&!E(rt)||!rt.canLayout()||(z&&rt instanceof Xn?rt.isLinkLabel||(rt instanceof Ki&&rt.layout===null?Zh(a,y,rt.memberParts,!1,E,z,tt,ot):(op(rt),y.add(rt))):tt&&rt instanceof Hn?y.add(rt):!ot||!rt.Zc()||rt instanceof Xn||(op(rt),y.add(rt)))}}function op(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Jo.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new sn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Jo.prototype.ex=function(a){var y=new tn;return a instanceof Ze?(Zh(this,y,a.nodes,!0,null,!0,!0,!0),Zh(this,y,a.links,!0,null,!0,!0,!0),Zh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ki?Zh(this,y,a.memberParts,!1,null,!0,!0,!0):Zh(this,y,a.iterator,!1,null,!0,!0,!0),y},Jo.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(Dr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},_t.Object.defineProperties(Jo.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())}}}),Jo.prototype.collectParts=Jo.prototype.ex,Jo.prototype.getLayoutBounds=Jo.prototype.ni,Jo.prototype.invalidateLayout=Jo.prototype.C,Jo.className="Layout";function Wo(a){Ci(this),this.Sc=a,this.wf=new tn,this.ye=new tn,this.Es=new Yn,this.zs=new Yn}Wo.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 tn,this.ye=new tn,this.Es=new Yn,this.zs=new Yn},Wo.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,1y?1:0):1:y!==null?-1:0}_t.Object.defineProperties(Gr.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=sn.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),sn.free(x),!(a instanceof Ki)&&(a=a.locationObject.ga(po),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 tn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new tn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new tn,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 qe,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}}}),Gr.prototype.deleteDestinationEdge=Gr.prototype.Jl,Gr.prototype.addDestinationEdge=Gr.prototype.zl,Gr.prototype.deleteSourceEdge=Gr.prototype.Kl,Gr.prototype.addSourceEdge=Gr.prototype.Cl,Gr.className="LayoutVertex",Gr.standardComparer=sy,Gr.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 "+(this.qd?this.qd.toString():"null"))),y},ga.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ga.prototype.commit=function(){},ga.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},_t.Object.defineProperties(ga.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)}}}),ga.prototype.getOtherVertex=ga.prototype.Ax,ga.className="LayoutEdge";function ns(a){Jo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Wn(NaN,NaN).freeze(),this.tf=new Wn(10,10).freeze(),this.Jb=rp,this.Rb=i0,this.nd=sp,this.hd=cS,a&&Object.assign(this,a)}Be(ns,Jo),ns.prototype.cloneProtected=function(a){Jo.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},ns.prototype.qb=function(a){a.classType===ns?a===sp||a===r0||a===ay||a===o0?this.sorting=a:a===i0||a===xl?this.arrangement=a:a===rp||a===n0?this.alignment=a:le("Unknown enum value: "+a):Jo.prototype.qb.call(this,a)},ns.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 Ki)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 o0:E.reverse();break;case sp:E.sort(this.comparer);break;case r0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case n0:var ot=y,rt=x,lt=sn.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var gt=ut=0;gtz-1||0tt)&&(b.push(new sn(0,Bt,tt+ot,Gt)),Yt=0,bt=Ct,Bt+=Gt,Gt=0),Gt=Math.max(Gt,$e),St){case xl:he=-he.width;break;default:he=0}switch(ae.moveTo(bt+he,Bt),St){case xl:bt-=be;break;default:bt+=be}Yt++}b.push(new sn(0,Bt,tt+ot,Gt)),sn.free(lt);break;case rp:for(rt=tt,ut=z,gt=y,St=x,tt=sn.alloc(),Ct=Math.max(this.cellSize.width,1),z=Bt=lt=0,ot=zt.alloc(),bt=0;bt=lt&&(rt-=lt),lt=ae=0,be=Math.max(this.cellSize.height,1),he=z=0,$e=!0,Yt=zt.alloc(),Un=0;Unut-1||0rt){for(b.push(new sn(0,$e?se-z:se,rt+gt,he+z+St)),oi=0;oilt&&(z.width+=z.x-lt,z.x=lt);sn.free(tt)}for(ot=z=tt=E=0;oty?1:0}_t.Object.defineProperties(ns.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0gt)){var Bt=gt+Gg(bt);bt.pc(Bt,!0),wv(bt,Bt,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Oo.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)},Oo.prototype.rp=function(){for(var a=this.H.model,y=new tn,x=a.nodeDataArray,b=0;b=b)return"[]";var E=new ze;E.add("["),x&&1b)return;vn(a.Tc,b)}Rr(a,"nodeDataArray",zr,"nodeDataArray",a,y,null,b,null),a.qp(y)}Mt.nA=function(a){if(fn(a))for(var y=a.length,x=0;xy&&(y=a.length),je(a,y,x),Rr(this,"",br,"",a,null,x,null,y)},Mt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&le("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];vn(a,y),Rr(this,"",zr,"",a,x,null,y,null)},Mt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Pr(a,y),y===void 0))return"";if(typeof y=="string")return y;le("getCategoryForNodeData found a non-string category for "+a+": "+y)},Mt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Yo(a,x,y),Rr(this,"nodeCategory",tr,x,a,b,y))}else Yo(a,x,y)}},Mt.lm=function(a,y){this.jm(y,this.Ro(a))},Mt.Tl=function(){return!1},Mt.Wj=function(){return!1},Mt.ri=function(){return!1},Mt.xs=function(){return!1},Mt.Xj=function(){return!1};function cy(){return new ci}function lp(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 lp(a,y.constructor);return typeof y}function fy(a){return dl[a]?dl[a]:ie.go!==void 0&&ie.go[a]?ie.go[a]:null}function Pr(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 Yo(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){}}_t.Object.defineProperties(ci.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===""&&le("Model.nodeKeyProperty may not be the empty string"),0"+ka(this,E,!1)}return y},Mt.Qv=function(a,y){this.linkKeyProperty===""&&le("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ci.prototype.Qv.call(this,a,y),b=this,E=new tn,z=new tn,tt=new tn,ot=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===br?E.add(ut.newValue):ut.change===zr&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(gt){b.Jc(gt)&&z.add(gt)}):ut.object instanceof ci||b.lb(ut.object)||FS(b,ut.object).each(function(gt){z.add(gt)})))});var rt=this.il;rt.clear(),E.each(function(ut){rt.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===zr){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Re(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}}ci.prototype.changeState.call(this,a,y)}},Mt=fo.prototype,Mt.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),Yo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Mt.yx=function(a){return ka(this,a,!0)},Mt.wv=function(a,y){Of(this,a,y,!0)},Mt.Bx=function(a){return ka(this,a,!1)},Mt.Bv=function(a,y){Of(this,a,y,!1)};function ka(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Pr(y,a),a!==void 0))){if(Vh(a))return a;le((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Of(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=Pr(y,E);z!==x&&(wl(a,z,y),Yo(y,E,x),a.hc(x)===null&&Pl(a,x,y),Rr(a,b?"linkFromKey":"linkToKey",tr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Yo(y,E,x)}}Mt.zx=function(a){return h0(this,a,!0)},Mt.xv=function(a,y){Df(this,a,y,!0)},Mt.Cx=function(a){return h0(this,a,!1)},Mt.Cv=function(a,y){Df(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Pr(y,a),y===void 0?"":y)}function Df(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Pr(y,E);z===void 0&&(z=""),z!==x&&(Yo(y,E,x),Rr(a,b?"linkFromPortId":"linkToPortId",tr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Yo(y,E,x)}}Mt.Ef=function(a){if(a===null)return d0;var y=this.je;return y===""?d0:(a=Pr(a,y),a===void 0?d0:a)},Mt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);if(b===void 0&&(b=d0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;zE||(b.splice(E,1),this.Jc(a)&&(wl(this,y,a),Rr(this,"linkLabelKeys",zr,x,a,y,null,E,null)))}else b!==void 0&&le(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Mt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Vh(y))return y;le("Key value for link data "+a+" is not a number or a string: "+y)}}},Mt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);b!==y&&this.jh(y)===null&&(Yo(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Rr(this,"linkKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Yo(a,x,y)}},Mt.jh=function(a){return a===null&&le("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Vh(a)?this.wb.I(a):null},Mt.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))){Yo(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Yo(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Yo(a,y,x)}}}}},Mt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Mt.fi=function(a){a!==null&&(Ui(a),this.Jc(a)||OS(this,a,!0))};function OS(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&&le("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)),Rr(a,"linkDataArray",br,"linkDataArray",a,null,y,null,b),gy(a,y)}Mt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xb)return;a.md.splice(b,1)}if(Rr(a,"linkDataArray",zr,"linkDataArray",a,y,null,b,null),x=ka(a,y,!0),wl(a,x,y),x=ka(a,y,!1),wl(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new qe;y.addAll(a.iterator),a=new qe;var x=new qe,b=this.sort(y),E,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var St=this.sweepAngle;if((!isFinite(St)||360St)&&(St=360),y=this.spacing,isFinite(y)||(y=NaN),ot===fl&&rt===Lc?ot=cl:ot===fl&&rt!==Lc&&(ot=this.arrangement),(this.direction===jd||this.direction===Bf)&&this.sorting!==Af){for(rt=0;!(rt>=b.length)&&(a.add(b.M(rt)),!(rt+1>=b.length));rt+=2)x.add(b.M(rt+1));this.direction===jd?(this.arrangement===fl&&a.reverse(),b=new qe,b.addAll(a),b.addAll(x)):(this.arrangement===fl&&x.reverse(),b=new qe,b.addAll(x),b.addAll(a))}rt=b.length;for(var Ct=z=E=0;CtSt&&(Ct===0||Ct===b.length-1)&&(Bt/=2),E+=Bt,z++}if(isNaN(lt)||ot===fl){if(isNaN(y)&&(y=6),ot!==cl&&ot!==fl){for(z=-1/0,tt=0;ttlt?(lt=E,z=lt*ut):tt=Ct/(360<=St?rt:rt-1)}if(this.kw=ot,this.lc=lt,this.Zm=ut,this.lw=gt,this.Wp=St,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,ot=this.lc,lt=this.lw,ut=this.Wp,gt=this.Ti,St=this.me,rt=this.Jp,this.direction!==jd&&this.direction!==Bf||b!==fl)if(this.direction===jd||this.direction===Bf){switch(tt=0,b){case Uh:tt=180*f0(this,ot,St,lt,rt)/Math.PI;break;case cl:rt=y=0,tt=a.first(),tt!==null&&(y=Yh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Yh(tt,Math.PI/2)),tt=180*f0(this,ot,St,lt,gt+(y+rt)/2)/Math.PI;break;case lh:tt=ut/y.length}if(this.direction===jd){switch(b){case Uh:cp(this,a,lt,Xh);break;case cl:dp(this,a,lt,Xh);break;case lh:hp(this,a,ut/2,lt,Xh)}switch(b){case Uh:cp(this,x,lt+tt,js);break;case cl:dp(this,x,lt+tt,js);break;case lh:hp(this,x,ut/2,lt+tt,js)}}else{switch(b){case Uh:cp(this,x,lt,Xh);break;case cl:dp(this,x,lt,Xh);break;case lh:hp(this,x,ut/2,lt,Xh)}switch(b){case Uh:cp(this,a,lt+tt,js);break;case cl:dp(this,a,lt+tt,js);break;case lh:hp(this,a,ut/2,lt+tt,js)}}}else switch(b){case Uh:cp(this,y,lt,this.direction);break;case cl:dp(this,y,lt,this.direction);break;case lh:hp(this,y,ut,lt,this.direction);break;case fl:AS(this,y,ut,lt,this.direction)}else AS(this,y,ut,lt-ut/2,js)}this.updateParts(),this.network=null,this.isValidLayout=!0};function hp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=b+(E===js?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));gt++)jS(a,rt,lt,ut,gt,E,z)||zS(a,rt,lt,ut,gt,E,z),rt=z.x,lt=z.y;if(zt.free(z),a.mj++,!(23Math.abs(Ct)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(St)?0:St,rt=Math.abs(z)>Math.abs(gt)?0gt:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=gt.length-1));St++)jS(a,rt,lt,gt,St,E,ut)||zS(a,rt,lt,gt,St,E,ut),rt=ut.x,lt=ut.y;if(zt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function zS(a,y,x,b,E,z,tt){var ot=a.lc,rt=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===js)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}sr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},sr.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 zt(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))},sr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),rt=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?rt=b+lt*E/z:rt=lt*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function c0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function f0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(b+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=E)return ot*a}}sr.prototype.sort=function(a){switch(this.sorting){case g0:break;case p0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Af:return this.ak(Hx(a));default:le("Invalid sorting type.")}return a};function Hx(a){for(var y=[],x=0;xE&&(E=ot,z=tt)}else for(tt=0;ttE&&(E=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}sr.prototype.ak=function(a){for(var y=[],x=0;xy[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;xy[x[bt]].indexOf(x[bt===x.length-1?0:bt+1])&&Ct.push(bt===x.length-1?0:bt+1);if(Ct.length===0)for(bt=0;btx.indexOf($e)||bex.indexOf($e)||be=Bt?be+1:be)),Gt+=be=Bt&&be++,ae>=Bt&&ae++,be>ae&&(he=ae,ae=be,be=he),ae-be<(x.length+2)/2==(beCt||Ct===ut||(bt=Ct>ut?Ct-ut:ut-Ct,gt+=Cttt-bt?1:-1);x.splice(0>gt?ut:ut+1,0,rt),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==fl&&a!==cl&&a!==Uh&&a!==lh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==js&&a!==Xh&&a!==jd&&a!==Bf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==g0&&a!==p0&&a!==m0&&!v0&&a!==Af||(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!==y0&&a!==Lc||(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 cl=new nn(sr,"ConstantSpacing",0),Uh=new nn(sr,"ConstantDistance",1),lh=new nn(sr,"ConstantAngle",2),fl=new nn(sr,"Packed",3),js=new nn(sr,"Clockwise",4),Xh=new nn(sr,"Counterclockwise",5),jd=new nn(sr,"BidirectionalLeft",6),Bf=new nn(sr,"BidirectionalRight",7),g0=new nn(sr,"Forwards",8),p0=new nn(sr,"Reverse",9),m0=new nn(sr,"Ascending",10),v0=new nn(sr,"Descending",11),Af=new nn(sr,"Optimized",12),y0=new nn(sr,"Pythagorean",13),Lc=new nn(sr,"Circular",14);sr.className="CircularLayout",sr.ConstantSpacing=cl,sr.ConstantDistance=Uh,sr.ConstantAngle=lh,sr.Packed=fl,sr.Clockwise=js,sr.Counterclockwise=Xh,sr.BidirectionalLeft=jd,sr.BidirectionalRight=Bf,sr.Forwards=g0,sr.Reverse=p0,sr.Ascending=m0,sr.Descending=v0,sr.Optimized=Af,sr.Pythagorean=y0,sr.Circular=Lc;function fp(){this.Pl=-1/0,this.tm=this.mk=null}fp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(E=St.x+St.width/2,z=St.y+St.height/2,lt[0]=new zt(St.x+St.width+b.width,St.y),lt[1]=new zt(St.x,St.y+St.height+b.height),ot=2):(rt=GS(lt,ot,E,z,St.width,St.height,b),gt=lt[rt],Ct=new zt(gt.x+St.width+b.width,gt.y),St=new zt(gt.x,gt.y+St.height+b.height),rt+1this.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++,2a.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=tt))){for(var lt=ot=0,ut=rt.count-tt;utCt&&(Ct=1),ot=Te.sqrt((ot+Ct+lt*lt*4/(tt*tt))/Ct),tt=(ot-1)*ut/2,ot=(ot-1)*gt/2,E.bounds=new sn(z-St.x-tt,rt-St.y-ot,ut+2*tt,gt+2*ot),E.focus=new zt(St.x+tt,St.y+ot)}}return a.network=b,x}function Kx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new sn(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new zt(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function $x(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=gt.Vd?rt++:(ot=!0,lt++,tt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(rt!==0){for(0>1)+lt)*(ot%2===0?1:-1),rt.centerX=b+ut*Math.cos(gt),rt.centerY=E+ut*Math.sin(gt),ot++}}}}function GS(a,y,x,b,E,z,tt){var ot=9e19,rt=-1,lt=0;t:for(;ltut.y&&a[St].x-ut.xut.x&&a[St].y-ut.yy+z?(x=b+E-tt,a=a-y-z,Te.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=b-tt-ot,a=a-y-z,Te.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Bt,Yt){return Bt===null||Yt===null||Bt===Yt?0:Bt.centerX-Yt.centerX}):y.sort(function(Bt,Yt){return Bt===null||Yt===null||Bt===Yt?0:Bt.centerY-Yt.centerY}),x=a.Zf;var lt=b=ot=0;for(z=0;zx||lt-rt>x){if(E)break}else if(ut-Ct>x||Ct-ut>x){if(!E)break}else{var bt=WS(tt,St);1>bt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new x0),bt=b.random(),ot=b.random(),rt>lt?(b=Math.abs(St.bounds.right-tt.bounds.x),b=(1+b)*bt):rtCt?(lt=Math.abs(St.bounds.bottom-tt.bounds.y),lt=(1+lt)*ot):rtgt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new x0),ot=gt.random(),gt=gt.random(),b=(b>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),b=(rt-b)/gt*ot,lt=(ut-tt)/gt*ot),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;Ea.epsilonDistance*a.epsilonDistance}us.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},us.prototype.moveFixedVertex=function(){},us.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},us.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=wi,y.toSpot=wi)}},us.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=sn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,sn.free(x)}x=sn.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()}sn.free(x)},us.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},us.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},us.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},us.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},us.prototype.electricalFieldX=function(){return 0},us.prototype.electricalFieldY=function(){return 0},us.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},us.prototype.gravitationalFieldX=function(){return 0},us.prototype.gravitationalFieldY=function(){return 0},us.prototype.isFixed=function(a){return a.isFixed},_t.Object.defineProperties(us.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&&0Bt&&0Bt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)gt=b[ut],gt.near===lt&>.Dj===lt.Dj||ot++;var St;if(0<=x)for(rt=b[tt].sourceEdgesArrayAccess,lt=0;ltBt||gt===Bt&&Ct>bt)&&ot++,Ytgt||Bt===gt&&bt>Ct)&&ot++}}}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,lt=0;ltBt||gt===Bt&&ut>Yt)&&ot++,btgt||Bt===gt&&Yt>ut)&&ot++)}for(z[tt*E+tt]=ot,rt=tt+1;rt=x){for(ot=b[tt].destinationEdgesArrayAccess,ae=b[rt].destinationEdgesArrayAccess,lt=0;lt=x&&(rt=ot.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=ot.destinationEdgesArrayAccess);var ut=0,gt=0,St=ot.near;if(St!==null&&St.layer===ot.layer&&(ut+=St.column-1,gt++),rt!==null)for(St=0;St=x&&(rt=ot.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=ot.destinationEdgesArrayAccess);var ut=0,gt=[],St=ot.near;if(St!==null&&St.layer===ot.layer&&(gt[ut]=St.column-1,ut++),ot=void 0,rt!==null)for(St=0;St>1,z[tt]=ut&1?gt[lt]:gt[lt-1]+gt[lt]>>1)}return Qh(a,y,b),z}function vp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,lt=y.layer-rt.layer;ot=a.linkMinLength(ot),lt===ot&&vp(a,rt,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,lt=rt.layer-y.layer,ot=a.linkMinLength(ot),lt===ot&&vp(a,rt,x,b,E,z)}}function yy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)yy(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)yy(a,y.value.fromVertex,x,b,E,z)}}Do.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Py:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;_x(a)!==null;){for(E=VS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=VS(a);for(E=US(a);E!==null;)b[y]=E,y++,E.valid=!1,E=US(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,lt=ot.destinationEdges;lt.next();)lt.value.toVertex.valid&&rt++;lt=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&<++;(E===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0: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&&Sy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&Sy(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.Llb){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;xtt&&vp(a,ot,0,-1,!0,!1)}for(vp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,gt=!1,St=lt.sourceEdgesArrayAccess;E=St.length;for(var Ct=0;Ctz)&&!ut&&(ot=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function qS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Do.prototype.initializeIndices=function(){switch(this.Qk){default:case Ly: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 E0: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&&tx(this,x);break;case by: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&&ex(this,x)}};function tx(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;bz.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;xz.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x=tt;b--)z=qa(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=qa(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,1)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,-1)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=qa(this,b,0)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,0)||z;E>=a?Ga(this,y):(a=E,y=Ys(this))}break;default:case k0:for(x=this.Ia,tt=0,ot=a+1;(b=this.countCrossings())=tt;b--)z=qa(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=qa(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,1)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,-1)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=qa(this,b,0)||z;for(E>=a?Ga(this,y):(a=E,y=Ys(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=qa(this,b,0)||z;E>=a?Ga(this,y):(a=E,y=Ys(this))}}Ga(this,y)};function w0(a,y,x){var b=Jh(a,y),E=a.tc[y],z=_S(a,y,x),tt=vy(a,y,x);for(x=0;xz+1&&(St+=4*(se-z),Ct+=4*(se-(z+1)))}for(he=b[z].destinationEdges.iterator,he.reset();he.next();)if(se=he.value,ae=se.toVertex,se.valid&&ae.layer===y){for(se=0;b[se]!==ae;)se++;se===z+1&&(Ct+=1)}for(he=b[z+1].sourceEdges.iterator,he.reset();he.next();)if(se=he.value,ae=se.fromVertex,se.valid&&ae.layer===y){for(se=0;b[se]!==ae;)se++;sez+1&&(St+=4*(se-(z+1)),Ct+=4*(se-z))}for(he=b[z+1].destinationEdges.iterator,he.reset();he.next();)if(se=he.value,ae=se.toVertex,se.valid&&ae.layer===y){for(se=0;b[se]!==ae;)se++;se===z&&(St+=1)}se=ae=0,he=tt[b[z].index];var be=ot[b[z].index],$e=tt[b[z+1].index],Un=ot[b[z+1].index];he!==-1&&(ae+=Math.abs(he-bt),se+=Math.abs(he-Gt)),be!==-1&&(ae+=Math.abs(be-bt),se+=Math.abs(be-Gt)),$e!==-1&&(ae+=Math.abs($e-Bt),se+=Math.abs($e-Yt)),Un!==-1&&(ae+=Math.abs(Un-Bt),se+=Math.abs(Un-Yt)),(Ct>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=Rf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Rf(this,y,-1)||x;x=Rf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)xy(this,y,1);for(y=this.Md-1;0<=y;y--)xy(this,y,-1);xy(this,this.Md,0)}if(a&&(nx(this,-1),nx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Rf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Rf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Rf(this,y,0)||x}}else Yx(this)};function Rf(a,y,x){for(var b=!1;Vx(a,y,x);)b=!0;return b}function Vx(a,y,x){var b,E=Jh(a,y),z=a.tc[y],tt=vy(a,y,-1);if(0x)for(b=0;bb-1||ut-E[b-1].column-1>gt+a.nodeMinColumnSpace(E[b-1],!1)?Ct=ut-1:Ct=ut,gt=b+1>=z||E[b+1].column-ut-1>St+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var bt=St=0,Bt=0;if(0>=x)for(var Yt=E[b].sourceEdges.iterator;Yt.next();){var Gt=Yt.value,se=Gt.fromVertex;if(Gt.valid&&se.layer!==y){var ae=my(Gt),he=Gt.portFromColOffset;Gt=Gt.portToColOffset,se=se.column,St+=(Math.abs(ut+Gt-(se+he))+1)*ae,bt+=(Math.abs(Ct+Gt-(se+he))+1)*ae,Bt+=(Math.abs(gt+Gt-(se+he))+1)*ae}}if(0<=x)for(Yt=E[b].destinationEdges.iterator;Yt.next();)Gt=Yt.value,se=Gt.toVertex,Gt.valid&&se.layer!==y&&(ae=my(Gt),he=Gt.portFromColOffset,Gt=Gt.portToColOffset,se=se.column,St+=(Math.abs(ut+he-(se+Gt))+1)*ae,bt+=(Math.abs(Ct+he-(se+Gt))+1)*ae,Bt+=(Math.abs(gt+he-(se+Gt))+1)*ae);Gt=he=ae=0,Yt=tt[E[b].index],se=ot[E[b].index],Yt!==-1&&(ae+=Math.abs(Yt-ut),he+=Math.abs(Yt-Ct),Gt+=Math.abs(Yt-gt)),se!==-1&&(ae+=Math.abs(se-ut),he+=Math.abs(se-Ct),Gt+=Math.abs(se-gt)),bt=tt[x]?ut=rt:lt<=tt[x]&&(ut=lt));ut!==ot&&(z=!0,b[x].column=ut)}Qh(a,y,b),a.normalize()}function Ux(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Xx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),rt=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&rt>=y&&(E[b.layer]=!0),ot<=x&&rt>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function nx(a,y){for(var x=0;x<=a.Ra;x++)for(;Ux(a,x););for(a.normalize(),x=0;xz?Ga(a,E):tty)for(x=a.Ra;0<=x;x--)for(E=Ys(a),z=P0(a),b=z+1;zz?Ga(a,E):ttx)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&&(yy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Yx(a){for(var y=rn(),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 tn,Jx(y,x);var z=null,tt=null,ot=null,rt=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,gt=(a.ve&4)!==0,St=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=C0(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=C0(a,y,!1,!1)),b=Ii(y),E=b.next();!E.done;E=b.next())E.value.reverse();St&&(a.verticalAlignment(y,x,!1),rt=C0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=C0(a,y,!0,!0)),bn(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(Ct){var bt=rn();lt&&bt.push(z.get(Ct)),ut&&bt.push(tt.get(Ct)),gt&&bt.push(ot.get(Ct)),St&&bt.push(rt.get(Ct)),bt.sort(function(Yt,Gt){return Yt-Gt});var Bt=bt.length;Bt=(bt[Math.floor((Bt-1)/2)]+bt[Math.ceil((Bt-1)/2)])/2,bn(bt),Ct.zc=Bt})}function Jx(a,y){for(var x=a.length,b=1;but)&&y.add(gt);z++}E=ut}}}Do.prototype.verticalAlignment=function(a,y,x){Qx(a),a=Ii(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ii(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?ky(z):eP(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&le("Could not determine previous vertex in layer"),y[x][a-1]}Do.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=qx(this,y[tt],b,E,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(rt){return function(lt){lt.value+=rt.delta}}(z)));bn(b),bn(E)};function qx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[E]=z,b[E]=tt,tt-z}Do.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=b0(this,!0),y=b0(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 b0(a,y){return a.K===270?y?gr:yr:a.K===90?y?yr:gr:a.K===180?y?Sr:xr:y?xr:Sr}Do.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=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Bt++,he,gt+$e),y.m(Bt++,he,gt),y.m(Bt++,he,gt-ae)):(y.m(Bt++,he,be+$e),y.m(Bt++,he,be),y.m(Bt++,he,be-ae)):this.K===270?be<=gt.bounds.y?(gt=gt.bounds.y,y.m(Bt++,he,gt-ae),y.m(Bt++,he,gt),y.m(Bt++,he,gt+$e)):(y.m(Bt++,he,be-ae),y.m(Bt++,he,be),y.m(Bt++,he,be+$e)):this.K===0&&(he>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Bt++,gt+$e,be),y.m(Bt++,gt,be),y.m(Bt++,gt-ae,be)):(y.m(Bt++,he+$e,be),y.m(Bt++,he,be),y.m(Bt++,he-ae,be)));else{y.m(Bt++,Gt,se);var Un=0;this.K===180||this.K===0?((this.K===180?he>=gt.bounds.right:he<=gt.bounds.x)&&(Un=(this.K===0?-ae:$e)/2),y.m(Bt++,Gt+Un,be)):((this.K===270?be>=gt.bounds.bottom:be<=gt.bounds.y)&&(Un=(this.K===90?-ae:$e)/2),y.m(Bt++,he,se+Un)),y.m(Bt++,he,be)}}else ae=Math.max(10,this.he[Yt.layer]),$e=Math.max(10,this.Ld[Yt.layer]),St?this.K===180?(y.m(Bt++,he-ae-bt,be),y.m(Bt++,Math.min(he-ae+bt/2,he),be),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,Math.max(he+$e-bt/2,he),be),y.m(Bt++,he+$e+bt,be)):this.K===90?(y.m(Bt++,he,be+$e+bt),y.m(Bt++,he,Math.max(be+$e-bt/2,be)),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,he,Math.min(be-ae+bt/2,be)),y.m(Bt++,he,be-ae-bt)):this.K===270?(y.m(Bt++,he,be-ae-bt),y.m(Bt++,he,Math.min(be-ae+bt/2,be)),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,he,Math.max(be+$e-bt/2,be)),y.m(Bt++,he,be+$e+bt)):(y.m(Bt++,he+$e+bt,be),y.m(Bt++,Math.max(he+$e-bt/2,he),be),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,Math.min(he-ae+bt/2,he),be),y.m(Bt++,he-ae-bt,be)):y.m(Bt++,he,be)}gt=Yt}(ot===null||lt!==hr||Ct)&&(Gt=y.i(Bt-1).x,se=y.i(Bt-1).y,he=y.i(Bt).x,be=y.i(Bt).y,Ct?(bt=this.Ld[ut.layer],this.K===180||this.K===0?(Ct=se,Ct>=ut.bounds.y&&Ct<=ut.bounds.bottom&&(this.K===180?he>=ut.bounds.x:he<=ut.bounds.right)&&(gt=ut.centerX+(this.K===180?-bt:bt),Ct=ut.bounds.x&&Ct<=ut.bounds.right&&(this.K===270?be>=ut.bounds.y:be<=ut.bounds.bottom)&&(gt=ut.centerY+(this.K===270?-bt:bt),Ct=ut.bounds.x?(gt=ut.bounds.x+ut.bounds.width,y.L(Bt-2,gt,se),y.L(Bt-1,gt+$e,se)):this.K===90&&be<=ut.bounds.bottom?(gt=ut.bounds.y,y.L(Bt-2,Gt,gt),y.L(Bt-1,Gt,gt-ae)):this.K===270&&be>=ut.bounds.y?(gt=ut.bounds.y+ut.bounds.height,y.L(Bt-2,Gt,gt),y.L(Bt-1,Gt,gt+$e)):this.K===0&&he<=ut.bounds.right&&(gt=ut.bounds.x,y.L(Bt-2,gt,se),y.L(Bt-1,gt-ae,se))):(ae=Math.max(10,this.he[ut.layer]),$e=Math.max(10,this.Ld[ut.layer]),Ct=0,this.K===180||this.K===0?((this.K===180?he<=ut.bounds.x:he>=ut.bounds.right)&&(Ct=(this.K===0?$e:-ae)/2),y.m(Bt++,he+Ct,se)):((this.K===270?be<=ut.bounds.y:be>=ut.bounds.bottom)&&(Ct=(this.K===90?$e:-ae)/2),y.m(Bt++,Gt,be+Ct)),y.m(Bt++,he,be)))}else{for(;ut!==null&&ut!==gt;){for(ae=Yt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Gt=ut.value,Gt.link!==x.link||(Yt=Gt.toVertex,ae=Gt.fromVertex,ae.node!==null&&(ae=null),Yt.node!==null)););if(Yt===null)break;Yt!==gt&&(Gt=y.i(Bt-1).x,se=y.i(Bt-1).y,he=Yt.centerX,be=Yt.centerY,Ct?this.K===180||this.K===0?(ae!==null?ae.centerY:se)!==be&&(ae=this.Ta[Yt.layer]+this.Rf.x,Bt===y.firstPickIndex+1&&(ae=this.K===0?Math.max(ae,Gt):Math.min(ae,Gt)),y.m(Bt++,ae,se),y.m(Bt++,ae,be)):(ae!==null?ae.centerX:Gt)!==he&&(ae=this.Ta[Yt.layer]+this.Rf.y,Bt===y.firstPickIndex+1&&(ae=this.K===90?Math.max(ae,se):Math.min(ae,se)),y.m(Bt++,Gt,ae),y.m(Bt++,he,ae)):(ae=Math.max(10,this.he[Yt.layer]),$e=Math.max(10,this.Ld[Yt.layer]),St?this.K===180?(y.m(Bt++,he+$e+bt,be),y.m(Bt++,Math.max(he+$e-bt/2,he),be),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,Math.min(he-ae+bt/2,he),be),y.m(Bt++,he-ae-bt,be)):this.K===90?(y.m(Bt++,he,be-ae-bt),y.m(Bt++,he,Math.min(be-ae+bt/2,be)),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,he,Math.max(be+$e-bt/2,be)),y.m(Bt++,he,be+$e+bt)):this.K===270?(y.m(Bt++,he,be+$e+bt),y.m(Bt++,he,Math.max(be+$e-bt/2,be)),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,he,Math.min(be-ae+bt/2,be)),y.m(Bt++,he,be-ae-bt)):(y.m(Bt++,he-ae-bt,be),y.m(Bt++,Math.min(he-ae+bt/2,he),be),y.m(Bt++,he,be),y.m(Bt++,he,be),y.m(Bt++,Math.max(he+$e-bt/2,he),be),y.m(Bt++,he+$e+bt,be)):this.K===180?(y.m(Bt++,he+$e,be),y.m(Bt++,he-ae,be)):this.K===90?(y.m(Bt++,he,be-ae),y.m(Bt++,he,be+$e)):this.K===270?(y.m(Bt++,he,be+$e),y.m(Bt++,he,be-ae)):(y.m(Bt++,he-ae,be),y.m(Bt++,he+$e,be)))),ut=Yt}Ct&&(Gt=y.i(Bt-1).x,se=y.i(Bt-1).y,he=y.i(Bt).x,be=y.i(Bt).y,this.K===180||this.K===0?se!==be&&(ae=this.K===0?Math.min(Math.max((he+Gt)/2,this.Ta[gt.layer]+this.Rf.x),he):Math.max(Math.min((he+Gt)/2,this.Ta[gt.layer]+this.Rf.x),he),y.m(Bt++,ae,se),y.m(Bt++,ae,be)):Gt!==he&&(ae=this.K===90?Math.min(Math.max((be+se)/2,this.Ta[gt.layer]+this.Rf.y),be):Math.max(Math.min((be+se)/2,this.Ta[gt.layer]+this.Rf.y),be),y.m(Bt++,Gt,ae),y.m(Bt++,he,ae)))}b!==null&&St&&4<=y.pointsCount&&(tt!==null&&(tt=lt===hr?y.getLinkPointFromPoint(E,tt,tt.ga(po),y.i(3),!0):y.i(0),lt===hr&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(E=rt===hr?y.getLinkPointFromPoint(z,ot,ot.ga(po),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===hr&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Do.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new qe,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=lt.y>z.y?0:tt.xz.x&&(ut=lt.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Mt.Ux=function(a,y){return a instanceof qh&&y instanceof qh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Mt.Js=function(a,y){return a instanceof qh&&y instanceof qh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Mt.B=function(a,y){return a-=y,-1a},Mt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&le("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y=E)for(b=a.slice(x),b.sort(y),y=x;y=a.He.length){for(var b=[],E=0;Ea&&(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 L0=new nn(Do,"CycleDepthFirst",0),Py=new nn(Do,"CycleGreedy",1),yp=new nn(Do,"CycleFromLayers",2),M0=new nn(Do,"LayerOptimalLinkLength",0),wy=new nn(Do,"LayerLongestPathSink",1),Cy=new nn(Do,"LayerLongestPathSource",2),E0=new nn(Do,"InitDepthFirstOut",0),by=new nn(Do,"InitDepthFirstIn",1),Ly=new nn(Do,"InitNaive",2),My=new nn(Do,"AggressiveNone",0),k0=new nn(Do,"AggressiveLess",1),Ey=new nn(Do,"AggressiveMore",2),tP=8;Do.className="LayeredDigraphLayout",Do.CycleDepthFirst=L0,Do.CycleGreedy=Py,Do.CycleFromLayers=yp,Do.LayerOptimalLinkLength=M0,Do.LayerLongestPathSink=wy,Do.LayerLongestPathSource=Cy,Do.InitDepthFirstOut=E0,Do.InitDepthFirstIn=by,Do.InitNaive=Ly,Do.AggressiveNone=My,Do.AggressiveLess=k0,Do.AggressiveMore=Ey,Do.PackNone=0,Do.PackExpand=1,Do.PackStraighten=2,Do.PackMedian=4,Do.PackAll=15,Do.AlignNone=0,Do.AlignUpperLeft=1,Do.AlignUpperRight=2,Do.AlignLowerLeft=4,Do.AlignLowerRight=8,Do.AlignAll=15;function qh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}qh.className="SegInfo";function jf(a){Wo.call(this,a)}Be(jf,Wo),jf.prototype.createVertex=function(){return new Wa(this)},jf.prototype.createEdge=function(){return new Sp(this)},jf.className="LayeredDigraphNetwork";function Wa(a){Gr.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}Be(Wa,Gr);function sx(a,y){return a.index-y.index}function N0(a,y){if(!a.$n){for(var x=[],b=Ii(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ii(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;le("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=Ii(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(sx),a.co=y}return a.co}function eP(a){if(!a.ao){for(var y=[],x=Ii(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(sx),a.ao=y}return a.ao}Wa.prototype.Cl=function(a){Gr.prototype.Cl.call(this,a),this.bo=this.co=null},Wa.prototype.Kl=function(a){Gr.prototype.Kl.call(this,a),this.bo=this.co=null},Wa.prototype.zl=function(a){Gr.prototype.zl.call(this,a),this.$n=this.ao=null},Wa.prototype.Jl=function(a){Gr.prototype.Jl.call(this,a),this.$n=this.ao=null},_t.Object.defineProperties(Wa.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)}}}),Wa.prototype.deleteDestinationEdge=Wa.prototype.Jl,Wa.prototype.addDestinationEdge=Wa.prototype.zl,Wa.prototype.deleteSourceEdge=Wa.prototype.Kl,Wa.prototype.addSourceEdge=Wa.prototype.Cl,Wa.className="LayeredDigraphVertex";function Sp(a){ga.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Be(Sp,ga),_t.Object.defineProperties(Sp.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)}}}),Sp.className="LayeredDigraphEdge";function ro(a){Jo.call(this),this.Ub=new tn,this.Wn=D0,this.ud=iu,this.vo=A0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new Wn(10,10).freeze();var y=new Tc(this);this.W=new tl(y),this.Y=new tl(y),this.ru=[],a&&Object.assign(this,a)}Be(ro,Jo),ro.prototype.cloneProtected=function(a){Jo.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)},ro.prototype.qb=function(a){a.classType===ro?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:le("Unknown enum value: "+a):Jo.prototype.qb.call(this,a)},ro.prototype.createNetwork=function(){return new Tc(this)},ro.prototype.makeNetwork=function(a){function y(b){if(b instanceof Xn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Hn){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 Ze?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ki?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ro.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==R0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ze&&(y=a),this.path===D0&&y!==null?this.ud=y.isTreePathToChildren?iu:kc:this.ud=this.path===D0?iu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}ro.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;EE?fx(this,a,tt,Oi,Gt,se):gx(this,a,tt,Oi,Gt,se),Oi=se.x,Gt=se.width,se=se.height;break;case hh:for(he=0;hegt&&(oiXr&&(Ec(a,-Xr,0,Gi,wo-1),O0(he,-Xr,0),O0(be,-Xr,0),Xr=0)}zo.S.h(Xr,ti),Gt=Math.max(Gt,$e),se=Math.max(se,ae+(jn===0?0:bt)+Zr.height),oi=$e}else 0gt&&(tiXr&&(Ec(a,0,-Xr,Gi,wo-1),O0(he,0,-Xr),O0(be,0,-Xr),Xr=0)),zo.S.h(oi,Xr),se=Math.max(se,Un),Gt=Math.max(Gt,ae+(jn===0?0:bt)+Zr.width),ti=Un;wn++}switch(0lt&&(lt=0),135Bt&&(Bt=0),rt===Mu&&(ot+=St/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Gt&&(Gt=Dy(rt,b-Gt,0),tt=Gt.x,ot=Gt.y,Gt=b,lt=0):Gt=Fy(a,Gt,lt),0>lt&&(tt-=lt,lt=0),135se&&(se=Dy(rt,0,Yt-se),tt=se.x,ot=se.y,se=Yt,Bt=0):se=Oy(a,se,Bt),0>Bt&&(ot-=Bt,Bt=0),tt+=b+x),0E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].yE[0].x?E[3].assign(E[2]):E[2].assign(E[3])),jn[0].h(lt+b,0),jn[1].h(jn[0].x,Yt),jn[2].yE[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].xE[0].y?E[3].assign(E[2]):E[2].assign(E[3])),jn[0].h(0,Bt+Yt),jn[1].h(b,jn[0].y),jn[2].xb?fx(a,y,E,wn,ae,he):gx(a,y,E,wn,ae,he),wn=he.x,ae=he.width,he=he.height;break;case hh:for(St=0;StSt&&($eSt&&(Ungt&&(gt=0),135Gt&&(Gt=0)),y.la.h(gt,Gt),y.Da.h(ae,he)}}ro.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function fx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new sn(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new sn(b,0,E,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,lt=gl(y)===90,ut=0,gt=0,St=0,Ct=0;Ctlt&&(E-=lt),z=Math.max(z,Math.max(Ct,St)+a+tt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(bt,gt)+a+tt.width),St=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,St+tt.height),0>St&&(z-=St),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ot)))),new sn(b,0,E,z)}function gx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new sn(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new sn(b,0,E,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,lt=gl(y)===270,ut=0,gt=0,St=0,Ct=0;Ctgt&&(E-=gt),z=Math.max(z,Math.abs(Math.min(Ct,St))+a+ut.height),0>rt.S.x&&(b=T0(y,rt.S.x,!1,b,ot))):(rt.S.h(-E-ut.width-a,b+ot/2-rt.focus.y-rt.la.y),E=Math.max(E,Math.abs(Math.min(bt,gt))+a+ut.width),St=b+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,St+ut.height),0>St&&(z-=St),0>rt.S.y&&(b=T0(y,rt.S.y,!0,b,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case ou:return a.width>y?a.width:y;case ru:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case uh:case su:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case hh:return a.width-a.focus.x+a.nodeSpacing/2+y;case Mu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a.alignment){case Nc:case Hf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ou:return a.height>y?a.height:y;case ru:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case uh:case su:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case hh:return a.height-a.focus.y+a.nodeSpacing/2+y;case Mu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Dy(a,y,x){switch(a){case Hf:y/=2,x/=2;break;case Nc:y/=2,x/=2;break;case ou:x=y=0;break;case ru:break;default:le("Unhandled alignment value "+a.toString())}return new zt(y,x)}function zd(a,y,x,b,E,z){y=Dy(y,x,b),Ec(a,y.x,y.y,E,z)}function Ec(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 F0(a,y,x,b){var E=y.parent;switch(a.ud){case iu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case kc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:le("Unhandled path value "+a.ud.toString())}}function O0(a,y,x){for(var b=0;bgt.length||Ct===null||2>Ct.length))for(E=x=0;xlt&&z.yz.y&<y.length||x===null||2>x.length)b=null;else{for(ut=ea(a,y.length+x.length),b=z=rt=0;zrt;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=ea(a,b),rt=0;rtgt.length||z===null||2>z.length)E=null;else{for(ut=ea(a,gt.length+z.length),E=lt=x=0;xz;)rt=gt[x++],ut[E++].h(rt.x,rt.y);for(z=ea(a,E),x=0;xgt.length||Ct===null||2>Ct.length))for(E=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)b=null;else{for(ut=ea(a,y.length+x.length),b=z=rt=0;zrt;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=ea(a,b),rt=0;rtgt.length||z===null||2>z.length)E=null;else{for(ut=ea(a,gt.length+z.length),E=lt=x=0;xz;)rt=gt[x++],ut[E++].h(rt.x,rt.y);for(z=ea(a,E),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}ro.prototype.computeLayerSpacing=function(a){var y=gl(a);y=y===90||y===270;var x=a.layerSpacing;if(0=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!==B0&&a!==bp||(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!==zf&&a!==Pp&&a!==wp&&!Cp||(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!==B0&&a!==bp||(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 D0=new nn(ro,"PathDefault",-1),iu=new nn(ro,"PathDestination",0),kc=new nn(ro,"PathSource",1),zf=new nn(ro,"SortingForwards",10),Pp=new nn(ro,"SortingReverse",11),wp=new nn(ro,"SortingAscending",12),Cp=new nn(ro,"SortingDescending",13),Hf=new nn(ro,"AlignmentCenterSubtrees",20),Nc=new nn(ro,"AlignmentCenterChildren",21),ou=new nn(ro,"AlignmentStart",22),ru=new nn(ro,"AlignmentEnd",23),uh=new nn(ro,"AlignmentBus",24),su=new nn(ro,"AlignmentBusBranching",25),hh=new nn(ro,"AlignmentTopLeftBus",26),Mu=new nn(ro,"AlignmentBottomRightBus",27),B0=new nn(ro,"CompactionNone",30),bp=new nn(ro,"CompactionBlock",31),A0=new nn(ro,"StyleLayered",40),Ay=new nn(ro,"StyleLastParents",41),Iy=new nn(ro,"StyleAlternating",42),Ry=new nn(ro,"StyleRootOnly",43),I0=new nn(ro,"ArrangementVertical",50),jy=new nn(ro,"ArrangementHorizontal",51),R0=new nn(ro,"ArrangementFixedRoots",52),zy=new nn(ro,"LayerIndividual",60),Hy=new nn(ro,"LayerSiblings",61),j0=new nn(ro,"LayerUniform",62);ro.className="TreeLayout",ro.PathDefault=D0,ro.PathDestination=iu,ro.PathSource=kc,ro.SortingForwards=zf,ro.SortingReverse=Pp,ro.SortingAscending=wp,ro.SortingDescending=Cp,ro.AlignmentCenterSubtrees=Hf,ro.AlignmentCenterChildren=Nc,ro.AlignmentStart=ou,ro.AlignmentEnd=ru,ro.AlignmentBus=uh,ro.AlignmentBusBranching=su,ro.AlignmentTopLeftBus=hh,ro.AlignmentBottomRightBus=Mu,ro.CompactionNone=B0,ro.CompactionBlock=bp,ro.StyleLayered=A0,ro.StyleLastParents=Ay,ro.StyleAlternating=Iy,ro.StyleRootOnly=Ry,ro.ArrangementVertical=I0,ro.ArrangementHorizontal=jy,ro.ArrangementFixedRoots=R0,ro.LayerIndividual=zy,ro.LayerSiblings=Hy,ro.LayerUniform=j0;function Tc(a){Wo.call(this,a)}Be(Tc,Wo),Tc.prototype.createVertex=function(){return new tl(this)},Tc.prototype.createEdge=function(){return new Gf(this)},Tc.className="TreeNetwork";function tl(a){Gr.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 zt(0,0),this.Da=new Wn(0,0),this.la=new zt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=zf,this.hd=sy,this.Kb=0,this.Jb=Nc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=bp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=wi,this.wr=!0,this.Dp=wi}Be(tl,Gr),tl.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)},_t.Object.defineProperties(tl.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;xCt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ou?(z=b.top+E.y,E.y===0&>.yCt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ou?(z=b.left+E.x,E.x===0&>.xCt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ou?(z=b.top+E.y,E.y===0&>.yCt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ou?(z=b.left+E.x,E.x===0&>.x0&&Ft[Ft.length-1])||fe[0]!==6&&fe[0]!==2)){ee=0;continue}if(fe[0]===3&&(!Ft||fe[1]>Ft[0]&&fe[1]',"select"),this.addActionButton(Tt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Tt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Tt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Tt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Tt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Tt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Tt,'',"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(yt){var ee=document.createElement("div");ee.className=""+xt.toolbarButtonStyleClass.name,ee.setAttribute("data-type-name",yt.typeName),ee.innerHTML=yt.icon,ee.addEventListener("click",function(){xt.markerToolbarButtonClicked(ee,yt)}),xt.buttons.push(ee),xt.markerButtons.push(ee)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ft=document.createElement("div");Ft.className=this.toolbarBlockStyleClass.name,Ft.style.whiteSpace="nowrap",Ft.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ft),this.addActionButton(Ft,'',"render"),this.addActionButton(Ft,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},jt.prototype.addButtonClickListener=function(Lt){this.buttonClickListeners.push(Lt)},jt.prototype.removeButtonClickListener=function(Lt){this.buttonClickListeners.indexOf(Lt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Lt),1)},jt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},jt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Lt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt0&&this.buttonClickListeners.forEach(function(Tt){return Tt("marker",xt)}),this.markerButtonOverflowBlock.style.display="none"},jt.prototype.actionToolbarButtonClicked=function(Lt,xt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("action",xt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},jt.prototype.setActiveButton=function(Lt){this.resetButtonStyles(),Lt.className=Lt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Lt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},jt.prototype.setActiveMarkerButton=function(Lt){var xt=this.markerButtons.find(function(Tt){return Tt.getAttribute("data-type-name")===Lt});xt&&this.setActiveButton(xt)},jt.prototype.setCurrentMarker=function(Lt){var xt=this;this.currentMarker=Lt,this.buttons.filter(function(Tt){return/delete|notes/.test(Tt.getAttribute("data-action"))}).forEach(function(Tt){xt.currentMarker===void 0?(Tt.style.fillOpacity="0.4",Tt.style.pointerEvents="none"):(Tt.style.fillOpacity="1",Tt.style.pointerEvents="all")})},jt}(),Ot=function(){function jt(Lt,xt,Tt,Ft){this.panels=[],this.panelButtons=[],this.markerjsContainer=Lt,this.displayMode=xt,this.uiStyleSettings=Tt,this.styles=Ft,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return jt.prototype.addStyles=function(){var Lt;this.toolboxStyleClass=this.styles.addClass(new re("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 re("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new re("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new re("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new re("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 re("toolbox-panel-row_colors",` background-color: `+((Lt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Lt!==void 0?Lt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new re("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px; padding: `+xt+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new re("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new re("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Fe("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Fe("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},jt.prototype.show=function(Lt){var xt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Lt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},jt.prototype.setPanelButtons=function(Lt){var xt,Tt,Ft=this;this.panels=Lt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Tt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Tt!==void 0?Tt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(yt){var ee;yt.uiStyleSettings=Ft.uiStyleSettings;var pe=document.createElement("div");pe.className=Ft.toolboxButtonStyleClass.name+" "+((ee=Ft.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ee!==void 0?ee:Ft.toolboxButtonStyleColorsClass.name),pe.innerHTML=yt.icon,pe.title=yt.title,pe.addEventListener("click",function(){Ft.panelButtonClick(yt)}),Ft.panelButtons.push(pe),Ft.buttonRow.appendChild(pe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},jt.prototype.panelButtonClick=function(Lt){var xt=this,Tt=-1;if(Lt!==this.activePanel){Tt=this.panels.indexOf(Lt),this.panelRow.innerHTML="";var Ft=Lt.getUi();Ft.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ft),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=Lt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xt.displayMode==="inline"?xt.panelRow.style.display="none":xt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(yt,ee){var pe,qt;yt.className=xt.toolboxButtonStyleClass.name+" "+(ee===Tt?""+((pe=xt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&pe!==void 0?pe:xt.toolboxActiveButtonStyleColorsClass.name):""+((qt=xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&qt!==void 0?qt:xt.toolboxButtonStyleColorsClass.name))})},jt}(),et=function(jt,Lt){this.title=jt,this.icon=Lt},nt=function(jt){function Lt(xt,Tt,Ft,yt){var ee=jt.call(this,xt,yt||'')||this;return ee.colors=[],ee.addTransparent=!1,ee.colorBoxes=[],ee.colors=Tt,ee.currentColor=Ft,ee.setCurrentColor=ee.setCurrentColor.bind(ee),ee.getColorBox=ee.getColorBox.bind(ee),ee}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.whiteSpace="nowrap",this.colors.forEach(function(Ft){var yt=xt.getColorBox(Ft);Tt.appendChild(yt),xt.colorBoxes.push(yt)}),Tt},Lt.prototype.getColorBox=function(xt){var Tt=this,Ft=this.uiStyleSettings.toolbarHeight/4,yt=this.uiStyleSettings.toolbarHeight-Ft,ee=document.createElement("div");ee.style.display="inline-block",ee.style.boxSizing="content-box",ee.style.width=yt-2+"px",ee.style.height=yt-2+"px",ee.style.padding="1px",ee.style.marginRight="2px",ee.style.marginBottom="2px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderRadius=(yt+2)/2+"px",ee.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){Tt.setCurrentColor(xt,ee)});var pe=document.createElement("div");return pe.style.display="inline-block",pe.style.width=yt-2+"px",pe.style.height=yt-2+"px",pe.style.backgroundColor=xt,pe.style.borderRadius=yt/2+"px",xt==="transparent"&&(pe.style.fill=this.uiStyleSettings.toolboxAccentColor,pe.innerHTML=` `),ee.appendChild(pe),ee},Lt.prototype.setCurrentColor=function(xt,Tt){var Ft=this;this.currentColor=xt,this.colorBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},Lt}(et),ht=function(){function jt(Lt,xt,Tt){this._state="new",this._isSelected=!1,this._container=Lt,this._overlayContainer=xt,this.globalSettings=Tt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(jt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),jt.prototype.ownsTarget=function(Lt){return!1},Object.defineProperty(jt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),jt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},jt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},jt.prototype.pointerDown=function(Lt,xt){},jt.prototype.dblClick=function(Lt,xt){},jt.prototype.manipulate=function(Lt){},jt.prototype.pointerUp=function(Lt){this.stateChanged()},jt.prototype.dispose=function(){},jt.prototype.addMarkerVisualToContainer=function(Lt){this.container.childNodes.length>0?this.container.insertBefore(Lt,this.container.childNodes[0]):this.container.appendChild(Lt)},jt.prototype.getState=function(){return{typeName:jt.typeName,state:this.state,notes:this.notes}},jt.prototype.restoreState=function(Lt){this._state=Lt.state,this.notes=Lt.notes},jt.prototype.scale=function(Lt,xt){},jt.prototype.colorChanged=function(Lt){this.onColorChanged&&this.onColorChanged(Lt),this.stateChanged()},jt.prototype.fillColorChanged=function(Lt){this.onFillColorChanged&&this.onFillColorChanged(Lt),this.stateChanged()},jt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Lt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Lt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Lt)&&this.onStateChanged(this)}},jt.typeName="MarkerBase",jt}(),at=function(){function jt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return jt.prototype.findGripByVisual=function(Lt){return this.topLeft.ownsTarget(Lt)?this.topLeft:this.topCenter.ownsTarget(Lt)?this.topCenter:this.topRight.ownsTarget(Lt)?this.topRight:this.centerLeft.ownsTarget(Lt)?this.centerLeft:this.centerRight.ownsTarget(Lt)?this.centerRight:this.bottomLeft.ownsTarget(Lt)?this.bottomLeft:this.bottomCenter.ownsTarget(Lt)?this.bottomCenter:this.bottomRight.ownsTarget(Lt)?this.bottomRight:void 0},jt}(),ft=function(){function jt(){this.GRIP_SIZE=10,this.visual=Ut.createGroup(),this.visual.appendChild(Ut.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ut.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return jt.prototype.ownsTarget=function(Lt){return Lt===this.visual||Lt===this.visual.childNodes[0]||Lt===this.visual.childNodes[1]},jt}(),mt=function(){function jt(){}return jt.toITransformMatrix=function(Lt){return{a:Lt.a,b:Lt.b,c:Lt.c,d:Lt.d,e:Lt.e,f:Lt.f}},jt.toSVGMatrix=function(Lt,xt){return Lt.a=xt.a,Lt.b=xt.b,Lt.c=xt.c,Lt.d=xt.d,Lt.e=xt.e,Lt.f=xt.f,Lt},jt}(),wt=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.left=0,yt.top=0,yt.width=0,yt.height=0,yt.defaultSize={x:50,y:20},yt.offsetX=0,yt.offsetY=0,yt.rotationAngle=0,yt.CB_DISTANCE=10,yt._suppressMarkerCreateEvent=!1,yt.container.transform.baseVal.appendItem(Ut.createTransform()),yt.setupControlBox(),yt}return It(Lt,jt),Object.defineProperty(Lt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var Tt=Ut.createTransform();this._visual.transform.baseVal.appendItem(Tt)},enumerable:!1,configurable:!0}),Lt.prototype.ownsTarget=function(xt){return!!jt.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ft=this.unrotatePoint(xt);if(this.manipulationStartX=Ft.x,this.manipulationStartY=Ft.y,this.offsetX=Ft.x-this.left,this.offsetY=Ft.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Tt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Tt)){this.activeGrip=this.rotatorGrip;var yt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=yt.x-this.width/2,this.top=yt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Lt.prototype.pointerUp=function(xt){var Tt=this.state;jt.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Lt.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},Lt.prototype.manipulate=function(xt){var Tt=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(Tt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Tt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Tt):this.state==="rotate"&&this.rotate(xt)},Lt.prototype.resize=function(xt){var Tt=this.manipulationStartLeft,Ft=this.manipulationStartWidth,yt=this.manipulationStartTop,ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Tt=this.manipulationStartLeft+xt.x-this.manipulationStartX,Ft=this.manipulationStartWidth+this.manipulationStartLeft-Tt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ft=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:yt=this.manipulationStartTop+xt.y-this.manipulationStartY,ee=this.manipulationStartHeight+this.manipulationStartTop-yt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ee=this.manipulationStartHeight+xt.y-this.manipulationStartY}Ft>=0?(this.left=Tt,this.width=Ft):(this.left=Tt+Ft,this.width=-Ft),ee>=0?(this.top=yt,this.height=ee):(this.top=yt+ee,this.height=-ee),this.setSize()},Lt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Lt.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var Tt=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*Tt,this.applyRotation()}},Lt.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},Lt.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Tt=this.container.getCTM(),Ft=Ut.createPoint(xt.x,xt.y);return{x:(Ft=Ft.matrixTransform(Tt)).x,y:Ft.y}},Lt.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Tt=this.container.getCTM();Tt=Tt.inverse();var Ft=Ut.createPoint(xt.x,xt.y);return{x:(Ft=Ft.matrixTransform(Tt)).x,y:Ft.y}},Lt.prototype.select=function(){jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Lt.prototype.deselect=function(){jt.prototype.deselect.call(this),this.controlBox.style.display="none"},Lt.prototype.setupControlBox=function(){this.controlBox=Ut.createGroup();var xt=Ut.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=Ut.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=Ut.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 at,this.addControlGrips(),this.controlBox.style.display="none"},Lt.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Lt.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()},Lt.prototype.createGrip=function(){var xt=new ft;return xt.visual.transform.baseVal.appendItem(Ut.createTransform()),this.controlBox.appendChild(xt.visual),xt},Lt.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,Tt=-xt/2,Ft=Tt,yt=(this.width+this.CB_DISTANCE)/2-xt/2,ee=(this.height+this.CB_DISTANCE)/2-xt/2,pe=this.height+this.CB_DISTANCE-xt/2,qt=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,Tt,Ft),this.positionGrip(this.controlGrips.topCenter.visual,yt,Ft),this.positionGrip(this.controlGrips.topRight.visual,qt,Ft),this.positionGrip(this.controlGrips.centerLeft.visual,Tt,ee),this.positionGrip(this.controlGrips.centerRight.visual,qt,ee),this.positionGrip(this.controlGrips.bottomLeft.visual,Tt,pe),this.positionGrip(this.controlGrips.bottomCenter.visual,yt,pe),this.positionGrip(this.controlGrips.bottomRight.visual,qt,pe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,yt,Ft-3*this.CB_DISTANCE)},Lt.prototype.positionGrip=function(xt,Tt,Ft){var yt=xt.transform.baseVal.getItem(0);yt.setTranslate(Tt,Ft),xt.transform.baseVal.replaceItem(yt,0)},Lt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Lt.prototype.showControlBox=function(){this.controlBox.style.display=""},Lt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},jt.prototype.getState.call(this))},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt);var Tt=xt;this.left=Tt.left,this.top=Tt.top,this.width=Tt.width,this.height=Tt.height,this.rotationAngle=Tt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Tt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Tt.containerTransformMatrix))},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt);var Ft=this.rotatePoint({x:this.left,y:this.top}),yt=this.unrotatePoint({x:Ft.x*xt,y:Ft.y*Tt});this.left=yt.x,this.top=yt.y,this.width=this.width*xt,this.height=this.height*Tt,this.adjustControlBox()},Lt}(ht),Et=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.fillColor="transparent",yt.strokeColor="transparent",yt.strokeWidth=0,yt.strokeDasharray="",yt.opacity=1,yt.setStrokeColor=yt.setStrokeColor.bind(yt),yt.setFillColor=yt.setFillColor.bind(yt),yt.setStrokeWidth=yt.setStrokeWidth.bind(yt),yt.setStrokeDasharray=yt.setStrokeDasharray.bind(yt),yt.createVisual=yt.createVisual.bind(yt),yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Lt.prototype.createVisual=function(){this.visual=Ut.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)},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Lt.prototype.manipulate=function(xt){jt.prototype.manipulate.call(this,xt)},Lt.prototype.resize=function(xt){jt.prototype.resize.call(this,xt),this.setSize()},Lt.prototype.setSize=function(){jt.prototype.setSize.call(this),Ut.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Lt.prototype.pointerUp=function(xt){jt.prototype.pointerUp.call(this,xt),this.setSize()},Lt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&Ut.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Lt.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&Ut.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Lt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&Ut.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Lt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&Ut.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Lt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},jt.prototype.getState.call(this))},Lt.prototype.restoreState=function(xt){var Tt=xt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),jt.prototype.restoreState.call(this,xt),this.setSize()},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt),this.setSize()},Lt.title="Rectangle marker",Lt}(wt),Nt=function(jt){function Lt(xt,Tt,Ft,yt){var ee=jt.call(this,xt,yt||'')||this;return ee.widths=[],ee.widthBoxes=[],ee.widths=Tt,ee.currentWidth=Ft,ee.setCurrentWidth=ee.setCurrentWidth.bind(ee),ee}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.widths.forEach(function(Ft){var yt=document.createElement("div");yt.style.display="flex",yt.style.flexGrow="2",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderColor=Ft===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){xt.setCurrentWidth(Ft,yt)}),Tt.appendChild(yt);var ee=document.createElement("div");ee.innerText=Ft.toString(),ee.style.marginRight="5px",yt.appendChild(ee);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.display="flex",pe.style.alignItems="center";var qt=document.createElement("hr");qt.style.minWidth="20px",qt.style.border="0px",qt.style.borderTop=Ft+"px solid "+xt.uiStyleSettings.toolboxColor,qt.style.flexGrow="2",pe.appendChild(qt),yt.appendChild(pe),xt.widthBoxes.push(yt)}),Tt},Lt.prototype.setCurrentWidth=function(xt,Tt){var Ft=this;this.currentWidth=xt,this.widthBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Lt}(et),Dt=function(jt){function Lt(xt,Tt,Ft,yt){var ee=jt.call(this,xt,yt||'')||this;return ee.styles=[],ee.styleBoxes=[],ee.styles=Tt,ee.currentStyle=Ft,ee.setCurrentStyle=ee.setCurrentStyle.bind(ee),ee}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.styles.forEach(function(Ft){var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.overflow="hidden",yt.style.maxWidth=100/xt.styles.length-5+"%",yt.style.borderColor=Ft===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){xt.setCurrentStyle(Ft,yt)}),Tt.appendChild(yt);var ee=document.createElement("div");ee.style.minHeight="20px",ee.style.flexGrow="2",ee.style.overflow="hidden";var pe=` `;ee.innerHTML=pe,yt.appendChild(ee),xt.styleBoxes.push(yt)}),Tt},Lt.prototype.setCurrentStyle=function(xt,Tt){var Ft=this;this.currentStyle=xt,this.styleBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Lt}(et),At=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.strokeColor=Ft.defaultColor,yt.strokeWidth=Ft.defaultStrokeWidth,yt.strokeDasharray=Ft.defaultStrokeDasharray,yt.strokePanel=new nt("Line color",Ft.defaultColorSet,Ft.defaultColor),yt.strokePanel.onColorChanged=yt.setStrokeColor,yt.strokeWidthPanel=new Nt("Line width",Ft.defaultStrokeWidths,Ft.defaultStrokeWidth),yt.strokeWidthPanel.onWidthChanged=yt.setStrokeWidth,yt.strokeStylePanel=new Dt("Line style",Ft.defaultStrokeDasharrays,Ft.defaultStrokeDasharray),yt.strokeStylePanel.onStyleChanged=yt.setStrokeDasharray,yt}return It(Lt,jt),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=jt.prototype.getState.call(this);return xt.typeName=Lt.typeName,xt},Lt.typeName="FrameMarker",Lt.title="Frame marker",Lt.icon='',Lt}(Et),Kt=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"},Wt=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.x1=0,yt.y1=0,yt.x2=0,yt.y2=0,yt.defaultLength=50,yt.manipulationStartX=0,yt.manipulationStartY=0,yt.manipulationStartX1=0,yt.manipulationStartY1=0,yt.manipulationStartX2=0,yt.manipulationStartY2=0,yt.setupControlBox(),yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!!jt.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Tt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Tt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Lt.prototype.pointerUp=function(xt){var Tt=this.state;jt.prototype.pointerUp.call(this,xt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Lt.prototype.adjustVisual=function(){},Lt.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},Lt.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},Lt.prototype.select=function(){jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Lt.prototype.deselect=function(){jt.prototype.deselect.call(this),this.controlBox.style.display="none"},Lt.prototype.setupControlBox=function(){this.controlBox=Ut.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Lt.prototype.adjustControlBox=function(){this.positionGrips()},Lt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Lt.prototype.createGrip=function(){var xt=new ft;return xt.visual.transform.baseVal.appendItem(Ut.createTransform()),this.controlBox.appendChild(xt.visual),xt},Lt.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},Lt.prototype.positionGrip=function(xt,Tt,Ft){var yt=xt.transform.baseVal.getItem(0);yt.setTranslate(Tt,Ft),xt.transform.baseVal.replaceItem(yt,0)},Lt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},jt.prototype.getState.call(this))},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt);var Tt=xt;this.x1=Tt.x1,this.y1=Tt.y1,this.x2=Tt.x2,this.y2=Tt.y2},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt),this.x1=this.x1*xt,this.y1=this.y1*Tt,this.x2=this.x2*xt,this.y2=this.y2*Tt,this.adjustVisual(),this.adjustControlBox()},Lt}(ht),xe=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.strokeColor="transparent",yt.strokeWidth=0,yt.strokeDasharray="",yt.setStrokeColor=yt.setStrokeColor.bind(yt),yt.setStrokeWidth=yt.setStrokeWidth.bind(yt),yt.setStrokeDasharray=yt.setStrokeDasharray.bind(yt),yt.strokeColor=Ft.defaultColor,yt.strokeWidth=Ft.defaultStrokeWidth,yt.strokeDasharray=Ft.defaultStrokeDasharray,yt.strokePanel=new nt("Line color",Ft.defaultColorSet,Ft.defaultColor),yt.strokePanel.onColorChanged=yt.setStrokeColor,yt.strokeWidthPanel=new Nt("Line width",Ft.defaultStrokeWidths,Ft.defaultStrokeWidth),yt.strokeWidthPanel.onWidthChanged=yt.setStrokeWidth,yt.strokeStylePanel=new Dt("Line style",Ft.defaultStrokeDasharrays,Ft.defaultStrokeDasharray),yt.strokeStylePanel.onStyleChanged=yt.setStrokeDasharray,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},Lt.prototype.createVisual=function(){this.visual=Ut.createGroup(),this.selectorLine=Ut.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ut.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)},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Lt.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()),Ut.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ut.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ut.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Lt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Lt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Lt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},jt.prototype.getState.call(this));return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt);var Tt=xt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.createVisual(),this.adjustVisual()},Lt.typeName="LineMarker",Lt.title="Line marker",Lt.icon='',Lt}(Wt),Vt=function(jt){function Lt(xt,Tt,Ft,yt){var ee=jt.call(this,xt,yt||'')||this;return ee.fonts=[],ee.fontBoxes=[],ee.fonts=Tt,ee.currentFont=Ft,ee.setCurrentFont=ee.setCurrentFont.bind(ee),ee}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.fonts.forEach(function(Ft){var yt=document.createElement("div");yt.style.display="inline-block",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.overflow="hidden",yt.style.maxWidth=100/xt.fonts.length-5+"%",yt.style.borderColor=Ft===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){xt.setCurrentFont(Ft,yt)}),Tt.appendChild(yt);var ee=document.createElement("div");ee.style.display="flex",ee.style.minHeight="20px",ee.style.flexGrow="2",ee.style.fontFamily=Ft,ee.style.overflow="hidden";var pe=document.createElement("div");pe.style.whiteSpace="nowrap",pe.style.overflow="hidden",pe.style.textOverflow="ellipsis",pe.innerHTML="The quick brown fox jumps over the lazy dog",ee.appendChild(pe),yt.appendChild(ee),xt.fontBoxes.push(yt)}),Tt},Lt.prototype.setCurrentFont=function(xt,Tt){var Ft=this;this.currentFont=xt,this.fontBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Lt}(et),Ie=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.color="transparent",yt.padding=5,yt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",yt.text=yt.DEFAULT_TEXT,yt.isMoved=!1,yt.color=Ft.defaultColor,yt.fontFamily=Ft.defaultFontFamily,yt.defaultSize={x:100,y:30},yt.setColor=yt.setColor.bind(yt),yt.setFont=yt.setFont.bind(yt),yt.renderText=yt.renderText.bind(yt),yt.sizeText=yt.sizeText.bind(yt),yt.textEditDivClicked=yt.textEditDivClicked.bind(yt),yt.showTextEditor=yt.showTextEditor.bind(yt),yt.setSize=yt.setSize.bind(yt),yt.positionTextEditor=yt.positionTextEditor.bind(yt),yt.colorPanel=new nt("Color",Ft.defaultColorSet,Ft.defaultColor),yt.colorPanel.onColorChanged=yt.setColor,yt.fontFamilyPanel=new Vt("Font",Ft.defaultFontFamilies,Ft.defaultFontFamily),yt.fontFamilyPanel.onFontChanged=yt.setFont,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){if(jt.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var Tt=!1;return this.textElement.childNodes.forEach(function(Ft){Ft===xt&&(Tt=!0)}),Tt},Lt.prototype.createVisual=function(){this.visual=Ut.createGroup(),this.bgRectangle=Ut.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ut.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ut.createTransform()),this.textElement.transform.baseVal.appendItem(Ut.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Lt.prototype.renderText=function(){var xt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Tt){xt.textElement.appendChild(Ut.createTSpan(Tt.trim()===""?" ":Tt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Lt.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),Tt=1;if(xt.width>0&&xt.height>0){var Ft=(1*this.width-this.width*this.padding*2/100)/xt.width,yt=(1*this.height-this.height*this.padding*2/100)/xt.height;Tt=Math.min(Ft,yt)}return Tt},Lt.prototype.getTextPosition=function(xt){var Tt=this.textElement.getBBox(),Ft=0,yt=0;return Tt.width>0&&Tt.height>0&&(Ft=(this.width-Tt.width*xt)/2,yt=this.height/2-Tt.height*xt/2),{x:Ft,y:yt}},Lt.prototype.sizeText=function(){var xt=this.textElement.getBBox(),Tt=this.getTextScale(),Ft=this.getTextPosition(Tt);Ft.y-=xt.y*Tt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ft.x+"px, "+Ft.y+"px) scale("+Tt+", "+Tt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ft.x,Ft.y),this.textElement.transform.baseVal.getItem(1).setScale(Tt,Tt))},Lt.prototype.manipulate=function(xt){jt.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Lt.prototype.resize=function(xt){jt.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},Lt.prototype.setSize=function(){jt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ut.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ut.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Lt.prototype.pointerUp=function(xt){var Tt=this.state;Tt==="creating"&&(this._suppressMarkerCreateEvent=!0),jt.prototype.pointerUp.call(this,xt),this.setSize(),(Tt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Lt.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Tt){Tt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Tt=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&Tt>.9;)Tt-=.1,xt.textEditor.style.fontSize=Math.max(Tt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Tt){if(Tt.clipboardData){var Ft=Tt.clipboardData.getData("text"),yt=window.getSelection();if(!yt.rangeCount)return!1;yt.deleteFromDocument(),yt.getRangeAt(0).insertNode(document.createTextNode(Ft)),Tt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Lt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),Tt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ft=this.textElement.getBBox(),yt={x:Ft.width*xt,y:Ft.height*xt};Tt.x-=yt.x/2,Tt.y-=yt.y/2,this.textEditor.style.top=Tt.y+"px",this.textEditor.style.left=Tt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Tt.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},Lt.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Lt.prototype.select=function(){jt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Lt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),jt.prototype.deselect.call(this)},Lt.prototype.dblClick=function(xt,Tt){jt.prototype.dblClick.call(this,xt,Tt),this.showTextEditor()},Lt.prototype.setColor=function(xt){this.textElement&&Ut.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},Lt.prototype.setFont=function(xt){this.textElement&&Ut.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Lt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Lt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},jt.prototype.getState.call(this));return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){var Tt=xt;this.color=Tt.color,this.fontFamily=Tt.fontFamily,this.padding=Tt.padding,this.text=Tt.text,this.createVisual(),jt.prototype.restoreState.call(this,xt),this.setSize()},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt),this.setSize(),this.sizeText(),this.positionTextEditor()},Lt.typeName="TextMarker",Lt.title="Text marker",Lt.icon='',Lt}(wt),Se=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.color="transparent",yt.lineWidth=3,yt.drawing=!1,yt.pixelRatio=1,yt.color=Ft.defaultColor,yt.lineWidth=Ft.defaultStrokeWidth,yt.pixelRatio=Ft.freehandPixelRatio,yt.setColor=yt.setColor.bind(yt),yt.addCanvas=yt.addCanvas.bind(yt),yt.finishCreation=yt.finishCreation.bind(yt),yt.setLineWidth=yt.setLineWidth.bind(yt),yt.colorPanel=new nt("Color",Ft.defaultColorSet,Ft.defaultColor),yt.colorPanel.onColorChanged=yt.setColor,yt.lineWidthPanel=new Nt("Line width",Ft.defaultStrokeWidths,Ft.defaultStrokeWidth),yt.lineWidthPanel.onWidthChanged=yt.setLineWidth,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},Lt.prototype.createVisual=function(){this.visual=Ut.createGroup(),this.drawingImage=Ut.createImage(),this.visual.appendChild(this.drawingImage);var xt=Ut.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},Lt.prototype.pointerDown=function(xt,Tt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xt.x,xt.y),this.drawing=!0):jt.prototype.pointerDown.call(this,xt,Tt)},Lt.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):jt.prototype.manipulate.call(this,xt)},Lt.prototype.resize=function(xt){jt.prototype.resize.call(this,xt),Ut.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ut.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Lt.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):jt.prototype.pointerUp.call(this,xt)},Lt.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)},Lt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),jt.prototype.select.call(this)},Lt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),jt.prototype.deselect.call(this)},Lt.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Tt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ft=Tt[0],yt=Tt[1],ee=Tt[2],pe=Tt[3],qt=!1,Zt=0;Zt0&&(qt=!0,Ztpe&&(pe=Zt),fe>ee&&(ee=fe));if(qt){this.left=Ft/this.pixelRatio,this.top=yt/this.pixelRatio,this.width=(ee-Ft)/this.pixelRatio,this.height=(pe-yt)/this.pixelRatio;var ce=document.createElement("canvas");ce.width=ee-Ft,ce.height=pe-yt,ce.getContext("2d").putImageData(this.canvasContext.getImageData(Ft,yt,ee-Ft,pe-yt),0,0),this.drawingImgUrl=ce.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Lt.prototype.setDrawingImage=function(){Ut.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ut.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Lt.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},Lt.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},jt.prototype.getState.call(this));return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){this.createVisual(),jt.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt),this.setDrawingImage()},Lt.typeName="FreehandMarker",Lt.title="Freehand marker",Lt.icon='',Lt}(wt),Ye=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Ft||'')||this;return yt.typeBoxes=[],yt.currentType=Tt,yt.setCurrentType=yt.setCurrentType.bind(yt),yt}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2";for(var Ft=function(pe){var qt="both";switch(pe){case 0:qt="both";break;case 1:qt="start";break;case 2:qt="end";break;case 3:qt="none"}var Zt=document.createElement("div");if(Zt.style.display="flex",Zt.style.flexGrow="2",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.borderColor=qt===yt.currentType?yt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){xt.setCurrentType(qt,Zt)}),Tt.appendChild(Zt),qt==="both"||qt==="start"){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.minHeight="20px",fe.innerHTML=` `,fe.style.marginLeft="5px",Zt.appendChild(fe)}var ce=document.createElement("div");ce.style.display="flex",ce.style.alignItems="center",ce.style.minHeight="20px",ce.style.flexGrow="2";var ne=document.createElement("hr");if(ne.style.minWidth="20px",ne.style.border="0px",ne.style.borderTop="3px solid "+(yt.uiStyleSettings!==void 0?yt.uiStyleSettings.toolboxColor:"#eeeeee"),ne.style.flexGrow="2",ce.appendChild(ne),Zt.appendChild(ce),qt==="both"||qt==="end"){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.alignItems="center",Ne.style.minHeight="20px",Ne.innerHTML=` `,Ne.style.marginRight="5px",Zt.appendChild(Ne)}yt.typeBoxes.push(Zt)},yt=this,ee=0;ee<4;ee++)Ft(ee);return Tt},Lt.prototype.setCurrentType=function(xt,Tt){var Ft=this;this.currentType=xt,this.typeBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings!==void 0?Ft.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Lt}(et),Le=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.arrowType="end",yt.arrowBaseHeight=10,yt.arrowBaseWidth=10,yt.getArrowPoints=yt.getArrowPoints.bind(yt),yt.setArrowType=yt.setArrowType.bind(yt),yt.arrowTypePanel=new Ye("Arrow type","end"),yt.arrowTypePanel.onArrowTypeChanged=yt.setArrowType,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},Lt.prototype.getArrowPoints=function(xt,Tt){var Ft=this.arrowBaseWidth+2*this.strokeWidth,yt=this.arrowBaseHeight+2*this.strokeWidth;return xt-Ft/2+","+(Tt+yt/2)+" "+xt+","+(Tt-yt/2)+" "+(xt+Ft/2)+","+(Tt+yt/2)},Lt.prototype.createTips=function(){this.arrow1=Ut.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ut.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ut.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ut.createTransform()),this.visual.appendChild(this.arrow2)},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.state==="creating"&&this.createTips()},Lt.prototype.adjustVisual=function(){if(jt.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",Ut.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ut.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Tt=this.arrow1.transform.baseVal.getItem(0);Tt.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Tt,0);var Ft=this.arrow2.transform.baseVal.getItem(0);Ft.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ft,0)}},Lt.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},jt.prototype.getState.call(this));return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt);var Tt=xt;this.arrowType=Tt.arrowType,this.createTips(),this.adjustVisual()},Lt.typeName="ArrowMarker",Lt.title="Arrow marker",Lt.icon='',Lt}(xe),Pe=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.fillColor=Ft.defaultFillColor,yt.strokeWidth=0,yt.fillPanel=new nt("Color",Ft.defaultColorSet,Ft.defaultFillColor),yt.fillPanel.onColorChanged=yt.setFillColor,yt}return It(Lt,jt),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=jt.prototype.getState.call(this);return xt.typeName=Lt.typeName,xt},Lt.typeName="CoverMarker",Lt.title="Cover marker",Lt.icon='',Lt}(Et),We=function(jt){function Lt(xt,Tt,Ft,yt){var ee=jt.call(this,xt,yt||'')||this;return ee.opacities=[],ee.opacityBoxes=[],ee.opacities=Tt,ee.currentOpacity=Ft,ee.setCurrentOpacity=ee.setCurrentOpacity.bind(ee),ee}return It(Lt,jt),Lt.prototype.getUi=function(){var xt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",Tt.style.justifyContent="space-between",this.opacities.forEach(function(Ft){var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.justifyContent="center",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderColor=Ft===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){xt.setCurrentOpacity(Ft,yt)}),Tt.appendChild(yt);var ee=document.createElement("div");ee.innerText=100*Ft+"%",yt.appendChild(ee),xt.opacityBoxes.push(yt)}),Tt},Lt.prototype.setCurrentOpacity=function(xt,Tt){var Ft=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(yt){yt.style.borderColor=yt===Tt?Ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Lt}(et),Ue=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.setOpacity=yt.setOpacity.bind(yt),yt.fillColor=Ft.defaultHighlightColor,yt.strokeWidth=0,yt.opacity=Ft.defaultHighlightOpacity,yt.fillPanel=new nt("Color",Ft.defaultColorSet,yt.fillColor),yt.fillPanel.onColorChanged=yt.setFillColor,yt.opacityPanel=new We("Opacity",Ft.defaultOpacitySteps,yt.opacity),yt.opacityPanel.onOpacityChanged=yt.setOpacity,yt}return It(Lt,jt),Lt.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&Ut.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=jt.prototype.getState.call(this);return xt.typeName=Lt.typeName,xt},Lt.typeName="HighlightMarker",Lt.title="Highlight marker",Lt.icon='',Lt}(Pe),ue='',Ht='',ke=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.bgColor="transparent",yt.tipPosition={x:0,y:0},yt.tipBase1Position={x:0,y:0},yt.tipBase2Position={x:0,y:0},yt.tipMoving=!1,yt.color=Ft.defaultStrokeColor,yt.bgColor=Ft.defaultFillColor,yt.fontFamily=Ft.defaultFontFamily,yt.defaultSize={x:100,y:30},yt.setBgColor=yt.setBgColor.bind(yt),yt.getTipPoints=yt.getTipPoints.bind(yt),yt.positionTip=yt.positionTip.bind(yt),yt.setTipPoints=yt.setTipPoints.bind(yt),yt.colorPanel=new nt("Text color",Ft.defaultColorSet,yt.color,ue),yt.colorPanel.onColorChanged=yt.setColor,yt.bgColorPanel=new nt("Fill color",Ft.defaultColorSet,yt.bgColor,Ht),yt.bgColorPanel.onColorChanged=yt.setBgColor,yt.fontFamilyPanel=new Vt("Font",Ft.defaultFontFamilies,Ft.defaultFontFamily),yt.fontFamilyPanel.onFontChanged=yt.setFont,yt.tipGrip=new ft,yt.tipGrip.visual.transform.baseVal.appendItem(Ut.createTransform()),yt.controlBox.appendChild(yt.tipGrip.visual),yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return jt.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},Lt.prototype.createTip=function(){Ut.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ut.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Lt.prototype.pointerDown=function(xt,Tt){this.state==="new"&&jt.prototype.pointerDown.call(this,xt,Tt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Tt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):jt.prototype.pointerDown.call(this,xt,Tt)},Lt.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,jt.prototype.pointerUp.call(this,xt);else{var Tt=this.state==="creating";jt.prototype.pointerUp.call(this,xt),this.setTipPoints(Tt),this.positionTip()}},Lt.prototype.manipulate=function(xt){if(this.tipMoving){var Tt=this.unrotatePoint(xt);this.tipPosition={x:Tt.x-this.manipulationStartLeft,y:Tt.y-this.manipulationStartTop},this.positionTip()}else jt.prototype.manipulate.call(this,xt)},Lt.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(Ut.setAttributes(this.bgRectangle,[["fill",xt]]),Ut.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},Lt.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},Lt.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var Tt=Math.min(this.height/2,15),Ft=this.height/5;xt&&(this.tipPosition={x:Tt+Ft/2,y:this.height+20});var yt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?yt.1)){var xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Tt=this.tip1.transform.baseVal.getItem(0);Tt.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Tt,0);var Ft=this.tip2.transform.baseVal.getItem(0);Ft.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ft,0)}},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=jt.prototype.getState.call(this);return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},Lt.typeName="MeasurementMarker",Lt.title="Measurement marker",Lt.icon='',Lt}(xe),Ee=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.strokePanel.colors=Ft.defaultColorSet,yt.fillColor="transparent",yt}return It(Lt,jt),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=jt.prototype.getState.call(this);return xt.typeName=Lt.typeName,xt},Lt.typeName="EllipseFrameMarker",Lt.title="Ellipse frame marker",Lt.icon='',Lt}(pn),Ke=function(){function jt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(jt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),jt.prototype.addUndoStep=function(Lt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Lt)||(this.undoStack.push(Lt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Lt)&&this.redoStack.splice(0,this.redoStack.length))},jt.prototype.replaceLastUndoStep=function(Lt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Lt)},jt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},jt.prototype.undo=function(){if(this.undoStack.length>1){var Lt=this.undoStack.pop();return Lt!==void 0&&this.redoStack.push(Lt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},jt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},jt}(),gn=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.strokeColor="transparent",yt.strokeWidth=0,yt.strokeDasharray="",yt.curveX=0,yt.curveY=0,yt.manipulationStartCurveX=0,yt.manipulationStartCurveY=0,yt.setStrokeColor=yt.setStrokeColor.bind(yt),yt.setStrokeWidth=yt.setStrokeWidth.bind(yt),yt.setStrokeDasharray=yt.setStrokeDasharray.bind(yt),yt.positionGrips=yt.positionGrips.bind(yt),yt.addControlGrips=yt.addControlGrips.bind(yt),yt.adjustVisual=yt.adjustVisual.bind(yt),yt.setupControlBox=yt.setupControlBox.bind(yt),yt.resize=yt.resize.bind(yt),yt.strokeColor=Ft.defaultColor,yt.strokeWidth=Ft.defaultStrokeWidth,yt.strokeDasharray=Ft.defaultStrokeDasharray,yt.strokePanel=new nt("Line color",Ft.defaultColorSet,Ft.defaultColor),yt.strokePanel.onColorChanged=yt.setStrokeColor,yt.strokeWidthPanel=new Nt("Line width",Ft.defaultStrokeWidths,Ft.defaultStrokeWidth),yt.strokeWidthPanel.onWidthChanged=yt.setStrokeWidth,yt.strokeStylePanel=new Dt("Line style",Ft.defaultStrokeDasharrays,Ft.defaultStrokeDasharray),yt.strokeStylePanel.onStyleChanged=yt.setStrokeDasharray,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},Lt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Lt.prototype.createVisual=function(){this.visual=Ut.createGroup(),this.selectorCurve=Ut.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ut.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)},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Tt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Lt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ut.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ut.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ut.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Lt.prototype.setupControlBox=function(){jt.prototype.setupControlBox.call(this),this.curveControlLine1=Ut.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ut.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)},Lt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,jt.prototype.addControlGrips.call(this)},Lt.prototype.positionGrips=function(){jt.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Lt.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),jt.prototype.manipulate.call(this,xt)},Lt.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),jt.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Lt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Lt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Lt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},Lt.prototype.scale=function(xt,Tt){this.curveX=this.curveX*xt,this.curveY=this.curveY*Tt,jt.prototype.scale.call(this,xt,Tt)},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},jt.prototype.getState.call(this));return xt.typeName=Lt.typeName,xt},Lt.prototype.restoreState=function(xt){jt.prototype.restoreState.call(this,xt);var Tt=xt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.curveX=Tt.curveX,this.curveY=Tt.curveY,this.createVisual(),this.adjustVisual()},Lt.typeName="CurveMarker",Lt.title="Curve marker",Lt.icon='',Lt}(Wt),Bn=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,Tt,Ft)||this;return yt.fillColor="transparent",yt.strokeColor="transparent",yt.strokeWidth=0,yt.strokeDasharray="",yt.textColor="transparent",yt.fontSize="1rem",yt.isMoved=!1,yt.captionText="Caption",yt.PADDING=5,yt.captionBoxWidth=0,yt.captionBoxHeight=0,yt.strokeColor=Ft.defaultColor,yt.strokeWidth=Ft.defaultStrokeWidth,yt.strokeDasharray=Ft.defaultStrokeDasharray,yt.fillColor=Ft.defaultFillColor,yt.textColor=Ft.defaultStrokeColor,yt.fontFamily=Ft.defaultFontFamily,yt.fontSize=Ft.defaultCaptionFontSize,yt.captionText=Ft.defaultCaptionText,yt.setStrokeColor=yt.setStrokeColor.bind(yt),yt.setFillColor=yt.setFillColor.bind(yt),yt.setStrokeWidth=yt.setStrokeWidth.bind(yt),yt.setStrokeDasharray=yt.setStrokeDasharray.bind(yt),yt.createVisual=yt.createVisual.bind(yt),yt.sizeCaption=yt.sizeCaption.bind(yt),yt.setCaptionText=yt.setCaptionText.bind(yt),yt.showTextEditor=yt.showTextEditor.bind(yt),yt.positionTextEditor=yt.positionTextEditor.bind(yt),yt.finishTextEditing=yt.finishTextEditing.bind(yt),yt.setFont=yt.setFont.bind(yt),yt.setTextColor=yt.setTextColor.bind(yt),yt.strokePanel=new nt("Line color",$t(Ft.defaultColorSet,["transparent"]),yt.strokeColor),yt.strokePanel.onColorChanged=yt.setStrokeColor,yt.fillPanel=new nt("Fill color",$t(Ft.defaultColorSet,["transparent"]),yt.fillColor,Ht),yt.fillPanel.onColorChanged=yt.setFillColor,yt.strokeWidthPanel=new Nt("Line width",Ft.defaultStrokeWidths,Ft.defaultStrokeWidth),yt.strokeWidthPanel.onWidthChanged=yt.setStrokeWidth,yt.strokeStylePanel=new Dt("Line style",Ft.defaultStrokeDasharrays,Ft.defaultStrokeDasharray),yt.strokeStylePanel.onStyleChanged=yt.setStrokeDasharray,yt.fontFamilyPanel=new Vt("Font",Ft.defaultFontFamilies,Ft.defaultFontFamily),yt.fontFamilyPanel.onFontChanged=yt.setFont,yt.textColorPanel=new nt("Text color",Ft.defaultColorSet,yt.textColor,ue),yt.textColorPanel.onColorChanged=yt.setTextColor,yt}return It(Lt,jt),Lt.prototype.ownsTarget=function(xt){return!(!jt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},Lt.prototype.createVisual=function(){this.visual=Ut.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ut.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ut.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=Ut.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()},Lt.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Lt.prototype.pointerDown=function(xt,Tt){jt.prototype.pointerDown.call(this,xt,Tt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Lt.prototype.manipulate=function(xt){jt.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Lt.prototype.resize=function(xt){jt.prototype.resize.call(this,xt),this.setSize()},Lt.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ut.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')"]]),Ut.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')"]])},Lt.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Tt){Tt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Tt){Tt.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Lt.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"))},Lt.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Lt.prototype.setFont=function(xt){this.captionElement&&Ut.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Lt.prototype.setTextColor=function(xt){this.captionElement&&Ut.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Lt.prototype.setSize=function(){jt.prototype.setSize.call(this),Ut.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Lt.prototype.pointerUp=function(xt){jt.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Lt.prototype.dblClick=function(xt,Tt){jt.prototype.dblClick.call(this,xt,Tt),this.showTextEditor()},Lt.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&Ut.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Lt.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&Ut.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Lt.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&Ut.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Lt.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&Ut.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},jt.prototype.getState.call(this));return xt.typeName=this.typeName,xt},Lt.prototype.restoreState=function(xt){var Tt=xt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.textColor=Tt.textColor,this.fontFamily=Tt.fontFamily,this.captionText=Tt.captionText,this.fontSize=Tt.fontSize,this.createVisual(),jt.prototype.restoreState.call(this,xt),this.setSize()},Lt.prototype.scale=function(xt,Tt){jt.prototype.scale.call(this,xt,Tt),this.setSize()},Lt.typeName="CaptionFrameMarker",Lt.title="Caption frame marker",Lt.icon='',Lt}(wt),dn=function(){function jt(Lt,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Lt,this.cancelable=xt}return Object.defineProperty(jt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),jt.prototype.preventDefault=function(){this._defaultPrevented=!0},jt}(),In=function(jt){function Lt(xt,Tt,Ft){var yt=jt.call(this,xt,!1)||this;return yt.dataUrl=Tt,yt.state=Ft,yt}return It(Lt,jt),Lt}(dn),Ce=function(jt){function Lt(xt,Tt,Ft){Ft===void 0&&(Ft=!1);var yt=jt.call(this,xt,Ft)||this;return yt.marker=Tt,yt}return It(Lt,jt),Lt}(dn),$n=function(){function jt(){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 jt.prototype.addEventListener=function(Lt,xt){this[Lt].push(xt)},jt.prototype.removeEventListener=function(Lt,xt){var Tt=this[Lt].indexOf(xt);Tt>-1&&this[Lt].splice(Tt,1)},jt}(),Qn=function(){function jt(Lt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Kt,this._isOpen=!1,this.undoRedoManager=new Ke,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 $n,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=jt.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Lt,this.targetRoot=document.body,this.width=Lt.clientWidth,this.height=Lt.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(jt.prototype,"ALL_MARKER_TYPES",{get:function(){return[At,Se,Le,Ie,Ee,pn,Ue,ke,ln,Pe,xe,gn,Bn]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[At,Se,Le,Ie,pn,Ue,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[At,Se,Le,Ie,Ue]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Lt){var xt=this;this._availableMarkerTypes.splice(0),Lt.forEach(function(Tt){if(typeof Tt=="string"){var Ft=xt.ALL_MARKER_TYPES.find(function(yt){return yt.typeName===Tt});Ft!==void 0&&xt._availableMarkerTypes.push(Ft)}else xt._availableMarkerTypes.push(Tt)})},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Lt){this._zoomLevel=Lt,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(jt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),jt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Jt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},jt.prototype.show=function(){var Lt=this;this.styles.styleSheetRoot===void 0&&we.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=we.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new dn(Lt))})},jt.prototype.render=function(){return oe(this,void 0,void 0,function(){var Lt;return de(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(Lt=new De).naturalSize=this.renderAtNaturalSize,Lt.imageType=this.renderImageType,Lt.imageQuality=this.renderImageQuality,Lt.markersOnly=this.renderMarkersOnly,Lt.width=this.renderWidth,Lt.height=this.renderHeight,[4,Lt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,Lt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},jt.prototype.close=function(Lt){var xt=this;if(Lt===void 0&&(Lt=!1),this.isOpen){var Tt=!1;Lt||this.eventListeners.beforeclose.forEach(function(Ft){var yt=new dn(xt,!0);Ft(yt),yt.defaultPrevented&&(Tt=!0)}),Tt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ft){return Ft(new dn(xt))}),this.detachEvents(),this._isOpen=!1)}},jt.prototype.addMarkersToToolbar=function(){for(var Lt,xt=[],Tt=0;Ttthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Lt:this.editorCanvas.clientWidth,Tt=xt',Lt.title="Powered by marker.js",Lt.style.display="grid",Lt.style.alignItems="center",Lt.style.justifyItems="center",Lt.style.padding="3px",Lt.style.width="20px",Lt.style.height="20px",this.logoUI.appendChild(Lt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},jt.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")},jt.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"},jt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},jt.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 Lt=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=Lt+"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 me(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-1&&this.markers.splice(this.markers.indexOf(Lt),1),Lt.dispose()},jt.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())},jt.prototype.toolbarButtonClicked=function(Lt,xt){if(Lt==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(Lt==="action")switch(xt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},jt.prototype.deleteSelectedMarker=function(){var Lt=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ft){var yt=new Ce(Lt,Lt._currentMarker,!0);Ft(yt),yt.defaultPrevented&&(xt=!0)}),!xt){var Tt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ft){return Ft(new Ce(Lt,Tt))})}}},jt.prototype.clear=function(){var Lt=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ee){var pe=new Ce(Lt,void 0,!0);ee(pe),pe.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var Tt=function(ee){var pe=Ft.markers[ee];Ft.setCurrentMarker(Ft.markers[ee]),Ft._currentMarker.dispose(),Ft.markerImage.removeChild(Ft._currentMarker.container),Ft.markers.splice(Ft.markers.indexOf(Ft._currentMarker),1),Ft.eventListeners.markerdelete.forEach(function(qt){return qt(new Ce(Lt,pe))})},Ft=this,yt=this.markers.length-1;yt>=0;yt--)Tt(yt);this.addUndoStep()}},Object.defineProperty(jt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),jt.prototype.showNotesEditor=function(){var Lt;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=(Lt=this._currentMarker.notes)!==null&&Lt!==void 0?Lt:"",this.overlayContainer.appendChild(this.notesArea))},jt.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)},jt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},jt.prototype.addUndoStep=function(){var Lt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),Tt=this.undoRedoManager.getLastUndoStep();if(!Tt||Tt.width===xt.width&&Tt.height===xt.height){var Ft=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),Ft1&&this.panTo({x:Lt.clientX,y:Lt.clientY}))},jt.prototype.onPointerUp=function(Lt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY)),this.isDragging=!1,this.addUndoStep()},jt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},jt.prototype.onKeyUp=function(Lt){this._currentMarker===void 0||this.notesArea!==void 0||Lt.key!=="Delete"&&Lt.key!=="Backspace"||this.deleteSelectedMarker()},jt.prototype.clientToLocalCoordinates=function(Lt,xt){var Tt=this.markerImage.getBoundingClientRect();return{x:(Lt-Tt.left)/this.zoomLevel,y:(xt-Tt.top)/this.zoomLevel}},jt.prototype.onWindowResize=function(){this.positionUI()},jt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Lt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Lt+"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()},jt.prototype.addLicenseKey=function(Lt){Jt.addKey(Lt)},jt.prototype.addEventListener=function(Lt,xt){this.eventListeners.addEventListener(Lt,xt)},jt.prototype.removeEventListener=function(Lt,xt){this.eventListeners.removeEventListener(Lt,xt)},jt.prototype.renderState=function(Lt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Lt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(jt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),jt.prototype.focus=function(){var Lt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new dn(Lt))}))},jt.prototype.blur=function(){var Lt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new dn(Lt))}))},jt.instanceCounter=0,jt}()},17115:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{ZP:function(){return Jt}});var vt=Pt(72071),It=Pt(59301),oe=Pt(47273),de=0,$t=(0,oe.Z)();function Ut(){var De;return $t?(De=de,de+=1):De="TEST_OR_SSR",De}function Jt(De){var we=It.useState(),te=(0,vt.Z)(we,2),Fe=te[0],re=te[1];return It.useEffect(function(){re("rc_select_".concat(Ut()))},[]),De||Fe}},77861:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Ac:function(){return Ne},Xo:function(){return ni},Wx:function(){return Bi},ZP:function(){return cn},lk:function(){return wt}});var vt=Pt(96663),It=Pt(19127),oe=Pt(90493),de=Pt(44127),$t=Pt(72071),Ut=Pt(6620),Jt=Pt(20135),De=Pt(18929),we=Pt(48736),te=Pt(59301),Fe=Pt(92310),re=Pt.n(Fe),me=Pt(34280),Ot=Pt(49658),et=Pt(10228),nt=Pt(8654),ht=function(ie){var Qe=ie.className,yn=ie.customizeIcon,Nn=ie.customizeIconProps,_n=ie.onMouseDown,le=ie.onClick,mn=ie.children,Gn;return typeof yn=="function"?Gn=yn(Nn):Gn=yn,te.createElement("span",{className:Qe,onMouseDown:function(Re){Re.preventDefault(),_n&&_n(Re)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:le,"aria-hidden":!0},Gn!==void 0?Gn:te.createElement("span",{className:re()(Qe.split(/\s+/).map(function(si){return"".concat(si,"-icon")}))},mn))},at=ht;function ft(ve,ie,Qe,yn,Nn){var _n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,le=arguments.length>6?arguments[6]:void 0,mn=arguments.length>7?arguments[7]:void 0,Gn=te.useMemo(function(){if((0,Jt.Z)(yn)==="object")return yn.clearIcon;if(Nn)return Nn},[yn,Nn]),si=te.useMemo(function(){return!!(!_n&&yn&&(Qe.length||le)&&!(mn==="combobox"&&le===""))},[yn,_n,Qe.length,le,mn]);return{allowClear:si,clearIcon:te.createElement(at,{className:"".concat(ve,"-clear"),onMouseDown:ie,customizeIcon:Gn},"\xD7")}}var mt=te.createContext(null);function wt(){return te.useContext(mt)}function Et(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ie=te.useState(!1),Qe=(0,$t.Z)(ie,2),yn=Qe[0],Nn=Qe[1],_n=te.useRef(null),le=function(){window.clearTimeout(_n.current)};te.useEffect(function(){return le},[]);var mn=function(si,Re){le(),_n.current=window.setTimeout(function(){Nn(si),Re&&Re()},ve)};return[yn,mn,le]}function Nt(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ie=te.useRef(null),Qe=te.useRef(null);te.useEffect(function(){return function(){window.clearTimeout(Qe.current)}},[]);function yn(Nn){(Nn||ie.current===null)&&(ie.current=Nn),window.clearTimeout(Qe.current),Qe.current=window.setTimeout(function(){ie.current=null},ve)}return[function(){return ie.current},yn]}function Dt(ve,ie,Qe,yn){var Nn=te.useRef(null);Nn.current={open:ie,triggerOpen:Qe,customizedTrigger:yn},te.useEffect(function(){function _n(le){var mn;if(!((mn=Nn.current)!==null&&mn!==void 0&&mn.customizedTrigger)){var Gn=le.target;Gn.shadowRoot&&le.composed&&(Gn=le.composedPath()[0]||Gn),Nn.current.open&&ve().filter(function(si){return si}).every(function(si){return!si.contains(Gn)&&si!==Gn})&&Nn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_n),function(){return window.removeEventListener("mousedown",_n)}},[])}var At=Pt(26112),Kt=Pt(11780),Wt=function(ie,Qe){var yn,Nn,_n=ie.prefixCls,le=ie.id,mn=ie.inputElement,Gn=ie.disabled,si=ie.tabIndex,Re=ie.autoFocus,fn=ie.autoComplete,He=ie.editable,je=ie.activeDescendantId,vn=ie.value,rn=ie.maxLength,bn=ie.onKeyDown,xn=ie.onMouseDown,On=ie.onChange,zn=ie.onPaste,yi=ie.onCompositionStart,Xe=ie.onCompositionEnd,Li=ie.open,ji=ie.attrs,Ei=mn||te.createElement("input",null),nn=Ei,Vn=nn.ref,ze=nn.props,Ge=ze.onKeyDown,Oe=ze.onChange,un=ze.onMouseDown,kn=ze.onCompositionStart,Tn=ze.onCompositionEnd,Rn=ze.style;return(0,we.Kp)(!("maxLength"in Ei.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ei=te.cloneElement(Ei,(0,de.Z)((0,de.Z)((0,de.Z)({type:"search"},ze),{},{id:le,ref:(0,nt.sQ)(Qe,Vn),disabled:Gn,tabIndex:si,autoComplete:fn||"off",autoFocus:Re,className:re()("".concat(_n,"-selection-search-input"),(yn=Ei)===null||yn===void 0||(Nn=yn.props)===null||Nn===void 0?void 0:Nn.className),role:"combobox","aria-label":"Search","aria-expanded":Li||!1,"aria-haspopup":"listbox","aria-owns":"".concat(le,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(le,"_list"),"aria-activedescendant":Li?je:void 0},ji),{},{value:He?vn:"",maxLength:rn,readOnly:!He,unselectable:He?null:"on",style:(0,de.Z)((0,de.Z)({},Rn),{},{opacity:He?null:0}),onKeyDown:function(qe){bn(qe),Ge&&Ge(qe)},onMouseDown:function(qe){xn(qe),un&&un(qe)},onChange:function(qe){On(qe),Oe&&Oe(qe)},onCompositionStart:function(qe){yi(qe),kn&&kn(qe)},onCompositionEnd:function(qe){Xe(qe),Tn&&Tn(qe)},onPaste:zn})),Ei},xe=te.forwardRef(Wt);xe.displayName="Input";var Vt=xe;function Ie(ve){return Array.isArray(ve)?ve:ve!==void 0?[ve]:[]}var Se=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=Se;function Le(ve){return ve!=null}function Pe(ve){return!ve&&ve!==0}function We(ve){return["string","number"].includes((0,Jt.Z)(ve))}function Ue(ve){var ie=void 0;return ve&&(We(ve.title)?ie=ve.title.toString():We(ve.label)&&(ie=ve.label.toString())),ie}function ue(ve,ie){Ye?te.useLayoutEffect(ve,ie):te.useEffect(ve,ie)}function Ht(ve){var ie;return(ie=ve.key)!==null&&ie!==void 0?ie:ve.value}var ke=function(ie){ie.preventDefault(),ie.stopPropagation()},pn=function(ie){var Qe=ie.id,yn=ie.prefixCls,Nn=ie.values,_n=ie.open,le=ie.searchValue,mn=ie.autoClearSearchValue,Gn=ie.inputRef,si=ie.placeholder,Re=ie.disabled,fn=ie.mode,He=ie.showSearch,je=ie.autoFocus,vn=ie.autoComplete,rn=ie.activeDescendantId,bn=ie.tabIndex,xn=ie.removeIcon,On=ie.maxTagCount,zn=ie.maxTagTextLength,yi=ie.maxTagPlaceholder,Xe=yi===void 0?function(Ai){return"+ ".concat(Ai.length," ...")}:yi,Li=ie.tagRender,ji=ie.onToggleOpen,Ei=ie.onRemove,nn=ie.onInputChange,Vn=ie.onInputPaste,ze=ie.onInputKeyDown,Ge=ie.onInputMouseDown,Oe=ie.onInputCompositionStart,un=ie.onInputCompositionEnd,kn=te.useRef(null),Tn=(0,te.useState)(0),Rn=(0,$t.Z)(Tn,2),ei=Rn[0],qe=Rn[1],pi=(0,te.useState)(!1),tn=(0,$t.Z)(pi,2),Ci=tn[0],Ui=tn[1],$i="".concat(yn,"-selection"),Co=_n||fn==="multiple"&&mn===!1||fn==="tags"?le:"",lo=fn==="tags"||fn==="multiple"&&mn===!1||He&&(_n||Ci);ue(function(){qe(kn.current.scrollWidth)},[Co]);function Si(Ai,vo,ao,Eo,Ho){return te.createElement("span",{className:re()("".concat($i,"-item"),(0,oe.Z)({},"".concat($i,"-item-disabled"),ao)),title:Ue(Ai)},te.createElement("span",{className:"".concat($i,"-item-content")},vo),Eo&&te.createElement(at,{className:"".concat($i,"-item-remove"),onMouseDown:ke,onClick:Ho,customizeIcon:xn},"\xD7"))}function ii(Ai,vo,ao,Eo,Ho){var Zi=function(Fi){ke(Fi),ji(!_n)};return te.createElement("span",{onMouseDown:Zi},Li({label:vo,value:Ai,disabled:ao,closable:Eo,onClose:Ho}))}function Yi(Ai){var vo=Ai.disabled,ao=Ai.label,Eo=Ai.value,Ho=!Re&&!vo,Zi=ao;if(typeof zn=="number"&&(typeof ao=="string"||typeof ao=="number")){var xi=String(Zi);xi.length>zn&&(Zi="".concat(xi.slice(0,zn),"..."))}var Fi=function(co){co&&co.stopPropagation(),Ei(Ai)};return typeof Li=="function"?ii(Eo,Zi,vo,Ho,Fi):Si(Ai,Zi,vo,Ho,Fi)}function oo(Ai){var vo=typeof Xe=="function"?Xe(Ai):Xe;return Si({title:vo},vo,!1)}var Yn=te.createElement("div",{className:"".concat($i,"-search"),style:{width:ei},onFocus:function(){Ui(!0)},onBlur:function(){Ui(!1)}},te.createElement(Vt,{ref:Gn,open:_n,prefixCls:yn,id:Qe,inputElement:null,disabled:Re,autoFocus:je,autoComplete:vn,editable:lo,activeDescendantId:rn,value:Co,onKeyDown:ze,onMouseDown:Ge,onChange:nn,onPaste:Vn,onCompositionStart:Oe,onCompositionEnd:un,tabIndex:bn,attrs:(0,At.Z)(ie,!0)}),te.createElement("span",{ref:kn,className:"".concat($i,"-search-mirror"),"aria-hidden":!0},Co,"\xA0")),zt=te.createElement(Kt.Z,{prefixCls:"".concat($i,"-overflow"),data:Nn,renderItem:Yi,renderRest:oo,suffix:Yn,itemKey:Ht,maxCount:On});return te.createElement(te.Fragment,null,zt,!Nn.length&&!Co&&te.createElement("span",{className:"".concat($i,"-placeholder")},si))},ln=pn,Ee=function(ie){var Qe=ie.inputElement,yn=ie.prefixCls,Nn=ie.id,_n=ie.inputRef,le=ie.disabled,mn=ie.autoFocus,Gn=ie.autoComplete,si=ie.activeDescendantId,Re=ie.mode,fn=ie.open,He=ie.values,je=ie.placeholder,vn=ie.tabIndex,rn=ie.showSearch,bn=ie.searchValue,xn=ie.activeValue,On=ie.maxLength,zn=ie.onInputKeyDown,yi=ie.onInputMouseDown,Xe=ie.onInputChange,Li=ie.onInputPaste,ji=ie.onInputCompositionStart,Ei=ie.onInputCompositionEnd,nn=ie.title,Vn=te.useState(!1),ze=(0,$t.Z)(Vn,2),Ge=ze[0],Oe=ze[1],un=Re==="combobox",kn=un||rn,Tn=He[0],Rn=bn||"";un&&xn&&!Ge&&(Rn=xn),te.useEffect(function(){un&&Oe(!1)},[un,xn]);var ei=Re!=="combobox"&&!fn&&!rn?!1:!!Rn,qe=nn===void 0?Ue(Tn):nn,pi=function(){if(Tn)return null;var Ci=ei?{visibility:"hidden"}:void 0;return te.createElement("span",{className:"".concat(yn,"-selection-placeholder"),style:Ci},je)};return te.createElement(te.Fragment,null,te.createElement("span",{className:"".concat(yn,"-selection-search")},te.createElement(Vt,{ref:_n,prefixCls:yn,id:Nn,open:fn,inputElement:Qe,disabled:le,autoFocus:mn,autoComplete:Gn,editable:kn,activeDescendantId:si,value:Rn,onKeyDown:zn,onMouseDown:yi,onChange:function(Ci){Oe(!0),Xe(Ci)},onPaste:Li,onCompositionStart:ji,onCompositionEnd:Ei,tabIndex:vn,attrs:(0,At.Z)(ie,!0),maxLength:un?On:void 0})),!un&&Tn?te.createElement("span",{className:"".concat(yn,"-selection-item"),title:qe,style:ei?{visibility:"hidden"}:void 0},Tn.label):null,pi())},Ke=Ee;function gn(ve){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(ve)}var Bn=function(ie,Qe){var yn=(0,te.useRef)(null),Nn=(0,te.useRef)(!1),_n=ie.prefixCls,le=ie.open,mn=ie.mode,Gn=ie.showSearch,si=ie.tokenWithEnter,Re=ie.autoClearSearchValue,fn=ie.onSearch,He=ie.onSearchSubmit,je=ie.onToggleOpen,vn=ie.onInputKeyDown,rn=ie.domRef;te.useImperativeHandle(Qe,function(){return{focus:function(){yn.current.focus()},blur:function(){yn.current.blur()}}});var bn=Nt(0),xn=(0,$t.Z)(bn,2),On=xn[0],zn=xn[1],yi=function(Rn){var ei=Rn.which;(ei===et.Z.UP||ei===et.Z.DOWN)&&Rn.preventDefault(),vn&&vn(Rn),ei===et.Z.ENTER&&mn==="tags"&&!Nn.current&&!le&&(He==null||He(Rn.target.value)),gn(ei)&&je(!0)},Xe=function(){zn(!0)},Li=(0,te.useRef)(null),ji=function(Rn){fn(Rn,!0,Nn.current)!==!1&&je(!0)},Ei=function(){Nn.current=!0},nn=function(Rn){Nn.current=!1,mn!=="combobox"&&ji(Rn.target.value)},Vn=function(Rn){var ei=Rn.target.value;if(si&&Li.current&&/[\r\n]/.test(Li.current)){var qe=Li.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ei=ei.replace(qe,Li.current)}Li.current=null,ji(ei)},ze=function(Rn){var ei=Rn.clipboardData,qe=ei.getData("text");Li.current=qe},Ge=function(Rn){var ei=Rn.target;if(ei!==yn.current){var qe=document.body.style.msTouchAction!==void 0;qe?setTimeout(function(){yn.current.focus()}):yn.current.focus()}},Oe=function(Rn){var ei=On();Rn.target!==yn.current&&!ei&&mn!=="combobox"&&Rn.preventDefault(),(mn!=="combobox"&&(!Gn||!ei)||!le)&&(le&&Re!==!1&&fn("",!0,!1),je())},un={inputRef:yn,onInputKeyDown:yi,onInputMouseDown:Xe,onInputChange:Vn,onInputPaste:ze,onInputCompositionStart:Ei,onInputCompositionEnd:nn},kn=mn==="multiple"||mn==="tags"?te.createElement(ln,(0,vt.Z)({},ie,un)):te.createElement(Ke,(0,vt.Z)({},ie,un));return te.createElement("div",{ref:rn,className:"".concat(_n,"-selector"),onClick:Ge,onMouseDown:Oe},kn)},dn=te.forwardRef(Bn);dn.displayName="Selector";var In=dn,Ce=Pt(35593),$n=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Qn=function(ie){var Qe=ie===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Qe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Qe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Qe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Qe,adjustY:1},htmlRegion:"scroll"}}},jt=function(ie,Qe){var yn=ie.prefixCls,Nn=ie.disabled,_n=ie.visible,le=ie.children,mn=ie.popupElement,Gn=ie.animation,si=ie.transitionName,Re=ie.dropdownStyle,fn=ie.dropdownClassName,He=ie.direction,je=He===void 0?"ltr":He,vn=ie.placement,rn=ie.builtinPlacements,bn=ie.dropdownMatchSelectWidth,xn=ie.dropdownRender,On=ie.dropdownAlign,zn=ie.getPopupContainer,yi=ie.empty,Xe=ie.getTriggerDOMNode,Li=ie.onPopupVisibleChange,ji=ie.onPopupMouseEnter,Ei=(0,Ut.Z)(ie,$n),nn="".concat(yn,"-dropdown"),Vn=mn;xn&&(Vn=xn(mn));var ze=te.useMemo(function(){return rn||Qn(bn)},[rn,bn]),Ge=Gn?"".concat(nn,"-").concat(Gn):si,Oe=typeof bn=="number",un=te.useMemo(function(){return Oe?null:bn===!1?"minWidth":"width"},[bn,Oe]),kn=Re;Oe&&(kn=(0,de.Z)((0,de.Z)({},kn),{},{width:bn}));var Tn=te.useRef(null);return te.useImperativeHandle(Qe,function(){return{getPopupElement:function(){return Tn.current}}}),te.createElement(Ce.Z,(0,vt.Z)({},Ei,{showAction:Li?["click"]:[],hideAction:Li?["click"]:[],popupPlacement:vn||(je==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ze,prefixCls:nn,popupTransitionName:Ge,popup:te.createElement("div",{ref:Tn,onMouseEnter:ji},Vn),stretch:un,popupAlign:On,popupVisible:_n,getPopupContainer:zn,popupClassName:re()(fn,(0,oe.Z)({},"".concat(nn,"-empty"),yi)),popupStyle:kn,getTriggerDOMNode:Xe,onPopupVisibleChange:Li}),le)},Lt=te.forwardRef(jt);Lt.displayName="SelectTrigger";var xt=Lt,Tt=Pt(4537);function Ft(ve,ie){var Qe=ve.key,yn;return"value"in ve&&(yn=ve.value),Qe!=null?Qe:yn!==void 0?yn:"rc-index-key-".concat(ie)}function yt(ve,ie){var Qe=ve||{},yn=Qe.label,Nn=Qe.value,_n=Qe.options,le=Qe.groupLabel,mn=yn||(ie?"children":"label");return{label:mn,value:Nn||"value",options:_n||"options",groupLabel:le||mn}}function ee(ve){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qe=ie.fieldNames,yn=ie.childrenAsData,Nn=[],_n=yt(Qe,!1),le=_n.label,mn=_n.value,Gn=_n.options,si=_n.groupLabel;function Re(fn,He){fn.forEach(function(je){if(He||!(Gn in je)){var vn=je[mn];Nn.push({key:Ft(je,Nn.length),groupOption:He,data:je,label:je[le],value:vn})}else{var rn=je[si];rn===void 0&&yn&&(rn=je.label),Nn.push({key:Ft(je,Nn.length),group:!0,data:je,label:rn}),Re(je[Gn],!0)}})}return Re(ve,!1),Nn}function pe(ve){var ie=(0,de.Z)({},ve);return"props"in ie||Object.defineProperty(ie,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ie}}),ie}function qt(ve,ie){if(!ie||!ie.length)return null;var Qe=!1;function yn(_n,le){var mn=(0,Tt.Z)(le),Gn=mn[0],si=mn.slice(1);if(!Gn)return[_n];var Re=_n.split(Gn);return Qe=Qe||Re.length>1,Re.reduce(function(fn,He){return[].concat((0,It.Z)(fn),(0,It.Z)(yn(He,si)))},[]).filter(function(fn){return fn})}var Nn=yn(ve,ie);return Qe?Nn:null}var Zt=["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"],fe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ce(ve){return ve==="tags"||ve==="multiple"}var ne=te.forwardRef(function(ve,ie){var Qe,yn,Nn=ve.id,_n=ve.prefixCls,le=ve.className,mn=ve.showSearch,Gn=ve.tagRender,si=ve.direction,Re=ve.omitDomProps,fn=ve.displayValues,He=ve.onDisplayValuesChange,je=ve.emptyOptions,vn=ve.notFoundContent,rn=vn===void 0?"Not Found":vn,bn=ve.onClear,xn=ve.mode,On=ve.disabled,zn=ve.loading,yi=ve.getInputElement,Xe=ve.getRawInputElement,Li=ve.open,ji=ve.defaultOpen,Ei=ve.onDropdownVisibleChange,nn=ve.activeValue,Vn=ve.onActiveValueChange,ze=ve.activeDescendantId,Ge=ve.searchValue,Oe=ve.autoClearSearchValue,un=ve.onSearch,kn=ve.onSearchSplit,Tn=ve.tokenSeparators,Rn=ve.allowClear,ei=ve.suffixIcon,qe=ve.clearIcon,pi=ve.OptionList,tn=ve.animation,Ci=ve.transitionName,Ui=ve.dropdownStyle,$i=ve.dropdownClassName,Co=ve.dropdownMatchSelectWidth,lo=ve.dropdownRender,Si=ve.dropdownAlign,ii=ve.placement,Yi=ve.builtinPlacements,oo=ve.getPopupContainer,Yn=ve.showAction,zt=Yn===void 0?[]:Yn,Ai=ve.onFocus,vo=ve.onBlur,ao=ve.onKeyUp,Eo=ve.onKeyDown,Ho=ve.onMouseDown,Zi=(0,Ut.Z)(ve,Zt),xi=ce(xn),Fi=(mn!==void 0?mn:xi)||xn==="combobox",Mi=(0,de.Z)({},Zi);fe.forEach(function(wi){delete Mi[wi]}),Re==null||Re.forEach(function(wi){delete Mi[wi]});var co=te.useState(!1),uo=(0,$t.Z)(co,2),Pi=uo[0],Ni=uo[1];te.useEffect(function(){Ni((0,Ot.Z)())},[]);var Wn=te.useRef(null),zi=te.useRef(null),xo=te.useRef(null),Ko=te.useRef(null),Uo=te.useRef(null),Qo=Et(),ar=(0,$t.Z)(Qo,3),Ro=ar[0],er=ar[1],nr=ar[2];te.useImperativeHandle(ie,function(){var wi,Hi;return{focus:(wi=Ko.current)===null||wi===void 0?void 0:wi.focus,blur:(Hi=Ko.current)===null||Hi===void 0?void 0:Hi.blur,scrollTo:function(lr){var fr;return(fr=Uo.current)===null||fr===void 0?void 0:fr.scrollTo(lr)}}});var qr=te.useMemo(function(){var wi;if(xn!=="combobox")return Ge;var Hi=(wi=fn[0])===null||wi===void 0?void 0:wi.value;return typeof Hi=="string"||typeof Hi=="number"?String(Hi):""},[Ge,xn,fn]),sn=xn==="combobox"&&typeof yi=="function"&&yi()||null,wr=typeof Xe=="function"&&Xe(),Sa=(0,nt.x1)(zi,wr==null||(Qe=wr.props)===null||Qe===void 0?void 0:Qe.ref),Cs=te.useState(!1),jo=(0,$t.Z)(Cs,2),Lo=jo[0],vr=jo[1];(0,me.Z)(function(){vr(!0)},[]);var Xo=(0,De.Z)(!1,{defaultValue:ji,value:Li}),bo=(0,$t.Z)(Xo,2),Ao=bo[0],ur=bo[1],no=Lo?Ao:!1,ko=!rn&&je;(On||ko&&no&&xn==="combobox")&&(no=!1);var No=ko?!1:no,mi=te.useCallback(function(wi){var Hi=wi!==void 0?wi:!no;On||(ur(Hi),no!==Hi&&(Ei==null||Ei(Hi)))},[On,no,ur,Ei]),Fr=te.useMemo(function(){return(Tn||[]).some(function(wi){return[` `,`\r `].includes(wi)})},[Tn]),Or=function(Hi,Fo,lr){var fr=!0,gr=Hi;Vn==null||Vn(null);var Sr=lr?null:qt(Hi,Tn);return xn!=="combobox"&&Sr&&(gr="",kn==null||kn(Sr),mi(!1),fr=!1),un&&qr!==gr&&un(gr,{source:Fo?"typing":"effect"}),fr},jr=function(Hi){!Hi||!Hi.trim()||un(Hi,{source:"submit"})};te.useEffect(function(){!no&&!xi&&xn!=="combobox"&&Or("",!1,!1)},[no]),te.useEffect(function(){Ao&&On&&ur(!1),On&&er(!1)},[On]);var xa=Nt(),Ta=(0,$t.Z)(xa,2),ri=Ta[0],hr=Ta[1],Dr=function(Hi){var Fo=ri(),lr=Hi.which;if(lr===et.Z.ENTER&&(xn!=="combobox"&&Hi.preventDefault(),no||mi(!0)),hr(!!qr),lr===et.Z.BACKSPACE&&!Fo&&xi&&!qr&&fn.length){for(var fr=(0,It.Z)(fn),gr=null,Sr=fr.length-1;Sr>=0;Sr-=1){var xr=fr[Sr];if(!xr.disabled){fr.splice(Sr,1),gr=xr;break}}gr&&He(fr,{type:"remove",values:[gr]})}for(var yr=arguments.length,Za=new Array(yr>1?yr-1:0),la=1;la1?Fo-1:0),fr=1;fr1?Sr-1:0),yr=1;yr1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ln.Z)(ve).map(function(Qe,yn){if(!te.isValidElement(Qe)||!Qe.type)return null;var Nn=Qe,_n=Nn.type.isSelectOptGroup,le=Nn.key,mn=Nn.props,Gn=mn.children,si=(0,Ut.Z)(mn,on);return ie||!_n?Pn(Qe):(0,de.Z)((0,de.Z)({key:"__RC_SELECT_GRP__".concat(le===null?yn:le,"__"),label:le},si),{},{options:Cn(Gn)})}).filter(function(Qe){return Qe})}function An(ve,ie,Qe,yn,Nn){return te.useMemo(function(){var _n=ve,le=!ve;le&&(_n=Cn(ie));var mn=new Map,Gn=new Map,si=function(He,je,vn){vn&&typeof vn=="string"&&He.set(je[vn],je)};function Re(fn){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=0;je1&&arguments[1]!==void 0?arguments[1]:1,oo=Vn.length,Yn=0;Yn1&&arguments[1]!==void 0?arguments[1]:!1;ei(ii);var oo={source:Yi?"keyboard":"mouse"},Yn=Vn[ii];if(!Yn){rn(null,-1,oo);return}rn(Yn.value,ii,oo)};(0,te.useEffect)(function(){qe(bn!==!1?un(0):-1)},[Vn.length,si]);var pi=te.useCallback(function(Si){return zn.has(Si)&&Gn!=="combobox"},[Gn,(0,It.Z)(zn).toString(),zn.size]);(0,te.useEffect)(function(){var Si=setTimeout(function(){if(!mn&&le&&zn.size===1){var Yi=Array.from(zn)[0],oo=Vn.findIndex(function(Yn){var zt=Yn.data;return zt.value===Yi});oo!==-1&&(qe(oo),Oe(oo))}});if(le){var ii;(ii=ze.current)===null||ii===void 0||ii.scrollTo(void 0)}return function(){return clearTimeout(Si)}},[le,si,vn.length]);var tn=function(ii){ii!==void 0&&xn(ii,{selected:!zn.has(ii)}),mn||Re(!1)};if(te.useImperativeHandle(Qe,function(){return{onKeyDown:function(ii){var Yi=ii.which,oo=ii.ctrlKey;switch(Yi){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Yn=0;if(Yi===et.Z.UP?Yn=-1:Yi===et.Z.DOWN?Yn=1:Qi()&&oo&&(Yi===et.Z.N?Yn=1:Yi===et.Z.P&&(Yn=-1)),Yn!==0){var zt=un(Rn+Yn,Yn);Oe(zt),qe(zt,!0)}break}case et.Z.ENTER:{var Ai=Vn[Rn];Ai&&!Ai.data.disabled?tn(Ai.value):tn(void 0),le&&ii.preventDefault();break}case et.Z.ESC:Re(!1),le&&ii.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ii){Oe(ii)}}}),Vn.length===0)return te.createElement("div",{role:"listbox",id:"".concat(_n,"_list"),className:"".concat(nn,"-empty"),onMouseDown:Ge},fn);var Ci=Object.keys(yi).map(function(Si){return yi[Si]}),Ui=function(ii){return ii.label};function $i(Si,ii){var Yi=Si.group;return{role:Yi?"presentation":"option",id:"".concat(_n,"_list_").concat(ii)}}var Co=function(ii){var Yi=Vn[ii];if(!Yi)return null;var oo=Yi.data||{},Yn=oo.value,zt=Yi.group,Ai=(0,At.Z)(oo,!0),vo=Ui(Yi);return Yi?te.createElement("div",(0,vt.Z)({"aria-label":typeof vo=="string"&&!zt?vo:null},Ai,{key:ii},$i(Yi,ii),{"aria-selected":pi(Yn)}),Yn):null},lo={role:"listbox",id:"".concat(_n,"_list")};return te.createElement(te.Fragment,null,Xe&&te.createElement("div",(0,vt.Z)({},lo,{style:{height:0,width:0,overflow:"hidden"}}),Co(Rn-1),Co(Rn),Co(Rn+1)),te.createElement(io.Z,{itemKey:"key",ref:ze,data:Vn,height:ji,itemHeight:Ei,fullHeight:!1,onMouseDown:Ge,onScroll:He,virtual:Xe,direction:Li,innerProps:Xe?null:lo},function(Si,ii){var Yi,oo=Si.group,Yn=Si.groupOption,zt=Si.data,Ai=Si.label,vo=Si.value,ao=zt.key;if(oo){var Eo,Ho=(Eo=zt.title)!==null&&Eo!==void 0?Eo:Mt(Ai)?Ai.toString():void 0;return te.createElement("div",{className:re()(nn,"".concat(nn,"-group")),title:Ho},Ai!==void 0?Ai:ao)}var Zi=zt.disabled,xi=zt.title,Fi=zt.children,Mi=zt.style,co=zt.className,uo=(0,Ut.Z)(zt,Zn),Pi=(0,Di.Z)(uo,Ci),Ni=pi(vo),Wn="".concat(nn,"-option"),zi=re()(nn,Wn,co,(Yi={},(0,oe.Z)(Yi,"".concat(Wn,"-grouped"),Yn),(0,oe.Z)(Yi,"".concat(Wn,"-active"),Rn===ii&&!Zi),(0,oe.Z)(Yi,"".concat(Wn,"-disabled"),Zi),(0,oe.Z)(Yi,"".concat(Wn,"-selected"),Ni),Yi)),xo=Ui(Si),Ko=!On||typeof On=="function"||Ni,Uo=typeof xo=="number"?xo:xo||vo,Qo=Mt(Uo)?Uo.toString():void 0;return xi!==void 0&&(Qo=xi),te.createElement("div",(0,vt.Z)({},(0,At.Z)(Pi),Xe?{}:$i(Si,ii),{"aria-selected":Ni,className:zi,title:Qo,onMouseMove:function(){Rn===ii||Zi||qe(ii)},onClick:function(){Zi||tn(vo)},style:Mi}),te.createElement("div",{className:"".concat(Wn,"-content")},Uo),te.isValidElement(On)||Ni,Ko&&te.createElement(at,{className:"".concat(nn,"-option-state"),customizeIcon:On,customizeIconProps:{isSelected:Ni}},Ni?"\u2713":null))}))},Ii=te.forwardRef(so);Ii.displayName="OptionList";var Wi=Ii;function ki(ve){var ie=ve.mode,Qe=ve.options,yn=ve.children,Nn=ve.backfill,_n=ve.allowClear,le=ve.placeholder,mn=ve.getInputElement,Gn=ve.showSearch,si=ve.onSearch,Re=ve.defaultOpen,fn=ve.autoFocus,He=ve.labelInValue,je=ve.value,vn=ve.inputValue,rn=ve.optionLabelProp,bn=isMultiple(ie),xn=Gn!==void 0?Gn:bn||ie==="combobox",On=Qe||convertChildrenToData(yn);if(warning(ie!=="tags"||On.every(function(Li){return!Li.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ie==="tags"||ie==="combobox"){var zn=On.some(function(Li){return Li.options?Li.options.some(function(ji){return typeof("value"in ji?ji.value:ji.key)=="number"}):typeof("value"in Li?Li.value:Li.key)=="number"});warning(!zn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ie!=="combobox"||!rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ie==="combobox"||!Nn,"`backfill` only works with `combobox` mode."),warning(ie==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),noteOnce(ie!=="combobox"||!mn||!_n||!le,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),si&&!xn&&ie!=="combobox"&&ie!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Re||fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var yi=toArray(je);warning(!He||yi.every(function(Li){return _typeof(Li)==="object"&&("key"in Li||"value"in Li)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!bn||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(yn){var Xe=null;toNodeArray(yn).some(function(Li){if(!React.isValidElement(Li)||!Li.type)return!1;var ji=Li,Ei=ji.type;if(Ei.isSelectOption)return!1;if(Ei.isSelectOptGroup){var nn=toNodeArray(Li.props.children).every(function(Vn){return!React.isValidElement(Vn)||!Li.type||Vn.type.isSelectOption?!0:(Xe=Vn.type,!1)});return!nn}return Xe=Ei,!0}),Xe&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Xe.displayName||Xe.name||Xe,"`.")),warning(vn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bo(ve,ie){if(ve){var Qe=function yn(Nn){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=0;le2&&arguments[2]!==void 0?arguments[2]:{},mi=No.source,Fr=mi===void 0?"keyboard":mi;Sa(ko),le&&yn==="combobox"&&no!==null&&Fr==="keyboard"&&nr(String(no))},[le,yn]),Lo=function(ko,No,mi){var Fr=function(){var sa,po=co(ko);return[Rn?{label:po==null?void 0:po[$i.label],value:ko,key:(sa=po==null?void 0:po.key)!==null&&sa!==void 0?sa:ko}:ko,pe(po)]};if(No&&je){var Or=Fr(),jr=(0,$t.Z)(Or,2),xa=jr[0],Ta=jr[1];je(xa,Ta)}else if(!No&&vn&&mi!=="clear"){var ri=Fr(),hr=(0,$t.Z)(ri,2),Dr=hr[0],Js=hr[1];vn(Dr,Js)}},vr=Jn(function(no,ko){var No,mi=tn?ko.selected:!0;mi?No=tn?[].concat((0,It.Z)(Mi),[no]):[no]:No=Mi.filter(function(Fr){return Fr.value!==no}),Qo(No),Lo(no,mi),yn==="combobox"?nr(""):(!ce||He)&&(ii(""),nr(""))}),Xo=function(ko,No){Qo(ko);var mi=No.type,Fr=No.values;(mi==="remove"||mi==="clear")&&Fr.forEach(function(Or){Lo(Or.value,!1,mi)})},bo=function(ko,No){if(ii(ko),nr(null),No.source==="submit"){var mi=(ko||"").trim();if(mi){var Fr=Array.from(new Set([].concat((0,It.Z)(Pi),[mi])));Qo(Fr),Lo(mi,!0),ii("")}return}No.source!=="blur"&&(yn==="combobox"&&Qo(ko),Re==null||Re(ko))},Ao=function(ko){var No=ko;yn!=="tags"&&(No=ko.map(function(Fr){var Or=Yn.get(Fr);return Or==null?void 0:Or.value}).filter(function(Fr){return Fr!==void 0}));var mi=Array.from(new Set([].concat((0,It.Z)(Pi),(0,It.Z)(No))));Qo(mi),mi.forEach(function(Fr){Lo(Fr,!0)})},ur=te.useMemo(function(){var no=nn!==!1&&bn!==!1;return(0,de.Z)((0,de.Z)({},Yi),{},{flattenOptions:Uo,onActiveValue:jo,defaultActiveFirstOption:Cs,onSelect:vr,menuItemSelectedIcon:Ei,rawValues:Pi,fieldNames:$i,virtual:no,direction:Vn,listHeight:Ge,listItemHeight:un,childrenAsData:Ci})},[Yi,Uo,jo,Cs,vr,Ei,Pi,$i,nn,bn,Ge,un,Ci]);return te.createElement(Ri.Provider,{value:ur},te.createElement(Ne,(0,vt.Z)({},qe,{id:pi,prefixCls:_n,ref:ie,omitDomProps:di,mode:yn,displayValues:uo,onDisplayValuesChange:Xo,direction:Vn,searchValue:Si,onSearch:bo,autoClearSearchValue:He,onSearchSplit:Ao,dropdownMatchSelectWidth:bn,OptionList:Wi,emptyOptions:!Uo.length,activeValue:er,activeDescendantId:"".concat(pi,"_list_").concat(wr)})))}),_t=Be;_t.Option=Bi,_t.OptGroup=ni;var Je=_t,cn=Je},9296:function(Sn,Ve,Pt){"use strict";Pt.r(Ve),Pt.d(Ve,{ResizableTextArea:function(){return xe},default:function(){return Pe}});var vt=Pt(96663),It=Pt(44127),oe=Pt(90493),de=Pt(20135),$t=Pt(72071),Ut=Pt(6620),Jt=Pt(19127),De=Pt(92310),we=Pt.n(De),te=Pt(93681),Fe=Pt(5643),re=Pt(18929),me=Pt(59301),Ot=Pt(29301),et=Pt(34280),nt=Pt(16089),ht=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,at=["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"],ft={},mt;function wt(We){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Ue&&ft[ue])return ft[ue];var Ht=window.getComputedStyle(We),ke=Ht.getPropertyValue("box-sizing")||Ht.getPropertyValue("-moz-box-sizing")||Ht.getPropertyValue("-webkit-box-sizing"),pn=parseFloat(Ht.getPropertyValue("padding-bottom"))+parseFloat(Ht.getPropertyValue("padding-top")),ln=parseFloat(Ht.getPropertyValue("border-bottom-width"))+parseFloat(Ht.getPropertyValue("border-top-width")),Ee=at.map(function(gn){return"".concat(gn,":").concat(Ht.getPropertyValue(gn))}).join(";"),Ke={sizingStyle:Ee,paddingSize:pn,borderSize:ln,boxSizing:ke};return Ue&&ue&&(ft[ue]=Ke),Ke}function Et(We){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;mt||(mt=document.createElement("textarea"),mt.setAttribute("tab-index","-1"),mt.setAttribute("aria-hidden","true"),document.body.appendChild(mt)),We.getAttribute("wrap")?mt.setAttribute("wrap",We.getAttribute("wrap")):mt.removeAttribute("wrap");var ke=wt(We,Ue),pn=ke.paddingSize,ln=ke.borderSize,Ee=ke.boxSizing,Ke=ke.sizingStyle;mt.setAttribute("style","".concat(Ke,";").concat(ht)),mt.value=We.value||We.placeholder||"";var gn=void 0,Bn=void 0,dn,In=mt.scrollHeight;if(Ee==="border-box"?In+=ln:Ee==="content-box"&&(In-=pn),ue!==null||Ht!==null){mt.value=" ";var Ce=mt.scrollHeight-pn;ue!==null&&(gn=Ce*ue,Ee==="border-box"&&(gn=gn+pn+ln),In=Math.max(gn,In)),Ht!==null&&(Bn=Ce*Ht,Ee==="border-box"&&(Bn=Bn+pn+ln),dn=In>Bn?"":"hidden",In=Math.min(Bn,In))}var $n={height:In,overflowY:dn,resize:"none"};return gn&&($n.minHeight=gn),Bn&&($n.maxHeight=Bn),$n}var Nt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Dt=0,At=1,Kt=2,Wt=me.forwardRef(function(We,Ue){var ue=We,Ht=ue.prefixCls,ke=ue.onPressEnter,pn=ue.defaultValue,ln=ue.value,Ee=ue.autoSize,Ke=ue.onResize,gn=ue.className,Bn=ue.style,dn=ue.disabled,In=ue.onChange,Ce=ue.onInternalAutoSize,$n=(0,Ut.Z)(ue,Nt),Qn=(0,re.Z)(pn,{value:ln,postState:function(ni){return ni!=null?ni:""}}),jt=(0,$t.Z)(Qn,2),Lt=jt[0],xt=jt[1],Tt=function(ni){xt(ni.target.value),In==null||In(ni)},Ft=me.useRef();me.useImperativeHandle(Ue,function(){return{textArea:Ft.current}});var yt=me.useMemo(function(){return Ee&&(0,de.Z)(Ee)==="object"?[Ee.minRows,Ee.maxRows]:[]},[Ee]),ee=(0,$t.Z)(yt,2),pe=ee[0],qt=ee[1],Zt=!!Ee,fe=function(){try{if(document.activeElement===Ft.current){var ni=Ft.current,fi=ni.selectionStart,Bi=ni.selectionEnd,Ti=ni.scrollTop;Ft.current.setSelectionRange(fi,Bi),Ft.current.scrollTop=Ti}}catch(Di){}},ce=me.useState(Kt),ne=(0,$t.Z)(ce,2),Ne=ne[0],hn=ne[1],an=me.useState(),_e=(0,$t.Z)(an,2),En=_e[0],Ln=_e[1],ye=function(){hn(Dt)};(0,et.Z)(function(){Zt&&ye()},[ln,pe,qt,Zt]),(0,et.Z)(function(){if(Ne===Dt)hn(At);else if(Ne===At){var ui=Et(Ft.current,!1,pe,qt);hn(Kt),Ln(ui)}else fe()},[Ne]);var on=me.useRef(),Pn=function(){nt.Z.cancel(on.current)},Cn=function(ni){Ne===Kt&&(Ke==null||Ke(ni),Ee&&(Pn(),on.current=(0,nt.Z)(function(){ye()})))};me.useEffect(function(){return Pn},[]);var An=Zt?En:null,Jn=(0,It.Z)((0,It.Z)({},Bn),An);return(Ne===Dt||Ne===At)&&(Jn.overflowY="hidden",Jn.overflowX="hidden"),me.createElement(Ot.Z,{onResize:Cn,disabled:!(Ee||Ke)},me.createElement("textarea",(0,vt.Z)({},$n,{ref:Ft,style:Jn,className:we()(Ht,gn,(0,oe.Z)({},"".concat(Ht,"-disabled"),dn)),disabled:dn,value:Lt,onChange:Tt})))}),xe=Wt,Vt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ie(We,Ue){return(0,Jt.Z)(We||"").slice(0,Ue).join("")}function Se(We,Ue,ue,Ht){var ke=ue;return We?ke=Ie(ue,Ht):(0,Jt.Z)(Ue||"").lengthHt&&(ke=Ue),ke}var Ye=me.forwardRef(function(We,Ue){var ue,Ht=We.defaultValue,ke=We.value,pn=We.onFocus,ln=We.onBlur,Ee=We.onChange,Ke=We.allowClear,gn=We.maxLength,Bn=We.onCompositionStart,dn=We.onCompositionEnd,In=We.suffix,Ce=We.prefixCls,$n=Ce===void 0?"rc-textarea":Ce,Qn=We.classes,jt=We.showCount,Lt=We.className,xt=We.style,Tt=We.disabled,Ft=We.hidden,yt=We.classNames,ee=We.styles,pe=We.onResize,qt=(0,Ut.Z)(We,Vt),Zt=(0,re.Z)(Ht,{value:ke,defaultValue:Ht}),fe=(0,$t.Z)(Zt,2),ce=fe[0],ne=fe[1],Ne=(0,me.useRef)(null),hn=me.useState(!1),an=(0,$t.Z)(hn,2),_e=an[0],En=an[1],Ln=me.useState(!1),ye=(0,$t.Z)(Ln,2),on=ye[0],Pn=ye[1],Cn=me.useRef(),An=me.useRef(0),Jn=me.useState(null),ui=(0,$t.Z)(Jn,2),ni=ui[0],fi=ui[1],Bi=function(){var Ae;(Ae=Ne.current)===null||Ae===void 0||Ae.textArea.focus()};(0,me.useImperativeHandle)(Ue,function(){return{resizableTextArea:Ne.current,focus:Bi,blur:function(){var Ae;(Ae=Ne.current)===null||Ae===void 0||Ae.textArea.blur()}}}),(0,me.useEffect)(function(){En(function(di){return!Tt&&di})},[Tt]);var Ti=Number(gn)>0,Di=function(Ae){Pn(!0),Cn.current=ce,An.current=Ae.currentTarget.selectionStart,Bn==null||Bn(Ae)},io=function(Ae){Pn(!1);var Be=Ae.currentTarget.value;if(Ti){var _t,Je=An.current>=gn+1||An.current===((_t=Cn.current)===null||_t===void 0?void 0:_t.length);Be=Se(Je,Cn.current,Be,gn)}Be!==ce&&(ne(Be),(0,Fe.rJ)(Ae.currentTarget,Ae,Ee,Be)),dn==null||dn(Ae)},to=function(Ae){var Be=Ae.target.value;if(!on&&Ti){var _t=Ae.target.selectionStart>=gn+1||Ae.target.selectionStart===Be.length||!Ae.target.selectionStart;Be=Se(_t,ce,Be,gn)}ne(Be),(0,Fe.rJ)(Ae.currentTarget,Ae,Ee,Be)},Ri=function(Ae){var Be=qt.onPressEnter,_t=qt.onKeyDown;Ae.key==="Enter"&&Be&&Be(Ae),_t==null||_t(Ae)},Qi=function(Ae){En(!0),pn==null||pn(Ae)},Zn=function(Ae){En(!1),ln==null||ln(Ae)},Mt=function(Ae){var Be;ne(""),Bi(),(0,Fe.rJ)((Be=Ne.current)===null||Be===void 0?void 0:Be.textArea,Ae,Ee)},so=(0,Fe.D7)(ce);!on&&Ti&&ke==null&&(so=Ie(so,gn));var Ii=In,Wi;if(jt){var ki=(0,Jt.Z)(so).length;(0,de.Z)(jt)==="object"?Wi=jt.formatter({value:so,count:ki,maxLength:gn}):Wi="".concat(ki).concat(Ti?" / ".concat(gn):""),Ii=me.createElement(me.Fragment,null,Ii,me.createElement("span",{className:we()("".concat($n,"-data-count"),yt==null?void 0:yt.count),style:ee==null?void 0:ee.count},Wi))}var Bo=function(Ae){var Be;pe==null||pe(Ae),(Be=Ne.current)!==null&&Be!==void 0&&Be.textArea.style.height&&fi(!0)},Mo=!qt.autoSize&&!jt&&!Ke,ai=me.createElement(te.BaseInput,{value:so,allowClear:Ke,handleReset:Mt,suffix:Ii,prefixCls:$n,classes:{affixWrapper:we()(Qn==null?void 0:Qn.affixWrapper,(ue={},(0,oe.Z)(ue,"".concat($n,"-show-count"),jt),(0,oe.Z)(ue,"".concat($n,"-textarea-allow-clear"),Ke),ue))},disabled:Tt,focused:_e,className:Lt,style:(0,It.Z)((0,It.Z)({},xt),ni&&!Mo?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wi=="string"?Wi:void 0}},hidden:Ft,inputElement:me.createElement(xe,(0,vt.Z)({},qt,{onKeyDown:Ri,onChange:to,onFocus:Qi,onBlur:Zn,onCompositionStart:Di,onCompositionEnd:io,className:yt==null?void 0:yt.textarea,style:(0,It.Z)((0,It.Z)({},ee==null?void 0:ee.textarea),{},{resize:xt==null?void 0:xt.resize}),disabled:Tt,prefixCls:$n,onResize:Bo,ref:Ne}))});return ai}),Le=Ye,Pe=Le},39417:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return At}});var vt=Pt(96663),It=Pt(90493),oe=Pt(6620),de=Pt(44127),$t=Pt(52884),Ut=Pt(95727),Jt=Pt(89866),De=Pt(65711),we=Pt(85745),te=Pt(92310),Fe=Pt.n(te),re=Pt(26112),me=Pt(59301),Ot=Pt(39378),et=function(Wt){for(var xe=Wt.prefixCls,Vt=Wt.level,Ie=Wt.isStart,Se=Wt.isEnd,Ye="".concat(xe,"-indent-unit"),Le=[],Pe=0;Pe0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=xt.length,yt=Tt.length;if(Math.abs(Ft-yt)!==1)return{add:!1,key:null};function ee(pe,qt){var Zt=new Map;pe.forEach(function(ce){Zt.set(ce,!0)});var fe=qt.filter(function(ce){return!Zt.has(ce)});return fe.length===1?fe[0]:null}return Ft ").concat(Tt);return Tt}var gn=nt.forwardRef(function(xt,Tt){var Ft=xt.prefixCls,yt=xt.data,ee=xt.selectable,pe=xt.checkable,qt=xt.expandedKeys,Zt=xt.selectedKeys,fe=xt.checkedKeys,ce=xt.loadedKeys,ne=xt.loadingKeys,Ne=xt.halfCheckedKeys,hn=xt.keyEntities,an=xt.disabled,_e=xt.dragging,En=xt.dragOverNodeKey,Ln=xt.dropPosition,ye=xt.motion,on=xt.height,Pn=xt.itemHeight,Cn=xt.virtual,An=xt.focusable,Jn=xt.activeItem,ui=xt.focused,ni=xt.tabIndex,fi=xt.onKeyDown,Bi=xt.onFocus,Ti=xt.onBlur,Di=xt.onActiveChange,io=xt.onListChangeStart,to=xt.onListChangeEnd,Ri=(0,wt.Z)(xt,Pe),Qi=nt.useRef(null),Zn=nt.useRef(null);nt.useImperativeHandle(Tt,function(){return{scrollTo:function(fn){Qi.current.scrollTo(fn)},getIndentWidth:function(){return Zn.current.offsetWidth}}});var Mt=nt.useState(qt),so=(0,mt.Z)(Mt,2),Ii=so[0],Wi=so[1],ki=nt.useState(yt),Bo=(0,mt.Z)(ki,2),Mo=Bo[0],ai=Bo[1],di=nt.useState(yt),Ae=(0,mt.Z)(di,2),Be=Ae[0],_t=Ae[1],Je=nt.useState([]),cn=(0,mt.Z)(Je,2),ve=cn[0],ie=cn[1],Qe=nt.useState(null),yn=(0,mt.Z)(Qe,2),Nn=yn[0],_n=yn[1],le=nt.useRef(yt);le.current=yt;function mn(){var Re=le.current;ai(Re),_t(Re),ie([]),_n(null),to()}(0,Et.Z)(function(){Wi(qt);var Re=Ye(Ii,qt);if(Re.key!==null)if(Re.add){var fn=Mo.findIndex(function(xn){var On=xn.key;return On===Re.key}),He=ln(Le(Mo,yt,Re.key),Cn,on,Pn),je=Mo.slice();je.splice(fn+1,0,pn),_t(je),ie(He),_n("show")}else{var vn=yt.findIndex(function(xn){var On=xn.key;return On===Re.key}),rn=ln(Le(yt,Mo,Re.key),Cn,on,Pn),bn=yt.slice();bn.splice(vn+1,0,pn),_t(bn),ie(rn),_n("hide")}else Mo!==yt&&(ai(yt),_t(yt))},[qt,yt]),nt.useEffect(function(){_e||mn()},[_e]);var Gn=ye?Be:yt,si={expandedKeys:qt,selectedKeys:Zt,loadedKeys:ce,loadingKeys:ne,checkedKeys:fe,halfCheckedKeys:Ne,dragOverNodeKey:En,dropPosition:Ln,keyEntities:hn};return nt.createElement(nt.Fragment,null,ui&&Jn&&nt.createElement("span",{style:We,"aria-live":"assertive"},Ke(Jn)),nt.createElement("div",null,nt.createElement("input",{style:We,disabled:An===!1||an,tabIndex:An!==!1?ni:null,onKeyDown:fi,onFocus:Bi,onBlur:Ti,value:"",onChange:Ue,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(Ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(Ft,"-indent")},nt.createElement("div",{ref:Zn,className:"".concat(Ft,"-indent-unit")}))),nt.createElement(Nt.Z,(0,vt.Z)({},Ri,{data:Gn,itemKey:Ee,height:on,fullHeight:!1,virtual:Cn,itemHeight:Pn,prefixCls:"".concat(Ft,"-list"),ref:Qi,onVisibleChange:function(fn,He){var je=new Set(fn),vn=He.filter(function(rn){return!je.has(rn)});vn.some(function(rn){return Ee(rn)===ue})&&mn()}}),function(Re){var fn=Re.pos,He=(0,vt.Z)({},(ft(Re.data),Re.data)),je=Re.title,vn=Re.key,rn=Re.isStart,bn=Re.isEnd,xn=(0,Wt.km)(vn,fn);delete He.key,delete He.children;var On=(0,Wt.H8)(xn,si);return nt.createElement(Se,(0,vt.Z)({},He,On,{title:je,active:!!Jn&&vn===Jn.key,pos:fn,data:Re.data,isStart:rn,isEnd:bn,motion:ye,motionNodes:vn===ue?ve:null,motionType:Nn,onMotionStart:io,onMotionEnd:mn,treeNodeRequiredProps:si,onMouseMove:function(){Di(null)}}))}))});gn.displayName="NodeList";var Bn=gn,dn=Pt(35654),In=Pt(90782),Ce=Pt(67841),$n=10,Qn=function(xt){(0,we.Z)(Ft,xt);var Tt=(0,te.Z)(Ft);function Ft(){var yt;(0,Ut.Z)(this,Ft);for(var ee=arguments.length,pe=new Array(ee),qt=0;qt2&&arguments[2]!==void 0?arguments[2]:!1,Ne=yt.state,hn=Ne.dragChildrenKeys,an=Ne.dropPosition,_e=Ne.dropTargetKey,En=Ne.dropTargetPos,Ln=Ne.dropAllowed;if(Ln){var ye=yt.props.onDrop;if(yt.setState({dragOverNodeKey:null}),yt.cleanDragState(),_e!==null){var on=(0,de.Z)((0,de.Z)({},(0,Wt.H8)(_e,yt.getTreeNodeRequiredProps())),{},{active:((ce=yt.getActiveItem())===null||ce===void 0?void 0:ce.key)===_e,data:(0,Ce.Z)(yt.state.keyEntities,_e).node}),Pn=hn.indexOf(_e)!==-1;(0,et.ZP)(!Pn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Cn=(0,dn.yx)(En),An={event:Zt,node:(0,Wt.F)(on),dragNode:yt.dragNode?(0,Wt.F)(yt.dragNode.props):null,dragNodesKeys:[yt.dragNode.props.eventKey].concat(hn),dropToGap:an!==0,dropPosition:an+Number(Cn[Cn.length-1])};ne||ye==null||ye(An),yt.dragNode=null}}},yt.cleanDragState=function(){var Zt=yt.state.draggingNodeKey;Zt!==null&&yt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),yt.dragStartMousePosition=null,yt.currentMouseOverDroppableNodeKey=null},yt.triggerExpandActionExpand=function(Zt,fe){var ce=yt.state,ne=ce.expandedKeys,Ne=ce.flattenNodes,hn=fe.expanded,an=fe.key,_e=fe.isLeaf;if(!(_e||Zt.shiftKey||Zt.metaKey||Zt.ctrlKey)){var En=Ne.filter(function(ye){return ye.key===an})[0],Ln=(0,Wt.F)((0,de.Z)((0,de.Z)({},(0,Wt.H8)(an,yt.getTreeNodeRequiredProps())),{},{data:En.data}));yt.setExpandedKeys(hn?(0,dn._5)(ne,an):(0,dn.L0)(ne,an)),yt.onNodeExpand(Zt,Ln)}},yt.onNodeClick=function(Zt,fe){var ce=yt.props,ne=ce.onClick,Ne=ce.expandAction;Ne==="click"&&yt.triggerExpandActionExpand(Zt,fe),ne==null||ne(Zt,fe)},yt.onNodeDoubleClick=function(Zt,fe){var ce=yt.props,ne=ce.onDoubleClick,Ne=ce.expandAction;Ne==="doubleClick"&&yt.triggerExpandActionExpand(Zt,fe),ne==null||ne(Zt,fe)},yt.onNodeSelect=function(Zt,fe){var ce=yt.state.selectedKeys,ne=yt.state,Ne=ne.keyEntities,hn=ne.fieldNames,an=yt.props,_e=an.onSelect,En=an.multiple,Ln=fe.selected,ye=fe[hn.key],on=!Ln;on?En?ce=(0,dn.L0)(ce,ye):ce=[ye]:ce=(0,dn._5)(ce,ye);var Pn=ce.map(function(Cn){var An=(0,Ce.Z)(Ne,Cn);return An?An.node:null}).filter(function(Cn){return Cn});yt.setUncontrolledState({selectedKeys:ce}),_e==null||_e(ce,{event:"select",selected:on,node:fe,selectedNodes:Pn,nativeEvent:Zt.nativeEvent})},yt.onNodeCheck=function(Zt,fe,ce){var ne=yt.state,Ne=ne.keyEntities,hn=ne.checkedKeys,an=ne.halfCheckedKeys,_e=yt.props,En=_e.checkStrictly,Ln=_e.onCheck,ye=fe.key,on,Pn={event:"check",node:fe,checked:ce,nativeEvent:Zt.nativeEvent};if(En){var Cn=ce?(0,dn.L0)(hn,ye):(0,dn._5)(hn,ye),An=(0,dn._5)(an,ye);on={checked:Cn,halfChecked:An},Pn.checkedNodes=Cn.map(function(Ti){return(0,Ce.Z)(Ne,Ti)}).filter(function(Ti){return Ti}).map(function(Ti){return Ti.node}),yt.setUncontrolledState({checkedKeys:Cn})}else{var Jn=(0,In.S)([].concat((0,$t.Z)(hn),[ye]),!0,Ne),ui=Jn.checkedKeys,ni=Jn.halfCheckedKeys;if(!ce){var fi=new Set(ui);fi.delete(ye);var Bi=(0,In.S)(Array.from(fi),{checked:!1,halfCheckedKeys:ni},Ne);ui=Bi.checkedKeys,ni=Bi.halfCheckedKeys}on=ui,Pn.checkedNodes=[],Pn.checkedNodesPositions=[],Pn.halfCheckedKeys=ni,ui.forEach(function(Ti){var Di=(0,Ce.Z)(Ne,Ti);if(Di){var io=Di.node,to=Di.pos;Pn.checkedNodes.push(io),Pn.checkedNodesPositions.push({node:io,pos:to})}}),yt.setUncontrolledState({checkedKeys:ui},!1,{halfCheckedKeys:ni})}Ln==null||Ln(on,Pn)},yt.onNodeLoad=function(Zt){var fe=Zt.key,ce=new Promise(function(ne,Ne){yt.setState(function(hn){var an=hn.loadedKeys,_e=an===void 0?[]:an,En=hn.loadingKeys,Ln=En===void 0?[]:En,ye=yt.props,on=ye.loadData,Pn=ye.onLoad;if(!on||_e.indexOf(fe)!==-1||Ln.indexOf(fe)!==-1)return null;var Cn=on(Zt);return Cn.then(function(){var An=yt.state.loadedKeys,Jn=(0,dn.L0)(An,fe);Pn==null||Pn(Jn,{event:"load",node:Zt}),yt.setUncontrolledState({loadedKeys:Jn}),yt.setState(function(ui){return{loadingKeys:(0,dn._5)(ui.loadingKeys,fe)}}),ne()}).catch(function(An){if(yt.setState(function(ui){return{loadingKeys:(0,dn._5)(ui.loadingKeys,fe)}}),yt.loadingRetryTimes[fe]=(yt.loadingRetryTimes[fe]||0)+1,yt.loadingRetryTimes[fe]>=$n){var Jn=yt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),yt.setUncontrolledState({loadedKeys:(0,dn.L0)(Jn,fe)}),ne()}Ne(An)}),{loadingKeys:(0,dn.L0)(Ln,fe)}})});return ce.catch(function(){}),ce},yt.onNodeMouseEnter=function(Zt,fe){var ce=yt.props.onMouseEnter;ce==null||ce({event:Zt,node:fe})},yt.onNodeMouseLeave=function(Zt,fe){var ce=yt.props.onMouseLeave;ce==null||ce({event:Zt,node:fe})},yt.onNodeContextMenu=function(Zt,fe){var ce=yt.props.onRightClick;ce&&(Zt.preventDefault(),ce({event:Zt,node:fe}))},yt.onFocus=function(){var Zt=yt.props.onFocus;yt.setState({focused:!0});for(var fe=arguments.length,ce=new Array(fe),ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yt.destroyed){var ne=!1,Ne=!0,hn={};Object.keys(Zt).forEach(function(an){if(an in yt.props){Ne=!1;return}ne=!0,hn[an]=Zt[an]}),ne&&(!fe||Ne)&&yt.setState((0,de.Z)((0,de.Z)({},hn),ce))}},yt.scrollTo=function(Zt){yt.listRef.current.scrollTo(Zt)},yt}return(0,Jt.Z)(Ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{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 ee,pe=this.state,qt=pe.focused,Zt=pe.flattenNodes,fe=pe.keyEntities,ce=pe.draggingNodeKey,ne=pe.activeKey,Ne=pe.dropLevelOffset,hn=pe.dropContainerKey,an=pe.dropTargetKey,_e=pe.dropPosition,En=pe.dragOverNodeKey,Ln=pe.indent,ye=this.props,on=ye.prefixCls,Pn=ye.className,Cn=ye.style,An=ye.showLine,Jn=ye.focusable,ui=ye.tabIndex,ni=ui===void 0?0:ui,fi=ye.selectable,Bi=ye.showIcon,Ti=ye.icon,Di=ye.switcherIcon,io=ye.draggable,to=ye.checkable,Ri=ye.checkStrictly,Qi=ye.disabled,Zn=ye.motion,Mt=ye.loadData,so=ye.filterTreeNode,Ii=ye.height,Wi=ye.itemHeight,ki=ye.virtual,Bo=ye.titleRender,Mo=ye.dropIndicatorRender,ai=ye.onContextMenu,di=ye.onScroll,Ae=ye.direction,Be=ye.rootClassName,_t=ye.rootStyle,Je=(0,Ot.Z)(this.props,{aria:!0,data:!0}),cn;return io&&((0,oe.Z)(io)==="object"?cn=io:typeof io=="function"?cn={nodeDraggable:io}:cn={}),nt.createElement(ht.k.Provider,{value:{prefixCls:on,selectable:fi,showIcon:Bi,icon:Ti,switcherIcon:Di,draggable:cn,draggingNodeKey:ce,checkable:to,checkStrictly:Ri,disabled:Qi,keyEntities:fe,dropLevelOffset:Ne,dropContainerKey:hn,dropTargetKey:an,dropPosition:_e,dragOverNodeKey:En,indent:Ln,direction:Ae,dropIndicatorRender:Mo,loadData:Mt,filterTreeNode:so,titleRender:Bo,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},nt.createElement("div",{role:"tree",className:re()(on,Pn,Be,(ee={},(0,It.Z)(ee,"".concat(on,"-show-line"),An),(0,It.Z)(ee,"".concat(on,"-focused"),qt),(0,It.Z)(ee,"".concat(on,"-active-focused"),ne!==null),ee)),style:_t},nt.createElement(Bn,(0,vt.Z)({ref:this.listRef,prefixCls:on,style:Cn,data:Zt,disabled:Qi,selectable:fi,checkable:!!to,motion:Zn,dragging:ce!==null,height:Ii,itemHeight:Wi,virtual:ki,focusable:Jn,focused:qt,tabIndex:ni,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ai,onScroll:di},this.getTreeNodeRequiredProps(),Je))))}}],[{key:"getDerivedStateFromProps",value:function(ee,pe){var qt=pe.prevProps,Zt={prevProps:ee};function fe(Jn){return!qt&&Jn in ee||qt&&qt[Jn]!==ee[Jn]}var ce,ne=pe.fieldNames;if(fe("fieldNames")&&(ne=(0,Wt.w$)(ee.fieldNames),Zt.fieldNames=ne),fe("treeData")?ce=ee.treeData:fe("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ce=(0,Wt.zn)(ee.children)),ce){Zt.treeData=ce;var Ne=(0,Wt.I8)(ce,{fieldNames:ne});Zt.keyEntities=(0,de.Z)((0,It.Z)({},ue,ke),Ne.keyEntities)}var hn=Zt.keyEntities||pe.keyEntities;if(fe("expandedKeys")||qt&&fe("autoExpandParent"))Zt.expandedKeys=ee.autoExpandParent||!qt&&ee.defaultExpandParent?(0,dn.r7)(ee.expandedKeys,hn):ee.expandedKeys;else if(!qt&&ee.defaultExpandAll){var an=(0,de.Z)({},hn);delete an[ue],Zt.expandedKeys=Object.keys(an).map(function(Jn){return an[Jn].key})}else!qt&&ee.defaultExpandedKeys&&(Zt.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,dn.r7)(ee.defaultExpandedKeys,hn):ee.defaultExpandedKeys);if(Zt.expandedKeys||delete Zt.expandedKeys,ce||Zt.expandedKeys){var _e=(0,Wt.oH)(ce||pe.treeData,Zt.expandedKeys||pe.expandedKeys,ne);Zt.flattenNodes=_e}if(ee.selectable&&(fe("selectedKeys")?Zt.selectedKeys=(0,dn.BT)(ee.selectedKeys,ee):!qt&&ee.defaultSelectedKeys&&(Zt.selectedKeys=(0,dn.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var En;if(fe("checkedKeys")?En=(0,dn.E6)(ee.checkedKeys)||{}:!qt&&ee.defaultCheckedKeys?En=(0,dn.E6)(ee.defaultCheckedKeys)||{}:ce&&(En=(0,dn.E6)(ee.checkedKeys)||{checkedKeys:pe.checkedKeys,halfCheckedKeys:pe.halfCheckedKeys}),En){var Ln=En,ye=Ln.checkedKeys,on=ye===void 0?[]:ye,Pn=Ln.halfCheckedKeys,Cn=Pn===void 0?[]:Pn;if(!ee.checkStrictly){var An=(0,In.S)(on,!0,hn);on=An.checkedKeys,Cn=An.halfCheckedKeys}Zt.checkedKeys=on,Zt.halfCheckedKeys=Cn}}return fe("loadedKeys")&&(Zt.loadedKeys=ee.loadedKeys),Zt}}]),Ft}(nt.Component);Qn.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:at,allowDrop:function(){return!0},expandAction:!1},Qn.TreeNode=At.Z;var jt=Qn,Lt=jt},35654:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{BT:function(){return nt},E6:function(){return ft},L0:function(){return te},OM:function(){return et},_5:function(){return we},r7:function(){return mt},wA:function(){return re},yx:function(){return Fe}});var vt=Pt(19127),It=Pt(20135),oe=Pt(48736),de=Pt(59301),$t=Pt(39417),Ut=Pt(67841),Jt=Pt(71430),De=null;function we(wt,Et){if(!wt)return[];var Nt=wt.slice(),Dt=Nt.indexOf(Et);return Dt>=0&&Nt.splice(Dt,1),Nt}function te(wt,Et){var Nt=(wt||[]).slice();return Nt.indexOf(Et)===-1&&Nt.push(Et),Nt}function Fe(wt){return wt.split("-")}function re(wt,Et){var Nt=[],Dt=(0,Ut.Z)(Et,wt);function At(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Kt.forEach(function(Wt){var xe=Wt.key,Vt=Wt.children;Nt.push(xe),At(Vt)})}return At(Dt.children),Nt}function me(wt){if(wt.parent){var Et=Fe(wt.pos);return Number(Et[Et.length-1])===wt.parent.children.length-1}return!1}function Ot(wt){var Et=Fe(wt.pos);return Number(Et[Et.length-1])===0}function et(wt,Et,Nt,Dt,At,Kt,Wt,xe,Vt,Ie){var Se,Ye=wt.clientX,Le=wt.clientY,Pe=wt.target.getBoundingClientRect(),We=Pe.top,Ue=Pe.height,ue=(Ie==="rtl"?-1:1)*(((At==null?void 0:At.x)||0)-Ye),Ht=(ue-12)/Dt,ke=(0,Ut.Z)(xe,Nt.props.eventKey);if(Le-1.5?Kt({dragNode:$n,dropNode:Qn,dropPosition:1})?dn=1:jt=!1:Kt({dragNode:$n,dropNode:Qn,dropPosition:0})?dn=0:Kt({dragNode:$n,dropNode:Qn,dropPosition:1})?dn=1:jt=!1:Kt({dragNode:$n,dropNode:Qn,dropPosition:1})?dn=1:jt=!1,{dropPosition:dn,dropLevelOffset:In,dropTargetKey:ke.key,dropTargetPos:ke.pos,dragOverNodeKey:Bn,dropContainerKey:dn===0?null:((Se=ke.parent)===null||Se===void 0?void 0:Se.key)||null,dropAllowed:jt}}function nt(wt,Et){if(wt){var Nt=Et.multiple;return Nt?wt.slice():wt.length?[wt[0]]:wt}}var ht=function(Et){return Et};function at(wt,Et){if(!wt)return[];var Nt=Et||{},Dt=Nt.processProps,At=Dt===void 0?ht:Dt,Kt=Array.isArray(wt)?wt:[wt];return Kt.map(function(Wt){var xe=Wt.children,Vt=_objectWithoutProperties(Wt,De),Ie=at(xe,Et);return React.createElement(TreeNode,_extends({key:Vt.key},At(Vt)),Ie)})}function ft(wt){if(!wt)return null;var Et;if(Array.isArray(wt))Et={checkedKeys:wt,halfCheckedKeys:void 0};else if((0,It.Z)(wt)==="object")Et={checkedKeys:wt.checked||void 0,halfCheckedKeys:wt.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Et}function mt(wt,Et){var Nt=new Set;function Dt(At){if(!Nt.has(At)){var Kt=(0,Ut.Z)(Et,At);if(Kt){Nt.add(At);var Wt=Kt.parent,xe=Kt.node;xe.disabled||Wt&&Dt(Wt.key)}}}return(wt||[]).forEach(function(At){Dt(At)}),(0,vt.Z)(Nt)}},90782:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{S:function(){return Jt}});var vt=Pt(48736),It=Pt(67841);function oe(De,we){var te=new Set;return De.forEach(function(Fe){we.has(Fe)||te.add(Fe)}),te}function de(De){var we=De||{},te=we.disabled,Fe=we.disableCheckbox,re=we.checkable;return!!(te||Fe)||re===!1}function $t(De,we,te,Fe){for(var re=new Set(De),me=new Set,Ot=0;Ot<=te;Ot+=1){var et=we.get(Ot)||new Set;et.forEach(function(ft){var mt=ft.key,wt=ft.node,Et=ft.children,Nt=Et===void 0?[]:Et;re.has(mt)&&!Fe(wt)&&Nt.filter(function(Dt){return!Fe(Dt.node)}).forEach(function(Dt){re.add(Dt.key)})})}for(var nt=new Set,ht=te;ht>=0;ht-=1){var at=we.get(ht)||new Set;at.forEach(function(ft){var mt=ft.parent,wt=ft.node;if(!(Fe(wt)||!ft.parent||nt.has(ft.parent.key))){if(Fe(ft.parent.node)){nt.add(mt.key);return}var Et=!0,Nt=!1;(mt.children||[]).filter(function(Dt){return!Fe(Dt.node)}).forEach(function(Dt){var At=Dt.key,Kt=re.has(At);Et&&!Kt&&(Et=!1),!Nt&&(Kt||me.has(At))&&(Nt=!0)}),Et&&re.add(mt.key),Nt&&me.add(mt.key),nt.add(mt.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(oe(me,re))}}function Ut(De,we,te,Fe,re){for(var me=new Set(De),Ot=new Set(we),et=0;et<=Fe;et+=1){var nt=te.get(et)||new Set;nt.forEach(function(mt){var wt=mt.key,Et=mt.node,Nt=mt.children,Dt=Nt===void 0?[]:Nt;!me.has(wt)&&!Ot.has(wt)&&!re(Et)&&Dt.filter(function(At){return!re(At.node)}).forEach(function(At){me.delete(At.key)})})}Ot=new Set;for(var ht=new Set,at=Fe;at>=0;at-=1){var ft=te.get(at)||new Set;ft.forEach(function(mt){var wt=mt.parent,Et=mt.node;if(!(re(Et)||!mt.parent||ht.has(mt.parent.key))){if(re(mt.parent.node)){ht.add(wt.key);return}var Nt=!0,Dt=!1;(wt.children||[]).filter(function(At){return!re(At.node)}).forEach(function(At){var Kt=At.key,Wt=me.has(Kt);Nt&&!Wt&&(Nt=!1),!Dt&&(Wt||Ot.has(Kt))&&(Dt=!0)}),Nt||me.delete(wt.key),Dt&&Ot.add(wt.key),ht.add(wt.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(Ot,me))}}function Jt(De,we,te,Fe){var re=[],me;Fe?me=Fe:me=de;var Ot=new Set(De.filter(function(at){var ft=!!(0,It.Z)(te,at);return ft||re.push(at),ft})),et=new Map,nt=0;Object.keys(te).forEach(function(at){var ft=te[at],mt=ft.level,wt=et.get(mt);wt||(wt=new Set,et.set(mt,wt)),wt.add(ft),nt=Math.max(nt,mt)}),(0,vt.ZP)(!re.length,"Tree missing follow keys: ".concat(re.slice(0,100).map(function(at){return"'".concat(at,"'")}).join(", ")));var ht;return we===!0?ht=$t(Ot,et,nt,me):ht=Ut(Ot,we.halfCheckedKeys,et,nt,me),ht}},67841:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return vt}});function vt(It,oe){return It[oe]}},71430:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{F:function(){return mt},H8:function(){return ft},I8:function(){return at},km:function(){return re},oH:function(){return nt},w$:function(){return me},zn:function(){return et}});var vt=Pt(20135),It=Pt(19127),oe=Pt(44127),de=Pt(6620),$t=Pt(11592),Ut=Pt(2738),Jt=Pt(48736),De=Pt(67841),we=["children"];function te(wt,Et){return"".concat(wt,"-").concat(Et)}function Fe(wt){return wt&&wt.type&&wt.type.isTreeNode}function re(wt,Et){return wt!=null?wt:Et}function me(wt){var Et=wt||{},Nt=Et.title,Dt=Et._title,At=Et.key,Kt=Et.children,Wt=Nt||"title";return{title:Wt,_title:Dt||[Wt],key:At||"key",children:Kt||"children"}}function Ot(wt,Et){var Nt=new Map;function Dt(At){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(At||[]).forEach(function(Wt){var xe=Wt[Et.key],Vt=Wt[Et.children];warning(xe!=null,"Tree node must have a certain key: [".concat(Kt).concat(xe,"]"));var Ie=String(xe);warning(!Nt.has(Ie)||xe===null||xe===void 0,"Same 'key' exist in the Tree: ".concat(Ie)),Nt.set(Ie,!0),Dt(Vt,"".concat(Kt).concat(Ie," > "))})}Dt(wt)}function et(wt){function Et(Nt){var Dt=(0,$t.Z)(Nt);return Dt.map(function(At){if(!Fe(At))return(0,Jt.ZP)(!At,"Tree/TreeNode can only accept TreeNode as children."),null;var Kt=At.key,Wt=At.props,xe=Wt.children,Vt=(0,de.Z)(Wt,we),Ie=(0,oe.Z)({key:Kt},Vt),Se=Et(xe);return Se.length&&(Ie.children=Se),Ie}).filter(function(At){return At})}return Et(wt)}function nt(wt,Et,Nt){var Dt=me(Nt),At=Dt._title,Kt=Dt.key,Wt=Dt.children,xe=new Set(Et===!0?[]:Et),Vt=[];function Ie(Se){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Se.map(function(Le,Pe){for(var We=te(Ye?Ye.pos:"0",Pe),Ue=re(Le[Kt],We),ue,Ht=0;Ht1&&arguments[1]!==void 0?arguments[1]:{},Nt=Et.initWrapper,Dt=Et.processEntity,At=Et.onProcessFinished,Kt=Et.externalGetKey,Wt=Et.childrenPropName,xe=Et.fieldNames,Vt=arguments.length>2?arguments[2]:void 0,Ie=Kt||Vt,Se={},Ye={},Le={posEntities:Se,keyEntities:Ye};return Nt&&(Le=Nt(Le)||Le),ht(wt,function(Pe){var We=Pe.node,Ue=Pe.index,ue=Pe.pos,Ht=Pe.key,ke=Pe.parentPos,pn=Pe.level,ln=Pe.nodes,Ee={node:We,nodes:ln,index:Ue,key:Ht,pos:ue,level:pn},Ke=re(Ht,ue);Se[ue]=Ee,Ye[Ke]=Ee,Ee.parent=Se[ke],Ee.parent&&(Ee.parent.children=Ee.parent.children||[],Ee.parent.children.push(Ee)),Dt&&Dt(Ee,Le)},{externalGetKey:Ie,childrenPropName:Wt,fieldNames:xe}),At&&At(Le),Le}function ft(wt,Et){var Nt=Et.expandedKeys,Dt=Et.selectedKeys,At=Et.loadedKeys,Kt=Et.loadingKeys,Wt=Et.checkedKeys,xe=Et.halfCheckedKeys,Vt=Et.dragOverNodeKey,Ie=Et.dropPosition,Se=Et.keyEntities,Ye=(0,De.Z)(Se,wt),Le={eventKey:wt,expanded:Nt.indexOf(wt)!==-1,selected:Dt.indexOf(wt)!==-1,loaded:At.indexOf(wt)!==-1,loading:Kt.indexOf(wt)!==-1,checked:Wt.indexOf(wt)!==-1,halfChecked:xe.indexOf(wt)!==-1,pos:String(Ye?Ye.pos:""),dragOver:Vt===wt&&Ie===0,dragOverGapTop:Vt===wt&&Ie===-1,dragOverGapBottom:Vt===wt&&Ie===1};return Le}function mt(wt){var Et=wt.data,Nt=wt.expanded,Dt=wt.selected,At=wt.checked,Kt=wt.loaded,Wt=wt.loading,xe=wt.halfChecked,Vt=wt.dragOver,Ie=wt.dragOverGapTop,Se=wt.dragOverGapBottom,Ye=wt.pos,Le=wt.active,Pe=wt.eventKey,We=(0,oe.Z)((0,oe.Z)({},Et),{},{expanded:Nt,selected:Dt,checked:At,loaded:Kt,loading:Wt,halfChecked:xe,dragOver:Vt,dragOverGapTop:Ie,dragOverGapBottom:Se,pos:Ye,active:Le,key:Pe});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,Jt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),wt}}),We}},24916:function(Sn,Ve,Pt){"use strict";Pt.d(Ve,{Z:function(){return Qn}});var vt=Pt(96663),It=Pt(20135),oe=Pt(44127),de=Pt(90493),$t=Pt(72071),Ut=Pt(6620),Jt=Pt(92310),De=Pt.n(Jt),we=Pt(29301),te=Pt(70425),Fe=Pt(34280),re=Pt(59301),me=Pt(4676),Ot=re.forwardRef(function(jt,Lt){var xt=jt.height,Tt=jt.offsetY,Ft=jt.offsetX,yt=jt.children,ee=jt.prefixCls,pe=jt.onInnerResize,qt=jt.innerProps,Zt=jt.rtl,fe=jt.extra,ce={},ne={display:"flex",flexDirection:"column"};return Tt!==void 0&&(ce={height:xt,position:"relative",overflow:"hidden"},ne=(0,oe.Z)((0,oe.Z)({},ne),{},(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({transform:"translateY(".concat(Tt,"px)")},Zt?"marginRight":"marginLeft",-Ft),"position","absolute"),"left",0),"right",0),"top",0))),re.createElement("div",{style:ce},re.createElement(we.Z,{onResize:function(hn){var an=hn.offsetHeight;an&&pe&&pe()}},re.createElement("div",(0,vt.Z)({style:ne,className:De()((0,de.Z)({},"".concat(ee,"-holder-inner"),ee)),ref:Lt},qt),yt,fe)))});Ot.displayName="Filler";var et=Ot;function nt(jt){var Lt=jt.children,xt=jt.setRef,Tt=re.useCallback(function(Ft){xt(Ft)},[]);return re.cloneElement(Lt,{ref:Tt})}function ht(jt,Lt,xt,Tt,Ft,yt,ee,pe){var qt=pe.getKey;return jt.slice(Lt,xt+1).map(function(Zt,fe){var ce=Lt+fe,ne=ee(Zt,ce,{style:{width:Tt},offsetX:Ft}),Ne=qt(Zt);return re.createElement(nt,{key:Ne,setRef:function(an){return yt(Zt,an)}},ne)})}function at(jt,Lt,xt,Tt){var Ft=xt-jt,yt=Lt-xt,ee=Math.min(Ft,yt)*2;if(Tt<=ee){var pe=Math.floor(Tt/2);return Tt%2?xt+pe+1:xt-pe}return Ft>yt?xt-(Tt-yt):xt+(Tt-Ft)}function ft(jt,Lt,xt){var Tt=jt.length,Ft=Lt.length,yt,ee;if(Tt===0&&Ft===0)return null;Tt2&&arguments[2]!==void 0?arguments[2]:!1,ce=qt?Zt<0&&pe.current.left||Zt>0&&pe.current.right:Zt<0&&pe.current.top||Zt>0&&pe.current.bottom;return fe&&ce?(clearTimeout(yt.current),Ft.current=!1):(!ce||Ft.current)&&ee(),!Ft.current&&ce}};function At(jt,Lt,xt,Tt,Ft,yt,ee){var pe=(0,re.useRef)(0),qt=(0,re.useRef)(null),Zt=(0,re.useRef)(null),fe=(0,re.useRef)(!1),ce=Dt(Lt,xt,Tt,Ft);function ne(Ln,ye){if(wt.Z.cancel(qt.current),!ce(!1,ye)){var on=Ln;if(!on._virtualHandled)on._virtualHandled=!0;else return;pe.current+=ye,Zt.current=ye,Nt||on.preventDefault(),qt.current=(0,wt.Z)(function(){var Pn=fe.current?10:1;ee(pe.current*Pn,!1),pe.current=0})}}function Ne(Ln,ye){ee(ye,!0),Nt||Ln.preventDefault()}var hn=(0,re.useRef)(null),an=(0,re.useRef)(null);function _e(Ln){if(jt){wt.Z.cancel(an.current),an.current=(0,wt.Z)(function(){hn.current=null},2);var ye=Ln.deltaX,on=Ln.deltaY,Pn=Ln.shiftKey,Cn=ye,An=on;(hn.current==="sx"||!hn.current&&Pn&&on&&!ye)&&(Cn=on,An=0,hn.current="sx");var Jn=Math.abs(Cn),ui=Math.abs(An);hn.current===null&&(hn.current=yt&&Jn>ui?"x":"y"),hn.current==="y"?ne(Ln,An):Ne(Ln,Cn)}}function En(Ln){jt&&(fe.current=Ln.detail===Zt.current)}return[_e,En]}function Kt(jt,Lt,xt,Tt){var Ft=re.useMemo(function(){return[new Map,[]]},[jt,xt.id,Tt]),yt=(0,$t.Z)(Ft,2),ee=yt[0],pe=yt[1],qt=function(fe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fe,ne=ee.get(fe),Ne=ee.get(ce);if(ne===void 0||Ne===void 0)for(var hn=jt.length,an=pe.length;an0&&arguments[0]!==void 0?arguments[0]:!1;fe();var hn=function(){var En=!1;pe.current.forEach(function(Ln,ye){if(Ln&&Ln.offsetParent){var on=Ln.offsetHeight,Pn=getComputedStyle(Ln),Cn=Pn.marginTop,An=Pn.marginBottom,Jn=Se(Cn),ui=Se(An),ni=on+Jn+ui;qt.current.get(ye)!==ni&&(qt.current.set(ye,ni),En=!0)}}),En&&ee(function(Ln){return Ln+1})};if(Ne)hn();else{Zt.current+=1;var an=Zt.current;Promise.resolve().then(function(){an===Zt.current&&hn()})}}function ne(Ne,hn){var an=jt(Ne),_e=pe.current.get(an);hn?(pe.current.set(an,hn),ce()):pe.current.delete(an),!_e!=!hn&&(hn?Lt==null||Lt(Ne):xt==null||xt(Ne))}return(0,re.useEffect)(function(){return fe},[]),[ne,ce,qt.current,yt]}var Le=14/15;function Pe(jt,Lt,xt){var Tt=(0,re.useRef)(!1),Ft=(0,re.useRef)(0),yt=(0,re.useRef)(0),ee=(0,re.useRef)(null),pe=(0,re.useRef)(null),qt,Zt=function(Ne){if(Tt.current){var hn=Math.ceil(Ne.touches[0].pageX),an=Math.ceil(Ne.touches[0].pageY),_e=Ft.current-hn,En=yt.current-an,Ln=Math.abs(_e)>Math.abs(En);Ln?Ft.current=hn:yt.current=an;var ye=xt(Ln,Ln?_e:En,!1,Ne);ye&&Ne.preventDefault(),clearInterval(pe.current),ye&&(pe.current=setInterval(function(){Ln?_e*=Le:En*=Le;var on=Math.floor(Ln?_e:En);(!xt(Ln,on,!0)||Math.abs(on)<=.1)&&clearInterval(pe.current)},16))}},fe=function(){Tt.current=!1,qt()},ce=function(Ne){qt(),Ne.touches.length===1&&!Tt.current&&(Tt.current=!0,Ft.current=Math.ceil(Ne.touches[0].pageX),yt.current=Math.ceil(Ne.touches[0].pageY),ee.current=Ne.target,ee.current.addEventListener("touchmove",Zt,{passive:!1}),ee.current.addEventListener("touchend",fe,{passive:!0}))};qt=function(){ee.current&&(ee.current.removeEventListener("touchmove",Zt),ee.current.removeEventListener("touchend",fe))},(0,Fe.Z)(function(){return jt&&Lt.current.addEventListener("touchstart",ce,{passive:!0}),function(){var ne;(ne=Lt.current)===null||ne===void 0||ne.removeEventListener("touchstart",ce),qt(),clearInterval(pe.current)}},[jt])}function We(jt){return Math.floor(Math.pow(jt,.5))}function Ue(jt,Lt){var xt="touches"in jt?jt.touches[0]:jt;return xt[Lt?"pageX":"pageY"]-window[Lt?"scrollX":"scrollY"]}function ue(jt,Lt,xt){re.useEffect(function(){var Tt=Lt.current;if(jt&&Tt){var Ft=!1,yt,ee,pe=function(){wt.Z.cancel(yt)},qt=function ne(){pe(),yt=(0,wt.Z)(function(){xt(ee),ne()})},Zt=function(Ne){if(!Ne.target.draggable){var hn=Ne;hn._virtualHandled||(hn._virtualHandled=!0,Ft=!0)}},fe=function(){Ft=!1,pe()},ce=function(Ne){if(Ft){var hn=Ue(Ne,!1),an=Tt.getBoundingClientRect(),_e=an.top,En=an.bottom;if(hn<=_e){var Ln=_e-hn;ee=-We(Ln),qt()}else if(hn>=En){var ye=hn-En;ee=We(ye),qt()}else pe()}};return Tt.addEventListener("mousedown",Zt),Tt.ownerDocument.addEventListener("mouseup",fe),Tt.ownerDocument.addEventListener("mousemove",ce),function(){Tt.removeEventListener("mousedown",Zt),Tt.ownerDocument.removeEventListener("mouseup",fe),Tt.ownerDocument.removeEventListener("mousemove",ce),pe()}}},[jt])}var Ht=10;function ke(jt,Lt,xt,Tt,Ft,yt,ee,pe){var qt=re.useRef(),Zt=re.useState(null),fe=(0,$t.Z)(Zt,2),ce=fe[0],ne=fe[1];return(0,Fe.Z)(function(){if(ce&&ce.times=0;Di-=1){var io=Ft(Lt[Di]),to=xt.get(io);if(to===void 0){Ln=!0;break}if(Ti-=to,Ti<=0)break}switch(Pn){case"top":on=An-_e;break;case"bottom":on=Jn-En+_e;break;default:{var Ri=jt.current.scrollTop,Qi=Ri+En;AnQi&&(ye="bottom")}}on!==null&&ee(on),on!==ce.lastTop&&(Ln=!0)}Ln&&ne((0,oe.Z)((0,oe.Z)({},ce),{},{times:ce.times+1,targetAlign:ye,lastTop:on}))}},[ce,jt.current]),function(Ne){if(Ne==null){pe();return}if(wt.Z.cancel(qt.current),typeof Ne=="number")ee(Ne);else if(Ne&&(0,It.Z)(Ne)==="object"){var hn,an=Ne.align;"index"in Ne?hn=Ne.index:hn=Lt.findIndex(function(Ln){return Ft(Ln)===Ne.key});var _e=Ne.offset,En=_e===void 0?0:_e;ne({times:0,index:hn,offset:En,originAlign:an})}}}var pn=re.forwardRef(function(jt,Lt){var xt=jt.prefixCls,Tt=jt.rtl,Ft=jt.scrollOffset,yt=jt.scrollRange,ee=jt.onStartMove,pe=jt.onStopMove,qt=jt.onScroll,Zt=jt.horizontal,fe=jt.spinSize,ce=jt.containerSize,ne=jt.style,Ne=jt.thumbStyle,hn=jt.showScrollBar,an=re.useState(!1),_e=(0,$t.Z)(an,2),En=_e[0],Ln=_e[1],ye=re.useState(null),on=(0,$t.Z)(ye,2),Pn=on[0],Cn=on[1],An=re.useState(null),Jn=(0,$t.Z)(An,2),ui=Jn[0],ni=Jn[1],fi=!Tt,Bi=re.useRef(),Ti=re.useRef(),Di=re.useState(hn),io=(0,$t.Z)(Di,2),to=io[0],Ri=io[1],Qi=re.useRef(),Zn=function(){hn===!0||hn===!1||(clearTimeout(Qi.current),Ri(!0),Qi.current=setTimeout(function(){Ri(!1)},3e3))},Mt=yt-ce||0,so=ce-fe||0,Ii=re.useMemo(function(){if(Ft===0||Mt===0)return 0;var _t=Ft/Mt;return _t*so},[Ft,Mt,so]),Wi=function(Je){Je.stopPropagation(),Je.preventDefault()},ki=re.useRef({top:Ii,dragging:En,pageY:Pn,startTop:ui});ki.current={top:Ii,dragging:En,pageY:Pn,startTop:ui};var Bo=function(Je){Ln(!0),Cn(Ue(Je,Zt)),ni(ki.current.top),ee(),Je.stopPropagation(),Je.preventDefault()};re.useEffect(function(){var _t=function(ie){ie.preventDefault()},Je=Bi.current,cn=Ti.current;return Je.addEventListener("touchstart",_t,{passive:!1}),cn.addEventListener("touchstart",Bo,{passive:!1}),function(){Je.removeEventListener("touchstart",_t),cn.removeEventListener("touchstart",Bo)}},[]);var Mo=re.useRef();Mo.current=Mt;var ai=re.useRef();ai.current=so,re.useEffect(function(){if(En){var _t,Je=function(ie){var Qe=ki.current,yn=Qe.dragging,Nn=Qe.pageY,_n=Qe.startTop;wt.Z.cancel(_t);var le=Bi.current.getBoundingClientRect(),mn=ce/(Zt?le.width:le.height);if(yn){var Gn=(Ue(ie,Zt)-Nn)*mn,si=_n;!fi&&Zt?si-=Gn:si+=Gn;var Re=Mo.current,fn=ai.current,He=fn?si/fn:0,je=Math.ceil(He*Re);je=Math.max(je,0),je=Math.min(je,Re),_t=(0,wt.Z)(function(){qt(je,Zt)})}},cn=function(){Ln(!1),pe()};return window.addEventListener("mousemove",Je,{passive:!0}),window.addEventListener("touchmove",Je,{passive:!0}),window.addEventListener("mouseup",cn,{passive:!0}),window.addEventListener("touchend",cn,{passive:!0}),function(){window.removeEventListener("mousemove",Je),window.removeEventListener("touchmove",Je),window.removeEventListener("mouseup",cn),window.removeEventListener("touchend",cn),wt.Z.cancel(_t)}}},[En]),re.useEffect(function(){return Zn(),function(){clearTimeout(Qi.current)}},[Ft]),re.useImperativeHandle(Lt,function(){return{delayHidden:Zn}});var di="".concat(xt,"-scrollbar"),Ae={position:"absolute",visibility:to?null:"hidden"},Be={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Zt?(Ae.height=8,Ae.left=0,Ae.right=0,Ae.bottom=0,Be.height="100%",Be.width=fe,fi?Be.left=Ii:Be.right=Ii):(Ae.width=8,Ae.top=0,Ae.bottom=0,fi?Ae.right=0:Ae.left=0,Be.width="100%",Be.height=fe,Be.top=Ii),re.createElement("div",{ref:Bi,className:De()(di,(0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(di,"-horizontal"),Zt),"".concat(di,"-vertical"),!Zt),"".concat(di,"-visible"),to)),style:(0,oe.Z)((0,oe.Z)({},Ae),ne),onMouseDown:Wi,onMouseMove:Zn},re.createElement("div",{ref:Ti,className:De()("".concat(di,"-thumb"),(0,de.Z)({},"".concat(di,"-thumb-moving"),En)),style:(0,oe.Z)((0,oe.Z)({},Be),Ne),onMouseDown:Bo}))}),ln=pn,Ee=20;function Ke(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xt=jt/Lt*jt;return isNaN(xt)&&(xt=0),xt=Math.max(xt,Ee),Math.floor(xt)}var gn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Bn=[],dn={overflowY:"auto",overflowAnchor:"none"};function In(jt,Lt){var xt=jt.prefixCls,Tt=xt===void 0?"rc-virtual-list":xt,Ft=jt.className,yt=jt.height,ee=jt.itemHeight,pe=jt.fullHeight,qt=pe===void 0?!0:pe,Zt=jt.style,fe=jt.data,ce=jt.children,ne=jt.itemKey,Ne=jt.virtual,hn=jt.direction,an=jt.scrollWidth,_e=jt.component,En=_e===void 0?"div":_e,Ln=jt.onScroll,ye=jt.onVirtualScroll,on=jt.onVisibleChange,Pn=jt.innerProps,Cn=jt.extraRender,An=jt.styles,Jn=jt.showScrollBar,ui=Jn===void 0?"optional":Jn,ni=(0,Ut.Z)(jt,gn),fi=re.useCallback(function(Zi){return typeof ne=="function"?ne(Zi):Zi==null?void 0:Zi[ne]},[ne]),Bi=Ye(fi,null,null),Ti=(0,$t.Z)(Bi,4),Di=Ti[0],io=Ti[1],to=Ti[2],Ri=Ti[3],Qi=!!(Ne!==!1&&yt&&ee),Zn=re.useMemo(function(){return Object.values(to.maps).reduce(function(Zi,xi){return Zi+xi},0)},[to.id,to.maps]),Mt=Qi&&fe&&(Math.max(ee*fe.length,Zn)>yt||!!an),so=hn==="rtl",Ii=De()(Tt,(0,de.Z)({},"".concat(Tt,"-rtl"),so),Ft),Wi=fe||Bn,ki=(0,re.useRef)(),Bo=(0,re.useRef)(),Mo=(0,re.useRef)(),ai=(0,re.useState)(0),di=(0,$t.Z)(ai,2),Ae=di[0],Be=di[1],_t=(0,re.useState)(0),Je=(0,$t.Z)(_t,2),cn=Je[0],ve=Je[1],ie=(0,re.useState)(!1),Qe=(0,$t.Z)(ie,2),yn=Qe[0],Nn=Qe[1],_n=function(){Nn(!0)},le=function(){Nn(!1)},mn={getKey:fi};function Gn(Zi){Be(function(xi){var Fi;typeof Zi=="function"?Fi=Zi(xi):Fi=Zi;var Mi=un(Fi);return ki.current.scrollTop=Mi,Mi})}var si=(0,re.useRef)({start:0,end:Wi.length}),Re=(0,re.useRef)(),fn=mt(Wi,fi),He=(0,$t.Z)(fn,1),je=He[0];Re.current=je;var vn=re.useMemo(function(){if(!Qi)return{scrollHeight:void 0,start:0,end:Wi.length-1,offset:void 0};if(!Mt){var Zi;return{scrollHeight:((Zi=Bo.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0,start:0,end:Wi.length-1,offset:void 0}}for(var xi=0,Fi,Mi,co,uo=Wi.length,Pi=0;Pi=Ae&&Fi===void 0&&(Fi=Pi,Mi=xi),xo>Ae+yt&&co===void 0&&(co=Pi),xi=xo}return Fi===void 0&&(Fi=0,Mi=0,co=Math.ceil(yt/ee)),co===void 0&&(co=Wi.length-1),co=Math.min(co+1,Wi.length-1),{scrollHeight:xi,start:Fi,end:co,offset:Mi}},[Mt,Qi,Ae,Wi,Ri,yt]),rn=vn.scrollHeight,bn=vn.start,xn=vn.end,On=vn.offset;si.current.start=bn,si.current.end=xn,re.useLayoutEffect(function(){var Zi=to.getRecord();if(Zi.size===1){var xi=Array.from(Zi)[0],Fi=Wi[bn];if(Fi){var Mi=fi(Fi);if(Mi===xi){var co=to.get(xi),uo=co-ee;Gn(function(Pi){return Pi+uo})}}}to.resetRecord()},[rn]);var zn=re.useState({width:0,height:yt}),yi=(0,$t.Z)(zn,2),Xe=yi[0],Li=yi[1],ji=function(xi){Li({width:xi.offsetWidth,height:xi.offsetHeight})},Ei=(0,re.useRef)(),nn=(0,re.useRef)(),Vn=re.useMemo(function(){return Ke(Xe.width,an)},[Xe.width,an]),ze=re.useMemo(function(){return Ke(Xe.height,rn)},[Xe.height,rn]),Ge=rn-yt,Oe=(0,re.useRef)(Ge);Oe.current=Ge;function un(Zi){var xi=Zi;return Number.isNaN(Oe.current)||(xi=Math.min(xi,Oe.current)),xi=Math.max(xi,0),xi}var kn=Ae<=0,Tn=Ae>=Ge,Rn=cn<=0,ei=cn>=an,qe=Dt(kn,Tn,Rn,ei),pi=function(){return{x:so?-cn:cn,y:Ae}},tn=(0,re.useRef)(pi()),Ci=(0,te.useEvent)(function(Zi){if(ye){var xi=(0,oe.Z)((0,oe.Z)({},pi()),Zi);(tn.current.x!==xi.x||tn.current.y!==xi.y)&&(ye(xi),tn.current=xi)}});function Ui(Zi,xi){var Fi=Zi;xi?((0,me.flushSync)(function(){ve(Fi)}),Ci()):Gn(Fi)}function $i(Zi){var xi=Zi.currentTarget.scrollTop;xi!==Ae&&Gn(xi),Ln==null||Ln(Zi),Ci()}var Co=function(xi){var Fi=xi,Mi=an?an-Xe.width:0;return Fi=Math.max(Fi,0),Fi=Math.min(Fi,Mi),Fi},lo=(0,te.useEvent)(function(Zi,xi){xi?((0,me.flushSync)(function(){ve(function(Fi){var Mi=Fi+(so?-Zi:Zi);return Co(Mi)})}),Ci()):Gn(function(Fi){var Mi=Fi+Zi;return Mi})}),Si=At(Qi,kn,Tn,Rn,ei,!!an,lo),ii=(0,$t.Z)(Si,2),Yi=ii[0],oo=ii[1];Pe(Qi,ki,function(Zi,xi,Fi,Mi){var co=Mi;return qe(Zi,xi,Fi)?!1:!co||!co._virtualHandled?(co&&(co._virtualHandled=!0),Yi({preventDefault:function(){},deltaX:Zi?xi:0,deltaY:Zi?0:xi}),!0):!1}),ue(Mt,ki,function(Zi){Gn(function(xi){return xi+Zi})}),(0,Fe.Z)(function(){function Zi(Fi){var Mi=kn&&Fi.detail<0,co=Tn&&Fi.detail>0;Qi&&!Mi&&!co&&Fi.preventDefault()}var xi=ki.current;return xi.addEventListener("wheel",Yi,{passive:!1}),xi.addEventListener("DOMMouseScroll",oo,{passive:!0}),xi.addEventListener("MozMousePixelScroll",Zi,{passive:!1}),function(){xi.removeEventListener("wheel",Yi),xi.removeEventListener("DOMMouseScroll",oo),xi.removeEventListener("MozMousePixelScroll",Zi)}},[Qi,kn,Tn]),(0,Fe.Z)(function(){if(an){var Zi=Co(cn);ve(Zi),Ci({x:Zi})}},[Xe.width,an]);var Yn=function(){var xi,Fi;(xi=Ei.current)===null||xi===void 0||xi.delayHidden(),(Fi=nn.current)===null||Fi===void 0||Fi.delayHidden()},zt=ke(ki,Wi,to,ee,fi,function(){return io(!0)},Gn,Yn);re.useImperativeHandle(Lt,function(){return{nativeElement:Mo.current,getScrollInfo:pi,scrollTo:function(xi){function Fi(Mi){return Mi&&(0,It.Z)(Mi)==="object"&&("left"in Mi||"top"in Mi)}Fi(xi)?(xi.left!==void 0&&ve(Co(xi.left)),zt(xi.top)):zt(xi)}}}),(0,Fe.Z)(function(){if(on){var Zi=Wi.slice(bn,xn+1);on(Zi,Wi)}},[bn,xn,Wi]);var Ai=Kt(Wi,fi,to,ee),vo=Cn==null?void 0:Cn({start:bn,end:xn,virtual:Mt,offsetX:cn,offsetY:On,rtl:so,getSize:Ai}),ao=ht(Wi,bn,xn,an,cn,Di,ce,mn),Eo=null;yt&&(Eo=(0,oe.Z)((0,de.Z)({},qt?"height":"maxHeight",yt),dn),Qi&&(Eo.overflowY="hidden",an&&(Eo.overflowX="hidden"),yn&&(Eo.pointerEvents="none")));var Ho={};return so&&(Ho.dir="rtl"),re.createElement("div",(0,vt.Z)({ref:Mo,style:(0,oe.Z)((0,oe.Z)({},Zt),{},{position:"relative"}),className:Ii},Ho,ni),re.createElement(we.Z,{onResize:ji},re.createElement(En,{className:"".concat(Tt,"-holder"),style:Eo,ref:ki,onScroll:$i,onMouseEnter:Yn},re.createElement(et,{prefixCls:Tt,height:rn,offsetX:cn,offsetY:On,scrollWidth:an,onInnerResize:io,ref:Bo,innerProps:Pn,rtl:so,extra:vo},ao))),Mt&&rn>yt&&re.createElement(ln,{ref:Ei,prefixCls:Tt,scrollOffset:Ae,scrollRange:rn,rtl:so,onScroll:Ui,onStartMove:_n,onStopMove:le,spinSize:ze,containerSize:Xe.height,style:An==null?void 0:An.verticalScrollBar,thumbStyle:An==null?void 0:An.verticalScrollBarThumb,showScrollBar:ui}),Mt&&an>Xe.width&&re.createElement(ln,{ref:nn,prefixCls:Tt,scrollOffset:cn,scrollRange:an,rtl:so,onScroll:Ui,onStartMove:_n,onStopMove:le,spinSize:Vn,containerSize:Xe.width,horizontal:!0,style:An==null?void 0:An.horizontalScrollBar,thumbStyle:An==null?void 0:An.horizontalScrollBarThumb,showScrollBar:ui}))}var Ce=re.forwardRef(In);Ce.displayName="List";var $n=Ce,Qn=$n},2637:function(Sn,Ve,Pt){"use strict";Object.defineProperty(Ve,"__esModule",{value:!0}),Object.defineProperty(Ve,"DraggableCore",{enumerable:!0,get:function(){return De.default}}),Ve.default=void 0;var vt=re(Pt(59301)),It=te(Pt(12708)),oe=te(Pt(4676)),de=te(Pt(57780)),$t=Pt(13957),Ut=Pt(60976),Jt=Pt(36641),De=te(Pt(80486)),we=te(Pt(94187));function te(at){return at&&at.__esModule?at:{default:at}}function Fe(at){if(typeof WeakMap!="function")return null;var ft=new WeakMap,mt=new WeakMap;return(Fe=function(wt){return wt?mt:ft})(at)}function re(at,ft){if(!ft&&at&&at.__esModule)return at;if(at===null||typeof at!="object"&&typeof at!="function")return{default:at};var mt=Fe(ft);if(mt&&mt.has(at))return mt.get(at);var wt={},Et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Nt in at)if(Nt!=="default"&&Object.prototype.hasOwnProperty.call(at,Nt)){var Dt=Et?Object.getOwnPropertyDescriptor(at,Nt):null;Dt&&(Dt.get||Dt.set)?Object.defineProperty(wt,Nt,Dt):wt[Nt]=at[Nt]}return wt.default=at,mt&&mt.set(at,wt),wt}function me(){return me=Object.assign?Object.assign.bind():function(at){for(var ft=1;ft{if((0,we.default)("Draggable: onDragStart: %j",wt),this.props.onStart(mt,(0,Ut.createDraggableData)(this,wt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ot(this,"onDrag",(mt,wt)=>{if(!this.state.dragging)return!1;(0,we.default)("Draggable: onDrag: %j",wt);const Et=(0,Ut.createDraggableData)(this,wt),Nt={x:Et.x,y:Et.y,slackX:0,slackY:0};if(this.props.bounds){const{x:At,y:Kt}=Nt;Nt.x+=this.state.slackX,Nt.y+=this.state.slackY;const[Wt,xe]=(0,Ut.getBoundPosition)(this,Nt.x,Nt.y);Nt.x=Wt,Nt.y=xe,Nt.slackX=this.state.slackX+(At-Nt.x),Nt.slackY=this.state.slackY+(Kt-Nt.y),Et.x=Nt.x,Et.y=Nt.y,Et.deltaX=Nt.x-this.state.x,Et.deltaY=Nt.y-this.state.y}if(this.props.onDrag(mt,Et)===!1)return!1;this.setState(Nt)}),Ot(this,"onDragStop",(mt,wt)=>{if(!this.state.dragging||this.props.onStop(mt,(0,Ut.createDraggableData)(this,wt))===!1)return!1;(0,we.default)("Draggable: onDragStop: %j",wt);const Nt={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:At,y:Kt}=this.props.position;Nt.x=At,Nt.y=Kt}this.setState(Nt)}),this.state={dragging:!1,dragged:!1,x:ft.position?ft.position.x:ft.defaultPosition.x,y:ft.position?ft.position.y:ft.defaultPosition.y,prevPropsPosition:ud({},ft.position),slackX:0,slackY:0,isElementSVG:!1},ft.position&&!(ft.onDrag||ft.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ft,mt;return(ft=(mt=this.props)===null||mt===void 0||(mt=mt.nodeRef)===null||mt===void 0?void 0:mt.current)!==null&&ft!==void 0?ft:oe.default.findDOMNode(this)}render(){const ue=this.props,{axis:ft,bounds:mt,children:wt,defaultPosition:Et,defaultClassName:Nt,defaultClassNameDragging:Dt,defaultClassNameDragged:At,position:Kt,positionOffset:Wt,scale:xe}=ue,Vt=Px(ue,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Ie={},Se=null;const Le=!!!Kt||this.state.dragging,Pe=Kt||Et,We={x:(0,Ut.canDragX)(this)&&Le?this.state.x:Pe.x,y:(0,Ut.canDragY)(this)&&Le?this.state.y:Pe.y};this.state.isElementSVG?Se=(0,$t.createSVGTransform)(We,Wt):Ie=(0,$t.createCSSTransform)(We,Wt);const Ue=(0,de.default)(wt.props.className||"",Nt,{[Dt]:this.state.dragging,[At]:this.state.dragged});return vt.createElement(De.default,me({},Vt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),vt.cloneElement(vt.Children.only(wt),{className:Ue,style:ud(ud({},wt.props.style),Ie),transform:Se}))}}Ve.default=ht,Ot(ht,"displayName","Draggable"),Ot(ht,"propTypes",Xy(ud({},De.default.propTypes),{axis:It.default.oneOf(["both","x","y","none"]),bounds:It.default.oneOfType([It.default.shape({left:It.default.number,right:It.default.number,top:It.default.number,bottom:It.default.number}),It.default.string,It.default.oneOf([!1])]),defaultClassName:It.default.string,defaultClassNameDragging:It.default.string,defaultClassNameDragged:It.default.string,defaultPosition:It.default.shape({x:It.default.number,y:It.default.number}),positionOffset:It.default.shape({x:It.default.oneOfType([It.default.number,It.default.string]),y:It.default.oneOfType([It.default.number,It.default.string])}),position:It.default.shape({x:It.default.number,y:It.default.number}),className:Jt.dontSetMe,style:Jt.dontSetMe,transform:Jt.dontSetMe})),Ot(ht,"defaultProps",Xy(ud({},De.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(Sn,Ve,Pt){"use strict";Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.default=void 0;var vt=te(Pt(59301)),It=De(Pt(12708)),oe=De(Pt(4676)),de=Pt(13957),$t=Pt(60976),Ut=Pt(36641),Jt=De(Pt(94187));function De(ht){return ht&&ht.__esModule?ht:{default:ht}}function we(ht){if(typeof WeakMap!="function")return null;var at=new WeakMap,ft=new WeakMap;return(we=function(mt){return mt?ft:at})(ht)}function te(ht,at){if(!at&&ht&&ht.__esModule)return ht;if(ht===null||typeof ht!="object"&&typeof ht!="function")return{default:ht};var ft=we(at);if(ft&&ft.has(ht))return ft.get(ht);var mt={},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Et in ht)if(Et!=="default"&&Object.prototype.hasOwnProperty.call(ht,Et)){var Nt=wt?Object.getOwnPropertyDescriptor(ht,Et):null;Nt&&(Nt.get||Nt.set)?Object.defineProperty(mt,Et,Nt):mt[Et]=ht[Et]}return mt.default=ht,ft&&ft.set(ht,mt),mt}function Fe(ht,at,ft){return at=re(at),at in ht?Object.defineProperty(ht,at,{value:ft,enumerable:!0,configurable:!0,writable:!0}):ht[at]=ft,ht}function re(ht){var at=me(ht,"string");return typeof at=="symbol"?at:String(at)}function me(ht,at){if(typeof ht!="object"||ht===null)return ht;var ft=ht[Symbol.toPrimitive];if(ft!==void 0){var mt=ft.call(ht,at||"default");if(typeof mt!="object")return mt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(ht)}const Ot={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=Ot.mouse;class nt extends vt.Component{constructor(){super(...arguments),Fe(this,"dragging",!1),Fe(this,"lastX",NaN),Fe(this,"lastY",NaN),Fe(this,"touchIdentifier",null),Fe(this,"mounted",!1),Fe(this,"handleDragStart",at=>{if(this.props.onMouseDown(at),!this.props.allowAnyClick&&typeof at.button=="number"&&at.button!==0)return!1;const ft=this.findDOMNode();if(!ft||!ft.ownerDocument||!ft.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:mt}=ft;if(this.props.disabled||!(at.target instanceof mt.defaultView.Node)||this.props.handle&&!(0,de.matchesSelectorAndParentsTo)(at.target,this.props.handle,ft)||this.props.cancel&&(0,de.matchesSelectorAndParentsTo)(at.target,this.props.cancel,ft))return;at.type==="touchstart"&&at.preventDefault();const wt=(0,de.getTouchIdentifier)(at);this.touchIdentifier=wt;const Et=(0,$t.getControlPosition)(at,wt,this);if(Et==null)return;const{x:Nt,y:Dt}=Et,At=(0,$t.createCoreData)(this,Nt,Dt);(0,Jt.default)("DraggableCore: handleDragStart: %j",At),(0,Jt.default)("calling",this.props.onStart),!(this.props.onStart(at,At)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,de.addUserSelectStyles)(mt),this.dragging=!0,this.lastX=Nt,this.lastY=Dt,(0,de.addEvent)(mt,et.move,this.handleDrag),(0,de.addEvent)(mt,et.stop,this.handleDragStop))}),Fe(this,"handleDrag",at=>{const ft=(0,$t.getControlPosition)(at,this.touchIdentifier,this);if(ft==null)return;let{x:mt,y:wt}=ft;if(Array.isArray(this.props.grid)){let Dt=mt-this.lastX,At=wt-this.lastY;if([Dt,At]=(0,$t.snapToGrid)(this.props.grid,Dt,At),!Dt&&!At)return;mt=this.lastX+Dt,wt=this.lastY+At}const Et=(0,$t.createCoreData)(this,mt,wt);if((0,Jt.default)("DraggableCore: handleDrag: %j",Et),this.props.onDrag(at,Et)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Dt){const At=document.createEvent("MouseEvents");At.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(At)}return}this.lastX=mt,this.lastY=wt}),Fe(this,"handleDragStop",at=>{if(!this.dragging)return;const ft=(0,$t.getControlPosition)(at,this.touchIdentifier,this);if(ft==null)return;let{x:mt,y:wt}=ft;if(Array.isArray(this.props.grid)){let At=mt-this.lastX||0,Kt=wt-this.lastY||0;[At,Kt]=(0,$t.snapToGrid)(this.props.grid,At,Kt),mt=this.lastX+At,wt=this.lastY+Kt}const Et=(0,$t.createCoreData)(this,mt,wt);if(this.props.onStop(at,Et)===!1||this.mounted===!1)return!1;const Dt=this.findDOMNode();Dt&&this.props.enableUserSelectHack&&(0,de.removeUserSelectStyles)(Dt.ownerDocument),(0,Jt.default)("DraggableCore: handleDragStop: %j",Et),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Dt&&((0,Jt.default)("DraggableCore: Removing handlers"),(0,de.removeEvent)(Dt.ownerDocument,et.move,this.handleDrag),(0,de.removeEvent)(Dt.ownerDocument,et.stop,this.handleDragStop))}),Fe(this,"onMouseDown",at=>(et=Ot.mouse,this.handleDragStart(at))),Fe(this,"onMouseUp",at=>(et=Ot.mouse,this.handleDragStop(at))),Fe(this,"onTouchStart",at=>(et=Ot.touch,this.handleDragStart(at))),Fe(this,"onTouchEnd",at=>(et=Ot.touch,this.handleDragStop(at)))}componentDidMount(){this.mounted=!0;const at=this.findDOMNode();at&&(0,de.addEvent)(at,Ot.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const at=this.findDOMNode();if(at){const{ownerDocument:ft}=at;(0,de.removeEvent)(ft,Ot.mouse.move,this.handleDrag),(0,de.removeEvent)(ft,Ot.touch.move,this.handleDrag),(0,de.removeEvent)(ft,Ot.mouse.stop,this.handleDragStop),(0,de.removeEvent)(ft,Ot.touch.stop,this.handleDragStop),(0,de.removeEvent)(at,Ot.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,de.removeUserSelectStyles)(ft)}}findDOMNode(){var at,ft;return(at=this.props)!==null&&at!==void 0&&at.nodeRef?(ft=this.props)===null||ft===void 0||(ft=ft.nodeRef)===null||ft===void 0?void 0:ft.current:oe.default.findDOMNode(this)}render(){return vt.cloneElement(vt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Ve.default=nt,Fe(nt,"displayName","DraggableCore"),Fe(nt,"propTypes",{allowAnyClick:It.default.bool,children:It.default.node.isRequired,disabled:It.default.bool,enableUserSelectHack:It.default.bool,offsetParent:function(ht,at){if(ht[at]&&ht[at].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:It.default.arrayOf(It.default.number),handle:It.default.string,cancel:It.default.string,nodeRef:It.default.object,onStart:It.default.func,onDrag:It.default.func,onStop:It.default.func,onMouseDown:It.default.func,scale:It.default.number,className:Ut.dontSetMe,style:Ut.dontSetMe,transform:Ut.dontSetMe}),Fe(nt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(Sn,Ve,Pt){"use strict";const{default:vt,DraggableCore:It}=Pt(2637);Sn.exports=vt,Sn.exports.default=vt,Sn.exports.DraggableCore=It},13957:function(Sn,Ve,Pt){"use strict";Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.addClassName=Et,Ve.addEvent=De,Ve.addUserSelectStyles=mt,Ve.createCSSTransform=et,Ve.createSVGTransform=nt,Ve.getTouch=at,Ve.getTouchIdentifier=ft,Ve.getTranslation=ht,Ve.innerHeight=re,Ve.innerWidth=me,Ve.matchesSelector=Ut,Ve.matchesSelectorAndParentsTo=Jt,Ve.offsetXYFromParent=Ot,Ve.outerHeight=te,Ve.outerWidth=Fe,Ve.removeClassName=Nt,Ve.removeEvent=we,Ve.removeUserSelectStyles=wt;var vt=Pt(36641),It=de(Pt(32092));function oe(Dt){if(typeof WeakMap!="function")return null;var At=new WeakMap,Kt=new WeakMap;return(oe=function(Wt){return Wt?Kt:At})(Dt)}function de(Dt,At){if(!At&&Dt&&Dt.__esModule)return Dt;if(Dt===null||typeof Dt!="object"&&typeof Dt!="function")return{default:Dt};var Kt=oe(At);if(Kt&&Kt.has(Dt))return Kt.get(Dt);var Wt={},xe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Vt in Dt)if(Vt!=="default"&&Object.prototype.hasOwnProperty.call(Dt,Vt)){var Ie=xe?Object.getOwnPropertyDescriptor(Dt,Vt):null;Ie&&(Ie.get||Ie.set)?Object.defineProperty(Wt,Vt,Ie):Wt[Vt]=Dt[Vt]}return Wt.default=Dt,Kt&&Kt.set(Dt,Wt),Wt}let $t="";function Ut(Dt,At){return $t||($t=(0,vt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Kt){return(0,vt.isFunction)(Dt[Kt])})),(0,vt.isFunction)(Dt[$t])?Dt[$t](At):!1}function Jt(Dt,At,Kt){let Wt=Dt;do{if(Ut(Wt,At))return!0;if(Wt===Kt)return!1;Wt=Wt.parentNode}while(Wt);return!1}function De(Dt,At,Kt,Wt){if(!Dt)return;const xe=ud({capture:!0},Wt);Dt.addEventListener?Dt.addEventListener(At,Kt,xe):Dt.attachEvent?Dt.attachEvent("on"+At,Kt):Dt["on"+At]=Kt}function we(Dt,At,Kt,Wt){if(!Dt)return;const xe=ud({capture:!0},Wt);Dt.removeEventListener?Dt.removeEventListener(At,Kt,xe):Dt.detachEvent?Dt.detachEvent("on"+At,Kt):Dt["on"+At]=null}function te(Dt){let At=Dt.clientHeight;const Kt=Dt.ownerDocument.defaultView.getComputedStyle(Dt);return At+=(0,vt.int)(Kt.borderTopWidth),At+=(0,vt.int)(Kt.borderBottomWidth),At}function Fe(Dt){let At=Dt.clientWidth;const Kt=Dt.ownerDocument.defaultView.getComputedStyle(Dt);return At+=(0,vt.int)(Kt.borderLeftWidth),At+=(0,vt.int)(Kt.borderRightWidth),At}function re(Dt){let At=Dt.clientHeight;const Kt=Dt.ownerDocument.defaultView.getComputedStyle(Dt);return At-=(0,vt.int)(Kt.paddingTop),At-=(0,vt.int)(Kt.paddingBottom),At}function me(Dt){let At=Dt.clientWidth;const Kt=Dt.ownerDocument.defaultView.getComputedStyle(Dt);return At-=(0,vt.int)(Kt.paddingLeft),At-=(0,vt.int)(Kt.paddingRight),At}function Ot(Dt,At,Kt){const xe=At===At.ownerDocument.body?{left:0,top:0}:At.getBoundingClientRect(),Vt=(Dt.clientX+At.scrollLeft-xe.left)/Kt,Ie=(Dt.clientY+At.scrollTop-xe.top)/Kt;return{x:Vt,y:Ie}}function et(Dt,At){const Kt=ht(Dt,At,"px");return{[(0,It.browserPrefixToKey)("transform",It.default)]:Kt}}function nt(Dt,At){return ht(Dt,At,"")}function ht(Dt,At,Kt){let{x:Wt,y:xe}=Dt,Vt="translate(".concat(Wt).concat(Kt,",").concat(xe).concat(Kt,")");if(At){const Ie="".concat(typeof At.x=="string"?At.x:At.x+Kt),Se="".concat(typeof At.y=="string"?At.y:At.y+Kt);Vt="translate(".concat(Ie,", ").concat(Se,")")+Vt}return Vt}function at(Dt,At){return Dt.targetTouches&&(0,vt.findInArray)(Dt.targetTouches,Kt=>At===Kt.identifier)||Dt.changedTouches&&(0,vt.findInArray)(Dt.changedTouches,Kt=>At===Kt.identifier)}function ft(Dt){if(Dt.targetTouches&&Dt.targetTouches[0])return Dt.targetTouches[0].identifier;if(Dt.changedTouches&&Dt.changedTouches[0])return Dt.changedTouches[0].identifier}function mt(Dt){if(!Dt)return;let At=Dt.getElementById("react-draggable-style-el");At||(At=Dt.createElement("style"),At.type="text/css",At.id="react-draggable-style-el",At.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,At.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,Dt.getElementsByTagName("head")[0].appendChild(At)),Dt.body&&Et(Dt.body,"react-draggable-transparent-selection")}function wt(Dt){if(Dt)try{if(Dt.body&&Nt(Dt.body,"react-draggable-transparent-selection"),Dt.selection)Dt.selection.empty();else{const At=(Dt.defaultView||window).getSelection();At&&At.type!=="Caret"&&At.removeAllRanges()}}catch(At){}}function Et(Dt,At){Dt.classList?Dt.classList.add(At):Dt.className.match(new RegExp("(?:^|\\s)".concat(At,"(?!\\S)")))||(Dt.className+=" ".concat(At))}function Nt(Dt,At){Dt.classList?Dt.classList.remove(At):Dt.className=Dt.className.replace(new RegExp("(?:^|\\s)".concat(At,"(?!\\S)"),"g"),"")}},32092:function(Sn,Ve){"use strict";Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.browserPrefixToKey=It,Ve.browserPrefixToStyle=oe,Ve.default=void 0,Ve.getPrefix=vt;const Pt=["Moz","Webkit","O","ms"];function vt(){var Ut;let Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const De=(Ut=window.document)===null||Ut===void 0||(Ut=Ut.documentElement)===null||Ut===void 0?void 0:Ut.style;if(!De||Jt in De)return"";for(let we=0;we: Unmounted during event!");return me}},36641:function(Sn,Ve){"use strict";Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.dontSetMe=de,Ve.findInArray=Pt,Ve.int=oe,Ve.isFunction=vt,Ve.isNum=It;function Pt($t,Ut){for(let Jt=0,De=$t.length;Jt=0||Object.prototype.hasOwnProperty.call(re,et)&&(Ot[et]=re[et]);return Ot}function De(re,me){if(!(re instanceof me))throw new TypeError("Cannot call a class as a function")}function we(re,me){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:re}function te(re,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);re.prototype=Object.create(me&&me.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(re,me):re.__proto__=me)}var Fe=function(re){te(me,re);function me(Ot){De(this,me);var et=we(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,Ot));return et.scrollListener=et.scrollListener.bind(et),et.eventListenerOptions=et.eventListenerOptions.bind(et),et.mousewheelListener=et.mousewheelListener.bind(et),et}return vt(me,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var et=this.getParentElement(this.scrollComponent);et.scrollTop=et.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var et=!1,nt={get passive(){et=!0}};try{document.addEventListener("test",null,nt),document.removeEventListener("test",null,nt)}catch(ht){}return et}},{key:"eventListenerOptions",value:function(){var et=this.props.useCapture;return this.isPassiveSupported()&&(et={useCapture:this.props.useCapture,passive:!0}),et}},{key:"setDefaultLoader",value:function(et){this.defaultLoader=et}},{key:"detachMousewheelListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.scrollComponent.parentNode),et.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.getParentElement(this.scrollComponent)),et.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),et.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(et){var nt=this.props.getScrollParent&&this.props.getScrollParent();return nt!=null?nt:et&&et.parentNode}},{key:"filterProps",value:function(et){return et}},{key:"attachScrollListener",value:function(){var et=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!et)){var nt=window;this.props.useWindow===!1&&(nt=et),nt.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),nt.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),nt.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(et){et.deltaY===1&&!this.isPassiveSupported()&&et.preventDefault()}},{key:"scrollListener",value:function(){var et=this.scrollComponent,nt=window,ht=this.getParentElement(et),at=void 0;if(this.props.useWindow){var ft=document.documentElement||document.body.parentNode||document.body,mt=nt.pageYOffset!==void 0?nt.pageYOffset:ft.scrollTop;this.props.isReverse?at=mt:at=this.calculateOffset(et,mt)}else this.props.isReverse?at=ht.scrollTop:at=et.scrollHeight-ht.scrollTop-ht.clientHeight;attypeof we=="object"&&we!=null&&we.nodeType===1,It=(we,te)=>(!te||we!=="hidden")&&we!=="visible"&&we!=="clip",oe=(we,te)=>{if(we.clientHeight{const me=(Ot=>{if(!Ot.ownerDocument||!Ot.ownerDocument.defaultView)return null;try{return Ot.ownerDocument.defaultView.frameElement}catch(et){return null}})(re);return!!me&&(me.clientHeightOtte||Ot>we&&et=te&&nt>=Fe?Ot-we-re:et>te&&ntFe?et-te+me:0,$t=we=>{const te=we.parentElement;return te==null?we.getRootNode().host||null:te},Ut=(we,te)=>{var Fe,re,me,Ot;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:at,skipOverflowHiddenElements:ft}=te,mt=typeof at=="function"?at:ln=>ln!==at;if(!vt(we))throw new TypeError("Invalid target");const wt=document.scrollingElement||document.documentElement,Et=[];let Nt=we;for(;vt(Nt)&&mt(Nt);){if(Nt=$t(Nt),Nt===wt){Et.push(Nt);break}Nt!=null&&Nt===document.body&&oe(Nt)&&!oe(document.documentElement)||Nt!=null&&oe(Nt,ft)&&Et.push(Nt)}const Dt=(re=(Fe=window.visualViewport)==null?void 0:Fe.width)!=null?re:innerWidth,At=(Ot=(me=window.visualViewport)==null?void 0:me.height)!=null?Ot:innerHeight,{scrollX:Kt,scrollY:Wt}=window,{height:xe,width:Vt,top:Ie,right:Se,bottom:Ye,left:Le}=we.getBoundingClientRect(),{top:Pe,right:We,bottom:Ue,left:ue}=(ln=>{const Ee=window.getComputedStyle(ln);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(we);let Ht=nt==="start"||nt==="nearest"?Ie-Pe:nt==="end"?Ye+Ue:Ie+xe/2-Pe+Ue,ke=ht==="center"?Le+Vt/2-ue+We:ht==="end"?Se+We:Le-ue;const pn=[];for(let ln=0;ln=0&&Le>=0&&Ye<=At&&Se<=Dt&&(Ee===wt&&!oe(Ee)||Ie>=Bn&&Ye<=In&&Le>=Ce&&Se<=dn))return pn;const $n=getComputedStyle(Ee),Qn=parseInt($n.borderLeftWidth,10),jt=parseInt($n.borderTopWidth,10),Lt=parseInt($n.borderRightWidth,10),xt=parseInt($n.borderBottomWidth,10);let Tt=0,Ft=0;const yt="offsetWidth"in Ee?Ee.offsetWidth-Ee.clientWidth-Qn-Lt:0,ee="offsetHeight"in Ee?Ee.offsetHeight-Ee.clientHeight-jt-xt:0,pe="offsetWidth"in Ee?Ee.offsetWidth===0?0:gn/Ee.offsetWidth:0,qt="offsetHeight"in Ee?Ee.offsetHeight===0?0:Ke/Ee.offsetHeight:0;if(wt===Ee)Tt=nt==="start"?Ht:nt==="end"?Ht-At:nt==="nearest"?de(Wt,Wt+At,At,jt,xt,Wt+Ht,Wt+Ht+xe,xe):Ht-At/2,Ft=ht==="start"?ke:ht==="center"?ke-Dt/2:ht==="end"?ke-Dt:de(Kt,Kt+Dt,Dt,Qn,Lt,Kt+ke,Kt+ke+Vt,Vt),Tt=Math.max(0,Tt+Wt),Ft=Math.max(0,Ft+Kt);else{Tt=nt==="start"?Ht-Bn-jt:nt==="end"?Ht-In+xt+ee:nt==="nearest"?de(Bn,In,Ke,jt,xt+ee,Ht,Ht+xe,xe):Ht-(Bn+Ke/2)+ee/2,Ft=ht==="start"?ke-Ce-Qn:ht==="center"?ke-(Ce+gn/2)+yt/2:ht==="end"?ke-dn+Lt+yt:de(Ce,dn,gn,Qn,Lt+yt,ke,ke+Vt,Vt);const{scrollLeft:Zt,scrollTop:fe}=Ee;Tt=qt===0?0:Math.max(0,Math.min(fe+Tt/qt,Ee.scrollHeight-Ke/qt+ee)),Ft=pe===0?0:Math.max(0,Math.min(Zt+Ft/pe,Ee.scrollWidth-gn/pe+yt)),Ht+=fe-Tt,ke+=Zt-Ft}pn.push({el:Ee,top:Tt,left:Ft})}return pn},Jt=we=>we===!1?{block:"end",inline:"nearest"}:(te=>te===Object(te)&&Object.keys(te).length!==0)(we)?we:{block:"start",inline:"nearest"};function De(we,te){if(!we.isConnected||!(me=>{let Ot=me;for(;Ot&&Ot.parentNode;){if(Ot.parentNode===document)return!0;Ot=Ot.parentNode instanceof ShadowRoot?Ot.parentNode.host:Ot.parentNode}return!1})(we))return;const Fe=(me=>{const Ot=window.getComputedStyle(me);return{top:parseFloat(Ot.scrollMarginTop)||0,right:parseFloat(Ot.scrollMarginRight)||0,bottom:parseFloat(Ot.scrollMarginBottom)||0,left:parseFloat(Ot.scrollMarginLeft)||0}})(we);if((me=>typeof me=="object"&&typeof me.behavior=="function")(te))return te.behavior(Ut(we,te));const re=typeof te=="boolean"||te==null?void 0:te.behavior;for(const{el:me,top:Ot,left:et}of Ut(we,Jt(te))){const nt=Ot-Fe.top+Fe.bottom,ht=et-Fe.left+Fe.right;me.scroll({top:nt,left:ht,behavior:re})}}}}]); }());