(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},59477:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},40001:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},49198:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},87169:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},73331:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},15277:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},52671:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},8657:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},56082:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},33853:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},12893:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},15075:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},32134:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},43531:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},61485:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},38819:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},47472:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function($e,Ft){return ke.createElement(Ge.Z,(0,le.Z)({},$e,{ref:Ft,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(On,pn){"use strict";pn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(On,pn){"use strict";pn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},42678:function(On,pn,pe){"use strict";var le=pe(59301),ke=Object.defineProperty,We=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(wt,$e,Ft)=>$e in wt?ke(wt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):wt[$e]=Ft,Me=(wt,$e)=>{for(var Ft in $e||($e={}))ut.call($e,Ft)&&Ue(wt,Ft,$e[Ft]);if(We)for(var Ft of We($e))Ge.call($e,Ft)&&Ue(wt,Ft,$e[Ft]);return wt};const Ct=wt=>React.createElement("svg",Me({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));pn.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},74413:function(){"use strict";function On(Ie,te,ee,de){ee===void 0&&(ee=0),de===void 0&&(de=1/0),this._name=Ie,this._defaultValue=te,this._minimum=ee,this._maximum=de}Object.defineProperty(On.prototype,"name",{get:function(){return this._name},set:function(Ie){if(typeof Ie!="string"||Ie==="")throw new Error("Shape name must be a valid string.");this._name=Ie}}),Object.defineProperty(On.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ie){if(typeof Ie!="number"||isNaN(Ie))throw new Error("The default value must be a real number, not: "+Ie);this._defaultValue=Ie}}),Object.defineProperty(On.prototype,"minimum",{get:function(){return this._minimum},set:function(Ie){if(typeof Ie!="number"||isNaN(Ie))throw new Error("Minimum must be a real number, not: "+Ie);this._minimum=Ie}}),Object.defineProperty(On.prototype,"maximum",{get:function(){return this._maximum},set:function(Ie){if(typeof Ie!="number"||isNaN(Ie))throw new Error("Maximum must be a real number, not: "+Ie);this._maximum=Ie}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ie,te){var ee=go.Shape._FigureParameters[Ie];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Ie,te,ee){if(!(ee instanceof On))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var de=go.Shape._FigureParameters[Ie];de||(de=[],go.Shape._FigureParameters[Ie]=de),de[te]=ee};var pn=[];function pe(Ie,te){var ee=pn.pop();return ee===void 0?new go.Point(Ie,te):(ee.x=Ie,ee.y=te,ee)}function le(){var Ie=pn.pop();return Ie===void 0?new go.Point:Ie}function ke(Ie){pn.push(Ie)}function We(Ie,te,ee,de,se,he,ve,Ee,Be){Be||(Be=new go.Point);var Le=Ie-ee,ze=se-ve,je=NaN,Xe=NaN;if(Le===0)if(ze===0)Ie===ee&&(je=Ie,Xe=te);else{var Ye=(he-Ee)/ze,dt=he-Ye*se;je=Ie,Xe=Ye*je+dt}else if(ze===0){var He=(te-de)/Le,Nt=te-He*Ie;je=se,Xe=He*je+Nt}else{var He=(te-de)/Le,Ye=(he-Ee)/ze,Nt=te-He*Ie,dt=he-Ye*se;je=(dt-Nt)/(He-Ye),Xe=He*je+Nt}return Be.x=je,Be.y=Xe,Be}function ut(Ie,te,ee,de,se,he,ve,Ee,Be,Le,ze,je,Xe,Ye){var dt=1-Be,He=Be,Nt=Ie*dt+ee*He,ot=te*dt+de*He,Tt=ee*dt+se*He,xt=de*dt+he*He,Ot=se*dt+ve*He,Wt=he*dt+Ee*He,Dt=Nt*dt+Tt*He,tt=ot*dt+xt*He,Ve=Tt*dt+Ot*He,_t=xt*dt+Wt*He,vn=Dt*dt+Ve*He,yn=tt*dt+_t*He;Le.x=Nt,Le.y=ot,ze.x=Dt,ze.y=tt,je.x=vn,je.y=yn,Xe.x=Ve,Xe.y=_t,Ye.x=Ot,Ye.y=Wt}var Ge=new go.Spot(.156,.156),Ue=new go.Spot(.844,.844),Me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new On("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,te/3),de=Math.min(de,ee/3);var se=de*Me,he=new go.Geometry().add(new go.PathFigure(de,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-de,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ee-de)).add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,ee-se,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,de,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,se,ee,0,ee-se)).add(new go.PathSegment(go.PathSegment.Line,0,de)).add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,se,se,0).close()));return se>1&&(he.spot1=new go.Spot(0,0,se,se),he.spot2=new go.Spot(1,1,-se,-se)),he}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ie,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=ee/2,de.endX=te,de.endY=ee/2,de}),go.Shape.defineFigureGenerator("LineV",function(Ie,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=te/2,de.startY=0,de.endX=te/2,de.endY=ee,de}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ie,te,ee){var de=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(de*te,(1-de)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ee)).add(new go.PathSegment(go.PathSegment.Move,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,(1-de)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ie,te,ee){var de=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,de,de,de,de).close()));return se.spot1=Ge,se.spot2=Ue,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ie,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}),go.Shape.defineFigureGenerator("Line2",function(Ie,te,ee){var de=new go.Geometry(go.Geometry.Line);return de.startX=te,de.startY=0,de.endX=0,de.endY=ee,de}),go.Shape.defineFigureGenerator("Curve1",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Me*te,0,te,(1-Me)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,Me*ee,(1-Me)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,Me*ee,Me*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-Me)*te,0,0,(1-Me)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new On("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)?de=.1:de<-1?de=-1:de>1&&(de=1);var se=Math.abs(de)*te;if(de===0){var he=new go.Geometry(go.Geometry.Rectangle);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}else{var he=new go.Geometry;return de>0?he.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):he.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(de=te);var se=Math.abs(de);if(de===0){var he=new go.Geometry(go.Geometry.Rectangle);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}else{var he=new go.Geometry;return de>0?he.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):he.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se.5&&(de=.5);var se=Math.abs(de)*te;if(de===0){var he=new go.Geometry(go.Geometry.Rectangle);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}else{var he=new go.Geometry;return de>0?he.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):he.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(de=te/2);var se=Math.abs(de);if(de===0){var he=new go.Geometry(go.Geometry.Rectangle);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}else{var he=new go.Geometry;return de>0?he.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):he.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(de=te/2);var se=Math.abs(de);if(de===0){var he=new go.Geometry(go.Geometry.Rectangle);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}else{var he=new go.Geometry;return de>0?he.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())):he.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),se0&&(ve.add(new go.PathSegment(go.PathSegment.Move,te/2+Ee,te/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Ee,Ee).close())),he.spot1=Ge,he.spot2=Ue,he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Cloud",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ee,-.09239631*te,.07836421*ee,.1406031*te,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ee,.2450511*te,-.00697547*ee,.3776197*te,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ee,.4539471*te,0,.6066018*te,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ee,.6914277*te,-.01904177*ee,.8921095*te,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ee,1.036446*te,.04105738*ee,1.020377*te,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ee,1.04448*te,.360238*ee,.992256*te,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ee,1.032337*te,.5771781*ee,1.018411*te,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ee,1.028411*te,.9571472*ee,.8556702*te,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ee,.7431877*te,1.009325*ee,.5624123*te,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ee,.4820677*te,1.031761*ee,.3030112*te,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ee,.2329994*te,1.01518*ee,.03213784*te,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ee,-.02812061*te,.9032597*ee,-.01205169*te,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ee,-.01812061*te,.6089503*ee,-.00606892*te,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ee,-.01606892*te,.3892545*ee,-.01205169*te,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ie,te,ee){var de=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(de*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,de*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,de*ee).close())).setSpots(de/2,de/2,1-de/2,1-de/2)}),go.Shape.setFigureParameter("Pie",0,new On("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new On("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN,se=Ie?Ie.parameter2:NaN;isNaN(de)&&(de=0),isNaN(se)&&(se=315);var he=de%360;he<0&&(he+=360);var ve=se%360,Ee=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(Ee,Ee).add(new go.PathSegment(go.PathSegment.Arc,he,ve,Ee,Ee,Ee,Ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ie,te,ee){var de=Me/Math.SQRT2*.5,se=Math.SQRT2/2,he=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,he*ee,te,(1-de)*ee,(se+de)*te,(he+de)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var se=Math.min(de,te)/2,he=te/2,ve=ee/2;return new go.Geometry().add(new go.PathFigure(he-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,he+se,0)).add(new go.PathSegment(go.PathSegment.Line,he+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,he+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,he+se,ee)).add(new go.PathSegment(go.PathSegment.Line,he-se,ee)).add(new go.PathSegment(go.PathSegment.Line,he-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,he-se,ve-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var se=Math.min(de,te)/2,he=te/2,ve=ee/2;return new go.Geometry().add(new go.PathFigure(he-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,he+se,0)).add(new go.PathSegment(go.PathSegment.Line,he+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,he+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,he+se,ee)).add(new go.PathSegment(go.PathSegment.Line,he-se,ee)).add(new go.PathSegment(go.PathSegment.Line,he-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,he-se,ve-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;if((isNaN(de)||de<0)&&(de=30),te===0||ee===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ee,se}else{var he=te/2,ve=ee/2,Ee=Math.atan2(ee,te),Be=de-Math.min(Math.cos(Ee)*de/2,he),Le=de-Math.min(Math.sin(Ee)*de/2,ve),se=new go.Geometry,ze=new go.PathFigure(Be,0,!0);return se.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,he,.2*ee)),ze.add(new go.PathSegment(go.PathSegment.Line,te-Be,0)),ze.add(new go.PathSegment(go.PathSegment.Line,te,Le)),ze.add(new go.PathSegment(go.PathSegment.Line,.8*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,te,ee-Le)),ze.add(new go.PathSegment(go.PathSegment.Line,te-Be,ee)),ze.add(new go.PathSegment(go.PathSegment.Line,he,.8*ee)),ze.add(new go.PathSegment(go.PathSegment.Line,Be,ee)),ze.add(new go.PathSegment(go.PathSegment.Line,0,ee-Le)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,0,Le).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var se=new go.Geometry,he=new go.PathFigure(.1*te,0,!0);return se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new On("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.2);var se=new go.Geometry,he=new go.PathFigure(0,0,!0);return se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,de*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,de*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,(1-de)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,(1-de)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,de*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,de*ee).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new On("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.5);var se=new go.Geometry,he=new go.PathFigure(0,0,!0);return se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-de)*te,.25*ee,Math.abs(1-de)*te,.75*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ee,de*te,.25*ee).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,Me*te,0,te,(.5-Me/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+Me/2)*ee,Me*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,0,te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ee,.5*te,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*te,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.5*ee,.9*te,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.6*te,.2*ee,te,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ee,te,.8*ee,.6*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,.5*te,.75*ee,.55*te,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ee,.45*te,.95*ee,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*te,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ee,0,.25*ee,.4*te,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.4*te,.6*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var he=.2,ve=.3,Ee=0,Be=he*Me;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+he+Ee)*ee,(.5-he+ve)*te,(.5+Be+Ee)*ee,(.5-Be+ve)*te,(.5+he+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+he+ve)*te,(.5+Ee)*ee,(.5+Be+ve)*te,(.5+he+Ee)*ee,(.5+he+ve)*te,(.5+Be+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-he+Ee)*ee,(1-.5+he+ve)*te,(.5-Be+Ee)*ee,(.5+Be+ve)*te,(.5-he+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-Be+ve)*te,(.5-he+Ee)*ee,(.5-he+ve+.05)*te,(.5-Be+Ee-.02)*ee)),he=.2,ve=0,Ee=-.3,Be=he*Me,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+he+ve)*te,(.5+Ee)*ee,(.5+Be+ve)*te,(.5+he+Ee)*ee,(.5+he+ve)*te,(.5+Be+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-he+Ee)*ee,(1-.5+he+ve)*te,(.5-Be+Ee)*ee,(.5+Be+ve)*te,(.5-he+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-he+ve)*te,(.5+Ee)*ee,(.5-Be+ve)*te,(.5-he+Ee)*ee,(.5-he+ve)*te,(.5-Be+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Be+ve)*te,(.5+he+Ee)*ee,(.5-he+ve)*te,(.5+Be+Ee)*ee,(.5-Be+ve)*te,(.5+he+Ee)*ee)),he=.2,ve=-.3,Ee=0,Be=he*Me,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-he+Ee)*ee,(1-.5+he+ve-.05)*te,(.5-Be+Ee-.02)*ee,(.5+Be+ve)*te,(.5-he+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-he+ve)*te,(.5+Ee)*ee,(.5-Be+ve)*te,(.5-he+Ee)*ee,(.5-he+ve)*te,(.5-Be+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+he+Ee)*ee,(.5-he+ve)*te,(.5+Be+Ee)*ee,(.5-Be+ve)*te,(.5+he+Ee)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+Be+ve)*te,(.5+he+Ee)*ee,(.5+he+ve)*te,(.5+Be+Ee)*ee).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var he=.1,ve=.5,Ee=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(ve+he)*te,Ee*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*ve,ee*Ee,he*te,he*te).close()),se=new go.PathFigure(te*.5,0,!1),de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ee=.75,se=new go.PathFigure((ve+he)*te,Ee*ee,!0),de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*ve,ee*Ee,he*te,he*te).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Ie,te,ee){var de=.8535533905932737,se=.5*te,he=.5*ee;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,he,se,he)).add(new go.PathSegment(go.PathSegment.Line,se,ee)).add(new go.PathSegment(go.PathSegment.Move,se,he)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ee)).add(new go.PathSegment(go.PathSegment.Move,se,he)).add(new go.PathSegment(go.PathSegment.Line,de*te,de*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=.5,ve=.5,Ee=.5,Be=new go.PathFigure(ve*te,(Ee-he)*ee);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),he=.4,se=Me*.4;var Le=le(),ze=le(),je=le(),Xe=le();ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.42,Le,ze,je,Xe,Xe);var Ye=le(),dt=le(),He=le();ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.58,Xe,Xe,He,Ye,dt);var Nt=le(),ot=le(),Tt=le();ut(ve,Ee+he,ve-se,Ee+he,ve-he,Ee+se,ve-he,Ee,.42,Nt,ot,Tt,Xe,Xe);var xt=le(),Ot=le(),Wt=le();return ut(ve,Ee+he,ve-se,Ee+he,ve-he,Ee+se,ve-he,Ee,.58,Xe,Xe,Wt,xt,Ot),Be.add(new go.PathSegment(go.PathSegment.Move,Wt.x*te,Wt.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,xt.x*te,xt.y*ee,Ot.x*te,Ot.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,je.x*te,je.y*ee,Le.x*te,Le.y*ee,ze.x*te,ze.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,Wt.x*te,Wt.y*ee).close()),Be.add(new go.PathSegment(go.PathSegment.Move,Tt.x*te,Tt.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,He.x*te,He.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,Ye.x*te,Ye.y*ee,dt.x*te,dt.y*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*te,Tt.y*ee,Nt.x*te,Nt.y*ee,ot.x*te,ot.y*ee).close()),ke(Le),ke(ze),ke(je),ke(Xe),ke(Ye),ke(dt),ke(He),ke(Nt),ke(ot),ke(Tt),ke(xt),ke(Ot),ke(Wt),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ee,te,.25*ee,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=30),de>te&&(de=te);var se=(te-de)/2,he=se+de;return new go.Geometry().add(new go.PathFigure(he,.5*ee).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ie,te,ee){var de=new go.Geometry,se=Me*.4,he=.4,ve=.5,Ee=.5,Be=le(),Le=le(),ze=le(),je=le(),Xe=new go.PathFigure((ve-he)*te,Ee*ee,!1);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee)),ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.44,ze,je,Le,Be,Be),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*te,Le.y*ee,ze.x*te,ze.y*ee,je.x*te,je.y*ee));var Ye=pe(Le.x,Le.y);ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.56,Be,Be,Le,ze,je);var dt=pe(Le.x,Le.y);Xe.add(new go.PathSegment(go.PathSegment.Line,(Ye.x*.1+.95*.9)*te,Ye.y*.1*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,Ye.y*.1*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*te,.15*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*te,(dt.y*.1+.05*.9)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,dt.x*te,dt.y*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,ze.x*te,ze.y*ee,je.x*te,je.y*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee)),he=.35,se=Me*.35;var He=new go.PathFigure(ve*te,(Ee-he)*ee,!1);de.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee));var Nt=new go.PathFigure((ve-he)*te,Ee*ee,!1);return de.add(Nt),ke(Be),ke(Le),ke(ze),ke(je),ke(Ye),ke(dt),de.spot1=new go.Spot(.202,.257),de.spot2=new go.Spot(.792,.739),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("GenderFemale",function(Ie,te,ee){var de=new go.Geometry,se=.375,he=0,ve=-.125,Ee=se*Me,Be=new go.PathFigure((.525+he)*te,(.5+se+ve)*ee,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+he)*te,(.5+ve)*ee,(.5+Ee+he)*te,(.5+se+ve)*ee,(.5+se+he)*te,(.5+Ee+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+he)*te,(.5-se+ve)*ee,(1-.5+se+he)*te,(.5-Ee+ve)*ee,(.5+Ee+he)*te,(.5-se+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+he)*te,(.5+ve)*ee,(.5-Ee+he)*te,(.5-se+ve)*ee,(.5-se+he)*te,(.5-Ee+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+he)*te,(.5+se+ve)*ee,(.5-se+he)*te,(.5+Ee+ve)*ee,(.5-Ee+he)*te,(.5+se+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),se=.325,he=0,ve=-.125,Ee=se*Me;var Be=new go.PathFigure((1-.5+se+he)*te,(.5+ve)*ee,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+he)*te,(.5+se+ve)*ee,(.5+se+he)*te,(.5+Ee+ve)*ee,(.5+Ee+he)*te,(.5+se+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+he)*te,(.5+ve)*ee,(.5-Ee+he)*te,(.5+se+ve)*ee,(.5-se+he)*te,(.5+Ee+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+he)*te,(.5-se+ve)*ee,(.5-se+he)*te,(.5-Ee+ve)*ee,(.5-Ee+he)*te,(.5-se+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+he)*te,(.5+ve)*ee,(.5+Ee+he)*te,(.5-se+ve)*ee,(1-.5+se+he)*te,(.5-Ee+ve)*ee));var Be=new go.PathFigure((.525+he)*te,(.5+se+ve)*ee,!1);return de.add(Be),de.spot1=new go.Spot(.232,.136),de.spot2=new go.Spot(.682,.611),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicImplies",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,de*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,de*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ie,te,ee){var de=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ee,.5*te,.5*ee)));return de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicTruth",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ie,te,ee){var de=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,de*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,de*te,de*ee,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ie,te,ee){var de=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,de*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,de*te,de*ee,de*te,de*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new On("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new On("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.3);var se=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=.3);var he=(1-de)*te,ve=(.5-se/2)*ee,Ee=(.5+se/2)*ee,Be=new go.Geometry,Le=new go.PathFigure(0,ve,!0);Be.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,he,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,he,0)),Le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,he,ee)),Le.add(new go.PathSegment(go.PathSegment.Line,he,Ee)),Le.add(new go.PathSegment(go.PathSegment.Line,0,Ee).close()),Be.spot1=new go.Spot(0,ve/ee);var ze=We(0,Ee/ee,1,Ee/ee,he/te,1,1,.5,le());return Be.spot2=new go.Spot(ze.x,ze.y),ke(ze),Be}),go.Shape.setFigureParameter("Arrow2",0,new On("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new On("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=30),de>te&&(de=te);var se=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ee/2);var he=te-de,ve=(ee-se)/2,Ee=ve+se,Be=new go.Geometry,Le=new go.PathFigure(0,ve,!0);Be.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,he,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,he,0)),Le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,he,ee)),Le.add(new go.PathSegment(go.PathSegment.Line,he,Ee)),Le.add(new go.PathSegment(go.PathSegment.Line,0,Ee).close()),Be.spot1=new go.Spot(0,ve/ee);var ze=We(0,Ee/ee,1,Ee/ee,he/te,1,1,.5,le());return Be.spot2=new go.Spot(ze.x,ze.y),ke(ze),Be}),go.Shape.defineFigureGenerator("Chevron",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),de}),go.Shape.setFigureParameter("DoubleEndArrow",0,new On("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.3);var se=(.5-de/2)*ee,he=(.5+de/2)*ee,ve=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);ve.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Be=We(0,.5,.3,0,0,se/ee,.1,se/ee,le());return ve.spot1=new go.Spot(Be.x,Be.y),Be=We(.7,1,1,.5,0,he/ee,1,he/ee,Be),ve.spot2=new go.Spot(Be.x,Be.y),ke(Be),ve}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new On("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new On("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=40);var se=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=100);var he=(ee-de)/2,ve=he+de,Ee=(ee-se)/2,Be=Ee+se;(de>ee||se>ee)&&(se>de?(de=de*ee/se,he=(ee-de)/2,ve=he+de,Ee=0,Be=ee):(he=0,ve=ee,Ee=0,Be=ee));var Le=new go.Geometry,ze=new go.PathFigure(te,.5*ee,!0);Le.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Be)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,Be)),ze.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ee)),ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,he)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ee).close());var je=We(0,.5,.3,Ee/ee,0,he/ee,1,he/ee,le());return Le.spot1=new go.Spot(je.x,je.y),je=We(.7,Be/ee,1,.5,0,ve/ee,1,ve/ee,je),Le.spot2=new go.Spot(je.x,je.y),ke(je),Le}),go.Shape.setFigureParameter("IBeamArrow",0,new On("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.3);var se=(.5-de/2)*ee,he=(.5+de/2)*ee,ve=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);ve.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(0,se/ee);var Be=We(.7,1,1,.5,0,he/ee,1,he/ee,le());return ve.spot2=new go.Spot(Be.x,Be.y),ke(Be),ve}),go.Shape.setFigureParameter("IBeamArrow2",0,new On("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new On("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=40);var se=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=100);var he=(ee-de)/2,ve=he+de,Ee=(ee-se)/2,Be=Ee+se;(de>ee||se>ee)&&(se>de?(de=de*ee/se,he=(ee-de)/2,ve=he+de,Ee=0,Be=ee):(he=0,ve=ee,Ee=0,Be=ee));var Le=new go.Geometry,ze=new go.PathFigure(te,.5*ee,!0);Le.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Be)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,Be)),ze.add(new go.PathSegment(go.PathSegment.Line,0,Be)),ze.add(new go.PathSegment(go.PathSegment.Line,0,Ee)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ee)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,he)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ee).close()),Le.spot1=new go.Spot(0,he/ee);var je=We(.7,Be/ee,1,.5,0,ve/ee,1,ve/ee,le());return Le.spot2=new go.Spot(je.x,je.y),ke(je),Le}),go.Shape.setFigureParameter("Pointer",0,new On("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.1);var se=new go.Geometry,he=new go.PathFigure(te,.5*ee,!0);se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,de*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(de,.35);var ve=We(.2,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(ve.x,ve.y),ke(ve),se}),go.Shape.setFigureParameter("RoundedPointer",0,new On("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.3);var se=new go.Geometry,he=new go.PathFigure(te,.5*ee,!0);se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ee,de*te,.25*ee).close()),se.spot1=new go.Spot(de,.35);var ve=We(0,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(ve.x,ve.y),ke(ve),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new On("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.4);var se=(.5-de/2)*ee,he=(.5+de/2)*ee,ve=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);ve.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,.3);var Be=We(.7,1,1,.5,0,he/ee,1,he/ee,le());return ve.spot2=new go.Spot(Be.x,Be.y),ke(Be),ve}),go.Shape.setFigureParameter("SplitEndArrow2",0,new On("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=50);var se=(ee-de)/2,he=se+de;de>ee&&(se=0,he=ee);var ve=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);ve.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,se/ee);var Be=We(.7,1,1,.5,0,he/ee,1,he/ee,le());return ve.spot2=new go.Spot(Be.x,Be.y),ke(Be),ve}),go.Shape.setFigureParameter("SquareArrow",0,new On("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.7);var se=new go.Geometry,he=new go.PathFigure(te,.5*ee,!0);return se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,de*te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,0)),he.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(de,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=Me*.1,ve=new go.PathFigure(0,.9*ee,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+he)*ee,(.5+se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+he)*ee).close()),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.97),de}),go.Shape.defineFigureGenerator("Cone2",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.9*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var he=new go.PathFigure(0,.9*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.82),de}),go.Shape.defineFigureGenerator("Cube1",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var he=new go.PathFigure(.5*te,ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.5,.85),de}),go.Shape.defineFigureGenerator("Cube2",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.3*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var he=new go.PathFigure(0,.3*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.7,1),de}),go.Shape.defineFigureGenerator("Cylinder1",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ee/3);var se=new go.Geometry,he=Me*.5,ve=new go.PathFigure(0,de,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Me*de,(.5-he)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,1*te,de,(.5+he)*te,0,1*te,Me*de)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee-de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ee,1*te,ee-Me*de,(.5+he)*te,1*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,(.5-he)*te,1*ee,0,ee-Me*de)),ve.add(new go.PathSegment(go.PathSegment.Line,0,de));var Ee=new go.PathFigure(te,de,!1);return se.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*de,1*te,2*de-Me*de,(.5+he)*te,2*de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-he)*te,2*de,0,2*de-Me*de)),se.spot1=new go.Spot(0,0,0,2*de),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ee/3);var se=new go.Geometry,he=Me*.5,ve=new go.PathFigure(0,ee-de,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Me*de,(.5-he)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,de,(.5+he)*te,0,te,Me*de)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee-de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,ee-Me*de,(.5+he)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-de,(.5-he)*te,ee,0,ee-Me*de));var Ee=new go.PathFigure(0,ee-de,!1);return se.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*de,0,ee-de-Me*de,(.5-he)*te,ee-2*de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-de,(.5+he)*te,ee-2*de,te,ee-de-Me*de)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*de),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var se=new go.Geometry,he=Me*.5,ve=new go.PathFigure(de,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Me*de,0,te,(.5-he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,(.5+he)*ee,te-Me*de,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,de,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Me*de,ee,0,(.5+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-he)*ee,Me*de,0));var Ee=new go.PathFigure(de,0,!1);return se.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,2*de,.5*ee,de+Me*de,0,2*de,(.5-he)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de,ee,2*de,(.5+he)*ee,de+Me*de,ee)),se.spot1=new go.Spot(0,0,2*de,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var se=new go.Geometry,he=Me*.5,ve=new go.PathFigure(te-de,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Me*de,0,te,(.5-he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te,(.5+he)*ee,te-Me*de,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,de,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Me*de,ee,0,(.5+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-he)*ee,Me*de,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te-de,0));var Ee=new go.PathFigure(te-de,0,!1);return se.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-2*de,.5*ee,te-de-Me*de,0,te-2*de,(.5-he)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ee,te-2*de,(.5+he)*ee,te-de-Me*de,ee)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*de,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.25*te,.25*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var he=new go.PathFigure(.25*te,.25*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),de.spot1=new go.Spot(.408,.172),de.spot2=new go.Spot(.833,.662),de}),go.Shape.defineFigureGenerator("Prism2",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.25*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var he=new go.PathFigure(0,ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),he.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("Pyramid1",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var he=new go.PathFigure(.5*te,0,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Pyramid2",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var he=new go.PathFigure(.5*te,0,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Actor",function(Ie,te,ee){var de=new go.Geometry,se=.2,he=.1,ve=Me*se,Ee=Me*he,Be=.5,Le=.1,ze=new go.PathFigure(Be*te,(Le+he)*ee,!0);de.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Be-se)*te,Le*ee,(Be-ve)*te,(Le+he)*ee,(Be-se)*te,(Le+Ee)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-he)*ee,(Be-se)*te,(Le-Ee)*ee,(Be-ve)*te,(Le-he)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Be+se)*te,Le*ee,(Be+ve)*te,(Le-he)*ee,(Be+se)*te,(Le-Ee)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le+he)*ee,(Be+se)*te,(Le+Ee)*ee,(Be+ve)*te,(Le+he)*ee));var je=.05,Xe=Me*je;Be=.05,Le=.25;var Ye=new go.PathFigure(.5*te,.2*ee,!0);return de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Be=.95,Le=.25,Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be+je)*te,Le*ee,(Be+Xe)*te,(Le-je)*ee,(Be+je)*te,(Le-Xe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),je=.025,Xe=Me*je,Be=.825,Le=.35,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-je)*ee,(Be+je)*te,(Le-Xe)*ee,(Be+Xe)*te,(Le-je)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-je)*te,Le*ee,(Be-Xe)*te,(Le-je)*ee,(Be-je)*te,(Le-Xe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),je=.05,Xe=Me*je,Be=.5,Le=.7,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-je)*ee,(Be+je)*te,(Le-Xe)*ee,(Be+Xe)*te,(Le-je)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-je)*te,Le*ee,(Be-Xe)*te,(Le-je)*ee,(Be-je)*te,(Le-Xe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),je=.025,Xe=Me*je,Be=.175,Le=.35,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-je)*ee,(Be+je)*te,(Le-Xe)*ee,(Be+Xe)*te,(Le-je)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-je)*te,Le*ee,(Be-Xe)*te,(Le-je)*ee,(Be-je)*te,(Le-Xe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),je=.05,Xe=Me*je,Be=.05,Le=.25,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-je)*ee,(Be-je)*te,(Le-Xe)*ee,(Be-Xe)*te,(Le-je)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),de.spot1=new go.Spot(.2,.2),de.spot2=new go.Spot(.8,.65),de}),go.Shape.setFigureParameter("Card",0,new On("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;isNaN(de)&&(de=.2);var se=new go.Geometry,he=new go.PathFigure(te,0,!0);return se.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,de*ee)),he.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),se.spot1=new go.Spot(0,de),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,.5*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var he=new go.PathFigure(.5*te,.5*ee,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,.25),de}),go.Shape.defineFigureGenerator("CreateRequest",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.1);var he=new go.PathFigure(0,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ve=new go.PathFigure(0,se*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ee)),de}),go.Shape.defineFigureGenerator("Database",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=Me*.1,ve=new go.PathFigure(te,.1*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+he)*ee,(.5+se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-he)*ee,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+se)*te,0,te,(.1-he)*ee));var Ee=new go.PathFigure(te,.1*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+he)*ee,(.5+se)*te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*te,.2*ee,0,(.1+he)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+he)*ee,(.5+se)*te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*te,.3*ee,0,(.2+he)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+he)*ee,(.5+se)*te,.4*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-se)*te,.4*ee,0,(.3+he)*ee)),de.spot1=new go.Spot(0,.4),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("DataStorage",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),de.spot1=new go.Spot(.226,0),de.spot2=new go.Spot(.81,1),de}),go.Shape.defineFigureGenerator("DiskStorage",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=Me*.1,ve=new go.PathFigure(te,.1*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+he)*ee,(.5+se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-he)*ee,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+se)*te,0,te,(.1-he)*ee));var Ee=new go.PathFigure(te,.1*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+he)*ee,(.5+se)*te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*te,.2*ee,0,(.1+he)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+he)*ee,(.5+se)*te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*te,.3*ee,0,(.2+he)*ee)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("Display",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("DividedEvent",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var he=Me*.2,ve=new go.PathFigure(0,.2*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-he)*ee,(.2-he)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ee,(.8+he)*te,0,te,(.2-he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ee,te,(.8+he)*ee,(.8+he)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-he)*te,ee,0,(.8+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var Ee=new go.PathFigure(0,se*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),de}),go.Shape.defineFigureGenerator("DividedProcess",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var he=new go.PathFigure(0,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ve=new go.PathFigure(0,se*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),de}),go.Shape.defineFigureGenerator("Document",function(Ie,te,ee){var de=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var he=new go.PathFigure(0,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ve=new go.PathFigure(se*te,0,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,se*ee)),ve.add(new go.PathSegment(go.PathSegment.Move,te,se*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ee)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var he=new go.PathFigure(.1*te,.4*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("File",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var he=new go.PathFigure(.75*te,0,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Interrupt",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,.5*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var he=new go.PathFigure(te,.5*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,ee));var ve=new go.PathFigure(te,.5*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("InternalStorage",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN,he=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(he)&&(he=.1);var ve=new go.PathFigure(0,0,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var Ee=new go.PathFigure(se*te,0,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,0,he*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,te,he*ee)),de}),go.Shape.defineFigureGenerator("Junction",function(Ie,te,ee){var de=new go.Geometry,se=1/Math.SQRT2,he=(1-1/Math.SQRT2)/2,ve=Me*.5,Ee=.5,Be=new go.PathFigure(te,Ee*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,ee,te,(Ee+ve)*ee,(Ee+ve)*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,Ee*ee,(Ee-ve)*te,ee,0,(Ee+ve)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,0,0,(Ee-ve)*ee,(Ee-ve)*te,0)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,Ee*ee,(Ee+ve)*te,0,te,(Ee-ve)*ee));var Le=new go.PathFigure((he+se)*te,(he+se)*ee,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,he*te,he*ee)),Le.add(new go.PathSegment(go.PathSegment.Move,he*te,(he+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,(he+se)*te,he*ee)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Ie,te,ee){var de=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var he=new go.PathFigure(.1*te,0,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),de.spot1=new go.Spot(.1,0),de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("LoopLimit",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MagneticTape",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=.5,ve=new go.PathFigure(.5*te,ee,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,he*ee,(he-se)*te,ee,0,(he+se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,he*te,0,0,(he-se)*ee,(he-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,he*ee,(he+se)*te,0,te,(he-se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(he+.1)*te,.9*ee,te,(he+se)*ee,(he+se)*te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),de.spot1=new go.Spot(.15,.15),de.spot2=new go.Spot(.85,.8),de}),go.Shape.defineFigureGenerator("ManualInput",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.7);var he=new go.PathFigure(0,0,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.25);var he=new go.PathFigure(0,0,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("MultiDocument",function(Ie,te,ee){var de=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var he=new go.PathFigure(.1*te,.2*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.8,.77),de}),go.Shape.defineFigureGenerator("MultiProcess",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.1*te,.1*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var he=new go.PathFigure(.2*te,.1*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),de.spot1=new go.Spot(0,.2),de.spot2=new go.Spot(.8,1),de}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.1);var he=1-se,ve=new go.PathFigure(0,0,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close());var Ee=new go.PathFigure(.5*se*te,se*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ee)),de}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("Or",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=.5,ve=new go.PathFigure(te,he*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,he*te,ee,te,(he+se)*ee,(he+se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,he*ee,(he-se)*te,ee,0,(he+se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,he*te,0,0,(he-se)*ee,(he-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,he*ee,(he+se)*te,0,te,(he-se)*ee));var Ee=new go.PathFigure(te,.5*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),de}),go.Shape.defineFigureGenerator("PaperTape",function(Ie,te,ee){var de=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),de.spot1=new go.Spot(0,.49),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN,he=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(he)&&(he=.3);var ve=new go.PathFigure(0,0,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,.5*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN,he=Ie?Ie.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(he)&&(he=.3);var ve=new go.PathFigure(0,0,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.1);var he=new go.PathFigure(0,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ve=new go.PathFigure((1-se)*te,0,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),de}),go.Shape.defineFigureGenerator("Process",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.1);var he=new go.PathFigure(0,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ve=new go.PathFigure(se*te,0,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var he=new go.PathFigure(0,.5*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.5),de}),go.Shape.defineFigureGenerator("Start",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.25);var he=new go.PathFigure(se*te,0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var ve=new go.PathFigure(se*te,0,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ee)),de.spot1=new go.Spot(se,0),de.spot2=new go.Spot(1-se,1),de}),go.Shape.defineFigureGenerator("Terminator",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),de.spot1=new go.Spot(.23,0),de.spot2=new go.Spot(.77,1),de}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ie,te,ee){var de=new go.Geometry,se=Ie?Ie.parameter1:NaN;isNaN(se)&&(se=.1);var he=new go.PathFigure(0,0,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ee).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("AndGate",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=new go.PathFigure(0,0,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(.5+se)*te,0,te,(.5-se)*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.5+se)*ee,(.5+se)*te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.55,1),de}),go.Shape.defineFigureGenerator("Buffer",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Clock",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=.5,ve=new go.PathFigure(te,he*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,he*te,ee,te,(he+se)*ee,(he+se)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,he*ee,(he-se)*te,ee,0,(he+se)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,he*te,0,0,(he-se)*ee,(he-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,he*ee,(he+se)*te,0,te,(he-se)*ee));var Ee=new go.PathFigure(te,he*ee,!1);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,he*ee));var Be=new go.PathFigure(.8*te,.75*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ee)),de}),go.Shape.defineFigureGenerator("Ground",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),de}),go.Shape.defineFigureGenerator("Inverter",function(Ie,te,ee){var de=new go.Geometry,se=Me*.1,he=.1,ve=.9,Ee=.5,Be=new go.PathFigure(.8*te,.5*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Be.add(new go.PathSegment(go.PathSegment.Line,0,0)),Be.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee));var Le=new go.PathFigure((ve+he)*te,Ee*ee,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,(ve+se)*te,(Ee-he)*ee,(ve+he)*te,(Ee-se)*ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.4,.75),de}),go.Shape.defineFigureGenerator("NandGate",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=Me*.4,ve=Me*.1,Ee=.1,Be=.9,Le=.5,ze=new go.PathFigure(.8*te,.5*ee,!0);de.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+he)*ee,(.4+se)*te,ee)),ze.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ze.add(new go.PathSegment(go.PathSegment.Line,0,0)),ze.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+se)*te,0,.8*te,(.5-he)*ee));var je=new go.PathFigure((Be+Ee)*te,Le*ee,!0);return de.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le+Ee)*ee,(Be+Ee)*te,(Le+ve)*ee,(Be+ve)*te,(Le+Ee)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee)*te,Le*ee,(Be-ve)*te,(Le+Ee)*ee,(Be-Ee)*te,(Le+ve)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-Ee)*ee,(Be-Ee)*te,(Le-ve)*ee,(Be-ve)*te,(Le-Ee)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee)*te,Le*ee,(Be+ve)*te,(Le-Ee)*ee,(Be+Ee)*te,(Le-ve)*ee)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*se,ve=0,Ee=.5,Be=new go.PathFigure(.8*te,.5*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(ve+he)*te,(Ee-se)*ee,.7*te,(Ee-he)*ee)),se=.1,he=Me*.1,ve=.9,Ee=.5;var Le=new go.PathFigure((ve-se)*te,Ee*ee,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee)),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.6,.75),de}),go.Shape.defineFigureGenerator("OrGate",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*se,ve=0,Ee=.5,Be=new go.PathFigure(0,0,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(ve+he+he)*te,(Ee-se)*ee,.8*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(Ee+he)*ee,(ve+he+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee).close()),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("XnorGate",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*se,ve=.2,Ee=.5,Be=new go.PathFigure(.1*te,0,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Le=new go.PathFigure(.8*te,.5*ee,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(ve+he)*te,(Ee-se)*ee,.7*te,(Ee-he)*ee)),se=.1,he=Me*.1,ve=.9,Ee=.5;var ze=new go.PathFigure((ve-se)*te,Ee*ee,!0);return de.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee)),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.65,.75),de}),go.Shape.defineFigureGenerator("XorGate",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*se,ve=.2,Ee=.5,Be=new go.PathFigure(.1*te,0,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Le=new go.PathFigure(.2*te,0,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(ve+he)*te,(Ee-se)*ee,.9*te,(Ee-he)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee).close()),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.8,.75),de}),go.Shape.defineFigureGenerator("Capacitor",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("Resistor",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.5*ee,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Inductor",function(Ie,te,ee){var de=new go.Geometry,se=Me*.1,he=.1,ve=.1,Ee=.5,Be=new go.PathFigure((ve-se*.5)*te,ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,0,(ve-se)*te,ee,(ve-he)*te,0)),ve=.3,Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ee,(ve+he)*te,0,(ve+se)*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,0,(ve-se)*te,ee,(ve-he)*te,0)),ve=.5,Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ee,(ve+he)*te,0,(ve+se)*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,0,(ve-se)*te,ee,(ve-he)*te,0)),ve=.7,Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ee,(ve+he)*te,0,(ve+se)*te,ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,0,(ve-se)*te,ee,(ve-he)*te,0)),ve=.9,Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se*.5)*te,ee,(ve+he)*te,0,(ve+se)*te,ee)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ie,te,ee){var de=new go.Geometry,se=Me*.5,he=.5,ve=.5,Ee=.5,Be=new go.PathFigure((ve-he)*te,Ee*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,(ve+se)*te,(Ee-he)*ee,(ve+he)*te,(Ee-se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(ve-he+.1)*te,Ee*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he-.1)*te,Ee*ee,ve*te,(Ee-he)*ee,ve*te,(Ee+he)*ee)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("Diode",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Wifi",function(Ie,te,ee){var de=new go.Geometry,se=te,he=ee;te=te*.38,ee=ee*.6;var ve=Me*.8,Ee=.8,Be=0,Le=.5,ze=(se-te)/2,je=(he-ee)/2,Xe=new go.PathFigure(Be*te+ze,(Le+Ee)*ee+je,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee)*te+ze,Le*ee+je,(Be-ve)*te+ze,(Le+Ee)*ee+je,(Be-Ee)*te+ze,(Le+ve)*ee+je)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le-Ee)*ee+je,(Be-Ee)*te+ze,(Le-ve)*ee+je,(Be-ve)*te+ze,(Le-Ee)*ee+je)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee+ve*.5)*te+ze,Le*ee+je,Be*te+ze,(Le-Ee)*ee+je,(Be-Ee+ve*.5)*te+ze,(Le-ve)*ee+je)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le+Ee)*ee+je,(Be-Ee+ve*.5)*te+ze,(Le+ve)*ee+je,Be*te+ze,(Le+Ee)*ee+je).close()),ve=Me*.4,Ee=.4,Be=.2,Le=.5;var Ye=new go.PathFigure(Be*te+ze,(Le+Ee)*ee+je,!0);de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee)*te+ze,Le*ee+je,(Be-ve)*te+ze,(Le+Ee)*ee+je,(Be-Ee)*te+ze,(Le+ve)*ee+je)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le-Ee)*ee+je,(Be-Ee)*te+ze,(Le-ve)*ee+je,(Be-ve)*te+ze,(Le-Ee)*ee+je)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee+ve*.5)*te+ze,Le*ee+je,Be*te+ze,(Le-Ee)*ee+je,(Be-Ee+ve*.5)*te+ze,(Le-ve)*ee+je)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le+Ee)*ee+je,(Be-Ee+ve*.5)*te+ze,(Le+ve)*ee+je,Be*te+ze,(Le+Ee)*ee+je).close()),ve=Me*.2,Ee=.2,Be=.5,Le=.5;var dt=new go.PathFigure((Be-Ee)*te+ze,Le*ee+je,!0);de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le-Ee)*ee+je,(Be-Ee)*te+ze,(Le-ve)*ee+je,(Be-ve)*te+ze,(Le-Ee)*ee+je)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee)*te+ze,Le*ee+je,(Be+ve)*te+ze,(Le-Ee)*ee+je,(Be+Ee)*te+ze,(Le-ve)*ee+je)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le+Ee)*ee+je,(Be+Ee)*te+ze,(Le+ve)*ee+je,(Be+ve)*te+ze,(Le+Ee)*ee+je)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Be-Ee)*te+ze,Le*ee+je,(Be-ve)*te+ze,(Le+Ee)*ee+je,(Be-Ee)*te+ze,(Le+ve)*ee+je)),ve=Me*.4,Ee=.4,Be=.8,Le=.5;var He=new go.PathFigure(Be*te+ze,(Le-Ee)*ee+je,!0);de.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee)*te+ze,Le*ee+je,(Be+ve)*te+ze,(Le-Ee)*ee+je,(Be+Ee)*te+ze,(Le-ve)*ee+je)),He.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le+Ee)*ee+je,(Be+Ee)*te+ze,(Le+ve)*ee+je,(Be+ve)*te+ze,(Le+Ee)*ee+je)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee-ve*.5)*te+ze,Le*ee+je,Be*te+ze,(Le+Ee)*ee+je,(Be+Ee-ve*.5)*te+ze,(Le+ve)*ee+je)),He.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le-Ee)*ee+je,(Be+Ee-ve*.5)*te+ze,(Le-ve)*ee+je,Be*te+ze,(Le-Ee)*ee+je).close()),ve=Me*.8,Ee=.8,Be=1,Le=.5;var Nt=new go.PathFigure(Be*te+ze,(Le-Ee)*ee+je,!0);return de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee)*te+ze,Le*ee+je,(Be+ve)*te+ze,(Le-Ee)*ee+je,(Be+Ee)*te+ze,(Le-ve)*ee+je)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le+Ee)*ee+je,(Be+Ee)*te+ze,(Le+ve)*ee+je,(Be+ve)*te+ze,(Le+Ee)*ee+je)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Be+Ee-ve*.5)*te+ze,Le*ee+je,Be*te+ze,(Le+Ee)*ee+je,(Be+Ee-ve*.5)*te+ze,(Le+ve)*ee+je)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Be*te+ze,(Le-Ee)*ee+je,(Be+Ee-ve*.5)*te+ze,(Le-ve)*ee+je,Be*te+ze,(Le-Ee)*ee+je).close()),de}),go.Shape.defineFigureGenerator("Email",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var he=new go.PathFigure(0,0,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.add(new go.PathSegment(go.PathSegment.Move,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),he.add(new go.PathSegment(go.PathSegment.Move,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),de}),go.Shape.defineFigureGenerator("Ethernet",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var he=new go.PathFigure(.1*te,ee,!0,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var ve=new go.PathFigure(.6*te,ee,!0,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee).close());var Ee=new go.PathFigure(0,.5*ee,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),de}),go.Shape.defineFigureGenerator("Power",function(Ie,te,ee){var de=new go.Geometry,se=Me*.4,he=.4,ve=.5,Ee=.5,Be=le(),Le=le(),ze=le(),je=le();ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.5,Be,Be,Le,ze,je);var Xe=pe(Le.x,Le.y),Ye=new go.PathFigure(Le.x*te,Le.y*ee,!0);de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,ze.x*te,ze.y*ee,je.x*te,je.y*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,(ve-se)*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee)),ut(ve-he,Ee,ve-he,Ee-se,ve-se,Ee-he,ve,Ee-he,.5,ze,je,Le,Be,Be),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*te,Le.y*ee,ze.x*te,ze.y*ee,je.x*te,je.y*ee)),se=Me*.3,he=.3,ut(ve-he,Ee,ve-he,Ee-se,ve-se,Ee-he,ve,Ee-he,.5,ze,je,Le,Be,Be),Ye.add(new go.PathSegment(go.PathSegment.Line,Le.x*te,Le.y*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve-he)*te,Ee*ee,je.x*te,je.y*ee,ze.x*te,ze.y*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+he)*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve+he)*te,Ee*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),ut(ve,Ee-he,ve+se,Ee-he,ve+he,Ee-se,ve+he,Ee,.5,Be,Be,Le,ze,je),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*te,Le.y*ee,je.x*te,je.y*ee,ze.x*te,ze.y*ee).close());var Ye=new go.PathFigure(.45*te,0,!0);return de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),ke(Be),ke(Le),ke(ze),ke(je),ke(Xe),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee/2,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function he(ve,Ee,Be){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+Ee)*te,(.8+Be)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+Ee)*te,(.5+Be)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+Ee)*te,(.5+Be)*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+Ee)*te,(.8+Be)*ee).close())}return he(se,0,0),he(se,.4,0),he(se,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),de.spot1=new go.Spot(.3,.3),de.spot2=new go.Spot(.7,.7),de}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),de}),go.Shape.defineFigureGenerator("FireHazard",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.1*te,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),de.spot1=new go.Spot(.07,.445),de.spot2=new go.Spot(.884,.958),de}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=0,ve=0,Ee=se*Me,Be=.4*Math.SQRT2/2+.5,Le=.5-.5*Math.SQRT2/2,ze=1,je=.5,Xe=.5,Ye=0,dt=new go.PathFigure(Be*te,(1-Le)*ee,!1);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,je*ee,ze*te,.7*ee,ze*te,je*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+he)*te,(Ye+he)*ee,(.5+se+he)*te,(.5-Ee+he)*ee,(.5+Ee+he)*te,(.5-se+he)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+he)*te,(.5+ve)*ee,(.5-Ee+he)*te,(.5-se+ve)*ee,(.5-se+he)*te,(.5-Ee+ve)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+he)*te,.9*ee,(.5-se+he)*te,(.5+Ee+ve)*ee,(.5-Ee+he)*te,.9*ee)),dt.add(new go.PathSegment(go.PathSegment.Move,(.25+he)*te,.8*ee)),dt.add(new go.PathSegment(go.PathSegment.Line,(.35+he)*te,.9*ee)),dt.add(new go.PathSegment(go.PathSegment.Line,(.2+he)*te,.95*ee)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);de.add(se);var he=new go.PathFigure(te,ee,!1);de.add(he);var ve=new go.PathFigure(0,.5*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.2*te,.35*ee,.3*te,.35*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.7*te,.65*ee,.8*te,.65*ee)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),de}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var se=new go.PathFigure(0,.2*ee,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),de}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.7*te,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var he=new go.PathFigure(.45*te,.73*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),de}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);de.add(se);var he=new go.PathFigure(.335*te,(1-.555)*ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var ve=.5-.285,Ee=.5,Be=ve,Le=Math.PI/4,ze=4*(1-Math.cos(Le))/(3*Math.sin(Le)),je=ze*.5,Xe=ve,Ye=ve,dt=ze*Xe,He=ze*Ye;he.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Xe)*te,Be*ee,(Ee-(dt+Xe)/2)*te,(Be+(Ye+He)/2)*ee,(Ee-Xe)*te,(Be+He)*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,(Be-Ye)*ee,(Ee-Xe)*te,(Be-He)*ee,(Ee-dt)*te,(Be-Ye)*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+Xe)*te,Be*ee,(Ee+dt)*te,(Be-Ye)*ee,(Ee+Xe)*te,(Be-He)*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(Ee+Xe)*te,(Be+He)*ee,(Ee+(dt+Xe)/2)*te,(Be+(Ye+He)/2)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var Nt=new go.PathFigure(.2*te,ee,!1);de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var ot=new go.PathFigure(.8*te,ee,!1);return de.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),de}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var he=new go.PathFigure(.2*te,.2*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),de}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);de.add(se);var he=new go.PathFigure(te,ee,!1);de.add(he);var ve=new go.PathFigure(.1*te,ee,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("Caution",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.05*te,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var he=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-he)*te,.875*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,he*te,he*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),de}),go.Shape.defineFigureGenerator("Recycle",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.45*te,.95*ee,!1);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var he=new go.PathFigure(.475*te,.2*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var ve=new go.PathFigure(.675*te,.575*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ee,te,.8*ee,te,.85*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),ve.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ee)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*.5,ve=new go.PathFigure(te,se*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ee,te,(se+he)*ee,(se+he)*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-he)*te,ee,0,(se+he)*ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-he)*ee,(se-he)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ee,(se+he)*te,0,te,(se-he)*ee));var Ee=new go.PathFigure(se*te,0,!1);return de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,se*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,0,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ee)),de}),go.Shape.defineFigureGenerator("Package",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.15*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var he=new go.PathFigure(0,.15*ee,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,0,0)),he.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),de.spot1=new go.Spot(0,.1),de.spot2=new go.Spot(1,1),de}),go.Shape.defineFigureGenerator("Class",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var he=new go.PathFigure(0,.2*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var ve=new go.PathFigure(0,.5*ee,!1);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),de}),go.Shape.defineFigureGenerator("Component",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var he=new go.PathFigure(0,.2*ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ve=new go.PathFigure(0,.6*ee,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.15*te,.6*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var he=new go.PathFigure(.15*te,.6*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),de}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de}),go.Shape.defineFigureGenerator("Workcell",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),de}),go.Shape.defineFigureGenerator("Supermarket",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de}),go.Shape.defineFigureGenerator("TruckShipment",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var he=new go.PathFigure(te,.8*ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var ve=.1,Ee=Me*.1,Be=.2,Le=.9,ze=new go.PathFigure((Be-ve)*te,Le*ee,!0);de.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-ve)*ee,(Be-ve)*te,(Le-Ee)*ee,(Be-Ee)*te,(Le-ve)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ve)*te,Le*ee,(Be+Ee)*te,(Le-ve)*ee,(Be+ve)*te,(Le-Ee)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le+ve)*ee,(Be+ve)*te,(Le+Ee)*ee,(Be+Ee)*te,(Le+ve)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ve)*te,Le*ee,(Be-Ee)*te,(Le+ve)*ee,(Be-ve)*te,(Le+Ee)*ee).close()),ve=.1,Ee=Me*.1,Be=.8,Le=.9;var je=new go.PathFigure((Be-ve)*te,Le*ee,!0);return de.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le-ve)*ee,(Be-ve)*te,(Le-Ee)*ee,(Be-Ee)*te,(Le-ve)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Be+ve)*te,Le*ee,(Be+Ee)*te,(Le-ve)*ee,(Be+ve)*te,(Le-Ee)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Le+ve)*ee,(Be+ve)*te,(Le+Ee)*ee,(Be+Ee)*te,(Le+ve)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Be-ve)*te,Le*ee,(Be-Ee)*te,(Le+ve)*ee,(Be-ve)*te,(Le+Ee)*ee).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),de}),go.Shape.defineFigureGenerator("Forklift",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var he=new go.PathFigure(0,.5*ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ve=new go.PathFigure(.5*te,.8*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee));var Ee=new go.PathFigure(.5*te,.7*ee,!1);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var Be=.1,Le=Me*.1,ze=.1,je=.9,Xe=new go.PathFigure((ze-Be)*te,je*ee,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(je-Be)*ee,(ze-Be)*te,(je-Le)*ee,(ze-Le)*te,(je-Be)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ze+Be)*te,je*ee,(ze+Le)*te,(je-Be)*ee,(ze+Be)*te,(je-Le)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(je+Be)*ee,(ze+Be)*te,(je+Le)*ee,(ze+Le)*te,(je+Be)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ze-Be)*te,je*ee,(ze-Le)*te,(je+Be)*ee,(ze-Be)*te,(je+Le)*ee)),Be=.1,Le=Me*.1,ze=.4,je=.9;var Ye=new go.PathFigure((ze-Be)*te,je*ee,!0);return de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(je-Be)*ee,(ze-Be)*te,(je-Le)*ee,(ze-Le)*te,(je-Be)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ze+Be)*te,je*ee,(ze+Le)*te,(je-Be)*ee,(ze+Be)*te,(je-Le)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(je+Be)*ee,(ze+Be)*te,(je+Le)*ee,(ze+Le)*te,(je+Be)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ze-Be)*te,je*ee,(ze-Le)*te,(je+Be)*ee,(ze-Be)*te,(je+Le)*ee)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.1*te,.4*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var he=new go.PathFigure(.45*te,.7*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var ve=new go.PathFigure(.55*te,.4*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ee).close());var ze=.05,je=Me*.05,Xe=.175,Ye=.95,Ee=new go.PathFigure((Xe-ze)*te,Ye*ee,!0);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye-ze)*ee,(Xe-ze)*te,(Ye-je)*ee,(Xe-je)*te,(Ye-ze)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+ze)*te,Ye*ee,(Xe+je)*te,(Ye-ze)*ee,(Xe+ze)*te,(Ye-je)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye+ze)*ee,(Xe+ze)*te,(Ye+je)*ee,(Xe+je)*te,(Ye+ze)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-ze)*te,Ye*ee,(Xe-je)*te,(Ye+ze)*ee,(Xe-ze)*te,(Ye+je)*ee));var ze=.05,je=Me*.05,Xe=.375,Ye=.95,Be=new go.PathFigure((Xe-ze)*te,Ye*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye-ze)*ee,(Xe-ze)*te,(Ye-je)*ee,(Xe-je)*te,(Ye-ze)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+ze)*te,Ye*ee,(Xe+je)*te,(Ye-ze)*ee,(Xe+ze)*te,(Ye-je)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye+ze)*ee,(Xe+ze)*te,(Ye+je)*ee,(Xe+je)*te,(Ye+ze)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-ze)*te,Ye*ee,(Xe-je)*te,(Ye+ze)*ee,(Xe-ze)*te,(Ye+je)*ee));var ze=.05,je=Me*.05,Xe=.625,Ye=.95,Le=new go.PathFigure((Xe-ze)*te,Ye*ee,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye-ze)*ee,(Xe-ze)*te,(Ye-je)*ee,(Xe-je)*te,(Ye-ze)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+ze)*te,Ye*ee,(Xe+je)*te,(Ye-ze)*ee,(Xe+ze)*te,(Ye-je)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye+ze)*ee,(Xe+ze)*te,(Ye+je)*ee,(Xe+je)*te,(Ye+ze)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-ze)*te,Ye*ee,(Xe-je)*te,(Ye+ze)*ee,(Xe-ze)*te,(Ye+je)*ee));var ze=.05,je=Me*.05,Xe=.825,Ye=.95,dt=new go.PathFigure((Xe-ze)*te,Ye*ee,!0);de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye-ze)*ee,(Xe-ze)*te,(Ye-je)*ee,(Xe-je)*te,(Ye-ze)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+ze)*te,Ye*ee,(Xe+je)*te,(Ye-ze)*ee,(Xe+ze)*te,(Ye-je)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(Ye+ze)*ee,(Xe+ze)*te,(Ye+je)*ee,(Xe+je)*te,(Ye+ze)*ee)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-ze)*te,Ye*ee,(Xe-je)*te,(Ye+ze)*ee,(Xe-ze)*te,(Ye+je)*ee).close());var He=new go.PathFigure(0,ee,!1);return de.add(He),He.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var he=new go.PathFigure(0,.2*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var ve=new go.PathFigure(.15*te,ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee).close());var Ee=.05,Be=Me*.05,Le=.35,ze=.775,je=new go.PathFigure((Le-Ee)*te,ze*ee,!0);return de.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*te,(ze-Ee)*ee,(Le-Ee)*te,(ze-Be)*ee,(Le-Be)*te,(ze-Ee)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ee)*te,ze*ee,(Le+Be)*te,(ze-Ee)*ee,(Le+Ee)*te,(ze-Be)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*te,(ze+Ee)*ee,(Le+Ee)*te,(ze+Be)*ee,(Le+Be)*te,(ze+Ee)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ee)*te,ze*ee,(Le-Be)*te,(ze+Ee)*ee,(Le-Ee)*te,(ze+Be)*ee).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),de}),go.Shape.defineFigureGenerator("Bluetooth",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),de}),go.Shape.defineFigureGenerator("Globe",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),de}),go.Shape.defineFigureGenerator("Wave",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.25*ee,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Operator",function(Ie,te,ee){var de=new go.Geometry,se=.3,he=Me*.3,ve=.5,Ee=.7,Be=new go.PathFigure((ve-se)*te,Ee*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee));var Le=new go.PathFigure(0,.7*ee,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ee,0,0,te,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),de}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te,0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),de}),go.Shape.defineFigureGenerator("Battery",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var he=new go.PathFigure(0,.6*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),he.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),de}),go.Shape.defineFigureGenerator("Delete",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*.5,ve=.5,Ee=.5,Be=new go.PathFigure((ve-se)*te,Ee*ee,!0);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee));var Le=new go.PathFigure(.15*te,.5*ee,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ee)),de}),go.Shape.defineFigureGenerator("Flag",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.1*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),de}),go.Shape.defineFigureGenerator("Help",function(Ie,te,ee){var de=new go.Geometry,se=.5,he=Me*.5,ve=.5,Ee=.5,Be=new go.PathFigure((ve-se)*te,Ee*ee,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee).close()),se=.05,he=Me*.05,ve=.5,Ee=.8;var Le=new go.PathFigure((ve-se)*te,Ee*ee,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee-se)*ee,(ve-se)*te,(Ee-he)*ee,(ve-he)*te,(Ee-se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Ee*ee,(ve+he)*te,(Ee-se)*ee,(ve+se)*te,(Ee-he)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Ee+se)*ee,(ve+se)*te,(Ee+he)*ee,(ve+he)*te,(Ee+se)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Ee*ee,(ve-he)*te,(Ee+se)*ee,(ve-se)*te,(Ee+he)*ee).close()),Le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ee,.4*te,.2*ee,.3*te,.25*ee)),de}),go.Shape.defineFigureGenerator("Location",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ee,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ee,.5*te,0,.025*te,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var he=new go.PathFigure(.2*te,.5*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),de}),go.Shape.defineFigureGenerator("Unlocked",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var he=new go.PathFigure(.2*te,.5*ee,!1);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),he.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),he.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),de}),go.Shape.defineFigureGenerator("Gear",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ee,.79840625*te,.39915625*ee,.7834375*te,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ee,.64228125*te,.2188125*ee,.603875*te,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ee,.39759375*te,.20190625*ee,.36053125*te,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ee,.21765625*te,.36059375*ee,.201875*te,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ee,.20221875*te,.603875*ee,.21884375*te,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ee,.36353125*te,.78340625*ee,.3991875*te,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ee,.602375*te,.79809375*ee,.63946875*te,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ee,.78234375*te,.63940625*ee,.798125*te,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),de}),go.Shape.defineFigureGenerator("Map",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),de}),go.Shape.defineFigureGenerator("Eject",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var he=new go.PathFigure(0,ee*.6,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),de}),go.Shape.defineFigureGenerator("Pencil",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*1,ee*1,!1);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var he=new go.PathFigure(.126*te,.85*ee,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),he.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var ve=new go.PathFigure(.402*te,.85*ee,!1);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ee)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ee).close());var Ee=new go.PathFigure(.678*te,.85*ee,!1);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var Be=new go.PathFigure(.5*te,.1*ee,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),de}),go.Shape.defineFigureGenerator("5Bars",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var he=new go.PathFigure(te*.204,ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),he.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),he.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var ve=new go.PathFigure(te*.408,ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.408,ee*(1-.184*2))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*(1-.184*3))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*1).close());var Ee=new go.PathFigure(te*.612,ee,!0);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var Be=new go.PathFigure(te*.816,ee,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),Be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),Be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var he=new go.PathFigure(te*.055,.07*ee,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),he.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),he.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var ve=new go.PathFigure(te*.055,.13*ee,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.13)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.16)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.16).close());var Ee=new go.PathFigure(te*.055,.18*ee,!0);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var Be=new go.PathFigure(te*1,0,!0);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),Be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(.55*te,ee,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),de}),go.Shape.defineFigureGenerator("Key",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*1,ee*.5,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),de}),go.Shape.defineFigureGenerator("FilmTape",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(0,0,!1);de.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var he=new go.PathFigure(0,0,!1);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),he.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),he.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var ve=new go.PathFigure(te*.11,ee*.1,!1);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.1)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.8)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.11,ee*.8).close());var Ee=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var Be=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),Be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),Be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ie,te,ee){var de=new go.Geometry,se=8,he=se*Me,ve=new go.PathFigure(se,0,!1);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.14)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ee,te,ee-he,te-he,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,he,ee,0,ee-he)),ve.add(new go.PathSegment(go.PathSegment.Line,0,se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,he,he,0).close());var Ee=new go.PathFigure(te*.83,0,!1);de.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var Be=new go.PathFigure(te*.83,ee*1,!1);de.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var Le=new go.PathFigure(te*.78,ee*.05,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),Le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),Le.add(new go.PathSegment(go.PathSegment.Line,te*.78,ee*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ie,te,ee){var de=Ie?Ie.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,te/3),de=Math.min(de,ee/3);var se=de*Me,he=ee*.8,ve=new go.Geometry,Ee=new go.PathFigure(de,0,!0);return ve.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-se,0,te,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,te,he-de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-de,he,te,he-se,te-se,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.7,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.55,he)),Ee.add(new go.PathSegment(go.PathSegment.Line,de,he)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,he-de,se,he,0,he-se)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,se,se,0).close()),se>1?(ve.spot1=new go.Spot(0,0,se,se),ve.spot2=new go.Spot(1,.8,-se,-se)):(ve.spot1=go.Spot.TopLeft,ve.spot2=new go.Spot(1,.8)),ve}),go.Shape.defineFigureGenerator("Repeat",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*0,ee*.45,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var he=new go.PathFigure(te*1,ee*.55,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),he.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),he.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),he.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),he.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),he.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),he.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),he.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),de}),go.Shape.defineFigureGenerator("Windows",function(Ie,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*0,ee*.1,!1);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var he=new go.PathFigure(te*.1,ee*.2,!0);de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),he.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),he.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),he.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),he.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),he.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var ve=new go.PathFigure(te*.28,ee*.37,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.37)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.41)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.28,ee*.41).close()),de}),go.Shape.defineFigureGenerator("Beaker",function(Ie,te,ee){var de=new go.Geometry,se=15,he=se*Me,ve=new go.PathFigure(te*.62,ee*.475,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,ee-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ee,te,ee-he,te-he,ee)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ee)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,he,ee,0,ee-he)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.475)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.03)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.62,ee*.03).close()),he>1?(de.spot1=new go.Spot(0,0,he,he),de.spot2=new go.Spot(1,1,-he,-he)):(de.spot1=go.Spot.TopLeft,de.spot2=go.Spot.BottomRight),de}),go.Shape.defineFigureGenerator("Download",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);de.add(se);var he=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-he)).close());var ve=new go.PathFigure(te*.4,ee*0,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.66)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ee*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*0).close()),de}),go.Shape.defineFigureGenerator("Bin",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);de.add(se);var he=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-he)).close()),de}),go.Shape.defineFigureGenerator("Upload",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);de.add(se);var he=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-he))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-he)).close());var ve=new go.PathFigure(te*.5,ee*0,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.74,ee*.25).close()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*.15,ee*0,!1);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),de}),go.Shape.defineFigureGenerator("Drink",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*.15,ee*0,!1);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var he=new go.PathFigure(te*.235,ee*.28,!0);return de.add(he),he.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),he.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),he.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),de}),go.Shape.defineFigureGenerator("4Arrows",function(Ie,te,ee){var de=new go.Geometry,se=new go.PathFigure(te*.5,ee*0,!0);return de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.25).close()),de}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var On={},pn="5.0",pe={},le=null,ke=!1,We=!1,ut=null,Ge=!1,Ue=null,Me=null,Ct=0;Ct4?parseFloat(zt):5};On.setHTML5Codebase=function(zt,qt){Me=zt,_t(zt,qt)},On.setJavaCodebase=On.setJavaCodebaseVersion=On.isCompiledInstalled=On.setPreCompiledScriptPath=On.setPreCompiledResourcePath=function(){},On.setHTML5CodebaseVersion=function(zt,qt){var ln=parseFloat(zt);if(ln!==NaN&&ln<5){console.log("The GeoGebra HTML5 codebase version "+ln+" is deprecated. Using version latest instead.");return}Ue=zt,Ve(zt,qt)},On.getHTML5CodebaseVersion=function(){return Ie},On.getParameters=function(){return pe},On.setFontsCSSURL=function(zt){ve=zt},On.setGiacJSURL=function(zt){},On.setJNLPFile=function(zt){$e=zt},On.setJNLPBaseDir=function(zt){},On.inject=function(){function zt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var qt="auto",ln=pe.id,Gn,un=!1,_n=0;_n=5)return!0;var zt=On.getAppletObject();return zt&&typeof zt.recalculateEnvironments=="function"?(zt.recalculateEnvironments(),!0):!1},On.startAnimation=function(){var zt=On.getAppletObject();return zt&&typeof zt.startAnimation=="function"?(zt.startAnimation(),!0):!1},On.stopAnimation=function(){var zt=On.getAppletObject();return zt&&typeof zt.stopAnimation=="function"?(zt.stopAnimation(),!0):!1},On.getAppletObject=function(){var zt=pe.id!==void 0?pe.id:"ggbApplet";return window[zt]},On.resize=function(){};var dt=function(zt,qt,ln){var Gn=document.createElement("param");Gn.setAttribute("name",qt),Gn.setAttribute("value",ln),zt.appendChild(Gn)},He=function(zt){return zt&&zt!=="false"},Nt=function(zt,qt,ln){Be(Ie)<=4.2&&(ln=!0);var Gn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ie||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Gn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var un=document.createElement("div");un.classList.add("appletParameters","notranslate");var _n=qt.width,St=qt.height;if(qt.disableAutoScale=qt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():qt.disableAutoScale,qt.width!==void 0)if(Be(Ie)<=4.4)He(qt.showToolBar)&&(qt.height-=7),He(qt.showAlgebraInput)&&(qt.height-=37),qt.width<605&&He(qt.showToolBar)&&(qt.width=605,_n=605);else{var Zn=100;(He(qt.showToolBar)||He(qt.showMenuBar))&&(qt.hasOwnProperty("customToolBar")&&(qt.customToolbar=qt.customToolBar),Zn=He(qt.showMenuBar)?245:155),_n=5?(qt.appletOnLoad=function(ft){var Gt=zt.querySelector(".ggb_preview");Gt&&Gt.parentNode.removeChild(Gt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(be),window.GGBT_wsf_view&&$(window).trigger("resize"),Ze(ft)},Pe||be.appendChild(Ae)):un.appendChild(Ae),be.appendChild(un),Pe||zt.appendChild(be),setTimeout(function(){On.resize()},1)}else{var Oe=document.createElement("div");Oe.className="applet_scaler",Oe.style.position="relative",Oe.style.display="block",Oe.appendChild(un),zt.appendChild(Oe),qt.appletOnLoad=function(ft){On.resize(),Ze(ft)}}function xe(ft,Gt){Gt&&typeof Gt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,Gt.appletOnLoad):renderGGBElement(ft),vn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Gt)}function ct(ft,Gt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:Gt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sn){xe(Sn.article,Sn.params)}),html5AppletsToProcess=null)},Be(Ie)<5&&(ft.className+=" geogebraweb")):xe(ft,Gt)}if(Gn){scriptLoadStarted=!0;for(var Mt=0;Mt0?(ci.remove(),be.attr("id","fullscreencontent").show(),jQuery(Ze).append(be),window.dispatchEvent(new Event("resize"))):Nt(ci,qt,!1),window.GGBT_wsf_view.launchFullScreen(Ze)}else vt=Gn,Nt(zt,qt,!1);if(!window.GGBT_wsf_view)for(St=0;Stzt/4*3&&(ci=zt/4*3),Ze=ci/5.8,Zn.setAttribute("src",se),Zn.setAttribute("width",ci),Zn.setAttribute("height",Ze);var be=(zt-ci)/2,Pe=(qt-Ze)/2;Zn.style.left=be+"px",Zn.style.top=Pe+"px",un.appendChild(Zn)}}return un.appendChild(St),un},Dt=function(zt){return zt=zt.toLowerCase(),zt==="html5"||zt==="screenshot"?zt:"html5"},tt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ve=function(zt,qt){if(Ie=zt,qt){_t(Ie,!0);return}var ln=!ke;if(ln){var Gn=Be(Ie);!isNaN(Gn)&&Gn<4.4&&(ln=!1)}var un,_n;window.location.protocol.substr(0,4)==="http"?un=window.location.protocol:un="http:";var St=Ie.indexOf("//");St>0?_n=Ie:St===0?_n=un+Ie:_n="https://www.geogebra.org/apps/5.2.814.0/";for(var Zn in tt)if(Ie.slice(tt[Zn].length*-1)===tt[Zn]||Ie.slice((tt[Zn].length+1)*-1)===tt[Zn]+"/"){_t(_n,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ln&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!He(pe.showToolBar)&&!He(pe.showMenuBar)&&!He(pe.showAlgebraInput)&&!He(pe.enableRightClick)&&(!pe.appName||pe.appName=="classic")?_n+="webSimple/":_n+="web3d/",_t(_n,!1)},_t=function(zt,qt){if(zt.requirejs){Ft=zt;return}zt.slice(-1)!=="/"&&(zt+="/"),Ft=zt,qt===null&&(qt=zt.indexOf("http")===-1),lt=qt,te="web.nocache.js",ee=!1;var ln=Ft.split("/");ln.length>1&&(!qt&&ln[ln.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):tt.indexOf(ln[ln.length-2])>=0&&(te=ln[ln.length-2]+".nocache.js")),ln=zt.split("/"),Ie=ln[ln.length-3],Ie.substr(0,4)==="test"?Ie=Ie.substr(4,1)+"."+Ie.substr(5,1):(Ie.substr(0,3)==="war"||Ie.substr(0,4)==="beta")&&(Ie="5.0");var Gn=parseFloat(Ie);Gn!==NaN&&Gn<5&&zt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gn+" is deprecated. Using version latest instead."),Ve("5.0",qt))},vn=function(zt,qt){window.console&&window.console.log&&(!qt||typeof qt.showLogging=="undefined"||qt.showLogging&&qt.showLogging!=="false")&&console.log(zt)};pe.material_id!==void 0?je(yn):yn();function yn(){var zt=pn;Ue!==null?zt=Ue:parseFloat(zt)<5&&(zt="5.0"),Ve(zt,!1),Me!==null&&_t(Me,lt),Ge=!0}return On},GGBAppletUtils=function(){"use strict";function On(){return window.GGBT_wsf_edit!==void 0}function pn(Ge,Ue){Ue!=1?(Ge.style.transformOrigin="0% 0% 0px",Ge.style.webkitTransformOrigin="0% 0% 0px",Ge.style.transform="scale("+Ue+","+Ue+")",Ge.style.webkitTransform="scale("+Ue+","+Ue+")",Ge.style.maxWidth="initial",Ge.querySelector(".ggb_preview")!==null&&(Ge.querySelector(".ggb_preview").style.maxWidth="initial"),Ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ge.style.transform="none",Ge.style.webkitTransform="none")}function pe(Ge,Ue,Me,Ct,wt,$e){var Ft=null;if($e!=null&&$e!="")for(var lt=Ge.parentNode;lt!=null;)if((" "+lt.className+" ").indexOf(" "+$e+" ")>-1){Ft=lt;break}else lt=lt.parentNode;var vt=0,Ie=0,te=0,ee=0,de=0,se=0,he=0;if(Ft)vt=Ft.offsetWidth,Ie=Math.max(Ct?Ft.offsetWidth:0,Ft.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ie=Math.min(window.innerHeight,document.documentElement.clientHeight),te=vt):(vt=window.innerWidth,Ie=window.innerHeight,te=window.innerWidth),Ge){var ve=Ge.getBoundingClientRect();ve.left>0&&ve.left<=vt&&(wt===void 0||!wt)&&(document.dir==="rtl"?(de=vt-ve.width-ve.left,se=te<=480?10:30):(se=ve.left,de=te<=480?10:30),ee=se+de)}if(Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ee=Ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,he=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,he=40)}}return Ge&&((Me===void 0||!Me)&&Ue>0&&Ue+ee1&&($e=!0)),Ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&($e=!0),!(Ge.hasOwnProperty("disableAutoScale")&&Ge.disableAutoScale))wt=le(Ge,Ue,$e,Me,Ge.scaleContainerClass);else return Ct;return $e&&(!Ge.hasOwnProperty("scale")||Ct===1)?wt:Math.min(Ct,wt)}function We(Ge){var Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),Me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ct=Ge.getBoundingClientRect(),wt=(Ue-Ct.width)/2,$e=(Me-Ct.height)/2;$e<0&&($e=0),Ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(wt<40?Ge.style.left="40px":Ge.style.left=wt+"px",Ge.style.top=$e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&($e<40?Ge.style.top="40px":Ge.style.top=$e+"px",Ge.style.left=wt+"px")}function ut(Ge,Ue){var Me=Ge.querySelector(".appletParameters");if(Me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ue.id!==Me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ge)}if(Me.parentElement&&/fullscreen/.test(Me.parentElement.className))return;var Ct=ke(Ue,Ge);On()&&Me.setAttribute("data-param-scale",Ct);for(var wt=null,$e=0;$e=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(On){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(On){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(On){var pn=c[On];return pn==null?null:pn},r=d,webModule.__errFn=e}function B(){function On(Ge){var Ue=Ge.lastIndexOf(rb);Ue==-1&&(Ue=Ge.length);var Me=Ge.indexOf(sb);Me==-1&&(Me=Ge.length);var Ct=Ge.lastIndexOf(tb,Math.min(Me,Ue));return Ct>=O?Ge.substring(O,Ct+P):W}function pn(Ge){if(!Ge.match(/^\w+:\/\//)){var Ue=o.createElement(ub);Ue.src=Ge+vb,Ge=On(Ue.src)}return Ge}function pe(){var Ge=__gwt_getMetaProperty(wb);return Ge!=null?Ge:W}function le(){for(var Ge=o.getElementsByTagName(_),Ue=O;UeO?Ge[Ge.length-P].href:W}function We(){var Ge=o.location;return Ge.href==Ge.protocol+zb+Ge.host+Ge.pathname+Ge.search+Ge.hash}var ut=pe();return ut==W&&(ut=le()),ut==W&&(ut=ke()),ut==W&&We()&&(ut=On(o.location.href)),ut=pn(ut),ut}function C(On){return On.match(/^\//)||On.match(/^[a-zA-Z]+:\/\//)?On:webModule.__moduleBase+On}function D(){var On=[],pn=O,pe=[],le=[];function ke(Ge){var Ue=le[Ge](),Me=pe[Ge];if(Ue in Me)return Ue;var Ct=[];for(var wt in Me)Ct[Me[wt]]=wt;throw r&&r(Ge,Ct,Ue),null}if(__gwt_isKnownPropertyValue=function(Ge,Ue){return Ue in pe[Ge]},webModule.__getPropMap=function(){var Ge={};for(var Ue in pe)pe.hasOwnProperty(Ue)&&(Ge[Ue]=ke(Ue));return Ge},webModule.__computePropValue=ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var ut=We.indexOf(Db);ut!=-1&&(pn=parseInt(We.substring(ut+P),$),We=We.substring(O,ut))}catch(Ge){}return webModule.__softPermutationId=pn,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(On,pn,pe){"use strict";pe.d(pn,{Ax:function(){return ut},Ds:function(){return Ge},KI:function(){return Me},SI:function(){return We},f1:function(){return ke}});var le=pe(3294);function ke(Ct){let wt=!0;if(Ct.length>0){for(let $e=0;$eee in te?We(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ee]=de,$e=(te,ee)=>{for(var de in ee||(ee={}))Me.call(ee,de)&&wt(te,de,ee[de]);if(Ue)for(var de of Ue(ee))Ct.call(ee,de)&&wt(te,de,ee[de]);return te},Ft=(te,ee)=>ut(te,Ge(ee)),lt=(te,ee)=>{var de={};for(var se in te)Me.call(te,se)&&ee.indexOf(se)<0&&(de[se]=te[se]);if(te!=null&&Ue)for(var se of Ue(te))ee.indexOf(se)<0&&Ct.call(te,se)&&(de[se]=te[se]);return de},vt=(te,ee,de)=>new Promise((se,he)=>{var ve=Le=>{try{Be(de.next(Le))}catch(ze){he(ze)}},Ee=Le=>{try{Be(de.throw(Le))}catch(ze){he(ze)}},Be=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(ve,Ee);Be((de=de.apply(te,ee)).next())});const Ie=te=>{var ee=te,{children:de}=ee,se=lt(ee,["children"]);const[he,ve]=(0,ke.useState)(!1);return ke.createElement(le.ZP,Ft($e({},se),{loading:he,onClick:Ee=>vt(void 0,null,function*(){try{ve(!0),yield se.onClick(Ee),ve(!1)}catch(Be){console.error(Be),ve(!1)}})}),de)}},59155:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return vt}});var le=pe(59301),ke=pe(8591),We=pe(92832),ut={codeBox:"codeBox___WpkVl"},Ge=pe(92310),Ue=pe.n(Ge),Me=Object.defineProperty,Ct=(Ie,te,ee)=>te in Ie?Me(Ie,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ie[te]=ee,wt=(Ie,te,ee)=>Ct(Ie,typeof te!="symbol"?te+"":te,ee),$e=(Ie,te,ee)=>new Promise((de,se)=>{var he=Be=>{try{Ee(ee.next(Be))}catch(Le){se(Le)}},ve=Be=>{try{Ee(ee.throw(Be))}catch(Le){se(Le)}},Ee=Be=>Be.done?de(Be.value):Promise.resolve(Be.value).then(he,ve);Ee((ee=ee.apply(Ie,te)).next())});class Ft extends le.Component{constructor(te){super(te),wt(this,"canvas"),wt(this,"randomNum",(ee,de)=>Math.floor(Math.random()*(de-ee)+ee)),wt(this,"drawPic",()=>{this.randomCode()}),wt(this,"reloadPic",()=>{this.drawPic()}),wt(this,"changeCode",ee=>{console.log(ee.target.value,222),this.setState({value:ee.target.value,showError:!1})}),wt(this,"onVerify",()=>{let ee;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(ee=!0,ke.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(ee=!0,ke.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(ee=!1),this.setState({showError:ee}),ee}),this.canvas=le.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(te,ee){const de=this.randomNum(te,ee),se=this.randomNum(te,ee),he=this.randomNum(te,ee);return`rgb(${de}, ${se}, ${he})`}drawText(te,ee,de){te.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const se=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);te.font=se+"px SimHei";const he=10,ve=(this.state.contentWidth-40)/(this.state.code.length-1);let Ee=he;de>0&&(Ee=he+de*ve);let Be=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);se>40&&(Be=40);const Le=this.randomNum(-10,10);te.translate(Ee,Be),te.rotate(Le*Math.PI/180),te.fillText(ee,0,0),te.rotate(-Le*Math.PI/180),te.translate(-Ee,-Be)}drawLine(te){for(let ee=0;ee<1;ee++)te.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),te.beginPath(),te.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.stroke()}drawDot(te){for(let ee=0;ee<100;ee++)te.fillStyle=this.randomColor(0,255),te.beginPath(),te.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),te.fill()}randomCode(){let te="";const ee="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let de=0;de{const se=this.canvas.current.getContext("2d");se.textBaseline="bottom",se.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),se.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let he=0;he{let ee;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,te),React.createElement(Ft,{ref:de=>ee=de})),onOk:()=>$e(void 0,null,function*(){if(ee.onVerify())return Promise.reject();Ie()})})};var vt=Ft},10672:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return wt}});var le=pe(59301),ke=pe(92832),We=pe(12563),ut=pe(8591),Ge={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Ue=pe(62772);const{TextArea:Me}=ke.default;class Ct extends le.Component{constructor(Ft){super(Ft),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ft,onAnswerChange:lt,addChildAnswer:vt,exerciseIsPublish:Ie,answers:te,activeOptionErrorIndex:ee,flex:de="0 0 1000px"}=this.props;console.log("----",te);let{inputVisible:se,EditInputIndex:he}=this.state;return le.createElement("div",{className:Ge.flex},le.createElement("div",{className:`${Ge.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ft+1,"):"),le.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},te==null?void 0:te.map((ve,Ee)=>le.createElement(le.Fragment,null,he!==Ee?(ve==null?void 0:ve.length)>0?le.createElement(We.default,{className:"edit-tag",key:ve,closable:!((te==null?void 0:te.length)===1&&Ee===0),onClose:Be=>{Be.preventDefault(),(te==null?void 0:te.length)===1&&Ee===0?this.props.deleteChildAnswermain(Ft,Ee):this.props.deleteChildAnswer(Ft,Ee)}},le.createElement("span",{onDoubleClick:Be=>{this.setState({EditInputIndex:Ee}),Be.preventDefault()}},ve)):le.createElement(ke.default,{defaultValue:ve,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Be=>{if(Be.target.value.replaceAll(" ","").length<=0){ut.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}lt(Ft,Ee,Be.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):le.createElement(ke.default,{defaultValue:ve,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Be=>{if(Be.target.value.replaceAll(" ","").length<=0){ut.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}lt(Ft,Ee,Be.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!se&&le.createElement(We.default,{className:"site-tag-plus",onClick:()=>{vt(Ft),this.setState({inputVisible:!0})}},le.createElement(Ue.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var wt=Ct},65158:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ie}});var le=pe(59301),ke=pe(12290),We=Object.defineProperty,ut=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,wt=(te,ee,de)=>ee in te?We(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ee]=de,$e=(te,ee)=>{for(var de in ee||(ee={}))Me.call(ee,de)&&wt(te,de,ee[de]);if(Ue)for(var de of Ue(ee))Ct.call(ee,de)&&wt(te,de,ee[de]);return te},Ft=(te,ee)=>ut(te,Ge(ee)),lt=(te,ee,de)=>wt(te,typeof ee!="symbol"?ee+"":ee,de);const vt="\u2581";class Ie extends le.Component{constructor(){super(...arguments),lt(this,"getChCountBeforeCursor",(ee,de)=>{const se=de.line;let he=0;for(let Ee=0;Ee{const se=ee.getRange(de.from,de.to);let he=0;if(de.text.forEach(ve=>{he+=ve.split(vt).length-1}),se&&se.indexOf(vt)!=-1){const ve=se.split(vt).length-1,Ee=this.getChCountBeforeCursor(ee,de.from);console.log(`\u5220\u9664${ve}\u4E2A\uFF0C \u4E4B\u524D\u6709${Ee}\u4E2A\uFF0C\u65B0\u589E${he}\u4E2A`),this.props.deleteEmptyDisabled?de.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(Ee,ve,he)}else if(he){const ve=this.getChCountBeforeCursor(ee,de.from);console.log(`\u65B0\u589E${he}\u4E2A\uFF0C\u4E4B\u524D\u6709${ve}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(ve,0,he)}})}render(){return le.createElement(ke.Z,Ft($e({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},23367:function(On,pn,pe){"use strict";pe.d(pn,{d4:function(){return vt},VP:function(){return wt}});var le=pe(59301),ke={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const We=({number:Ie,active:te,className:ee})=>le.createElement("div",{className:`${ke.digitalLabel} ${te?ke.active:""} ${ee}`},Ie);var ut=pe(6848),Ge=pe(92832),Ue=pe(8591),Me=pe(59301),Ct=(Ie,te,ee)=>new Promise((de,se)=>{var he=Be=>{try{Ee(ee.next(Be))}catch(Le){se(Le)}},ve=Be=>{try{Ee(ee.throw(Be))}catch(Le){se(Le)}},Ee=Be=>Be.done?de(Be.value):Promise.resolve(Be.value).then(he,ve);Ee((ee=ee.apply(Ie,te)).next())});const wt=({defaultValue:Ie,onFinish:te})=>{const[ee,de]=(0,le.useState)(!1),[se,he]=(0,le.useState)(Ie);return(0,le.useEffect)(()=>{he(Ie)},[Ie]),Me.createElement("div",{className:ke.titleEditor},ee?Me.createElement(Ge.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:se,onChange:ve=>{he(ve.target.value)},onBlur:()=>Ct(void 0,null,function*(){var ve;if(((ve=se==null?void 0:se.replaceAll(" ",""))==null?void 0:ve.length)<=0){Ue.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield te(se))&&de(!1)}),onPressEnter:()=>Ct(void 0,null,function*(){var ve;if(((ve=se==null?void 0:se.replaceAll(" ",""))==null?void 0:ve.length)<=0){Ue.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield te(se))&&de(!1)})}):Me.createElement("div",{className:ke.title,onDoubleClick:()=>de(!0)},se,Me.createElement(ut.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Me.createElement("i",{className:`${ke.editIcon} iconfont icon-bianji_Hover`,onClick:()=>de(!0)}))))};var $e=pe(95237),Ft=pe(43604),lt=(Ie,te,ee)=>new Promise((de,se)=>{var he=Be=>{try{Ee(ee.next(Be))}catch(Le){se(Le)}},ve=Be=>{try{Ee(ee.throw(Be))}catch(Le){se(Le)}},Ee=Be=>Be.done?de(Be.value):Promise.resolve(Be.value).then(he,ve);Ee((ee=ee.apply(Ie,te)).next())});const vt=({onChange:Ie=()=>lt(void 0,null,function*(){}),tabs:te,activeKey:ee,defaultActiveKey:de,className:se=""})=>{var he,ve,Ee,Be,Le,ze,je;const[Xe,Ye]=(0,le.useState)(de===void 0?(he=te[0])==null?void 0:he.key:de);return(0,le.useEffect)(()=>{ee!==void 0&&Ye(ee)},[ee]),le.createElement($e.Z,{justify:"center",align:"middle",className:`${ke.paperTab} ${se}`},le.createElement(Ft.Z,{className:`${ke.tabItem} ${Xe===((ve=te[0])==null?void 0:ve.key)?ke.active:""}`,onClick:()=>lt(void 0,null,function*(){var dt;yield Ie(te[0].key),Ye((dt=te[0])==null?void 0:dt.key)})},le.createElement(We,{number:1,active:Xe===((Ee=te[0])==null?void 0:Ee.key),className:"mr10"}),le.createElement("span",null,(Be=te[0])==null?void 0:Be.label)),le.createElement(Ft.Z,{flex:"188px",className:`${ke.dottedLine} ml30 mr30`}),le.createElement(Ft.Z,{className:`${ke.tabItem} ${Xe===((Le=te[1])==null?void 0:Le.key)?ke.active:""}`,onClick:()=>lt(void 0,null,function*(){var dt,He;yield Ie((dt=te[1])==null?void 0:dt.key),Ye((He=te[1])==null?void 0:He.key)})},le.createElement(We,{number:2,active:Xe===((ze=te[1])==null?void 0:ze.key),className:"mr10"}),le.createElement("span",null,(je=te[1])==null?void 0:je.label)))}},32570:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ue}});var le=pe(60324),ke={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},We=pe(32637),ut=pe(59301),Ue=({type:Me,style:Ct})=>{const wt=ut.createElement("div",{className:ke.wrap,onClick:$e=>{$e.preventDefault(),$e.stopPropagation()}},ut.createElement("p",null,Me==="shixun"||Me==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ut.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Me==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ut.createElement("div",{className:ke.contact},ut.createElement("div",{className:ke.img},ut.createElement("img",{src:We,width:"124px",height:"124px"})),ut.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ut.createElement(le.Z,{content:wt},ut.createElement("span",{className:ke.text,style:Ct},"\u9AD8\u6D88\u8017"))}},73524:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ft}});var le=pe(59301),ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=pe(92310),ut=pe.n(We),Ge=pe(71418),Ue=pe(2859),Me=pe(99064),Ct=pe(955),wt=(lt,vt,Ie)=>new Promise((te,ee)=>{var de=ve=>{try{he(Ie.next(ve))}catch(Ee){ee(Ee)}},se=ve=>{try{he(Ie.throw(ve))}catch(Ee){ee(Ee)}},he=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(de,se);he((Ie=Ie.apply(lt,vt)).next())}),Ft=({data:lt,className:vt,fullWidth:Ie,style:te={},onClose:ee,onOk:de,showFullTools:se,noAssociationId:he})=>{const ve=(0,le.useRef)(null),Ee=(0,le.useRef)(null),Be=(0,le.useRef)(null),Le=(0,le.useRef)(null),[ze,je]=(0,le.useState)(!1),[Xe,Ye]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>(Be.current||(Be.current=document.createElement("style"),document.head.appendChild(Be.current)),lt!=null&<.visible?(document.body.setAttribute("data-custom","y-hidden"),Be.current.innerHTML=" html { overflow-y: hidden; }",lt!=null&<.src&&dt()):(document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)),()=>{document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)}),[lt==null?void 0:lt.visible]);const dt=()=>wt(void 0,null,function*(){je(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Tt=yield(0,Ct.ZJ)(lt==null?void 0:lt.src);ve.current.src="",ve.current.src=Tt,ve.current.onload=function(){ot()},je(!1),Ye("")}),He=Tt=>wt(void 0,null,function*(){je(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xt=yield(0,Me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:lt.title,file:Tt.dataUrl}});xt!=null&&xt.id&&!he?(yield(0,Me.ZP)(`/api/attachments/${lt.id}/add_subitem.json`,{method:"post",body:{subitem_id:xt==null?void 0:xt.id,settings:JSON.stringify(Tt.state)}})).status===0&&de():xt!=null&&xt.id&&de(xt),je(!1),Ye("")}),Nt=()=>{const Tt=document.querySelector('a[href="https://markerjs.com/"]');Tt&&Tt.parentNode&&(Tt.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(Ot=>{const Wt=document.querySelector(Ot.name);Wt&&Wt.setAttribute("title",Ot.title)})},ot=()=>{Ee.current=new Ue.hP(ve.current),Ee.current.targetRoot=Le.current,Ee.current.addEventListener("render",He),Ee.current.addEventListener("beforeclose",ee),se&&(Ee.current.availableMarkerTypes=Ee.current.ALL_MARKER_TYPES,Ee.current.uiStyleSettings.redoButtonVisible=!0,Ee.current.uiStyleSettings.notesButtonVisible=!0,Ee.current.uiStyleSettings.zoomButtonVisible=!0,Ee.current.uiStyleSettings.zoomOutButtonVisible=!0,Ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ee.current.uiStyleSettings,Ee.current.show(),lt!=null&<.snapshotData&&Ee.current.restoreState(lt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return le.createElement(le.Fragment,null,(lt==null?void 0:lt.visible)&&le.createElement(Ge.Z,{spinning:ze,tip:Xe,style:{position:"absolute",width:"100vw"}},le.createElement("div",{ref:Le,className:ut()(ke.imageDimensions,vt,Ie?ke.fullWidth:""),style:te},le.createElement("img",{className:ke.img,ref:ve}))))}},59879:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(88010),We=pe(48136),ut=pe(41588),Ge=pe(43418),Ue=pe(59301);const Me=(0,le.forwardRef)(({callback:Ct,width:wt,onChange:$e,disabled:Ft,readOnly:lt,type:vt="",value:Ie="",style:te={}},ee)=>{const de=(0,le.useRef)(),se=(0,le.useRef)(),[he,ve]=(0,le.useState)(0),[Ee,Be]=(0,le.useState)(0),[Le,ze]=(0,le.useState)(!1),je=()=>{var He=document.createElement("div");He.innerHTML=de.current.getValue();var Nt=He.innerText;return Ct&&Ct(Nt),Nt};(0,le.useImperativeHandle)(ee,()=>({getData:je}));const Xe=He=>{He.preventDefault();const Nt=He.clientX-he,ot=He.clientY-Ee;document.body.onmousemove=Tt=>{let xt=Tt.clientX-Nt,Ot=Tt.clientY-ot;const Wt=document.getElementsByClassName("markdown-popup-form")[0],Dt=window.innerWidth-Wt.offsetWidth,tt=window.innerHeight-Wt.offsetHeight;xt=Math.max(0,Math.min(xt,Dt)),Ot=Math.max(0,Math.min(Ot,tt)),Ye(Tt.clientX,Tt.clientY,Nt,ot)&&(ve(xt),Be(Ot))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ye=(He,Nt,ot,Tt)=>{const xt=document.body.clientHeight,Ot=document.body.clientWidth;return He<20&&ot>He||He>Ot-20&&otNt||Nt>xt-20&&Tt{Le&&setTimeout(()=>{const He=document.getElementsByClassName("markdown-popup-form")[0],Nt=window.innerWidth/2-He.offsetWidth/2,ot=window.innerHeight/2-He.offsetHeight/2;ve(Nt),Be(ot)},0)},[Le]);const dt=()=>{Ft||lt||ze(!0)};return Ue.createElement("div",{style:te},Ue.createElement("div",{style:{width:wt||"100%",position:"relative"},className:`${ke.Z.mathFillWrap} ${Ft||lt?"cursorDefault":""}`,onClick:()=>dt()},Ue.createElement("math-field",{disabled:Ft,locale:"zh_cn",class:`${ke.Z.mathField} ${vt}`,readOnly:lt,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:de,style:{width:"100%",fontSize:Ie?18:14},value:Ie||""})),Ue.createElement(Ge.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:he,top:Ee},title:Ue.createElement("div",{style:{cursor:"move"},onMouseDown:Xe},"\u8F93\u5165\u516C\u5F0F"),open:Le,onOk:()=>{const He=se.current.getData();de.current.setValue(He),$e(He),ze(!1)},onCancel:()=>{ze(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ue.createElement(ut.Z,{value:Ie,ref:se,onChange:$e,showSaveButton:!1})))});pn.Z=Me},41588:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(95237),We=pe(43604),ut=pe(99313),Ge=pe(3113),Ue=pe(85149),Me=pe(88010),Ct=pe(48136),wt=pe(59301);const $e=(0,le.forwardRef)(({callback:Ft,showSaveButton:lt,value:vt=""},Ie)=>{const te=(0,le.useRef)(),ee=[{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 "}]}]}],de=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],se=Ee=>{te.current.setValue(te.current.getValue()+" "+Ee.value+" ")},he=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:wt.createElement(ke.Z,{className:Me.Z.lists,gutter:[10,10]},ee.map((Ee,Be)=>wt.createElement(We.Z,{flex:"110px",className:Me.Z.item},wt.createElement("div",null,wt.createElement(Ue.Z,{value:`$$${Ee.value}$$`}),Ee.name),wt.createElement("div",{className:Me.Z.children},Ee.children.map((Le,ze)=>wt.createElement("div",{key:ze},wt.createElement("h1",null,Le.name),wt.createElement(ke.Z,{gutter:[10,10]},Le.data.map((je,Xe)=>wt.createElement(We.Z,{key:Xe,onClick:()=>se(je),className:Me.Z.diamond},wt.createElement(Ue.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:wt.createElement(ke.Z,{className:Me.Z.lists,gutter:[10,10]},de.map((Ee,Be)=>wt.createElement(We.Z,{flex:"110px",className:Me.Z.item},wt.createElement("div",null,wt.createElement(Ue.Z,{value:"`$$"+Ee.value+"$$`"}),Ee.name),wt.createElement("div",{className:Me.Z.children},Ee.children.map((Le,ze)=>wt.createElement("div",{key:ze},Le.name&&wt.createElement("h1",null,Le.name),wt.createElement(ke.Z,{gutter:[10,10]},Le.data.map((je,Xe)=>wt.createElement(We.Z,{key:Xe,onClick:()=>se(je),className:Me.Z.diamond},wt.createElement(Ue.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],ve=()=>{var Ee=document.createElement("div");Ee.innerHTML=te.current.getValue();var Be=Ee.innerText;return Ft&&Ft(Be),Be};return(0,le.useImperativeHandle)(Ie,()=>({getData:ve})),wt.createElement("div",{className:Me.Z.mathWrap},wt.createElement(ut.default,{defaultActiveKey:"1",items:he}),wt.createElement("math-field",{locale:"zh_cn",className:Me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},vt||""),lt&&wt.createElement("div",{className:Me.Z.button},wt.createElement(Ge.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pn.Z=$e},8797:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(93314),We=pe(3113),ut=Object.defineProperty,Ge=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,$e=(Ie,te,ee)=>te in Ie?ut(Ie,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ie[te]=ee,Ft=(Ie,te)=>{for(var ee in te||(te={}))Ct.call(te,ee)&&$e(Ie,ee,te[ee]);if(Me)for(var ee of Me(te))wt.call(te,ee)&&$e(Ie,ee,te[ee]);return Ie},lt=(Ie,te)=>Ge(Ie,Ue(te));const vt=({img:Ie,buttonProps:te={},styles:ee={},customText:de,ButtonText:se,ButtonClick:he,Buttonclass:ve,ButtonTwo:Ee,imgStyles:Be,loading:Le=!1})=>le.createElement("section",{className:"tc animated fadeIn",style:Ft(Ft({},{color:"#999",margin:"100px auto",visibility:Le?"hidden":"visible"}),ee)},le.createElement("img",{src:Ie||ke,style:lt(Ft({},Be),{pointerEvents:"none",userSelect:"none"})}),le.createElement("p",{className:"mt20 font14"},de||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&le.createElement(We.ZP,Ft({className:ve,onClick:he},te),se),Ee&&Ee);pn.Z=vt},23210:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ve}});var le=pe(59301),ke={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},We=pe(3113),ut=pe(70557),Ge=pe(23954),Ue=pe(6848),Me=pe(955),Ct=pe(94941),wt=pe(8797),$e=pe(3294),Ft=pe(19381),lt=pe(59301),vt=Object.defineProperty,Ie=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(Ee,Be,Le)=>Be in Ee?vt(Ee,Be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ee[Be]=Le,se=(Ee,Be)=>{for(var Le in Be||(Be={}))te.call(Be,Le)&&de(Ee,Le,Be[Le]);if(Ie)for(var Le of Ie(Be))ee.call(Be,Le)&&de(Ee,Le,Be[Le]);return Ee},he=(Ee,Be,Le)=>new Promise((ze,je)=>{var Xe=He=>{try{dt(Le.next(He))}catch(Nt){je(Nt)}},Ye=He=>{try{dt(Le.throw(He))}catch(Nt){je(Nt)}},dt=He=>He.done?ze(He.value):Promise.resolve(He.value).then(Xe,Ye);dt((Le=Le.apply(Ee,Be)).next())}),ve=({editOffice:Ee="view",data:Be,theme:Le,type:ze,filename:je,monacoEditor:Xe,className:Ye,style:dt,close:He,onClose:Nt,hasMask:ot,disabledDownload:Tt,onImgDimensions:xt,showNodata:Ot,recordInfo:Wt})=>{const[Dt,tt]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ve,_t]=(0,le.useState)(""),[vn,yn]=(0,le.useState)(),zt=window.ENV==="build"?"/react/build":"",qt=location.host.startsWith("localhost")?$e.Z.PROXY_SERVER:$e.Z.API_SERVER,Gn=10*(1024*1024),un=(0,le.useRef)();Be!=null&&Be.startsWith("/api")&&ze!=="txt"&&(Be=$e.Z.API_SERVER+Be);const _n=Ze=>Ze.substring(Ze.lastIndexOf("/")+1).split(".").pop();je&&Xe&&(Xe.filename=je),(0,le.useEffect)(()=>{var Ze,be;const Pe=(be=(Ze=document.cookie)==null?void 0:Ze.replace(/\s/g,""))==null?void 0:be.split(";");Pe==null||Pe.map(Ae=>{let Oe=Ae.split("=");Oe[0]==="_educoder_session"&&_t(Oe[1])})},[]),(0,le.useEffect)(()=>{ze==="office"&&(Be.indexOf("bigfilescdn.")>-1||Be.indexOf("bigfiles1")>-1?yn({url:Be,fileType:_n(Be),model:Be.indexOf("model=edit")?"edit":"view"}):St())},[ze,Be]);const St=()=>he(void 0,null,function*(){console.log("data:",Be);let Ze=Be;Be.startsWith("http")||(Ze=location.origin+Ze);let be=new URL(Ze).pathname.split("/").pop();const Pe=yield(0,Ct.gJ)({attachment_id:be});Pe.url=qt+Pe.url,yn(Pe)}),Zn=()=>{if(Be.startsWith("http")||Be.startsWith("blob:")){ci();return}(0,Me.Sv)(je||"educoder",Be,je)},ci=()=>{Wt&&(0,Ft.fc)({id:Wt==null?void 0:Wt.id,watch_type:1,course_id:Wt==null?void 0:Wt.course_id}),(0,Me.Nd)(je||"educoder",decodeURIComponent(Be))};return lt.createElement("div",{style:se({},dt||{}),className:`${ot&&ke.bgBlack} ${ze?ke.wrp:"hide"}`},He&<.createElement("div",{className:ke.close,ref:un},!!xt&<.createElement(Ue.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>un.current},lt.createElement("span",{onClick:()=>{Nt(),xt()}},lt.createElement("i",{className:"icon-yulanpizhu"}))),!Tt&<.createElement(Ue.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>un.current},lt.createElement("span",{onClick:ci},lt.createElement("i",{className:"icon-quxiaozhiding"}))),lt.createElement(Ue.Z,{title:"\u5173\u95ED",getPopupContainer:()=>un.current},lt.createElement("span",{className:"",onClick:Nt},lt.createElement("i",{className:"icon-guanbi1"})))),lt.createElement("div",{className:`${ke[Ye]} ${Ye} ${ke.monaco} ${ze==="txt"?"show":"hide"}`},ze==="txt"&<.createElement(lt.Fragment,null,lt.createElement(Ge.ZP,se({},Xe)))),ze==="audio"&<.createElement("audio",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Be}`,autoPlay:!0}),ze==="video"&<.createElement(lt.Fragment,null,(Be==null?void 0:Be.indexOf("http"))>-1?lt.createElement("video",{controls:!0,src:`${Be}`,autoPlay:!0}):lt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Be}`,autoPlay:!0})),ze==="office"&&vn&<.createElement("iframe",{src:`${zt}/office.html?key=${vn.key}&url=${btoa(vn.url)}&callbackUrl=${qt+(vn.callbackUrl||"")}&fileType=${vn.fileType}&title=${vn.title||""}&model=${Ee}&officeServer=${$e.Z.ONLYOFFICE}&disabledDownload=${!!Tt}`}),ze==="html"&<.createElement("iframe",{src:Be+"&disposition=inline"}),ze==="pdf"&<.createElement("iframe",{src:`${zt}/js/pdfview/index.html?filename=${je||"educoder.pdf"}&url=${encodeURIComponent(Be)}&disabledDownload=${!!Tt}`}),ze==="image"&<.createElement("img",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Be}`}),(ze==="other"||ze==="download")&<.createElement(lt.Fragment,null,Ot?lt.createElement(wt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:lt.createElement(We.ZP,{icon:lt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Zn,disabled:Tt},"\u4E0B\u8F7D")}):lt.createElement(We.ZP,{type:"primary",size:"middle",onClick:Zn,disabled:Tt},lt.createElement(ut.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},90502:function(On,pn,pe){"use strict";pe.d(pn,{t:function(){return Pe}});var le=pe(59301),ke=pe(92832),We=pe(78241),ut=pe(43418),Ge=pe(95237),Ue=pe(43604),Me=pe(5871),Ct=pe(57809),wt=pe(5112),$e=pe(41984),Ft=pe(89070),lt=pe(43809),vt=pe(8591),Ie=pe(3113),te=pe(71418),ee=pe(24334),de={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},se=pe(99064),he=pe(88264),ve=pe(12290),Ee=pe(56102),Be=pe(74440),Le=pe(59301),ze=Object.defineProperty,je=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Nt=(Ae,Oe,xe)=>Oe in Ae?ze(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ae[Oe]=xe,ot=(Ae,Oe)=>{for(var xe in Oe||(Oe={}))dt.call(Oe,xe)&&Nt(Ae,xe,Oe[xe]);if(Ye)for(var xe of Ye(Oe))He.call(Oe,xe)&&Nt(Ae,xe,Oe[xe]);return Ae},Tt=(Ae,Oe)=>je(Ae,Xe(Oe)),xt=(Ae,Oe,xe)=>new Promise((ct,Mt)=>{var at=Bt=>{try{Lt(xe.next(Bt))}catch(ft){Mt(ft)}},qe=Bt=>{try{Lt(xe.throw(Bt))}catch(ft){Mt(ft)}},Lt=Bt=>Bt.done?ct(Bt.value):Promise.resolve(Bt.value).then(at,qe);Lt((xe=xe.apply(Ae,Oe)).next())}),Wt=({buttonProps:Ae,buttonText:Oe,form:xe,hackIdentifier:ct="",answerKey:Mt,data:at})=>{const[qe,Lt]=(0,le.useState)(!1),[Bt,ft]=(0,le.useState)(!1),[Gt,Sn]=(0,le.useState)(!1),[an,rn]=(0,le.useState)({}),[zn,kn]=(0,le.useState)(""),[mn,ei]=(0,le.useState)(""),Pi=(0,le.useRef)(ct),Hn=(0,le.useRef)(""),bn=(0,le.useRef)(!1);(0,le.useEffect)(()=>{Gt&&rr()},[Gt]),(0,le.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const wi=()=>new Date().getTime(),Zi=at==null?void 0:at.code,Hi=()=>{var di,xi;let $i=Zi?at==null?void 0:at.code:(di=xe.getFieldValue("hack_codes"))==null?void 0:di.code,Ri=Zi?at==null?void 0:at.answer_content:xe.getFieldValue(Mt),Kr=Zi?at==null?void 0:at.input:(xi=xe.getFieldValue("hack_sets"))==null?void 0:xi.input;Ri==null||Ri.forEach(Sr=>{const Ne=Sr.value||Sr.answer_text||"";$i=$i.replace(/(@▁@|@▁▁@)/,Ne)}),ei(Kr),kn($i),rn({}),Sn(!0)},rr=()=>xt(void 0,null,function*(){var di,xi,$i,Ri;const Kr=wi(),Sr=Zi?at==null?void 0:at.time_limit:(di=xe.getFieldsValue())==null?void 0:di.hack.time_limit,Ne=Zi?(xi=at==null?void 0:at.answer_content)==null?void 0:xi.length:(Ri=($i=xe.getFieldsValue())==null?void 0:$i.standard_answers)==null?void 0:Ri.length;Lt(!0),yield(0,he.bM)(Hn.current,{test_hack_code:zn,test_input:mn});function Ci(){return xt(this,null,function*(){const{status:wr,data:Pn}=yield(0,he.rX)(Hn.current,"submit"),Wi=wi()-Kr>(Sr+3)*1e3*Ne;if(bn.current){if(Wi){vt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Lt(!1);return}if(wr===0){Lt(!1),rn(Tt(ot({},Pn),{showText:!0}));return}setTimeout(Ci,1e3)}})}Ci()}),_r=()=>xt(void 0,null,function*(){var di,xi,$i,Ri,Kr,Sr,Ne;if(!at){try{yield xe.validateFields()}catch(Si){($i=(xi=(di=Si==null?void 0:Si.errorFields)==null?void 0:di[0])==null?void 0:xi.name)!=null&&$i.includes("standard_answers")?vt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):vt.ZP.error(Si.errorFields[0].errors[0]),xe.scrollToField(Si.errorFields[0].name,{behavior:"smooth",block:"center"});return}ft(!0);let wr="";const Pn=xe.getFieldsValue();Pi.current?wr=yield(0,se.ZP)(`/api/problems/${Pi.current}.json`,{method:"put",body:Tt(ot({},Pn),{hack:Tt(ot({},Pn==null?void 0:Pn.hack),{sub_discipline_id:(Ne=(Sr=Pn==null?void 0:Pn.hack)==null?void 0:Sr.sub_discipline_id)==null?void 0:Ne[1],difficult:Pn.difficulty,item_banks_group_id:Pn.item_banks_group_id}),hack_codes:Tt(ot({},Pn.hack_codes),{code:ee.Base64.encode(Pn.hack_codes.code)}),update_hack_sets:[ot({},Pn.hack_sets)],is_blank:!0})}):(wr=yield(0,se.ZP)("/api/problems.json",{method:"post",body:Tt(ot({},Pn),{hack:Tt(ot({},Pn==null?void 0:Pn.hack),{sub_discipline_id:(Kr=(Ri=Pn==null?void 0:Pn.hack)==null?void 0:Ri.sub_discipline_id)==null?void 0:Kr[1],difficult:Pn.difficulty,item_banks_group_id:Pn.item_banks_group_id}),hack_codes:Tt(ot({},Pn.hack_codes),{code:ee.Base64.encode(Pn.hack_codes.code)}),hack_sets:[ot({},Pn.hack_sets)],is_blank:!0})}),Pi.current=wr==null?void 0:wr.identifier,sessionStorage.projectFill=wr==null?void 0:wr.identifier)}const Ci=yield(0,se.ZP)(`/api/problems/${Pi.current}/start.json`,{method:"get"});if((Ci==null?void 0:Ci.status)===0){Hn.current=Ci==null?void 0:Ci.identifier,bn.current=!0,ft(!1),Hi();return}ft(!1)}),gi=di=>{const{status:xi,error_msg:$i,execute_time:Ri,output:Kr,input:Sr,expected_output:Ne}=di;let Ci=null;switch(xi){case Be.h.OK:Ci=Le.createElement(Le.Fragment,null,Le.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ri/1e3,"\u79D2"),Le.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Be.h.NOMATCH:Ci=Le.createElement(Le.Fragment,null,Le.createElement("div",null,"\u8F93\u5165\uFF1A"),Le.createElement("pre",{style:{fontFamily:"initial"}},Sr),Le.createElement("div",null,"\u8F93\u51FA\uFF1A"),Le.createElement("pre",{style:{fontFamily:"initial"}},Kr&&ee.Base64.decode(Kr)),Le.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Le.createElement("pre",{style:{fontFamily:"initial"}},Ne&&ee.Base64.decode(Ne)));break;case Be.h.EXECUTEFAILURE:Ci=Le.createElement(Le.Fragment,null,Le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Le.createElement("pre",null,Sr)),Le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Le.createElement("pre",{className:"error"},ee.Base64.decode($i)));break;case Be.h.COMPILEFAILURE:Ci=Le.createElement(Le.Fragment,null,Le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Le.createElement("pre",null,Sr)),Le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Le.createElement("pre",{className:"error"},ee.Base64.decode($i)));break;case Be.h.PODFAILURE:Ci=Le.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Be.h.TIMEOUT:Ci=Le.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Le.createElement(Le.Fragment,null," ",Ci," ")};return Le.createElement("div",null,Le.createElement(Ie.ZP,Tt(ot({loading:Bt},Ae),{onClick:_r}),Oe),Le.createElement(ut.default,{open:Gt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:qe,cancelButtonProps:{style:{display:"none"}},onOk:()=>rr(),onCancel:()=>{bn.current=!1,Sn(!1)}},Le.createElement("div",{className:de.result},Le.createElement("div",{className:de.left},Le.createElement("div",{className:"mb20"},Le.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!at&&Le.createElement(Ee.CopyToClipboard,{text:zn,onCopy:()=>vt.ZP.success("\u590D\u5236\u6210\u529F")},Le.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Le.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Le.createElement(ve.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:zn,onChange:di=>kn(di)})),Le.createElement("div",{className:de.right},Le.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Le.createElement("div",{className:de.box},Le.createElement("div",{className:de.li},Le.createElement(ke.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:mn,onChange:di=>ei(di.target.value),bordered:!1,style:{height:180}}))),Le.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Le.createElement("div",{className:de.box},Le.createElement(te.Z,{spinning:qe,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Le.createElement("div",{className:de.li,style:{height:196,overflow:"auto",padding:10}},gi(an))))))))},Dt=pe(87169),tt=pe(59301),Ve=Object.defineProperty,_t=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,ln=(Ae,Oe,xe)=>Oe in Ae?Ve(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ae[Oe]=xe,Gn=(Ae,Oe)=>{for(var xe in Oe||(Oe={}))zt.call(Oe,xe)&&ln(Ae,xe,Oe[xe]);if(yn)for(var xe of yn(Oe))qt.call(Oe,xe)&&ln(Ae,xe,Oe[xe]);return Ae},un=(Ae,Oe)=>_t(Ae,vn(Oe)),_n=(Ae,Oe)=>{var xe={};for(var ct in Ae)zt.call(Ae,ct)&&Oe.indexOf(ct)<0&&(xe[ct]=Ae[ct]);if(Ae!=null&&yn)for(var ct of yn(Ae))Oe.indexOf(ct)<0&&qt.call(Ae,ct)&&(xe[ct]=Ae[ct]);return xe};const{TextArea:St}=ke.default,Zn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ci=({value:Ae,onChange:Oe})=>tt.createElement(Switch,{checked:Ae,onChange:xe=>{Oe(xe)}}),Ze="@\u2581@",be="@\u2581\u2581@",Pe=({questionTitlePlaceholder:Ae,form:Oe,scoreByBlank:xe=!1,hackidentifier:ct,answerKey:Mt})=>{const[at,qe]=(0,le.useState)(!1),[Lt,Bt]=(0,le.useState)(!1),Gt=(0,Ft.useParams)().type==="edit",Sn=(Hn,bn)=>{const wi=bn.line;let Zi=0;for(let rr=0;rr{const Hi=Hn.getRange(bn.from,bn.to);let rr=0;if(bn.text.forEach(_r=>{rr+=_r.split(Ze).length-1}),bn.text.forEach(_r=>{rr+=_r.split(be).length-1}),bn.origin!=="setValue"){if(Hi&&(Hi.indexOf(Ze)!==-1||Hi.indexOf(be)!==-1)){const _r=Hi.split(Ze).length-1+Hi.split(be).length-1,gi=Sn(Hn,bn.from);if(console.log(`\u5220\u9664${_r}\u4E2A\uFF0C \u524D\u9762\u6709${gi}\u4E2A\uFF0C\u65B0\u589E${rr}\u4E2A`),_r>1){const di=Array.from({length:_r},(xi,$i)=>gi+$i);Zi(di)}else Zi(gi)}else if(rr>0){const _r=Sn(Hn,bn.from);console.log(`\u65B0\u589E${rr}\u4E2A\uFF0C\u4E4B\u524D\u6709${_r}\u4E2A`),wi(rr,_r)}}},rn=()=>{const Hn=Oe.getFieldValue(Mt);Oe.setFieldsValue({[Mt]:Hn==null?void 0:Hn.map((bn,wi)=>un(Gn({},bn),{position:wi+1}))})},zn=(0,le.useRef)(),kn=(Hn,bn)=>{for(let wi=0;wi{mn.current(Hn),rn()},Pi=We.default.useWatch(Mt,Oe);return tt.createElement("div",{className:lt.Z.wrap},tt.createElement(We.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},tt.createElement($e.h,{scrollId:"name",watch:!0,height:140})),tt.createElement("div",{className:lt.Z.questionTitleEditorWrap},tt.createElement(We.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},tt.createElement($e.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Hn,bn)=>{const wi=Oe.getFieldValue(Mt);console.log("--preAnswerData",wi,bn),Oe.setFieldsValue({[Mt]:wi==null?void 0:wi.map((Zi,Hi)=>{var rr;return un(Gn({},Zi),{position:Hi+1,multi_line:(rr=bn==null?void 0:bn[Hi])==null?void 0:rr.multiLine})})})},placeholder:Ae,onCMBeforeChange:(Hn,bn)=>{an(Hn,bn,kn,ei)}}))),tt.createElement(We.default.List,{name:Mt,rules:[{validator(Hn,bn){if(!(bn!=null&&bn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const wi of bn){const{answer_text:Zi}=wi||{};if((Zi==null?void 0:Zi.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Hn,{add:bn,remove:wi},{errors:Zi})=>(zn.current=bn,mn.current=wi,tt.createElement(tt.Fragment,null,tt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},tt.createElement(We.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),tt.createElement("div",{onClick:()=>{ut.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:tt.createElement("div",null,tt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",tt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),tt.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},tt.createElement(Dt.Z,{style:{marginRight:3,color:"#3061D0"}}),tt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Hn.map((Hi,rr)=>{var _r=Hi,{key:gi,name:di}=_r,xi=_n(_r,["key","name"]),$i,Ri;return tt.createElement(Ge.Z,{className:"mb20",key:gi,align:"middle",wrap:!1},tt.createElement(Ue.Z,{flex:"0 0 auto",className:`${lt.Z.blankIndex}`},"\u586B\u7A7A\u9879",rr+1),tt.createElement(Ue.Z,{flex:1},tt.createElement(Ge.Z,{align:"top",justify:"space-between",wrap:!1},tt.createElement(Ue.Z,null,tt.createElement(We.default.Item,un(Gn({},xi),{name:[di,"answer_text"],noStyle:!0}),($i=Pi==null?void 0:Pi[di])!=null&&$i.multi_line||(Ri=Pi==null?void 0:Pi[di])!=null&&Ri.multiLine?tt.createElement(St,{spellCheck:!1,style:{marginLeft:10,width:550}}):tt.createElement(ke.default,{style:{marginLeft:10,width:550},className:lt.Z.blankInput,size:"large",maxLength:1e3,onBlur:Kr=>{}}))),xe&&tt.createElement(Ue.Z,{flex:"224px"},tt.createElement(We.default.Item,un(Gn({},xi),{name:[di,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),tt.createElement(Me.Z,{size:"large",className:lt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),tt.createElement("div",{onClick:()=>qe(!0)},tt.createElement(We.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},tt.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:at}))),tt.createElement(We.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},tt.createElement(Ct.default,{size:"large"},Zn.map(Hn=>tt.createElement(Ct.default.Option,{key:Hn.title,value:Hn.key}," ",Hn.title)))),tt.createElement(We.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},tt.createElement(We.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},tt.createElement(Me.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),tt.createElement("span",{className:"ml10 font14"},"\u79D2")),tt.createElement(We.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},tt.createElement(wt.ZP.Group,{style:{marginTop:-10}},tt.createElement(wt.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),tt.createElement(wt.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),tt.createElement(wt.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),tt.createElement(We.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),tt.createElement("div",{style:{background:"#F6F7F9",padding:15}},tt.createElement(We.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},tt.createElement(St,{rows:4})),tt.createElement(We.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},tt.createElement(St,{rows:4}))),tt.createElement(Wt,{form:Oe,answerKey:Mt,hackIdentifier:ct,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:tt.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},65357:function(On,pn,pe){"use strict";pe.d(pn,{u:function(){return Le}});var le=pe(59301),ke=pe(95237),We=pe(43604),ut=pe(6848),Ge=pe(78241),Ue=pe(43809),Me=pe(32134),Ct=pe(12893),wt=pe(41984),$e=pe(59301),Ft=Object.defineProperty,lt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(ze,je,Xe)=>je in ze?Ft(ze,je,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):ze[je]=Xe,se=(ze,je)=>{for(var Xe in je||(je={}))te.call(je,Xe)&&de(ze,Xe,je[Xe]);if(Ie)for(var Xe of Ie(je))ee.call(je,Xe)&&de(ze,Xe,je[Xe]);return ze},he=(ze,je)=>lt(ze,vt(je)),ve=(ze,je)=>{var Xe={};for(var Ye in ze)te.call(ze,Ye)&&je.indexOf(Ye)<0&&(Xe[Ye]=ze[Ye]);if(ze!=null&&Ie)for(var Ye of Ie(ze))je.indexOf(Ye)<0&&ee.call(ze,Ye)&&(Xe[Ye]=ze[Ye]);return Xe};const Ee=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Be=({value:ze,onChange:je,choiceTextKey:Xe,answerKey:Ye,index:dt,isEdit:He,setInputActive:Nt,form:ot,choiceOptionsPath:Tt,allowChangeMode:xt,showAddIcon:Ot,addItem:Wt,deleteItem:Dt})=>{console.log(ze,"value");const tt=(ze==null?void 0:ze[Ye])===1,Ve=()=>{const vn=ot.getFieldValue(Tt);ot.setFieldValue(Tt,vn.map(yn=>he(se({},yn),{[Ye]:0})))},_t=()=>{tt?je(he(se({},ze),{[Ye]:0})):(xt||Ve(),je(he(se({},ze),{[Ye]:1})))};return $e.createElement(ke.Z,{className:Ue.Z.choiceWrap,align:"middle",wrap:!1},$e.createElement(We.Z,{onClick:_t,className:`${Ue.Z.choiceIndex} ${tt?Ue.Z.activeAnswer:""}`},Ee[dt]),$e.createElement(We.Z,{flex:1,className:`${Ue.Z.editorWrap} ml15`,onClick:Nt},$e.createElement(wt.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:He,value:ze==null?void 0:ze[Xe],onChange:vn=>{je(he(se({},ze),{[Xe]:vn}))}})),$e.createElement(We.Z,{flex:"0 0 auto",className:"ml15"},$e.createElement("div",{onClick:_t,className:`${Ue.Z.setAnswerBtn} ${tt?Ue.Z.activeAnswer:""}`},tt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),$e.createElement(We.Z,{className:Ue.Z.actionWrapper},$e.createElement(ut.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},$e.createElement(Me.Z,{className:Ue.Z.addIcon,onClick:Wt,style:{visibility:Ot?"visible":"hidden"}})),$e.createElement(ut.Z,{title:"\u5220\u9664"},$e.createElement(Ct.Z,{className:Ue.Z.deleteIcon,onClick:Dt,style:{visibility:dt>1?"visible":"hidden"}}))))},Le=({questionTitlePlaceholder:ze,titleKey:je,choiceKey:Xe,analysisKey:Ye,choiceTextKey:dt,answerKey:He,choiceOptionsPath:Nt,allowChangeMode:ot=!0,form:Tt,showAnalysis:xt=!0})=>{const[Ot,Wt]=(0,le.useState)(),[Dt,tt]=(0,le.useState)(!1);return $e.createElement("div",{className:Ue.Z.wrap},$e.createElement("div",{className:Ue.Z.questionTitleEditorWrap},$e.createElement(Ge.default.Item,{label:"\u9898\u5E72",name:je,labelCol:{span:24},rules:[{required:!0}]},$e.createElement(wt.h,{scrollId:Array.isArray(je)?je.join("_"):`${je}`,watch:!0,height:140,placeholder:ze}))),$e.createElement(Ge.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),$e.createElement(Ge.default.List,{name:Xe,rules:[{validator(Ve,_t){const vn=_t.some(zt=>zt[He]===1),yn=_t.findIndex(zt=>{var qt;return((qt=zt[dt])==null?void 0:qt.length)<=0});return yn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ee[yn]}\u9009\u9879\u7684\u5185\u5BB9`)):vn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Ve,{add:_t,remove:vn})=>$e.createElement("div",{id:Array.isArray(Nt)?Nt.join("_"):`${Nt}`},Ve.map((yn,zt)=>{var qt=yn,{key:ln,name:Gn}=qt,un=ve(qt,["key","name"]);const _n=Ot===ln,St=()=>{Wt(ln)},Zn=zt<7&&zt===Ve.length-1,ci=()=>_t({[dt]:"",[He]:0}),Ze=()=>vn(Gn);return $e.createElement(Ge.default.Item,he(se({},un),{key:ln,name:Gn,className:Ue.Z.choiceListWrap,rules:[{validator(be,Pe){return Pe!=null&&Pe.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ee[zt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),$e.createElement(Be,{choiceTextKey:dt,answerKey:He,index:zt,isEdit:_n,setInputActive:St,form:Tt,choiceOptionsPath:Nt,allowChangeMode:ot,showAddIcon:Zn,addItem:ci,deleteItem:Ze}))}),Ve.length<8&&$e.createElement("div",{className:`${Ue.Z.addBtn} mb30`,onClick:()=>_t({[dt]:"",[He]:0})},"\u6DFB\u52A0\u9009\u9879"))),xt&&$e.createElement("div",{onClick:()=>tt(!0)},$e.createElement(Ge.default.Item,{name:Ye,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},$e.createElement(wt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dt}))))}},70472:function(On,pn,pe){"use strict";pe.d(pn,{u:function(){return ot}});var le=pe(59301),ke=pe(43418),We=pe(95237),ut=pe(43604),Ge=pe(92832),Ue=pe(6848),Me=pe(78673),Ct=pe(78241),wt=pe(5112),$e=pe(5871),Ft=pe(41984),lt=pe(12893),vt=pe(61485),Ie=pe(43809),te=pe(59879),ee=pe(59301),de=Object.defineProperty,se=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Le=(Tt,xt,Ot)=>xt in Tt?de(Tt,xt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Tt[xt]=Ot,ze=(Tt,xt)=>{for(var Ot in xt||(xt={}))Ee.call(xt,Ot)&&Le(Tt,Ot,xt[Ot]);if(ve)for(var Ot of ve(xt))Be.call(xt,Ot)&&Le(Tt,Ot,xt[Ot]);return Tt},je=(Tt,xt)=>se(Tt,he(xt)),Xe=(Tt,xt)=>{var Ot={};for(var Wt in Tt)Ee.call(Tt,Wt)&&xt.indexOf(Wt)<0&&(Ot[Wt]=Tt[Wt]);if(Tt!=null&&ve)for(var Wt of ve(Tt))xt.indexOf(Wt)<0&&Be.call(Tt,Wt)&&(Ot[Wt]=Tt[Wt]);return Ot};const Ye=({value:Tt,onChange:xt})=>{const Ot=Dt=>{ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const tt=[...Tt];tt.splice(Dt,1),xt(tt)}})},Wt=()=>{const Dt=[...Tt];Dt.push(""),xt(Dt)};return ee.createElement(We.Z,{className:"ml20"},ee.createElement(ut.Z,{flex:1},Tt==null?void 0:Tt.map((Dt,tt)=>ee.createElement(We.Z,{key:`${Dt}_${tt}`,className:"mb20"},ee.createElement(Ge.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Dt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Ve=>{const _t=[...Tt],vn=Ve.target.value.trim();_t[tt]=vn,xt(_t)}}),ee.createElement(Ue.Z,{title:"\u5220\u9664"},ee.createElement(lt.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:tt>0?"visible":"hidden"},onClick:()=>Ot(tt)}))))),ee.createElement(ut.Z,null,ee.createElement("div",{className:`${Ie.Z.addBtn}`,onClick:()=>{Wt()}},"\u65B0\u589E\u7B54\u6848")))},dt=({value:Tt,onChange:xt})=>{const Ot=Dt=>{ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const tt=[...Tt];tt.splice(Dt,1),xt(tt)}})},Wt=()=>{const Dt=[...Tt];Dt.push(""),xt(Dt)};return ee.createElement(We.Z,{className:"ml20"},ee.createElement(ut.Z,{flex:1},Tt==null?void 0:Tt.map((Dt,tt)=>ee.createElement(We.Z,{key:`${Dt}_${tt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:Dt,style:{flex:1},onChange:Ve=>{const _t=[...Tt];_t[tt]=Ve,xt(_t)}}),ee.createElement(Ue.Z,{title:"\u5220\u9664"},ee.createElement(lt.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:tt>0?"visible":"hidden"},onClick:()=>Ot(tt)}))))),ee.createElement(ut.Z,null,ee.createElement("div",{className:`${Ie.Z.addBtn}`,onClick:()=>{Wt()}},"\u65B0\u589E\u7B54\u6848")))},He=({value:Tt=!0,onChange:xt})=>ee.createElement(Me.Z,{checked:!Tt,onChange:Ot=>{xt(!Ot)}}),Nt="\u2581",ot=({questionTitlePlaceholder:Tt,form:xt,scoreByBlank:Ot=!1,answerKey:Wt})=>{const[Dt,tt]=(0,le.useState)(!1),Ve=(un,_n)=>{const St=_n.line;let Zn=0;for(let Ze=0;Ze{const ci=un.getRange(_n.from,_n.to);let Ze=0;if(_n.text.forEach(be=>{Ze+=be.split(Nt).length-1}),_n.origin!=="setValue"){if(ci&&ci.indexOf(Nt)!==-1){const be=ci.split(Nt).length-1,Pe=Ve(un,_n.from);if(console.log(`\u5220\u9664${be}\u4E2A\uFF0C \u524D\u9762\u6709${Pe}\u4E2A\uFF0C\u65B0\u589E${Ze}\u4E2A`),be>1){const Ae=Array.from({length:be},(Oe,xe)=>Pe+xe);Zn(Ae)}else Zn(Pe)}else if(Ze>0){const be=Ve(un,_n.from);console.log(`\u65B0\u589E${Ze}\u4E2A\uFF0C\u4E4B\u524D\u6709${be}\u4E2A`),St(Ze,be)}}},vn=()=>{const un=xt.getFieldValue(Wt);xt.setFieldsValue({[Wt]:un.map((_n,St)=>je(ze({},_n),{position:St+1}))})},yn=(0,le.useRef)(),zt=(un,_n)=>{for(let St=0;St{qt.current(un),vn()},Gn=Ct.default.useWatch(Wt,xt);return ee.createElement("div",{className:Ie.Z.wrap},ee.createElement("div",{className:Ie.Z.questionTitleEditorWrap},ee.createElement(Ct.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(Ft.h,{scrollId:"name",watch:!0,height:140,placeholder:Tt,showNullButton:!0,onCMBeforeChange:(un,_n)=>{_t(un,_n,zt,ln)}}))),ee.createElement(Ct.default.List,{name:Wt,rules:[{validator(un,_n){if(!(_n!=null&&_n.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const St of _n){const{answer_text:Zn}=St||{};if(Zn!=null&&Zn.some(ci=>(ci==null?void 0:ci.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:_n,remove:St},{errors:Zn})=>(yn.current=_n,qt.current=St,ee.createElement(ee.Fragment,null,ee.createElement(Ct.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(un!=null&&un.length)&&ee.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),un.map((ci,Ze)=>{var be=ci,{key:Pe,name:Ae}=be,Oe=Xe(be,["key","name"]),xe,ct;return ee.createElement("div",{style:{marginBottom:10},key:Pe},ee.createElement(We.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(ut.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ie.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ze+1),ee.createElement(Ct.default.Item,je(ze({},Oe),{name:[Ae,"model"],noStyle:!0}),ee.createElement(wt.ZP.Group,{onChange:()=>{const Mt=xt.getFieldValue(Wt);xt.setFieldsValue({[Wt]:Mt.map((at,qe)=>je(ze({},at),{answer_text:Ae===qe?[""]:at.answer_text}))})}},ee.createElement(wt.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",ee.createElement(Ue.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},ee.createElement(vt.Z,null))),ee.createElement(wt.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",ee.createElement(Ue.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},ee.createElement(vt.Z,null)))))),ee.createElement(We.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(ut.Z,{flex:1},ee.createElement(We.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(ut.Z,{flex:1},ee.createElement(Ct.default.Item,je(ze({},Oe),{name:[Ae,"answer_text"],noStyle:!0}),((ct=(xe=xt.getFieldValue(Wt))==null?void 0:xe[Ae])==null?void 0:ct.model)===1?ee.createElement(Ye,null):ee.createElement(dt,null))),Ot&&ee.createElement(ut.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(Ct.default.Item,je(ze({},Oe),{name:[Ae,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),ee.createElement($e.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(Ct.default.Item,je(ze({},Oe),{name:[Ae,"position"],noStyle:!0}),ee.createElement(Ge.default,{type:"hidden"})))))})))),ee.createElement(We.Z,{align:"middle"},ee.createElement(Ct.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(Me.Z,null)),ee.createElement(ut.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(We.Z,{align:"middle"},ee.createElement(Ct.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(Me.Z,null)),ee.createElement(ut.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Gn==null?void 0:Gn.length)>1&&ee.createElement(We.Z,{align:"middle",className:(Gn==null?void 0:Gn.length)>1?"mb30":`${Ie.Z.hide}`},ee.createElement(Ct.default.Item,{name:"is_ordered"},ee.createElement(He,null)),ee.createElement(ut.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ee.createElement("div",{onClick:()=>tt(!0)},ee.createElement(Ct.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(Ft.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dt}))))}},11832:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ve}});var le=pe(59301),ke=pe(95237),We=pe(43604),ut=pe(78241),Ge=pe(43809),Ue=pe(41984),Me=pe(59301),Ct=Object.defineProperty,wt=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ie=(Ee,Be,Le)=>Be in Ee?Ct(Ee,Be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ee[Be]=Le,te=(Ee,Be)=>{for(var Le in Be||(Be={}))lt.call(Be,Le)&&Ie(Ee,Le,Be[Le]);if(Ft)for(var Le of Ft(Be))vt.call(Be,Le)&&Ie(Ee,Le,Be[Le]);return Ee},ee=(Ee,Be)=>wt(Ee,$e(Be)),de=(Ee,Be)=>{var Le={};for(var ze in Ee)lt.call(Ee,ze)&&Be.indexOf(ze)<0&&(Le[ze]=Ee[ze]);if(Ee!=null&&Ft)for(var ze of Ft(Ee))Be.indexOf(ze)<0&&vt.call(Ee,ze)&&(Le[ze]=Ee[ze]);return Le};const se={\u6B63\u786E:"T",\u9519\u8BEF:"F"},he=({value:Ee,onChange:Be,form:Le})=>{const ze=(Ee==null?void 0:Ee.is_answer)===1,je=Ee==null?void 0:Ee.choice_text,Xe=()=>{const Ye=Le.getFieldsValue().choices.map(dt=>({choice_text:dt.choice_text,is_answer:0}));Le.setFieldsValue({choices:Ye}),Be(ee(te({},Ee),{is_answer:1}))};return Me.createElement(ke.Z,{className:Ge.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Me.createElement(We.Z,{onClick:Xe,className:`${Ge.Z.choiceIndex} ${Ge.Z.judgementIndex} ${ze?Ge.Z.activeAnswer:""}`},se[je]),Me.createElement(We.Z,{flex:1,className:`${Ge.Z.editorWrap} ml15`},Me.createElement("div",{className:`${Ge.Z.inputBorder} ${Ge.Z.placeholder} ${ze?Ge.Z.activeJudgementAnswer:""}`},je)),Me.createElement(We.Z,{flex:"0 0 auto",className:"ml15"},Me.createElement("div",{onClick:Xe,className:`${Ge.Z.setAnswerBtn} ${ze?Ge.Z.activeAnswer:""}`},ze?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ve=({questionTitlePlaceholder:Ee,choiceKey:Be,form:Le})=>{const[ze,je]=(0,le.useState)(!1);return Me.createElement("div",{className:Ge.Z.wrap},Me.createElement("div",{className:Ge.Z.questionTitleEditorWrap},Me.createElement(ut.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Me.createElement(Ue.h,{scrollId:"name",watch:!0,height:140,placeholder:Ee}))),Me.createElement(ut.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Me.createElement(ut.default.List,{name:"choices",rules:[{validator(Xe,Ye){return Ye.some(He=>(He==null?void 0:He.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Xe=>Me.createElement("div",{id:"choices"},Xe.map(Ye=>{var dt=Ye,{key:He,name:Nt}=dt,ot=de(dt,["key","name"]);return Me.createElement(ut.default.Item,ee(te({},ot),{key:He,name:Nt,noStyle:!0}),Me.createElement(he,{form:Le}))})))),Me.createElement("div",{onClick:()=>je(!0)},Me.createElement(ut.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Me.createElement(Ue.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ze}))))}},41984:function(On,pn,pe){"use strict";pe.d(pn,{h:function(){return te},x:function(){return ee}});var le=pe(12290),ke=pe(43809),We=pe(85149),ut=pe(59301),Ge=Object.defineProperty,Ue=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ft=(de,se,he)=>se in de?Ge(de,se,{enumerable:!0,configurable:!0,writable:!0,value:he}):de[se]=he,lt=(de,se)=>{for(var he in se||(se={}))wt.call(se,he)&&Ft(de,he,se[he]);if(Ct)for(var he of Ct(se))$e.call(se,he)&&Ft(de,he,se[he]);return de},vt=(de,se)=>Ue(de,Me(se)),Ie=(de,se)=>{var he={};for(var ve in de)wt.call(de,ve)&&se.indexOf(ve)<0&&(he[ve]=de[ve]);if(de!=null&&Ct)for(var ve of Ct(de))se.indexOf(ve)<0&&$e.call(de,ve)&&(he[ve]=de[ve]);return he};const te=de=>{var se=de,{value:he,onChange:ve,scrollId:Ee}=se,Be=Ie(se,["value","onChange","scrollId"]);return ut.createElement("div",{id:Ee||""},ut.createElement(le.Z,vt(lt({},Be),{defaultValue:he,onChange:(Le,ze)=>{ze!=null&&ze.length?ve(Le,ze):ve(Le)}})))},ee=({value:de,onChange:se,placeholder:he,height:ve=140,isEdit:Ee,miniToolbar:Be,watch:Le=!0})=>Ee?ut.createElement(le.Z,{watch:Le,isFocus:!0,height:ve||void 0,placeholder:he,defaultValue:de,onChange:se,miniToolbar:Be}):ut.createElement("div",{style:{cursor:"pointer"}},de?ut.createElement(We.Z,{className:ke.Z.inputBorder,value:de}):ut.createElement("div",{className:`${ke.Z.inputBorder} ${ke.Z.placeholder} inputBorderError`},he))},35173:function(On,pn,pe){"use strict";pe.d(pn,{W:function(){return dt}});var le=pe(59301),ke=pe(8591),We=pe(12563),ut=pe(78241),Ge=pe(78673),Ue=pe(95237),Me=pe(43604),Ct=pe(6848),wt=pe(92832),$e=pe(5871),Ft=pe(43809),lt=pe(41984),vt=pe(12290),Ie=pe(61485),te=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ee=(He,Nt,ot)=>Nt in He?te(He,Nt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):He[Nt]=ot,Be=(He,Nt)=>{for(var ot in Nt||(Nt={}))he.call(Nt,ot)&&Ee(He,ot,Nt[ot]);if(se)for(var ot of se(Nt))ve.call(Nt,ot)&&Ee(He,ot,Nt[ot]);return He},Le=(He,Nt)=>ee(He,de(Nt)),ze=(He,Nt)=>{var ot={};for(var Tt in He)he.call(He,Tt)&&Nt.indexOf(Tt)<0&&(ot[Tt]=He[Tt]);if(He!=null&&se)for(var Tt of se(He))Nt.indexOf(Tt)<0&&ve.call(He,Tt)&&(ot[Tt]=He[Tt]);return ot};const je=He=>{var Nt=He,{value:ot,onChange:Tt}=Nt,xt=ze(Nt,["value","onChange"]);const Ot=Wt=>{Tt([Wt])};return le.createElement(vt.Z,Le(Be({},xt),{defaultValue:ot==null?void 0:ot[0],onChange:Ot}))},Xe=He=>{if(!He)return!1;if(/^s*$/.test(He)||He.trim()===""){ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Nt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return He==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Ye=({value:He=[],onClose:Nt})=>le.createElement(We.default,{closable:!0,onClose:Nt,className:Ft.Z.keywordTag},le.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},He.join(" \u6216 "))),dt=({questionTitlePlaceholder:He,form:Nt,showKeywords:ot,isMustKeyWords:Tt=ot})=>{const[xt,Ot]=(0,le.useState)(!1),[Wt,Dt]=(0,le.useState)(""),tt=ut.default.useWatch("use_keywords",Nt),Ve=ut.default.useWatch("question_score",Nt);return le.createElement("div",{className:Ft.Z.wrap},le.createElement("div",{className:Ft.Z.questionTitleEditorWrap},le.createElement(ut.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},le.createElement(lt.h,{scrollId:"name",watch:!0,height:140,placeholder:He}))),le.createElement(ut.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},le.createElement(je,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),ot&&!Tt&&le.createElement(ut.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},le.createElement(Ge.Z,{defaultChecked:!0})),ot&&Tt&&le.createElement(Ue.Z,{align:"middle",className:"mb30"},le.createElement(ut.default.Item,{name:"use_keywords",valuePropName:"checked"},le.createElement(Ge.Z,null)),le.createElement(Me.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),le.createElement(Me.Z,null,le.createElement(Ct.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},le.createElement(Ie.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(tt||!Tt)&&le.createElement(ut.default.List,{name:"keywords",rules:[{validator(_t,vn){return Tt?vn!=null&&vn.length?(vn==null?void 0:vn.reduce((zt,qt)=>zt+qt.score,0))>parseFloat(Ve)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(_t,{add:vn,remove:yn})=>le.createElement(le.Fragment,null,le.createElement("div",{className:`${Ft.Z.title} mb10`},Tt?"\u5173\u952E\u8BCD":le.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),le.createElement(Ue.Z,{align:"middle",className:"font14 mb30"},le.createElement(Me.Z,{flex:1},le.createElement(wt.default,{value:Wt,onChange:zt=>{Dt(zt.target.value)},maxLength:50,allowClear:!0,onPressEnter:zt=>{var qt,ln,Gn,un;const _n=`${(qt=zt.target)==null?void 0:qt.value}`,St=(Gn=(ln=_n==null?void 0:_n.split("|"))==null?void 0:ln.filter(Ze=>!!Ze))==null?void 0:Gn.map(Ze=>Ze==null?void 0:Ze.trim()),Zn=Nt.getFieldValue("keywords"),ci=((un=Zn==null?void 0:Zn.map(Ze=>Ze==null?void 0:Ze.keyword))==null?void 0:un.flat())||[];for(const Ze of St)if(ci.includes(Ze)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Xe(_n)&&(vn({keyword:St,score:1}),Dt(""))},className:Ft.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),le.createElement(Me.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),_t.map(zt=>{var qt=zt,{key:ln,name:Gn}=qt,un=ze(qt,["key","name"]);return le.createElement(Ue.Z,{key:ln,className:"mb20",style:{marginRight:148}},le.createElement(Me.Z,{flex:1},le.createElement(Ue.Z,{align:"middle",justify:"space-between"},le.createElement(ut.default.Item,Le(Be({},un),{name:[Gn,"keyword"]}),le.createElement(Ye,{onClose:()=>yn(Gn)})),Tt&&le.createElement(ut.default.Item,Le(Be({},un),{name:[Gn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ft.Z.blankInputNumberWrapper}),le.createElement($e.Z,{className:Ft.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),le.createElement("div",{onClick:()=>Ot(!0)},le.createElement(ut.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(lt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},94734:function(On,pn,pe){"use strict";pe.d(pn,{tc:function(){return _r.t},uh:function(){return le.u},rL:function(){return rr},u8:function(){return We.u},ZZ:function(){return ke.Z},Wk:function(){return ut.W}});var le=pe(65357),ke=pe(11832),We=pe(70472),ut=pe(35173),Ge=pe(59301),Ue=pe(36381),Me=pe(78241),Ct=pe(95237),wt=pe(43604),$e=pe(5871),Ft=pe(6848),lt=pe(38854),vt=pe(43809),Ie=pe(12893),te=pe(41984),ee=pe(43418),de=pe(92832),se=pe(78673),he=pe(59301),ve=Object.defineProperty,Ee=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Xe=(gi,di,xi)=>di in gi?ve(gi,di,{enumerable:!0,configurable:!0,writable:!0,value:xi}):gi[di]=xi,Ye=(gi,di)=>{for(var xi in di||(di={}))ze.call(di,xi)&&Xe(gi,xi,di[xi]);if(Le)for(var xi of Le(di))je.call(di,xi)&&Xe(gi,xi,di[xi]);return gi},dt=(gi,di)=>Ee(gi,Be(di)),He=(gi,di)=>{var xi={};for(var $i in gi)ze.call(gi,$i)&&di.indexOf($i)<0&&(xi[$i]=gi[$i]);if(gi!=null&&Le)for(var $i of Le(gi))di.indexOf($i)<0&&je.call(gi,$i)&&(xi[$i]=gi[$i]);return xi};const Nt=({value:gi,onChange:di})=>{const xi=Ri=>{ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:vt.Z.modal,onOk:()=>{const Kr=[...gi];Kr.splice(Ri,1),di(Kr)}})},$i=()=>{const Ri=[...gi];Ri.push(""),di(Ri)};return he.createElement(Ct.Z,{className:"ml20"},he.createElement(wt.Z,{flex:1},gi==null?void 0:gi.map((Ri,Kr)=>he.createElement(Ct.Z,{key:`${Ri}_${Kr}`,align:"middle",className:"mb20"},he.createElement(de.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ri,autoSize:{maxRows:3},maxLength:1e3,onBlur:Sr=>{const Ne=[...gi],Ci=Sr.target.value.trim();Ne[Kr]=Ci,di(Ne)}}),he.createElement(Ft.Z,{title:"\u5220\u9664"},he.createElement(Ie.Z,{className:vt.Z.deleteIcon,style:{marginLeft:15,visibility:Kr>0?"visible":"hidden"},onClick:()=>xi(Kr)}))))),he.createElement(wt.Z,null,he.createElement("div",{className:`${vt.Z.addBtn}`,onClick:()=>{$i()}},"\u65B0\u589E\u7B54\u6848")))},ot=({value:gi=!0,onChange:di})=>he.createElement(se.Z,{checked:!gi,onChange:xi=>{di(!xi)}}),Tt="\u2581",xt=({questionTitlePlaceholder:gi,form:di,name:xi,scoreByBlank:$i=!1,answerKey:Ri,titleKey:Kr="name",analysisKey:Sr="analysis",isOrdered:Ne="is_ordered"})=>{var Ci,wr;const[Pn,Si]=(0,Ge.useState)(!1),Wi=(cn,At)=>{const ht=At.line;let en=0;for(let Rn=0;Rn{const fn=cn.getRange(At.from,At.to);let Rn=0;if(At.text.forEach(Qn=>{Rn+=Qn.split(Tt).length-1}),At.origin!=="setValue"){if(fn&&fn.indexOf(Tt)!==-1){const Qn=fn.split(Tt).length-1,Et=Wi(cn,At.from);if(console.log(`\u5220\u9664${Qn}\u4E2A\uFF0C \u524D\u9762\u6709${Et}\u4E2A\uFF0C\u65B0\u589E${Rn}\u4E2A`),Qn>1){const wn=Array.from({length:Qn},(Kn,Ei)=>Et+Ei);en(wn)}else en(Et)}else if(Rn>0){const Qn=Wi(cn,At.from);console.log(`\u65B0\u589E${Rn}\u4E2A\uFF0C\u4E4B\u524D\u6709${Qn}\u4E2A`),ht(Rn,Qn)}}},$n=()=>{const cn=di.getFieldValue(["sub_item_banks",...Ri]);di.setFieldValue(["sub_item_banks",...Ri],cn==null?void 0:cn.map((At,ht)=>dt(Ye({},At),{position:ht+1})))},qn=(0,Ge.useRef)(),Zt=(cn,At)=>{for(let ht=0;ht{$t.current(cn),$n()},on=(wr=(Ci=di.getFieldValue("sub_item_banks"))==null?void 0:Ci[Ri==null?void 0:Ri[0]])==null?void 0:wr[Ri==null?void 0:Ri[1]];return(0,Ge.useEffect)(()=>{console.log("========",di.getFieldsValue())},[di]),he.createElement("div",{className:vt.Z.wrap},he.createElement("div",{className:vt.Z.questionTitleEditorWrap},he.createElement(Me.default.Item,{label:"\u9898\u5E72",name:Kr,labelCol:{span:24},rules:[{required:!0}]},he.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:gi,showNullButton:!0,onCMBeforeChange:(cn,At)=>{qi(cn,At,Zt,Qe)}}))),he.createElement(Me.default.List,{name:Ri,rules:[{validator(cn,At){if((At==null?void 0:At.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ht of At){const{answer_text:en}=ht||{};if(en!=null&&en.some(fn=>(fn==null?void 0:fn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(cn,{add:At,remove:ht},{errors:en})=>(qn.current=At,$t.current=ht,he.createElement(he.Fragment,null,he.createElement(Me.default.Item,{label:he.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(cn!=null&&cn.length)&&he.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),cn.map((fn,Rn)=>{var Qn=fn,{key:Et,name:wn}=Qn,Kn=He(Qn,["key","name"]);return he.createElement(Ct.Z,{align:"top",key:Et},he.createElement(wt.Z,{className:`${vt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Rn+1),he.createElement(wt.Z,{flex:1},he.createElement(Ct.Z,{align:"top",justify:"space-between"},he.createElement(wt.Z,{flex:1},he.createElement(Me.default.Item,dt(Ye({},Kn),{name:[wn,"answer_text"],noStyle:!0}),he.createElement(Nt,null))),$i&&he.createElement(wt.Z,{flex:"224px"},he.createElement(Me.default.Item,dt(Ye({},Kn),{name:[wn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:vt.Z.blankInputNumberWrapper}),he.createElement($e.Z,{className:vt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),he.createElement(Me.default.Item,dt(Ye({},Kn),{name:[wn,"position"],noStyle:!0}),he.createElement(de.default,{type:"hidden"}))))})))),he.createElement(Ct.Z,{align:"middle"},he.createElement(Me.default.Item,{name:[xi,"downcase"],valuePropName:"checked"},he.createElement(se.Z,null)),he.createElement(wt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),he.createElement(Ct.Z,{align:"middle"},he.createElement(Me.default.Item,{name:[xi,"no_space"],valuePropName:"checked"},he.createElement(se.Z,null)),he.createElement(wt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(on==null?void 0:on.length)>1&&he.createElement(Ct.Z,{align:"middle",className:(on==null?void 0:on.length)>1?"mb30":`${vt.Z.hide}`},he.createElement(Me.default.Item,{name:Ne},he.createElement(ot,null)),he.createElement(wt.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),he.createElement("div",{className:"mt30",onClick:()=>Si(!0)},he.createElement(Me.default.Item,{name:Sr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},he.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pn}))))};var Ot=pe(59301),Wt=Object.defineProperty,Dt=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,yn=(gi,di,xi)=>di in gi?Wt(gi,di,{enumerable:!0,configurable:!0,writable:!0,value:xi}):gi[di]=xi,zt=(gi,di)=>{for(var xi in di||(di={}))_t.call(di,xi)&&yn(gi,xi,di[xi]);if(Ve)for(var xi of Ve(di))vn.call(di,xi)&&yn(gi,xi,di[xi]);return gi},qt=(gi,di)=>Dt(gi,tt(di)),ln=(gi,di)=>{var xi={};for(var $i in gi)_t.call(gi,$i)&&di.indexOf($i)<0&&(xi[$i]=gi[$i]);if(gi!=null&&Ve)for(var $i of Ve(gi))di.indexOf($i)<0&&vn.call(gi,$i)&&(xi[$i]=gi[$i]);return xi};const Gn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},un=({value:gi,onChange:di,form:xi,choiceKey:$i})=>{const Ri=(gi==null?void 0:gi.is_answer)===1,Kr=gi==null?void 0:gi.choice_text,Sr=()=>{var Ne;const Ci=(Ne=xi==null?void 0:xi.getFieldValue(["sub_item_banks",...$i]))==null?void 0:Ne.map(wr=>({choice_text:wr.choice_text,is_answer:0}));xi==null||xi.setFieldValue(["sub_item_banks",...$i],Ci),di(qt(zt({},gi),{is_answer:1}))};return Ot.createElement(Ct.Z,{className:vt.Z.choiceWrap,align:"middle",wrap:!1},Ot.createElement(wt.Z,{onClick:Sr,className:`${vt.Z.choiceIndex} ${vt.Z.judgementIndex} ${Ri?vt.Z.activeAnswer:""}`},Gn[Kr]),Ot.createElement(wt.Z,{flex:1,className:`${vt.Z.editorWrap} ml15`},Ot.createElement("div",{className:`${vt.Z.inputBorder} ${vt.Z.placeholder} ${Ri?vt.Z.activeJudgementAnswer:""}`},Kr)),Ot.createElement(wt.Z,{flex:"0 0 auto",className:"ml15"},Ot.createElement("div",{onClick:Sr,className:`${vt.Z.setAnswerBtn} ${Ri?vt.Z.activeAnswer:""}`},Ri?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},_n=({questionTitlePlaceholder:gi,choiceKey:di="choices",form:xi,titleKey:$i="name",analysisKey:Ri="analysis"})=>{const[Kr,Sr]=(0,Ge.useState)(!1);return Ot.createElement("div",{className:vt.Z.wrap},Ot.createElement("div",{className:vt.Z.questionTitleEditorWrap},Ot.createElement(Me.default.Item,{label:"\u9898\u5E72",name:$i,labelCol:{span:24},rules:[{required:!0}]},Ot.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:gi}))),Ot.createElement(Me.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ot.createElement(Me.default.List,{name:di,rules:[{validator(Ne,Ci){return Ci.some(Pn=>(Pn==null?void 0:Pn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ne=>Ot.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Ne.map(Ci=>{var wr=Ci,{key:Pn,name:Si}=wr,Wi=ln(wr,["key","name"]);return Ot.createElement(Me.default.Item,qt(zt({},Wi),{key:Pn,name:Si,noStyle:!0}),Ot.createElement(un,{form:xi,choiceKey:di}))})))),Ot.createElement("div",{className:"mt30",onClick:()=>Sr(!0)},Ot.createElement(Me.default.Item,{name:Ri,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ot.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kr}))))};var St=pe(8591),Zn=pe(12563),ci=pe(12290),Ze=pe(61485),be=Object.defineProperty,Pe=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Mt=(gi,di,xi)=>di in gi?be(gi,di,{enumerable:!0,configurable:!0,writable:!0,value:xi}):gi[di]=xi,at=(gi,di)=>{for(var xi in di||(di={}))xe.call(di,xi)&&Mt(gi,xi,di[xi]);if(Oe)for(var xi of Oe(di))ct.call(di,xi)&&Mt(gi,xi,di[xi]);return gi},qe=(gi,di)=>Pe(gi,Ae(di)),Lt=(gi,di)=>{var xi={};for(var $i in gi)xe.call(gi,$i)&&di.indexOf($i)<0&&(xi[$i]=gi[$i]);if(gi!=null&&Oe)for(var $i of Oe(gi))di.indexOf($i)<0&&ct.call(gi,$i)&&(xi[$i]=gi[$i]);return xi};const Bt=gi=>{var di=gi,{value:xi,onChange:$i}=di,Ri=Lt(di,["value","onChange"]);const Kr=Sr=>{$i([Sr])};return Ge.createElement(ci.Z,qe(at({},Ri),{defaultValue:xi==null?void 0:xi[0],onChange:Kr}))},ft=gi=>{if(!gi)return!1;let di=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return gi==="|"?(St.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gt=({value:gi=[],onClose:di})=>Ge.createElement(Zn.default,{closable:!0,onClose:di,className:vt.Z.keywordTag},Ge.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},gi.join(" \u6216 "))),Sn=({questionTitlePlaceholder:gi,form:di,showKeywords:xi,isMustKeyWords:$i=xi,titleKey:Ri="name",analysisKey:Kr="analysis",answerTexts:Sr="answer_texts",keywords:Ne="keywords",useKeywords:Ci="use_keywords",indexs:wr})=>{const[Pn,Si]=(0,Ge.useState)(!1),[Wi,qi]=(0,Ge.useState)(""),[$n,qn]=(0,Ge.useState)(!1),Zt=Me.default.useWatch("question_score",di);return Ge.createElement("div",{className:vt.Z.wrap},Ge.createElement("div",{className:vt.Z.questionTitleEditorWrap},Ge.createElement(Me.default.Item,{label:"\u9898\u5E72",name:Ri,labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:gi}))),Ge.createElement(Me.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Sr,labelCol:{span:24}},Ge.createElement(Bt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),xi&&!$i&&Ge.createElement(Me.default.Item,{hidden:!0,name:Ci,valuePropName:"checked"},Ge.createElement(se.Z,{defaultChecked:!0})),xi&&$i&&Ge.createElement(Ct.Z,{align:"middle",className:"mb30"},Ge.createElement(Me.default.Item,{name:Ci,valuePropName:"checked"},Ge.createElement(se.Z,{onChange:()=>{var $t,Qe,on,cn,At,ht;console.log(di.getFieldsValue()),qn((on=(Qe=($t=di.getFieldsValue())==null?void 0:$t.sub_item_banks)==null?void 0:Qe[wr])==null?void 0:on.use_keywords),console.log((ht=(At=(cn=di.getFieldsValue())==null?void 0:cn.sub_item_banks)==null?void 0:At[wr])==null?void 0:ht.use_keywords),console.log($n)}})),Ge.createElement(wt.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ge.createElement(wt.Z,null,Ge.createElement(Ft.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Ge.createElement(Ze.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),($n||!$i)&&Ge.createElement(Me.default.List,{name:Ne,rules:[{validator($t,Qe){return $i?Qe!=null&&Qe.length?(Qe==null?void 0:Qe.reduce((cn,At)=>cn+At.score,0))>parseFloat(Zt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},($t,{add:Qe,remove:on})=>Ge.createElement(Ge.Fragment,null,Ge.createElement("div",{className:`${vt.Z.title} mb10`},$i?"\u5173\u952E\u8BCD":Ge.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Ge.createElement(Ct.Z,{align:"middle",className:"font14 mb30"},Ge.createElement(wt.Z,{flex:1},Ge.createElement(de.default,{value:Wi,onChange:cn=>{qi(cn.target.value)},maxLength:50,allowClear:!0,onPressEnter:cn=>{var At,ht,en,fn;const Rn=`${(At=cn.target)==null?void 0:At.value}`,Qn=(en=(ht=Rn==null?void 0:Rn.split("|"))==null?void 0:ht.filter(Kn=>!!Kn))==null?void 0:en.map(Kn=>Kn==null?void 0:Kn.trim()),Et=di.getFieldValue(["sub_item_banks",...Ne]),wn=((fn=Et==null?void 0:Et.map(Kn=>Kn==null?void 0:Kn.keyword))==null?void 0:fn.flat())||[];for(const Kn of Qn)if(wn.includes(Kn)){St.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ft(Rn)&&(Qe({keyword:Qn,score:1}),qi(""))},className:vt.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Ge.createElement(wt.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),$t.map(cn=>{var At=cn,{key:ht,name:en}=At,fn=Lt(At,["key","name"]);return Ge.createElement(Ct.Z,{key:ht,className:"mb20",style:{marginRight:148}},Ge.createElement(wt.Z,{flex:1},Ge.createElement(Ct.Z,{align:"middle",justify:"space-between"},Ge.createElement(Me.default.Item,qe(at({},fn),{name:[en,"keyword"]}),Ge.createElement(Gt,{onClose:()=>on(en)})),$i&&Ge.createElement(Me.default.Item,qe(at({},fn),{name:[en,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:vt.Z.blankInputNumberWrapper}),Ge.createElement($e.Z,{className:vt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Ge.createElement("div",{onClick:()=>Si(!0)},Ge.createElement(Me.default.Item,{name:Kr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ge.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pn}))))};var an=pe(59301),rn=Object.defineProperty,zn=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Hn=(gi,di,xi)=>di in gi?rn(gi,di,{enumerable:!0,configurable:!0,writable:!0,value:xi}):gi[di]=xi,bn=(gi,di)=>{for(var xi in di||(di={}))ei.call(di,xi)&&Hn(gi,xi,di[xi]);if(mn)for(var xi of mn(di))Pi.call(di,xi)&&Hn(gi,xi,di[xi]);return gi},wi=(gi,di)=>zn(gi,kn(di)),Zi=(gi,di)=>{var xi={};for(var $i in gi)ei.call(gi,$i)&&di.indexOf($i)<0&&(xi[$i]=gi[$i]);if(gi!=null&&mn)for(var $i of mn(gi))di.indexOf($i)<0&&Pi.call(gi,$i)&&(xi[$i]=gi[$i]);return xi};const{Panel:Hi}=Ue.default,rr=({questionTitlePlaceholder:gi,choiceKey:di,form:xi,withScore:$i})=>{const[Ri,Kr]=(0,Ge.useState)([]),Sr=Ne=>{Kr(Ne)};return an.createElement("div",{className:vt.Z.wrap},an.createElement("div",{className:vt.Z.questionTitleEditorWrap},an.createElement(Me.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},an.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:gi}))),an.createElement(Me.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),an.createElement(Me.default.List,{name:"sub_item_banks",rules:[{validator(Ne,Ci){return Ci?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ne,{add:Ci,remove:wr,move:Pn})=>{const Si=xi.getFieldValue("sub_item_banks");return an.createElement(an.Fragment,null,an.createElement(Ue.default,{className:Ne.length>0?vt.Z.collapseWrapper:"",bordered:!1,activeKey:Ri,onChange:Sr,expandIcon:({isActive:Wi})=>an.createElement("i",{className:`iconfont icon-weizhankai ${Wi?vt.Z.open:vt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Ne.map((Wi,qi)=>{var $n=Wi,{key:qn,name:Zt}=$n,$t=Zi($n,["key","name"]),Qe,on,cn,At,ht,en,fn,Rn,Qn,Et;return an.createElement(Hi,{className:vt.Z.panel,forceRender:!0,header:an.createElement("div",{className:vt.Z.panelHeader},"\u7B2C",qi+1,"\u5C0F\u9898",an.createElement("span",null,"\uFF08",((Qe=Si==null?void 0:Si[Zt])==null?void 0:Qe.item_type)=="SINGLE"?"\u5355\u9009\u9898":((on=Si==null?void 0:Si[Zt])==null?void 0:on.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((cn=Si==null?void 0:Si[Zt])==null?void 0:cn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((At=Si==null?void 0:Si[Zt])==null?void 0:At.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Zt,extra:an.createElement(Ct.Z,{align:"middle",onClick:wn=>wn.stopPropagation()},$i&&an.createElement(wt.Z,null,an.createElement(Me.default.Item,wi(bn({},$t),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Zt,"question_score"],className:vt.Z.blankInputNumberWrapper}),an.createElement($e.Z,{className:vt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),an.createElement(wt.Z,null,an.createElement(Ct.Z,{align:"middle",className:"pl40",justify:"end"},qi!==0&&an.createElement("div",{onClick:()=>{var wn;Pn(qi,qi-1);const Kn=(wn=xi.getFieldValue("sub_item_banks"))==null?void 0:wn.map((Ei,tn)=>(Ne.map((sn,In)=>{tn===In&&(Ei.q_position=Number(sn.name)+1)}),Ei));xi.setFieldValue("sub_item_banks",Kn)}},an.createElement(Ft.Z,{title:"\u4E0A\u79FB"},an.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),qi{var wn;Pn(qi,qi+1);const Kn=(wn=xi.getFieldValue("sub_item_banks"))==null?void 0:wn.map((Ei,tn)=>(Ne.map((sn,In)=>{tn===In&&(Ei.q_position=Number(sn.name)+1)}),Ei));xi.setFieldValue("sub_item_banks",Kn)},className:qi===0?"":"ml15"},an.createElement(Ft.Z,{title:"\u4E0B\u79FB"},an.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),an.createElement(wt.Z,null,an.createElement(Ft.Z,{title:"\u5220\u9664"},an.createElement(Ie.Z,{className:`${vt.Z.deleteIcon} ml15`,onClick:()=>wr(Zt)}))))},an.createElement(Me.default.Item,wi(bn({},$t),{name:Zt}),(((ht=Si==null?void 0:Si[Zt])==null?void 0:ht.item_type)=="SINGLE"||((en=Si==null?void 0:Si[Zt])==null?void 0:en.item_type)=="MULTIPLE")&&an.createElement(le.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((fn=Si==null?void 0:Si[Zt])==null?void 0:fn.item_type)=="MULTIPLE",form:xi,choiceKey:[Zt,"choices"],titleKey:[Zt,"name"],analysisKey:[Zt,"analysis"],choiceOptionsPath:["sub_item_banks",Zt,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Rn=Si==null?void 0:Si[Zt])==null?void 0:Rn.item_type)=="COMPLETION"&&an.createElement(xt,{form:xi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:Zt,titleKey:[Zt,"name"],analysisKey:[Zt,"analysis"],isOrdered:[Zt,"is_ordered"],answerKey:[Zt,"standard_answers"]}),((Qn=Si==null?void 0:Si[Zt])==null?void 0:Qn.item_type)=="JUDGMENT"&&an.createElement(_n,{form:xi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Zt,"name"],analysisKey:[Zt,"analysis"],choiceKey:[Zt,"choices"]}),((Et=Si==null?void 0:Si[Zt])==null?void 0:Et.item_type)=="SUBJECTIVE"&&an.createElement(Sn,{showKeywords:!0,isMustKeyWords:!1,form:xi,titleKey:[Zt,"name"],analysisKey:[Zt,"analysis"],answerTexts:[Zt,"answer_texts"],useKeywords:[Zt,"use_keywords"],keywords:[Zt,"keywords"],indexs:Zt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Ne.length<20&&an.createElement(lt.Z,{menu:{items:[{label:an.createElement("div",{onClick:()=>{Ci({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Kr([Ne==null?void 0:Ne.length,...Ri])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:an.createElement("div",{onClick:()=>{Ci({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Kr([Ne==null?void 0:Ne.length,...Ri])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:an.createElement("div",{onClick:()=>{Ci({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Kr([Ne==null?void 0:Ne.length,...Ri])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:an.createElement("div",{onClick:()=>{Ci({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),Kr([Ne==null?void 0:Ne.length,...Ri])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:an.createElement("div",{onClick:()=>{Ci({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Kr([Ne==null?void 0:Ne.length,...Ri])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Wi=>Wi.show).map(Wi=>({label:Wi.label,key:Wi.key}))}},an.createElement("div",{className:`${vt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var _r=pe(90502)},85149:function(On,pn,pe){"use strict";pe.d(pn,{z:function(){return ze},Z:function(){return je}});var le=pe(59301),ke=pe(50304),We=pe(24768),ut=pe(64018),Ge=pe(40846),Ue=pe(3294),Me=pe(955),Ct=pe(15342),wt=pe(1012),$e=pe(23210),Ft=pe(59301),vt=({html:Xe})=>{const Ye=(0,le.useRef)(null),dt=(0,le.useRef)(null),He=`.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,le.useEffect)(()=>{const Nt=Ye.current.attachShadow({mode:"open"});dt.current=document.createElement("div"),dt.current.className="markdown-body",dt.current.innerHTML=Xe,Nt.appendChild(dt.current);const ot=document.createElement("style");return ot.textContent=He,Nt.appendChild(ot),()=>{Nt.innerHTML=""}},[]),(0,le.useEffect)(()=>{dt.current&&(dt.current.innerHTML=Xe)},[Xe]),Ft.createElement("div",{ref:Ye})},Ie=Object.defineProperty,te=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,se=(Xe,Ye,dt)=>Ye in Xe?Ie(Xe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Xe[Ye]=dt,he=(Xe,Ye)=>{for(var dt in Ye||(Ye={}))ee.call(Ye,dt)&&se(Xe,dt,Ye[dt]);if(te)for(var dt of te(Ye))de.call(Ye,dt)&&se(Xe,dt,Ye[dt]);return Xe};const ve="@\u2581\u2581@",Ee="@\u2581@",Be=/]*>/g;function Le(Xe){let Ye=document.createElement("div");return Ye.innerHTML=Xe,Ye.childNodes.length===0?"":Ye.childNodes[0].nodeValue}const ze=(Xe,Ye)=>{Xe=Xe||"";const dt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ot=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ye?Xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(dt,(Tt,xt,Ot,Wt,Dt,tt,Ve)=>{const _t=xt||Wt||tt,vn=Ot||Dt||Ve||"?";return Ue.Z.API_SERVER+"/api/attachments/"+_t+vn+"&t="+(0,Me.Jn)(_t,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Xe=Xe.replace(ot,(Tt,xt,Ot,Wt,Dt,tt,Ve)=>{const _t=xt||Wt||tt,vn=Ot||Dt||Ve||"?";return Ue.Z.API_SERVER+"/attachments/download/"+_t+vn+"&t="+(0,Me.Jn)(_t,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replace(dt,(Tt,xt,Ot,Wt,Dt,tt,Ve)=>{const _t=xt||Wt||tt,vn=Ot||Dt||Ve||"?";return Ue.Z.API_SERVER+"/api/attachments/"+_t+vn+"&t="+(0,Me.Jn)(_t,Date.now())+(Tt.indexOf(")")>-1?")":"&")}).replace(He,(Tt,xt,Ot,Wt,Dt)=>{const tt=xt||Wt,Ve=Ot||Dt||"";return'"'+Ue.Z.API_SERVER+"/api/attachments/"+tt+Ve+tt+Ve+"&t="+(0,Me.Jn)(tt,Date.now())}).replace(Nt,(Tt,xt,Ot,Wt,Dt)=>{const tt=xt||Wt,Ve=Ot||Dt||"";return"("+Ue.Z.API_SERVER+"/files/uploads/"+tt+Ve+tt+Ve+"&t="+(0,Me.Jn)(tt,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,` `),Xe)};var je=({value:Xe="",className:Ye,showTextOnly:dt,showLines:He,style:Nt={},stylesPrev:ot={},highlightKeywords:Tt,showProgramFill:xt,isProgramFill:Ot,disabledFill:Wt=!1,programFillValue:Dt,onFillChange:tt=vn=>{},onFillBlur:Ve=()=>{},onFillFocus:_t=()=>{}})=>{let vn=String(Xe);const[yn,zt]=(0,le.useState)(""),[qt,ln]=(0,le.useState)("office"),[Gn,un]=(0,le.useState)([]),_n=(0,le.useRef)("a"+(0,wt.Z)()),St={},Zn=(Lt,Bt,ft)=>{const Gt=document.createElement(Lt===Ee?"input":"textarea");Gt.style.width="100%",Gt.style.height=Lt===Ee?"40px":"151px",Gt.rows=5,Gt.spellcheck=!1,Gt.name="edu-program-fill",Gt.placeholder="\u8BF7\u8F93\u5165",Gt.dataset.id=Bt;const Sn=Object.keys(St).length;return St[Sn]=Gt,`${Gt.outerHTML}`};function ci(Lt){return Lt=Lt.replace(/!\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(/\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(new RegExp("","gs"),""),Lt=Lt.replace(//g,""),Lt=Lt.replace(//g,""),Lt=Lt.replace(new RegExp(".*?<\\/video>","gs"),""),Lt=Lt.replace(new RegExp(".*?<\\/audio>","gs"),""),Lt=Lt.replace(new RegExp(".*?<\\/style>","gs"),""),Lt=Lt.replace(new RegExp(".*?<\\/script>","gs"),""),Lt}const Ze=Lt=>Lt.replace(/([\s\S]+?)<\/style>/gim,function(Bt,ft){let Gt=ft.replace(/(\n|\r)/g,"").split("}"),Sn=[];return Gt.map(an=>{an!=""&&Sn.push(`.${_n.current} ${an}`)}),``}),be=(0,le.useMemo)(()=>{try{const Gt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,an=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,rn=/\(\/attachments\/download\//g;vn=vn.replace(rn,"("+Ue.Z.API_SERVER+"/attachments/download/").replace(Gt,"("+Ue.Z.API_SERVER+"/api/attachments/").replace(Sn,'"'+Ue.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Ue.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(Gt){}if(xt){let Gt=-1;return vn=vn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Sn,an,rn){var zn;return++Gt,Zn(Sn,Gt,(zn=Dt==null?void 0:Dt[Gt])==null?void 0:zn.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ze(vn||"")}
`}let Lt=Ze(vn);Lt=(0,We.ZP)(Lt);const Bt=(0,We.ez)();vn.match(/\[TOC\]/)&&(Lt=Lt.replace("

[TOC]

",(0,We.Qv)()),(0,We.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(Gt,Sn)=>{const{type:an,expression:rn}=Bt[Sn];return(0,Ct.renderToString)(Le(rn)||"",{displayMode:an==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,We.AL)();const ft=document.createElement("div");if(ft.innerHTML=Lt,dt)return ft.innerText;if(Tt){const Gt=Tt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return xe(ft,Gt),ft.innerHTML}return setTimeout(()=>at(),500),ft.innerHTML},[vn,Tt]);(0,le.useEffect)(()=>{ct.current&&ct.current.querySelectorAll(["input","textarea"]).forEach(Bt=>{Bt.oninput=Pe,Bt.onblur=Ae,Bt.onfocus=Oe})},[Gn]),(0,le.useEffect)(()=>{var Lt,Bt,ft,Gt,Sn;if(Dt!=null&&Dt.length)try{const an=ct.current.querySelectorAll(".edu-program-fill-score"),rn=ct.current.querySelectorAll('[name="edu-program-fill"]');for(const[zn,kn]of rn.entries())kn.value=((Lt=Dt==null?void 0:Dt[zn])==null?void 0:Lt.value)||"",((Bt=Dt==null?void 0:Dt[zn])==null?void 0:Bt.type)==="warning"?kn.className="program-fill-warning":((ft=Dt==null?void 0:Dt[zn])==null?void 0:ft.type)==="success"?kn.className="program-fill-success":kn.className="";for(const[zn,kn]of an.entries())kn.innerHTML=(Gt=Dt==null?void 0:Dt[zn])!=null&&Gt.score?`${(Sn=Dt==null?void 0:Dt[zn])==null?void 0:Sn.score}\u5206`:"";un(Dt)}catch(an){console.log(an,"error")}},[Dt]);const Pe=Lt=>{Gn[Lt.target.dataset.id]=Gn[Lt.target.dataset.id]||{},Gn[Lt.target.dataset.id].value=Lt.target.value,un([...Gn]),tt(Gn,Lt.target.dataset.id)},Ae=Lt=>{Gn[Lt.target.dataset.id]=Gn[Lt.target.dataset.id]||{},Gn[Lt.target.dataset.id].value=Lt.target.value,un([...Gn]),Ve(Gn,Lt.target.dataset.id)},Oe=Lt=>{Gn[Lt.target.dataset.id]=Gn[Lt.target.dataset.id]||{},Gn[Lt.target.dataset.id].value=Lt.target.value,un([...Gn]),_t(Gn,Lt.target.dataset.id)};function xe(Lt,Bt){return Lt.childNodes.forEach(ft=>{var Gt;if(ft.childNodes.length>0)xe(ft,Bt);else if(ft.nodeName!=="IMG")if(ft.innerHTML)ft.innerHTML=(Gt=ft.innerHTML)==null?void 0:Gt.replace(new RegExp(Bt,"gi"),'$&');else{const Sn=document.createElement("span");Sn.innerHTML=ft.textContent.replace(new RegExp(Bt,"gi"),'$&'),ft.replaceWith(Sn)}})}const ct=(0,le.useRef)();We.jb.WebkitLineClamp=He,He&&(Nt=he(he({},Nt),We.jb));function Mt(Lt){let Bt=Lt.target;if(Bt.tagName.toUpperCase()==="A"){let ft=Bt.getAttribute("href");if(ft.indexOf("office")>-1)Lt.preventDefault(),zt(ft),ln("office");else if(ft.indexOf("application/pdf")>-1)Lt.preventDefault(),zt(ft),ln("pdf");else if(ft.indexOf("text/html")>-1)Lt.preventDefault(),zt(ft),ln("html");else if(ft.startsWith("#")){Lt.preventDefault();let Gt=document.getElementById(ft.replace("#",""));Gt&&Gt.scrollIntoView(!0)}}}const at=()=>{var Lt;const Bt=(Lt=ct.current)==null?void 0:Lt.querySelectorAll("video");Bt==null||Bt.forEach(ft=>{if(ft.oncontextmenu=()=>!1,ft.src.indexOf(".m3u8")>-1&&!ft.canPlayType("application/vnd.apple.mpegurl")){if(Ge.ZP.isSupported()){var Gt=new Ge.ZP;Gt.loadSource(ft.src),Gt.attachMedia(ft)}}})};(0,le.useEffect)(()=>{if(ct.current&&be&&be.match(Be)&&window.PR.prettyPrint(),ct.current)return ct.current.addEventListener("click",Mt),()=>{var Lt;(Lt=ct.current)==null||Lt.removeEventListener("click",Mt),(0,We.AL)(),(0,We.Iy)()}},[be,ct.current,Mt]),(0,le.useEffect)(()=>{var Lt;const Bt=ft=>{ft.preventDefault(),ft.clipboardData.setData("text",window.getSelection().toString())};return(Lt=ct.current)==null||Lt.addEventListener("copy",Bt),()=>{var ft;(ft=ct.current)==null||ft.removeEventListener("copy",Bt)}},[ct.current]);const qe=Lt=>//i.test(Lt||"");return le.createElement(le.Fragment,null,dt&&le.createElement("div",{ref:ct},be),!dt&&!qe(be)&&le.createElement("div",{ref:ct,style:he({},Nt),className:`${Ye||""} ${Wt?"disabled-fill":""} markdown-body ${_n.current}`,dangerouslySetInnerHTML:{__html:be}}),!dt&&qe(be)&&le.createElement(vt,{html:be}),le.createElement($e.Z,{close:!0,data:yn,type:yn!=null&&yn.length?qt:"",style:he({},ot),onClose:()=>zt("")}))}},68042:function(On,pn,pe){"use strict";pe.d(pn,{C:function(){return xt}});var le=pe(59301),ke={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},We=pe(92310),ut=pe.n(We),Ge=pe(24905),Ue=pe(95237),Me=pe(8591),Ct=pe(6848),wt=pe(3113),$e=pe(43418),Ft=pe(1710),lt=pe(5871),vt=pe(78241),Ie=pe(71418),te=pe(955),ee=pe(99064),de=pe(24065),se=pe(59155),he=pe(85057),ve=Object.defineProperty,Ee=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Xe=(Ot,Wt,Dt)=>Wt in Ot?ve(Ot,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Ot[Wt]=Dt,Ye=(Ot,Wt)=>{for(var Dt in Wt||(Wt={}))ze.call(Wt,Dt)&&Xe(Ot,Dt,Wt[Dt]);if(Le)for(var Dt of Le(Wt))je.call(Wt,Dt)&&Xe(Ot,Dt,Wt[Dt]);return Ot},dt=(Ot,Wt)=>Ee(Ot,Be(Wt)),He=(Ot,Wt,Dt)=>new Promise((tt,Ve)=>{var _t=zt=>{try{yn(Dt.next(zt))}catch(qt){Ve(qt)}},vn=zt=>{try{yn(Dt.throw(zt))}catch(qt){Ve(qt)}},yn=zt=>zt.done?tt(zt.value):Promise.resolve(zt.value).then(_t,vn);yn((Dt=Dt.apply(Ot,Wt)).next())});const Nt=Ge.default.Group,ot=({className:Ot,title:Wt,items:Dt=[],value:tt,onChange:Ve})=>{const _t=(Dt==null?void 0:Dt.length)===(tt==null?void 0:tt.length),vn=(tt==null?void 0:tt.length)>0&&(tt==null?void 0:tt.length)<(Dt==null?void 0:Dt.length),yn=zt=>{const qt=Dt.map(ln=>ln.id);Ve(zt.target.checked?qt:[])};return le.createElement(Ue.Z,{align:"middle",className:Ot},!!Wt&&le.createElement("div",{className:"mr20",style:{color:"#5F6368"}},Wt),le.createElement(Ge.default,{indeterminate:vn,onChange:yn,checked:_t},"\u5168\u90E8"),le.createElement(Nt,{value:tt,onChange:Ve},Dt.map(zt=>le.createElement(Ge.default,{className:"ml30 c-black",key:zt.id,value:zt.id},zt.name,le.createElement("span",null,`(${zt.count})`)))))};var xt=({className:Ot,style:Wt,dataSource:Dt})=>{var tt,Ve,_t,vn,yn,zt,qt;const[ln,Gn]=(0,le.useState)({}),[un,_n]=(0,le.useState)(!0),[St,Zn]=(0,le.useState)(!1),[ci,Ze]=(0,le.useState)(!1),[be,Pe]=(0,le.useState)(null),[Ae,Oe]=(0,le.useState)(0),[xe,ct]=(0,le.useState)({}),[Mt,at]=(0,le.useState)(!0),[qe,Lt]=(0,le.useState)(0),[Bt,ft]=(0,le.useState)(0),[Gt,Sn]=(0,le.useState)(!1),an=(0,le.useRef)(null),[rn,zn]=(0,le.useState)(!1),[kn,mn]=(0,le.useState)(!0),[ei,Pi]=(0,le.useState)([]),Hn={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[bn,wi]=(0,le.useState)(Ye({},Hn));(0,le.useEffect)(()=>{Dt!=null&&Dt.question_id&&Gn(Dt)},[Dt==null?void 0:Dt.question_id]),(0,le.useEffect)(()=>{var Ci;if(((Ci=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:Ci.status)==="running"){const wr=setInterval(()=>{rr()},3e3);return()=>clearInterval(wr)}},[(tt=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:tt.status]),(0,le.useEffect)(()=>{var Ci;ci&&(ci===1&&(bn.question_status=_r.map(wr=>wr.value),bn.review=gi.map(wr=>wr.value)),ci===2&&(bn.exercise_question_resubmit_id=(Ci=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:Ci.id,be===1&&(bn.success_status=[1]),be===2&&(bn.success_status=[0])),wi(Ye({},bn)),Zi(bn),ft(ln!=null&&ln.is_mirror?3:10),Lt(ln!=null&&ln.is_mirror?1:5))},[ci]),(0,le.useEffect)(()=>{rn&&Hi()},[rn]);const Zi=Ci=>He(void 0,null,function*(){_n(!0);const wr=yield(0,ee.ZP)(`/api/exercise_questions/${ln==null?void 0:ln.question_id}/resubmit_student_list.json`,{method:"get",params:Ci});(wr==null?void 0:wr.status)==0&&(ct(wr||[]),Oe(wr==null?void 0:wr.count)),_n(!1)}),Hi=()=>He(void 0,null,function*(){mn(!0);const Ci=yield(0,ee.ZP)(`/api/exercise_questions/${ln==null?void 0:ln.question_id}/resubmit_history.json`,{method:"get"});(Ci==null?void 0:Ci.status)==0&&Pi((Ci==null?void 0:Ci.data)||[]),mn(!1)}),rr=()=>He(void 0,null,function*(){const Ci=yield(0,ee.ZP)(`/api/exercise_questions/${ln==null?void 0:ln.question_id}/resubmit_status.json`,{method:"get"});(Ci==null?void 0:Ci.status)==0&&Gn(dt(Ye({},ln),{show_resubmit_history:!0,exercise_question_resubmit:(Ci==null?void 0:Ci.data)||{}}))}),_r=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],gi=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],di=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],xi=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Ci,wr,Pn)=>le.createElement("span",{className:"c-black"},Pn+1+(bn.page-1)*bn.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Ci=>le.createElement("span",{className:"c-black"},Ci)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Ci=>le.createElement("span",{className:"c-grey-666"},Ci||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Ci=>le.createElement("span",{className:"c-black"},Ci)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Ci=>{const{label:wr,color:Pn}=_r.find(Si=>Si.value===Ci)||{};return le.createElement("span",{style:{color:Pn}},wr)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Ci=>le.createElement("span",{className:"c-black"},Ci)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Ci=>le.createElement("span",{className:"c-black"},Ci)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Ci=>{const{label:wr,color:Pn}=gi.find(Si=>Si.value===Ci)||{};return le.createElement("span",{style:{color:Pn}},wr)}},ci===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Ci=>{const{label:wr,color:Pn}=di.find(Si=>Si.value===Ci)||{};return le.createElement("span",{style:{color:Pn}},wr)}}].filter(Boolean),$i=(Ci,wr,Pn)=>{bn.page=Ci==null?void 0:Ci.current,bn.per_page=Ci==null?void 0:Ci.pageSize,Pn!=null&&Pn.order?(bn.sort_by=Pn==null?void 0:Pn.field,bn.direction=(Pn==null?void 0:Pn.order)==="ascend"?"asc":"desc"):(bn.sort_by=null,bn.direction=null),wi(Ye({},bn)),Zi(bn)},Ri=()=>{if(!qe){Me.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Sn(!0)},Kr=()=>He(void 0,null,function*(){var Ci,wr;if((Ci=an.current)!=null&&Ci.onVerify())return;Zn(!0);const Pn=yield(0,ee.ZP)(`/api/exercise_questions/${ln==null?void 0:ln.question_id}/resubmit.json`,{method:"post",body:{keyword:bn.keyword,question_status:bn.question_status,review:bn.review_status,success_status:bn.success_status,use_max_score:Mt,permits:qe,exercise_question_resubmit_id:ci===1?null:(wr=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:wr.id}});(Pn==null?void 0:Pn.status)==0&&(yield rr(),Me.ZP.success("\u64CD\u4F5C\u6210\u529F"),Sn(!1),Ze(!1)),Zn(!1)}),Sr=(Ci,wr)=>{bn.page=1,bn[wr]=Ci,wi(Ye({},bn)),Zi(bn)},Ne=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return le.createElement(le.Fragment,null,le.createElement("div",{className:ut()(ke.recalculation,Ot),style:Wt},le.createElement(Ct.Z,{title:Ne[(ln==null?void 0:ln.disable_resubmit_reason)||0]},le.createElement(wt.ZP,{disabled:(ln==null?void 0:ln.disable_resubmit)||((Ve=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:Ve.status)==="running",onClick:()=>Ze(1),icon:le.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(ln==null?void 0:ln.show_resubmit_history)&&le.createElement(le.Fragment,null,((_t=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:_t.status)==="running"?le.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",le.createElement("span",{className:"c-light-primary ml3"},(vn=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:vn.rate)):le.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",le.createElement("span",{onClick:()=>{Ze(2),Pe(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(yn=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:yn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",le.createElement("span",{onClick:()=>{Ze(2),Pe(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(zt=ln==null?void 0:ln.exercise_question_resubmit)==null?void 0:zt.fail_count),"\u4EBA"),le.createElement(Ct.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},le.createElement("i",{onClick:()=>zn(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),le.createElement($e.default,{centered:!0,open:!!ci,title:`\u91CD\u65B0\u8BC4\u6D4B${ci===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Ze(!1),onOk:Ri,afterClose:()=>{at(!0),Pe(null),wi(Ye({},Hn))}},le.createElement("div",{className:ke.filter},ci===1&&le.createElement(le.Fragment,null,le.createElement("div",{className:ke.tips},le.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},le.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),le.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),le.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),le.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),le.createElement(ot,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(xe==null?void 0:xe.question_status)||[],value:bn.question_status,onChange:Ci=>Sr(Ci,"question_status")}),le.createElement(ot,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(xe==null?void 0:xe.review_status)||[],value:bn.review,onChange:Ci=>Sr(Ci,"review")})),ci===2&&le.createElement(le.Fragment,null,le.createElement(ot,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(xe==null?void 0:xe.success_status)||[],value:bn.success_status,onChange:Ci=>Sr(Ci,"success_status")})),le.createElement(he.t7,{className:ke.input,style:{bottom:ci===1?10:-5},value:bn.keyword,onChange:Ci=>Sr(Ci,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),le.createElement(Ft.default,{className:"mt20",columns:xi,scroll:((qt=xe==null?void 0:xe.data)==null?void 0:qt.length)>7?{y:300}:{},dataSource:(xe==null?void 0:xe.data)||[],loading:un,onChange:$i,pagination:{total:Ae,pageSize:bn.per_page,current:bn.page,hideOnSinglePage:!Ae,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:te.rU}}),le.createElement(Ue.Z,{justify:"space-between",align:"middle",className:"mt10"},le.createElement(Ge.default,{className:"c-black",checked:Mt,onChange:Ci=>at(Ci.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,de.Ny)()&&le.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",le.createElement(lt.Z,{className:"ml10 mr10",value:qe,max:Bt,min:1,precision:0,onChange:Ci=>Lt(Ci)}),"\u4EBA",le.createElement(Ct.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},le.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),le.createElement($e.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Gt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:St,destroyOnClose:!0,onOk:Kr,onCancel:()=>Sn(!1)},le.createElement(vt.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},le.createElement(se.Z,{ref:Ci=>an.current=Ci}))),le.createElement($e.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:rn,width:710,onCancel:()=>zn(!1),footer:null},le.createElement(Ie.Z,{spinning:kn},le.createElement("div",{className:ke.operating},ei.map((Ci,wr)=>le.createElement("div",{key:wr,className:ke.operatingItem},le.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Ci==null?void 0:Ci.created_at),le.createElement("div",{className:"c-black"},Ci==null?void 0:Ci.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Ci==null?void 0:Ci.status)==="running"?le.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",le.createElement("span",{className:"c-light-primary ml3"},Ci==null?void 0:Ci.rate)):le.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",le.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Ci==null?void 0:Ci.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",le.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Ci==null?void 0:Ci.fail_count),"\u4EBA")))),le.createElement("div",{style:{height:20}}))))}},82438:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(59301),ke={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},We=pe(43418),ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ue=(wt,$e,Ft)=>new Promise((lt,vt)=>{var Ie=de=>{try{ee(Ft.next(de))}catch(se){vt(se)}},te=de=>{try{ee(Ft.throw(de))}catch(se){vt(se)}},ee=de=>de.done?lt(de.value):Promise.resolve(de.value).then(Ie,te);ee((Ft=Ft.apply(wt,$e)).next())}),Ct=({type:wt,resdata:$e,onok:Ft,oktext:lt,okloading:vt})=>{const[Ie,te]=(0,le.useState)(!1),{can_copy_list:ee,can_copy_num:de,challenge_type:se,course_data_list:he,no_copy_list:ve,no_copy_num:Ee,no_use_list:Be,no_use_num:Le,repeat_shixun_num:ze,student_count:je,total_num:Xe,use_num:Ye}=$e;let dt=de>0||wt==="exercise";(0,le.useEffect)(()=>{($e==null?void 0:$e.student_count)>0&&te(!0)},[$e]),console.log("---11",vt),(0,le.useEffect)(()=>{vt||te(!1)},[vt]);const He=()=>{if(wt==="exercise"&&se===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(wt==="exercise"&&se===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixun"&&se===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixun"&&se===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="subject"&&se===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="subject"&&se===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",le.createElement("span",{className:ke.orangeColor},je)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",le.createElement("span",{className:ke.orangeColor},Ye)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="exercisepush")return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(wt==="shixunpush"&&se===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixunpush"&&se===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:ke.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",le.createElement("span",{className:ke.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",le.createElement("span",{className:ke.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Nt=()=>{if(wt==="exercise"||wt==="subject"||wt==="exercisepush"||wt==="shixunpush")return le.createElement("div",{style:{marginTop:20}},Ee>0&&le.createElement("div",null,le.createElement("span",{className:ke.flex},le.createElement("img",{src:Ge,style:{width:14}}),le.createElement("span",{className:ke.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),le.createElement("div",{className:ke.statusbody},wt==="exercise"&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:ke.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(wt==="subject"||wt==="exercisepush")&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",dt&&le.createElement("span",{className:ke.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),wt==="shixunpush"&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",dt&&le.createElement("span",{className:ke.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),le.createElement("div",null,ve==null?void 0:ve.map((ot,Tt)=>le.createElement("a",{href:`/shixuns/${ot.identifier}/challenges`,target:"_blank"},"\u300A",ot==null?void 0:ot.name,"\u300B",Tt+1!==Ee&&"\u3001"))))),de>0&&le.createElement("div",{style:{marginTop:20}},le.createElement("span",{className:ke.flex},le.createElement("img",{src:ut,style:{width:14}}),le.createElement("span",{className:ke.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),le.createElement("div",{className:ke.statusbody},wt==="exercise"&&le.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(wt==="subject"||wt==="exercisepush")&&le.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),wt==="shixunpush"&&le.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),le.createElement("div",null,ee==null?void 0:ee.map((ot,Tt)=>le.createElement("a",{href:`/shixuns/${ot.identifier}/challenges`,target:"_blank"},"\u300A",ot==null?void 0:ot.name,"\u300B",Tt+1!==de&&"\u3001"))))));if(wt==="shixun")return le.createElement("div",{style:{marginTop:20}},de>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return le.createElement(We.default,{open:Ie,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!dt&&"none"}},zIndex:1003,confirmLoading:vt,okText:dt?lt:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ue(void 0,null,function*(){dt?yield Ft([...ee,...Be]):te(!1)})},le.createElement("div",{style:{maxHeight:600,overflow:"auto"}},He(),Nt()))}},69304:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ue}});var le=pe(59301),ke={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},We=pe(92310),ut=pe.n(We),Ue=({className:Me,style:Ct,state:wt,onClick:$e})=>{var Ft,lt;return le.createElement("div",{onClick:$e,className:ut()(wt?(Ft=ke)==null?void 0:Ft.redBtn:(lt=ke)==null?void 0:lt.btn,Me),style:Ct},wt?le.createElement(le.Fragment,null,le.createElement("i",{className:"iconfont icon-biaoji1"}),le.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):le.createElement(le.Fragment,null,le.createElement("i",{className:"iconfont icon-biaojigaiti"}),le.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},97692:function(On,pn,pe){"use strict";pe.d(pn,{h:function(){return Ee}});var le=pe(59301),ke=pe(57809),We=pe(78241),ut=pe(3113),Ge=pe(89780),Ue=pe.n(Ge),Me=pe(37036),Ct=pe(95625),wt=Object.defineProperty,$e=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,te=(Be,Le,ze)=>Le in Be?wt(Be,Le,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Be[Le]=ze,ee=(Be,Le)=>{for(var ze in Le||(Le={}))vt.call(Le,ze)&&te(Be,ze,Le[ze]);if(lt)for(var ze of lt(Le))Ie.call(Le,ze)&&te(Be,ze,Le[ze]);return Be},de=(Be,Le)=>$e(Be,Ft(Le));const se=ke.default.Option,he={labelCol:{span:4},wrapperCol:{span:20}},ve={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"]};pn.Z=({callback:Be,onCancel:Le})=>{const[ze,je]=(0,le.useState)("python");function Xe(dt){je(ve[dt][1])}function Ye(dt){Be(dt)}return le.createElement(We.default,de(ee({},he),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),le.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(ke.default,{getPopupContainer:dt=>dt.parentNode,onChange:Xe},Object.keys(ve).map(dt=>le.createElement(se,{key:dt,value:dt},ve[dt][0])))),le.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(Ee,{mode:ze})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ut.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))};function Ee({value:Be,onChange:Le,mode:ze,options:je={}}){const Xe=(0,le.useRef)(),[Ye,dt]=(0,le.useState)();return(0,le.useEffect)(()=>{if(Ye){let He=function(Nt){const ot=Nt.getValue();Le&&Le(ot)};return Ye.on("change",He),()=>{Ye.off("change",He)}}},[Ye,Le]),(0,le.useEffect)(()=>{Ye&&Ye.setOption("mode",ze)},[Ye,ze]),(0,le.useEffect)(()=>{Ye&&(Be!==Ye.getValue()||Be==="")&&setTimeout(()=>{Ye.setValue(Be||"")},300)},[Ye,Be]),(0,le.useEffect)(()=>{if(Xe.current&&!Ye){const He=Ue().fromTextArea(Xe.current,ee({mode:ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));dt(He)}},[Xe.current,Ye]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:Xe}))}},12290:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return qn}});var le=pe(59301),ke=pe(89780),We=pe.n(ke),ut=pe(76374),Ge=pe(37036),Ue=pe(6313),Me=pe(25717),Ct=pe(99498),wt=pe(25419),$e=pe(67549),Ft=pe(85149),lt=({value:Zt="",className:$t,showTextOnly:Qe,showLines:on,style:cn={}})=>{const At=(0,le.useMemo)(()=>"",[Zt]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:At}}))},vt=pe(59301),Ie=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ve=(Zt,$t,Qe)=>$t in Zt?Ie(Zt,$t,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Zt[$t]=Qe,Ee=(Zt,$t)=>{for(var Qe in $t||($t={}))se.call($t,Qe)&&ve(Zt,Qe,$t[Qe]);if(de)for(var Qe of de($t))he.call($t,Qe)&&ve(Zt,Qe,$t[Qe]);return Zt},Be=(Zt,$t)=>te(Zt,ee($t));let Le=[{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 ze({onActionCallback:Zt,title:$t,icon:Qe,actionName:on,className:cn="",children:At}){function ht(){Zt(on)}return vt.createElement("a",{title:$t,className:cn,onClick:ht},vt.createElement("i",{className:`${Qe}`}),At)}var je=({watch:Zt,showNullButton:$t,showNullProgramButton:Qe,onActionCallback:on,fullScreen:cn,insertTemp:At,hidetoolBar:ht,extraUse:en})=>{const fn=[...Le,{title:`${Zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return vt.createElement("ul",{className:"markdown-toolbar-container"},!ht&&fn.map((Rn,Qn)=>vt.createElement("li",{key:Qn},Rn.actionName?vt.createElement(ze,Be(Ee({},Rn),{onActionCallback:on})):vt.createElement("span",{className:"v-line"}))),$t?vt.createElement("li",null,vt.createElement(ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:on},vt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Qe?vt.createElement(vt.Fragment,null,vt.createElement("li",null,vt.createElement(ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:on},vt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),vt.createElement("li",null,vt.createElement(ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:on},vt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,At&&vt.createElement("li",null,vt.createElement(ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${At}`,onActionCallback:on},vt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),en&&vt.createElement("li",null,en),vt.createElement("li",{className:"btn-full-screen"},vt.createElement(ze,{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:on})))},Xe=pe(79346),Ye=pe(78241),dt=pe(92832),He=pe(3113),Nt=Object.defineProperty,ot=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Dt=(Zt,$t,Qe)=>$t in Zt?Nt(Zt,$t,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Zt[$t]=Qe,tt=(Zt,$t)=>{for(var Qe in $t||($t={}))Ot.call($t,Qe)&&Dt(Zt,Qe,$t[Qe]);if(xt)for(var Qe of xt($t))Wt.call($t,Qe)&&Dt(Zt,Qe,$t[Qe]);return Zt},Ve=(Zt,$t)=>ot(Zt,Tt($t));const _t={labelCol:{span:4},wrapperCol:{span:20}};var vn=({callback:Zt,onCancel:$t})=>{function Qe(on){Zt(on)}return le.createElement(Ye.default,Ve(tt({},_t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qe,style:{width:500}}),le.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(dt.default,null)),le.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(dt.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(He.ZP,{type:"ghost",onClick:$t},"\u53D6\u6D88")))},yn=pe(97692),zt=pe(28451),qt=pe(43418),ln=pe(95237),Gn=pe(73524),un=pe(59301),_n=({callback:Zt,onCancel:$t})=>{const Qe=document.createElement("canvas"),on=Qe.getContext("2d");Qe.width=1e3,Qe.height=800,on.fillStyle="#ffffff",on.fillRect(0,0,Qe.width,Qe.height);const cn=Qe.toDataURL("image/png");return un.createElement(qt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},un.createElement(ln.Z,{style:{height:"100vh"}},un.createElement(Gn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:cn,visible:!0,title:String(Date.now())},onOk:At=>{Zt({src:At.url})},onClose:$t})))},St=pe(12378);function Zn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Zn,go.CommandHandler),Zn.prototype.canAlignSelection=function(){var Zt=this.diagram;return!(Zt===null||Zt.isReadOnly||Zt.isModelReadOnly||Zt.selection.count<2)},Zn.prototype.alignLeft=function(){var Zt=this.diagram;Zt.startTransaction("aligning left");var $t=1/0;Zt.selection.each(function(Qe){Qe instanceof go.Link||($t=Math.min(Qe.position.x,$t))}),Zt.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point($t,Qe.position.y))}),Zt.commitTransaction("aligning left")},Zn.prototype.alignRight=function(){var Zt=this.diagram;Zt.startTransaction("aligning right");var $t=-1/0;Zt.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var on=Qe.actualBounds.x+Qe.actualBounds.width;$t=Math.max(on,$t)}}),Zt.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point($t-Qe.actualBounds.width,Qe.position.y))}),Zt.commitTransaction("aligning right")},Zn.prototype.alignTop=function(){var Zt=this.diagram;Zt.startTransaction("alignTop");var $t=1/0;Zt.selection.each(function(Qe){Qe instanceof go.Link||($t=Math.min(Qe.position.y,$t))}),Zt.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.position.x,$t))}),Zt.commitTransaction("alignTop")},Zn.prototype.alignBottom=function(){var Zt=this.diagram;Zt.startTransaction("aligning bottom");var $t=-1/0;Zt.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var on=Qe.actualBounds.y+Qe.actualBounds.height;$t=Math.max(on,$t)}}),Zt.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.actualBounds.x,$t-Qe.actualBounds.height))}),Zt.commitTransaction("aligning bottom")},Zn.prototype.alignCenterX=function(){var Zt=this.diagram,$t=Zt.selection.first();if($t){Zt.startTransaction("aligning Center X");var Qe=$t.actualBounds.x+$t.actualBounds.width/2;Zt.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(Qe-on.actualBounds.width/2,on.actualBounds.y))}),Zt.commitTransaction("aligning Center X")}},Zn.prototype.alignCenterY=function(){var Zt=this.diagram,$t=Zt.selection.first();if($t){Zt.startTransaction("aligning Center Y");var Qe=$t.actualBounds.y+$t.actualBounds.height/2;Zt.selection.each(function(on){on instanceof go.Link||on.move(new go.Point(on.actualBounds.x,Qe-on.actualBounds.height/2))}),Zt.commitTransaction("aligning Center Y")}},Zn.prototype.alignColumn=function(Zt){var $t=this.diagram;$t.startTransaction("align Column"),Zt===void 0&&(Zt=0),Zt=parseFloat(Zt);var Qe=new Array;$t.selection.each(function(en){en instanceof go.Link||Qe.push(en)});for(var on=0;on0){for(var en=At.elt(ht-1);en!==null&&en.isTreeExpanded&&!en.isTreeLeaf;){var fn=this._sortTreeChildrenByY(en);en=fn.last()}en!==null&&Zt.select(en)}else Zt.select(cn)}}else if(Qe.key==="Down")if($t.isTreeExpanded&&!$t.isTreeLeaf){var on=this._sortTreeChildrenByY($t).first();on!==null&&Zt.select(on)}else for(;$t!==null;){var cn=$t.findTreeParentNode();if(cn===null)break;var At=this._sortTreeChildrenByY(cn),ht=At.indexOf($t);if(htAt.y?1:cn.xAt.x?1:0}),$t},Zn.prototype.copyToClipboard=function(Zt){go.CommandHandler.prototype.copyToClipboard.call(this,Zt),this._lastPasteOffset.set(this.pasteOffset)},Zn.prototype.pasteFromClipboard=function(){var Zt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Zt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Zt},Object.defineProperty(Zn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Zt){if(Zt!=="move"&&Zt!=="select"&&Zt!=="scroll"&&Zt!=="tree"&&Zt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Zt);this._arrowKeyBehavior=Zt}}),Object.defineProperty(Zn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Zt){if(!(Zt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Zt);this._pasteOffset.set(Zt)}});var ci=Zn,Ze=pe(74413),be=pe(43604),Pe=pe(99064),Ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Oe=pe(24065),xe=pe(59301),ct=(Zt,$t,Qe)=>new Promise((on,cn)=>{var At=fn=>{try{en(Qe.next(fn))}catch(Rn){cn(Rn)}},ht=fn=>{try{en(Qe.throw(fn))}catch(Rn){cn(Rn)}},en=fn=>fn.done?on(fn.value):Promise.resolve(fn.value).then(At,ht);en((Qe=Qe.apply(Zt,$t)).next())});function Mt({onCancel:Zt,callback:$t}){let Qe=(0,le.useRef)(),on=(0,le.useRef)(),cn=(0,le.useRef)(),At=(0,le.useRef)(!1);const ht=(0,le.useRef)(!1),[en,fn]=(0,le.useState)(0);function Rn(){const Et=St.bx.make,wn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Qe.current=new St.S0(on.current,{padding:20,grid:Et(St.s_,"Grid",Et(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Et(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ri=>{var Yi=ri.diagram.commandHandler.addTopLevelParts(ri.diagram.selection,!0);Yi||ri.diagram.currentTool.doCancel()},commandHandler:Et(ci),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ri=>{var Yi=ri.subject;Yi.location=Yi.location.copy().snapToGridPoint(ri.diagram.grid.gridOrigin,ri.diagram.grid.gridCellSize),setTimeout(()=>{ri.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ri=>{var Yi=ri.subject;setTimeout(()=>{ri.diagram.commandHandler.editTextBlock()})},LinkRelinked:ri=>{var Yi=ri.parameter.part;Yi.invalidateConnectedLinks();var yr=ri.subject;ri.diagram.toolManager.linkingTool.isForwards?yr.toNode.invalidateConnectedLinks():yr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Qe.current.nodeTemplate=Et(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),Et(St.bn,{name:"SHAPE",fill:wn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Et(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Et(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Qe.current.nodeTemplate.toolTip=Et("ToolTip",Et(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},Et(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),Et(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function Kn(ri,Yi){var yr=(er,Fr)=>{er.handled=!0,er.diagram.model.commit(Ur=>{var zr=Fr.part.adornedPart,Tr=new St.E9().setRectSpot(zr.actualBounds,ri);Tr.subtract(zr.location),Tr.scale(2,2),Tr.x+=Math.sign(Tr.x)*130,Tr.y+=Math.sign(Tr.y)*130,Tr.add(zr.location),Tr.snapToGridPoint(er.diagram.grid.gridOrigin,er.diagram.grid.gridCellSize);var Yr=Ur.copyNodeData(zr.data);Ur.setGroupKeyForNodeData(Yr,Ur.getGroupKeyForNodeData(zr.data)),Ur.addNodeData(Yr);var Un={from:zr.key,to:Ur.getKeyForNodeData(Yr)};Ur.addLinkData(Un);var Ho=er.diagram.findNodeForData(Yr);Ho.location=Tr,er.diagram.select(Ho),setTimeout(()=>{er.diagram.commandHandler.editTextBlock()},20)})};return Et(St.bn,{figure:Yi,alignment:ri,alignmentFocus:ri.opposite(),width:ri.equals(St.z6.Top)||ri.equals(St.z6.Bottom)?25:18,height:ri.equals(St.z6.Top)||ri.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:wn.white,strokeWidth:4,mouseEnter:(er,Fr)=>Fr.fill="dodgerblue",mouseLeave:(er,Fr)=>Fr.fill="orange",isActionable:!0,click:yr,contextClick:yr})}function Ei(ri){return Et(St.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:(Yi,yr)=>yr.fill="dodgerblue",mouseLeave:(Yi,yr)=>yr.fill="orange",click:(Yi,yr)=>{Yi.diagram.commandHandler.showContextMenu(yr.part.adornedPart)}},ri||{})}Qe.current.nodeTemplate.selectionAdornmentTemplate=Et(St.uz,"Spot",Et(St.Vm,{padding:10}),Kn(St.z6.Top,"TriangleUp"),Kn(St.z6.Left,"TriangleLeft"),Kn(St.z6.Right,"TriangleRight"),Kn(St.z6.Bottom,"TriangleDown"),Ei({alignment:new St.z6(.75,0)}));function tn(ri,Yi){return(yr,er)=>{yr.handled=!0,yr.diagram.model.commit(Fr=>{Fr.set(er.part.adornedPart.data,ri,Yi)})}}function sn(ri,Yi){return Yi||(Yi="color"),Et(St.bn,{width:16,height:16,stroke:"lightgray",fill:ri,margin:1,background:"transparent",mouseEnter:(yr,er)=>er.stroke="dodgerblue",mouseLeave:(yr,er)=>er.stroke="lightgray",click:tn(Yi,ri),contextClick:tn(Yi,ri)})}function In(){return[Et("ContextMenuButton",Et(St.s_,"Horizontal",sn(wn.white,"fill"),sn(wn.beige,"fill"),sn(wn.extralightblue,"fill"),sn(wn.extralightred,"fill"))),Et("ContextMenuButton",Et(St.s_,"Horizontal",sn(wn.lightgray,"fill"),sn(wn.lightgreen,"fill"),sn(wn.lightblue,"fill"),sn(wn.lightred,"fill")))]}function Oi(){return[Et("ContextMenuButton",Et(St.s_,"Horizontal",sn(wn.black),sn(wn.green),sn(wn.blue),sn(wn.red))),Et("ContextMenuButton",Et(St.s_,"Horizontal",sn(wn.white),sn(wn.magenta),sn(wn.purple),sn(wn.orange)))]}function Di(ri,Yi){return Yi||(Yi="thickness"),Et(St.bn,"LineH",{width:16,height:16,strokeWidth:ri,margin:1,background:"transparent",mouseEnter:(yr,er)=>er.background="dodgerblue",mouseLeave:(yr,er)=>er.background="transparent",click:tn(Yi,ri),contextClick:tn(Yi,ri)})}function vi(ri,Yi){return Yi||(Yi="dash"),Et(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ri,margin:1,background:"transparent",mouseEnter:(yr,er)=>er.background="dodgerblue",mouseLeave:(yr,er)=>er.background="transparent",click:tn(Yi,ri),contextClick:tn(Yi,ri)})}function Ti(){return[Et("ContextMenuButton",Et(St.s_,"Horizontal",Di(1),Di(2),Di(3),Di(4))),Et("ContextMenuButton",Et(St.s_,"Horizontal",vi(null),vi([2,4]),vi([4,4])))]}function Li(ri,Yi){return Yi||(Yi="figure"),Et(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ri,margin:1,background:"transparent",mouseEnter:(yr,er)=>er.fill="dodgerblue",mouseLeave:(yr,er)=>er.fill="lightgray",click:tn(Yi,ri),contextClick:tn(Yi,ri)})}Qe.current.nodeTemplate.contextMenu=Et("ContextMenu",Et("ContextMenuButton",Et(St.s_,"Horizontal",Li("Rectangle"),Li("RoundedRectangle"),Li("Ellipse"),Li("Diamond"))),Et("ContextMenuButton",Et(St.s_,"Horizontal",Li("Parallelogram2"),Li("ManualOperation"),Li("Procedure"),Li("Cylinder1"))),Et("ContextMenuButton",Et(St.s_,"Horizontal",Li("Terminator"),Li("CreateRequest"),Li("Document"),Li("TriangleDown"))),In(),Oi(),Ti()),Qe.current.groupTemplate=Et(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ri,Yi)=>{var yr=Yi.addMembers(Yi.diagram.selection,!0);yr||Yi.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),Et(St.s_,"Auto",{name:"BODY"},Et(St.bn,{parameter1:10,fill:wn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Et(St.Vm,{background:"transparent",margin:20})),Et(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),Qe.current.groupTemplate.selectionAdornmentTemplate=Et(St.uz,"Spot",Et(St.s_,"Auto",Et(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Et(St.Vm,{margin:1.5})),Ei({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),Qe.current.groupTemplate.contextMenu=Et("ContextMenu",In(),Oi(),Ti()),Qe.current.linkTemplate=Et(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",ri=>ri>=1?10:0),new St.KX("toShortLength","dir",ri=>ri>=1?10:0),new St.KX("points").makeTwoWay(),Et(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Et(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",ri=>ri===1)),Et(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",ri=>ri>=1),new St.KX("width","thickness",ri=>7+3*ri),new St.KX("height","thickness",ri=>7+3*ri),new St.KX("segmentOffset","thickness",ri=>new St.E9(-15,4+1.5*ri))),Et(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",ri=>ri===2),new St.KX("width","thickness",ri=>7+3*ri),new St.KX("height","thickness",ri=>7+3*ri),new St.KX("segmentOffset","thickness",ri=>new St.E9(-15,4+1.5*ri))),Et(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Qe.current.linkTemplate.selectionAdornmentTemplate=Et(St.uz,Et(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:sr(2)},new St.KX("pathPattern","thickness",sr)),Ei({alignmentFocus:new St.z6(0,0,-6,-4)}));function sr(ri){return Et(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ri+4).toString()+" H3"})}function Zr(ri){var Yi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ri===0?Yi="M0 0 M16 16 M0 8 L16 8":ri===2&&(Yi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Et(St.bn,{geometryString:Yi,margin:2,background:"transparent",mouseEnter:(yr,er)=>er.background="dodgerblue",mouseLeave:(yr,er)=>er.background="transparent",click:tn("dir",ri),contextClick:tn("dir",ri)})}function Vr(ri){var Yi=(yr,er)=>{yr.handled=!0,yr.diagram.model.commit(Fr=>{var Ur=er.part.adornedPart;Fr.set(Ur.data,ri?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(ri?Ur.toNode:Ur.fromNode).invalidateConnectedLinks()})};return Et(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yr,er)=>er.background="dodgerblue",mouseLeave:(yr,er)=>er.background="transparent",click:Yi,contextClick:Yi})}function Tn(ri,Yi){var yr=0,er=St.z6.RightSide;ri.equals(St.z6.Top)?(yr=270,er=St.z6.TopSide):ri.equals(St.z6.Left)?(yr=180,er=St.z6.LeftSide):ri.equals(St.z6.Bottom)&&(yr=90,er=St.z6.BottomSide),Yi||(yr-=180);var Fr=(Ur,zr)=>{Ur.handled=!0,Ur.diagram.model.commit(Tr=>{var Yr=zr.part.adornedPart;Tr.set(Yr.data,Yi?"toSpot":"fromSpot",St.z6.stringify(er)),(Yi?Yr.toNode:Yr.fromNode).invalidateConnectedLinks()})};return Et(St.bn,{alignment:ri,alignmentFocus:ri.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yr,background:"transparent",mouseEnter:(Ur,zr)=>zr.background="dodgerblue",mouseLeave:(Ur,zr)=>zr.background="transparent",click:Fr,contextClick:Fr})}Qe.current.linkTemplate.contextMenu=Et("ContextMenu",Oi(),Ti(),Et("ContextMenuButton",Et(St.s_,"Horizontal",Zr(0),Zr(1),Zr(2))),Et("ContextMenuButton",Et(St.s_,"Horizontal",Et(St.s_,"Spot",Vr(!1),Tn(St.z6.Top,!1),Tn(St.z6.Left,!1),Tn(St.z6.Right,!1),Tn(St.z6.Bottom,!1)),Et(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},Vr(!0),Tn(St.z6.Top,!0),Tn(St.z6.Left,!0),Tn(St.z6.Right,!0),Tn(St.z6.Bottom,!0)))));const Po=`{ "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 Xr=["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 Cr(ri){return console.log("shapeName:",ri),Xr.indexOf(ri)>=0}var Cn=new St.YI(cn.current,{maxSelectionCount:1,linkTemplate:Et(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:Et(St.uz,"Link",{locationSpot:St.z6.Center},Et(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Et(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),Et(St.bn,{isPanelMain:!0,strokeWidth:2}),Et(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(ri=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ri.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Qe.current.addDiagramListener("TextEdited",function(ri){var Yi;const yr=ri.subject.part;var er=(Yi=document.activeElement)==null?void 0:Yi.value;typeof er=="string"&&er.trim()===""&&Qe.current.model.commit(function(Fr){Fr.set(yr.data,"text","\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=Et(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),Et(St.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 St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),Et(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{Qe.current.grid=Et(St.s_,"Grid",Et(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Et(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Qe.current.grid.visible=!0,Qe.current.grid.gridCellStroke="darkgray",Qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Qe.current,Qe.current}const Qn=()=>ct(this,null,function*(){var Et,wn=Qe.current.makeImage();const Kn=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:wn.src,file_data:JSON.stringify({login:(Et=(0,Oe.eY)())==null?void 0:Et.login,data:JSON.parse(Qe.current.model.toJson())})}});$t({src:Kn.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{Rn()},500),fn(en+1),()=>{Qe.current=null}),[]),xe.createElement("div",{ref:ht,className:At.current?`${Ae.maxH60} body-overflow-initial`:"body-overflow-initial"},xe.createElement(qt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!en,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:xe.createElement(ln.Z,null,xe.createElement(be.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),xe.createElement(be.Z,{onClick:()=>{var Et,wn,Kn=Qe.current.selection.first();if(At.current=!At.current,document.activeElement&&Kn){let Ei=(wn=(Et=document.activeElement)==null?void 0:Et.value)==null?void 0:wn.trim();typeof Ei=="string"&&Qe.current.model.commit(function(tn){tn.set(Kn.data,"text",Ei||"\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}fn(en+1)}},xe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Zt},xe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ae.flowChartWrp},xe.createElement("div",{style:{display:"flex",height:"100%"}},xe.createElement("div",{style:{width:"300px",height:"100%"}},xe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),xe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ae.myPaletteDiv,ref:cn})),xe.createElement("div",{style:{flex:1,position:"relative"}},xe.createElement("div",{ref:on,style:{height:"80vh"}}))),xe.createElement("div",{className:"tr"},xe.createElement(He.ZP,{size:"large",onClick:Qn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var at=Mt,qe=pe(5112),Lt=pe(5871);const Bt=qe.ZP.Group,ft={margin:"0 8px"};var Gt=({callback:Zt,onCancel:$t})=>{function Qe(on){Zt(on)}return le.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qe},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:ft},"\u884C\u6570"),le.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(Lt.Z,null)),le.createElement("span",{style:ft},"\u5217\u6570"),le.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(Lt.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(Ye.default.Item,{name:"align"},le.createElement(Bt,null,le.createElement(qe.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(qe.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(qe.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(qe.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(He.ZP,{type:"ghost",onClick:$t},"\u53D6\u6D88")))},Sn=pe(78673),an=pe(80727),rn=pe.n(an),kn=(0,le.forwardRef)(({use3d:Zt,width:$t,height:Qe,callback:on,showSaveButton:cn},At)=>{const ht=(0,le.useRef)(),en=(0,le.useRef)(),[fn,Rn]=(0,le.useState)(!1),Qn=(0,le.useRef)({id:ht,appName:"graphing",width:$t||1e3,height:Qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{en.current=new(rn())(Qn.current,!0),window.onload=function(){en.current.inject("applet_container")}},[]);const Et=()=>{var wn=window.ggbApplet.getPNGBase64(1,!0,72);return on&&on(wn),wn};return(0,le.useEffect)(()=>{Qn.current.appName=fn?"3D":"graphing",en.current.inject("applet_container")},[fn]),(0,le.useEffect)(()=>{Rn(Zt)},[Zt]),(0,le.useImperativeHandle)(At,()=>({getImgData:Et})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ht}),le.createElement(ln.Z,{align:"middle"},le.createElement(be.Z,{flex:1},le.createElement(Sn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fn,onChange:wn=>Rn(wn)})),le.createElement(be.Z,null,le.createElement(He.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mn=pe(41588),ei=pe(8591);const Pi="link",Hn="upload-image",bn="add-flowchart",wi="draw-image",Zi="add-flowchart",Hi="code-block",rr="add-table",_r="------------",gi={default:_r,left:`:${_r}`,center:`:${_r}:`,right:`${_r}:`};var di=pe(58856);function xi(){}let $i=0;const Ri=1e4,Kr="\u2581",Sr="@\u2581\u2581@",Ne="@\u2581@",Ci=` **\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`,wr=["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 Pn(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}const Wi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qi={[Wi+"-B"]:"bold",[Wi+"-I"]:"italic"},$n={[Pi]:"\u6DFB\u52A0\u94FE\u63A5",[Hi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Hn]:"\u6DFB\u52A0\u56FE\u7247",[wi]:"\u6DFB\u52A0\u753B\u56FE",[bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[rr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qn=({defaultValue:Zt="",onChange:$t,width:Qe="100%",height:on=400,miniToolbar:cn=!1,isFocus:At=!1,watch:ht,insertTemp:en,mode:fn="markdown",id:Rn="markdown-editor-id",showResizeBar:Qn=!1,noStorage:Et=!1,showNullButton:wn=!1,showNullProgramButton:Kn=!1,hidetoolBar:Ei=!1,fullScreen:tn=!1,onBlur:sn,onCMBeforeChange:In,onFullScreen:Oi,className:Di="",disablePaste:vi=!1,disabled:Ti=!1,disabledFill:Li=!1,placeholder:sr="",values:Zr="",extraUse:Vr})=>{const[Tn,Po]=(0,le.useState)(null),[Xr,Cr]=(0,le.useState)(Zt),[Cn,ri]=(0,le.useState)(ht),[Yi,yr]=(0,le.useState)(tn),[er,Fr]=(0,le.useState)(""),[Ur,zr]=(0,le.useState)(0),[Tr,Yr]=(0,le.useState)(on),[Un,Ho]=(0,le.useState)(!1),[Yn,Ao]=(0,le.useState)(0),[Qo,nr]=(0,le.useState)(0),qo=(0,le.useRef)(),Go=(0,le.useRef)(),Lr=(0,le.useRef)(),br=(0,le.useRef)();(0,le.useEffect)(()=>{const xo=window.scrollY||window.pageYOffset;Cr(Zr),Tn==null||Tn.setValue(Zr),window.scrollTo(0,xo)},[Zr]),(0,le.useEffect)(()=>{Oi==null||Oi(Yi)},[Yi]),(0,le.useEffect)(()=>{if(qo.current){let xo=function(pi,io){var ro;if(vi){io.preventDefault();return}const Ja=io.clipboardData;if(Ja){const Ca=Ja.types.toString(),fa=Ja.items;if(Ca==="Files"||Ja.types.indexOf("Files")>-1){if(io.preventDefault(),fn=="stex")return;try{let $a=fa[1];((ro=fa[0])==null?void 0:ro.kind)==="file"&&($a=fa[0]);const Qa=$a.getAsFile(),Es=Qa.name.split(".").pop();(0,zt.I)(Qa,ys=>{var Zs,Mn,Ss;ys.id?((Zs=Qa==null?void 0:Qa.type)==null?void 0:Zs.indexOf("image"))>-1?Qr.replaceSelection(``):((Mn=Qa==null?void 0:Qa.type)==null?void 0:Mn.indexOf("video"))>-1?Qr.replaceSelection(``):((Ss=Qa==null?void 0:Qa.type)==null?void 0:Ss.indexOf("pdf"))>-1?Qr.replaceSelection(`${Qa.name}`):wr.includes(Es)?Qr.replaceSelection(`${Qa.name}`):Qr.replaceSelection(`[${Qa.name}](/api/attachments/${ys.id}?type=${ys.content_type})`):(ys==null?void 0:ys.status)===401&&(document.location.href="/user/login")})}catch($a){ei.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qr=We().fromTextArea(qo.current,{mode:fn,lineNumbers:!cn,lineWrapping:!0,value:Zt,autoCloseTags:!0,autoCloseBrackets:!0});return Qr.on("keyup",function(pi,io){io.keyCode===8&&(pi.getValue()==""?Qr.setOption("placeholder",sr):Qr.setOption("placeholder",null))}),Qr.on("keydown",function(pi,io){if(io.keyCode===8){var ro=Yo(pi);ro&&io.preventDefault()}}),At&&Qr.focus(),Qr.on("paste",xo),Ti&&Qr.on("beforeChange",function(pi,io){(io.origin==="paste"||io.origin==="+input")&&io.cancel()}),Po(Qr),()=>{Qr.off("paste",xo)}}},[]);const mo=(0,le.useCallback)(()=>{if(Go.current)try{}catch(xo){console.log(xo,"---- to set md editor body height")}},[Tr,Go,Yi]);(0,le.useEffect)(()=>{function xo(){let Qr=new ut.Z(pi=>{for(let io of pi)(io.target.offsetHeight>0||io.target.offsetWidth>0)&&(mo(),Tn.setSize("100%","100%"),Tn.refresh())});return Qr.observe(qo.current.parentElement),Qr}if(Tn){const Qr=xo();return()=>{var pi,io;(pi=qo.current)!=null&&pi.parentElement&&Qr.unobserve((io=qo.current)==null?void 0:io.parentElement)}}},[Tn,mo]),(0,le.useEffect)(()=>{if(Tn){let xo=[];for(const[Qr,pi]of Object.entries(qi)){let io={[Qr]:()=>{Ki(pi)}};xo.push(io),Tn.addKeyMap(io)}return()=>{for(let Qr of xo)Tn.removeKeyMap(Qr)}}},[Tn]),(0,le.useEffect)(()=>{tn!==Yi&&yr(tn)},[tn]),(0,di.Z)(()=>{if(!Et&&Ur>0){let xo=new Date().getTime(),Qr=window.sessionStorage.getItem(Rn);xo>=Ur+Ri&&(!Qr||Qr!==Xr)&&(window.sessionStorage.setItem(Rn,Xr),Ho(!0))}},Ri),(0,le.useEffect)(()=>{ri(ht)},[Tn,ht]),(0,le.useEffect)(()=>{Tn&&At&&Tn.focus()},[Tn,At]),(0,le.useEffect)(()=>{if(Cn&&Tn){let xo=function(pi){let io=pi.target;if(br.current){let ro=io.scrollTop/io.scrollHeight;br.current.scrollTop=br.current.scrollHeight*ro}};const Qr=Tn.getScrollerElement();return Qr.addEventListener("scroll",xo),()=>{Qr.removeEventListener("scroll",xo)}}},[Tn,Cn]),(0,le.useEffect)(()=>{if(Tn&&In){let xo=function(Qr,pi){In(Qr,pi)};return Tn.on("beforeChange",xo),()=>{Tn.off("beforeChange",xo)}}},[Tn,In]),(0,le.useEffect)(()=>{if(Tn&&sn){let xo=function(){sn(Tn.getValue())};return Tn.on("blur",xo),()=>{Tn.off("blur",xo)}}},[Tn,sn]);function Yo(xo,Qr){var pi=xo.getDoc(),io=pi.getCursor(),ro=pi.getLine(io.line),Ja=ro.charAt(io.ch-1),Ca=ro.lastIndexOf("@\u2581@",io.ch),fa=ro.lastIndexOf("@\u2581\u2581@",io.ch),$a=Ca>fa?Ca:fa,Qa=Ca>fa?3:4;if(Sr.indexOf(Ja)===-1)return null;if(console.log("change1:",Qr,xo,ro,io,$a,Ca,fa,Ja),$a>=0&&io.ch-$a<5){var Es=$a+Qa;return pi.replaceRange("",{line:io.line,ch:$a},{line:io.line,ch:Es}),{line:io.line,ch:Es}}return null}(0,le.useEffect)(()=>{if(Tn){let xo=function(Qr,pi){const io=Qr.getValue();Cr(io),zr(new Date().getTime()),Qr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$t&&(Kn?$t(io,po(io)):$t(io))};return Tn.on("change",xo),()=>{Tn.off("change",xo)}}},[Tn,$t]),(0,le.useEffect)(()=>{if(Tn)if(Zt==null)Tn.setValue(""),Cr("");else{const xo=window.scrollY||window.pageYOffset;Zt!==Tn.getValue()&&(Tn.setValue(Zt),Cr(Zt),Tn.setCursor(Ti?1:Tn.lineCount(),0),window.scrollTo(0,xo))}},[Tn,Zt]);const Ki=(0,le.useCallback)(xo=>{const Qr=Tn.getCursor(),pi=Tn.getSelection();let io=pi.split(` `);switch(xo){case"bold":return Tn.replaceSelection("**"+pi+"**"),pi===""&&Tn.setCursor(Qr.line,Qr.ch+2),Tn.focus();case"italic":return Tn.replaceSelection("*"+pi+"*"),pi===""&&Tn.setCursor(Qr.line,Qr.ch+1),Tn.focus();case"code":return Tn.replaceSelection("`"+pi+"`"),pi===""&&Tn.setCursor(Qr.line,Qr.ch+1),Tn.focus();case"inline-latex":return Fr("inline-latex"),Tn.focus();case"latex":return Tn.replaceSelection("```latex\n"+pi+"\n```"),Tn.setCursor(Qr.line+1,pi.length+1),Tn.focus();case"line-break":return Tn.replaceSelection(`
`),Tn.focus();case"list-ul":return pi===""?Tn.replaceSelection("- "+pi):Tn.replaceSelection(io.map(ro=>ro===""?"":`- ${ro}`).join(` `)),Tn.focus();case"list-ol":return pi===""?Tn.replaceSelection("1. "+pi):Tn.replaceSelection(io.map((ro,Ja)=>ro===""?"":`${Ja+1}. ${ro}`).join(` `)),Tn.focus();case"add-null-ch":return pi===""&&Tn.setCursor(Qr.line,Qr.ch),Tn.replaceSelection(Kr),Tn.focus();case"add-signal":return pi===""&&Tn.setCursor(Qr.line,Qr.ch),Tn.replaceSelection(Ne),Tn.focus();case"add-multiple":return pi===""&&Tn.setCursor(Qr.line,Qr.ch),Tn.replaceSelection(Sr),Tn.focus();case"inster-template-1":return pi===""&&Tn.setCursor(Qr.line,Qr.ch),Tn.replaceSelection(Ci),Tn.focus();case"eraser":return Tn.setValue(""),Tn.focus();case"trigger-watch":return ri(!Cn),Tn.focus();case"trigger-full-screen":return yr(!Yi),Tn.focus();case Pi:Fr(Pi);return;case Hi:Fr(Hi);return;case Hn:Fr(Hn);return;case wi:Fr(wi);return;case"maths-latex":Fr("maths-latex");return;case bn:Fr(bn);return;case rr:Fr(rr);return;default:throw new Error}},[Tn,Cn,Yi]),st=(0,le.useCallback)((xo,Qr)=>{var pi,io,ro,Ja,Ca,fa;switch(Fr(""),er){case Pi:const{title:Zs,link:Mn}=xo;return Tn.replaceSelection(`[${Zs}](${Mn})`),Tn.focus();case Hi:const{language:Ss,content:ra}=xo;return Tn.replaceSelection(["```"+Ss,ra,"```"].join(` `)),Tn.focus();case"maths-latex":for(var $a=atob(xo),Qa=new Uint8Array($a.length),Es=0;Es<$a.length;Es++)Qa[Es]=$a.charCodeAt(Es);var ys=new Blob([Qa],{type:"image/png"});(0,zt.I)(ys,Do=>{Do.id?Tn.replaceSelection(`![,](/api/attachments/${Do.id}?type=${Do.content_type})`):(Do==null?void 0:Do.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tn.replaceSelection("`$$"+xo+"$$`");break;case Hn:case wi:case Zi:const{src:hl,alt:Ol}=xo,ns=Qr,yu=(ro=(io=(pi=ns==null?void 0:ns.name)==null?void 0:pi.split("."))==null?void 0:io.pop)==null?void 0:ro.call(io);return((Ja=ns==null?void 0:ns.type)==null?void 0:Ja.indexOf("image"))>-1||!(ns!=null&&ns.type)?ns!=null&&ns.align||ns!=null&&ns.width?Tn.replaceSelection(`

${Ol||

`):Tn.replaceSelection(`${Ol||`):((Ca=ns==null?void 0:ns.type)==null?void 0:Ca.indexOf("video"))>-1?Tn.replaceSelection(``):((fa=ns==null?void 0:ns.type)==null?void 0:fa.indexOf("pdf"))>-1?Tn.replaceSelection(`${ns.name}`):wr.includes(yu)?Tn.replaceSelection(`${ns.name}`):Tn.replaceSelection(`[${ns.name}](${hl})`),Tn.focus();case rr:const{row:eu,col:ps,align:Ba}=xo;let tu=` `;for(let Do=0;Do{switch(er){case Pi:return le.createElement(vn,{callback:st,onCancel:va});case Hi:return le.createElement(yn.Z,{callback:st,onCancel:va});case Hn:return le.createElement(zt.Z,{callback:st,onCancel:va});case bn:return le.createElement(at,{callback:st,onCancel:va});case rr:return le.createElement(Gt,{callback:st,onCancel:va});case"maths-latex":return le.createElement(kn,{showSaveButton:!0,callback:st});case"inline-latex":return le.createElement(mn.Z,{showSaveButton:!0,callback:st});default:return null}},[er]);function va(){Fr("")}(0,le.useEffect)(()=>{if(Lr.current){let xo=function(Ca){ro=!0,Ja=Ca.pageY},Qr=function(){ro=!1},pi=function(Ca){if(ro){let fa=Ca.pageY-Ja;fa<0&&(fa=0),fa>300&&(fa=300);let $a=on+fa+"px";Yr($a)}},io=Lr.current,ro=!1,Ja=0;return io.addEventListener("mousedown",xo),document.addEventListener("mousemove",pi),document.addEventListener("mouseup",Qr),()=>{io.removeEventListener("mousedown",xo),document.removeEventListener("mousemove",pi),document.removeEventListener("mouseup",Qr)}}},[Tn,Lr]),(0,le.useEffect)(()=>{Yr(on)},[on]);const Ma=Pn(Qe),hs=Pn(Tr),Ga={width:Ma,height:hs},Lo=(0,le.useMemo)(()=>{if(Ur){let xo=new Date(Ur),Qr=xo.getHours(),pi=xo.getMinutes(),io=xo.getSeconds();return Qr=Qr<10?"0"+Qr:Qr,pi=pi<10?"0"+pi:pi,io=io<10?"0"+io:io,`${Qr}:${pi}:${io}`}return 0},[Ur]),po=xo=>{const Qr=[];if(Kn){let pi=-1;xo=xo.replace(/(@▁▁@|@▁@)/g,function(io,ro,Ja){Qr.push({multiLine:io!==Ne})})}return Qr};function la(){window.sessionStorage.removeItem(Rn),Ho(!1),zr(0)}function Eo(){Ho(!1),zr(0),Tn.setValue(window.sessionStorage.getItem(Rn))}(0,le.useEffect)(()=>{$n[er]&&er!==wi&&er!==bn&&setTimeout(()=>{const xo=document.getElementsByClassName("markdown-popup-form")[0],Qr=window.innerWidth/2-xo.offsetWidth/2,pi=window.innerHeight/2-xo.offsetHeight/2;Ao(Qr),nr(pi)},0)},[er]);const Na=xo=>{xo.preventDefault();const Qr=xo.clientX-Yn,pi=xo.clientY-Qo;document.body.onmousemove=io=>{let ro=io.clientX-Qr,Ja=io.clientY-pi;const Ca=document.getElementsByClassName("markdown-popup-form")[0],fa=window.innerWidth-Ca.offsetWidth,$a=window.innerHeight-Ca.offsetHeight;ro=Math.max(0,Math.min(ro,fa)),Ja=Math.max(0,Math.min(Ja,$a)),os(io.clientX,io.clientY,Qr,pi)&&(Ao(ro),nr(Ja))},document.body.onmouseup=function(){document.body.onmousemove=null}},os=(xo,Qr,pi,io)=>{const ro=document.body.clientHeight,Ja=document.body.clientWidth;return xo<20&&pi>xo||xo>Ja-20&&piQr||Qr>ro-20&&ioYe in Xe?Ft(Xe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Xe[Ye]=dt,se=(Xe,Ye)=>{for(var dt in Ye||(Ye={}))te.call(Ye,dt)&&de(Xe,dt,Ye[dt]);if(Ie)for(var dt of Ie(Ye))ee.call(Ye,dt)&&de(Xe,dt,Ye[dt]);return Xe},he=(Xe,Ye)=>lt(Xe,vt(Ye));const{useForm:ve}=le.default,Ee={width:280,marginRight:10},Be={labelCol:{span:5},wrapperCol:{span:19}};var Le=({callback:Xe,onCancel:Ye})=>{const[dt]=ve();let He=(0,wt.useRef)();function Nt(xt){He.current.width=dt.getFieldValue("width"),He.current.align=dt.getFieldValue("align"),Xe(xt,He.current)}function ot(xt,Ot){if(xt.status===-1){ke.ZP.error(xt.message);return}dt.setFieldsValue({src:`/api/attachments/${xt.id}`,type:Ot.type})}function Tt(xt){let Ot=xt.target.files[0];He.current=Ot,je(Ot,ot)}return $e.createElement(le.default,he(se({form:dt},Be),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),$e.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},$e.createElement("div",{className:"flex-container"},$e.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},$e.createElement(We.default,{style:Ee})),$e.createElement(ze,{onFileChange:Tt}))),$e.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},$e.createElement(We.default,{style:{width:264}})),$e.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},$e.createElement(ut.Z,null,$e.createElement(le.default.Item,{name:"width",style:{margin:0}},$e.createElement(Ge.Z,{style:{width:264}})),$e.createElement("span",{className:"ml8"},"%"))),$e.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},$e.createElement(Ue.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"}]})),$e.createElement("aside",null,$e.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},$e.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),$e.createElement(Me.ZP,{type:"default",onClick:Ye},"\u53D6\u6D88"))))};function ze({onFileChange:Xe}){return $e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",$e.createElement("input",{type:"file",onChange:Xe}))}function je(Xe,Ye){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");let dt=new FormData;dt.append("editormd-image-file",Xe),dt.append("file_param_name","editormd-image-file"),dt.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(Nt){Ye(JSON.parse(Nt.target.responseText),Xe)},!1),He.addEventListener("error",function(Nt){console.error(Nt)},!1),He.open("POST",`${Ct.KI}/api/attachments.json`),He.send(dt)}},79346:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return We}});var le=pe(59301),ke=pe(4676);class We extends le.Component{constructor(Ge){super(Ge);const Ue=window.document;this.node=Ue.createElement("div"),Ue.body.appendChild(this.node)}render(){const{children:Ge}=this.props;return(0,ke.createPortal)(Ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(On,pn,pe){"use strict";pe.d(pn,{SV:function(){return ct},ZP:function(){return xe}});var le=pe(59301),ke=pe(76374);const We={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"]},ut={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"]},Ge={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(` `)}]},Ue={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(` `)}]},Me={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 Ct=pe(53184),wt=pe.n(Ct),$e=Object.defineProperty,Ft=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ee=(Mt,at,qe)=>at in Mt?$e(Mt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Mt[at]=qe,de=(Mt,at)=>{for(var qe in at||(at={}))Ie.call(at,qe)&&ee(Mt,qe,at[qe]);if(vt)for(var qe of vt(at))te.call(at,qe)&&ee(Mt,qe,at[qe]);return Mt},se=(Mt,at)=>Ft(Mt,lt(at)),he=(Mt,at,qe)=>new Promise((Lt,Bt)=>{var ft=an=>{try{Sn(qe.next(an))}catch(rn){Bt(rn)}},Gt=an=>{try{Sn(qe.throw(an))}catch(rn){Bt(rn)}},Sn=an=>an.done?Lt(an.value):Promise.resolve(an.value).then(ft,Gt);Sn((qe=qe.apply(Mt,at)).next())});const ve={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ee=(Mt,at)=>at.map(qe=>({label:qe,kind:Mt.languages.CompletionItemKind.Keyword,insertText:qe})),Be=Mt=>Object.keys(ve.tables).map(at=>({label:at,kind:Mt.languages.CompletionItemKind.Variable,insertText:at})),Le=(Mt,at)=>{const qe=ve.tables[Mt];return qe?qe.map(Lt=>({label:Lt,kind:at.languages.CompletionItemKind.Field,insertText:Lt})):[]};function ze(Mt,at,qe,Lt,Bt){let ft=at.getWordUntilPosition(qe),Gt={startLineNumber:qe.lineNumber,endLineNumber:qe.lineNumber,startColumn:ft.startColumn,endColumn:ft.endColumn},Sn=Lt.map(an=>({label:an,kind:Mt.languages.CompletionItemKind.Keyword,insertText:an,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}));return Bt.map(an=>{Sn.push(se(de({},an),{range:Gt}))}),Sn}var je=Mt=>{ve.languages.map(Bt=>(Mt.languages.registerDocumentFormattingEditProvider(Bt,{provideDocumentFormattingEdits(ft,Gt,Sn){return he(this,null,function*(){const an=wt()(ft.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:ft.getFullModelRange(),text:an}]})}}),Bt));const at=Ge.quickKey.map(Bt=>({label:Bt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:Bt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),qe=Ue.quickKey.map(Bt=>({label:Bt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:Bt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Lt=ut.quickKey.map(Bt=>({label:Bt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:Bt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Mt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Bt,ft){var Gt=Bt.getWordUntilPosition(ft),Sn={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Gt.startColumn,endColumn:Gt.endColumn},an=Bt.getLineContent(ft.lineNumber).substring(Gt.startColumn-2,Gt.endColumn);return{suggestions:[...Ge.keywords.map(rn=>({label:rn,kind:Mt.languages.CompletionItemKind.Function,documentation:rn,insertText:rn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn})),...Ge.quickKey.map(rn=>({label:rn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:rn.content,insertText:an.startsWith("#")?rn.content.replace(/#/,""):rn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}))]}}}),Mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Bt,ft){var Gt=Bt.getWordUntilPosition(ft),Sn={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Gt.startColumn,endColumn:Gt.endColumn};return{suggestions:[...We.keywords.map(an=>({label:an,kind:Mt.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}))]}}}),Mt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Bt,ft){var Gt=Bt.getWordUntilPosition(ft),Sn={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Gt.startColumn,endColumn:Gt.endColumn},an=Bt.getLineContent(ft.lineNumber).substring(Gt.startColumn-2,Gt.endColumn);return{suggestions:[...ut.keywords.map(rn=>({label:rn,kind:Mt.languages.CompletionItemKind.Function,documentation:rn,insertText:rn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn})),...ut.quickKey.map(rn=>({label:rn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:rn.content,insertText:an.startsWith("#")?rn.content.replace(/#/,""):rn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}))]}}}),Mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Bt,ft){var Gt=Bt.getWordUntilPosition(ft),Sn={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Gt.startColumn,endColumn:Gt.endColumn},an=Bt.getLineContent(ft.lineNumber).substring(Gt.startColumn-2,Gt.endColumn);return{suggestions:[...Me.keywords.map(rn=>({label:rn,kind:Mt.languages.CompletionItemKind.Function,documentation:rn,insertText:rn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn})),...Me.quickKey.map(rn=>({label:rn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:rn.content,insertText:an.startsWith("#")?rn.content.replace(/#/,""):rn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}))]}}}),Mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Bt,ft){var Gt=Bt.getWordUntilPosition(ft),Sn={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Gt.startColumn,endColumn:Gt.endColumn},an=Bt.getLineContent(ft.lineNumber).substring(Gt.startColumn-2,Gt.endColumn);return{suggestions:[...Ue.keywords.map(rn=>({label:rn,kind:Mt.languages.CompletionItemKind.Function,documentation:rn,insertText:rn,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn})),...Ue.quickKey.map(rn=>({label:rn.label,kind:Mt.languages.CompletionItemKind.Function,documentation:rn.content,insertText:an.startsWith("#")?rn.content.replace(/#/,""):rn.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Sn}))]}}})};const Xe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ye=Object.defineProperty,dt=(Mt,at,qe)=>at in Mt?Ye(Mt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Mt[at]=qe,He=(Mt,at,qe)=>dt(Mt,typeof at!="symbol"?at+"":at,qe);const Nt=class mS{constructor(at,qe,Lt){this.placeholder=at,this.editor=qe,this.monaco=Lt,qe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mS.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)}};He(Nt,"ID","editor.widget.placeholderHint");var Tt=Nt,xt=pe(96236),Ot=pe(8591),Wt=pe(6848),Dt=pe(89392),tt=pe(34604),Ve=pe(56102),_t=Object.defineProperty,vn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Gn=(Mt,at,qe)=>at in Mt?_t(Mt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Mt[at]=qe,un=(Mt,at)=>{for(var qe in at||(at={}))qt.call(at,qe)&&Gn(Mt,qe,at[qe]);if(zt)for(var qe of zt(at))ln.call(at,qe)&&Gn(Mt,qe,at[qe]);return Mt},_n=(Mt,at)=>vn(Mt,yn(at)),St=(Mt,at)=>{var qe={};for(var Lt in Mt)qt.call(Mt,Lt)&&at.indexOf(Lt)<0&&(qe[Lt]=Mt[Lt]);if(Mt!=null&&zt)for(var Lt of zt(Mt))at.indexOf(Lt)<0&&ln.call(Mt,Lt)&&(qe[Lt]=Mt[Lt]);return qe},Zn=(Mt,at,qe)=>new Promise((Lt,Bt)=>{var ft=an=>{try{Sn(qe.next(an))}catch(rn){Bt(rn)}},Gt=an=>{try{Sn(qe.throw(an))}catch(rn){Bt(rn)}},Sn=an=>an.done?Lt(an.value):Promise.resolve(an.value).then(ft,Gt);Sn((qe=qe.apply(Mt,at)).next())});function ci(Mt){return/^\d+$/.test(Mt)?`${Mt}px`:Mt}function Ze(){}let be=!1;const Pe={"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 Ae(Mt=[]){let at=Mt;if(Array.isArray(Mt)){for(let qe=0;qe{var at=Mt,{width:qe="100%",height:Lt="100%",value:Bt,language:ft="javascript",style:Gt={},options:Sn={},overrideServices:an={},theme:rn="vs-dark",onEditBlur:zn,isCopy:kn=!1,onSave:mn,autoHeight:ei=!1,forbidCopy:Pi=!1,onChange:Hn=Ze,editorDidMount:bn=Ze,onFocus:wi=Ze,onBreakPoint:Zi=Ze,breakPointValue:Hi=[],filename:rr="educoder.txt",errorLine:_r,errorContent:gi="",highlightLine:di,openBreakPoint:xi=!1,placeholder:$i=""}=at,Ri=St(at,["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 Kr=(0,le.useRef)(),Sr=(0,le.useRef)({}),Ne=(0,le.useRef)(),Ci=(0,le.useRef)(),wr=(0,le.useRef)([]),Pn=(0,le.useRef)(!1),Si=(0,le.useRef)(),Wi=(0,le.useRef)(),qi=(0,le.useRef)(!1),[$n,qn]=(0,le.useState)(!1);function Zt(){let tn;return Kr.current&&(tn=new ke.Z(sn=>{for(let In of sn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&Sr.current.instance.layout()}),tn.observe(Kr.current)),tn}function $t(){Ot.ZP.warning({content:decodeURIComponent(Xe),key:"monaco-editor-tip"})}const Qe=()=>{let tn=Sr.current.instance;if(Bt!=null&&tn&&$n){const sn=tn.getModel();sn&&Bt!==sn.getValue()&&(be=!0,sn.setValue(Bt),tn.layout(),be=!1)}};(0,le.useEffect)(()=>{const tn=tt.Z.subscribe("formatDocument",sn=>{var In;let Oi=Sr.current.instance;(In=Oi==null?void 0:Oi.getAction)==null||In.call(Oi,"editor.action.formatDocument").run()});return window.updateMonacoValue=sn=>{Hn(sn)},tn},[]),(0,le.useEffect)(()=>{var tn;let sn=Sr.current.instance;Ci.current&&clearTimeout(Ci.current),Ci.current=setTimeout(()=>{Qe()},500),Bt&&(Bt!=null&&Bt.length)&&((tn=sn==null?void 0:sn.updateOptions)==null||tn.call(sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Bt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Bt,$n,Sr.current]),(0,le.useEffect)(()=>{if(_r&&Sr.current&&Sr.current.instance){let sn=Sr.current.instance;sn.changeViewZones(function(In){var Oi=document.createElement("div");Oi.style.padding="10px 20px",Oi.style.width="calc(100% - 20px)",Oi.className="my-error-line-wrp",Oi.innerHTML=gi,In.addZone({afterLineNumber:_r||11,heightInLines:3,domNode:Oi})});var tn={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}};sn.addOverlayWidget(tn),sn.revealPositionInCenter({lineNumber:20,column:1})}},[_r,Sr.current,$n]);const on=(tn="",sn)=>{if(!tn||tn.trim()==="")return!0;const Oi=Sr.current.instance.getModel().getLineTokens(sn);let Di=!1;for(let vi=0;vi<2;vi++)Oi.getStandardTokenType(vi)===1&&(Di=!0);return Di};(0,le.useEffect)(()=>{var tn;const sn=(tn=Sr.current)==null?void 0:tn.instance;if(sn&&$n&&Pi){const In=sn.onDidBlurEditorWidget(()=>{qi.current=!1}),Oi=sn.onDidFocusEditorText(()=>{qi.current=!0});return()=>{In.dispose(),Oi.dispose()}}},[Sr.current,$n,Pi]),(0,le.useEffect)(()=>{var tn;if((tn=Sr.current)!=null&&tn.instance&&$n&&xi){let sn=Sr.current.instance,In=sn.getModel();if(!In)return;(()=>{var Cr;let Cn=[],ri=[];const Yi=In.getAllDecorations();for(let er of Yi)er.options.className==="highlighted-line"&&(Cn.push((Cr=er==null?void 0:er.range)==null?void 0:Cr.startLineNumber),ri.push(er==null?void 0:er.id));if(di===Cn[0])return;In.deltaDecorations(ri,[]);const yr=In.getLineCount();di&&di<=yr&&(sn.deltaDecorations([],[{range:new Oe.Range(di,1,di,In.getLineMaxColumn(di)),options:{isWholeLine:!0,className:"highlighted-line"}}]),sn.revealLineInCenter(di))})();const Di=(Cr=!1)=>{var Cn;let ri=[],Yi=[];const yr=In.getAllDecorations();for(let er of yr)er.options.linesDecorationsClassName==="breakpoints-select"&&(ri.push((Cn=er==null?void 0:er.range)==null?void 0:Cn.startLineNumber),Yi.push(er==null?void 0:er.id));if(Cr)return{lines:ri,ids:Yi};Zi(ri)},vi=Cr=>Zn(void 0,null,function*(){let Cn={range:new Oe.Range(Cr,1,Cr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield In.deltaDecorations([],[Cn]),Di()}),Ti=Cr=>Zn(void 0,null,function*(){let Cn=[];const ri=sn.getLineDecorations(Cr);for(let Yi of ri)Yi.options.linesDecorationsClassName==="breakpoints-select"&&Cn.push(Yi.id);yield In.deltaDecorations(Cn,[]),Di()}),Li=Cr=>{let Cn=sn.getLineDecorations(Cr);for(let ri of Cn)if(ri.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Dt.isEqual)(Hi,Di(!0).lines)){In.deltaDecorations(Di(!0).ids,[]);const Cr=Hi.map(Cn=>({range:new Oe.Range(Cn,1,Cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));In.deltaDecorations([],Cr)}const sr=sn.onDidChangeModelContent(Cr=>{let Cn=sn.getPosition();if(Cn){let ri=Cn.lineNumber;clearTimeout(Wi.current),Wi.current=setTimeout(()=>{on(In.getLineContent(ri),ri)?Ti(ri):Li(ri)?(Ti(ri),vi(ri)):Di()},100)}}),Zr=sn.onMouseDown(Cr=>{var Cn,ri,Yi;if(Cr.target.detail&&((Yi=(ri=(Cn=Cr.target)==null?void 0:Cn.element)==null?void 0:ri.className)!=null&&Yi.includes("line-numbers"))){let yr=Cr.target.position.lineNumber;if(on(In.getLineContent(yr),yr))return;Li(yr)?Ti(yr):vi(yr)}}),Vr=Cr=>{let Cn={range:new Oe.Range(Cr,1,Cr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wr.current=sn.deltaDecorations(wr.current,[Cn])},Tn=()=>{wr.current=sn.deltaDecorations(wr.current,[])},Po=sn.onMouseMove(Cr=>{var Cn,ri,Yi;if(Tn(),Cr.target.detail&&((Yi=(ri=(Cn=Cr.target)==null?void 0:Cn.element)==null?void 0:ri.className)!=null&&Yi.includes("line-numbers"))){let yr=Cr.target.position.lineNumber;if(on(In.getLineContent(yr),yr))return;Vr(yr)}}),Xr=sn.onMouseLeave(()=>{Tn()});return()=>{sr.dispose(),Zr.dispose(),Po.dispose(),Xr.dispose()}}},[Sr.current,$n,Hi,di,xi,ft]),(0,le.useEffect)(()=>{var tn;(tn=Sr.current)!=null&&tn.instance&&xi&&Sr.current.instance.setPosition({lineNumber:0,column:0})},[di]);function cn(){let tn=Sr.current.instance;if(tn){const sn=tn.getSelection(),In=Sr.current.pastePos||{},Oi=new Oe.Range(In.startLineNumber||sn.endLineNumber,In.startColumn||sn.endColumn,In.endLineNumber||sn.endLineNumber,In.endColumn||sn.endColumn);setTimeout(()=>{tn.executeEdits("",[{range:Oi,text:""}])},300)}}function At(tn){(window.navigator.platform.match("Mac")?tn.metaKey:tn.ctrlKey)&&tn.keyCode==83&&(tn.preventDefault(),mn())}const ht=()=>{if(ei&&Sr.current.instance){const tn=Sr.current.instance.getContentHeight();Kn(tn{if(!qi.current)return;const{keyCode:sn,ctrlKey:In,metaKey:Oi,target:Di,type:vi}=tn;return(vi==="paste"||(sn===67||sn===86)&&(Oi||In))&&Di.nodeName==="TEXTAREA"&&($t(),tn.preventDefault()),!1};function Rn(tn,sn){var In=window.URL||window.webkitURL||window,Oi=new Blob([sn]),Di=document.createElementNS("http://www.w3.org/1999/xhtml","a");Di.href=In.createObjectURL(Oi),Di.download=tn,en(Di)}(0,le.useEffect)(()=>{ht()},[ht]),(0,le.useEffect)(()=>{Kr.current&&!$n&&Promise.all([pe.e(8909),pe.e(3267)]).then(pe.bind(pe,71448)).then(tn=>{try{Oe=tn,Sr.current.instance=Oe.editor.create(Kr.current,{value:Bt,language:Ae(ft),theme:rn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},an);const sn=Sr.current.instance;let Di=[...xt.BH._menuItems].find(sr=>sr[0]._debugName=="EditorContext")[1],vi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ti=(sr,Zr)=>{var Vr,Tn;let Po=sr._first;do Zr.includes((Tn=(Vr=Po.element)==null?void 0:Vr.command)==null?void 0:Tn.id)&&sr._remove(Po);while(Po=Po.next)};if(bn(sn,Oe),setTimeout(()=>{ht(),Sr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Rn(rr||"educoder.txt",sn.getValue())}})},500),Sr.current.subscription=sn.onDidChangeModelContent(sr=>{Pn.current?clearTimeout(Si.current):(ht(),Hn(sn.getValue(),sr)),Si.current=setTimeout(()=>{Pn.current=!1},500)}),window.Monaco||je(Oe,Ae(ft)),Pi&&(Ti(Di,vi),Kr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",fn),window.removeEventListener("paste",fn),window.addEventListener("keydown",fn),window.addEventListener("paste",fn)),window.Monaco=Oe,zn&&sn.onDidBlurEditorWidget(()=>{zn(sn.getValue())}),wi&&sn.onDidFocusEditorText(()=>{wi(sn.getValue())}),Pi)try{sn.onDidPaste(sr=>{const Zr=sn.getSelection(),Vr=Sr.current.pastePos||{},Tn=new Oe.Range(Vr.startLineNumber||Zr.endLineNumber,Vr.startColumn||Zr.endColumn,Vr.endLineNumber||Zr.endLineNumber,Vr.endColumn||Zr.endColumn);sn.executeEdits("",[{range:sr.range,text:""}])})}catch(sr){}let Li=Zt();return $i&&typeof $i=="string"&&new Tt($i,sn,Oe),qn(!0),()=>{const sr=Sr.current.instance;sr.dispose();const Zr=sr.getModel();Zr&&Zr.dispose(),Sr.current.subscription&&Sr.current.subscription.dispose(),Li.unobserve(Kr.current)}}catch(sn){}})},[]),(0,le.useEffect)(()=>{if(Sr.current.instance&&$n)return document.addEventListener("keydown",At,!1),()=>{document.removeEventListener("keydown",At)}},[mn,$n]),(0,le.useEffect)(()=>{let tn=Sr.current.instance;if(tn&&$n){let sn=Ae(ft);Oe.editor.setModelLanguage(tn.getModel(),sn)}},[ft,$n]),(0,le.useEffect)(()=>{Sr.current.instance&&$n&&Oe.editor.setTheme(rn)},[rn,$n]),(0,le.useEffect)(()=>{let tn=Sr.current.instance;Ne.current=Sn,tn&&$n&&(tn.updateOptions(un({},Sn)),setTimeout(()=>{tn.getModel().updateOptions(un({},Sn))},200))},[JSON.stringify(Sn),$n]),(0,le.useEffect)(()=>{let tn=Sr.current.instance;tn&&$n&&tn.layout()},[qe,Lt,$n]);const[Qn,Et]=(0,le.useState)(ci(qe)),[wn,Kn]=(0,le.useState)(ci(Lt)),Ei=_n(un({},Gt),{width:Qn,height:wn,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:Kr,style:Ei},kn&&le.createElement(Ve.CopyToClipboard,{text:Bt,onCopy:()=>Ot.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(Wt.Z,{title:"\u590D\u5236\u4EE3\u7801"},le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ct({width:Mt="100%",height:at="100%",original:qe,modified:Lt,language:Bt,options:ft={}}){const Gt=(0,le.useRef)(),[Sn,an]=(0,le.useState)(null);function rn(ei){let Pi;return Gt.current&&(Pi=new ke.Z(Hn=>{for(let bn of Hn)(bn.target.offsetHeight>0||bn.target.offsetWidth>0)&&ei.layout()}),Pi.observe(Gt.current)),Pi}(0,le.useEffect)(()=>(Gt.current&&Promise.all([pe.e(8909),pe.e(9404)]).then(pe.bind(pe,2550)).then(ei=>{Oe=ei;const Pi=Oe.editor.createDiffEditor(Gt.current,_n(un({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},ft),{wordWrap:!0}));an(Pi);let Hn=rn(Pi);return()=>{Pi.dispose();const bn=Pi.getModel();bn&&bn.dispose(),Hn.unobserve(Gt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{Sn&&Sn.setModel({original:Oe.editor.createModel(qe,Bt),modified:Oe.editor.createModel(Lt,Bt)})},[qe,Lt,Bt,Sn]);const zn=ci(Mt),kn=ci(at),mn={width:zn,height:kn};return le.createElement("div",{className:"my-diff-editor",ref:Gt,style:mn})}},85057:function(On,pn,pe){"use strict";pe.d(pn,{jL:function(){return Ge},w9:function(){return qt},QD:function(){return Hn},cQ:function(){return Ve},op:function(){return rn},O5:function(){return qi},_b:function(){return _r},t7:function(){return se},Gi:function(){return Zn},YG:function(){return _n},qp:function(){return Ft},vr:function(){return Zi},qE:function(){return mn},Je:function(){return Ee},wb:function(){return xt},cq:function(){return Oe},tp:function(){return Ie}});var le=pe(59301),ke={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"},We="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==",Ge=({dataSource:$n=[],img:qn,imgWidth:Zt=346,title:$t,sunTitle:Qe,bannerExtraContent:on})=>le.createElement("div",{className:ke.banner},le.createElement("div",{className:ke.content},le.createElement("aside",null,le.createElement("p",null,le.createElement("b",null,$t),le.createElement("span",null,Qe)),$n.length>0&&le.createElement("div",{className:ke.btns},$n.map((cn,At)=>le.createElement("div",{key:At,onClick:cn.click},cn.name,cn.sign?le.createElement("img",{src:We,width:39}):null))),on),qn&&le.createElement("img",{style:{marginTop:33,marginRight:38},src:qn,width:Zt}))),Ue={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"},Me=pe(92310),Ct=pe.n(Me),wt=pe(89392),Ft=({dataSource:$n=[],value:qn,onChange:Zt,onTitleChange:$t,className:Qe,title:on,titleWidth:cn=41,style:At={},fontColor:ht="#6A7283",showCount:en})=>{const[fn,Rn]=(0,le.useState)(0),[Qn,Et]=(0,le.useState)(!1),wn=(0,le.useRef)(null),Kn=(0,le.useRef)(null);return(0,le.useEffect)(()=>{var Ei;$n.length!==0&&(((Ei=wn==null?void 0:wn.current)==null?void 0:Ei.clientHeight)>97?Rn(1):Rn(0)),$n.length===0&&Rn(0),Et(!1)},[$n]),le.createElement("div",{className:Ct()(Ue.row,Qe),style:At},le.createElement("div",{onClick:(0,wt.throttle)(()=>$t==null?void 0:$t(),2e3),style:{width:cn,marginTop:Qn?12:4},className:`${Ue.title} ${$t?"current":""}`},on),le.createElement("div",{className:Qn?`${Ue.tagsWrap} ${Ue.tagsBorderWrap}`:Ue.tagsWrap},le.createElement("div",{className:Ue.bar,ref:Kn,style:fn>0?{height:fn===1?97:"auto",overflow:fn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},le.createElement("div",{className:Ue.tag,ref:wn},$n==null?void 0:$n.map(Ei=>le.createElement("span",{onClick:()=>Zt(Ei.id),key:Ei.id,style:{color:ht},className:qn===Ei.id?Ue.active:""},le.createElement("span",{title:Ei.name,className:Ue.name},Ei.name),!!en&&le.createElement("span",{className:Ue.num},Ei.count))))),!!fn&&le.createElement(le.Fragment,null,fn===1?le.createElement("div",{onClick:()=>{var Ei;Rn(2),((Ei=wn==null?void 0:wn.current)==null?void 0:Ei.clientHeight)>245?Et(!0):Et(!1)},className:Ue.action},"\u5C55\u5F00",le.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):le.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,Rn(1),Et(!1)},className:Ue.action},"\u6536\u8D77",le.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},lt={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"},Ie=({dataSource:$n=[],value:qn,onChange:Zt,className:$t,style:Qe={}})=>le.createElement("div",{style:Qe,className:Ct()(lt.tabs,$t)},$n.map(on=>le.createElement("span",{onClick:()=>Zt(on.id),className:qn===on.id?lt.active:"",key:on.id},on.name))),te={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"},ee=pe(92832),se=({dataSource:$n=[],value:qn="",onChange:Zt,onInputChange:$t=()=>{},className:Qe,style:on={},placeholder:cn,allowClear:At=!1})=>{var ht;const[en,fn]=(0,le.useState)(""),[Rn,Qn]=(0,le.useState)("");(0,le.useEffect)(()=>{var Kn;let Ei=qn;(Kn=JSON.stringify(qn))!=null&&Kn.includes("{")&&(fn(qn.id),Ei=qn.value||"");try{Qn(decodeURIComponent(Ei||""))}catch(tn){Qn(decodeURIComponent(Ei||""))}},[qn]);const Et=()=>{Zt(encodeURIComponent(Rn),en||null)},wn=Kn=>{Kn!==en&&(fn(Kn),Zt(encodeURIComponent(Rn),Kn))};return le.createElement("div",{className:Ct()(te.input,Qe),style:on},!!$n.length&&le.createElement("div",{className:te.dropdown},le.createElement("div",{className:te.text},(ht=$n.find(Kn=>Kn.id===en))==null?void 0:ht.name,le.createElement("i",{className:"iconfont icon-zhankai4"}),le.createElement("b",{className:te.b1}),le.createElement("b",{className:te.b2})),le.createElement("div",{className:te.menu},$n.map((Kn,Ei)=>le.createElement("div",{key:Ei,onClick:()=>wn(Kn.id)},Kn.name)))),le.createElement(ee.default,{onPressEnter:Et,value:Rn,onChange:Kn=>{Qn(Kn.target.value),$t(encodeURIComponent(Kn.target.value),en||null)},bordered:!1,placeholder:cn}),le.createElement("i",{onClick:Et,className:"iconfont icon-sousuo9 font14 pl10 current"}))},he={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"},Ee=({value:$n,onChange:qn,className:Zt,total:$t,pageSize:Qe,style:on={}})=>{const cn=$n<2,At=$n>=Math.ceil($t/Qe);return $t<=Qe?le.createElement(le.Fragment,null):le.createElement("div",{className:Ct()(he.quickPager,Zt),style:on},le.createElement("div",{onClick:()=>{cn||qn($n-1,"prev")},className:cn?he.disabled:""},"\u4E0A\u4E00\u9875"),le.createElement("div",{onClick:()=>{At||qn($n+1,"next")},className:At?he.disabled:""},"\u4E0B\u4E00\u9875"))},Be={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"},Le=pe(71418),ze=pe(6848),je=pe(13570),Xe=pe(3294),Ye=pe(955),dt=pe(96908),He=pe(57177),Nt=pe(81378),ot=pe(8797),xt=({className:$n,dataSource:qn=[],col:Zt=4,right:$t,bottom:Qe=23,precision:on=0,wrapWidth:cn=1200,trackEventItems:At,loading:ht})=>{const en=Math.floor((cn-(Zt-1)*$t)/Zt);return le.createElement(Le.Z,{spinning:ht},le.createElement("div",{className:Ct()(Be.list,$n)},!!qn.length&&qn.map((fn,Rn)=>{const{name:Qn,id:Et,identifier:wn,power:Kn,cover_image_id:Ei,pic:tn}=fn;return le.createElement("div",{className:Be.wrap,key:Et,style:{width:en,marginRight:(1+Rn)%Zt===0?0:$t+on,marginBottom:Qe}},le.createElement("a",{target:"_blank",href:`/shixuns/${wn}/challenges`,className:Be.li,onClick:sn=>{sn.preventDefault(),At&&(0,Ye.L9)([At]),Kn&&(0,Ye.xg)(`/shixuns/${wn}/challenges`)}},le.createElement("div",{className:Be.img},le.createElement("img",{className:Be.cover,src:`${tn}`}),fn.is_jupyter&&le.createElement("img",{className:Be.sign,src:dt}),fn.is_jupyter_lab&&le.createElement("img",{className:Be.sign,src:He}),fn.is_unity_3d&&le.createElement("img",{className:Be.sign,src:Nt})),le.createElement("div",{className:Be.name},le.createElement(ze.Z,{title:Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},le.createElement("span",{className:Be.e},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),le.createElement("div",{className:Be.tags},le.createElement(ze.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),le.createElement("span",null,fn.challenges_count))),!!fn.myshixuns_count&&le.createElement(ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),le.createElement("span",null,fn.myshixuns_count))),le.createElement(ze.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},le.createElement("span",null,le.createElement("span",null,fn.level))),le.createElement("div",{className:Be.rate},le.createElement(je.Z,{allowHalf:!0,disabled:!0,defaultValue:fn.score_info}),le.createElement("span",null,"\xA0",fn.score_info?`${fn.score_info}\u5206`:"5\u5206")))),!Kn&&le.createElement("div",{className:Be.lockWrap},le.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),le.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qn.length&&le.createElement(ot.Z,null)))},Ot={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"},Wt=pe(24065),Dt=pe(59301),Ve=({className:$n,dataSource:qn=[],col:Zt=4,right:$t,bottom:Qe=23,precision:on=0,wrapWidth:cn=1200,trackEventItems:At,loading:ht,onRemove:en=()=>{},isCurrent:fn=!0,showAlias:Rn=!1})=>{const Qn=Math.floor((cn-(Zt-1)*$t)/Zt),Et=[{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 Dt.createElement(Le.Z,{spinning:ht},Dt.createElement("div",{className:Ct()(Ot.list,$n)},!!(qn!=null&&qn.length)&&(qn==null?void 0:qn.map((wn,Kn)=>{var Ei;const{name:tn,id:sn,identifier:In,featured:Oi,school_name:Di,image_url:vi,excellent:Ti,is_plan:Li}=wn;return Dt.createElement("div",{key:sn,className:Ot.wrap,style:{width:Qn,marginRight:(1+Kn)%Zt===0?0:$t+on,marginBottom:Qe}},Dt.createElement("a",{className:Ot.li,onClick:sr=>{sr.preventDefault(),sr.stopPropagation(),At&&(0,Ye.L9)([At]),(0,Ye.xg)(`/paths/${In}`)}},Dt.createElement("div",{className:Ot.img},Dt.createElement("img",{className:Ot.cover,src:`${vi}`}),fn&&(0,Wt.bg)()&&(wn==null?void 0:wn.studying)&&Dt.createElement("div",{className:`${Ot.movebq} user-path-items`,onClick:sr=>{sr.stopPropagation(),en(wn)}},Dt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Dt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ei=wn==null?void 0:wn.subject_tags)==null?void 0:Ei.map((sr,Zr)=>{var Vr,Tn;if(Zr===0){const Xr=(Vr=Et.find(Cr=>Cr.name==sr))==null?void 0:Vr.swimg;return Dt.createElement("img",{className:Ot.sign,src:Xr,style:{left:"-4px"}})}const Po=(Tn=Et.find(Xr=>Xr.name==sr))==null?void 0:Tn.ptimg;return Dt.createElement("img",{className:Ot.sign,src:Po,style:{left:`${48+52*(Zr-1)+2*Zr}px`}})}),Dt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(wn==null?void 0:wn.excellent)&&Dt.createElement("div",{className:Ot.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Dt.createElement("div",{className:Ot.name},Dt.createElement(ze.Z,{title:Rn&&(wn!=null&&wn.excellent_alias_name)?Dt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${tn}`,Dt.createElement("br",null),Dt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${wn==null?void 0:wn.excellent_alias_name}`)):tn},Dt.createElement("span",{className:Ot.e},Rn&&(wn==null?void 0:wn.excellent_alias_name)||tn))),Dt.createElement(ze.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Di}`},Dt.createElement("div",{className:Ot.unit},Dt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Di)),Dt.createElement("div",{className:Ot.tags},Dt.createElement("div",null,Dt.createElement(ze.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Dt.createElement("span",null,Dt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Dt.createElement("span",null,wn.stages_count))),Dt.createElement(ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Dt.createElement("span",null,Dt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Dt.createElement("span",null,wn.members_count)))))))})),!qn.length&&Dt.createElement(ot.Z,null)))},_t={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"},vn="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",yn=pe(59301),qt=({className:$n,dataSource:qn=[],col:Zt=4,right:$t,bottom:Qe=23,precision:on=0,wrapWidth:cn=1200,trackEventItems:At,loading:ht,handleVery:en=()=>!0})=>{const fn=Math.floor((cn-(Zt-1)*$t)/Zt);return yn.createElement(Le.Z,{spinning:ht},yn.createElement("div",{className:Ct()(_t.list,$n)},!!qn.length&&qn.map((Rn,Qn)=>{const{subject_identifier:Et,id:wn,identifier:Kn,power:Ei}=Rn,tn=Rn.is_public!=0&&Rn.is_public;return yn.createElement("div",{className:_t.wrap,key:wn,style:{width:fn,marginRight:(1+Qn)%Zt===0?0:$t+on,marginBottom:Qe}},yn.createElement("a",{className:_t.li,onClick:sn=>{sn.preventDefault(),en(Rn==null?void 0:Rn.first_category_url)&&(At&&(0,Ye.L9)([At]),(0,Ye.xg)(Rn.first_category_url))}},yn.createElement("div",{className:_t.top},yn.createElement(ze.Z,{title:Rn.name},yn.createElement("div",{className:_t.name},Rn.name)),yn.createElement("img",{className:_t.img,src:Xe.Z.IMG_SERVER+"/images/"+Rn.avatar_url}),yn.createElement("div",{className:_t.text,title:Rn.creator},Rn.creator),Et&&yn.createElement("div",{className:_t.btns},yn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),yn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),tn&&yn.createElement("div",{className:_t.sign},"\u516C\u5F00")),yn.createElement("div",{className:_t.bottom},Rn.visits>0&&yn.createElement(ze.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-liulanyan"}),yn.createElement("span",null,Rn.visits))),Rn.course_members_count>0&&yn.createElement(ze.Z,{title:"\u6210\u5458",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-chengyuan"}),Rn.course_members_count)),Rn.tasks_count>0&&yn.createElement(ze.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-zuoye"}),Rn.tasks_count)),Rn.is_end?yn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):yn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Rn.is_accessible&&yn.createElement("div",{className:_t.lockWrap},yn.createElement("img",{src:`${Xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qn.length&&yn.createElement(ot.Z,null)))},ln={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"},Gn=pe(89070),_n=({dataSource:$n=[],value:qn,onChange:Zt,className:$t,style:Qe={},tabBarExtraContent:on})=>le.createElement("div",{className:Ct()(ln.tabs,$t),style:Qe},le.createElement("div",{className:ln.tabsWrap},$n.map((cn,At)=>!(cn!=null&&cn.hide)&&le.createElement("aside",{className:ln.tab,onClick:()=>{Zt(cn.id),cn.link&&Gn.history.push(cn.link)},key:At},le.createElement("div",{className:qn===cn.id?ln.active:""},cn.name),(cn==null?void 0:cn.resetCount)==null&&(cn==null?void 0:cn.total)!==void 0&&le.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&&le.createElement(ze.Z,{title:(cn==null?void 0:cn.tip)!=null?cn==null?void 0:cn.tip:""},le.createElement("span",{style:{color:"#9096A3"}},"\uFF08",le.createElement("span",{style:{color:"#000"}},cn==null?void 0:cn.resetCount),"/",le.createElement("span",null,cn==null?void 0:cn.total),"\uFF09"))))),le.createElement("div",{className:ln.tabBar},on)),Zn=({className:$n,style:qn={},children:Zt})=>le.createElement("div",{className:Ct()($n),style:qn},Zt),ci={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"},Ze=pe(38854),be=pe(20834);const Pe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Oe=({sortValue:$n,dropValue:qn,className:Zt,onSort:$t,onDrop:Qe,dataSource:on=Pe})=>{var cn;return le.createElement("div",{className:Ct()(ci.orderWrap,Zt)},le.createElement(Ze.Z,{dropdownRender:()=>le.createElement(be.default,null,on.map((At,ht)=>le.createElement(be.default.Item,{key:ht,onClick:()=>Qe(At.id)},At.name)))},le.createElement("span",{className:ci.orderTextWrap},(cn=on.find(At=>qn===At.id))==null?void 0:cn.name)),le.createElement("span",{className:ci.orderIconWrap},le.createElement("span",{className:ci.orderAsc},le.createElement("i",{className:$n==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ci.cursorPointer} ${ci.active}`:`iconfont icon-sanjiaoxing-up font12 ${ci.cursorPointer}`,onClick:()=>$t($n==="asc"?"desc":"asc")})),le.createElement("span",{className:ci.orderDesc},le.createElement("i",{className:$n==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ci.cursorPointer} ${ci.active}`:`iconfont icon-sanjiaoxing-down font12 ${ci.cursorPointer}`,onClick:()=>$t($n==="asc"?"desc":"asc")}))))},xe={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"},ct=pe(3113),Mt=Object.defineProperty,at=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Bt=($n,qn,Zt)=>qn in $n?Mt($n,qn,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):$n[qn]=Zt,ft=($n,qn)=>{for(var Zt in qn||(qn={}))qe.call(qn,Zt)&&Bt($n,Zt,qn[Zt]);if(at)for(var Zt of at(qn))Lt.call(qn,Zt)&&Bt($n,Zt,qn[Zt]);return $n},Gt=($n,qn)=>{var Zt={};for(var $t in $n)qe.call($n,$t)&&qn.indexOf($t)<0&&(Zt[$t]=$n[$t]);if($n!=null&&at)for(var $t of at($n))qn.indexOf($t)<0&&Lt.call($n,$t)&&(Zt[$t]=$n[$t]);return Zt},Sn=($n,qn,Zt)=>new Promise(($t,Qe)=>{var on=ht=>{try{At(Zt.next(ht))}catch(en){Qe(en)}},cn=ht=>{try{At(Zt.throw(ht))}catch(en){Qe(en)}},At=ht=>ht.done?$t(ht.value):Promise.resolve(ht.value).then(on,cn);At((Zt=Zt.apply($n,qn)).next())}),rn=$n=>{var qn=$n,{className:Zt,style:$t,children:Qe,loading:on=!1,openLoading:cn,onClick:At=()=>{},size:ht="middle",shape:en="round"}=qn,fn=Gt(qn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Rn,Qn]=(0,le.useState)(!1);return le.createElement(ct.ZP,ft({onClick:(0,wt.throttle)(Et=>Sn(void 0,null,function*(){cn&&Qn(!0);try{yield At(Et)}catch(wn){console.log("error",wn)}cn&&Qn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ct()(xe.btn,xe[`${ht}-${en}`],Zt),style:$t,size:ht,shape:en,loading:Rn||on},fn),Qe)},zn={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"},mn=({className:$n,style:qn,children:Zt=null,onClick:$t,title:Qe})=>le.createElement("div",{className:Ct()(zn.head,$n),style:qn},le.createElement("span",{className:"primary-hover",onClick:$t},le.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),le.createElement("b",{title:Qe},Qe),le.createElement("div",{className:zn.node},Zt)),ei={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"},Hn=({confirmShow:$n=!0,confirmTitle:qn,confirmClick:Zt,cancelShow:$t=!0,cancelTitle:Qe,cancelClick:on,className:cn,style:At,confirmLoading:ht=!1})=>le.createElement("div",{className:Ct()(ei.btns,cn),style:At},$n&&le.createElement(ct.ZP,{loading:ht,onClick:Zt,type:"primary",className:ei.confirm},qn),$t&&le.createElement(ct.ZP,{onClick:on,className:ei.cancel},Qe)),bn={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"},Zi=({className:$n,style:qn={},LeftContent:Zt,children:$t,RightContent:Qe})=>le.createElement("div",{className:Ct()(bn.fixedBottom,$n),style:qn},le.createElement("div",{className:bn.wrap},le.createElement("div",{className:bn.left},Zt),le.createElement("div",{className:bn.center},$t),le.createElement("div",{className:bn.right},Qe))),Hi={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"},_r=({className:$n,style:qn={},dataSource:Zt=[]})=>le.createElement("div",{className:Ct()(Hi.crumbs,$n),style:qn},Zt.map(($t,Qe)=>QeGn.history.push($t.path)},$t.name):le.createElement("span",null,$t.name),le.createElement("span",null,"\xA0",">","\xA0")):le.createElement("span",{key:Qe,style:{color:"#5F6368"}},$t.name))),gi=pe(31797),di=Object.defineProperty,xi=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,Ne=($n,qn,Zt)=>qn in $n?di($n,qn,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):$n[qn]=Zt,Ci=($n,qn)=>{for(var Zt in qn||(qn={}))Kr.call(qn,Zt)&&Ne($n,Zt,qn[Zt]);if(Ri)for(var Zt of Ri(qn))Sr.call(qn,Zt)&&Ne($n,Zt,qn[Zt]);return $n},wr=($n,qn)=>xi($n,$i(qn)),Pn=($n,qn)=>{var Zt={};for(var $t in $n)Kr.call($n,$t)&&qn.indexOf($t)<0&&(Zt[$t]=$n[$t]);if($n!=null&&Ri)for(var $t of Ri($n))qn.indexOf($t)<0&&Sr.call($n,$t)&&(Zt[$t]=$n[$t]);return Zt};const{Countdown:Si}=gi.default;var qi=$n=>{var qn=$n,{onChange:Zt}=qn,$t=Pn(qn,["onChange"]);const[Qe,on]=(0,le.useState)(null);(0,le.useEffect)(()=>{typeof Qe=="number"&&Qe>=0&&Zt(Qe)},[Qe]);const cn=At=>{const ht=Math.floor(At/1e3);on(ht)};return le.createElement(Si,wr(Ci({},$t),{onChange:cn}))}},58856:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ke}});var le=pe(59301);function ke(We,ut){const Ge=(0,le.useRef)();(0,le.useEffect)(()=>{Ge.current=We}),(0,le.useEffect)(()=>{function Ue(){Ge.current()}if(ut!==null){let Me=setInterval(Ue,ut);return()=>clearInterval(Me)}},[ut])}},74440:function(On,pn,pe){"use strict";pe.d(pn,{h:function(){return le}});var le=(ke=>(ke[ke.NOMATCH=-1]="NOMATCH",ke[ke.OK=0]="OK",ke[ke.TIMEOUT=2]="TIMEOUT",ke[ke.PODFAILURE=3]="PODFAILURE",ke[ke.COMPILEFAILURE=4]="COMPILEFAILURE",ke[ke.EXECUTEFAILURE=5]="EXECUTEFAILURE",ke[ke.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ke))(le||{})},88264:function(On,pn,pe){"use strict";pe.d(pn,{H7:function(){return te},MK:function(){return Ie},MU:function(){return $e},X6:function(){return lt},bM:function(){return wt},fi:function(){return ee},fu:function(){return Ct},n4:function(){return de},rX:function(){return vt},vl:function(){return se},zO:function(){return Ft}});var le=pe(99064),ke=Object.defineProperty,We=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(he,ve,Ee)=>ve in he?ke(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):he[ve]=Ee,Me=(he,ve)=>{for(var Ee in ve||(ve={}))ut.call(ve,Ee)&&Ue(he,Ee,ve[Ee]);if(We)for(var Ee of We(ve))Ge.call(ve,Ee)&&Ue(he,Ee,ve[Ee]);return he};function Ct(he,ve){return(0,le.U2)(`myproblems/${he}.json`,Me({hidePopLogin:!0},ve||{}))}function wt(he,ve){return(0,le.v_)(`myproblems/${he}/code_submit.json`,ve)}function $e(he,ve){return(0,le.v_)(`myproblems/${he}/code_debug.json`,ve)}function Ft(he,ve){return ve.language&&(ve.language=encodeURIComponent(ve.language)),(0,le.U2)(`myproblems/${he}/submit_records.json`,ve)}function lt(he){return(0,le.U2)("myproblems/record_detail.json",{id:he})}function vt(he,ve){return(0,le.U2)(`myproblems/${he}/result.json`,{mode:ve})}function Ie(he,ve){return(0,le.v_)(`myproblems/${he}/add_notes.json`,ve)}function te(he,ve){return(0,le.v_)(`myproblems/${he}/restore_initial_code.json`,ve)}function ee(he){return(0,le.v_)(`myproblems/${he}/sync_code.json`)}function de(he,ve){return(0,le.v_)(`myproblems/${he}/update_code.json`,ve)}function se(he,ve){return(0,le.v_)(`discusses/${he}/plus.json`,ve)}},92744:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return xu}});var le=pe(59301),ke={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},We=pe(78241),ut=pe(6848),Ge=pe(3113),Ue=pe(43418),Me=pe(5871),Ct=pe(8591),wt=pe(92832),$e=pe(28103),Ft=pe(24905),lt=pe(95237),vt=pe(43604),Ie=pe(58421),te=pe(60324),ee=Object.defineProperty,de=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ve=(Jt,Yt,Dn)=>Yt in Jt?ee(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,Ee=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))se.call(Yt,Dn)&&ve(Jt,Dn,Yt[Dn]);if(de)for(var Dn of de(Yt))he.call(Yt,Dn)&&ve(Jt,Dn,Yt[Dn]);return Jt};const Be=Jt=>React.createElement("svg",Ee({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var Le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",ze=pe(85149),je=pe(89070),Xe=pe(955),Ye=pe(99064),dt=Object.defineProperty,He=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Tt=(Jt,Yt,Dn)=>Yt in Jt?dt(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,xt=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))Nt.call(Yt,Dn)&&Tt(Jt,Dn,Yt[Dn]);if(He)for(var Dn of He(Yt))ot.call(Yt,Dn)&&Tt(Jt,Dn,Yt[Dn]);return Jt};const Ot=Jt=>React.createElement("svg",xt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var Wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Dt=Object.defineProperty,tt=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,vn=(Jt,Yt,Dn)=>Yt in Jt?Dt(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,yn=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))Ve.call(Yt,Dn)&&vn(Jt,Dn,Yt[Dn]);if(tt)for(var Dn of tt(Yt))_t.call(Yt,Dn)&&vn(Jt,Dn,Yt[Dn]);return Jt};const zt=Jt=>React.createElement("svg",yn({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",ln=pe(42678),Gn=pe(12290),un=pe(65158),_n=pe(10672),St={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},Zn=pe(59301),ci=Object.defineProperty,Ze=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,xe=(Jt,Yt,Dn)=>Yt in Jt?ci(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,ct=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))Ae.call(Yt,Dn)&&xe(Jt,Dn,Yt[Dn]);if(Pe)for(var Dn of Pe(Yt))Oe.call(Yt,Dn)&&xe(Jt,Dn,Yt[Dn]);return Jt},Mt=(Jt,Yt)=>Ze(Jt,be(Yt)),at=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Ae.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Pe)for(var nt of Pe(Jt))Yt.indexOf(nt)<0&&Oe.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const qe=null,Lt=(Jt,Yt)=>{var Dn=Jt,{globalSetting:nt,loading:Qt,dispatch:lr,isEdit:Ir,editData:mr}=Dn,ur=at(Dn,["globalSetting","loading","dispatch","isEdit","editData"]);const[Bi,Pr]=(0,le.useState)(""),[to,So]=(0,le.useState)(""),[fr,pr]=(0,le.useState)([]),[vr,ji]=(0,le.useState)(""),[Ai,Wr]=(0,le.useState)(),[zo,Br]=(0,le.useState)(!1),[Er,Or]=(0,le.useState)({}),[kr,gr]=(0,le.useState)([]);(0,le.useEffect)(()=>{!mr||!Ir||(Pr(mr==null?void 0:mr.name),So(mr==null?void 0:mr.analysis),Wr(mr==null?void 0:mr.is_ordered),Or(mr),Br(!0))},[mr]),(0,le.useEffect)(()=>{if(!zo)return;const Nr=mr==null?void 0:mr.standard_answer.map(jo=>jo==null?void 0:jo.answer_text);pr(Nr);const _s=mr==null?void 0:mr.standard_answer.map(jo=>jo==null?void 0:jo.score);gr(_s),Br(!1)},[zo]),(0,le.useImperativeHandle)(Yt,()=>({onSave:Aa,Clear:_o}));const Aa=()=>{let Nr=[],_s=!1;return Bi?(fr.forEach((jo,Hs)=>{Nr.push({position:Hs+1,answer_text:[],score:kr[Hs]}),jo==null||jo.forEach((gl,rc)=>{Nr[Hs].answer_text.push(gl),(!gl||!(0,Xe.eR)(gl,1e4))&&(ji(`${Hs}-${rc}`),Ct.ZP.info(gl?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),_s=!0)})}),_s?!1:(Nr==null?void 0:Nr.length)>20?(Ct.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:Bi,analysis:to,standard_answers:Nr,is_ordered:Ai,downcase:Er==null?void 0:Er.downcase,no_space:Er==null?void 0:Er.no_space,use_blank_score:Er==null?void 0:Er.use_blank_score}):(Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},_o=()=>{Pr(""),So(""),pr([]),Wr(!1)},xa=(Nr,_s,jo)=>{const Hs=fr.slice();if(_s&&Hs.splice(Nr,_s),jo)for(let gl=0;gl{ji("");let Hs=fr.slice();Hs[Nr][_s]=jo,pr(Hs)},wo=Nr=>{let _s=fr.slice();_s[Nr]=[..._s[Nr],""],pr(_s)},Oa=(Nr,_s)=>{let jo=fr.slice();if(!jo[Nr][_s]){jo[Nr]=jo[Nr].filter((Hs,gl)=>gl!==_s),pr(jo);return}Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:St.modal,onOk:()=>{jo[Nr]=jo[Nr].filter((Hs,gl)=>gl!==_s),pr(jo)}})},El=Nr=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:St.modal,onOk:()=>{let _s=fr.slice();_s=fr.filter((jo,Hs)=>Nr!==Hs),pr(_s)}})};return Zn.createElement("section",{className:St.wrap},Zn.createElement("p",{className:St.titleWrap},Zn.createElement("span",{className:St.required},"*"),Zn.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),Zn.createElement("div",null,Zn.createElement(un.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:Bi,onChange:Nr=>Pr(Nr),showNullButton:!0,onPlaceholderChange:xa})),Zn.createElement("div",{className:"mt20"},fr.map((Nr,_s)=>Zn.createElement("div",{style:{display:"flex"}},Zn.createElement("div",{style:{flex:1}},Zn.createElement(_n.Z,{key:_s,answers:Nr,index:_s,flex:1,is_md:!0,activeOptionErrorIndex:vr,onAnswerChange:Wa,addChildAnswer:wo,deleteChildAnswer:Oa,deleteChildAnswermain:El})),Er.use_blank_score&&Zn.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},Zn.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",Zn.createElement(Me.Z,{style:{width:"100px"},size:"large",defaultValue:kr[_s],onBlur:jo=>{kr[_s]=jo.target.value,gr([...kr])}}))))),Zn.createElement("div",null,Zn.createElement(Ft.default,{className:`${St.color333} font14 mt20`,checked:Er.use_blank_score,onChange:Nr=>Or(Mt(ct({},Er),{use_blank_score:Nr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),Zn.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),Zn.createElement("div",null,Zn.createElement(Ft.default,{className:`${St.color333} font14 mt20`,checked:Er.downcase,onChange:Nr=>Or(Mt(ct({},Er),{downcase:Nr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Zn.createElement("div",null,Zn.createElement(Ft.default,{className:`${St.color333} font14 mt20`,checked:Er.no_space,onChange:Nr=>Or(Mt(ct({},Er),{no_space:Nr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),Zn.createElement("div",{className:"mt20"},(fr==null?void 0:fr.length)>1&&Zn.createElement("span",null,Zn.createElement(Ft.default,{checked:Ai,onChange:Nr=>Wr(Nr.target.checked),className:`${St.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),Zn.createElement("span",{className:`${St.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),Zn.createElement("p",{className:St.titleWrap},Zn.createElement("span",{className:St.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Zn.createElement(Gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:to,onChange:Nr=>So(Nr)}))};var Bt=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)(Lt)),ft=pe(5112),Gt=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,rn=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Sn.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Gt)for(var nt of Gt(Jt))Yt.indexOf(nt)<0&&an.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const zn=null,kn=(Jt,Yt)=>{var Dn=Jt,{globalSetting:nt,loading:Qt,editData:lr,dispatch:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=rn(Dn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Pr,to]=(0,le.useState)(),[So,fr]=(0,le.useState)(""),[pr,vr]=(0,le.useState)("");(0,le.useEffect)(()=>{if(!lr||!ur)return;fr(lr==null?void 0:lr.name),vr(lr==null?void 0:lr.analysis);const Wr=lr==null?void 0:lr.choices.find(zo=>zo.is_answer);to(Wr.choice_text==="\u6B63\u786E"?"0":"1")},[lr]),(0,le.useImperativeHandle)(Yt,()=>({onSave:ji,Clear:Ai}));const ji=()=>So?Pr?{name:So,choices:[{choice_text:"\u6B63\u786E",is_answer:Pr==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Pr==="1"?1:0}],analysis:pr}:(Ct.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ai=()=>{fr(""),vr(""),to("")};return le.createElement("section",{className:St.wrap},le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),le.createElement(Gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:So,onChange:Wr=>fr(Wr)}),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u7B54\u6848\u9009\u9879\uFF1A",le.createElement("span",{className:St.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),le.createElement(ft.ZP.Group,{buttonStyle:"solid",value:Pr,onChange:Wr=>to(Wr.target.value)},le.createElement(ft.ZP.Button,{value:"0",className:`${St.radio} mr40`},"\u6B63\u786E"),le.createElement(ft.ZP.Button,{value:"1",className:St.radio},"\u9519\u8BEF")),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),le.createElement(Gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pr,onChange:Wr=>vr(Wr)}))};var mn=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)(kn)),ei=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,bn=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Pi.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&ei)for(var nt of ei(Jt))Yt.indexOf(nt)<0&&Hn.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const wi=null,Zi=(Jt,Yt)=>{var Dn=Jt,{globalSetting:nt,loading:Qt,editData:lr,dispatch:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=bn(Dn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Pr,to]=(0,le.useState)([]);(0,le.useEffect)(()=>{var vr;if(!lr||!ur)return;const ji=(vr=lr==null?void 0:lr.shixun)==null?void 0:vr.challenges.map(Ai=>({id:Ai==null?void 0:Ai.id,score:Ai.score}));to(ji)},[lr]),(0,le.useImperativeHandle)(Yt,()=>({onSave:So,Clear:fr}));const So=()=>({challenges:[...Pr]}),fr=()=>{to([])};console.log("editData--",lr);const pr=vr=>{var ji,Ai;return le.createElement("div",null,(Ai=(ji=vr==null?void 0:vr.shixun)==null?void 0:ji.challenges)==null?void 0:Ai.map((Wr,zo)=>{var Br;return le.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},le.createElement("div",null,le.createElement("span",{className:"mr5"},"\u7B2C",zo+1,"\u5173"),le.createElement(ut.Z,{key:zo,title:Wr==null?void 0:Wr.challenge_name},le.createElement("span",null,(0,Xe.Pq)(Wr==null?void 0:Wr.challenge_name,44)))),le.createElement("p",{style:{marginBottom:0}},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u5206\u503C\uFF1A"),le.createElement(Me.Z,{precision:1,min:1,max:100,className:St.baseFormItem,style:{width:176},value:(Br=Pr.find(Er=>Er.id===Wr.id))==null?void 0:Br.score,onChange:Er=>{Pr.find(Or=>Or.id===Wr.id).score=Er,to([...Pr])}})))}),le.createElement("div",{style:{clear:"both"}}))};return le.createElement("section",{className:St.wrap},le.createElement(ze.Z,{style:{paddingRight:10},className:St.titleHtml,value:`${lr==null?void 0:lr.position}\u3001${lr==null?void 0:lr.name}`}),le.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u5173\u5361")),pr(lr))};var Hi=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)(Zi)),rr=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,di=(Jt,Yt)=>{var Dn={};for(var nt in Jt)_r.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&rr)for(var nt of rr(Jt))Yt.indexOf(nt)<0&&gi.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const xi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],$i=(Jt,Yt)=>{var Dn=Jt,{editData:nt,globalSetting:Qt,loading:lr,dispatch:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=di(Dn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Pr,to]=(0,le.useState)([]),[So,fr]=(0,le.useState)(),[pr,vr]=(0,le.useState)([]),[ji,Ai]=(0,le.useState)(""),[Wr,zo]=(0,le.useState)("");(0,le.useEffect)(()=>{to(["","","",""])},[]),(0,le.useEffect)(()=>{if(!nt||!ur)return;Ai(nt==null?void 0:nt.name),zo(nt==null?void 0:nt.analysis),to(nt==null?void 0:nt.choices.map(kr=>kr.choice_text));const Or=[];nt==null||nt.choices.map((kr,gr)=>{kr.is_answer&&Or.push(gr)}),vr(Or)},[nt]),(0,le.useImperativeHandle)(Yt,()=>({onSave:Br,Clear:Er}));const Br=()=>{if(!ji)return Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Or=Pr.findIndex(gr=>!gr);if(Or>-1)return Ct.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${xi[Or]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!pr.length)return Ct.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(pr.length<2)return Ct.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const kr=Pr.map((gr,Aa)=>({choice_text:gr,is_answer:pr.includes(Aa)?1:0}));return{name:ji,choices:kr,analysis:Wr}},Er=()=>{to(["","","",""]),Ai(""),zo(""),vr("")};return le.createElement("section",{className:St.wrap},le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),le.createElement(Gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ji,onChange:Or=>Ai(Or)}),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u7B54\u6848\u9009\u9879\uFF1A",le.createElement("span",{className:St.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Pr.map((Or,kr)=>le.createElement("div",{className:St.choiceWrap,key:kr},le.createElement(ut.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},le.createElement("div",{className:`${St.answer} ${pr.includes(kr)?St.activeAnswer:""}`,onClick:()=>{pr.includes(kr)?vr(pr.filter(gr=>gr!==kr)):vr([...pr,kr])}},xi[kr])),le.createElement("div",{className:St.editorWrap},So===kr?le.createElement(Gn.Z,{id:`single-question-option-${kr}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Or,onChange:gr=>{Pr[kr]=gr,to(Pr)}}):le.createElement("div",{className:St.htmlWrap,onClick:()=>fr(kr)},le.createElement(ze.Z,{value:Or}))),kr>1&&le.createElement(ut.Z,{title:"\u5220\u9664"},le.createElement("i",{className:`${St.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{to(Pr.filter((gr,Aa)=>Aa!==kr)),pr.includes(kr)?vr(pr.filter(gr=>gr!==kr)):vr([...pr,kr])}})),kr<7&&kr===Pr.length-1&&le.createElement(ut.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},le.createElement("i",{className:`${St.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>to([...Pr,""])})))),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),le.createElement(Gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Wr,onChange:Or=>zo(Or)}))};var Ri=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)($i)),Kr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ci=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Sr.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Kr)for(var nt of Kr(Jt))Yt.indexOf(nt)<0&&Ne.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const wr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pn=(Jt,Yt)=>{var Dn=Jt,{editData:nt,globalSetting:Qt,loading:lr,dispatch:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=Ci(Dn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Pr,to]=(0,le.useState)([]),[So,fr]=(0,le.useState)(),[pr,vr]=(0,le.useState)(),[ji,Ai]=(0,le.useState)(""),[Wr,zo]=(0,le.useState)("");(0,le.useEffect)(()=>{to(["","","",""])},[]),(0,le.useEffect)(()=>{if(!nt||!ur)return;const Or=[],kr=[];nt==null||nt.choices.forEach((gr,Aa)=>{Or.push(gr.choice_text),gr.is_answer&&kr.push(Aa)}),Ai(nt==null?void 0:nt.name),zo(nt==null?void 0:nt.analysis),to(Or),vr(kr)},[nt]),(0,le.useImperativeHandle)(Yt,()=>({onSave:Br,Clear:Er}));const Br=()=>{if(!ji)return Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Or=Pr.findIndex(gr=>!gr);if(Or>-1)return Ct.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${wr[Or]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(pr))return Ct.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const kr=Pr.map((gr,Aa)=>({choice_text:gr,is_answer:pr.includes(Aa)?1:0}));return{name:ji,choices:kr,analysis:Wr}},Er=()=>{to(["","","",""]),Ai(""),zo(""),vr("")};return le.createElement("section",{className:St.wrap},le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),le.createElement(Gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ji,onChange:Or=>Ai(Or)}),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.required},"*"),le.createElement("span",{className:St.title},"\u7B54\u6848\u9009\u9879\uFF1A",le.createElement("span",{className:St.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Pr.map((Or,kr)=>le.createElement("div",{className:St.choiceWrap,key:kr},le.createElement(ut.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},le.createElement("div",{className:`${St.answer} ${pr!=null&&pr.includes(kr)?St.activeAnswer:""}`,onClick:()=>vr([kr])},wr[kr])),le.createElement("div",{className:St.editorWrap},So===kr?le.createElement(Gn.Z,{id:`single-question-option-${kr}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Or,onChange:gr=>{Pr[kr]=gr,to(Pr)}}):le.createElement("div",{className:St.htmlWrap,onClick:()=>fr(kr)},le.createElement(ze.Z,{value:Or}))),kr>1&&le.createElement(ut.Z,{title:"\u5220\u9664"},le.createElement("i",{className:`${St.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{to(Pr.filter((gr,Aa)=>Aa!==kr)),kr===pr&&vr(null)}})),kr<7&&kr===Pr.length-1&&le.createElement(ut.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},le.createElement("i",{className:`${St.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>to([...Pr,""])})))),le.createElement("p",{className:St.titleWrap},le.createElement("span",{className:St.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),le.createElement(Gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Wr,onChange:Or=>zo(Or)}))};var Si=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)(Pn)),Wi=pe(12563),qi=pe(78673),$n=pe(61485),qn=pe(59301),Zt=Object.defineProperty,$t=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,ht=(Jt,Yt,Dn)=>Yt in Jt?Zt(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,en=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))cn.call(Yt,Dn)&&ht(Jt,Dn,Yt[Dn]);if(on)for(var Dn of on(Yt))At.call(Yt,Dn)&&ht(Jt,Dn,Yt[Dn]);return Jt},fn=(Jt,Yt)=>$t(Jt,Qe(Yt)),Rn=(Jt,Yt)=>{var Dn={};for(var nt in Jt)cn.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&on)for(var nt of on(Jt))Yt.indexOf(nt)<0&&At.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn},Qn=(Jt,Yt,Dn)=>new Promise((nt,Qt)=>{var lr=ur=>{try{mr(Dn.next(ur))}catch(Bi){Qt(Bi)}},Ir=ur=>{try{mr(Dn.throw(ur))}catch(Bi){Qt(Bi)}},mr=ur=>ur.done?nt(ur.value):Promise.resolve(ur.value).then(lr,Ir);mr((Dn=Dn.apply(Jt,Yt)).next())});const Et=Jt=>{if(!Jt)return!1;if(/^s*$/.test(Jt)||Jt.trim()===""){Ct.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Yt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Jt==="|"?(Ct.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},wn=({value:Jt=[],onClose:Yt})=>qn.createElement(Wi.default,{closable:!0,onClose:Yt,className:St.keywordTag},qn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Jt.join(" \u6216 "))),Kn=(Jt,Yt)=>{var Dn=Jt,{editData:nt,globalSetting:Qt,loading:lr,dispatch:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=Rn(Dn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Pr,to]=(0,le.useState)(""),[So,fr]=(0,le.useState)(""),[pr,vr]=(0,le.useState)(""),[ji,Ai]=(0,le.useState)(""),[Wr]=We.default.useForm(),zo=We.default.useWatch("use_keywords",Wr);(0,le.useEffect)(()=>{var kr;!nt||!ur||(to(nt==null?void 0:nt.name),fr(nt==null?void 0:nt.analysis),vr((kr=nt==null?void 0:nt.answer_texts)==null?void 0:kr[0]),Wr.setFieldsValue(en({},nt)))},[nt]),(0,le.useImperativeHandle)(Yt,()=>({onSave:Br,Clear:Er}));const Br=()=>Qn(void 0,null,function*(){if(!Pr)return Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Wr.validateFields()}catch(gr){Ct.ZP.error(gr.errorFields[0].errors[0]);return}const kr=Wr.getFieldsValue();return console.log(kr,"values"),en({name:Pr,answer_texts:[pr],analysis:So},kr)}),Er=()=>{to(""),fr(""),vr(""),Wr.resetFields()},Or=nt==null?void 0:nt.score;return qn.createElement("section",{className:St.wrap},qn.createElement("p",{className:St.titleWrap},qn.createElement("span",{className:St.required},"*"),qn.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),qn.createElement(Gn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pr,onChange:kr=>to(kr)}),qn.createElement("p",{className:St.titleWrap},qn.createElement("span",{className:St.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),qn.createElement(Gn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:pr,onChange:kr=>vr(kr)}),qn.createElement("p",{className:St.titleWrap},qn.createElement("span",{className:St.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),qn.createElement(Gn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:So,onChange:kr=>fr(kr)}),qn.createElement(We.default,{form:Wr,size:"large",onFinishFailed:kr=>Qn(void 0,null,function*(){var gr,Aa;Ct.ZP.error(kr.errorFields[0].errors[0]),Wr.scrollToField((Aa=(gr=kr==null?void 0:kr.errorFields)==null?void 0:gr[0])==null?void 0:Aa.name,{behavior:"smooth",block:"center"})})},qn.createElement(lt.Z,{align:"middle",className:"mb30 mt20"},qn.createElement(We.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},qn.createElement(qi.Z,null)),qn.createElement(vt.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),qn.createElement(vt.Z,null,qn.createElement(ut.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},qn.createElement($n.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),zo&&qn.createElement(We.default.List,{name:"keywords",rules:[{validator(kr,gr){return gr!=null&&gr.length?(gr==null?void 0:gr.reduce((_o,xa)=>_o+xa.score,0))>parseFloat(Or)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(kr,{add:gr,remove:Aa})=>qn.createElement(qn.Fragment,null,qn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),qn.createElement(lt.Z,{align:"middle",className:"font14 mb30"},qn.createElement(vt.Z,{flex:1},qn.createElement(wt.default,{value:ji,onChange:_o=>{Ai(_o.target.value)},maxLength:50,allowClear:!0,onPressEnter:_o=>{var xa,Wa,wo,Oa;const El=`${(xa=_o.target)==null?void 0:xa.value}`,Nr=(wo=(Wa=El==null?void 0:El.split("|"))==null?void 0:Wa.filter(Hs=>!!Hs))==null?void 0:wo.map(Hs=>Hs==null?void 0:Hs.trim()),_s=Wr.getFieldValue("keywords"),jo=((Oa=_s==null?void 0:_s.map(Hs=>Hs==null?void 0:Hs.keyword))==null?void 0:Oa.flat())||[];for(const Hs of Nr)if(jo.includes(Hs)){Ct.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Et(El)&&(gr({keyword:Nr,score:1}),Ai(""))},className:St.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),qn.createElement(vt.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),kr.map(_o=>{var xa=_o,{key:Wa,name:wo}=xa,Oa=Rn(xa,["key","name"]);return qn.createElement(lt.Z,{key:Wa,style:{marginRight:148}},qn.createElement(vt.Z,{flex:1},qn.createElement(lt.Z,{align:"middle",justify:"space-between"},qn.createElement(We.default.Item,fn(en({},Oa),{name:[wo,"keyword"]}),qn.createElement(wn,{onClose:()=>Aa(wo)})),qn.createElement(We.default.Item,fn(en({},Oa),{name:[wo,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),qn.createElement(Me.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Ei=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)(Kn)),tn=pe(36381),sn={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},In=pe(32134),Oi=pe(12893),Di=Object.defineProperty,vi=Object.defineProperties,Ti=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Vr=(Jt,Yt,Dn)=>Yt in Jt?Di(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,Tn=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))sr.call(Yt,Dn)&&Vr(Jt,Dn,Yt[Dn]);if(Li)for(var Dn of Li(Yt))Zr.call(Yt,Dn)&&Vr(Jt,Dn,Yt[Dn]);return Jt},Po=(Jt,Yt)=>vi(Jt,Ti(Yt)),Xr=(Jt,Yt)=>{var Dn={};for(var nt in Jt)sr.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Li)for(var nt of Li(Jt))Yt.indexOf(nt)<0&&Zr.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const Cr=Jt=>{var Yt=Jt,{value:Dn,onChange:nt,scrollId:Qt}=Yt,lr=Xr(Yt,["value","onChange","scrollId"]);return le.createElement("div",{id:Qt||""},le.createElement(Gn.Z,Po(Tn({},lr),{defaultValue:Dn,onChange:(Ir,mr)=>{mr!=null&&mr.length?nt(Ir,mr):nt(Ir)}})))},Cn=({value:Jt,onChange:Yt,placeholder:Dn,height:nt=140,isEdit:Qt})=>Qt?le.createElement(Gn.Z,{watch:!0,isFocus:!0,height:nt,placeholder:Dn,defaultValue:Jt,onChange:Yt}):le.createElement("div",{style:{cursor:"pointer"}},Jt?le.createElement(ze.Z,{className:sn.inputBorder,value:Jt}):le.createElement("div",{className:`${sn.inputBorder} ${sn.placeholder}`},Dn));var ri=pe(59301),Yi=Object.defineProperty,yr=Object.defineProperties,er=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Tr=(Jt,Yt,Dn)=>Yt in Jt?Yi(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,Yr=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))Ur.call(Yt,Dn)&&Tr(Jt,Dn,Yt[Dn]);if(Fr)for(var Dn of Fr(Yt))zr.call(Yt,Dn)&&Tr(Jt,Dn,Yt[Dn]);return Jt},Un=(Jt,Yt)=>yr(Jt,er(Yt)),Ho=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Ur.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Fr)for(var nt of Fr(Jt))Yt.indexOf(nt)<0&&zr.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const Yn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ao=({value:Jt,onChange:Yt,choiceTextKey:Dn,answerKey:nt,index:Qt,isEdit:lr,setInputActive:Ir,form:mr,choiceOptionsPath:ur,allowChangeMode:Bi,showAddIcon:Pr,addItem:to,deleteItem:So})=>{const fr=(Jt==null?void 0:Jt[nt])===!0,pr=()=>{const ji=mr.getFieldValue(ur);mr.setFieldValue(ur,ji.map(Ai=>Un(Yr({},Ai),{[nt]:!1})))},vr=()=>{fr?Yt(Un(Yr({},Jt),{[nt]:!1})):(Bi||pr(),Yt(Un(Yr({},Jt),{[nt]:!0})))};return ri.createElement(lt.Z,{className:sn.choiceWrap,align:"middle",wrap:!1},ri.createElement(vt.Z,{onClick:vr,className:`${sn.choiceIndex} ${fr?sn.activeAnswer:""}`},Yn[Qt]),ri.createElement(vt.Z,{flex:1,className:`${sn.editorWrap} ml15`,onClick:Ir},ri.createElement(Cn,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:lr,value:Jt==null?void 0:Jt[Dn],onChange:ji=>{Yt(Un(Yr({},Jt),{[Dn]:ji}))}})),ri.createElement(vt.Z,{flex:"0 0 auto",className:"ml15"},ri.createElement("div",{onClick:vr,className:`${sn.setAnswerBtn} ${fr?sn.activeAnswer:""}`},fr?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),ri.createElement(vt.Z,{className:sn.actionWrapper},ri.createElement(ut.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ri.createElement(In.Z,{className:sn.addIcon,onClick:to,style:{visibility:Pr?"visible":"hidden"}})),ri.createElement(ut.Z,{title:"\u5220\u9664"},ri.createElement(Oi.Z,{className:sn.deleteIcon,onClick:So,style:{visibility:Qt>1?"visible":"hidden"}}))))},Qo=({questionTitlePlaceholder:Jt,titleKey:Yt,choiceKey:Dn,analysisKey:nt,choiceTextKey:Qt,answerKey:lr,choiceOptionsPath:Ir,allowChangeMode:mr=!0,form:ur,showAnalysis:Bi=!0})=>{const[Pr,to]=(0,le.useState)(),[So,fr]=(0,le.useState)(!1);return ri.createElement("div",{className:sn.wrap},ri.createElement("div",{className:sn.questionTitleEditorWrap},ri.createElement(We.default.Item,{label:"\u9898\u5E72",name:Yt,labelCol:{span:24},rules:[{required:!0}]},ri.createElement(Cr,{scrollId:Array.isArray(Yt)?Yt.join("_"):`${Yt}`,watch:!0,height:140,placeholder:Jt}))),ri.createElement(We.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ri.createElement(We.default.List,{name:Dn,rules:[{validator(pr,vr){const ji=vr.some(Wr=>Wr[lr]),Ai=vr.findIndex(Wr=>{var zo;return((zo=Wr[Qt])==null?void 0:zo.length)<=0});return Ai!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Yn[Ai]}\u9009\u9879\u7684\u5185\u5BB9`)):ji?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(pr,{add:vr,remove:ji})=>ri.createElement("div",{id:Array.isArray(Ir)?Ir.join("_"):`${Ir}`},pr.map((Ai,Wr)=>{var zo=Ai,{key:Br,name:Er}=zo,Or=Ho(zo,["key","name"]);const kr=Pr===Br,gr=()=>{to(Br)},Aa=Wr<7&&Wr===pr.length-1,_o=()=>vr({[Qt]:"",[lr]:0}),xa=()=>ji(Er);return ri.createElement(We.default.Item,Un(Yr({},Or),{key:Br,name:Er,noStyle:!0}),ri.createElement(Ao,{choiceTextKey:Qt,answerKey:lr,index:Wr,isEdit:kr,setInputActive:gr,form:ur,choiceOptionsPath:Ir,allowChangeMode:mr,showAddIcon:Aa,addItem:_o,deleteItem:xa}))}),pr.length<8&&ri.createElement("div",{className:`${sn.addBtn} mb30`,onClick:()=>vr({[Qt]:"",[lr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Bi&&ri.createElement("div",{onClick:()=>fr(!0)},ri.createElement(We.default.Item,{name:nt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ri.createElement(Cn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:So}))))};var nr=pe(59301),qo=Object.defineProperty,Go=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable,Ki=(Jt,Yt,Dn)=>Yt in Jt?qo(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,st=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))mo.call(Yt,Dn)&&Ki(Jt,Dn,Yt[Dn]);if(br)for(var Dn of br(Yt))Yo.call(Yt,Dn)&&Ki(Jt,Dn,Yt[Dn]);return Jt},sa=(Jt,Yt)=>Go(Jt,Lr(Yt)),va=(Jt,Yt)=>{var Dn={};for(var nt in Jt)mo.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&br)for(var nt of br(Jt))Yt.indexOf(nt)<0&&Yo.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const Ma=({value:Jt,onChange:Yt})=>{const Dn=Qt=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:sn.modal,onOk:()=>{const lr=[...Jt];lr.splice(Qt,1),Yt(lr)}})},nt=()=>{const Qt=[...Jt];Qt.push(""),Yt(Qt)};return nr.createElement(lt.Z,{align:"middle",className:"ml20",gutter:[40,20]},Jt==null?void 0:Jt.map((Qt,lr)=>nr.createElement(vt.Z,{key:`${Qt}_${lr}`,className:sn.blankWrapper},nr.createElement(wt.default,{className:sn.blankInput,defaultValue:Qt,maxLength:1e3,onBlur:Ir=>{const mr=[...Jt],ur=Ir.target.value.trim();mr[lr]=ur,Yt(mr)}}),nr.createElement(ut.Z,{title:"\u5220\u9664"},nr.createElement(Oi.Z,{className:sn.deleteIcon,style:{marginLeft:15,visibility:lr>0?"visible":"hidden"},onClick:()=>Dn(lr)})))),nr.createElement(vt.Z,null,nr.createElement("div",{className:`${sn.addBtn}`,onClick:()=>{nt()}},"\u65B0\u589E\u7B54\u6848")))},hs=({value:Jt=!0,onChange:Yt})=>nr.createElement(qi.Z,{checked:!Jt,onChange:Dn=>{Yt(!Dn)}}),Ga="\u2581",Lo=({questionTitlePlaceholder:Jt,form:Yt,name:Dn,scoreByBlank:nt="use_blank_score",answerKey:Qt,titleKey:lr="name",analysisKey:Ir="analysis",isOrdered:mr="is_ordered"})=>{var ur,Bi;const[Pr,to]=(0,le.useState)(!1),So=(Br,Er)=>{const Or=Er.line;let kr=0;for(let Aa=0;Aa{const gr=Br.getRange(Er.from,Er.to);let Aa=0;if(Er.text.forEach(_o=>{Aa+=_o.split(Ga).length-1}),Er.origin!=="setValue"){if(gr&&gr.indexOf(Ga)!==-1){const _o=gr.split(Ga).length-1,xa=So(Br,Er.from);if(console.log(`\u5220\u9664${_o}\u4E2A\uFF0C \u524D\u9762\u6709${xa}\u4E2A\uFF0C\u65B0\u589E${Aa}\u4E2A`),_o>1){const Wa=Array.from({length:_o},(wo,Oa)=>xa+Oa);kr(Wa)}else kr(xa)}else if(Aa>0){const _o=So(Br,Er.from);console.log(`\u65B0\u589E${Aa}\u4E2A\uFF0C\u4E4B\u524D\u6709${_o}\u4E2A`),Or(Aa,_o)}}},pr=()=>{const Br=Yt.getFieldValue(["sub_item_banks",...Qt]);Yt.setFieldValue(["sub_item_banks",...Qt],Br==null?void 0:Br.map((Er,Or)=>sa(st({},Er),{position:Or+1})))},vr=(0,le.useRef)(),ji=(Br,Er)=>{for(let Or=0;Or{Ai.current(Br),pr()},zo=(Bi=(ur=Yt.getFieldValue("sub_item_banks"))==null?void 0:ur[Qt==null?void 0:Qt[0]])==null?void 0:Bi[Qt==null?void 0:Qt[1]];return nr.createElement("div",{className:sn.wrap},nr.createElement("div",{className:sn.questionTitleEditorWrap},nr.createElement(We.default.Item,{label:"\u9898\u5E72",name:lr,labelCol:{span:24},rules:[{required:!0}]},nr.createElement(Cr,{scrollId:"name",watch:!0,height:140,placeholder:Jt,showNullButton:!0,onCMBeforeChange:(Br,Er)=>{fr(Br,Er,ji,Wr)}}))),nr.createElement(We.default.List,{name:Qt,rules:[{validator(Br,Er){if((Er==null?void 0:Er.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Or of Er){const{answer_text:kr}=Or||{};if(kr!=null&&kr.some(gr=>(gr==null?void 0:gr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Br,{add:Er,remove:Or},{errors:kr})=>(vr.current=Er,Ai.current=Or,nr.createElement(nr.Fragment,null,nr.createElement(We.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Br.map((gr,Aa)=>{var _o=gr,{key:xa,name:Wa}=_o,wo=va(_o,["key","name"]);return nr.createElement(lt.Z,{className:"mb20",key:xa,align:"middle",wrap:!1},nr.createElement(vt.Z,{flex:"0 0 auto",className:`${sn.blankIndex}`},"\u586B\u7A7A\u9879",Aa+1),nr.createElement(vt.Z,{flex:1},nr.createElement(lt.Z,{align:"top",justify:"space-between",wrap:!1},nr.createElement(vt.Z,null,nr.createElement(We.default.Item,sa(st({},wo),{name:[Wa,"answer_text"],noStyle:!0}),nr.createElement(Ma,null))),(Yt==null?void 0:Yt.getFieldValue(["sub_item_banks",...nt]))&&nr.createElement(vt.Z,{flex:"224px"},nr.createElement(We.default.Item,sa(st({},wo),{name:[Wa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:sn.blankInputNumberWrapper}),nr.createElement(Me.Z,{className:sn.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),nr.createElement(We.default.Item,sa(st({},wo),{name:[Wa,"position"],noStyle:!0}),nr.createElement(wt.default,{type:"hidden"}))))})))),nr.createElement(lt.Z,{align:"middle"},nr.createElement(We.default.Item,{name:[Dn,"downcase"],valuePropName:"checked"},nr.createElement(qi.Z,null)),nr.createElement(vt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),nr.createElement(lt.Z,{align:"middle"},nr.createElement(We.default.Item,{name:[Dn,"no_space"],valuePropName:"checked"},nr.createElement(qi.Z,null)),nr.createElement(vt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(zo==null?void 0:zo.length)>1&&nr.createElement(lt.Z,{align:"middle",className:(zo==null?void 0:zo.length)>1?"mb30":`${sn.hide}`},nr.createElement(We.default.Item,{name:mr},nr.createElement(hs,null)),nr.createElement(vt.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),nr.createElement("div",{onClick:()=>to(!0)},nr.createElement(We.default.Item,{name:Ir,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},nr.createElement(Cn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pr}))))};var po=Object.defineProperty,la=Object.defineProperties,Eo=Object.getOwnPropertyDescriptors,Na=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,Qr=(Jt,Yt,Dn)=>Yt in Jt?po(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,pi=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))os.call(Yt,Dn)&&Qr(Jt,Dn,Yt[Dn]);if(Na)for(var Dn of Na(Yt))xo.call(Yt,Dn)&&Qr(Jt,Dn,Yt[Dn]);return Jt},io=(Jt,Yt)=>la(Jt,Eo(Yt)),ro=(Jt,Yt)=>{var Dn={};for(var nt in Jt)os.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&Na)for(var nt of Na(Jt))Yt.indexOf(nt)<0&&xo.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const Ja={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ca=({value:Jt,onChange:Yt,form:Dn,choiceKey:nt})=>{const Qt=(Jt==null?void 0:Jt.is_answer)===!0,lr=Jt==null?void 0:Jt.choice_text,Ir=()=>{var mr;const ur=(mr=Dn==null?void 0:Dn.getFieldValue(["sub_item_banks",...nt]))==null?void 0:mr.map(Bi=>({choice_text:Bi==null?void 0:Bi.choice_text,is_answer:!1}));Dn==null||Dn.setFieldValue(["sub_item_banks",...nt],ur),Yt(io(pi({},Jt),{is_answer:!0}))};return le.createElement(lt.Z,{className:sn.choiceWrap,align:"middle",wrap:!1},le.createElement(vt.Z,{onClick:Ir,className:`${sn.choiceIndex} ${sn.judgementIndex} ${Qt?sn.activeAnswer:""}`},Ja[lr]),le.createElement(vt.Z,{flex:1,className:`${sn.editorWrap} ml15`},le.createElement("div",{className:`${sn.inputBorder} ${sn.placeholder} ${Qt?sn.activeJudgementAnswer:""}`},lr)),le.createElement(vt.Z,{flex:"0 0 auto",className:"ml15"},le.createElement("div",{onClick:Ir,className:`${sn.setAnswerBtn} ${Qt?sn.activeAnswer:""}`},Qt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},fa=({questionTitlePlaceholder:Jt,choiceKey:Yt="choices",form:Dn,titleKey:nt="name",analysisKey:Qt="analysis"})=>{const[lr,Ir]=(0,le.useState)(!1);return le.createElement("div",{className:sn.wrap},le.createElement("div",{className:sn.questionTitleEditorWrap},le.createElement(We.default.Item,{label:"\u9898\u5E72",name:nt,labelCol:{span:24},rules:[{required:!0}]},le.createElement(Cr,{scrollId:"name",watch:!0,height:140,placeholder:Jt}))),le.createElement(We.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},le.createElement(We.default.List,{name:Yt,rules:[{validator(mr,ur){return ur.some(Pr=>(Pr==null?void 0:Pr.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},mr=>le.createElement("div",{id:"choices"},mr.map(ur=>{var Bi=ur,{key:Pr,name:to}=Bi,So=ro(Bi,["key","name"]);return le.createElement(We.default.Item,io(pi({},So),{key:Pr,name:to,noStyle:!0}),le.createElement(Ca,{form:Dn,choiceKey:Yt}))})))),le.createElement("div",{onClick:()=>Ir(!0)},le.createElement(We.default.Item,{name:Qt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(Cn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:lr}))))};var $a=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Ss=(Jt,Yt,Dn)=>Yt in Jt?$a(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,ra=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))Zs.call(Yt,Dn)&&Ss(Jt,Dn,Yt[Dn]);if(ys)for(var Dn of ys(Yt))Mn.call(Yt,Dn)&&Ss(Jt,Dn,Yt[Dn]);return Jt},hl=(Jt,Yt)=>Qa(Jt,Es(Yt)),Ol=(Jt,Yt)=>{var Dn={};for(var nt in Jt)Zs.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&ys)for(var nt of ys(Jt))Yt.indexOf(nt)<0&&Mn.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn};const ns=Jt=>{var Yt=Jt,{value:Dn,onChange:nt}=Yt,Qt=Ol(Yt,["value","onChange"]);const lr=Ir=>{nt([Ir])};return le.createElement(Gn.Z,hl(ra({},Qt),{defaultValue:Dn==null?void 0:Dn[0],onChange:lr}))},yu=Jt=>{if(!Jt)return!1;let Yt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Jt==="|"?(Ct.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},eu=({value:Jt=[],onClose:Yt})=>le.createElement(Wi.default,{closable:!0,onClose:Yt,className:sn.keywordTag},Jt==null?void 0:Jt.join(" \u6216 ")),ps=({questionTitlePlaceholder:Jt,form:Yt,showKeywords:Dn,isMustKeyWords:nt=Dn,titleKey:Qt="name",analysisKey:lr="analysis",answerTexts:Ir="answer_texts",keywords:mr="keywords",useKeywords:ur="use_keywords",indexs:Bi})=>{const[Pr,to]=(0,le.useState)(!1),[So,fr]=(0,le.useState)(""),pr=We.default.useWatch("sub_item_banks",Yt),{use_keywords:vr,score:ji}=(pr==null?void 0:pr[Bi])||{};return console.log(vr,ji,"itemValues"),le.createElement("div",{className:sn.wrap},le.createElement("div",{className:sn.questionTitleEditorWrap},le.createElement(We.default.Item,{label:"\u9898\u5E72",name:Qt,labelCol:{span:24},rules:[{required:!0}]},le.createElement(Cr,{scrollId:"name",watch:!0,height:140,placeholder:Jt}))),le.createElement(We.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Ir,labelCol:{span:24}},le.createElement(ns,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Dn&&!nt&&le.createElement(We.default.Item,{hidden:!0,name:ur,valuePropName:"checked"},le.createElement(qi.Z,{defaultChecked:!0})),Dn&&nt&&le.createElement(lt.Z,{align:"middle",className:"mb30"},le.createElement(We.default.Item,{name:ur,valuePropName:"checked"},le.createElement(qi.Z,null)),le.createElement(vt.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),le.createElement(vt.Z,null,le.createElement(ut.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},le.createElement($n.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(vr||!nt)&&le.createElement(We.default.List,{name:mr,rules:[{validator(Ai,Wr){return nt?Wr!=null&&Wr.length?(Wr==null?void 0:Wr.reduce((Br,Er)=>Br+Er.score,0))>parseFloat(ji)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ai,{add:Wr,remove:zo})=>le.createElement(le.Fragment,null,le.createElement("div",{className:`${sn.title} mb10`},nt?"\u5173\u952E\u8BCD":le.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),le.createElement(lt.Z,{align:"middle",className:"font14 mb30"},le.createElement(vt.Z,{flex:1},le.createElement(wt.default,{value:So,onChange:Br=>{fr(Br.target.value)},maxLength:50,allowClear:!0,onPressEnter:Br=>{var Er,Or,kr,gr;const Aa=`${(Er=Br.target)==null?void 0:Er.value}`,_o=(kr=(Or=Aa==null?void 0:Aa.split("|"))==null?void 0:Or.filter(wo=>!!wo))==null?void 0:kr.map(wo=>wo==null?void 0:wo.trim()),xa=Yt.getFieldValue(["sub_item_banks",...mr]),Wa=((gr=xa==null?void 0:xa.map(wo=>wo==null?void 0:wo.keyword))==null?void 0:gr.flat())||[];for(const wo of _o)if(Wa.includes(wo)){Ct.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}yu(Aa)&&(Wr({keyword:_o,score:1}),fr(""))},className:sn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),le.createElement(vt.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ai.map(Br=>{var Er=Br,{key:Or,name:kr}=Er,gr=Ol(Er,["key","name"]);return le.createElement(lt.Z,{key:Or,className:"mb20",style:{marginRight:148}},le.createElement(vt.Z,{flex:1},le.createElement(lt.Z,{align:"middle",justify:"space-between"},le.createElement(We.default.Item,hl(ra({},gr),{name:[kr,"keyword"]}),le.createElement(eu,{onClose:()=>zo(kr)})),nt&&le.createElement(We.default.Item,hl(ra({},gr),{name:[kr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:sn.blankInputNumberWrapper}),le.createElement(Me.Z,{className:sn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),le.createElement("div",{onClick:()=>to(!0)},le.createElement(We.default.Item,{name:lr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(Cn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pr}))))};var Ba=pe(59301),tu=Object.defineProperty,Do=Object.defineProperties,Ea=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,Rs=Object.prototype.propertyIsEnumerable,ls=(Jt,Yt,Dn)=>Yt in Jt?tu(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,sl=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))hr.call(Yt,Dn)&&ls(Jt,Dn,Yt[Dn]);if(ca)for(var Dn of ca(Yt))Rs.call(Yt,Dn)&&ls(Jt,Dn,Yt[Dn]);return Jt},jl=(Jt,Yt)=>Do(Jt,Ea(Yt)),ou=(Jt,Yt)=>{var Dn={};for(var nt in Jt)hr.call(Jt,nt)&&Yt.indexOf(nt)<0&&(Dn[nt]=Jt[nt]);if(Jt!=null&&ca)for(var nt of ca(Jt))Yt.indexOf(nt)<0&&Rs.call(Jt,nt)&&(Dn[nt]=Jt[nt]);return Dn},Ji=(Jt,Yt,Dn)=>new Promise((nt,Qt)=>{var lr=ur=>{try{mr(Dn.next(ur))}catch(Bi){Qt(Bi)}},Ir=ur=>{try{mr(Dn.throw(ur))}catch(Bi){Qt(Bi)}},mr=ur=>ur.done?nt(ur.value):Promise.resolve(ur.value).then(lr,Ir);mr((Dn=Dn.apply(Jt,Yt)).next())});const{Panel:Cs}=tn.default,Us=null,$l=(Jt,Yt)=>{var Dn=Jt,{globalSetting:nt,loading:Qt,dispatch:lr,editData:Ir,onRef:mr=()=>{},isEdit:ur}=Dn,Bi=ou(Dn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Pr,to]=(0,le.useState)(""),[So,fr]=(0,le.useState)([]),[pr]=We.default.useForm();(0,le.useEffect)(()=>{!Ir||!ur||(to(Ir==null?void 0:Ir.name),fr(Ir==null?void 0:Ir.sub_item_banks),pr.setFieldsValue(sl({},Ir)))},[Ir]),(0,le.useEffect)(()=>{fr(pr.getFieldValue("sub_item_banks"))},[We.default.useWatch("sub_item_banks",pr)]),(0,le.useImperativeHandle)(Yt,()=>({onSave:vr,Clear:ji}));const vr=()=>Ji(void 0,null,function*(){if(!Pr)return Ct.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield pr.validateFields()}catch(Or){return console.log(Or,"errInfo"),Ct.ZP.error(Or.errorFields[0].errors[0]),!1}const Er=So.map(Or=>sl({id:Or.id>1?Or.id:null},Or));return{name:Pr,sub_item_banks:Er}}),ji=()=>{to(""),fr([])},Ai={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Wr=({value:Er})=>Ba.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},Er),[zo,Br]=(0,le.useState)();return Ba.createElement("section",{className:St.wrap},Ba.createElement("p",{className:St.titleWrap},Ba.createElement("span",{className:St.required},"*"),Ba.createElement("span",{className:St.title},"\u9898\u5E72\uFF1A")),Ba.createElement(Gn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pr,onChange:Er=>to(Er)}),Ba.createElement(We.default,{form:pr,autoComplete:"off"},Ba.createElement(We.default.List,{name:"sub_item_banks",rules:[{validator(Er,Or){return Or?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Er,{add:Or,remove:kr})=>{const gr=pr.getFieldValue("sub_item_banks");return Ba.createElement(Ba.Fragment,null,Ba.createElement(tn.default,{className:Er.length>0?St.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Aa})=>Ba.createElement("i",{className:`iconfont icon-weizhankai ${Aa?St.open:St.close}`,style:{fontSize:14,transition:"all .2s"}})},Er.map((Aa,_o)=>{var xa=Aa,{key:Wa,name:wo}=xa,Oa=ou(xa,["key","name"]),El,Nr,_s,jo,Hs,gl,rc,ad,kc,oc,vc,as;return Ba.createElement(Cs,{className:St.panel,forceRender:!0,header:Ba.createElement("div",{className:St.panelHeader},"\u7B2C",_o+1,"\u5C0F\u9898",Ba.createElement("span",null,"\uFF08",Ai[(El=gr==null?void 0:gr[wo])==null?void 0:El.item_type],"\uFF09")),extra:Ba.createElement(lt.Z,{align:"middle",onClick:du=>du.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Nr=gr==null?void 0:gr[wo])==null?void 0:Nr.item_type)=="completion"&&Ba.createElement(We.default.Item,jl(sl({},Oa),{name:[wo,"score"],className:St.blankInputNumberWrapper,style:{marginBottom:0}}),((_s=gr==null?void 0:gr[wo])==null?void 0:_s.item_type)=="completion"&&Ba.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Ba.createElement(Wr,{value:(jo=gr==null?void 0:gr[wo])==null?void 0:jo.score}),"\u5206")),((Hs=gr==null?void 0:gr[wo])==null?void 0:Hs.item_type)=="completion"&&Ba.createElement(Ba.Fragment,null,Ba.createElement(ft.ZP.Group,{defaultValue:(gl=gr==null?void 0:gr[wo])==null?void 0:gl.use_blank_score,className:St.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:du=>{var Rc;console.log(pr.getFieldsValue()),pr==null||pr.setFieldValue(["sub_item_banks",wo,"use_blank_score"],(Rc=du==null?void 0:du.target)==null?void 0:Rc.value),Br(new Date)}}),Ba.createElement(ut.Z,{overlayInnerStyle:{width:460},title:Ba.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Ba.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Ba.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Wa},Ba.createElement(We.default.Item,jl(sl({},Oa),{name:wo}),(((rc=gr==null?void 0:gr[wo])==null?void 0:rc.item_type)=="single"||((ad=gr==null?void 0:gr[wo])==null?void 0:ad.item_type)=="multiple")&&Ba.createElement(Qo,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((kc=gr==null?void 0:gr[wo])==null?void 0:kc.item_type)!="single",form:pr,choiceKey:[wo,"choices"],titleKey:[wo,"name"],analysisKey:[wo,"analysis"],choiceOptionsPath:["sub_item_banks",wo,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((oc=gr==null?void 0:gr[wo])==null?void 0:oc.item_type)=="completion"&&Ba.createElement(Lo,{form:pr,name:wo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[wo,"use_blank_score"],titleKey:[wo,"name"],analysisKey:[wo,"analysis"],isOrdered:[wo,"is_ordered"],answerKey:[wo,"standard_answer"],key:zo}),((vc=gr==null?void 0:gr[wo])==null?void 0:vc.item_type)=="judgement"&&Ba.createElement(fa,{form:pr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[wo,"name"],analysisKey:[wo,"analysis"],choiceKey:[wo,"choices"]}),((as=gr==null?void 0:gr[wo])==null?void 0:as.item_type)=="subjective"&&Ba.createElement(ps,{showKeywords:!0,form:pr,titleKey:[wo,"name"],analysisKey:[wo,"analysis"],answerTexts:[wo,"answer_texts"],useKeywords:[wo,"use_keywords"],keywords:[wo,"keywords"],indexs:wo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Tl=(0,je.connect)(({loading:Jt,globalSetting:Yt})=>({globalSetting:Yt,loading:Jt.effects}),null,null,{forwardRef:!0})((0,le.forwardRef)($l)),Kl=pe(6021),Oo=pe(19842),ic=pe(57809),zl=pe(1710),En={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},Nn=pe(85057),ai=pe(94860),Qi=pe(92365),Gi=pe(83312),ki=pe(8797),_i=pe(32570),Mi=({open:Jt,onCancel:Yt,onOk:Dn})=>{const nt=(0,ai.g)(),[Qt,lr,Ir,mr]=(0,Gi.U)(Qi.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[ur,Bi]=(0,le.useState)(!1);(0,le.useEffect)(()=>{Jt&&Ir({page:1,limit:10,type:0},!0).then(pr=>{(pr==null?void 0:pr.shixuns_count)===0&&Bi(!0)})},[Jt]);const[Pr,to]=(0,le.useState)([]),[So,fr]=(0,le.useState)([]);return le.createElement(Ue.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Jt,width:948,centered:!0,closable:!0,onCancel:Yt,onOk:()=>Dn(So),destroyOnClose:!0},le.createElement(lt.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},le.createElement(vt.Z,null,le.createElement(Oo.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:nt,onChange:pr=>{Ir({page:1,discipline_id:pr==null?void 0:pr[0],sub_discipline_id:pr==null?void 0:pr[1]})}}),le.createElement(ic.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:pr=>Ir({page:1,diff:pr})}),le.createElement(ic.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:pr=>Ir({page:1,shixun_publish_status:pr})})),le.createElement(Nn.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:pr=>{Ir({keyword:pr,page:1})}})),ur?le.createElement("div",null,le.createElement(ki.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Xe.xg)("/shixuns")})):le.createElement(zl.default,{loading:lr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(pr,vr)=>le.createElement("div",{style:{display:"flex",alignItems:"center"}},le.createElement("div",{className:vr!=null&&vr.high_resources_consume?En.title:"",title:pr||"--"},le.createElement(ze.Z,{key:1,showLines:1,showTextOnly:!0,value:pr||"--"})),(vr==null?void 0:vr.high_resources_consume)&&le.createElement(_i.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(pr,vr,ji)=>le.createElement("span",null,pr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:le.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",le.createElement(ut.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},le.createElement($n.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(pr,vr,ji)=>le.createElement("span",null,pr||"- -")},{title:"\u64CD\u4F5C",render(pr,vr){const{title:ji,challenge_names:Ai,author_name:Wr,identifier:zo,author_school_name:Br,study_count:Er}=vr||{};return le.createElement("div",null,le.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Ue.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:le.createElement("div",null,le.createElement(ze.Z,{value:ji,style:{marginBottom:18}}),le.createElement("div",{className:En.challengeNameWrapper},Ai.map((Or,kr)=>le.createElement("div",{className:En.challengeName,key:kr},"\u7B2C",(0,Xe.EM)(kr+1),"\u9898\xA0",Or))),le.createElement(lt.Z,{className:En.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},le.createElement(vt.Z,{className:En.shixunInfoWrapper},le.createElement("span",null,"\u521B\u5EFA\u8005"),le.createElement("span",{className:En.shixunInfo},Wr.split("\u3001")[0]),le.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),le.createElement("span",{className:En.shixunInfo},Br),le.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),le.createElement("span",{className:En.shixunInfo},Er)),le.createElement(Ge.ZP,{type:"primary",className:En.btnToDetail,onClick:()=>(0,Xe.xg)(`/shixuns/${zo}/challenges?exercise=true`)},le.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(vr==null?void 0:vr.shixun_tag_num)===1&&le.createElement("a",{target:"_blank",href:`/shixuns/${vr==null?void 0:vr.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:mr==null?void 0:mr.items,rowSelection:{type:"radio",selectedRowKeys:Pr,preserveSelectedRowKeys:!0,getCheckboxProps:pr=>({disabled:pr.shixun_tag_num===1}),onChange(pr,vr){var ji,Ai,Wr;console.log(pr),to(pr);const zo=[];for(const Er of So)pr.includes(Er.id)&&zo.push(Er);const Br=zo.map(Er=>Er.id);for(const Er of vr)Er&&pr.includes(Er.id)&&!Br.includes(Er.id)&&zo.push({id:Er.id,difficulty:Er.level,identifier:Er.identifier,name:Er.name,real_name:(ji=Er==null?void 0:Er.author_name)==null?void 0:ji.split("\u3001")[0],school_name:Er.author_school_name,challenge_names:Er.challenge_names,challenges:(Ai=Er.challenge_names)==null?void 0:Ai.map((Or,kr)=>({subject:Or,id:kr,score:5})),score:((Wr=Er.challenge_names)==null?void 0:Wr.length)*5,study_count:Er.study_count,challenges_count:Er.challenges_count});fr(zo)}},pagination:{current:Qt.page,pageSize:Qt.limit,total:mr==null?void 0:mr.items_count,showTotal:pr=>le.createElement("span",null,"\u5171\xA0",le.createElement("span",{style:{color:"#165DFF"}},pr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(pr,vr){Ir({page:pr,limit:vr})},size:"default"},scroll:{y:400}}))},cr=pe(82438),Hr=pe(49692),ga=(Jt,Yt,Dn)=>new Promise((nt,Qt)=>{var lr=ur=>{try{mr(Dn.next(ur))}catch(Bi){Qt(Bi)}},Ir=ur=>{try{mr(Dn.throw(ur))}catch(Bi){Qt(Bi)}},mr=ur=>ur.done?nt(ur.value):Promise.resolve(ur.value).then(lr,Ir);mr((Dn=Dn.apply(Jt,Yt)).next())}),Ua=({visible:Jt,getdata:Yt,onCancel:Dn,onRandomExchange:nt,selectFromProblemSet:Qt,questionParams:lr})=>{const[Ir,mr]=(0,le.useState)(!1),[ur,Bi]=(0,le.useState)(!1),[Pr,to]=(0,le.useState)({}),So=(0,je.useParams)(),[fr,pr]=(0,le.useState)(),vr=(ji,Ai)=>ga(void 0,null,function*(){Bi(!0);const Wr=yield(0,Ye.ZP)(`/api/exercises/${So.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:lr.id,item_bank_id:ji,shixuns_info:[{id:ji,is_copy:Ai!=1,is_use:Ai!=1}]}});Bi(!1),Wr!=null&&Wr.status||(Ct.ZP.info("\u6362\u9898\u6210\u529F"),Dn(),Yt())});return le.createElement(Ue.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Jt,onCancel:Dn,centered:!0,maskClosable:!0,footer:null},le.createElement(lt.Z,{justify:"center",className:"pb20"},le.createElement(Kl.Z,{onClick:nt},"\u968F\u673A\u66F4\u6362"),(lr==null?void 0:lr.type)!=="PRACTICAL"&&le.createElement(Ge.ZP,{style:{marginLeft:24},onClick:Qt},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(lr==null?void 0:lr.type)==="PRACTICAL"&&le.createElement(Ge.ZP,{style:{marginLeft:24},onClick:()=>{mr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),le.createElement(Mi,{open:Ir,onCancel:()=>mr(!1),onOk:ji=>ga(void 0,null,function*(){if(console.log("----selectedRows",ji,So),(ji==null?void 0:ji.length)<=0){Ct.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ai=ji==null?void 0:ji.map(zo=>zo==null?void 0:zo.id),Wr=yield(0,Hr.Tr)({id:[...Ai],course_id:So.coursesId,type:"shixun"});(Wr==null?void 0:Wr.student_count)===0?vr(Ai==null?void 0:Ai[0],1):(pr(Ai),to(Wr)),mr(!1)})}),le.createElement(cr.Z,{resdata:Pr,type:"shixun",okloading:ur,oktext:(Pr==null?void 0:Pr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ji=>ga(void 0,null,function*(){vr(fr==null?void 0:fr[0],2)})}))},Ka=pe(94734),No=pe(24334),qr=pe(69304),Fi=pe(68042),eo=pe(14165),Ko=Object.defineProperty,ma=Object.defineProperties,ya=Object.getOwnPropertyDescriptors,bo=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,Dr=(Jt,Yt,Dn)=>Yt in Jt?Ko(Jt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Jt[Yt]=Dn,Da=(Jt,Yt)=>{for(var Dn in Yt||(Yt={}))oa.call(Yt,Dn)&&Dr(Jt,Dn,Yt[Dn]);if(bo)for(var Dn of bo(Yt))Io.call(Yt,Dn)&&Dr(Jt,Dn,Yt[Dn]);return Jt},Ha=(Jt,Yt)=>ma(Jt,ya(Yt)),La=(Jt,Yt,Dn)=>new Promise((nt,Qt)=>{var lr=ur=>{try{mr(Dn.next(ur))}catch(Bi){Qt(Bi)}},Ir=ur=>{try{mr(Dn.throw(ur))}catch(Bi){Qt(Bi)}},mr=ur=>ur.done?nt(ur.value):Promise.resolve(ur.value).then(lr,Ir);mr((Dn=Dn.apply(Jt,Yt)).next())}),xu=({data:Jt,submit:Yt,goBack:Dn,loading:nt,onTypeScore:Qt,editPreview:lr=!1,onSkipExamination:Ir,selectValue:mr,onExchange:ur,getdata:Bi,handleMarkWrongQuestion:Pr})=>{var to,So,fr,pr,vr,ji,Ai,Wr,zo,Br,Er;const Or=(0,le.useRef)(),[kr,gr]=(0,le.useState)(null),[Aa,_o]=(0,le.useState)(!1),[xa,Wa]=(0,le.useState)(!1),wo=(0,le.useRef)(),[Oa]=We.default.useForm(),El=(0,je.useParams)(),[Nr,_s]=(0,le.useState)(!1);(0,le.useEffect)(()=>{_o(!0)},[]),(0,le.useEffect)(()=>{lr||(0,Xe.Dk)("\u8BD5\u5377\u9884\u89C8")},[lr]);const jo=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Hs={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},gl={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},rc=li=>{var fo;const Xa=[];return le.createElement(le.Fragment,null,le.createElement("aside",{className:ke.single},(fo=li==null?void 0:li.choices)==null?void 0:fo.map((rt,et)=>(rt.is_answer&&Xa.push(eo.k4[et]),le.createElement("ul",{key:et},le.createElement("li",null,eo.k4[et],"\u3001"),le.createElement("li",null,le.createElement(ze.Z,{value:rt.choice_text})))))),le.createElement("div",{className:ke.analysis},le.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Xa.join(""),le.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",jo[li.difficulty])),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:li.analysis?li.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),li==null?void 0:li.tag_discipline_name)))))},ad=(li,fo)=>{var Xa;const rt=(Xa=li==null?void 0:li.standard_answer)==null?void 0:Xa.map((et,Ut)=>{var Xt;return le.createElement("div",{key:Ut},`\u7B54\u6848\uFF08\u586B\u7A7A${et==null?void 0:et.position}\uFF09\uFF1A${(Xt=et==null?void 0:et.answer_text)==null?void 0:Xt.join("\u3001")}`)});return le.createElement(le.Fragment,null,le.createElement("div",{className:ke.analysis},le.createElement("div",{style:{display:"flex"}},le.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),le.createElement("div",null,rt)),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:li.analysis?li.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),fo?`${(fo==null?void 0:fo.discipline_name)||"--"}/${fo==null?void 0:fo.sub_discipline_name}`:`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:fo?fo==null?void 0:fo.tag_discipline_name:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),fo?fo==null?void 0:fo.tag_discipline_name:li==null?void 0:li.tag_discipline_name)))))},kc=li=>{var fo;const Xa=(fo=li==null?void 0:li.standard_answer)==null?void 0:fo.map((rt,et)=>le.createElement("div",{key:et},`\u7B54\u6848\uFF08\u586B\u7A7A${(rt==null?void 0:rt.position)||(rt==null?void 0:rt.exercise_choice_id)}\uFF09\uFF1A${rt==null?void 0:rt.answer_text}`));return le.createElement(le.Fragment,null,le.createElement("div",{className:ke.analysis},le.createElement("div",{style:{display:"flex"}},le.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),le.createElement("div",null,Xa)),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:li.analysis?li.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),li==null?void 0:li.tag_discipline_name)))))},oc=(li,fo)=>{var Xa;return le.createElement("div",{className:ke.analysis},le.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Xa=li==null?void 0:li.answer_texts)==null?void 0:Xa[0]),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:li.analysis?li.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),fo?`${(fo==null?void 0:fo.discipline_name)||"--"}/${fo==null?void 0:fo.sub_discipline_name}`:`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:fo?fo==null?void 0:fo.tag_discipline_name:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),fo?fo==null?void 0:fo.tag_discipline_name:li==null?void 0:li.tag_discipline_name))))},vc=li=>{var fo,Xa;return le.createElement("div",{className:ke.analysis},le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u9884\u671F\u8F93\u51FA:"),le.createElement(ze.Z,{value:(fo=li==null?void 0:li.program_attr)==null?void 0:fo.description})),le.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Xa=li==null?void 0:li.program_attr)==null?void 0:Xa.answer_text)||"--"),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:li.analysis?li.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),li==null?void 0:li.tag_discipline_name))))},as=(li,fo)=>{var Xa;return le.createElement("div",null,(Xa=li==null?void 0:li.sub_item_banks)==null?void 0:Xa.map((rt,et)=>{var Ut,Xt;const gn=[];return le.createElement(le.Fragment,null,le.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},fo+1+"."+(et+1),"\uFF08",Hs[rt.item_type]||gl[rt.item_type],"\uFF09",rt.name),(rt.item_type=="SINGLE"||rt.item_type=="MULTIPLE"||rt.item_type=="JUDGMENT"||rt.item_type=="single"||rt.item_type=="multiple"||rt.item_type=="judgement")&&le.createElement(le.Fragment,null,le.createElement("aside",{className:ke.single},(Ut=rt==null?void 0:rt.choices)==null?void 0:Ut.map((nn,Vn)=>(nn.is_answer&&gn.push(eo.k4[Vn]),le.createElement("ul",{key:Vn},le.createElement("li",null,eo.k4[Vn],"\u3001"),le.createElement("li",null,le.createElement(ze.Z,{value:nn.choice_text})))))),le.createElement("div",{className:ke.analysis},le.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",gn.join(""),le.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",jo[rt.difficulty])),le.createElement("aside",null,le.createElement("span",{className:ke.text},"\u89E3\u6790:"),le.createElement(ze.Z,{value:rt.analysis?rt.analysis:"\u6682\u65E0\u89E3\u6790"})),le.createElement("ul",null,le.createElement("li",null,le.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(li==null?void 0:li.discipline_name)||"--"}/${li==null?void 0:li.sub_discipline_name}`),le.createElement(ut.Z,{title:li==null?void 0:li.tag_discipline_name},le.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},le.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),li==null?void 0:li.tag_discipline_name))))),(rt.item_type=="COMPLETION"||rt.item_type=="completion")&&ad(rt,li),(rt.item_type=="SUBJECTIVE"||rt.item_type=="subjective")&&oc(rt,li),((Xt=Jt==null?void 0:Jt.exam)==null?void 0:Xt.exercise_status)===3&&le.createElement("div",{className:"flex gap-20px mt20"},le.createElement(qr.Z,{state:rt==null?void 0:rt.is_wrong,onClick:()=>{Pr==null||Pr({value:Ha(Da({},rt),{question_id:rt==null?void 0:rt.id,question_score:rt==null?void 0:rt.score})})}}),rt.item_type=="single"&&le.createElement(Ge.ZP,{style:{color:"#3061D0"},onClick:()=>{_d({value:rt})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},du=li=>{var fo,Xa,rt;return le.createElement("div",{style:{marginTop:"12px"}},(Xa=(fo=li==null?void 0:li.shixun)==null?void 0:fo.challenges)==null?void 0:Xa.map((et,Ut)=>le.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},le.createElement("div",null,le.createElement("span",{className:"mr5"},"\u7B2C",Ut+1,"\u5173"),le.createElement(ut.Z,{key:Ut,title:et==null?void 0:et.challenge_name},le.createElement("span",null,(0,Xe.Pq)(et==null?void 0:et.challenge_name,44)))),lr&&le.createElement("div",null,"\u5206\u503C\uFF1A",et.score,"\u5206"))),le.createElement(je.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(rt=li==null?void 0:li.shixun)==null?void 0:rt.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),le.createElement("div",{style:{clear:"both"}}))},Rc=li=>{let fo=li.questions_score/li.questions_count;Ue.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:le.createElement("div",{className:ke.modalColumn},le.createElement("div",{className:ke.modalRow,style:{justifyContent:"flex-start"}},le.createElement("sup",{className:ke.sup},"*"),le.createElement("span",null,li==null?void 0:li.name,"\uFF1A"),le.createElement(Me.Z,{min:0,precision:1,defaultValue:fo,onChange:Xa=>{fo=Xa}}),le.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>La(void 0,null,function*(){var Xa;if(!fo)return Ct.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const rt={type:li==null?void 0:li.type,score:fo,scoreTotal:Number((Xa=fo*li.questions_count)==null?void 0:Xa.toFixed(1))};Qt(rt)})})},ac=()=>{let li="";Ue.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:le.createElement("div",{className:ke.modalColumn},le.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},le.createElement("img",{style:{marginRight:5},src:ln.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),le.createElement("div",{className:ke.modalRow,style:{marginTop:20}},le.createElement("sup",{className:ke.sup},"*"),le.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),le.createElement(wt.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:li,onChange:fo=>{li=fo.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>La(void 0,null,function*(){var fo;if(!li)return Ct.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Xa=[],rt=[],et=[],Ut=[];(fo=Jt==null?void 0:Jt.questionList)==null||fo.forEach(gn=>{var nn;(nn=gn.questions)==null||nn.forEach(Vn=>{let jn=gn.questions_score/gn.questions_count;jn=jn&&jn.toFixed(1),gn.type==="COMBINATION"&&et.push({id:Vn.id,sub_item_bank_ids:Vn.sub_item_banks.map(Xn=>Xn.id)}),gn.type==="PRACTICAL"?Ut.push(Vn.id):(Xa.push(Vn.id),rt.push(jn))})}),console.log("-----",et),yield Yt({item_bank_ids:Xa,item_bank_scores:rt,name:li,combination_item_banks:et,shixun_ids:Ut})})})},Rd=(li,fo,Xa,rt)=>{var et;const Ut=`${location.pathname}${location.search}`,Xt=(et=rt.questions)==null?void 0:et.map(gn=>gn==null?void 0:gn.id);if(Ut.includes("exercise"))wo.current={id:li,ids:Xt,type:fo,index:Xa},Wa(!0);else{let gn=Ue.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>La(void 0,null,function*(){gn.update({cancelButtonProps:{disabled:!0}}),yield ur({single_question_id:li,seleted_item_bank_ids:Xt},{type:fo,index:Xa}),gn.update({cancelButtonProps:{disabled:!1}}),Ct.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},au=li=>{var fo;const Xa=(fo=li.questions)==null?void 0:fo.map(Ut=>Ut==null?void 0:Ut.id),rt=li.name;let et=Ue.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${rt}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>La(void 0,null,function*(){et.update({cancelButtonProps:{disabled:!0}}),yield ur({seleted_item_bank_ids:Xa},{type:li.type}),et.update({cancelButtonProps:{disabled:!1}}),Ct.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${rt}\u8BD5\u9898`)})})},su=()=>{let li=Ue.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>La(void 0,null,function*(){li.update({cancelButtonProps:{disabled:!0}}),yield ur(),li.update({cancelButtonProps:{disabled:!1}}),Ct.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Wu=li=>{console.log(li,"key"),Ir(li-1)},Au=(li,fo)=>{var Xa,rt;if(fo==="SINGLE")return le.createElement(le.Fragment,null,le.createElement(Si,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="MULTIPLE")return le.createElement(le.Fragment,null,le.createElement(Ri,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="JUDGMENT")return le.createElement(le.Fragment,null,le.createElement(mn,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="COMPLETION")return le.createElement(le.Fragment,null,le.createElement(Bt,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="SUBJECTIVE")return le.createElement(le.Fragment,null,le.createElement(Ei,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="COMBINATION")return le.createElement(le.Fragment,null,le.createElement(Tl,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null));if(fo==="BPROGRAM")return le.createElement(le.Fragment,null,le.createElement(We.default,{form:Oa,style:{marginTop:20},onFinishFailed:et=>{var Ut,Xt;et.errorFields[0].name.includes("standard_answers")?Ct.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ct.ZP.error(et.errorFields[0].errors[0]),Oa.scrollToField((Xt=(Ut=et==null?void 0:et.errorFields)==null?void 0:Ut[0])==null?void 0:Xt.name,{behavior:"smooth",block:"center"})},onFinish:et=>La(void 0,null,function*(){var Ut;let Xt=Ha(Da({question_score:li.score},et),{question_type:8,hack:Ha(Da({},et.hack),{difficult:li.program_attr.difficult}),hack_codes:Ha(Da({},et.hack_codes),{code:No.Base64.encode((Ut=et.hack_codes)==null?void 0:Ut.code)})});Nr&&(Xt.is_cover=1);const gn=yield(0,Ye.ZP)(`/api/exercise_questions/${li.id}.json`,{method:"put",body:Xt});(gn==null?void 0:gn.status)===0&&(Ct.ZP.success("\u7F16\u8F91\u6210\u529F"),Wu(mr+1)),gr(null)})},le.createElement(Ka.tc,{form:Oa,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Xa=li==null?void 0:li.program_attr)==null?void 0:Xa.identifier,answerKey:"standard_answers"}),le.createElement($e.Z,null)));if(fo==="PROGRAM"&&je.history.push(`/problems/${(rt=li==null?void 0:li.program_attr)==null?void 0:rt.identifier}/edit?type=exercises&express_id=${El.categoryId}&question_id=${li==null?void 0:li.id}&score=${li==null?void 0:li.score}&callback_url=${location.pathname}&select=${mr}&exercise=true`),fo==="PRACTICAL")return le.createElement(le.Fragment,null,le.createElement(Hi,{ref:Or,editData:li,isEdit:!0}),le.createElement($e.Z,null))},yc=(li,fo)=>La(void 0,null,function*(){var Xa,rt,et,Ut,Xt,gn;const nn=yield(Xa=Or.current)==null?void 0:Xa.onSave();if(!nn)return;const Vn=Jn=>{const mi=Jn.map(Vi=>Vi.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(mi).size!==mi.length},jn={question_score:fo.score,analysis:nn.analysis};if(li==="SINGLE"||li==="MULTIPLE"||li==="JUDGMENT"){if(li!=="JUDGMENT"&&Vn(nn==null?void 0:nn.choices)){Ct.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const Jn=[],mi=[];jn.question_type=li==="JUDGMENT"?2:1,jn.question_title=nn==null?void 0:nn.name,(rt=nn==null?void 0:nn.choices)==null||rt.forEach((or,Vi)=>{Jn.push(or.choice_text),or!=null&&or.is_answer&&mi.push(Vi+1)}),jn.question_choices=Jn,jn.standard_answers=mi}if(li==="COMPLETION"){let Jn=(et=nn==null?void 0:nn.standard_answers)==null?void 0:et.map((Vi,Ui)=>(Vi==null?void 0:Vi.score)<=0?Ui+1:null).filter(Vi=>Vi!==null);if((Jn==null?void 0:Jn.length)>0)return Ct.ZP.warning(`\u7B2C${Jn.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let mi=(Ut=nn==null?void 0:nn.standard_answers)==null?void 0:Ut.reduce((Vi,Ui)=>Vi+(Number(Ui==null?void 0:Ui.score)||0),0);if(parseFloat(mi.toFixed(2))!=(jn==null?void 0:jn.question_score))return Ct.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;jn.is_ordered=nn.is_ordered,jn.question_title=nn==null?void 0:nn.name,jn.use_blank_score=nn==null?void 0:nn.use_blank_score,jn.question_type=3;const or=[];(Xt=nn==null?void 0:nn.standard_answers)==null||Xt.forEach((Vi,Ui)=>{or.push({choice_id:Vi.position,answer_text:Vi.answer_text,score:Vi.score})}),jn.standard_answers=or,jn.downcase=nn==null?void 0:nn.downcase,jn.no_space=nn==null?void 0:nn.no_space}if(li==="SUBJECTIVE"&&(console.log("editorData"),console.log(nn),jn.question_title=nn==null?void 0:nn.name,jn.question_type=4,jn.answer_texts=nn==null?void 0:nn.answer_texts,jn.use_keywords=nn==null?void 0:nn.use_keywords,jn.keywords=nn==null?void 0:nn.keywords),li==="COMBINATION"){jn.question_title=nn==null?void 0:nn.name,jn.question_type=7;try{jn.sub_questions=(gn=nn==null?void 0:nn.sub_item_banks)==null?void 0:gn.map((Jn,mi)=>{var or,Vi,Ui;if((Jn==null?void 0:Jn.item_type)=="single"||(Jn==null?void 0:Jn.item_type)=="multiple"){if(Vn(Jn==null?void 0:Jn.choices))throw new Error(`\u7B2C${mi+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Jr=[],ir=[];return(or=Jn==null?void 0:Jn.choices)==null||or.forEach((Rr,jr)=>{Jr.push(Rr.choice_text),Rr!=null&&Rr.is_answer&&ir.push(jr+1)}),{id:Jn.id,question_id:Jn.id,question_title:Jn.name,difficulty:Jn.difficulty,question_type:(Jn==null?void 0:Jn.item_type)=="single"?0:(Jn==null?void 0:Jn.item_type)=="multiple"?1:2,question_choices:Jr,standard_answers:ir,analysis:Jn.analysis,question_score:Jn==null?void 0:Jn.score}}else if((Jn==null?void 0:Jn.item_type)=="completion"){let Jr=(Vi=Jn==null?void 0:Jn.standard_answer)==null?void 0:Vi.reduce((Rr,jr)=>Rr+(Number(jr==null?void 0:jr.score)||0),0);if(parseFloat(Jr.toFixed(2))!=(Jn==null?void 0:Jn.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const ir=[];return(Ui=Jn==null?void 0:Jn.standard_answer)==null||Ui.forEach((Rr,jr)=>{ir.push({choice_id:Rr.position,answer_text:Rr.answer_text,score:Rr.score})}),{id:Jn.id,question_id:Jn.id,is_ordered:Jn.is_ordered,question_title:Jn.name,difficulty:Jn.difficulty,question_type:3,standard_answers:ir,use_blank_score:Jn.use_blank_score,analysis:Jn.analysis,downcase:Jn==null?void 0:Jn.downcase,no_space:Jn==null?void 0:Jn.no_space,question_score:Jn==null?void 0:Jn.score}}else if((Jn==null?void 0:Jn.item_type)=="subjective")return{id:Jn.id,question_id:Jn.id,question_title:Jn.name,question_type:4,difficulty:Jn.difficulty,answer_texts:Jn==null?void 0:Jn.answer_texts,analysis:Jn.analysis,question_score:Jn==null?void 0:Jn.score,use_keywords:Jn.use_keywords,keywords:Jn==null?void 0:Jn.keywords}})}catch(Jn){Ct.ZP.warning(Jn.message);return}delete jn.analysis}let Xn=!1;(fo==null?void 0:fo.is_my)===1&&(Xn=yield new Promise((mi,or)=>{Ue.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{mi(!0)},onCancel:()=>{mi(!1)}})})),Xn&&(jn.is_cover=1);const yi=li!=="PRACTICAL"?yield(0,Ye.ZP)(`/api/exercise_questions/${fo.id}.json`,{method:"put",body:jn}):yield(0,Ye.ZP)(`/api/exercise_questions/${fo.id}/update_shixun_score.json`,{method:"post",body:Da({},nn)});(yi==null?void 0:yi.status)===0&&(Ct.ZP.success("\u7F16\u8F91\u6210\u529F"),Wu(mr+1),gr(null))}),bd=()=>La(void 0,null,function*(){(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Ye.ZP)(`/api/exercises/${El.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Ir(mr),Ct.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),_d=({value:li}={})=>{var fo;const Xa=[];let rt=[];const et=(fo=li==null?void 0:li.choices)==null?void 0:fo.map((Xt,gn)=>{var nn;const Vn=gn+1;return Xt!=null&&Xt.is_answer&&(Xa.push(Vn),rt.push(Vn)),{value:Vn,label:le.createElement(ze.Z,{className:"c-black font14",value:`${(nn=eo.k4)==null?void 0:nn[gn]}. ${Xt==null?void 0:Xt.choice_text}`}),disabled:Xt==null?void 0:Xt.origin_standard_answer}}),Ut=Ue.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:le.createElement(le.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Xa==null?void 0:Xa.map(Xt=>{var gn;return(gn=eo.k4)==null?void 0:gn[Xt-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",le.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",le.createElement("br",null),le.createElement(Ft.default.Group,{className:"flex-col mt20",options:et,defaultValue:rt,onChange:Xt=>{rt=Xt}})),onOk:()=>La(void 0,null,function*(){const Xt=yield(0,Ye.ZP)(`/api/exercises/${El.categoryId}/questions/${li==null?void 0:li.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:rt}});(Xt==null?void 0:Xt.status)===0&&(Ct.ZP.success("\u4FEE\u6539\u6210\u529F"),Wu(mr+1))})})},Fd=(to=Jt==null?void 0:Jt.questionList)==null?void 0:to.reduce((li,fo)=>li+Number(fo.questions_score),0),ch=lr&&((So=Jt==null?void 0:Jt.exam)==null?void 0:So.exercise_status)!==1;return le.createElement("section",{className:ke.wrap},le.createElement("div",{id:"id_left_preview",className:ke.left,onMouseEnter:li=>{const fo=document.getElementById("id_left_preview");fo.style.overflowY="auto"},onMouseLeave:li=>{const fo=document.getElementById("id_left_preview");fo.style.overflowY="hidden"}},le.createElement("div",{className:ke.title},le.createElement("div",{className:"body-overflow-initial"},le.createElement("b",null),le.createElement("span",null,"\u7B54\u9898\u5361"))),le.createElement("div",{className:ke.total},le.createElement("div",null,le.createElement("img",{src:Wt}),le.createElement("span",null,"\u9898\u6570(\u9053)"),le.createElement("aside",null,Jt==null?void 0:Jt.all_questions_count)),le.createElement("div",{className:"mr30 ml30"},le.createElement("img",{src:qt}),le.createElement("span",null,"\u603B\u5206(\u5206)"),le.createElement("aside",null,Fd&&Fd.toFixed(1))),le.createElement("div",null,le.createElement("img",{src:Le}),le.createElement("span",null,"\u65F6\u957F(\u5206)"),le.createElement("aside",null,((fr=Jt==null?void 0:Jt.exam)==null?void 0:fr.time)===-1||((pr=Jt==null?void 0:Jt.exam)==null?void 0:pr.time)===null?"\u4E0D\u9650":(vr=Jt==null?void 0:Jt.exam)==null?void 0:vr.time))),(ji=Jt==null?void 0:Jt.questionList)==null?void 0:ji.map((li,fo)=>{var Xa;return le.createElement("div",{className:ke.list,key:fo},le.createElement("div",{className:ke.name},le.createElement("b",null),le.createElement("span",null,li.name)),le.createElement("aside",null,le.createElement("div",null,"\u5171",le.createElement("span",{className:ke.b},li.questions_count),"\u9898 ",le.createElement("span",{className:ke.l},"|"),"\u5171",le.createElement("span",{className:ke.r},li.questions_score),"\u5206"),le.createElement("div",{className:ke.answerSheet},(Xa=li==null?void 0:li.questions)==null?void 0:Xa.map((rt,et)=>le.createElement("div",{onClick:()=>{const Ut=`Anchor_${rt==null?void 0:rt.id}`;let Xt=document.getElementById(Ut);Xt&&setTimeout(()=>Xt.scrollIntoView({block:"center",behavior:"smooth"}))},key:rt==null?void 0:rt.id,className:ke.tag},et+1)))))})),le.createElement("div",{className:ke.right},le.createElement("div",{className:ke.examName,id:"examName"},le.createElement("div",{className:ke.name},le.createElement(ut.Z,{title:(Ai=Jt==null?void 0:Jt.exam)==null?void 0:Ai.name,getPopupContainer:li=>li.parentNode},le.createElement("span",{className:ke.t},(Wr=Jt==null?void 0:Jt.exam)==null?void 0:Wr.name))),lr&&((zo=Jt==null?void 0:Jt.exam)==null?void 0:zo.exercise_status)===1&&le.createElement(Nn.op,{openLoading:!0,shape:"default",onClick:()=>{Ue.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{bd()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!lr&&le.createElement(Ge.ZP,{onClick:su,type:"primary"},"\u968F\u673A\u66F4\u6362")),le.createElement("div",{className:ke.topWarp},(Br=Jt==null?void 0:Jt.questionList)==null?void 0:Br.map((li,fo)=>{var Xa,rt;return le.createElement(le.Fragment,{key:fo},le.createElement("div",{className:ke.head,style:fo===0?{border:0,marginTop:-16}:{}},le.createElement("div",{className:ke.name},le.createElement("b",null),le.createElement("span",null,li.name)),le.createElement("div",{className:ke.so},"\u5171",le.createElement("span",{className:ke.b},li.questions_count," "),"\u9898 ",li.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Xa=li==null?void 0:li.questions)==null?void 0:Xa.map(et=>{var Ut;return(Ut=et==null?void 0:et.sub_item_banks)==null?void 0:Ut.length}).reduce((et,Ut)=>et+Ut)}\u5C0F\u9898\uFF09`,le.createElement("span",{className:ke.l},"|"),"\u5171",le.createElement("span",{className:ke.r},li.questions_score),"\u5206"),!lr&&le.createElement("div",{className:ke.btn},le.createElement(Ge.ZP,{onClick:()=>{Rc(li)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),le.createElement(Ge.ZP,{onClick:()=>au(li),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(rt=li==null?void 0:li.questions)==null?void 0:rt.map((et,Ut)=>{var Xt,gn,nn,Vn;return kr===(et==null?void 0:et.id)?le.createElement("div",{id:`Anchor_${et==null?void 0:et.id}`,className:ke.content,style:{padding:0,marginTop:24},key:et==null?void 0:et.id},le.createElement("div",{style:{float:"right",marginTop:`${(li==null?void 0:li.type)==="PRACTICAL"?"-2px":"-6px"}`}},le.createElement(Ge.ZP,{onClick:()=>gr(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),le.createElement(Ge.ZP,{onClick:()=>{yc(li==null?void 0:li.type,et)},type:"primary"},"\u4FDD\u5B58")),Au(et,li.type)):le.createElement("div",{id:`Anchor_${et==null?void 0:et.id}`,className:ke.content,key:et==null?void 0:et.id},le.createElement("div",{className:ke.titleWrap},(et==null?void 0:et.item_type)==="bprogram"?le.createElement(ze.Z,{style:{paddingRight:10},value:Ut+1+"\u3001"+((Xt=et==null?void 0:et.program_attr)==null?void 0:Xt.description)}):le.createElement(ze.Z,{style:{paddingRight:10},className:ke.titleHtml,value:Ut+1+`\u3001${(et==null?void 0:et.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(et==null?void 0:et.name)}),lr&&le.createElement(Ge.ZP,{onClick:()=>{var jn,Xn,yi;if(kr){Ct.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Oa.setFieldsValue({standard_answers:et==null?void 0:et.standard_answer,hack:Da(Da({},et),et==null?void 0:et.program_attr),hack_codes:Ha(Da({},et==null?void 0:et.program_attr),{code:No.Base64.decode(((jn=et==null?void 0:et.program_attr)==null?void 0:jn.code)||"")}),hack_sets:Da({},(Xn=et==null?void 0:et.hack_sets)==null?void 0:Xn[0])}),(et==null?void 0:et.item_type)=="program"?je.history.push(`/problems/newedit/${(yi=et==null?void 0:et.program_attr)==null?void 0:yi.identifier}?type=exercises&express_id=${El.categoryId}&question_id=${et==null?void 0:et.id}&score=${et==null?void 0:et.score}&exercise=true&callback_url=/classrooms/${El.coursesId}/exercise/${El.categoryId}/detail?random=true`):gr(et==null?void 0:et.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!ch&&le.createElement(Ge.ZP,{disabled:ch,className:"ml20",onClick:()=>Rd(et==null?void 0:et.id,li.type,Ut,li),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(et==null?void 0:et.item_type)==="bprogram"&&le.createElement(ze.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ke.titleHtml,value:No.Base64.decode(((gn=et==null?void 0:et.program_attr)==null?void 0:gn.code)||"")}),(li.type==="SINGLE"||li.type==="JUDGMENT"||li.type==="MULTIPLE")&&rc(et),li.type==="COMPLETION"&&ad(et),li.type==="SUBJECTIVE"&&oc(et),li.type==="PROGRAM"&&vc(et),li.type==="BPROGRAM"&&kc(et),li.type==="COMBINATION"&&as(et,Ut),li.type==="PRACTICAL"&&du(et),le.createElement(lt.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((nn=Jt==null?void 0:Jt.exam)==null?void 0:nn.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(li.type)&&le.createElement(vt.Z,null,le.createElement(qr.Z,{state:et==null?void 0:et.is_wrong,onClick:()=>{Pr==null||Pr({value:Ha(Da({},et),{question_id:et==null?void 0:et.id,question_score:et==null?void 0:et.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(li.type)&&(et==null?void 0:et.show_resubmit)&&le.createElement(vt.Z,null,le.createElement(Fi.C,{dataSource:Ha(Da({},et),{question_id:et==null?void 0:et.id})})),((Vn=Jt==null?void 0:Jt.exam)==null?void 0:Vn.exercise_status)===3&&["SINGLE"].includes(li.type)&&le.createElement(vt.Z,null,le.createElement(Ge.ZP,{style:{color:"#3061D0"},onClick:()=>{_d({value:et})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),lr?le.createElement(Nn.vr,null,le.createElement(Ie.Z,{showTotal:Xe.rU,total:(Er=Jt==null?void 0:Jt.exam)==null?void 0:Er.total_num,pageSize:1,current:mr+1,showSizeChanger:!1,onChange:Wu,showQuickJumper:!1,hideOnSinglePage:!1})):le.createElement(Nn.vr,{LeftContent:le.createElement(Nn.op,{onClick:Dn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:le.createElement(lt.Z,{align:"middle"},le.createElement(te.Z,{color:"#55575D",overlayClassName:ke.popover,open:Aa,getPopupContainer:li=>li==null?void 0:li.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},le.createElement(Nn.op,{onMouseEnter:()=>_o(!0),onMouseLeave:()=>_o(!1),onClick:()=>ac(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),le.createElement(Nn.op,{shape:"default",type:"primary",onClick:()=>Yt(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),le.createElement(Ua,{visible:xa,questionParams:wo.current,getdata:Bi,onRandomExchange:()=>La(void 0,null,function*(){const li=wo.current;yield ur({single_question_id:li.id,seleted_item_bank_ids:li.ids},{type:li.type,index:li.index}),Wa(!1)}),selectFromProblemSet:()=>{const li=wo.current,fo=`${location.pathname}${location.search}`;fo.includes("exercise")&&je.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${li.id}&qtype=${li.type}&exerciseid=${El.categoryId}&from=${fo}`)},onCancel:()=>{Wa(!1)}}))}},43794:function(On,pn,pe){"use strict";pe.r(pn),pe.d(pn,{default:function(){return zl}});var le=pe(59301),ke={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},We=pe(8591),ut=pe(78241),Ge=pe(66104),Ue=pe(89070),Me=pe(23367),Ct=pe(71418),wt=pe(92832),$e=pe(19842),Ft=pe(5112),lt=pe(95237),vt=pe(5871),Ie=pe(3113),te=pe(99064),ee=Object.defineProperty,de=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ve=(En,Nn,ai)=>Nn in En?ee(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Ee=(En,Nn)=>{for(var ai in Nn||(Nn={}))se.call(Nn,ai)&&ve(En,ai,Nn[ai]);if(de)for(var ai of de(Nn))he.call(Nn,ai)&&ve(En,ai,Nn[ai]);return En},Be=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())});function Le(En){return Be(this,null,function*(){return(0,te.ZP)(`/api/examination_banks/${En}/edit_random_exam_new.json`,{method:"get"})})}function ze(En,Nn){return Be(this,null,function*(){return(0,te.ZP)(`/api/examination_banks/${En}/update_random_exam.json`,{method:"post",body:Nn})})}function je(En){return Be(this,null,function*(){return(0,te.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:En})})}function Xe(En){return Be(this,null,function*(){return(0,te.ZP)("/api/disciplines.json",{method:"get",params:En})})}function Ye(En){return Be(this,null,function*(){return(0,te.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:En})})}function dt(En,Nn){return Be(this,null,function*(){return(0,te.ZP)(`/api/examination_banks/${En}/set_item_type_score.json`,{method:"post",body:Nn})})}function He(En,Nn){return Be(this,null,function*(){return(0,te.ZP)(`/api/exercises/${En}/set_item_type_score.json`,{method:"post",body:Nn})})}function Nt(En,Nn){return Be(this,null,function*(){return(0,te.ZP)(`/api/examination_banks/${En}/delete_item_type.json`,{method:"post",body:Nn})})}function ot(En,Nn){return Be(this,null,function*(){return(0,te.ZP)(`/api/exercises/${En}/delete_item_type.json`,{method:"post",body:Nn})})}function Tt(En){return Be(this,null,function*(){return(0,te.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:En})})}function xt(En){return Be(this,null,function*(){return(0,te.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:En})})}function Ot(En){return Be(this,null,function*(){return(0,te.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:En})})}function Wt(En){return Be(this,null,function*(){return(0,te.ZP)(`/api/exercises/${En.categoryId}/edit.json`,{method:"get",params:Ee({},En)})})}var Dt=(En=>(En.OnlyFileFolder="1",En.OnlyKnowledge="2",En.OnlyDifficulty="3",En.FileFolderAndDiff="4",En.FileFolderAndKnowledge="5",En.KnowledgeAndDiff="6",En.All="7",En.Shixun="8",En))(Dt||{}),tt=pe(89392),Ve=Object.defineProperty,_t=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,ln=(En,Nn,ai)=>Nn in En?Ve(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Gn=(En,Nn)=>{for(var ai in Nn||(Nn={}))zt.call(Nn,ai)&&ln(En,ai,Nn[ai]);if(yn)for(var ai of yn(Nn))qt.call(Nn,ai)&&ln(En,ai,Nn[ai]);return En},un=(En,Nn)=>_t(En,vn(Nn)),_n=(En=>(En[En.FileFolder=1]="FileFolder",En[En.Difficulty=2]="Difficulty",En[En.Knowledge=3]="Knowledge",En))(_n||{});const St=(0,le.createContext)(null),Zn={[Dt.OnlyFileFolder]:[1],[Dt.OnlyKnowledge]:[3],[Dt.OnlyDifficulty]:[2],[Dt.FileFolderAndDiff]:[1,2],[Dt.FileFolderAndKnowledge]:[1,3],[Dt.KnowledgeAndDiff]:[3,2],[Dt.All]:[3,2,1]},ci=(En,Nn)=>{if(En.length!==Nn.length)return!1;for(const ai of Nn)if(!En.includes(ai))return!1;return!0},Ze=En=>{for(const[Nn,ai]of Object.entries(Zn))if(ci(En,ai))return Nn},be={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},Pe={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},Ae=En=>En&&parseFloat(En.toFixed(1)),Oe=(En,Nn)=>{var ai,Qi,Gi;switch(Nn.type){case"init":return Nn.payload;case"updateBaseInfo":return un(Gn({},En),{examination_bank:Nn.payload});case"deleteQuestionType":{const{item_types:ki}=En,_i=ki.filter(oi=>oi.item_type!==Nn.payload);return En.examination_bank.question_count=Ae(_i.reduce((oi,Mi)=>oi+Mi.item_bank_count,0)),En.examination_bank.total_score=Ae(_i.reduce((oi,Mi)=>oi+Mi.total_score,0)),un(Gn({},En),{item_types:_i})}case"setQuestionType":{const{item_types:ki=[]}=En,_i=ki.map(Mi=>Mi.item_type),oi=ki.filter(Mi=>Nn.payload.includes(Mi.item_type));for(const Mi of Nn.payload)_i.includes(Mi)||(Mi==="PRACTICAL"?oi.push({item_type:Mi,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:be[Mi],random_rule_type:Dt.Shixun,score:0,total_score:0}):oi.push({item_type:Mi,contents:[],item_bank_count:0,item_type_text:be[Mi],score:0,total_score:0}));return un(Gn({},En),{item_types:oi})}case"updateItemTypes":return un(Gn({},En),{item_types:Nn.payload});case"deleteRule":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(Mi=>Mi.item_type===Nn.payload.itemType),oi=_i.contents.find(Mi=>Mi.id===Nn.payload.id&&Mi.is_share==Nn.payload.is_share);return _i.contents=_i.contents.filter(Mi=>Mi!==oi),((ai=_i.contents)==null?void 0:ai.length)===0&&(_i.random_rule_type=[]),_i.item_bank_count-=oi==null?void 0:oi.quanlity,ki.examination_bank.question_count-=oi==null?void 0:oi.quanlity,_i.total_score-=(oi==null?void 0:oi.quanlity)*_i.score,ki.examination_bank.total_score-=(oi==null?void 0:oi.quanlity)*_i.score,_i.total_score=Ae(_i.total_score),ki.examination_bank.total_score=Ae(ki.examination_bank.total_score),ki.contents=_i.contents,ki}case"changeQuestionNum":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(ga=>ga.item_type===Nn.payload.itemType),oi=(Qi=_i==null?void 0:_i.contents)==null?void 0:Qi.find(ga=>ga.id===Nn.payload.id);if(Nn.payload.itemType==="PRACTICAL")return Nn.payload.num&&(ki.examination_bank.question_count=ki.examination_bank.question_count-_i.item_bank_count+Nn.payload.num,ki.examination_bank.total_score=Ae(ki.examination_bank.total_score-_i.total_score+Nn.payload.num*_i.score)),Nn.payload.score&&(ki.examination_bank.total_score=Ae(ki.examination_bank.total_score-_i.total_score+Nn.payload.num*_i.score)),_i.item_bank_count=Nn.payload.num,_i.total_score=Ae(_i.item_bank_count*_i.score),ki;ki.examination_bank.question_count=ki.examination_bank.question_count-(oi==null?void 0:oi.quanlity)+Nn.payload.num;const Mi=_i.contents.find(ga=>ga.id===Nn.payload.id&&ga.teacher_group_id===Nn.payload.teacher_group_id);Mi.quanlity=Nn.payload.num;let cr=0,Hr=0;for(const ga of _i.contents)cr+=ga==null?void 0:ga.quanlity,Hr+=(ga==null?void 0:ga.quanlity)*_i.score;return ki.examination_bank.total_score=Ae(ki.examination_bank.total_score-_i.total_score+Hr),_i.item_bank_count=cr,_i.total_score=Ae(Hr),ki}case"changeQuestionScore":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(oi=>oi.item_type===Nn.payload.itemType);return _i.score=Nn.payload.score,_i.total_score=Ae(_i.item_bank_count*_i.score),ki.examination_bank.total_score=Ae(ki.item_types.reduce((oi,Mi)=>oi+Mi.total_score,0)),ki}case"editRule":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(oi=>oi.item_type===Nn.payload.itemType);return _i.contents=Nn.payload.tableData.map(oi=>un(Gn({},oi),{item_type:Nn.payload.itemType,random_rule_type:Nn.payload.randomRuleType})),_i.random_rule_type=Nn.payload.randomRuleType,_i.item_bank_count=_i.contents.reduce((oi,Mi)=>oi+(Mi==null?void 0:Mi.quanlity),0),_i.score=_i.score||1,_i.total_score=Ae(_i.item_bank_count*_i.score),ki.examination_bank.question_count=ki.item_types.reduce((oi,Mi)=>oi+Mi.item_bank_count,0),ki.examination_bank.total_score=Ae(ki.item_types.reduce((oi,Mi)=>oi+Mi.total_score,0)),ki}case"addShixun":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(oi=>oi.item_type==="PRACTICAL");return _i.item_banks=Nn.payload.shixunList,ki.examination_bank.question_count=ki.examination_bank.question_count+1,_i.item_bank_num=_i.item_banks.length,_i.item_bank_count=_i.item_bank_count||1,_i.score=_i.score||1,_i.total_score=_i.total_score||_i.score*_i.item_bank_count,ki.examination_bank.total_score=(Gi=ki==null?void 0:ki.item_types)==null?void 0:Gi.map(oi=>oi.total_score).reduce((oi,Mi)=>oi+Mi),ki}case"deleteShixunQuestion":{const ki=(0,tt.cloneDeep)(En),_i=ki.item_types.find(oi=>oi.item_type==="PRACTICAL");return _i.item_banks=_i.item_banks.filter(oi=>oi.id!==Nn.payload.shixunId),_i.item_bank_num-=1,_i.item_bank_count>_i.item_bank_num&&(_i.item_bank_count-=1,_i.total_score-=_i.score,_i.total_score=Ae(_i.total_score)),ki}}};var xe=pe(86918),ct=Object.defineProperty,Mt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,ft=(En,Nn,ai)=>Nn in En?ct(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Gt=(En,Nn)=>{for(var ai in Nn||(Nn={}))Lt.call(Nn,ai)&&ft(En,ai,Nn[ai]);if(qe)for(var ai of qe(Nn))Bt.call(Nn,ai)&&ft(En,ai,Nn[ai]);return En},Sn=(En,Nn)=>Mt(En,at(Nn)),an=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())}),zn=({courseOptions:En,setCurrentKey:Nn,loading:ai,form:Qi})=>{const{data:Gi,disabled:ki,dispatch:_i}=(0,le.useContext)(St),oi=(0,Ue.useParams)(),Mi=(0,le.useRef)(!0),[cr,Hr]=(0,le.useState)(!1),ga=(0,le.useMemo)(()=>{var $o,Ua,Ka,No,qr;if(!En.length||!Gi)return;const Fi=($o=Gi==null?void 0:Gi.examination_bank)==null?void 0:$o.sub_discipline_id,eo=((Ua=Gi==null?void 0:Gi.examination_bank)==null?void 0:Ua.time)===-1?void 0:Mi.current?oi.id?(Ka=Gi==null?void 0:Gi.examination_bank)==null?void 0:Ka.time:((No=Gi==null?void 0:Gi.examination_bank)==null?void 0:No.time)||60:(qr=Gi==null?void 0:Gi.examination_bank)==null?void 0:qr.time;Mi.current=!1;let Ko=[];for(const ma of En)for(const ya of ma.children)ya.value===Fi&&(Ko=[ma.value,ya.value]);return Sn(Gt({},Gi.examination_bank),{time:eo,course:Ko})},[Gi,En]);return(0,le.useEffect)(()=>{Qi.setFieldsValue(Gt({},ga))},[ga]),le.createElement(Ct.Z,{spinning:ai,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},le.createElement("div",{className:ke.formWrap},le.createElement(ut.default,{form:Qi,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:ga||{difficulty:2,time:60},onValuesChange:($o,Ua)=>{const{course:Ka=[]}=Ua,No=Sn(Gt({},Ua),{sub_discipline_id:Ka[1]||0});_i({type:"updateBaseInfo",payload:No})}},le.createElement(ut.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ke.baseLineHeight,rules:[{required:!0,validator:($o,Ua)=>{var Ka;return((Ka=Ua==null?void 0:Ua.replaceAll(" ",""))==null?void 0:Ka.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},le.createElement(wt.default,{maxLength:60,className:ke.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),le.createElement(ut.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:ke.baseLineHeight},le.createElement($e.Z,{className:ke.baseFormItem,disabled:ki,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:En,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),le.createElement("div",{className:ke.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",le.createElement("span",{onClick:()=>Hr(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),le.createElement(ut.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ke.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},le.createElement(Ft.ZP.Group,{disabled:ki,className:ke.radiogroup},le.createElement(Ft.ZP.Button,{className:ke.easy,value:1},"\u7B80\u5355"),le.createElement(Ft.ZP.Button,{className:ke.medium,value:2},"\u9002\u4E2D"),le.createElement(Ft.ZP.Button,{className:ke.hard,value:3},"\u56F0\u96BE"))),le.createElement(ut.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ke.baseLineHeight},le.createElement(lt.Z,{align:"middle"},le.createElement(ut.default.Item,{name:"time",noStyle:!0},le.createElement(vt.Z,{className:ke.baseFormItem,min:1,disabled:ki,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),le.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),le.createElement(ut.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},le.createElement(wt.default.TextArea,{rows:6,disabled:ki,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),le.createElement("div",{className:ke.fixedBottom},le.createElement(Ie.ZP,{className:`${ke.cancelBtn} mr5`,onClick:()=>{oi.id||window.location.href.indexOf("randompaper")>-1?Ue.history.push("/paperlibrary"):Ue.history.push(`/classrooms/${oi.coursesId}/exercise`)}},"\u53D6\u6D88"),le.createElement(Ie.ZP,{className:`${ke.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>an(void 0,null,function*(){if(yield Qi.validateFields(),!oi.id&&!oi.coursesId){const $o=yield je(Gi);$o.status===0&&(Ue.history.replace(`/randompaper/edit/${$o==null?void 0:$o.examination_bank_id}?type=settings`),Nn("settings"))}else Nn("settings")})},"\u4E0B\u4E00\u6B65")),le.createElement(xe.Z,{open:cr,onCancel:()=>{Hr(!1)}}))},kn=pe(43418),mn=pe(43604),ei={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},Pi=pe(8797),Hn=pe(85057),bn=pe(24905);const wi=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var Hi=({open:En,onCancel:Nn,onOk:ai})=>{const{data:Qi,dispatch:Gi}=(0,le.useContext)(St);(0,le.useEffect)(()=>{if(En){const{item_types:oi}=Qi||{};_i(oi==null?void 0:oi.map(Mi=>Mi.item_type))}},[En,Qi]);const[ki,_i]=(0,le.useState)([]);return le.createElement(kn.default,{title:le.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",le.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:En,onCancel:Nn,onOk:()=>ai(ki)},le.createElement(bn.default.Group,{value:ki,onChange:oi=>_i(oi)},le.createElement(lt.Z,{gutter:[0,20]},wi.map(oi=>le.createElement(mn.Z,{key:oi.value,span:6},le.createElement(bn.default,{value:oi.value},oi.label))))))},rr=pe(1710),_r=Object.defineProperty,gi=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,$i=(En,Nn,ai)=>Nn in En?_r(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Ri=(En,Nn)=>{for(var ai in Nn||(Nn={}))di.call(Nn,ai)&&$i(En,ai,Nn[ai]);if(gi)for(var ai of gi(Nn))xi.call(Nn,ai)&&$i(En,ai,Nn[ai]);return En},Sr=({open:En,onCancel:Nn,onOk:ai})=>{const{data:Qi}=(0,le.useContext)(St),[Gi,ki]=(0,le.useState)();console.log("--xxx-",Gi),(0,le.useEffect)(()=>{En&&ki((0,tt.cloneDeep)(Qi))},[En,Qi]);const _i=(0,le.useMemo)(()=>{var oi;let Mi;return Mi=(oi=Gi==null?void 0:Gi.item_types)==null?void 0:oi.map(cr=>cr.total_score).reduce((cr,Hr)=>parseFloat(cr)+parseFloat(Hr)),Mi==null?void 0:Mi.toFixed(1)},[Gi]);return En?le.createElement(kn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:En,width:640,centered:!0,closable:!0,onCancel:Nn,onOk:()=>{ai(Gi)}},le.createElement("div",{className:"c-black mb20"},"\u603B\u5206",le.createElement("span",{className:"ml10 c-light-primary"},_i)),le.createElement(rr.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(oi,Mi){const{score:cr,item_type:Hr}=Mi;return le.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((Mi==null?void 0:Mi.item_type)==="PRACTICAL","\u9898"),le.createElement(vt.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(Mi==null?void 0:Mi.item_bank_count)===0,max:100,onChange:ga=>{const $o=Gi,Ua=$o.item_types.find(No=>No.item_type===Hr);Ua.score=Number(ga);const Ka=ga*Ua.item_bank_count;Ua.total_score=Ka&&Number(Ka.toFixed(1)),$o.examination_bank.total_score=$o.item_types.reduce((No,qr)=>Number(No)+Number(qr.total_score),0),ki(Ri({},$o))}}),"\u5206")}}],className:ei.setScoreModalTable,dataSource:Gi==null?void 0:Gi.item_types,rowKey:"item_type",pagination:!1})):null},Ne=pe(99313),Ci=pe(57809),wr=pe(17574),Pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UEFJ5cugjbQChIqokWKClVrFDGIg2B8yZX3Xl/z/O5LzvfyKhTJXV7g/jrfOfc797sx1toCNnAzQ4A51RkymJNA/CcMvpoYhf0xDWtPwqICWEKM+QSYGgojt3Hw3mweFjmD9YlR+N8WAJSdjYwBrAWCb1oL+jzvMbzSFKoPBgLKAc6dugPbuRDtHzAXgGEMxmjjsXEAYr4MMOw2DcA8wcjWG6g+XOEAZ8c+wNpKtCXZMI+WMn6DJrbsOMQBPtrr9ySM4ZX9LEApkOfd5QBntvvhuhqFswKOz2/wDQWSZ9o0FADLfji5fBTYPwmUduYVMmV+IrLWF2DpFtCcizDTu3hmFeCBKaC4LR2cJpvjMZrwfn8HFm8qATan/bWslWckq6SuTyWcIfi5allrkmsY/DoZSZzanCwQo0REAwTIJf583e9txNIWic9p5E2OCQilZ7BxzY/8L60RSqRkcgnHqKXERgFw5eq/80EagIbB91cSPigilMabNWmYD6okXr7cZdABIAE7Gv6dpfIuZxJDI/G7S32ymJx6CoDP50ny5mIXIJPQ2Y8kEVVEw+DSeCKLWbkldlQA6JZwaZe9BuDr8xkAZjU6Pp5LvHiu9xmkWej6Wt8KXOK1VuGDL89272IaMLv6yAID3cUvzvS5SZyQyZOAZZl7hrnEz0/rjZoxzAhOyUEOcOFEH6MWhDGCWAApPs8B1o/p68GsANgbRVVRPzu8fvVg5gA0xcLTsV/wCtF/iKz6cABkfBfL+Z12m0tc2/cWXnFPODf3zZCxmOj4yxzg/O4qWv48LDwHIHOZrO/i5HoGHRQ3HeEAg0m1ShWtn/dh27tgUAilTqOUMcyqm7AfbZjCR5Q2j+N4o64DOMDhXq8pQ4B5mdzwDP4B5kHmZrL/eyAAAAAASUVORK5CYII=",Si="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4RJREFUWEftWEtrE1EYPXfSh5VWSlMfNSi4sokLK30pWtuKIChVVBBBWpfiRhcKghii7tp/4FrBBxREXbhQ0Bj7gqokahe+kNZWqa21tLGtk7kymY5J79yZL5NUKNLZZHHnzj33fOec+90wzrkHS/hhywBzrM4ygzkSiP+EwTdtPvDJdnDeCI4KgBPEsGGAPYOn8Bq23A7nwiLNYH+bD+rYSwBlloUYAzgH9F/Zo48pyhMoBVdR3ZkVUBpgV9MNcO24sb7OnA6GYtBEa75rbkCYL24wOcxGAPYUhSUXUH3/Cw0wXDUIziuMJYkFc6mluH+GcRSv2UYDfLxJtSWMwiuOUxsUC6Qot2iAD71q8ruZVNgtYFO/+m+yQKKm2UgGAMvU5GTvbqDyClC4LmUMuw+LTFiYdNDC7FdgIASMG57KHGDNdSB/tVyKltIJAESmRHziBmZHgf5WlwBrb6bihFrQmkdpCSDRiiyu+ozgyJzBujtpy1Jiy9XOAPqOuQRY35mKP8qdFvELBFJu1qH1HnUL8K59iV0DFtwqc3PPIQnAH+3noGmXAK1k4YnhxoaS8joqQgFYOaBUAlBSedbTIgCcuLwBc78+SW3qWnJUzkjG8/yAZ3Nqd937BYDfghvB4x+NQJ5vAMycozRvOVOF+Rk1FaVAkQEquX73PkmJh89EwXngn5+5dhsuPgwopYYZu/ZKAA6dDkLTQhaAlhKLDAsvuJWE+X5RDbCi1jBjpEkCcPCsH4mpmKXEVIksbZiAkDxz5zWZVwaUnjS6pkiDTcx8aI2CscCCRtStJqmjzKmtLD8FeLxAZKcNwPcnguCJ0II1SAYERJSJnUxX0gysagbC2+0YbPNDnY79rZrk6LR+n0DkRsP5a4GK80C4xuEkeXswCvCAfaOawV3E1K2+DGUaUeO+i4AlB9NpeX0gCGihpA6zeahcpBB7W4Bo0IHBgSN+zP2MGVuX1ZiihHKJOC5IpMAHfH7gAFAfetUYBUcgGwIXZc73d0BixqEffNGQ5mYi1yjCSFdLKhIfA6ZHHQBGm/2YmYpJ2bAEN4nAmVRZjKmzwOQQcWnq3focnNdTBwV9n88yhuKj95xb/i5/HdSpRwBbmfpXIRPTCIS5ycF0U3o8O+g7SWR9FebiHeCJXQArkNdKYIiqODXO2G9A6cCeiRANcFEsmf1HlgFmz50xc8kz+AfHHTJwrKNsNwAAAABJRU5ErkJggg==",Wi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABWlJREFUWEftV1tsVEUY/ubspUu3W9mWGlttwXqJVRNBbqIFDbyA8mCCkAYtpEaIGBODhBCECiG+UE1EnzTempYqtSAE45saBMX40JC0IRojpd1GKM1uW7bd7V7OOWPmnD3bPTNndxYbE2I6L2dzdubMN9/3/ZchlFIXbuNB5gDOUp05BmdJIP4fDPZcxt2xaRzVgadBUQ3QDDEE5m/2zBkE1whwoYTg461LcX42LEoZZOCiMXoJoBUCHEIASgH2dBqUgijKORfBkW3/EqgUYNsPieMAmtj+Fhb2NIfFXvaFnUhCQBlI6wD8dGcBrisEP5V7fft2NuJvKcC9p6PDoLSa7cwTJgKejZj8WjLm93iWSAG2tI+qEsdlvywl6BZPqBByQgpw44fDKskEAQUF+82e5rBrxCvGz7fWZr+XkZ/ZwFTIbgkKel0K8LkPhlW2uLbSh9UNQfh9btGLIrIZ7E7WyDkaf8xYQsX538cwHE4YgKUAnz0WMgC+/EwNSn1uR5MVEcxZ/xbjUgbyi3PXDNNLAW44FjIk3rOxNpvtCseuCEFCMGcUc/2734YMFaQA178fUhlDB56vy+4s27AYlgrOocA7Z0IG60UDPLypLm8BEQBncnc2X3ITijng4ZMhM8vK+kHGIIuyI5sXZgsGn//ECmOvgMJ8rgA5/f92T8hM8rkAX/psZI+u4yClesAWhhLNhPTBpSMhfeSkF7eLoP5OHzY8FoSizGzU+vWQmXosgLvPTNTGJpNXi8lvPF4hPwoZW0YZsKw+gMWLSrMV1ASYE8V7e27WTUwnB7IzsrFVjOXzdDVWOpfgY+YO+j3YvKrCWMEkP9g9ZHjeJvErnaN9oHhYgCSrYQ5F2echKPcpSGkUE9PU3vXkMeWWJxcg6HcZAA+cGDIosgHc0THaqun0EN8ViFFqdij5SlTT8jKsa5gHJdPF/DaQwCcXotkCme+8y+/zY1m937D/W19yHmSs7eoeb0gm0v1Wi2QBEGpuAcm8buCjF6tmWqyMHPu/iWAkahQlseZm0lKw1I2mRlPm/V2D9iCxZG1pH+2j4GR2KB1lJaaE8TSTUDf88kiNB2sfKsWCMgWlXgVVARfG4xp+/iuBU72xmca7gGW2NlYaMu/vYgxyaYaBbGkPt+pUP5Trw1xGa4Nu7FhdjkULPBlDUwxGVLgVgsFIGj/+MY0rYdXwzzwvQTzFOiDHi4Fj9K14wI+V9/uxr3PQuZLs6hxviKnpfttVI+fERzdVoPoOsWmYiGt4ozsCncnFA+JeFGp0KwJuNK+pwL6OPBKzYzV/npHZoZN/74UK3OUAMJ7S8VpXBJoRsPYgEhBLskLzmkq0nR7OX+q2t4fNaHYYtUEXdq4O4N6MxGzKnzfSiExpqJnvRm8oiYtXkhiJasZqj8vMMCqzaebAsvbsiQf9OHXxRv5+kEXzZFzvt+5qgiQEmO8jhseSGjAW0w0wJW7g8Tovnqovgb+EGO+XLvTCRYBITEd3bxy/DqREQrnmojLgRt/VMaN7z9ssNLeP94GPZotR2d2CECy5x40315XZNIgldbz61U15aSLASHgSqqblB9hyfKpV07WMzHaXi3lS3NPrAnav9ePRGjOgVI3i5KUEvrucEm6HfFix2h6dnMbNqen8AHd1pxpiyWS/mS0lYSncj2cWVJURBHwEI1Ed8VQ+8sSoSasqro9OFL40beuM/UIpXSnczvjbF387484jK+VODDL/3QiPny3YsG7vGFsRT+rfE5BSC6QjB7IWWfY/91FrrwRRV0k76i2fhhcnk2obqN4IQrxOAGWevEV8UIiS1iltO/t69SEpQHnI/bcz5gDOlt/bnsF/AOXAMnuF/cdAAAAAAElFTkSuQmCC",qi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABpxJREFUWAntWE2IHFUQrtfzk5nNbrKbRGPcRSU/oIEkmERjMAQhCBIjKBpFEBER9OZNL4IevOhFbyGHRA9BhKBeouJFIkTNwaxGg16ikN1k0WR3M5ndnf/ptr56r7p7+s1mkYCHkILpev1e1VdfVb3X0zNEt+Qmr4Dpl9+xs9FYq0XvR0SPUETriC9WYI6x72YML0T0By99Gxj68KWd5k/ndEPKiwRy7RadZSKrDEdDVGiRxfnZ9YjJM1MTUScydIwn371Roh7BD042P2Hg5xHRxRON+6R6WlE7m1wzGRjT4ZnTjNOFjQkYIbQ68UlGURhSYIIpTu7k6N7CkWeN6XoE3zoxP8WMuK22kemG6ngxel4CWQeubpw1AmQrkFpnyx9HVg/uy8MuLbPV5uJ7DuloUDhlA8hWSAxS8SSEZy6zi152V2pX3/YJzjVlH8EtYkTDUaAhOobuJ0vZL7XuJWzoKY9gtd6JY5eKAQ0PFOL7/2NQqbWp0eKNCjFmk0fQVsvQ2Opl9Pj2NZQPeGdnWpu5jbtu68zA2uV4QsIll+sAdPigfPXzNF2cafKBCo1HUFF2bRiikQEmx/If9042H49vdm9qTKsDenD9EE1O263mbaaDhy7FeWf3jBe5F5mXe5+b+gyFhiy17rWKK+NVcGQ5ppRjpheZW680/oQQSy5LAiSmGHGpPYKyB/WUZnurvFUDJD32eodFJQXjrGAN4nQ2Hq/4BGHsgtrHChKxAH38BT6+wED8LUCOt/CejSW6czhPF2badPqvJoUO2/o4ew0Y+yaE+xBkVwkEniBrd5KScEsOnwNo1TCjY5fQ6/uG6b51RXWlLWMNOvxdNaZD/J2GEKLF340dP+xZe0xjCPBxQTmIjqHtx67DRIiKDTuDUMb+3jsKPeQQYufdJRrjaiqezR/xgKGYVgM/5ItHEJZog22FHSuCEOZ1DQAbjPvZryz1gWYeQ2XMW0ahBOEYrPFhuFhjDDuvxWBtATi4GCUat7Ls5j0DVwW8tYyOeNBUa4Z0/nLbJQ8QJGu1XlMvd2LnoaQN4NQryBxi9YbbCrRpbYGa7Yh+mWzS7EKXxlbl6ZWHV9DalTn6+twC7V5f4q/LHE3Pd+nIqSrV2VYF1dfvd8xl97yts1o7/eLRf7B1RbSWCaSd5zdmem3vCtrFwVVanYjOTDTpgXuW0e9TLfr4hzmaWQhlew4WDc01JbwUfTF8zGtM4GLcp4JYSiRLDisHtg70kMNcMW+kWsfPzNOJX2uYEkELQQ6CVwCQcK8C8ThNGHYaE9ojCAPZu6xxOBEAGqLjvZvKdqLPFb7qn11WcjEhDNheW6b40BAsewR1EQYIJKApB8ytkJMIC1/WDuX8STfjYJIK4fWfA+BngIiOEdSJ9ywAAQAJmBvrhM5NzCbvjAqk+mKlI4kJDjuoRuI6hsYHotreKTNoe8I9grZmzkDqx4YwFgerPxtfYGAXwSLLFXMHdwzS09uXU6nAGFwe+ZpEmVJjzOm8aqwLpNM69vqx9ck337G8AML8BTsQQKHNL7CX50KavNqljbfnaYDfuiHnptr03jfX6O9qSAe2DNCjm8s034hocrbLEIa2jRVp22iRupxXpY7kBK1HG7wcY4a1EHerMqmXFz6aZW9bHWTBCbmHaTLGHATrq5YbarSJai2usbMt86+EJ7aW6bHNJZq61qU5JrplNPnp8OlPNfryHL8xS1/QFRsPsBg5eMH3WyzRYcJ5S0ZWy5grqho/cjG+WjdU51+/adsG3x8fb9AbX1TlEZMmx8D0zP1ld9A4TioeyTcvYoOWxfcJCrEcB0T3Edhqm5clvtg4TRLjGX4c/jblH6h8ztCawRwFjI1tBI0PyKoW4nzvPWZ03zE7tgGhRMf1tx2xPHt6wlNI2a0b/g/k/BV9hgiUXOq8HS5ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",$n={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},qn=pe(16149),Zt=Object.defineProperty,$t=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,ht=(En,Nn,ai)=>Nn in En?Zt(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,en=(En,Nn)=>{for(var ai in Nn||(Nn={}))cn.call(Nn,ai)&&ht(En,ai,Nn[ai]);if(on)for(var ai of on(Nn))At.call(Nn,ai)&&ht(En,ai,Nn[ai]);return En},fn=(En,Nn)=>$t(En,Qe(Nn)),Rn=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())});const Qn=(En,Nn,ai)=>En.map(Qi=>Qi.key===Nn?en(en({},Qi),ai):Qi.children?fn(en({},Qi),{children:Qn(Qi.children,Nn,ai)}):Qi),Et={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},wn=(En,Nn,ai)=>En.map(Qi=>{var Gi;const ki=Qi==null?void 0:Qi.tag_disciplines.map(oi=>{const Mi=oi==null?void 0:oi.difficulty_count.map(cr=>({label:cr==null?void 0:cr.name,value:Et[cr.name]}));return{title:Ze(Nn)===Dt.All&&Mi.length>0?le.createElement(lt.Z,{justify:"space-between"},le.createElement(mn.Z,null,`${oi.name}\uFF08${oi.child_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:Mi})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"diffNum"],initialValue:oi==null?void 0:oi.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"extra"],initialValue:fn(en({},Qi),{type:ai})},le.createElement("input",{type:"hidden"})))):`${oi.name}\uFF08${oi.child_count}\uFF09`,key:`${Qi.id}_${oi.id}`,name:oi.name,parentName:Qi.name,item_banks_count:oi.child_count,icon:null,isLeaf:!0,checkable:Ze(Nn)===Dt.FileFolderAndKnowledge,disableCheckbox:oi.child_count===0}}),_i=Qi==null?void 0:Qi.difficulty_count.map(oi=>({label:oi==null?void 0:oi.name,value:Et[oi.name]}));return{title:Ze(Nn)===Dt.FileFolderAndDiff&&_i.length>0?le.createElement(lt.Z,{justify:"space-between"},le.createElement(mn.Z,null,`${Qi.name}\uFF08${Qi.item_banks_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:_i})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"diffNum"],initialValue:Qi==null?void 0:Qi.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"extra"],initialValue:fn(en({},Qi),{type:ai})},le.createElement("input",{type:"hidden"})))):`${Qi.name}\uFF08${Qi.item_banks_count}\uFF09`,key:`${Qi.id}`,name:Qi.name,item_banks_count:Qi.item_banks_count,icon:oi=>oi.expanded?ai==="0"?le.createElement("img",{src:Si,className:$n.folderIcon}):le.createElement("img",{src:Wi,className:$n.shareFolderIcon}):ai==="0"?le.createElement("img",{src:Pn,className:$n.folderIcon}):le.createElement("img",{src:qi,className:$n.shareFolderIcon}),isLeaf:!Qi.have_child&&!((Gi=Qi.tag_disciplines)!=null&&Gi.length),checkable:Ze(Nn)===Dt.OnlyFileFolder,disableCheckbox:Qi.item_banks_count===0,children:Qi.children.length?Ze(Nn)===Dt.All||Ze(Nn)===Dt.FileFolderAndKnowledge?[...wn(Qi.children,Nn,ai),...ki]:wn(Qi.children,Nn,ai):[]}}),Kn=(En,Nn,ai)=>En.map(Qi=>{var Gi;const ki=Qi==null?void 0:Qi.tag_disciplines.map(oi=>{console.log("tagItem:",oi);const Mi=oi==null?void 0:oi.difficulty_count.map(cr=>({label:cr==null?void 0:cr.name,value:Et[cr.name]}));return{title:Ze(Nn)===Dt.All&&Mi.length>0?le.createElement(lt.Z,{justify:"space-between"},le.createElement(mn.Z,null,`${oi.name}\uFF08${oi.child_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:Mi})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"diffNum"],initialValue:oi==null?void 0:oi.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}_${oi.id}`,"extra"],initialValue:fn(en({},Qi),{type:ai})},le.createElement("input",{type:"hidden"})))):`${oi.name}\uFF08${oi.child_count}\uFF09`,key:`${Qi.id}_${oi.id}`,name:oi.name,parentName:Qi.name,item_banks_count:oi.child_count,icon:null,isLeaf:!0,checkable:Ze(Nn)===Dt.FileFolderAndKnowledge,disableCheckbox:oi.child_count===0}}),_i=Qi==null?void 0:Qi.difficulty_count.map(oi=>({label:oi==null?void 0:oi.name,value:Et[oi.name]}));return{title:Ze(Nn)===Dt.FileFolderAndDiff&&_i.length>0?le.createElement(lt.Z,{justify:"space-between"},le.createElement(mn.Z,null,`${Qi.name}\uFF08${Qi.item_banks_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:_i})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"diffNum"],initialValue:Qi==null?void 0:Qi.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:[`${Qi.id}`,"extra"],initialValue:fn(en({},Qi),{type:ai})},le.createElement("input",{type:"hidden"})))):`${Qi.name}\uFF08${Qi.item_banks_count}\uFF09`,key:`${Qi.id}`,name:Qi.name,item_banks_count:Qi.item_banks_count,icon:oi=>oi.expanded?ai==="0"?le.createElement("img",{src:Si,className:$n.folderIcon}):le.createElement("img",{src:Wi,className:$n.shareFolderIcon}):ai==="0"?le.createElement("img",{src:Pn,className:$n.folderIcon}):le.createElement("img",{src:qi,className:$n.shareFolderIcon}),isLeaf:!Qi.have_child&&!((Gi=Qi.tag_disciplines)!=null&&Gi.length),checkable:Ze(Nn)===Dt.OnlyFileFolder,disableCheckbox:Qi.item_banks_count===0,children:[...Kn(Qi.children,Nn,ai),...ki]}});var tn=({ruleValue:En,defaultData:Nn,setSelectData:ai,currentItemType:Qi,selectData:Gi})=>{const[ki,_i]=(0,le.useState)("1"),[oi,Mi]=(0,le.useState)(!0),[cr]=ut.default.useForm(),[Hr,ga]=(0,le.useState)([]),[$o,Ua]=(0,le.useState)("all"),Ka=(Qt,lr,Ir)=>{const{checkedNodes:mr}=lr;console.log("type:",Ir,mr,Gi),Ir==="0"?(qr(Qt),Ze(En)===Dt.OnlyFileFolder?(ai(ur=>fn(en({},ur),{my:mr.map(Bi=>({id:Bi.key,group_id:Bi.key,group_name:Bi.name,item_bank_num:Bi.item_banks_count,folderType:"0",quanlity:1}))})),nt(mr.reduce((ur,Bi)=>ur+Bi.item_banks_count,0))):(console.log(mr),ai(ur=>fn(en({},ur),{my:mr.map(Bi=>{const[Pr,to]=Bi.key.split("_");return{id:Bi.key,tag_discipline_name:Bi.name,group_id:Pr,tag_discipline_id:to,folderType:"0",group_name:Bi.parentName,item_bank_num:Bi.item_banks_count,quanlity:1}})})),nt(mr.reduce((ur,Bi)=>ur+Bi.item_banks_count,0)))):(eo(Qt),Ze(En)===Dt.OnlyFileFolder?ai(ur=>(console.log("pre:",ur),fn(en({},ur),{public:mr.map(Bi=>({id:Bi.key==="0"?"00":Bi.key,teacher_group_name:Bi.name,teacher_group_id:Bi.key,folderType:"3",item_bank_num:Bi.item_banks_count,quanlity:1}))}))):ai(ur=>fn(en({},ur),{public:mr.map(Bi=>{const[Pr,to]=Bi.key.split("_");return{id:Bi.key==="0"?"00":Bi.key,tag_discipline_name:Bi.name,teacher_group_id:Pr,tag_discipline_id:to,folderType:"3",teacher_group_name:Bi.parentName,item_bank_num:Bi.item_banks_count,quanlity:1}})})),nt(mr.reduce((ur,Bi)=>ur+Bi.item_banks_count,0)))},[No,qr]=(0,le.useState)([]),[Fi,eo]=(0,le.useState)([]),[Ko,ma]=(0,le.useState)([]),[ya,bo]=(0,le.useState)([]),[oa,Io]=(0,le.useState)([]),[Dr,Da]=(0,le.useState)([]),[Ha,La]=(0,le.useState)(!1),[fl,xu]=(0,le.useState)(!1);function Jt(){return Rn(this,null,function*(){let Qt=yield(0,te.ZP)("/api/teach_group_shares.json",{method:"get"});Qt&&ga(Qt==null?void 0:Qt.groups)})}(0,le.useEffect)(()=>{Jt()},[]);const Yt=Qt=>Rn(void 0,null,function*(){var lr,Ir,mr,ur,Bi,Pr,to,So,fr,pr,vr,ji;Qt.type==="0"?La(!0):xu(!0);const Ai=yield(0,qn.ex)(Qt);Qt.type==="0"?La(!1):xu(!1),Qt.type==="0"?Io(Ai):Da(Ai);const Wr=(lr=Ai.navigation[0])==null?void 0:lr.difficulty_count.map(Br=>({label:Br==null?void 0:Br.name,value:Et[Br.name]})),zo=(Ir=Ai.navigation[0])==null?void 0:Ir.tag_disciplines.map(Br=>{const Er=Br==null?void 0:Br.difficulty_count.map(Or=>({label:Or==null?void 0:Or.name,value:Et[Or.name]}));return{title:Ze(En)===Dt.All&&Er.length>0?le.createElement(lt.Z,{justify:"space-between",style:{color:"#232B40"}},le.createElement(mn.Z,null,`${Br.name}\uFF08${Br.child_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:[`0_${Br.id}`,"diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:Er})),le.createElement(ut.default.Item,{noStyle:!0,name:[`0_${Br.id}`,"diffNum"],initialValue:Br==null?void 0:Br.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:[`0_${Br.id}`,"extra"],initialValue:{tag_discipline_name:Br.name,name:"\u6839\u76EE\u5F55",type:Qt.type}},le.createElement("input",{type:"hidden"})))):le.createElement("span",{style:{color:"#232B40"}},Br.name,"\uFF08",Br.child_count,"\uFF09"),key:`0_${Br.id}`,name:Br.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:Br.child_count,icon:null,isLeaf:!0,checkable:Ze(En)===Dt.FileFolderAndKnowledge,disableCheckbox:Br.child_count===0}});if(Qt.type==="0"){const Br=wn(Ai.data,En,"0"),Er=Kn(Ai.data,En,"0");console.log("normalChildren2:",Er),ma([{title:Ze(En)===Dt.FileFolderAndDiff?le.createElement(lt.Z,{justify:"space-between",style:{color:"#232B40"}},le.createElement(mn.Z,null,`\u6839\u76EE\u5F55\uFF08${(mr=Ai.navigation[0])==null?void 0:mr.child_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},le.createElement(bn.default.Group,{style:{columnGap:12},options:Wr})),le.createElement(ut.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(ur=Ai.navigation[0])==null?void 0:ur.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},le.createElement("input",{type:"hidden"})))):le.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(Bi=Ai.navigation[0])==null?void 0:Bi.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Pr=Ai.navigation[0])==null?void 0:Pr.child_count,disabled:!(((to=Ai.navigation[0])==null?void 0:to.child_count)>0),checkable:Ze(En)===Dt.OnlyFileFolder,icon:Or=>Or.expanded?le.createElement("img",{src:Si,className:$n.folderIcon}):le.createElement("img",{src:Pn,className:$n.folderIcon}),isLeaf:!1,children:Ze(En)===Dt.OnlyFileFolder||Ze(En)===Dt.FileFolderAndDiff?Br:[...Er,...zo]}])}else{const Br=wn(Ai.data,En,"3");bo([{title:Ze(En)===Dt.FileFolderAndDiff?le.createElement(lt.Z,{justify:"space-between"},le.createElement(mn.Z,null,`\u6839\u76EE\u5F55\uFF08${(So=Ai.navigation[0])==null?void 0:So.child_count}\uFF09`),le.createElement(mn.Z,null,le.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(ut.default.Item,{noStyle:!0,name:["0","diffValue"]},le.createElement(bn.default.Group,{style:{columnGap:12},options:Wr})),le.createElement(ut.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(fr=Ai.navigation[0])==null?void 0:fr.difficulty_count},le.createElement("input",{type:"hidden"})),le.createElement(ut.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},le.createElement("input",{type:"hidden"})))):le.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(pr=Ai.navigation[0])==null?void 0:pr.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(vr=Ai.navigation[0])==null?void 0:vr.child_count,checkable:Ze(En)===Dt.OnlyFileFolder,icon:Er=>Er.expanded?le.createElement("img",{src:Wi,className:$n.shareFolderIcon}):le.createElement("img",{src:qi,className:$n.shareFolderIcon}),isLeaf:!1,disabled:!(((ji=Ai.navigation[0])==null?void 0:ji.child_count)>0),children:Ze(En)===Dt.OnlyFileFolder||Ze(En)===Dt.FileFolderAndDiff?Br:[...Br,...zo]}])}});(0,le.useEffect)(()=>{ki==="1"?Yt({type:"0",group_id:0,item_type:Qi,show_children:!0}):ki==="2"&&Yt({type:"3",except_mine:!0,item_type:Qi,show_children:!0,teach_group_id:$o==="all"?"":$o})},[En,ki,$o]),(0,le.useEffect)(()=>{var Qt,lr,Ir,mr,ur,Bi,Pr,to,So,fr,pr,vr;console.log("selectData-active:",Gi,Nn,ki),ki==="1"?(qr((Qt=Gi==null?void 0:Gi.my)==null?void 0:Qt.map(ji=>ji.id)),nt(((Ir=(lr=Gi==null?void 0:Gi.my)==null?void 0:lr.reduce)==null?void 0:Ir.call(lr,(ji,Ai)=>ji+Ai.item_bank_num,0))||0)):ki==="2"&&(eo((mr=Gi==null?void 0:Gi.public)==null?void 0:mr.map(ji=>ji.id)),nt(((Bi=(ur=Gi==null?void 0:Gi.public)==null?void 0:ur.reduce)==null?void 0:Bi.call(ur,(ji,Ai)=>ji+Ai.item_bank_num,0))||0)),Ze(En)===Dt.All&&(ki==="1"?(qr((Pr=Gi==null?void 0:Gi.my)==null?void 0:Pr.map(ji=>ji.id)),nt((Gi==null?void 0:Gi.filter(ji=>!ji.is_share).reduce((ji,Ai)=>ji+Ai.item_bank_num,0))||0),(to=Gi==null?void 0:Gi.filter(ji=>!ji.is_share))==null||to.forEach(ji=>{const Ai=cr.getFieldValue([`${ji.group_id||0}_${ji.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Ai),Ai!=null&&Ai.includes[ji.difficulty]||cr.setFieldValue([`${ji.group_id||0}_${ji.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Ai,ji.difficulty])))})):ki==="2"&&(eo((So=Gi==null?void 0:Gi.public)==null?void 0:So.map(ji=>ji.id)),nt((Gi==null?void 0:Gi.filter(ji=>!!ji.is_share).reduce((ji,Ai)=>ji+Ai.item_bank_num,0))||0),(fr=Gi==null?void 0:Gi.filter(ji=>!!ji.is_share))==null||fr.forEach(ji=>{const Ai=cr.getFieldValue([`${ji.teacher_group_id||0}_${ji.tag_discipline_id}`,"diffValue"])||[];Ai!=null&&Ai.includes[ji.difficulty]||cr.setFieldValue([`${ji.teacher_group_id||0}_${ji.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Ai,ji.difficulty])))}))),Ze(En)===Dt.FileFolderAndDiff&&(cr.resetFields(),setTimeout(()=>{ai(Gi)},300),ki==="1"?(nt((Gi==null?void 0:Gi.filter(ji=>!ji.is_share).reduce((ji,Ai)=>ji+Ai.item_bank_num,0))||0),(pr=Gi==null?void 0:Gi.filter(ji=>!ji.is_share))==null||pr.forEach(ji=>{const Ai=cr.getFieldValue([`${ji.group_id}`,"diffValue"])||[];console.log("prev:",Ai),Ai!=null&&Ai.includes[ji.difficulty]||cr.setFieldValue([`${ji.group_id}`,"diffValue"],Array.from(new Set([...Ai,ji.difficulty])))})):(nt((Gi==null?void 0:Gi.filter(ji=>!!ji.is_share).reduce((ji,Ai)=>ji+Ai.item_bank_num,0))||0),(vr=Gi==null?void 0:Gi.filter(ji=>!!ji.is_share))==null||vr.forEach(ji=>{const Ai=cr.getFieldValue([`${ji.teacher_group_id}`,"diffValue"])||[];Ai!=null&&Ai.includes[ji.difficulty]||cr.setFieldValue([`${ji.teacher_group_id}`,"diffValue"],Array.from(new Set([...Ai,ji.difficulty])))})))},[ki]),console.log("1111111111:",No,Fi),(0,le.useEffect)(()=>{setTimeout(()=>{var Qt,lr,Ir,mr,ur;switch(Ze(En)){case Dt.OnlyFileFolder:{const Bi=[],Pr=[];for(const to of Gi.my||[])Bi.push(to);for(const to of Gi.public||[])Pr.push(to);qr(Bi.map(to=>`${to.group_id}`)),eo(Pr.map(to=>`${to.teacher_group_id}`)),nt(ki==="1"?Bi.reduce((to,So)=>to+So.item_bank_num,0):Pr.reduce((to,So)=>to+So.item_bank_num,0));break}case Dt.FileFolderAndKnowledge:{const Bi=[],Pr=[];for(const to of(Gi==null?void 0:Gi.my)||[])Bi.push(to);for(const to of(Gi==null?void 0:Gi.public)||[])Pr.push(to);nt((Qt=ki==="1"?Bi:Pr)==null?void 0:Qt.reduce((to,So)=>to+So.item_bank_num,0)),qr(Bi.map(to=>`${to.group_id}_${to.tag_discipline_id}`)),eo(Pr.map(to=>`${to.teacher_group_id}_${to.tag_discipline_id}`));break}case Dt.All:{ki==="1"?(nt((Gi==null?void 0:Gi.filter(Bi=>!Bi.is_share).reduce((Bi,Pr)=>Bi+Pr.item_bank_num,0))||0),(lr=Gi==null?void 0:Gi.filter(Bi=>!Bi.is_share))==null||lr.forEach(Bi=>{const Pr=cr.getFieldValue([`${Bi.group_id||0}_${Bi.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Pr,Bi.difficulty,Bi),Pr!=null&&Pr.includes[Bi.difficulty]||cr.setFieldValue([`${Bi.group_id||0}_${Bi.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Pr,Bi.difficulty])))})):(nt((Gi==null?void 0:Gi.filter(Bi=>!!Bi.is_share).reduce((Bi,Pr)=>Bi+Pr.item_bank_num,0))||0),(Ir=Gi==null?void 0:Gi.filter(Bi=>!!Bi.is_share))==null||Ir.forEach(Bi=>{const Pr=cr.getFieldValue([`${Bi.group_id||0}_${Bi.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Pr,Bi.difficulty,Bi),Pr!=null&&Pr.includes[Bi.difficulty]||cr.setFieldValue([`${Bi.group_id||0}_${Bi.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Pr,Bi.difficulty])))}));break}case Dt.FileFolderAndDiff:{ki==="1"?(nt((Gi==null?void 0:Gi.filter(Bi=>!Bi.is_share).reduce((Bi,Pr)=>Bi+Pr.item_bank_num,0))||0),(mr=Gi==null?void 0:Gi.filter(Bi=>!Bi.is_share))==null||mr.forEach(Bi=>{const Pr=cr.getFieldValue([`${Bi.group_id}`,"diffValue"])||[];console.log("prev:",Pr,Bi.difficulty),Pr!=null&&Pr.includes[Bi.difficulty]||cr.setFieldValue([`${Bi.group_id}`,"diffValue"],Array.from(new Set([...Pr,Bi.difficulty])))})):(nt((Gi==null?void 0:Gi.filter(Bi=>!!Bi.is_share).reduce((Bi,Pr)=>Bi+Pr.item_bank_num,0))||0),(ur=Gi==null?void 0:Gi.filter(Bi=>!!Bi.is_share))==null||ur.forEach(Bi=>{const Pr=cr.getFieldValue([`${Bi.group_id}`,"diffValue"])||[];Pr!=null&&Pr.includes[Bi.difficulty]||cr.setFieldValue([`${Bi.group_id}`,"diffValue"],Array.from(new Set([...Pr,Bi.difficulty])))}));break}}},800)},[Nn,En,Ko,ya]);const[Dn,nt]=(0,le.useState)(0);return le.createElement(ut.default,{form:cr,onValuesChange:(Qt,lr)=>Rn(void 0,null,function*(){var Ir,mr,ur,Bi;console.log("onValuesChange:",lr,Qt);let Pr=0;if(Ze(En)===Dt.FileFolderAndDiff){const to=yield cr.getFieldValue(),So=[],fr=[];for(const vr of Object.keys(to))if((mr=(Ir=to[vr])==null?void 0:Ir.diffValue)!=null&&mr.length&&vr!=="null"&&vr!==null){const ji=to[vr];So.push(en({id:vr},ji))}const pr={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};So.map(vr=>{var ji,Ai,Wr,zo,Br;vr.id==0&&(vr.diffNum=ki==="1"?(Ai=(ji=oa==null?void 0:oa.navigation)==null?void 0:ji[0])==null?void 0:Ai.difficulty_count:(zo=(Wr=Dr==null?void 0:Dr.navigation)==null?void 0:Wr[0])==null?void 0:zo.difficulty_count),(Br=vr==null?void 0:vr.diffValue)==null||Br.map(Er=>{var Or,kr,gr,Aa,_o;const xa={group_name:((Or=vr.extra)==null?void 0:Or.name)||"",teacher_group_name:"",id:`${vr.id}_${Er}`,group_id:vr.id,difficulty:Er,item_bank_num:(Aa=(gr=(kr=vr.diffNum)==null?void 0:kr.filter(Wa=>Wa.name===pr[Er]))==null?void 0:gr[0])==null?void 0:Aa.value};ki==="2"&&(xa.is_share=!0,xa.teacher_group_id=vr.id,xa.teacher_group_name=(_o=vr.extra)==null?void 0:_o.name),fr.push(xa)})}),Pr=fr.reduce((vr,ji)=>vr+ji.item_bank_num,0),ai([...fr,...Gi==null?void 0:Gi.filter(vr=>ki==="1"?vr.is_share:!vr.is_share)])}else if(Ze(En)===Dt.All){const to=[];for(const So of Object.keys(lr)){const{diffNum:fr=[],diffValue:pr=[],extra:vr={}}=lr[So];console.log("---",vr);const[ji,Ai]=So.split("_");let Wr=(Bi=(ur=vr.tag_disciplines)==null?void 0:ur.filter(zo=>parseInt(zo.id)===parseInt(Ai)))==null?void 0:Bi[0];pr.forEach(zo=>{var Br;const Er={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Or=(Br=fr==null?void 0:fr.find(gr=>gr.name===Er[zo]))==null?void 0:Br.value,kr={group_name:"",teacher_group_name:"",tag_discipline_name:(Wr==null?void 0:Wr.name)||vr.tag_discipline_name,id:`${So}_${zo}`,group_id:ji,is_share:!!(Wr!=null&&Wr.is_share||(vr==null?void 0:vr.type)==="3"),tag_discipline_id:Ai,difficulty:zo,item_bank_num:Or};Pr+=Or,vr.type==="0"?kr.group_name=vr.name:kr.teacher_group_name=vr.name,ki==="2"&&(kr.is_share=!0,kr.teacher_group_id=vr.id||0,kr.teacher_group_name=vr.name),Or>0&&to.push(kr)})}ai([...to,...Gi==null?void 0:Gi.filter(So=>ki==="1"?So.is_share:!So.is_share)])}nt(Pr)})},le.createElement(Ne.default,{destroyInactiveTabPane:!0,activeKey:ki,onChange:Qt=>_i(Qt),style:{minHeight:260},tabBarExtraContent:{right:ki==="2"&&(Hr==null?void 0:Hr.length)>0&&le.createElement(Ci.default,{onChange:Qt=>{Ua(Qt)},value:$o,style:{width:120}},le.createElement(Ci.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),Hr==null?void 0:Hr.map(Qt=>le.createElement(Ci.default.Option,{key:Qt==null?void 0:Qt.group_id,value:Qt==null?void 0:Qt.group_id},Qt==null?void 0:Qt.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Ko==null?void 0:Ko.length)===0?le.createElement(Ct.Z,{spinning:Ha},le.createElement(Pi.Z,{ButtonTwo:le.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):le.createElement("div",{className:$n.folderAreaWrapper},le.createElement(lt.Z,{justify:"space-between",align:"middle",className:$n.folderAreaHeader},le.createElement("span",null,"\u6587\u4EF6\u5939"),le.createElement("span",{className:"mr20"},"\u5DF2\u9009",le.createElement("span",{style:{color:"#3061D0"}}," ",Dn," "),"\u9898")),le.createElement(Ct.Z,{spinning:Ha},le.createElement("div",{style:{minHeight:200}},Ko.length>0&&le.createElement(wr.default,{checkable:!0,className:$n.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(Qt,lr)=>Ka(Qt,lr,"0"),checkedKeys:No,checkStrictly:!0,treeData:Ko,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(ya==null?void 0:ya.length)===0?le.createElement(Ct.Z,{spinning:fl},le.createElement(Pi.Z,{ButtonTwo:le.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):le.createElement("div",{className:$n.folderAreaWrapper},le.createElement(lt.Z,{justify:"space-between",align:"middle",className:$n.folderAreaHeader},le.createElement("span",null,"\u6587\u4EF6\u5939"),le.createElement("span",{className:"mr20"},"\u5DF2\u9009",le.createElement("span",{style:{color:"#3061D0"}}," ",Dn||0," "),"\u9898")),le.createElement(Ct.Z,{spinning:fl},le.createElement("div",{style:{minHeight:200}},(ya==null?void 0:ya.length)>0&&le.createElement(wr.default,{checkable:!0,className:$n.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(Qt,lr)=>Ka(Qt,lr,"3"),checkedKeys:Fi,checkStrictly:!0,treeData:ya,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},sn=pe(26422),In=pe(83312),Oi=Object.defineProperty,Di=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Zr=(En,Nn,ai)=>Nn in En?Oi(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Vr=(En,Nn)=>{for(var ai in Nn||(Nn={}))Li.call(Nn,ai)&&Zr(En,ai,Nn[ai]);if(Ti)for(var ai of Ti(Nn))sr.call(Nn,ai)&&Zr(En,ai,Nn[ai]);return En},Tn=(En,Nn)=>Di(En,vi(Nn)),Po=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())});const Xr={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Cn=({ruleValue:En,setSelectData:Nn,currentItemType:ai,defaultData:Qi,isFirst:Gi})=>{const[ki,_i]=(0,le.useState)([]),[oi,Mi,cr,Hr]=(0,In.U)(Xe,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:ai,show_children:!0});(0,le.useEffect)(()=>{Po(void 0,null,function*(){const Fi=yield cr({},!0);_i((0,sn.L)(Fi.disciplines))})},[]),console.log(Qi),(0,le.useEffect)(()=>{if(Gi)switch(Ze(En)){case Dt.OnlyKnowledge:{No(Qi.map(Fi=>Fi.tag_discipline_id));break}case Dt.KnowledgeAndDiff:{const Fi=new Map;Qi.forEach(eo=>{eo&&(Fi.has(eo.tag_discipline_id)?Fi.set(eo.tag_discipline_id,[...Fi.get(eo.tag_discipline_id),eo.difficulty]):Fi.set(eo.tag_discipline_id,[eo.difficulty]))});for(const[eo,Ko]of Fi.entries())ga.setFieldValue([eo,"diff"],Ko);break}}},[Qi,En,Gi]);const[ga]=ut.default.useForm(),$o=(0,le.useMemo)(()=>{const Fi=[];let eo="",Ko="";const ma={};for(const ya of(Hr==null?void 0:Hr.disciplines)||[]){eo=ya.name;for(const bo of ya.sub_disciplines){Ko=bo.name;for(const oa of bo.tag_disciplines){const Io={sub_discipline_name:`${eo}&${Ko}`,sub_discipline_id:bo.id,tag_discipline_name:oa.name,id:oa.id,item_bank_num:oa.total_count,difficulty_count:oa.difficulty_count,tag_discipline_id:oa.id};Fi.push(Io)}}}return Fi},[Hr,Qi]),Ua=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Fi,eo)=>{const{item_bank_num:Ko}=eo;return le.createElement("div",null,Fi,`(${Ko})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:En.includes(_n.Difficulty),render:(Fi,eo)=>{const{id:Ko,difficulty_count:ma,total_count:ya,sub_discipline_name:bo,tag_discipline_name:oa}=eo;return le.createElement(le.Fragment,null,le.createElement(ut.default.Item,{name:[Ko,"diff"],noStyle:!0},le.createElement(bn.default.Group,{style:{columnGap:12},options:ma.map(Io=>({label:Io.name,value:Xr[Io.name]}))})),le.createElement(ut.default.Item,{name:[Ko,"extra"],initialValue:{difficulty_count:ma,total_count:ya,sub_discipline_name:bo,tag_discipline_name:oa},noStyle:!0},le.createElement("input",{type:"hidden"})))}}].filter(Fi=>Fi.show),[Ka,No]=(0,le.useState)([]),qr=(0,le.useRef)(new Map);return le.createElement("div",{style:{marginTop:12}},le.createElement(lt.Z,{className:"mb20",align:"middle",gutter:20},le.createElement(mn.Z,null,le.createElement($e.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:ki,onChange:Fi=>{cr({sub_discipline_id:Fi==null?void 0:Fi[1]})}})),le.createElement(mn.Z,null,le.createElement(Hn.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:oi.keyword,onChange:Fi=>cr({keyword:Fi})}))),le.createElement(ut.default,{form:ga,onValuesChange:(Fi,eo)=>{var Ko;console.log(eo),qr.current.clear();for(const ma of Object.keys(eo)){const ya={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},bo=eo[ma],{difficulty_count:oa,total_count:Io}=bo.extra||{};(Ko=bo==null?void 0:bo.diff)==null||Ko.forEach(Dr=>{var Da;const Ha=(Da=oa==null?void 0:oa.find(fl=>fl.name===ya[Dr]))==null?void 0:Da.value,La=Tn(Vr({},bo.extra),{id:`${ma}_${Dr}`,difficulty:Dr,item_bank_num:Ha,tag_discipline_id:ma});Ha>0&&qr.current.set(`${ma}_${Dr}`,La)})}Nn([...qr.current.values()])}},($o==null?void 0:$o.length)===0?le.createElement(Pi.Z,{ButtonTwo:le.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):le.createElement(rr.default,{rowSelection:Ze(En)===Dt.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Fi,eo){console.log("table-selectedRowKeys:",Fi,eo),No(Fi),Nn(eo)},getCheckboxProps:Fi=>({disabled:Fi.item_bank_num===0}),selectedRowKeys:Ka}:void 0,columns:Ua,dataSource:$o,loading:Mi,scroll:{y:480},rowKey:"id",pagination:!1})))},ri=Object.defineProperty,Yi=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,zr=(En,Nn,ai)=>Nn in En?ri(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Tr=(En,Nn)=>{for(var ai in Nn||(Nn={}))Fr.call(Nn,ai)&&zr(En,ai,Nn[ai]);if(er)for(var ai of er(Nn))Ur.call(Nn,ai)&&zr(En,ai,Nn[ai]);return En},Yr=(En,Nn)=>Yi(En,yr(Nn)),Un=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())});const Ho={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Ao=({open:En,onCancel:Nn,setVisibleModalType:ai,currentItemType:Qi})=>{var Gi;const{data:ki,dispatch:_i}=(0,le.useContext)(St),[oi,Mi]=(0,le.useState)([]),[cr,Hr]=(0,le.useState)(),ga=(Gi=ki==null?void 0:ki.item_types)==null?void 0:Gi.find(Ko=>Ko.item_type===Qi);(0,le.useEffect)(()=>{var Ko,ma,ya;if(En){const bo=(Ko=ki==null?void 0:ki.item_types)==null?void 0:Ko.find(oa=>oa.item_type===Qi);if((bo==null?void 0:bo.random_rule_type)!==Dt.Shixun){const oa=Zn[bo==null?void 0:bo.random_rule_type]||[];Mi(oa);const Io=(ya=(ma=ki==null?void 0:ki.item_types)==null?void 0:ma.find(Dr=>Dr.item_type===Qi))==null?void 0:ya.contents;switch(console.log("----xxx",Ze(oa)),Ze(oa)){case Dt.OnlyDifficulty:{No(Io.map(Dr=>Dr.difficulty));break}case Dt.OnlyFileFolder:{No({my:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)!=="NaN"&&!Dr.teacher_group_id&&Dr.teacher_group_id!==0),public:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)>=0)}),Hr({my:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)!=="NaN"&&!Dr.teacher_group_id&&Dr.teacher_group_id!==0),public:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)>=0)});break}case Dt.FileFolderAndKnowledge:{No({my:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)!=="NaN"&&!Dr.teacher_group_id&&Dr.teacher_group_id!==0),public:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)>=0)}),Hr({my:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)!=="NaN"&&!Dr.teacher_group_id&&Dr.teacher_group_id!==0),public:Io==null?void 0:Io.filter(Dr=>parseInt(Dr.teacher_group_id)>=0)});break}case Dt.FileFolderAndDiff:{No(Io),Hr(Io);break}case Dt.All:{No(Io),Hr(Io);break}default:No(Io)}}}},[En]);const[$o,Ua]=(0,le.useState)([]);(0,le.useEffect)(()=>{En&&Ye({item_type:Qi}).then(Ko=>{Ko.status===0&&Ua(Ko.data)})},[En]),(0,le.useEffect)(()=>{console.log("selectData",cr)},[cr]);const[Ka,No]=(0,le.useState)(),[qr,Fi]=(0,le.useState)(!0);console.log("isFirst:",qr);const eo=Ko=>{Mi(Ko),Hr([]),No([]),Fi(!1)};return le.createElement(kn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:En,onCancel:Nn,destroyOnClose:!0,onOk:()=>Un(void 0,null,function*(){var Ko,ma,ya,bo,oa,Io,Dr;if(cr===void 0){ai("");return}if(Object.prototype.toString.call(cr)==="[object Object]"&&!((Ko=cr.my)!=null&&Ko.length)&&!((ma=cr.public)!=null&&ma.length)){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(cr).length&&!(cr!=null&&cr.length)){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const Da=Ze(oi);switch(Da){case Dt.OnlyFileFolder:{_i({type:"editRule",payload:{itemType:Qi,tableData:[...cr.my||[],...cr.public||[]],randomRuleType:Da}});break}case Dt.OnlyDifficulty:{const Ha=(bo=(ya=ki==null?void 0:ki.item_types)==null?void 0:ya.find(fl=>fl.item_type===Qi))==null?void 0:bo.contents;let La=[{},{value:(oa=$o.find(fl=>fl.name==="\u7B80\u5355"))==null?void 0:oa.value},{value:(Io=$o.find(fl=>fl.name==="\u9002\u4E2D"))==null?void 0:Io.value},{value:(Dr=$o.find(fl=>fl.name==="\u56F0\u96BE"))==null?void 0:Dr.value}];_i({type:"editRule",payload:{itemType:Qi,tableData:cr.map((fl,xu)=>{var Jt,Yt,Dn,nt;return{difficulty:fl,id:xu,quanlity:((Yt=(Jt=Ha==null?void 0:Ha.filter(Qt=>Qt.id===xu))==null?void 0:Jt[0])==null?void 0:Yt.quanlity)||1,item_bank_num:($o==null?void 0:$o.length)===1?(Dn=$o[0])==null?void 0:Dn.value:(nt=La==null?void 0:La[fl])==null?void 0:nt.value}}),randomRuleType:Da}});break}case Dt.OnlyKnowledge:{_i({type:"editRule",payload:{itemType:Qi,tableData:cr.map(Ha=>Yr(Tr({},Ha),{quanlity:Ha.quanlity||1})),randomRuleType:Da}});break}case Dt.KnowledgeAndDiff:{_i({type:"editRule",payload:{itemType:Qi,tableData:cr.map(Ha=>Yr(Tr({},Ha),{quanlity:Ha.quanlity||1})),randomRuleType:Da}});break}case Dt.FileFolderAndDiff:{_i({type:"editRule",payload:{itemType:Qi,tableData:cr.map(Ha=>Yr(Tr({},Ha),{quanlity:Ha.quanlity||1})),randomRuleType:Da}});break}case Dt.FileFolderAndKnowledge:{_i({type:"editRule",payload:{itemType:Qi,tableData:[...cr.my||[],...cr.public||[]],randomRuleType:Da}});break}case Dt.All:{_i({type:"editRule",payload:{itemType:Qi,tableData:cr.map(Ha=>Yr(Tr({},Ha),{quanlity:Ha.quanlity||1})),randomRuleType:Da}});break}}ai("")})},le.createElement(bn.default.Group,{className:`${$n.ruleCheckBox}`,style:{marginBottom:8},value:oi,onChange:Ko=>{var ma;oi!=null&&oi.length&&((ma=ga==null?void 0:ga.contents)==null?void 0:ma.length)>0?kn.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>eo(Ko)}):eo(Ko)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:_n.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:_n.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:_n.Knowledge}]}),oi.includes(_n.FileFolder)?le.createElement(tn,{defaultData:Ka,selectData:cr,ruleValue:oi,setSelectData:Hr,currentItemType:Qi}):oi.includes(_n.Knowledge)?le.createElement(Cn,{defaultData:Ka,isFirst:qr,ruleValue:oi,setSelectData:Hr,currentItemType:Qi}):oi.includes(_n.Difficulty)?le.createElement("div",{style:{marginTop:12}},le.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),le.createElement(bn.default.Group,{style:{columnGap:12},options:$o.map(Ko=>({label:Ko.name,value:Ho[Ko.name]})),value:cr||Ka,onChange:Ko=>Hr(Ko)})):null)},nr=({open:En,onCancel:Nn,setVisibleModalType:ai,currentItemType:Qi})=>En?le.createElement(Ao,{open:En,onCancel:Nn,setVisibleModalType:ai,currentItemType:Qi}):null,qo=pe(6848),Go=pe(94860),Lr=pe(92365),br=pe(85149),mo=pe(955),Yo=pe(61485),Ki=pe(32570),sa=({open:En,onCancel:Nn,onOk:ai})=>{const{data:Qi}=(0,le.useContext)(St),Gi=(0,Go.g)(),[ki,_i,oi,Mi]=(0,In.U)(Lr.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[cr,Hr]=(0,le.useState)(!1);(0,le.useEffect)(()=>{if(En){oi({page:1,limit:10,type:0},!0).then(qr=>{(qr==null?void 0:qr.shixuns_count)===0&&Hr(!0)});const No=Qi.item_types.find(qr=>qr.item_type==="PRACTICAL");$o(No.item_banks.map(qr=>qr.id)),Ka(No.item_banks)}},[En,Qi]);const[ga,$o]=(0,le.useState)([]),[Ua,Ka]=(0,le.useState)([]);return le.createElement(kn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:En,width:948,centered:!0,closable:!0,onCancel:Nn,onOk:()=>ai(Ua),destroyOnClose:!0},le.createElement(lt.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},le.createElement(mn.Z,null,le.createElement($e.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Gi,onChange:No=>{oi({page:1,discipline_id:No==null?void 0:No[0],sub_discipline_id:No==null?void 0:No[1]})}}),le.createElement(Ci.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:No=>oi({page:1,diff:No})}),le.createElement(Ci.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:No=>oi({page:1,shixun_publish_status:No})})),le.createElement(Hn.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:No=>{oi({keyword:No,page:1})}})),cr?le.createElement("div",null,le.createElement(Pi.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,mo.xg)("/shixuns")})):le.createElement(rr.default,{loading:_i,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(No,qr)=>le.createElement("div",{style:{display:"flex",alignItems:"center"}},le.createElement("div",{className:qr!=null&&qr.high_resources_consume?ei.title:"",title:No||"--"},le.createElement(br.Z,{key:1,showLines:1,showTextOnly:!0,value:No||"--"})),(qr==null?void 0:qr.high_resources_consume)&&le.createElement(Ki.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(No,qr,Fi)=>le.createElement("span",null,No||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:le.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",le.createElement(qo.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},le.createElement(Yo.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(No,qr,Fi)=>le.createElement("span",null,No||"- -")},{title:"\u64CD\u4F5C",render(No,qr){const{title:Fi,challenge_names:eo,author_name:Ko,identifier:ma,author_school_name:ya,study_count:bo}=qr||{};return le.createElement("div",null,le.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{kn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:le.createElement("div",null,le.createElement(br.Z,{value:Fi,style:{marginBottom:18}}),le.createElement("div",{className:ei.challengeNameWrapper},eo.map((oa,Io)=>le.createElement("div",{className:ei.challengeName,key:Io},"\u7B2C",(0,mo.EM)(Io+1),"\u9898\xA0",oa))),le.createElement(lt.Z,{className:ei.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},le.createElement(mn.Z,{className:ei.shixunInfoWrapper},le.createElement("span",null,"\u521B\u5EFA\u8005"),le.createElement("span",{className:ei.shixunInfo},Ko.split("\u3001")[0]),le.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),le.createElement("span",{className:ei.shixunInfo},ya),le.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),le.createElement("span",{className:ei.shixunInfo},bo)),le.createElement(Ie.ZP,{type:"primary",className:ei.btnToDetail,onClick:()=>(0,mo.xg)(`/shixuns/${ma}/challenges?exercise=true`)},le.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(qr==null?void 0:qr.shixun_tag_num)===1&&le.createElement("a",{target:"_blank",href:`/shixuns/${qr==null?void 0:qr.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Mi==null?void 0:Mi.items,rowSelection:{selectedRowKeys:ga,preserveSelectedRowKeys:!0,getCheckboxProps:No=>({disabled:No.shixun_tag_num===1}),onChange(No,qr){var Fi,eo,Ko;console.log(No),$o(No);const ma=[];for(const bo of Ua)No.includes(bo.id)&&ma.push(bo);const ya=ma.map(bo=>bo.id);for(const bo of qr)bo&&No.includes(bo.id)&&!ya.includes(bo.id)&&ma.push({id:bo.id,difficulty:bo.level,identifier:bo.identifier,name:bo.name,real_name:(Fi=bo==null?void 0:bo.author_name)==null?void 0:Fi.split("\u3001")[0],school_name:bo.author_school_name,challenge_names:bo.challenge_names,challenges:(eo=bo.challenge_names)==null?void 0:eo.map((oa,Io)=>({subject:oa,id:Io,score:5})),score:((Ko=bo.challenge_names)==null?void 0:Ko.length)*5,study_count:bo.study_count,challenges_count:bo.challenges_count});Ka(ma)}},pagination:{current:ki.page,pageSize:ki.limit,total:Mi==null?void 0:Mi.items_count,showTotal:No=>le.createElement("span",null,"\u5171\xA0",le.createElement("span",{style:{color:"#165DFF"}},No),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(No,qr){oi({page:No,limit:qr})},size:"default"},scroll:{y:400}}))},va=pe(54203),Ma=pe(59301),hs=Object.defineProperty,Ga=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,po=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Na=(En,Nn,ai)=>Nn in En?hs(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,os=(En,Nn)=>{for(var ai in Nn||(Nn={}))la.call(Nn,ai)&&Na(En,ai,Nn[ai]);if(po)for(var ai of po(Nn))Eo.call(Nn,ai)&&Na(En,ai,Nn[ai]);return En},xo=(En,Nn)=>Ga(En,Lo(Nn)),pi=({onDelete:En,list:Nn,onSelect:ai})=>{const[Qi,Gi]=(0,le.useState)(!1),{dispatch:ki,disabled:_i}=(0,le.useContext)(St),oi=($o,Ua,Ka)=>{const No=Array.from($o),[qr]=No.splice(Ua,1);return No.splice(Ka,0,qr),No},[Mi,cr]=(0,le.useState)(null),[Hr,ga]=(0,le.useState)(!1);return Ma.createElement(va.Z5,{onDragStart:()=>{ga(!0)},onDragEnd:$o=>{if(ga(!1),!$o.destination)return;const Ua=oi(Nn,$o.source.index,$o.destination.index);ki({type:"updateItemTypes",payload:Ua})}},Ma.createElement(va.bK,{droppableId:"droppable"},($o,Ua)=>Ma.createElement("div",xo(os({},$o.droppableProps),{ref:$o.innerRef}),Ma.createElement(Ct.Z,{spinning:Qi},Nn.map((Ka,No)=>Ma.createElement(va._l,{key:No,draggableId:No.toString(),index:No,isDragDisabled:Mi!==Ka.item_type},(qr,Fi)=>Ma.createElement(lt.Z,xo(os(os({align:"middle",wrap:!1,ref:qr.innerRef},qr.draggableProps),qr.dragHandleProps),{className:`${ei.dragItem} ${Hr?ei.dragging:""}`}),Ma.createElement(mn.Z,{className:ei.contentArea,onClick:()=>{ai(Ka.item_type),(0,mo.k3)()}},Ma.createElement("span",{className:ei.blackText},(0,mo.EM)(No+1),"\u3001\u3010",Ka.item_type_text,"\u3011"),Ma.createElement(qo.Z,{title:`\uFF08${Ka.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Ka.total_score).toFixed(1)}\u5206\uFF09`},Ma.createElement("span",{className:ei.greyText},`\uFF08${Ka.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Ka.total_score).toFixed(1)}\u5206\uFF09`))),!_i&&Ma.createElement(Ma.Fragment,null,Ma.createElement(qo.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:Mi===Ka.item_type&&!Hr},Ma.createElement("div",{style:{cursor:"grab"},className:`${ei.iconWrapper} ${Hr?ei.hidden:""}`,onMouseEnter:()=>{cr(Ka.item_type)},onMouseLeave:()=>cr(null)},Ma.createElement("i",{className:`iconfont icon-tuodong1 ${ei.dragIcon}`}))),Ma.createElement(qo.Z,{title:"\u5220\u9664"},Ma.createElement("div",{className:`${ei.iconWrapper} ${Hr?ei.hidden:""}`,style:{cursor:"pointer"},onClick:()=>En(Ka.item_type)},Ma.createElement("i",{className:`iconfont icon-shanchu12 ${ei.deleteIcon}`})))))))),$o.placeholder)))},io=pe(10777),ro={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},Ja=pe(73631),Ca=pe(31328);const fa=(En,Nn,ai,Qi)=>{const Gi={[Dt.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(ki,_i){const{difficulty:oi}=_i;return le.createElement("span",{style:{color:Pe[oi].color}},Pe[oi].label)}}],[Dt.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",width:180,ellipsis:{showTitle:!0},render(ki,_i){return`${ki}`}}],[Dt.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(ki,_i,oi){const{group_name:Mi,teacher_group_name:cr}=_i,Hr=Mi||cr,ga=cr?Ca:Ja;return le.createElement("div",{style:{display:"flex"}},le.createElement("img",{src:ga,className:ro.folderIcon})," ",le.createElement(qo.Z,{title:Hr},le.createElement("span",{className:ro.titles},Hr)))}},{title:"\u7C7B\u578B",render(ki,_i){const{teacher_group_name:oi}=_i;return le.createElement("span",null,oi?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Dt.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u65B9\u5411&\u8BFE\u7A0B",width:180,dataIndex:"sub_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(ki,_i){const{difficulty:oi}=_i;return le.createElement("span",{style:{color:Pe[oi].color}},Pe[oi].label)}}],[Dt.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(ki,_i){const{group_name:oi,teacher_group_name:Mi}=_i,cr=oi||Mi,Hr=Mi?Ca:Ja;return le.createElement("div",{style:{display:"flex"}},le.createElement("img",{src:Hr,className:ro.folderIcon})," ",le.createElement(qo.Z,{title:cr},le.createElement("span",{className:ro.titles},cr)))}},{title:"\u7C7B\u578B",render(ki,_i){const{teacher_group_name:oi}=_i;return le.createElement("span",null,oi?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Dt.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(ki,_i){const{group_name:oi,teacher_group_name:Mi}=_i,cr=oi||Mi,Hr=Mi?Ca:Ja;return le.createElement("div",{style:{display:"flex"}},le.createElement("img",{src:Hr,className:ro.folderIcon})," ",le.createElement(qo.Z,{title:cr},le.createElement("span",{className:ro.titles},cr)))}},{title:"\u7C7B\u578B",render(ki,_i){const{teacher_group_name:oi}=_i;return le.createElement("span",null,oi?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(ki,_i){const{difficulty:oi}=_i;return le.createElement("span",{style:{color:Pe[oi].color}},Pe[oi].label)}}],[Dt.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(ki,_i){const{group_name:oi,teacher_group_name:Mi,teacher_group_id:cr}=_i,Hr=oi||Mi,ga=cr||cr===0?Ca:Ja;return le.createElement("div",{style:{display:"flex"}},le.createElement("img",{src:ga,className:ro.folderIcon})," ",le.createElement(qo.Z,{title:Hr},le.createElement("span",{className:ro.titles},Hr)))}},{title:"\u7C7B\u578B",render(ki,_i){const{teacher_group_id:oi}=_i;return le.createElement("span",null,oi||oi===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(ki,_i){const{difficulty:oi}=_i;return le.createElement("span",{style:{color:Pe[oi].color}},Pe[oi].label)}}],[Dt.Shixun]:[]};for(const ki of Object.values(Gi))ki.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(_i,oi){const{item_bank_num:Mi,quanlity:cr,id:Hr,teacher_group_id:ga}=oi||{};return le.createElement(lt.Z,{align:"middle"},le.createElement(vt.Z,{disabled:Qi,min:1,max:Mi,size:"large",precision:0,value:cr,onChange:$o=>{Nn({type:"changeQuestionNum",payload:{itemType:ai,id:Hr,num:$o,teacher_group_id:ga}})}}),le.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",Mi))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(_i,oi){const{id:Mi,is_share:cr}=oi;return Qi?le.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):le.createElement("span",{className:ro.deleteBtn,onClick:()=>{Nn({type:"deleteRule",payload:{itemType:ai,id:Mi,is_share:cr}})}},"\u5220\u9664")}});return Gi[En]},$a=({setVisibleModalType:En})=>{var Nn,ai,Qi,Gi;const{data:ki,dispatch:_i,disabled:oi}=(0,le.useContext)(St),Mi=(Nn=ki==null?void 0:ki.item_types)==null?void 0:Nn.find(cr=>cr.item_type==="PRACTICAL");return le.createElement(io.Z,{className:ro.timelineWrapper,items:[{children:le.createElement("div",{style:{transform:"translateY(-4px)"}},le.createElement(lt.Z,{className:"mb20",align:"middle",justify:"space-between"},le.createElement(mn.Z,null,le.createElement("span",{className:ro.title},"\u9898\u5E93\u9009\u9898"),le.createElement("span",{className:ro.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!oi&&le.createElement(Hn.op,{style:{width:102},onClick:()=>En("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((ai=Mi==null?void 0:Mi.item_banks)==null?void 0:ai.length)===0?le.createElement(Pi.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):le.createElement(rr.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(cr,Hr,ga){return le.createElement("span",null,ga+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(cr,Hr)=>le.createElement("div",{style:{display:"flex",alignItems:"center"}},le.createElement("div",{className:Hr!=null&&Hr.high_resources_consume?ro.q_title:"",title:cr||"--"},le.createElement(br.Z,{key:1,showLines:1,showTextOnly:!0,value:cr})),(Hr==null?void 0:Hr.high_resources_consume)&&le.createElement(Ki.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(cr,Hr,ga)=>le.createElement("span",null,cr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(cr,Hr,ga){const{id:$o,identifier:Ua,name:Ka,challenge_names:No=[],real_name:qr,school_name:Fi,study_count:eo,challenges:Ko=[]}=Hr||{};return le.createElement("div",null,le.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{kn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:le.createElement("div",null,le.createElement(br.Z,{value:Ka,style:{marginBottom:18}}),le.createElement("div",{className:ro.challengeNameWrapper},Ko==null?void 0:Ko.map((ma,ya)=>le.createElement("div",{className:ro.challengeName,key:ya},"\u7B2C",(0,mo.EM)(ya+1),"\u9898\xA0",ma==null?void 0:ma.subject))),le.createElement(lt.Z,{className:ro.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},le.createElement(mn.Z,{className:ro.shixunInfoWrapper},le.createElement("span",null,"\u521B\u5EFA\u8005"),le.createElement("span",{className:ro.shixunInfo},qr),le.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),le.createElement("span",{className:ro.shixunInfo},Fi),le.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),le.createElement("span",{className:ro.shixunInfo},eo)),le.createElement(Ie.ZP,{type:"primary",className:ro.btnToDetail,onClick:()=>(0,mo.xg)(`/shixuns/${Ua}/challenges?exercise=true`)},le.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!oi&&le.createElement("span",{onClick:()=>{_i({type:"deleteShixunQuestion",payload:{shixunId:$o}})},className:`ml20 ${ro.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(Mi==null?void 0:Mi.item_banks)||[],pagination:!1}))},{children:le.createElement(lt.Z,{style:{transform:(Qi=Mi==null?void 0:Mi.item_banks)!=null&&Qi.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},le.createElement("span",{className:ro.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((Gi=Mi==null?void 0:Mi.item_banks)!=null&&Gi.length)&&le.createElement(mn.Z,null,le.createElement(lt.Z,{align:"middle"},le.createElement("span",{className:ro.normalText},"\u62BD\u9898\u6570\u91CF"),le.createElement(vt.Z,{min:0,disabled:oi,max:Mi==null?void 0:Mi.item_bank_num,size:"large",className:"ml10 mr10",value:(Mi==null?void 0:Mi.item_bank_count)||1,onChange:cr=>_i({type:"changeQuestionNum",payload:{num:cr||1,itemType:"PRACTICAL"}})}),le.createElement("span",{className:`${ro.normalText} mr30`},"/",Mi==null?void 0:Mi.item_bank_num),le.createElement("span",{className:ro.normalText},"\u6BCF\u9898\u5206\u503C"),le.createElement(vt.Z,{disabled:oi,min:0,max:100,size:"large",precision:1,className:"ml10 mr10",value:Mi==null?void 0:Mi.score,onChange:cr=>_i({type:"changeQuestionScore",payload:{score:cr,itemType:"PRACTICAL"}})}),le.createElement("span",{className:ro.normalText},"\u5206"))))}]})};var Es=({setVisibleModalType:En,currentItemType:Nn,onDelete:ai})=>{var Qi,Gi;const ki=(0,Ue.useParams)(),{data:_i,dispatch:oi,disabled:Mi}=(0,le.useContext)(St),cr=((Qi=_i==null?void 0:_i.item_types)==null?void 0:Qi.findIndex(ga=>ga.item_type===Nn))+1,Hr=(Gi=_i==null?void 0:_i.item_types)==null?void 0:Gi.find(ga=>ga.item_type===Nn);return le.createElement("div",{className:ro.questionDetailWrapper},le.createElement(lt.Z,{justify:"space-between",align:"middle",className:"mb30"},le.createElement(mn.Z,null,le.createElement("span",{className:ro.questionTitle},`${(0,mo.EM)(cr)}\u3001${Hr==null?void 0:Hr.item_type_text}`),le.createElement("span",{className:ro.questionScoreInfo},"\uFF08",le.createElement("span",{style:{color:"#3061D0"}},Hr==null?void 0:Hr.item_bank_count),"\u5C0F\u9898 ",le.createElement("span",null,"\uFF0C\u5171",le.createElement("span",{style:{color:"#3061D0"}},Hr==null?void 0:Hr.total_score),"\u5206"),"\uFF09")),!Mi&&le.createElement("i",{className:`iconfont icon-shanchutimu ${ro.deleteIcon}`,onClick:()=>ai(Nn)})),Nn==="PRACTICAL"?le.createElement($a,{setVisibleModalType:En}):le.createElement(le.Fragment,null,(Hr==null?void 0:Hr.contents.length)===0?le.createElement(Pi.Z,{styles:{margin:"70px auto 100px auto"},customText:le.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",le.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(ki==null?void 0:ki.id)&&le.createElement(lt.Z,{justify:"center",className:"mt30"},le.createElement(Hn.op,{style:{width:136,marginTop:-10},onClick:()=>En("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):le.createElement(le.Fragment,null,le.createElement(lt.Z,{justify:"space-between",align:"middle",className:"mb20"},le.createElement(mn.Z,null,le.createElement(lt.Z,{align:"middle"},le.createElement("span",{className:`${ro.normalText}`},"\u6BCF\u9898\u5206\u503C"),le.createElement(vt.Z,{disabled:Mi,size:"large",className:"ml10 mr10",min:.1,max:100,value:Hr==null?void 0:Hr.score,precision:1,onChange:ga=>oi({type:"changeQuestionScore",payload:{score:ga,itemType:Nn}})}),le.createElement("span",{className:ro.normalText},"\u5206"))),(ki==null?void 0:ki.id)&&le.createElement(Hn.op,{onClick:()=>En("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),le.createElement(rr.default,{columns:fa(Hr==null?void 0:Hr.random_rule_type,oi,Nn,Mi),dataSource:Hr==null?void 0:Hr.contents,pagination:!1,rowKey:"id"}))))},ys=pe(6021),Zs=pe(94941),Mn=pe(24065),Ss=pe(32637),ra=pe(59301),hl=Object.defineProperty,Ol=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,yu=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,Ba=(En,Nn,ai)=>Nn in En?hl(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,tu=(En,Nn)=>{for(var ai in Nn||(Nn={}))eu.call(Nn,ai)&&Ba(En,ai,Nn[ai]);if(yu)for(var ai of yu(Nn))ps.call(Nn,ai)&&Ba(En,ai,Nn[ai]);return En},Do=(En,Nn)=>Ol(En,ns(Nn)),Ea=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())}),hr=({})=>{var En,Nn,ai,Qi,Gi,ki,_i,oi,Mi,cr,Hr,ga,$o,Ua,Ka;const[No]=(0,Ue.useSearchParams)(),qr=(0,Ue.useParams)(),{data:Fi,dispatch:eo,setPreview:Ko,getData:ma,handlePreview:ya,disabled:bo}=(0,le.useContext)(St),[oa,Io]=(0,le.useState)(""),[Dr,Da]=(0,le.useState)((Nn=(En=Fi==null?void 0:Fi.item_types)==null?void 0:En[0])==null?void 0:Nn.item_type),[Ha,La]=(0,le.useState)(!0),[fl,xu]=(0,le.useState)(!1),Jt=(Qt,lr)=>Ea(void 0,null,function*(){var Ir,mr,ur,Bi,Pr,to;const So=Fi.item_types.map(Ai=>Ai.item_type_text),fr=(Ir=Fi==null?void 0:Fi.item_types)==null?void 0:Ir.filter(Ai=>{var Wr,zo;return((Wr=Ai.contents)==null?void 0:Wr.length)>0||((zo=Ai==null?void 0:Ai.item_banks)==null?void 0:zo.length)>0});if(Fi.sort_by_item_type=So,!((mr=Fi.item_types)!=null&&mr.length)){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((fr==null?void 0:fr.length)===0){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}let pr=()=>Ea(void 0,null,function*(){const Ai=(0,tt.cloneDeep)(Fi),{item_types:Wr}=Ai||{};Ai.item_types=Wr.filter(Br=>Br.item_type===Dr),(yield ze(qr.id||qr.categoryId,Ai)).status===0&&(Da(lr),We.ZP.success("\u4FDD\u5B58\u6210\u529F"),Qt||Ue.history.push("/paperlibrary"))}),vr=(Bi=(ur=Fi==null?void 0:Fi.item_types)==null?void 0:ur.filter(Ai=>Ai.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:Bi.item_banks,ji=0;vr==null||vr.map(Ai=>{Ai.high_resources_consume&&(ji=ji+1)}),console.log(ji),ji>0?kn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:ra.createElement("div",null,ra.createElement("div",{className:ei.tipcontent},ra.createElement("div",null,ra.createElement("div",{className:ei.name},"\u60A8\u597D\uFF01",(Pr=(0,Mn.eY)())==null?void 0:Pr.username,"\uFF08",(to=(0,Mn.eY)())==null?void 0:to.login,"\uFF09\uFF1A"),ra.createElement("div",{className:ei.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ra.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ra.createElement("div",{className:ei.info},ra.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),ra.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),ra.createElement("span",{style:{color:"#232B40"}},`${ji}\u4E2A`))),ra.createElement("div",null,ra.createElement("div",{className:ei.img},ra.createElement("img",{src:Ss,width:"124px",height:"124px"})),ra.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{pr()}}):pr()}),Yt=(Qt,lr,Ir,mr=!1)=>Ea(void 0,null,function*(){console.log(Fi);const ur=Do(tu(tu({},Fi.exercise),qr),{exerciseId:qr.categoryId,sort_by_item_type:Fi.sort_by_item_type,difficulty:Fi.examination_bank.difficulty,exam_notes:Fi.examination_bank.exam_notes,exercise_name:Fi.examination_bank.name,time:Fi.examination_bank.time,changed_item_type:Dr,item_types:Fi.item_types,sub_discipline_id:Fi.examination_bank.sub_discipline_id});(!Qt||lr===1)&&(ur.is_reset=1);const Bi=yield(0,Zs.wy)(ur);return Bi.status===0&&(mr||We.ZP.success("\u4FEE\u6539\u6210\u529F "),Da(Ir),Qt||Ue.history.push(`/classrooms/${qr.coursesId}/exercise/${qr.categoryId}/detail?random=true`)),Bi}),Dn=Qt=>{kn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:ra.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>Ea(void 0,null,function*(){var lr,Ir,mr,ur;if(qr.id){if((yield Nt(qr.id,{item_type:[Qt]})).status!==0)return}else{const Bi=yield ot(qr.categoryId,{item_type:[Qt]});if(ma(),Bi.status!==0)return}if(eo({type:"deleteQuestionType",payload:Qt}),Qt===Dr){const Bi=Oe(Fi,{type:"deleteQuestionType",payload:Qt});Da(Bi.item_types.length?Bi.item_types[0].item_type:(Ir=(lr=Fi==null?void 0:Fi.item_types)==null?void 0:lr[0])==null?void 0:Ir.item_type)}else Da((ur=(mr=Fi==null?void 0:Fi.item_types)==null?void 0:mr[0])==null?void 0:ur.item_type)})})};(0,le.useEffect)(()=>{var Qt;(Qt=Fi==null?void 0:Fi.examination_bank)!=null&&Qt.name&&La(!1),(0,mo.Dk)("\u968F\u673A\u7EC4\u5377")},[(ai=Fi==null?void 0:Fi.examination_bank)==null?void 0:ai.name]);const nt=()=>Ea(void 0,null,function*(){var Qt;let lr=yield Yt(!0,1,Dr,!0);if((lr==null?void 0:lr.status)===0){const Ir=yield(0,te.ZP)(`/api/exercises/${qr==null?void 0:qr.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:qr==null?void 0:qr.coursesId,categoryId:qr==null?void 0:qr.categoryId}});(Ir==null?void 0:Ir.status)!=-1&&window.open(`/classrooms/${qr.coursesId}/exercise/${qr.categoryId}/${(Qt=(0,Mn.eY)())==null?void 0:Qt.login}/initate_answer`)}});return ra.createElement("div",{className:ei.questionInfo},ra.createElement("div",{className:"tc mb20"},ra.createElement(Me.VP,{defaultValue:(Qi=Fi==null?void 0:Fi.examination_bank)==null?void 0:Qi.name,onFinish:Qt=>Ea(void 0,null,function*(){return eo({type:"updateBaseInfo",payload:Do(tu({},Fi.examination_bank),{name:Qt})}),(0,Zs.wy)({exercise_name:Qt,exerciseId:qr==null?void 0:qr.categoryId}),!0})})),ra.createElement(lt.Z,{justify:"center",className:"mb20"},ra.createElement(mn.Z,{className:"mr30"},ra.createElement("span",{className:ei.label},"\u7B54\u9898\u65F6\u957F"),ra.createElement("span",null,((Gi=Fi==null?void 0:Fi.examination_bank)==null?void 0:Gi.time)===-1?"\u4E0D\u9650":((ki=Fi==null?void 0:Fi.examination_bank)==null?void 0:ki.time)||"\u4E0D\u9650")),ra.createElement(mn.Z,{className:"mr30"},ra.createElement("span",{className:ei.label},"\u96BE\u5EA6"),ra.createElement("span",null,(oi=Pe[`${(_i=Fi==null?void 0:Fi.examination_bank)==null?void 0:_i.difficulty}`])==null?void 0:oi.label)),ra.createElement(mn.Z,{className:"mr30"},ra.createElement("span",{className:ei.label},"\u8BD5\u9898\u603B\u6570"),ra.createElement("span",null,((Mi=Fi==null?void 0:Fi.examination_bank)==null?void 0:Mi.question_count)||0)),ra.createElement(mn.Z,null,ra.createElement("span",{className:ei.label},"\u603B\u5206"),ra.createElement("span",null,((Hr=(cr=Fi==null?void 0:Fi.examination_bank)==null?void 0:cr.total_score)==null?void 0:Hr.toFixed(1))||0))),ra.createElement("div",{className:ei.content,style:{border:((ga=Fi==null?void 0:Fi.item_types)==null?void 0:ga.length)<=0&&"none"}},(($o=Fi==null?void 0:Fi.item_types)==null?void 0:$o.length)>0?ra.createElement(lt.Z,{wrap:!1},ra.createElement(mn.Z,{flex:"260px",className:ei.leftPart},!bo&&ra.createElement(lt.Z,{className:"mb20"},ra.createElement(Hn.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>Io("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(qr==null?void 0:qr.id)&&ra.createElement(Hn.op,{shape:"default",onClick:()=>Io("questionType")},"\u6DFB\u52A0\u9898\u578B")),ra.createElement(pi,{list:Fi.item_types,onSelect:Qt=>Ea(void 0,null,function*(){if(Qt===Dr)return;La(!0);const lr=Fi.item_types.find(Ir=>Ir.item_type===Dr);if(Dr!=="PRACTICAL"&&lr.contents.length>0&&(qr!=null&&qr.id)){const Ir=(0,tt.cloneDeep)(Fi),{item_types:mr}=Ir||{};Ir.item_types=mr.filter(ur=>ur.item_type===Dr);try{(yield ze(qr.id||qr.categoryId,Ir)).status===0&&Da(Qt)}catch(ur){}}else qr.categoryId?Yt(!0,2,Qt):Jt(!0,Qt);La(!1)}),onDelete:Dn})),ra.createElement(mn.Z,{flex:1,className:ei.rightPart},ra.createElement(Ct.Z,{spinning:Ha},ra.createElement(Es,{setVisibleModalType:Io,currentItemType:Dr,onDelete:Dn})))):ra.createElement(Pi.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:ra.createElement(lt.Z,{justify:"center",className:"mt20"},(qr==null?void 0:qr.id)&&ra.createElement(Hn.op,{style:{width:88},onClick:()=>Io("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(qr!=null&&qr.id)&&ra.createElement("div",{className:ei.fixedBottom},ra.createElement(ys.Z,{className:`${ei.previewBtn} mr20`,onClick:()=>Ea(void 0,null,function*(){var Qt,lr;const Ir=(Qt=Fi==null?void 0:Fi.item_types)==null?void 0:Qt.filter(mr=>{var ur,Bi;return((ur=mr.contents)==null?void 0:ur.length)>0||((Bi=mr==null?void 0:mr.item_banks)==null?void 0:Bi.length)>0});if(!((lr=Fi.item_types)!=null&&lr.length)){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Ir==null?void 0:Ir.length)===0){We.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield Jt(!0,Dr),ya()})},"\u8BD5\u5377\u9884\u89C8"),ra.createElement(ys.Z,{type:"primary",className:ei.confirmBtn,onClick:()=>Jt()},ra.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(qr!=null&&qr.categoryId)&&ra.createElement("div",{className:ei.fixedBottom,style:{justifyContent:((Ua=Fi==null?void 0:Fi.exercise)==null?void 0:Ua.exercise_status)!==1?"end":"center"}},ra.createElement(ys.Z,{className:`${ei.previewBtn} mr20`,onClick:()=>Ea(void 0,null,function*(){var Qt,lr;document.body.scrollIntoView(),Ue.history.push(`/classrooms/${qr.coursesId}/exercise/${(Qt=Fi==null?void 0:Fi.exercise)==null?void 0:Qt.id}/detail?random=${(lr=Fi==null?void 0:Fi.exercise)==null?void 0:lr.is_random}`)})},"\u8FD4\u56DE"),((Ka=Fi==null?void 0:Fi.exercise)==null?void 0:Ka.exercise_status)===1&&ra.createElement(ys.Z,{className:`${ei.previewBtn} mr20`,onClick:nt},"\u6A21\u62DF\u8003\u8BD5"),(Fi==null?void 0:Fi.exercise.exercise_status)===1&&ra.createElement(ys.Z,{type:"primary",className:ei.confirmBtn,onClick:()=>Yt()},"\u63D0\u4EA4")),ra.createElement(Hi,{open:oa==="questionType",onCancel:()=>Io(""),onOk:Qt=>Ea(void 0,null,function*(){var lr,Ir;const mr=[],ur=Oe(Fi,{type:"setQuestionType",payload:Qt}),Bi=((lr=ur==null?void 0:ur.item_types)==null?void 0:lr.map(Pr=>Pr.item_type))||[];for(const Pr of((Ir=Fi==null?void 0:Fi.item_types)==null?void 0:Ir.map(to=>to.item_type))||[])Bi.includes(Pr)||mr.push(Pr);qr.id&&mr.length>0&&(yield Nt(qr.id,{item_type:mr})).status!==0||(eo({type:"setQuestionType",payload:Qt}),Da(Dr||ur.item_types[0].item_type),Io(""))})}),ra.createElement(Sr,{open:oa==="setScore",onCancel:()=>{Io("")},onOk:Qt=>Ea(void 0,null,function*(){console.log("---newData",Qt);const lr=Qt.item_types.map(Ir=>({item_type:Ir.item_type,score:Ir.score}));qr.id?(yield dt(qr.id,{score_settings:lr})).status===0&&eo({type:"init",payload:Qt}):(yield He(qr.categoryId,{score_settings:lr})).status===0&&eo({type:"init",payload:Qt}),Io("")})}),ra.createElement(nr,{open:oa==="rule",onCancel:()=>Io(""),currentItemType:Dr,setVisibleModalType:Io}),No.get("type")==="settings"&&ra.createElement(sa,{open:oa==="selectShixun",onCancel:()=>Io(""),onOk:Qt=>{if(console.log(Qt),(Qt==null?void 0:Qt.length)<=0){We.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}eo({type:"addShixun",payload:{shixunList:[...Qt]}}),Io("")}}))},Rs=pe(92744),ls=pe(59301),sl=Object.defineProperty,jl=Object.defineProperties,ou=Object.getOwnPropertyDescriptors,Ji=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,$l=(En,Nn,ai)=>Nn in En?sl(En,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):En[Nn]=ai,Tl=(En,Nn)=>{for(var ai in Nn||(Nn={}))Cs.call(Nn,ai)&&$l(En,ai,Nn[ai]);if(Ji)for(var ai of Ji(Nn))Us.call(Nn,ai)&&$l(En,ai,Nn[ai]);return En},Kl=(En,Nn)=>jl(En,ou(Nn)),Oo=(En,Nn,ai)=>new Promise((Qi,Gi)=>{var ki=Mi=>{try{oi(ai.next(Mi))}catch(cr){Gi(cr)}},_i=Mi=>{try{oi(ai.throw(Mi))}catch(cr){Gi(cr)}},oi=Mi=>Mi.done?Qi(Mi.value):Promise.resolve(Mi.value).then(ki,_i);oi((ai=ai.apply(En,Nn)).next())}),zl=()=>{var En,Nn,ai,Qi;const[Gi,ki]=(0,le.useState)("baseInfo"),_i=(0,Ue.useDispatch)();(0,le.useEffect)(()=>{_i({type:"globalSetting/footerToggle",payload:!1})},[]);const oi=(0,Ue.useParams)(),Mi=!!(oi.id||oi.categoryId),[cr]=(0,Ue.useSearchParams)();(0,le.useEffect)(()=>{cr.get("type")==="settings"&&ki("settings")},[]);const[Hr,ga]=(0,le.useReducer)(Oe,null),[$o,Ua]=(0,le.useState)(!1),Ka=()=>Oo(void 0,null,function*(){Ua(!0);let Dr;oi.categoryId?Dr=yield Wt(oi):Dr=yield Le(oi.id),Ua(!1),Dr.status===0&&ga({type:"init",payload:Dr})});(0,le.useEffect)(()=>{Mi?Ka():ga({type:"init",payload:{examination_bank:{difficulty:2}}})},[oi]);const[No,qr]=(0,le.useState)(""),Fi=(Dr,Da)=>Oo(void 0,null,function*(){var Ha,La,fl,xu;const Jt=(Ha=Hr==null?void 0:Hr.item_types)==null?void 0:Ha.filter(nt=>{var Qt;return((Qt=nt==null?void 0:nt.item_type)==null?void 0:Qt.toUpperCase())===(Da==null?void 0:Da.type)}),Yt={sort_by_item_type:Hr.sort_by_item_type,difficulty:Hr.examination_bank.difficulty,exam_notes:Hr.examination_bank.exam_notes,name:Hr.examination_bank.name,time:Hr.examination_bank.time,item_types:Hr.item_types};if(Dr!==void 0&&!(Dr!=null&&Dr.single_question_id)){Yt.seleted_item_bank_ids=Dr==null?void 0:Dr.seleted_item_bank_ids,Yt.item_types=Jt;const nt=yield xt(Yt);if((nt==null?void 0:nt.status)===0){let Qt=(0,tt.cloneDeep)(bo.data);Qt.questionList=(La=Qt==null?void 0:Qt.questionList)==null?void 0:La.map(lr=>{var Ir;return lr.type===Da.type?Kl(Tl({},lr),{questions:((Ir=nt==null?void 0:nt.questions)==null?void 0:Ir.questions)||[]}):lr}),oa({show:!0,data:Qt})}return}if(Dr!==void 0&&(Dr!=null&&Dr.single_question_id)){Yt.seleted_item_bank_ids=Dr==null?void 0:Dr.seleted_item_bank_ids,Yt.single_question_id=Dr==null?void 0:Dr.single_question_id,Yt.item_types=Jt;const nt=yield xt(Yt);if((nt==null?void 0:nt.status)===0){let Qt=(0,tt.cloneDeep)(bo.data);Qt.questionList=(fl=Qt==null?void 0:Qt.questionList)==null?void 0:fl.map(lr=>{var Ir,mr;if(lr.type===Da.type){const ur=(0,tt.cloneDeep)(lr==null?void 0:lr.questions);return ur.splice(Da.index,1,(mr=(Ir=nt==null?void 0:nt.questions)==null?void 0:Ir.questions)==null?void 0:mr[0]),console.log(lr==null?void 0:lr.questions,ur,Da.index,"new_questions"),Kl(Tl({},lr),{questions:ur})}return lr}),oa({show:!0,data:Qt})}return}const Dn=yield Tt(Yt);if((Dn==null?void 0:Dn.status)===0){const nt=(0,mo.ad)(Dn);let Qt=[];(xu=Hr==null?void 0:Hr.item_types)==null||xu.forEach(lr=>{var Ir;const mr=(Ir=nt==null?void 0:nt.questionList)==null?void 0:Ir.find(ur=>lr.item_type===ur.type);Qt.push(mr)}),console.log(Hr,"sortList"),Qt=(0,tt.compact)(Qt),nt.questionList=Qt,oa({show:!0,data:nt}),qr(new Date)}}),eo=Dr=>{var Da;let Ha=(0,tt.cloneDeep)(bo.data);Ha.questionList=(Da=Ha==null?void 0:Ha.questionList)==null?void 0:Da.map(La=>La.type===Dr.type?Kl(Tl({},La),{questions_score:Dr.scoreTotal}):La),ga({type:"changeQuestionScore",payload:{score:Dr.score,itemType:Dr.type}}),oa({show:!0,data:Ha})},Ko=Dr=>Oo(void 0,null,function*(){const Da={sort_by_item_type:Hr.sort_by_item_type,difficulty:Hr.examination_bank.difficulty,exam_notes:Hr.examination_bank.exam_notes,name:Hr.examination_bank.name,time:Hr.examination_bank.time,item_types:Hr.item_types,sub_discipline_id:Hr.examination_bank.sub_discipline_id};if(Dr){(yield Ot(Tl(Tl({},Da),Dr))).status===0&&We.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield ze(oi.id,Da)).status===0&&(We.ZP.success("\u63D0\u4EA4\u6210\u529F"),Ue.history.push("/paperlibrary?defaultActiveKey=0"))}),ma=(0,Go.g)(),[ya]=ut.default.useForm(),[bo,oa]=(0,le.useState)({show:!1,data:{}}),Io=!!((En=Hr==null?void 0:Hr.exercise)!=null&&En.exercise_status)&&((Nn=Hr==null?void 0:Hr.exercise)==null?void 0:Nn.exercise_status)!==1;return ls.createElement(St.Provider,{value:{data:Hr,disabled:Io,dispatch:ga,setPreview:oa,getData:Ka,handlePreview:Fi}},bo.show?ls.createElement(Rs.Z,{key:No,data:bo.data,onExchange:Fi,onTypeScore:eo,submit:Ko,goBack:()=>oa({show:!1,data:{}})}):ls.createElement("div",{className:ke.wrapper},ls.createElement("div",{className:"edu-container"},ls.createElement(Ge.Z,{className:ke.breadCrumbWrapper,separator:">",items:oi!=null&&oi.categoryId?[{title:ls.createElement(Ue.Link,{to:`/classrooms/${oi.coursesId}/exercise`},(Qi=(ai=(0,Mn.eY)())==null?void 0:ai.course)==null?void 0:Qi.course_name)},{title:ls.createElement(Ue.Link,{to:`/classrooms/${oi.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:ls.createElement(Ue.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),ls.createElement(Me.d4,{activeKey:Gi,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:Dr=>Oo(void 0,null,function*(){if(Dr==="settings"&&(yield ya.validateFields(),!Mi)){const Da=yield je(Hr);Da.status===0&&Ue.history.replace(`/randompaper/edit/${Da==null?void 0:Da.examination_bank_id}?type=settings`)}ki(Dr)})}),Gi==="baseInfo"&&ls.createElement(zn,{courseOptions:ma,setCurrentKey:ki,loading:$o,form:ya}),ls.createElement("div",{style:{display:Gi==="settings"?"block":"none"}},Hr&&ls.createElement(hr,null)))))}},86918:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return $e}});var le=pe(43418),ke={ul:"ul___TdfYY"},We=pe(32637),ut=pe(59301),Ge=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ct=(Ft,lt)=>{var vt={};for(var Ie in Ft)Ue.call(Ft,Ie)&<.indexOf(Ie)<0&&(vt[Ie]=Ft[Ie]);if(Ft!=null&&Ge)for(var Ie of Ge(Ft))lt.indexOf(Ie)<0&&Me.call(Ft,Ie)&&(vt[Ie]=Ft[Ie]);return vt},$e=Ft=>{var lt=Ft,{open:vt,onCancel:Ie}=lt,te=Ct(lt,["open","onCancel"]);return ut.createElement(le.default,{centered:!0,open:vt,title:ut.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ie,footer:null},ut.createElement("div",null,ut.createElement("div",{className:"tc"},ut.createElement("img",{className:"mt10",src:We,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),ut.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ut.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ut.createElement("div",{style:{color:"#333"},className:"pt30 font14"},ut.createElement("ul",{className:ke.ul},ut.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),ut.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ut.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},94860:function(On,pn,pe){"use strict";pe.d(pn,{g:function(){return Ge}});var le=pe(59301),ke=pe(80401),We=pe(26422),ut=(Ue,Me,Ct)=>new Promise((wt,$e)=>{var Ft=Ie=>{try{vt(Ct.next(Ie))}catch(te){$e(te)}},lt=Ie=>{try{vt(Ct.throw(Ie))}catch(te){$e(te)}},vt=Ie=>Ie.done?wt(Ie.value):Promise.resolve(Ie.value).then(Ft,lt);vt((Ct=Ct.apply(Ue,Me)).next())});const Ge=()=>{const[Ue,Me]=(0,le.useState)([]);return(0,le.useEffect)(()=>{ut(void 0,null,function*(){const wt=yield(0,ke.d1)({source:"question"});wt!=null&&wt.disciplines&&Me((0,We.L)(wt==null?void 0:wt.disciplines))})},[]),Ue}},83312:function(On,pn,pe){"use strict";pe.d(pn,{U:function(){return wt}});var le=pe(59301),ke=Object.defineProperty,We=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=($e,Ft,lt)=>Ft in $e?ke($e,Ft,{enumerable:!0,configurable:!0,writable:!0,value:lt}):$e[Ft]=lt,Me=($e,Ft)=>{for(var lt in Ft||(Ft={}))ut.call(Ft,lt)&&Ue($e,lt,Ft[lt]);if(We)for(var lt of We(Ft))Ge.call(Ft,lt)&&Ue($e,lt,Ft[lt]);return $e},Ct=($e,Ft,lt)=>new Promise((vt,Ie)=>{var te=se=>{try{de(lt.next(se))}catch(he){Ie(he)}},ee=se=>{try{de(lt.throw(se))}catch(he){Ie(he)}},de=se=>se.done?vt(se.value):Promise.resolve(se.value).then(te,ee);de((lt=lt.apply($e,Ft)).next())});function wt($e,Ft){const[lt,vt]=(0,le.useState)(Ft),[Ie,te]=(0,le.useState)(!1),[ee,de]=(0,le.useState)();return[lt,Ie,(he,ve=!1)=>Ct(this,null,function*(){const Ee=ve?Ft:Me(Me({},lt),he);te(!0),vt(Ee);const Be=yield $e(Ee);return te(!1),de(Be),Be}),ee,de]}},24768:function(On,pn,pe){"use strict";pe.d(pn,{AL:function(){return Ee},Iy:function(){return Ft},Qv:function(){return Ie},ez:function(){return ve},jb:function(){return lt}});var le=pe(32834),ke=pe.n(le),We=pe(11690),ut=pe.n(We);let Ge=1;function Ue(Xe,Ye){const dt=Xe.match(/^(\s+)(?:```)/);if(dt===null)return Ye;const He=dt[1];return Ye.split(` `).map(Nt=>{const ot=Nt.match(/^\s+/);if(ot===null)return Nt;const[Tt]=ot;return Tt.length>=He.length?Nt.slice(He.length):Nt}).join(` `)}let Me=[],Ct=["
    "];const wt=new(ke()).Renderer,$e=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ft(){Me.length=0,Ct=["
      "]}const lt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function vt(Xe,Ye,dt,He){if(Ye>=Xe.length||Xe[Ye].level<=dt)return Ye;var Nt=Xe[Ye];He.push("
    • "+Nt.text+""),Ye++;var ot=[];return Ye=vt(Xe,Ye,Nt.level,ot),ot.length>0&&(He.push("
        "),ot.forEach(function(Tt){He.push(Tt)}),He.push("
      ")),He.push("
    • "),Ye=vt(Xe,Ye,dt,He),Ye}function Ie(){return vt(Me,0,0,Ct),Ct.push("
    "),Ct.join("")}const te={heading(Xe){const Ye=$e.exec(Xe);if(Ge+=1,Ye)return{type:"heading",raw:Ye[0],depth:Ye[1].length,text:Ye[2]}},fences(Xe){const Ye=this.rules.block.fences.exec(Xe);if(Ye){const dt=Ye[0];let He=Ue(dt,Ye[3]||"");const Nt=Ye[2]?Ye[2].trim():Ye[2];if(["latex","katex","math"].indexOf(Nt)>=0){const ot=se(),Tt=He;He=ot,he[ot]={type:"block",expression:Tt}}return{type:"code",raw:dt,lang:Nt,text:He}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const se=()=>`__special_katext_id_${de++}__`;let he={};function ve(){return he}function Ee(){de=0,he={}}function Be(Xe){return Xe=Xe.replace(ee,(Ye,dt)=>{const He=se();return he[He]={type:"inline",expression:dt},He}),Xe}const Le=wt.listitem;wt.listitem=function(Xe){return Le(Be(Xe))};const ze=wt.paragraph;wt.paragraph=function(Xe){return ze(Be(Xe))};const je=wt.tablecell;wt.tablecell=function(Xe,Ye){return je(Be(Xe),Ye)},wt.code=function(Xe,Ye,dt){const He=(Ye||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`

    ${Xe}

    `:`
    ${dt?Xe:(0,We.escape)(Xe,!0)}
    `:'
    '+(dt?Xe:(0,We.escape)(Xe,!0))+"
    "},wt.heading=function(Xe,Ye,dt){let He=this.options.headerPrefix+dt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Me.push({anchor:He,level:Ye,text:Xe}),"'+Xe+""},ke().setOptions({silent:!0,gfm:!0,pedantic:!1}),ke().use({tokenizer:te,renderer:wt}),pn.ZP=ke()},50371:function(On,pn){"use strict";function pe(){const le=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ke=1;ke{const Ge=We[ut];Ge!==void 0&&(le[ut]=Ge)})}return le}pn.Z=pe},77578:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return le}});const le=ke=>ke?typeof ke=="function"?ke():ke:null},13845:function(On,pn,pe){"use strict";pe.d(pn,{F:function(){return le},Z:function(){return ke}});function le(We){return We!=null&&We===We.window}function ke(We,ut){var Ge,Ue;if(typeof window=="undefined")return 0;const Me=ut?"scrollTop":"scrollLeft";let Ct=0;return le(We)?Ct=We[ut?"pageYOffset":"pageXOffset"]:We instanceof Document?Ct=We.documentElement[Me]:(We instanceof HTMLElement||We)&&(Ct=We[Me]),We&&!le(We)&&typeof Ct!="number"&&(Ct=(Ue=((Ge=We.ownerDocument)!==null&&Ge!==void 0?Ge:We).documentElement)===null||Ue===void 0?void 0:Ue[Me]),Ct}},56762:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ke}});var le=pe(59301);function ke(){const[,We]=le.useReducer(ut=>ut+1,0);return We}},68031:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ut}});var le=pe(16089);function ke(Ge,Ue,Me,Ct){const wt=Me-Ue;return Ge/=Ct/2,Ge<1?wt/2*Ge*Ge*Ge+Ue:wt/2*((Ge-=2)*Ge*Ge+2)+Ue}var We=pe(13845);function ut(Ge){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Me=()=>window,callback:Ct,duration:wt=450}=Ue,$e=Me(),Ft=(0,We.Z)($e,!0),lt=Date.now(),vt=()=>{const te=Date.now()-lt,ee=ke(te>wt?wt:te,Ft,Ge,wt);(0,We.F)($e)?$e.scrollTo(window.pageXOffset,ee):$e instanceof Document||$e.constructor.name==="HTMLDocument"?$e.documentElement.scrollTop=ee:$e.scrollTop=ee,te{let{children:Ot}=xt;const{getPrefixCls:Wt}=Ge.useContext(Me.E_),Dt=Wt("breadcrumb");return Ge.createElement("li",{className:`${Dt}-separator`,"aria-hidden":"true"},Ot===""?Ot:Ot||"/")};$e.__ANT_BREADCRUMB_SEPARATOR=!0;var Ft=$e,lt=function(xt,Ot){var Wt={};for(var Dt in xt)Object.prototype.hasOwnProperty.call(xt,Dt)&&Ot.indexOf(Dt)<0&&(Wt[Dt]=xt[Dt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Dt=Object.getOwnPropertySymbols(xt);ttOt[tt]||Dt)}function Ie(xt,Ot,Wt,Dt){if(Wt==null)return null;const{className:tt,onClick:Ve}=Ot,_t=lt(Ot,["className","onClick"]),vn=Object.assign(Object.assign({},(0,ut.Z)(_t,{data:!0,aria:!0})),{onClick:Ve});return Dt!==void 0?Ge.createElement("a",Object.assign({},vn,{className:ke()(`${xt}-link`,tt),href:Dt}),Wt):Ge.createElement("span",Object.assign({},vn,{className:ke()(`${xt}-link`,tt)}),Wt)}function te(xt,Ot){return(Dt,tt,Ve,_t,vn)=>{if(Ot)return Ot(Dt,tt,Ve,_t);const yn=vt(Dt,tt);return Ie(xt,Dt,yn,vn)}}var ee=function(xt,Ot){var Wt={};for(var Dt in xt)Object.prototype.hasOwnProperty.call(xt,Dt)&&Ot.indexOf(Dt)<0&&(Wt[Dt]=xt[Dt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Dt=Object.getOwnPropertySymbols(xt);tt{const{prefixCls:Ot,separator:Wt="/",children:Dt,menu:tt,overlay:Ve,dropdownProps:_t,href:vn}=xt,zt=(qt=>{if(tt||Ve){const ln=Object.assign({},_t);if(tt){const Gn=tt||{},{items:un}=Gn,_n=ee(Gn,["items"]);ln.menu=Object.assign(Object.assign({},_n),{items:un==null?void 0:un.map((St,Zn)=>{var{key:ci,title:Ze,label:be,path:Pe}=St,Ae=ee(St,["key","title","label","path"]);let Oe=be!=null?be:Ze;return Pe&&(Oe=Ge.createElement("a",{href:`${vn}${Pe}`},Oe)),Object.assign(Object.assign({},Ae),{key:ci!=null?ci:Zn,label:Oe})})})}else Ve&&(ln.overlay=Ve);return Ge.createElement(wt.Z,Object.assign({placement:"bottom"},ln),Ge.createElement("span",{className:`${Ot}-overlay-link`},qt,Ge.createElement(Ct.Z,null)))}return qt})(Dt);return zt!=null?Ge.createElement(Ge.Fragment,null,Ge.createElement("li",null,zt),Wt&&Ge.createElement(Ft,null,Wt)):null},se=xt=>{const{prefixCls:Ot,children:Wt,href:Dt}=xt,tt=ee(xt,["prefixCls","children","href"]),{getPrefixCls:Ve}=Ge.useContext(Me.E_),_t=Ve("breadcrumb",Ot);return Ge.createElement(de,Object.assign({},tt,{prefixCls:_t}),Ie(_t,tt,Wt,Dt))};se.__ANT_BREADCRUMB_ITEM=!0;var he=se,ve=pe(17313),Ee=pe(83116),Be=pe(37613);const Le=xt=>{const{componentCls:Ot,iconCls:Wt}=xt;return{[Ot]:Object.assign(Object.assign({},(0,ve.Wf)(xt)),{color:xt.itemColor,fontSize:xt.fontSize,[Wt]:{fontSize:xt.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:xt.linkColor,transition:`color ${xt.motionDurationMid}`,padding:`0 ${xt.paddingXXS}px`,borderRadius:xt.borderRadiusSM,height:xt.lineHeight*xt.fontSize,display:"inline-block",marginInline:-xt.marginXXS,"&:hover":{color:xt.linkHoverColor,backgroundColor:xt.colorBgTextHover}},(0,ve.Qy)(xt)),"li:last-child":{color:xt.lastItemColor},[`${Ot}-separator`]:{marginInline:xt.separatorMargin,color:xt.separatorColor},[`${Ot}-link`]:{[` > ${Wt} + span, > ${Wt} + a `]:{marginInlineStart:xt.marginXXS}},[`${Ot}-overlay-link`]:{borderRadius:xt.borderRadiusSM,height:xt.lineHeight*xt.fontSize,display:"inline-block",padding:`0 ${xt.paddingXXS}px`,marginInline:-xt.marginXXS,[`> ${Wt}`]:{marginInlineStart:xt.marginXXS,fontSize:xt.fontSizeIcon},"&:hover":{color:xt.linkHoverColor,backgroundColor:xt.colorBgTextHover,a:{color:xt.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${xt.componentCls}-rtl`]:{direction:"rtl"}})}};var ze=(0,Ee.Z)("Breadcrumb",xt=>{const Ot=(0,Be.TS)(xt,{});return[Le(Ot)]},xt=>({itemColor:xt.colorTextDescription,lastItemColor:xt.colorText,iconFontSize:xt.fontSize,linkColor:xt.colorTextDescription,linkHoverColor:xt.colorText,separatorColor:xt.colorTextDescription,separatorMargin:xt.marginXS})),je=function(xt,Ot){var Wt={};for(var Dt in xt)Object.prototype.hasOwnProperty.call(xt,Dt)&&Ot.indexOf(Dt)<0&&(Wt[Dt]=xt[Dt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Dt=Object.getOwnPropertySymbols(xt);tt{var{breadcrumbName:_t}=Ve,vn=je(Ve,["breadcrumbName"]);return Object.assign(Object.assign({},vn),{title:_t})})}),tt}function Ye(xt,Ot){return(0,Ge.useMemo)(()=>xt||(Ot?Ot.map(Xe):null),[xt,Ot])}var dt=function(xt,Ot){var Wt={};for(var Dt in xt)Object.prototype.hasOwnProperty.call(xt,Dt)&&Ot.indexOf(Dt)<0&&(Wt[Dt]=xt[Dt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Dt=Object.getOwnPropertySymbols(xt);tt{if(Ot===void 0)return Ot;let Wt=(Ot||"").replace(/^\//,"");return Object.keys(xt).forEach(Dt=>{Wt=Wt.replace(`:${Dt}`,xt[Dt])}),Wt},Nt=xt=>{const{prefixCls:Ot,separator:Wt="/",style:Dt,className:tt,rootClassName:Ve,routes:_t,items:vn,children:yn,itemRender:zt,params:qt={}}=xt,ln=dt(xt,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gn,direction:un,breadcrumb:_n}=Ge.useContext(Me.E_);let St;const Zn=Gn("breadcrumb",Ot),[ci,Ze]=ze(Zn),be=Ye(vn,_t),Pe=te(Zn,zt);if(be&&be.length>0){const xe=[],ct=vn||_t;St=be.map((Mt,at)=>{const{path:qe,key:Lt,type:Bt,menu:ft,overlay:Gt,onClick:Sn,className:an,separator:rn,dropdownProps:zn}=Mt,kn=He(qt,qe);kn!==void 0&&xe.push(kn);const mn=Lt!=null?Lt:at;if(Bt==="separator")return Ge.createElement(Ft,{key:mn},rn);const ei={},Pi=at===be.length-1;ft?ei.menu=ft:Gt&&(ei.overlay=Gt);let{href:Hn}=Mt;return xe.length&&kn!==void 0&&(Hn=`#/${xe.join("/")}`),Ge.createElement(de,Object.assign({key:mn},ei,(0,ut.Z)(Mt,{data:!0,aria:!0}),{className:an,dropdownProps:zn,href:Hn,separator:Pi?"":Wt,onClick:Sn,prefixCls:Zn}),Pe(Mt,qt,ct,xe,Hn))})}else if(yn){const xe=(0,We.Z)(yn).length;St=(0,We.Z)(yn).map((ct,Mt)=>{if(!ct)return ct;const at=Mt===xe-1;return(0,Ue.Tm)(ct,{separator:at?"":Wt,key:Mt})})}const Ae=ke()(Zn,_n==null?void 0:_n.className,{[`${Zn}-rtl`]:un==="rtl"},tt,Ve,Ze),Oe=Object.assign(Object.assign({},_n==null?void 0:_n.style),Dt);return ci(Ge.createElement("nav",Object.assign({className:Ae,style:Oe},ln),Ge.createElement("ol",null,St)))};Nt.Item=he,Nt.Separator=Ft;var ot=Nt,Tt=ot},19842:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return wr}});var le=pe(19127),ke=pe(59301),We=pe(33853),ut=pe(58617),Ge=pe(38819),Ue=pe(92310),Me=pe.n(Ue),Ct=pe(96663),wt=pe(72071),$e=pe(6620),Ft=pe(77861),lt=pe(17115),vt=pe(90782),Ie=pe(6089),te=pe(18929),ee=ke.createContext(null),de=ee,se=pe(20135),he=pe(90493),ve=pe(44127),Ee="__rc_cascader_search_mark__",Be=function(Si,Wi,qi){var $n=qi.label;return Wi.some(function(qn){return String(qn[$n]).toLowerCase().includes(Si.toLowerCase())})},Le=function(Si,Wi,qi,$n){return Wi.map(function(qn){return qn[$n.label]}).join(" / ")},ze=function(Pn,Si,Wi,qi,$n,qn){var Zt=$n.filter,$t=Zt===void 0?Be:Zt,Qe=$n.render,on=Qe===void 0?Le:Qe,cn=$n.limit,At=cn===void 0?50:cn,ht=$n.sort;return ke.useMemo(function(){var en=[];if(!Pn)return[];function fn(Rn,Qn){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Rn.forEach(function(wn){if(!(!ht&&At!==!1&&At>0&&en.length>=At)){var Kn=[].concat((0,le.Z)(Qn),[wn]),Ei=wn[Wi.children],tn=Et||wn.disabled;if((!Ei||Ei.length===0||qn)&&$t(Pn,Kn,{label:Wi.label})){var sn;en.push((0,ve.Z)((0,ve.Z)({},wn),{},(sn={disabled:tn},(0,he.Z)(sn,Wi.label,on(Pn,Kn,qi,Wi)),(0,he.Z)(sn,Ee,Kn),(0,he.Z)(sn,Wi.children,void 0),sn)))}Ei&&fn(wn[Wi.children],Kn,tn)}})}return fn(Si,[]),ht&&en.sort(function(Rn,Qn){return ht(Rn[Ee],Qn[Ee],Pn,Wi)}),At!==!1&&At>0?en.slice(0,At):en},[Pn,Si,Wi,qi,on,qn,$t,ht,At])},je="__RC_CASCADER_SPLIT__",Xe="SHOW_PARENT",Ye="SHOW_CHILD";function dt(Pn){return Pn.join(je)}function He(Pn){return Pn.map(dt)}function Nt(Pn){return Pn.split(je)}function ot(Pn){var Si=Pn||{},Wi=Si.label,qi=Si.value,$n=Si.children,qn=qi||"value";return{label:Wi||"label",value:qn,key:qn,children:$n||"children"}}function Tt(Pn,Si){var Wi,qi;return(Wi=Pn.isLeaf)!==null&&Wi!==void 0?Wi:!((qi=Pn[Si.children])!==null&&qi!==void 0&&qi.length)}function xt(Pn){var Si=Pn.parentElement;if(Si){var Wi=Pn.offsetTop-Si.offsetTop;Wi-Si.scrollTop<0?Si.scrollTo({top:Wi}):Wi+Pn.offsetHeight-Si.scrollTop>Si.offsetHeight&&Si.scrollTo({top:Wi+Pn.offsetHeight-Si.offsetHeight})}}function Ot(Pn,Si){return Pn.map(function(Wi){var qi;return(qi=Wi[Ee])===null||qi===void 0?void 0:qi.map(function($n){return $n[Si.value]})})}function Wt(Pn,Si,Wi){var qi=new Set(Pn),$n=Si();return Pn.filter(function(qn){var Zt=$n[qn],$t=Zt?Zt.parent:null,Qe=Zt?Zt.children:null;return Zt&&Zt.node.disabled?!0:Wi===Ye?!(Qe&&Qe.some(function(on){return on.key&&qi.has(on.key)})):!($t&&!$t.node.disabled&&qi.has($t.key))})}function Dt(Pn,Si,Wi){for(var qi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,$n=Si,qn=[],Zt=function(){var on,cn,At,ht=Pn[$t],en=(on=$n)===null||on===void 0?void 0:on.findIndex(function(Rn){var Qn=Rn[Wi.value];return qi?String(Qn)===String(ht):Qn===ht}),fn=en!==-1?(cn=$n)===null||cn===void 0?void 0:cn[en]:null;qn.push({value:(At=fn==null?void 0:fn[Wi.value])!==null&&At!==void 0?At:ht,index:en,option:fn}),$n=fn==null?void 0:fn[Wi.children]},$t=0;$t1){var In=fn.slice(0,-1);wn(In)}else on(!1)},tn=function(){var In,Oi=((In=Qn[Rn])===null||In===void 0?void 0:In[Wi.children])||[],Di=Oi.find(function(Ti){return!Ti.disabled});if(Di){var vi=[].concat((0,le.Z)(fn),[Di[Wi.value]]);wn(vi)}};ke.useImperativeHandle(Pn,function(){return{onKeyDown:function(In){var Oi=In.which;switch(Oi){case Zn.Z.UP:case Zn.Z.DOWN:{var Di=0;Oi===Zn.Z.UP?Di=-1:Oi===Zn.Z.DOWN&&(Di=1),Di!==0&&Kn(Di);break}case Zn.Z.LEFT:{if(Qe)break;At?tn():Ei();break}case Zn.Z.RIGHT:{if(Qe)break;At?Ei():tn();break}case Zn.Z.BACKSPACE:{Qe||Ei();break}case Zn.Z.ENTER:{if(fn.length){var vi=Qn[Rn],Ti=(vi==null?void 0:vi[Ee])||[];Ti.length?qn(Ti.map(function(Li){return Li[Wi.value]}),Ti[Ti.length-1]):qn(fn,Qn[Rn])}break}case Zn.Z.ESC:on(!1),cn&&In.stopPropagation()}},onKeyUp:function(){}}})},Ze=ke.forwardRef(function(Pn,Si){var Wi,qi,$n,qn,Zt=(0,Ft.lk)(),$t=Zt.prefixCls,Qe=Zt.multiple,on=Zt.searchValue,cn=Zt.toggleOpen,At=Zt.notFoundContent,ht=Zt.direction,en=Zt.open,fn=ke.useRef(),Rn=ht==="rtl",Qn=ke.useContext(de),Et=Qn.options,wn=Qn.values,Kn=Qn.halfValues,Ei=Qn.fieldNames,tn=Qn.changeOnSelect,sn=Qn.onSelect,In=Qn.searchOptions,Oi=Qn.dropdownPrefixCls,Di=Qn.loadData,vi=Qn.expandTrigger,Ti=Oi||$t,Li=ke.useState([]),sr=(0,wt.Z)(Li,2),Zr=sr[0],Vr=sr[1],Tn=function(nr){if(!(!Di||on)){var qo=Dt(nr,Et,Ei),Go=qo.map(function(mo){var Yo=mo.option;return Yo}),Lr=Go[Go.length-1];if(Lr&&!Tt(Lr,Ei)){var br=dt(nr);Vr(function(mo){return[].concat((0,le.Z)(mo),[br])}),Di(Go)}}};ke.useEffect(function(){Zr.length&&Zr.forEach(function(Qo){var nr=Nt(Qo),qo=Dt(nr,Et,Ei,!0).map(function(Lr){var br=Lr.option;return br}),Go=qo[qo.length-1];(!Go||Go[Ei.children]||Tt(Go,Ei))&&Vr(function(Lr){return Lr.filter(function(br){return br!==Qo})})})},[Et,Zr,Ei]);var Po=ke.useMemo(function(){return new Set(He(wn))},[wn]),Xr=ke.useMemo(function(){return new Set(He(Kn))},[Kn]),Cr=St(),Cn=(0,wt.Z)(Cr,2),ri=Cn[0],Yi=Cn[1],yr=function(nr){Yi(nr),Tn(nr)},er=function(nr){var qo=nr.disabled,Go=Tt(nr,Ei);return!qo&&(Go||tn||Qe)},Fr=function(nr,qo){var Go=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;sn(nr),!Qe&&(qo||tn&&(vi==="hover"||Go))&&cn(!1)},Ur=ke.useMemo(function(){return on?In:Et},[on,In,Et]),zr=ke.useMemo(function(){for(var Qo=[{options:Ur}],nr=Ur,qo=Ot(nr,Ei),Go=function(){var Yo=ri[Lr],Ki=nr.find(function(sa,va){return(qo[va]?dt(qo[va]):sa[Ei.value])===Yo}),st=Ki==null?void 0:Ki[Ei.children];if(!(st!=null&&st.length))return"break";nr=st,Qo.push({options:st})},Lr=0;Lr":Zr,Tn=Pn.loadingIcon,Po=Pn.children,Xr=Pn.dropdownMatchSelectWidth,Cr=Xr===void 0?!1:Xr,Cn=Pn.showCheckedStrategy,ri=Cn===void 0?Xe:Cn,Yi=(0,$e.Z)(Pn,xe),yr=(0,lt.ZP)(Wi),er=!!At,Fr=(0,te.Z)(Zt,{value:$t,postState:Mt}),Ur=(0,wt.Z)(Fr,2),zr=Ur[0],Tr=Ur[1],Yr=ke.useMemo(function(){return ot(qn)},[JSON.stringify(qn)]),Un=ke.useMemo(function(){return wn||[]},[wn]),Ho=_t(Un,Yr),Yn=ke.useCallback(function(Ca){var fa=Ho();return Ca.map(function($a){var Qa=fa[$a].nodes;return Qa.map(function(Es){return Es[Yr.value]})})},[Ho,Yr]),Ao=(0,te.Z)("",{value:fn,postState:function(fa){return fa||""}}),Qo=(0,wt.Z)(Ao,2),nr=Qo[0],qo=Qo[1],Go=function(fa,$a){qo(fa),$a.source!=="blur"&&Rn&&Rn(fa)},Lr=zt(Qn),br=(0,wt.Z)(Lr,2),mo=br[0],Yo=br[1],Ki=ze(nr,Un,Yr,Kn||$n,Yo,Qe),st=vn(Un,Yr),sa=ke.useMemo(function(){var Ca=st(zr),fa=(0,wt.Z)(Ca,2),$a=fa[0],Qa=fa[1];if(!er||!zr.length)return[$a,[],Qa];var Es=He($a),ys=Ho(),Zs=(0,vt.S)(Es,!0,ys),Mn=Zs.checkedKeys,Ss=Zs.halfCheckedKeys;return[Yn(Mn),Yn(Ss),Qa]},[er,zr,Ho,Yn,st]),va=(0,wt.Z)(sa,3),Ma=va[0],hs=va[1],Ga=va[2],Lo=ke.useMemo(function(){var Ca=He(Ma),fa=Wt(Ca,Ho,ri);return[].concat((0,le.Z)(Ga),(0,le.Z)(Yn(fa)))},[Ma,Ho,Yn,Ga,ri]),po=tt(Lo,Un,Yr,er,cn),la=(0,Ie.Z)(function(Ca){if(Tr(Ca),on){var fa=Mt(Ca),$a=fa.map(function(ys){return Dt(ys,Un,Yr).map(function(Zs){return Zs.option})}),Qa=er?fa:fa[0],Es=er?$a:$a[0];on(Qa,Es)}}),Eo=(0,Ie.Z)(function(Ca){if((!er||en)&&qo(""),!er)la(Ca);else{var fa=dt(Ca),$a=He(Ma),Qa=He(hs),Es=$a.includes(fa),ys=Ga.some(function(eu){return dt(eu)===fa}),Zs=Ma,Mn=Ga;if(ys&&!Es)Mn=Ga.filter(function(eu){return dt(eu)!==fa});else{var Ss=Es?$a.filter(function(eu){return eu!==fa}):[].concat((0,le.Z)($a),[fa]),ra=Ho(),hl;if(Es){var Ol=(0,vt.S)(Ss,{checked:!1,halfCheckedKeys:Qa},ra);hl=Ol.checkedKeys}else{var ns=(0,vt.S)(Ss,!0,ra);hl=ns.checkedKeys}var yu=Wt(hl,Ho,ri);Zs=Yn(yu)}la([].concat((0,le.Z)(Mn),(0,le.Z)(Zs)))}}),Na=function(fa,$a){if($a.type==="clear"){la([]);return}var Qa=$a.values[0],Es=Qa.valueCells;Eo(Es)},os=sn!==void 0?sn:tn,xo=Oi||In,Qr=Ti||vi,pi=function(fa){Li==null||Li(fa),sr==null||sr(fa)},io=ke.useMemo(function(){return{options:Un,fieldNames:Yr,values:Ma,halfValues:hs,changeOnSelect:Qe,onSelect:Eo,checkable:At,searchOptions:Ki,dropdownPrefixCls:Kn,loadData:Ei,expandTrigger:Et,expandIcon:Vr,loadingIcon:Tn,dropdownMenuColumnStyle:Di}},[Un,Yr,Ma,hs,Qe,Eo,At,Ki,Kn,Ei,Et,Vr,Tn,Di]),ro=!(nr?Ki:Un).length,Ja=nr&&Yo.matchInputWidth||ro?{}:{minWidth:"auto"};return ke.createElement(de.Provider,{value:io},ke.createElement(Ft.Ac,(0,Ct.Z)({},Yi,{ref:Si,id:yr,prefixCls:$n,autoClearSearchValue:en,dropdownMatchSelectWidth:Cr,dropdownStyle:Ja,displayValues:po,onDisplayValuesChange:Na,mode:er?"multiple":void 0,searchValue:nr,onSearch:Go,showSearch:mo,OptionList:be,emptyOptions:ro,open:os,dropdownClassName:xo,placement:Qr,onDropdownVisibleChange:pi,getRawInputElement:function(){return Po}})))});at.SHOW_PARENT=Xe,at.SHOW_CHILD=Ye;var qe=at,Lt=qe,Bt=pe(2738),ft=pe(62892),Gt=pe(53487),Sn=pe(19080),an=pe(36355),rn=pe(93891),zn=pe(1684),kn=pe(19716),mn=pe(32441),ei=pe(14154),Pi=pe(58582),Hn=pe(84443),bn=pe(66339),wi=pe(33234),Zi=pe(98447),Hi=pe(17313),rr=pe(74207),_r=pe(83116);const gi=Pn=>{const{prefixCls:Si,componentCls:Wi,antCls:qi}=Pn,$n=`${Wi}-menu-item`,qn=` &${$n}-expand ${$n}-expand-icon, ${$n}-loading-icon `;return[{[Wi]:{width:Pn.controlWidth}},{[`${Wi}-dropdown`]:[(0,Zi.C2)(`${Si}-checkbox`,Pn),{[`&${qi}-select-dropdown`]:{padding:0}},{[Wi]:{"&-checkbox":{top:0,marginInlineEnd:Pn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Wi}-menu-empty`]:{[`${Wi}-menu`]:{width:"100%",height:"auto",[$n]:{color:Pn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Pn.controlItemWidth,height:Pn.dropdownHeight,margin:0,padding:Pn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Pn.lineWidth}px ${Pn.lineType} ${Pn.colorSplit}`},"&-item":Object.assign(Object.assign({},Hi.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Pn.optionPadding,lineHeight:Pn.lineHeight,cursor:"pointer",transition:`all ${Pn.motionDurationMid}`,borderRadius:Pn.borderRadiusSM,"&:hover":{background:Pn.controlItemBgHover},"&-disabled":{color:Pn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[qn]:{color:Pn.colorTextDisabled}},[`&-active:not(${$n}-disabled)`]:{"&, &:hover":{fontWeight:Pn.optionSelectedFontWeight,backgroundColor:Pn.optionSelectedBg}},"&-content":{flex:"auto"},[qn]:{marginInlineStart:Pn.paddingXXS,color:Pn.colorTextDescription,fontSize:Pn.fontSizeIcon},"&-keyword":{color:Pn.colorHighlight}})}}}]},{[`${Wi}-dropdown-rtl`]:{direction:"rtl"}},(0,rr.c)(Pn)]};var di=(0,_r.Z)("Cascader",Pn=>[gi(Pn)],Pn=>{const Si=Math.round((Pn.controlHeight-Pn.fontSize*Pn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Pn.controlItemBgActive,optionSelectedFontWeight:Pn.fontWeightStrong,optionPadding:`${Si}px ${Pn.paddingSM}px`,menuPadding:Pn.paddingXXS}}),xi=function(Pn,Si){var Wi={};for(var qi in Pn)Object.prototype.hasOwnProperty.call(Pn,qi)&&Si.indexOf(qi)<0&&(Wi[qi]=Pn[qi]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,qi=Object.getOwnPropertySymbols(Pn);$nQe===0?[$t]:[].concat((0,le.Z)(Zt),[Si,$t]),[]),$n=[];let qn=0;return qi.forEach((Zt,$t)=>{const Qe=qn+Zt.length;let on=Pn.slice(qn,Qe);qn=Qe,$t%2===1&&(on=ke.createElement("span",{className:`${Wi}-menu-item-keyword`,key:`separator-${$t}`},on)),$n.push(on)}),$n}const Sr=(Pn,Si,Wi,qi)=>{const $n=[],qn=Pn.toLowerCase();return Si.forEach((Zt,$t)=>{$t!==0&&$n.push(" / ");let Qe=Zt[qi.label];const on=typeof Qe;(on==="string"||on==="number")&&(Qe=Kr(String(Qe),qn,Wi)),$n.push(Qe)}),$n},Ne=ke.forwardRef((Pn,Si)=>{const{prefixCls:Wi,size:qi,disabled:$n,className:qn,rootClassName:Zt,multiple:$t,bordered:Qe=!0,transitionName:on,choiceTransitionName:cn="",popupClassName:At,dropdownClassName:ht,expandIcon:en,placement:fn,showSearch:Rn,allowClear:Qn=!0,notFoundContent:Et,direction:wn,getPopupContainer:Kn,status:Ei,showArrow:tn,builtinPlacements:sn,style:In}=Pn,Oi=xi(Pn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Di=(0,Bt.Z)(Oi,["suffixIcon"]),{getPopupContainer:vi,getPrefixCls:Ti,renderEmpty:Li,direction:sr,popupOverflow:Zr,cascader:Vr}=ke.useContext(an.E_),Tn=wn||sr,Po=Tn==="rtl",{status:Xr,hasFeedback:Cr,isFormItemInput:Cn,feedbackIcon:ri}=ke.useContext(mn.aM),Yi=(0,Sn.F)(Xr,Ei),yr=Et||(Li==null?void 0:Li("Cascader"))||ke.createElement(rn.Z,{componentName:"Cascader"}),er=Ti(),Fr=Ti("select",Wi),Ur=Ti("cascader",Wi),[zr,Tr]=(0,ei.Z)(Fr),[Yr]=di(Ur),{compactSize:Un,compactItemClassnames:Ho}=(0,wi.ri)(Fr,wn),Yn=Me()(At||ht,`${Ur}-dropdown`,{[`${Ur}-dropdown-rtl`]:Tn==="rtl"},Zt,Tr),Ao=ke.useMemo(()=>{if(!Rn)return Rn;let Ga={render:Sr};return typeof Rn=="object"&&(Ga=Object.assign(Object.assign({},Ga),Rn)),Ga},[Rn]),Qo=(0,kn.Z)(Ga=>{var Lo;return(Lo=qi!=null?qi:Un)!==null&&Lo!==void 0?Lo:Ga}),nr=ke.useContext(zn.Z),qo=$n!=null?$n:nr;let Go=en;en||(Go=Po?ke.createElement(We.Z,null):ke.createElement(Ge.Z,null));const Lr=ke.createElement("span",{className:`${Fr}-menu-item-loading-icon`},ke.createElement(ut.Z,{spin:!0})),br=ke.useMemo(()=>$t?ke.createElement("span",{className:`${Ur}-checkbox-inner`}):!1,[$t]),mo=(0,Hn.Z)(Pn.suffixIcon,tn),{suffixIcon:Yo,removeIcon:Ki,clearIcon:st}=(0,bn.Z)(Object.assign(Object.assign({},Pn),{hasFeedback:Cr,feedbackIcon:ri,showSuffixIcon:mo,multiple:$t,prefixCls:Fr,componentName:"Cascader"})),sa=ke.useMemo(()=>fn!==void 0?fn:Po?"bottomRight":"bottomLeft",[fn,Po]),va=(0,Pi.Z)(sn,Zr),Ma=Qn===!0?{clearIcon:st}:Qn,hs=ke.createElement(Lt,Object.assign({prefixCls:Fr,className:Me()(!Wi&&Ur,{[`${Fr}-lg`]:Qo==="large",[`${Fr}-sm`]:Qo==="small",[`${Fr}-rtl`]:Po,[`${Fr}-borderless`]:!Qe,[`${Fr}-in-form-item`]:Cn},(0,Sn.Z)(Fr,Yi,Cr),Ho,Vr==null?void 0:Vr.className,qn,Zt,Tr),disabled:qo,style:Object.assign(Object.assign({},Vr==null?void 0:Vr.style),In)},Di,{builtinPlacements:va,direction:Tn,placement:sa,notFoundContent:yr,allowClear:Ma,showSearch:Ao,expandIcon:Go,suffixIcon:Yo,removeIcon:Ki,loadingIcon:Lr,checkable:br,dropdownClassName:Yn,dropdownPrefixCls:Wi||Ur,choiceTransitionName:(0,ft.m)(er,"",cn),transitionName:(0,ft.m)(er,"slide-up",on),getPopupContainer:Kn||vi,ref:Si}));return Yr(zr(hs))}),Ci=(0,Gt.Z)(Ne);Ne.SHOW_PARENT=Ri,Ne.SHOW_CHILD=$i,Ne._InternalPanelDoNotUseOrYouWillBeFired=Ci;var wr=Ne},24905:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return ze}});var le=pe(92310),ke=pe.n(le),We=pe(5630),ut=pe(59301),Ge=pe(36355),Ue=pe(1684),Me=pe(32441),wt=ut.createContext(null),$e=pe(98447),Ft=pe(14088),lt=pe(4572),vt=function(je,Xe){var Ye={};for(var dt in je)Object.prototype.hasOwnProperty.call(je,dt)&&Xe.indexOf(dt)<0&&(Ye[dt]=je[dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,dt=Object.getOwnPropertySymbols(je);He{var Ye;const{prefixCls:dt,className:He,rootClassName:Nt,children:ot,indeterminate:Tt=!1,style:xt,onMouseEnter:Ot,onMouseLeave:Wt,skipGroup:Dt=!1,disabled:tt}=je,Ve=vt(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_t,direction:vn,checkbox:yn}=ut.useContext(Ge.E_),zt=ut.useContext(wt),{isFormItemInput:qt}=ut.useContext(Me.aM),ln=ut.useContext(Ue.Z),Gn=(Ye=(zt==null?void 0:zt.disabled)||tt)!==null&&Ye!==void 0?Ye:ln,un=ut.useRef(Ve.value);ut.useEffect(()=>{zt==null||zt.registerValue(Ve.value)},[]),ut.useEffect(()=>{if(!Dt)return Ve.value!==un.current&&(zt==null||zt.cancelValue(un.current),zt==null||zt.registerValue(Ve.value),un.current=Ve.value),()=>zt==null?void 0:zt.cancelValue(Ve.value)},[Ve.value]);const _n=_t("checkbox",dt),[St,Zn]=(0,$e.ZP)(_n),ci=Object.assign({},Ve);zt&&!Dt&&(ci.onChange=function(){Ve.onChange&&Ve.onChange.apply(Ve,arguments),zt.toggleOption&&zt.toggleOption({label:ot,value:Ve.value})},ci.name=zt.name,ci.checked=zt.value.includes(Ve.value));const Ze=ke()(`${_n}-wrapper`,{[`${_n}-rtl`]:vn==="rtl",[`${_n}-wrapper-checked`]:ci.checked,[`${_n}-wrapper-disabled`]:Gn,[`${_n}-wrapper-in-form-item`]:qt},yn==null?void 0:yn.className,He,Nt,Zn),be=ke()({[`${_n}-indeterminate`]:Tt},lt.A,Zn),Pe=Tt?"mixed":void 0;return St(ut.createElement(Ft.Z,{component:"Checkbox",disabled:Gn},ut.createElement("label",{className:Ze,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),xt),onMouseEnter:Ot,onMouseLeave:Wt},ut.createElement(We.Z,Object.assign({"aria-checked":Pe},ci,{prefixCls:_n,className:be,disabled:Gn,ref:Xe})),ot!==void 0&&ut.createElement("span",null,ot))))};var ee=ut.forwardRef(Ie),de=pe(19127),se=pe(2738),he=function(je,Xe){var Ye={};for(var dt in je)Object.prototype.hasOwnProperty.call(je,dt)&&Xe.indexOf(dt)<0&&(Ye[dt]=je[dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,dt=Object.getOwnPropertySymbols(je);He{const{defaultValue:Ye,children:dt,options:He=[],prefixCls:Nt,className:ot,rootClassName:Tt,style:xt,onChange:Ot}=je,Wt=he(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Dt,direction:tt}=ut.useContext(Ge.E_),[Ve,_t]=ut.useState(Wt.value||Ye||[]),[vn,yn]=ut.useState([]);ut.useEffect(()=>{"value"in Wt&&_t(Wt.value||[])},[Wt.value]);const zt=ut.useMemo(()=>He.map(Ae=>typeof Ae=="string"||typeof Ae=="number"?{label:Ae,value:Ae}:Ae),[He]),qt=Ae=>{yn(Oe=>Oe.filter(xe=>xe!==Ae))},ln=Ae=>{yn(Oe=>[].concat((0,de.Z)(Oe),[Ae]))},Gn=Ae=>{const Oe=Ve.indexOf(Ae.value),xe=(0,de.Z)(Ve);Oe===-1?xe.push(Ae.value):xe.splice(Oe,1),"value"in Wt||_t(xe),Ot==null||Ot(xe.filter(ct=>vn.includes(ct)).sort((ct,Mt)=>{const at=zt.findIndex(Lt=>Lt.value===ct),qe=zt.findIndex(Lt=>Lt.value===Mt);return at-qe}))},un=Dt("checkbox",Nt),_n=`${un}-group`,[St,Zn]=(0,$e.ZP)(un),ci=(0,se.Z)(Wt,["value","disabled"]),Ze=He.length?zt.map(Ae=>ut.createElement(ee,{prefixCls:un,key:Ae.value.toString(),disabled:"disabled"in Ae?Ae.disabled:Wt.disabled,value:Ae.value,checked:Ve.includes(Ae.value),onChange:Ae.onChange,className:`${_n}-item`,style:Ae.style,title:Ae.title},Ae.label)):dt,be={toggleOption:Gn,value:Ve,disabled:Wt.disabled,name:Wt.name,registerValue:ln,cancelValue:qt},Pe=ke()(_n,{[`${_n}-rtl`]:tt==="rtl"},ot,Tt,Zn);return St(ut.createElement("div",Object.assign({className:Pe,style:xt},ci,{ref:Xe}),ut.createElement(wt.Provider,{value:be},Ze)))},Ee=ut.forwardRef(ve);var Be=ut.memo(Ee);const Le=ee;Le.Group=Be,Le.__ANT_CHECKBOX=!0;var ze=Le},98447:function(On,pn,pe){"use strict";pe.d(pn,{C2:function(){return Ge}});var le=pe(17313),ke=pe(37613),We=pe(83116);const ut=Ue=>{const{checkboxCls:Me}=Ue,Ct=`${Me}-wrapper`;return[{[`${Me}-group`]:Object.assign(Object.assign({},(0,le.Wf)(Ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ue.marginXS,[`> ${Ue.antCls}-row`]:{flex:1}}),[Ct]:Object.assign(Object.assign({},(0,le.Wf)(Ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ct}`]:{marginInlineStart:0},[`&${Ct}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Me]:Object.assign(Object.assign({},(0,le.Wf)(Ue)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ue.borderRadiusSM,alignSelf:"center",[`${Me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Me}-inner`]:Object.assign({},(0,le.oN)(Ue))},[`${Me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ue.checkboxSize,height:Ue.checkboxSize,direction:"ltr",backgroundColor:Ue.colorBgContainer,border:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`,borderRadius:Ue.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ue.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ue.checkboxSize/14*5,height:Ue.checkboxSize/14*8,border:`${Ue.lineWidthBold}px solid ${Ue.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ue.motionDurationFast} ${Ue.motionEaseInBack}, opacity ${Ue.motionDurationFast}`}},"& + span":{paddingInlineStart:Ue.paddingXS,paddingInlineEnd:Ue.paddingXS}})},{[` ${Ct}:not(${Ct}-disabled), ${Me}:not(${Me}-disabled) `]:{[`&:hover ${Me}-inner`]:{borderColor:Ue.colorPrimary}},[`${Ct}:not(${Ct}-disabled)`]:{[`&:hover ${Me}-checked:not(${Me}-disabled) ${Me}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Me}-checked:not(${Me}-disabled):after`]:{borderColor:Ue.colorPrimaryHover}}},{[`${Me}-checked`]:{[`${Me}-inner`]:{backgroundColor:Ue.colorPrimary,borderColor:Ue.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ue.motionDurationMid} ${Ue.motionEaseOutBack} ${Ue.motionDurationFast}`}}},[` ${Ct}-checked:not(${Ct}-disabled), ${Me}-checked:not(${Me}-disabled) `]:{[`&:hover ${Me}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"}}},{[Me]:{"&-indeterminate":{[`${Me}-inner`]:{backgroundColor:Ue.colorBgContainer,borderColor:Ue.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ue.fontSizeLG/2,height:Ue.fontSizeLG/2,backgroundColor:Ue.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ct}-disabled`]:{cursor:"not-allowed"},[`${Me}-disabled`]:{[`&, ${Me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Me}-inner`]:{background:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,"&:after":{borderColor:Ue.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ue.colorTextDisabled},[`&${Me}-indeterminate ${Me}-inner::after`]:{background:Ue.colorTextDisabled}}}]};function Ge(Ue,Me){const Ct=(0,ke.TS)(Me,{checkboxCls:`.${Ue}`,checkboxSize:Me.controlInteractiveSize});return[ut(Ct)]}pn.ZP=(0,We.Z)("Checkbox",(Ue,Me)=>{let{prefixCls:Ct}=Me;return[Ge(Ct,Ue)]})},36381:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return ci}});var le=pe(38819),ke=pe(92310),We=pe.n(ke),ut=pe(96663),Ge=pe(19127),Ue=pe(72071),Me=pe(20135),Ct=pe(18929),wt=pe(48736),$e=pe(59301),Ft=pe(6620),lt=pe(11592),vt=pe(90493),Ie=pe(77900),te=pe(10228),ee=$e.forwardRef(function(Ze,be){var Pe=Ze.prefixCls,Ae=Ze.forceRender,Oe=Ze.className,xe=Ze.style,ct=Ze.children,Mt=Ze.isActive,at=Ze.role,qe=$e.useState(Mt||Ae),Lt=(0,Ue.Z)(qe,2),Bt=Lt[0],ft=Lt[1];return $e.useEffect(function(){(Ae||Mt)&&ft(!0)},[Ae,Mt]),Bt?$e.createElement("div",{ref:be,className:We()("".concat(Pe,"-content"),(0,vt.Z)((0,vt.Z)({},"".concat(Pe,"-content-active"),Mt),"".concat(Pe,"-content-inactive"),!Mt),Oe),style:xe,role:at},$e.createElement("div",{className:"".concat(Pe,"-content-box")},ct)):null});ee.displayName="PanelContent";var de=ee,se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],he=$e.forwardRef(function(Ze,be){var Pe=Ze.showArrow,Ae=Pe===void 0?!0:Pe,Oe=Ze.headerClass,xe=Ze.isActive,ct=Ze.onItemClick,Mt=Ze.forceRender,at=Ze.className,qe=Ze.prefixCls,Lt=Ze.collapsible,Bt=Ze.accordion,ft=Ze.panelKey,Gt=Ze.extra,Sn=Ze.header,an=Ze.expandIcon,rn=Ze.openMotion,zn=Ze.destroyInactivePanel,kn=Ze.children,mn=(0,Ft.Z)(Ze,se),ei=Lt==="disabled",Pi=Lt==="header",Hn=Lt==="icon",bn=Gt!=null&&typeof Gt!="boolean",wi=function(){ct==null||ct(ft)},Zi=function(xi){(xi.key==="Enter"||xi.keyCode===te.Z.ENTER||xi.which===te.Z.ENTER)&&wi()},Hi=typeof an=="function"?an(Ze):$e.createElement("i",{className:"arrow"});Hi&&(Hi=$e.createElement("div",{className:"".concat(qe,"-expand-icon"),onClick:["header","icon"].includes(Lt)?wi:void 0},Hi));var rr=We()((0,vt.Z)((0,vt.Z)((0,vt.Z)({},"".concat(qe,"-item"),!0),"".concat(qe,"-item-active"),xe),"".concat(qe,"-item-disabled"),ei),at),_r=We()(Oe,(0,vt.Z)((0,vt.Z)((0,vt.Z)({},"".concat(qe,"-header"),!0),"".concat(qe,"-header-collapsible-only"),Pi),"".concat(qe,"-icon-collapsible-only"),Hn)),gi={className:_r,"aria-expanded":xe,"aria-disabled":ei,onKeyDown:Zi};return!Pi&&!Hn&&(gi.onClick=wi,gi.role=Bt?"tab":"button",gi.tabIndex=ei?-1:0),$e.createElement("div",(0,ut.Z)({},mn,{ref:be,className:rr}),$e.createElement("div",gi,Ae&&Hi,$e.createElement("span",{className:"".concat(qe,"-header-text"),onClick:Lt==="header"?wi:void 0},Sn),bn&&$e.createElement("div",{className:"".concat(qe,"-extra")},Gt)),$e.createElement(Ie.default,(0,ut.Z)({visible:xe,leavedClassName:"".concat(qe,"-content-hidden")},rn,{forceRender:Mt,removeOnLeave:zn}),function(di,xi){var $i=di.className,Ri=di.style;return $e.createElement(de,{ref:xi,prefixCls:qe,className:$i,style:Ri,isActive:xe,forceRender:Mt,role:Bt?"tabpanel":void 0},kn)}))}),ve=he,Ee=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Be=function(be,Pe){var Ae=Pe.prefixCls,Oe=Pe.accordion,xe=Pe.collapsible,ct=Pe.destroyInactivePanel,Mt=Pe.onItemClick,at=Pe.activeKey,qe=Pe.openMotion,Lt=Pe.expandIcon;return be.map(function(Bt,ft){var Gt=Bt.children,Sn=Bt.label,an=Bt.key,rn=Bt.collapsible,zn=Bt.onItemClick,kn=Bt.destroyInactivePanel,mn=(0,Ft.Z)(Bt,Ee),ei=String(an!=null?an:ft),Pi=rn!=null?rn:xe,Hn=kn!=null?kn:ct,bn=function(Hi){Pi!=="disabled"&&(Mt(Hi),zn==null||zn(Hi))},wi=!1;return Oe?wi=at[0]===ei:wi=at.indexOf(ei)>-1,$e.createElement(ve,(0,ut.Z)({},mn,{prefixCls:Ae,key:ei,panelKey:ei,isActive:wi,accordion:Oe,openMotion:qe,expandIcon:Lt,header:Sn,collapsible:Pi,onItemClick:bn,destroyInactivePanel:Hn}),Gt)})},Le=function(be,Pe,Ae){if(!be)return null;var Oe=Ae.prefixCls,xe=Ae.accordion,ct=Ae.collapsible,Mt=Ae.destroyInactivePanel,at=Ae.onItemClick,qe=Ae.activeKey,Lt=Ae.openMotion,Bt=Ae.expandIcon,ft=be.key||String(Pe),Gt=be.props,Sn=Gt.header,an=Gt.headerClass,rn=Gt.destroyInactivePanel,zn=Gt.collapsible,kn=Gt.onItemClick,mn=!1;xe?mn=qe[0]===ft:mn=qe.indexOf(ft)>-1;var ei=zn!=null?zn:ct,Pi=function(wi){ei!=="disabled"&&(at(wi),kn==null||kn(wi))},Hn={key:ft,panelKey:ft,header:Sn,headerClass:an,isActive:mn,prefixCls:Oe,destroyInactivePanel:rn!=null?rn:Mt,openMotion:Lt,accordion:xe,children:be.props.children,onItemClick:Pi,expandIcon:Bt,collapsible:ei};return typeof be.type=="string"?be:(Object.keys(Hn).forEach(function(bn){typeof Hn[bn]=="undefined"&&delete Hn[bn]}),$e.cloneElement(be,Hn))};function ze(Ze,be,Pe){return Array.isArray(Ze)?Be(Ze,Pe):(0,lt.Z)(be).map(function(Ae,Oe){return Le(Ae,Oe,Pe)})}var je=ze,Xe=pe(26112);function Ye(Ze){var be=Ze;if(!Array.isArray(be)){var Pe=(0,Me.Z)(be);be=Pe==="number"||Pe==="string"?[be]:[]}return be.map(function(Ae){return String(Ae)})}var dt=$e.forwardRef(function(Ze,be){var Pe=Ze.prefixCls,Ae=Pe===void 0?"rc-collapse":Pe,Oe=Ze.destroyInactivePanel,xe=Oe===void 0?!1:Oe,ct=Ze.style,Mt=Ze.accordion,at=Ze.className,qe=Ze.children,Lt=Ze.collapsible,Bt=Ze.openMotion,ft=Ze.expandIcon,Gt=Ze.activeKey,Sn=Ze.defaultActiveKey,an=Ze.onChange,rn=Ze.items,zn=We()(Ae,at),kn=(0,Ct.Z)([],{value:Gt,onChange:function(Zi){return an==null?void 0:an(Zi)},defaultValue:Sn,postState:Ye}),mn=(0,Ue.Z)(kn,2),ei=mn[0],Pi=mn[1],Hn=function(Zi){return Pi(function(){if(Mt)return ei[0]===Zi?[]:[Zi];var Hi=ei.indexOf(Zi),rr=Hi>-1;return rr?ei.filter(function(_r){return _r!==Zi}):[].concat((0,Ge.Z)(ei),[Zi])})};(0,wt.ZP)(!qe,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var bn=je(rn,qe,{prefixCls:Ae,accordion:Mt,openMotion:Bt,expandIcon:ft,collapsible:Lt,destroyInactivePanel:xe,onItemClick:Hn,activeKey:ei});return $e.createElement("div",(0,ut.Z)({ref:be,className:zn,style:ct,role:Mt?"tablist":void 0},(0,Xe.Z)(Ze,{aria:!0,data:!0})),bn)}),He=Object.assign(dt,{Panel:ve}),Nt=He,ot=He.Panel,Tt=pe(2738),xt=pe(62892),Ot=pe(92343),Wt=pe(36355),Dt=pe(19716),Ve=$e.forwardRef((Ze,be)=>{const{getPrefixCls:Pe}=$e.useContext(Wt.E_),{prefixCls:Ae,className:Oe,showArrow:xe=!0}=Ze,ct=Pe("collapse",Ae),Mt=We()({[`${ct}-no-arrow`]:!xe},Oe);return $e.createElement(Nt.Panel,Object.assign({ref:be},Ze,{prefixCls:ct,className:Mt}))}),_t=pe(17313),vn=pe(8378),yn=pe(83116),zt=pe(37613);const qt=Ze=>{const{componentCls:be,contentBg:Pe,padding:Ae,headerBg:Oe,headerPadding:xe,collapseHeaderPaddingSM:ct,collapseHeaderPaddingLG:Mt,collapsePanelBorderRadius:at,lineWidth:qe,lineType:Lt,colorBorder:Bt,colorText:ft,colorTextHeading:Gt,colorTextDisabled:Sn,fontSize:an,fontSizeLG:rn,lineHeight:zn,marginSM:kn,paddingSM:mn,paddingLG:ei,paddingXS:Pi,motionDurationSlow:Hn,fontSizeIcon:bn,contentPadding:wi}=Ze,Zi=`${qe}px ${Lt} ${Bt}`;return{[be]:Object.assign(Object.assign({},(0,_t.Wf)(Ze)),{backgroundColor:Oe,border:Zi,borderBottom:0,borderRadius:`${at}px`,"&-rtl":{direction:"rtl"},[`& > ${be}-item`]:{borderBottom:Zi,"&:last-child":{[` &, & > ${be}-header`]:{borderRadius:`0 0 ${at}px ${at}px`}},[`> ${be}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:xe,color:Gt,lineHeight:zn,cursor:"pointer",transition:`all ${Hn}, visibility 0s`,[`> ${be}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${be}-expand-icon`]:{height:an*zn,display:"flex",alignItems:"center",paddingInlineEnd:kn},[`${be}-arrow`]:Object.assign(Object.assign({},(0,_t.Ro)()),{fontSize:bn,svg:{transition:`transform ${Hn}`}}),[`${be}-header-text`]:{marginInlineEnd:"auto"}},[`${be}-header-collapsible-only`]:{cursor:"default",[`${be}-header-text`]:{flex:"none",cursor:"pointer"}},[`${be}-icon-collapsible-only`]:{cursor:"default",[`${be}-expand-icon`]:{cursor:"pointer"}}},[`${be}-content`]:{color:ft,backgroundColor:Pe,borderTop:Zi,[`& > ${be}-content-box`]:{padding:wi},"&-hidden":{display:"none"}},"&-small":{[`> ${be}-item`]:{[`> ${be}-header`]:{padding:ct,paddingInlineStart:Pi,[`> ${be}-expand-icon`]:{marginInlineStart:mn-Pi}},[`> ${be}-content > ${be}-content-box`]:{padding:mn}}},"&-large":{[`> ${be}-item`]:{fontSize:rn,[`> ${be}-header`]:{padding:Mt,paddingInlineStart:Ae,[`> ${be}-expand-icon`]:{height:rn*zn,marginInlineStart:ei-Ae}},[`> ${be}-content > ${be}-content-box`]:{padding:ei}}},[`${be}-item:last-child`]:{[`> ${be}-content`]:{borderRadius:`0 0 ${at}px ${at}px`}},[`& ${be}-item-disabled > ${be}-header`]:{"\n &,\n & > .arrow\n ":{color:Sn,cursor:"not-allowed"}},[`&${be}-icon-position-end`]:{[`& > ${be}-item`]:{[`> ${be}-header`]:{[`${be}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:kn}}}}})}},ln=Ze=>{const{componentCls:be}=Ze,Pe=`> ${be}-item > ${be}-header ${be}-arrow svg`;return{[`${be}-rtl`]:{[Pe]:{transform:"rotate(180deg)"}}}},Gn=Ze=>{const{componentCls:be,headerBg:Pe,paddingXXS:Ae,colorBorder:Oe}=Ze;return{[`${be}-borderless`]:{backgroundColor:Pe,border:0,[`> ${be}-item`]:{borderBottom:`1px solid ${Oe}`},[` > ${be}-item:last-child, > ${be}-item:last-child ${be}-header `]:{borderRadius:0},[`> ${be}-item:last-child`]:{borderBottom:0},[`> ${be}-item > ${be}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${be}-item > ${be}-content > ${be}-content-box`]:{paddingTop:Ae}}}},un=Ze=>{const{componentCls:be,paddingSM:Pe}=Ze;return{[`${be}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${be}-item`]:{borderBottom:0,[`> ${be}-content`]:{backgroundColor:"transparent",border:0,[`> ${be}-content-box`]:{paddingBlock:Pe}}}}}};var _n=(0,yn.Z)("Collapse",Ze=>{const be=(0,zt.TS)(Ze,{collapseHeaderPaddingSM:`${Ze.paddingXS}px ${Ze.paddingSM}px`,collapseHeaderPaddingLG:`${Ze.padding}px ${Ze.paddingLG}px`,collapsePanelBorderRadius:Ze.borderRadiusLG});return[qt(be),Gn(be),un(be),ln(be),(0,vn.Z)(be)]},Ze=>({headerPadding:`${Ze.paddingSM}px ${Ze.padding}px`,headerBg:Ze.colorFillAlter,contentPadding:`${Ze.padding}px 16px`,contentBg:Ze.colorBgContainer})),Zn=Object.assign($e.forwardRef((Ze,be)=>{const{getPrefixCls:Pe,direction:Ae,collapse:Oe}=$e.useContext(Wt.E_),{prefixCls:xe,className:ct,rootClassName:Mt,style:at,bordered:qe=!0,ghost:Lt,size:Bt,expandIconPosition:ft="start",children:Gt,expandIcon:Sn}=Ze,an=(0,Dt.Z)(Zi=>{var Hi;return(Hi=Bt!=null?Bt:Zi)!==null&&Hi!==void 0?Hi:"middle"}),rn=Pe("collapse",xe),zn=Pe(),[kn,mn]=_n(rn),ei=$e.useMemo(()=>ft==="left"?"start":ft==="right"?"end":ft,[ft]),Pi=function(){let Zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Hi=Sn?Sn(Zi):$e.createElement(le.Z,{rotate:Zi.isActive?90:void 0});return(0,Ot.Tm)(Hi,()=>({className:We()(Hi.props.className,`${rn}-arrow`)}))},Hn=We()(`${rn}-icon-position-${ei}`,{[`${rn}-borderless`]:!qe,[`${rn}-rtl`]:Ae==="rtl",[`${rn}-ghost`]:!!Lt,[`${rn}-${an}`]:an!=="middle"},Oe==null?void 0:Oe.className,ct,Mt,mn),bn=Object.assign(Object.assign({},(0,xt.Z)(zn)),{motionAppear:!1,leavedClassName:`${rn}-content-hidden`}),wi=$e.useMemo(()=>Gt?(0,lt.Z)(Gt).map((Zi,Hi)=>{var rr,_r;if(!((rr=Zi.props)===null||rr===void 0)&&rr.disabled){const gi=(_r=Zi.key)!==null&&_r!==void 0?_r:String(Hi),{disabled:di,collapsible:xi}=Zi.props,$i=Object.assign(Object.assign({},(0,Tt.Z)(Zi.props,["disabled"])),{key:gi,collapsible:xi!=null?xi:di?"disabled":void 0});return(0,Ot.Tm)(Zi,$i)}return Zi}):null,[Gt]);return kn($e.createElement(Nt,Object.assign({ref:be,openMotion:bn},(0,Tt.Z)(Ze,["rootClassName"]),{expandIcon:Pi,prefixCls:rn,className:Hn,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),at)}),wi))}),{Panel:Ve}),ci=Zn},93891:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(36355),We=pe(64165);const ut=Ge=>{const{componentName:Ue}=Ge,{getPrefixCls:Me}=(0,le.useContext)(ke.E_),Ct=Me("empty");switch(Ue){case"Table":case"List":return le.createElement(We.Z,{image:We.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(We.Z,{image:We.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ct}-small`});default:return le.createElement(We.Z,null)}};pn.Z=ut},28103:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return lt}});var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(36355),Ge=pe(17313),Ue=pe(83116),Me=pe(37613);const Ct=vt=>{const{componentCls:Ie,sizePaddingEdgeHorizontal:te,colorSplit:ee,lineWidth:de,textPaddingInline:se,orientationMargin:he,verticalMarginInline:ve}=vt;return{[Ie]:Object.assign(Object.assign({},(0,Ge.Wf)(vt)),{borderBlockStart:`${de}px solid ${ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ve,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${de}px solid ${ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${vt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ie}-with-text`]:{display:"flex",alignItems:"center",margin:`${vt.dividerHorizontalWithTextGutterMargin}px 0`,color:vt.colorTextHeading,fontWeight:500,fontSize:vt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${de}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ie}-with-text-left`]:{"&::before":{width:`${he*100}%`},"&::after":{width:`${100-he*100}%`}},[`&-horizontal${Ie}-with-text-right`]:{"&::before":{width:`${100-he*100}%`},"&::after":{width:`${he*100}%`}},[`${Ie}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ee,borderStyle:"dashed",borderWidth:`${de}px 0 0`},[`&-horizontal${Ie}-with-text${Ie}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ie}-dashed`]:{borderInlineStartWidth:de,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ie}-with-text`]:{color:vt.colorText,fontWeight:"normal",fontSize:vt.fontSize},[`&-horizontal${Ie}-with-text-left${Ie}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ie}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Ie}-with-text-right${Ie}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ie}-inner-text`]:{paddingInlineEnd:te}}})}};var wt=(0,Ue.Z)("Divider",vt=>{const Ie=(0,Me.TS)(vt,{dividerHorizontalWithTextGutterMargin:vt.margin,dividerHorizontalGutterMargin:vt.marginLG,sizePaddingEdgeHorizontal:0});return[Ct(Ie)]},vt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:vt.marginXS})),$e=function(vt,Ie){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&Ie.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ee=Object.getOwnPropertySymbols(vt);de{const{getPrefixCls:Ie,direction:te,divider:ee}=We.useContext(ut.E_),{prefixCls:de,type:se="horizontal",orientation:he="center",orientationMargin:ve,className:Ee,rootClassName:Be,children:Le,dashed:ze,plain:je,style:Xe}=vt,Ye=$e(vt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),dt=Ie("divider",de),[He,Nt]=wt(dt),ot=he.length>0?`-${he}`:he,Tt=!!Le,xt=he==="left"&&ve!=null,Ot=he==="right"&&ve!=null,Wt=ke()(dt,ee==null?void 0:ee.className,Nt,`${dt}-${se}`,{[`${dt}-with-text`]:Tt,[`${dt}-with-text${ot}`]:Tt,[`${dt}-dashed`]:!!ze,[`${dt}-plain`]:!!je,[`${dt}-rtl`]:te==="rtl",[`${dt}-no-default-orientation-margin-left`]:xt,[`${dt}-no-default-orientation-margin-right`]:Ot},Ee,Be),Dt=We.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),tt=Object.assign(Object.assign({},xt&&{marginLeft:Dt}),Ot&&{marginRight:Dt});return He(We.createElement("div",Object.assign({className:Wt,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),Xe)},Ye,{role:"separator"}),Le&&se!=="vertical"&&We.createElement("span",{className:`${dt}-inner-text`,style:tt},Le)))}},91857:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(38819),We=pe(92310),ut=pe.n(We),Ge=pe(31561),Ue=pe(70425),Me=pe(18929),Ct=pe(2738),wt=pe(79676),$e=pe(53487),Ft=pe(92343),lt=pe(36355),vt=pe(20834),Ie=pe(40875),te=pe(88088),ee=pe(47211);const de=null,se=Be=>{const{menu:Le,arrow:ze,prefixCls:je,children:Xe,trigger:Ye,disabled:dt,dropdownRender:He,getPopupContainer:Nt,overlayClassName:ot,rootClassName:Tt,open:xt,onOpenChange:Ot,visible:Wt,onVisibleChange:Dt,mouseEnterDelay:tt=.15,mouseLeaveDelay:Ve=.1,autoAdjustOverflow:_t=!0,placement:vn="",overlay:yn,transitionName:zt}=Be,{getPopupContainer:qt,getPrefixCls:ln,direction:Gn}=le.useContext(lt.E_),un=le.useMemo(()=>{const ft=ln();return zt!==void 0?zt:vn.includes("top")?`${ft}-slide-down`:`${ft}-slide-up`},[ln,vn,zt]),_n=le.useMemo(()=>vn?vn.includes("Center")?vn.slice(0,vn.indexOf("Center")):vn:Gn==="rtl"?"bottomRight":"bottomLeft",[vn,Gn]),St=ln("dropdown",je),[Zn,ci]=(0,ee.Z)(St),[,Ze]=(0,te.Z)(),be=le.Children.only(Xe),Pe=(0,Ft.Tm)(be,{className:ut()(`${St}-trigger`,{[`${St}-rtl`]:Gn==="rtl"},be.props.className),disabled:dt}),Ae=dt?[]:Ye;let Oe;Ae&&Ae.includes("contextMenu")&&(Oe=!0);const[xe,ct]=(0,Me.Z)(!1,{value:xt!=null?xt:Wt}),Mt=(0,Ue.useEvent)(ft=>{Ot==null||Ot(ft),Dt==null||Dt(ft),ct(ft)}),at=ut()(ot,Tt,ci,{[`${St}-rtl`]:Gn==="rtl"}),qe=(0,wt.Z)({arrowPointAtCenter:typeof ze=="object"&&ze.pointAtCenter,autoAdjustOverflow:_t,offset:Ze.marginXXS,arrowWidth:ze?Ze.sizePopupArrow:0,borderRadius:Ze.borderRadius}),Lt=le.useCallback(()=>{ct(!1)},[]),Bt=()=>{let ft;return Le!=null&&Le.items?ft=le.createElement(vt.default,Object.assign({},Le)):typeof yn=="function"?ft=yn():ft=yn,He&&(ft=He(ft)),ft=le.Children.only(typeof ft=="string"?le.createElement("span",null,ft):ft),le.createElement(Ie.J,{prefixCls:`${St}-menu`,expandIcon:le.createElement("span",{className:`${St}-menu-submenu-arrow`},le.createElement(ke.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Lt,validator:Gt=>{let{mode:Sn}=Gt}},ft)};return Zn(le.createElement(Ge.Z,Object.assign({alignPoint:Oe},(0,Ct.Z)(Be,["rootClassName"]),{mouseEnterDelay:tt,mouseLeaveDelay:Ve,visible:xe,builtinPlacements:qe,arrow:!!ze,overlayClassName:at,prefixCls:St,getPopupContainer:Nt||qt,transitionName:un,trigger:Ae,overlay:Bt,placement:_n,onVisibleChange:Mt}),Pe))};function he(Be){return Object.assign(Object.assign({},Be),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,$e.Z)(se,"dropdown",Be=>Be,he),Ee=Be=>le.createElement(ve,Object.assign({},Be),le.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ee,pn.Z=se},38854:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return te}});var le=pe(91857),ke=pe(92310),We=pe.n(ke),ut=pe(59301),Ge=pe(18785),Ue=pe(3113),Me=pe(36355),Ct=pe(81327),wt=pe(33234),$e=pe(47211),Ft=function(ee,de){var se={};for(var he in ee)Object.prototype.hasOwnProperty.call(ee,he)&&de.indexOf(he)<0&&(se[he]=ee[he]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(ee);ve{const{getPopupContainer:de,getPrefixCls:se,direction:he}=ut.useContext(Me.E_),{prefixCls:ve,type:Ee="default",danger:Be,disabled:Le,loading:ze,onClick:je,htmlType:Xe,children:Ye,className:dt,menu:He,arrow:Nt,autoFocus:ot,overlay:Tt,trigger:xt,align:Ot,open:Wt,onOpenChange:Dt,placement:tt,getPopupContainer:Ve,href:_t,icon:vn=ut.createElement(Ge.Z,null),title:yn,buttonsRender:zt=Bt=>Bt,mouseEnterDelay:qt,mouseLeaveDelay:ln,overlayClassName:Gn,overlayStyle:un,destroyPopupOnHide:_n,dropdownRender:St}=ee,Zn=Ft(ee,["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"]),ci=se("dropdown",ve),Ze=`${ci}-button`,[be,Pe]=(0,$e.Z)(ci),Ae={menu:He,arrow:Nt,autoFocus:ot,align:Ot,disabled:Le,trigger:Le?[]:xt,onOpenChange:Dt,getPopupContainer:Ve||de,mouseEnterDelay:qt,mouseLeaveDelay:ln,overlayClassName:Gn,overlayStyle:un,destroyPopupOnHide:_n,dropdownRender:St},{compactSize:Oe,compactItemClassnames:xe}=(0,wt.ri)(ci,he),ct=We()(Ze,xe,dt,Pe);"overlay"in ee&&(Ae.overlay=Tt),"open"in ee&&(Ae.open=Wt),"placement"in ee?Ae.placement=tt:Ae.placement=he==="rtl"?"bottomLeft":"bottomRight";const Mt=ut.createElement(Ue.ZP,{type:Ee,danger:Be,disabled:Le,loading:ze,onClick:je,htmlType:Xe,href:_t,title:yn},Ye),at=ut.createElement(Ue.ZP,{type:Ee,danger:Be,icon:vn}),[qe,Lt]=zt([Mt,at]);return be(ut.createElement(Ct.Z.Compact,Object.assign({className:ct,size:Oe,block:!0},Zn),qe,ut.createElement(le.Z,Object.assign({},Ae),Lt)))};lt.__ANT_BUTTON=!0;var vt=lt;const Ie=le.Z;Ie.Button=vt;var te=Ie},47211:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ft}});var le=pe(17313),ke=pe(13826),We=pe(92899),ut=pe(29878),Ge=pe(19447),Ue=pe(83116),Me=pe(37613),wt=lt=>{const{componentCls:vt,menuCls:Ie,colorError:te,colorTextLightSolid:ee}=lt,de=`${Ie}-item`;return{[`${vt}, ${vt}-menu-submenu`]:{[`${Ie} ${de}`]:{[`&${de}-danger:not(${de}-disabled)`]:{color:te,"&:hover":{color:ee,backgroundColor:te}}}}}};const $e=lt=>{const{componentCls:vt,menuCls:Ie,zIndexPopup:te,dropdownArrowDistance:ee,sizePopupArrow:de,antCls:se,iconCls:he,motionDurationMid:ve,dropdownPaddingVertical:Ee,fontSize:Be,dropdownEdgeChildPadding:Le,colorTextDisabled:ze,fontSizeIcon:je,controlPaddingHorizontal:Xe,colorBgElevated:Ye}=lt;return[{[vt]:Object.assign(Object.assign({},(0,le.Wf)(lt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ee+de/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${he}-down, & > ${se}-btn-icon > ${he}-down`]:{fontSize:je}},[`${vt}-wrap`]:{position:"relative",[`${se}-btn > ${he}-down`]:{fontSize:je},[`${he}-down::before`]:{transition:`transform ${ve}`}},[`${vt}-wrap-open`]:{[`${he}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${vt}-placement-bottomLeft, &${se}-slide-down-appear${se}-slide-down-appear-active${vt}-placement-bottomLeft, &${se}-slide-down-enter${se}-slide-down-enter-active${vt}-placement-bottom, &${se}-slide-down-appear${se}-slide-down-appear-active${vt}-placement-bottom, &${se}-slide-down-enter${se}-slide-down-enter-active${vt}-placement-bottomRight, &${se}-slide-down-appear${se}-slide-down-appear-active${vt}-placement-bottomRight`]:{animationName:ke.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${vt}-placement-topLeft, &${se}-slide-up-appear${se}-slide-up-appear-active${vt}-placement-topLeft, &${se}-slide-up-enter${se}-slide-up-enter-active${vt}-placement-top, &${se}-slide-up-appear${se}-slide-up-appear-active${vt}-placement-top, &${se}-slide-up-enter${se}-slide-up-enter-active${vt}-placement-topRight, &${se}-slide-up-appear${se}-slide-up-appear-active${vt}-placement-topRight`]:{animationName:ke.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${vt}-placement-bottomLeft, &${se}-slide-down-leave${se}-slide-down-leave-active${vt}-placement-bottom, &${se}-slide-down-leave${se}-slide-down-leave-active${vt}-placement-bottomRight`]:{animationName:ke.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${vt}-placement-topLeft, &${se}-slide-up-leave${se}-slide-up-leave-active${vt}-placement-top, &${se}-slide-up-leave${se}-slide-up-leave-active${vt}-placement-topRight`]:{animationName:ke.ly}})},(0,Ge.ZP)(lt,{colorBg:Ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${vt} ${Ie}`]:{position:"relative",margin:0},[`${Ie}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${vt}, ${vt}-menu-submenu`]:{[Ie]:Object.assign(Object.assign({padding:Le,listStyleType:"none",backgroundColor:Ye,backgroundClip:"padding-box",borderRadius:lt.borderRadiusLG,outline:"none",boxShadow:lt.boxShadowSecondary},(0,le.Qy)(lt)),{[`${Ie}-item-group-title`]:{padding:`${Ee}px ${Xe}px`,color:lt.colorTextDescription,transition:`all ${ve}`},[`${Ie}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ie}-item-icon`]:{minWidth:Be,marginInlineEnd:lt.marginXS,fontSize:lt.fontSizeSM},[`${Ie}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ve}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ie}-item, ${Ie}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ee}px ${Xe}px`,color:lt.colorText,fontWeight:"normal",fontSize:Be,lineHeight:lt.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:lt.borderRadiusSM,"&:hover, &-active":{backgroundColor:lt.controlItemBgHover}},(0,le.Qy)(lt)),{"&-selected":{color:lt.colorPrimary,backgroundColor:lt.controlItemBgActive,"&:hover, &-active":{backgroundColor:lt.controlItemBgActiveHover}},"&-disabled":{color:ze,cursor:"not-allowed","&:hover":{color:ze,backgroundColor:Ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${lt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:lt.colorSplit},[`${vt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:lt.paddingXS,[`${vt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:lt.colorTextDescription,fontSize:je,fontStyle:"normal"}}}),[`${Ie}-item-group-list`]:{margin:`0 ${lt.marginXS}px`,padding:0,listStyle:"none"},[`${Ie}-submenu-title`]:{paddingInlineEnd:Xe+lt.fontSizeSM},[`${Ie}-submenu-vertical`]:{position:"relative"},[`${Ie}-submenu${Ie}-submenu-disabled ${vt}-menu-submenu-title`]:{[`&, ${vt}-menu-submenu-arrow-icon`]:{color:ze,backgroundColor:Ye,cursor:"not-allowed"}},[`${Ie}-submenu-selected ${vt}-menu-submenu-title`]:{color:lt.colorPrimary}})}},[(0,ke.oN)(lt,"slide-up"),(0,ke.oN)(lt,"slide-down"),(0,We.Fm)(lt,"move-up"),(0,We.Fm)(lt,"move-down"),(0,ut._y)(lt,"zoom-big")]]};var Ft=(0,Ue.Z)("Dropdown",(lt,vt)=>{let{rootPrefixCls:Ie}=vt;const{marginXXS:te,sizePopupArrow:ee,controlHeight:de,fontSize:se,lineHeight:he,paddingXXS:ve,componentCls:Ee,borderRadiusLG:Be}=lt,Le=(de-se*he)/2,{dropdownArrowOffset:ze}=(0,Ge.fS)({contentRadius:Be}),je=(0,Me.TS)(lt,{menuCls:`${Ee}-menu`,rootPrefixCls:Ie,dropdownArrowDistance:ee/2+te,dropdownArrowOffset:ze,dropdownPaddingVertical:Le,dropdownEdgeChildPadding:ve});return[$e(je),wt(je)]},lt=>({zIndexPopup:lt.zIndexPopupBase+50}))},64165:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ve}});var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(36355),Ge=pe(9763),Ue=pe(64993),Me=pe(88088),wt=()=>{const[,Ee]=(0,Me.Z)(),Le=new Ue.C(Ee.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return We.createElement("svg",{style:Le,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},We.createElement("g",{fill:"none",fillRule:"evenodd"},We.createElement("g",{transform:"translate(24 31.67)"},We.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),We.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"}),We.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)"}),We.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"}),We.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"})),We.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"}),We.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},We.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),We.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ft=()=>{const[,Ee]=(0,Me.Z)(),{colorFill:Be,colorFillTertiary:Le,colorFillQuaternary:ze,colorBgContainer:je}=Ee,{borderColor:Xe,shadowColor:Ye,contentColor:dt}=(0,We.useMemo)(()=>({borderColor:new Ue.C(Be).onBackground(je).toHexShortString(),shadowColor:new Ue.C(Le).onBackground(je).toHexShortString(),contentColor:new Ue.C(ze).onBackground(je).toHexShortString()}),[Be,Le,ze,je]);return We.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},We.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},We.createElement("ellipse",{fill:Ye,cx:"32",cy:"33",rx:"32",ry:"7"}),We.createElement("g",{fillRule:"nonzero",stroke:Xe},We.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"}),We.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:dt}))))},lt=pe(83116),vt=pe(37613);const Ie=Ee=>{const{componentCls:Be,margin:Le,marginXS:ze,marginXL:je,fontSize:Xe,lineHeight:Ye}=Ee;return{[Be]:{marginInline:ze,fontSize:Xe,lineHeight:Ye,textAlign:"center",[`${Be}-image`]:{height:Ee.emptyImgHeight,marginBottom:ze,opacity:Ee.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Be}-description`]:{color:Ee.colorText},[`${Be}-footer`]:{marginTop:Le},"&-normal":{marginBlock:je,color:Ee.colorTextDisabled,[`${Be}-description`]:{color:Ee.colorTextDisabled},[`${Be}-image`]:{height:Ee.emptyImgHeightMD}},"&-small":{marginBlock:ze,color:Ee.colorTextDisabled,[`${Be}-image`]:{height:Ee.emptyImgHeightSM}}}}};var te=(0,lt.Z)("Empty",Ee=>{const{componentCls:Be,controlHeightLG:Le}=Ee,ze=(0,vt.TS)(Ee,{emptyImgCls:`${Be}-img`,emptyImgHeight:Le*2.5,emptyImgHeightMD:Le,emptyImgHeightSM:Le*.875});return[Ie(ze)]}),ee=function(Ee,Be){var Le={};for(var ze in Ee)Object.prototype.hasOwnProperty.call(Ee,ze)&&Be.indexOf(ze)<0&&(Le[ze]=Ee[ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ze=Object.getOwnPropertySymbols(Ee);je{var{className:Be,rootClassName:Le,prefixCls:ze,image:je=de,description:Xe,children:Ye,imageStyle:dt,style:He}=Ee,Nt=ee(Ee,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ot,direction:Tt,empty:xt}=We.useContext(ut.E_),Ot=ot("empty",ze),[Wt,Dt]=te(Ot),[tt]=(0,Ge.Z)("Empty"),Ve=typeof Xe!="undefined"?Xe:tt==null?void 0:tt.description,_t=typeof Ve=="string"?Ve:"empty";let vn=null;return typeof je=="string"?vn=We.createElement("img",{alt:_t,src:je}):vn=je,Wt(We.createElement("div",Object.assign({className:ke()(Dt,Ot,xt==null?void 0:xt.className,{[`${Ot}-normal`]:je===se,[`${Ot}-rtl`]:Tt==="rtl"},Be,Le),style:Object.assign(Object.assign({},xt==null?void 0:xt.style),He)},Nt),We.createElement("div",{className:`${Ot}-image`,style:dt},vn),Ve&&We.createElement("div",{className:`${Ot}-description`},Ve),Ye&&We.createElement("div",{className:`${Ot}-footer`},Ye)))};he.PRESENTED_IMAGE_DEFAULT=de,he.PRESENTED_IMAGE_SIMPLE=se;var ve=he},78241:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return $t}});var le=pe(19127),ke=pe(92310),We=pe.n(ke),ut=pe(77900),Ge=pe(59301),Ue=pe(62892),Me=pe(32441);function Ct(Qe){const[on,cn]=Ge.useState(Qe);return Ge.useEffect(()=>{const At=setTimeout(()=>{cn(Qe)},Qe.length?0:10);return()=>{clearTimeout(At)}},[Qe]),on}var wt=pe(17313),$e=pe(29878),Ft=pe(8378),lt=pe(37613),vt=pe(83116),te=Qe=>{const{componentCls:on}=Qe,cn=`${on}-show-help`,At=`${on}-show-help-item`;return{[cn]:{transition:`opacity ${Qe.motionDurationSlow} ${Qe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[At]:{overflow:"hidden",transition:`height ${Qe.motionDurationSlow} ${Qe.motionEaseInOut}, opacity ${Qe.motionDurationSlow} ${Qe.motionEaseInOut}, transform ${Qe.motionDurationSlow} ${Qe.motionEaseInOut} !important`,[`&${At}-appear, &${At}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${At}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Qe=>({legend:{display:"block",width:"100%",marginBottom:Qe.marginLG,padding:0,color:Qe.colorTextDescription,fontSize:Qe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Qe.lineWidth}px ${Qe.lineType} ${Qe.colorBorder}`},label:{fontSize:Qe.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Qe.controlOutlineWidth}px ${Qe.controlOutline}`},output:{display:"block",paddingTop:15,color:Qe.colorText,fontSize:Qe.fontSize,lineHeight:Qe.lineHeight}}),de=(Qe,on)=>{const{formItemCls:cn}=Qe;return{[cn]:{[`${cn}-label > label`]:{height:on},[`${cn}-control-input`]:{minHeight:on}}}},se=Qe=>{const{componentCls:on}=Qe;return{[Qe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Qe)),ee(Qe)),{[`${on}-text`]:{display:"inline-block",paddingInlineEnd:Qe.paddingSM},"&-small":Object.assign({},de(Qe,Qe.controlHeightSM)),"&-large":Object.assign({},de(Qe,Qe.controlHeightLG))})}},he=Qe=>{const{formItemCls:on,iconCls:cn,componentCls:At,rootPrefixCls:ht,labelRequiredMarkColor:en,labelColor:fn,labelFontSize:Rn,labelHeight:Qn,labelColonMarginInlineStart:Et,labelColonMarginInlineEnd:wn,itemMarginBottom:Kn}=Qe;return{[on]:Object.assign(Object.assign({},(0,wt.Wf)(Qe)),{marginBottom:Kn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${ht}-row`]:{display:"none"},"&-has-warning":{[`${on}-split`]:{color:Qe.colorError}},"&-has-error":{[`${on}-split`]:{color:Qe.colorWarning}},[`${on}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Qe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Qn,color:fn,fontSize:Rn,[`> ${cn}`]:{fontSize:Qe.fontSize,verticalAlign:"top"},[`&${on}-required:not(${on}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Qe.marginXXS,color:en,fontSize:Qe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${At}-hide-required-mark &`]:{display:"none"}},[`${on}-optional`]:{display:"inline-block",marginInlineStart:Qe.marginXXS,color:Qe.colorTextDescription,[`${At}-hide-required-mark &`]:{display:"none"}},[`${on}-tooltip`]:{color:Qe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Qe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Et,marginInlineEnd:wn},[`&${on}-no-colon::after`]:{content:'"\\a0"'}}},[`${on}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ht}-col-'"]):not([class*="' ${ht}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Qe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[on]:{"&-explain, &-extra":{clear:"both",color:Qe.colorTextDescription,fontSize:Qe.fontSize,lineHeight:Qe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Qe.controlHeightSM,transition:`color ${Qe.motionDurationMid} ${Qe.motionEaseOut}`},"&-explain":{"&-error":{color:Qe.colorError},"&-warning":{color:Qe.colorWarning}}},[`&-with-help ${on}-explain`]:{height:"auto",opacity:1},[`${on}-feedback-icon`]:{fontSize:Qe.fontSize,textAlign:"center",visibility:"visible",animationName:$e.kr,animationDuration:Qe.motionDurationMid,animationTimingFunction:Qe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Qe.colorSuccess},"&-error":{color:Qe.colorError},"&-warning":{color:Qe.colorWarning},"&-validating":{color:Qe.colorPrimary}}})}},ve=Qe=>{const{componentCls:on,formItemCls:cn}=Qe;return{[`${on}-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"}}}}},Ee=Qe=>{const{componentCls:on,formItemCls:cn}=Qe;return{[`${on}-inline`]:{display:"flex",flexWrap:"wrap",[cn]:{flex:"none",marginInlineEnd:Qe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${cn}-label, > ${cn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${cn}-label`]:{flex:"none"},[`${on}-text`]:{display:"inline-block"},[`${cn}-has-feedback`]:{display:"inline-block"}}}}},Be=Qe=>({padding:Qe.verticalLabelPadding,margin:Qe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Le=Qe=>{const{componentCls:on,formItemCls:cn,rootPrefixCls:At}=Qe;return{[`${cn} ${cn}-label`]:Be(Qe),[on]:{[cn]:{flexWrap:"wrap",[`${cn}-label, ${cn}-control`]:{[`&:not([class*=" ${At}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ze=Qe=>{const{componentCls:on,formItemCls:cn,rootPrefixCls:At}=Qe;return{[`${on}-vertical`]:{[cn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${on}-item-control`]:{width:"100%"}}},[`${on}-vertical ${cn}-label, .${At}-col-24${cn}-label, .${At}-col-xl-24${cn}-label`]:Be(Qe),[`@media (max-width: ${Qe.screenXSMax}px)`]:[Le(Qe),{[on]:{[`.${At}-col-xs-24${cn}-label`]:Be(Qe)}}],[`@media (max-width: ${Qe.screenSMMax}px)`]:{[on]:{[`.${At}-col-sm-24${cn}-label`]:Be(Qe)}},[`@media (max-width: ${Qe.screenMDMax}px)`]:{[on]:{[`.${At}-col-md-24${cn}-label`]:Be(Qe)}},[`@media (max-width: ${Qe.screenLGMax}px)`]:{[on]:{[`.${At}-col-lg-24${cn}-label`]:Be(Qe)}}}},je=(Qe,on)=>(0,lt.TS)(Qe,{formItemCls:`${Qe.componentCls}-item`,rootPrefixCls:on});var Xe=(0,vt.Z)("Form",(Qe,on)=>{let{rootPrefixCls:cn}=on;const At=je(Qe,cn);return[se(At),he(At),te(At),ve(At),Ee(At),ze(At),(0,Ft.Z)(At),$e.kr]},Qe=>({labelRequiredMarkColor:Qe.colorError,labelColor:Qe.colorTextHeading,labelFontSize:Qe.fontSize,labelHeight:Qe.controlHeight,labelColonMarginInlineStart:Qe.marginXXS/2,labelColonMarginInlineEnd:Qe.marginXS,itemMarginBottom:Qe.marginLG,verticalLabelPadding:`0 0 ${Qe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ye=[];function dt(Qe,on,cn){let At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Qe=="string"?Qe:`${on}-${At}`,error:Qe,errorStatus:cn}}var Nt=Qe=>{let{help:on,helpStatus:cn,errors:At=Ye,warnings:ht=Ye,className:en,fieldId:fn,onVisibleChanged:Rn}=Qe;const{prefixCls:Qn}=Ge.useContext(Me.Rk),Et=`${Qn}-item-explain`,[,wn]=Xe(Qn),Kn=(0,Ge.useMemo)(()=>(0,Ue.Z)(Qn),[Qn]),Ei=Ct(At),tn=Ct(ht),sn=Ge.useMemo(()=>on!=null?[dt(on,"help",cn)]:[].concat((0,le.Z)(Ei.map((Oi,Di)=>dt(Oi,"error","error",Di))),(0,le.Z)(tn.map((Oi,Di)=>dt(Oi,"warning","warning",Di)))),[on,cn,Ei,tn]),In={};return fn&&(In.id=`${fn}_help`),Ge.createElement(ut.default,{motionDeadline:Kn.motionDeadline,motionName:`${Qn}-show-help`,visible:!!sn.length,onVisibleChanged:Rn},Oi=>{const{className:Di,style:vi}=Oi;return Ge.createElement("div",Object.assign({},In,{className:We()(Et,Di,en,wn),style:vi,role:"alert"}),Ge.createElement(ut.CSSMotionList,Object.assign({keys:sn},(0,Ue.Z)(Qn),{motionName:`${Qn}-show-help-item`,component:!1}),Ti=>{const{key:Li,error:sr,errorStatus:Zr,className:Vr,style:Tn}=Ti;return Ge.createElement("div",{key:Li,className:We()(Vr,{[`${Et}-${Zr}`]:Zr}),style:Tn},sr)}))})},ot=pe(95013),Tt=pe(36355),xt=pe(1684),Ot=pe(52946),Wt=pe(19716),Dt=pe(16722);const tt=["parentNode"],Ve="form_item";function _t(Qe){return Qe===void 0||Qe===!1?[]:Array.isArray(Qe)?Qe:[Qe]}function vn(Qe,on){if(!Qe.length)return;const cn=Qe.join("_");return on?`${on}_${cn}`:tt.includes(cn)?`${Ve}_${cn}`:cn}function yn(Qe,on,cn,At,ht,en){let fn=At;return en!==void 0?fn=en:cn.validating?fn="validating":Qe.length?fn="error":on.length?fn="warning":(cn.touched||ht&&cn.validated)&&(fn="success"),fn}function zt(Qe){return _t(Qe).join("_")}function qt(Qe){const[on]=(0,ot.useForm)(),cn=Ge.useRef({}),At=Ge.useMemo(()=>Qe!=null?Qe:Object.assign(Object.assign({},on),{__INTERNAL__:{itemRef:ht=>en=>{const fn=zt(ht);en?cn.current[fn]=en:delete cn.current[fn]}},scrollToField:function(ht){let en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const fn=_t(ht),Rn=vn(fn,At.__INTERNAL__.name),Qn=Rn?document.getElementById(Rn):null;Qn&&(0,Dt.Z)(Qn,Object.assign({scrollMode:"if-needed",block:"nearest"},en))},getFieldInstance:ht=>{const en=zt(ht);return cn.current[en]}}),[Qe,on]);return[At]}var ln=pe(28726),Gn=function(Qe,on){var cn={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&on.indexOf(At)<0&&(cn[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,At=Object.getOwnPropertySymbols(Qe);ht{const cn=Ge.useContext(xt.Z),{getPrefixCls:At,direction:ht,form:en}=Ge.useContext(Tt.E_),{prefixCls:fn,className:Rn,rootClassName:Qn,size:Et,disabled:wn=cn,form:Kn,colon:Ei,labelAlign:tn,labelWrap:sn,labelCol:In,wrapperCol:Oi,hideRequiredMark:Di,layout:vi="horizontal",scrollToFirstError:Ti,requiredMark:Li,onFinishFailed:sr,name:Zr,style:Vr,feedbackIcons:Tn}=Qe,Po=Gn(Qe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Xr=(0,Wt.Z)(Et),Cr=Ge.useContext(ln.Z),Cn=(0,Ge.useMemo)(()=>Li!==void 0?Li:en&&en.requiredMark!==void 0?en.requiredMark:!Di,[Di,Li,en]),ri=Ei!=null?Ei:en==null?void 0:en.colon,Yi=At("form",fn),[yr,er]=Xe(Yi),Fr=We()(Yi,`${Yi}-${vi}`,{[`${Yi}-hide-required-mark`]:Cn===!1,[`${Yi}-rtl`]:ht==="rtl",[`${Yi}-${Xr}`]:Xr},er,en==null?void 0:en.className,Rn,Qn),[Ur]=qt(Kn),{__INTERNAL__:zr}=Ur;zr.name=Zr;const Tr=(0,Ge.useMemo)(()=>({name:Zr,labelAlign:tn,labelCol:In,labelWrap:sn,wrapperCol:Oi,vertical:vi==="vertical",colon:ri,requiredMark:Cn,itemRef:zr.itemRef,form:Ur,feedbackIcons:Tn}),[Zr,tn,In,Oi,vi,ri,Cn,Ur,Tn]);Ge.useImperativeHandle(on,()=>Ur);const Yr=(Ho,Yn)=>{if(Ho){let Ao={block:"nearest"};typeof Ho=="object"&&(Ao=Ho),Ur.scrollToField(Yn,Ao)}},Un=Ho=>{if(sr==null||sr(Ho),Ho.errorFields.length){const Yn=Ho.errorFields[0].name;if(Ti!==void 0){Yr(Ti,Yn);return}en&&en.scrollToFirstError!==void 0&&Yr(en.scrollToFirstError,Yn)}};return yr(Ge.createElement(xt.n,{disabled:wn},Ge.createElement(Ot.q,{size:Xr},Ge.createElement(Me.RV,Object.assign({},{validateMessages:Cr}),Ge.createElement(Me.q3.Provider,{value:Tr},Ge.createElement(ot.default,Object.assign({id:Zr},Po,{name:Zr,onFinishFailed:Un,form:Ur,style:Object.assign(Object.assign({},en==null?void 0:en.style),Vr),className:Fr})))))))};var St=Ge.forwardRef(un),Zn=pe(41799),ci=pe(8654),Ze=pe(92343),be=pe(11592);function Pe(Qe){if(typeof Qe=="function")return Qe;const on=(0,be.Z)(Qe);return on.length<=1?on[0]:on}const Ae=()=>{const{status:Qe,errors:on=[],warnings:cn=[]}=(0,Ge.useContext)(Me.aM);return{status:Qe,errors:on,warnings:cn}};Ae.Context=Me.aM;var Oe=Ae,xe=pe(16089);function ct(Qe){const[on,cn]=Ge.useState(Qe),At=(0,Ge.useRef)(null),ht=(0,Ge.useRef)([]),en=(0,Ge.useRef)(!1);Ge.useEffect(()=>(en.current=!1,()=>{en.current=!0,xe.Z.cancel(At.current),At.current=null}),[]);function fn(Rn){en.current||(At.current===null&&(ht.current=[],At.current=(0,xe.Z)(()=>{At.current=null,cn(Qn=>{let Et=Qn;return ht.current.forEach(wn=>{Et=wn(Et)}),Et})})),ht.current.push(Rn))}return[on,fn]}function Mt(){const{itemRef:Qe}=Ge.useContext(Me.q3),on=Ge.useRef({});function cn(At,ht){const en=ht&&typeof ht=="object"&&ht.ref,fn=At.join("_");return(on.current.name!==fn||on.current.originRef!==en)&&(on.current.name=fn,on.current.originRef=en,on.current.ref=(0,ci.sQ)(Qe(At),en)),on.current.ref}return cn}var at=pe(29194),qe=pe(34280),Lt=pe(2738),Bt=pe(27382),ft=pe(37028);const Gt=Qe=>{const{formItemCls:on}=Qe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${on}-control`]:{display:"flex"}}}};var Sn=(0,vt.b)(["Form","item-item"],(Qe,on)=>{let{rootPrefixCls:cn}=on;const At=je(Qe,cn);return[Gt(At)]}),rn=Qe=>{const{prefixCls:on,status:cn,wrapperCol:At,children:ht,errors:en,warnings:fn,_internalItemRender:Rn,extra:Qn,help:Et,fieldId:wn,marginBottom:Kn,onErrorVisibleChanged:Ei}=Qe,tn=`${on}-item`,sn=Ge.useContext(Me.q3),In=At||sn.wrapperCol||{},Oi=We()(`${tn}-control`,In.className),Di=Ge.useMemo(()=>Object.assign({},sn),[sn]);delete Di.labelCol,delete Di.wrapperCol;const vi=Ge.createElement("div",{className:`${tn}-control-input`},Ge.createElement("div",{className:`${tn}-control-input-content`},ht)),Ti=Ge.useMemo(()=>({prefixCls:on,status:cn}),[on,cn]),Li=Kn!==null||en.length||fn.length?Ge.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ge.createElement(Me.Rk.Provider,{value:Ti},Ge.createElement(Nt,{fieldId:wn,errors:en,warnings:fn,help:Et,helpStatus:cn,className:`${tn}-explain-connected`,onVisibleChanged:Ei})),!!Kn&&Ge.createElement("div",{style:{width:0,height:Kn}})):null,sr={};wn&&(sr.id=`${wn}_extra`);const Zr=Qn?Ge.createElement("div",Object.assign({},sr,{className:`${tn}-extra`}),Qn):null,Vr=Rn&&Rn.mark==="pro_table_render"&&Rn.render?Rn.render(Qe,{input:vi,errorList:Li,extra:Zr}):Ge.createElement(Ge.Fragment,null,vi,Li,Zr);return Ge.createElement(Me.q3.Provider,{value:Di},Ge.createElement(ft.Z,Object.assign({},In,{className:Oi}),Vr),Ge.createElement(Sn,{prefixCls:on}))},zn=pe(61485),kn=pe(31724),mn=pe(9763),ei=pe(6848),Pi=function(Qe,on){var cn={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&on.indexOf(At)<0&&(cn[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,At=Object.getOwnPropertySymbols(Qe);ht{let{prefixCls:on,label:cn,htmlFor:At,labelCol:ht,labelAlign:en,colon:fn,required:Rn,requiredMark:Qn,tooltip:Et}=Qe;var wn;const[Kn]=(0,mn.Z)("Form"),{vertical:Ei,labelAlign:tn,labelCol:sn,labelWrap:In,colon:Oi}=Ge.useContext(Me.q3);if(!cn)return null;const Di=ht||sn||{},vi=en||tn,Ti=`${on}-item-label`,Li=We()(Ti,vi==="left"&&`${Ti}-left`,Di.className,{[`${Ti}-wrap`]:!!In});let sr=cn;const Zr=fn===!0||Oi!==!1&&fn!==!1;Zr&&!Ei&&typeof cn=="string"&&cn.trim()!==""&&(sr=cn.replace(/[:|:]\s*$/,""));const Tn=Hn(Et);if(Tn){const{icon:Cn=Ge.createElement(zn.Z,null)}=Tn,ri=Pi(Tn,["icon"]),Yi=Ge.createElement(ei.Z,Object.assign({},ri),Ge.cloneElement(Cn,{className:`${on}-item-tooltip`,title:""}));sr=Ge.createElement(Ge.Fragment,null,sr,Yi)}const Po=Qn==="optional",Xr=typeof Qn=="function";Xr?sr=Qn(sr,{required:!!Rn}):Po&&!Rn&&(sr=Ge.createElement(Ge.Fragment,null,sr,Ge.createElement("span",{className:`${on}-item-optional`,title:""},(Kn==null?void 0:Kn.optional)||((wn=kn.Z.Form)===null||wn===void 0?void 0:wn.optional))));const Cr=We()({[`${on}-item-required`]:Rn,[`${on}-item-required-mark-optional`]:Po||Xr,[`${on}-item-no-colon`]:!Zr});return Ge.createElement(ft.Z,Object.assign({},Di,{className:Li}),Ge.createElement("label",{htmlFor:At,className:Cr,title:typeof cn=="string"?cn:""},sr))},Zi=pe(29679),Hi=pe(19248),rr=pe(96512),_r=pe(58617);const gi={success:Zi.Z,warning:rr.Z,error:Hi.Z,validating:_r.Z};function di(Qe){let{children:on,errors:cn,warnings:At,hasFeedback:ht,validateStatus:en,prefixCls:fn,meta:Rn,noStyle:Qn}=Qe;const Et=`${fn}-item`,{feedbackIcons:wn}=Ge.useContext(Me.q3),Kn=yn(cn,At,Rn,null,!!ht,en),{isFormItemInput:Ei,status:tn}=Ge.useContext(Me.aM),sn=Ge.useMemo(()=>{var In;let Oi;if(ht){const Ti=ht!==!0&&ht.icons||wn,Li=Kn&&((In=Ti==null?void 0:Ti({status:Kn,errors:cn,warnings:At}))===null||In===void 0?void 0:In[Kn]),sr=Kn&&gi[Kn];Oi=Li!==!1&&sr?Ge.createElement("span",{className:We()(`${Et}-feedback-icon`,`${Et}-feedback-icon-${Kn}`)},Li||Ge.createElement(sr,null)):null}let Di=!0,vi=Kn||"";return Qn&&(Di=Ei,vi=(Kn!=null?Kn:tn)||""),{status:vi,errors:cn,warnings:At,hasFeedback:!!ht,feedbackIcon:Oi,isFormItemInput:Di}},[Kn,ht,Qn,Ei,tn]);return Ge.createElement(Me.aM.Provider,{value:sn},on)}var xi=function(Qe,on){var cn={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&on.indexOf(At)<0&&(cn[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,At=Object.getOwnPropertySymbols(Qe);ht{if(Tn&&Li.current){const er=getComputedStyle(Li.current);Cr(parseInt(er.marginBottom,10))}},[Tn,Po]);const Cn=er=>{er||Cr(null)},Yi=function(){let er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Fr=er?sr:Et.errors,Ur=er?Zr:Et.warnings;return yn(Fr,Ur,Et,"",!!wn,Qn)}(),yr=We()(vi,cn,At,{[`${vi}-with-help`]:Vr||sr.length||Zr.length,[`${vi}-has-feedback`]:Yi&&wn,[`${vi}-has-success`]:Yi==="success",[`${vi}-has-warning`]:Yi==="warning",[`${vi}-has-error`]:Yi==="error",[`${vi}-is-validating`]:Yi==="validating",[`${vi}-hidden`]:Kn});return Ge.createElement("div",{className:yr,style:ht,ref:Li},Ge.createElement(Bt.Z,Object.assign({className:`${vi}-row`},(0,Lt.Z)(Di,["_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"])),Ge.createElement(wi,Object.assign({htmlFor:tn},Qe,{requiredMark:Ti,required:sn!=null?sn:In,prefixCls:on})),Ge.createElement(rn,Object.assign({},Qe,Et,{errors:sr,warnings:Zr,prefixCls:on,status:Yi,help:en,marginBottom:Xr,onErrorVisibleChanged:Cn}),Ge.createElement(Me.qI.Provider,{value:Oi},Ge.createElement(di,{prefixCls:on,meta:Et,errors:Et.errors,warnings:Et.warnings,hasFeedback:wn,validateStatus:Yi},Ei)))),!!Xr&&Ge.createElement("div",{className:`${vi}-margin-offset`,style:{marginBottom:-Xr}}))}const Ri="__SPLIT__",Kr=null,Sr=Ge.memo(Qe=>{let{children:on}=Qe;return on},(Qe,on)=>Qe.value===on.value&&Qe.update===on.update&&Qe.childProps.length===on.childProps.length&&Qe.childProps.every((cn,At)=>cn===on.childProps[At]));function Ne(Qe){return Qe!=null}function Ci(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function wr(Qe){const{name:on,noStyle:cn,className:At,dependencies:ht,prefixCls:en,shouldUpdate:fn,rules:Rn,children:Qn,required:Et,label:wn,messageVariables:Kn,trigger:Ei="onChange",validateTrigger:tn,hidden:sn,help:In}=Qe,{getPrefixCls:Oi}=Ge.useContext(Tt.E_),{name:Di}=Ge.useContext(Me.q3),vi=Pe(Qn),Ti=typeof vi=="function",Li=Ge.useContext(Me.qI),{validateTrigger:sr}=Ge.useContext(ot.FieldContext),Zr=tn!==void 0?tn:sr,Vr=Ne(on),Tn=Oi("form",en),[Po,Xr]=Xe(Tn),Cr=Ge.useContext(ot.ListContext),Cn=Ge.useRef(),[ri,Yi]=ct({}),[yr,er]=(0,Zn.Z)(()=>Ci()),Fr=Yn=>{const Ao=Cr==null?void 0:Cr.getKey(Yn.name);if(er(Yn.destroy?Ci():Yn,!0),cn&&In!==!1&&Li){let Qo=Yn.name;if(Yn.destroy)Qo=Cn.current||Qo;else if(Ao!==void 0){const[nr,qo]=Ao;Qo=[nr].concat((0,le.Z)(qo)),Cn.current=Qo}Li(Yn,Qo)}},Ur=(Yn,Ao)=>{Yi(Qo=>{const nr=Object.assign({},Qo),Go=[].concat((0,le.Z)(Yn.name.slice(0,-1)),(0,le.Z)(Ao)).join(Ri);return Yn.destroy?delete nr[Go]:nr[Go]=Yn,nr})},[zr,Tr]=Ge.useMemo(()=>{const Yn=(0,le.Z)(yr.errors),Ao=(0,le.Z)(yr.warnings);return Object.values(ri).forEach(Qo=>{Yn.push.apply(Yn,(0,le.Z)(Qo.errors||[])),Ao.push.apply(Ao,(0,le.Z)(Qo.warnings||[]))}),[Yn,Ao]},[ri,yr.errors,yr.warnings]),Yr=Mt();function Un(Yn,Ao,Qo){return cn&&!sn?Ge.createElement(di,{prefixCls:Tn,hasFeedback:Qe.hasFeedback,validateStatus:Qe.validateStatus,meta:yr,errors:zr,warnings:Tr,noStyle:!0},Yn):Ge.createElement($i,Object.assign({key:"row"},Qe,{className:We()(At,Xr),prefixCls:Tn,fieldId:Ao,isRequired:Qo,errors:zr,warnings:Tr,meta:yr,onSubItemMetaChange:Ur}),Yn)}if(!Vr&&!Ti&&!ht)return Po(Un(vi));let Ho={};return typeof wn=="string"?Ho.label=wn:on&&(Ho.label=String(on)),Kn&&(Ho=Object.assign(Object.assign({},Ho),Kn)),Po(Ge.createElement(ot.Field,Object.assign({},Qe,{messageVariables:Ho,trigger:Ei,validateTrigger:Zr,onMetaChange:Fr}),(Yn,Ao,Qo)=>{const nr=_t(on).length&&Ao?Ao.name:[],qo=vn(nr,Di),Go=Et!==void 0?Et:!!(Rn&&Rn.some(mo=>{if(mo&&typeof mo=="object"&&mo.required&&!mo.warningOnly)return!0;if(typeof mo=="function"){const Yo=mo(Qo);return Yo&&Yo.required&&!Yo.warningOnly}return!1})),Lr=Object.assign({},Yn);let br=null;if(Array.isArray(vi)&&Vr)br=vi;else if(!(Ti&&(!(fn||ht)||Vr))){if(!(ht&&!Ti&&!Vr))if((0,Ze.l$)(vi)){const mo=Object.assign(Object.assign({},vi.props),Lr);if(mo.id||(mo.id=qo),In||zr.length>0||Tr.length>0||Qe.extra){const st=[];(In||zr.length>0)&&st.push(`${qo}_help`),Qe.extra&&st.push(`${qo}_extra`),mo["aria-describedby"]=st.join(" ")}zr.length>0&&(mo["aria-invalid"]="true"),Go&&(mo["aria-required"]="true"),(0,ci.Yr)(vi)&&(mo.ref=Yr(nr,vi)),new Set([].concat((0,le.Z)(_t(Ei)),(0,le.Z)(_t(Zr)))).forEach(st=>{mo[st]=function(){for(var sa,va,Ma,hs,Ga,Lo=arguments.length,po=new Array(Lo),la=0;la{var{prefixCls:on,children:cn}=Qe,At=Wi(Qe,["prefixCls","children"]);const{getPrefixCls:ht}=Ge.useContext(Tt.E_),en=ht("form",on),fn=Ge.useMemo(()=>({prefixCls:en,status:"error"}),[en]);return Ge.createElement(ot.List,Object.assign({},At),(Rn,Qn,Et)=>Ge.createElement(Me.Rk.Provider,{value:fn},cn(Rn.map(wn=>Object.assign(Object.assign({},wn),{fieldKey:wn.key})),Qn,{errors:Et.errors,warnings:Et.warnings})))};function qn(){const{form:Qe}=(0,Ge.useContext)(Me.q3);return Qe}const Zt=St;Zt.Item=Si,Zt.List=$n,Zt.ErrorList=Nt,Zt.useForm=qt,Zt.useFormInstance=qn,Zt.useWatch=ot.useWatch,Zt.Provider=Me.RV,Zt.create=()=>{};var $t=Zt},8628:function(On,pn,pe){"use strict";var le=pe(59301),ke=pe(34280),We=pe(56762),ut=pe(69507);function Ge(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Me=(0,le.useRef)({}),Ct=(0,We.Z)(),wt=(0,ut.ZP)();return(0,ke.Z)(()=>{const $e=wt.subscribe(Ft=>{Me.current=Ft,Ue&&Ct()});return()=>wt.unsubscribe($e)},[]),Me.current}pn.Z=Ge},9432:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return he},n:function(){return de}});var le=pe(19248),ke=pe(92310),We=pe.n(ke),ut=pe(93681),Ge=pe(8654),Ue=pe(59301),Me=pe(19080),Ct=pe(36355),wt=pe(1684),$e=pe(19716),Ft=pe(32441),lt=pe(33234),vt=pe(59412),Ie=pe(9937);function te(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var ee=function(ve,Ee){var Be={};for(var Le in ve)Object.prototype.hasOwnProperty.call(ve,Le)&&Ee.indexOf(Le)<0&&(Be[Le]=ve[Le]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Le=Object.getOwnPropertySymbols(ve);ze{var Be;const{prefixCls:Le,bordered:ze=!0,status:je,size:Xe,disabled:Ye,onBlur:dt,onFocus:He,suffix:Nt,allowClear:ot,addonAfter:Tt,addonBefore:xt,className:Ot,style:Wt,styles:Dt,rootClassName:tt,onChange:Ve,classNames:_t}=ve,vn=ee(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:yn,direction:zt,input:qt}=Ue.useContext(Ct.E_),ln=yn("input",Le),Gn=(0,Ue.useRef)(null),[un,_n]=(0,Ie.ZP)(ln),{compactSize:St,compactItemClassnames:Zn}=(0,lt.ri)(ln,zt),ci=(0,$e.Z)(Sn=>{var an;return(an=Xe!=null?Xe:St)!==null&&an!==void 0?an:Sn}),Ze=Ue.useContext(wt.Z),be=Ye!=null?Ye:Ze,{status:Pe,hasFeedback:Ae,feedbackIcon:Oe}=(0,Ue.useContext)(Ft.aM),xe=(0,Me.F)(Pe,je),ct=te(ve)||!!Ae,Mt=(0,Ue.useRef)(ct);(0,Ue.useEffect)(()=>{var Sn;ct&&Mt.current,Mt.current=ct},[ct]);const at=(0,vt.Z)(Gn,!0),qe=Sn=>{at(),dt==null||dt(Sn)},Lt=Sn=>{at(),He==null||He(Sn)},Bt=Sn=>{at(),Ve==null||Ve(Sn)},ft=(Ae||Nt)&&Ue.createElement(Ue.Fragment,null,Nt,Ae&&Oe);let Gt;return typeof ot=="object"&&(ot!=null&&ot.clearIcon)?Gt=ot:ot&&(Gt={clearIcon:Ue.createElement(le.Z,null)}),un(Ue.createElement(ut.default,Object.assign({ref:(0,Ge.sQ)(Ee,Gn),prefixCls:ln,autoComplete:qt==null?void 0:qt.autoComplete},vn,{disabled:be,onBlur:qe,onFocus:Lt,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Wt),styles:Object.assign(Object.assign({},qt==null?void 0:qt.styles),Dt),suffix:ft,allowClear:Gt,className:We()(Ot,tt,Zn,qt==null?void 0:qt.className),onChange:Bt,addonAfter:Tt&&Ue.createElement(lt.BR,null,Ue.createElement(Ft.Ux,{override:!0,status:!0},Tt)),addonBefore:xt&&Ue.createElement(lt.BR,null,Ue.createElement(Ft.Ux,{override:!0,status:!0},xt)),classNames:Object.assign(Object.assign(Object.assign({},_t),qt==null?void 0:qt.classNames),{input:We()({[`${ln}-sm`]:ci==="small",[`${ln}-lg`]:ci==="large",[`${ln}-rtl`]:zt==="rtl",[`${ln}-borderless`]:!ze},!ct&&(0,Me.Z)(ln,xe),_t==null?void 0:_t.input,(Be=qt==null?void 0:qt.classNames)===null||Be===void 0?void 0:Be.input,_n)}),classes:{affixWrapper:We()({[`${ln}-affix-wrapper-sm`]:ci==="small",[`${ln}-affix-wrapper-lg`]:ci==="large",[`${ln}-affix-wrapper-rtl`]:zt==="rtl",[`${ln}-affix-wrapper-borderless`]:!ze},(0,Me.Z)(`${ln}-affix-wrapper`,xe,Ae),_n),wrapper:We()({[`${ln}-group-rtl`]:zt==="rtl"},_n),group:We()({[`${ln}-group-wrapper-sm`]:ci==="small",[`${ln}-group-wrapper-lg`]:ci==="large",[`${ln}-group-wrapper-rtl`]:zt==="rtl",[`${ln}-group-wrapper-disabled`]:be},(0,Me.Z)(`${ln}-group-wrapper`,xe,Ae),_n)}})))})},1643:function(On,pn,pe){"use strict";var le=pe(19248),ke=pe(92310),We=pe.n(ke),ut=pe(9296),Ge=pe(59301),Ue=pe(19080),Me=pe(36355),Ct=pe(1684),wt=pe(19716),$e=pe(32441),Ft=pe(9432),lt=pe(9937),vt=function(te,ee){var de={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ee.indexOf(se)<0&&(de[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,se=Object.getOwnPropertySymbols(te);he{const{prefixCls:de,bordered:se=!0,size:he,disabled:ve,status:Ee,allowClear:Be,showCount:Le,classNames:ze,rootClassName:je,className:Xe}=te,Ye=vt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:dt,direction:He}=Ge.useContext(Me.E_),Nt=(0,wt.Z)(he),ot=Ge.useContext(Ct.Z),Tt=ve!=null?ve:ot,{status:xt,hasFeedback:Ot,feedbackIcon:Wt}=Ge.useContext($e.aM),Dt=(0,Ue.F)(xt,Ee),tt=Ge.useRef(null);Ge.useImperativeHandle(ee,()=>{var zt;return{resizableTextArea:(zt=tt.current)===null||zt===void 0?void 0:zt.resizableTextArea,focus:qt=>{var ln,Gn;(0,Ft.n)((Gn=(ln=tt.current)===null||ln===void 0?void 0:ln.resizableTextArea)===null||Gn===void 0?void 0:Gn.textArea,qt)},blur:()=>{var qt;return(qt=tt.current)===null||qt===void 0?void 0:qt.blur()}}});const Ve=dt("input",de);let _t;typeof Be=="object"&&(Be!=null&&Be.clearIcon)?_t=Be:Be&&(_t={clearIcon:Ge.createElement(le.Z,null)});const[vn,yn]=(0,lt.ZP)(Ve);return vn(Ge.createElement(ut.default,Object.assign({},Ye,{disabled:Tt,allowClear:_t,className:We()(Xe,je),classes:{affixWrapper:We()(`${Ve}-textarea-affix-wrapper`,{[`${Ve}-affix-wrapper-rtl`]:He==="rtl",[`${Ve}-affix-wrapper-borderless`]:!se,[`${Ve}-affix-wrapper-sm`]:Nt==="small",[`${Ve}-affix-wrapper-lg`]:Nt==="large",[`${Ve}-textarea-show-count`]:Le},(0,Ue.Z)(`${Ve}-affix-wrapper`,Dt),yn)},classNames:Object.assign(Object.assign({},ze),{textarea:We()({[`${Ve}-borderless`]:!se,[`${Ve}-sm`]:Nt==="small",[`${Ve}-lg`]:Nt==="large"},(0,Ue.Z)(Ve,Dt),yn,ze==null?void 0:ze.textarea)}),prefixCls:Ve,suffix:Ot&&Ge.createElement("span",{className:`${Ve}-textarea-suffix`},Wt),showCount:Le,ref:tt})))});pn.Z=Ie},59412:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ke}});var le=pe(59301);function ke(We,ut){const Ge=(0,le.useRef)([]),Ue=()=>{Ge.current.push(setTimeout(()=>{var Me,Ct,wt,$e;!((Me=We.current)===null||Me===void 0)&&Me.input&&((Ct=We.current)===null||Ct===void 0?void 0:Ct.input.getAttribute("type"))==="password"&&(!((wt=We.current)===null||wt===void 0)&&wt.input.hasAttribute("value"))&&(($e=We.current)===null||$e===void 0||$e.input.removeAttribute("value"))}))};return(0,le.useEffect)(()=>(ut&&Ue(),()=>Ge.current.forEach(Me=>{Me&&clearTimeout(Me)})),[]),Ue}},92832:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return Nt}});var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(36355),Ge=pe(32441),Ue=pe(9937),Ct=ot=>{const{getPrefixCls:Tt,direction:xt}=(0,We.useContext)(ut.E_),{prefixCls:Ot,className:Wt}=ot,Dt=Tt("input-group",Ot),tt=Tt("input"),[Ve,_t]=(0,Ue.ZP)(tt),vn=ke()(Dt,{[`${Dt}-lg`]:ot.size==="large",[`${Dt}-sm`]:ot.size==="small",[`${Dt}-compact`]:ot.compact,[`${Dt}-rtl`]:xt==="rtl"},_t,Wt),yn=(0,We.useContext)(Ge.aM),zt=(0,We.useMemo)(()=>Object.assign(Object.assign({},yn),{isFormItemInput:!1}),[yn]);return Ve(We.createElement("span",{className:vn,style:ot.style,onMouseEnter:ot.onMouseEnter,onMouseLeave:ot.onMouseLeave,onFocus:ot.onFocus,onBlur:ot.onBlur},We.createElement(Ge.aM.Provider,{value:zt},ot.children)))},wt=pe(9432),$e=pe(73331),Ft=pe(15277),lt=pe(2738),vt=pe(8654),Ie=pe(59412),te=function(ot,Tt){var xt={};for(var Ot in ot)Object.prototype.hasOwnProperty.call(ot,Ot)&&Tt.indexOf(Ot)<0&&(xt[Ot]=ot[Ot]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Ot=Object.getOwnPropertySymbols(ot);Wtot?We.createElement(Ft.Z,null):We.createElement($e.Z,null),de={click:"onClick",hover:"onMouseOver"};var he=We.forwardRef((ot,Tt)=>{const{visibilityToggle:xt=!0}=ot,Ot=typeof xt=="object"&&xt.visible!==void 0,[Wt,Dt]=(0,We.useState)(()=>Ot?xt.visible:!1),tt=(0,We.useRef)(null);We.useEffect(()=>{Ot&&Dt(xt.visible)},[Ot,xt]);const Ve=(0,Ie.Z)(tt),_t=()=>{const{disabled:be}=ot;be||(Wt&&Ve(),Dt(Pe=>{var Ae;const Oe=!Pe;return typeof xt=="object"&&((Ae=xt.onVisibleChange)===null||Ae===void 0||Ae.call(xt,Oe)),Oe}))},vn=be=>{const{action:Pe="click",iconRender:Ae=ee}=ot,Oe=de[Pe]||"",xe=Ae(Wt),ct={[Oe]:_t,className:`${be}-icon`,key:"passwordIcon",onMouseDown:Mt=>{Mt.preventDefault()},onMouseUp:Mt=>{Mt.preventDefault()}};return We.cloneElement(We.isValidElement(xe)?xe:We.createElement("span",null,xe),ct)},{className:yn,prefixCls:zt,inputPrefixCls:qt,size:ln}=ot,Gn=te(ot,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:un}=We.useContext(ut.E_),_n=un("input",qt),St=un("input-password",zt),Zn=xt&&vn(St),ci=ke()(St,yn,{[`${St}-${ln}`]:!!ln}),Ze=Object.assign(Object.assign({},(0,lt.Z)(Gn,["suffix","iconRender","visibilityToggle"])),{type:Wt?"text":"password",className:ci,prefixCls:_n,suffix:Zn});return ln&&(Ze.size=ln),We.createElement(wt.Z,Object.assign({ref:(0,vt.sQ)(Tt,tt)},Ze))}),ve=pe(47472),Ee=pe(92343),Be=pe(3113),Le=pe(19716),ze=pe(33234),je=function(ot,Tt){var xt={};for(var Ot in ot)Object.prototype.hasOwnProperty.call(ot,Ot)&&Tt.indexOf(Ot)<0&&(xt[Ot]=ot[Ot]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Ot=Object.getOwnPropertySymbols(ot);Wt{const{prefixCls:xt,inputPrefixCls:Ot,className:Wt,size:Dt,suffix:tt,enterButton:Ve=!1,addonAfter:_t,loading:vn,disabled:yn,onSearch:zt,onChange:qt,onCompositionStart:ln,onCompositionEnd:Gn}=ot,un=je(ot,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:_n,direction:St}=We.useContext(ut.E_),Zn=We.useRef(!1),ci=_n("input-search",xt),Ze=_n("input",Ot),{compactSize:be}=(0,ze.ri)(ci,St),Pe=(0,Le.Z)(rn=>{var zn;return(zn=Dt!=null?Dt:be)!==null&&zn!==void 0?zn:rn}),Ae=We.useRef(null),Oe=rn=>{rn&&rn.target&&rn.type==="click"&&zt&&zt(rn.target.value,rn,{source:"clear"}),qt&&qt(rn)},xe=rn=>{var zn;document.activeElement===((zn=Ae.current)===null||zn===void 0?void 0:zn.input)&&rn.preventDefault()},ct=rn=>{var zn,kn;zt&&zt((kn=(zn=Ae.current)===null||zn===void 0?void 0:zn.input)===null||kn===void 0?void 0:kn.value,rn,{source:"input"})},Mt=rn=>{Zn.current||vn||ct(rn)},at=typeof Ve=="boolean"?We.createElement(ve.Z,null):null,qe=`${ci}-button`;let Lt;const Bt=Ve||{},ft=Bt.type&&Bt.type.__ANT_BUTTON===!0;ft||Bt.type==="button"?Lt=(0,Ee.Tm)(Bt,Object.assign({onMouseDown:xe,onClick:rn=>{var zn,kn;(kn=(zn=Bt==null?void 0:Bt.props)===null||zn===void 0?void 0:zn.onClick)===null||kn===void 0||kn.call(zn,rn),ct(rn)},key:"enterButton"},ft?{className:qe,size:Pe}:{})):Lt=We.createElement(Be.ZP,{className:qe,type:Ve?"primary":void 0,size:Pe,disabled:yn,key:"enterButton",onMouseDown:xe,onClick:ct,loading:vn,icon:at},Ve),_t&&(Lt=[Lt,(0,Ee.Tm)(_t,{key:"addonAfter"})]);const Gt=ke()(ci,{[`${ci}-rtl`]:St==="rtl",[`${ci}-${Pe}`]:!!Pe,[`${ci}-with-button`]:!!Ve},Wt),Sn=rn=>{Zn.current=!0,ln==null||ln(rn)},an=rn=>{Zn.current=!1,Gn==null||Gn(rn)};return We.createElement(wt.Z,Object.assign({ref:(0,vt.sQ)(Ae,Tt),onPressEnter:Mt},un,{size:Pe,onCompositionStart:Sn,onCompositionEnd:an,prefixCls:Ze,addonAfter:Lt,suffix:tt,onChange:Oe,className:Gt,disabled:yn}))}),dt=pe(1643);const He=wt.Z;He.Group=Ct,He.Search=Ye,He.TextArea=dt.Z,He.Password=he;var Nt=He},45818:function(On,pn,pe){"use strict";pe.d(pn,{D:function(){return ve},Z:function(){return Le}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function(je,Xe){return ke.createElement(Ge.Z,(0,le.Z)({},je,{ref:Xe,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me,wt=pe(33853),$e=pe(38819),Ft=pe(92310),lt=pe.n(Ft),vt=pe(2738),te=ze=>!isNaN(parseFloat(ze))&&isFinite(ze),ee=pe(36355),de=pe(84966),se=function(ze,je){var Xe={};for(var Ye in ze)Object.prototype.hasOwnProperty.call(ze,Ye)&&je.indexOf(Ye)<0&&(Xe[Ye]=ze[Ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(ze);dt{let ze=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ze+=1,`${je}${ze}`}})();var Le=ke.forwardRef((ze,je)=>{const{prefixCls:Xe,className:Ye,trigger:dt,children:He,defaultCollapsed:Nt=!1,theme:ot="dark",style:Tt={},collapsible:xt=!1,reverseArrow:Ot=!1,width:Wt=200,collapsedWidth:Dt=80,zeroWidthTriggerStyle:tt,breakpoint:Ve,onCollapse:_t,onBreakpoint:vn}=ze,yn=se(ze,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:zt}=(0,ke.useContext)(de.Gs),[qt,ln]=(0,ke.useState)("collapsed"in ze?ze.collapsed:Nt),[Gn,un]=(0,ke.useState)(!1);(0,ke.useEffect)(()=>{"collapsed"in ze&&ln(ze.collapsed)},[ze.collapsed]);const _n=(Pe,Ae)=>{"collapsed"in ze||ln(Pe),_t==null||_t(Pe,Ae)},St=(0,ke.useRef)();St.current=Pe=>{un(Pe.matches),vn==null||vn(Pe.matches),qt!==Pe.matches&&_n(Pe.matches,"responsive")},(0,ke.useEffect)(()=>{function Pe(Oe){return St.current(Oe)}let Ae;if(typeof window!="undefined"){const{matchMedia:Oe}=window;if(Oe&&Ve&&Ve in he){Ae=Oe(`(max-width: ${he[Ve]})`);try{Ae.addEventListener("change",Pe)}catch(xe){Ae.addListener(Pe)}Pe(Ae)}}return()=>{try{Ae==null||Ae.removeEventListener("change",Pe)}catch(Oe){Ae==null||Ae.removeListener(Pe)}}},[Ve]),(0,ke.useEffect)(()=>{const Pe=Ee("ant-sider-");return zt.addSider(Pe),()=>zt.removeSider(Pe)},[]);const Zn=()=>{_n(!qt,"clickTrigger")},{getPrefixCls:ci}=(0,ke.useContext)(ee.E_),Ze=()=>{const Pe=ci("layout-sider",Xe),Ae=(0,vt.Z)(yn,["collapsed"]),Oe=qt?Dt:Wt,xe=te(Oe)?`${Oe}px`:String(Oe),ct=parseFloat(String(Dt||0))===0?ke.createElement("span",{onClick:Zn,className:lt()(`${Pe}-zero-width-trigger`,`${Pe}-zero-width-trigger-${Ot?"right":"left"}`),style:tt},dt||ke.createElement(Ct,null)):null,qe={expanded:Ot?ke.createElement($e.Z,null):ke.createElement(wt.Z,null),collapsed:Ot?ke.createElement(wt.Z,null):ke.createElement($e.Z,null)}[qt?"collapsed":"expanded"],Lt=dt!==null?ct||ke.createElement("div",{className:`${Pe}-trigger`,onClick:Zn,style:{width:xe}},dt||qe):null,Bt=Object.assign(Object.assign({},Tt),{flex:`0 0 ${xe}`,maxWidth:xe,minWidth:xe,width:xe}),ft=lt()(Pe,`${Pe}-${ot}`,{[`${Pe}-collapsed`]:!!qt,[`${Pe}-has-trigger`]:xt&&dt!==null&&!ct,[`${Pe}-below`]:!!Gn,[`${Pe}-zero-width`]:parseFloat(xe)===0},Ye);return ke.createElement("aside",Object.assign({className:ft},Ae,{style:Bt,ref:je}),ke.createElement("div",{className:`${Pe}-children`},He),xt||Gn&&ct?Lt:null)},be=ke.useMemo(()=>({siderCollapsed:qt}),[qt]);return ke.createElement(ve.Provider,{value:be},Ze())})},84966:function(On,pn,pe){"use strict";pe.d(pn,{VY:function(){return ve},$_:function(){return he},h4:function(){return se},Gs:function(){return vt},ZP:function(){return Ee}});var le=pe(19127),ke=pe(92310),We=pe.n(ke),ut=pe(2738),Ge=pe(59301),Ue=pe(36355),Me=pe(83116),wt=Be=>{const{componentCls:Le,bodyBg:ze,lightSiderBg:je,lightTriggerBg:Xe,lightTriggerColor:Ye}=Be;return{[`${Le}-sider-light`]:{background:je,[`${Le}-sider-trigger`]:{color:Ye,background:Xe},[`${Le}-sider-zero-width-trigger`]:{color:Ye,background:Xe,border:`1px solid ${ze}`,borderInlineStart:0}}}};const $e=Be=>{const{antCls:Le,componentCls:ze,colorText:je,triggerColor:Xe,footerBg:Ye,triggerBg:dt,headerHeight:He,headerPadding:Nt,headerColor:ot,footerPadding:Tt,triggerHeight:xt,zeroTriggerHeight:Ot,zeroTriggerWidth:Wt,motionDurationMid:Dt,motionDurationSlow:tt,fontSize:Ve,borderRadius:_t,bodyBg:vn,headerBg:yn,siderBg:zt}=Be;return{[ze]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:vn,"&, *":{boxSizing:"border-box"},[`&${ze}-has-sider`]:{flexDirection:"row",[`> ${ze}, > ${ze}-content`]:{width:0}},[`${ze}-header, &${ze}-footer`]:{flex:"0 0 auto"},[`${ze}-sider`]:{position:"relative",minWidth:0,background:zt,transition:`all ${Dt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Le}-menu${Le}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:xt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:xt,color:Xe,lineHeight:`${xt}px`,textAlign:"center",background:dt,cursor:"pointer",transition:`all ${Dt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-Wt,zIndex:1,width:Wt,height:Ot,color:Xe,fontSize:Be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:zt,borderStartStartRadius:0,borderStartEndRadius:_t,borderEndEndRadius:_t,borderEndStartRadius:0,cursor:"pointer",transition:`background ${tt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${tt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Wt,borderStartStartRadius:_t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_t}}}}},wt(Be)),{"&-rtl":{direction:"rtl"}}),[`${ze}-header`]:{height:He,padding:Nt,color:ot,lineHeight:`${He}px`,background:yn,[`${Le}-menu`]:{lineHeight:"inherit"}},[`${ze}-footer`]:{padding:Tt,color:je,fontSize:Ve,background:Ye},[`${ze}-content`]:{flex:"auto",minHeight:0}}};var Ft=(0,Me.Z)("Layout",Be=>[$e(Be)],Be=>{const{colorBgLayout:Le,controlHeight:ze,controlHeightLG:je,colorText:Xe,controlHeightSM:Ye,marginXXS:dt,colorTextLightSolid:He,colorBgContainer:Nt}=Be,ot=je*1.25;return{colorBgHeader:"#001529",colorBgBody:Le,colorBgTrigger:"#002140",bodyBg:Le,headerBg:"#001529",headerHeight:ze*2,headerPadding:`0 ${ot}px`,headerColor:Xe,footerPadding:`${Ye}px ${ot}px`,footerBg:Le,siderBg:"#001529",triggerHeight:je+dt*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:je,zeroTriggerHeight:je,lightSiderBg:Nt,lightTriggerBg:Nt,lightTriggerColor:Xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),lt=function(Be,Le){var ze={};for(var je in Be)Object.prototype.hasOwnProperty.call(Be,je)&&Le.indexOf(je)<0&&(ze[je]=Be[je]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,je=Object.getOwnPropertySymbols(Be);Xenull,removeSider:()=>null}});function Ie(Be){let{suffixCls:Le,tagName:ze,displayName:je}=Be;return Xe=>Ge.forwardRef((dt,He)=>Ge.createElement(Xe,Object.assign({ref:He,suffixCls:Le,tagName:ze},dt)))}const te=Ge.forwardRef((Be,Le)=>{const{prefixCls:ze,suffixCls:je,className:Xe,tagName:Ye}=Be,dt=lt(Be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=Ge.useContext(Ue.E_),Nt=He("layout",ze),[ot,Tt]=Ft(Nt),xt=je?`${Nt}-${je}`:Nt;return ot(Ge.createElement(Ye,Object.assign({className:We()(ze||xt,Xe,Tt),ref:Le},dt)))}),ee=Ge.forwardRef((Be,Le)=>{const{direction:ze}=Ge.useContext(Ue.E_),[je,Xe]=Ge.useState([]),{prefixCls:Ye,className:dt,rootClassName:He,children:Nt,hasSider:ot,tagName:Tt,style:xt}=Be,Ot=lt(Be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Wt=(0,ut.Z)(Ot,["suffixCls"]),{getPrefixCls:Dt,layout:tt}=Ge.useContext(Ue.E_),Ve=Dt("layout",Ye),[_t,vn]=Ft(Ve),yn=We()(Ve,{[`${Ve}-has-sider`]:typeof ot=="boolean"?ot:je.length>0,[`${Ve}-rtl`]:ze==="rtl"},tt==null?void 0:tt.className,dt,He,vn),zt=Ge.useMemo(()=>({siderHook:{addSider:qt=>{Xe(ln=>[].concat((0,le.Z)(ln),[qt]))},removeSider:qt=>{Xe(ln=>ln.filter(Gn=>Gn!==qt))}}}),[]);return _t(Ge.createElement(vt.Provider,{value:zt},Ge.createElement(Tt,Object.assign({ref:Le,className:yn,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),xt)},Wt),Nt)))}),de=Ie({tagName:"div",displayName:"Layout"})(ee),se=Ie({suffixCls:"header",tagName:"header",displayName:"Header"})(te),he=Ie({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),ve=Ie({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var Ee=de},40875:function(On,pn,pe){"use strict";pe.d(pn,{J:function(){return Ue}});var le=pe(59301),ke=pe(33234),We=pe(70425),ut=function(Me,Ct){var wt={};for(var $e in Me)Object.prototype.hasOwnProperty.call(Me,$e)&&Ct.indexOf($e)<0&&(wt[$e]=Me[$e]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,$e=Object.getOwnPropertySymbols(Me);Ft<$e.length;Ft++)Ct.indexOf($e[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Me,$e[Ft])&&(wt[$e[Ft]]=Me[$e[Ft]]);return wt};const Ge=le.createContext(null),Ue=le.forwardRef((Me,Ct)=>{const{children:wt}=Me,$e=ut(Me,["children"]),Ft=le.useContext(Ge),lt=le.useMemo(()=>Object.assign(Object.assign({},Ft),$e),[Ft,$e.prefixCls,$e.mode,$e.selectable]);return le.createElement(Ge.Provider,{value:lt},le.createElement(ke.BR,null,(0,We.supportNodeRef)(wt)?le.cloneElement(wt,{ref:Ct}):wt))});pn.Z=Ge},20834:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return be}});var le=pe(15285),ke=pe(59301),We=pe(45818),ut=pe(92310),Ge=pe.n(ut),Ue=pe(36355),Me=function(Pe,Ae){var Oe={};for(var xe in Pe)Object.prototype.hasOwnProperty.call(Pe,xe)&&Ae.indexOf(xe)<0&&(Oe[xe]=Pe[xe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,xe=Object.getOwnPropertySymbols(Pe);ct{const{prefixCls:Ae,className:Oe,dashed:xe}=Pe,ct=Me(Pe,["prefixCls","className","dashed"]),{getPrefixCls:Mt}=ke.useContext(Ue.E_),at=Mt("menu",Ae),qe=Ge()({[`${at}-item-divider-dashed`]:!!xe},Oe);return ke.createElement(le.iz,Object.assign({className:qe},ct))},$e=pe(11592),Ft=pe(2738),lt=pe(6848),vt=pe(92343),te=(0,ke.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),de=Pe=>{var Ae;const{className:Oe,children:xe,icon:ct,title:Mt,danger:at}=Pe,{prefixCls:qe,firstLevel:Lt,direction:Bt,disableMenuItemTitleTooltip:ft,inlineCollapsed:Gt}=ke.useContext(te),Sn=ei=>{const Pi=ke.createElement("span",{className:`${qe}-title-content`},xe);return(!ct||(0,vt.l$)(xe)&&xe.type==="span")&&xe&&ei&&Lt&&typeof xe=="string"?ke.createElement("div",{className:`${qe}-inline-collapsed-noicon`},xe.charAt(0)):Pi},{siderCollapsed:an}=ke.useContext(We.D);let rn=Mt;typeof Mt=="undefined"?rn=Lt?xe:"":Mt===!1&&(rn="");const zn={title:rn};!an&&!Gt&&(zn.title=null,zn.open=!1);const kn=(0,$e.Z)(xe).length;let mn=ke.createElement(le.ck,Object.assign({},(0,Ft.Z)(Pe,["title","icon","danger"]),{className:Ge()({[`${qe}-item-danger`]:at,[`${qe}-item-only-child`]:(ct?kn+1:kn)===1},Oe),title:typeof Mt=="string"?Mt:void 0}),(0,vt.Tm)(ct,{className:Ge()((0,vt.l$)(ct)?(Ae=ct.props)===null||Ae===void 0?void 0:Ae.className:"",`${qe}-item-icon`)}),Sn(Gt));return ft||(mn=ke.createElement(lt.Z,Object.assign({},zn,{placement:Bt==="rtl"?"left":"right",overlayClassName:`${qe}-inline-collapsed-tooltip`}),mn)),mn},he=Pe=>{var Ae;const{popupClassName:Oe,icon:xe,title:ct,theme:Mt}=Pe,at=ke.useContext(te),{prefixCls:qe,inlineCollapsed:Lt,theme:Bt}=at,ft=(0,le.Xl)();let Gt;if(!xe)Gt=Lt&&!ft.length&&ct&&typeof ct=="string"?ke.createElement("div",{className:`${qe}-inline-collapsed-noicon`},ct.charAt(0)):ke.createElement("span",{className:`${qe}-title-content`},ct);else{const an=(0,vt.l$)(ct)&&ct.type==="span";Gt=ke.createElement(ke.Fragment,null,(0,vt.Tm)(xe,{className:Ge()((0,vt.l$)(xe)?(Ae=xe.props)===null||Ae===void 0?void 0:Ae.className:"",`${qe}-item-icon`)}),an?ct:ke.createElement("span",{className:`${qe}-title-content`},ct))}const Sn=ke.useMemo(()=>Object.assign(Object.assign({},at),{firstLevel:!1}),[at]);return ke.createElement(te.Provider,{value:Sn},ke.createElement(le.Wd,Object.assign({},(0,Ft.Z)(Pe,["icon"]),{title:Gt,popupClassName:Ge()(qe,Oe,`${qe}-${Mt||Bt}`)})))},ve=pe(18785),Ee=pe(70425),Be=pe(62892),Le=pe(40875),ze=function(Pe,Ae){var Oe={};for(var xe in Pe)Object.prototype.hasOwnProperty.call(Pe,xe)&&Ae.indexOf(xe)<0&&(Oe[xe]=Pe[xe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,xe=Object.getOwnPropertySymbols(Pe);ct{if(Ae&&typeof Ae=="object"){const xe=Ae,{label:ct,children:Mt,key:at,type:qe}=xe,Lt=ze(xe,["label","children","key","type"]),Bt=at!=null?at:`tmp-${Oe}`;return Mt||qe==="group"?qe==="group"?ke.createElement(le.BW,Object.assign({key:Bt},Lt,{title:ct}),je(Mt)):ke.createElement(he,Object.assign({key:Bt},Lt,{title:ct}),je(Mt)):qe==="divider"?ke.createElement(wt,Object.assign({key:Bt},Lt)):ke.createElement(de,Object.assign({key:Bt},Lt),ct)}return null}).filter(Ae=>Ae)}function Xe(Pe){return ke.useMemo(()=>Pe&&je(Pe),[Pe])}var Ye=pe(64993),dt=pe(17313),He=pe(8378),Nt=pe(13826),ot=pe(29878),Tt=pe(83116),xt=pe(37613),Wt=Pe=>{const{componentCls:Ae,motionDurationSlow:Oe,horizontalLineHeight:xe,colorSplit:ct,lineWidth:Mt,lineType:at,itemPaddingInline:qe}=Pe;return{[`${Ae}-horizontal`]:{lineHeight:xe,border:0,borderBottom:`${Mt}px ${at} ${ct}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ae}-item, ${Ae}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:qe},[`> ${Ae}-item:hover, > ${Ae}-item-active, > ${Ae}-submenu ${Ae}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ae}-item, ${Ae}-submenu-title`]:{transition:[`border-color ${Oe}`,`background ${Oe}`].join(",")},[`${Ae}-submenu-arrow`]:{display:"none"}}}},tt=Pe=>{let{componentCls:Ae,menuArrowOffset:Oe}=Pe;return{[`${Ae}-rtl`]:{direction:"rtl"},[`${Ae}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ae}-rtl${Ae}-vertical, ${Ae}-submenu-rtl ${Ae}-vertical`]:{[`${Ae}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Oe})`},"&::after":{transform:`rotate(45deg) translateY(${Oe})`}}}}};const Ve=Pe=>Object.assign({},(0,dt.oN)(Pe));var vn=(Pe,Ae)=>{const{componentCls:Oe,itemColor:xe,itemSelectedColor:ct,groupTitleColor:Mt,itemBg:at,subMenuItemBg:qe,itemSelectedBg:Lt,activeBarHeight:Bt,activeBarWidth:ft,activeBarBorderWidth:Gt,motionDurationSlow:Sn,motionEaseInOut:an,motionEaseOut:rn,itemPaddingInline:zn,motionDurationMid:kn,itemHoverColor:mn,lineType:ei,colorSplit:Pi,itemDisabledColor:Hn,dangerItemColor:bn,dangerItemHoverColor:wi,dangerItemSelectedColor:Zi,dangerItemActiveBg:Hi,dangerItemSelectedBg:rr,itemHoverBg:_r,itemActiveBg:gi,menuSubMenuBg:di,horizontalItemSelectedColor:xi,horizontalItemSelectedBg:$i,horizontalItemBorderRadius:Ri,horizontalItemHoverBg:Kr,popupBg:Sr}=Pe;return{[`${Oe}-${Ae}, ${Oe}-${Ae} > ${Oe}`]:{color:xe,background:at,[`&${Oe}-root:focus-visible`]:Object.assign({},Ve(Pe)),[`${Oe}-item-group-title`]:{color:Mt},[`${Oe}-submenu-selected`]:{[`> ${Oe}-submenu-title`]:{color:ct}},[`${Oe}-item-disabled, ${Oe}-submenu-disabled`]:{color:`${Hn} !important`},[`${Oe}-item:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{[`&:hover, > ${Oe}-submenu-title:hover`]:{color:mn}},[`&:not(${Oe}-horizontal)`]:{[`${Oe}-item:not(${Oe}-item-selected)`]:{"&:hover":{backgroundColor:_r},"&:active":{backgroundColor:gi}},[`${Oe}-submenu-title`]:{"&:hover":{backgroundColor:_r},"&:active":{backgroundColor:gi}}},[`${Oe}-item-danger`]:{color:bn,[`&${Oe}-item:hover`]:{[`&:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{color:wi}},[`&${Oe}-item:active`]:{background:Hi}},[`${Oe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Oe}-item-selected`]:{color:ct,[`&${Oe}-item-danger`]:{color:Zi},"a, a:hover":{color:"inherit"}},[`& ${Oe}-item-selected`]:{backgroundColor:Lt,[`&${Oe}-item-danger`]:{backgroundColor:rr}},[`${Oe}-item, ${Oe}-submenu-title`]:{[`&:not(${Oe}-item-disabled):focus-visible`]:Object.assign({},Ve(Pe))},[`&${Oe}-submenu > ${Oe}`]:{backgroundColor:di},[`&${Oe}-popup > ${Oe}`]:{backgroundColor:Sr},[`&${Oe}-horizontal`]:Object.assign(Object.assign({},Ae==="dark"?{borderBottom:0}:{}),{[`> ${Oe}-item, > ${Oe}-submenu`]:{top:Gt,marginTop:-Gt,marginBottom:0,borderRadius:Ri,"&::after":{position:"absolute",insetInline:zn,bottom:0,borderBottom:`${Bt}px solid transparent`,transition:`border-color ${Sn} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:Kr,"&::after":{borderBottomWidth:Bt,borderBottomColor:xi}},"&-selected":{color:xi,backgroundColor:$i,"&:hover":{backgroundColor:$i},"&::after":{borderBottomWidth:Bt,borderBottomColor:xi}}}}),[`&${Oe}-root`]:{[`&${Oe}-inline, &${Oe}-vertical`]:{borderInlineEnd:`${Gt}px ${ei} ${Pi}`}},[`&${Oe}-inline`]:{[`${Oe}-sub${Oe}-inline`]:{background:qe},[`${Oe}-item, ${Oe}-submenu-title`]:Gt&&ft?{width:`calc(100% + ${Gt}px)`}:{},[`${Oe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ft}px solid ${ct}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${kn} ${rn}`,`opacity ${kn} ${rn}`].join(","),content:'""'},[`&${Oe}-item-danger`]:{"&::after":{borderInlineEndColor:Zi}}},[`${Oe}-selected, ${Oe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${kn} ${an}`,`opacity ${kn} ${an}`].join(",")}}}}}};const yn=Pe=>{const{componentCls:Ae,itemHeight:Oe,itemMarginInline:xe,padding:ct,menuArrowSize:Mt,marginXS:at,itemMarginBlock:qe}=Pe,Lt=ct+Mt+at;return{[`${Ae}-item`]:{position:"relative",overflow:"hidden"},[`${Ae}-item, ${Ae}-submenu-title`]:{height:Oe,lineHeight:`${Oe}px`,paddingInline:ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:xe,marginBlock:qe,width:`calc(100% - ${xe*2}px)`},[`> ${Ae}-item, > ${Ae}-submenu > ${Ae}-submenu-title`]:{height:Oe,lineHeight:`${Oe}px`},[`${Ae}-item-group-list ${Ae}-submenu-title, ${Ae}-submenu-title`]:{paddingInlineEnd:Lt}}};var qt=Pe=>{const{componentCls:Ae,iconCls:Oe,itemHeight:xe,colorTextLightSolid:ct,dropdownWidth:Mt,controlHeightLG:at,motionDurationMid:qe,motionEaseOut:Lt,paddingXL:Bt,itemMarginInline:ft,fontSizeLG:Gt,motionDurationSlow:Sn,paddingXS:an,boxShadowSecondary:rn,collapsedWidth:zn,collapsedIconSize:kn}=Pe,mn={height:xe,lineHeight:`${xe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ae]:{"&-inline, &-vertical":Object.assign({[`&${Ae}-root`]:{boxShadow:"none"}},yn(Pe))},[`${Ae}-submenu-popup`]:{[`${Ae}-vertical`]:Object.assign(Object.assign({},yn(Pe)),{boxShadow:rn})}},{[`${Ae}-submenu-popup ${Ae}-vertical${Ae}-sub`]:{minWidth:Mt,maxHeight:`calc(100vh - ${at*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ae}-inline`]:{width:"100%",[`&${Ae}-root`]:{[`${Ae}-item, ${Ae}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Sn}`,`background ${Sn}`,`padding ${qe} ${Lt}`].join(","),[`> ${Ae}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ae}-sub${Ae}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ae}-submenu > ${Ae}-submenu-title`]:mn,[`& ${Ae}-item-group-title`]:{paddingInlineStart:Bt}},[`${Ae}-item`]:mn}},{[`${Ae}-inline-collapsed`]:{width:zn,[`&${Ae}-root`]:{[`${Ae}-item, ${Ae}-submenu ${Ae}-submenu-title`]:{[`> ${Ae}-inline-collapsed-noicon`]:{fontSize:Gt,textAlign:"center"}}},[`> ${Ae}-item, > ${Ae}-item-group > ${Ae}-item-group-list > ${Ae}-item, > ${Ae}-item-group > ${Ae}-item-group-list > ${Ae}-submenu > ${Ae}-submenu-title, > ${Ae}-submenu > ${Ae}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Gt/2}px - ${ft}px)`,textOverflow:"clip",[` ${Ae}-submenu-arrow, ${Ae}-submenu-expand-icon `]:{opacity:0},[`${Ae}-item-icon, ${Oe}`]:{margin:0,fontSize:kn,lineHeight:`${xe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ae}-item-icon, ${Oe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ae}-item-icon, ${Oe}`]:{display:"none"},"a, a:hover":{color:ct}},[`${Ae}-item-group-title`]:Object.assign(Object.assign({},dt.vS),{paddingInline:an})}}]};const ln=Pe=>{const{componentCls:Ae,motionDurationSlow:Oe,motionDurationMid:xe,motionEaseInOut:ct,motionEaseOut:Mt,iconCls:at,iconSize:qe,iconMarginInlineEnd:Lt}=Pe;return{[`${Ae}-item, ${Ae}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Oe}`,`background ${Oe}`,`padding ${Oe} ${ct}`].join(","),[`${Ae}-item-icon, ${at}`]:{minWidth:qe,fontSize:qe,transition:[`font-size ${xe} ${Mt}`,`margin ${Oe} ${ct}`,`color ${Oe}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${Oe} ${ct}`,`margin ${Oe}`,`color ${Oe}`].join(",")}},[`${Ae}-item-icon`]:Object.assign({},(0,dt.Ro)()),[`&${Ae}-item-only-child`]:{[`> ${at}, > ${Ae}-item-icon`]:{marginInlineEnd:0}}},[`${Ae}-item-disabled, ${Ae}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ae}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gn=Pe=>{const{componentCls:Ae,motionDurationSlow:Oe,motionEaseInOut:xe,borderRadius:ct,menuArrowSize:Mt,menuArrowOffset:at}=Pe;return{[`${Ae}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Pe.margin,width:Mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Oe} ${xe}, opacity ${Oe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Mt*.6,height:Mt*.15,backgroundColor:"currentcolor",borderRadius:ct,transition:[`background ${Oe} ${xe}`,`transform ${Oe} ${xe}`,`top ${Oe} ${xe}`,`color ${Oe} ${xe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${at})`},"&::after":{transform:`rotate(-45deg) translateY(${at})`}}}}},un=Pe=>{const{antCls:Ae,componentCls:Oe,fontSize:xe,motionDurationSlow:ct,motionDurationMid:Mt,motionEaseInOut:at,paddingXS:qe,padding:Lt,colorSplit:Bt,lineWidth:ft,zIndexPopup:Gt,borderRadiusLG:Sn,subMenuItemBorderRadius:an,menuArrowSize:rn,menuArrowOffset:zn,lineType:kn,menuPanelMaskInset:mn,groupTitleLineHeight:ei,groupTitleFontSize:Pi}=Pe;return[{"":{[`${Oe}`]:Object.assign(Object.assign({},(0,dt.dF)()),{"&-hidden":{display:"none"}})},[`${Oe}-submenu-hidden`]:{display:"none"}},{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(Pe)),(0,dt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:xe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ct} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Oe}-item`]:{flex:"none"}},[`${Oe}-item, ${Oe}-submenu, ${Oe}-submenu-title`]:{borderRadius:Pe.itemBorderRadius},[`${Oe}-item-group-title`]:{padding:`${qe}px ${Lt}px`,fontSize:Pi,lineHeight:ei,transition:`all ${ct}`},[`&-horizontal ${Oe}-submenu`]:{transition:[`border-color ${ct} ${at}`,`background ${ct} ${at}`].join(",")},[`${Oe}-submenu, ${Oe}-submenu-inline`]:{transition:[`border-color ${ct} ${at}`,`background ${ct} ${at}`,`padding ${Mt} ${at}`].join(",")},[`${Oe}-submenu ${Oe}-sub`]:{cursor:"initial",transition:[`background ${ct} ${at}`,`padding ${ct} ${at}`].join(",")},[`${Oe}-title-content`]:{transition:`color ${ct}`},[`${Oe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Oe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Bt,borderStyle:kn,borderWidth:0,borderTopWidth:ft,marginBlock:ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ln(Pe)),{[`${Oe}-item-group`]:{[`${Oe}-item-group-list`]:{margin:0,padding:0,[`${Oe}-item, ${Oe}-submenu-title`]:{paddingInline:`${xe*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Gt,borderRadius:Sn,boxShadow:"none",transformOrigin:"0 0",[`&${Oe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${mn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:mn},"\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:Pe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Pe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Pe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Pe.paddingXS},[`> ${Oe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Sn},ln(Pe)),Gn(Pe)),{[`${Oe}-item, ${Oe}-submenu > ${Oe}-submenu-title`]:{borderRadius:an},[`${Oe}-submenu-title::after`]:{transition:`transform ${ct} ${at}`}})}}),Gn(Pe)),{[`&-inline-collapsed ${Oe}-submenu-arrow, &-inline ${Oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${zn})`},"&::after":{transform:`rotate(45deg) translateX(-${zn})`}},[`${Oe}-submenu-open${Oe}-submenu-inline > ${Oe}-submenu-title > ${Oe}-submenu-arrow`]:{transform:`translateY(-${rn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${zn})`},"&::before":{transform:`rotate(45deg) translateX(${zn})`}}})},{[`${Ae}-layout-header`]:{[Oe]:{lineHeight:"inherit"}}}]};var _n=(Pe,Ae)=>(0,Tt.Z)("Menu",xe=>{if(Ae===!1)return[];const{colorBgElevated:ct,colorPrimary:Mt,colorTextLightSolid:at,controlHeightLG:qe,fontSize:Lt,darkItemColor:Bt,darkDangerItemColor:ft,darkItemBg:Gt,darkSubMenuItemBg:Sn,darkItemSelectedColor:an,darkItemSelectedBg:rn,darkDangerItemSelectedBg:zn,darkItemHoverBg:kn,darkGroupTitleColor:mn,darkItemHoverColor:ei,darkItemDisabledColor:Pi,darkDangerItemHoverColor:Hn,darkDangerItemSelectedColor:bn,darkDangerItemActiveBg:wi}=xe,Zi=Lt/7*5,Hi=(0,xt.TS)(xe,{menuArrowSize:Zi,menuHorizontalHeight:qe*1.15,menuArrowOffset:`${Zi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ct}),rr=(0,xt.TS)(Hi,{itemColor:Bt,itemHoverColor:ei,groupTitleColor:mn,itemSelectedColor:an,itemBg:Gt,popupBg:Gt,subMenuItemBg:Sn,itemActiveBg:"transparent",itemSelectedBg:rn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:kn,itemDisabledColor:Pi,dangerItemColor:ft,dangerItemHoverColor:Hn,dangerItemSelectedColor:bn,dangerItemActiveBg:wi,dangerItemSelectedBg:zn,menuSubMenuBg:Sn,horizontalItemSelectedColor:at,horizontalItemSelectedBg:Mt});return[un(Hi),Wt(Hi),qt(Hi),vn(Hi,"light"),vn(rr,"dark"),tt(Hi),(0,He.Z)(Hi),(0,Nt.oN)(Hi,"slide-up"),(0,Nt.oN)(Hi,"slide-down"),(0,ot._y)(Hi,"zoom-big")]},xe=>{const{colorPrimary:ct,colorError:Mt,colorTextDisabled:at,colorErrorBg:qe,colorText:Lt,colorTextDescription:Bt,colorBgContainer:ft,colorFillAlter:Gt,colorFillContent:Sn,lineWidth:an,lineWidthBold:rn,controlItemBgActive:zn,colorBgTextHover:kn,controlHeightLG:mn,lineHeight:ei,colorBgElevated:Pi,marginXXS:Hn,padding:bn,fontSize:wi,controlHeightSM:Zi,fontSizeLG:Hi,colorTextLightSolid:rr,colorErrorHover:_r}=xe,gi=new Ye.C(rr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:xe.zIndexPopupBase+50,radiusItem:xe.borderRadiusLG,itemBorderRadius:xe.borderRadiusLG,radiusSubMenuItem:xe.borderRadiusSM,subMenuItemBorderRadius:xe.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:ct,horizontalItemHoverColor:ct,colorGroupTitle:Bt,groupTitleColor:Bt,colorItemTextSelected:ct,itemSelectedColor:ct,colorItemTextSelectedHorizontal:ct,horizontalItemSelectedColor:ct,colorItemBg:ft,itemBg:ft,colorItemBgHover:kn,itemHoverBg:kn,colorItemBgActive:Sn,itemActiveBg:zn,colorSubItemBg:Gt,subMenuItemBg:Gt,colorItemBgSelected:zn,itemSelectedBg:zn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:rn,activeBarHeight:rn,colorActiveBarBorderSize:an,activeBarBorderWidth:an,colorItemTextDisabled:at,itemDisabledColor:at,colorDangerItemText:Mt,dangerItemColor:Mt,colorDangerItemTextHover:Mt,dangerItemHoverColor:Mt,colorDangerItemTextSelected:Mt,dangerItemSelectedColor:Mt,colorDangerItemBgActive:qe,dangerItemActiveBg:qe,colorDangerItemBgSelected:qe,dangerItemSelectedBg:qe,itemMarginInline:xe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:mn,groupTitleLineHeight:ei,collapsedWidth:mn*2,popupBg:Pi,itemMarginBlock:Hn,itemPaddingInline:bn,horizontalLineHeight:`${mn*1.15}px`,iconSize:wi,iconMarginInlineEnd:Zi-wi,collapsedIconSize:Hi,groupTitleFontSize:wi,darkItemDisabledColor:new Ye.C(rr).setAlpha(.25).toRgbString(),darkItemColor:gi,darkDangerItemColor:Mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rr,darkItemSelectedBg:ct,darkDangerItemSelectedBg:Mt,darkItemHoverBg:"transparent",darkGroupTitleColor:gi,darkItemHoverColor:rr,darkDangerItemHoverColor:_r,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:Mt}},{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"]]})(Pe),St=function(Pe,Ae){var Oe={};for(var xe in Pe)Object.prototype.hasOwnProperty.call(Pe,xe)&&Ae.indexOf(xe)<0&&(Oe[xe]=Pe[xe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,xe=Object.getOwnPropertySymbols(Pe);ct{var Oe,xe;const ct=ke.useContext(Le.Z),Mt=ct||{},{getPrefixCls:at,getPopupContainer:qe,direction:Lt,menu:Bt}=ke.useContext(Ue.E_),ft=at(),{prefixCls:Gt,className:Sn,style:an,theme:rn="light",expandIcon:zn,_internalDisableMenuItemTitleTooltip:kn,inlineCollapsed:mn,siderCollapsed:ei,items:Pi,children:Hn,rootClassName:bn,mode:wi,selectable:Zi,onClick:Hi,overflowedIndicatorPopupClassName:rr}=Pe,_r=St(Pe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gi=(0,Ft.Z)(_r,["collapsedWidth"]),di=Xe(Pi)||Hn;(Oe=Mt.validator)===null||Oe===void 0||Oe.call(Mt,{mode:wi});const xi=(0,Ee.useEvent)(function(){var qi;Hi==null||Hi.apply(void 0,arguments),(qi=Mt.onClick)===null||qi===void 0||qi.call(Mt)}),$i=Mt.mode||wi,Ri=Zi!=null?Zi:Mt.selectable,Kr=ke.useMemo(()=>ei!==void 0?ei:mn,[mn,ei]),Sr={horizontal:{motionName:`${ft}-slide-up`},inline:(0,Be.Z)(ft),other:{motionName:`${ft}-zoom-big`}},Ne=at("menu",Gt||Mt.prefixCls),[Ci,wr]=_n(Ne,!ct),Pn=Ge()(`${Ne}-${rn}`,Bt==null?void 0:Bt.className,Sn);let Si;if(typeof zn=="function")Si=zn;else if(zn===null||zn===!1)Si=null;else if(Mt.expandIcon===null||Mt.expandIcon===!1)Si=null;else{const qi=zn!=null?zn:Mt.expandIcon;Si=(0,vt.Tm)(qi,{className:Ge()(`${Ne}-submenu-expand-icon`,(0,vt.l$)(qi)?(xe=qi.props)===null||xe===void 0?void 0:xe.className:"")})}const Wi=ke.useMemo(()=>({prefixCls:Ne,inlineCollapsed:Kr||!1,direction:Lt,firstLevel:!0,theme:rn,mode:$i,disableMenuItemTitleTooltip:kn}),[Ne,Kr,Lt,kn,rn]);return Ci(ke.createElement(Le.Z.Provider,{value:null},ke.createElement(te.Provider,{value:Wi},ke.createElement(le.ZP,Object.assign({getPopupContainer:qe,overflowedIndicator:ke.createElement(ve.Z,null),overflowedIndicatorPopupClassName:Ge()(Ne,`${Ne}-${rn}`,rr),mode:$i,selectable:Ri,onClick:xi},gi,{inlineCollapsed:Kr,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),an),className:Pn,prefixCls:Ne,direction:Lt,defaultMotions:Sr,expandIcon:Si,ref:Ae,rootClassName:Ge()(bn,wr)}),di))))});const Ze=(0,ke.forwardRef)((Pe,Ae)=>{const Oe=(0,ke.useRef)(null),xe=ke.useContext(We.D);return(0,ke.useImperativeHandle)(Ae,()=>({menu:Oe.current,focus:ct=>{var Mt;(Mt=Oe.current)===null||Mt===void 0||Mt.focus(ct)}})),ke.createElement(ci,Object.assign({ref:Oe},Pe,xe))});Ze.Item=de,Ze.SubMenu=he,Ze.Divider=wt,Ze.ItemGroup=le.BW;var be=Ze},58421:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Mt}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function(qe,Lt){return ke.createElement(Ge.Z,(0,le.Z)({},qe,{ref:Lt,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me,wt=pe(49198),$e=pe(33853),Ft=pe(38819),lt=pe(92310),vt=pe.n(lt),Ie=pe(90493),te=pe(44127),ee=pe(52884),de=pe(95727),se=pe(65711),he=pe(85745),ve=pe(26112),Ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Be=Ee,Le=pe(91735),ze=function(at){(0,se.Z)(Lt,at);var qe=(0,he.Z)(Lt);function Lt(){var Bt;(0,ee.Z)(this,Lt);for(var ft=arguments.length,Gt=new Array(ft),Sn=0;Sn=0||an.relatedTarget.className.indexOf("".concat(mn,"-item"))>=0))&&kn(Bt.getValidValue()))},Bt.go=function(an){var rn=Bt.state.goInputText;rn!==""&&(an.keyCode===Be.ENTER||an.type==="click")&&(Bt.setState({goInputText:""}),Bt.props.quickGo(Bt.getValidValue()))},Bt}return(0,de.Z)(Lt,[{key:"getPageSizeOptions",value:function(){var ft=this.props,Gt=ft.pageSize,Sn=ft.pageSizeOptions;return Sn.some(function(an){return an.toString()===Gt.toString()})?Sn:Sn.concat([Gt.toString()]).sort(function(an,rn){var zn=Number.isNaN(Number(an))?0:Number(an),kn=Number.isNaN(Number(rn))?0:Number(rn);return zn-kn})}},{key:"render",value:function(){var ft=this,Gt=this.props,Sn=Gt.pageSize,an=Gt.locale,rn=Gt.rootPrefixCls,zn=Gt.changeSize,kn=Gt.quickGo,mn=Gt.goButton,ei=Gt.selectComponentClass,Pi=Gt.buildOptionText,Hn=Gt.selectPrefixCls,bn=Gt.disabled,wi=this.state.goInputText,Zi="".concat(rn,"-options"),Hi=ei,rr=null,_r=null,gi=null;if(!zn&&!kn)return null;var di=this.getPageSizeOptions();if(zn&&Hi){var xi=di.map(function($i,Ri){return ke.createElement(Hi.Option,{key:Ri,value:$i.toString()},(Pi||ft.buildOptionText)($i))});rr=ke.createElement(Hi,{disabled:bn,prefixCls:Hn,showSearch:!1,className:"".concat(Zi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Sn||di[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ri){return Ri.parentNode},"aria-label":an.page_size,defaultOpen:!1},xi)}return kn&&(mn&&(gi=typeof mn=="boolean"?ke.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:bn,className:"".concat(Zi,"-quick-jumper-button")},an.jump_to_confirm):ke.createElement("span",{onClick:this.go,onKeyUp:this.go},mn)),_r=ke.createElement("div",{className:"".concat(Zi,"-quick-jumper")},an.jump_to,ke.createElement("input",{disabled:bn,type:"text",value:wi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":an.page}),an.page,gi)),ke.createElement("li",{className:"".concat(Zi)},rr,_r)}}]),Lt}(ke.Component);ze.defaultProps={pageSizeOptions:["10","20","50","100"]};var je=ze,Xe=function(qe){var Lt,Bt=qe.rootPrefixCls,ft=qe.page,Gt=qe.active,Sn=qe.className,an=qe.showTitle,rn=qe.onClick,zn=qe.onKeyPress,kn=qe.itemRender,mn="".concat(Bt,"-item"),ei=vt()(mn,"".concat(mn,"-").concat(ft),(Lt={},(0,Ie.Z)(Lt,"".concat(mn,"-active"),Gt),(0,Ie.Z)(Lt,"".concat(mn,"-disabled"),!ft),(0,Ie.Z)(Lt,qe.className,Sn),Lt)),Pi=function(){rn(ft)},Hn=function(Zi){zn(Zi,rn,ft)},bn=kn(ft,"page",ke.createElement("a",{rel:"nofollow"},ft));return bn?ke.createElement("li",{title:an?ft.toString():null,className:ei,onClick:Pi,onKeyPress:Hn,tabIndex:0},bn):null},Ye=Xe;function dt(){}function He(at){var qe=Number(at);return typeof qe=="number"&&!Number.isNaN(qe)&&isFinite(qe)&&Math.floor(qe)===qe}var Nt=function(qe,Lt,Bt){return Bt};function ot(at,qe,Lt){var Bt=typeof at=="undefined"?qe.pageSize:at;return Math.floor((Lt.total-1)/Bt)+1}var Tt=function(at){(0,se.Z)(Lt,at);var qe=(0,he.Z)(Lt);function Lt(Bt){var ft;(0,ee.Z)(this,Lt),ft=qe.call(this,Bt),ft.paginationNode=ke.createRef(),ft.getJumpPrevPage=function(){return Math.max(1,ft.state.current-(ft.props.showLessItems?3:5))},ft.getJumpNextPage=function(){return Math.min(ot(void 0,ft.state,ft.props),ft.state.current+(ft.props.showLessItems?3:5))},ft.getItemIcon=function(zn,kn){var mn=ft.props.prefixCls,ei=zn||ke.createElement("button",{type:"button","aria-label":kn,className:"".concat(mn,"-item-link")});return typeof zn=="function"&&(ei=ke.createElement(zn,(0,te.Z)({},ft.props))),ei},ft.isValid=function(zn){var kn=ft.props.total;return He(zn)&&zn!==ft.state.current&&He(kn)&&kn>0},ft.shouldDisplayQuickJumper=function(){var zn=ft.props,kn=zn.showQuickJumper,mn=zn.total,ei=ft.state.pageSize;return mn<=ei?!1:kn},ft.handleKeyDown=function(zn){(zn.keyCode===Be.ARROW_UP||zn.keyCode===Be.ARROW_DOWN)&&zn.preventDefault()},ft.handleKeyUp=function(zn){var kn=ft.getValidValue(zn),mn=ft.state.currentInputValue;kn!==mn&&ft.setState({currentInputValue:kn}),zn.keyCode===Be.ENTER?ft.handleChange(kn):zn.keyCode===Be.ARROW_UP?ft.handleChange(kn-1):zn.keyCode===Be.ARROW_DOWN&&ft.handleChange(kn+1)},ft.handleBlur=function(zn){var kn=ft.getValidValue(zn);ft.handleChange(kn)},ft.changePageSize=function(zn){var kn=ft.state.current,mn=ot(zn,ft.state,ft.props);kn=kn>mn?mn:kn,mn===0&&(kn=ft.state.current),typeof zn=="number"&&("pageSize"in ft.props||ft.setState({pageSize:zn}),"current"in ft.props||ft.setState({current:kn,currentInputValue:kn})),ft.props.onShowSizeChange(kn,zn),"onChange"in ft.props&&ft.props.onChange&&ft.props.onChange(kn,zn)},ft.handleChange=function(zn){var kn=ft.props,mn=kn.disabled,ei=kn.onChange,Pi=ft.state,Hn=Pi.pageSize,bn=Pi.current,wi=Pi.currentInputValue;if(ft.isValid(zn)&&!mn){var Zi=ot(void 0,ft.state,ft.props),Hi=zn;return zn>Zi?Hi=Zi:zn<1&&(Hi=1),"current"in ft.props||ft.setState({current:Hi}),Hi!==wi&&ft.setState({currentInputValue:Hi}),ei(Hi,Hn),Hi}return bn},ft.prev=function(){ft.hasPrev()&&ft.handleChange(ft.state.current-1)},ft.next=function(){ft.hasNext()&&ft.handleChange(ft.state.current+1)},ft.jumpPrev=function(){ft.handleChange(ft.getJumpPrevPage())},ft.jumpNext=function(){ft.handleChange(ft.getJumpNextPage())},ft.hasPrev=function(){return ft.state.current>1},ft.hasNext=function(){return ft.state.current2?mn-2:0),Pi=2;Pi=Sn?rn=Sn:rn=Number(Gt),rn}},{key:"getShowSizeChanger",value:function(){var ft=this.props,Gt=ft.showSizeChanger,Sn=ft.total,an=ft.totalBoundaryShowSizeChanger;return typeof Gt!="undefined"?Gt:Sn>an}},{key:"render",value:function(){var ft=this.props,Gt=ft.prefixCls,Sn=ft.className,an=ft.style,rn=ft.disabled,zn=ft.hideOnSinglePage,kn=ft.total,mn=ft.locale,ei=ft.showQuickJumper,Pi=ft.showLessItems,Hn=ft.showTitle,bn=ft.showTotal,wi=ft.simple,Zi=ft.itemRender,Hi=ft.showPrevNextJumpers,rr=ft.jumpPrevIcon,_r=ft.jumpNextIcon,gi=ft.selectComponentClass,di=ft.selectPrefixCls,xi=ft.pageSizeOptions,$i=this.state,Ri=$i.current,Kr=$i.pageSize,Sr=$i.currentInputValue;if(zn===!0&&kn<=Kr)return null;var Ne=ot(void 0,this.state,this.props),Ci=[],wr=null,Pn=null,Si=null,Wi=null,qi=null,$n=ei&&ei.goButton,qn=Pi?1:2,Zt=Ri-1>0?Ri-1:0,$t=Ri+1kn?kn:Ri*Kr]));if(wi){$n&&(typeof $n=="boolean"?qi=ke.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},mn.jump_to_confirm):qi=ke.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},$n),qi=ke.createElement("li",{title:Hn?"".concat(mn.jump_to).concat(Ri,"/").concat(Ne):null,className:"".concat(Gt,"-simple-pager")},qi));var cn=this.renderPrev(Zt);return ke.createElement("ul",(0,le.Z)({className:vt()(Gt,"".concat(Gt,"-simple"),(0,Ie.Z)({},"".concat(Gt,"-disabled"),rn),Sn),style:an,ref:this.paginationNode},Qe),on,cn?ke.createElement("li",{title:Hn?mn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:vt()("".concat(Gt,"-prev"),(0,Ie.Z)({},"".concat(Gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},cn):null,ke.createElement("li",{title:Hn?"".concat(Ri,"/").concat(Ne):null,className:"".concat(Gt,"-simple-pager")},ke.createElement("input",{type:"text",value:Sr,disabled:rn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ke.createElement("span",{className:"".concat(Gt,"-slash")},"/"),Ne),ke.createElement("li",{title:Hn?mn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:vt()("".concat(Gt,"-next"),(0,Ie.Z)({},"".concat(Gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext($t)),qi)}if(Ne<=3+qn*2){var At={locale:mn,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Hn,itemRender:Zi};Ne||Ci.push(ke.createElement(Ye,(0,le.Z)({},At,{key:"noPager",page:1,className:"".concat(Gt,"-item-disabled")})));for(var ht=1;ht<=Ne;ht+=1){var en=Ri===ht;Ci.push(ke.createElement(Ye,(0,le.Z)({},At,{key:ht,page:ht,active:en})))}}else{var fn=Pi?mn.prev_3:mn.prev_5,Rn=Pi?mn.next_3:mn.next_5,Qn=Zi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rr,"prev page")),Et=Zi(this.getJumpNextPage(),"jump-next",this.getItemIcon(_r,"next page"));Hi&&(wr=Qn?ke.createElement("li",{title:Hn?fn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:vt()("".concat(Gt,"-jump-prev"),(0,Ie.Z)({},"".concat(Gt,"-jump-prev-custom-icon"),!!rr))},Qn):null,Pn=Et?ke.createElement("li",{title:Hn?Rn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:vt()("".concat(Gt,"-jump-next"),(0,Ie.Z)({},"".concat(Gt,"-jump-next-custom-icon"),!!_r))},Et):null),Wi=ke.createElement(Ye,{locale:mn,last:!0,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ne,page:Ne,active:!1,showTitle:Hn,itemRender:Zi}),Si=ke.createElement(Ye,{locale:mn,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Hn,itemRender:Zi});var wn=Math.max(1,Ri-qn),Kn=Math.min(Ri+qn,Ne);Ri-1<=qn&&(Kn=1+qn*2),Ne-Ri<=qn&&(wn=Ne-qn*2);for(var Ei=wn;Ei<=Kn;Ei+=1){var tn=Ri===Ei;Ci.push(ke.createElement(Ye,{locale:mn,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ei,page:Ei,active:tn,showTitle:Hn,itemRender:Zi}))}Ri-1>=qn*2&&Ri!==3&&(Ci[0]=(0,ke.cloneElement)(Ci[0],{className:"".concat(Gt,"-item-after-jump-prev")}),Ci.unshift(wr)),Ne-Ri>=qn*2&&Ri!==Ne-2&&(Ci[Ci.length-1]=(0,ke.cloneElement)(Ci[Ci.length-1],{className:"".concat(Gt,"-item-before-jump-next")}),Ci.push(Pn)),wn!==1&&Ci.unshift(Si),Kn!==Ne&&Ci.push(Wi)}var sn=!this.hasPrev()||!Ne,In=!this.hasNext()||!Ne,Oi=this.renderPrev(Zt),Di=this.renderNext($t);return ke.createElement("ul",(0,le.Z)({className:vt()(Gt,Sn,(0,Ie.Z)({},"".concat(Gt,"-disabled"),rn)),style:an,ref:this.paginationNode},Qe),on,Oi?ke.createElement("li",{title:Hn?mn.prev_page:null,onClick:this.prev,tabIndex:sn?null:0,onKeyPress:this.runIfEnterPrev,className:vt()("".concat(Gt,"-prev"),(0,Ie.Z)({},"".concat(Gt,"-disabled"),sn)),"aria-disabled":sn},Oi):null,Ci,Di?ke.createElement("li",{title:Hn?mn.next_page:null,onClick:this.next,tabIndex:In?null:0,onKeyPress:this.runIfEnterNext,className:vt()("".concat(Gt,"-next"),(0,Ie.Z)({},"".concat(Gt,"-disabled"),In)),"aria-disabled":In},Di):null,ke.createElement(je,{disabled:rn,locale:mn,rootPrefixCls:Gt,selectComponentClass:gi,selectPrefixCls:di,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ri,pageSize:Kr,pageSizeOptions:xi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:$n}))}}],[{key:"getDerivedStateFromProps",value:function(ft,Gt){var Sn={};if("current"in ft&&(Sn.current=ft.current,ft.current!==Gt.current&&(Sn.currentInputValue=Sn.current)),"pageSize"in ft&&ft.pageSize!==Gt.pageSize){var an=Gt.current,rn=ot(ft.pageSize,Gt,ft);an=an>rn?rn:an,"current"in ft||(Sn.current=an,Sn.currentInputValue=an),Sn.pageSize=ft.pageSize}return Sn}}]),Lt}(ke.Component);Tt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:dt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:dt,locale:Le.Z,style:{},itemRender:Nt,totalBoundaryShowSizeChanger:50};var xt=Tt,Ot=pe(22075),Wt=pe(36355),Dt=pe(19716),tt=pe(8628),Ve=pe(9763),_t=pe(57809);const vn=at=>ke.createElement(_t.default,Object.assign({},at,{showSearch:!0,size:"small"})),yn=at=>ke.createElement(_t.default,Object.assign({},at,{showSearch:!0,size:"middle"}));vn.Option=_t.default.Option,yn.Option=_t.default.Option;var zt=pe(9937),qt=pe(17313),ln=pe(83116),Gn=pe(37613);const un=at=>{const{componentCls:qe}=at;return{[`${qe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${qe}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${qe}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed"}}},[`&${qe}-disabled`]:{cursor:"not-allowed",[`${qe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:at.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:at.colorBorder,backgroundColor:at.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:at.itemActiveBgDisabled},a:{color:at.itemActiveColorDisabled}}},[`${qe}-item-link`]:{color:at.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${qe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${qe}-simple-pager`]:{color:at.colorTextDisabled},[`${qe}-jump-prev, ${qe}-jump-next`]:{[`${qe}-item-link-icon`]:{opacity:0},[`${qe}-item-ellipsis`]:{opacity:1}}},[`&${qe}-simple`]:{[`${qe}-prev, ${qe}-next`]:{[`&${qe}-disabled ${qe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},_n=at=>{const{componentCls:qe}=at;return{[`&${qe}-mini ${qe}-total-text, &${qe}-mini ${qe}-simple-pager`]:{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`},[`&${qe}-mini ${qe}-item`]:{minWidth:at.itemSizeSM,height:at.itemSizeSM,margin:0,lineHeight:`${at.itemSizeSM-2}px`},[`&${qe}-mini:not(${qe}-disabled) ${qe}-item:not(${qe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive}},[`&${qe}-mini ${qe}-prev, &${qe}-mini ${qe}-next`]:{minWidth:at.itemSizeSM,height:at.itemSizeSM,margin:0,lineHeight:`${at.itemSizeSM}px`},[`&${qe}-mini:not(${qe}-disabled)`]:{[`${qe}-prev, ${qe}-next`]:{[`&:hover ${qe}-item-link`]:{backgroundColor:at.colorBgTextHover},[`&:active ${qe}-item-link`]:{backgroundColor:at.colorBgTextActive},[`&${qe}-disabled:hover ${qe}-item-link`]:{backgroundColor:"transparent"}}},[` &${qe}-mini ${qe}-prev ${qe}-item-link, &${qe}-mini ${qe}-next ${qe}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`}},[`&${qe}-mini ${qe}-jump-prev, &${qe}-mini ${qe}-jump-next`]:{height:at.itemSizeSM,marginInlineEnd:0,lineHeight:`${at.itemSizeSM}px`},[`&${qe}-mini ${qe}-options`]:{marginInlineStart:at.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:at.miniOptionsSizeChangerTop},"&-quick-jumper":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,zt.x0)(at)),{width:at.paginationMiniQuickJumperInputWidth,height:at.controlHeightSM})}}}},St=at=>{const{componentCls:qe}=at;return{[` &${qe}-simple ${qe}-prev, &${qe}-simple ${qe}-next `]:{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`,verticalAlign:"top",[`${qe}-item-link`]:{height:at.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive},"&::after":{height:at.itemSizeSM,lineHeight:`${at.itemSizeSM}px`}}},[`&${qe}-simple ${qe}-simple-pager`]:{display:"inline-block",height:at.itemSizeSM,marginInlineEnd:at.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:at.marginXS,padding:`0 ${at.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:at.itemInputBg,border:`${at.lineWidth}px ${at.lineType} ${at.colorBorder}`,borderRadius:at.borderRadius,outline:"none",transition:`border-color ${at.motionDurationMid}`,color:"inherit","&:hover":{borderColor:at.colorPrimary},"&:focus":{borderColor:at.colorPrimaryHover,boxShadow:`${at.inputOutlineOffset}px 0 ${at.controlOutlineWidth}px ${at.controlOutline}`},"&[disabled]":{color:at.colorTextDisabled,backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,cursor:"not-allowed"}}}}},Zn=at=>{const{componentCls:qe}=at;return{[`${qe}-jump-prev, ${qe}-jump-next`]:{outline:0,[`${qe}-item-container`]:{position:"relative",[`${qe}-item-link-icon`]:{color:at.colorPrimary,fontSize:at.fontSizeSM,opacity:0,transition:`all ${at.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${qe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:at.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:at.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:at.paginationEllipsisTextIndent,opacity:1,transition:`all ${at.motionDurationMid}`}},"&:hover":{[`${qe}-item-link-icon`]:{opacity:1},[`${qe}-item-ellipsis`]:{opacity:0}}},[` ${qe}-prev, ${qe}-jump-prev, ${qe}-jump-next `]:{marginInlineEnd:at.marginXS},[` ${qe}-prev, ${qe}-next, ${qe}-jump-prev, ${qe}-jump-next `]:{display:"inline-block",minWidth:at.itemSize,height:at.itemSize,color:at.colorText,fontFamily:at.fontFamily,lineHeight:`${at.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:at.borderRadius,cursor:"pointer",transition:`all ${at.motionDurationMid}`},[`${qe}-prev, ${qe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:at.colorText,cursor:"pointer",userSelect:"none"},[`${qe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:at.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${at.lineWidth}px ${at.lineType} transparent`,borderRadius:at.borderRadius,outline:"none",transition:`all ${at.motionDurationMid}`},[`&:hover ${qe}-item-link`]:{backgroundColor:at.colorBgTextHover},[`&:active ${qe}-item-link`]:{backgroundColor:at.colorBgTextActive},[`&${qe}-disabled:hover`]:{[`${qe}-item-link`]:{backgroundColor:"transparent"}}},[`${qe}-slash`]:{marginInlineEnd:at.paginationSlashMarginInlineEnd,marginInlineStart:at.paginationSlashMarginInlineStart},[`${qe}-options`]:{display:"inline-block",marginInlineStart:at.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:at.controlHeight,marginInlineStart:at.marginXS,lineHeight:`${at.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,zt.ik)(at)),{width:at.controlHeightLG*1.25,height:at.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:at.marginXS,marginInlineEnd:at.marginXS})}}}},ci=at=>{const{componentCls:qe}=at;return{[`${qe}-item`]:{display:"inline-block",minWidth:at.itemSize,height:at.itemSize,marginInlineEnd:at.marginXS,fontFamily:at.fontFamily,lineHeight:`${at.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${at.lineWidth}px ${at.lineType} transparent`,borderRadius:at.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${at.paginationItemPaddingInline}px`,color:at.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${qe}-item-active)`]:{"&:hover":{transition:`all ${at.motionDurationMid}`,backgroundColor:at.colorBgTextHover},"&:active":{backgroundColor:at.colorBgTextActive}},"&-active":{fontWeight:at.fontWeightStrong,backgroundColor:at.itemActiveBg,borderColor:at.colorPrimary,a:{color:at.colorPrimary},"&:hover":{borderColor:at.colorPrimaryHover},"&:hover a":{color:at.colorPrimaryHover}}}}},Ze=at=>{const{componentCls:qe}=at;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qt.Wf)(at)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${qe}-total-text`]:{display:"inline-block",height:at.itemSize,marginInlineEnd:at.marginXS,lineHeight:`${at.itemSize-2}px`,verticalAlign:"middle"}}),ci(at)),Zn(at)),St(at)),_n(at)),un(at)),{[`@media only screen and (max-width: ${at.screenLG}px)`]:{[`${qe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${at.screenSM}px)`]:{[`${qe}-options`]:{display:"none"}}}),[`&${at.componentCls}-rtl`]:{direction:"rtl"}}},be=at=>{const{componentCls:qe}=at;return{[`${qe}${qe}-disabled:not(${qe}-mini)`]:{"&, &:hover":{[`${qe}-item-link`]:{borderColor:at.colorBorder}},"&:focus-visible":{[`${qe}-item-link`]:{borderColor:at.colorBorder}},[`${qe}-item, ${qe}-item-link`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,[`&:hover:not(${qe}-item-active)`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,a:{color:at.colorTextDisabled}},[`&${qe}-item-active`]:{backgroundColor:at.itemActiveBgDisabled}},[`${qe}-prev, ${qe}-next`]:{"&:hover button":{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder,color:at.colorTextDisabled},[`${qe}-item-link`]:{backgroundColor:at.colorBgContainerDisabled,borderColor:at.colorBorder}}},[`${qe}:not(${qe}-mini)`]:{[`${qe}-prev, ${qe}-next`]:{"&:hover button":{borderColor:at.colorPrimaryHover,backgroundColor:at.itemBg},[`${qe}-item-link`]:{backgroundColor:at.itemLinkBg,borderColor:at.colorBorder},[`&:hover ${qe}-item-link`]:{borderColor:at.colorPrimary,backgroundColor:at.itemBg,color:at.colorPrimary},[`&${qe}-disabled`]:{[`${qe}-item-link`]:{borderColor:at.colorBorder,color:at.colorTextDisabled}}},[`${qe}-item`]:{backgroundColor:at.itemBg,border:`${at.lineWidth}px ${at.lineType} ${at.colorBorder}`,[`&:hover:not(${qe}-item-active)`]:{borderColor:at.colorPrimary,backgroundColor:at.itemBg,a:{color:at.colorPrimary}},"&-active":{borderColor:at.colorPrimary}}}}},Pe=at=>{const{componentCls:qe}=at;return{[`${qe}:not(${qe}-disabled)`]:{[`${qe}-item`]:Object.assign({},(0,qt.Qy)(at)),[`${qe}-jump-prev, ${qe}-jump-next`]:{"&:focus-visible":Object.assign({[`${qe}-item-link-icon`]:{opacity:1},[`${qe}-item-ellipsis`]:{opacity:0}},(0,qt.oN)(at))},[`${qe}-prev, ${qe}-next`]:{[`&:focus-visible ${qe}-item-link`]:Object.assign({},(0,qt.oN)(at))}}}};var Ae=(0,ln.Z)("Pagination",at=>{const qe=(0,Gn.TS)(at,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:at.marginXXS/2,paginationMiniQuickJumperInputWidth:at.controlHeightLG*1.1,paginationItemPaddingInline:at.marginXXS*1.5,paginationEllipsisLetterSpacing:at.marginXXS/2,paginationSlashMarginInlineStart:at.marginXXS,paginationSlashMarginInlineEnd:at.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,zt.e5)(at),(0,zt.TM)(at));return[Ze(qe),Pe(qe),at.wireframe&&be(qe)]},at=>({itemBg:at.colorBgContainer,itemSize:at.controlHeight,itemSizeSM:at.controlHeightSM,itemActiveBg:at.colorBgContainer,itemLinkBg:at.colorBgContainer,itemActiveColorDisabled:at.colorTextDisabled,itemActiveBgDisabled:at.controlItemBgActiveDisabled,itemInputBg:at.colorBgContainer,miniOptionsSizeChangerTop:0})),Oe=function(at,qe){var Lt={};for(var Bt in at)Object.prototype.hasOwnProperty.call(at,Bt)&&qe.indexOf(Bt)<0&&(Lt[Bt]=at[Bt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Bt=Object.getOwnPropertySymbols(at);ft{const{prefixCls:qe,selectPrefixCls:Lt,className:Bt,rootClassName:ft,style:Gt,size:Sn,locale:an,selectComponentClass:rn,responsive:zn,showSizeChanger:kn}=at,mn=Oe(at,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ei}=(0,tt.Z)(zn),{getPrefixCls:Pi,direction:Hn,pagination:bn={}}=ke.useContext(Wt.E_),wi=Pi("pagination",qe),[Zi,Hi]=Ae(wi),rr=kn!=null?kn:bn.showSizeChanger,_r=ke.useMemo(()=>{const Ne=ke.createElement("span",{className:`${wi}-item-ellipsis`},"\u2022\u2022\u2022"),Ci=ke.createElement("button",{className:`${wi}-item-link`,type:"button",tabIndex:-1},Hn==="rtl"?ke.createElement(Ft.Z,null):ke.createElement($e.Z,null)),wr=ke.createElement("button",{className:`${wi}-item-link`,type:"button",tabIndex:-1},Hn==="rtl"?ke.createElement($e.Z,null):ke.createElement(Ft.Z,null)),Pn=ke.createElement("a",{className:`${wi}-item-link`},ke.createElement("div",{className:`${wi}-item-container`},Hn==="rtl"?ke.createElement(wt.Z,{className:`${wi}-item-link-icon`}):ke.createElement(Ct,{className:`${wi}-item-link-icon`}),Ne)),Si=ke.createElement("a",{className:`${wi}-item-link`},ke.createElement("div",{className:`${wi}-item-container`},Hn==="rtl"?ke.createElement(Ct,{className:`${wi}-item-link-icon`}):ke.createElement(wt.Z,{className:`${wi}-item-link-icon`}),Ne));return{prevIcon:Ci,nextIcon:wr,jumpPrevIcon:Pn,jumpNextIcon:Si}},[Hn,wi]),[gi]=(0,Ve.Z)("Pagination",Ot.Z),di=Object.assign(Object.assign({},gi),an),xi=(0,Dt.Z)(Sn),$i=xi==="small"||!!(ei&&!xi&&zn),Ri=Pi("select",Lt),Kr=vt()({[`${wi}-mini`]:$i,[`${wi}-rtl`]:Hn==="rtl"},bn==null?void 0:bn.className,Bt,ft,Hi),Sr=Object.assign(Object.assign({},bn==null?void 0:bn.style),Gt);return Zi(ke.createElement(xt,Object.assign({},_r,mn,{style:Sr,prefixCls:wi,selectPrefixCls:Ri,className:Kr,selectComponentClass:rn||($i?vn:yn),locale:di,showSizeChanger:rr})))},Mt=ct},39722:function(On,pn,pe){"use strict";pe.d(pn,{t5:function(){return $e}});var le=pe(92310),ke=pe.n(le),We=pe(55477),ut=pe(59301),Ge=pe(36355),Ue=pe(77578),Me=pe(17356),Ct=function(lt,vt){var Ie={};for(var te in lt)Object.prototype.hasOwnProperty.call(lt,te)&&vt.indexOf(te)<0&&(Ie[te]=lt[te]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,te=Object.getOwnPropertySymbols(lt);ee{if(!(!vt&&!Ie))return ut.createElement(ut.Fragment,null,vt&&ut.createElement("div",{className:`${lt}-title`},(0,Ue.Z)(vt)),ut.createElement("div",{className:`${lt}-inner-content`},(0,Ue.Z)(Ie)))},$e=lt=>{const{hashId:vt,prefixCls:Ie,className:te,style:ee,placement:de="top",title:se,content:he,children:ve}=lt;return ut.createElement("div",{className:ke()(vt,Ie,`${Ie}-pure`,`${Ie}-placement-${de}`,te),style:ee},ut.createElement("div",{className:`${Ie}-arrow`}),ut.createElement(We.G,Object.assign({},lt,{className:vt,prefixCls:Ie}),ve||wt(Ie,se,he)))},Ft=lt=>{const{prefixCls:vt}=lt,Ie=Ct(lt,["prefixCls"]),{getPrefixCls:te}=ut.useContext(Ge.E_),ee=te("popover",vt),[de,se]=(0,Me.Z)(ee);return de(ut.createElement($e,Object.assign({},Ie,{prefixCls:ee,hashId:se})))};pn.ZP=Ft},60324:function(On,pn,pe){"use strict";var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(77578),Ge=pe(62892),Ue=pe(36355),Me=pe(6848),Ct=pe(39722),wt=pe(17356),$e=function(vt,Ie){var te={};for(var ee in vt)Object.prototype.hasOwnProperty.call(vt,ee)&&Ie.indexOf(ee)<0&&(te[ee]=vt[ee]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ee=Object.getOwnPropertySymbols(vt);de{let{title:Ie,content:te,prefixCls:ee}=vt;return We.createElement(We.Fragment,null,Ie&&We.createElement("div",{className:`${ee}-title`},(0,ut.Z)(Ie)),We.createElement("div",{className:`${ee}-inner-content`},(0,ut.Z)(te)))},lt=We.forwardRef((vt,Ie)=>{const{prefixCls:te,title:ee,content:de,overlayClassName:se,placement:he="top",trigger:ve="hover",mouseEnterDelay:Ee=.1,mouseLeaveDelay:Be=.1,overlayStyle:Le={}}=vt,ze=$e(vt,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:je}=We.useContext(Ue.E_),Xe=je("popover",te),[Ye,dt]=(0,wt.Z)(Xe),He=je(),Nt=ke()(se,dt);return Ye(We.createElement(Me.Z,Object.assign({placement:he,trigger:ve,mouseEnterDelay:Ee,mouseLeaveDelay:Be,overlayStyle:Le},ze,{prefixCls:Xe,overlayClassName:Nt,ref:Ie,overlay:ee||de?We.createElement(Ft,{prefixCls:Xe,title:ee,content:de}):null,transitionName:(0,Ge.m)(He,"zoom-big",ze.transitionName),"data-popover-inject":!0})))});lt._InternalPanelDoNotUseOrYouWillBeFired=Ct.ZP,pn.Z=lt},17356:function(On,pn,pe){"use strict";var le=pe(17313),ke=pe(29878),We=pe(19447),ut=pe(33166),Ge=pe(83116),Ue=pe(37613);const Me=$e=>{const{componentCls:Ft,popoverColor:lt,minWidth:vt,fontWeightStrong:Ie,popoverPadding:te,boxShadowSecondary:ee,colorTextHeading:de,borderRadiusLG:se,zIndexPopup:he,marginXS:ve,colorBgElevated:Ee,popoverBg:Be}=$e;return[{[Ft]:Object.assign(Object.assign({},(0,le.Wf)($e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:he,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ee,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ft}-content`]:{position:"relative"},[`${Ft}-inner`]:{backgroundColor:Be,backgroundClip:"padding-box",borderRadius:se,boxShadow:ee,padding:te},[`${Ft}-title`]:{minWidth:vt,marginBottom:ve,color:de,fontWeight:Ie},[`${Ft}-inner-content`]:{color:lt}})},(0,We.ZP)($e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ft}-pure`]:{position:"relative",maxWidth:"none",margin:$e.sizePopupArrow,display:"inline-block",[`${Ft}-content`]:{display:"inline-block"}}}]},Ct=$e=>{const{componentCls:Ft}=$e;return{[Ft]:ut.i.map(lt=>{const vt=$e[`${lt}6`];return{[`&${Ft}-${lt}`]:{"--antd-arrow-background-color":vt,[`${Ft}-inner`]:{backgroundColor:vt},[`${Ft}-arrow`]:{background:"transparent"}}}})}},wt=$e=>{const{componentCls:Ft,lineWidth:lt,lineType:vt,colorSplit:Ie,paddingSM:te,controlHeight:ee,fontSize:de,lineHeight:se,padding:he}=$e,ve=ee-Math.round(de*se),Ee=ve/2,Be=ve/2-lt,Le=he;return{[Ft]:{[`${Ft}-inner`]:{padding:0},[`${Ft}-title`]:{margin:0,padding:`${Ee}px ${Le}px ${Be}px`,borderBottom:`${lt}px ${vt} ${Ie}`},[`${Ft}-inner-content`]:{padding:`${te}px ${Le}px`}}}};pn.Z=(0,Ge.Z)("Popover",$e=>{const{colorBgElevated:Ft,colorText:lt,wireframe:vt}=$e,Ie=(0,Ue.TS)($e,{popoverPadding:12,popoverBg:Ft,popoverColor:lt});return[Me(Ie),Ct(Ie),vt&&wt(Ie),(0,ke._y)(Ie,"zoom-big")]},$e=>({width:177,minWidth:177,zIndexPopup:$e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ve}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function(vn,yn){return ke.createElement(Ge.Z,(0,le.Z)({},vn,{ref:yn,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me,wt=pe(92310),$e=pe.n(wt),Ft=pe(90493),lt=pe(72071),vt=pe(6620),Ie=pe(18929),te=pe(10228),ee=pe(26112);function de(_t,vn){var yn=_t.disabled,zt=_t.prefixCls,qt=_t.character,ln=_t.characterRender,Gn=_t.index,un=_t.count,_n=_t.value,St=_t.allowHalf,Zn=_t.focused,ci=_t.onHover,Ze=_t.onClick,be=function(qe){ci(qe,Gn)},Pe=function(qe){Ze(qe,Gn)},Ae=function(qe){qe.keyCode===te.Z.ENTER&&Ze(qe,Gn)},Oe=Gn+1,xe=new Set([zt]);_n===0&&Gn===0&&Zn?xe.add("".concat(zt,"-focused")):St&&_n+.5>=Oe&&_nGn?"true":"false","aria-posinset":Gn+1,"aria-setsize":un,tabIndex:yn?-1:0},ke.createElement("div",{className:"".concat(zt,"-first")},ct),ke.createElement("div",{className:"".concat(zt,"-second")},ct)));return ln&&(Mt=ln(Mt,_t)),Mt}var se=ke.forwardRef(de);function he(){var _t=ke.useRef({});function vn(zt){return _t.current[zt]}function yn(zt){return function(qt){_t.current[zt]=qt}}return[vn,yn]}function ve(_t){var vn=_t.pageXOffset,yn="scrollLeft";if(typeof vn!="number"){var zt=_t.document;vn=zt.documentElement[yn],typeof vn!="number"&&(vn=zt.body[yn])}return vn}function Ee(_t){var vn,yn,zt=_t.ownerDocument,qt=zt.body,ln=zt&&zt.documentElement,Gn=_t.getBoundingClientRect();return vn=Gn.left,yn=Gn.top,vn-=ln.clientLeft||qt.clientLeft||0,yn-=ln.clientTop||qt.clientTop||0,{left:vn,top:yn}}function Be(_t){var vn=Ee(_t),yn=_t.ownerDocument,zt=yn.defaultView||yn.parentWindow;return vn.left+=ve(zt),vn.left}var Le=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ze(_t,vn){var yn,zt=_t.prefixCls,qt=zt===void 0?"rc-rate":zt,ln=_t.className,Gn=_t.defaultValue,un=_t.value,_n=_t.count,St=_n===void 0?5:_n,Zn=_t.allowHalf,ci=Zn===void 0?!1:Zn,Ze=_t.allowClear,be=Ze===void 0?!0:Ze,Pe=_t.character,Ae=Pe===void 0?"\u2605":Pe,Oe=_t.characterRender,xe=_t.disabled,ct=_t.direction,Mt=ct===void 0?"ltr":ct,at=_t.tabIndex,qe=at===void 0?0:at,Lt=_t.autoFocus,Bt=_t.onHoverChange,ft=_t.onChange,Gt=_t.onFocus,Sn=_t.onBlur,an=_t.onKeyDown,rn=_t.onMouseLeave,zn=(0,vt.Z)(_t,Le),kn=he(),mn=(0,lt.Z)(kn,2),ei=mn[0],Pi=mn[1],Hn=ke.useRef(null),bn=function(){if(!xe){var ht;(ht=Hn.current)===null||ht===void 0||ht.focus()}};ke.useImperativeHandle(vn,function(){return{focus:bn,blur:function(){if(!xe){var ht;(ht=Hn.current)===null||ht===void 0||ht.blur()}}}});var wi=(0,Ie.Z)(Gn||0,{value:un}),Zi=(0,lt.Z)(wi,2),Hi=Zi[0],rr=Zi[1],_r=(0,Ie.Z)(null),gi=(0,lt.Z)(_r,2),di=gi[0],xi=gi[1],$i=function(ht,en){var fn=Mt==="rtl",Rn=ht+1;if(ci){var Qn=ei(ht),Et=Be(Qn),wn=Qn.clientWidth;(fn&&en-Et>wn/2||!fn&&en-Et0&&!fn||en===te.Z.RIGHT&&Rn>0&&fn?(ci?Rn-=.5:Rn-=1,Ri(Rn),ht.preventDefault()):en===te.Z.LEFT&&Rn{const{componentCls:vn}=_t;return{[`${vn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:_t.marginXS},"> div":{transition:`all ${_t.motionDurationMid}, outline 0s`,"&:hover":{transform:_t.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${_t.lineWidth}px dashed ${_t.starColor}`,transform:_t.starHoverScale}},"&-first, &-second":{color:_t.starBg,transition:`all ${_t.motionDurationMid}`,userSelect:"none",[_t.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${vn}-star-first, &-half ${vn}-star-second`]:{opacity:1},[`&-half ${vn}-star-first, &-full ${vn}-star-second`]:{color:"inherit"}}}},xt=_t=>({[`&-rtl${_t.componentCls}`]:{direction:"rtl"}}),Ot=_t=>{const{componentCls:vn}=_t;return{[vn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,He.Wf)(_t)),{display:"inline-block",margin:0,padding:0,color:_t.starColor,fontSize:_t.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${vn} ${vn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Tt(_t)),{[`+ ${vn}-text`]:{display:"inline-block",marginInlineStart:_t.marginXS,fontSize:_t.fontSize}}),xt(_t))}};var Wt=(0,Nt.Z)("Rate",_t=>{const vn=(0,ot.TS)(_t,{});return[Ot(vn)]},_t=>({starColor:_t.yellow6,starSize:_t.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:_t.colorFillContent})),Dt=function(_t,vn){var yn={};for(var zt in _t)Object.prototype.hasOwnProperty.call(_t,zt)&&vn.indexOf(zt)<0&&(yn[zt]=_t[zt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,zt=Object.getOwnPropertySymbols(_t);qt{const{prefixCls:yn,className:zt,rootClassName:qt,style:ln,tooltips:Gn,character:un=ke.createElement(Ct,null)}=_t,_n=Dt(_t,["prefixCls","className","rootClassName","style","tooltips","character"]),St=(xe,ct)=>{let{index:Mt}=ct;return Gn?ke.createElement(dt.Z,{title:Gn[Mt]},xe):xe},{getPrefixCls:Zn,direction:ci,rate:Ze}=ke.useContext(Ye.E_),be=Zn("rate",yn),[Pe,Ae]=Wt(be),Oe=Object.assign(Object.assign({},Ze==null?void 0:Ze.style),ln);return Pe(ke.createElement(Xe,Object.assign({ref:vn,character:un,characterRender:St},_n,{className:$e()(zt,qt,Ae,Ze==null?void 0:Ze.className),style:Oe,prefixCls:be,direction:ci})))})},57809:function(On,pn,pe){"use strict";var le=pe(92310),ke=pe.n(le),We=pe(77861),ut=pe(2738),Ge=pe(59301),Ue=pe(53487),Me=pe(62892),Ct=pe(19080),wt=pe(36355),$e=pe(1684),Ft=pe(93891),lt=pe(19716),vt=pe(32441),Ie=pe(33234),te=pe(14154),ee=pe(58582),de=pe(84443),se=pe(66339),he=function(ze,je){var Xe={};for(var Ye in ze)Object.prototype.hasOwnProperty.call(ze,Ye)&&je.indexOf(Ye)<0&&(Xe[Ye]=ze[Ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(ze);dt{var Xe,{prefixCls:Ye,bordered:dt=!0,className:He,rootClassName:Nt,getPopupContainer:ot,popupClassName:Tt,dropdownClassName:xt,listHeight:Ot=256,placement:Wt,listItemHeight:Dt=24,size:tt,disabled:Ve,notFoundContent:_t,status:vn,builtinPlacements:yn,dropdownMatchSelectWidth:zt,popupMatchSelectWidth:qt,direction:ln,style:Gn,allowClear:un}=ze,_n=he(ze,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:St,getPrefixCls:Zn,renderEmpty:ci,direction:Ze,virtual:be,popupMatchSelectWidth:Pe,popupOverflow:Ae,select:Oe}=Ge.useContext(wt.E_),xe=Zn("select",Ye),ct=Zn(),Mt=ln!=null?ln:Ze,{compactSize:at,compactItemClassnames:qe}=(0,Ie.ri)(xe,Mt),[Lt,Bt]=(0,te.Z)(xe),ft=Ge.useMemo(()=>{const{mode:Sr}=_n;if(Sr!=="combobox")return Sr===ve?"combobox":Sr},[_n.mode]),Gt=ft==="multiple"||ft==="tags",Sn=(0,de.Z)(_n.suffixIcon,_n.showArrow),an=(Xe=qt!=null?qt:zt)!==null&&Xe!==void 0?Xe:Pe,{status:rn,hasFeedback:zn,isFormItemInput:kn,feedbackIcon:mn}=Ge.useContext(vt.aM),ei=(0,Ct.F)(rn,vn);let Pi;_t!==void 0?Pi=_t:ft==="combobox"?Pi=null:Pi=(ci==null?void 0:ci("Select"))||Ge.createElement(Ft.Z,{componentName:"Select"});const{suffixIcon:Hn,itemIcon:bn,removeIcon:wi,clearIcon:Zi}=(0,se.Z)(Object.assign(Object.assign({},_n),{multiple:Gt,hasFeedback:zn,feedbackIcon:mn,showSuffixIcon:Sn,prefixCls:xe,showArrow:_n.showArrow,componentName:"Select"})),Hi=un===!0?{clearIcon:Zi}:un,rr=(0,ut.Z)(_n,["suffixIcon","itemIcon"]),_r=ke()(Tt||xt,{[`${xe}-dropdown-${Mt}`]:Mt==="rtl"},Nt,Bt),gi=(0,lt.Z)(Sr=>{var Ne;return(Ne=tt!=null?tt:at)!==null&&Ne!==void 0?Ne:Sr}),di=Ge.useContext($e.Z),xi=Ve!=null?Ve:di,$i=ke()({[`${xe}-lg`]:gi==="large",[`${xe}-sm`]:gi==="small",[`${xe}-rtl`]:Mt==="rtl",[`${xe}-borderless`]:!dt,[`${xe}-in-form-item`]:kn},(0,Ct.Z)(xe,ei,zn),qe,Oe==null?void 0:Oe.className,He,Nt,Bt),Ri=Ge.useMemo(()=>Wt!==void 0?Wt:Mt==="rtl"?"bottomRight":"bottomLeft",[Wt,Mt]),Kr=(0,ee.Z)(yn,Ae);return Lt(Ge.createElement(We.ZP,Object.assign({ref:je,virtual:be,showSearch:Oe==null?void 0:Oe.showSearch},rr,{style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),Gn),dropdownMatchSelectWidth:an,builtinPlacements:Kr,transitionName:(0,Me.m)(ct,"slide-up",_n.transitionName),listHeight:Ot,listItemHeight:Dt,mode:ft,prefixCls:xe,placement:Ri,direction:Mt,suffixIcon:Hn,menuItemSelectedIcon:bn,removeIcon:wi,allowClear:Hi,notFoundContent:Pi,className:$i,getPopupContainer:ot||St,dropdownClassName:_r,disabled:xi})))},Be=Ge.forwardRef(Ee),Le=(0,Ue.Z)(Be);Be.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,Be.Option=We.Wx,Be.OptGroup=We.Xo,Be._InternalPanelDoNotUseOrYouWillBeFired=Le,pn.default=Be},14154:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Be}});var le=pe(17313),ke=pe(74207),We=pe(37613),ut=pe(83116),Ge=pe(13826),Ue=pe(92899);const Me=Le=>{const{optionHeight:ze,optionFontSize:je,optionLineHeight:Xe,optionPadding:Ye}=Le;return{position:"relative",display:"block",minHeight:ze,padding:Ye,color:Le.colorText,fontWeight:"normal",fontSize:je,lineHeight:Xe,boxSizing:"border-box"}};var wt=Le=>{const{antCls:ze,componentCls:je}=Le,Xe=`${je}-item`,Ye=`&${ze}-slide-up-enter${ze}-slide-up-enter-active`,dt=`&${ze}-slide-up-appear${ze}-slide-up-appear-active`,He=`&${ze}-slide-up-leave${ze}-slide-up-leave-active`,Nt=`${je}-dropdown-placement-`;return[{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,le.Wf)(Le)),{position:"absolute",top:-9999,zIndex:Le.zIndexPopup,boxSizing:"border-box",padding:Le.paddingXXS,overflow:"hidden",fontSize:Le.fontSize,fontVariant:"initial",backgroundColor:Le.colorBgElevated,borderRadius:Le.borderRadiusLG,outline:"none",boxShadow:Le.boxShadowSecondary,[` ${Ye}${Nt}bottomLeft, ${dt}${Nt}bottomLeft `]:{animationName:Ge.fJ},[` ${Ye}${Nt}topLeft, ${dt}${Nt}topLeft, ${Ye}${Nt}topRight, ${dt}${Nt}topRight `]:{animationName:Ge.Qt},[`${He}${Nt}bottomLeft`]:{animationName:Ge.Uw},[` ${He}${Nt}topLeft, ${He}${Nt}topRight `]:{animationName:Ge.ly},"&-hidden":{display:"none"},[`${Xe}`]:Object.assign(Object.assign({},Me(Le)),{cursor:"pointer",transition:`background ${Le.motionDurationSlow} ease`,borderRadius:Le.borderRadiusSM,"&-group":{color:Le.colorTextDescription,fontSize:Le.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},le.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Xe}-option-disabled)`]:{backgroundColor:Le.optionActiveBg},[`&-selected:not(${Xe}-option-disabled)`]:{color:Le.optionSelectedColor,fontWeight:Le.optionSelectedFontWeight,backgroundColor:Le.optionSelectedBg,[`${Xe}-option-state`]:{color:Le.colorPrimary}},"&-disabled":{[`&${Xe}-option-selected`]:{backgroundColor:Le.colorBgContainerDisabled},color:Le.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Le.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ge.oN)(Le,"slide-up"),(0,Ge.oN)(Le,"slide-down"),(0,Ue.Fm)(Le,"move-up"),(0,Ue.Fm)(Le,"move-down")]};const $e=2,Ft=Le=>{let{controlHeightSM:ze,controlHeight:je,lineWidth:Xe}=Le;const Ye=(je-ze)/2-Xe,dt=Math.ceil(Ye/2);return[Ye,dt]};function lt(Le,ze){const{componentCls:je,iconCls:Xe}=Le,Ye=`${je}-selection-overflow`,dt=Le.multipleSelectItemHeight,[He]=Ft(Le),Nt=ze?`${je}-${ze}`:"";return{[`${je}-multiple${Nt}`]:{fontSize:Le.fontSize,[Ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${je}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${He-$e}px ${$e*2}px`,borderRadius:Le.borderRadius,[`${je}-show-search&`]:{cursor:"text"},[`${je}-disabled&`]:{background:Le.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${$e}px 0`,lineHeight:`${dt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${je}-show-arrow ${je}-selector, &${je}-allow-clear ${je}-selector `]:{paddingInlineEnd:Le.fontSizeIcon+Le.controlPaddingHorizontal},[`${je}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:dt,marginTop:$e,marginBottom:$e,lineHeight:`${dt-Le.lineWidth*2}px`,background:Le.multipleItemBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.multipleItemBorderColor}`,borderRadius:Le.borderRadiusSM,cursor:"default",transition:`font-size ${Le.motionDurationSlow}, line-height ${Le.motionDurationSlow}, height ${Le.motionDurationSlow}`,userSelect:"none",marginInlineEnd:$e*2,paddingInlineStart:Le.paddingXS,paddingInlineEnd:Le.paddingXS/2,[`${je}-disabled&`]:{color:Le.multipleItemColorDisabled,borderColor:Le.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Le.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,le.Ro)()),{display:"inline-flex",alignItems:"center",color:Le.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Le.colorIconHover}})},[`${Ye}-item + ${Ye}-item`]:{[`${je}-selection-search`]:{marginInlineStart:0}},[`${je}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Le.inputPaddingHorizontalBase-He,"\n &-input,\n &-mirror\n ":{height:dt,fontFamily:Le.fontFamily,lineHeight:`${dt}px`,transition:`all ${Le.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${je}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Le.inputPaddingHorizontalBase,insetInlineEnd:Le.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Le.motionDurationSlow}`}}}}var Ie=Le=>{const{componentCls:ze}=Le,je=(0,We.TS)(Le,{controlHeight:Le.controlHeightSM,multipleSelectItemHeight:Le.controlHeightXS,borderRadius:Le.borderRadiusSM,borderRadiusSM:Le.borderRadiusXS}),Xe=(0,We.TS)(Le,{fontSize:Le.fontSizeLG,controlHeight:Le.controlHeightLG,multipleSelectItemHeight:Le.multipleItemHeightLG,borderRadius:Le.borderRadiusLG,borderRadiusSM:Le.borderRadius}),[,Ye]=Ft(Le);return[lt(Le),lt(je,"sm"),{[`${ze}-multiple${ze}-sm`]:{[`${ze}-selection-placeholder`]:{insetInline:Le.controlPaddingHorizontalSM-Le.lineWidth},[`${ze}-selection-search`]:{marginInlineStart:Ye}}},lt(Xe,"lg")]};function te(Le,ze){const{componentCls:je,inputPaddingHorizontalBase:Xe,borderRadius:Ye}=Le,dt=Le.controlHeight-Le.lineWidth*2,He=Math.ceil(Le.fontSize*1.25),Nt=ze?`${je}-${ze}`:"";return{[`${je}-single${Nt}`]:{fontSize:Le.fontSize,[`${je}-selector`]:Object.assign(Object.assign({},(0,le.Wf)(Le)),{display:"flex",borderRadius:Ye,[`${je}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Xe,insetInlineEnd:Xe,bottom:0,"&-input":{width:"100%"}},[` ${je}-selection-item, ${je}-selection-placeholder `]:{padding:0,lineHeight:`${dt}px`,transition:`all ${Le.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${dt}px`}},[`${je}-selection-item`]:{position:"relative",userSelect:"none"},[`${je}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${je}-selection-item:after`,`${je}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${je}-show-arrow ${je}-selection-item, &${je}-show-arrow ${je}-selection-placeholder `]:{paddingInlineEnd:He},[`&${je}-open ${je}-selection-item`]:{color:Le.colorTextPlaceholder},[`&:not(${je}-customize-input)`]:{[`${je}-selector`]:{width:"100%",height:Le.controlHeight,padding:`0 ${Xe}px`,[`${je}-selection-search-input`]:{height:dt},"&:after":{lineHeight:`${dt}px`}}},[`&${je}-customize-input`]:{[`${je}-selector`]:{"&:after":{display:"none"},[`${je}-selection-search`]:{position:"static",width:"100%"},[`${je}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Xe}px`,"&:after":{display:"none"}}}}}}}function ee(Le){const{componentCls:ze}=Le,je=Le.controlPaddingHorizontalSM-Le.lineWidth;return[te(Le),te((0,We.TS)(Le,{controlHeight:Le.controlHeightSM,borderRadius:Le.borderRadiusSM}),"sm"),{[`${ze}-single${ze}-sm`]:{[`&:not(${ze}-customize-input)`]:{[`${ze}-selection-search`]:{insetInlineStart:je,insetInlineEnd:je},[`${ze}-selector`]:{padding:`0 ${je}px`},[`&${ze}-show-arrow ${ze}-selection-search`]:{insetInlineEnd:je+Le.fontSize*1.5},[` &${ze}-show-arrow ${ze}-selection-item, &${ze}-show-arrow ${ze}-selection-placeholder `]:{paddingInlineEnd:Le.fontSize*1.5}}}},te((0,We.TS)(Le,{controlHeight:Le.singleItemHeightLG,fontSize:Le.fontSizeLG,borderRadius:Le.borderRadiusLG}),"lg")]}const de=Le=>{const{componentCls:ze,selectorBg:je}=Le;return{position:"relative",backgroundColor:je,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,transition:`all ${Le.motionDurationMid} ${Le.motionEaseInOut}`,input:{cursor:"pointer"},[`${ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${ze}-disabled&`]:{color:Le.colorTextDisabled,background:Le.colorBgContainerDisabled,cursor:"not-allowed",[`${ze}-multiple&`]:{background:Le.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(Le,ze){let je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Xe,borderHoverColor:Ye,outlineColor:dt,antCls:He}=ze,Nt=je?{[`${Xe}-selector`]:{borderColor:Ye}}:{};return{[Le]:{[`&:not(${Xe}-disabled):not(${Xe}-customize-input):not(${He}-pagination-size-changer)`]:Object.assign(Object.assign({},Nt),{[`${Xe}-focused& ${Xe}-selector`]:{borderColor:Ye,boxShadow:`0 0 0 ${ze.controlOutlineWidth}px ${dt}`,outline:0},[`&:hover ${Xe}-selector`]:{borderColor:Ye}})}}},he=Le=>{const{componentCls:ze}=Le;return{[`${ze}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ve=Le=>{const{componentCls:ze,inputPaddingHorizontalBase:je,iconCls:Xe}=Le;return{[ze]:Object.assign(Object.assign({},(0,le.Wf)(Le)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},de(Le)),he(Le)),[`${ze}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},le.vS),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},le.vS),{flex:1,color:Le.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,le.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:Le.fontSizeIcon,marginTop:-Le.fontSizeIcon/2,color:Le.colorTextQuaternary,fontSize:Le.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Xe]:{verticalAlign:"top",transition:`transform ${Le.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:Le.fontSizeIcon,height:Le.fontSizeIcon,marginTop:-Le.fontSizeIcon/2,color:Le.colorTextQuaternary,fontSize:Le.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Le.clearBg,cursor:"pointer",opacity:0,transition:`color ${Le.motionDurationMid} ease, opacity ${Le.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Le.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:je+Le.fontSize+Le.paddingXS}}}},Ee=Le=>{const{componentCls:ze}=Le;return[{[ze]:{[`&-borderless ${ze}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ze}-in-form-item`]:{width:"100%"}}},ve(Le),ee(Le),Ie(Le),wt(Le),{[`${ze}-rtl`]:{direction:"rtl"}},se(ze,(0,We.TS)(Le,{borderHoverColor:Le.colorPrimaryHover,outlineColor:Le.controlOutline})),se(`${ze}-status-error`,(0,We.TS)(Le,{borderHoverColor:Le.colorErrorHover,outlineColor:Le.colorErrorOutline}),!0),se(`${ze}-status-warning`,(0,We.TS)(Le,{borderHoverColor:Le.colorWarningHover,outlineColor:Le.colorWarningOutline}),!0),(0,ke.c)(Le,{borderElCls:`${ze}-selector`,focusElCls:`${ze}-focused`})]};var Be=(0,ut.Z)("Select",(Le,ze)=>{let{rootPrefixCls:je}=ze;const Xe=(0,We.TS)(Le,{rootPrefixCls:je,inputPaddingHorizontalBase:Le.paddingSM-1,multipleSelectItemHeight:Le.multipleItemHeight});return[Ee(Xe)]},Le=>{const{fontSize:ze,lineHeight:je,controlHeight:Xe,controlPaddingHorizontal:Ye,zIndexPopupBase:dt,colorText:He,fontWeightStrong:Nt,controlItemBgActive:ot,controlItemBgHover:Tt,colorBgContainer:xt,colorFillSecondary:Ot,controlHeightLG:Wt,controlHeightSM:Dt,colorBgContainerDisabled:tt,colorTextDisabled:Ve}=Le;return{zIndexPopup:dt+50,optionSelectedColor:He,optionSelectedFontWeight:Nt,optionSelectedBg:ot,optionActiveBg:Tt,optionPadding:`${(Xe-ze*je)/2}px ${Ye}px`,optionFontSize:ze,optionLineHeight:je,optionHeight:Xe,selectorBg:xt,clearBg:xt,singleItemHeightLG:Wt,multipleItemBg:Ot,multipleItemBorderColor:"transparent",multipleItemHeight:Dt,multipleItemHeightLG:Xe,multipleSelectorBgDisabled:tt,multipleItemColorDisabled:Ve,multipleItemBorderColorDisabled:"transparent"}})},58582:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ke}});const le=We=>{const Ge={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:We==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ge),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ge),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ge),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ge),{points:["br","tr"],offset:[0,-4]})}};function ke(We,ut){return We||le(ut)}},84443:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return le}});function le(ke,We){return We!==void 0?We:ke!==null}},66339:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ct}});var le=pe(40001),ke=pe(19248),We=pe(99267),ut=pe(84105),Ge=pe(58617),Ue=pe(47472),Me=pe(59301);function Ct(wt){let{suffixIcon:$e,clearIcon:Ft,menuItemSelectedIcon:lt,removeIcon:vt,loading:Ie,multiple:te,hasFeedback:ee,prefixCls:de,showSuffixIcon:se,feedbackIcon:he,showArrow:ve,componentName:Ee}=wt;const Be=Ft!=null?Ft:Me.createElement(ke.Z,null),Le=Ye=>$e===null&&!ee&&!ve?null:Me.createElement(Me.Fragment,null,se!==!1&&Ye,ee&&he);let ze=null;if($e!==void 0)ze=Le($e);else if(Ie)ze=Le(Me.createElement(Ge.Z,{spin:!0}));else{const Ye=`${de}-suffix`;ze=dt=>{let{open:He,showSearch:Nt}=dt;return Le(He&&Nt?Me.createElement(Ue.Z,{className:Ye}):Me.createElement(ut.Z,{className:Ye}))}}let je=null;lt!==void 0?je=lt:te?je=Me.createElement(le.Z,null):je=null;let Xe=null;return vt!==void 0?Xe=vt:Xe=Me.createElement(We.Z,null),{clearIcon:Be,suffixIcon:ze,itemIcon:je,removeIcon:Xe}}},61621:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Ae}});var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(36355),Ge=pe(2738),Me=Oe=>{const{prefixCls:xe,className:ct,style:Mt,size:at,shape:qe}=Oe,Lt=ke()({[`${xe}-lg`]:at==="large",[`${xe}-sm`]:at==="small"}),Bt=ke()({[`${xe}-circle`]:qe==="circle",[`${xe}-square`]:qe==="square",[`${xe}-round`]:qe==="round"}),ft=We.useMemo(()=>typeof at=="number"?{width:at,height:at,lineHeight:`${at}px`}:{},[at]);return We.createElement("span",{className:ke()(xe,Lt,Bt,ct),style:Object.assign(Object.assign({},ft),Mt)})},Ct=pe(93083),wt=pe(83116),$e=pe(37613);const Ft=new Ct.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),lt=Oe=>({height:Oe,lineHeight:`${Oe}px`}),vt=Oe=>Object.assign({width:Oe},lt(Oe)),Ie=Oe=>({background:Oe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ft,animationDuration:Oe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=Oe=>Object.assign({width:Oe*5,minWidth:Oe*5},lt(Oe)),ee=Oe=>{const{skeletonAvatarCls:xe,gradientFromColor:ct,controlHeight:Mt,controlHeightLG:at,controlHeightSM:qe}=Oe;return{[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct},vt(Mt)),[`${xe}${xe}-circle`]:{borderRadius:"50%"},[`${xe}${xe}-lg`]:Object.assign({},vt(at)),[`${xe}${xe}-sm`]:Object.assign({},vt(qe))}},de=Oe=>{const{controlHeight:xe,borderRadiusSM:ct,skeletonInputCls:Mt,controlHeightLG:at,controlHeightSM:qe,gradientFromColor:Lt}=Oe;return{[`${Mt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt,borderRadius:ct},te(xe)),[`${Mt}-lg`]:Object.assign({},te(at)),[`${Mt}-sm`]:Object.assign({},te(qe))}},se=Oe=>Object.assign({width:Oe},lt(Oe)),he=Oe=>{const{skeletonImageCls:xe,imageSizeBase:ct,gradientFromColor:Mt,borderRadiusSM:at}=Oe;return{[`${xe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Mt,borderRadius:at},se(ct*2)),{[`${xe}-path`]:{fill:"#bfbfbf"},[`${xe}-svg`]:Object.assign(Object.assign({},se(ct)),{maxWidth:ct*4,maxHeight:ct*4}),[`${xe}-svg${xe}-svg-circle`]:{borderRadius:"50%"}}),[`${xe}${xe}-circle`]:{borderRadius:"50%"}}},ve=(Oe,xe,ct)=>{const{skeletonButtonCls:Mt}=Oe;return{[`${ct}${Mt}-circle`]:{width:xe,minWidth:xe,borderRadius:"50%"},[`${ct}${Mt}-round`]:{borderRadius:xe}}},Ee=Oe=>Object.assign({width:Oe*2,minWidth:Oe*2},lt(Oe)),Be=Oe=>{const{borderRadiusSM:xe,skeletonButtonCls:ct,controlHeight:Mt,controlHeightLG:at,controlHeightSM:qe,gradientFromColor:Lt}=Oe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ct}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt,borderRadius:xe,width:Mt*2,minWidth:Mt*2},Ee(Mt))},ve(Oe,Mt,ct)),{[`${ct}-lg`]:Object.assign({},Ee(at))}),ve(Oe,at,`${ct}-lg`)),{[`${ct}-sm`]:Object.assign({},Ee(qe))}),ve(Oe,qe,`${ct}-sm`))},Le=Oe=>{const{componentCls:xe,skeletonAvatarCls:ct,skeletonTitleCls:Mt,skeletonParagraphCls:at,skeletonButtonCls:qe,skeletonInputCls:Lt,skeletonImageCls:Bt,controlHeight:ft,controlHeightLG:Gt,controlHeightSM:Sn,gradientFromColor:an,padding:rn,marginSM:zn,borderRadius:kn,titleHeight:mn,blockRadius:ei,paragraphLiHeight:Pi,controlHeightXS:Hn,paragraphMarginTop:bn}=Oe;return{[`${xe}`]:{display:"table",width:"100%",[`${xe}-header`]:{display:"table-cell",paddingInlineEnd:rn,verticalAlign:"top",[`${ct}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:an},vt(ft)),[`${ct}-circle`]:{borderRadius:"50%"},[`${ct}-lg`]:Object.assign({},vt(Gt)),[`${ct}-sm`]:Object.assign({},vt(Sn))},[`${xe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Mt}`]:{width:"100%",height:mn,background:an,borderRadius:ei,[`+ ${at}`]:{marginBlockStart:Sn}},[`${at}`]:{padding:0,"> li":{width:"100%",height:Pi,listStyle:"none",background:an,borderRadius:ei,"+ li":{marginBlockStart:Hn}}},[`${at}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${xe}-content`]:{[`${Mt}, ${at} > li`]:{borderRadius:kn}}},[`${xe}-with-avatar ${xe}-content`]:{[`${Mt}`]:{marginBlockStart:zn,[`+ ${at}`]:{marginBlockStart:bn}}},[`${xe}${xe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Be(Oe)),ee(Oe)),de(Oe)),he(Oe)),[`${xe}${xe}-block`]:{width:"100%",[`${qe}`]:{width:"100%"},[`${Lt}`]:{width:"100%"}},[`${xe}${xe}-active`]:{[` ${Mt}, ${at} > li, ${ct}, ${qe}, ${Lt}, ${Bt} `]:Object.assign({},Ie(Oe))}}};var ze=(0,wt.Z)("Skeleton",Oe=>{const{componentCls:xe}=Oe,ct=(0,$e.TS)(Oe,{skeletonAvatarCls:`${xe}-avatar`,skeletonTitleCls:`${xe}-title`,skeletonParagraphCls:`${xe}-paragraph`,skeletonButtonCls:`${xe}-button`,skeletonInputCls:`${xe}-input`,skeletonImageCls:`${xe}-image`,imageSizeBase:Oe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Oe.gradientFromColor} 25%, ${Oe.gradientToColor} 37%, ${Oe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Le(ct)]},Oe=>{const{colorFillContent:xe,colorFill:ct}=Oe,Mt=xe,at=ct;return{color:Mt,colorGradientEnd:at,gradientFromColor:Mt,gradientToColor:at,titleHeight:Oe.controlHeight/2,blockRadius:Oe.borderRadiusSM,paragraphMarginTop:Oe.marginLG+Oe.marginXXS,paragraphLiHeight:Oe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Xe=Oe=>{const{prefixCls:xe,className:ct,rootClassName:Mt,active:at,shape:qe="circle",size:Lt="default"}=Oe,{getPrefixCls:Bt}=We.useContext(ut.E_),ft=Bt("skeleton",xe),[Gt,Sn]=ze(ft),an=(0,Ge.Z)(Oe,["prefixCls","className"]),rn=ke()(ft,`${ft}-element`,{[`${ft}-active`]:at},ct,Mt,Sn);return Gt(We.createElement("div",{className:rn},We.createElement(Me,Object.assign({prefixCls:`${ft}-avatar`,shape:qe,size:Lt},an))))},dt=Oe=>{const{prefixCls:xe,className:ct,rootClassName:Mt,active:at,block:qe=!1,size:Lt="default"}=Oe,{getPrefixCls:Bt}=We.useContext(ut.E_),ft=Bt("skeleton",xe),[Gt,Sn]=ze(ft),an=(0,Ge.Z)(Oe,["prefixCls"]),rn=ke()(ft,`${ft}-element`,{[`${ft}-active`]:at,[`${ft}-block`]:qe},ct,Mt,Sn);return Gt(We.createElement("div",{className:rn},We.createElement(Me,Object.assign({prefixCls:`${ft}-button`,size:Lt},an))))};const He="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 ot=Oe=>{const{prefixCls:xe,className:ct,rootClassName:Mt,style:at,active:qe}=Oe,{getPrefixCls:Lt}=We.useContext(ut.E_),Bt=Lt("skeleton",xe),[ft,Gt]=ze(Bt),Sn=ke()(Bt,`${Bt}-element`,{[`${Bt}-active`]:qe},ct,Mt,Gt);return ft(We.createElement("div",{className:Sn},We.createElement("div",{className:ke()(`${Bt}-image`,ct),style:at},We.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Bt}-image-svg`},We.createElement("path",{d:He,className:`${Bt}-image-path`})))))},xt=Oe=>{const{prefixCls:xe,className:ct,rootClassName:Mt,active:at,block:qe,size:Lt="default"}=Oe,{getPrefixCls:Bt}=We.useContext(ut.E_),ft=Bt("skeleton",xe),[Gt,Sn]=ze(ft),an=(0,Ge.Z)(Oe,["prefixCls"]),rn=ke()(ft,`${ft}-element`,{[`${ft}-active`]:at,[`${ft}-block`]:qe},ct,Mt,Sn);return Gt(We.createElement("div",{className:rn},We.createElement(Me,Object.assign({prefixCls:`${ft}-input`,size:Lt},an))))},Ot=pe(96663),Wt={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"},Dt=Wt,tt=pe(7657),Ve=function(xe,ct){return We.createElement(tt.Z,(0,Ot.Z)({},xe,{ref:ct,icon:Dt}))},_t=We.forwardRef(Ve),vn=_t,zt=Oe=>{const{prefixCls:xe,className:ct,rootClassName:Mt,style:at,active:qe,children:Lt}=Oe,{getPrefixCls:Bt}=We.useContext(ut.E_),ft=Bt("skeleton",xe),[Gt,Sn]=ze(ft),an=ke()(ft,`${ft}-element`,{[`${ft}-active`]:qe},Sn,ct,Mt),rn=Lt!=null?Lt:We.createElement(vn,null);return Gt(We.createElement("div",{className:an},We.createElement("div",{className:ke()(`${ft}-image`,ct),style:at},rn)))},qt=pe(19127),Gn=Oe=>{const xe=Bt=>{const{width:ft,rows:Gt=2}=Oe;if(Array.isArray(ft))return ft[Bt];if(Gt-1===Bt)return ft},{prefixCls:ct,className:Mt,style:at,rows:qe}=Oe,Lt=(0,qt.Z)(Array(qe)).map((Bt,ft)=>We.createElement("li",{key:ft,style:{width:xe(ft)}}));return We.createElement("ul",{className:ke()(ct,Mt),style:at},Lt)},_n=Oe=>{let{prefixCls:xe,className:ct,width:Mt,style:at}=Oe;return We.createElement("h3",{className:ke()(xe,ct),style:Object.assign({width:Mt},at)})};function St(Oe){return Oe&&typeof Oe=="object"?Oe:{}}function Zn(Oe,xe){return Oe&&!xe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ci(Oe,xe){return!Oe&&xe?{width:"38%"}:Oe&&xe?{width:"50%"}:{}}function Ze(Oe,xe){const ct={};return(!Oe||!xe)&&(ct.width="61%"),!Oe&&xe?ct.rows=3:ct.rows=2,ct}const be=Oe=>{const{prefixCls:xe,loading:ct,className:Mt,rootClassName:at,style:qe,children:Lt,avatar:Bt=!1,title:ft=!0,paragraph:Gt=!0,active:Sn,round:an}=Oe,{getPrefixCls:rn,direction:zn,skeleton:kn}=We.useContext(ut.E_),mn=rn("skeleton",xe),[ei,Pi]=ze(mn);if(ct||!("loading"in Oe)){const Hn=!!Bt,bn=!!ft,wi=!!Gt;let Zi;if(Hn){const _r=Object.assign(Object.assign({prefixCls:`${mn}-avatar`},Zn(bn,wi)),St(Bt));Zi=We.createElement("div",{className:`${mn}-header`},We.createElement(Me,Object.assign({},_r)))}let Hi;if(bn||wi){let _r;if(bn){const di=Object.assign(Object.assign({prefixCls:`${mn}-title`},ci(Hn,wi)),St(ft));_r=We.createElement(_n,Object.assign({},di))}let gi;if(wi){const di=Object.assign(Object.assign({prefixCls:`${mn}-paragraph`},Ze(Hn,bn)),St(Gt));gi=We.createElement(Gn,Object.assign({},di))}Hi=We.createElement("div",{className:`${mn}-content`},_r,gi)}const rr=ke()(mn,{[`${mn}-with-avatar`]:Hn,[`${mn}-active`]:Sn,[`${mn}-rtl`]:zn==="rtl",[`${mn}-round`]:an},kn==null?void 0:kn.className,Mt,at,Pi);return ei(We.createElement("div",{className:rr,style:Object.assign(Object.assign({},kn==null?void 0:kn.style),qe)},Zi,Hi))}return typeof Lt!="undefined"?Lt:null};be.Button=dt,be.Avatar=Xe,be.Input=xt,be.Image=ot,be.Node=zt;var Pe=be,Ae=Pe},81327:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return de}});var le=pe(59301),ke=pe(92310),We=pe.n(ke),ut=pe(11592),Ge=pe(36355),Ue=pe(33234);const Me=le.createContext({latestIndex:0}),Ct=Me.Provider;var $e=se=>{let{className:he,index:ve,children:Ee,split:Be,style:Le}=se;const{latestIndex:ze}=le.useContext(Me);return Ee==null?null:le.createElement(le.Fragment,null,le.createElement("div",{className:he,style:Le},Ee),ve{var ve,Ee;const{getPrefixCls:Be,space:Le,direction:ze}=le.useContext(Ge.E_),{size:je=(Le==null?void 0:Le.size)||"small",align:Xe,className:Ye,rootClassName:dt,children:He,direction:Nt="horizontal",prefixCls:ot,split:Tt,style:xt,wrap:Ot=!1,classNames:Wt,styles:Dt}=se,tt=Ie(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ve,_t]=Array.isArray(je)?je:[je,je],vn=lt(_t),yn=lt(Ve),zt=vt(_t),qt=vt(Ve),ln=(0,ut.Z)(He,{keepEmpty:!0}),Gn=Xe===void 0&&Nt==="horizontal"?"center":Xe,un=Be("space",ot),[_n,St]=(0,Ft.Z)(un),Zn=We()(un,Le==null?void 0:Le.className,St,`${un}-${Nt}`,{[`${un}-rtl`]:ze==="rtl",[`${un}-align-${Gn}`]:Gn,[`${un}-gap-row-${_t}`]:vn,[`${un}-gap-col-${Ve}`]:yn},Ye,dt),ci=We()(`${un}-item`,(ve=Wt==null?void 0:Wt.item)!==null&&ve!==void 0?ve:(Ee=Le==null?void 0:Le.classNames)===null||Ee===void 0?void 0:Ee.item);let Ze=0;const be=ln.map((Oe,xe)=>{var ct,Mt;Oe!=null&&(Ze=xe);const at=Oe&&Oe.key||`${ci}-${xe}`;return le.createElement($e,{className:ci,key:at,index:xe,split:Tt,style:(ct=Dt==null?void 0:Dt.item)!==null&&ct!==void 0?ct:(Mt=Le==null?void 0:Le.styles)===null||Mt===void 0?void 0:Mt.item},Oe)}),Pe=le.useMemo(()=>({latestIndex:Ze}),[Ze]);if(ln.length===0)return null;const Ae={};return Ot&&(Ae.flexWrap="wrap"),!yn&&qt&&(Ae.columnGap=Ve),!vn&&zt&&(Ae.rowGap=_t),_n(le.createElement("div",Object.assign({ref:he,className:Zn,style:Object.assign(Object.assign(Object.assign({},Ae),Le==null?void 0:Le.style),xt)},tt),le.createElement(Ct,{value:Pe},be)))});ee.Compact=Ue.ZP;var de=ee},31797:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return ze}});var le=pe(59301),ke=pe(56762),We=pe(92343),ut=pe(92310),Ge=pe.n(ut),Ue=pe(36355),Me=pe(61621),wt=je=>{const{value:Xe,formatter:Ye,precision:dt,decimalSeparator:He,groupSeparator:Nt="",prefixCls:ot}=je;let Tt;if(typeof Ye=="function")Tt=Ye(Xe);else{const xt=String(Xe),Ot=xt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ot||xt==="-")Tt=xt;else{const Wt=Ot[1];let Dt=Ot[2]||"0",tt=Ot[4]||"";Dt=Dt.replace(/\B(?=(\d{3})+(?!\d))/g,Nt),typeof dt=="number"&&(tt=tt.padEnd(dt,"0").slice(0,dt>0?dt:0)),tt&&(tt=`${He}${tt}`),Tt=[le.createElement("span",{key:"int",className:`${ot}-content-value-int`},Wt,Dt),tt&&le.createElement("span",{key:"decimal",className:`${ot}-content-value-decimal`},tt)]}}return le.createElement("span",{className:`${ot}-content-value`},Tt)},$e=pe(17313),Ft=pe(83116),lt=pe(37613);const vt=je=>{const{componentCls:Xe,marginXXS:Ye,padding:dt,colorTextDescription:He,titleFontSize:Nt,colorTextHeading:ot,contentFontSize:Tt,fontFamily:xt}=je;return{[`${Xe}`]:Object.assign(Object.assign({},(0,$e.Wf)(je)),{[`${Xe}-title`]:{marginBottom:Ye,color:He,fontSize:Nt},[`${Xe}-skeleton`]:{paddingTop:dt},[`${Xe}-content`]:{color:ot,fontSize:Tt,fontFamily:xt,[`${Xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Xe}-content-prefix, ${Xe}-content-suffix`]:{display:"inline-block"},[`${Xe}-content-prefix`]:{marginInlineEnd:Ye},[`${Xe}-content-suffix`]:{marginInlineStart:Ye}}})}};var Ie=(0,Ft.Z)("Statistic",je=>{const Xe=(0,lt.TS)(je,{});return[vt(Xe)]},je=>{const{fontSizeHeading3:Xe,fontSize:Ye}=je;return{titleFontSize:Ye,contentFontSize:Xe}}),ee=je=>{const{prefixCls:Xe,className:Ye,rootClassName:dt,style:He,valueStyle:Nt,value:ot=0,title:Tt,valueRender:xt,prefix:Ot,suffix:Wt,loading:Dt=!1,onMouseEnter:tt,onMouseLeave:Ve,decimalSeparator:_t=".",groupSeparator:vn=","}=je,{getPrefixCls:yn,direction:zt,statistic:qt}=le.useContext(Ue.E_),ln=yn("statistic",Xe),[Gn,un]=Ie(ln),_n=le.createElement(wt,Object.assign({decimalSeparator:_t,groupSeparator:vn,prefixCls:ln},je,{value:ot})),St=Ge()(ln,{[`${ln}-rtl`]:zt==="rtl"},qt==null?void 0:qt.className,Ye,dt,un);return Gn(le.createElement("div",{className:St,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),He),onMouseEnter:tt,onMouseLeave:Ve},Tt&&le.createElement("div",{className:`${ln}-title`},Tt),le.createElement(Me.Z,{paragraph:!1,loading:Dt,className:`${ln}-skeleton`},le.createElement("div",{style:Nt,className:`${ln}-content`},Ot&&le.createElement("span",{className:`${ln}-content-prefix`},Ot),xt?xt(_n):_n,Wt&&le.createElement("span",{className:`${ln}-content-suffix`},Wt)))))};const de=[["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 se(je,Xe){let Ye=je;const dt=/\[[^\]]*]/g,He=(Xe.match(dt)||[]).map(xt=>xt.slice(1,-1)),Nt=Xe.replace(dt,"[]"),ot=de.reduce((xt,Ot)=>{let[Wt,Dt]=Ot;if(xt.includes(Wt)){const tt=Math.floor(Ye/Dt);return Ye-=tt*Dt,xt.replace(new RegExp(`${Wt}+`,"g"),Ve=>{const _t=Ve.length;return tt.toString().padStart(_t,"0")})}return xt},Nt);let Tt=0;return ot.replace(dt,()=>{const xt=He[Tt];return Tt+=1,xt})}function he(je,Xe){const{format:Ye=""}=Xe,dt=new Date(je).getTime(),He=Date.now(),Nt=Math.max(dt-He,0);return se(Nt,Ye)}const ve=1e3/30;function Ee(je){return new Date(je).getTime()}const Be=je=>{const{value:Xe,format:Ye="HH:mm:ss",onChange:dt,onFinish:He}=je,Nt=(0,ke.Z)(),ot=le.useRef(null),Tt=()=>{He==null||He(),ot.current&&(clearInterval(ot.current),ot.current=null)},xt=()=>{const Dt=Ee(Xe);Dt>=Date.now()&&(ot.current=setInterval(()=>{Nt(),dt==null||dt(Dt-Date.now()),Dt(xt(),()=>{ot.current&&(clearInterval(ot.current),ot.current=null)}),[Xe]);const Ot=(Dt,tt)=>he(Dt,Object.assign(Object.assign({},tt),{format:Ye})),Wt=Dt=>(0,We.Tm)(Dt,{title:void 0});return le.createElement(ee,Object.assign({},je,{valueRender:Wt,formatter:Ot}))};var Le=le.memo(Be);ee.Countdown=Le;var ze=ee},15969:function(On,pn,pe){"use strict";pe.d(pn,{N:function(){return le}});const le=ke=>({color:ke.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ke.motionDurationSlow}`,"&:focus, &:hover":{color:ke.colorLinkHover},"&:active":{color:ke.colorLinkActive}})},78673:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return Nt}});var le=pe(58617),ke=pe(92310),We=pe.n(ke),ut=pe(96663),Ge=pe(90493),Ue=pe(72071),Me=pe(6620),Ct=pe(59301),wt=pe(18929),$e=pe(10228),Ft=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],lt=Ct.forwardRef(function(ot,Tt){var xt,Ot=ot.prefixCls,Wt=Ot===void 0?"rc-switch":Ot,Dt=ot.className,tt=ot.checked,Ve=ot.defaultChecked,_t=ot.disabled,vn=ot.loadingIcon,yn=ot.checkedChildren,zt=ot.unCheckedChildren,qt=ot.onClick,ln=ot.onChange,Gn=ot.onKeyDown,un=(0,Me.Z)(ot,Ft),_n=(0,wt.Z)(!1,{value:tt,defaultValue:Ve}),St=(0,Ue.Z)(_n,2),Zn=St[0],ci=St[1];function Ze(Oe,xe){var ct=Zn;return _t||(ct=Oe,ci(ct),ln==null||ln(ct,xe)),ct}function be(Oe){Oe.which===$e.Z.LEFT?Ze(!1,Oe):Oe.which===$e.Z.RIGHT&&Ze(!0,Oe),Gn==null||Gn(Oe)}function Pe(Oe){var xe=Ze(!Zn,Oe);qt==null||qt(xe,Oe)}var Ae=We()(Wt,Dt,(xt={},(0,Ge.Z)(xt,"".concat(Wt,"-checked"),Zn),(0,Ge.Z)(xt,"".concat(Wt,"-disabled"),_t),xt));return Ct.createElement("button",(0,ut.Z)({},un,{type:"button",role:"switch","aria-checked":Zn,disabled:_t,className:Ae,ref:Tt,onKeyDown:be,onClick:Pe}),vn,Ct.createElement("span",{className:"".concat(Wt,"-inner")},Ct.createElement("span",{className:"".concat(Wt,"-inner-checked")},yn),Ct.createElement("span",{className:"".concat(Wt,"-inner-unchecked")},zt)))});lt.displayName="Switch";var vt=lt,Ie=pe(14088),te=pe(36355),ee=pe(1684),de=pe(19716),se=pe(64993),he=pe(17313),ve=pe(83116),Ee=pe(37613);const Be=ot=>{const{componentCls:Tt,trackHeightSM:xt,trackPadding:Ot,trackMinWidthSM:Wt,innerMinMarginSM:Dt,innerMaxMarginSM:tt,handleSizeSM:Ve}=ot,_t=`${Tt}-inner`;return{[Tt]:{[`&${Tt}-small`]:{minWidth:Wt,height:xt,lineHeight:`${xt}px`,[`${Tt}-inner`]:{paddingInlineStart:tt,paddingInlineEnd:Dt,[`${_t}-checked`]:{marginInlineStart:`calc(-100% + ${Ve+Ot*2}px - ${tt*2}px)`,marginInlineEnd:`calc(100% - ${Ve+Ot*2}px + ${tt*2}px)`},[`${_t}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`${Tt}-handle`]:{width:Ve,height:Ve},[`${Tt}-loading-icon`]:{top:(Ve-ot.switchLoadingIconSize)/2,fontSize:ot.switchLoadingIconSize},[`&${Tt}-checked`]:{[`${Tt}-inner`]:{paddingInlineStart:Dt,paddingInlineEnd:tt,[`${_t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_t}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve+Ot*2}px + ${tt*2}px)`,marginInlineEnd:`calc(-100% + ${Ve+Ot*2}px - ${tt*2}px)`}},[`${Tt}-handle`]:{insetInlineStart:`calc(100% - ${Ve+Ot}px)`}},[`&:not(${Tt}-disabled):active`]:{[`&:not(${Tt}-checked) ${_t}`]:{[`${_t}-unchecked`]:{marginInlineStart:ot.marginXXS/2,marginInlineEnd:-ot.marginXXS/2}},[`&${Tt}-checked ${_t}`]:{[`${_t}-checked`]:{marginInlineStart:-ot.marginXXS/2,marginInlineEnd:ot.marginXXS/2}}}}}}},Le=ot=>{const{componentCls:Tt,handleSize:xt}=ot;return{[Tt]:{[`${Tt}-loading-icon${ot.iconCls}`]:{position:"relative",top:(xt-ot.fontSize)/2,color:ot.switchLoadingIconColor,verticalAlign:"top"},[`&${Tt}-checked ${Tt}-loading-icon`]:{color:ot.switchColor}}}},ze=ot=>{const{componentCls:Tt,motion:xt,trackPadding:Ot,handleBg:Wt,handleShadow:Dt,handleSize:tt}=ot,Ve=`${Tt}-handle`;return{[Tt]:{[Ve]:{position:"absolute",top:Ot,insetInlineStart:Ot,width:tt,height:tt,transition:`all ${ot.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Wt,borderRadius:tt/2,boxShadow:Dt,transition:`all ${ot.switchDuration} ease-in-out`,content:'""'}},[`&${Tt}-checked ${Ve}`]:{insetInlineStart:`calc(100% - ${tt+Ot}px)`},[`&:not(${Tt}-disabled):active`]:xt?{[`${Ve}::before`]:{insetInlineEnd:ot.switchHandleActiveInset,insetInlineStart:0},[`&${Tt}-checked ${Ve}::before`]:{insetInlineEnd:0,insetInlineStart:ot.switchHandleActiveInset}}:{}}}},je=ot=>{const{componentCls:Tt,trackHeight:xt,trackPadding:Ot,innerMinMargin:Wt,innerMaxMargin:Dt,handleSize:tt}=ot,Ve=`${Tt}-inner`;return{[Tt]:{[Ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Dt,paddingInlineEnd:Wt,transition:`padding-inline-start ${ot.switchDuration} ease-in-out, padding-inline-end ${ot.switchDuration} ease-in-out`,[`${Ve}-checked, ${Ve}-unchecked`]:{display:"block",color:ot.colorTextLightSolid,fontSize:ot.fontSizeSM,transition:`margin-inline-start ${ot.switchDuration} ease-in-out, margin-inline-end ${ot.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${tt+Ot*2}px - ${Dt*2}px)`,marginInlineEnd:`calc(100% - ${tt+Ot*2}px + ${Dt*2}px)`},[`${Ve}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`&${Tt}-checked ${Ve}`]:{paddingInlineStart:Wt,paddingInlineEnd:Dt,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${tt+Ot*2}px + ${Dt*2}px)`,marginInlineEnd:`calc(-100% + ${tt+Ot*2}px - ${Dt*2}px)`}},[`&:not(${Tt}-disabled):active`]:{[`&:not(${Tt}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:Ot*2,marginInlineEnd:-Ot*2}},[`&${Tt}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:-Ot*2,marginInlineEnd:Ot*2}}}}}},Xe=ot=>{const{componentCls:Tt,trackHeight:xt,trackMinWidth:Ot}=ot;return{[Tt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(ot)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ot,height:xt,lineHeight:`${xt}px`,verticalAlign:"middle",background:ot.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ot.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Tt}-disabled)`]:{background:ot.colorTextTertiary}}),(0,he.Qy)(ot)),{[`&${Tt}-checked`]:{background:ot.switchColor,[`&:hover:not(${Tt}-disabled)`]:{background:ot.colorPrimaryHover}},[`&${Tt}-loading, &${Tt}-disabled`]:{cursor:"not-allowed",opacity:ot.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Tt}-rtl`]:{direction:"rtl"}})}};var Ye=(0,ve.Z)("Switch",ot=>{const Tt=(0,Ee.TS)(ot,{switchDuration:ot.motionDurationMid,switchColor:ot.colorPrimary,switchDisabledOpacity:ot.opacityLoading,switchLoadingIconSize:ot.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ot.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe(Tt),je(Tt),ze(Tt),Le(Tt),Be(Tt)]},ot=>{const{fontSize:Tt,lineHeight:xt,controlHeight:Ot,colorWhite:Wt}=ot,Dt=Tt*xt,tt=Ot/2,Ve=2,_t=Dt-Ve*2,vn=tt-Ve*2;return{trackHeight:Dt,trackHeightSM:tt,trackMinWidth:_t*2+Ve*4,trackMinWidthSM:vn*2+Ve*2,trackPadding:Ve,handleBg:Wt,handleSize:_t,handleSizeSM:vn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:_t/2,innerMaxMargin:_t+Ve+Ve*2,innerMinMarginSM:vn/2,innerMaxMarginSM:vn+Ve+Ve*2}}),dt=function(ot,Tt){var xt={};for(var Ot in ot)Object.prototype.hasOwnProperty.call(ot,Ot)&&Tt.indexOf(Ot)<0&&(xt[Ot]=ot[Ot]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Ot=Object.getOwnPropertySymbols(ot);Wt{const{prefixCls:xt,size:Ot,disabled:Wt,loading:Dt,className:tt,rootClassName:Ve,style:_t}=ot,vn=dt(ot,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:yn,direction:zt,switch:qt}=Ct.useContext(te.E_),ln=Ct.useContext(ee.Z),Gn=(Wt!=null?Wt:ln)||Dt,un=yn("switch",xt),_n=Ct.createElement("div",{className:`${un}-handle`},Dt&&Ct.createElement(le.Z,{className:`${un}-loading-icon`})),[St,Zn]=Ye(un),ci=(0,de.Z)(Ot),Ze=We()(qt==null?void 0:qt.className,{[`${un}-small`]:ci==="small",[`${un}-loading`]:Dt,[`${un}-rtl`]:zt==="rtl"},tt,Ve,Zn),be=Object.assign(Object.assign({},qt==null?void 0:qt.style),_t);return St(Ct.createElement(Ie.Z,{component:"Switch"},Ct.createElement(vt,Object.assign({},vn,{prefixCls:un,className:Ze,style:be,disabled:Gn,ref:Tt,loadingIcon:_n}))))});He.__ANT_SWITCH=!0;var Nt=He},1710:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return Xa}});var le={},ke="rc-table-internal-hook",We=pe(72071),ut=pe(6089),Ge=pe(34280),Ue=pe(13697),Me=pe(59301),Ct=pe(4676);function wt(rt){var et=Me.createContext(void 0),Ut=function(gn){var nn=gn.value,Vn=gn.children,jn=Me.useRef(nn);jn.current=nn;var Xn=Me.useState(function(){return{getValue:function(){return jn.current},listeners:new Set}}),yi=(0,We.Z)(Xn,1),Jn=yi[0];return(0,Ge.Z)(function(){(0,Ct.unstable_batchedUpdates)(function(){Jn.listeners.forEach(function(mi){mi(nn)})})},[nn]),Me.createElement(et.Provider,{value:Jn},Vn)};return{Context:et,Provider:Ut,defaultValue:rt}}function $e(rt,et){var Ut=(0,ut.Z)(typeof et=="function"?et:function(mi){if(et===void 0)return mi;if(!Array.isArray(et))return mi[et];var or={};return et.forEach(function(Vi){or[Vi]=mi[Vi]}),or}),Xt=Me.useContext(rt==null?void 0:rt.Context),gn=Xt||{},nn=gn.listeners,Vn=gn.getValue,jn=Me.useRef();jn.current=Ut(Xt?Vn():rt==null?void 0:rt.defaultValue);var Xn=Me.useState({}),yi=(0,We.Z)(Xn,2),Jn=yi[1];return(0,Ge.Z)(function(){if(!Xt)return;function mi(or){var Vi=Ut(or);(0,Ue.Z)(jn.current,Vi,!0)||Jn({})}return nn.add(mi),function(){nn.delete(mi)}},[Xt]),jn.current}var Ft=pe(96663),lt=pe(8654);function vt(){var rt=Me.createContext(null);function et(){return Me.useContext(rt)}function Ut(gn,nn){var Vn=(0,lt.Yr)(gn),jn=function(yi,Jn){var mi=Vn?{ref:Jn}:{},or=Me.useRef(0),Vi=Me.useRef(yi),Ui=et();return Ui!==null?Me.createElement(gn,(0,Ft.Z)({},yi,mi)):((!nn||nn(Vi.current,yi))&&(or.current+=1),Vi.current=yi,Me.createElement(rt.Provider,{value:or.current},Me.createElement(gn,(0,Ft.Z)({},yi,mi))))};return Vn?Me.forwardRef(jn):jn}function Xt(gn,nn){var Vn=(0,lt.Yr)(gn),jn=function(yi,Jn){var mi=Vn?{ref:Jn}:{};return et(),Me.createElement(gn,(0,Ft.Z)({},yi,mi))};return Vn?Me.memo(Me.forwardRef(jn),nn):Me.memo(jn,nn)}return{makeImmutable:Ut,responseImmutable:Xt,useImmutableMark:et}}var Ie=vt(),te=Ie.makeImmutable,ee=Ie.responseImmutable,de=Ie.useImmutableMark,se=vt(),he=se.makeImmutable,ve=se.responseImmutable,Ee=se.useImmutableMark,Be=wt(),Le=Be;function ze(rt,et){var Ut=Me.useRef(0);Ut.current+=1;var Xt=Me.useRef(rt),gn=[];Object.keys(rt||{}).map(function(Vn){var jn;(rt==null?void 0:rt[Vn])!==((jn=Xt.current)===null||jn===void 0?void 0:jn[Vn])&&gn.push(Vn)}),Xt.current=rt;var nn=Me.useRef([]);return gn.length&&(nn.current=gn),Me.useDebugValue(Ut.current),Me.useDebugValue(nn.current.join(", ")),et&&console.log("".concat(et,":"),Ut.current,nn.current),Ut.current}var je=null,Xe=Me.memo(function(){var rt=ze();return Me.createElement("h1",null,"Render Times: ",rt)});Xe.displayName="RenderBlock";var Ye=pe(20135),dt=pe(44127),He=pe(90493),Nt=pe(92310),ot=pe.n(Nt),Tt=pe(80547),xt=pe(97938),Ot=pe(48736),Wt=Me.createContext({renderWithProps:!1}),Dt=Wt,tt="RC_TABLE_KEY";function Ve(rt){return rt==null?[]:Array.isArray(rt)?rt:[rt]}function _t(rt){var et=[],Ut={};return rt.forEach(function(Xt){for(var gn=Xt||{},nn=gn.key,Vn=gn.dataIndex,jn=nn||Ve(Vn).join("-")||tt;Ut[jn];)jn="".concat(jn,"_next");Ut[jn]=!0,et.push(jn)}),et}function vn(rt){return rt!=null}function yn(rt){return rt&&(0,Ye.Z)(rt)==="object"&&!Array.isArray(rt)&&!Me.isValidElement(rt)}function zt(rt,et,Ut,Xt,gn,nn){var Vn=Me.useContext(Dt),jn=Ee(),Xn=(0,Tt.Z)(function(){if(vn(Xt))return[Xt];var yi=et==null||et===""?[]:Array.isArray(et)?et:[et],Jn=(0,xt.Z)(rt,yi),mi=Jn,or=void 0;if(gn){var Vi=gn(Jn,rt,Ut);yn(Vi)?(mi=Vi.children,or=Vi.props,Vn.renderWithProps=!0):mi=Vi}return[mi,or]},[jn,rt,Xt,et,gn,Ut],function(yi,Jn){if(nn){var mi=(0,We.Z)(yi,2),or=mi[1],Vi=(0,We.Z)(Jn,2),Ui=Vi[1];return nn(Ui,or)}return Vn.renderWithProps?!0:!(0,Ue.Z)(yi,Jn,!0)});return Xn}function qt(rt,et,Ut,Xt){var gn=rt+et-1;return rt<=Xt&&gn>=Ut}function ln(rt,et){return $e(Le,function(Ut){var Xt=qt(rt,et||1,Ut.hoverStartRow,Ut.hoverEndRow);return[Xt,Ut.onHover]})}var Gn=function(et){var Ut=et.ellipsis,Xt=et.rowType,gn=et.children,nn,Vn=Ut===!0?{showTitle:!0}:Ut;return Vn&&(Vn.showTitle||Xt==="header")&&(typeof gn=="string"||typeof gn=="number"?nn=gn.toString():Me.isValidElement(gn)&&typeof gn.props.children=="string"&&(nn=gn.props.children)),nn};function un(rt){var et,Ut,Xt,gn,nn,Vn,jn,Xn,yi=rt.component,Jn=rt.children,mi=rt.ellipsis,or=rt.scope,Vi=rt.prefixCls,Ui=rt.className,Jr=rt.align,ir=rt.record,Rr=rt.render,jr=rt.dataIndex,vo=rt.renderIndex,Vo=rt.shouldCellUpdate,ua=rt.index,oo=rt.rowType,Wo=rt.colSpan,Ta=rt.rowSpan,uo=rt.fixLeft,To=rt.fixRight,co=rt.firstFixLeft,Ar=rt.lastFixLeft,Fo=rt.firstFixRight,ta=rt.lastFixRight,Sa=rt.appendNode,Pa=rt.additionalProps,ao=Pa===void 0?{}:Pa,ka=rt.isSticky,Va="".concat(Vi,"-cell"),bs=$e(Le,["supportSticky","allColumnsFixedLeft"]),us=bs.supportSticky,qs=bs.allColumnsFixedLeft,Ls=zt(ir,jr,vo,Jn,Rr,Vo),Za=(0,We.Z)(Ls,2),aa=Za[0],fs=Za[1],el={},Ws=typeof uo=="number"&&us,cl=typeof To=="number"&&us;Ws&&(el.position="sticky",el.left=uo),cl&&(el.position="sticky",el.right=To);var ba=(et=(Ut=(Xt=fs==null?void 0:fs.colSpan)!==null&&Xt!==void 0?Xt:ao.colSpan)!==null&&Ut!==void 0?Ut:Wo)!==null&&et!==void 0?et:1,da=(gn=(nn=(Vn=fs==null?void 0:fs.rowSpan)!==null&&Vn!==void 0?Vn:ao.rowSpan)!==null&&nn!==void 0?nn:Ta)!==null&&gn!==void 0?gn:1,wa=ln(ua,da),Xo=(0,We.Z)(wa,2),Ps=Xo[0],Uo=Xo[1],Ra=function(dl){var Fl;ir&&Uo(ua,ua+da-1),ao==null||(Fl=ao.onMouseEnter)===null||Fl===void 0||Fl.call(ao,dl)},ss=function(dl){var Fl;ir&&Uo(-1,-1),ao==null||(Fl=ao.onMouseLeave)===null||Fl===void 0||Fl.call(ao,dl)};if(ba===0||da===0)return null;var cs=(jn=ao.title)!==null&&jn!==void 0?jn:Gn({rowType:oo,ellipsis:mi,children:aa}),Al=ot()(Va,Ui,(Xn={},(0,He.Z)(Xn,"".concat(Va,"-fix-left"),Ws&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-left-first"),co&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-left-last"),Ar&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-left-all"),Ar&&qs&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-right"),cl&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-right-first"),Fo&&us),(0,He.Z)(Xn,"".concat(Va,"-fix-right-last"),ta&&us),(0,He.Z)(Xn,"".concat(Va,"-ellipsis"),mi),(0,He.Z)(Xn,"".concat(Va,"-with-append"),Sa),(0,He.Z)(Xn,"".concat(Va,"-fix-sticky"),(Ws||cl)&&ka&&us),(0,He.Z)(Xn,"".concat(Va,"-row-hover"),!fs&&Ps),Xn),ao.className,fs==null?void 0:fs.className),bl={};Jr&&(bl.textAlign=Jr);var Vl=(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},el),ao.style),bl),fs==null?void 0:fs.style),Fs=aa;return(0,Ye.Z)(Fs)==="object"&&!Array.isArray(Fs)&&!Me.isValidElement(Fs)&&(Fs=null),mi&&(Ar||Fo)&&(Fs=Me.createElement("span",{className:"".concat(Va,"-content")},Fs)),Me.createElement(yi,(0,Ft.Z)({},fs,ao,{className:Al,style:Vl,title:cs,scope:or,onMouseEnter:Ra,onMouseLeave:ss,colSpan:ba!==1?ba:null,rowSpan:da!==1?da:null}),Sa,Fs)}var _n=Me.memo(un);function St(rt,et,Ut,Xt,gn,nn){var Vn=Ut[rt]||{},jn=Ut[et]||{},Xn,yi;Vn.fixed==="left"?Xn=Xt.left[gn==="rtl"?et:rt]:jn.fixed==="right"&&(yi=Xt.right[gn==="rtl"?rt:et]);var Jn=!1,mi=!1,or=!1,Vi=!1,Ui=Ut[et+1],Jr=Ut[rt-1],ir=!(nn!=null&&nn.children);if(gn==="rtl"){if(Xn!==void 0){var Rr=Jr&&Jr.fixed==="left";Vi=!Rr&&ir}else if(yi!==void 0){var jr=Ui&&Ui.fixed==="right";or=!jr&&ir}}else if(Xn!==void 0){var vo=Ui&&Ui.fixed==="left";Jn=!vo&&ir}else if(yi!==void 0){var Vo=Jr&&Jr.fixed==="right";mi=!Vo&&ir}return{fixLeft:Xn,fixRight:yi,lastFixLeft:Jn,firstFixRight:mi,lastFixRight:or,firstFixLeft:Vi,isSticky:Xt.isSticky}}var Zn=Me.createContext({}),ci=Zn;function Ze(rt){var et=rt.className,Ut=rt.index,Xt=rt.children,gn=rt.colSpan,nn=gn===void 0?1:gn,Vn=rt.rowSpan,jn=rt.align,Xn=$e(Le,["prefixCls","direction"]),yi=Xn.prefixCls,Jn=Xn.direction,mi=Me.useContext(ci),or=mi.scrollColumnIndex,Vi=mi.stickyOffsets,Ui=mi.flattenColumns,Jr=mi.columns,ir=Ut+nn-1,Rr=ir+1===or?nn+1:nn,jr=St(Ut,Ut+Rr-1,Ui,Vi,Jn,Jr==null?void 0:Jr[Ut]);return Me.createElement(_n,(0,Ft.Z)({className:et,index:Ut,component:"td",prefixCls:yi,record:null,dataIndex:null,align:jn,colSpan:Rr,rowSpan:Vn,render:function(){return Xt}},jr))}var be=pe(6620),Pe=["children"];function Ae(rt){var et=rt.children,Ut=(0,be.Z)(rt,Pe);return Me.createElement("tr",Ut,et)}function Oe(rt){var et=rt.children;return et}Oe.Row=Ae,Oe.Cell=Ze;var xe=Oe;function ct(rt){var et=rt.children,Ut=rt.stickyOffsets,Xt=rt.flattenColumns,gn=rt.columns,nn=$e(Le,"prefixCls"),Vn=Xt.length-1,jn=Xt[Vn],Xn=Me.useMemo(function(){return{stickyOffsets:Ut,flattenColumns:Xt,scrollColumnIndex:jn!=null&&jn.scrollbar?Vn:null,columns:gn}},[jn,Xt,Vn,Ut,gn]);return Me.createElement(ci.Provider,{value:Xn},Me.createElement("tfoot",{className:"".concat(nn,"-summary")},et))}var Mt=ve(ct),at=xe,qe=pe(70425),Lt=pe(29301),Bt=pe(29194),ft=pe(24514),Gt=pe(75152),Sn=pe(26112);function an(rt,et,Ut,Xt,gn,nn,Vn){rt.push({record:et,indent:Ut,index:Vn});var jn=nn(et),Xn=gn==null?void 0:gn.has(jn);if(et&&Array.isArray(et[Xt])&&Xn)for(var yi=0;yi1?co-1:0),Fo=1;Fo=0;jn-=1){var Xn=et[jn],yi=Ut&&Ut[jn],Jn=yi&&yi[_r];if(Xn||Jn||Vn){var mi=Jn||{},or=mi.columnType,Vi=(0,be.Z)(mi,di);gn.unshift(Me.createElement("col",(0,Ft.Z)({key:jn,style:{width:Xn}},Vi))),Vn=!0}}return Me.createElement("colgroup",null,gn)}var $i=xi,Ri=pe(19127),Kr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Sr(rt,et){return(0,Me.useMemo)(function(){for(var Ut=[],Xt=0;Xt1?"colgroup":"col":null,ellipsis:ir.ellipsis,align:ir.align,component:ir.title?nn:Vn,prefixCls:Jn,key:Vi[Jr]},Rr,{additionalProps:jr,rowType:"header"}))}))}wr.displayName="HeaderRow";var Pn=wr;function Si(rt){var et=[];function Ut(Vn,jn){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;et[Xn]=et[Xn]||[];var yi=jn,Jn=Vn.filter(Boolean).map(function(mi){var or={key:mi.key,className:mi.className||"",children:mi.title,column:mi,colStart:yi},Vi=1,Ui=mi.children;return Ui&&Ui.length>0&&(Vi=Ut(Ui,yi,Xn+1).reduce(function(Jr,ir){return Jr+ir},0),or.hasSubColumns=!0),"colSpan"in mi&&(Vi=mi.colSpan),"rowSpan"in mi&&(or.rowSpan=mi.rowSpan),or.colSpan=Vi,or.colEnd=or.colStart+Vi-1,et[Xn].push(or),yi+=Vi,Vi});return Jn}Ut(rt,0);for(var Xt=et.length,gn=function(jn){et[jn].forEach(function(Xn){!("rowSpan"in Xn)&&!Xn.hasSubColumns&&(Xn.rowSpan=Xt-jn)})},nn=0;nn1&&arguments[1]!==void 0?arguments[1]:"";return typeof et=="number"?et:et.endsWith("%")?rt*parseFloat(et)/100:null}function Zt(rt,et){return Me.useMemo(function(){if(et&&et>0){var Ut=0,Xt=0;rt.forEach(function(yi){var Jn=qn(et,yi.width);Jn?Ut+=Jn:Xt+=1});var gn=et-Ut,nn=Xt,Vn=gn/Xt,jn=0,Xn=rt.map(function(yi){var Jn=(0,dt.Z)({},yi),mi=qn(et,Jn.width);if(mi)Jn.width=mi;else{var or=Math.floor(Vn);Jn.width=nn===1?gn:or,gn-=or,nn-=1}return jn+=Jn.width,Jn});return[Xn,jn]}return[rt,et]},[rt,et])}var $t=["children"],Qe=["fixed"];function on(rt){return(0,$n.Z)(rt).filter(function(et){return Me.isValidElement(et)}).map(function(et){var Ut=et.key,Xt=et.props,gn=Xt.children,nn=(0,be.Z)(Xt,$t),Vn=(0,dt.Z)({key:Ut},nn);return gn&&(Vn.children=on(gn)),Vn})}function cn(rt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return rt.filter(function(Ut){return Ut&&(0,Ye.Z)(Ut)==="object"}).reduce(function(Ut,Xt,gn){var nn=Xt.fixed,Vn=nn===!0?"left":nn,jn="".concat(et,"-").concat(gn),Xn=Xt.children;return Xn&&Xn.length>0?[].concat((0,Ri.Z)(Ut),(0,Ri.Z)(cn(Xn,jn).map(function(yi){return(0,dt.Z)({fixed:Vn},yi)}))):[].concat((0,Ri.Z)(Ut),[(0,dt.Z)((0,dt.Z)({key:jn},Xt),{},{fixed:Vn})])},[])}function At(rt){for(var et=!0,Ut=0;Ut=0;nn-=1){var Vn=rt[nn];if(gn&&Vn.fixed!=="right")gn=!1;else if(!gn&&Vn.fixed==="right"){warning(!1,"Index ".concat(nn+1," of `columns` missing `fixed='right'` prop."));break}}}function ht(rt){return rt.map(function(et){var Ut=et.fixed,Xt=(0,be.Z)(et,Qe),gn=Ut;return Ut==="left"?gn="right":Ut==="right"&&(gn="left"),(0,dt.Z)({fixed:gn},Xt)})}function en(rt,et){var Ut=rt.prefixCls,Xt=rt.columns,gn=rt.children,nn=rt.expandable,Vn=rt.expandedKeys,jn=rt.columnTitle,Xn=rt.getRowKey,yi=rt.onTriggerExpand,Jn=rt.expandIcon,mi=rt.rowExpandable,or=rt.expandIconColumnIndex,Vi=rt.direction,Ui=rt.expandRowByClick,Jr=rt.columnWidth,ir=rt.fixed,Rr=rt.scrollWidth,jr=Me.useMemo(function(){return Xt||on(gn)},[Xt,gn]),vo=Me.useMemo(function(){if(nn){var To,co=jr.slice();if(!co.includes(le)){var Ar=or||0;Ar>=0&&co.splice(Ar,0,le)}var Fo=co.indexOf(le);co=co.filter(function(ao,ka){return ao!==le||ka===Fo});var ta=jr[Fo],Sa;(ir==="left"||ir)&&!or?Sa="left":(ir==="right"||ir)&&or===jr.length?Sa="right":Sa=ta?ta.fixed:null;var Pa=(To={},(0,He.Z)(To,_r,{className:"".concat(Ut,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,He.Z)(To,"title",jn),(0,He.Z)(To,"fixed",Sa),(0,He.Z)(To,"className","".concat(Ut,"-row-expand-icon-cell")),(0,He.Z)(To,"width",Jr),(0,He.Z)(To,"render",function(ka,Va,bs){var us=Xn(Va,bs),qs=Vn.has(us),Ls=mi?mi(Va):!0,Za=Jn({prefixCls:Ut,expanded:qs,expandable:Ls,record:Va,onExpand:yi});return Ui?Me.createElement("span",{onClick:function(fs){return fs.stopPropagation()}},Za):Za}),To);return co.map(function(ao){return ao===le?Pa:ao})}return jr.filter(function(ao){return ao!==le})},[nn,jr,Xn,Vn,Jn,Vi]),Vo=Me.useMemo(function(){var To=vo;return et&&(To=et(To)),To.length||(To=[{render:function(){return null}}]),To},[et,vo,Vi]),ua=Me.useMemo(function(){return Vi==="rtl"?ht(cn(Vo)):cn(Vo)},[Vo,Vi,Rr]),oo=Zt(ua,Rr),Wo=(0,We.Z)(oo,2),Ta=Wo[0],uo=Wo[1];return[Vo,Ta,uo]}var fn=en;function Rn(rt){var et,Ut=rt.prefixCls,Xt=rt.record,gn=rt.onExpand,nn=rt.expanded,Vn=rt.expandable,jn="".concat(Ut,"-row-expand-icon");if(!Vn)return Me.createElement("span",{className:ot()(jn,"".concat(Ut,"-row-spaced"))});var Xn=function(Jn){gn(Xt,Jn),Jn.stopPropagation()};return Me.createElement("span",{className:ot()(jn,(et={},(0,He.Z)(et,"".concat(Ut,"-row-expanded"),nn),(0,He.Z)(et,"".concat(Ut,"-row-collapsed"),!nn),et)),onClick:Xn})}function Qn(rt,et,Ut){var Xt=[];function gn(nn){(nn||[]).forEach(function(Vn,jn){Xt.push(et(Vn,jn)),gn(Vn[Ut])})}return gn(rt),Xt}function Et(rt,et,Ut){var Xt=gi(rt),gn=Xt.expandIcon,nn=Xt.expandedRowKeys,Vn=Xt.defaultExpandedRowKeys,jn=Xt.defaultExpandAllRows,Xn=Xt.expandedRowRender,yi=Xt.onExpand,Jn=Xt.onExpandedRowsChange,mi=Xt.childrenColumnName,or=gn||Rn,Vi=mi||"children",Ui=Me.useMemo(function(){return Xn?"row":rt.expandable&&rt.internalHooks===ke&&rt.expandable.__PARENT_RENDER_ICON__||et.some(function(ua){return ua&&(0,Ye.Z)(ua)==="object"&&ua[Vi]})?"nest":!1},[!!Xn,et]),Jr=Me.useState(function(){return Vn||(jn?Qn(et,Ut,Vi):[])}),ir=(0,We.Z)(Jr,2),Rr=ir[0],jr=ir[1],vo=Me.useMemo(function(){return new Set(nn||Rr||[])},[nn,Rr]),Vo=Me.useCallback(function(ua){var oo=Ut(ua,et.indexOf(ua)),Wo,Ta=vo.has(oo);Ta?(vo.delete(oo),Wo=(0,Ri.Z)(vo)):Wo=[].concat((0,Ri.Z)(vo),[oo]),jr(Wo),yi&&yi(!Ta,ua),Jn&&Jn(Wo)},[Ut,vo,et,yi,Jn]);return[Xt,Ui,vo,or,Vi,Vo]}function wn(rt,et,Ut,Xt){var gn=rt.map(function(nn,Vn){return St(Vn,Vn,rt,et,Ut,Xt==null?void 0:Xt[Vn])});return(0,Tt.Z)(function(){return gn},[gn],function(nn,Vn){return!(0,Ue.Z)(nn,Vn)})}function Kn(rt){var et=(0,Me.useRef)(rt),Ut=(0,Me.useState)({}),Xt=(0,We.Z)(Ut,2),gn=Xt[1],nn=(0,Me.useRef)(null),Vn=(0,Me.useRef)([]);function jn(Xn){Vn.current.push(Xn);var yi=Promise.resolve();nn.current=yi,yi.then(function(){if(nn.current===yi){var Jn=Vn.current,mi=et.current;Vn.current=[],Jn.forEach(function(or){et.current=or(et.current)}),nn.current=null,mi!==et.current&&gn({})}})}return(0,Me.useEffect)(function(){return function(){nn.current=null}},[]),[et.current,jn]}function Ei(rt){var et=(0,Me.useRef)(rt||null),Ut=(0,Me.useRef)();function Xt(){window.clearTimeout(Ut.current)}function gn(Vn){et.current=Vn,Xt(),Ut.current=window.setTimeout(function(){et.current=null,Ut.current=void 0},100)}function nn(){return et.current}return(0,Me.useEffect)(function(){return Xt},[]),[gn,nn]}function tn(){var rt=Me.useState(-1),et=(0,We.Z)(rt,2),Ut=et[0],Xt=et[1],gn=Me.useState(-1),nn=(0,We.Z)(gn,2),Vn=nn[0],jn=nn[1],Xn=Me.useCallback(function(yi,Jn){Xt(yi),jn(Jn)},[]);return[Ut,Vn,Xn]}var sn=pe(47273),In=(0,sn.Z)()?window:null;function Oi(rt,et){var Ut=(0,Ye.Z)(rt)==="object"?rt:{},Xt=Ut.offsetHeader,gn=Xt===void 0?0:Xt,nn=Ut.offsetSummary,Vn=nn===void 0?0:nn,jn=Ut.offsetScroll,Xn=jn===void 0?0:jn,yi=Ut.getContainer,Jn=yi===void 0?function(){return In}:yi,mi=Jn()||In;return Me.useMemo(function(){var or=!!rt;return{isSticky:or,stickyClassName:or?"".concat(et,"-sticky-holder"):"",offsetHeader:gn,offsetSummary:Vn,offsetScroll:Xn,container:mi}},[Xn,gn,Vn,et,mi])}function Di(rt,et,Ut){var Xt=(0,Me.useMemo)(function(){for(var gn=[],nn=[],Vn=0,jn=0,Xn=0;Xn=mi&&(ao=mi-or),Vn({scrollLeft:ao/mi*(Jn+2)}),jr.current.x=Fo.pageX},To=function(){if(nn.current){var Fo=(0,Zr.os)(nn.current).top,ta=Fo+nn.current.offsetHeight,Sa=Xn===window?document.documentElement.scrollTop+window.innerHeight:(0,Zr.os)(Xn).top+Xn.clientHeight;ta-(0,Gt.Z)()<=Sa||Fo>=Sa-jn?Rr(function(Pa){return(0,dt.Z)((0,dt.Z)({},Pa),{},{isHiddenScrollBar:!0})}):Rr(function(Pa){return(0,dt.Z)((0,dt.Z)({},Pa),{},{isHiddenScrollBar:!1})})}},co=function(Fo){Rr(function(ta){return(0,dt.Z)((0,dt.Z)({},ta),{},{scrollLeft:Fo/Jn*mi||0})})};return Me.useImperativeHandle(Ut,function(){return{setScrollLeft:co}}),Me.useEffect(function(){var Ar=(0,sr.Z)(document.body,"mouseup",Wo,!1),Fo=(0,sr.Z)(document.body,"mousemove",uo,!1);return To(),function(){Ar.remove(),Fo.remove()}},[or,ua]),Me.useEffect(function(){var Ar=(0,sr.Z)(Xn,"scroll",To,!1),Fo=(0,sr.Z)(window,"resize",To,!1);return function(){Ar.remove(),Fo.remove()}},[Xn]),Me.useEffect(function(){ir.isHiddenScrollBar||Rr(function(Ar){var Fo=nn.current;return Fo?(0,dt.Z)((0,dt.Z)({},Ar),{},{scrollLeft:Fo.scrollLeft/Fo.scrollWidth*Fo.clientWidth}):Ar})},[ir.isHiddenScrollBar]),Jn<=mi||!or||ir.isHiddenScrollBar?null:Me.createElement("div",{style:{height:(0,Gt.Z)(),width:mi,bottom:jn},className:"".concat(yi,"-sticky-scroll")},Me.createElement("div",{onMouseDown:Ta,ref:Vi,className:ot()("".concat(yi,"-sticky-scroll-bar"),(0,He.Z)({},"".concat(yi,"-sticky-scroll-bar-active"),ua)),style:{width:"".concat(or,"px"),transform:"translate3d(".concat(ir.scrollLeft,"px, 0, 0)")}}))},Tn=Me.forwardRef(Vr);function Po(rt){return null}var Xr=Po;function Cr(rt){return null}var Cn=Cr,ri="rc-table",Yi=[],yr={};function er(){return"No Data"}function Fr(rt){var et,Ut=(0,dt.Z)({rowKey:"key",prefixCls:ri,emptyText:er},rt),Xt=Ut.prefixCls,gn=Ut.className,nn=Ut.rowClassName,Vn=Ut.style,jn=Ut.data,Xn=Ut.rowKey,yi=Ut.scroll,Jn=Ut.tableLayout,mi=Ut.direction,or=Ut.title,Vi=Ut.footer,Ui=Ut.summary,Jr=Ut.caption,ir=Ut.id,Rr=Ut.showHeader,jr=Ut.components,vo=Ut.emptyText,Vo=Ut.onRow,ua=Ut.onHeaderRow,oo=Ut.internalHooks,Wo=Ut.transformColumns,Ta=Ut.internalRefs,uo=Ut.tailor,To=Ut.sticky,co=jn||Yi,Ar=!!co.length,Fo=oo===ke,ta=Me.useCallback(function(gs,Js){return(0,xt.Z)(jr,gs)||Js},[jr]),Sa=Me.useMemo(function(){return typeof Xn=="function"?Xn:function(gs){var Js=gs&&gs[Xn];return Js}},[Xn]),Pa=ta(["body"]),ao=tn(),ka=(0,We.Z)(ao,3),Va=ka[0],bs=ka[1],us=ka[2],qs=Et(Ut,co,Sa),Ls=(0,We.Z)(qs,6),Za=Ls[0],aa=Ls[1],fs=Ls[2],el=Ls[3],Ws=Ls[4],cl=Ls[5],ba=yi==null?void 0:yi.x,da=Me.useState(0),wa=(0,We.Z)(da,2),Xo=wa[0],Ps=wa[1],Uo=fn((0,dt.Z)((0,dt.Z)((0,dt.Z)({},Ut),Za),{},{expandable:!!Za.expandedRowRender,columnTitle:Za.columnTitle,expandedKeys:fs,getRowKey:Sa,onTriggerExpand:cl,expandIcon:el,expandIconColumnIndex:Za.expandIconColumnIndex,direction:mi,scrollWidth:Fo&&uo&&typeof ba=="number"?ba:null}),Fo?Wo:null),Ra=(0,We.Z)(Uo,3),ss=Ra[0],cs=Ra[1],Al=Ra[2],bl=Al!=null?Al:ba,Vl=Me.useMemo(function(){return{columns:ss,flattenColumns:cs}},[ss,cs]),Fs=Me.useRef(),Zl=Me.useRef(),dl=Me.useRef(),Fl=Me.useRef(),_c=Me.useRef(),Bs=Me.useState(!1),Ts=(0,We.Z)(Bs,2),Ms=Ts[0],Gs=Ts[1],pl=Me.useState(!1),is=(0,We.Z)(pl,2),js=is[0],Dl=is[1],Ul=Kn(new Map),Gu=(0,We.Z)(Ul,2),Du=Gu[0],ml=Gu[1],Iu=_t(cs),Ou=Iu.map(function(gs){return Du.get(gs)}),Ns=Me.useMemo(function(){return Ou},[Ou.join("_")]),Hl=vi(Ns,cs.length,mi),$s=yi&&vn(yi.y),zs=yi&&vn(bl)||!!Za.fixed,$u=zs&&cs.some(function(gs){var Js=gs.fixed;return Js}),Vc=Me.useRef(),sc=Oi(To,Xt),lc=sc.isSticky,Ku=sc.offsetHeader,Tu=sc.offsetSummary,ws=sc.offsetScroll,Ys=sc.stickyClassName,vl=sc.container,Xs=Me.useMemo(function(){return Ui==null?void 0:Ui(co)},[Ui,co]),ms=($s||lc)&&Me.isValidElement(Xs)&&Xs.type===xe&&Xs.props.fixed,yl,Su,xc;$s&&(Su={overflowY:"scroll",maxHeight:yi.y}),zs&&(yl={overflowX:"auto"},$s||(Su={overflowY:"hidden"}),xc={width:bl===!0?"auto":bl,minWidth:"100%"});var jd=Me.useCallback(function(gs,Js){(0,Bt.Z)(Fs.current)&&ml(function(nu){if(nu.get(gs)!==Js){var uc=new Map(nu);return uc.set(gs,Js),uc}return nu})},[]),dn=Ei(null),sd=(0,We.Z)(dn,2),Bc=sd[0],df=sd[1];function zd(gs,Js){Js&&(typeof Js=="function"?Js(gs):Js.scrollLeft!==gs&&(Js.scrollLeft=gs,Js.scrollLeft!==gs&&setTimeout(function(){Js.scrollLeft=gs},0)))}var Zd=(0,ut.Z)(function(gs){var Js=gs.currentTarget,nu=gs.scrollLeft,uc=mi==="rtl",cc=typeof nu=="number"?nu:Js.scrollLeft,$d=Js||yr;if(!df()||df()===$d){var cd;Bc($d),zd(cc,Zl.current),zd(cc,dl.current),zd(cc,_c.current),zd(cc,(cd=Vc.current)===null||cd===void 0?void 0:cd.setScrollLeft)}var vh=Js||Zl.current;if(vh){var Sc=vh.scrollWidth,Yc=vh.clientWidth;if(Sc===Yc){Gs(!1),Dl(!1);return}uc?(Gs(-cc0)):(Gs(cc>0),Dl(cc1?Jr-Fo:0,Sa=(0,dt.Z)((0,dt.Z)((0,dt.Z)({},Wo),Xn),{},{flex:"0 0 ".concat(Fo,"px"),width:"".concat(Fo,"px"),marginRight:ta,pointerEvents:"auto"}),Pa=Me.useMemo(function(){return Jn?co<=1:uo===0||co===0||co>1},[co,uo,Jn]);Pa?Sa.visibility="hidden":Jn&&(Sa.height=mi==null?void 0:mi(co));var ao=Pa?function(){return null}:or,ka={};return(co===0||uo===0)&&(ka.rowSpan=1,ka.colSpan=1),Me.createElement(_n,(0,Ft.Z)({className:ot()(Ui,yi),ellipsis:Ut.ellipsis,align:Ut.align,scope:Ut.rowScope,component:"div",prefixCls:et.prefixCls,key:vo,record:jn,index:nn,renderIndex:Vn,dataIndex:Vi,render:ao,shouldCellUpdate:Ut.shouldCellUpdate},Vo,{appendNode:ua,additionalProps:(0,dt.Z)((0,dt.Z)({},oo),{},{style:Sa},ka)}))}var Qo=Ao,nr=["data","index","className","rowKey","style","extra","getHeight"],qo=Me.forwardRef(function(rt,et){var Ut=rt.data,Xt=rt.index,gn=rt.className,nn=rt.rowKey,Vn=rt.style,jn=rt.extra,Xn=rt.getHeight,yi=(0,be.Z)(rt,nr),Jn=Ut.record,mi=Ut.indent,or=Ut.index,Vi=$e(Le,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ui=Vi.scrollX,Jr=Vi.flattenColumns,ir=Vi.prefixCls,Rr=Vi.fixColumn,jr=Vi.componentWidth,vo=mn(Jn,nn,Xt,mi),Vo=vo.rowSupportExpand,ua=vo.expanded,oo=vo.rowProps,Wo=vo.expandedRowRender,Ta=vo.expandedRowClassName,uo;if(Vo&&ua){var To=Wo(Jn,Xt,mi+1,ua),co=Ta==null?void 0:Ta(Jn,Xt,mi),Ar={};Rr&&(Ar={style:(0,He.Z)({},"--virtual-width","".concat(jr,"px"))});var Fo="".concat(ir,"-expanded-row-cell");uo=Me.createElement("div",{className:ot()("".concat(ir,"-expanded-row"),"".concat(ir,"-expanded-row-level-").concat(mi+1),co)},Me.createElement(_n,{component:"div",prefixCls:ir,className:ot()(Fo,(0,He.Z)({},"".concat(Fo,"-fixed"),Rr)),additionalProps:Ar},To))}var ta=(0,dt.Z)((0,dt.Z)({},Vn),{},{width:Ui});jn&&(ta.position="absolute",ta.pointerEvents="none");var Sa=Me.createElement("div",(0,Ft.Z)({},oo,yi,{ref:Vo?null:et,className:ot()(gn,"".concat(ir,"-row"),oo==null?void 0:oo.className,(0,He.Z)({},"".concat(ir,"-row-extra"),jn)),style:(0,dt.Z)((0,dt.Z)({},ta),oo==null?void 0:oo.style)}),Jr.map(function(Pa,ao){return Me.createElement(Qo,{key:ao,rowInfo:vo,column:Pa,colIndex:ao,indent:mi,index:Xt,renderIndex:or,record:Jn,inverse:jn,getHeight:Xn})}));return Vo?Me.createElement("div",{ref:et},Sa,uo):Sa}),Go=ve(qo),Lr=Go,br=Me.forwardRef(function(rt,et){var Ut=rt.data,Xt=rt.onScroll,gn=$e(Le,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),nn=gn.flattenColumns,Vn=gn.onColumnResize,jn=gn.getRowKey,Xn=gn.expandedKeys,yi=gn.prefixCls,Jn=gn.childrenColumnName,mi=gn.emptyNode,or=gn.scrollX,Vi=$e(Un),Ui=Vi.scrollY,Jr=Vi.listItemHeight,ir=Me.useRef(),Rr=rn(Ut,Jn,Xn,jn),jr=Me.useMemo(function(){var uo=0;return nn.map(function(To){var co=To.width,Ar=To.key;return uo+=co,[Ar,co,uo]})},[nn]),vo=Me.useMemo(function(){return jr.map(function(uo){return uo[2]})},[jr]);Me.useEffect(function(){jr.forEach(function(uo){var To=(0,We.Z)(uo,2),co=To[0],Ar=To[1];Vn(co,Ar)})},[jr]),Me.useImperativeHandle(et,function(){var uo={};return Object.defineProperty(uo,"scrollLeft",{get:function(){var co;return((co=ir.current)===null||co===void 0?void 0:co.getScrollInfo().x)||0},set:function(co){var Ar;(Ar=ir.current)===null||Ar===void 0||Ar.scrollTo({left:co})}}),uo});var Vo=function(To,co){var Ar,Fo=(Ar=Rr[co])===null||Ar===void 0?void 0:Ar.record,ta=To.onCell;if(ta){var Sa,Pa=ta(Fo,co);return(Sa=Pa==null?void 0:Pa.rowSpan)!==null&&Sa!==void 0?Sa:1}return 1},ua=function(To){var co=To.start,Ar=To.end,Fo=To.getSize,ta=To.offsetY;if(Ar<0)return null;for(var Sa=nn.filter(function(ba){return Vo(ba,co)===0}),Pa=co,ao=function(da){if(Sa=Sa.filter(function(wa){return Vo(wa,da)===0}),!Sa.length)return Pa=da,"break"},ka=co;ka>=0;ka-=1){var Va=ao(ka);if(Va==="break")break}for(var bs=nn.filter(function(ba){return Vo(ba,Ar)!==1}),us=Ar,qs=function(da){if(bs=bs.filter(function(wa){return Vo(wa,da)!==1}),!bs.length)return us=Math.max(da-1,Ar),"break"},Ls=Ar;Ls1})&&aa.push(da)},el=Pa;el<=us;el+=1)var Ws=fs(el);var cl=aa.map(function(ba){var da=Rr[ba],wa=jn(da.record,ba),Xo=function(Ra){var ss=ba+Ra-1,cs=jn(Rr[ss].record,ss),Al=Fo(wa,cs);return Al.bottom-Al.top},Ps=Fo(wa);return Me.createElement(Lr,{key:ba,data:da,rowKey:wa,index:ba,style:{top:-ta+Ps.top},extra:!0,getHeight:Xo})});return cl},oo=Me.useMemo(function(){return{columnsOffset:vo}},[vo]),Wo="".concat(yi,"-tbody"),Ta;return Rr.length?Ta=Me.createElement(Yr.Z,{fullHeight:!1,ref:ir,className:ot()(Wo,"".concat(Wo,"-virtual")),height:Ui,itemHeight:Jr||24,data:Rr,itemKey:function(To){return jn(To.record)},scrollWidth:or,onVirtualScroll:function(To){var co=To.x;Xt({scrollLeft:co})},extraRender:ua},function(uo,To,co){var Ar=jn(uo.record,To);return Me.createElement(Lr,(0,Ft.Z)({data:uo,rowKey:Ar,index:To},co))}):Ta=Me.createElement("div",{className:ot()("".concat(yi,"-placeholder"))},Me.createElement(_n,{component:"div",prefixCls:yi},mi)),Me.createElement(Ho.Provider,{value:oo},Ta)}),mo=ve(br),Yo=mo,Ki=function(et,Ut){var Xt=Ut.ref,gn=Ut.onScroll;return Me.createElement(Yo,{ref:Xt,data:et,onScroll:gn})},st=100;function sa(rt){var et=rt.columns,Ut=rt.scroll,Xt=rt.prefixCls,gn=Xt===void 0?ri:Xt,nn=rt.className,Vn=rt.listItemHeight,jn=Ut||{},Xn=jn.x,yi=jn.y;typeof Xn!="number"&&(Xn=((et||[]).length+1)*st),typeof yi!="number"&&(yi=500);var Jn=Me.useMemo(function(){return{scrollY:yi,listItemHeight:Vn}},[yi,Vn]);return Me.createElement(Un.Provider,{value:Jn},Me.createElement(Tr,(0,Ft.Z)({},rt,{className:ot()(nn,"".concat(gn,"-virtual")),scroll:(0,dt.Z)((0,dt.Z)({},Ut),{},{x:Xn}),components:{body:Ki},columns:et,internalHooks:ke,tailor:!0})))}function va(rt){return he(sa,rt)}var Ma=va(),hs=null;function Ga(rt){return null}var Lo=Ga;function po(rt){return null}var la=po,Eo=pe(2738),Na=pe(68031),os=pe(36355),xo=pe(93891),Qr=pe(19716),pi=pe(8628),io=pe(31724),ro=pe(58421),Ja=pe(71418),Ca=pe(88088);function fa(rt){return function(Ut){let{prefixCls:Xt,onExpand:gn,record:nn,expanded:Vn,expandable:jn}=Ut;const Xn=`${Xt}-row-expand-icon`;return Me.createElement("button",{type:"button",onClick:yi=>{gn(nn,yi),yi.stopPropagation()},className:ot()(Xn,{[`${Xn}-spaced`]:!jn,[`${Xn}-expanded`]:jn&&Vn,[`${Xn}-collapsed`]:jn&&!Vn}),"aria-label":Vn?rt.collapse:rt.expand,"aria-expanded":Vn})}}var $a=fa;function Qa(rt,et){return"key"in rt&&rt.key!==void 0&&rt.key!==null?rt.key:rt.dataIndex?Array.isArray(rt.dataIndex)?rt.dataIndex.join("."):rt.dataIndex:et}function Es(rt,et){return et?`${et}-${rt}`:`${rt}`}function ys(rt,et){return typeof rt=="function"?rt(et):rt}function Zs(rt,et){const Ut=ys(rt,et);return Object.prototype.toString.call(Ut)==="[object Object]"?"":Ut}var Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ss=Mn,ra=pe(7657),hl=function(et,Ut){return Me.createElement(ra.Z,(0,Ft.Z)({},et,{ref:Ut,icon:Ss}))},Ol=Me.forwardRef(hl),ns=Ol,yu=pe(56762);function eu(rt){const et=Me.useRef(rt),Ut=(0,yu.Z)();return[()=>et.current,Xt=>{et.current=Xt,Ut()}]}var ps=pe(3113),Ba=pe(24905),tu=pe(38854),Do=pe(64165),Ea=pe(20834),ca=pe(40875),hr=pe(5112),Rs=pe(17574),ls=pe(47472),sl=pe(92832);function jl(rt){let{value:et,onChange:Ut,filterSearch:Xt,tablePrefixCls:gn,locale:nn}=rt;return Xt?Me.createElement("div",{className:`${gn}-filter-dropdown-search`},Me.createElement(sl.default,{prefix:Me.createElement(ls.Z,null),placeholder:nn.filterSearchPlaceholder,onChange:Ut,value:et,htmlSize:1,className:`${gn}-filter-dropdown-search-input`})):null}var ou=jl,Ji=pe(10228);const Cs=rt=>{const{keyCode:et}=rt;et===Ji.Z.ENTER&&rt.stopPropagation()};var $l=Me.forwardRef((rt,et)=>Me.createElement("div",{className:rt.className,onClick:Ut=>Ut.stopPropagation(),onKeyDown:Cs,ref:et},rt.children));function Tl(rt){let et=[];return(rt||[]).forEach(Ut=>{let{value:Xt,children:gn}=Ut;et.push(Xt),gn&&(et=[].concat((0,Ri.Z)(et),(0,Ri.Z)(Tl(gn))))}),et}function Kl(rt){return rt.some(et=>{let{children:Ut}=et;return Ut})}function Oo(rt,et){return typeof et=="string"||typeof et=="number"?et==null?void 0:et.toString().toLowerCase().includes(rt.trim().toLowerCase()):!1}function ic(rt){let{filters:et,prefixCls:Ut,filteredKeys:Xt,filterMultiple:gn,searchValue:nn,filterSearch:Vn}=rt;return et.map((jn,Xn)=>{const yi=String(jn.value);if(jn.children)return{key:yi||Xn,label:jn.text,popupClassName:`${Ut}-dropdown-submenu`,children:ic({filters:jn.children,prefixCls:Ut,filteredKeys:Xt,filterMultiple:gn,searchValue:nn,filterSearch:Vn})};const Jn=gn?Ba.default:hr.ZP,mi={key:jn.value!==void 0?yi:Xn,label:Me.createElement(Me.Fragment,null,Me.createElement(Jn,{checked:Xt.includes(yi)}),Me.createElement("span",null,jn.text))};return nn.trim()?typeof Vn=="function"?Vn(nn,jn)?mi:null:Oo(nn,jn.text)?mi:null:mi})}function zl(rt){var et,Ut;const{tablePrefixCls:Xt,prefixCls:gn,column:nn,dropdownPrefixCls:Vn,columnKey:jn,filterMultiple:Xn,filterMode:yi="menu",filterSearch:Jn=!1,filterState:mi,triggerFilter:or,locale:Vi,children:Ui,getPopupContainer:Jr}=rt,{filterDropdownOpen:ir,onFilterDropdownOpenChange:Rr,filterResetToDefaultFilteredValue:jr,defaultFilteredValue:vo,filterDropdownVisible:Vo,onFilterDropdownVisibleChange:ua}=nn,[oo,Wo]=Me.useState(!1),Ta=!!(mi&&(!((et=mi.filteredKeys)===null||et===void 0)&&et.length||mi.forceFiltered)),uo=Uo=>{Wo(Uo),Rr==null||Rr(Uo),ua==null||ua(Uo)},To=(Ut=ir!=null?ir:Vo)!==null&&Ut!==void 0?Ut:oo,co=mi==null?void 0:mi.filteredKeys,[Ar,Fo]=eu(co||[]),ta=Uo=>{let{selectedKeys:Ra}=Uo;Fo(Ra)},Sa=(Uo,Ra)=>{let{node:ss,checked:cs}=Ra;ta(Xn?{selectedKeys:Uo}:{selectedKeys:cs&&ss.key?[ss.key]:[]})};Me.useEffect(()=>{oo&&ta({selectedKeys:co||[]})},[co]);const[Pa,ao]=Me.useState([]),ka=Uo=>{ao(Uo)},[Va,bs]=Me.useState(""),us=Uo=>{const{value:Ra}=Uo.target;bs(Ra)};Me.useEffect(()=>{oo||bs("")},[oo]);const qs=Uo=>{const Ra=Uo&&Uo.length?Uo:null;if(Ra===null&&(!mi||!mi.filteredKeys)||(0,Ue.Z)(Ra,mi==null?void 0:mi.filteredKeys,!0))return null;or({column:nn,key:jn,filteredKeys:Ra})},Ls=()=>{uo(!1),qs(Ar())},Za=function(){let{confirm:Uo,closeDropdown:Ra}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Uo&&qs([]),Ra&&uo(!1),bs(""),Fo(jr?(vo||[]).map(ss=>String(ss)):[])},aa=function(){let{closeDropdown:Uo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Uo&&uo(!1),qs(Ar())},fs=Uo=>{Uo&&co!==void 0&&Fo(co||[]),uo(Uo),!Uo&&!nn.filterDropdown&&Ls()},el=ot()({[`${Vn}-menu-without-submenu`]:!Kl(nn.filters||[])}),Ws=Uo=>{if(Uo.target.checked){const Ra=Tl(nn==null?void 0:nn.filters).map(ss=>String(ss));Fo(Ra)}else Fo([])},cl=Uo=>{let{filters:Ra}=Uo;return(Ra||[]).map((ss,cs)=>{const Al=String(ss.value),bl={title:ss.text,key:ss.value!==void 0?Al:cs};return ss.children&&(bl.children=cl({filters:ss.children})),bl})},ba=Uo=>{var Ra;return Object.assign(Object.assign({},Uo),{text:Uo.title,value:Uo.key,children:((Ra=Uo.children)===null||Ra===void 0?void 0:Ra.map(ss=>ba(ss)))||[]})};let da;if(typeof nn.filterDropdown=="function")da=nn.filterDropdown({prefixCls:`${Vn}-custom`,setSelectedKeys:Uo=>ta({selectedKeys:Uo}),selectedKeys:Ar(),confirm:aa,clearFilters:Za,filters:nn.filters,visible:To,close:()=>{uo(!1)}});else if(nn.filterDropdown)da=nn.filterDropdown;else{const Uo=Ar()||[],Ra=()=>(nn.filters||[]).length===0?Me.createElement(Do.Z,{image:Do.Z.PRESENTED_IMAGE_SIMPLE,description:Vi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):yi==="tree"?Me.createElement(Me.Fragment,null,Me.createElement(ou,{filterSearch:Jn,value:Va,onChange:us,tablePrefixCls:Xt,locale:Vi}),Me.createElement("div",{className:`${Xt}-filter-dropdown-tree`},Xn?Me.createElement(Ba.default,{checked:Uo.length===Tl(nn.filters).length,indeterminate:Uo.length>0&&Uo.lengthtypeof Jn=="function"?Jn(Va,ba(cs)):Oo(Va,cs.title):void 0}))):Me.createElement(Me.Fragment,null,Me.createElement(ou,{filterSearch:Jn,value:Va,onChange:us,tablePrefixCls:Xt,locale:Vi}),Me.createElement(Ea.default,{selectable:!0,multiple:Xn,prefixCls:`${Vn}-menu`,className:el,onSelect:ta,onDeselect:ta,selectedKeys:Uo,getPopupContainer:Jr,openKeys:Pa,onOpenChange:ka,items:ic({filters:nn.filters||[],filterSearch:Jn,prefixCls:gn,filteredKeys:Ar(),filterMultiple:Xn,searchValue:Va})})),ss=()=>jr?(0,Ue.Z)((vo||[]).map(cs=>String(cs)),Uo,!0):Uo.length===0;da=Me.createElement(Me.Fragment,null,Ra(),Me.createElement("div",{className:`${gn}-dropdown-btns`},Me.createElement(ps.ZP,{type:"link",size:"small",disabled:ss(),onClick:()=>Za()},Vi.filterReset),Me.createElement(ps.ZP,{type:"primary",size:"small",onClick:Ls},Vi.filterConfirm)))}nn.filterDropdown&&(da=Me.createElement(ca.J,{selectable:void 0},da));const wa=()=>Me.createElement($l,{className:`${gn}-dropdown`},da);let Xo;typeof nn.filterIcon=="function"?Xo=nn.filterIcon(Ta):nn.filterIcon?Xo=nn.filterIcon:Xo=Me.createElement(ns,null);const{direction:Ps}=Me.useContext(os.E_);return Me.createElement("div",{className:`${gn}-column`},Me.createElement("span",{className:`${Xt}-column-title`},Ui),Me.createElement(tu.Z,{dropdownRender:wa,trigger:["click"],open:To,onOpenChange:fs,getPopupContainer:Jr,placement:Ps==="rtl"?"bottomLeft":"bottomRight"},Me.createElement("span",{role:"button",tabIndex:-1,className:ot()(`${gn}-trigger`,{active:Ta}),onClick:Uo=>{Uo.stopPropagation()}},Xo)))}var En=zl;function Nn(rt,et,Ut){let Xt=[];return(rt||[]).forEach((gn,nn)=>{var Vn;const jn=Es(nn,Ut);if(gn.filters||"filterDropdown"in gn||"onFilter"in gn)if("filteredValue"in gn){let Xn=gn.filteredValue;"filterDropdown"in gn||(Xn=(Vn=Xn==null?void 0:Xn.map(String))!==null&&Vn!==void 0?Vn:Xn),Xt.push({column:gn,key:Qa(gn,jn),filteredKeys:Xn,forceFiltered:gn.filtered})}else Xt.push({column:gn,key:Qa(gn,jn),filteredKeys:et&&gn.defaultFilteredValue?gn.defaultFilteredValue:void 0,forceFiltered:gn.filtered});"children"in gn&&(Xt=[].concat((0,Ri.Z)(Xt),(0,Ri.Z)(Nn(gn.children,et,jn))))}),Xt}function ai(rt,et,Ut,Xt,gn,nn,Vn,jn){return Ut.map((Xn,yi)=>{const Jn=Es(yi,jn),{filterMultiple:mi=!0,filterMode:or,filterSearch:Vi}=Xn;let Ui=Xn;if(Ui.filters||Ui.filterDropdown){const Jr=Qa(Ui,Jn),ir=Xt.find(Rr=>{let{key:jr}=Rr;return Jr===jr});Ui=Object.assign(Object.assign({},Ui),{title:Rr=>Me.createElement(En,{tablePrefixCls:rt,prefixCls:`${rt}-filter`,dropdownPrefixCls:et,column:Ui,columnKey:Jr,filterState:ir,filterMultiple:mi,filterMode:or,filterSearch:Vi,triggerFilter:nn,locale:gn,getPopupContainer:Vn},ys(Xn.title,Rr))})}return"children"in Ui&&(Ui=Object.assign(Object.assign({},Ui),{children:ai(rt,et,Ui.children,Xt,gn,nn,Vn,Jn)})),Ui})}function Qi(rt){const et={};return rt.forEach(Ut=>{let{key:Xt,filteredKeys:gn,column:nn}=Ut;const{filters:Vn,filterDropdown:jn}=nn;if(jn)et[Xt]=gn||null;else if(Array.isArray(gn)){const Xn=Tl(Vn);et[Xt]=Xn.filter(yi=>gn.includes(String(yi)))}else et[Xt]=null}),et}function Gi(rt,et){return et.reduce((Ut,Xt)=>{const{column:{onFilter:gn,filters:nn},filteredKeys:Vn}=Xt;return gn&&Vn&&Vn.length?Ut.filter(jn=>Vn.some(Xn=>{const yi=Tl(nn),Jn=yi.findIndex(or=>String(or)===String(Xn)),mi=Jn!==-1?yi[Jn]:Xn;return gn(mi,jn)})):Ut},rt)}const ki=rt=>rt.flatMap(et=>"children"in et?[et].concat((0,Ri.Z)(ki(et.children||[]))):[et]);function _i(rt){let{prefixCls:et,dropdownPrefixCls:Ut,mergedColumns:Xt,onFilterChange:gn,getPopupContainer:nn,locale:Vn}=rt;const jn=Me.useMemo(()=>ki(Xt||[]),[Xt]),[Xn,yi]=Me.useState(()=>Nn(jn,!0)),Jn=Me.useMemo(()=>{const Ui=Nn(jn,!1);if(Ui.length===0)return Ui;let Jr=!0,ir=!0;if(Ui.forEach(Rr=>{let{filteredKeys:jr}=Rr;jr!==void 0?Jr=!1:ir=!1}),Jr){const Rr=(jn||[]).map((jr,vo)=>Qa(jr,Es(vo)));return Xn.filter(jr=>{let{key:vo}=jr;return Rr.includes(vo)}).map(jr=>{const vo=jn[Rr.findIndex(Vo=>Vo===jr.key)];return Object.assign(Object.assign({},jr),{column:Object.assign(Object.assign({},jr.column),vo),forceFiltered:vo.filtered})})}return Ui},[jn,Xn]),mi=Me.useMemo(()=>Qi(Jn),[Jn]),or=Ui=>{const Jr=Jn.filter(ir=>{let{key:Rr}=ir;return Rr!==Ui.key});Jr.push(Ui),yi(Jr),gn(Qi(Jr),Jr)};return[Ui=>ai(et,Ut,Ui,Jn,Vn,or,nn),Jn,mi]}var oi=_i;function Mi(rt,et,Ut){const Xt=Me.useRef({});function gn(nn){if(!Xt.current||Xt.current.data!==rt||Xt.current.childrenColumnName!==et||Xt.current.getRowKey!==Ut){let jn=function(Xn){Xn.forEach((yi,Jn)=>{const mi=Ut(yi,Jn);Vn.set(mi,yi),yi&&typeof yi=="object"&&et in yi&&jn(yi[et]||[])})};const Vn=new Map;jn(rt),Xt.current={data:rt,childrenColumnName:et,kvMap:Vn,getRowKey:Ut}}return Xt.current.kvMap.get(nn)}return[gn]}var cr=pe(50371),Hr=function(rt,et){var Ut={};for(var Xt in rt)Object.prototype.hasOwnProperty.call(rt,Xt)&&et.indexOf(Xt)<0&&(Ut[Xt]=rt[Xt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,Xt=Object.getOwnPropertySymbols(rt);gn{const nn=rt[gn];typeof nn!="function"&&(Ut[gn]=nn)}),Ut}function Ua(rt,et,Ut){const Xt=Ut&&typeof Ut=="object"?Ut:{},{total:gn=0}=Xt,nn=Hr(Xt,["total"]),[Vn,jn]=(0,Me.useState)(()=>({current:"defaultCurrent"in nn?nn.defaultCurrent:1,pageSize:"defaultPageSize"in nn?nn.defaultPageSize:ga})),Xn=(0,cr.Z)(Vn,nn,{total:gn>0?gn:rt}),yi=Math.ceil((gn||rt)/Xn.pageSize);Xn.current>yi&&(Xn.current=yi||1);const Jn=(or,Vi)=>{jn({current:or!=null?or:1,pageSize:Vi||Xn.pageSize})},mi=(or,Vi)=>{var Ui;Ut&&((Ui=Ut.onChange)===null||Ui===void 0||Ui.call(Ut,or,Vi)),Jn(or,Vi),et(or,Vi||(Xn==null?void 0:Xn.pageSize))};return Ut===!1?[{},()=>{}]:[Object.assign(Object.assign({},Xn),{onChange:mi}),Jn]}var Ka=Ua,No=pe(84105),qr=pe(35654),Fi=pe(90782),eo=pe(71430),Ko=pe(18929);const ma={},ya="SELECT_ALL",bo="SELECT_INVERT",oa="SELECT_NONE",Io=[],Dr=(rt,et)=>{let Ut=[];return(et||[]).forEach(Xt=>{Ut.push(Xt),Xt&&typeof Xt=="object"&&rt in Xt&&(Ut=[].concat((0,Ri.Z)(Ut),(0,Ri.Z)(Dr(rt,Xt[rt]))))}),Ut};var Ha=(rt,et)=>{const{preserveSelectedRowKeys:Ut,selectedRowKeys:Xt,defaultSelectedRowKeys:gn,getCheckboxProps:nn,onChange:Vn,onSelect:jn,onSelectAll:Xn,onSelectInvert:yi,onSelectNone:Jn,onSelectMultiple:mi,columnWidth:or,type:Vi,selections:Ui,fixed:Jr,renderCell:ir,hideSelectAll:Rr,checkStrictly:jr=!0}=et||{},{prefixCls:vo,data:Vo,pageData:ua,getRecordByKey:oo,getRowKey:Wo,expandType:Ta,childrenColumnName:uo,locale:To,getPopupContainer:co}=rt,[Ar,Fo]=(0,Ko.Z)(Xt||gn||Io,{value:Xt}),ta=Me.useRef(new Map),Sa=(0,Me.useCallback)(ba=>{if(Ut){const da=new Map;ba.forEach(wa=>{let Xo=oo(wa);!Xo&&ta.current.has(wa)&&(Xo=ta.current.get(wa)),da.set(wa,Xo)}),ta.current=da}},[oo,Ut]);Me.useEffect(()=>{Sa(Ar)},[Ar]);const{keyEntities:Pa}=(0,Me.useMemo)(()=>{if(jr)return{keyEntities:null};let ba=Vo;if(Ut){const da=new Set(Vo.map((Xo,Ps)=>Wo(Xo,Ps))),wa=Array.from(ta.current).reduce((Xo,Ps)=>{let[Uo,Ra]=Ps;return da.has(Uo)?Xo:Xo.concat(Ra)},[]);ba=[].concat((0,Ri.Z)(ba),(0,Ri.Z)(wa))}return(0,eo.I8)(ba,{externalGetKey:Wo,childrenPropName:uo})},[Vo,Wo,jr,uo,Ut]),ao=(0,Me.useMemo)(()=>Dr(uo,ua),[uo,ua]),ka=(0,Me.useMemo)(()=>{const ba=new Map;return ao.forEach((da,wa)=>{const Xo=Wo(da,wa),Ps=(nn?nn(da):null)||{};ba.set(Xo,Ps)}),ba},[ao,Wo,nn]),Va=(0,Me.useCallback)(ba=>{var da;return!!(!((da=ka.get(Wo(ba)))===null||da===void 0)&&da.disabled)},[ka,Wo]),[bs,us]=(0,Me.useMemo)(()=>{if(jr)return[Ar||[],[]];const{checkedKeys:ba,halfCheckedKeys:da}=(0,Fi.S)(Ar,!0,Pa,Va);return[ba||[],da]},[Ar,jr,Pa,Va]),qs=(0,Me.useMemo)(()=>{const ba=Vi==="radio"?bs.slice(0,1):bs;return new Set(ba)},[bs,Vi]),Ls=(0,Me.useMemo)(()=>Vi==="radio"?new Set:new Set(us),[us,Vi]),[Za,aa]=(0,Me.useState)(null);Me.useEffect(()=>{et||Fo(Io)},[!!et]);const fs=(0,Me.useCallback)((ba,da)=>{let wa,Xo;Sa(ba),Ut?(wa=ba,Xo=ba.map(Ps=>ta.current.get(Ps))):(wa=[],Xo=[],ba.forEach(Ps=>{const Uo=oo(Ps);Uo!==void 0&&(wa.push(Ps),Xo.push(Uo))})),Fo(wa),Vn==null||Vn(wa,Xo,{type:da})},[Fo,oo,Vn,Ut]),el=(0,Me.useCallback)((ba,da,wa,Xo)=>{if(jn){const Ps=wa.map(Uo=>oo(Uo));jn(oo(ba),da,Ps,Xo)}fs(wa,"single")},[jn,oo,fs]),Ws=(0,Me.useMemo)(()=>!Ui||Rr?null:(Ui===!0?[ya,bo,oa]:Ui).map(da=>da===ya?{key:"all",text:To.selectionAll,onSelect(){fs(Vo.map((wa,Xo)=>Wo(wa,Xo)).filter(wa=>{const Xo=ka.get(wa);return!(Xo!=null&&Xo.disabled)||qs.has(wa)}),"all")}}:da===bo?{key:"invert",text:To.selectInvert,onSelect(){const wa=new Set(qs);ua.forEach((Ps,Uo)=>{const Ra=Wo(Ps,Uo),ss=ka.get(Ra);ss!=null&&ss.disabled||(wa.has(Ra)?wa.delete(Ra):wa.add(Ra))});const Xo=Array.from(wa);yi&&yi(Xo),fs(Xo,"invert")}}:da===oa?{key:"none",text:To.selectNone,onSelect(){Jn==null||Jn(),fs(Array.from(qs).filter(wa=>{const Xo=ka.get(wa);return Xo==null?void 0:Xo.disabled}),"none")}}:da).map(da=>Object.assign(Object.assign({},da),{onSelect:function(){for(var wa,Xo,Ps=arguments.length,Uo=new Array(Ps),Ra=0;Ra{var da;if(!et)return ba.filter(Bs=>Bs!==ma);let wa=(0,Ri.Z)(ba);const Xo=new Set(qs),Ps=ao.map(Wo).filter(Bs=>!ka.get(Bs).disabled),Uo=Ps.every(Bs=>Xo.has(Bs)),Ra=Ps.some(Bs=>Xo.has(Bs)),ss=()=>{const Bs=[];Uo?Ps.forEach(Ms=>{Xo.delete(Ms),Bs.push(Ms)}):Ps.forEach(Ms=>{Xo.has(Ms)||(Xo.add(Ms),Bs.push(Ms))});const Ts=Array.from(Xo);Xn==null||Xn(!Uo,Ts.map(Ms=>oo(Ms)),Bs.map(Ms=>oo(Ms))),fs(Ts,"all"),aa(null)};let cs;if(Vi!=="radio"){let Bs;if(Ws){const is={getPopupContainer:co,items:Ws.map((js,Dl)=>{const{key:Ul,text:Gu,onSelect:Du}=js;return{key:Ul!=null?Ul:Dl,onClick:()=>{Du==null||Du(Ps)},label:Gu}})};Bs=Me.createElement("div",{className:`${vo}-selection-extra`},Me.createElement(tu.Z,{menu:is,getPopupContainer:co},Me.createElement("span",null,Me.createElement(No.Z,null))))}const Ts=ao.map((is,js)=>{const Dl=Wo(is,js),Ul=ka.get(Dl)||{};return Object.assign({checked:Xo.has(Dl)},Ul)}).filter(is=>{let{disabled:js}=is;return js}),Ms=!!Ts.length&&Ts.length===ao.length,Gs=Ms&&Ts.every(is=>{let{checked:js}=is;return js}),pl=Ms&&Ts.some(is=>{let{checked:js}=is;return js});cs=!Rr&&Me.createElement("div",{className:`${vo}-selection`},Me.createElement(Ba.default,{checked:Ms?Gs:!!ao.length&&Uo,indeterminate:Ms?!Gs&&pl:!Uo&&Ra,onChange:ss,disabled:ao.length===0||Ms,"aria-label":Bs?"Custom selection":"Select all",skipGroup:!0}),Bs)}let Al;Vi==="radio"?Al=(Bs,Ts,Ms)=>{const Gs=Wo(Ts,Ms),pl=Xo.has(Gs);return{node:Me.createElement(hr.ZP,Object.assign({},ka.get(Gs),{checked:pl,onClick:is=>is.stopPropagation(),onChange:is=>{Xo.has(Gs)||el(Gs,!0,[Gs],is.nativeEvent)}})),checked:pl}}:Al=(Bs,Ts,Ms)=>{var Gs;const pl=Wo(Ts,Ms),is=Xo.has(pl),js=Ls.has(pl),Dl=ka.get(pl);let Ul;return Ta==="nest"?Ul=js:Ul=(Gs=Dl==null?void 0:Dl.indeterminate)!==null&&Gs!==void 0?Gs:js,{node:Me.createElement(Ba.default,Object.assign({},Dl,{indeterminate:Ul,checked:is,skipGroup:!0,onClick:Gu=>Gu.stopPropagation(),onChange:Gu=>{let{nativeEvent:Du}=Gu;const{shiftKey:ml}=Du;let Iu=-1,Ou=-1;if(ml&&jr){const Ns=new Set([Za,pl]);Ps.some((Hl,$s)=>{if(Ns.has(Hl))if(Iu===-1)Iu=$s;else return Ou=$s,!0;return!1})}if(Ou!==-1&&Iu!==Ou&&jr){const Ns=Ps.slice(Iu,Ou+1),Hl=[];is?Ns.forEach(zs=>{Xo.has(zs)&&(Hl.push(zs),Xo.delete(zs))}):Ns.forEach(zs=>{Xo.has(zs)||(Hl.push(zs),Xo.add(zs))});const $s=Array.from(Xo);mi==null||mi(!is,$s.map(zs=>oo(zs)),Hl.map(zs=>oo(zs))),fs($s,"multiple")}else{const Ns=bs;if(jr){const Hl=is?(0,qr._5)(Ns,pl):(0,qr.L0)(Ns,pl);el(pl,!is,Hl,Du)}else{const Hl=(0,Fi.S)([].concat((0,Ri.Z)(Ns),[pl]),!0,Pa,Va),{checkedKeys:$s,halfCheckedKeys:zs}=Hl;let $u=$s;if(is){const Vc=new Set($s);Vc.delete(pl),$u=(0,Fi.S)(Array.from(Vc),{checked:!1,halfCheckedKeys:zs},Pa,Va).checkedKeys}el(pl,!is,$u,Du)}}aa(is?null:pl)}})),checked:is}};const bl=(Bs,Ts,Ms)=>{const{node:Gs,checked:pl}=Al(Bs,Ts,Ms);return ir?ir(pl,Ts,Ms,Gs):Gs};if(!wa.includes(ma))if(wa.findIndex(Bs=>{var Ts;return((Ts=Bs[_r])===null||Ts===void 0?void 0:Ts.columnType)==="EXPAND_COLUMN"})===0){const[Bs,...Ts]=wa;wa=[Bs,ma].concat((0,Ri.Z)(Ts))}else wa=[ma].concat((0,Ri.Z)(wa));const Vl=wa.indexOf(ma);wa=wa.filter((Bs,Ts)=>Bs!==ma||Ts===Vl);const Fs=wa[Vl-1],Zl=wa[Vl+1];let dl=Jr;dl===void 0&&((Zl==null?void 0:Zl.fixed)!==void 0?dl=Zl.fixed:(Fs==null?void 0:Fs.fixed)!==void 0&&(dl=Fs.fixed)),dl&&Fs&&((da=Fs[_r])===null||da===void 0?void 0:da.columnType)==="EXPAND_COLUMN"&&Fs.fixed===void 0&&(Fs.fixed=dl);const Fl=ot()(`${vo}-selection-col`,{[`${vo}-selection-col-with-dropdown`]:Ui&&Vi==="checkbox"}),_c={fixed:dl,width:or,className:`${vo}-selection-column`,title:et.columnTitle||cs,render:bl,onCell:et.onCell,[_r]:{className:Fl}};return wa.map(Bs=>Bs===ma?_c:Bs)},[Wo,ao,et,bs,qs,Ls,or,Ws,Ta,Za,ka,mi,el,Va]),qs]},La=pe(89489),fl=pe(59477),xu=pe(6848);const Jt="ascend",Yt="descend";function Dn(rt){return typeof rt.sorter=="object"&&typeof rt.sorter.multiple=="number"?rt.sorter.multiple:!1}function nt(rt){return typeof rt=="function"?rt:rt&&typeof rt=="object"&&rt.compare?rt.compare:!1}function Qt(rt,et){return et?rt[rt.indexOf(et)+1]:rt[0]}function lr(rt,et,Ut){let Xt=[];function gn(nn,Vn){Xt.push({column:nn,key:Qa(nn,Vn),multiplePriority:Dn(nn),sortOrder:nn.sortOrder})}return(rt||[]).forEach((nn,Vn)=>{const jn=Es(Vn,Ut);nn.children?("sortOrder"in nn&&gn(nn,jn),Xt=[].concat((0,Ri.Z)(Xt),(0,Ri.Z)(lr(nn.children,et,jn)))):nn.sorter&&("sortOrder"in nn?gn(nn,jn):et&&nn.defaultSortOrder&&Xt.push({column:nn,key:Qa(nn,jn),multiplePriority:Dn(nn),sortOrder:nn.defaultSortOrder}))}),Xt}function Ir(rt,et,Ut,Xt,gn,nn,Vn,jn){return(et||[]).map((Xn,yi)=>{const Jn=Es(yi,jn);let mi=Xn;if(mi.sorter){const or=mi.sortDirections||gn,Vi=mi.showSorterTooltip===void 0?Vn:mi.showSorterTooltip,Ui=Qa(mi,Jn),Jr=Ut.find(Ta=>{let{key:uo}=Ta;return uo===Ui}),ir=Jr?Jr.sortOrder:null,Rr=Qt(or,ir);let jr;if(Xn.sortIcon)jr=Xn.sortIcon({sortOrder:ir});else{const Ta=or.includes(Jt)&&Me.createElement(fl.Z,{className:ot()(`${rt}-column-sorter-up`,{active:ir===Jt})}),uo=or.includes(Yt)&&Me.createElement(La.Z,{className:ot()(`${rt}-column-sorter-down`,{active:ir===Yt})});jr=Me.createElement("span",{className:ot()(`${rt}-column-sorter`,{[`${rt}-column-sorter-full`]:!!(Ta&&uo)})},Me.createElement("span",{className:`${rt}-column-sorter-inner`,"aria-hidden":"true"},Ta,uo))}const{cancelSort:vo,triggerAsc:Vo,triggerDesc:ua}=nn||{};let oo=vo;Rr===Yt?oo=ua:Rr===Jt&&(oo=Vo);const Wo=typeof Vi=="object"?Vi:{title:oo};mi=Object.assign(Object.assign({},mi),{className:ot()(mi.className,{[`${rt}-column-sort`]:ir}),title:Ta=>{const uo=Me.createElement("div",{className:`${rt}-column-sorters`},Me.createElement("span",{className:`${rt}-column-title`},ys(Xn.title,Ta)),jr);return Vi?Me.createElement(xu.Z,Object.assign({},Wo),uo):uo},onHeaderCell:Ta=>{const uo=Xn.onHeaderCell&&Xn.onHeaderCell(Ta)||{},To=uo.onClick,co=uo.onKeyDown;uo.onClick=ta=>{Xt({column:Xn,key:Ui,sortOrder:Rr,multiplePriority:Dn(Xn)}),To==null||To(ta)},uo.onKeyDown=ta=>{ta.keyCode===Ji.Z.ENTER&&(Xt({column:Xn,key:Ui,sortOrder:Rr,multiplePriority:Dn(Xn)}),co==null||co(ta))};const Ar=Zs(Xn.title,{}),Fo=Ar==null?void 0:Ar.toString();return ir?uo["aria-sort"]=ir==="ascend"?"ascending":"descending":uo["aria-label"]=Fo||"",uo.className=ot()(uo.className,`${rt}-column-has-sorters`),uo.tabIndex=0,Xn.ellipsis&&(uo.title=(Ar!=null?Ar:"").toString()),uo}})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:Ir(rt,mi.children,Ut,Xt,gn,nn,Vn,Jn)})),mi})}function mr(rt){const{column:et,sortOrder:Ut}=rt;return{column:et,order:Ut,field:et.dataIndex,columnKey:et.key}}function ur(rt){const et=rt.filter(Ut=>{let{sortOrder:Xt}=Ut;return Xt}).map(mr);return et.length===0&&rt.length?Object.assign(Object.assign({},mr(rt[rt.length-1])),{column:void 0}):et.length<=1?et[0]||{}:et}function Bi(rt,et,Ut){const Xt=et.slice().sort((Vn,jn)=>jn.multiplePriority-Vn.multiplePriority),gn=rt.slice(),nn=Xt.filter(Vn=>{let{column:{sorter:jn},sortOrder:Xn}=Vn;return nt(jn)&&Xn});return nn.length?gn.sort((Vn,jn)=>{for(let Xn=0;Xn{const jn=Vn[Ut];return jn?Object.assign(Object.assign({},Vn),{[Ut]:Bi(jn,et,Ut)}):Vn}):gn}function Pr(rt){let{prefixCls:et,mergedColumns:Ut,onSorterChange:Xt,sortDirections:gn,tableLocale:nn,showSorterTooltip:Vn}=rt;const[jn,Xn]=Me.useState(lr(Ut,!0)),yi=Me.useMemo(()=>{let Ui=!0;const Jr=lr(Ut,!1);if(!Jr.length)return jn;const ir=[];function Rr(vo){Ui?ir.push(vo):ir.push(Object.assign(Object.assign({},vo),{sortOrder:null}))}let jr=null;return Jr.forEach(vo=>{jr===null?(Rr(vo),vo.sortOrder&&(vo.multiplePriority===!1?Ui=!1:jr=!0)):(jr&&vo.multiplePriority!==!1||(Ui=!1),Rr(vo))}),ir},[Ut,jn]),Jn=Me.useMemo(()=>{const Ui=yi.map(Jr=>{let{column:ir,sortOrder:Rr}=Jr;return{column:ir,order:Rr}});return{sortColumns:Ui,sortColumn:Ui[0]&&Ui[0].column,sortOrder:Ui[0]&&Ui[0].order}},[yi]);function mi(Ui){let Jr;Ui.multiplePriority===!1||!yi.length||yi[0].multiplePriority===!1?Jr=[Ui]:Jr=[].concat((0,Ri.Z)(yi.filter(ir=>{let{key:Rr}=ir;return Rr!==Ui.key})),[Ui]),Xn(Jr),Xt(ur(Jr),Jr)}return[Ui=>Ir(et,Ui,yi,mi,gn,nn,Vn),yi,Jn,()=>ur(yi)]}function to(rt,et){return rt.map(Ut=>{const Xt=Object.assign({},Ut);return Xt.title=ys(Ut.title,et),"children"in Xt&&(Xt.children=to(Xt.children,et)),Xt})}function So(rt){return[Me.useCallback(Ut=>to(Ut,rt),[rt])]}var fr=Ur((rt,et)=>{const{_renderTimes:Ut}=rt,{_renderTimes:Xt}=et;return Ut!==Xt}),pr=va((rt,et)=>{const{_renderTimes:Ut}=rt,{_renderTimes:Xt}=et;return Ut!==Xt}),vr=pe(64993),ji=pe(17313),Ai=pe(83116),Wr=pe(37613),Br=rt=>{const{componentCls:et}=rt,Ut=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`,Xt=(gn,nn,Vn)=>({[`&${et}-${gn}`]:{[`> ${et}-container`]:{[`> ${et}-content, > ${et}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${et}-expanded-row-fixed`]:{margin:`-${nn}px -${Vn+rt.lineWidth}px`}}}}}});return{[`${et}-wrapper`]:{[`${et}${et}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${et}-title`]:{border:Ut,borderBottom:0},[`> ${et}-container`]:{borderInlineStart:Ut,borderTop:Ut,[` > ${et}-content, > ${et}-header, > ${et}-body, > ${et}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ut},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ut},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${et}-cell-fix-right-first::after`]:{borderInlineEnd:Ut}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${et}-expanded-row-fixed`]:{margin:`-${rt.tablePaddingVertical}px -${rt.tablePaddingHorizontal+rt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:rt.lineWidth,bottom:0,borderInlineEnd:Ut,content:'""'}}}}}},[`&${et}-scroll-horizontal`]:{[`> ${et}-container > ${et}-body`]:{"> table > tbody":{[` > tr${et}-expanded-row, > tr${et}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},Xt("middle",rt.tablePaddingVerticalMiddle,rt.tablePaddingHorizontalMiddle)),Xt("small",rt.tablePaddingVerticalSmall,rt.tablePaddingHorizontalSmall)),{[`> ${et}-footer`]:{border:Ut,borderTop:0}}),[`${et}-cell`]:{[`${et}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${rt.lineWidth}px 0 ${rt.lineWidth}px ${rt.tableHeaderBg}`}},[`${et}-bordered ${et}-cell-scrollbar`]:{borderInlineEnd:Ut}}}},Or=rt=>{const{componentCls:et}=rt;return{[`${et}-wrapper`]:{[`${et}-cell-ellipsis`]:Object.assign(Object.assign({},ji.vS),{wordBreak:"keep-all",[` &${et}-cell-fix-left-last, &${et}-cell-fix-right-first `]:{overflow:"visible",[`${et}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${et}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},gr=rt=>{const{componentCls:et}=rt;return{[`${et}-wrapper`]:{[`${et}-tbody > tr${et}-placeholder`]:{textAlign:"center",color:rt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:rt.colorBgContainer}}}}},Aa=pe(15969),xa=rt=>{const{componentCls:et,antCls:Ut,controlInteractiveSize:Xt,motionDurationSlow:gn,lineWidth:nn,paddingXS:Vn,lineType:jn,tableBorderColor:Xn,tableExpandIconBg:yi,tableExpandColumnWidth:Jn,borderRadius:mi,fontSize:or,fontSizeSM:Vi,lineHeight:Ui,tablePaddingVertical:Jr,tablePaddingHorizontal:ir,tableExpandedRowBg:Rr,paddingXXS:jr}=rt,vo=Xt/2-nn,Vo=vo*2+nn*3,ua=`${nn}px ${jn} ${Xn}`,oo=jr-nn;return{[`${et}-wrapper`]:{[`${et}-expand-icon-col`]:{width:Jn},[`${et}-row-expand-icon-cell`]:{textAlign:"center",[`${et}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${et}-row-indent`]:{height:1,float:"left"},[`${et}-row-expand-icon`]:Object.assign(Object.assign({},(0,Aa.N)(rt)),{position:"relative",float:"left",boxSizing:"border-box",width:Vo,height:Vo,padding:0,color:"inherit",lineHeight:`${Vo}px`,background:yi,border:ua,borderRadius:mi,transform:`scale(${Xt/Vo})`,transition:`all ${gn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${gn} ease-out`,content:'""'},"&::before":{top:vo,insetInlineEnd:oo,insetInlineStart:oo,height:nn},"&::after":{top:oo,bottom:oo,insetInlineStart:vo,width:nn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${et}-row-indent + ${et}-row-expand-icon`]:{marginTop:(or*Ui-nn*3)/2-Math.ceil((Vi*1.4-nn*3)/2),marginInlineEnd:Vn},[`tr${et}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Rr}},[`${Ut}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${et}-expanded-row-fixed`]:{position:"relative",margin:`-${Jr}px -${ir}px`,padding:`${Jr}px ${ir}px`}}}},wo=rt=>{const{componentCls:et,antCls:Ut,iconCls:Xt,tableFilterDropdownWidth:gn,tableFilterDropdownSearchWidth:nn,paddingXXS:Vn,paddingXS:jn,colorText:Xn,lineWidth:yi,lineType:Jn,tableBorderColor:mi,tableHeaderIconColor:or,fontSizeSM:Vi,tablePaddingHorizontal:Ui,borderRadius:Jr,motionDurationSlow:ir,colorTextDescription:Rr,colorPrimary:jr,tableHeaderFilterActiveBg:vo,colorTextDisabled:Vo,tableFilterDropdownBg:ua,tableFilterDropdownHeight:oo,controlItemBgHover:Wo,controlItemBgActive:Ta,boxShadowSecondary:uo,filterDropdownMenuBg:To}=rt,co=`${Ut}-dropdown`,Ar=`${et}-filter-dropdown`,Fo=`${Ut}-tree`,ta=`${yi}px ${Jn} ${mi}`;return[{[`${et}-wrapper`]:{[`${et}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${et}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Vn,marginInline:`${Vn}px ${-Ui/2}px`,padding:`0 ${Vn}px`,color:or,fontSize:Vi,borderRadius:Jr,cursor:"pointer",transition:`all ${ir}`,"&:hover":{color:Rr,background:vo},"&.active":{color:jr}}}},{[`${Ut}-dropdown`]:{[Ar]:Object.assign(Object.assign({},(0,ji.Wf)(rt)),{minWidth:gn,backgroundColor:ua,borderRadius:Jr,boxShadow:uo,overflow:"hidden",[`${co}-menu`]:{maxHeight:oo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:To,"&:empty::after":{display:"block",padding:`${jn}px 0`,color:Vo,fontSize:Vi,textAlign:"center",content:'"Not Found"'}},[`${Ar}-tree`]:{paddingBlock:`${jn}px 0`,paddingInline:jn,[Fo]:{padding:0},[`${Fo}-treenode ${Fo}-node-content-wrapper:hover`]:{backgroundColor:Wo},[`${Fo}-treenode-checkbox-checked ${Fo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ta}}},[`${Ar}-search`]:{padding:jn,borderBottom:ta,"&-input":{input:{minWidth:nn},[Xt]:{color:Vo}}},[`${Ar}-checkall`]:{width:"100%",marginBottom:Vn,marginInlineStart:Vn},[`${Ar}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${jn-yi}px ${jn}px`,overflow:"hidden",borderTop:ta}})}},{[`${Ut}-dropdown ${Ar}, ${Ar}-submenu`]:{[`${Ut}-checkbox-wrapper + span`]:{paddingInlineStart:jn,color:Xn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},El=rt=>{const{componentCls:et,lineWidth:Ut,colorSplit:Xt,motionDurationSlow:gn,zIndexTableFixed:nn,tableBg:Vn,zIndexTableSticky:jn}=rt,Xn=Xt;return{[`${et}-wrapper`]:{[` ${et}-cell-fix-left, ${et}-cell-fix-right `]:{position:"sticky !important",zIndex:nn,background:Vn},[` ${et}-cell-fix-left-first::after, ${et}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ut,width:30,transform:"translateX(100%)",transition:`box-shadow ${gn}`,content:'""',pointerEvents:"none"},[`${et}-cell-fix-left-all::after`]:{display:"none"},[` ${et}-cell-fix-right-first::after, ${et}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-Ut,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${gn}`,content:'""',pointerEvents:"none"},[`${et}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:jn+1,width:30,transition:`box-shadow ${gn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${et}-ping-left`]:{[`&:not(${et}-has-fix-left) ${et}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Xn}`}},[` ${et}-cell-fix-left-first::after, ${et}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Xn}`},[`${et}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${et}-ping-right`]:{[`&:not(${et}-has-fix-right) ${et}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Xn}`}},[` ${et}-cell-fix-right-first::after, ${et}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Xn}`}}}}},_s=rt=>{const{componentCls:et,antCls:Ut}=rt;return{[`${et}-wrapper`]:{[`${et}-pagination${Ut}-pagination`]:{margin:`${rt.margin}px 0`},[`${et}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:rt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Hs=rt=>{const{componentCls:et,tableRadius:Ut}=rt;return{[`${et}-wrapper`]:{[et]:{[`${et}-title, ${et}-header`]:{borderRadius:`${Ut}px ${Ut}px 0 0`},[`${et}-title + ${et}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${et}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ut,borderStartEndRadius:Ut,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ut},"> *:last-child":{borderStartEndRadius:Ut}}},"&-footer":{borderRadius:`0 0 ${Ut}px ${Ut}px`}}}}},rc=rt=>{const{componentCls:et}=rt;return{[`${et}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${et}-pagination-left`]:{justifyContent:"flex-end"},[`${et}-pagination-right`]:{justifyContent:"flex-start"},[`${et}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${et}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${et}-row-indent`]:{float:"right"}}}}},kc=rt=>{const{componentCls:et,antCls:Ut,iconCls:Xt,fontSizeIcon:gn,padding:nn,paddingXS:Vn,tableHeaderIconColor:jn,tableHeaderIconColorHover:Xn,tableSelectionColumnWidth:yi}=rt;return{[`${et}-wrapper`]:{[`${et}-selection-col`]:{width:yi,[`&${et}-selection-col-with-dropdown`]:{width:yi+gn+nn/4}},[`${et}-bordered ${et}-selection-col`]:{width:yi+Vn*2,[`&${et}-selection-col-with-dropdown`]:{width:yi+gn+nn/4+Vn*2}},[` table tr th${et}-selection-column, table tr td${et}-selection-column `]:{paddingInlineEnd:rt.paddingXS,paddingInlineStart:rt.paddingXS,textAlign:"center",[`${Ut}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${et}-selection-column${et}-cell-fix-left`]:{zIndex:rt.zIndexTableFixed+1},[`table tr th${et}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${et}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${et}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${rt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${rt.tablePaddingHorizontal/4}px`,[Xt]:{color:jn,fontSize:gn,verticalAlign:"baseline","&:hover":{color:Xn}}}}}},vc=rt=>{const{componentCls:et}=rt,Ut=(Xt,gn,nn,Vn)=>({[`${et}${et}-${Xt}`]:{fontSize:Vn,[` ${et}-title, ${et}-footer, ${et}-cell, ${et}-thead > tr > th, ${et}-tbody > tr > th, ${et}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${gn}px ${nn}px`},[`${et}-filter-trigger`]:{marginInlineEnd:`-${nn/2}px`},[`${et}-expanded-row-fixed`]:{margin:`-${gn}px -${nn}px`},[`${et}-tbody`]:{[`${et}-wrapper:only-child ${et}`]:{marginBlock:`-${gn}px`,marginInline:`${rt.tableExpandColumnWidth-nn}px -${nn}px`}},[`${et}-selection-column`]:{paddingInlineStart:`${nn/4}px`}}});return{[`${et}-wrapper`]:Object.assign(Object.assign({},Ut("middle",rt.tablePaddingVerticalMiddle,rt.tablePaddingHorizontalMiddle,rt.tableFontSizeMiddle)),Ut("small",rt.tablePaddingVerticalSmall,rt.tablePaddingHorizontalSmall,rt.tableFontSizeSmall))}},du=rt=>{const{componentCls:et,marginXXS:Ut,fontSizeIcon:Xt,tableHeaderIconColor:gn,tableHeaderIconColorHover:nn}=rt;return{[`${et}-wrapper`]:{[`${et}-thead th${et}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${rt.motionDurationSlow}`,"&:hover":{background:rt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:rt.colorPrimary},[` &${et}-cell-fix-left:hover, &${et}-cell-fix-right:hover `]:{background:rt.tableFixedHeaderSortActiveBg}},[`${et}-thead th${et}-column-sort`]:{background:rt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${et}-column-sort`]:{background:rt.tableBodySortBg},[`${et}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${et}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${et}-column-sorter`]:{marginInlineStart:Ut,color:gn,fontSize:0,transition:`color ${rt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Xt,"&.active":{color:rt.colorPrimary}},[`${et}-column-sorter-up + ${et}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${et}-column-sorters:hover ${et}-column-sorter`]:{color:nn}}}},ac=rt=>{const{componentCls:et,opacityLoading:Ut,tableScrollThumbBg:Xt,tableScrollThumbBgHover:gn,tableScrollThumbSize:nn,tableScrollBg:Vn,zIndexTableSticky:jn,stickyScrollBarBorderRadius:Xn}=rt,yi=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`;return{[`${et}-wrapper`]:{[`${et}-sticky`]:{"&-holder":{position:"sticky",zIndex:jn,background:rt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${nn}px !important`,zIndex:jn,display:"flex",alignItems:"center",background:Vn,borderTop:yi,opacity:Ut,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nn,backgroundColor:Xt,borderRadius:Xn,transition:`all ${rt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:gn}}}}}}},au=rt=>{const{componentCls:et,lineWidth:Ut,tableBorderColor:Xt}=rt,gn=`${Ut}px ${rt.lineType} ${Xt}`;return{[`${et}-wrapper`]:{[`${et}-summary`]:{position:"relative",zIndex:rt.zIndexTableFixed,background:rt.tableBg,"> tr":{"> th, > td":{borderBottom:gn}}},[`div${et}-summary`]:{boxShadow:`0 -${Ut}px 0 ${Xt}`}}}},Wu=rt=>{const{componentCls:et}=rt,Ut=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`,Xt=`${et}-expanded-row-cell`;return{[`${et}-wrapper`]:{[`${et}-tbody-virtual`]:{[`${et}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${et}-cell`]:{borderBottom:Ut},[`${et}-expanded-row`]:{[`${Xt}${Xt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${rt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${et}-bordered`]:{[`${et}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ut,position:"absolute"},[`${et}-cell`]:{borderInlineEnd:Ut,[`&${et}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-rt.lineWidth,borderInlineStart:Ut}}}}}}};const Au=rt=>{const{componentCls:et,fontWeightStrong:Ut,tablePaddingVertical:Xt,tablePaddingHorizontal:gn,lineWidth:nn,lineType:Vn,tableBorderColor:jn,tableFontSize:Xn,tableBg:yi,tableRadius:Jn,tableHeaderTextColor:mi,motionDurationMid:or,tableHeaderBg:Vi,tableHeaderCellSplitColor:Ui,tableRowHoverBg:Jr,tableSelectedRowBg:ir,tableSelectedRowHoverBg:Rr,tableFooterTextColor:jr,tableFooterBg:vo,paddingContentVerticalLG:Vo}=rt,ua=`${nn}px ${Vn} ${jn}`;return{[`${et}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ji.dF)()),{[et]:Object.assign(Object.assign({},(0,ji.Wf)(rt)),{fontSize:Xn,background:yi,borderRadius:`${Jn}px ${Jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Jn}px ${Jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${et}-cell, ${et}-thead > tr > th, ${et}-tbody > tr > th, ${et}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${Vo}px ${gn}px`,overflowWrap:"break-word"},[`${et}-title`]:{padding:`${Xt}px ${gn}px`},[`${et}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mi,fontWeight:Ut,textAlign:"start",background:Vi,borderBottom:ua,transition:`background ${or} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${et}-selection-column):not(${et}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ui,transform:"translateY(-50%)",transition:`background-color ${or}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${et}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${or}, border-color ${or}`,borderBottom:ua,[` > ${et}-wrapper:only-child, > ${et}-expanded-row-fixed > ${et}-wrapper:only-child `]:{[et]:{marginBlock:`-${Xt}px`,marginInline:`${rt.tableExpandColumnWidth-gn}px -${gn}px`,[`${et}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mi,fontWeight:Ut,textAlign:"start",background:Vi,borderBottom:ua,transition:`background ${or} ease`},[` &${et}-row:hover > th, &${et}-row:hover > td, > th${et}-cell-row-hover, > td${et}-cell-row-hover `]:{background:Jr},[`&${et}-row-selected`]:{"> th, > td":{background:ir},"&:hover > th, &:hover > td":{background:Rr}}}},[`${et}-footer`]:{padding:`${Xt}px ${gn}px`,color:jr,background:vo}})}};var yc=(0,Ai.Z)("Table",rt=>{const{colorTextHeading:et,colorSplit:Ut,colorIcon:Xt,colorIconHover:gn,opacityLoading:nn,colorBgContainer:Vn,controlInteractiveSize:jn,headerBg:Xn,headerColor:yi,headerSortActiveBg:Jn,headerSortHoverBg:mi,bodySortBg:or,rowHoverBg:Vi,rowSelectedBg:Ui,rowSelectedHoverBg:Jr,rowExpandedBg:ir,cellPaddingBlock:Rr,cellPaddingInline:jr,cellPaddingBlockMD:vo,cellPaddingInlineMD:Vo,cellPaddingBlockSM:ua,cellPaddingInlineSM:oo,borderColor:Wo,footerBg:Ta,footerColor:uo,headerBorderRadius:To,cellFontSize:co,cellFontSizeMD:Ar,cellFontSizeSM:Fo,headerSplitColor:ta,fixedHeaderSortActiveBg:Sa,headerFilterHoverBg:Pa,filterDropdownBg:ao,expandIconBg:ka,selectionColumnWidth:Va,stickyScrollBarBg:bs}=rt,us=new vr.C(Xt),qs=new vr.C(gn),Ls=2,Za=(0,Wr.TS)(rt,{tableFontSize:co,tableBg:Vn,tableRadius:To,tablePaddingVertical:Rr,tablePaddingHorizontal:jr,tablePaddingVerticalMiddle:vo,tablePaddingHorizontalMiddle:Vo,tablePaddingVerticalSmall:ua,tablePaddingHorizontalSmall:oo,tableBorderColor:Wo,tableHeaderTextColor:yi,tableHeaderBg:Xn,tableFooterTextColor:uo,tableFooterBg:Ta,tableHeaderCellSplitColor:ta,tableHeaderSortBg:Jn,tableHeaderSortHoverBg:mi,tableHeaderIconColor:us.clone().setAlpha(us.getAlpha()*nn).toRgbString(),tableHeaderIconColorHover:qs.clone().setAlpha(qs.getAlpha()*nn).toRgbString(),tableBodySortBg:or,tableFixedHeaderSortActiveBg:Sa,tableHeaderFilterActiveBg:Pa,tableFilterDropdownBg:ao,tableRowHoverBg:Vi,tableSelectedRowBg:Ui,tableSelectedRowHoverBg:Jr,zIndexTableFixed:Ls,zIndexTableSticky:Ls+1,tableFontSizeMiddle:Ar,tableFontSizeSmall:Fo,tableSelectionColumnWidth:Va,tableExpandIconBg:ka,tableExpandColumnWidth:jn+2*rt.padding,tableExpandedRowBg:ir,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:bs,tableScrollThumbBgHover:et,tableScrollBg:Ut});return[Au(Za),_s(Za),au(Za),du(Za),wo(Za),Br(Za),Hs(Za),xa(Za),au(Za),gr(Za),kc(Za),El(Za),ac(Za),Or(Za),vc(Za),rc(Za),Wu(Za)]},rt=>{const{colorFillAlter:et,colorBgContainer:Ut,colorTextHeading:Xt,colorFillSecondary:gn,colorFillContent:nn,controlItemBgActive:Vn,controlItemBgActiveHover:jn,padding:Xn,paddingSM:yi,paddingXS:Jn,colorBorderSecondary:mi,borderRadiusLG:or,fontSize:Vi,controlHeight:Ui,colorTextPlaceholder:Jr}=rt,ir=new vr.C(gn).onBackground(Ut).toHexShortString(),Rr=new vr.C(nn).onBackground(Ut).toHexShortString(),jr=new vr.C(et).onBackground(Ut).toHexShortString();return{headerBg:jr,headerColor:Xt,headerSortActiveBg:ir,headerSortHoverBg:Rr,bodySortBg:jr,rowHoverBg:jr,rowSelectedBg:Vn,rowSelectedHoverBg:jn,rowExpandedBg:et,cellPaddingBlock:Xn,cellPaddingInline:Xn,cellPaddingBlockMD:yi,cellPaddingInlineMD:Jn,cellPaddingBlockSM:Jn,cellPaddingInlineSM:Jn,borderColor:mi,headerBorderRadius:or,footerBg:jr,footerColor:Xt,cellFontSize:Vi,cellFontSizeMD:Vi,cellFontSizeSM:Vi,headerSplitColor:mi,fixedHeaderSortActiveBg:ir,headerFilterHoverBg:nn,filterDropdownMenuBg:Ut,filterDropdownBg:Ut,expandIconBg:Ut,selectionColumnWidth:Ui,stickyScrollBarBg:Jr,stickyScrollBarBorderRadius:100}});const bd=[],_d=(rt,et)=>{const{prefixCls:Ut,className:Xt,rootClassName:gn,style:nn,size:Vn,bordered:jn,dropdownPrefixCls:Xn,dataSource:yi,pagination:Jn,rowSelection:mi,rowKey:or="key",rowClassName:Vi,columns:Ui,children:Jr,childrenColumnName:ir,onChange:Rr,getPopupContainer:jr,loading:vo,expandIcon:Vo,expandable:ua,expandedRowRender:oo,expandIconColumnIndex:Wo,indentSize:Ta,scroll:uo,sortDirections:To,locale:co,showSorterTooltip:Ar=!0,virtual:Fo}=rt,ta=Me.useMemo(()=>Ui||on(Jr),[Ui,Jr]),Sa=Me.useMemo(()=>ta.some(ws=>ws.responsive),[ta]),Pa=(0,pi.Z)(Sa),ao=Me.useMemo(()=>{const ws=new Set(Object.keys(Pa).filter(Ys=>Pa[Ys]));return ta.filter(Ys=>!Ys.responsive||Ys.responsive.some(vl=>ws.has(vl)))},[ta,Pa]),ka=(0,Eo.Z)(rt,["className","style","columns"]),{locale:Va=io.Z,direction:bs,table:us,renderEmpty:qs,getPrefixCls:Ls,getPopupContainer:Za}=Me.useContext(os.E_),aa=(0,Qr.Z)(Vn),fs=Object.assign(Object.assign({},Va.Table),co),el=yi||bd,Ws=Ls("table",Ut),cl=Ls("dropdown",Xn),ba=Object.assign({childrenColumnName:ir,expandIconColumnIndex:Wo},ua),{childrenColumnName:da="children"}=ba,wa=Me.useMemo(()=>el.some(ws=>ws==null?void 0:ws[da])?"nest":oo||ua&&ua.expandedRowRender?"row":null,[el]),Xo={body:Me.useRef()},Ps=Me.useMemo(()=>typeof or=="function"?or:ws=>ws==null?void 0:ws[or],[or]),[Uo]=Mi(el,da,Ps),Ra={},ss=function(ws,Ys){let vl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Xs,ms,yl;const Su=Object.assign(Object.assign({},Ra),ws);vl&&((Xs=Ra.resetPagination)===null||Xs===void 0||Xs.call(Ra),!((ms=Su.pagination)===null||ms===void 0)&&ms.current&&(Su.pagination.current=1),Jn&&Jn.onChange&&Jn.onChange(1,(yl=Su.pagination)===null||yl===void 0?void 0:yl.pageSize)),uo&&uo.scrollToFirstRowOnChange!==!1&&Xo.body.current&&(0,Na.Z)(0,{getContainer:()=>Xo.body.current}),Rr==null||Rr(Su.pagination,Su.filters,Su.sorter,{currentDataSource:Gi(Bi(el,Su.sorterStates,da),Su.filterStates),action:Ys})},cs=(ws,Ys)=>{ss({sorter:ws,sorterStates:Ys},"sort",!1)},[Al,bl,Vl,Fs]=Pr({prefixCls:Ws,mergedColumns:ao,onSorterChange:cs,sortDirections:To||["ascend","descend"],tableLocale:fs,showSorterTooltip:Ar}),Zl=Me.useMemo(()=>Bi(el,bl,da),[el,bl]);Ra.sorter=Fs(),Ra.sorterStates=bl;const dl=(ws,Ys)=>{ss({filters:ws,filterStates:Ys},"filter",!0)},[Fl,_c,Bs]=oi({prefixCls:Ws,locale:fs,dropdownPrefixCls:cl,mergedColumns:ao,onFilterChange:dl,getPopupContainer:jr||Za}),Ts=Gi(Zl,_c);Ra.filters=Bs,Ra.filterStates=_c;const Ms=Me.useMemo(()=>{const ws={};return Object.keys(Bs).forEach(Ys=>{Bs[Ys]!==null&&(ws[Ys]=Bs[Ys])}),Object.assign(Object.assign({},Vl),{filters:ws})},[Vl,Bs]),[Gs]=So(Ms),pl=(ws,Ys)=>{ss({pagination:Object.assign(Object.assign({},Ra.pagination),{current:ws,pageSize:Ys})},"paginate")},[is,js]=Ka(Ts.length,pl,Jn);Ra.pagination=Jn===!1?{}:$o(is,Jn),Ra.resetPagination=js;const Dl=Me.useMemo(()=>{if(Jn===!1||!is.pageSize)return Ts;const{current:ws=1,total:Ys,pageSize:vl=ga}=is;return Ts.lengthvl?Ts.slice((ws-1)*vl,ws*vl):Ts:Ts.slice((ws-1)*vl,ws*vl)},[!!Jn,Ts,is&&is.current,is&&is.pageSize,is&&is.total]),[Ul,Gu]=Ha({prefixCls:Ws,data:Ts,pageData:Dl,getRowKey:Ps,getRecordByKey:Uo,expandType:wa,childrenColumnName:da,locale:fs,getPopupContainer:jr||Za},mi),Du=(ws,Ys,vl)=>{let Xs;return typeof Vi=="function"?Xs=ot()(Vi(ws,Ys,vl)):Xs=ot()(Vi),ot()({[`${Ws}-row-selected`]:Gu.has(Ps(ws,Ys))},Xs)};ba.__PARENT_RENDER_ICON__=ba.expandIcon,ba.expandIcon=ba.expandIcon||Vo||$a(fs),wa==="nest"&&ba.expandIconColumnIndex===void 0?ba.expandIconColumnIndex=mi?1:0:ba.expandIconColumnIndex>0&&mi&&(ba.expandIconColumnIndex-=1),typeof ba.indentSize!="number"&&(ba.indentSize=typeof Ta=="number"?Ta:15);const ml=Me.useCallback(ws=>Gs(Ul(Fl(Al(ws)))),[Al,Fl,Ul]);let Iu,Ou;if(Jn!==!1&&(is!=null&&is.total)){let ws;is.size?ws=is.size:ws=aa==="small"||aa==="middle"?"small":void 0;const Ys=ms=>Me.createElement(ro.Z,Object.assign({},is,{className:ot()(`${Ws}-pagination ${Ws}-pagination-${ms}`,is.className),size:ws})),vl=bs==="rtl"?"left":"right",{position:Xs}=is;if(Xs!==null&&Array.isArray(Xs)){const ms=Xs.find(xc=>xc.includes("top")),yl=Xs.find(xc=>xc.includes("bottom")),Su=Xs.every(xc=>`${xc}`=="none");!ms&&!yl&&!Su&&(Ou=Ys(vl)),ms&&(Iu=Ys(ms.toLowerCase().replace("top",""))),yl&&(Ou=Ys(yl.toLowerCase().replace("bottom","")))}else Ou=Ys(vl)}let Ns;typeof vo=="boolean"?Ns={spinning:vo}:typeof vo=="object"&&(Ns=Object.assign({spinning:!0},vo));const[Hl,$s]=yc(Ws),[,zs]=(0,Ca.Z)(),$u=ot()(`${Ws}-wrapper`,us==null?void 0:us.className,{[`${Ws}-wrapper-rtl`]:bs==="rtl"},Xt,gn,$s),Vc=Object.assign(Object.assign({},us==null?void 0:us.style),nn),sc=co&&co.emptyText||(qs==null?void 0:qs("Table"))||Me.createElement(xo.Z,{componentName:"Table"}),lc=Fo?pr:fr,Ku={},Tu=Me.useMemo(()=>{const{fontSize:ws,lineHeight:Ys,padding:vl,paddingXS:Xs,paddingSM:ms}=zs,yl=Math.floor(ws*Ys);switch(aa){case"large":return vl*2+yl;case"small":return Xs*2+yl;default:return ms*2+yl}},[zs,aa]);return Fo&&(Ku.listItemHeight=Tu),Hl(Me.createElement("div",{ref:et,className:$u,style:Vc},Me.createElement(Ja.Z,Object.assign({spinning:!1},Ns),Iu,Me.createElement(lc,Object.assign({},Ku,ka,{columns:ao,direction:bs,expandable:ba,prefixCls:Ws,className:ot()({[`${Ws}-middle`]:aa==="middle",[`${Ws}-small`]:aa==="small",[`${Ws}-bordered`]:jn,[`${Ws}-empty`]:el.length===0}),data:Dl,rowKey:Ps,rowClassName:Du,emptyText:sc,internalHooks:ke,internalRefs:Xo,transformColumns:ml})),Ou)))};var Fd=Me.forwardRef(_d);const ch=(rt,et)=>{const Ut=Me.useRef(0);return Ut.current+=1,Me.createElement(Fd,Object.assign({},rt,{ref:et,_renderTimes:Ut.current}))},li=Me.forwardRef(ch);li.SELECTION_COLUMN=ma,li.EXPAND_COLUMN=le,li.SELECTION_ALL=ya,li.SELECTION_INVERT=bo,li.SELECTION_NONE=oa,li.Column=Lo,li.ColumnGroup=la,li.Summary=at;var fo=li,Xa=fo},12563:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return dt}});var le=pe(59301),ke=pe(99267),We=pe(92310),ut=pe.n(We),Ge=pe(36785),Ue=pe(47729),Me=pe(14088),Ct=pe(36355),wt=pe(17313),$e=pe(37613),Ft=pe(83116);const lt=He=>{const{paddingXXS:Nt,lineWidth:ot,tagPaddingHorizontal:Tt,componentCls:xt}=He,Ot=Tt-ot,Wt=Nt-ot;return{[xt]:Object.assign(Object.assign({},(0,wt.Wf)(He)),{display:"inline-block",height:"auto",marginInlineEnd:He.marginXS,paddingInline:Ot,fontSize:He.tagFontSize,lineHeight:He.tagLineHeight,whiteSpace:"nowrap",background:He.defaultBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadiusSM,opacity:1,transition:`all ${He.motionDurationMid}`,textAlign:"start",position:"relative",[`&${xt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:He.defaultColor},[`${xt}-close-icon`]:{marginInlineStart:Wt,color:He.colorTextDescription,fontSize:He.tagIconSize,cursor:"pointer",transition:`all ${He.motionDurationMid}`,"&:hover":{color:He.colorTextHeading}},[`&${xt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${He.iconCls}-close, ${He.iconCls}-close:hover`]:{color:He.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${xt}-checkable-checked):hover`]:{color:He.colorPrimary,backgroundColor:He.colorFillSecondary},"&:active, &-checked":{color:He.colorTextLightSolid},"&-checked":{backgroundColor:He.colorPrimary,"&:hover":{backgroundColor:He.colorPrimaryHover}},"&:active":{backgroundColor:He.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${He.iconCls} + span, > span + ${He.iconCls}`]:{marginInlineStart:Ot}}),[`${xt}-borderless`]:{borderColor:"transparent",background:He.tagBorderlessBg}}},vt=He=>{const{lineWidth:Nt,fontSizeIcon:ot}=He,Tt=He.fontSizeSM,xt=`${He.lineHeightSM*Tt}px`;return(0,$e.TS)(He,{tagFontSize:Tt,tagLineHeight:xt,tagIconSize:ot-2*Nt,tagPaddingHorizontal:8,tagBorderlessBg:He.colorFillTertiary})},Ie=He=>({defaultBg:He.colorFillQuaternary,defaultColor:He.colorText});var te=(0,Ft.Z)("Tag",He=>{const Nt=vt(He);return lt(Nt)},Ie),ee=function(He,Nt){var ot={};for(var Tt in He)Object.prototype.hasOwnProperty.call(He,Tt)&&Nt.indexOf(Tt)<0&&(ot[Tt]=He[Tt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Tt=Object.getOwnPropertySymbols(He);xt{const{prefixCls:Nt,style:ot,className:Tt,checked:xt,onChange:Ot,onClick:Wt}=He,Dt=ee(He,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:tt,tag:Ve}=le.useContext(Ct.E_),_t=ln=>{Ot==null||Ot(!xt),Wt==null||Wt(ln)},vn=tt("tag",Nt),[yn,zt]=te(vn),qt=ut()(vn,`${vn}-checkable`,{[`${vn}-checkable-checked`]:xt},Ve==null?void 0:Ve.className,Tt,zt);return yn(le.createElement("span",Object.assign({},Dt,{style:Object.assign(Object.assign({},ot),Ve==null?void 0:Ve.style),className:qt,onClick:_t})))},he=pe(45157);const ve=He=>(0,he.Z)(He,(Nt,ot)=>{let{textColor:Tt,lightBorderColor:xt,lightColor:Ot,darkColor:Wt}=ot;return{[`${He.componentCls}-${Nt}`]:{color:Tt,background:Ot,borderColor:xt,"&-inverse":{color:He.colorTextLightSolid,background:Wt,borderColor:Wt},[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ee=(0,Ft.b)(["Tag","preset"],He=>{const Nt=vt(He);return ve(Nt)},Ie);function Be(He){return typeof He!="string"?He:He.charAt(0).toUpperCase()+He.slice(1)}const Le=(He,Nt,ot)=>{const Tt=Be(ot);return{[`${He.componentCls}-${Nt}`]:{color:He[`color${ot}`],background:He[`color${Tt}Bg`],borderColor:He[`color${Tt}Border`],[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ze=(0,Ft.b)(["Tag","status"],He=>{const Nt=vt(He);return[Le(Nt,"success","Success"),Le(Nt,"processing","Info"),Le(Nt,"error","Error"),Le(Nt,"warning","Warning")]},Ie),je=function(He,Nt){var ot={};for(var Tt in He)Object.prototype.hasOwnProperty.call(He,Tt)&&Nt.indexOf(Tt)<0&&(ot[Tt]=He[Tt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Tt=Object.getOwnPropertySymbols(He);xt{const{prefixCls:ot,className:Tt,rootClassName:xt,style:Ot,children:Wt,icon:Dt,color:tt,onClose:Ve,closeIcon:_t,closable:vn,bordered:yn=!0}=He,zt=je(He,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:qt,direction:ln,tag:Gn}=le.useContext(Ct.E_),[un,_n]=le.useState(!0);le.useEffect(()=>{"visible"in zt&&_n(zt.visible)},[zt.visible]);const St=(0,Ge.o2)(tt),Zn=(0,Ge.yT)(tt),ci=St||Zn,Ze=Object.assign(Object.assign({backgroundColor:tt&&!ci?tt:void 0},Gn==null?void 0:Gn.style),Ot),be=qt("tag",ot),[Pe,Ae]=te(be),Oe=ut()(be,Gn==null?void 0:Gn.className,{[`${be}-${tt}`]:ci,[`${be}-has-color`]:tt&&!ci,[`${be}-hidden`]:!un,[`${be}-rtl`]:ln==="rtl",[`${be}-borderless`]:!yn},Tt,xt,Ae),xe=Bt=>{Bt.stopPropagation(),Ve==null||Ve(Bt),!Bt.defaultPrevented&&_n(!1)},[,ct]=(0,Ue.Z)(vn,_t,Bt=>Bt===null?le.createElement(ke.Z,{className:`${be}-close-icon`,onClick:xe}):le.createElement("span",{className:`${be}-close-icon`,onClick:xe},Bt),null,!1),Mt=typeof zt.onClick=="function"||Wt&&Wt.type==="a",at=Dt||null,qe=at?le.createElement(le.Fragment,null,at,Wt&&le.createElement("span",null,Wt)):Wt,Lt=le.createElement("span",Object.assign({},zt,{ref:Nt,className:Oe,style:Ze}),qe,ct,St&&le.createElement(Ee,{key:"preset",prefixCls:be}),Zn&&le.createElement(ze,{key:"status",prefixCls:be}));return Pe(Mt?le.createElement(Me.Z,{component:"Tag"},Lt):Lt)},Ye=le.forwardRef(Xe);Ye.CheckableTag=se;var dt=Ye},10777:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ze}});var le=pe(92310),ke=pe.n(le),We=pe(59301),ut=pe(36355),Ge=function(je,Xe){var Ye={};for(var dt in je)Object.prototype.hasOwnProperty.call(je,dt)&&Xe.indexOf(dt)<0&&(Ye[dt]=je[dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,dt=Object.getOwnPropertySymbols(je);He{var{prefixCls:Xe,className:Ye,color:dt="blue",dot:He,pending:Nt=!1,position:ot,label:Tt,children:xt}=je,Ot=Ge(je,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:Wt}=We.useContext(ut.E_),Dt=Wt("timeline",Xe),tt=ke()(`${Dt}-item`,{[`${Dt}-item-pending`]:Nt},Ye),Ve=/blue|red|green|gray/.test(dt||"")?void 0:dt,_t=ke()(`${Dt}-item-head`,{[`${Dt}-item-head-custom`]:!!He,[`${Dt}-item-head-${dt}`]:!Ve});return We.createElement("li",Object.assign({},Ot,{className:tt}),Tt&&We.createElement("div",{className:`${Dt}-item-label`},Tt),We.createElement("div",{className:`${Dt}-item-tail`}),We.createElement("div",{className:_t,style:{borderColor:Ve,color:Ve}},He),We.createElement("div",{className:`${Dt}-item-content`},xt))},Ct=pe(19127),wt=pe(58617),$e=function(je,Xe){var Ye={};for(var dt in je)Object.prototype.hasOwnProperty.call(je,dt)&&Xe.indexOf(dt)<0&&(Ye[dt]=je[dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,dt=Object.getOwnPropertySymbols(je);He{var{prefixCls:Xe,className:Ye,pending:dt=!1,children:He,items:Nt,rootClassName:ot,reverse:Tt=!1,direction:xt,hashId:Ot,pendingDot:Wt,mode:Dt=""}=je,tt=$e(je,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Ve=(un,_n)=>Dt==="alternate"?un==="right"?`${Xe}-item-right`:un==="left"?`${Xe}-item-left`:_n%2===0?`${Xe}-item-left`:`${Xe}-item-right`:Dt==="left"?`${Xe}-item-left`:Dt==="right"?`${Xe}-item-right`:un==="right"?`${Xe}-item-right`:"",_t=(0,Ct.Z)(Nt||[]),vn=typeof dt=="boolean"?null:dt;dt&&_t.push({pending:!!dt,dot:Wt||We.createElement(wt.Z,null),children:vn}),Tt&&_t.reverse();const yn=_t.length,zt=`${Xe}-item-last`,qt=_t.filter(un=>!!un).map((un,_n)=>{var St;const Zn=_n===yn-2?zt:"",ci=_n===yn-1?zt:"",{className:Ze}=un,be=$e(un,["className"]);return We.createElement(Me,Object.assign({},be,{className:ke()([Ze,!Tt&&dt?Zn:ci,Ve((St=un==null?void 0:un.position)!==null&&St!==void 0?St:"",_n)]),key:(un==null?void 0:un.key)||_n}))}),ln=_t.some(un=>!!(un!=null&&un.label)),Gn=ke()(Xe,{[`${Xe}-pending`]:!!dt,[`${Xe}-reverse`]:!!Tt,[`${Xe}-${Dt}`]:!!Dt&&!ln,[`${Xe}-label`]:ln,[`${Xe}-rtl`]:xt==="rtl"},Ye,ot,Ot);return We.createElement("ul",Object.assign({},tt,{className:Gn}),qt)},vt=pe(11592);function Ie(je,Xe){return je&&Array.isArray(je)?je:(0,vt.Z)(Xe).map(Ye=>{var dt,He;return Object.assign({children:(He=(dt=Ye==null?void 0:Ye.props)===null||dt===void 0?void 0:dt.children)!==null&&He!==void 0?He:""},Ye.props)})}var te=Ie,ee=pe(17313),de=pe(83116),se=pe(37613);const he=je=>{const{componentCls:Xe}=je;return{[Xe]:Object.assign(Object.assign({},(0,ee.Wf)(je)),{margin:0,padding:0,listStyle:"none",[`${Xe}-item`]:{position:"relative",margin:0,paddingBottom:je.itemPaddingBottom,fontSize:je.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:je.itemHeadSize,insetInlineStart:(je.itemHeadSize-je.tailWidth)/2,height:`calc(100% - ${je.itemHeadSize}px)`,borderInlineStart:`${je.tailWidth}px ${je.lineType} ${je.tailColor}`},"&-pending":{[`${Xe}-item-head`]:{fontSize:je.fontSizeSM,backgroundColor:"transparent"},[`${Xe}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:je.itemHeadSize,height:je.itemHeadSize,backgroundColor:je.dotBg,border:`${je.dotBorderWidth}px ${je.lineType} transparent`,borderRadius:"50%","&-blue":{color:je.colorPrimary,borderColor:je.colorPrimary},"&-red":{color:je.colorError,borderColor:je.colorError},"&-green":{color:je.colorSuccess,borderColor:je.colorSuccess},"&-gray":{color:je.colorTextDisabled,borderColor:je.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:je.itemHeadSize/2,insetInlineStart:je.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:je.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(je.fontSize*je.lineHeight-je.fontSize)+je.lineWidth,marginInlineStart:je.margin+je.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${Xe}-item-tail`]:{display:"none"},[`> ${Xe}-item-content`]:{minHeight:je.controlHeightLG*1.2}}},[`&${Xe}-alternate, &${Xe}-right, &${Xe}-label`]:{[`${Xe}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${je.marginXXS}px`,"&-custom":{marginInlineStart:je.tailWidth/2}},"&-left":{[`${Xe}-item-content`]:{insetInlineStart:`calc(50% - ${je.marginXXS}px)`,width:`calc(50% - ${je.marginSM}px)`,textAlign:"start"}},"&-right":{[`${Xe}-item-content`]:{width:`calc(50% - ${je.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${Xe}-right`]:{[`${Xe}-item-right`]:{[`${Xe}-item-tail, ${Xe}-item-head, ${Xe}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(je.itemHeadSize+je.tailWidth)/2}px)`},[`${Xe}-item-content`]:{width:`calc(100% - ${je.itemHeadSize+je.marginXS}px)`}}},[`&${Xe}-pending ${Xe}-item-last ${Xe}-item-tail`]:{display:"block",height:`calc(100% - ${je.margin}px)`,borderInlineStart:`${je.tailWidth}px dotted ${je.tailColor}`},[`&${Xe}-reverse ${Xe}-item-last ${Xe}-item-tail`]:{display:"none"},[`&${Xe}-reverse ${Xe}-item-pending`]:{[`${Xe}-item-tail`]:{insetBlockStart:je.margin,display:"block",height:`calc(100% - ${je.margin}px)`,borderInlineStart:`${je.tailWidth}px dotted ${je.tailColor}`},[`${Xe}-item-content`]:{minHeight:je.controlHeightLG*1.2}},[`&${Xe}-label`]:{[`${Xe}-item-label`]:{position:"absolute",insetBlockStart:-(je.fontSize*je.lineHeight-je.fontSize)+je.tailWidth,width:`calc(50% - ${je.marginSM}px)`,textAlign:"end"},[`${Xe}-item-right`]:{[`${Xe}-item-label`]:{insetInlineStart:`calc(50% + ${je.marginSM}px)`,width:`calc(50% - ${je.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${Xe}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var ve=(0,de.Z)("Timeline",je=>{const Xe=(0,se.TS)(je,{itemHeadSize:10,customHeadPaddingVertical:je.paddingXXS,paddingInlineEnd:2});return[he(Xe)]},je=>({tailColor:je.colorSplit,tailWidth:je.lineWidthBold,dotBorderWidth:je.wireframe?je.lineWidthBold:je.lineWidth*3,dotBg:je.colorBgContainer,itemPaddingBottom:je.padding*1.25})),Ee=function(je,Xe){var Ye={};for(var dt in je)Object.prototype.hasOwnProperty.call(je,dt)&&Xe.indexOf(dt)<0&&(Ye[dt]=je[dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,dt=Object.getOwnPropertySymbols(je);He{const{getPrefixCls:Xe,direction:Ye,timeline:dt}=We.useContext(ut.E_),{prefixCls:He,children:Nt,items:ot,className:Tt,style:xt}=je,Ot=Ee(je,["prefixCls","children","items","className","style"]),Wt=Xe("timeline",He),[Dt,tt]=ve(Wt),Ve=te(ot,Nt);return Dt(We.createElement(lt,Object.assign({},Ot,{className:ke()(dt==null?void 0:dt.className,Tt),style:Object.assign(Object.assign({},dt==null?void 0:dt.style),xt),prefixCls:Wt,direction:Ye,items:Ve,hashId:tt})))};Be.Item=Me;var Le=Be,ze=Le},17574:function(On,pn,pe){"use strict";pe.d(pn,{default:function(){return tt}});var le=pe(43858),ke=pe(19127),We=pe(52671),ut=pe(8657),Ge=pe(96663),Ue=pe(59301),Me={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"},Ct=Me,wt=pe(7657),$e=function(_t,vn){return Ue.createElement(wt.Z,(0,Ge.Z)({},_t,{ref:vn,icon:Ct}))},Ft=Ue.forwardRef($e),lt=Ft,vt=pe(92310),Ie=pe.n(vt),te=pe(35654),ee=pe(71430),de=pe(36355),se=pe(56082),he=pe(62892),ve=pe(20648);const Ee=4;function Be(Ve){const{dropPosition:_t,dropLevelOffset:vn,prefixCls:yn,indent:zt,direction:qt="ltr"}=Ve,ln=qt==="ltr"?"left":"right",Gn=qt==="ltr"?"right":"left",un={[ln]:-vn*zt+Ee,[Gn]:0};switch(_t){case-1:un.top=-3;break;case 1:un.bottom=-3;break;default:un.bottom=-3,un[ln]=zt+Ee;break}return Ue.createElement("div",{style:un,className:`${yn}-drop-indicator`})}var Le=pe(71997),je=Ue.forwardRef((Ve,_t)=>{const{getPrefixCls:vn,direction:yn,virtual:zt,tree:qt}=Ue.useContext(de.E_),{prefixCls:ln,className:Gn,showIcon:un=!1,showLine:_n,switcherIcon:St,blockNode:Zn=!1,children:ci,checkable:Ze=!1,selectable:be=!0,draggable:Pe,motion:Ae,style:Oe}=Ve,xe=vn("tree",ln),ct=vn(),Mt=Ae!=null?Ae:Object.assign(Object.assign({},(0,he.Z)(ct)),{motionAppear:!1}),at=Object.assign(Object.assign({},Ve),{checkable:Ze,selectable:be,showIcon:un,motion:Mt,blockNode:Zn,showLine:!!_n,dropIndicatorRender:Be}),[qe,Lt]=(0,ve.ZP)(xe),Bt=Ue.useMemo(()=>{if(!Pe)return!1;let Gt={};switch(typeof Pe){case"function":Gt.nodeDraggable=Pe;break;case"object":Gt=Object.assign({},Pe);break;default:break}return Gt.icon!==!1&&(Gt.icon=Gt.icon||Ue.createElement(se.Z,null)),Gt},[Pe]),ft=Gt=>Ue.createElement(Le.Z,{prefixCls:xe,switcherIcon:St,treeNodeProps:Gt,showLine:_n});return qe(Ue.createElement(le.Z,Object.assign({itemHeight:20,ref:_t,virtual:zt},at,{style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Oe),prefixCls:xe,className:Ie()({[`${xe}-icon-hide`]:!un,[`${xe}-block-node`]:Zn,[`${xe}-unselectable`]:!be,[`${xe}-rtl`]:yn==="rtl"},qt==null?void 0:qt.className,Gn,Lt),direction:yn,checkable:Ze&&Ue.createElement("span",{className:`${xe}-checkbox-inner`}),selectable:be,switcherIcon:ft,draggable:Bt}),ci))}),Xe;(function(Ve){Ve[Ve.None=0]="None",Ve[Ve.Start=1]="Start",Ve[Ve.End=2]="End"})(Xe||(Xe={}));function Ye(Ve,_t){function vn(yn){const{key:zt,children:qt}=yn;_t(zt,yn)!==!1&&Ye(qt||[],_t)}Ve.forEach(vn)}function dt(Ve){let{treeData:_t,expandedKeys:vn,startKey:yn,endKey:zt}=Ve;const qt=[];let ln=Xe.None;if(yn&&yn===zt)return[yn];if(!yn||!zt)return[];function Gn(un){return un===yn||un===zt}return Ye(_t,un=>{if(ln===Xe.End)return!1;if(Gn(un)){if(qt.push(un),ln===Xe.None)ln=Xe.Start;else if(ln===Xe.Start)return ln=Xe.End,!1}else ln===Xe.Start&&qt.push(un);return vn.includes(un)}),qt}function He(Ve,_t){const vn=(0,ke.Z)(_t),yn=[];return Ye(Ve,(zt,qt)=>{const ln=vn.indexOf(zt);return ln!==-1&&(yn.push(qt),vn.splice(ln,1)),!!vn.length}),yn}var Nt=function(Ve,_t){var vn={};for(var yn in Ve)Object.prototype.hasOwnProperty.call(Ve,yn)&&_t.indexOf(yn)<0&&(vn[yn]=Ve[yn]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,yn=Object.getOwnPropertySymbols(Ve);zt{var{defaultExpandAll:vn,defaultExpandParent:yn,defaultExpandedKeys:zt}=Ve,qt=Nt(Ve,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ln=Ue.useRef(),Gn=Ue.useRef(),un=()=>{const{keyEntities:Bt}=(0,ee.I8)(Tt(qt));let ft;return vn?ft=Object.keys(Bt):yn?ft=(0,te.r7)(qt.expandedKeys||zt||[],Bt):ft=qt.expandedKeys||zt,ft},[_n,St]=Ue.useState(qt.selectedKeys||qt.defaultSelectedKeys||[]),[Zn,ci]=Ue.useState(()=>un());Ue.useEffect(()=>{"selectedKeys"in qt&&St(qt.selectedKeys)},[qt.selectedKeys]),Ue.useEffect(()=>{"expandedKeys"in qt&&ci(qt.expandedKeys)},[qt.expandedKeys]);const Ze=(Bt,ft)=>{var Gt;return"expandedKeys"in qt||ci(Bt),(Gt=qt.onExpand)===null||Gt===void 0?void 0:Gt.call(qt,Bt,ft)},be=(Bt,ft)=>{var Gt;const{multiple:Sn}=qt,{node:an,nativeEvent:rn}=ft,{key:zn=""}=an,kn=Tt(qt),mn=Object.assign(Object.assign({},ft),{selected:!0}),ei=(rn==null?void 0:rn.ctrlKey)||(rn==null?void 0:rn.metaKey),Pi=rn==null?void 0:rn.shiftKey;let Hn;Sn&&ei?(Hn=Bt,ln.current=zn,Gn.current=Hn,mn.selectedNodes=He(kn,Hn)):Sn&&Pi?(Hn=Array.from(new Set([].concat((0,ke.Z)(Gn.current||[]),(0,ke.Z)(dt({treeData:kn,expandedKeys:Zn,startKey:zn,endKey:ln.current}))))),mn.selectedNodes=He(kn,Hn)):(Hn=[zn],ln.current=zn,Gn.current=Hn,mn.selectedNodes=He(kn,Hn)),(Gt=qt.onSelect)===null||Gt===void 0||Gt.call(qt,Hn,mn),"selectedKeys"in qt||St(Hn)},{getPrefixCls:Pe,direction:Ae}=Ue.useContext(de.E_),{prefixCls:Oe,className:xe,showIcon:ct=!0,expandAction:Mt="click"}=qt,at=Nt(qt,["prefixCls","className","showIcon","expandAction"]),qe=Pe("tree",Oe),Lt=Ie()(`${qe}-directory`,{[`${qe}-directory-rtl`]:Ae==="rtl"},xe);return Ue.createElement(je,Object.assign({icon:ot,ref:_t,blockNode:!0},at,{showIcon:ct,expandAction:Mt,prefixCls:qe,className:Lt,expandedKeys:Zn,selectedKeys:_n,onSelect:be,onExpand:Ze}))};var Wt=Ue.forwardRef(xt);const Dt=je;Dt.DirectoryTree=Wt,Dt.TreeNode=le.O;var tt=Dt},20648:function(On,pn,pe){"use strict";pe.d(pn,{TM:function(){return vt},Yk:function(){return lt}});var le=pe(93083),ke=pe(98447),We=pe(17313),ut=pe(8378),Ge=pe(37613),Ue=pe(83116);const Me=new le.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ct=(Ie,te)=>({[`.${Ie}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),wt=(Ie,te)=>({[`.${Ie}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$e=(Ie,te)=>{const{treeCls:ee,treeNodeCls:de,treeNodePadding:se,titleHeight:he,nodeSelectedBg:ve,nodeHoverBg:Ee}=te,Be=te.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,We.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,We.oN)(te)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${de}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:Me,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${de}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,We.oN)(te)),[`&:not(${de}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:he,lineHeight:`${he}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${de}:hover &`]:{opacity:.45}},[`&${de}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:he}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},Ct(Ie,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:he,margin:0,lineHeight:`${he}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:he/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:he/2*.8,height:he/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Be},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:he,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${he}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ee},[`&${ee}-node-selected`]:{backgroundColor:ve},[`${ee}-iconEle`]:{display:"inline-block",width:he,height:he,lineHeight:`${he}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${he}px`,userSelect:"none"},wt(Ie,te)),[`${de}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:he/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${de}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${he/2}px !important`}}}}})}},Ft=Ie=>{const{treeCls:te,treeNodeCls:ee,treeNodePadding:de,directoryNodeSelectedBg:se,directoryNodeSelectedColor:he}=Ie;return{[`${te}${te}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:de,insetInlineStart:0,transition:`background-color ${Ie.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ie.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Ie.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:he,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:he},[`${te}-node-content-wrapper`]:{color:he,background:"transparent"}}}}}},lt=(Ie,te)=>{const ee=`.${Ie}`,de=`${ee}-treenode`,se=te.paddingXS/2,he=(0,Ge.TS)(te,{treeCls:ee,treeNodeCls:de,treeNodePadding:se});return[$e(Ie,he),Ft(he)]},vt=Ie=>{const{controlHeightSM:te}=Ie;return{titleHeight:te,nodeHoverBg:Ie.controlItemBgHover,nodeSelectedBg:Ie.controlItemBgActive}};pn.ZP=(0,Ue.Z)("Tree",(Ie,te)=>{let{prefixCls:ee}=te;return[{[Ie.componentCls]:(0,ke.C2)(`${ee}-checkbox`,Ie)},lt(ee,Ie),(0,ut.Z)(Ie)]},Ie=>{const{colorTextLightSolid:te,colorPrimary:ee}=Ie;return Object.assign(Object.assign({},vt(Ie)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ee})})},71997:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return de}});var le=pe(96663),ke=pe(59301),We={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"},ut=We,Ge=pe(7657),Ue=function(he,ve){return ke.createElement(Ge.Z,(0,le.Z)({},he,{ref:ve,icon:ut}))},Me=ke.forwardRef(Ue),Ct=Me,wt=pe(52671),$e=pe(58617),Ft=pe(15075),lt=pe(43531),vt=pe(92310),Ie=pe.n(vt),te=pe(92343),de=se=>{const{prefixCls:he,switcherIcon:ve,treeNodeProps:Ee,showLine:Be}=se,{isLeaf:Le,expanded:ze,loading:je}=Ee;if(je)return ke.createElement($e.Z,{className:`${he}-switcher-loading-icon`});let Xe;if(Be&&typeof Be=="object"&&(Xe=Be.showLeafIcon),Le){if(!Be)return null;if(typeof Xe!="boolean"&&Xe){const He=typeof Xe=="function"?Xe(Ee):Xe,Nt=`${he}-switcher-line-custom-icon`;return(0,te.l$)(He)?(0,te.Tm)(He,{className:Ie()(He.props.className||"",Nt)}):He}return Xe?ke.createElement(wt.Z,{className:`${he}-switcher-line-icon`}):ke.createElement("span",{className:`${he}-switcher-leaf-line`})}const Ye=`${he}-switcher-icon`,dt=typeof ve=="function"?ve(Ee):ve;return(0,te.l$)(dt)?(0,te.Tm)(dt,{className:Ie()(dt.props.className||"",Ye)}):dt!==void 0?dt:Be?ze?ke.createElement(Ft.Z,{className:`${he}-switcher-line-icon`}):ke.createElement(lt.Z,{className:`${he}-switcher-line-icon`}):ke.createElement(Ct,{className:Ye})}},99498:function(On,pn,pe){(function(le){le(pe(89780))})(function(le){le.defineOption("placeholder","",function(Ct,wt,$e){var Ft=$e&&$e!=le.Init;if(wt&&!Ft)Ct.on("blur",Ge),Ct.on("change",Ue),Ct.on("swapDoc",Ue),le.on(Ct.getInputField(),"compositionupdate",Ct.state.placeholderCompose=function(){ut(Ct)}),Ue(Ct);else if(!wt&&Ft){Ct.off("blur",Ge),Ct.off("change",Ue),Ct.off("swapDoc",Ue),le.off(Ct.getInputField(),"compositionupdate",Ct.state.placeholderCompose),ke(Ct);var lt=Ct.getWrapperElement();lt.className=lt.className.replace(" CodeMirror-empty","")}wt&&!Ct.hasFocus()&&Ge(Ct)});function ke(Ct){Ct.state.placeholder&&(Ct.state.placeholder.parentNode.removeChild(Ct.state.placeholder),Ct.state.placeholder=null)}function We(Ct){ke(Ct);var wt=Ct.state.placeholder=document.createElement("pre");wt.style.cssText="height: 0; overflow: visible",wt.style.direction=Ct.getOption("direction"),wt.className="CodeMirror-placeholder CodeMirror-line-like";var $e=Ct.getOption("placeholder");typeof $e=="string"&&($e=document.createTextNode($e)),wt.appendChild($e),Ct.display.lineSpace.insertBefore(wt,Ct.display.lineSpace.firstChild)}function ut(Ct){setTimeout(function(){var wt=!1,$e=Ct.getInputField();$e.nodeName=="TEXTAREA"?wt=!$e.value:Ct.lineCount()==1&&(wt=!/[^\u200b]/.test($e.querySelector(".CodeMirror-line").textContent)),wt?We(Ct):ke(Ct)},20)}function Ge(Ct){Me(Ct)&&We(Ct)}function Ue(Ct){var wt=Ct.getWrapperElement(),$e=Me(Ct);wt.className=wt.className.replace(" CodeMirror-empty","")+($e?" CodeMirror-empty":""),$e?We(Ct):ke(Ct)}function Me(Ct){return Ct.lineCount()===1&&Ct.getLine(0)===""}})},25717:function(On,pn,pe){(function(le){le(pe(89780))})(function(le){var ke={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},We=le.Pos;le.defineOption("autoCloseBrackets",!1,function(te,ee,de){de&&de!=le.Init&&(te.removeKeyMap(Ge),te.state.closeBrackets=null),ee&&(Ue(ut(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(Ge))});function ut(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:ke[ee]}var Ge={Backspace:wt,Enter:$e};function Ue(te){for(var ee=0;ee=0;he--){var Ee=se[he].head;te.replaceRange("",We(Ee.line,Ee.ch-1),We(Ee.line,Ee.ch+1),"+delete")}}function $e(te){var ee=Ct(te),de=ee&&ut(ee,"explode");if(!de||te.getOption("disableInput"))return le.Pass;for(var se=te.listSelections(),he=0;he0;return{anchor:new We(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new We(te.head.line,te.head.ch+(ee?1:-1))}}function lt(te,ee){var de=Ct(te);if(!de||te.getOption("disableInput"))return le.Pass;var se=ut(de,"pairs"),he=se.indexOf(ee);if(he==-1)return le.Pass;for(var ve=ut(de,"closeBefore"),Ee=ut(de,"triples"),Be=se.charAt(he+1)==ee,Le=te.listSelections(),ze=he%2==0,je,Xe=0;Xe=0&&te.getRange(dt,We(dt.line,dt.ch+3))==ee+ee+ee?He="skipThree":He="skip";else if(Be&&dt.ch>1&&Ee.indexOf(ee)>=0&&te.getRange(We(dt.line,dt.ch-2),dt)==ee+ee){if(dt.ch>2&&/\bstring/.test(te.getTokenTypeAt(We(dt.line,dt.ch-2))))return le.Pass;He="addFour"}else if(Be){var ot=dt.ch==0?" ":te.getRange(We(dt.line,dt.ch-1),dt);if(!le.isWordChar(Nt)&&ot!=ee&&!le.isWordChar(ot))He="both";else return le.Pass}else if(ze&&(Nt.length===0||/\s/.test(Nt)||ve.indexOf(Nt)>-1))He="both";else return le.Pass;if(!je)je=He;else if(je!=He)return le.Pass}var Tt=he%2?se.charAt(he-1):ee,xt=he%2?ee:se.charAt(he+1);te.operation(function(){if(je=="skip")te.execCommand("goCharRight");else if(je=="skipThree")for(var Ot=0;Ot<3;Ot++)te.execCommand("goCharRight");else if(je=="surround"){for(var Wt=te.getSelections(),Ot=0;Ot'"]=function(vt){return ut(vt)}),wt.addKeyMap(lt)}});var ke=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],We=["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 ut(wt){if(wt.getOption("disableInput"))return le.Pass;for(var $e=wt.listSelections(),Ft=[],lt=wt.getOption("autoCloseTags"),vt=0;vt<$e.length;vt++){if(!$e[vt].empty())return le.Pass;var Ie=$e[vt].head,te=wt.getTokenAt(Ie),ee=le.innerMode(wt.getMode(),te.state),de=ee.state,se=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(de),he=se&&se.name;if(!he)return le.Pass;var ve=ee.mode.configuration=="html",Ee=typeof lt=="object"&<.dontCloseTags||ve&&ke,Be=typeof lt=="object"&<.indentTags||ve&&We;te.end>Ie.ch&&(he=he.slice(0,he.length-te.end+Ie.ch));var Le=he.toLowerCase();if(!he||te.type=="string"&&(te.end!=Ie.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Ie.ch-te.start-1||Ee&&Me(Ee,Le)>-1||Ct(wt,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(de)||[],he,Ie,!0))return le.Pass;var ze=typeof lt=="object"&<.emptyTags;if(ze&&Me(ze,he)>-1){Ft[vt]={text:"/>",newPos:le.Pos(Ie.line,Ie.ch+2)};continue}var je=Be&&Me(Be,Le)>-1;Ft[vt]={indent:je,text:">"+(je?` `:"")+"",newPos:je?le.Pos(Ie.line+1,0):le.Pos(Ie.line,Ie.ch+1)}}for(var Xe=typeof lt=="object"&<.dontIndentOnAutoClose,vt=$e.length-1;vt>=0;vt--){var Ye=Ft[vt];wt.replaceRange(Ye.text,$e[vt].head,$e[vt].anchor,"+insert");var dt=wt.listSelections().slice(0);dt[vt]={head:Ye.newPos,anchor:Ye.newPos},wt.setSelections(dt),!Xe&&Ye.indent&&(wt.indentLine(Ye.newPos.line,null,!0),wt.indentLine(Ye.newPos.line+1,null,!0))}}function Ge(wt,$e){for(var Ft=wt.listSelections(),lt=[],vt=$e?"/":""&&(Ee+=">"),lt[ee]=Ee}if(wt.replaceSelections(lt),Ft=wt.listSelections(),!te)for(var ee=0;ee=0&&$e[de]==Ft;de--)++ee;lt=te.to;for(var de=1;de=de.max))return de.ch=0,de.text=de.cm.getLine(++de.line),!0}function $e(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function Ft(de){for(;;){var se=de.text.indexOf(">",de.ch);if(se==-1){if(wt(de))continue;return}if(!Ct(de,se+1)){de.ch=se+1;continue}var he=de.text.lastIndexOf("/",se),ve=he>-1&&!/\S/.test(de.text.slice(he+1,se));return de.ch=se+1,ve?"selfClose":"regular"}}function lt(de){for(;;){var se=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(se==-1){if($e(de))continue;return}if(!Ct(de,se+1)){de.ch=se;continue}Ue.lastIndex=se,de.ch=se;var he=Ue.exec(de.text);if(he&&he.index==se)return he}}function vt(de){for(;;){Ue.lastIndex=de.ch;var se=Ue.exec(de.text);if(!se){if(wt(de))continue;return}if(!Ct(de,se.index+1)){de.ch=se.index+1;continue}return de.ch=se.index+se[0].length,se}}function Ie(de){for(;;){var se=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(se==-1){if($e(de))continue;return}if(!Ct(de,se+1)){de.ch=se;continue}var he=de.text.lastIndexOf("/",se),ve=he>-1&&!/\S/.test(de.text.slice(he+1,se));return de.ch=se+1,ve?"selfClose":"regular"}}function te(de,se){for(var he=[];;){var ve=vt(de),Ee,Be=de.line,Le=de.ch-(ve?ve[0].length:0);if(!ve||!(Ee=Ft(de)))return;if(Ee!="selfClose")if(ve[1]){for(var ze=he.length-1;ze>=0;--ze)if(he[ze]==ve[2]){he.length=ze;break}if(ze<0&&(!se||se==ve[2]))return{tag:ve[2],from:ke(Be,Le),to:ke(de.line,de.ch)}}else he.push(ve[2])}}function ee(de,se){for(var he=[];;){var ve=Ie(de);if(!ve)return;if(ve=="selfClose"){lt(de);continue}var Ee=de.line,Be=de.ch,Le=lt(de);if(!Le)return;if(Le[1])he.push(Le[2]);else{for(var ze=he.length-1;ze>=0;--ze)if(he[ze]==Le[2]){he.length=ze;break}if(ze<0&&(!se||se==Le[2]))return{tag:Le[2],from:ke(de.line,de.ch),to:ke(Ee,Be)}}}}le.registerHelper("fold","xml",function(de,se){for(var he=new Me(de,se.line,0);;){var ve=vt(he);if(!ve||he.line!=se.line)return;var Ee=Ft(he);if(!Ee)return;if(!ve[1]&&Ee!="selfClose"){var Be=ke(he.line,he.ch),Le=te(he,ve[2]);return Le&&We(Le.from,Be)>0?{from:Be,to:Le.from}:null}}}),le.findMatchingTag=function(de,se,he){var ve=new Me(de,se.line,se.ch,he);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var Ee=Ft(ve),Be=Ee&&ke(ve.line,ve.ch),Le=Ee&<(ve);if(!(!Ee||!Le||We(ve,se)>0)){var ze={from:ke(ve.line,ve.ch),to:Be,tag:Le[2]};return Ee=="selfClose"?{open:ze,close:null,at:"open"}:Le[1]?{open:ee(ve,Le[2]),close:ze,at:"close"}:(ve=new Me(de,Be.line,Be.ch,he),{open:ze,close:te(ve,Le[2]),at:"open"})}}},le.findEnclosingTag=function(de,se,he,ve){for(var Ee=new Me(de,se.line,se.ch,he);;){var Be=ee(Ee,ve);if(!Be)break;var Le=new Me(de,se.line,se.ch,he),ze=te(Le,Be.tag);if(ze)return{open:Be,close:ze}}},le.scanForClosingTag=function(de,se,he,ve){var Ee=new Me(de,se.line,se.ch,ve?{from:0,to:ve}:null);return te(Ee,he)}})},89780:function(On){(function(pn,pe){On.exports=pe()})(this,function(){"use strict";var pn=navigator.userAgent,pe=navigator.platform,le=/gecko\/\d/i.test(pn),ke=/MSIE \d/.test(pn),We=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pn),ut=/Edge\/(\d+)/.exec(pn),Ge=ke||We||ut,Ue=Ge&&(ke?document.documentMode||6:+(ut||We)[1]),Me=!ut&&/WebKit\//.test(pn),Ct=Me&&/Qt\/\d+\.\d+/.test(pn),wt=!ut&&/Chrome\//.test(pn),$e=/Opera\//.test(pn),Ft=/Apple Computer/.test(navigator.vendor),lt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pn),vt=/PhantomJS/.test(pn),Ie=!ut&&/AppleWebKit/.test(pn)&&/Mobile\/\w+/.test(pn),te=/Android/.test(pn),ee=Ie||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pn),de=Ie||/Mac/.test(pe),se=/\bCrOS\b/.test(pn),he=/win/i.test(pe),ve=$e&&pn.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&($e=!1,Me=!0);var Ee=de&&(Ct||$e&&(ve==null||ve<12.11)),Be=le||Ge&&Ue>=9;function Le(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var ze=function(ie,ae){var ge=ie.className,fe=Le(ae).exec(ge);if(fe){var ye=ge.slice(fe.index+fe[0].length);ie.className=ge.slice(0,fe.index)+(ye?fe[1]+ye:"")}};function je(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Xe(ie,ae){return je(ie).appendChild(ae)}function Ye(ie,ae,ge,fe){var ye=document.createElement(ie);if(ge&&(ye.className=ge),fe&&(ye.style.cssText=fe),typeof ae=="string")ye.appendChild(document.createTextNode(ae));else if(ae)for(var Re=0;Re=ae)return Je+(ae-Re);Je+=mt-Re,Je+=ge-Je%ge,Re=mt+1}}var Ve=function(){this.id=null,this.f=null,this.time=0,this.handler=Wt(this.onTimeout,this)};Ve.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ve.prototype.set=function(ie,ae){this.f=ae;var ge=+new Date+ie;(!this.id||ge=ae)return fe+Math.min(Je,ae-ye);if(ye+=Re-fe,ye+=ge-ye%ge,fe=Re+1,ye>=ae)return fe}}var un=[""];function _n(ie){for(;un.length<=ie;)un.push(St(un)+" ");return un[ie]}function St(ie){return ie[ie.length-1]}function Zn(ie,ae){for(var ge=[],fe=0;fe"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Pe.test(ie))}function Oe(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ae(ie)?!0:ae.test(ie):Ae(ie)}function xe(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var ct=/[\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 Mt(ie){return ie.charCodeAt(0)>=768&&ct.test(ie)}function at(ie,ae,ge){for(;(ge<0?ae>0:aege?-1:1;;){if(ae==ge)return ae;var ye=(ae+ge)/2,Re=fe<0?Math.ceil(ye):Math.floor(ye);if(Re==ae)return ie(Re)?ae:ge;ie(Re)?ge=Re:ae=Re+fe}}function Lt(ie,ae,ge,fe){if(!ie)return fe(ae,ge,"ltr",0);for(var ye=!1,Re=0;Reae||ae==ge&&Je.to==ae)&&(fe(Math.max(Je.from,ae),Math.min(Je.to,ge),Je.level==1?"rtl":"ltr",Re),ye=!0)}ye||fe(ae,ge,"ltr")}var Bt=null;function ft(ie,ae,ge){var fe;Bt=null;for(var ye=0;yeae)return ye;Re.to==ae&&(Re.from!=Re.to&&ge=="before"?fe=ye:Bt=ye),Re.from==ae&&(Re.from!=Re.to&&ge!="before"?fe=ye:Bt=ye)}return fe!=null?fe:Bt}var Gt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ge(jt){return jt<=247?ie.charAt(jt):1424<=jt&&jt<=1524?"R":1536<=jt&&jt<=1785?ae.charAt(jt-1536):1774<=jt&&jt<=2220?"r":8192<=jt&&jt<=8203?"w":jt==8204?"b":"L"}var fe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ye=/[stwN]/,Re=/[LRr]/,Je=/[Lb1n]/,mt=/[1n]/;function gt(jt,Ln,Vt){this.level=jt,this.from=Ln,this.to=Vt}return function(jt,Ln){var Vt=Ln=="ltr"?"L":"R";if(jt.length==0||Ln=="ltr"&&!fe.test(jt))return!1;for(var si=jt.length,ii=[],tr=0;tr-1&&(fe[ae]=ye.slice(0,Re).concat(ye.slice(Re+1)))}}}function mn(ie,ae){var ge=zn(ie,ae);if(ge.length)for(var fe=Array.prototype.slice.call(arguments,2),ye=0;ye0}function bn(ie){ie.prototype.on=function(ae,ge){rn(this,ae,ge)},ie.prototype.off=function(ae,ge){kn(this,ae,ge)}}function wi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Zi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Hi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function rr(ie){wi(ie),Zi(ie)}function _r(ie){return ie.target||ie.srcElement}function gi(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),de&&ie.ctrlKey&&ae==1&&(ae=3),ae}var di=function(){if(Ge&&Ue<9)return!1;var ie=Ye("div");return"draggable"in ie||"dragDrop"in ie}(),xi;function $i(ie){if(xi==null){var ae=Ye("span","\u200B");Xe(ie,Ye("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(xi=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ge&&Ue<8))}var ge=xi?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ge.setAttribute("cm-text",""),ge}var Ri;function Kr(ie){if(Ri!=null)return Ri;var ae=Xe(ie,document.createTextNode("A\u062EA")),ge=He(ae,0,1).getBoundingClientRect(),fe=He(ae,1,2).getBoundingClientRect();return je(ie),!ge||ge.left==ge.right?!1:Ri=fe.right-ge.right<3}var Sr=` b`.split(/\n/).length!=3?function(ie){for(var ae=0,ge=[],fe=ie.length;ae<=fe;){var ye=ie.indexOf(` `,ae);ye==-1&&(ye=ie.length);var Re=ie.slice(ae,ie.charAt(ye-1)=="\r"?ye-1:ye),Je=Re.indexOf("\r");Je!=-1?(ge.push(Re.slice(0,Je)),ae+=Je+1):(ge.push(Re),ae=ye+1)}return ge}:function(ie){return ie.split(/\r\n?|\n/)},Ne=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ge){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Ci=function(){var ie=Ye("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),wr=null;function Pn(ie){if(wr!=null)return wr;var ae=Xe(ie,Ye("span","x")),ge=ae.getBoundingClientRect(),fe=He(ae,0,1).getBoundingClientRect();return wr=Math.abs(ge.left-fe.left)>1}var Si={},Wi={};function qi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Si[ie]=ae}function $n(ie,ae){Wi[ie]=ae}function qn(ie){if(typeof ie=="string"&&Wi.hasOwnProperty(ie))ie=Wi[ie];else if(ie&&typeof ie.name=="string"&&Wi.hasOwnProperty(ie.name)){var ae=Wi[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=be(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return qn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return qn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Zt(ie,ae){ae=qn(ae);var ge=Si[ae.name];if(!ge)return Zt(ie,"text/plain");var fe=ge(ie,ae);if($t.hasOwnProperty(ae.name)){var ye=$t[ae.name];for(var Re in ye)ye.hasOwnProperty(Re)&&(fe.hasOwnProperty(Re)&&(fe["_"+Re]=fe[Re]),fe[Re]=ye[Re])}if(fe.name=ae.name,ae.helperType&&(fe.helperType=ae.helperType),ae.modeProps)for(var Je in ae.modeProps)fe[Je]=ae.modeProps[Je];return fe}var $t={};function Qe(ie,ae){var ge=$t.hasOwnProperty(ie)?$t[ie]:$t[ie]={};Dt(ae,ge)}function on(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ge={};for(var fe in ae){var ye=ae[fe];ye instanceof Array&&(ye=ye.concat([])),ge[fe]=ye}return ge}function cn(ie,ae){for(var ge;ie.innerMode&&(ge=ie.innerMode(ae),!(!ge||ge.mode==ie));)ae=ge.state,ie=ge.mode;return ge||{mode:ie,state:ae}}function At(ie,ae,ge){return ie.startState?ie.startState(ae,ge):!0}var ht=function(ie,ae,ge){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ge};ht.prototype.eol=function(){return this.pos>=this.string.length},ht.prototype.sol=function(){return this.pos==this.lineStart},ht.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ht.prototype.next=function(){if(this.posae},ht.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},ht.prototype.skipToEnd=function(){this.pos=this.string.length},ht.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},ht.prototype.backUp=function(ie){this.pos-=ie},ht.prototype.column=function(){return this.lastColumnPos0?null:(Re&&ae!==!1&&(this.pos+=Re[0].length),Re)}},ht.prototype.current=function(){return this.string.slice(this.start,this.pos)},ht.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},ht.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},ht.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function en(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ge=ie;!ge.lines;)for(var fe=0;;++fe){var ye=ge.children[fe],Re=ye.chunkSize();if(ae=ie.first&&aege?tn(ge,en(ie,ge).text.length):sr(ae,en(ie,ae.line).text.length)}function sr(ie,ae){var ge=ie.ch;return ge==null||ge>ae?tn(ie.line,ae):ge<0?tn(ie.line,0):ie}function Zr(ie,ae){for(var ge=[],fe=0;fethis.maxLookAhead&&(this.maxLookAhead=ie),ae},Tn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(ie,ae,ge){return ae instanceof Vr?new Tn(ie,on(ie.mode,ae.state),ge,ae.lookAhead):new Tn(ie,on(ie.mode,ae),ge)},Tn.prototype.save=function(ie){var ae=ie!==!1?on(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vr(ae,this.maxLookAhead):ae};function Po(ie,ae,ge,fe){var ye=[ie.state.modeGen],Re={};Ur(ie,ae.text,ie.doc.mode,ge,function(jt,Ln){return ye.push(jt,Ln)},Re,fe);for(var Je=ge.state,mt=function(jt){ge.baseTokens=ye;var Ln=ie.state.overlays[jt],Vt=1,si=0;ge.state=!0,Ur(ie,ae.text,Ln.mode,ge,function(ii,tr){for(var dr=Vt;siii&&ye.splice(Vt,1,ii,ye[Vt+1],Mr),Vt+=2,si=Math.min(ii,Mr)}if(tr)if(Ln.opaque)ye.splice(dr,Vt-dr,ii,"overlay "+tr),Vt=dr+2;else for(;drie.options.maxHighlightLength&&on(ie.doc.mode,fe.state),Re=Po(ie,ae,fe);ye&&(fe.state=ye),ae.stateAfter=fe.save(!ye),ae.styles=Re.styles,Re.classes?ae.styleClasses=Re.classes:ae.styleClasses&&(ae.styleClasses=null),ge===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Cr(ie,ae,ge){var fe=ie.doc,ye=ie.display;if(!fe.mode.startState)return new Tn(fe,!0,ae);var Re=zr(ie,ae,ge),Je=Re>fe.first&&en(fe,Re-1).stateAfter,mt=Je?Tn.fromSaved(fe,Je,Re):new Tn(fe,At(fe.mode),Re);return fe.iter(Re,ae,function(gt){Cn(ie,gt.text,mt);var jt=mt.line;gt.stateAfter=jt==ae-1||jt%5==0||jt>=ye.viewFrom&&jtae.start)return Re}throw new Error("Mode "+ie.name+" failed to advance stream.")}var yr=function(ie,ae,ge){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ge};function er(ie,ae,ge,fe){var ye=ie.doc,Re=ye.mode,Je;ae=Li(ye,ae);var mt=en(ye,ae.line),gt=Cr(ie,ae.line,ge),jt=new ht(mt.text,ie.options.tabSize,gt),Ln;for(fe&&(Ln=[]);(fe||jt.posie.options.maxHighlightLength?(mt=!1,Je&&Cn(ie,ae,fe,Ln.pos),Ln.pos=ae.length,Vt=null):Vt=Fr(Yi(ge,Ln,fe.state,si),Re),si){var ii=si[0].name;ii&&(Vt="m-"+(Vt?ii+" "+Vt:ii))}if(!mt||jt!=Vt){for(;gtJe;--mt){if(mt<=Re.first)return Re.first;var gt=en(Re,mt-1),jt=gt.stateAfter;if(jt&&(!ge||mt+(jt instanceof Vr?jt.lookAhead:0)<=Re.modeFrontier))return mt;var Ln=tt(gt.text,null,ie.options.tabSize);(ye==null||fe>Ln)&&(ye=mt-1,fe=Ln)}return ye}function Tr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontierge;fe--){var ye=en(ie,fe).stateAfter;if(ye&&(!(ye instanceof Vr)||fe+ye.lookAhead=ae:Re.to>ae);(fe||(fe=[])).push(new Ao(Je,Re.from,gt?null:Re.to))}}return fe}function Lr(ie,ae,ge){var fe;if(ie)for(var ye=0;ye=ae:Re.to>ae);if(mt||Re.from==ae&&Je.type=="bookmark"&&(!ge||Re.marker.insertLeft)){var gt=Re.from==null||(Je.inclusiveLeft?Re.from<=ae:Re.from0&&mt)for(var ea=0;ea0)){var Ln=[gt,1],Vt=sn(jt.from,mt.from),si=sn(jt.to,mt.to);(Vt<0||!Je.inclusiveLeft&&!Vt)&&Ln.push({from:jt.from,to:mt.from}),(si>0||!Je.inclusiveRight&&!si)&&Ln.push({from:mt.to,to:jt.to}),ye.splice.apply(ye,Ln),gt+=Ln.length-3}}return ye}function Ki(ie){var ae=ie.markedSpans;if(ae){for(var ge=0;geae)&&(!fe||Ma(fe,Re.marker)<0)&&(fe=Re.marker)}return fe}function la(ie,ae,ge,fe,ye){var Re=en(ie,ae),Je=Un&&Re.markedSpans;if(Je)for(var mt=0;mt=0&&Vt<=0||Ln<=0&&Vt>=0)&&(Ln<=0&&(gt.marker.inclusiveRight&&ye.inclusiveLeft?sn(jt.to,ge)>=0:sn(jt.to,ge)>0)||Ln>=0&&(gt.marker.inclusiveRight&&ye.inclusiveLeft?sn(jt.from,fe)<=0:sn(jt.from,fe)<0)))return!0}}}function Eo(ie){for(var ae;ae=Ga(ie);)ie=ae.find(-1,!0).line;return ie}function Na(ie){for(var ae;ae=Lo(ie);)ie=ae.find(1,!0).line;return ie}function os(ie){for(var ae,ge;ae=Lo(ie);)ie=ae.find(1,!0).line,(ge||(ge=[])).push(ie);return ge}function xo(ie,ae){var ge=en(ie,ae),fe=Eo(ge);return ge==fe?ae:Et(fe)}function Qr(ie,ae){if(ae>ie.lastLine())return ae;var ge=en(ie,ae),fe;if(!pi(ie,ge))return ae;for(;fe=Lo(ge);)ge=fe.find(1,!0).line;return Et(ge)+1}function pi(ie,ae){var ge=Un&&ae.markedSpans;if(ge){for(var fe=void 0,ye=0;yeae.maxLineLength&&(ae.maxLineLength=ye,ae.maxLine=fe)})}var fa=function(ie,ae,ge){this.text=ie,st(this,ae),this.height=ge?ge(this):1};fa.prototype.lineNo=function(){return Et(this)},bn(fa);function $a(ie,ae,ge,fe){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ki(ie),st(ie,ge);var ye=fe?fe(ie):1;ye!=ie.height&&Qn(ie,ye)}function Qa(ie){ie.parent=null,Ki(ie)}var Es={},ys={};function Zs(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ge=ae.addModeClass?ys:Es;return ge[ie]||(ge[ie]=ie.replace(/\S+/g,"cm-$&"))}function Mn(ie,ae){var ge=dt("span",null,null,Me?"padding-right: .1px":null),fe={pre:dt("pre",[ge],"CodeMirror-line"),content:ge,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var ye=0;ye<=(ae.rest?ae.rest.length:0);ye++){var Re=ye?ae.rest[ye-1]:ae.line,Je=void 0;fe.pos=0,fe.addToken=ra,Kr(ie.display.measure)&&(Je=Sn(Re,ie.doc.direction))&&(fe.addToken=Ol(fe.addToken,Je)),fe.map=[];var mt=ae!=ie.display.externalMeasured&&Et(Re);yu(Re,fe,Xr(ie,Re,mt)),Re.styleClasses&&(Re.styleClasses.bgClass&&(fe.bgClass=xt(Re.styleClasses.bgClass,fe.bgClass||"")),Re.styleClasses.textClass&&(fe.textClass=xt(Re.styleClasses.textClass,fe.textClass||""))),fe.map.length==0&&fe.map.push(0,0,fe.content.appendChild($i(ie.display.measure))),ye==0?(ae.measure.map=fe.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(fe.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Me){var gt=fe.content.lastChild;(/\bcm-tab\b/.test(gt.className)||gt.querySelector&>.querySelector(".cm-tab"))&&(fe.content.className="cm-tab-wrap-hack")}return mn(ie,"renderLine",ie,ae.line,fe.pre),fe.pre.className&&(fe.textClass=xt(fe.pre.className,fe.textClass||"")),fe}function Ss(ie){var ae=Ye("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function ra(ie,ae,ge,fe,ye,Re,Je){if(ae){var mt=ie.splitSpaces?hl(ae,ie.trailingSpace):ae,gt=ie.cm.state.specialChars,jt=!1,Ln;if(!gt.test(ae))ie.col+=ae.length,Ln=document.createTextNode(mt),ie.map.push(ie.pos,ie.pos+ae.length,Ln),Ge&&Ue<9&&(jt=!0),ie.pos+=ae.length;else{Ln=document.createDocumentFragment();for(var Vt=0;;){gt.lastIndex=Vt;var si=gt.exec(ae),ii=si?si.index-Vt:ae.length-Vt;if(ii){var tr=document.createTextNode(mt.slice(Vt,Vt+ii));Ge&&Ue<9?Ln.appendChild(Ye("span",[tr])):Ln.appendChild(tr),ie.map.push(ie.pos,ie.pos+ii,tr),ie.col+=ii,ie.pos+=ii}if(!si)break;Vt+=ii+1;var dr=void 0;if(si[0]==" "){var Mr=ie.cm.options.tabSize,so=Mr-ie.col%Mr;dr=Ln.appendChild(Ye("span",_n(so),"cm-tab")),dr.setAttribute("role","presentation"),dr.setAttribute("cm-text"," "),ie.col+=so}else si[0]=="\r"||si[0]==` `?(dr=Ln.appendChild(Ye("span",si[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),dr.setAttribute("cm-text",si[0]),ie.col+=1):(dr=ie.cm.options.specialCharPlaceholder(si[0]),dr.setAttribute("cm-text",si[0]),Ge&&Ue<9?Ln.appendChild(Ye("span",[dr])):Ln.appendChild(dr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,dr),ie.pos++}}if(ie.trailingSpace=mt.charCodeAt(ae.length-1)==32,ge||fe||ye||jt||Re||Je){var Zo=ge||"";fe&&(Zo+=fe),ye&&(Zo+=ye);var Bo=Ye("span",[Ln],Zo,Re);if(Je)for(var ea in Je)Je.hasOwnProperty(ea)&&ea!="style"&&ea!="class"&&Bo.setAttribute(ea,Je[ea]);return ie.content.appendChild(Bo)}ie.content.appendChild(Ln)}}function hl(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ge=ae,fe="",ye=0;yejt&&Vt.from<=jt));si++);if(Vt.to>=Ln)return ie(ge,fe,ye,Re,Je,mt,gt);ie(ge,fe.slice(0,Vt.to-jt),ye,Re,null,mt,gt),Re=null,fe=fe.slice(Vt.to-jt),jt=Vt.to}}}function ns(ie,ae,ge,fe){var ye=!fe&&ge.widgetNode;ye&&ie.map.push(ie.pos,ie.pos+ae,ye),!fe&&ie.cm.display.input.needsContentAttribute&&(ye||(ye=ie.content.appendChild(document.createElement("span"))),ye.setAttribute("cm-marker",ge.id)),ye&&(ie.cm.display.input.setUneditable(ye),ie.content.appendChild(ye)),ie.pos+=ae,ie.trailingSpace=!1}function yu(ie,ae,ge){var fe=ie.markedSpans,ye=ie.text,Re=0;if(!fe){for(var Je=1;Jegt||rs.collapsed&&Mo.to==gt&&Mo.from==gt)){if(Mo.to!=null&&Mo.to!=gt&&ii>Mo.to&&(ii=Mo.to,dr=""),rs.className&&(tr+=" "+rs.className),rs.css&&(si=(si?si+";":"")+rs.css),rs.startStyle&&Mo.from==gt&&(Mr+=" "+rs.startStyle),rs.endStyle&&Mo.to==ii&&(ea||(ea=[])).push(rs.endStyle,Mo.to),rs.title&&((Zo||(Zo={})).title=rs.title),rs.attributes)for(var rl in rs.attributes)(Zo||(Zo={}))[rl]=rs.attributes[rl];rs.collapsed&&(!so||Ma(so.marker,rs)<0)&&(so=Mo)}else Mo.from>gt&&ii>Mo.from&&(ii=Mo.from)}if(ea)for(var ru=0;ru=mt)break;for(var Uu=Math.min(mt,ii);;){if(Ln){var wu=gt+Ln.length;if(!so){var Xl=wu>Uu?Ln.slice(0,Uu-gt):Ln;ae.addToken(ae,Xl,Vt?Vt+tr:tr,Mr,gt+Xl.length==ii?dr:"",si,Zo)}if(wu>=Uu){Ln=Ln.slice(Uu-gt),gt=Uu;break}gt=wu,Mr=""}Ln=ye.slice(Re,Re=ge[jt++]),Vt=Zs(ge[jt++],ae.cm.options)}}}function eu(ie,ae,ge){this.line=ae,this.rest=os(ae),this.size=this.rest?Et(St(this.rest))-ge+1:1,this.node=this.text=null,this.hidden=pi(ie,ae)}function ps(ie,ae,ge){for(var fe=[],ye,Re=ae;Re2&&Re.push((gt.bottom+jt.top)/2-ge.top)}}Re.push(ge.bottom-ge.top)}}function Mi(ie,ae,ge){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var fe=0;fege)return{map:ie.measure.maps[ye],cache:ie.measure.caches[ye],before:!0}}function cr(ie,ae){ae=Eo(ae);var ge=Et(ae),fe=ie.display.externalMeasured=new eu(ie.doc,ae,ge);fe.lineN=ge;var ye=fe.built=Mn(ie,fe);return fe.text=ye.pre,Xe(ie.display.lineMeasure,ye.pre),fe}function Hr(ie,ae,ge,fe){return Ua(ie,$o(ie,ae),ge,fe)}function ga(ie,ae){if(ae>=ie.display.viewFrom&&ae=ge.lineN&&aeae)&&(Re=gt-mt,ye=Re-1,ae>=gt&&(Je="right")),ye!=null){if(fe=ie[jt+2],mt==gt&&ge==(fe.insertLeft?"left":"right")&&(Je=ge),ge=="left"&&ye==0)for(;jt&&ie[jt-2]==ie[jt-3]&&ie[jt-1].insertLeft;)fe=ie[(jt-=3)+2],Je="left";if(ge=="right"&&ye==gt-mt)for(;jt=0&&(ge=ie[ye]).left==ge.right;ye--);return ge}function Fi(ie,ae,ge,fe){var ye=No(ae.map,ge,fe),Re=ye.node,Je=ye.start,mt=ye.end,gt=ye.collapse,jt;if(Re.nodeType==3){for(var Ln=0;Ln<4;Ln++){for(;Je&&Mt(ae.line.text.charAt(ye.coverStart+Je));)--Je;for(;ye.coverStart+mt0&&(gt=fe="right");var Vt;ie.options.lineWrapping&&(Vt=Re.getClientRects()).length>1?jt=Vt[fe=="right"?Vt.length-1:0]:jt=Re.getBoundingClientRect()}if(Ge&&Ue<9&&!Je&&(!jt||!jt.left&&!jt.right)){var si=Re.parentNode.getClientRects()[0];si?jt={left:si.left,right:si.left+Bi(ie.display),top:si.top,bottom:si.bottom}:jt=Ka}for(var ii=jt.top-ae.rect.top,tr=jt.bottom-ae.rect.top,dr=(ii+tr)/2,Mr=ae.view.measure.heights,so=0;so=fe.text.length?(gt=fe.text.length,jt="before"):gt<=0&&(gt=0,jt="after"),!mt)return Je(jt=="before"?gt-1:gt,jt=="before");function Ln(tr,dr,Mr){var so=mt[dr],Zo=so.level==1;return Je(Mr?tr-1:tr,Zo!=Mr)}var Vt=ft(mt,gt,jt),si=Bt,ii=Ln(gt,Vt,jt=="before");return si!=null&&(ii.other=Ln(gt,si,jt!="before")),ii}function fl(ie,ae){var ge=0;ae=Li(ie.doc,ae),ie.options.lineWrapping||(ge=Bi(ie.display)*ae.ch);var fe=en(ie.doc,ae.line),ye=ro(fe)+Nn(ie.display);return{left:ge,right:ge,top:ye,bottom:ye+fe.height}}function xu(ie,ae,ge,fe,ye){var Re=tn(ie,ae,ge);return Re.xRel=ye,fe&&(Re.outside=fe),Re}function Jt(ie,ae,ge){var fe=ie.doc;if(ge+=ie.display.viewOffset,ge<0)return xu(fe.first,0,null,-1,-1);var ye=wn(fe,ge),Re=fe.first+fe.size-1;if(ye>Re)return xu(fe.first+fe.size-1,en(fe,Re).text.length,null,1,1);ae<0&&(ae=0);for(var Je=en(fe,ye);;){var mt=Qt(ie,Je,ye,ae,ge),gt=po(Je,mt.ch+(mt.xRel>0||mt.outside>0?1:0));if(!gt)return mt;var jt=gt.find(1);if(jt.line==ye)return jt;Je=en(fe,ye=jt.line)}}function Yt(ie,ae,ge,fe){fe-=Io(ae);var ye=ae.text.length,Re=qe(function(Je){return Ua(ie,ge,Je-1).bottom<=fe},ye,0);return ye=qe(function(Je){return Ua(ie,ge,Je).top>fe},Re,ye),{begin:Re,end:ye}}function Dn(ie,ae,ge,fe){ge||(ge=$o(ie,ae));var ye=Dr(ie,ae,Ua(ie,ge,fe),"line").top;return Yt(ie,ae,ge,ye)}function nt(ie,ae,ge,fe){return ie.bottom<=ge?!1:ie.top>ge?!0:(fe?ie.left:ie.right)>ae}function Qt(ie,ae,ge,fe,ye){ye-=ro(ae);var Re=$o(ie,ae),Je=Io(ae),mt=0,gt=ae.text.length,jt=!0,Ln=Sn(ae,ie.doc.direction);if(Ln){var Vt=(ie.options.lineWrapping?Ir:lr)(ie,ae,ge,Re,Ln,fe,ye);jt=Vt.level!=1,mt=jt?Vt.from:Vt.to-1,gt=jt?Vt.to:Vt.from-1}var si=null,ii=null,tr=qe(function(_a){var Mo=Ua(ie,Re,_a);return Mo.top+=Je,Mo.bottom+=Je,nt(Mo,fe,ye,!1)?(Mo.top<=ye&&Mo.left<=fe&&(si=_a,ii=Mo),!0):!1},mt,gt),dr,Mr,so=!1;if(ii){var Zo=fe-ii.left=ea.bottom?1:0}return tr=at(ae.text,tr,1),xu(ge,tr,Mr,so,fe-dr)}function lr(ie,ae,ge,fe,ye,Re,Je){var mt=qe(function(Vt){var si=ye[Vt],ii=si.level!=1;return nt(La(ie,tn(ge,ii?si.to:si.from,ii?"before":"after"),"line",ae,fe),Re,Je,!0)},0,ye.length-1),gt=ye[mt];if(mt>0){var jt=gt.level!=1,Ln=La(ie,tn(ge,jt?gt.from:gt.to,jt?"after":"before"),"line",ae,fe);nt(Ln,Re,Je,!0)&&Ln.top>Je&&(gt=ye[mt-1])}return gt}function Ir(ie,ae,ge,fe,ye,Re,Je){var mt=Yt(ie,ae,fe,Je),gt=mt.begin,jt=mt.end;/\s/.test(ae.text.charAt(jt-1))&&jt--;for(var Ln=null,Vt=null,si=0;si=jt||ii.to<=gt)){var tr=ii.level!=1,dr=Ua(ie,fe,tr?Math.min(jt,ii.to)-1:Math.max(gt,ii.from)).right,Mr=drMr)&&(Ln=ii,Vt=Mr)}}return Ln||(Ln=ye[ye.length-1]),Ln.fromjt&&(Ln={from:Ln.from,to:jt,level:Ln.level}),Ln}var mr;function ur(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(mr==null){mr=Ye("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)mr.appendChild(document.createTextNode("x")),mr.appendChild(Ye("br"));mr.appendChild(document.createTextNode("x"))}Xe(ie.measure,mr);var ge=mr.offsetHeight/50;return ge>3&&(ie.cachedTextHeight=ge),je(ie.measure),ge||1}function Bi(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Ye("span","xxxxxxxxxx"),ge=Ye("pre",[ae],"CodeMirror-line-like");Xe(ie.measure,ge);var fe=ae.getBoundingClientRect(),ye=(fe.right-fe.left)/10;return ye>2&&(ie.cachedCharWidth=ye),ye||10}function Pr(ie){for(var ae=ie.display,ge={},fe={},ye=ae.gutters.clientLeft,Re=ae.gutters.firstChild,Je=0;Re;Re=Re.nextSibling,++Je){var mt=ie.display.gutterSpecs[Je].className;ge[mt]=Re.offsetLeft+Re.clientLeft+ye,fe[mt]=Re.clientWidth}return{fixedPos:to(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ge,gutterWidth:fe,wrapperWidth:ae.wrapper.clientWidth}}function to(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function So(ie){var ae=ur(ie.display),ge=ie.options.lineWrapping,fe=ge&&Math.max(5,ie.display.scroller.clientWidth/Bi(ie.display)-3);return function(ye){if(pi(ie.doc,ye))return 0;var Re=0;if(ye.widgets)for(var Je=0;Je0&&(jt=en(ie.doc,gt.line).text).length==gt.ch){var Ln=tt(jt,jt.length,ie.options.tabSize)-jt.length;gt=tn(gt.line,Math.max(0,Math.round((Re-Qi(ie.display).left)/Bi(ie.display))-Ln))}return gt}function vr(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ge=ie.display.view,fe=0;feae)&&(ye.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=ye.viewTo)Un&&xo(ie.doc,ae)ye.viewFrom?Wr(ie):(ye.viewFrom+=fe,ye.viewTo+=fe);else if(ae<=ye.viewFrom&&ge>=ye.viewTo)Wr(ie);else if(ae<=ye.viewFrom){var Re=zo(ie,ge,ge+fe,1);Re?(ye.view=ye.view.slice(Re.index),ye.viewFrom=Re.lineN,ye.viewTo+=fe):Wr(ie)}else if(ge>=ye.viewTo){var Je=zo(ie,ae,ae,-1);Je?(ye.view=ye.view.slice(0,Je.index),ye.viewTo=Je.lineN):Wr(ie)}else{var mt=zo(ie,ae,ae,-1),gt=zo(ie,ge,ge+fe,1);mt&>?(ye.view=ye.view.slice(0,mt.index).concat(ps(ie,mt.lineN,gt.lineN)).concat(ye.view.slice(gt.index)),ye.viewTo+=fe):Wr(ie)}var jt=ye.externalMeasured;jt&&(ge=ye.lineN&&ae=fe.viewTo)){var Re=fe.view[vr(ie,ae)];if(Re.node!=null){var Je=Re.changes||(Re.changes=[]);_t(Je,ge)==-1&&Je.push(ge)}}}function Wr(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function zo(ie,ae,ge,fe){var ye=vr(ie,ae),Re,Je=ie.display.view;if(!Un||ge==ie.doc.first+ie.doc.size)return{index:ye,lineN:ge};for(var mt=ie.display.viewFrom,gt=0;gt0){if(ye==Je.length-1)return null;Re=mt+Je[ye].size-ae,ye++}else Re=mt-ae;ae+=Re,ge+=Re}for(;xo(ie.doc,ge)!=ge;){if(ye==(fe<0?0:Je.length-1))return null;ge+=fe*Je[ye-(fe<0?1:0)].size,ye+=fe}return{index:ye,lineN:ge}}function Br(ie,ae,ge){var fe=ie.display,ye=fe.view;ye.length==0||ae>=fe.viewTo||ge<=fe.viewFrom?(fe.view=ps(ie,ae,ge),fe.viewFrom=ae):(fe.viewFrom>ae?fe.view=ps(ie,ae,fe.viewFrom).concat(fe.view):fe.viewFromge&&(fe.view=fe.view.slice(0,vr(ie,ge)))),fe.viewTo=ge}function Er(ie){for(var ae=ie.display.view,ge=0,fe=0;fe=ie.display.viewTo||mt.to().line0?ae.blinker=setInterval(function(){ie.hasFocus()||El(ie),ae.cursorDiv.style.visibility=(ge=!ge)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function Wa(ie){ie.state.focused||(ie.display.input.focus(),Oa(ie))}function wo(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,El(ie))},100)}function Oa(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(mn(ie,"focus",ie,ae),ie.state.focused=!0,Tt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Me&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),xa(ie))}function El(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(mn(ie,"blur",ie,ae),ie.state.focused=!1,ze(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Nr(ie){for(var ae=ie.display,ge=ae.lineDiv.offsetTop,fe=0;fe.005||Ln<-.005)&&(Qn(ye.line,Je),_s(ye.line),ye.rest))for(var Vt=0;Vtie.display.sizerWidth){var si=Math.ceil(mt/Bi(ie.display));si>ie.display.maxLineLength&&(ie.display.maxLineLength=si,ie.display.maxLine=ye.line,ie.display.maxLineChanged=!0)}}}}function _s(ie){if(ie.widgets)for(var ae=0;ae=Je&&(Re=wn(ae,ro(en(ae,gt))-ie.wrapper.clientHeight),Je=gt)}return{from:Re,to:Math.max(Je,Re+1)}}function Hs(ie,ae){if(!ei(ie,"scrollCursorIntoView")){var ge=ie.display,fe=ge.sizer.getBoundingClientRect(),ye=null;if(ae.top+fe.top<0?ye=!0:ae.bottom+fe.top>(window.innerHeight||document.documentElement.clientHeight)&&(ye=!1),ye!=null&&!vt){var Re=Ye("div","\u200B",null,`position: absolute; top: `+(ae.top-ge.viewOffset-Nn(ie.display))+`px; height: `+(ae.bottom-ae.top+Gi(ie)+ge.barHeight)+`px; left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Re),Re.scrollIntoView(ye),ie.display.lineSpace.removeChild(Re)}}}function gl(ie,ae,ge,fe){fe==null&&(fe=0);var ye;!ie.options.lineWrapping&&ae==ge&&(ae=ae.ch?tn(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ge=ae.sticky=="before"?tn(ae.line,ae.ch+1,"before"):ae);for(var Re=0;Re<5;Re++){var Je=!1,mt=La(ie,ae),gt=!ge||ge==ae?mt:La(ie,ge);ye={left:Math.min(mt.left,gt.left),top:Math.min(mt.top,gt.top)-fe,right:Math.max(mt.left,gt.left),bottom:Math.max(mt.bottom,gt.bottom)+fe};var jt=ad(ie,ye),Ln=ie.doc.scrollTop,Vt=ie.doc.scrollLeft;if(jt.scrollTop!=null&&(ac(ie,jt.scrollTop),Math.abs(ie.doc.scrollTop-Ln)>1&&(Je=!0)),jt.scrollLeft!=null&&(au(ie,jt.scrollLeft),Math.abs(ie.doc.scrollLeft-Vt)>1&&(Je=!0)),!Je)break}return ye}function rc(ie,ae){var ge=ad(ie,ae);ge.scrollTop!=null&&ac(ie,ge.scrollTop),ge.scrollLeft!=null&&au(ie,ge.scrollLeft)}function ad(ie,ae){var ge=ie.display,fe=ur(ie.display);ae.top<0&&(ae.top=0);var ye=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ge.scroller.scrollTop,Re=_i(ie),Je={};ae.bottom-ae.top>Re&&(ae.bottom=ae.top+Re);var mt=ie.doc.height+ai(ge),gt=ae.topmt-fe;if(ae.topye+Re){var Ln=Math.min(ae.top,(jt?mt:ae.bottom)-Re);Ln!=ye&&(Je.scrollTop=Ln)}var Vt=ie.options.fixedGutter?0:ge.gutters.offsetWidth,si=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ge.scroller.scrollLeft-Vt,ii=ki(ie)-ge.gutters.offsetWidth,tr=ae.right-ae.left>ii;return tr&&(ae.right=ae.left+ii),ae.left<10?Je.scrollLeft=0:ae.leftii+si-3&&(Je.scrollLeft=ae.right+(tr?0:10)-ii),Je}function kc(ie,ae){ae!=null&&(du(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function oc(ie){du(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function vc(ie,ae,ge){(ae!=null||ge!=null)&&du(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ge!=null&&(ie.curOp.scrollTop=ge)}function as(ie,ae){du(ie),ie.curOp.scrollToPos=ae}function du(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ge=fl(ie,ae.from),fe=fl(ie,ae.to);Rc(ie,ge,fe,ae.margin)}}function Rc(ie,ae,ge,fe){var ye=ad(ie,{left:Math.min(ae.left,ge.left),top:Math.min(ae.top,ge.top)-fe,right:Math.max(ae.right,ge.right),bottom:Math.max(ae.bottom,ge.bottom)+fe});vc(ie,ye.scrollLeft,ye.scrollTop)}function ac(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(le||Rr(ie,{top:ae}),Rd(ie,ae,!0),le&&Rr(ie),yi(ie,100))}function Rd(ie,ae,ge){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ge)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function au(ie,ae,ge,fe){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ge?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!fe)&&(ie.doc.scrollLeft=ae,ua(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function su(ie){var ae=ie.display,ge=ae.gutters.offsetWidth,fe=Math.round(ie.doc.height+ai(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ge:0,docHeight:fe,scrollHeight:fe+Gi(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ge}}var Wu=function(ie,ae,ge){this.cm=ge;var fe=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ye=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");fe.tabIndex=ye.tabIndex=-1,ie(fe),ie(ye),rn(fe,"scroll",function(){fe.clientHeight&&ae(fe.scrollTop,"vertical")}),rn(ye,"scroll",function(){ye.clientWidth&&ae(ye.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ge&&Ue<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wu.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ge=ie.scrollHeight>ie.clientHeight+1,fe=ie.nativeBarWidth;if(ge){this.vert.style.display="block",this.vert.style.bottom=ae?fe+"px":"0";var ye=ie.viewHeight-(ae?fe:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+ye)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ge?fe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Re=ie.viewWidth-ie.barLeft-(ge?fe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(fe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ge?fe:0,bottom:ae?fe:0}},Wu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wu.prototype.zeroWidthHack=function(){var ie=de&&!lt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ve,this.disableVert=new Ve},Wu.prototype.enableZeroWidthBar=function(ie,ae,ge){ie.style.pointerEvents="auto";function fe(){var ye=ie.getBoundingClientRect(),Re=ge=="vert"?document.elementFromPoint(ye.right-1,(ye.top+ye.bottom)/2):document.elementFromPoint((ye.right+ye.left)/2,ye.bottom-1);Re!=ie?ie.style.pointerEvents="none":ae.set(1e3,fe)}ae.set(1e3,fe)},Wu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Au=function(){};Au.prototype.update=function(){return{bottom:0,right:0}},Au.prototype.setScrollLeft=function(){},Au.prototype.setScrollTop=function(){},Au.prototype.clear=function(){};function yc(ie,ae){ae||(ae=su(ie));var ge=ie.display.barWidth,fe=ie.display.barHeight;bd(ie,ae);for(var ye=0;ye<4&&ge!=ie.display.barWidth||fe!=ie.display.barHeight;ye++)ge!=ie.display.barWidth&&ie.options.lineWrapping&&Nr(ie),bd(ie,su(ie)),ge=ie.display.barWidth,fe=ie.display.barHeight}function bd(ie,ae){var ge=ie.display,fe=ge.scrollbars.update(ae);ge.sizer.style.paddingRight=(ge.barWidth=fe.right)+"px",ge.sizer.style.paddingBottom=(ge.barHeight=fe.bottom)+"px",ge.heightForcer.style.borderBottom=fe.bottom+"px solid transparent",fe.right&&fe.bottom?(ge.scrollbarFiller.style.display="block",ge.scrollbarFiller.style.height=fe.bottom+"px",ge.scrollbarFiller.style.width=fe.right+"px"):ge.scrollbarFiller.style.display="",fe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ge.gutterFiller.style.display="block",ge.gutterFiller.style.height=fe.bottom+"px",ge.gutterFiller.style.width=ae.gutterWidth+"px"):ge.gutterFiller.style.display=""}var _d={native:Wu,null:Au};function Fd(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&ze(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new _d[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),rn(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ge){ge=="horizontal"?au(ie,ae):ac(ie,ae)},ie),ie.display.scrollbars.addClass&&Tt(ie.display.wrapper,ie.display.scrollbars.addClass)}var ch=0;function li(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ch},tu(ie.curOp)}function fo(ie){var ae=ie.curOp;ae&&Ea(ae,function(ge){for(var fe=0;fe=ge.viewTo)||ge.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new mi(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function et(ie){ie.updatedDisplay=ie.mustUpdate&&Jr(ie.cm,ie.update)}function Ut(ie){var ae=ie.cm,ge=ae.display;ie.updatedDisplay&&Nr(ae),ie.barMeasure=su(ae),ge.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Hr(ae,ge.maxLine,ge.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ge.scroller.clientWidth,ge.sizer.offsetLeft+ie.adjustWidthTo+Gi(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ge.sizer.offsetLeft+ie.adjustWidthTo-ki(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ge.input.prepareSelection())}function Xt(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft=ie.display.viewTo)){var ge=+new Date+ie.options.workTime,fe=Cr(ie,ae.highlightFrontier),ye=[];ae.iter(fe.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Re){if(fe.line>=ie.display.viewFrom){var Je=Re.styles,mt=Re.text.length>ie.options.maxHighlightLength?on(ae.mode,fe.state):null,gt=Po(ie,Re,fe,!0);mt&&(fe.state=mt),Re.styles=gt.styles;var jt=Re.styleClasses,Ln=gt.classes;Ln?Re.styleClasses=Ln:jt&&(Re.styleClasses=null);for(var Vt=!Je||Je.length!=Re.styles.length||jt!=Ln&&(!jt||!Ln||jt.bgClass!=Ln.bgClass||jt.textClass!=Ln.textClass),si=0;!Vt&&sige)return yi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=fe.line,ae.modeFrontier=Math.max(ae.modeFrontier,fe.line),ye.length&&nn(ie,function(){for(var Re=0;Re=ge.viewFrom&&ae.visible.to<=ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo)&&ge.renderedView==ge.view&&Er(ie)==0)return!1;oo(ie)&&(Wr(ie),ae.dims=Pr(ie));var ye=fe.first+fe.size,Re=Math.max(ae.visible.from-ie.options.viewportMargin,fe.first),Je=Math.min(ye,ae.visible.to+ie.options.viewportMargin);ge.viewFromJe&&ge.viewTo-Je<20&&(Je=Math.min(ye,ge.viewTo)),Un&&(Re=xo(ie.doc,Re),Je=Qr(ie.doc,Je));var mt=Re!=ge.viewFrom||Je!=ge.viewTo||ge.lastWrapHeight!=ae.wrapperHeight||ge.lastWrapWidth!=ae.wrapperWidth;Br(ie,Re,Je),ge.viewOffset=ro(en(ie.doc,ge.viewFrom)),ie.display.mover.style.top=ge.viewOffset+"px";var gt=Er(ie);if(!mt&>==0&&!ae.force&&ge.renderedView==ge.view&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo))return!1;var jt=Vi(ie);return gt>4&&(ge.lineDiv.style.display="none"),jr(ie,ge.updateLineNumbers,ae.dims),gt>4&&(ge.lineDiv.style.display=""),ge.renderedView=ge.view,Ui(jt),je(ge.cursorDiv),je(ge.selectionDiv),ge.gutters.style.height=ge.sizer.style.minHeight=0,mt&&(ge.lastWrapHeight=ae.wrapperHeight,ge.lastWrapWidth=ae.wrapperWidth,yi(ie,400)),ge.updateLineNumbers=null,!0}function ir(ie,ae){for(var ge=ae.viewport,fe=!0;;fe=!1){if(!fe||!ie.options.lineWrapping||ae.oldDisplayWidth==ki(ie)){if(ge&&ge.top!=null&&(ge={top:Math.min(ie.doc.height+ai(ie.display)-_i(ie),ge.top)}),ae.visible=jo(ie.display,ie.doc,ge),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else fe&&(ae.visible=jo(ie.display,ie.doc,ge));if(!Jr(ie,ae))break;Nr(ie);var ye=su(ie);Or(ie),yc(ie,ye),Vo(ie,ye),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Rr(ie,ae){var ge=new mi(ie,ae);if(Jr(ie,ge)){Nr(ie),ir(ie,ge);var fe=su(ie);Or(ie),yc(ie,fe),Vo(ie,fe),ge.finish()}}function jr(ie,ae,ge){var fe=ie.display,ye=ie.options.lineNumbers,Re=fe.lineDiv,Je=Re.firstChild;function mt(tr){var dr=tr.nextSibling;return Me&&de&&ie.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),dr}for(var gt=fe.view,jt=fe.viewFrom,Ln=0;Ln-1&&(ii=!1),ls(ie,Vt,jt,ge)),ii&&(je(Vt.lineNumber),Vt.lineNumber.appendChild(document.createTextNode(Ei(ie.options,jt)))),Je=Vt.node.nextSibling}jt+=Vt.size}for(;Je;)Je=mt(Je)}function vo(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Vo(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Gi(ie)+"px"}function ua(ie){var ae=ie.display,ge=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var fe=to(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,ye=ae.gutters.offsetWidth,Re=fe+"px",Je=0;JeJe.clientWidth,gt=Je.scrollHeight>Je.clientHeight;if(fe&&mt||ye&>){if(ye&&de&&Me){e:for(var jt=ae.target,Ln=Re.view;jt!=Je;jt=jt.parentNode)for(var Vt=0;Vt=0&&sn(ie,fe.to())<=0)return ge}return-1};var ao=function(ie,ae){this.anchor=ie,this.head=ae};ao.prototype.from=function(){return vi(this.anchor,this.head)},ao.prototype.to=function(){return Di(this.anchor,this.head)},ao.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ka(ie,ae,ge){var fe=ie&&ie.options.selectionsMayTouch,ye=ae[ge];ae.sort(function(si,ii){return sn(si.from(),ii.from())}),ge=_t(ae,ye);for(var Re=1;Re0:gt>=0){var jt=vi(mt.from(),Je.from()),Ln=Di(mt.to(),Je.to()),Vt=mt.empty()?Je.from()==Je.head:mt.from()==mt.head;Re<=ge&&--ge,ae.splice(--Re,2,new ao(Vt?Ln:jt,Vt?jt:Ln))}}return new Pa(ae,ge)}function Va(ie,ae){return new Pa([new ao(ie,ae||ie)],0)}function bs(ie){return ie.text?tn(ie.from.line+ie.text.length-1,St(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function us(ie,ae){if(sn(ie,ae.from)<0)return ie;if(sn(ie,ae.to)<=0)return bs(ae);var ge=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,fe=ie.ch;return ie.line==ae.to.line&&(fe+=bs(ae).ch-ae.to.ch),tn(ge,fe)}function qs(ie,ae){for(var ge=[],fe=0;fe1&&ie.remove(mt.line+1,tr-1),ie.insert(mt.line+1,so)}hr(ie,"change",ie,ae)}function cl(ie,ae,ge){function fe(ye,Re,Je){if(ye.linked)for(var mt=0;mt1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),St(ie.done)}function ss(ie,ae,ge,fe){var ye=ie.history;ye.undone.length=0;var Re=+new Date,Je,mt;if((ye.lastOp==fe||ye.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&ye.lastModTime>Re-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Je=Ra(ye,ye.lastOp==fe)))mt=St(Je.changes),sn(ae.from,ae.to)==0&&sn(ae.from,mt.to)==0?mt.to=bs(ae):Je.changes.push(Ps(ie,ae));else{var gt=St(ye.done);for((!gt||!gt.ranges)&&bl(ie.sel,ye.done),Je={changes:[Ps(ie,ae)],generation:ye.generation},ye.done.push(Je);ye.done.length>ye.undoDepth;)ye.done.shift(),ye.done[0].ranges||ye.done.shift()}ye.done.push(ge),ye.generation=++ye.maxGeneration,ye.lastModTime=ye.lastSelTime=Re,ye.lastOp=ye.lastSelOp=fe,ye.lastOrigin=ye.lastSelOrigin=ae.origin,mt||mn(ie,"historyAdded")}function cs(ie,ae,ge,fe){var ye=ae.charAt(0);return ye=="*"||ye=="+"&&ge.ranges.length==fe.ranges.length&&ge.somethingSelected()==fe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Al(ie,ae,ge,fe){var ye=ie.history,Re=fe&&fe.origin;ge==ye.lastSelOp||Re&&ye.lastSelOrigin==Re&&(ye.lastModTime==ye.lastSelTime&&ye.lastOrigin==Re||cs(ie,Re,St(ye.done),ae))?ye.done[ye.done.length-1]=ae:bl(ae,ye.done),ye.lastSelTime=+new Date,ye.lastSelOrigin=Re,ye.lastSelOp=ge,fe&&fe.clearRedo!==!1&&Uo(ye.undone)}function bl(ie,ae){var ge=St(ae);ge&&ge.ranges&&ge.equals(ie)||ae.push(ie)}function Vl(ie,ae,ge,fe){var ye=ae["spans_"+ie.id],Re=0;ie.iter(Math.max(ie.first,ge),Math.min(ie.first+ie.size,fe),function(Je){Je.markedSpans&&((ye||(ye=ae["spans_"+ie.id]={}))[Re]=Je.markedSpans),++Re})}function Fs(ie){if(!ie)return null;for(var ae,ge=0;ge-1&&(St(mt)[Vt]=jt[Vt],delete jt[Vt])}}return fe}function _c(ie,ae,ge,fe){if(fe){var ye=ie.anchor;if(ge){var Re=sn(ae,ye)<0;Re!=sn(ge,ye)<0?(ye=ae,ae=ge):Re!=sn(ae,ge)<0&&(ae=ge)}return new ao(ye,ae)}else return new ao(ge||ae,ae)}function Bs(ie,ae,ge,fe,ye){ye==null&&(ye=ie.cm&&(ie.cm.display.shift||ie.extend)),js(ie,new Pa([_c(ie.sel.primary(),ae,ge,ye)],0),fe)}function Ts(ie,ae,ge){for(var fe=[],ye=ie.cm&&(ie.cm.display.shift||ie.extend),Re=0;Re=ae.ch:mt.to>ae.ch))){if(ye&&(mn(gt,"beforeCursorEnter"),gt.explicitlyCleared))if(Re.markedSpans){--Je;continue}else break;if(!gt.atomic)continue;if(ge){var Vt=gt.find(fe<0?1:-1),si=void 0;if((fe<0?Ln:jt)&&(Vt=Ou(ie,Vt,-fe,Vt&&Vt.line==ae.line?Re:null)),Vt&&Vt.line==ae.line&&(si=sn(Vt,ge))&&(fe<0?si<0:si>0))return ml(ie,Vt,ae,fe,ye)}var ii=gt.find(fe<0?-1:1);return(fe<0?jt:Ln)&&(ii=Ou(ie,ii,fe,ii.line==ae.line?Re:null)),ii?ml(ie,ii,ae,fe,ye):null}}return ae}function Iu(ie,ae,ge,fe,ye){var Re=fe||1,Je=ml(ie,ae,ge,Re,ye)||!ye&&ml(ie,ae,ge,Re,!0)||ml(ie,ae,ge,-Re,ye)||!ye&&ml(ie,ae,ge,-Re,!0);return Je||(ie.cantEdit=!0,tn(ie.first,0))}function Ou(ie,ae,ge,fe){return ge<0&&ae.ch==0?ae.line>ie.first?Li(ie,tn(ae.line-1)):null:ge>0&&ae.ch==(fe||en(ie,ae.line)).text.length?ae.line=0;--ye)zs(ie,{from:fe[ye].from,to:fe[ye].to,text:ye?[""]:ae.text,origin:ae.origin});else zs(ie,ae)}}function zs(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&sn(ae.from,ae.to)==0)){var ge=qs(ie,ae);ss(ie,ae,ge,ie.cm?ie.cm.curOp.id:NaN),sc(ie,ae,ge,br(ie,ae));var fe=[];cl(ie,function(ye,Re){!Re&&_t(fe,ye.history)==-1&&(Ys(ye.history,ae),fe.push(ye.history)),sc(ye,ae,null,br(ye,ae))})}}function $u(ie,ae,ge){var fe=ie.cm&&ie.cm.state.suppressEdits;if(!(fe&&!ge)){for(var ye=ie.history,Re,Je=ie.sel,mt=ae=="undo"?ye.done:ye.undone,gt=ae=="undo"?ye.undone:ye.done,jt=0;jt=0;--ii){var tr=si(ii);if(tr)return tr.v}}}}function Vc(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Pa(Zn(ie.sel.ranges,function(ye){return new ao(tn(ye.anchor.line+ae,ye.anchor.ch),tn(ye.head.line+ae,ye.head.ch))}),ie.sel.primIndex),ie.cm)){ji(ie.cm,ie.first,ie.first-ae,ae);for(var ge=ie.cm.display,fe=ge.viewFrom;feie.lastLine())){if(ae.from.lineRe&&(ae={from:ae.from,to:tn(Re,en(ie,Re).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=fn(ie,ae.from,ae.to),ge||(ge=qs(ie,ae)),ie.cm?lc(ie.cm,ae,fe):Ws(ie,ae,fe),Dl(ie,ge,zt),ie.cantEdit&&Iu(ie,tn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function lc(ie,ae,ge){var fe=ie.doc,ye=ie.display,Re=ae.from,Je=ae.to,mt=!1,gt=Re.line;ie.options.lineWrapping||(gt=Et(Eo(en(fe,Re.line))),fe.iter(gt,Je.line+1,function(ii){if(ii==ye.maxLine)return mt=!0,!0})),fe.sel.contains(ae.from,ae.to)>-1&&Pi(ie),Ws(fe,ae,ge,So(ie)),ie.options.lineWrapping||(fe.iter(gt,Re.line+ae.text.length,function(ii){var tr=Ja(ii);tr>ye.maxLineLength&&(ye.maxLine=ii,ye.maxLineLength=tr,ye.maxLineChanged=!0,mt=!1)}),mt&&(ie.curOp.updateMaxLine=!0)),Tr(fe,Re.line),yi(ie,400);var jt=ae.text.length-(Je.line-Re.line)-1;ae.full?ji(ie):Re.line==Je.line&&ae.text.length==1&&!el(ie.doc,ae)?Ai(ie,Re.line,"text"):ji(ie,Re.line,Je.line+1,jt);var Ln=Hn(ie,"changes"),Vt=Hn(ie,"change");if(Vt||Ln){var si={from:Re,to:Je,text:ae.text,removed:ae.removed,origin:ae.origin};Vt&&hr(ie,"change",ie,si),Ln&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(si)}ie.display.selForContextMenu=null}function Ku(ie,ae,ge,fe,ye){var Re;fe||(fe=ge),sn(fe,ge)<0&&(Re=[fe,ge],ge=Re[0],fe=Re[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),$s(ie,{from:ge,to:fe,text:ae,origin:ye})}function Tu(ie,ae,ge,fe){ge1||!(this.children[0]instanceof Xs))){var mt=[];this.collapse(mt),this.children=[new Xs(mt)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae50){for(var Je=ye.lines.length%25+25,mt=Je;mt10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ge){for(var fe=0;feie.display.maxLineLength&&(ie.display.maxLine=jt,ie.display.maxLineLength=Ln,ie.display.maxLineChanged=!0)}fe!=null&&ie&&this.collapsed&&ji(ie,fe,ye+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Gu(ie.doc)),ie&&hr(ie,"markerCleared",ie,this,fe,ye),ae&&fo(ie),this.parent&&this.parent.clear()}},dn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ge,fe,ye=0;ye0||Je==0&&Re.clearWhenEmpty!==!1)return Re;if(Re.replacedWith&&(Re.collapsed=!0,Re.widgetNode=dt("span",[Re.replacedWith],"CodeMirror-widget"),fe.handleMouseEvents||Re.widgetNode.setAttribute("cm-ignore-events","true"),fe.insertLeft&&(Re.widgetNode.insertLeft=!0)),Re.collapsed){if(la(ie,ae.line,ae,ge,Re)||ae.line!=ge.line&&la(ie,ge.line,ae,ge,Re))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yn()}Re.addToHistory&&ss(ie,{from:ae,to:ge,origin:"markText"},ie.sel,NaN);var mt=ae.line,gt=ie.cm,jt;if(ie.iter(mt,ge.line+1,function(Vt){gt&&Re.collapsed&&!gt.options.lineWrapping&&Eo(Vt)==gt.display.maxLine&&(jt=!0),Re.collapsed&&mt!=ae.line&&Qn(Vt,0),qo(Vt,new Ao(Re,mt==ae.line?ae.ch:null,mt==ge.line?ge.ch:null)),++mt}),Re.collapsed&&ie.iter(ae.line,ge.line+1,function(Vt){pi(ie,Vt)&&Qn(Vt,0)}),Re.clearOnEnter&&rn(Re,"beforeCursorEnter",function(){return Re.clear()}),Re.readOnly&&(Ho(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Re.collapsed&&(Re.id=++jd,Re.atomic=!0),gt){if(jt&&(gt.curOp.updateMaxLine=!0),Re.collapsed)ji(gt,ae.line,ge.line+1);else if(Re.className||Re.startStyle||Re.endStyle||Re.css||Re.attributes||Re.title)for(var Ln=ae.line;Ln<=ge.line;Ln++)Ai(gt,Ln,"text");Re.atomic&&Gu(gt.doc),hr(gt,"markerAdded",gt,Re)}return Re}var Bc=function(ie,ae){this.markers=ie,this.primary=ae;for(var ge=0;ge=0;gt--)$s(this,fe[gt]);mt?is(this,mt):this.cm&&oc(this.cm)}),undo:Xn(function(){$u(this,"undo")}),redo:Xn(function(){$u(this,"redo")}),undoSelection:Xn(function(){$u(this,"undo",!0)}),redoSelection:Xn(function(){$u(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ge=0,fe=0;fe=ie.ch)&&ae.push(ye.marker.parent||ye.marker)}return ae},findMarks:function(ie,ae,ge){ie=Li(this,ie),ae=Li(this,ae);var fe=[],ye=ie.line;return this.iter(ie.line,ae.line+1,function(Re){var Je=Re.markedSpans;if(Je)for(var mt=0;mt=gt.to||gt.from==null&&ye!=ie.line||gt.from!=null&&ye==ae.line&>.from>=ae.ch)&&(!ge||ge(gt.marker))&&fe.push(gt.marker.parent||gt.marker)}++ye}),fe},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ge=ae.markedSpans;if(ge)for(var fe=0;feie)return ae=ie,!0;ie-=Re,++ge}),Li(this,tn(ge,ae))},indexFromPos:function(ie){ie=Li(this,ie);var ae=ie.ch;if(ie.lineae&&(ae=ie.from),ie.to!=null&&ie.to-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var Ln=ie.dataTransfer.getData("Text");if(Ln){var Vt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Vt=ae.listSelections()),Dl(ae.doc,Va(ge,ge)),Vt)for(var si=0;si=0;mt--)Ku(ie.doc,"",fe[mt].from,fe[mt].to,"+delete");oc(ie)})}function jh(ie,ae,ge){var fe=at(ie.text,ae+ge,ge);return fe<0||fe>ie.text.length?null:fe}function Ml(ie,ae,ge){var fe=jh(ie,ae.ch,ge);return fe==null?null:new tn(ae.line,fe,ge<0?"after":"before")}function gs(ie,ae,ge,fe,ye){if(ie){ae.doc.direction=="rtl"&&(ye=-ye);var Re=Sn(ge,ae.doc.direction);if(Re){var Je=ye<0?St(Re):Re[0],mt=ye<0==(Je.level==1),gt=mt?"after":"before",jt;if(Je.level>0||ae.doc.direction=="rtl"){var Ln=$o(ae,ge);jt=ye<0?ge.text.length-1:0;var Vt=Ua(ae,Ln,jt).top;jt=qe(function(si){return Ua(ae,Ln,si).top==Vt},ye<0==(Je.level==1)?Je.from:Je.to-1,jt),gt=="before"&&(jt=jh(ge,jt,1))}else jt=ye<0?Je.to:Je.from;return new tn(fe,jt,gt)}}return new tn(fe,ye<0?ge.text.length:0,ye<0?"before":"after")}function Js(ie,ae,ge,fe){var ye=Sn(ae,ie.doc.direction);if(!ye)return Ml(ae,ge,fe);ge.ch>=ae.text.length?(ge.ch=ae.text.length,ge.sticky="before"):ge.ch<=0&&(ge.ch=0,ge.sticky="after");var Re=ft(ye,ge.ch,ge.sticky),Je=ye[Re];if(ie.doc.direction=="ltr"&&Je.level%2==0&&(fe>0?Je.to>ge.ch:Je.from=Je.from&&si>=Ln.begin)){var ii=Vt?"before":"after";return new tn(ge.line,si,ii)}}var tr=function(so,Zo,Bo){for(var ea=function(rl,ru){return ru?new tn(ge.line,mt(rl,1),"before"):new tn(ge.line,rl,"after")};so>=0&&so0==(_a.level!=1),rs=Mo?Bo.begin:mt(Bo.end,-1);if(_a.from<=rs&&rs<_a.to||(rs=Mo?_a.from:mt(_a.to,-1),Bo.begin<=rs&&rs0?Ln.end:mt(Ln.begin,-1);return Mr!=null&&!(fe>0&&Mr==ae.text.length)&&(dr=tr(fe>0?0:ye.length-1,fe,jt(Mr)),dr)?dr:null}var nu={selectAll:Ns,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),zt)},killLine:function(ie){return lu(ie,function(ae){if(ae.empty()){var ge=en(ie.doc,ae.head.line).text.length;return ae.head.ch==ge&&ae.head.line0)ye=new tn(ye.line,ye.ch+1),ie.replaceRange(Re.charAt(ye.ch-1)+Re.charAt(ye.ch-2),tn(ye.line,ye.ch-2),ye,"+transpose");else if(ye.line>ie.doc.first){var Je=en(ie.doc,ye.line-1).text;Je&&(ye=new tn(ye.line,1),ie.replaceRange(Re.charAt(0)+ie.doc.lineSeparator()+Je.charAt(Je.length-1),tn(ye.line-1,Je.length-1),ye,"+transpose"))}}ge.push(new ao(ye,ye))}ie.setSelections(ge)})},newlineAndIndent:function(ie){return nn(ie,function(){for(var ae=ie.listSelections(),ge=ae.length-1;ge>=0;ge--)ie.replaceRange(ie.doc.lineSeparator(),ae[ge].anchor,ae[ge].head,"+input");ae=ie.listSelections();for(var fe=0;feie&&sn(ae,this.pos)==0&&ge==this.button};var zh,yh;function vg(ie,ae){var ge=+new Date;return yh&&yh.compare(ge,ie,ae)?(zh=yh=null,"triple"):zh&&zh.compare(ge,ie,ae)?(yh=new mg(ge,ie,ae),zh=null,"double"):(zh=new mg(ge,ie,ae),yh=null,"single")}function Jc(ie){var ae=this,ge=ae.display;if(!(ei(ae,ie)||ge.activeTouch&&ge.input.supportsTouch())){if(ge.input.ensurePolled(),ge.shift=ie.shiftKey,En(ge,ie)){Me||(ge.scroller.draggable=!1,setTimeout(function(){return ge.scroller.draggable=!0},100));return}if(!Kf(ae,ie)){var fe=pr(ae,ie),ye=gi(ie),Re=fe?vg(fe,ye):"single";window.focus(),ye==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(fe&&yg(ae,ye,fe,Re,ie))&&(ye==1?fe?xg(ae,fe,Re,ie):_r(ie)==ge.scroller&&wi(ie):ye==2?(fe&&Bs(ae.doc,fe),setTimeout(function(){return ge.input.focus()},20)):ye==3&&(Be?ae.display.input.onContextMenu(ie):wo(ae)))}}}function yg(ie,ae,ge,fe,ye){var Re="Click";return fe=="double"?Re="Double"+Re:fe=="triple"&&(Re="Triple"+Re),Re=(ae==1?"Left":ae==2?"Middle":"Right")+Re,Yc(ie,ph(Re,ye),ye,function(Je){if(typeof Je=="string"&&(Je=nu[Je]),!Je)return!1;var mt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),mt=Je(ie,ge)!=yn}finally{ie.state.suppressEdits=!1}return mt})}function xh(ie,ae,ge){var fe=ie.getOption("configureMouse"),ye=fe?fe(ie,ae,ge):{};if(ye.unit==null){var Re=se?ge.shiftKey&&ge.metaKey:ge.altKey;ye.unit=Re?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(ye.extend==null||ie.doc.extend)&&(ye.extend=ie.doc.extend||ge.shiftKey),ye.addNew==null&&(ye.addNew=de?ge.metaKey:ge.ctrlKey),ye.moveOnDrag==null&&(ye.moveOnDrag=!(de?ge.altKey:ge.ctrlKey)),ye}function xg(ie,ae,ge,fe){Ge?setTimeout(Wt(Wa,ie),0):ie.curOp.focus=ot();var ye=xh(ie,ge,fe),Re=ie.doc.sel,Je;ie.options.dragDrop&&di&&!ie.isReadOnly()&&ge=="single"&&(Je=Re.contains(ae))>-1&&(sn((Je=Re.ranges[Je]).from(),ae)<0||ae.xRel>0)&&(sn(Je.to(),ae)>0||ae.xRel<0)?Sg(ie,fe,ae,ye):Hp(ie,fe,ae,ye)}function Sg(ie,ae,ge,fe){var ye=ie.display,Re=!1,Je=Vn(ie,function(jt){Me&&(ye.scroller.draggable=!1),ie.state.draggingText=!1,kn(ye.wrapper.ownerDocument,"mouseup",Je),kn(ye.wrapper.ownerDocument,"mousemove",mt),kn(ye.scroller,"dragstart",gt),kn(ye.scroller,"drop",Je),Re||(wi(jt),fe.addNew||Bs(ie.doc,ge,null,null,fe.extend),Me&&!Ft||Ge&&Ue==9?setTimeout(function(){ye.wrapper.ownerDocument.body.focus({preventScroll:!0}),ye.input.focus()},20):ye.input.focus())}),mt=function(jt){Re=Re||Math.abs(ae.clientX-jt.clientX)+Math.abs(ae.clientY-jt.clientY)>=10},gt=function(){return Re=!0};Me&&(ye.scroller.draggable=!0),ie.state.draggingText=Je,Je.copy=!fe.moveOnDrag,ye.scroller.dragDrop&&ye.scroller.dragDrop(),rn(ye.wrapper.ownerDocument,"mouseup",Je),rn(ye.wrapper.ownerDocument,"mousemove",mt),rn(ye.scroller,"dragstart",gt),rn(ye.scroller,"drop",Je),wo(ie),setTimeout(function(){return ye.input.focus()},20)}function Pg(ie,ae,ge){if(ge=="char")return new ao(ae,ae);if(ge=="word")return ie.findWordAt(ae);if(ge=="line")return new ao(tn(ae.line,0),Li(ie.doc,tn(ae.line+1,0)));var fe=ge(ie,ae);return new ao(fe.from,fe.to)}function Hp(ie,ae,ge,fe){var ye=ie.display,Re=ie.doc;wi(ae);var Je,mt,gt=Re.sel,jt=gt.ranges;if(fe.addNew&&!fe.extend?(mt=Re.sel.contains(ge),mt>-1?Je=jt[mt]:Je=new ao(ge,ge)):(Je=Re.sel.primary(),mt=Re.sel.primIndex),fe.unit=="rectangle")fe.addNew||(Je=new ao(ge,ge)),ge=pr(ie,ae,!0,!0),mt=-1;else{var Ln=Pg(ie,ge,fe.unit);fe.extend?Je=_c(Je,Ln.anchor,Ln.head,fe.extend):Je=Ln}fe.addNew?mt==-1?(mt=jt.length,js(Re,ka(ie,jt.concat([Je]),mt),{scroll:!1,origin:"*mouse"})):jt.length>1&&jt[mt].empty()&&fe.unit=="char"&&!fe.extend?(js(Re,ka(ie,jt.slice(0,mt).concat(jt.slice(mt+1)),0),{scroll:!1,origin:"*mouse"}),gt=Re.sel):Ms(Re,mt,Je,qt):(mt=0,js(Re,new Pa([Je],0),qt),gt=Re.sel);var Vt=ge;function si(Bo){if(sn(Vt,Bo)!=0)if(Vt=Bo,fe.unit=="rectangle"){for(var ea=[],_a=ie.options.tabSize,Mo=tt(en(Re,ge.line).text,ge.ch,_a),rs=tt(en(Re,Bo.line).text,Bo.ch,_a),rl=Math.min(Mo,rs),ru=Math.max(Mo,rs),xl=Math.min(ge.line,Bo.line),Uu=Math.min(ie.lastLine(),Math.max(ge.line,Bo.line));xl<=Uu;xl++){var wu=en(Re,xl).text,Xl=Gn(wu,rl,_a);rl==ru?ea.push(new ao(tn(xl,Xl),tn(xl,Xl))):wu.length>Xl&&ea.push(new ao(tn(xl,Xl),tn(xl,Gn(wu,ru,_a))))}ea.length||ea.push(new ao(ge,ge)),js(Re,ka(ie,gt.ranges.slice(0,mt).concat(ea),mt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Bo)}else{var Yu=Je,hu=Pg(ie,Bo,fe.unit),Jl=Yu.anchor,Ds;sn(hu.anchor,Jl)>0?(Ds=hu.head,Jl=vi(Yu.from(),hu.anchor)):(Ds=hu.anchor,Jl=Di(Yu.to(),hu.head));var Sl=gt.ranges.slice(0);Sl[mt]=qg(ie,new ao(Li(Re,Jl),Ds)),js(Re,ka(ie,Sl,mt),qt)}}var ii=ye.wrapper.getBoundingClientRect(),tr=0;function dr(Bo){var ea=++tr,_a=pr(ie,Bo,!0,fe.unit=="rectangle");if(_a)if(sn(_a,Vt)!=0){ie.curOp.focus=ot(),si(_a);var Mo=jo(ye,Re);(_a.line>=Mo.to||_a.lineii.bottom?20:0;rs&&setTimeout(Vn(ie,function(){tr==ea&&(ye.scroller.scrollTop+=rs,dr(Bo))}),50)}}function Mr(Bo){ie.state.selectingText=!1,tr=1/0,Bo&&(wi(Bo),ye.input.focus()),kn(ye.wrapper.ownerDocument,"mousemove",so),kn(ye.wrapper.ownerDocument,"mouseup",Zo),Re.history.lastSelOrigin=null}var so=Vn(ie,function(Bo){Bo.buttons===0||!gi(Bo)?Mr(Bo):dr(Bo)}),Zo=Vn(ie,Mr);ie.state.selectingText=Zo,rn(ye.wrapper.ownerDocument,"mousemove",so),rn(ye.wrapper.ownerDocument,"mouseup",Zo)}function qg(ie,ae){var ge=ae.anchor,fe=ae.head,ye=en(ie.doc,ge.line);if(sn(ge,fe)==0&&ge.sticky==fe.sticky)return ae;var Re=Sn(ye);if(!Re)return ae;var Je=ft(Re,ge.ch,ge.sticky),mt=Re[Je];if(mt.from!=ge.ch&&mt.to!=ge.ch)return ae;var gt=Je+(mt.from==ge.ch==(mt.level!=1)?0:1);if(gt==0||gt==Re.length)return ae;var jt;if(fe.line!=ge.line)jt=(fe.line-ge.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Ln=ft(Re,fe.ch,fe.sticky),Vt=Ln-Je||(fe.ch-ge.ch)*(mt.level==1?-1:1);Ln==gt-1||Ln==gt?jt=Vt<0:jt=Vt>0}var si=Re[gt+(jt?-1:0)],ii=jt==(si.level==1),tr=ii?si.from:si.to,dr=ii?"after":"before";return ge.ch==tr&&ge.sticky==dr?ae:new ao(new tn(ge.line,tr,dr),fe)}function Vd(ie,ae,ge,fe){var ye,Re;if(ae.touches)ye=ae.touches[0].clientX,Re=ae.touches[0].clientY;else try{ye=ae.clientX,Re=ae.clientY}catch(si){return!1}if(ye>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;fe&&wi(ae);var Je=ie.display,mt=Je.lineDiv.getBoundingClientRect();if(Re>mt.bottom||!Hn(ie,ge))return Hi(ae);Re-=mt.top-Je.viewOffset;for(var gt=0;gt=ye){var Ln=wn(ie.doc,Re),Vt=ie.display.gutterSpecs[gt];return mn(ie,ge,ie,Ln,Vt.className,ae),Hi(ae)}}}function Kf(ie,ae){return Vd(ie,ae,"gutterClick",!0)}function gf(ie,ae){En(ie.display,ae)||ep(ie,ae)||ei(ie,ae,"contextmenu")||Be||ie.display.input.onContextMenu(ae)}function ep(ie,ae){return Hn(ie,"gutterContextMenu")?Vd(ie,ae,"gutterContextMenu",!1):!1}function Vf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ya(ie)}var Sh={toString:function(){return"CodeMirror.Init"}},wg={},Ph={};function tp(ie){var ae=ie.optionHandlers;function ge(fe,ye,Re,Je){ie.defaults[fe]=ye,Re&&(ae[fe]=Je?function(mt,gt,jt){jt!=Sh&&Re(mt,gt,jt)}:Re)}ie.defineOption=ge,ie.Init=Sh,ge("value","",function(fe,ye){return fe.setValue(ye)},!0),ge("mode",null,function(fe,ye){fe.doc.modeOption=ye,aa(fe)},!0),ge("indentUnit",2,aa,!0),ge("indentWithTabs",!1),ge("smartIndent",!0),ge("tabSize",4,function(fe){fs(fe),ya(fe),ji(fe)},!0),ge("lineSeparator",null,function(fe,ye){if(fe.doc.lineSep=ye,!!ye){var Re=[],Je=fe.doc.first;fe.doc.iter(function(gt){for(var jt=0;;){var Ln=gt.text.indexOf(ye,jt);if(Ln==-1)break;jt=Ln+ye.length,Re.push(tn(Je,Ln))}Je++});for(var mt=Re.length-1;mt>=0;mt--)Ku(fe.doc,ye,Re[mt],tn(Re[mt].line,Re[mt].ch+ye.length))}}),ge("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(fe,ye,Re){fe.state.specialChars=new RegExp(ye.source+(ye.test(" ")?"":"| "),"g"),Re!=Sh&&fe.refresh()}),ge("specialCharPlaceholder",Ss,function(fe){return fe.refresh()},!0),ge("electricChars",!0),ge("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ge("spellcheck",!1,function(fe,ye){return fe.getInputField().spellcheck=ye},!0),ge("autocorrect",!1,function(fe,ye){return fe.getInputField().autocorrect=ye},!0),ge("autocapitalize",!1,function(fe,ye){return fe.getInputField().autocapitalize=ye},!0),ge("rtlMoveVisually",!he),ge("wholeLineUpdateBefore",!0),ge("theme","default",function(fe){Vf(fe),uo(fe)},!0),ge("keyMap","default",function(fe,ye,Re){var Je=ud(ye),mt=Re!=Sh&&ud(Re);mt&&mt.detach&&mt.detach(fe,Je),Je.attach&&Je.attach(fe,mt||null)}),ge("extraKeys",null),ge("configureMouse",null),ge("lineWrapping",!1,np,!0),ge("gutters",[],function(fe,ye){fe.display.gutterSpecs=Wo(ye,fe.options.lineNumbers),uo(fe)},!0),ge("fixedGutter",!0,function(fe,ye){fe.display.gutters.style.left=ye?to(fe.display)+"px":"0",fe.refresh()},!0),ge("coverGutterNextToScrollbar",!1,function(fe){return yc(fe)},!0),ge("scrollbarStyle","native",function(fe){Fd(fe),yc(fe),fe.display.scrollbars.setScrollTop(fe.doc.scrollTop),fe.display.scrollbars.setScrollLeft(fe.doc.scrollLeft)},!0),ge("lineNumbers",!1,function(fe,ye){fe.display.gutterSpecs=Wo(fe.options.gutters,ye),uo(fe)},!0),ge("firstLineNumber",1,uo,!0),ge("lineNumberFormatter",function(fe){return fe},uo,!0),ge("showCursorWhenSelecting",!1,Or,!0),ge("resetSelectionOnContextMenu",!0),ge("lineWiseCopyCut",!0),ge("pasteLinesPerSelection",!0),ge("selectionsMayTouch",!1),ge("readOnly",!1,function(fe,ye){ye=="nocursor"&&(El(fe),fe.display.input.blur()),fe.display.input.readOnlyChanged(ye)}),ge("screenReaderLabel",null,function(fe,ye){ye=ye===""?null:ye,fe.display.input.screenReaderLabelChanged(ye)}),ge("disableInput",!1,function(fe,ye){ye||fe.display.input.reset()},!0),ge("dragDrop",!0,Uf),ge("allowDropFileTypes",null),ge("cursorBlinkRate",530),ge("cursorScrollMargin",0),ge("cursorHeight",1,Or,!0),ge("singleCursorHeightPerLine",!0,Or,!0),ge("workTime",100),ge("workDelay",100),ge("flattenSpans",!0,fs,!0),ge("addModeClass",!1,fs,!0),ge("pollInterval",100),ge("undoDepth",200,function(fe,ye){return fe.doc.history.undoDepth=ye}),ge("historyEventDelay",1250),ge("viewportMargin",10,function(fe){return fe.refresh()},!0),ge("maxHighlightLength",1e4,fs,!0),ge("moveInputWithCursor",!0,function(fe,ye){ye||fe.display.input.resetPosition()}),ge("tabindex",null,function(fe,ye){return fe.display.input.getField().tabIndex=ye||""}),ge("autofocus",null),ge("direction","ltr",function(fe,ye){return fe.doc.setDirection(ye)},!0),ge("phrases",null)}function Uf(ie,ae,ge){var fe=ge&&ge!=Sh;if(!ae!=!fe){var ye=ie.display.dragFunctions,Re=ae?rn:kn;Re(ie.display.scroller,"dragstart",ye.start),Re(ie.display.scroller,"dragenter",ye.enter),Re(ie.display.scroller,"dragover",ye.over),Re(ie.display.scroller,"dragleave",ye.leave),Re(ie.display.scroller,"drop",ye.drop)}}function np(ie){ie.options.lineWrapping?(Tt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(ze(ie.display.wrapper,"CodeMirror-wrap"),Ca(ie)),fr(ie),ji(ie),ya(ie),setTimeout(function(){return yc(ie)},100)}function As(ie,ae){var ge=this;if(!(this instanceof As))return new As(ie,ae);this.options=ae=ae?Dt(ae):{},Dt(wg,ae,!1);var fe=ae.value;typeof fe=="string"?fe=new Bl(fe,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(fe.modeOption=ae.mode),this.doc=fe;var ye=new As.inputStyles[ae.inputStyle](this),Re=this.display=new To(ie,fe,ye,ae);Re.wrapper.CodeMirror=this,Vf(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fd(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 Ve,keySeq:null,specialChars:null},ae.autofocus&&!ee&&Re.input.focus(),Ge&&Ue<11&&setTimeout(function(){return ge.display.input.reset(!0)},20),Zh(this),Vu(),li(this),this.curOp.forceUpdate=!0,ba(this,fe),ae.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ge.hasFocus()&&!ge.state.focused&&Oa(ge)},20):El(this);for(var Je in Ph)Ph.hasOwnProperty(Je)&&Ph[Je](this,ae[Je],Sh);oo(this),ae.finishInit&&ae.finishInit(this);for(var mt=0;mt20*20}rn(ae.scroller,"touchstart",function(gt){if(!ei(ie,gt)&&!Re(gt)&&!Kf(ie,gt)){ae.input.ensurePolled(),clearTimeout(ge);var jt=+new Date;ae.activeTouch={start:jt,moved:!1,prev:jt-fe.end<=300?fe:null},gt.touches.length==1&&(ae.activeTouch.left=gt.touches[0].pageX,ae.activeTouch.top=gt.touches[0].pageY)}}),rn(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),rn(ae.scroller,"touchend",function(gt){var jt=ae.activeTouch;if(jt&&!En(ae,gt)&&jt.left!=null&&!jt.moved&&new Date-jt.start<300){var Ln=ie.coordsChar(ae.activeTouch,"page"),Vt;!jt.prev||Je(jt,jt.prev)?Vt=new ao(Ln,Ln):!jt.prev.prev||Je(jt,jt.prev.prev)?Vt=ie.findWordAt(Ln):Vt=new ao(tn(Ln.line,0),Li(ie.doc,tn(Ln.line+1,0))),ie.setSelection(Vt.anchor,Vt.head),ie.focus(),wi(gt)}ye()}),rn(ae.scroller,"touchcancel",ye),rn(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ac(ie,ae.scroller.scrollTop),au(ie,ae.scroller.scrollLeft,!0),mn(ie,"scroll",ie))}),rn(ae.scroller,"mousewheel",function(gt){return Sa(ie,gt)}),rn(ae.scroller,"DOMMouseScroll",function(gt){return Sa(ie,gt)}),rn(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(gt){ei(ie,gt)||rr(gt)},over:function(gt){ei(ie,gt)||(hf(ie,gt),rr(gt))},start:function(gt){return hh(ie,gt)},drop:Vn(ie,Hd),leave:function(gt){ei(ie,gt)||Hf(ie)}};var mt=ae.input.getField();rn(mt,"keyup",function(gt){return gg.call(ie,gt)}),rn(mt,"keydown",Vn(ie,hg)),rn(mt,"keypress",Vn(ie,Xc)),rn(mt,"focus",function(gt){return Oa(ie,gt)}),rn(mt,"blur",function(gt){return El(ie,gt)})}var Ud=[];As.defineInitHook=function(ie){return Ud.push(ie)};function iu(ie,ae,ge,fe){var ye=ie.doc,Re;ge==null&&(ge="add"),ge=="smart"&&(ye.mode.indent?Re=Cr(ie,ae).state:ge="prev");var Je=ie.options.tabSize,mt=en(ye,ae),gt=tt(mt.text,null,Je);mt.stateAfter&&(mt.stateAfter=null);var jt=mt.text.match(/^\s*/)[0],Ln;if(!fe&&!/\S/.test(mt.text))Ln=0,ge="not";else if(ge=="smart"&&(Ln=ye.mode.indent(Re,mt.text.slice(jt.length),mt.text),Ln==yn||Ln>150)){if(!fe)return;ge="prev"}ge=="prev"?ae>ye.first?Ln=tt(en(ye,ae-1).text,null,Je):Ln=0:ge=="add"?Ln=gt+ie.options.indentUnit:ge=="subtract"?Ln=gt-ie.options.indentUnit:typeof ge=="number"&&(Ln=gt+ge),Ln=Math.max(0,Ln);var Vt="",si=0;if(ie.options.indentWithTabs)for(var ii=Math.floor(Ln/Je);ii;--ii)si+=Je,Vt+=" ";if(siJe,gt=Sr(ae),jt=null;if(mt&&fe.ranges.length>1)if(Ru&&Ru.text.join(` `)==ae){if(fe.ranges.length%Ru.text.length==0){jt=[];for(var Ln=0;Ln=0;si--){var ii=fe.ranges[si],tr=ii.from(),dr=ii.to();ii.empty()&&(ge&&ge>0?tr=tn(tr.line,tr.ch-ge):ie.state.overwrite&&!mt?dr=tn(dr.line,Math.min(en(Re,dr.line).text.length,dr.ch+St(gt).length)):mt&&Ru&&Ru.lineWise&&Ru.text.join(` `)==gt.join(` `)&&(tr=dr=tn(tr.line,0)));var Mr={from:tr,to:dr,text:jt?jt[si%jt.length]:gt,origin:ye||(mt?"paste":ie.state.cutIncoming>Je?"cut":"+input")};$s(ie.doc,Mr),hr(ie,"inputRead",ie,Mr)}ae&&!mt&&Eg(ie,ae),oc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Vt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Cg(ie,ae){var ge=ie.clipboardData&&ie.clipboardData.getData("Text");if(ge)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&nn(ae,function(){return wh(ae,ge,0,null,"paste")}),!0}function Eg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ge=ie.doc.sel,fe=ge.ranges.length-1;fe>=0;fe--){var ye=ge.ranges[fe];if(!(ye.head.ch>100||fe&&ge.ranges[fe-1].head.line==ye.head.line)){var Re=ie.getModeAt(ye.head),Je=!1;if(Re.electricChars){for(var mt=0;mt-1){Je=iu(ie,ye.head.line,"smart");break}}else Re.electricInput&&Re.electricInput.test(en(ie.doc,ye.head.line).text.slice(0,ye.head.ch))&&(Je=iu(ie,ye.head.line,"smart"));Je&&hr(ie,"electricInput",ie,ye.head.line)}}}function bg(ie){for(var ae=[],ge=[],fe=0;feRe&&(iu(this,mt.head.line,fe,!0),Re=mt.head.line,Je==this.doc.sel.primIndex&&oc(this));else{var gt=mt.from(),jt=mt.to(),Ln=Math.max(Re,gt.line);Re=Math.min(this.lastLine(),jt.line-(jt.ch?0:1))+1;for(var Vt=Ln;Vt0&&Ms(this.doc,Je,new ao(gt,si[Je].to()),zt)}}}),getTokenAt:function(fe,ye){return er(this,fe,ye)},getLineTokens:function(fe,ye){return er(this,tn(fe),ye,!0)},getTokenTypeAt:function(fe){fe=Li(this.doc,fe);var ye=Xr(this,en(this.doc,fe.line)),Re=0,Je=(ye.length-1)/2,mt=fe.ch,gt;if(mt==0)gt=ye[2];else for(;;){var jt=Re+Je>>1;if((jt?ye[jt*2-1]:0)>=mt)Je=jt;else if(ye[jt*2+1]gt&&(fe=gt,Je=!0),mt=en(this.doc,fe)}else mt=fe;return Dr(this,mt,{top:0,left:0},ye||"page",Re||Je).top+(Je?this.doc.height-ro(mt):0)},defaultTextHeight:function(){return ur(this.display)},defaultCharWidth:function(){return Bi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(fe,ye,Re,Je,mt){var gt=this.display;fe=La(this,Li(this.doc,fe));var jt=fe.bottom,Ln=fe.left;if(ye.style.position="absolute",ye.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ye),gt.sizer.appendChild(ye),Je=="over")jt=fe.top;else if(Je=="above"||Je=="near"){var Vt=Math.max(gt.wrapper.clientHeight,this.doc.height),si=Math.max(gt.sizer.clientWidth,gt.lineSpace.clientWidth);(Je=="above"||fe.bottom+ye.offsetHeight>Vt)&&fe.top>ye.offsetHeight?jt=fe.top-ye.offsetHeight:fe.bottom+ye.offsetHeight<=Vt&&(jt=fe.bottom),Ln+ye.offsetWidth>si&&(Ln=si-ye.offsetWidth)}ye.style.top=jt+"px",ye.style.left=ye.style.right="",mt=="right"?(Ln=gt.sizer.clientWidth-ye.offsetWidth,ye.style.right="0px"):(mt=="left"?Ln=0:mt=="middle"&&(Ln=(gt.sizer.clientWidth-ye.offsetWidth)/2),ye.style.left=Ln+"px"),Re&&rc(this,{left:Ln,top:jt,right:Ln+ye.offsetWidth,bottom:jt+ye.offsetHeight})},triggerOnKeyDown:jn(hg),triggerOnKeyPress:jn(Xc),triggerOnKeyUp:gg,triggerOnMouseDown:jn(Jc),execCommand:function(fe){if(nu.hasOwnProperty(fe))return nu[fe].call(null,this)},triggerElectric:jn(function(fe){Eg(this,fe)}),findPosH:function(fe,ye,Re,Je){var mt=1;ye<0&&(mt=-1,ye=-ye);for(var gt=Li(this.doc,fe),jt=0;jt0&&Ln(Re.charAt(Je-1));)--Je;for(;mt.5||this.options.lineWrapping)&&fr(this),mn(this,"refresh",this)}),swapDoc:jn(function(fe){var ye=this.doc;return ye.cm=null,this.state.selectingText&&this.state.selectingText(),ba(this,fe),ya(this),this.display.input.reset(),vc(this,fe.scrollLeft,fe.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,ye),ye}),phrase:function(fe){var ye=this.options.phrases;return ye&&Object.prototype.hasOwnProperty.call(ye,fe)?ye[fe]:fe},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},bn(ie),ie.registerHelper=function(fe,ye,Re){ge.hasOwnProperty(fe)||(ge[fe]=ie[fe]={_global:[]}),ge[fe][ye]=Re},ie.registerGlobalHelper=function(fe,ye,Re,Je){ie.registerHelper(fe,ye,Je),ge[fe]._global.push({pred:Re,val:Je})}}function pf(ie,ae,ge,fe,ye){var Re=ae,Je=ge,mt=en(ie,ae.line),gt=ye&&ie.direction=="rtl"?-ge:ge;function jt(){var Zo=ae.line+gt;return Zo=ie.first+ie.size?!1:(ae=new tn(Zo,ae.ch,ae.sticky),mt=en(ie,Zo))}function Ln(Zo){var Bo;if(fe=="codepoint"){var ea=mt.text.charCodeAt(ae.ch+(fe>0?0:-1));isNaN(ea)?Bo=null:Bo=new tn(ae.line,Math.max(0,Math.min(mt.text.length,ae.ch+ge*(ea>=55296&&ea<56320?2:1))),-ge)}else ye?Bo=Js(ie.cm,mt,ae,ge):Bo=Ml(mt,ae,ge);if(Bo==null)if(!Zo&&jt())ae=gs(ye,ie.cm,mt,ae.line,gt);else return!1;else ae=Bo;return!0}if(fe=="char"||fe=="codepoint")Ln();else if(fe=="column")Ln(!0);else if(fe=="word"||fe=="group")for(var Vt=null,si=fe=="group",ii=ie.cm&&ie.cm.getHelper(ae,"wordChars"),tr=!0;!(ge<0&&!Ln(!tr));tr=!1){var dr=mt.text.charAt(ae.ch)||` `,Mr=Oe(dr,ii)?"w":si&&dr==` `?"n":!si||/\s/.test(dr)?null:"p";if(si&&!tr&&!Mr&&(Mr="s"),Vt&&Vt!=Mr){ge<0&&(ge=1,Ln(),ae.sticky="after");break}if(Mr&&(Vt=Mr),ge>0&&!Ln(!tr))break}var so=Iu(ie,ae,Re,Je,!0);return In(Re,so)&&(so.hitSide=!0),so}function Ld(ie,ae,ge,fe){var ye=ie.doc,Re=ae.left,Je;if(fe=="page"){var mt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),gt=Math.max(mt-.5*ur(ie.display),3);Je=(ge>0?ae.bottom:ae.top)+ge*gt}else fe=="line"&&(Je=ge>0?ae.bottom+3:ae.top-3);for(var jt;jt=Jt(ie,Re,Je),!!jt.outside;){if(ge<0?Je<=0:Je>=ye.height){jt.hitSide=!0;break}Je+=ge*5}return jt}var Ks=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ve,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ks.prototype.init=function(ie){var ae=this,ge=this,fe=ge.cm,ye=ge.div=ie.lineDiv;Fg(ye,fe.options.spellcheck,fe.options.autocorrect,fe.options.autocapitalize);function Re(mt){for(var gt=mt.target;gt;gt=gt.parentNode){if(gt==ye)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(gt.className))break}return!1}rn(ye,"paste",function(mt){!Re(mt)||ei(fe,mt)||Cg(mt,fe)||Ue<=11&&setTimeout(Vn(fe,function(){return ae.updateFromDOM()}),20)}),rn(ye,"compositionstart",function(mt){ae.composing={data:mt.data,done:!1}}),rn(ye,"compositionupdate",function(mt){ae.composing||(ae.composing={data:mt.data,done:!1})}),rn(ye,"compositionend",function(mt){ae.composing&&(mt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),rn(ye,"touchstart",function(){return ge.forceCompositionEnd()}),rn(ye,"input",function(){ae.composing||ae.readFromDOMSoon()});function Je(mt){if(!(!Re(mt)||ei(fe,mt))){if(fe.somethingSelected())Hh({lineWise:!1,text:fe.getSelections()}),mt.type=="cut"&&fe.replaceSelection("",null,"cut");else if(fe.options.lineWiseCopyCut){var gt=bg(fe);Hh({lineWise:!0,text:gt.text}),mt.type=="cut"&&fe.operation(function(){fe.setSelections(gt.ranges,0,zt),fe.replaceSelection("",null,"cut")})}else return;if(mt.clipboardData){mt.clipboardData.clearData();var jt=Ru.text.join(` `);if(mt.clipboardData.setData("Text",jt),mt.clipboardData.getData("Text")==jt){mt.preventDefault();return}}var Ln=Bg(),Vt=Ln.firstChild;fe.display.lineSpace.insertBefore(Ln,fe.display.lineSpace.firstChild),Vt.value=Ru.text.join(` `);var si=document.activeElement;Ot(Vt),setTimeout(function(){fe.display.lineSpace.removeChild(Ln),si.focus(),si==ye&&ge.showPrimarySelection()},50)}}rn(ye,"copy",Je),rn(ye,"cut",Je)},Ks.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Ks.prototype.prepareSelection=function(){var ie=kr(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Ks.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ks.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ge=ae.doc.sel.primary(),fe=ge.from(),ye=ge.to();if(ae.display.viewTo==ae.display.viewFrom||fe.line>=ae.display.viewTo||ye.line=ae.display.viewFrom&&Ch(ae,fe)||{node:mt[0].measure.map[2],offset:0},jt=ye.lineie.firstLine()&&(fe=tn(fe.line-1,en(ie.doc,fe.line-1).length)),ye.ch==en(ie.doc,ye.line).text.length&&ye.lineae.viewTo-1)return!1;var Re,Je,mt;fe.line==ae.viewFrom||(Re=vr(ie,fe.line))==0?(Je=Et(ae.view[0].line),mt=ae.view[0].node):(Je=Et(ae.view[Re].line),mt=ae.view[Re-1].node.nextSibling);var gt=vr(ie,ye.line),jt,Ln;if(gt==ae.view.length-1?(jt=ae.viewTo-1,Ln=ae.lineDiv.lastChild):(jt=Et(ae.view[gt+1].line)-1,Ln=ae.view[gt+1].node.previousSibling),!mt)return!1;for(var Vt=ie.doc.splitLines(Eh(ie,mt,Ln,Je,jt)),si=fn(ie.doc,tn(Je,0),tn(jt,en(ie.doc,jt).text.length));Vt.length>1&&si.length>1;)if(St(Vt)==St(si))Vt.pop(),si.pop(),jt--;else if(Vt[0]==si[0])Vt.shift(),si.shift(),Je++;else break;for(var ii=0,tr=0,dr=Vt[0],Mr=si[0],so=Math.min(dr.length,Mr.length);iife.ch&&Zo.charCodeAt(Zo.length-tr-1)==Bo.charCodeAt(Bo.length-tr-1);)ii--,tr++;Vt[Vt.length-1]=Zo.slice(0,Zo.length-tr).replace(/^\u200b+/,""),Vt[0]=Vt[0].slice(ii).replace(/\u200b+$/,"");var _a=tn(Je,ii),Mo=tn(jt,si.length?St(si).length-tr:0);if(Vt.length>1||Vt[0]||sn(_a,Mo))return Ku(ie.doc,Vt,_a,Mo,"+input"),!0},Ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ks.prototype.reset=function(){this.forceCompositionEnd()},Ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ks.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Ks.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&nn(this.cm,function(){return ji(ie.cm)})},Ks.prototype.setUneditable=function(ie){ie.contentEditable="false"},Ks.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Vn(this.cm,wh)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Ks.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Ks.prototype.onContextMenu=function(){},Ks.prototype.resetPosition=function(){},Ks.prototype.needsContentAttribute=!0;function Ch(ie,ae){var ge=ga(ie,ae.line);if(!ge||ge.hidden)return null;var fe=en(ie.doc,ae.line),ye=Mi(ge,fe,ae.line),Re=Sn(fe,ie.doc.direction),Je="left";if(Re){var mt=ft(Re,ae.ch);Je=mt%2?"right":"left"}var gt=No(ye.map,ae.ch,Je);return gt.offset=gt.collapse=="right"?gt.end:gt.start,gt}function Mg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Xd(ie,ae){return ae&&(ie.bad=!0),ie}function Eh(ie,ae,ge,fe,ye){var Re="",Je=!1,mt=ie.doc.lineSeparator(),gt=!1;function jt(ii){return function(tr){return tr.id==ii}}function Ln(){Je&&(Re+=mt,gt&&(Re+=mt),Je=gt=!1)}function Vt(ii){ii&&(Ln(),Re+=ii)}function si(ii){if(ii.nodeType==1){var tr=ii.getAttribute("cm-text");if(tr){Vt(tr);return}var dr=ii.getAttribute("cm-marker"),Mr;if(dr){var so=ie.findMarks(tn(fe,0),tn(ye+1,0),jt(+dr));so.length&&(Mr=so[0].find(0))&&Vt(fn(ie.doc,Mr.from,Mr.to).join(mt));return}if(ii.getAttribute("contenteditable")=="false")return;var Zo=/^(pre|div|p|li|table|br)$/i.test(ii.nodeName);if(!/^br$/i.test(ii.nodeName)&&ii.textContent.length==0)return;Zo&&Ln();for(var Bo=0;Bo=9&&ae.hasSelection&&(ae.hasSelection=null),ge.poll()}),rn(ye,"paste",function(Je){ei(fe,Je)||Cg(Je,fe)||(fe.state.pasteIncoming=+new Date,ge.fastPoll())});function Re(Je){if(!ei(fe,Je)){if(fe.somethingSelected())Hh({lineWise:!1,text:fe.getSelections()});else if(fe.options.lineWiseCopyCut){var mt=bg(fe);Hh({lineWise:!0,text:mt.text}),Je.type=="cut"?fe.setSelections(mt.ranges,null,zt):(ge.prevInput="",ye.value=mt.text.join(` `),Ot(ye))}else return;Je.type=="cut"&&(fe.state.cutIncoming=+new Date)}}rn(ye,"cut",Re),rn(ye,"copy",Re),rn(ie.scroller,"paste",function(Je){if(!(En(ie,Je)||ei(fe,Je))){if(!ye.dispatchEvent){fe.state.pasteIncoming=+new Date,ge.focus();return}var mt=new Event("paste");mt.clipboardData=Je.clipboardData,ye.dispatchEvent(mt)}}),rn(ie.lineSpace,"selectstart",function(Je){En(ie,Je)||wi(Je)}),rn(ye,"compositionstart",function(){var Je=fe.getCursor("from");ge.composing&&ge.composing.range.clear(),ge.composing={start:Je,range:fe.markText(Je,fe.getCursor("to"),{className:"CodeMirror-composing"})}}),rn(ye,"compositionend",function(){ge.composing&&(ge.poll(),ge.composing.range.clear(),ge.composing=null)})},Yl.prototype.createField=function(ie){this.wrapper=Bg(),this.textarea=this.wrapper.firstChild},Yl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Yl.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ge=ie.doc,fe=kr(ie);if(ie.options.moveInputWithCursor){var ye=La(ie,ge.sel.primary().head,"div"),Re=ae.wrapper.getBoundingClientRect(),Je=ae.lineDiv.getBoundingClientRect();fe.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,ye.top+Je.top-Re.top)),fe.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,ye.left+Je.left-Re.left))}return fe},Yl.prototype.showSelection=function(ie){var ae=this.cm,ge=ae.display;Xe(ge.cursorDiv,ie.cursors),Xe(ge.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Yl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ge=ae.getSelection();this.textarea.value=ge,ae.state.focused&&Ot(this.textarea),Ge&&Ue>=9&&(this.hasSelection=ge)}else ie||(this.prevInput=this.textarea.value="",Ge&&Ue>=9&&(this.hasSelection=null))}},Yl.prototype.getField=function(){return this.textarea},Yl.prototype.supportsTouch=function(){return!1},Yl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||ot()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Yl.prototype.blur=function(){this.textarea.blur()},Yl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yl.prototype.receivedFocus=function(){this.slowPoll()},Yl.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Yl.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ge(){var fe=ae.poll();!fe&&!ie?(ie=!0,ae.polling.set(60,ge)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ge)},Yl.prototype.poll=function(){var ie=this,ae=this.cm,ge=this.textarea,fe=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ne(ge)&&!fe&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var ye=ge.value;if(ye==fe&&!ae.somethingSelected())return!1;if(Ge&&Ue>=9&&this.hasSelection===ye||de&&/[\uf700-\uf7ff]/.test(ye))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Re=ye.charCodeAt(0);if(Re==8203&&!fe&&(fe="\u200B"),Re==8666)return this.reset(),this.cm.execCommand("undo")}for(var Je=0,mt=Math.min(fe.length,ye.length);Je1e3||ye.indexOf(` `)>-1?ge.value=ie.prevInput="":ie.prevInput=ye,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yl.prototype.onKeyPress=function(){Ge&&Ue>=9&&(this.hasSelection=null),this.fastPoll()},Yl.prototype.onContextMenu=function(ie){var ae=this,ge=ae.cm,fe=ge.display,ye=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Re=pr(ge,ie),Je=fe.scroller.scrollTop;if(!Re||$e)return;var mt=ge.options.resetSelectionOnContextMenu;mt&&ge.doc.sel.contains(Re)==-1&&Vn(ge,js)(ge.doc,Va(Re),zt);var gt=ye.style.cssText,jt=ae.wrapper.style.cssText,Ln=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",ye.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(ie.clientY-Ln.top-5)+"px; left: "+(ie.clientX-Ln.left-5)+`px; z-index: 1000; background: `+(Ge?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Vt;Me&&(Vt=window.scrollY),fe.input.focus(),Me&&window.scrollTo(null,Vt),fe.input.reset(),ge.somethingSelected()||(ye.value=ae.prevInput=" "),ae.contextMenuPending=ii,fe.selForContextMenu=ge.doc.sel,clearTimeout(fe.detectingSelectAll);function si(){if(ye.selectionStart!=null){var dr=ge.somethingSelected(),Mr="\u200B"+(dr?ye.value:"");ye.value="\u21DA",ye.value=Mr,ae.prevInput=dr?"":"\u200B",ye.selectionStart=1,ye.selectionEnd=Mr.length,fe.selForContextMenu=ge.doc.sel}}function ii(){if(ae.contextMenuPending==ii&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=jt,ye.style.cssText=gt,Ge&&Ue<9&&fe.scrollbars.setScrollTop(fe.scroller.scrollTop=Je),ye.selectionStart!=null)){(!Ge||Ge&&Ue<9)&&si();var dr=0,Mr=function(){fe.selForContextMenu==ge.doc.sel&&ye.selectionStart==0&&ye.selectionEnd>0&&ae.prevInput=="\u200B"?Vn(ge,Ns)(ge):dr++<10?fe.detectingSelectAll=setTimeout(Mr,500):(fe.selForContextMenu=null,fe.input.reset())};fe.detectingSelectAll=setTimeout(Mr,200)}}if(Ge&&Ue>=9&&si(),Be){rr(ie);var tr=function(){kn(window,"mouseup",tr),setTimeout(ii,20)};rn(window,"mouseup",tr)}else setTimeout(ii,50)},Yl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Yl.prototype.setUneditable=function(){},Yl.prototype.needsContentAttribute=!1;function rp(ie,ae){if(ae=ae?Dt(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ge=ot();ae.autofocus=ge==ie||ie.getAttribute("autofocus")!=null&&ge==document.body}function fe(){ie.value=mt.getValue()}var ye;if(ie.form&&(rn(ie.form,"submit",fe),!ae.leaveSubmitMethodAlone)){var Re=ie.form;ye=Re.submit;try{var Je=Re.submit=function(){fe(),Re.submit=ye,Re.submit(),Re.submit=Je}}catch(gt){}}ae.finishInit=function(gt){gt.save=fe,gt.getTextArea=function(){return ie},gt.toTextArea=function(){gt.toTextArea=isNaN,fe(),ie.parentNode.removeChild(gt.getWrapperElement()),ie.style.display="",ie.form&&(kn(ie.form,"submit",fe),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=ye))}},ie.style.display="none";var mt=As(function(gt){return ie.parentNode.insertBefore(gt,ie.nextSibling)},ae);return mt}function Jd(ie){ie.off=kn,ie.on=rn,ie.wheelEventPixels=ta,ie.Doc=Bl,ie.splitLines=Sr,ie.countColumn=tt,ie.findColumn=Gn,ie.isWordChar=Ae,ie.Pass=yn,ie.signal=mn,ie.Line=fa,ie.changeEnd=bs,ie.scrollbarModel=_d,ie.Pos=tn,ie.cmpPos=sn,ie.modes=Si,ie.mimeModes=Wi,ie.resolveMode=qn,ie.getMode=Zt,ie.modeExtensions=$t,ie.extendMode=Qe,ie.copyState=on,ie.startState=At,ie.innerMode=cn,ie.commands=nu,ie.keyMap=Pu,ie.keyName=mh,ie.isModifierKey=Uc,ie.lookupKey=ku,ie.normalizeKeyMap=_h,ie.StringStream=ht,ie.SharedTextMarker=Bc,ie.TextMarker=dn,ie.LineWidget=yl,ie.e_preventDefault=wi,ie.e_stopPropagation=Zi,ie.e_stop=rr,ie.addClass=Tt,ie.contains=Nt,ie.rmClass=ze,ie.keyNames=Mc}tp(As),Yd(As);var dd="iter insert remove copy getEditor constructor".split(" ");for(var bh in Bl.prototype)Bl.prototype.hasOwnProperty(bh)&&_t(dd,bh)<0&&(As.prototype[bh]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Bl.prototype[bh]));return bn(Bl),As.inputStyles={textarea:Yl,contenteditable:Ks},As.defineMode=function(ie){!As.defaults.mode&&ie!="null"&&(As.defaults.mode=ie),qi.apply(this,arguments)},As.defineMIME=$n,As.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),As.defineMIME("text/plain","null"),As.defineExtension=function(ie,ae){As.prototype[ie]=ae},As.defineDocExtension=function(ie,ae){Bl.prototype[ie]=ae},As.fromTextArea=rp,Jd(As),As.version="5.58.2",As})},25419:function(On,pn,pe){(function(le){le(pe(89780),pe(15525),pe(98101))})(function(le){"use strict";le.defineMode("markdown",function(ke,We){var ut=le.getMode(ke,"text/html"),Ge=ut.name=="null";function Ue(tt){if(le.findModeByName){var Ve=le.findModeByName(tt);Ve&&(tt=Ve.mime||Ve.mimes[0])}var _t=le.getMode(ke,tt);return _t.name=="null"?null:_t}We.highlightFormatting===void 0&&(We.highlightFormatting=!1),We.maxBlockquoteDepth===void 0&&(We.maxBlockquoteDepth=0),We.taskLists===void 0&&(We.taskLists=!1),We.strikethrough===void 0&&(We.strikethrough=!1),We.emoji===void 0&&(We.emoji=!1),We.fencedCodeBlockHighlighting===void 0&&(We.fencedCodeBlockHighlighting=!0),We.fencedCodeBlockDefaultMode===void 0&&(We.fencedCodeBlockDefaultMode="text/plain"),We.xml===void 0&&(We.xml=!0),We.tokenTypeOverrides===void 0&&(We.tokenTypeOverrides={});var Me={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 Ct in Me)Me.hasOwnProperty(Ct)&&We.tokenTypeOverrides[Ct]&&(Me[Ct]=We.tokenTypeOverrides[Ct]);var wt=/^([*\-_])(?:\s*\1){2,}\s*$/,$e=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ft=/^\[(x| )\](?=\s)/i,lt=We.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,vt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ie=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,de=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function he(tt,Ve,_t){return Ve.f=Ve.inline=_t,_t(tt,Ve)}function ve(tt,Ve,_t){return Ve.f=Ve.block=_t,_t(tt,Ve)}function Ee(tt){return!tt||!/\S/.test(tt.string)}function Be(tt){if(tt.linkTitle=!1,tt.linkHref=!1,tt.linkText=!1,tt.em=!1,tt.strong=!1,tt.strikethrough=!1,tt.quote=0,tt.indentedCode=!1,tt.f==ze){var Ve=Ge;if(!Ve){var _t=le.innerMode(ut,tt.htmlState);Ve=_t.mode.name=="xml"&&_t.state.tagStart===null&&!_t.state.context&&_t.state.tokenize.isInText}Ve&&(tt.f=dt,tt.block=Le,tt.htmlState=null)}return tt.trailingSpace=0,tt.trailingSpaceNewLine=!1,tt.prevLine=tt.thisLine,tt.thisLine={stream:null},null}function Le(tt,Ve){var _t=tt.column()===Ve.indentation,vn=Ee(Ve.prevLine.stream),yn=Ve.indentedCode,zt=Ve.prevLine.hr,qt=Ve.list!==!1,ln=(Ve.listStack[Ve.listStack.length-1]||0)+3;Ve.indentedCode=!1;var Gn=Ve.indentation;if(Ve.indentationDiff===null&&(Ve.indentationDiff=Ve.indentation,qt)){for(Ve.list=null;Gn=4&&(yn||Ve.prevLine.fencedCodeEnd||Ve.prevLine.header||vn))return tt.skipToEnd(),Ve.indentedCode=!0,Me.code;if(tt.eatSpace())return null;if(_t&&Ve.indentation<=ln&&(St=tt.match(lt))&&St[1].length<=6)return Ve.quote=0,Ve.header=St[1].length,Ve.thisLine.header=!0,We.highlightFormatting&&(Ve.formatting="header"),Ve.f=Ve.inline,Xe(Ve);if(Ve.indentation<=ln&&tt.eat(">"))return Ve.quote=_t?1:Ve.quote+1,We.highlightFormatting&&(Ve.formatting="quote"),tt.eatSpace(),Xe(Ve);if(!_n&&!Ve.setext&&_t&&Ve.indentation<=ln&&(St=tt.match($e))){var Zn=St[1]?"ol":"ul";return Ve.indentation=Gn+tt.current().length,Ve.list=!0,Ve.quote=0,Ve.listStack.push(Ve.indentation),Ve.em=!1,Ve.strong=!1,Ve.code=!1,Ve.strikethrough=!1,We.taskLists&&tt.match(Ft,!1)&&(Ve.taskList=!0),Ve.f=Ve.inline,We.highlightFormatting&&(Ve.formatting=["list","list-"+Zn]),Xe(Ve)}else{if(_t&&Ve.indentation<=ln&&(St=tt.match(te,!0)))return Ve.quote=0,Ve.fencedEndRE=new RegExp(St[1]+"+ *$"),Ve.localMode=We.fencedCodeBlockHighlighting&&Ue(St[2]||We.fencedCodeBlockDefaultMode),Ve.localMode&&(Ve.localState=le.startState(Ve.localMode)),Ve.f=Ve.block=je,We.highlightFormatting&&(Ve.formatting="code-block"),Ve.code=-1,Xe(Ve);if(Ve.setext||(!un||!qt)&&!Ve.quote&&Ve.list===!1&&!Ve.code&&!_n&&!ee.test(tt.string)&&(St=tt.lookAhead(1))&&(St=St.match(vt)))return Ve.setext?(Ve.header=Ve.setext,Ve.setext=0,tt.skipToEnd(),We.highlightFormatting&&(Ve.formatting="header")):(Ve.header=St[0].charAt(0)=="="?1:2,Ve.setext=Ve.header),Ve.thisLine.header=!0,Ve.f=Ve.inline,Xe(Ve);if(_n)return tt.skipToEnd(),Ve.hr=!0,Ve.thisLine.hr=!0,Me.hr;if(tt.peek()==="[")return he(tt,Ve,xt)}return he(tt,Ve,Ve.inline)}function ze(tt,Ve){var _t=ut.token(tt,Ve.htmlState);if(!Ge){var vn=le.innerMode(ut,Ve.htmlState);(vn.mode.name=="xml"&&vn.state.tagStart===null&&!vn.state.context&&vn.state.tokenize.isInText||Ve.md_inside&&tt.current().indexOf(">")>-1)&&(Ve.f=dt,Ve.block=Le,Ve.htmlState=null)}return _t}function je(tt,Ve){var _t=Ve.listStack[Ve.listStack.length-1]||0,vn=Ve.indentation<_t,yn=_t+3;if(Ve.fencedEndRE&&Ve.indentation<=yn&&(vn||tt.match(Ve.fencedEndRE))){We.highlightFormatting&&(Ve.formatting="code-block");var zt;return vn||(zt=Xe(Ve)),Ve.localMode=Ve.localState=null,Ve.block=Le,Ve.f=dt,Ve.fencedEndRE=null,Ve.code=0,Ve.thisLine.fencedCodeEnd=!0,vn?ve(tt,Ve,Ve.block):zt}else return Ve.localMode?Ve.localMode.token(tt,Ve.localState):(tt.skipToEnd(),Me.code)}function Xe(tt){var Ve=[];if(tt.formatting){Ve.push(Me.formatting),typeof tt.formatting=="string"&&(tt.formatting=[tt.formatting]);for(var _t=0;_t=tt.quote?Ve.push(Me.formatting+"-"+tt.formatting[_t]+"-"+tt.quote):Ve.push("error"))}if(tt.taskOpen)return Ve.push("meta"),Ve.length?Ve.join(" "):null;if(tt.taskClosed)return Ve.push("property"),Ve.length?Ve.join(" "):null;if(tt.linkHref?Ve.push(Me.linkHref,"url"):(tt.strong&&Ve.push(Me.strong),tt.em&&Ve.push(Me.em),tt.strikethrough&&Ve.push(Me.strikethrough),tt.emoji&&Ve.push(Me.emoji),tt.linkText&&Ve.push(Me.linkText),tt.code&&Ve.push(Me.code),tt.image&&Ve.push(Me.image),tt.imageAltText&&Ve.push(Me.imageAltText,"link"),tt.imageMarker&&Ve.push(Me.imageMarker)),tt.header&&Ve.push(Me.header,Me.header+"-"+tt.header),tt.quote&&(Ve.push(Me.quote),!We.maxBlockquoteDepth||We.maxBlockquoteDepth>=tt.quote?Ve.push(Me.quote+"-"+tt.quote):Ve.push(Me.quote+"-"+We.maxBlockquoteDepth)),tt.list!==!1){var vn=(tt.listStack.length-1)%3;vn?vn===1?Ve.push(Me.list2):Ve.push(Me.list3):Ve.push(Me.list1)}return tt.trailingSpaceNewLine?Ve.push("trailing-space-new-line"):tt.trailingSpace&&Ve.push("trailing-space-"+(tt.trailingSpace%2?"a":"b")),Ve.length?Ve.join(" "):null}function Ye(tt,Ve){if(tt.match(Ie,!0))return Xe(Ve)}function dt(tt,Ve){var _t=Ve.text(tt,Ve);if(typeof _t!="undefined")return _t;if(Ve.list)return Ve.list=null,Xe(Ve);if(Ve.taskList){var vn=tt.match(Ft,!0)[1]===" ";return vn?Ve.taskOpen=!0:Ve.taskClosed=!0,We.highlightFormatting&&(Ve.formatting="task"),Ve.taskList=!1,Xe(Ve)}if(Ve.taskOpen=!1,Ve.taskClosed=!1,Ve.header&&tt.match(/^#+$/,!0))return We.highlightFormatting&&(Ve.formatting="header"),Xe(Ve);var yn=tt.next();if(Ve.linkTitle){Ve.linkTitle=!1;var zt=yn;yn==="("&&(zt=")"),zt=(zt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qt="^\\s*(?:[^"+zt+"\\\\]+|\\\\\\\\|\\\\.)"+zt;if(tt.match(new RegExp(qt),!0))return Me.linkHref}if(yn==="`"){var ln=Ve.formatting;We.highlightFormatting&&(Ve.formatting="code"),tt.eatWhile("`");var Gn=tt.current().length;if(Ve.code==0&&(!Ve.quote||Gn==1))return Ve.code=Gn,Xe(Ve);if(Gn==Ve.code){var un=Xe(Ve);return Ve.code=0,un}else return Ve.formatting=ln,Xe(Ve)}else if(Ve.code)return Xe(Ve);if(yn==="\\"&&(tt.next(),We.highlightFormatting)){var _n=Xe(Ve),St=Me.formatting+"-escape";return _n?_n+" "+St:St}if(yn==="!"&&tt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ve.imageMarker=!0,Ve.image=!0,We.highlightFormatting&&(Ve.formatting="image"),Xe(Ve);if(yn==="["&&Ve.imageMarker&&tt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ve.imageMarker=!1,Ve.imageAltText=!0,We.highlightFormatting&&(Ve.formatting="image"),Xe(Ve);if(yn==="]"&&Ve.imageAltText){We.highlightFormatting&&(Ve.formatting="image");var _n=Xe(Ve);return Ve.imageAltText=!1,Ve.image=!1,Ve.inline=Ve.f=Nt,_n}if(yn==="["&&!Ve.image)return Ve.linkText&&tt.match(/^.*?\]/)||(Ve.linkText=!0,We.highlightFormatting&&(Ve.formatting="link")),Xe(Ve);if(yn==="]"&&Ve.linkText){We.highlightFormatting&&(Ve.formatting="link");var _n=Xe(Ve);return Ve.linkText=!1,Ve.inline=Ve.f=tt.match(/\(.*?\)| ?\[.*?\]/,!1)?Nt:dt,_n}if(yn==="<"&&tt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=He,We.highlightFormatting&&(Ve.formatting="link");var _n=Xe(Ve);return _n?_n+=" ":_n="",_n+Me.linkInline}if(yn==="<"&&tt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=He,We.highlightFormatting&&(Ve.formatting="link");var _n=Xe(Ve);return _n?_n+=" ":_n="",_n+Me.linkEmail}if(We.xml&&yn==="<"&&tt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Zn=tt.string.indexOf(">",tt.pos);if(Zn!=-1){var ci=tt.string.substring(tt.start,Zn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ci)&&(Ve.md_inside=!0)}return tt.backUp(1),Ve.htmlState=le.startState(ut),ve(tt,Ve,ze)}if(We.xml&&yn==="<"&&tt.match(/^\/\w*?>/))return Ve.md_inside=!1,"tag";if(yn==="*"||yn==="_"){for(var Ze=1,be=tt.pos==1?" ":tt.string.charAt(tt.pos-2);Ze<3&&tt.eat(yn);)Ze++;var Pe=tt.peek()||" ",Ae=!/\s/.test(Pe)&&(!de.test(Pe)||/\s/.test(be)||de.test(be)),Oe=!/\s/.test(be)&&(!de.test(be)||/\s/.test(Pe)||de.test(Pe)),xe=null,ct=null;if(Ze%2&&(!Ve.em&&Ae&&(yn==="*"||!Oe||de.test(be))?xe=!0:Ve.em==yn&&Oe&&(yn==="*"||!Ae||de.test(Pe))&&(xe=!1)),Ze>1&&(!Ve.strong&&Ae&&(yn==="*"||!Oe||de.test(be))?ct=!0:Ve.strong==yn&&Oe&&(yn==="*"||!Ae||de.test(Pe))&&(ct=!1)),ct!=null||xe!=null){We.highlightFormatting&&(Ve.formatting=xe==null?"strong":ct==null?"em":"strong em"),xe===!0&&(Ve.em=yn),ct===!0&&(Ve.strong=yn);var un=Xe(Ve);return xe===!1&&(Ve.em=!1),ct===!1&&(Ve.strong=!1),un}}else if(yn===" "&&(tt.eat("*")||tt.eat("_"))){if(tt.peek()===" ")return Xe(Ve);tt.backUp(1)}if(We.strikethrough){if(yn==="~"&&tt.eatWhile(yn)){if(Ve.strikethrough){We.highlightFormatting&&(Ve.formatting="strikethrough");var un=Xe(Ve);return Ve.strikethrough=!1,un}else if(tt.match(/^[^\s]/,!1))return Ve.strikethrough=!0,We.highlightFormatting&&(Ve.formatting="strikethrough"),Xe(Ve)}else if(yn===" "&&tt.match(/^~~/,!0)){if(tt.peek()===" ")return Xe(Ve);tt.backUp(2)}}if(We.emoji&&yn===":"&&tt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ve.emoji=!0,We.highlightFormatting&&(Ve.formatting="emoji");var Mt=Xe(Ve);return Ve.emoji=!1,Mt}return yn===" "&&(tt.match(/^ +$/,!1)?Ve.trailingSpace++:Ve.trailingSpace&&(Ve.trailingSpaceNewLine=!0)),Xe(Ve)}function He(tt,Ve){var _t=tt.next();if(_t===">"){Ve.f=Ve.inline=dt,We.highlightFormatting&&(Ve.formatting="link");var vn=Xe(Ve);return vn?vn+=" ":vn="",vn+Me.linkInline}return tt.match(/^[^>]+/,!0),Me.linkInline}function Nt(tt,Ve){if(tt.eatSpace())return null;var _t=tt.next();return _t==="("||_t==="["?(Ve.f=Ve.inline=Tt(_t==="("?")":"]"),We.highlightFormatting&&(Ve.formatting="link-string"),Ve.linkHref=!0,Xe(Ve)):"error"}var ot={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Tt(tt){return function(Ve,_t){var vn=Ve.next();if(vn===tt){_t.f=_t.inline=dt,We.highlightFormatting&&(_t.formatting="link-string");var yn=Xe(_t);return _t.linkHref=!1,yn}return Ve.match(ot[tt]),_t.linkHref=!0,Xe(_t)}}function xt(tt,Ve){return tt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ve.f=Ot,tt.next(),We.highlightFormatting&&(Ve.formatting="link"),Ve.linkText=!0,Xe(Ve)):he(tt,Ve,dt)}function Ot(tt,Ve){if(tt.match(/^\]:/,!0)){Ve.f=Ve.inline=Wt,We.highlightFormatting&&(Ve.formatting="link");var _t=Xe(Ve);return Ve.linkText=!1,_t}return tt.match(/^([^\]\\]|\\.)+/,!0),Me.linkText}function Wt(tt,Ve){return tt.eatSpace()?null:(tt.match(/^[^\s]+/,!0),tt.peek()===void 0?Ve.linkTitle=!0:tt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ve.f=Ve.inline=dt,Me.linkHref+" url")}var Dt={startState:function(){return{f:Le,prevLine:{stream:null},thisLine:{stream:null},block:Le,htmlState:null,indentation:0,inline:dt,text:Ye,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(tt){return{f:tt.f,prevLine:tt.prevLine,thisLine:tt.thisLine,block:tt.block,htmlState:tt.htmlState&&le.copyState(ut,tt.htmlState),indentation:tt.indentation,localMode:tt.localMode,localState:tt.localMode?le.copyState(tt.localMode,tt.localState):null,inline:tt.inline,text:tt.text,formatting:!1,linkText:tt.linkText,linkTitle:tt.linkTitle,linkHref:tt.linkHref,code:tt.code,em:tt.em,strong:tt.strong,strikethrough:tt.strikethrough,emoji:tt.emoji,header:tt.header,setext:tt.setext,hr:tt.hr,taskList:tt.taskList,list:tt.list,listStack:tt.listStack.slice(0),quote:tt.quote,indentedCode:tt.indentedCode,trailingSpace:tt.trailingSpace,trailingSpaceNewLine:tt.trailingSpaceNewLine,md_inside:tt.md_inside,fencedEndRE:tt.fencedEndRE}},token:function(tt,Ve){if(Ve.formatting=!1,tt!=Ve.thisLine.stream){if(Ve.header=0,Ve.hr=!1,tt.match(/^\s*$/,!0))return Be(Ve),null;if(Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:tt},Ve.taskList=!1,Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,!Ve.localState&&(Ve.f=Ve.block,Ve.f!=ze)){var _t=tt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Ve.indentation=_t,Ve.indentationDiff=null,_t>0)return null}}return Ve.f(tt,Ve)},innerMode:function(tt){return tt.block==ze?{state:tt.htmlState,mode:ut}:tt.localState?{state:tt.localState,mode:tt.localMode}:{state:tt,mode:Dt}},indent:function(tt,Ve,_t){return tt.block==ze&&ut.indent?ut.indent(tt.htmlState,Ve,_t):tt.localState&&tt.localMode.indent?tt.localMode.indent(tt.localState,Ve,_t):le.Pass},blankLine:Be,getType:Xe,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Dt},"xml"),le.defineMIME("text/markdown","markdown"),le.defineMIME("text/x-markdown","markdown")})},98101:function(On,pn,pe){(function(le){le(pe(89780))})(function(le){"use strict";le.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 ke=0;ke-1&&ut.substring(Me+1,ut.length);if(Ct)return le.findModeByExtension(Ct)},le.findModeByName=function(ut){ut=ut.toLowerCase();for(var Ge=0;Ge0?Ie.cmdState[Ie.cmdState.length-1]:null}function Ue(Ie){var te=Ie.cmdState.pop();te&&te.closeBracket()}function Me(Ie){for(var te=Ie.cmdState,ee=te.length-1;ee>=0;ee--){var de=te[ee];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function Ct(Ie,te,ee){return function(){this.name=Ie,this.bracketNo=0,this.style=te,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var wt={};wt.importmodule=Ct("importmodule","tag",["string","builtin"]),wt.documentclass=Ct("documentclass","tag",["","atom"]),wt.usepackage=Ct("usepackage","tag",["atom"]),wt.begin=Ct("begin","tag",["atom"]),wt.end=Ct("end","tag",["atom"]),wt.label=Ct("label","tag",["atom"]),wt.ref=Ct("ref","tag",["atom"]),wt.eqref=Ct("eqref","tag",["atom"]),wt.cite=Ct("cite","tag",["atom"]),wt.bibitem=Ct("bibitem","tag",["atom"]),wt.Bibitem=Ct("Bibitem","tag",["atom"]),wt.RBibitem=Ct("RBibitem","tag",["atom"]),wt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function $e(Ie,te){Ie.f=te}function Ft(Ie,te){var ee;if(Ie.match(/^\\[a-zA-Z@]+/)){var de=Ie.current().slice(1);return ee=wt.hasOwnProperty(de)?wt[de]:wt.DEFAULT,ee=new ee,ut(te,ee),$e(te,vt),ee.style}if(Ie.match(/^\\[$&%#{}_]/)||Ie.match(/^\\[,;!\/\\]/))return"tag";if(Ie.match("\\["))return $e(te,function(he,ve){return lt(he,ve,"\\]")}),"keyword";if(Ie.match("\\("))return $e(te,function(he,ve){return lt(he,ve,"\\)")}),"keyword";if(Ie.match("$$"))return $e(te,function(he,ve){return lt(he,ve,"$$")}),"keyword";if(Ie.match("$"))return $e(te,function(he,ve){return lt(he,ve,"$")}),"keyword";var se=Ie.next();if(se=="%")return Ie.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ee=Ge(te),ee)ee.closeBracket(se),$e(te,vt);else return"error";return"bracket"}else return se=="{"||se=="["?(ee=wt.DEFAULT,ee=new ee,ut(te,ee),"bracket"):/\d/.test(se)?(Ie.eatWhile(/[\w.%]/),"atom"):(Ie.eatWhile(/[\w\-_]/),ee=Me(te),ee.name=="begin"&&(ee.argument=Ie.current()),ee.styleIdentifier())}function lt(Ie,te,ee){if(Ie.eatSpace())return null;if(ee&&Ie.match(ee))return $e(te,Ft),"keyword";if(Ie.match(/^\\[a-zA-Z@]+/))return"tag";if(Ie.match(/^[a-zA-Z]+/))return"variable-2";if(Ie.match(/^\\[$&%#{}_]/)||Ie.match(/^\\[,;!\/]/)||Ie.match(/^[\^_&]/))return"tag";if(Ie.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ie.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Ie.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Ie.skipToEnd(),"comment"):"error"}function vt(Ie,te){var ee=Ie.peek(),de;return ee=="{"||ee=="["?(de=Ge(te),de.openBracket(ee),Ie.eat(ee),$e(te,Ft),"bracket"):/[ \t\r]/.test(ee)?(Ie.eat(ee),null):($e(te,Ft),Ue(te),Ft(Ie,te))}return{startState:function(){var Ie=We.inMathMode?function(te,ee){return lt(te,ee)}:Ft;return{cmdState:[],f:Ie}},copyState:function(Ie){return{cmdState:Ie.cmdState.slice(),f:Ie.f}},token:function(Ie,te){return te.f(Ie,te)},blankLine:function(Ie){Ie.f=Ft,Ie.cmdState.length=0},lineComment:"%"}}),le.defineMIME("text/x-stex","stex"),le.defineMIME("text/x-latex","stex")})},15525:function(On,pn,pe){(function(le){le(pe(89780))})(function(le){"use strict";var ke={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},We={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};le.defineMode("xml",function(ut,Ge){var Ue=ut.indentUnit,Me={},Ct=Ge.htmlMode?ke:We;for(var wt in Ct)Me[wt]=Ct[wt];for(var wt in Ge)Me[wt]=Ge[wt];var $e,Ft;function lt(He,Nt){function ot(Ot){return Nt.tokenize=Ot,Ot(He,Nt)}var Tt=He.next();if(Tt=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?ot(te("atom","]]>")):null:He.match("--")?ot(te("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),ot(ee(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),Nt.tokenize=te("meta","?>"),"meta"):($e=He.eat("/")?"closeTag":"openTag",Nt.tokenize=vt,"tag bracket");if(Tt=="&"){var xt;return He.eat("#")?He.eat("x")?xt=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):xt=He.eatWhile(/[\d]/)&&He.eat(";"):xt=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),xt?"atom":"error"}else return He.eatWhile(/[^&<]/),null}lt.isInText=!0;function vt(He,Nt){var ot=He.next();if(ot==">"||ot=="/"&&He.eat(">"))return Nt.tokenize=lt,$e=ot==">"?"endTag":"selfcloseTag","tag bracket";if(ot=="=")return $e="equals",null;if(ot=="<"){Nt.tokenize=lt,Nt.state=ve,Nt.tagName=Nt.tagStart=null;var Tt=Nt.tokenize(He,Nt);return Tt?Tt+" tag error":"tag error"}else return/[\'\"]/.test(ot)?(Nt.tokenize=Ie(ot),Nt.stringStartCol=He.column(),Nt.tokenize(He,Nt)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ie(He){var Nt=function(ot,Tt){for(;!ot.eol();)if(ot.next()==He){Tt.tokenize=vt;break}return"string"};return Nt.isInAttribute=!0,Nt}function te(He,Nt){return function(ot,Tt){for(;!ot.eol();){if(ot.match(Nt)){Tt.tokenize=lt;break}ot.next()}return He}}function ee(He){return function(Nt,ot){for(var Tt;(Tt=Nt.next())!=null;){if(Tt=="<")return ot.tokenize=ee(He+1),ot.tokenize(Nt,ot);if(Tt==">")if(He==1){ot.tokenize=lt;break}else return ot.tokenize=ee(He-1),ot.tokenize(Nt,ot)}return"meta"}}function de(He,Nt,ot){this.prev=He.context,this.tagName=Nt,this.indent=He.indented,this.startOfLine=ot,(Me.doNotIndent.hasOwnProperty(Nt)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function se(He){He.context&&(He.context=He.context.prev)}function he(He,Nt){for(var ot;;){if(!He.context||(ot=He.context.tagName,!Me.contextGrabbers.hasOwnProperty(ot)||!Me.contextGrabbers[ot].hasOwnProperty(Nt)))return;se(He)}}function ve(He,Nt,ot){return He=="openTag"?(ot.tagStart=Nt.column(),Ee):He=="closeTag"?Be:ve}function Ee(He,Nt,ot){return He=="word"?(ot.tagName=Nt.current(),Ft="tag",je):Me.allowMissingTagName&&He=="endTag"?(Ft="tag bracket",je(He,Nt,ot)):(Ft="error",Ee)}function Be(He,Nt,ot){if(He=="word"){var Tt=Nt.current();return ot.context&&ot.context.tagName!=Tt&&Me.implicitlyClosed.hasOwnProperty(ot.context.tagName)&&se(ot),ot.context&&ot.context.tagName==Tt||Me.matchClosing===!1?(Ft="tag",Le):(Ft="tag error",ze)}else return Me.allowMissingTagName&&He=="endTag"?(Ft="tag bracket",Le(He,Nt,ot)):(Ft="error",ze)}function Le(He,Nt,ot){return He!="endTag"?(Ft="error",Le):(se(ot),ve)}function ze(He,Nt,ot){return Ft="error",Le(He,Nt,ot)}function je(He,Nt,ot){if(He=="word")return Ft="attribute",Xe;if(He=="endTag"||He=="selfcloseTag"){var Tt=ot.tagName,xt=ot.tagStart;return ot.tagName=ot.tagStart=null,He=="selfcloseTag"||Me.autoSelfClosers.hasOwnProperty(Tt)?he(ot,Tt):(he(ot,Tt),ot.context=new de(ot,Tt,xt==ot.indented)),ve}return Ft="error",je}function Xe(He,Nt,ot){return He=="equals"?Ye:(Me.allowMissing||(Ft="error"),je(He,Nt,ot))}function Ye(He,Nt,ot){return He=="string"?dt:He=="word"&&Me.allowUnquoted?(Ft="string",je):(Ft="error",je(He,Nt,ot))}function dt(He,Nt,ot){return He=="string"?dt:je(He,Nt,ot)}return{startState:function(He){var Nt={tokenize:lt,state:ve,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(Nt.baseIndent=He),Nt},token:function(He,Nt){if(!Nt.tagName&&He.sol()&&(Nt.indented=He.indentation()),He.eatSpace())return null;$e=null;var ot=Nt.tokenize(He,Nt);return(ot||$e)&&ot!="comment"&&(Ft=null,Nt.state=Nt.state($e||ot,He,Nt),Ft&&(ot=Ft=="error"?ot+" error":Ft)),ot},indent:function(He,Nt,ot){var Tt=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+Ue;if(Tt&&Tt.noIndent)return le.Pass;if(He.tokenize!=vt&&He.tokenize!=lt)return ot?ot.match(/^(\s*)/)[0].length:0;if(He.tagName)return Me.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+Ue*(Me.multilineTagIndentFactor||1);if(Me.alignCDATA&&/$/,blockCommentStart:"",configuration:Me.htmlMode?"html":"xml",helperType:Me.htmlMode?"html":"xml",skipAttribute:function(He){He.state==Ye&&(He.state=je)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var Nt=[],ot=He.context;ot;ot=ot.prev)ot.tagName&&Nt.push(ot.tagName);return Nt.reverse()}}}),le.defineMIME("text/xml","xml"),le.defineMIME("application/xml","xml"),le.mimeModes.hasOwnProperty("text/html")||le.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(On,pn,pe){"use strict";pe.d(pn,{$u:function(){return wt},BD:function(){return Ze},E9:function(){return Ct},FF:function(){return xi},FJ:function(){return ve},Hn:function(){return he},KX:function(){return Be},NB:function(){return Lt},S0:function(){return St},UL:function(){return $e},Vk:function(){return se},Vm:function(){return ft},YI:function(){return Zn},ZA:function(){return We},Zt:function(){return Ft},al:function(){return xe},bn:function(){return Oe},bx:function(){return be},g2:function(){return ci},h1:function(){return Ye},hD:function(){return bn},l4:function(){return Ue},rU:function(){return Bt},s_:function(){return Pe},uz:function(){return qe},z6:function(){return lt}}),On=pe.hmd(On),function(){var Ne;function Ci(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):Et("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Di(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Et("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function vi(){var a=Cr.pop();return a===void 0?[]:a}function Ti(a){a.length=0,Cr.push(a)}function Li(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(tn(a)&&a.constructor)return Li(a.constructor);return typeof a}function sr(a){var y=a;return tn(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 Zr(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 Vr(a,y,x){Object.defineProperty(jo.prototype,a,{get:y,set:x})}function Tn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ne=0;ne-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 Po=ht.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==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)},Yr.prototype.Ad=function(){return this.next()},Yr.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},Yr.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},Yr.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},Yr.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},Yr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Un,a.s=x,a.xb(),a.iterator},Yr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Un,a.s=x,a.xb(),a.iterator},Yr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Yr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Qe.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="ListIteratorBackwards";function Un(a){Ao(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ne=Un.prototype,Ne.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Kn(a,"0 <= i < length",Un,"elt:i"),y[a]},Ne.get=function(a){return this.M(a)},Ne.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",Un,"setElt:i"),this._isFrozen&&wn(this,a),x[a]=y},Ne.set=function(a,y){this.cd(a,y)},Ne.first=function(){var a=this.s;return a.length===0?null:a[0]},Ne.jc=function(){var a=this.s,y=a.length;return 0a&&Kn(a,">= 0",Un,"insertAt:i"),this._isFrozen&&wn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ne.remove=function(a){if(a===null)return!1;this._isFrozen&&wn(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)},Ne.delete=function(a){return this.remove(a)},Ne.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Un,"removeAt:i"),this._isFrozen&&wn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ne.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&wn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Kn(y,"0 <= from < length",Un,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return Ur;var a=this.Sa;return a!==null?(a.reset(),a):new Tr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ur;var a=this.Hg;return a!==null?(a.reset(),a):new Yr(this)}}}),Un.prototype.reverse=Un.prototype.reverse,Un.prototype.sortRange=Un.prototype.zi,Un.prototype.sort=Un.prototype.sort,Un.prototype.toSet=Un.prototype.Iv,Un.prototype.toArray=Un.prototype.Fa,Un.prototype.removeRange=Un.prototype.removeRange,Un.prototype.removeAt=Un.prototype.mb,Un.prototype.delete=Un.prototype.delete,Un.prototype.remove=Un.prototype.remove,Un.prototype.insertAt=Un.prototype.Gb,Un.prototype.pop=Un.prototype.pop,Un.prototype.last=Un.prototype.jc,Un.prototype.first=Un.prototype.first,Un.prototype.set=Un.prototype.set,Un.prototype.setElt=Un.prototype.cd,Un.prototype.get=Un.prototype.get,Un.prototype.elt=Un.prototype.M,Un.prototype.indexOf=Un.prototype.indexOf,Un.prototype.has=Un.prototype.has,Un.prototype.contains=Un.prototype.contains,Un.prototype.clear=Un.prototype.clear,Un.prototype.addAll=Un.prototype.addAll,Un.prototype.push=Un.prototype.push,Un.prototype.add=Un.prototype.add,Un.prototype.thaw=Un.prototype.ka,Un.prototype.freeze=Un.prototype.freeze,Un.className="List";function Ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ho.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Ho.prototype.Ad=function(){return this.next()},Ho.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Ho.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ho.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ho.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Un;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Un;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Qe.Object.defineProperties(Ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ho.prototype.first=Ho.prototype.first,Ho.prototype.hasNext=Ho.prototype.Ad,Ho.prototype.next=Ho.prototype.next,Ho.prototype.reset=Ho.prototype.reset,Ho.className="SetIterator";function Yn(a){Ao(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ne=Yn.prototype,Ne.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return Ur;var a=this.Sa;return a!==null?(a.reset(),a):new Ho(this)}}}),Yn.prototype.toList=Yn.prototype.Hv,Yn.prototype.toArray=Yn.prototype.Fa,Yn.prototype.clear=Yn.prototype.clear,Yn.prototype.retainAll=Yn.prototype.pA,Yn.prototype.removeAll=Yn.prototype.hp,Yn.prototype.delete=Yn.prototype.delete,Yn.prototype.remove=Yn.prototype.remove,Yn.prototype.first=Yn.prototype.first,Yn.prototype.containsAny=Yn.prototype.Ty,Yn.prototype.containsAll=Yn.prototype.Sy,Yn.prototype.has=Yn.prototype.has,Yn.prototype.contains=Yn.prototype.contains,Yn.prototype.addAll=Yn.prototype.addAll,Yn.prototype.add=Yn.prototype.add,Yn.prototype.thaw=Yn.prototype.ka,Yn.prototype.freeze=Yn.prototype.freeze;var qo=1;Yn.className="Set",Yn.uniqueHash=Ao,Yn.hashIdUnique=Qo,Yn.hashId=nr;function Go(a){this.ma=a,this.qa=a.Ja,this.sa=null}Go.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Go.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)},Go.prototype.Ad=function(){return this.next()},Go.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},Go.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},Go.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},Go.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},Go.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Un;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Go.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Un;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Go.prototype.de=function(){this.value=this.key=null,this.qa=-1},Go.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Qe.Object.defineProperties(Go.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Go.prototype.first=Go.prototype.first,Go.prototype.hasNext=Go.prototype.Ad,Go.prototype.next=Go.prototype.next,Go.prototype.reset=Go.prototype.reset,Go.className="MapKeySetIterator";function Lr(a){Yn.call(this),Ao(this),this._isFrozen=!0,this.ma=a}$t(Lr,Yn),Ne=Lr.prototype,Ne.freeze=function(){return this},Ne.ka=function(){return this},Ne.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ne.add=function(){Et("This Set is read-only: "+this.toString())},Ne.contains=function(a){return this.ma.contains(a)},Ne.has=function(a){return this.contains(a)},Ne.remove=function(){Et("This Set is read-only: "+this.toString())},Ne.delete=function(a){return this.remove(a)},Ne.clear=function(){Et("This Set is read-only: "+this.toString())},Ne.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Lr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Lr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Lr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Lr.prototype.map=function(a){for(var y=new Yn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Lr.prototype.filter=function(a){for(var y=new Yn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Lr.prototype.copy=function(){return new Lr(this.ma)},Lr.prototype.Iv=function(){var a=new Yn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Lr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Lr.prototype.Hv=function(){var a=new Un,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Qe.Object.defineProperties(Lr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ur:new Go(this.ma)}}}),Lr.prototype.toList=Lr.prototype.Hv,Lr.prototype.toArray=Lr.prototype.Fa,Lr.prototype.toSet=Lr.prototype.Iv,Lr.prototype.first=Lr.prototype.first,Lr.prototype.clear=Lr.prototype.clear,Lr.prototype.delete=Lr.prototype.delete,Lr.prototype.remove=Lr.prototype.remove,Lr.prototype.has=Lr.prototype.has,Lr.prototype.contains=Lr.prototype.contains,Lr.prototype.add=Lr.prototype.add,Lr.prototype.thaw=Lr.prototype.ka,Lr.prototype.freeze=Lr.prototype.freeze,Lr.className="MapKeySet";function br(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}br.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},br.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)},br.prototype.Ad=function(){return this.next()},br.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},br.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},br.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},br.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},br.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Un;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},br.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Un;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},br.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},br.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Qe.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="MapValueSetIterator";function mo(a,y){this.key=a,this.value=y,this.ll=this.va=null}mo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},mo.className="KeyValuePair";function Yo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Yo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Yo.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)},Yo.prototype.Ad=function(){return this.next()},Yo.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},Yo.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},Yo.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},Yo.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},Yo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Un;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Yo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Un;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Yo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Yo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Qe.Object.defineProperties(Yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Yo.prototype.first=Yo.prototype.first,Yo.prototype.hasNext=Yo.prototype.Ad,Yo.prototype.next=Yo.prototype.next,Yo.prototype.reset=Yo.prototype.reset,Yo.className="MapIterator";function Ki(a){Ao(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"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ne=Ki.prototype,Ne.xb=function(){var a=this.Ja;a++,999999999=this.count)return Ur;var a=this.Sa;return a!==null?(a.reset(),a):new Yo(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ur:new Go(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ur;var a=this.jf;return a!==null?(a.reset(),a):new br(this)}}}),Ki.prototype.toKeySet=Ki.prototype.Lf,Ki.prototype.toArray=Ki.prototype.Fa,Ki.prototype.clear=Ki.prototype.clear,Ki.prototype.delete=Ki.prototype.delete,Ki.prototype.remove=Ki.prototype.remove,Ki.prototype.get=Ki.prototype.get,Ki.prototype.getValue=Ki.prototype.I,Ki.prototype.has=Ki.prototype.has,Ki.prototype.contains=Ki.prototype.contains,Ki.prototype.first=Ki.prototype.first,Ki.prototype.addAll=Ki.prototype.addAll,Ki.prototype.set=Ki.prototype.set,Ki.prototype.add=Ki.prototype.add,Ki.prototype.thaw=Ki.prototype.ka,Ki.prototype.freeze=Ki.prototype.freeze,Ki.className="Map";function st(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Et("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var sa,va,Ma,hs,Ga;st.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},st.prototype.h=function(a,y){return this.x=a,this.y=y,this},st.prototype.sg=function(a,y){return this.x=a,this.y=y,this},st.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},st.prototype.copy=function(){var a=new st;return a.x=this.x,a.y=this.y,a},Ne=st.prototype,Ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new st(x,b)}return new st}function po(a){return a.x.toString()+" "+a.y.toString()}Ne.toString=function(){return"Point("+this.x+","+this.y+")"},Ne.D=function(a){return a instanceof st?this.x===a.x&&this.y===a.y:!1},Ne.hi=function(a,y){return this.x===a&&this.y===y},Ne.Xa=function(a){return nt.B(this.x,a.x)&&nt.B(this.y,a.y)},Ne.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ne.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ne.offset=function(a,y){return this.x+=a,this.y+=y,this},st.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ne=st.prototype,Ne.scale=function(a,y){return this.x*=a,this.y*=y,this},Ne.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ne.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ne.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}Ne.Ry=function(a,y){return nt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ne.fA=function(a,y,x,E){return nt.qh(a,y,x,E,this.x,this.y,this),this},Ne.gA=function(a,y){return nt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ne.uA=function(a,y,x,E){return nt.No(this.x,this.y,a,y,x,E,this),this},Ne.vA=function(a,y){return nt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ne.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},Ne.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ne.transform=function(a){return a.Ga(this),this};function Eo(a,y){return y.Cd(a),a}function Na(a,y,x,E,b,z){var ne=b-x,re=z-E,oe=ne*ne+re*re;x-=a,E-=y;var ue=-x*ne-E*re;return 0>=ue||ue>=oe?(ne=b-a,re=z-y,Math.min(x*x+E*E,ne*ne+re*re)):(a=ne*E-re*x,a*a/oe)}function os(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function xo(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ne.w=function(){return isFinite(this.x)&&isFinite(this.y)},st.alloc=function(){var a=Qr.pop();return a===void 0?new st:a},st.allocAt=function(a,y){var x=Qr.pop();return x===void 0?new st(a,y):(x.x=a,x.y=y,x)},st.free=function(a){Qr.push(a)},st.prototype.isReal=st.prototype.w,st.prototype.setSpot=st.prototype.yi,st.prototype.setRectSpot=st.prototype.xi,st.prototype.snapToGridPoint=st.prototype.vA,st.prototype.snapToGrid=st.prototype.uA,st.prototype.projectOntoLineSegmentPoint=st.prototype.gA,st.prototype.projectOntoLineSegment=st.prototype.fA,st.intersectingLineSegments=function(a,y,x,E,b,z,ne,re){return nt.Rl(a,y,x,E,b,z,ne,re)},st.prototype.compareWithLineSegmentPoint=st.prototype.Ry,st.compareWithLineSegment=function(a,y,x,E,b,z){return nt.Fl(a,y,x,E,b,z)},st.prototype.direction=st.prototype.direction,st.prototype.directionPoint=st.prototype.ab,st.prototype.normalize=st.prototype.normalize,st.prototype.distanceSquared=st.prototype.zd,st.prototype.distanceSquaredPoint=st.prototype.Bf,st.prototype.scale=st.prototype.scale,st.prototype.rotate=st.prototype.rotate,st.prototype.offset=st.prototype.offset,st.prototype.subtract=st.prototype.re,st.prototype.add=st.prototype.add,st.prototype.equalsApprox=st.prototype.Xa,st.prototype.equalTo=st.prototype.hi,st.prototype.equals=st.prototype.D,st.prototype.set=st.prototype.set,st.prototype.setTo=st.prototype.sg;var Qr=[];st.className="Point",st.parse=Lo,st.stringify=po,st.distanceLineSegmentSquared=Na,st.distanceSquared=os,st.direction=xo,st.Origin=sa=new st(0,0).ja(),st.InfiniteTopLeft=va=new st(-1/0,-1/0).ja(),st.InfiniteBottomRight=Ma=new st(1/0,1/0).ja(),st.SixPoint=hs=new st(6,6).ja(),st.NoPoint=Ga=new st(NaN,NaN).ja(),st.parse=Lo,st.stringify=po,st.distanceLineSegmentSquared=Na,st.distanceSquared=os,st.direction=xo;function pi(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):Et("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var io,ro,Ja,Ca,fa,$a,Qa;pi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},pi.prototype.h=function(a,y){return this.width=a,this.height=y,this},pi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},pi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},pi.prototype.copy=function(){var a=new pi;return a.width=this.width,a.height=this.height,a},Ne=pi.prototype,Ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Es(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new pi(x,b)}return new pi}function ys(a){return a.width.toString()+" "+a.height.toString()}Ne.toString=function(){return"Size("+this.width+","+this.height+")"},Ne.D=function(a){return a instanceof pi?this.width===a.width&&this.height===a.height:!1},Ne.hi=function(a,y){return this.width===a&&this.height===y},Ne.Xa=function(a){return nt.B(this.width,a.width)&&nt.B(this.height,a.height)},Ne.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},Ne.w=function(){return isFinite(this.width)&&isFinite(this.height)},pi.alloc=function(){var a=Zs.pop();return a===void 0?new pi:a},pi.free=function(a){Zs.push(a)},pi.prototype.isReal=pi.prototype.w,pi.prototype.inflate=pi.prototype.Bc,pi.prototype.equalsApprox=pi.prototype.Xa,pi.prototype.equalTo=pi.prototype.hi,pi.prototype.equals=pi.prototype.D,pi.prototype.set=pi.prototype.set,pi.prototype.setTo=pi.prototype.sg;var Zs=[];pi.className="Size",pi.parse=Es,pi.stringify=ys,pi.ZeroSize=io=new pi(0,0).ja(),pi.OneSize=ro=new pi(1,1).ja(),pi.SixSize=Ja=new pi(6,6).ja(),pi.EightSize=Ca=new pi(8,8).ja(),pi.TenSize=fa=new pi(10,10).ja(),pi.InfiniteSize=$a=new pi(1/0,1/0).ja(),pi.NoSize=Qa=new pi(NaN,NaN).ja(),pi.parse=Es,pi.stringify=ys;function Mn(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof st?(x=a.x,a=a.y,y instanceof st?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof pi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Et("Incorrect second argument supplied to Rect constructor "+y)):Et("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ne=Mn.prototype,Ne.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ne.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Ss(a,y,x){a.width=y,a.height=x}Ne.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ne.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ne.dd=function(a){return this.x=a.x,this.y=a.y,this},Ne.tA=function(a){return this.width=a.width,this.height=a.height,this},Mn.prototype.copy=function(){var a=new Mn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ne=Mn.prototype,Ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function ra(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),new Mn(x,b,z,ne)}return new Mn}function hl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ne.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ne.D=function(a){return a instanceof Mn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ne.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ne.Xa=function(a){return nt.B(this.x,a.x)&&nt.B(this.y,a.y)&&nt.B(this.width,a.width)&&nt.B(this.height,a.height)};function Ol(a,y){return nt.$(a.x,y.x)&&nt.$(a.y,y.y)&&nt.$(a.width,y.width)&&nt.$(a.height,y.height)}Ne.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ne.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},Ne.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ne.offset=function(a,y){return this.x+=a,this.y+=y,this},Ne.Bc=function(a,y){return ns(this,y,a,y,a)},Ne.Co=function(a){return ns(this,a.top,a.right,a.bottom,a.left)},Ne.Fv=function(a){return ns(this,-a.top,-a.right,-a.bottom,-a.left)},Ne.Hz=function(a,y,x,E){return ns(this,a,y,x,E)};function ns(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ne.Ex=function(a){return yu(this,a.x,a.y,a.width,a.height)},Ne.Uu=function(a,y,x,E){return yu(this,a,y,x,E)};function yu(a,y,x,E,b){var z=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ne),a}Ne.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ne.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function eu(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ne.Ye=function(a){return ps(this,a.x,a.y,0,0)},Ne.ed=function(a){return ps(this,a.x,a.y,a.width,a.height)},Ne.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),ps(this,a,y,x,E)};function ps(a,y,x,E,b){var z=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=y-z,a.height=x-ne,a}Ne.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 Ba(a,y,x,E,b,z,ne,re){return ne===void 0&&(ne=0),re===void 0&&(re=0),a<=b&&b+ne<=a+x&&y<=z&&z+re<=y+E}function tu(a,y,x,E,b,z,ne,re){return a>ne+b||b>x+a?!1:!(y>re+z||z>E+y)}Ne.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ne.Mz=function(){return this.width===0&&this.height===0},Mn.alloc=function(){var a=ca.pop();return a===void 0?new Mn:a},Mn.allocAt=function(a,y,x,E){var b=ca.pop();return b===void 0?new Mn(a,y,x,E):b.h(a,y,x,E)},Mn.free=function(a){ca.push(a)},Qe.Object.defineProperties(Mn.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 st(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new pi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new st(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}}}),Mn.prototype.isEmpty=Mn.prototype.Mz,Mn.prototype.isReal=Mn.prototype.w,Mn.intersectsLineSegment=function(a,y,x,E,b,z,ne,re){return nt.Fx(a,y,x,E,b,z,ne,re)},Mn.prototype.setSpot=Mn.prototype.yi,Mn.prototype.union=Mn.prototype.Kv,Mn.prototype.unionRect=Mn.prototype.ed,Mn.prototype.unionPoint=Mn.prototype.Ye,Mn.prototype.intersects=Mn.prototype.Vu,Mn.prototype.intersectsRect=Mn.prototype.Yc,Mn.prototype.intersect=Mn.prototype.Uu,Mn.prototype.intersectRect=Mn.prototype.Ex,Mn.prototype.grow=Mn.prototype.Hz,Mn.prototype.subtractMargin=Mn.prototype.Fv,Mn.prototype.addMargin=Mn.prototype.Co,Mn.prototype.inflate=Mn.prototype.Bc,Mn.prototype.offset=Mn.prototype.offset,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.containsRect=Mn.prototype.Re,Mn.prototype.containsPoint=Mn.prototype.ca,Mn.prototype.equalsApprox=Mn.prototype.Xa,Mn.prototype.equalTo=Mn.prototype.hi,Mn.prototype.equals=Mn.prototype.D,Mn.prototype.setSize=Mn.prototype.tA,Mn.prototype.setPoint=Mn.prototype.dd,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setTo=Mn.prototype.sg;var Do=null,Ea=null,ca=[];Mn.className="Rect",Mn.parse=ra,Mn.stringify=hl,Mn.contains=Ba,Mn.intersects=tu,Mn.ZeroRect=Do=new Mn(0,0,0,0).ja(),Mn.NoRect=Ea=new Mn(NaN,NaN,NaN,NaN).ja(),Mn.parse=ra,Mn.stringify=hl,Mn.contains=Ba,Mn.intersects=tu;function hr(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Et("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}hr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},hr.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},hr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},hr.prototype.copy=function(){var a=new hr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ne=hr.prototype,Ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Rs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new hr;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new hr(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new hr(x,b);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new hr(x,b):new hr(x,b,z,ne)}return new hr}function ls(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ne.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ne.D=function(a){return a instanceof hr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ne.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ne.Xa=function(a){return nt.B(this.top,a.top)&&nt.B(this.right,a.right)&&nt.B(this.bottom,a.bottom)&&nt.B(this.left,a.left)},Ne.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},hr.alloc=function(){var a=ou.pop();return a===void 0?new hr:a},hr.free=function(a){ou.push(a)},hr.prototype.isReal=hr.prototype.w,hr.prototype.equalsApprox=hr.prototype.Xa,hr.prototype.equalTo=hr.prototype.hi,hr.prototype.equals=hr.prototype.D,hr.prototype.set=hr.prototype.set,hr.prototype.setTo=hr.prototype.sg;var sl=null,jl=null,ou=[];hr.className="Margin",hr.parse=Rs,hr.stringify=ls,hr.ZeroMargin=sl=new hr(0,0,0,0).ja(),hr.TwoMargin=jl=new hr(2,2,2,2).ja(),hr.parse=Rs,hr.stringify=ls;function Ji(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Cs,Us,$l,Tl,Kl,Oo,ic,zl,En,Nn,ai,Qi,Gi,ki,_i,oi,Mi,cr,Hr,ga,$o,Ua,Ka,No,qr,Fi,eo,Ko,ma,ya,bo,oa,Io,Dr,Da,Ha;Ji.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ji.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Ji.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Ji.prototype.copy=function(){var a=new Ji;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ne=Ji.prototype,Ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function La(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function fl(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Cs;if(a==="TopLeft")return Us;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return $l;if(a==="TopRight")return Tl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Kl;if(a==="Center")return Oo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ic;if(a==="BottomLeft")return zl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return En;if(a==="BottomRight")return Nn;if(a==="TopSide")return ai;if(a==="LeftSide")return Qi;if(a==="RightSide")return Gi;if(a==="BottomSide")return ki;if(a==="TopBottomSides")return _i;if(a==="LeftRightSides")return oi;if(a==="TopLeftSides")return Mi;if(a==="TopRightSides")return cr;if(a==="BottomLeftSides")return Hr;if(a==="BottomRightSides")return ga;if(a==="NotTopSide")return $o;if(a==="NotLeftSide")return Ua;if(a==="NotRightSide")return Ka;if(a==="NotBottomSide")return No;if(a==="AllSides")return qr;if(a==="Default")return Fi;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ne=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ne,this.translate(-y,-x),this},Ne=Yt.prototype,Ne.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ne.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ne.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)},Ne.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ne.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ne.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ne=this.m12,re=this.m21,oe=this.m22,ue=this.dx,ce=this.dy,me=y*z+x*re+ue,we=y*ne+x*oe+ce,Fe=E*z+x*re+ue,De=E*ne+x*oe+ce;return x=y*z+b*re+ue,y=y*ne+b*oe+ce,z=E*z+b*re+ue,E=E*ne+b*oe+ce,b=Math.min(me,Fe),me=Math.max(me,Fe),Fe=Math.min(we,De),we=Math.max(we,De),b=Math.min(b,x),me=Math.max(me,x),Fe=Math.min(Fe,y),we=Math.max(we,y),b=Math.min(b,z),me=Math.max(me,z),Fe=Math.min(Fe,E),we=Math.max(we,E),a.h(b,Fe,me-b,we-Fe),a},Yt.alloc=function(){var a=Dn.pop();return a===void 0?new Yt:a},Yt.free=function(a){Dn.push(a)},Yt.prototype.transformRect=Yt.prototype.pp,Yt.prototype.transformPoint=Yt.prototype.Ga,Yt.prototype.scale=Yt.prototype.scale,Yt.prototype.translate=Yt.prototype.translate,Yt.prototype.rotate=Yt.prototype.rotate,Yt.prototype.invert=Yt.prototype.Vj,Yt.prototype.multiplyInverted=Yt.prototype.bv,Yt.prototype.multiply=Yt.prototype.multiply,Yt.prototype.reset=Yt.prototype.reset,Yt.prototype.isIdentity=Yt.prototype.ws,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.setTransform=Yt.prototype.setTransform,Yt.prototype.set=Yt.prototype.set;var Dn=[];Yt.className="Transform",Yt.xF="54a702f3e53909c447824c6706603faf4c";var nt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=nt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);nt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),ace-ue)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ne&&ne<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ne=(x-a)/(E-y)*(ne-y)+a,ne-b<=z&&z<=ne+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ne,re,oe,ue,ce,me){if(nt.Yb(a,y,ne,re,me,x,E)&&nt.Yb(a,y,ne,re,me,b,z))return nt.Yb(a,y,ne,re,me,ue,ce);var we=(a+x)/2,Fe=(y+E)/2,De=(x+b)/2,_e=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(we+De)/2,x=(Fe+_e)/2,De=(De+b)/2,_e=(_e+z)/2;var pt=(E+De)/2,it=(x+_e)/2;return nt.cs(a,y,we,Fe,E,x,pt,it,oe,ue,ce,me)||nt.cs(pt,it,De,_e,b,z,ne,re,oe,ue,ce,me)},ax:function(a,y,x,E,b,z,ne,re,oe){var ue=(x+b)/2,ce=(E+z)/2;return oe.h((((a+x)/2+ue)/2+(ue+(b+ne)/2)/2)/2,(((y+E)/2+ce)/2+(ce+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ne,re){var oe=(x+b)/2,ue=(E+z)/2;return xo(((a+x)/2+oe)/2,((y+E)/2+ue)/2,(oe+(b+ne)/2)/2,(ue+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ne,re,oe,ue){if(nt.Yb(a,y,ne,re,oe,x,E)&&nt.Yb(a,y,ne,re,oe,b,z))ps(ue,a,y,0,0),ps(ue,ne,re,0,0);else{var ce=(a+x)/2,me=(y+E)/2,we=(x+b)/2,Fe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+we)/2,x=(me+Fe)/2,we=(we+b)/2,Fe=(Fe+z)/2;var De=(E+we)/2,_e=(x+Fe)/2;nt.Dl(a,y,ce,me,E,x,De,_e,oe,ue),nt.Dl(De,_e,we,Fe,b,z,ne,re,oe,ue)}return ue},Qe:function(a,y,x,E,b,z,ne,re,oe,ue){if(nt.Yb(a,y,ne,re,oe,x,E)&&nt.Yb(a,y,ne,re,oe,b,z))ue.length===0&&(ue.push(a),ue.push(y)),ue.push(ne),ue.push(re);else{var ce=(a+x)/2,me=(y+E)/2,we=(x+b)/2,Fe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+we)/2,x=(me+Fe)/2,we=(we+b)/2,Fe=(Fe+z)/2;var De=(E+we)/2,_e=(x+Fe)/2;nt.Qe(a,y,ce,me,E,x,De,_e,oe,ue),nt.Qe(De,_e,we,Fe,b,z,ne,re,oe,ue)}return ue},jv:function(a,y,x,E,b,z,ne,re,oe,ue){if(nt.Yb(a,y,b,z,ue,x,E))return nt.Yb(a,y,b,z,ue,re,oe);var ce=(a+x)/2,me=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var we=(ce+x)/2,Fe=(me+E)/2;return nt.jv(a,y,ce,me,we,Fe,ne,re,oe,ue)||nt.jv(we,Fe,x,E,b,z,ne,re,oe,ue)},OA:function(a,y,x,E,b,z,ne){return ne.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ne},iv:function(a,y,x,E,b,z,ne,re){if(nt.Yb(a,y,b,z,ne,x,E))ps(re,a,y,0,0),ps(re,b,z,0,0);else{var oe=(a+x)/2,ue=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(oe+x)/2,me=(ue+E)/2;nt.iv(a,y,oe,ue,ce,me,ne,re),nt.iv(ce,me,x,E,b,z,ne,re)}return re},ep:function(a,y,x,E,b,z,ne,re){if(nt.Yb(a,y,b,z,ne,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,ue=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(oe+x)/2,me=(ue+E)/2;nt.ep(a,y,oe,ue,ce,me,ne,re),nt.ep(ce,me,x,E,b,z,ne,re)}return re},Eo:function(a,y,x,E,b,z,ne,re,oe,ue,ce,me,we,Fe){if(nt.Yb(a,y,ne,re,we,x,E)&&nt.Yb(a,y,ne,re,we,b,z))return!nt.Rl(a,y,ne,re,oe,ue,ce,me)||(we=(a-ne)*(ue-me)-(y-re)*(oe-ce),we===0)?!1:(Fe.h(((a*re-y*ne)*(oe-ce)-(a-ne)*(oe*me-ue*ce))/we,((a*re-y*ne)*(ue-me)-(y-re)*(oe*me-ue*ce))/we),!0);var De=(a+x)/2,_e=(y+E)/2,pt=(x+b)/2,it=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(De+pt)/2,x=(_e+it)/2,pt=(pt+b)/2,it=(it+z)/2;var bt=(E+pt)/2,It=(x+it)/2,Rt=1/0,Kt=!1,hn=0,bi=0;return nt.Eo(a,y,De,_e,E,x,bt,It,oe,ue,ce,me,we,Fe)&&(a=(Fe.x-oe)*(Fe.x-oe)+(Fe.y-ue)*(Fe.y-ue),a=ce)return Fe;if((oe>ce?oe-ce:ce-oe)<(ue>me?ue-me:me-ue)){if(ya)return Fe}else if(aa)return Fe;0we&&Fe--}else{De=(a+x)/2,_e=(y+E)/2;var pt=(x+b)/2,it=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(De+pt)/2,x=(_e+it)/2,pt=(pt+b)/2,it=(it+z)/2;var bt=(E+pt)/2,It=(x+it)/2;Fe+=nt.Fo(a,y,De,_e,E,x,bt,It,oe,ue,ce,me,we),Fe+=nt.Fo(bt,It,pt,it,b,z,ne,re,oe,ue,ce,me,we)}return Fe},qh:function(a,y,x,E,b,z,ne){return nt.$(a,x)?(yy?(ne.h(a,y),!1):(ne.h(a,z),!0)):nt.$(y,E)?(aa?(ne.h(a,y),!1):(ne.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ne.h(a,y),!1):1.000005y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ne=(E-y)/(x-a),nt.$(re,ne)?(nt.qh(a,y,x,E,b,z,oe),!1):(b=(ne*a-re*b+z-y)/(ne-re),nt.$(ne,0)?(aa?(oe.h(a,y),!1):(oe.h(b,y),!0)):nt.qh(a,y,x,E,b,ne*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return nt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ne,re,oe,ue){function ce(pt,it){var bt=(pt-a)*(pt-a)+(it-y)*(it-y);bt(x>a?x-a:a-x)){if(we=1-(x-b)*(x-b)/(we*we),0>we)return oe;we=Math.sqrt(we),E=-ue*we+z,ce(x,ue*we+z),ce(x,E)}else{if(x=(E-y)/(x-a),E=1/(we*we)+x*x/(ue*ue),re=2*x*(y-x*a)/(ue*ue)-2*x*z/(ue*ue)-2*b/(we*we),we=re*re-4*E*(2*x*a*z/(ue*ue)-2*y*z/(ue*ue)+z*z/(ue*ue)+b*b/(we*we)-1+(y-x*a)*(y-x*a)/(ue*ue)),0>we)return oe;we=Math.sqrt(we),ue=(-re+we)/(2*E),ce(ue,x*ue-x*a+y),we=(-re-we)/(2*E),ce(we,x*we-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ne,re,oe){var ue=1e21,ce=a,me=y;if(nt.Ve(a,y,a,E,b,z,ne,re,oe)){var we=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);weue},us:function(a,y,x){return nt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ne,re){var oe=a+x,ue=y+E;return b===ne?(z=y):z===re?(b=a):!!(Ba(a,y,x,E,b,z)||Ba(a,y,x,E,ne,re)||nt.Rl(a,y,oe,y,b,z,ne,re)||nt.Rl(oe,y,oe,ue,b,z,ne,re)||nt.Rl(oe,ue,a,ue,b,z,ne,re)||nt.Rl(a,ue,a,y,b,z,ne,re))},Rl:function(a,y,x,E,b,z,ne,re){return a===x&&y===E&&b===ne&&z===re?a===b&&y===z:0>=nt.Fl(a,y,x,E,b,z)*nt.Fl(a,y,x,E,ne,re)&&0>=nt.Fl(b,z,ne,re,a,y)*nt.Fl(b,z,ne,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ne=Math.PI;z||(E*=ne/180,b*=ne/180);var re=E>b?-1:1;z=[];var oe=ne/2,ue=E;if(E=Math.min(2*ne,Math.abs(b-E)),1e-5>E)return oe=ue+re*Math.min(E,oe),re=a+x*Math.cos(ue),ue=y+x*Math.sin(ue),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(ue+y)/2,z.push([re,ue,x,oe,x,oe,a,y]),z;for(;1e-5x,z=0>E;if(aue&&(y=.5*(re+oe),!(y===re||y===oe));++ue){var ce=a/(y+b),me=ne/(y+z);if(ce=ce*ce+me*me-1,0ce)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,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 Qt.u:var y=new Mn(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 Qt.F:if(y=new Mn(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 Qt.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Rt-1?!0:ue[_e+1].match(Kt)!==null}function E(){return _e++,ue[_e]}function b(lo){var $r=parseFloat(E()),Fa=parseFloat(E());pt===pt.toLowerCase()&&($r=It.x+$r,Fa=It.y+Fa),lo.h($r,Fa)}function z(){return b(It),It}function ne(){return b(bt),bt}function re(){var lo=it.toLowerCase();return lo!=="c"&&lo!=="s"&&lo!=="q"&&lo!=="t"?It:new st(2*It.x-bt.x,2*It.y-bt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ue=a.split(" ");for(a=0;a=Rt-1);)if(it=pt,pt=E(),pt!=="")switch(pt.toUpperCase()){case"X":Fe=!0,me=ce=!1;break;case"M":for(De=z(),a.mc===null||Fe===!0?(pp(a,De.x,De.y,ce,!me,we),Fe=!1):a.moveTo(De.x,De.y),oe.assign(It);!x();)De=z(),a.lineTo(De.x,De.y);break;case"L":for(;!x();)De=z(),a.lineTo(De.x,De.y);break;case"H":for(;!x();)It=new st((pt===pt.toLowerCase()?It.x:0)+parseFloat(E()),It.y),a.lineTo(It.x,It.y);break;case"V":for(;!x();)It=new st(It.x,(pt===pt.toLowerCase()?It.y:0)+parseFloat(E())),a.lineTo(It.x,It.y);break;case"C":for(;!x();){De=new st,b(De);var hn=ne(),bi=z();Kh(a,De.x,De.y,hn.x,hn.y,bi.x,bi.y)}break;case"S":for(;!x();)De=re(),hn=ne(),bi=z(),Kh(a,De.x,De.y,hn.x,hn.y,bi.x,bi.y);break;case"Q":for(;!x();)De=ne(),hn=z(),u0(a,De.x,De.y,hn.x,hn.y);break;case"T":for(;!x();)bt=De=re(),hn=z(),u0(a,De.x,De.y,hn.x,hn.y);break;case"B":for(;!x();){De=parseFloat(E()),hn=parseFloat(E()),bi=parseFloat(E());var Xi=parseFloat(E()),zi=parseFloat(E()),hi=zi,ti=!1;x()||(hi=parseFloat(E()),x()||(ti=parseFloat(E())!==0)),pt===pt.toLowerCase()&&(bi+=It.x,Xi+=It.y),a.arcTo(De,hn,bi,Xi,zi,hi,ti)}break;case"A":for(;!x();)De=Math.abs(parseFloat(E())),hn=Math.abs(parseFloat(E())),bi=parseFloat(E()),zi=Xi=!1,ti=hi=0,hi=E(),hi.length===1?(Xi=!!parseFloat(hi),zi=!!parseFloat(E()),hi=parseFloat(E())):hi.length===2?(Xi=!!parseFloat(hi[0]),zi=!!parseFloat(hi[1]),hi=parseFloat(E())):(Xi=!!parseFloat(hi[0]),zi=!!parseFloat(hi[1]),hi=parseFloat(hi.slice(2))),ti=parseFloat(E()),pt===pt.toLowerCase()&&(hi=It.x+hi,ti=It.y+ti),It.h(hi,ti),wS(a,De,hn,bi,Xi,zi,hi,ti);break;case"Z":PS(a),It.assign(oe);break;case"F":for(De="",hn=1;ue[_e+hn];)if(ue[_e+hn]==="0")we=!0,hn++;else if(ue[_e+hn].match(/[Uu]/)!==null)hn++;else if(ue[_e+hn].match(Kt)===null)hn++;else{De=ue[_e+hn];break}De.match(/[Mm]/)?ce=!0:0ne&&(ne+=360),De.startAngle+=ne),0>a&&(De.startAngle=180-De.startAngle,De.sweepAngle=-De.sweepAngle),0>E&&(De.startAngle=-De.startAngle,De.sweepAngle=-De.sweepAngle),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY!==void 0&&(De.radiusY*=Math.sqrt(y*y+E*E));break;case Er:if(ne=De.endX,re=De.endY,De.endX=ne*a+re*x+b,De.endY=ne*y+re*E+z,De.radiusX===0||De.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),De.xAxisRotation+=ne),0>a&&(De.xAxisRotation=180-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),0>E&&(De.xAxisRotation=-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY*=Math.sqrt(y*y+E*E);break;default:Et("Unknown Segment type: "+De.type)}}}}return this._isInvalidBounds=!0,this},Ne.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Qt.j:return nt.Yb(x,E,b,z,y,a.x,a.y);case Qt.u:var ne=Mn.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ne.ca(a),Mn.free(ne),a;case Qt.F:ne=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),re=a.y-(re+y),1>=ne*ne/(x*x)+re*re/(y*y));case Qt.o:return mr(this,a,y,!0,!1);default:return!1}};function mr(a,y,x,E,b){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,re=0,oe,ue,ce,me,we=a.figures.s,Fe=we.length,De=0;De=a)return 0;if((b>ne?b-ne:ne-b)<(z>re?z-re:re-z)){if(zre)return 0}else if(yz)return 0}else if(bne)return 0}else if(ueb)return 0;return 0a?a=0:1=z)return E=z-ne,E=ce===0?0:E/ce,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ne+=ce}}return y},Ne.wx=function(a){if(0>a?a=0:1=b)return b=y[ne],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=ue}}return NaN},Ne.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-ne,E=ce===0?0:E/ce,ce=x[re],x=ce[2*a],re=ce[2*a+1],b=ce[2*a+2],a=ce[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ne+=ce}}return y},Ne.xx=function(a){if(this.type===Qt.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-ne)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(b-x)*(b-x);var re=st.alloc();return nt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,st.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ne)}}else if(this.type===Qt.u){ne=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ne!==oe||re!==b){y=oe-ne,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),oe),a=Math.min(Math.max(a,re),b),ne=Math.abs(E-ne),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var ue=Math.min(ne,oe,re,b);if(ue===re)return E/z;if(ue===oe)return(y+a)/z;if(ue===b)return(2*y+x-E)/z;if(ue===ne)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=st.alloc(),b=1/0,re=ne=0,oe=y.length;for(var ce=ue=0,me=0;mea?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Br&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===Br&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}fr.prototype.copy=function(){var a=new fr;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},Ne=fr.prototype,Ne.Xa=function(a){if(!(a instanceof fr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ji:case Ai:return nt.B(this.endX,a.endX)&&nt.B(this.endY,a.endY);case Wr:return nt.B(this.endX,a.endX)&&nt.B(this.endY,a.endY)&&nt.B(this.point1X,a.point1X)&&nt.B(this.point1Y,a.point1Y)&&nt.B(this.point2X,a.point2X)&&nt.B(this.point2Y,a.point2Y);case zo:return nt.B(this.endX,a.endX)&&nt.B(this.endY,a.endY)&&nt.B(this.point1X,a.point1X)&&nt.B(this.point1Y,a.point1Y);case Br:return nt.B(this.startAngle,a.startAngle)&&nt.B(this.sweepAngle,a.sweepAngle)&&nt.B(this.centerX,a.centerX)&&nt.B(this.centerY,a.centerY)&&nt.B(this.radiusX,a.radiusX)&&nt.B(this.radiusY,a.radiusY);case Er:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&nt.B(this.xAxisRotation,a.xAxisRotation)&&nt.B(this.endX,a.endX)&&nt.B(this.endY,a.endY)&&nt.B(this.radiusX,a.radiusX)&&nt.B(this.radiusY,a.radiusY);default:return!1}},Ne.qb=function(a){a.classType===fr&&(this.type=a)},Ne.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ji:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ai:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Wr: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 zo: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 Br: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 Er: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":"")},Ne.freeze=function(){return this._isFrozen=!0,this},Ne.ka=function(){return this._isFrozen=!1,this},Ne.close=function(){return this.isClosed=!0,this};function pr(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=nt.jx(0,0,x=Fe?ne=Math.PI:1<=Fe&&(ne=0),!oe&&0ne&&(ne+=2*Math.PI),oe=y>z?1:y/z,Fe=y>z?z/y:1,y=nt.jx(0,0,y>z?y:z,ce,ce+ne,!0),z=Yt.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Fe),Qt.Ha(y,z),Yt.free(z),a.ae=y,a.ae}Qe.Object.defineProperties(fr.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&&wn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&wn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&wn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&wn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&wn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&wn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&wn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&wn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&wn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",fr,"radiusX"),this._isFrozen&&wn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",fr,"radiusY"),this._isFrozen&&wn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&wn(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&&wn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&wn(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&&wn(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&&wn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),fr.prototype.equalsApprox=fr.prototype.Xa;var ji=new Cn(fr,"Move",0),Ai=new Cn(fr,"Line",1),Wr=new Cn(fr,"Bezier",2),zo=new Cn(fr,"QuadraticBezier",3),Br=new Cn(fr,"Arc",4),Er=new Cn(fr,"SvgArc",4);fr.className="PathSegment",fr.Move=ji,fr.Line=Ai,fr.Bezier=Wr,fr.QuadraticBezier=zo,fr.Arc=Br,fr.SvgArc=Er;function Or(){this.H=null,this.xu=new st(0,0).freeze(),this.mt=new st(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}Or.prototype.copy=function(){var a=new Or;return this.clone(a)},Or.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},Or.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},Or.prototype.So=function(a,y){var x=this.diagram;return x===null||ph(x,a,y),y},Or.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(ph(x,a,y),y.assign(x.Ps(y))),y},Qe.Object.defineProperties(Or.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}}}),Or.prototype.getMultiTouchDocumentPoint=Or.prototype.Bz,Or.prototype.getMultiTouchViewPoint=Or.prototype.So,Or.className="InputEvent";function kr(){this.H=null,this.xa="",this.ar=this.Lr=null}kr.prototype.copy=function(){var a=new kr;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},kr.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Qe.Object.defineProperties(kr.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}}}),kr.className="DiagramEvent";function gr(){this.Fm=_o,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}gr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},gr.prototype.copy=function(){var a=new gr;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=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=tn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=tn(y)&&typeof y.J=="function"?y.J():y,a},gr.prototype.qb=function(a){a.classType===gr&&(this.change=a)},gr.prototype.toString=function(){var a="";return a=this.change===Aa?a+"* ":this.change===_o?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===Aa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=sr(this.object)),this.oldValue!==null&&(a+=" old: "+sr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+sr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},gr.prototype.I=function(a){return a?this.oldValue:this.newValue},gr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},gr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},gr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},gr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},gr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Qe.Object.defineProperties(gr.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===Aa&&(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}}}),gr.prototype.redo=gr.prototype.redo,gr.prototype.canRedo=gr.prototype.canRedo,gr.prototype.undo=gr.prototype.undo,gr.prototype.canUndo=gr.prototype.canUndo,gr.prototype.getParam=gr.prototype.Dz,gr.prototype.getValue=gr.prototype.I,gr.prototype.clear=gr.prototype.clear;var Aa=new Cn(gr,"Transaction",-1),_o=new Cn(gr,"Property",0),xa=new Cn(gr,"Insert",1),Wa=new Cn(gr,"Remove",2);gr.className="ChangedEvent",gr.Transaction=Aa,gr.Property=_o,gr.Insert=xa,gr.Remove=Wa;function wo(){this.o=new Un().freeze(),this.xa="",this.j=!1}wo.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Qe.Object.defineProperties(wo.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}}}),wo.prototype.optimize=wo.prototype.ak,wo.prototype.redo=wo.prototype.redo,wo.prototype.canRedo=wo.prototype.canRedo,wo.prototype.undo=wo.prototype.undo,wo.prototype.canUndo=wo.prototype.canUndo,wo.prototype.clear=wo.prototype.clear,wo.className="Transaction";function Oa(){this.Pt=new Yn,this.Jd=!1,this.u=new Un().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Un().freeze(),this.hl=new Un,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Oa.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&Ei("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ne.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()}},Oa.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Ei("Change not within a transaction: "+x.toString()))}},Oa.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Qe.Object.defineProperties(Oa.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.historyIndexb||Math.abs(y.y-a.y)>E},Qe.Object.defineProperties(Nr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof dn&&(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}}}),Nr.prototype.startTransaction=Nr.prototype.Ea,Nr.className="Tool";function jo(){Nr.call(this),this.name="ToolManager",this.hb=new Un,this.ob=new Un,this.Hb=new Un,this.F=this.V=850,this.o=new pi(2,2).ja(),this.Ha=5e3,this.ia=gl,this.u=kc,this.Mp=this.j=null,this.zj=-1}$t(jo,Nr),jo.prototype.initializeStandardTools=function(){},jo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof pa&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},jo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===oc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===vc){y.bubbles=!0;return}if(this.gestureBehavior===oc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ne=null;x.fromNode===null&&(z=ch(a,x.i(0),!1),z!==null&&(ne=z.part));var re=null,oe=null;x.toNode===null&&(re=ch(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ne,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Jr(b,ne,z,oe,re):Jr(b,null,null,null,null)}}}}as.prototype.doDragOver=function(){};function fo(a,y){var x=a.diagram;a.dragsLink&&li(a,!0),ac(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(b,z),b.handled))break;Xa(a,b,z),z=Fd(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Xt!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Ni&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Xt!==null){for(a=Mn.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Ni&&rt(x,E,a);Mn.free(a)}}}function Xa(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ho||(x=a.mouseDrop,x!==null&&x(y))}function rt(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof fi},!0,function(b){return b instanceof fi},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}as.prototype.doDropOnto=function(){},as.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()?(au(this,!1),$f(a,this.copiedParts),Au(this,this.copiedParts,!1),Kd(a,this.copiedParts)):this.mayMove()?(su(this),Au(this,this.draggedParts,!0)):this.mayDragOut()?(au(this,!1),Au(this,this.copiedParts,!1)):su(this),bd(this,a.lastInput.documentPoint))}},as.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?(su(this),au(this,!0),$f(a,this.copiedParts),Au(this,this.copiedParts,!1),Kd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,su(this),this.mayMove()&&(Au(this,this.draggedParts,!0),bd(this,a.lastInput.documentPoint))),this.Ym=!0,fo(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&et(this),a.Ya(),Kd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},as.prototype.simulatedMouseMove=function(a,y,x){if(Xt===null)return!1;var E=Xt.diagram;x instanceof dn||(x=null);var b=gn;return x!==b&&(b!==null&&b!==E&&(b.ug(),Xt.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),gn=x,x!==null&&x!==E&&(Rd(),b=x.toolManager.findTool("Dragging"),b!==null&&(du.contains(b)||du.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0ne&&(ne=ue),ce>re&&(re=ce))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ne-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,Mn.free(z),z=a.Fr,ne=new Ki,re=st.alloc(),oe=y.iterator;oe.next();)ue=oe.value,ue instanceof fi&&ue.canCopy()&&(ce=x.I(ue),ce!==null&&(ce.points=ue.points,Yh(ce,z.x-E,z.y-b),ce.suspendsRouting=!0,ne.add(ce,a.Pd())));for(y=y.iterator;y.next();)ue=y.value,ue.Zc()&&ue.canCopy()&&(oe=x.I(ue),oe!==null&&(ue=ue.location,re.h(z.x-(E-ue.x),z.y-(b-ue.y)),oe.location=re,oe.Va(),ne.add(oe,a.Pd(re))));st.free(re),a.copiedParts=ne,Rc(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}as.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},as.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new st},Qe.Object.defineProperties(as.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}}}),as.prototype.getDraggingSource=as.prototype.Az;var Xt=null,gn=null;as.className="DraggingTool",du=new Un,Vr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),jo.prototype.doCancel=function(){Xt!==null&&Xt.doCancel(),Nr.prototype.doCancel.call(this)};function nn(){Nr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new fi,y=new Co;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Co,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ni,y=new Co,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ni,y=new Co,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Ki,this.Of=this.gj=this.Pf=null}$t(nn,Nr),nn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},nn.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ne=pi.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,pi.free(ne),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Oo,z=st.alloc(),x.location=y.ga(Oo,z),st.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},nn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ro,y.fromSpot=Cs,y.toSpot=Cs),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},nn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},nn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ni){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)}},nn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ni))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ni)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},nn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(me){return b.findValidLinkablePort(me,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,re=ne.part;if(re instanceof Ni){var oe=ne.ga(Oo,st.alloc()),ue=x.x-oe.x,ce=x.y-oe.y;st.free(oe),oe=ue*ue+ce*ce,oex){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},nn.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},nn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},nn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ni))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ni))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},nn.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},nn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Yn;return E.add(a),Vn(this,x,y,E)};function Vn(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Vn(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Vn(a,y.labeledLink,x,E))))}nn.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==wh){if(E===Fg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!jn(this,a,y,x,!0)}if(E===Bg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!jn(this,a,y,x,!0)}if(E===Cg)return a===y?a=!0:(E=new Yn,E.add(y),a=Xn(this,E,a,y,x)),!a;if(E===Eg)return!jn(this,a,y,x,!1);if(E===bg)return a===y?a=!0:(E=new Yn,E.add(y),a=yi(this,E,a,y,x)),!a}return!0};function jn(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==E&&(!b||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&jn(a,ne,x,E,b)))return!0}return!1}function Xn(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&Xn(a,y,ne,E,b)))return!0}return!1}function yi(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b){var re=ne.fromNode;if(ne=ne.toNode,re=re===x?ne:re,re!==x&&yi(a,y,re,E,b))return!0}}return!1}Qe.Object.defineProperties(nn.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}}}),nn.className="LinkingBaseTool";function Jn(){nn.call(this),this.name="Linking",this.V={},this.F=null,this.K=mi,this.Xd=null}$t(Jn,nn),Jn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Jn.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Ni)))return null;var x=this.direction;if(x===mi||x===or){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===mi||x===Vi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Jn.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Ni&&(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 Ni&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},Jn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Jn.prototype.doStop=function(){nn.prototype.doStop.call(this),this.startObject=null},Jn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var re=ne.part;re instanceof Ni&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ne):(y=re,x=ne,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ne===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Jn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof fi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},Jn.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},Jn.prototype.doNoLink=function(){},Qe.Object.defineProperties(Jn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var mi=new Cn(Jn,"Either",0),or=new Cn(Jn,"ForwardsOnly",0),Vi=new Cn(Jn,"BackwardsOnly",0);Jn.className="LinkingTool",Jn.Either=mi,Jn.ForwardsOnly=or,Jn.BackwardsOnly=Vi;function Ui(){nn.call(this),this.name="Relinking";var a=new Co;a.figure="Diamond",a.desiredSize=Ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Co,a.figure="Diamond",a.desiredSize=Ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Mn}$t(Ui,nn),Ui.prototype.updateAdornments=function(a){if(a!==null&&a instanceof fi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Ui.prototype.makeAdornment=function(a,y){var x=new pa;return x.type=ui.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ui.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},Ui.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 pa&&x.adornedPart instanceof fi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&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 e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ui)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},oo.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},oo.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))},oo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},oo.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},oo.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},oo.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,st.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),st.free(b)}},oo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,st.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),st.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},oo.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 ho){var E=new Un;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},oo.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Oo);var ne=this.adornedObject.naturalBounds,re=ne.x,oe=ne.y,ue=ne.x+ne.width,ce=ne.y+ne.height,me=1;if(!z){me=ne.width;var we=ne.height;0>=me&&(me=1),0>=we&&(we=1),me=we/me}return we=st.alloc(),nt.No(a.x,a.y,re,oe,b.width,b.height,we),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(we.x,ue-E.width),a.x=Math.min(a.x,ue-x.width),a.width=Math.max(ue-a.x,x.width),a.y=Math.max(we.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.x=ue-a.width,a.y=ce-a.height)):1<=y.y?(a.x=Math.max(we.x,ue-E.width),a.x=Math.min(a.x,ue-x.width),a.width=Math.max(ue-a.x,x.width),a.height=Math.max(Math.min(we.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.x=ue-a.width)):(a.x=Math.max(we.x,ue-E.width),a.x=Math.min(a.x,ue-x.width),a.width=ue-a.x,z||(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me,a.y=oe+.5*(ce-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(we.x-re,E.width),x.width),a.y=Math.max(we.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.y=ce-a.height)):1<=y.y?(a.width=Math.max(Math.min(we.x-re,E.width),x.width),a.height=Math.max(Math.min(we.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width))):(a.width=Math.max(Math.min(we.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me,a.y=oe+.5*(ce-oe-a.height))):0>=y.y?(a.y=Math.max(we.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=ce-a.y,z||(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width,a.x=re+.5*(ue-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(we.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width,a.x=re+.5*(ue-re-a.width))),st.free(we),a},oo.prototype.computeReshape=function(){var a=ii;return this.adornedObject instanceof Co&&(a=Ov(this.adornedObject)),!(a===tr||this.diagram.lastInput.shift)},oo.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},oo.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 E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Wo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new st(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Wo.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Wo.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Wo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Wo.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()},Wo.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Wo.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},Qe.Object.defineProperties(Wo.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 pa))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 pa)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}}}),Wo.className="RotatingTool",Vr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ta(){Nr.call(this),this.name="ClickSelecting"}$t(Ta,Nr),Ta.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ta.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ta.className="ClickSelectingTool";function uo(){Nr.call(this),this.name="Action",this.pk=null}$t(uo,Nr),uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},uo.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()},uo.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))}},uo.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()},uo.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())},uo.prototype.doStop=function(){this.pk=null},uo.className="ActionTool";function To(){Nr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new st(0,0)}$t(To,Nr),To.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)},To.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},To.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof xr)x.Zc()&&(Zc(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);tn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=st.allocAt(a.x,a.y);this.isGridSnapEnabled&&Gf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),st.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Qe.Object.defineProperties(To.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}}}),To.className="ClickCreatingTool";function co(){Nr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new xr;a.layerName="Tool",a.selectable=!1;var y=new Co;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}$t(co,Nr),co.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.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},aa.prototype.doStart=function(){Vl=this,this.textBlock!==null&&this.doActivate()},aa.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 es&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Ra;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Mn(this.textBlock.ga(Us),this.textBlock.ga(Nn));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},aa.prototype.doCancel=function(){this.stopTool()},aa.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},aa.prototype.doMouseDown=function(){this.isActive&&this.acceptText(cl)},aa.prototype.acceptText=function(a){switch(a){case cl:this.qa===bl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Ra||this.qa===Al||this.qa===ss)&&(this.qa=cs,el(this));break;case Ws:case da:case ba:(da!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Ra||this.qa===Al||this.qa===ss)&&(this.qa=cs,el(this))}};function el(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=bl,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Al,a.doError(b,z))}}aa.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)},aa.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},aa.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Uo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},aa.prototype.doStop=function(){Vl=null},aa.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},aa.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Qe.Object.defineProperties(aa.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)}}}),aa.prototype.measureTemporaryTextBlock=aa.prototype.Lx;var Ws=new Cn(aa,"LostFocus",0),cl=new Cn(aa,"MouseDown",1),ba=new Cn(aa,"Tab",2),da=new Cn(aa,"Enter",3),wa=new Cn(aa,"SingleClick",0),Xo=new Cn(aa,"SingleClickSelected",1),Ps=new Cn(aa,"DoubleClick",2),Uo=new Cn(aa,"StateNone",0),Ra=new Cn(aa,"StateActive",1),ss=new Cn(aa,"StateEditing",2),cs=new Cn(aa,"StateValidating",3),Al=new Cn(aa,"StateInvalid",4),bl=new Cn(aa,"StateValidated",5),Vl=null;aa.className="TextEditingTool",aa.LostFocus=Ws,aa.MouseDown=cl,aa.Tab=ba,aa.Enter=da,aa.SingleClick=wa,aa.SingleClickSelected=Xo,aa.DoubleClick=Ps,aa.StateNone=Uo,aa.StateActive=Ra,aa.StateEditing=ss,aa.StateValidating=cs,aa.StateInvalid=Al,aa.StateValidated=bl,Vr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Fs(a){Du||(Ul(),Du=!0),this.H=Bc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ml,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Yn,this.ce=new Ns,this.ce.Yd=this,this.Ei=new Yn,this.pu=new Yn,this.Sr=new Yn,this.pr=new Yn,a&&Object.assign(this,a)}Fs.prototype.Xe=function(a){this.H=a},Fs.prototype.canStart=function(){return!0};function Zl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ml(a.H),a.zb=!0)}function dl(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===ml?(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===Ou&&y.vc.clear(),a.Qw=!!(a.Pk===Iu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Hl(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==iu&&E!==null&&(delete E.start.scale,delete E.end.scale),ht.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Bl(x),Hd(x),a.zb=!1,y.start(),y.bc&&(Ms(a),x.Ya(),Vc(y,0),lu(x,!0),Gs(a),x.R("AnimationStarting",a)))}))}}function Fl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function _c(a,y,x,E){a.isTicking||Fl(a)||y instanceof fi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ne=Fs.prototype,Ne.fv=function(a){return this.ce.fv(a)},Ne.Xu=function(a){return this.ce.Xu(a)};function Bs(a,y){function x(){if(0z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ne=b(x,ne,ue-ne,E),re=b(x,re,ce-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ne+"%, "+re+"%, "+x+")"}function Ul(){function a(x,E,b,z,ne,re){x.position=new st(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}var y=new Ki;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ne,re){nea&&Kn(a,">= 1",Fs,"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}}}),Fs.prototype.stopAnimation=Fs.prototype.Cc;var Gu=null,Du=!1,ml=new Cn(Fs,"Default",1),Iu=new Cn(Fs,"AnimateLocations",2),Ou=new Cn(Fs,"None",3);Fs.className="AnimationManager",Fs.defineAnimationEffect=function(a,y){Du||(Ul(),Du=!0),Gu.add(a,y)},Fs.Default=ml,Fs.AnimateLocations=Iu,Fs.None=Ou;function Ns(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=sc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=sa,this.vc=new Ki,this.Tt=new Ki,this.yl=new Yn,this.Ut=new Yn,this.dw=Yd,a&&Object.assign(this,a)}Ns.prototype.suspend=function(){this.Xk=!0},Ns.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,$u(this,!0),Ms(this.Yd),lu(this.H),Gs(this.Yd),this.H.redraw()};function Hl(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Vc(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Vt&&z.diagram===null)){var ne=E.value,re=b?ne.end:ne.start;ne=b?ne.start:ne.end;var oe=Gu,ue;for(ue in ne)ue==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||oe.get(ue)===null||oe.get(ue)(z,re[ue],ne[ue],a.Lp,y,x,a)}}}Ne.stop=function(){return this.bc?(this.Ml(!0),this):this},Ne.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,Ms(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Gu;E.next();){var ne=E.key,re=E.value,oe=b?re.end:re.start,ue=b?re.start:re.end,ce=re.Ku,me;for(me in ue)if(z.get(me)!==null){var we=me;!re.Hu||we!=="position:nodeCollapse"&&we!=="position:placeholder"||(we="position"),z.get(we)(ne,oe[me],ce[me]!==void 0?ce[me]:re.Hu?oe[me]:ue[me],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&ne instanceof xr&&(ne.location=ce.location),re.nv&&ne instanceof xr&&ne.Zb(!1)}if(y.As.clear(),dh(y,!1),y.Ya(),y.N(),lu(y,!0),x.defaultAnimation===this){for(me=x.pr.iterator;me.next();)b=me.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}lu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Gs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Hl(this,null),x.Ml(this),y.$b())}},Ne.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof ho&&(E=y.placeholder),E!==null?(x=E.ga(Us),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new st(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ho)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ni&&this.Cj(E,y)},Ne.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ho&&(x=y.placeholder),x!==null){var E=x.ga(Us);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof ho)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ni&&this.Aj(E,y)}},Ne.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Qe.Object.defineProperties(Ns.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Kn(a,">= 1",Ns,"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 lc(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Ns.className="Animation",Ns.EaseLinear=function(a,y,x,E){return x*a/E+y},Ns.EaseInOutQuad=sc,Ns.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Ns.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Ns.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Ns.EaseOutExpo=lc;function Ku(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ku.className="AnimationState";function Tu(a,y,x){this.xd=null,this.rf=a,this.so=x||Ys,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=vl))}Tu.prototype.copy=function(){var a=new Tu(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 ws(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Qe.Object.defineProperties(Tu.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 Ys=new Cn(Tu,"Default",1),vl=new Cn(Tu,"Immediate",2),Xs=new Cn(Tu,"Bundled",3);Tu.className="AnimationTrigger",Tu.Default=Ys,Tu.Immediate=vl,Tu.Bundled=Xs;function ms(a){Ao(this),this.H=null,this.Pa=new Un,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)}Ne=ms.prototype,Ne.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,ne=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof ho?b++:oe instanceof Ni?E++:oe instanceof fi?z++:oe instanceof pa?ne++:x++}if(re="",0x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Ds(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Ds(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Ds(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ne.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(_o,a,this,y,x,E,b)},Ne.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Jl(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),xc(this,a,y),a},Ne.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Jl(y),a};function xc(a,y,x){if(y=jd(a,y,x),x instanceof ho&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ne=0;neE&&re.containingGroup===x&&(E=ne,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var re=y+1,oe=NaN;reE)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(oe)&&oe=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++rea||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function Rh(a,y){if(As){if(y!=null||Et("Diagram setup requires an argument DIV."),a.Ka!==null&&Et("Diagram has already completed setup."),typeof y=="string"?a.Ka=ht.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Et("No DIV or DIV id supplied: "+y),a.Ka===null&&Et("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Et("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ht.ResizeObserver){var x=fn(function(){a.$b()},250);a.ol=new ht.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ht.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ht.go;var b=new Gl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",ht.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),$d(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Gl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,As){b=Qn("div");var z=Qn("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Hf,b.addEventListener("pointerdown",fh),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=fn(function(){a.Yh=null,a.N()},300),a.Ov=fn(function(){Hd(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var re=Pu(a,ne,!0);re.bubbles=!0;var oe=0,ue=0;re.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(oe=0Math.abs(ne.deltaY)?-oe:-ue):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(oe=0Math.abs(ne.wheelDeltaY)?-oe:-ue):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(re.delta=0re||Math.abs(ue.y-ne.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():ku(oe,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType){if(re[1]!==null&&re[1].pointerId===ne.pointerId){re[1]=ne;return}if(re[0]===null)re[0]=ne;else return}else re[0]=ne;if(re[0].pointerId===ne.pointerId){re=_h(a,ne,!1,!1,!1,re[1]!==null);var oe=ht.document.elementFromPoint(ne.clientX,ne.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var ue=a,ce=ne;oe&&oe.H&&(ce=ne,ue=oe.H),re.targetDiagram=ue,Uc(a,ce,re),re.targetObject=null,a.doMouseMove(),ku(re,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var re=ne.pointerType==="touch"||ne.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ne.pointerId],ne.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ne.pointerId&&oe[0].pointerType===ne.pointerType)oe[1]!==null&&oe[1].pointerId===ne.pointerId&&(oe[1]=null);else{oe[0]=null,oe=_h(a,ne,!1,!0,!0,!1);var ue=ht.document.elementFromPoint(ne.clientX,ne.clientY)||null;ue!==null&&ue.shadowRoot!==void 0&&ue.shadowRoot!==null&&(ue=ue.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ue!==null&&ue.H instanceof dn&&ue.H!==a&&Uc(ue.H,ne,oe),ue===null&&(ue=ne.target),Uc(a,ne,oe),oe.clickCount=a.yq,oe.targetDiagram=Md(ne,ue),oe.targetObject=null,a.doMouseUp(),ku(oe,ne),re&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ne.pointerId]&&delete re[ne.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ne.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var re=a.oj;re[0]!==null&&re[0].pointerId===ne.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+bh[1]+bh[2]+"wI"+Eh.slice(1,5)]["b"+DS.slice(1,y)](E.Z,mf,y,y),E.Vc(!0),Qg(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}dn.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},dn.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function Qg(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(ht,"resize",a.Ov,!1)}function Bl(a){30De&&(this.position=pt.h(-(y.scrollWidth-this.Aa)+it-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re_e&&(this.position=pt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),st.free(pt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ce=E.right,De=b.right,z=E.bottom,_e=b.bottom,ne=E.x,me=b.x,re=E.y,E=b.y,we>=oe&&ne>=me&&ce<=De&&(x.style.width="1px"),Fe>=ue&&re>=E&&z<=_e&&(x.style.height="1px"))}},dn.prototype.computeBounds=function(a){return a===void 0&&(a=new Mn),Ml(this),gh(this,a)};function gh(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Hh?(y=oe>re?(ne-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}dn.prototype.zoomToFit=function(){var a=this.sj;this.sj=Yd,this.scale=Wd(this,Ru),a!==Yd&&(Vu(this,!1),ff(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ne=dn.prototype,Ne.BA=function(a,y){y===void 0&&(y=Ru);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Ru||y===Hh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Hh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new st(a.x,a.y)}},Ne.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new st(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ne.zz=function(a){if(a instanceof Vt){this.eq=a;var y=st.alloc();this.fq=this.op(a.ga(Us,y)),st.free(y)}else this.eq=null,this.fq=Ga};function ff(a,y,x,E,b,z){var ne=st.allocAt(a.pa.x,a.pa.y),re=ne.x,oe=ne.y;if(a.eq!==null){var ue=st.alloc();ue=a.eq.ga(Us,ue),re=ue.x-a.fq.x/a.scale,oe=ue.y-a.fq.y/a.scale,b=Cs,st.free(ue)}(z||a.scrollMode===Yd)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?re=y.left:rey.top?oe=y.top:oey;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Yn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof ho&&E.U&65536&&(E.U=E.U^65536)})}}Ne.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ho||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ho&&x.isVisible()&&gs(this,x);for(a.reset();a.next();)x=a.value,x instanceof fi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof pa&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function gs(a,y){for(var x=vi(),E=vi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof ho?(Pt(z)||kt(z)||Pf(z))&&gs(a,z):z instanceof fi?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bKt&&(it=bi.left,bt=bi.right),pt.height>hn&&(It=bi.top,Rt=bi.bottom)):(it=bi.left,bt=bi.right,It=bi.top,Rt=bi.bottom);var Xi=pt.width+it+bt,zi=pt.height+It+Rt;bi=a.scale;var hi=Xi>oe/bi,ti=zi>ue/bi;if(!(z||a.gf||a.Be||hi||ti))return!0;it=pt.x-it,oe=ce.x,bt=pt.right+bt,ue=ce.right+ne,It=pt.y-It;var lo=ce.y;pt=pt.bottom+Rt,ce=ce.bottom+re;var $r="1px";if(Rt="1px",a.scrollMode===Yd&&(hi||ti)&&(hi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hi=1,it+1ue+1&&(hi=Math.max((bt-ue)*bi+a.Aa,hi)),Kt+ne+1ce+1&&(hi=Math.max((pt-ce)*bi+a.ya,hi)),hn+re+1ue+1&&(ne=Math.max((bt-ue)*bi+a.Aa,ne)),Kt+1ce+1&&(re=Math.max((pt-ce)*bi+ne,re)),hn+1ue+1&&(y=a.position.x*bi)),a.tn)switch(a.bu){case"negative":y=-(De.scrollWidth-y-De.clientWidth);break;case"reverse":y=De.scrollWidth-y-De.clientWidth}return De.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hn+1ce+1&&(De.scrollTop=a.position.y*bi)),oe=a.Aa,ue=a.ya,De.style.width=oe+(a.gf?a.Db:0)+"px",De.style.height=ue+(a.Be?a.Db:0)+"px",x!==oe||E!==ue||a.animationManager.zb?(x=Mn.allocAt(b,me,we,Fe),a.onViewportBoundsChanged(x,a.viewportBounds,bi,z),Mn.free(x),!1):!0}Ne=dn.prototype,Ne.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Et("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&&Et('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(xa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ne.oi=function(a){this.partManager.oi(a);var y=this;Jf(a,function(x){zh(y,x)}),(a instanceof pa||a instanceof ho&&a.placeholder!==null)&&a.v(),a.data!==null&&Jf(a,function(x){vy(y.partManager,x)}),kt(a)!==!0&&Pf(a)!==!0||this.De.add(a),_1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(eg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(eg(a,a.actualBounds)),this.$b()},Ne.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Jf(a,function(x){yy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(eg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(eg(a,a.actualBounds)),this.$b()},Ne.remove=function(a){vh(this,a,!0)};function vh(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Wa,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ne.Is=function(a,y){if(y===void 0&&(y=!1),sn(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ne.Cy=function(a,y){fg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Wa,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ne.kA=function(a){if(a.diagram!==this&&Et("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Wa,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ne.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ne.Yw=function(a){return this.pf===null&&(this.pf=new Un),this.pf.add(a),this.model.Pe(a),this},Ne.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ne.Pe=function(a){return this.zg===null&&(this.zg=new Un),this.zg.add(a),this},Ne.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ne.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Aa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Eme.Pa.indexOf(Fe)&&me.oi(we,Fe,De):(Fe.isSelected=!1,Fe.isHighlighted=!1,Fe.Wb(),me.pc(De?we:-1,Fe,De)))}else me instanceof dn?typeof we=="number"&&Fe instanceof ms&&(y?(Fe.Xe(this),this.Wa.Gb(we,Fe)):this.Wa.mb(we)):Et("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Aa&&Et("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},dn.prototype.Ea=function(a){return this.undoManager.Ea(a)},dn.prototype.eb=function(a){return this.undoManager.eb(a)},dn.prototype.Kf=function(){return this.undoManager.Kf()},dn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},dn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},dn.prototype.rp=function(){this.partManager.rp()};function gg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Jc(a),a.N(),a.Ee=!0,E.zb&&(Fl(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Jc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,ue=a.contentAlignment;isNaN(re)&&(ue.$c()?ue.Hf(Qi)?re=0:ue.Hf(Gi)&&(re=z-1):re=ue.sb()?ue.x*(z-1):z/2),isNaN(oe)&&(ue.$c()?ue.Hf(ai)?oe=0:ue.Hf(ki)&&(oe=ne-1):oe=ue.sb()?ue.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=st.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,st.free(z),a.Ca=x,Jc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Vu(a,!1),E.zb&&(Fl(E)||E.ce.add(E.H,"scale",y,a.Ca))}}dn.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==iu||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof jo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Hs(b,this)),this.vb||this.invalidateViewport(a,y),Xc(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Xc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=pi.alloc(),b=1,z=1,ne=x.O.s,re=ne.length,oe=0;oece||(bv(ue.figure)?z=z*ce/nt.vx(z,ce):b=b*ce/nt.vx(b,ce))}if(ne=x.gridCellSize,E.h(z*ne.width,b*ne.height),y!==void 0)b=y.width,z=y.height,a=y.x,ne=y.y;else{if(y=Mn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Mn.free(y);return}b=y.width,z=y.height,a=y.x,ne=y.y,Mn.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=st.alloc(),nt.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),pi.free(E),x.part.location=y,st.free(y)}}dn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Zl(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)Pg(a,ne.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Ml(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||dl(z),a.aa=x}}}function Pg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Pg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),gs(a,y),b.isValidLayout=!0):a.xh=!0)}}Ne.yz=function(){for(var a=new Un,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Hp(a){function y(b){var z=b.toLowerCase(),ne=new Un;x.add(b,ne),x.add(z,ne),E.add(b,b),E.add(z,b)}var x=new Ki,E=new Ki;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function qg(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Vd(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Et("Unknown DiagramEvent name: "+y)}Ne.Bj=function(a,y){return a=Vd(this,a),a!==null&&a.add(y),this},Ne.am=function(a,y){a=Vd(this,a),a!==null&&a.remove(y)},Ne.R=function(a,y,x){var E=Vd(this,a),b=new kr;if(b.diagram=this,a=qg(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=Mn.allocAt(0,0,E.width*b,E.height*b);var z=st.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-x.right/2&&(z.x+=ne),a.x>E.x+E.width-x.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-x.bottom/2&&(z.y+=ne),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ne)),z.Xa(sa)||(y=new st(y.x+z.x/b,y.y+z.y/b)),Mn.free(E),st.free(z),y},Ne=dn.prototype,Ne.Cs=function(){return null},Ne.av=function(){return null},Ne.bs=function(a,y){this.pj.add(a,y)},Ne.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ho&&(y.$p=null)})};function Ph(a,y,x){function E(){var ce=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||ce-ue>oe?y(x,b,re):ht.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,ue=+new Date;return ht.requestAnimationFrame(function(){E()}),null}Ne.Wz=function(a){return As?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ne.Jx=function(a){return a===void 0&&(a={}),Ph(this,this.Xz,a)},Ne.Xz=function(a,y,x){var E=tp(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Eh+"data":b=E.getImageData(0,0,x.width,x.height);break;case Eh:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Et('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function tp(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Et("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new pi(1/0,1/0):new pi(2e3,2e3));var re=y.position||null,oe=y.parts||null,ue=y.padding===void 0?1:y.padding,ce=y.background||null,me=y.omitTemporary;me===void 0&&(me=!0);var we=y.document||document,Fe=y.elementFinished||null,De=y.showTemporary;De===void 0&&(De=!me),y=y.showGrid,y===void 0&&(y=De),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof ue=="number"?ue=new hr(ue):ue instanceof hr||Et("MakeImage padding must be a Margin or a number."),ue.left=Math.max(ue.left,0),ue.right=Math.max(ue.right,0),ue.top=Math.max(ue.top,0),ue.bottom=Math.max(ue.bottom,0),a.ib.Vc(!0),me=new Gl(null,we,void 0,!0);var _e=me.context;if(!(b||z||oe||re))return me.width=a.Aa+Math.ceil(ue.left+ue.right),me.height=a.ya+Math.ceil(ue.top+ue.bottom),x==="SVG"?E===null?null:(E.resize(me.width,me.height,me.width,me.height),E.ownerDocument=we,E.hs=Fe,Js(a,E.context,ue,new pi(me.width,me.height),a.Ca,a.pa,oe,ce,De,y),E.context):(a.Xm=!1,Js(a,_e,ue,new pi(me.width,me.height),a.Ca,a.pa,oe,ce,De,y),a.Xm=!0,me.context);var pt=a.Pp,it=a.documentBounds.copy();if(it.Fv(a.yb),De)for(var bt=a.Wa.s,It=bt.length,Rt=0;Rtpt?(z=pt,b=it.width,it=it.height):(b=ne.width,it=ne.height)):(b=it.width*z,it=it.height*z):(z=pt,b=it.width,it=it.height),ue!==null?(b+=re,it+=It):ue=new hr(0),ne!==null&&(pt=ne.width,ne=ne.height,isNaN(pt)&&(pt=2e3),isNaN(ne)&&(ne=2e3),isFinite(pt)&&(b=Math.min(b,pt)),isFinite(ne)&&(it=Math.min(it,ne))),me.width=Math.ceil(b),me.height=Math.ceil(it),x==="SVG"?E===null?null:(E.resize(me.width,me.height,me.width,me.height),E.ownerDocument=we,E.hs=Fe,Js(a,E.context,ue,new pi(Math.ceil(b),Math.ceil(it)),z,bt,oe,ce,De,y),E.context):(a.Xm=!1,Js(a,_e,ue,new pi(Math.ceil(b),Math.ceil(it)),z,bt,oe,ce,De,y),a.Xm=!0,me.context)}Qe.Object.defineProperties(dn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ye||(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 Jo(this,ht.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 Jo(this,ht.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(ht,"resize",this.Ov,!1),this.removeEventListener(ht,"wheel",this.$j,!0),Bc===this&&(Bc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Rh(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&&Kn(a,">= 0",dn,"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&&Kn(a,">= 0",dn,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",dn,"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||pg(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&&Et("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=zd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Zl(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=mg(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Kn(a,"> 0",dn,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",dn,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Vu(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new hr(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&&Et("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();)Qp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Ld&&a!==Ks&&a!==Ch&&Et("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 pi(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 hr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Qe.Object.defineProperties(dn,{licenseKey:{get:function(){return Mg.jc()},set:function(a){Mg.add(a.replace(/\s/g,""))}},version:{get:function(){return Xd}}}),dn.prototype.makeImageData=dn.prototype.Jx,dn.prototype.makeImage=dn.prototype.Wz,dn.prototype.cacheGroupExternalLinks=dn.prototype.Fu,dn.prototype.addRenderer=dn.prototype.bs,dn.prototype.makeSVG=dn.prototype.av,dn.prototype.makeSvg=dn.prototype.Cs,dn.prototype.stopAutoScroll=dn.prototype.ug,dn.prototype.doAutoScroll=dn.prototype.gs,dn.prototype.isUnoccupied=dn.prototype.Yj,dn.prototype.raiseDiagramEvent=dn.prototype.R,dn.prototype.removeDiagramListener=dn.prototype.am,dn.prototype.addDiagramListener=dn.prototype.Bj,dn.prototype.findTreeRoots=dn.prototype.yz,dn.prototype.layoutDiagram=dn.prototype.Uz,dn.prototype.findTopLevelGroups=dn.prototype.qz,dn.prototype.findTopLevelNodesAndLinks=dn.prototype.rz,dn.prototype.ensureBounds=dn.prototype.Va,dn.prototype.findLinksByExample=dn.prototype.ls,dn.prototype.findNodesByExample=dn.prototype.ms,dn.prototype.findLinkForData=dn.prototype.Kc,dn.prototype.findNodeForData=dn.prototype.ii,dn.prototype.findPartForData=dn.prototype.Lc,dn.prototype.findLinkForKey=dn.prototype.findLinkForKey,dn.prototype.findNodeForKey=dn.prototype.Vb,dn.prototype.findPartForKey=dn.prototype.findPartForKey,dn.prototype.rebuildParts=dn.prototype.Wd,dn.prototype.transformViewToDoc=dn.prototype.Ps,dn.prototype.transformRectDocToView=dn.prototype.zA,dn.prototype.transformDocToView=dn.prototype.op,dn.prototype.centerRect=dn.prototype.es,dn.prototype.scrollToRect=dn.prototype.tv,dn.prototype.scroll=dn.prototype.scroll,dn.prototype.highlightCollection=dn.prototype.Jz,dn.prototype.highlight=dn.prototype.Iz,dn.prototype.selectCollection=dn.prototype.rA,dn.prototype.select=dn.prototype.select,dn.prototype.updateAllRelationshipsFromData=dn.prototype.rp,dn.prototype.updateAllTargetBindings=dn.prototype.updateAllTargetBindings,dn.prototype.commit=dn.prototype.commit,dn.prototype.rollbackTransaction=dn.prototype.Kf,dn.prototype.commitTransaction=dn.prototype.eb,dn.prototype.startTransaction=dn.prototype.Ea,dn.prototype.raiseChanged=dn.prototype.g,dn.prototype.raiseChangedEvent=dn.prototype.cb,dn.prototype.removeChangedListener=dn.prototype.ik,dn.prototype.addChangedListener=dn.prototype.Pe,dn.prototype.removeModelChangedListener=dn.prototype.mA,dn.prototype.addModelChangedListener=dn.prototype.Yw,dn.prototype.findLayer=dn.prototype.Qj,dn.prototype.removeLayer=dn.prototype.kA,dn.prototype.addLayerAfter=dn.prototype.Cy,dn.prototype.addLayerBefore=dn.prototype.Ww,dn.prototype.addLayer=dn.prototype.Al,dn.prototype.moveParts=dn.prototype.moveParts,dn.prototype.copyParts=dn.prototype.Kj,dn.prototype.removeParts=dn.prototype.Is,dn.prototype.remove=dn.prototype.remove,dn.prototype.add=dn.prototype.add,dn.prototype.clearDelayedGeometries=dn.prototype.bx,dn.prototype.setProperties=dn.prototype.nm,dn.prototype.attach=dn.prototype.Du,dn.prototype.set=dn.prototype.set,dn.prototype.resetInputOptions=dn.prototype.Sx,dn.prototype.setInputOption=dn.prototype.sA,dn.prototype.getInputOption=dn.prototype.Ql,dn.prototype.resetRenderingHints=dn.prototype.Tx,dn.prototype.setRenderingHint=dn.prototype.Xx,dn.prototype.getRenderingHint=dn.prototype.Gf,dn.prototype.maybeUpdate=dn.prototype.bd,dn.prototype.requestUpdate=dn.prototype.$b,dn.prototype.delayInitialization=dn.prototype.Xy,dn.prototype.isUpdateRequested=dn.prototype.Pz,dn.prototype.invalidateDocumentBounds=dn.prototype.Ya,dn.prototype.findObjectsNear=dn.prototype.og,dn.prototype.findPartsNear=dn.prototype.mz,dn.prototype.findObjectsIn=dn.prototype.Cf,dn.prototype.findPartsIn=dn.prototype.ux,dn.prototype.findObjectsAt=dn.prototype.ji,dn.prototype.findPartsAt=dn.prototype.lz,dn.prototype.findObjectAt=dn.prototype.ic,dn.prototype.findPartAt=dn.prototype.Ol,dn.prototype.focusObject=dn.prototype.zz,dn.prototype.alignDocument=dn.prototype.Jy,dn.prototype.zoomToRect=dn.prototype.BA,dn.prototype.zoomToFit=dn.prototype.zoomToFit,dn.prototype.diagramScroll=dn.prototype.kx,dn.prototype.focus=dn.prototype.focus;var Uf=new Ki,np=null,As=ht.document!==void 0,Zh=null,Ud="",iu=new Cn(dn,"None",0),Ru=new Cn(dn,"Uniform",1),Hh=new Cn(dn,"UniformToFill",2),wh=new Cn(dn,"CycleAll",10),Cg=new Cn(dn,"CycleNotDirected",11),Eg=new Cn(dn,"CycleNotDirectedFast",12),bg=new Cn(dn,"CycleNotUndirected",13),Fg=new Cn(dn,"CycleDestinationTree",14),Bg=new Cn(dn,"CycleSourceTree",15),Yd=new Cn(dn,"DocumentScroll",1),pf=new Cn(dn,"InfiniteScroll",2),Ld=new Cn(dn,"TreeParentCollapsed",21),Ks=new Cn(dn,"AllParentsCollapsed",22),Ch=new Cn(dn,"AnyParentsCollapsed",23),Mg=new Un,Xd="2.3.10",Eh="image",mf=null,ip=!1;function Yl(){if(As){var a=ht.document.createElement("canvas"),y=a.getContext("2d"),x=Tn("7ca11abfd022028846");y[x]=Tn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",en.Dx+"4ae6247590da4bb21c324ba3a84e385776",Yt.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",nt.za],b=1;5>b;b++)y[Tn("7ca11abfd7330390")](Tn(E[b-1]),10,15*b);for(y[x]=Tn("39f046ebb36e4b"),x=1;5>x;x++)y[Tn("7ca11abfd7330390")](Tn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Yt.prototype.Cd=Yt.prototype.Eu),mf=a}}dn.className="Diagram",dn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ht.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof dn?y.H:null},dn.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},dn.useDOM=function(a){As=a?ht.document!==void 0:!1},dn.isUsingDOM=function(){return As},dn.None=iu,dn.Uniform=Ru,dn.UniformToFill=Hh,dn.CycleAll=wh,dn.CycleNotDirected=Cg,dn.CycleNotDirectedFast=Eg,dn.CycleNotUndirected=bg,dn.CycleDestinationTree=Fg,dn.CycleSourceTree=Bg,dn.DocumentScroll=Yd,dn.InfiniteScroll=pf,dn.TreeParentCollapsed=Ld,dn.AllParentsCollapsed=Ks,dn.AnyParentsCollapsed=Ch;function rp(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Jd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=ht[Tn("76a715b2f73f148a")][Tn("72ba13b5")]||"";if(a.Rc=!0,As){var E=dn[Tn("76a115b6ed251eaf4692")];if(E)for(var b=Mg.iterator;b.next()&&(E=b.value,E=Tn(E).split(Tn("39e9")),!(6>E.length));){var z=Tn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=Tn(en[Tn("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var re=ht[Tn("74a900bae4370f8b51")][Tn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=re[Tn("73a612b6fb191d")](Tn("3aad1ab6e022098b4dc4")),z=Tn(E[2]),-1ne&&z!==Tn("7da71ca0ad381e90")&&(ne=y[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>ne&&(ne=y[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>ne&&(ne=y[Tn("73a612b6fb191d")](Tn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[Tn("73a612b6fb191d")](Tn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&nere),!a.Rc)))break;if(z[0]==="#"){ne=ht.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ne[Tn("79a417a0f0181a8946")]=E,ht.document[Tn("78a712aa")]){ht.document[Tn("78a712aa")][Tn("7bb806b6ed32388c4a875b")](ne),oe=ht.getComputedStyle(ne).getPropertyValue(Tn("78a704b7e62456904c9b12701b6532a8"));var ue=ht.getComputedStyle(ne).getPropertyValue(Tn("75b817b0ea2202"));if(ht.document[Tn("78a712aa")][Tn("68ad1bbcf533388c4a875b")](ne),oe){if(ne=ht[Tn("77a902b0eb1b1e804a8a")],ue==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(Tn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Je(E)},x.autoScale=Ru,x.vb=!1,y&&Object.assign(x,y),x}$t(ye,dn),ye.prototype.computePixelRatio=function(){return 1},ye.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(cc(this),this.ql===null){var x=new Gl(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),Re(this)}finally{this.ta=a,this.ib=y}}}dn.prototype.redraw.call(this)},ye.prototype.gc=function(){if(this.Ka===null&&Et("No div specified"),this.ta===null&&Et("No canvas specified"),!(this.ta instanceof Jo)&&($v(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){cc(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?Re(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ye.className="Overview";function mt(){as.call(this),this.j=null}$t(mt,as),mt.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))},gt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==iu?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},gt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===iu&&(a=y.scale*a,ay.maxScale||(y.scale=a))},gt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==iu?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},gt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},gt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},gt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Zl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Do):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),dl(y)},gt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},gt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0a&&(a+=360)),a},Ne.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ne.qs=function(a,y){return y===void 0&&(y=new st),y.assign(a),this.oe.Cd(y),y},Ne.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ne.Sj=function(a,y,x,E,b){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,oe=-z.m12*ne,ue=-z.m21*ne,ce=z.m11*ne,me=ne*(z.m21*z.dy-z.m22*z.dx),we=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,nt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ne=a*re+y*ue+me,a=a*oe+y*ce+we,y=x*re+E*ue+me,x=x*oe+E*ce+we,b.h(0,0),E=this.naturalBounds,x=nt.Ff(0,0,E.width,E.height,ne,a,y,x,b),b.transform(z),x)},Vt.prototype.measure=function(a,y,x,E){if(Pt(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ne:a,y=isFinite(b.width)?b.width+ne:y):(a=isFinite(b.width)?b.width+ne:a,y=isFinite(b.height)?b.height+ne:y),b=x||0,ne=E||0;var re=this instanceof ui;switch(fu(this,!0)){case ii:ne=b=0,re&&(y=a=1/0);break;case si:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ne=y);break;case dr:isFinite(a)&&a>x&&(b=a),ne=0,re&&(y=1/0);break;case Mr:isFinite(y)&&y>E&&(ne=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.widthre.height&&oe.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Et("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ht(this,!1),Mn.free(z)},Ne=Vt.prototype,Ne.eh=function(){};function ru(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=z.width+y,z=z.height+ne,E+=y,b+=ne,y=fu(a,!0),x===E&&z===b&&(y=ii),y){case ii:(x>E||z>b)&&(yt(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case si:yt(a,!0),a.measure(E,b,0,0);break;case dr:yt(a,!0),a.measure(E,z,0,0);break;case Mr:yt(a,!0),a.measure(x,b,0,0)}}}Ne.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Uv(x,!0),this.N(),Ol(a,y)||(x.oh(),this.Pn(x)))},Ne.Pn=function(a){this.portId!==null&&(Uv(a,!0),a instanceof Ni&&G1(a,this))},Ne.gc=function(a,y){if(!Yu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ui&&$h(this),ne=this.Ib;if(z){var re=this.Ib,oe=this.dc,ue=this.areaBackground,ce=this.Ma;ue===null&&ce===null||a.yc(),ue!==null&&(Ds(this,a,ue,!0,!0,oe,re),ue instanceof ha&&ue.type===Nc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),ce!==null&&(Ds(this,a,ce,!0,!1,oe,re),ce instanceof ha&&ce.type===Nc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,re=this.panel,this.l&4096&&Sl(this),ue=this.part,oe=!1;var me=0;ue&&y.Gf("drawShadows")&&(oe=ue.isShadowed)&&(ce=ue.shadowOffset,me=Math.max(ce.y,ce.x)*y.scale*y.Mb),ce=this.Dd();var we;if(!(we=y.$i||!ce)){var Fe=this.naturalBounds;we=this.wh;var De=we.m11,_e=we.m21,pt=we.dx,it=we.m12,bt=we.m22,It=we.dy,Rt,Kt=Rt=0;we=Rt*De+Kt*_e+pt;var hn=Rt*it+Kt*bt+It;Rt=Fe.width+me,Kt=0;var bi=Rt*De+Kt*_e+pt;Rt=Rt*it+Kt*bt+It,Kt=Math.min(we,bi);var Xi=Math.min(hn,Rt),zi=Math.max(we+0,bi)-Kt,hi=Math.max(hn+0,Rt)-Xi;we=Kt,hn=Xi,Rt=Fe.width+me,Kt=Fe.height+me,bi=Rt*De+Kt*_e+pt,Rt=Rt*it+Kt*bt+It,Kt=Math.min(we,bi),Xi=Math.min(hn,Rt),zi=Math.max(we+zi,bi)-Kt,hi=Math.max(hn+hi,Rt)-Xi,we=Kt,hn=Xi,Rt=0,Kt=Fe.height+me,bi=Rt*De+Kt*_e+pt,Rt=Rt*it+Kt*bt+It,Kt=Math.min(we,bi),Xi=Math.min(hn,Rt),zi=Math.max(we+zi,bi)-Kt,hi=Math.max(hn+hi,Rt)-Xi,we=Kt,hn=Xi,me=y.viewportBounds,Fe=me.x,De=me.y,we=!(we>me.width+Fe||Fe>zi+we||hn>me.height+De||De>hi+hn)}if(we){if(we=(this.l&256)!==0,a.clipInsteadOfFill&&(we=!1),this instanceof es&&(a.font=this.font),we){if(hn=re.se()?re.naturalBounds:re.actualBounds,zi=Math.max(ne.x,hn.x),hi=Math.max(ne.y,hn.y),me=Math.min(ne.right,hn.right)-zi,Fe=Math.min(ne.bottom,hn.bottom)-hi,De=this.tb,De!==null&&(zi=De.x,hi=De.y,me=De.width,Fe=De.height),zi>ne.width+ne.x||ne.x>hn.width+hn.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(zi,hi,me,Fe),a.clip()}if(ce){if(!ue.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(hn=ue.shadowOffset,a.Ev(hn.x*y.scale*this.scale*y.Mb,hn.y*y.scale*this.scale*y.Mb,ue.shadowBlur),Il(a),a.shadowColor=ue.shadowColor)}oe&&this.shadowVisible===!0?Il(a):oe&&this.shadowVisible===!1&&gu(a),ue=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Uu(this,a,ue,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&xl(this,re)&&this.shadowVisible===null&&gu(a),this.Ma!==null&&(a.yc(),wu(this,a,ue,ne)),oe&&(this.Ma!==null||this.areaBackground!==null||xl(this,re))?(Pc(this,!0),this.shadowVisible===null&&gu(a)):Pc(this,!1),this.hh(a,y),oe&&this.l&512&&Il(a),ce&&oe&&gu(a),we&&(a.restore(),a.Vc(this instanceof ui)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function xl(a,y){return y===null?!1:($h(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ui.Auto||y.type===ui.Spot)&&y.Pb()!==a)}Ne.Dv=function(){};function Uu(a,y,x,E){Ds(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof ha&&a.areaBackground.type===Nc?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function wu(a,y,x,E){var b=a.kq(),z=x.x,ne=x.y,re=x.width+b,oe=x.height+b;Ds(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof ha&&a.Ma.type===Nc?(y.beginPath(),y.rect(z-b/2,ne-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ne-b/2,re,oe)}function Xl(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ne=0;neb)&&Et("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Et("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new yr;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);uc(a,b)}else uc(a,y);else Et('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Fn(a,y){Ii.add(a,y)}function ni(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Qe.Object.defineProperties(Vt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Gr),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 Gr),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 Gr),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Mo(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&&(Mo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Eu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new no),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Eu&&(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 no),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&&Et("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,Wn(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Co&&this.qc(),this.g("desiredSize",E,a),Se(this)&&(a=this.part,a!==null&&(rs(this,a,"width"),rs(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 pi(a,this.jd.height).freeze(),this.v(),this instanceof Co&&this.qc(),this.g("desiredSize",y,a),Se(this)&&(a=this.part,a!==null&&rs(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 pi(this.jd.width,a).freeze(),this.v(),this instanceof Co&&this.qc(),this.g("desiredSize",y,a),Se(this)&&(a=this.part,a!==null&&rs(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:io},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(),Mo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:$a},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(),Mo(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 hr(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&&Sl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Sl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Mo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ii},set:function(a){this.reshapingBehavior!==a&&(Mo(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()&&Et("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),uu(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&&Kn(a,">= 0",Vt,"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&&Kn(a,">= 1",Vt,"columnSpan"),Mo(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&&Kn(a,">= 0",Vt,"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&&Kn(a,">= 1",Vt,"rowSpan"),Mo(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&&(Mo(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 Ni||Et("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Qv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,V1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Cs},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),xn(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Vt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),xn(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),xn(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&&Kn(a,">= 0",Vt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Cs},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),xn(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Vt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),xn(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),xn(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&&Kn(a,">= 0",Vt,"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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(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&&(Mo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Vt.prototype.trigger=Vt.prototype.Jv,Vt.prototype.findBindingPanel=Vt.prototype.ih,Vt.prototype.findTemplateBinder=Vt.prototype.pz,Vt.prototype.setProperties=Vt.prototype.nm,Vt.prototype.apply=Vt.prototype.apply,Vt.prototype.attach=Vt.prototype.Du,Vt.prototype.set=Vt.prototype.set,Vt.prototype.isEnabledObject=Vt.prototype.If,Vt.prototype.isVisibleObject=Vt.prototype.Ed,Vt.prototype.isContainedBy=Vt.prototype.rg,Vt.prototype.getNearestIntersectionPoint=Vt.prototype.rs,Vt.prototype.getLocalPoint=Vt.prototype.qs,Vt.prototype.getDocumentScale=Vt.prototype.Df,Vt.prototype.getDocumentAngle=Vt.prototype.li,Vt.prototype.getDocumentBounds=Vt.prototype.mi,Vt.prototype.getDocumentPoint=Vt.prototype.ga,Vt.prototype.intersectsRect=Vt.prototype.Yc,Vt.prototype.containedInRect=Vt.prototype.fh,Vt.prototype.containsRect=Vt.prototype.Re,Vt.prototype.containsPoint=Vt.prototype.ca,Vt.prototype.raiseChanged=Vt.prototype.g,Vt.prototype.raiseChangedEvent=Vt.prototype.cb,Vt.prototype.addCopyProperty=Vt.prototype.Vw;var Ii=null;Vt.className="GraphObject",Ii=new Ki,Fn("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=An(ui,ui.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ui){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},An(Co,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Ji(0,0,2.76142374915397,2.761423749153969),spot2:new Ji(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ui&&(x=E.fb("ButtonBorder"),x instanceof Co)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ui&&(x=E.fb("ButtonBorder"),x instanceof Co&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ui&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Co){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ne,ne=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ne,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ui&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Co){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ui&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Co){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ui&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Co))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ne=E._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=E._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),b.skipsUndoManager=z}}},y}),Fn("TreeExpanderButton",function(){var a=An("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},An(Co,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ca},new tl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new tl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof pa&&(x=x.adornedPart),x instanceof Ni){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Fn("SubGraphExpanderButton",function(){var a=An("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},An(Co,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ca},new tl("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 pa&&(x=x.adornedPart),x instanceof ho){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Fn("ToolTip",function(){return An(pa,ui.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new st(0,3),shadowBlur:5},An(Co,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Ji(0,0,4,6),spot2:new Ji(1,1,-4,-4)}))}),Fn("ContextMenu",function(){return An(pa,ui.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new st(0,3),shadowBlur:5},new tl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Fn("ContextMenuButton",function(){var a=An("Button");a.stretch=dr;var y=a.fb("ButtonBorder");return y instanceof Co&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Ji(0,0,2,3),y.spot2=new Ji(1,1,-2,-2)),a}),Fn("PanelExpanderButton",function(a){var y=ni(a,"COLLAPSIBLE"),x=An("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},An(Co,{name:"ButtonIcon",strokeWidth:2},new tl("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Co&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ne=b.ih();ne===null&&(ne=b.part),ne!==null&&(b=ne.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Fn("CheckBoxButton",function(a){var y=ni(a);return a=An("Button",{desiredSize:new pi(14,14)},An(Co,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:si,geometryStretch:tr,visible:!1},y!==""?new tl("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ui){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Fn("CheckBox",function(a){a=ni(a),a=An("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new hr(0,1,0,0)});var y=An(ui,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new hr(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}),Vt.None=ii=new Cn(Vt,"None",0),Vt.Default=so=new Cn(Vt,"Default",0),Vt.Vertical=Mr=new Cn(Vt,"Vertical",4),Vt.Horizontal=dr=new Cn(Vt,"Horizontal",5),Vt.Fill=si=new Cn(Vt,"Fill",3),Vt.Uniform=tr=new Cn(Vt,"Uniform",1),Vt.UniformToFill=Zo=new Cn(Vt,"UniformToFill",2),Vt.FlipVertical=Bo=new Cn(Vt,"FlipVertical",1),Vt.FlipHorizontal=ea=new Cn(Vt,"FlipHorizontal",2),Vt.FlipBoth=_a=new Cn(Vt,"FlipBoth",3),Vt.make=An,Vt.getBuilders=function(){var a=new Ki,y;for(y in Ii)if(y!==y.toLowerCase()){var x=Ii.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Vt.defineBuilder=Fn,Vt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ne=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-x)}},ko.className="STransform";function na(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}na.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},na.className="SGradient";function Jo(a,y,x){this.ownerDocument=a=y===void 0?ht.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 Ia(this,x)}Jo.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Jo.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),tn(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Jo.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Jo.prototype.focus=function(){this.Oa.focus()},Jo.prototype.mx=function(){this.ownerDocument=null},Qe.Object.defineProperties(Jo.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}}}),Jo.className="SVGSurface";function Ia(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 ko,this.j=wc(this),this.Nj=wc(this,"gojs-diagram"),this.Hl=this.ti=null;var x=qo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function ds(a,y,x,E,b,z,ne){a.Nj===void 0?Lc(a,y,x,E,b,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ne+")")}Ne=Ia.prototype,Ne.arc=function(a,y,x,E,b,z,ne,re){var oe=2*Math.PI,ue=oe-1e-6,ce=x*Math.cos(E),me=x*Math.sin(E),we=a+ce,Fe=y+me,De=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%oe+oe),E>ue?(this.path.push(["A",x,x,0,1,De,a-ce,y-me]),this.path.push(["A",x,x,0,1,De,we,Fe])):1e-6=Math.PI),De,a+x*Math.cos(b),y+x*Math.sin(b)])},Ne.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ne.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ne.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ne.clearRect=function(){},Ne.clip=function(){this.Yl.clipPath=!0},Ne.closePath=function(){this.path.push(["z"])},Ne.createLinearGradient=function(a,y,x,E){var b=new na("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ne.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+qo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Eh,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ne.createRadialGradient=function(a,y,x,E,b,z){var ne=new na("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=E,ne.y2=b,ne.r2=z,ne};function ks(a,y,x,E,b,z,ne,re,oe){E=re/E,b=oe/b,z===0&&ne===0||a.rb.translate(z,ne),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ne.drawImage=function(a,y,x,E,b,z,ne,re,oe){var ue="";a instanceof HTMLCanvasElement&&(ue=a.toDataURL()),a instanceof HTMLImageElement&&(ue=a.getAttribute("src"));var ce=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ne=x,re=E=ce,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,ks(this,y,x,E,b,z||0,ne||0,re,oe),z={x:0,y:0,width:ce||E,height:a||b,href:ue},nt.$(E,re)&&nt.$(b,oe)?ue.toLowerCase().indexOf(".svg")===-1&&ue.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ce||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Is(this,Eh,z,this.rb),this.addElement(Eh,z)},Ne.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Wl(this,this.Yl)},Ne.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ne.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Is(this,"fill",a,this.rb),this.addElement("rect",a)},Ne.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Is(this,"fill",a,this.rb),Wl(this,a),this.svg.prepend(this.Ud("rect",a))},Ne.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},Is(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ne.lineTo=function(a,y){this.path.push(["L",a,y])},Ne.moveTo=function(a,y){this.path.push(["M",a,y])},Ne.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ne.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ne.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},Ne.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;yce.offset?1:-1}),b=0;bx?(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)},Ne.jk=function(){this.Hm||this.stroke()},Ne.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ne.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ne.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vf),a.lineDashOffset=0)},Ne.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ne.Hs=function(){},Qe.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 vf=Object.freeze([]);fd.className="CanvasSurfaceContext";function gd(){this.F=this.o=this.u=this.j=0}gd.className="ColorNumbers";function ha(a,y){sp||(ap(),sp=!0),Ao(this),this._isFrozen=!1,a===void 0?(this.na=Gh,this.xk="black"):typeof a=="string"?(this.na=Gh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Bh?(this.Qd=$l,this.Lk=En):this.Lk=a===Nc?this.Qd=Oo:this.Qd=Cs,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ha.prototype.copy=function(){var a=new ha;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},Ne=ha.prototype,Ne.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ne.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ne.qb=function(a){a.classType===ha&&(this.type=a)},Ne.toString=function(){var a="Brush(";if(this.type===Gh)a+=this.color;else if(a=this.type===Bh?a+"Linear ":this.type===Nc?a+"Radial ":this.type===lp?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+")"},Ne.addColorStop=function(a,y){return this._isFrozen&&wn(this),(typeof a!="number"||!isFinite(a)||1a)&&Kn(a,"0 <= loc <= 1",ha,"addColorStop:loc"),this.we===null&&(this.we=new Ki),this.we.add(a,y),this.na===Gh&&(this.type=Bh),this.xe=null,this},Ne.Vz=function(a,y){if(this._isFrozen&&wn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?up:y,this.type===Gh)Cc(this.color),this.color=Fh(a,y);else if((this.type===Bh||this.type===Nc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Cc(x.value),this.addColorStop(x.key,Fh(a,y));return this};function Wh(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?up:x,Cc(a),Fh(y,x)}Ne.Wy=function(a,y){if(this._isFrozen&&wn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?up:y,this.type===Gh)Cc(this.color),this.color=Fh(-a,y);else if((this.type===Bh||this.type===Nc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Cc(x.value),this.addColorStop(x.key,Fh(-a,y));return this};function Lg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?up:x,Cc(a),Fh(-y,x)}function pd(a,y,x){Cc(a),a=Ya.j;var E=Ya.u,b=Ya.o,z=Ya.F;return Cc(y),x===void 0&&(x=.5),"rgba("+Math.round((Ya.j-a)*x+a)+", "+Math.round((Ya.u-E)*x+E)+", "+Math.round((Ya.o-b)*x+b)+", "+Math.round((Ya.F-z)*x+z)+")"}Ne.Gx=function(){if(this.type===Gh)return Qd(this.color);if((this.type===Bh||this.type===Nc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Nc)return Qd(a.first().value);if(a.get(.5)!==null)return Qd(a.get(.5));if(a.count===2)return a=a.Fa(),Qd(pd(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ne=y.key,re=Math.abs(.5-y.key);b>z&&re=b&&reE&&(z=x,x=E,E=z,z=b),b=E-x,Qd(pd(a.get(x),a.get(E),1-z/b))}return!1};function Qd(a){return a?a instanceof ha?a.Gx():(Cc(a),128>(299*Ya.j+587*Ya.u+114*Ya.o)/1e3):!1}function Fh(a,y){switch(y){case up:y=100*Xf(Ya.j);var x=100*Xf(Ya.u),E=100*Xf(Ya.o);return kl.j=.4124564*y+.3575761*x+.1804375*E,kl.u=.2126729*y+.7151522*x+.072175*E,kl.o=.0193339*y+.119192*x+.9503041*E,kl.F=Ya.F,y=Wp(kl.j/Sf[0]),x=Wp(kl.u/Sf[1]),E=Wp(kl.o/Sf[2]),zc.j=116*x-16,zc.u=500*(y-x),zc.o=200*(x-E),zc.F=kl.F,zc.j=Math.min(100,Math.max(0,zc.j+100*a)),a=(zc.j+16)/116,y=a-zc.o/200,kl.j=Sf[0]*Ng(zc.u/500+a),kl.u=Sf[1]*(zc.j>xf*Ag?Math.pow(a,3):zc.j/xf),kl.o=Sf[2]*Ng(y),kl.F=zc.F,a=-.969266*kl.j+1.8760108*kl.u+.041556*kl.o,y=.0556434*kl.j+-.2040259*kl.u+1.0572252*kl.o,Ya.j=255*op((3.2404542*kl.j+-1.5371385*kl.u+-.4985314*kl.o)/100),Ya.u=255*op(a/100),Ya.o=255*op(y/100),Ya.F=kl.F,Ya.j=Math.round(Ya.j),255Ya.j&&(Ya.j=0),Ya.u=Math.round(Ya.u),255Ya.u&&(Ya.u=0),Ya.o=Math.round(Ya.o),255Ya.o&&(Ya.o=0),"rgba("+Ya.j+", "+Ya.u+", "+Ya.o+", "+Ya.F+")";case i1:return Yf(),Ju.o=Math.min(100,Math.max(0,Ju.o+100*a)),"hsla("+Ju.j+", "+Ju.u+"%, "+Ju.o+"%, "+Ju.F+")";default:Et("Unknown color space: "+y)}}function Cc(a){sp||(ap(),sp=!0);var y=Dg;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,Ya.j=a[0],Ya.u=a[1],Ya.o=a[2],Ya.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ya.j=0,Ya.u=0,Ya.o=0,Ya.F=1)}}function Yf(){var a=Ya.j/255,y=Ya.u/255,x=Ya.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ne=a=0;else{switch(E){case a:ne=(y-x)/z%6;break;case y:ne=(x-a)/z+2;break;case x:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*b-1))}Ju.j=Math.round(ne),Ju.u=Math.round(100*a),Ju.o=Math.round(100*b),Ju.F=Ya.F}function Xf(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function op(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Wp(a){return a>Ag?Math.pow(a,1/3):(xf*a+16)/116}function Ng(a){var y=a*a*a;return y>Ag?y:(116*a-16)/xf}function yf(a,y){typeof a!="string"&&(a instanceof ha||Et("Value for "+y+" must be a color string or a Brush, not "+a))}function ap(){Dg=As?new Gl(null,void 0,{willReadFrequently:!0}).context:null}Qe.Object.defineProperties(ha.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&wn(this,a),this.na=a,this.start.Mc()&&(a===Bh?this.start=$l:a===Nc&&(this.start=Oo)),this.end.Mc()&&(a===Bh?this.end=En:a===Nc&&(this.end=Oo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&wn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&wn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&wn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&wn(this,a),0>a&&Kn(a,">= zero",ha,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&wn(this,a),0>a&&Kn(a,">= zero",ha,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&wn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&wn(this,a),this.cr=a,this.xe=null}}}),ha.prototype.isDark=ha.prototype.Gx,ha.prototype.darkenBy=ha.prototype.Wy,ha.prototype.lightenBy=ha.prototype.Vz,ha.prototype.addColorStop=ha.prototype.addColorStop;var Ag=216/24389,xf=24389/27,Sf=[95.047,100,108.883],Dg=null,Ya=new gd,Ju=new gd,kl=new gd,zc=new gd,sp=!1;ha.className="Brush";var Gh;ha.Solid=Gh=new Cn(ha,"Solid",0);var Bh;ha.Linear=Bh=new Cn(ha,"Linear",1);var Nc;ha.Radial=Nc=new Cn(ha,"Radial",2);var lp;ha.Pattern=lp=new Cn(ha,"Pattern",4);var up;ha.Lab=up=new Cn(ha,"Lab",5);var i1;ha.HSL=i1=new Cn(ha,"HSL",6),ha.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},ha.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;sp||(ap(),sp=!0);var y=Dg;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)},ha.lighten=function(a){return Wh(a)},ha.lightenBy=Wh,ha.darken=function(a){return Lg(a)},ha.darkenBy=Lg,ha.mix=pd,ha.isDark=Qd;function ll(){this.xa="Base"}ll.prototype.measure=function(){},ll.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},ll.prototype.arrange=function(){},ll.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},ll.prototype.iA=function(a){a.Uj()},ll.prototype.gc=function(){},Qe.Object.defineProperties(ll.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ui}}}),ll.prototype.remeasureObject=ll.prototype.iA,ll.prototype.arrangeElement=ll.prototype.Ly,ll.prototype.measureElement=ll.prototype.Yz,ll.className="PanelLayout";function _m(){this.xa="Base"}$t(_m,ll),_m.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;a=Mh(a);for(var oe=0;oeXi&&(Cl=Math.max(Xi-Tf,0));var hv=ti.oa===0;ti.oc=ti.oc+Cl,ti.actual=ti.oa+Cl,Xi=Math.max(Xi-(Cl+(hv?Tf:0)),0)}if(qu.columnSpan===1&&(vu===ii||vu===Mr)){ti=a.Eb(mu);var Am=ti.Wc();Cl=Math.max(og-ti.actual,0),Cl+Am>bi&&(Cl=Math.max(bi-Am,0));var Xy=ti.oa===0;ti.oc=ti.oc+Cl,ti.actual=ti.oa+Cl,bi=Math.max(bi-(Cl+(Xy?Am:0)),0)}Of&&qu.Uj()}}}}}Ti(bt);var sh=0,Ah=0;z=a.columnCount;for(var $g=0;$g=a.rowCount);af++)ti=a.Fb(Vs.row+af),Cl=0,Cl=vu===si||vu===Mr?Math.max(ti.minimum,Cd[Vs.row+af]===0?ti.maximum:Math.min(Cd[Vs.row+af],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Oh.height+=Cl,mc+=ti.minimum;for(var Kc=1;Kc=a.columnCount);Kc++)ti=a.Eb(Vs.column+Kc),Cl=0,Cl=vu===si||vu===dr?Math.max(ti.minimum,Tc[Vs.column+Kc]===0?ti.maximum:Math.min(Tc[Vs.column+Kc],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Oh.width+=Cl,mv+=ti.minimum;_l.width+=Oh.width,_l.height+=Oh.height;var jp=Vs.margin,zf=jp.right+jp.left,Im=jp.top+jp.bottom;Vs.measure(_l.width,_l.height,mv,mc);for(var zp=Vs.measuredBounds,kd=Math.max(zp.width+zf,0),ug=Math.max(zp.height+Im,0),Zf=0,Zp=0;Zp=a.rowCount);Zp++)ti=a.Fb(Vs.row+Zp),Zf+=ti.total||0;if(Zf=sf)&&!(Vs.row+Th>=a.rowCount);Th++){ti=a.Fb(Vs.row+Th);var uf=ti.oa||0,cg=lf(Vs,ti,uh);ti.actual=Math.min(ti.maximum,uf+cg),ti.oa!==uf&&(sf-=ti.oa-uf)}for(;0Ed&&(ti.actual=Math.min(ti.maximum,Ed+sf),ti.oa!==Ed&&(sf-=ti.oa-Ed)),ti.index===0)break;ti=a.Fb(ti.index-1)}}for(var Ug=0,cf=0;cf=a.columnCount);cf++)ti=a.Eb(Vs.column+cf),Ug+=ti.total||0;if(Ug=Yg)&&!(Vs.column+dg>=a.columnCount);dg++){ti=a.Eb(Vs.column+dg);var Om=ti.oa||0,qy=kh(Vs,ti,Qy);ti.actual=Math.min(ti.maximum,Om+qy),ti.oa!==Om&&(Yg-=ti.oa-Om)}for(;0vv&&(ti.actual=Math.min(ti.maximum,vv+Yg),ti.oa!==vv&&(Yg-=ti.oa-vv)),ti.index===0)break;ti=a.Eb(ti.index-1)}}}}Ti(It),pi.free(Oh),pi.free(_l),Cd!==void 0&&Ti(Cd),Tc!==void 0&&Ti(Tc);var Xg=0,Jg=0,yv=a.desiredSize,pS=a.maxSize;vu=fu(a,!0);var Tm=Ah=sh=0,km=0;z=a.columnCount;for(var xv=0;xv=a.rowCount);ti++){var lo=a.Fb(bt+ti);lo.oa!==0&&(it.height+=lo.total)}for(ti=1;ti=a.columnCount);ti++)lo=a.Eb(Rt+ti),lo.oa!==0&&(it.width+=lo.total);var $r=Kt.oa+it.width,Fa=It.oa+it.height;ti=re,lo=oe;var qa=$r,wl=Fa,Nl=re,pu=oe,Cl=$r,tf=Fa;re+$r>x.width&&(Cl=Math.max(x.width-re,0)),oe+Fa>x.height&&(tf=Math.max(x.height-oe,0));var nl=zi.alignment;if(nl.Xb()){nl=a.defaultAlignment,nl.sb()||(nl=Oo);var Sd=nl.x,mu=nl.y,nf=nl.offsetX;nl=nl.offsetY;var Fc=Kt.alignment,Gc=It.alignment;Fc.sb()&&(Sd=Fc.x,nf=Fc.offsetX),Gc.sb()&&(mu=Gc.y,nl=Gc.offsetY)}else Sd=nl.x,mu=nl.y,nf=nl.offsetX,nl=nl.offsetY;(isNaN(Sd)||isNaN(mu))&&(mu=Sd=.5,nl=nf=0),Fc=hi.width,Gc=hi.height;var fc=zi.margin,qu=fc.left+fc.right,Of=fc.top+fc.bottom,Pd=jc(zi,It,Kt,!1);!isNaN(zi.desiredSize.width)||Pd!==si&&Pd!==dr||(Fc=Math.max($r-qu,0)),!isNaN(zi.desiredSize.height)||Pd!==si&&Pd!==Mr||(Gc=Math.max(Fa-Of,0)),$r=zi.maxSize,Fa=zi.minSize,Fc=Math.min($r.width,Fc),Gc=Math.min($r.height,Gc),Fc=Math.max(Fa.width,Fc),Gc=Math.max(Fa.height,Gc),$r=Gc+Of,ti+=qa*Sd-(Fc+qu)*Sd+nf+fc.left,lo+=wl*mu-$r*mu+nl+fc.top,zi.visible&&(Ba(Nl,pu,Cl,tf,ti,lo,hi.width,hi.height)?zi.arrange(ti,lo,Fc,Gc):zi.arrange(ti,lo,Fc,Gc,new Mn(Nl,pu,Cl,tf)))}}}for(pi.free(it),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,re=z.width,oe=z.height,ue=Math.ceil(re/b),ce=Math.ceil(oe/E),me=a.gridOrigin,we=me.x;me=me.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Fe=[],De=a.O.s,_e=De.length,pt=0;pt<_e;pt++){var it=De[pt],bt=[];if(Fe.push(bt),it.visible){var It=it.interval;if(!(0>It)){it=bv(it.figure);for(var Rt=0;Rt<_e;Rt++)if(Rt!==pt){var Kt=De[Rt];Kt.visible&&bv(Kt.figure)===it&&(Kt=Kt.interval,Kt>It&&bt.push(Kt))}}}}for(De=a.O.s,_e=De.length,pt=0;pt<_e;pt++){var hn=De[pt];if(hn.visible&&(bt=hn.interval||1,it=Math.abs(bt),!(2>b*it*x))){if(It=hn.segmentIndex,(!isFinite(It)||isNaN(It))&&(It=0),0>It&&(It=it-Math.min(-It,it)),It=Math.round(It%it),it=hn.opacity,Rt=1,it!==1){if(it===0)continue;Rt=y.globalAlpha,y.globalAlpha=Rt*it}Kt=Fe[pt];var bi=!1,Xi=hn.strokeDashArray;if(Xi!==null&&(bi=!0,y.js(Xi,hn.strokeDashOffset)),hn.figure==="LineV"&&hn.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bme)bt.measure(1/0,1/0,0,0),It=bt.measuredBounds,x.ed(It),Fe.push(It);else{var Rt=bt.segmentIndex,Kt=bt.segmentFraction,hn=bt.alignmentFocus;hn.Mc()&&(hn=Oo);var bi=bt.segmentOrientation,Xi=bt.segmentOffset;if(isNaN(Rt)){var zi=oe.ua;It=vi(),zi.Qu(Kt,It);var hi=st.allocAt(It[0],It[1]);if(hi.add(oe.i(0)),zi.type===Qt.j?hi.offset(-zi.startX,-zi.startY):(zi=zi.figures.first(),zi!==null&&hi.offset(-zi.startX,-zi.startY)),zi=It[2],bi!==Eu){var ti=oe.computeAngle(bt,bi,zi);bt.Kb=ti}ti=hi.x-y.x;var lo=hi.y-y.y;st.free(hi),Ti(It)}else if(Rt<-me||Rt>=me)It=st.alloc(),oe.vg(),oe.computeMidPoint(It),zi=oe.midAngle,bi!==Eu&&(ti=oe.computeAngle(bt,bi,zi),bt.Kb=ti),ti=It.x-y.x,lo=It.y-y.y,st.free(It);else{if(ti=0,0<=Rt?(lo=ce.M(Rt),It=Rt$r+10?0<=Rt?zi.ab(lo):lo.ab(zi):$r>hi+10?0<=Rt?It.ab(ti):ti.ab(It):0<=Rt?zi.ab(ti):ti.ab(zi)}else zi=0<=Rt?lo.ab(It):It.ab(lo);bi!==Eu&&(ti=oe.computeAngle(bt,bi,zi),bt.Kb=ti),ti=lo.x+(It.x-lo.x)*Kt-y.x,lo=lo.y+(It.y-lo.y)*Kt-y.y}bt.measure(1/0,1/0,0,0),It=bt.measuredBounds,hi=bt.naturalBounds;var Fa=0;bt instanceof Co&&(Fa=bt.strokeWidth),$r=hi.width+Fa;var qa=hi.height+Fa;De.reset(),De.translate(-It.x,-It.y),De.scale(bt.scale,bt.scale),De.rotate(bi===Eu?bt.angle:zi,$r/2,qa/2),bi!==im&&bi!==om||De.rotate(90,$r/2,qa/2),bi!==rm&&bi!==am||De.rotate(-90,$r/2,qa/2),bi===E0&&(45zi||225zi)&&De.rotate(-zi,$r/2,qa/2),hi=new Mn(0,0,$r,qa),_e.xi(hi,hn),De.Ga(_e),hn=-_e.x+Fa/2*bt.scale,bt=-_e.y+Fa/2*bt.scale,pt.assign(Xi),Fa=isNaN(Xi.x);var wl=isNaN(Xi.y);if(Fa||wl){$r=$r/2+3,qa=qa/2+3;var Nl=45<=zi&&135>=zi,pu=225<=zi&&315>=zi;bi===Eu&&(Nl||pu)?(pt.x=wl?$r:Xi.y,pt.y=Fa?qa:Xi.x,Nl?0<=Rt||isNaN(Rt)&&.5>Kt||!Fa||(pt.y=-qa):pu&&((0<=Rt||isNaN(Rt)&&.5>Kt)&&Fa&&(pt.y=-qa),wl&&(pt.x=-$r))):(Fa&&(pt.x=0<=Rt||isNaN(Rt)&&.5>Kt?$r:-$r),wl&&(pt.y=-qa),pt.rotate(zi))}else pt.rotate(zi);ti+=pt.x,lo+=pt.y,hi.set(It),hi.h(ti+hn,lo+bt,It.width,It.height),Fe.push(hi),x.ed(hi)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ss(b,x.width||0,x.height||0),Yt.free(De),st.free(_e),st.free(pt)}}}},Um.prototype.arrange=function(a,y){var x=y.length;if(a instanceof pa||a instanceof fi){var E=a,b=null;a instanceof pa&&(b=a,E=b.adornedPart);var z=a instanceof pa?null:E.path,ne=a.j;if(ne.length!==0){var re=0;if(z!==null&&re=x)De=st.alloc(),Fe=me,pt=De,Fe.vg(),Fe.computeMidPoint(pt),Fe=me.midAngle,ue!==Eu&&(me=me.computeAngle(ne,ue,Fe),ne.angle=me),me=De.x,pt=De.y,st.free(De);else{if(_e=0,0<=re?(De=y.s[re],pt=rebt+10?0<=re?Fe.ab(De):De.ab(Fe):bt>it+10?0<=re?pt.ab(_e):_e.ab(pt):0<=re?Fe.ab(_e):_e.ab(Fe)}else Fe=0<=re?De.ab(pt):pt.ab(De);ue!==Eu&&(me=me.computeAngle(ne,ue,Fe),ne.angle=me),me=De.x+(pt.x-De.x)*oe,pt=De.y+(pt.y-De.y)*oe}if(we.ys())ne.location=new st(me,pt);else{we.Mc()&&(we=Oo),De=Yt.alloc(),De.reset(),De.scale(ne.scale,ne.scale),De.rotate(ne.angle,0,0);var It=ne.naturalBounds;_e=Mn.allocAt(0,0,It.width,It.height),it=st.alloc(),it.xi(_e,we),De.Ga(it),we=-it.x,bt=-it.y;var Rt=It.width,Kt=It.height;It=st.alloc(),It.assign(ce);var hn=isNaN(ce.x),bi=isNaN(ce.y);if(hn||bi){Rt=Rt/2+3,Kt=Kt/2+3;var Xi=45<=Fe&&135>=Fe,zi=225<=Fe&&315>=Fe;ue===Eu&&(Xi||zi)?(It.x=bi?Rt:ce.y,It.y=hn?Kt:ce.x,Xi?0<=re||isNaN(re)&&.5>oe||!hn||(It.y=-Kt):zi&&((0<=re||isNaN(re)&&.5>oe)&&hn&&(It.y=-Kt),bi&&(It.x=-Rt))):(hn&&(It.x=0<=re||isNaN(re)&&.5>oe?Rt:-Rt),bi&&(It.y=-Kt),It.rotate(Fe))}else It.rotate(Fe);me+=It.x,pt+=It.y,De.pp(_e),we+=_e.x,bt+=_e.y,re=st.allocAt(me+we,pt+bt),ne.move(re),st.free(re),st.free(It),st.free(it),Mn.free(_e),Yt.free(De)}}b!==null?b.Ul(!1):E.Ul(!1),E=I1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),st.free(E)}};function r1(a,y,x,E){if(Pt(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof pa&&a.type===ui.Link&&a.adornedObject instanceof Co&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof fi&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof pa&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),yt(E,!1)}}function $p(){this.xa="Base"}$t($p,ll),$p.prototype.measure=function(a,y,x,E,b,z,ne){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,ue=oe.right+oe.left,ce=oe.top+oe.bottom;re.measure(y,x,z,ne);var me=re.measuredBounds,we=new Mn(-oe.left,-oe.top,Math.max(me.width+ue,0),Math.max(me.height+ce,0));a.graduatedBounds.push(we),b.assign(we);for(var Fe=re.geometry,De=re.strokeWidth,_e=Fe.flattenedSegments,pt=Fe.flattenedLengths,it=Fe.flattenedTotalLength,bt=_e.length,It=0,Rt=0,Kt=vi(),hn=0;hn$r&&($r+=360),Xi.push($r)}It=ti,Rt=lo}Kt.push(Xi)}if(a.graduatedIntervals===null){for(var Fa=[],qa=a.O.s,wl=qa.length,Nl=0;Nltf)){for(var nl=0;nltf&&Cl.push(mu)}}}}}a.graduatedIntervals=Fa}var nf=a.graduatedIntervals,Fc=a.O.s,Gc=Fc.length,fc=0,qu=0,Of=it;a.graduatedMarks=[];for(var Pd,Dp=0;DpNm*vu*it/a.graduatedRange&&gc.graduatedSkip===null)){var Gg=pt[0][0],Id=0,ec=0;qu=it*gc.graduatedStart-1e-4,Of=it*gc.graduatedEnd+1e-4;var og=Nm*vu,pc=a.graduatedTickBase;if(pca.graduatedMin+og&&(pc-=Math.floor((pc-a.graduatedMin)/og)*og);for(var hv=nf[Dp],Am=pc,Xy=1e-6*a.graduatedMax,sh=1;pc<=a.graduatedMax+Xy;sh++){e:{for(var Ah=hv.length,$g=0;$g-Ip){var Rf=!1;break e}}Rf=!0}if(Rf&&(pc>a.graduatedMax&&(pc=a.graduatedMax),gc.graduatedSkip===null||gc instanceof es&&!gc.graduatedSkip(pc,gc)||gc instanceof Co&&!gc.graduatedSkip(pc,gc))&&(fc=(pc-a.graduatedMin)*it/a.graduatedRange,fc>it&&(fc=it),qu<=fc&&fc<=Of)){for(var lh=Kt[Id][ec],rf=pt[Id][ec];IdGg&&ecDh&&.4995Dh?0Dh||.9995Kg){var Tp=1-Math.abs(.5-Dh);lh=(wd*Tp+Td*(1-Tp))%360;break e}}}lh=wd}if(gc instanceof es){var rd="";gc.graduatedFunction!==null?(rd=gc.graduatedFunction(pc,gc),rd=rd!=null?rd.toString():""):rd=(+pc.toFixed(2)).toString(),rd!==""&&Pd.push({$l:Op,angle:lh,text:rd})}else Pd.push({$l:Op,angle:lh})}pc=Am+sh*og}}}a.graduatedMarks.push(Pd)}Ti(Kt);var _l=a.graduatedMarks;if(_l!==null)for(var Dm=E.length,Lu=0;Luod;od++){switch(od){case 0:nc.h(Oh,Cd);break;case 1:nc.h(Oh+kp,Cd);break;case 2:nc.h(Oh,Cd+lg);break;case 3:nc.h(Oh+kp,Cd+lg)}nc.rotate(Vs+il.angle),nc.offset(pv,_p),Rp===0&&od===0?Tc.h(nc.x,nc.y,0,0):Tc.Ye(nc),nc.offset(-pv,-_p),nc.rotate(-Vs-il.angle)}st.free(nc),Ih.graduatedBounds!==null&&Ih.graduatedBounds.push(Tc),ps(of,Tc.x,Tc.y,Tc.width,Tc.height)}else if(il instanceof es){var $c=a,mv=b;$c.temporaryTextBlock===null&&($c.temporaryTextBlock=new es);var mc=$c.temporaryTextBlock;x1(mc,il);var af=il.alignmentFocus;af.Mc()&&(af=$l);for(var Kc=il.segmentOrientation,jp=il.segmentOffset,zf=new Mn,Im=0,zp=0,kd=0,ug=0,Zf=0,Zp=Nu.length,sf=0;sfkd||225kd)&&Ed.rotate(-kd,uf/2,cg/2);var Ug=Mn.allocAt(0,0,uf,cg),cf=st.alloc();cf.xi(Ug,af),Ed.Ga(cf);var Yg=-cf.x,Qy=-cf.y,kh=st.alloc();kh.assign(jp),isNaN(kh.x)&&(kh.x=uf/2+3),isNaN(kh.y)&&(kh.y=-(cg/2+3)),kh.rotate(kd),Im+=kh.x+Yg,zp+=kh.y+Qy;var dg=new Mn(Im,zp,lf.width,lf.height),Om=new Mn(lf.x,lf.y,lf.width,lf.height),qy=new Mn(Th.x,Th.y,Th.width,Th.height);uh.Sz=ug,uh.lineCount=mc.lineCount,uh.lines=[mc.Cb,mc.Ih,mc.df,mc.Le,mc.Qc,mc.Qb,mc.ze],uh.actualBounds=dg,uh.measuredBounds=Om,uh.naturalBounds=qy,sf===0?zf.assign(dg):zf.ed(dg),st.free(kh),st.free(cf),Mn.free(Ug),Yt.free(Ed)}$c.graduatedBounds!==null&&$c.graduatedBounds.push(zf),ps(mv,zf.x,zf.y,zf.width,zf.height)}yt(il,!1)}}},$p.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ne=0,re=z[ne];ne++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,ue=0;ue=ne&&(ne=1);for(var re=z.actualBounds,oe=a.O.s,ue=a.graduatedMarks,ce=oe.length,me=0;mea.graduatedTickUnit*we.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&we.graduatedSkip===null)){var _e=we.measuredBounds,pt=we.strokeWidth*we.scale,it=we.alignmentFocus;it.Mc()&&(it=$l);for(var bt=0;btne.height)continue}else if(ue.position>ne.width)continue;var ce=ue.separatorStrokeWidth;isNaN(ce)&&(ce=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var me=ue.separatorStroke;if(me===null&&(me=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ce!==0&&me!==null){Ds(a,y,me,!1,!1,ne,z),me=!1;var we=ue.separatorDashArray;we===null&&(we=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),we!==null&&(me=!0,y.js(we,0)),y.beginPath(),we=ue.position+ce,x?we>ne.height&&(ce-=we-ne.height):we>ne.width&&(ce-=we-ne.width),ue=ue.position+ce/2,y.lineWidth=ce,ce=a.yb,x?(ue+=ce.top,we=ne.width-ce.right,y.moveTo(ce.left,ue),y.lineTo(we,ue)):(ue+=ce.left,we=ne.height-ce.bottom,y.moveTo(ue,ce.top),y.lineTo(ue,we)),y.stroke(),y.Se(),me&&y.fs()}}}}function Ym(a,y,x,E,b){for(var z=E.length,ne=a.actualBounds,re=a.naturalBounds,oe=a1(a,!0),ue=a1(a,!1),ce=0;cewe)){var Fe=me.Wc(),De=me.separatorStrokeWidth;isNaN(De)&&(De=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var _e=me.separatorStroke;_e===null&&(_e=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(_e===null||me.index===(x?oe:ue))&&(De=0),Fe-=De,De=me.position+De,Fe+=me.actual,De+Fe>we&&(Fe=we-De),0>=Fe||(we=a.yb,Ds(a,y,me.background,!0,!1,re,ne),x?y.fillRect(we.left,De+we.top,ne.width-(we.left+we.right),Fe):y.fillRect(De+we.left,we.top,Fe,ne.height-(we.top+we.bottom)))}}}}function a1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(De),st.free(De)),st.free(ce),z&&b.transform(ne),ue},Ne.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case si:this.v(!0),this.measure(x+re,E+ne,0,0);break;case dr:this.v(!0),this.measure(x+re,z+ne,0,0);break;case Mr:this.v(!0),this.measure(y+re,E+ne,0,0)}}this.na.arrange(this,b,this.jg)}},Ne.gh=function(a){var y=this.naturalBounds,x=Mh(this);if(Ba(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=st.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Eo(b.set(a),z.transform),z.ca(b)))return st.free(b),!0}return st.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ne.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Ewe.width||me.y>we.height||0>me.x+me.width||0>me.y+me.height||(me=ce,ce=ce instanceof ui?ce:null,we=Yt.alloc(),we.set(ne),(ce!==null?ce.Cf(a,y,x,E,b,we):rl(me,a,E,we))&&(y!==null&&(me=y(me)),me===null||x!==null&&!x(me)||b.add(me)),Yt.free(we))}}return z===void 0&&Yt.free(ne),E}return z===void 0&&Yt.free(ne),!1};function Fv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ne=b[z];if(ne.visible){var re=ne.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ne instanceof ui&&Fv(ne,y,x,E),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||E.add(ne))}}}Ne.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ne=this.naturalBounds,re=this.se(),oe=re?a:Eo(st.allocAt(a.x,a.y),this.transform),ue=re?y:Eo(st.allocAt(y.x,y.y),this.transform),ce=oe.Bf(ue),me=0pt.width||_e.y>pt.height||0>_e.x+_e.width||0>_e.y+_e.height))&&(De.se()?(_e=De.transform,Eo(oe.set(a),_e),Eo(ue.set(y),_e)):(oe.set(a),ue.set(y)),_e=De,De=De instanceof ui?De:null,(De!==null?De.og(oe,ue,x,E,b,z):_e.tx(oe,ue,b))&&(x!==null&&(_e=x(_e)),_e===null||E!==null&&!E(_e)||z.add(_e)))}}st.free(oe),st.free(ue)}return b?me:ne}return!1};function Bv(a){var y=null;return a instanceof Co&&(y=a.spot1,y===Fi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Us),y}function Mv(a){var y=null;return a instanceof Co&&(y=a.spot2,y===Fi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Nn),y}Ne.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else Et("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Pt(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ui&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Jm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Ni&&(x.Te=!0),x.Te&&x instanceof Ni&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Wa,"elements",this,y,null,E,null),x.cb(xa,"elements",this,null,y,null,a)))};function Lv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ne.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Kn(a,">= 0",ui,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new ol;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(xa,"rowdefs",this,null,x,null,a)}return y[a]},Ne.oA=function(a){if(0>a&&Kn(a,">= 0",ui,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Wa,"rowdefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof ol?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ne.Eb=function(a){0>a&&Kn(a,">= 0",ui,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new ol;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(xa,"coldefs",this,null,x,null,a)}return y[a]},Ne.jA=function(a){if(0>a&&Kn(a,">= 0",ui,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Wa,"coldefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof ol?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ne.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Qm(y,a),this},Ne.Hy=function(a,y){return(a=this.Fb(a))&&Qm(a,new ol(y)),this},Ne.By=function(a,y){return(a=this.Eb(a))&&Qm(a,new ol(y)),this},Ne.nz=function(a){if(0>a||this.type!==ui.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==ui.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Kp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Av(a,y);if(b=Dv(a,b),b!==null){if(Zc(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Lv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ki),a.ge.add(y,b)),z=x+Kp(a),a.Gb(z,b),E&&(b.ub=y,Nv(a,z,x),b.ub=null),b.data=y}}}function Nv(a,y,x){for(a=a.O;ya&&Kn(a,">= 0",ui,"padding"),a=new hr(a)):(0>a.left&&Kn(a.left,">= 0",ui,"padding:value.left"),0>a.right&&Kn(a.right,">= 0",ui,"padding:value.right"),0>a.top&&Kn(a.top,">= 0",ui,"padding:value.top"),0>a.bottom&&Kn(a.bottom,">= 0",ui,"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:sl},set:function(a){typeof a=="number"&&(a=new hr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ac),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 ha)&&(a instanceof ha&&a.freeze(),this.T===null&&(this.T=new Ac),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 Ac),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&Et("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ac),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)&&Et("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ac),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 xr&&!(this instanceof pa);Zc(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof fi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof xr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Gr),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yS(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&yy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&vy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Ki}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof xr||a.isPanelMain)&&Et("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(););Mo(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&&(Mo(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 ho&&(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&&Jm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Qe.Object.defineProperties(ui,{Position:{get:function(){return Qc.I("Position")}},Horizontal:{get:function(){return Qc.I("Horizontal")}},Vertical:{get:function(){return Qc.I("Vertical")}},Spot:{get:function(){return Qc.I("Spot")}},Auto:{get:function(){return Qc.I("Auto")}},Table:{get:function(){return Qc.I("Table")}},Viewbox:{get:function(){return Qc.I("Viewbox")}},TableRow:{get:function(){return Qc.I("TableRow")}},TableColumn:{get:function(){return Qc.I("TableColumn")}},Link:{get:function(){return Qc.I("Link")}},Grid:{get:function(){return Qc.I("Grid")}},Graduated:{get:function(){return Qc.I("Graduated")}}}),ui.prototype.rebuildItemElements=ui.prototype.mv,ui.prototype.findItemPanelForData=ui.prototype.sx,ui.prototype.updateTargetBindings=ui.prototype.La,ui.prototype.copyTemplate=ui.prototype.Uy,ui.prototype.graduatedValueForPoint=ui.prototype.Gz,ui.prototype.graduatedPointForValue=ui.prototype.Fz,ui.prototype.findColumnForLocalX=ui.prototype.fz,ui.prototype.findRowForLocalY=ui.prototype.nz,ui.prototype.addColumnDefinition=ui.prototype.By,ui.prototype.addRowDefinition=ui.prototype.Hy,ui.prototype.addRowColumnDefinition=ui.prototype.Gy,ui.prototype.removeColumnDefinition=ui.prototype.jA,ui.prototype.getColumnDefinition=ui.prototype.Eb,ui.prototype.removeRowDefinition=ui.prototype.oA,ui.prototype.getRowDefinition=ui.prototype.Fb,ui.prototype.removeAt=ui.prototype.mb,ui.prototype.remove=ui.prototype.remove,ui.prototype.insertAt=ui.prototype.Gb,ui.prototype.elt=ui.prototype.M,ui.prototype.add=ui.prototype.add,ui.prototype.findObject=ui.prototype.fb,ui.prototype.findInVisualTree=ui.prototype.Nl,ui.prototype.walkVisualTreeFrom=ui.prototype.qm,ui.prototype.findMainElement=ui.prototype.Pb;var p1=!1,m1=null,Qc=new Ki;ui.className="Panel",ui.definePanelLayout=Ad,Ad("Position",new _m),Ad("Vertical",new zm),Ad("Auto",new Hm),Ad("Link",new Um);function Lh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Lh.prototype.copy=function(){var a=new Lh;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},Lh.className="GradPanelSettings";function Ac(){this.Pc=[],this.Oc=[],this.j=this.ob=e0,this.hb=this.Hb=0,this.Qp=sl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ac.prototype.copy=function(a){for(var y=new Ac,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Kn(a,">= 0",ol,"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&&Kn(a,">= 0",ol,"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))&&Kn(a,">= 0",ol,"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&&Kn(a,">= 0",ol,"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 hr(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&&yf(a,"RowColumnDefinition.separatorStroke"),a instanceof ha&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],ue,ce,me,we,Fe,De,_e=0,pt=vi(),it=2;itme&&(me=1),b=x=me,ue=ne/2,ce=ue!==0,it=0,De=pt[it],me=De[0],Fe=De[1],we=De[2],De=De[3];for(var bt=0;.1<=_e;){if(bt===0&&(ce?(b=x,b-=ue,_e-=ue,ce=!1):b=x,b===0&&(b=1)),b>_e){Ti(pt);return}b>De?(bt=b-De,b=De):bt=0;var It=Math.sqrt(b*b/(1+we*we));if(0>me&&(It=-It),re+=It,oe+=we*It,a.translate(re,oe),a.rotate(Fe),a.translate(-(ne/2),-(z/2)),bt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Fe),a.translate(-re,-oe),_e-=b,De-=b,bt!==0){if(it++,it===pt.length){Ti(pt);return}De=pt[it],me=De[0],Fe=De[1],we=De[2],De=De[3],b=bt}}Ti(pt)}}Ne.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;E!==null&&Ds(this,a,E,!0,!1,ne,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===ui.Link&&re instanceof pa&&re.category==="Selection"&&re.adornedObject instanceof Co&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(Ds(this,a,x,!1,!1,ne,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ne=!1,oe=this.strokeDashArray,oe!==null&&(ne=!0,a.js(oe,this.strokeDashOffset)),b.type===Qt.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Qt.u){var ue=b.startX;oe=b.startY;var ce=b.endX,me=b.endY;b=Math.min(ue,ce);var we=Math.min(oe,me);ue=Math.abs(ce-ue),oe=Math.abs(me-oe),a.beginPath(),a.rect(b,we,ue,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&gu(a),a.jk(),re&&z&&Il(a)),a.Se()}else if(b.type===Qt.F)ue=b.startX,oe=b.startY,ce=b.endX,me=b.endY,b=Math.abs(ce-ue)/2,we=Math.abs(me-oe)/2,ue=Math.min(ue,ce)+b,oe=Math.min(oe,me)+we,a.beginPath(),a.moveTo(ue,oe-we),a.bezierCurveTo(ue+nt.wg*b,oe-we,ue+b,oe-nt.wg*we,ue+b,oe),a.bezierCurveTo(ue+b,oe+nt.wg*we,ue+nt.wg*b,oe+we,ue,oe+we),a.bezierCurveTo(ue-nt.wg*b,oe+we,ue-b,oe+nt.wg*we,ue-b,oe),a.bezierCurveTo(ue-b,oe-nt.wg*we,ue-nt.wg*b,oe-we,ue,oe-we),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&gu(a),a.jk(),re&&z&&Il(a)),a.Se();else if(b.type===Qt.o)for(b=b.figures,oe=b.length,we=0;we_e.sweepAngle,Fe!==null?Fe.endX:ue.startX,Fe!==null?Fe.endY:ue.startY)}else if(Fe=pr(_e,ue),pt=Fe.length,pt===0)a.lineTo(_e.centerX,_e.centerY);else for(var it=0;it(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(Mn.free(z),nt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Qt.u){y=x.startX;var ne=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ne,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ne),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return Mn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Mn.free(z),a}if(x.type===Qt.F){ne=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ne,re),y=Math.min(b,oe),ne=Math.abs(re-ne)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ne),y=a.y-(y+b),this.fill===null){if(ne-=E,b-=E,0>=ne||0>=b||1>=x*x/(ne*ne)+y*y/(b*b))return Mn.free(z),!1;ne+=E,b+=E}return this.stroke!==null&&(ne+=E,b+=E),Mn.free(z),0>=ne||0>=b?!1:1>=x*x/(ne*ne)+y*y/(b*b)}if(x.type===Qt.o)return Mn.free(z),this.fill===null?Bi(x,a.x,a.y,b):mr(x,a,b,1=this.strokeWidth)ce=nt.Ve(ue.startX,ue.startY,ue.endX,ue.endY,z,ne,re,oe,b);else{if(ue.startX===ue.endX?(E=me,ce=0):(y=(ue.endY-ue.startY)/(ue.endX-ue.startX),ce=me/Math.sqrt(1+y*y),E=ce*y),y=vi(),a=new st,nt.Ve(ue.startX+E,ue.startY+ce,ue.endX+E,ue.endY+ce,z,ne,re,oe,a)&&y.push(a),a=new st,nt.Ve(ue.startX-E,ue.startY-ce,ue.endX-E,ue.endY-ce,z,ne,re,oe,a)&&y.push(a),a=new st,nt.Ve(ue.startX+E,ue.startY+ce,ue.startX-E,ue.startY-ce,z,ne,re,oe,a)&&y.push(a),a=new st,nt.Ve(ue.endX+E,ue.endY+ce,ue.endX-E,ue.endY-ce,z,ne,re,oe,a)&&y.push(a),re=y.length,re===0)return Ti(y),!1;for(ce=!0,oe=1/0,E=0;EMath.abs(x)){if(oe=ne-ce-x*(z-E),0>a*a*x*x+ue*ue-oe*oe){b.x=NaN,b.y=NaN,ce=!1;break e}me=Math.sqrt(a*a*x*x+ue*ue-oe*oe),re=(-(a*a*x*oe)+a*ue*me)/(ue*ue+a*a*x*x)+E,a=(-(a*a*x*oe)-a*ue*me)/(ue*ue+a*a*x*x)+E,ue=x*(re-E)+oe+ce,oe=x*(a-E)+oe+ce,Math.abs((z-re)*(z-re))+Math.abs((ne-ue)*(ne-ue))re){b.x=NaN,b.y=NaN,ce=!1;break e}oe=Math.sqrt(re),re=ce+oe,oe=ce-oe,Math.abs(re-ne)Math.abs(De)?(_e*=.5/De,De=.5):_e!==0&&.5>Math.abs(_e)&&(De*=.5/_e,_e=.5),it-=De,bt-=_e;Fe.contains(it,bt);)it-=De,bt-=_e;for(b.x=re,b.y=oe,_e=0;_ex?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||nt.$(oe.y,a))&&(oe.yy||nt.$(oe.x,y))&&(oe.x=a&&E<=y):(a=E&&x<=a)}Ne.tx=function(a,y,x){function E(pt,it){for(var bt=pt.length,It=0;Itb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||os(y,z,0,-me)>=b||os(y,z,0,me)>=b||os(y,z,ce,0)>=b)}else if(y.type===Qt.o){if(ue=y.bounds,z=ue.x,re=ue.y,oe=ue.x+ue.width,ue=ue.y+ue.height,a.x>oe&&a.xue&&a.yb&&Na(a.x,a.y,z,re,oe,re)>b&&Na(a.x,a.y,oe,ue,z,ue)>b&&Na(a.x,a.y,oe,ue,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Bi(y,a.x,a.y,z):mr(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(re=z.segments.s,oe=re.length,ue=0;ueb)return!1;break;case Wr:var we=vi();if(nt.Qe(ne,ce,me.point1X,me.point1Y,me.point2X,me.point2Y,me.endX,me.endY,.8,we),ne=E(we,a),Ti(we),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case zo:if(we=vi(),nt.ep(ne,ce,me.point1X,me.point1Y,me.endX,me.endY,.8,we),ne=E(we,a),Ti(we),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case Br:case Er:we=me.type===Br?pr(me,z):vr(me,z,ne,ce);var Fe=we.length;if(Fe===0){if(ne=me.type===Br?me.centerX:me.endX,ce=me.type===Br?me.centerY:me.endY,a.zd(ne,ce)>b)return!1;break}me=null;for(var De=vi(),_e=0;_e= 0",Co,"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"?Kn(a,'"butt", "round", or "square"',Co,"strokeCap"):(Qf(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"?Kn(a,'"miter", "bevel", or "round"',Co,"strokeJoin"):(Qf(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){Qf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(me*me+ce*ce)*we*we&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ia&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,me=this.spacingBelow,this.flip){case ea:a.translate(b,0),a.scale(-1,1);break;case Bo:a.translate(0,z),a.scale(1,-1);break;case _a:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ce=this.Gc,we=(y+ne+me)*ce,z>we&&(E=this.verticalAlignment,E=E.y*z-E.y*we+E.offsetY),ce===1&&this.ze!==null)me=this.Cb,me>b&&(me=b),this.Oj(this.ze,a,0,E+y,b,ne,me,x,re,oe,ue);else if(this.Qc!==null&&this.Qb!==null)for(we=0;web&&(Fe=b),E+=y,this.Oj(this.Qb[we],a,0,E,b,ne,Fe,x,re,oe,ue),E+=ne+me}switch(this.flip){case ea:a.scale(-1,1),a.translate(-b,0);break;case Bo:a.scale(1,-1),a.translate(0,-z);break;case _a:a.scale(-1,-1),a.translate(-b,-z)}}},Ne.Oj=function(a,y,x,E,b,z,ne,re,oe,ue,ce){var me=0;if(re)oe==="left"?me=0:oe==="right"?me=b-ne:oe==="center"&&(me=(b-ne)/2),y.fillRect(x+me,E+.25*z,ne,1);else{if(oe==="left"?me=0:oe==="right"?me=b:oe==="center"&&(me=b/2),b=i0!==null?i0(this,z):.75*z,y.fillText(a,x+me,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?me-=ne:oe==="center"&&(me-=ne/2),ue){re=r0!==null?r0(this,z):.8*z,oe=x+me,ue=E+re,b=x+me+ne,re=E+re;var we=a;y.beginPath(),y.lineWidth=we,y.moveTo(oe,ue),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Ia&&y.ad.classList.add("gojs-td")}ce&&(ce=E+z-z/2.2|0,a%2!==0&&(ce+=.5),E=x+me,z=ce,x=x+me+ne,ne=ce,me=a,y.beginPath(),y.lineWidth=me,y.moveTo(E,z),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Ia&&y.ad.classList.add("gojs-td"))}},Ne.kk=function(a,y,x){if(!Vt.prototype.kk.call(this,a,y,x))return!1;if(Ds(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,ue=this.Qb[oe],y=Math.max(1,a-y);qc(ue)>y&&1a.maxLines&&(a.l|=16777216))}function Rv(a,y,x,E){var b=a.formatting===Xp;b&&(y=y.trim());var z=0,ne=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Yp(a)+re);var oe=a.overflow===o0?S1(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ne=y,a.wrap===_v){a.Le=1;var ue=qc(y);if(oe===0||ue<=x)a.Cb=Math.max(a.Cb,ue),Up(a,y,a.Cb),E!==null&&E.h(ue,re);else{for(z=dp(a,ne),ne=ne.substr(z.length),y=dp(a,ne),ue=qc(z+y);0x&&1x;){var me=1;for(ue=qc(y.substr(0,me)),ce=0;ue<=x;)me++,ce=ue,ue=qc(y.substr(0,me));if(me===1){var we=ue;z=Math.max(z,ue)}else we=ce,z=Math.max(z,ce);if(me--,1>me&&(me=1),Up(a,y.substr(0,me),we),oe++,y=y.substr(me),a.Gc+oe>a.maxLines)break}for(ce=dp(a,ne),ue=qc(y+ce);0a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function dp(a,y){if(a.wrap===C1)return y.substr(0,1);for(var x=y.length,E=0,b=xS;E=y.length?y:y.substr(0,E)}function qc(a){return ju===null?8*a.length:ju.measureText(a).width}function Yp(a){if(a.df!==null)return a.df;var y=a.Ae;if(ju===null){var x=16;return a.df=x}return Zv[y]!==void 0&&5e3>b1?x=Zv[y]:(x=1.3*ju.measureText("M").width,Zv[y]=x,b1++),a.df=x}function S1(a){if(ju===null)return 6;if(a0[a]!==void 0&&5e3>Hv)var y=a0[a];else y=ju.measureText(Jp).width,a0[a]=y,Hv++;return y}function P1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Yp(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(` `,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ne,re=!1;!re;){if(ne=x.indexOf(` `,z),ne===-1&&(ne=x.length,re=!0),z<=ne){if(z=x.substr(z,ne-z),a.wrap!==_v){a.Le=0;var oe=pi.alloc();Rv(a,z,y,oe),b+=oe.height,pi.free(oe),a.Gc+=a.Le}else Rv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ne+1}return a.Lq=b}Qe.Object.defineProperties(es.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Dd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:ii},set:function(a){var y=this.flip;y!==a&&(Dd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ma},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Dd(this),this.da.Yr=a,uu(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=pi.alloc();Rv(this,this.ec,999999,a);var y=a.width;pi.free(a),a=P1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ss(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:jv},set:function(a){var y=this.wrap;y!==a&&(Dd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:zv},set:function(a){var y=this.overflow;y!==a&&(Dd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&yf(a,"TextBlock.stroke"),a instanceof ha&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Yp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Dd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Dd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new eh),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&&Kn(a,"> 0",es,"maxLines"),Dd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var i0=null,r0=null,_v=new Cn(es,"None",0),w1=new Cn(es,"WrapFit",1),jv=new Cn(es,"WrapDesiredSize",2),C1=new Cn(es,"WrapBreakAll",3),zv=new Cn(es,"OverflowClip",0),o0=new Cn(es,"OverflowEllipsis",1),Xp=new Cn(es,"FormatTrim",0),E1=new Cn(es,"FormatNone",0),xS=/[ \u200b\u00ad]/,Zv=new yr,b1=0,a0=new yr,Hv=0,Jp="...",F1="",ju=null,s0=!1;es.className="TextBlock";function Wv(){this.nc=!1,this.Hd=null,this.Xf=ii,this.gq=Xp,this.Jq=1/0,this.$q=zv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ma,this.$r=jv}Wv.prototype.copy=function(){var a=new Wv;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},es.getEllipsis=function(){return Jp},es.setEllipsis=function(a){Jp=a,a0=new yr,Hv=0},es.getBaseline=function(){return i0},es.setBaseline=function(a){i0=a},es.getUnderline=function(){return r0},es.setUnderline=function(a){r0=a},es.isValidFont=function(a){if(s0||(ju=As?new Gl(null).context:null,s0=!0),ju===null)return!0;var y=ju.font;if(a===y||a==="10px sans-serif")return!0;ju.font="10px sans-serif",ju.font=a;var x=ju.font;if(x!=="10px sans-serif")return ju.font=y,!0;ju.font="19px serif";var E=ju.font;return ju.font=a,x=ju.font,ju.font=y,x!==E},es.FormatNone=E1,es.FormatTrim=Xp,es.None=_v,es.OverflowClip=zv,es.OverflowEllipsis=o0,es.WrapBreakAll=C1,es.WrapDesiredSize=jv,es.WrapFit=w1;function eh(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}eh.prototype.copy=function(){var a=new eh;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},eh.className="GradElementSettings";function zu(a,y){Vt.call(this),this.Eg=null,this.qo="",this.Xg=Ea,this.Nk=si,this.Zg=this.Hd=null,this.Mk=Oo,this.Xf=ii,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 hp;$t(zu,Vt),zu.prototype.cloneProtected=function(a){Vt.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},zu.prototype.qb=function(a){a===ii||a===tr||a===Zo?this.imageStretch=a:Vt.prototype.qb.call(this,a)},zu.prototype.toString=function(){return"Picture("+this.source+")#"+nr(this)};function fp(a){a===void 0&&(a=""),a!==""?hp[a]&&(delete hp[a],l0--):(hp=new yr,l0=0)}function B1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ne=b.Og.I(z);if(ne!==null)for(var re=ne.length,oe=0;oe=E.width&&(z=z+De.offsetX+(me*De.x-E.width*De.x)),we>=E.height&&(ne=ne+De.offsetY+(we*De.y-E.height*De.y)),oe=Math.min(E.width,me),re=Math.min(E.height,we);break;case si:me=E.width,we=E.height;break;case tr:case Zo:Fe===tr?(Fe=Math.min(E.height/we,E.width/me),me*=Fe,we*=Fe):Fe===Zo&&(Fe=Math.max(E.height/we,E.width/me),me*=Fe,we*=Fe,me>=E.width&&(z=(z+De.offsetX+(me*De.x-E.width*De.x)/me)*oe),we>=E.height&&(ne=(ne+De.offsetY+(we*De.y-E.height*De.y)/we)*re),oe*=1/(me/E.width),re*=1/(we/E.height),me=E.width,we=E.height)}Fe=this.Df()*y.scale;var _e=me*Fe*we*Fe,pt=oe*re/_e,it=x.__goCache;Fe=null;var bt=SS;if(!b){if(x.sq&&it!==void 0&&4<_e&&pt>bt*bt)for(it.gi===null&&(L1(it,4,ue,ce,x),L1(it,16,ue,ce,x)),b=it.gi,ue=b.length,ce=0;cea)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=nt.Mf[E];if(b!==void 0)return b;var z=a*nt.wg;return b=new Qt().add(new So(a,0,!0).add(new fr(Ai,y-a,0)).add(new fr(Wr,y,a,y-z,0,y,z)).add(new fr(Ai,y,x-a)).add(new fr(Wr,y-a,x,y,x-z,y-z,x)).add(new fr(Ai,a,x)).add(new fr(Wr,0,x-a,z,x,0,x-z)).add(new fr(Ai,0,a)).add(new fr(Wr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Zu(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&&(Zu(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&&(Zu(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof fi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Zu(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&&(Zu(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&&(Zu(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:Qa},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Zu(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&&(Zu(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&&(Zu(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:Fi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Zu(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&&Et("Cannot make a Group a member of itself: "+this.toString()),Et("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?ty(y,this):this instanceof ho&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?ey(a,this):this instanceof ho&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof ho){for(x=new Yn,Cf(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ni)for(E=E.linksConnected;E.next();)mp(E.value)}if(this instanceof Ni){for(x=this.linksConnected;x.next();)mp(x.value);x=this.labeledLink,x!==null&&mp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&xc(y,-1,a))}}else Et("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&&(Zu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Ni&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Zu(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&&(Zu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:hs},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Zu(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&&(Zu(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&&(Zu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),xr.prototype.invalidateLayout=xr.prototype.C,xr.prototype.findCommonContainingGroup=xr.prototype.px,xr.prototype.isMemberOf=xr.prototype.Td,xr.prototype.findTopLevelPart=xr.prototype.sz,xr.prototype.findSubGraphLevel=xr.prototype.oz,xr.prototype.ensureBounds=xr.prototype.Va,xr.prototype.getDocumentBounds=xr.prototype.mi,xr.prototype.findObject=xr.prototype.fb,xr.prototype.moveTo=xr.prototype.moveTo,xr.prototype.invalidateAdornments=xr.prototype.Wb,xr.prototype.clearAdornments=xr.prototype.Ej,xr.prototype.removeAdornment=xr.prototype.Jf,xr.prototype.addAdornment=xr.prototype.bh,xr.prototype.findAdornment=xr.prototype.Pj,xr.prototype.updateTargetBindings=xr.prototype.La;var Z1=!1;xr.className="Part",xr.LayoutNone=0,xr.LayoutAdded=1,xr.LayoutRemoved=2,xr.LayoutShown=4,xr.LayoutHidden=8,xr.LayoutNodeSized=16,xr.LayoutGroupLayout=32,xr.LayoutNodeReplaced=64,xr.LayoutStandard=127,xr.LayoutAll=16777215;function pa(a,y){a===void 0||a instanceof ll||typeof a=="string"?xr.call(this,a):(xr.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)}$t(pa,xr),pa.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},pa.prototype.updateRelationshipsFromData=function(){},pa.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof fi&&y instanceof Co){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Yn;x.add(this),Y1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ld),y.Ue=!1}};function Y1(a,y,x,E,b,z,ne){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Yn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ld),y.Ue=!1}};function J1(a,y,x,E,b,z,ne){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),ue={};oe.next();){var ce=oe.value;if(ce.isTreeLink&&(re||ce.fd||ce.bb(),ce=ce.To(a),ce!==null&&ce!==a&&!y.contains(ce))){if(y.add(ce),!re){ce.Zb(!0),ce.oh();var me=x?ce.Oo():ce.Po();ue.vv=a,me.all(function(we){return function(Fe){return Fe===we.vv||!Fe.isTreeExpanded}}(ue))&&b.Cj(ce,z)}(2b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Qe.Object.defineProperties(Cu.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new hr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Cu.className="Placeholder";function fi(a){xr.call(this,ui.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Eu,this.Om=0,this.Qm=Eu,this.Rm=NaN,this.qj=ay,this.po=.5,this.wd=null,this.Nb=new Un().freeze(),this.Tg=this.Mg=null,this.ml=new Mn,this.ua=new Qt,this.u=this.o=this.Sf=this.Wf=null,this.su=new st,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}$t(fi,xr),fi.prototype.cloneProtected=function(a){xr.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())},Ne=fi.prototype,Ne.Af=function(a){xr.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&&dc(y),a=a.toPort,a!==null&&dc(a)},Ne.qb=function(a){a.classType===fi?(a.value&2)===2?this.routing=a:a===Ec||a===Xh||a===yp?this.curve=a:a===tm||a===P0||a===w0?this.adjusting=a:a!==ay&&a!==Eu&&Et("Unknown Link enum value for a Link property: "+a):xr.prototype.qb.call(this,a)},Ne.Xc=function(){this.ba===null&&(this.ba=new yo)},Ne.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),kt(a)||Pf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),kt(a)||Pf(a)))},Ne.zv=function(){return!1},Ne.Av=function(){},Ne.Zc=function(){return!1},fi.prototype.computeAngle=function(a,y,x){return fi.computeAngle(y,x)},fi.computeAngle=function(a,y){switch(a){default:case Eu:a=0;break;case nm:a=y;break;case im:a=y+90;break;case rm:a=y-90;break;case sy:a=y+180;break;case C0:a=nt.bp(y),90a&&(a-=180);break;case om:a=nt.bp(y+90),90a&&(a-=180);break;case am:a=nt.bp(y-90),90a&&(a-=180);break;case E0:if(a=nt.bp(y),45a||225a)return 0;90a&&(a-=180)}return nt.bp(a)};function mp(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&ty(x,a),a.Ah=y,y!==null&&ey(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),b(a,x,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ne=fi.prototype,Ne.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&xr.prototype.oh.call(this)},Ne.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ne.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function ex(a,y){a.wd===null&&(a.wd=new Yn),a.wd.add(y),a.v()}Ne.Vo=function(a){if(xr.prototype.Vo.call(this,a),tg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,f0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||f0(x,this,E)}qp(this)}},Ne.Wo=function(a){if(xr.prototype.Wo.call(this,a),tg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,g0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||g0(x,this,E)}em(this)}},Ne.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},fi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},fi.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?xr.prototype.move.call(this,a,!1):(a=st.allocAt(x.x+E,x.y+b),xr.prototype.move.call(this,a,!1),st.free(a)),Yh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},fi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},fi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},fi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ga),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ec))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()===Ec){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return nt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),nt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},fi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ec))return this.ua.wx(.5);if(this.computeCurve()===Ec&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),nt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ne=fi.prototype,Ne.i=function(a){return this.Nb.s[a]},Ne.dd=function(a,y){this.Nb.cd(a,y)},Ne.L=function(a,y,x){this.Nb.cd(a,new st(y,x))},Ne.Kz=function(a,y){this.Nb.Gb(a,y)},Ne.m=function(a,y,x){this.Nb.Gb(a,new st(y,x))},Ne.ne=function(a){this.Nb.add(a)},Ne.yf=function(a,y){this.Nb.add(new st(a,y))},Ne.pv=function(a){this.Nb.mb(a)},Ne.Fj=function(){this.Nb.clear()};function Yh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Un,z=a.Nb.iterator;z.next();){var ne=z.value;b.add(new st(ne.x+y,ne.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),uu(a)),E?m0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&is(ne.animationManager,a,b),a.g("points",z,b)}}Ne.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ne.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ne=0;neue&&(me=-me),_e=(0>oe?-1:1)*me+Fe,pt=ce*(_e-Fe)+De),Fe=z.x+2*re/3,De=z.y+2*oe/3;var it=Fe,bt=De;nt.B(oe,0)?bt=0oe?-1:1)*me+Fe,bt=ce*(it-Fe)+De),this.Fj(),this.ne(z),this.yf(_e,pt),this.yf(it,bt),this.ne(we),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,we=b,E=this.getLinkPoint(a,y,ne,!0,!1,z,we),b=this.getLinkPoint(z,we,x,!1,!1,a,y),this.hasCurviness()?(we=b.x-E.x,x=b.y-E.y,ne=this.computeCurviness(),a=E.x+we/2,y=E.y+x/2,z=a,re=y,nt.B(x,0)?re=0ne&&(z=-z),z=(0>x?-1:1)*z+a,re=we*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=Mn.alloc(),y.mi(re),oe=re.ca(b),we.mi(re),ue=re.ca(E),(oe||ue)&&(ne=y.ga(y0(ne),new st),this.dd(0,this.getLinkPointFromPoint(a,y,ne,b,!0,ne)),x=we.ga(y0(x),new st),this.dd(1,this.getLinkPointFromPoint(z,we,x,E,!1,x))),Mn.free(re))}else{me=this.isAvoiding,we&&(ce&&me||ue)&&this.Fj();var It=ue?this.computeCurviness():0;me=this.getLinkPoint(a,y,ne,!0,ce,E,b),Fe=_e=De=0,(ce||!re||ue)&&(pt=this.computeEndSegmentLength(a,y,ne,!0),Fe=this.getLinkDirection(a,y,me,ne,!0,ce,E,b),ue&&(re||ne.D(x)||!ce&&ne.x+x.x===1&&ne.y+x.y===1)&&(Fe-=ce?90:30,0>It&&(Fe-=180)),0>Fe?Fe+=360:360<=Fe&&(Fe-=360),ue&&(pt+=Math.abs(It)*(ce?1:2)),Fe===0?De=pt:Fe===90?_e=pt:Fe===180?De=-pt:Fe===270?_e=-pt:(De=pt*Math.cos(Fe*Math.PI/180),_e=pt*Math.sin(Fe*Math.PI/180)),ne.Mc()&&ue&&(pt=y.ga(Oo,st.alloc()),it=st.allocAt(pt.x+1e3*De,pt.y+1e3*_e),this.getLinkPointFromPoint(a,y,pt,it,!0,me),st.free(pt),st.free(it))),pt=this.getLinkPoint(E,b,x,!1,ce,a,y);var Rt=bt=it=0;if(ce||!oe||ue){var Kt=this.computeEndSegmentLength(E,b,x,!1);Rt=this.getLinkDirection(E,b,pt,x,!1,ce,a,y),ue&&(oe||ne.D(x)||!ce&&ne.x+x.x===1&&ne.y+x.y===1)&&(Rt+=ce?0:30,0>It&&(Rt+=180)),0>Rt?Rt+=360:360<=Rt&&(Rt-=360),ue&&(Kt+=Math.abs(It)*(ce?1:2)),Rt===0?it=Kt:Rt===90?bt=Kt:Rt===180?it=-Kt:Rt===270?bt=-Kt:(it=Kt*Math.cos(Rt*Math.PI/180),bt=Kt*Math.sin(Rt*Math.PI/180)),x.Mc()&&ue&&(x=b.ga(Oo,st.alloc()),ne=st.allocAt(x.x+1e3*it,x.y+1e3*bt),this.getLinkPointFromPoint(E,b,x,ne,!1,pt),st.free(x),st.free(ne))}x=me,(ce||!re||ue)&&(x=new st(me.x+De,me.y+_e)),ne=pt,(ce||!oe||ue)&&(ne=new st(pt.x+it,pt.y+bt)),!we&&!ce&&re&&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}fi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new st),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ne=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,ue=a.m11*b,ce=b*(a.m21*a.dy-a.m22*a.dx),me=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ne+E.y*oe+ce,E=E.x*re+E.y*ue+me,ne=x.x*ne+x.y*oe+ce,x=x.x*re+x.y*ue+me}return y.Sj(b,E,ne,x,z),a!==null&&z.transform(a),z};function v0(a,y){var x=y.Zn;return x===null&&(x=new Rg,x.port=y,x.node=y.part,y.Zn=x),lx(x,a)}fi.prototype.getLinkPoint=function(a,y,x,E,b,z,ne,re){if(re===void 0&&(re=new st),x.sb()&&!vp(x))return y.ga(x,re),re;if(x.$c()){var oe=v0(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===nx){var ue=v0(this,ne);if(ue!==null&&oe.Gl=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(ai)||x.Hf(ki))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),st.free(oe),st.free(ue)}}return re}}return x=y.ga(y0(x),st.alloc()),this.pointsCount>(b?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),b&&(ne=ny(x,ne.copy()))):(oe=this.computeSpot(!E,ne),z=st.alloc(),ne=ne.ga(y0(oe),z),b&&(ne=ny(x,ne)),st.free(z)),this.getLinkPointFromPoint(a,y,x,ne,E,re),st.free(x),re},fi.prototype.getLinkDirection=function(a,y,x,E,b,z,ne,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?ny(oe,re.copy()):x):(x=st.alloc(),re=re.ga(Oo,x),st.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,st.free(oe),oe=x}return E.Mc()&&ne.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),vp(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},fi.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=v0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},fi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Oo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Fi?Cs:y)):(a=y||this.toPort,a===null?a=Oo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Fi?Cs:y)),a};function vp(a){return a===Cs||a.x===.5&&a.y===.5}function y0(a){return a.x===.5&&a.y===.5?a:Oo}fi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Eu&&4we.width||me.y>we.height||0>me.x+me.width||0>me.y+me.height)){if(me=Yt.alloc(),me.set(ne),ce instanceof ui)re=ce.Cf(a,y,x,E,b,me);else if(this.path===ce){if(ce instanceof Co)if(re=a,we=E,ce.pickable===!1)re=!1;else if(me.multiply(ce.transform),we)e:{var Fe=re,De=me;if(ce.fh(Fe,De))re=!0;else{if(De===void 0&&(De=ce.transform,Fe.Re(ce.actualBounds))){re=!0;break e}re=Fe.left,we=Fe.right;var _e=Fe.top;Fe=Fe.bottom;var pt=st.alloc(),it=st.alloc(),bt=st.alloc(),It=Yt.alloc();It.set(De),It.bv(ce.transform),It.Vj(),it.x=we,it.y=_e,it.transform(It),pt.x=re,pt.y=_e,pt.transform(It),De=!1,qf(ce,pt,it,bt)?De=!0:(pt.x=we,pt.y=Fe,pt.transform(It),qf(ce,pt,it,bt)?De=!0:(it.x=re,it.y=Fe,it.transform(It),qf(ce,pt,it,bt)?De=!0:(pt.x=re,pt.y=_e,pt.transform(It),qf(ce,pt,it,bt)&&(De=!0)))),Yt.free(It),st.free(pt),st.free(it),st.free(bt),re=De}}else re=ce.fh(re,me)}else re=rl(ce,a,E,me);re&&(we=ce,y!==null&&(we=y(ce)),we&&(x===null||x(we))&&b.add(we)),Yt.free(me)}}}return z===void 0&&Yt.free(ne),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Yt.free(ne),!1},fi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Ec:this.curve},fi.prototype.computeCorner=function(){if(this.curve===Ec)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},fi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eoe?-Math.PI/2:Math.PI/2;else ce=Math.atan(oe/Math.abs(re)),0>re&&(ce=Math.PI-ce);ne=y.x;var me=y.y;re=E.x-ne;var we=E.y-me;for(oe=Math.sqrt(re*re+we*we),nt.$(re,0)?we=0>we?-Math.PI/2:Math.PI/2:(we=Math.atan(we/Math.abs(re)),0>re&&(we=Math.PI-we)),ue=oe/ue,ce=we-ce,this.dd(a,y),a+=1;aoe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ce,y*=ue,this.L(a,ne+y*Math.cos(re),me+y*Math.sin(re)));this.dd(x,E)}}return!0;case w0:if(z=this.i(a),me=this.i(x),!z.Xa(y)||!me.Xa(E)){b=z.x,z=z.y,ne=me.x,me=me.y,ue=(ne-b)*(ne-b)+(me-z)*(me-z),re=y.x,ce=y.y,oe=E.x,we=E.y;var Fe=1;if(oe-re!==0){var De=(we-ce)/(oe-re);Fe=Math.sqrt(1+1/(De*De))}else De=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(sm,sm),oe.Bc(sm,sm),re.Ye(a),oe.Ye(x);var ue=st.alloc(),ce=st.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&oe.right>a.x?(ue.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),E===180?(ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=ue.x,ce.y=x.y):E===270&&x.ya.y?(ue.x=a.xoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ce.x=ue.x,ce.y=x.y):E===0&&a.xoe.top&&a.yre.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(ue.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ce.x=x.x,ce.y=ue.y),ue.y>re.top&&ue.y=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(ue.h(Math.max((a.x+x.x)/2,a.x),a.y),ce.h(ue.x,x.y)):(ue.y=E===270||(E===0||E===180)&&x.ya.y&&oe.lefta.y?(ue.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.yoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ce.x=ue.x,ce.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.yre.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(ue.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ce.x=x.x,ce.y=ue.y),ue.y>re.top&&ue.y=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(ue.h(Math.min((a.x+x.x)/2,a.x),a.y),ce.h(ue.x,x.y)):(ue.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&oe.bottom>a.y?(ue.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),E===270?(ue.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=ue.y):E===180&&x.xa.x?(ue.y=a.yoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ce.x=x.x,ce.y=ue.y):E===90&&a.yoe.left&&a.xre.right)&&(E===270&&(oe.ca(a)||re.ca(x))?ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(ue.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ce.x=ue.x,ce.y=x.y),ue.x>re.left&&ue.x=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(ue.h(a.x,Math.max((a.y+x.y)/2,a.y)),ce.h(x.x,ue.y)):(ue.x=E===180||(E===90||E===270)&&x.xa.x&&oe.top=a.x?(ue.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.xoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ce.x=x.x,ce.y=ue.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.xre.right)&&(E===90&&(oe.ca(a)||re.ca(x))?ue.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(ue.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ce.x=ue.x,ce.y=x.y),ue.x>re.left&&ue.x=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(ue.h(a.x,Math.min((a.y+x.y)/2,a.y)),ce.h(x.x,ue.y)):(ue.x=E===180||(E===90||E===270)&&x.x=Sp&&(ox(Fe),re.Bc(Fe.Ho*Fe.Hx,Fe.Go*Fe.Ix),ax(Fe,a,y,me,E,re,!1),oe=th(Fe,me.x,me.y)),!Fe.abort&&oethis.pointsCount?(y===0||y===180?(re.x=a.x,re.y=me.y):(re.x=me.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ne=this.i(3),y===0||y===180?nt.B(re.x,ne.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ne.y)):nt.B(re.y,ne.y)?(Math.abs(a.y-re.y)<=Fe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ne.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(nt.B(re.y,ne.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ne.x,re)):nt.B(re.x,ne.x)?(Math.abs(a.x-re.x)<=Fe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ne.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),De!==null&&(E===0||E===180?this.yf(z.x,De.y):this.yf(De.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ue.copy()),this.ne(ce.copy())),st.free(ue),st.free(ce)}},fi.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function iy(a){if(a.diagram===null||!a.isAvoiding||!Kf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=gf(a.diagram,!0,a.containingGroup,null);for(var E=1;Eng&&th(y,ce,me)!==ue-1&&(th(y,x-re,E)===ue-1?(b=180,ce=x-re,me=E):th(y,x+re,E)===ue-1?(b=0,ce=x+re,me=E):th(y,x,E-oe)===ue-1?(b=270,ce=x,me=E-oe):th(y,x,E+oe)===ue-1&&(b=90,ce=x,me=E+oe));ue>ng&&th(y,ce,me)===ue-1;)x=ce,E=me,b===0?ce+=re:b===90?me+=oe:b===180?ce-=re:me-=oe,--ue;z?ue>ng&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),ue>ng&&(z=b,ne=x,ce=E,b===0?(z=90,ce+=oe):b===90?(z=180,ne-=re):b===180?(z=270,ce-=oe):b===270&&(z=0,ne+=re),th(y,ne,ce)===ue-1?ry(a,y,ne,ce,z,!1,z):(ne=x,ce=E,b===0?(z=270,ce-=oe):b===90?(z=0,ne+=re):b===180?(z=90,ce+=oe):b===270&&(z=180,ne-=re),th(y,ne,ce)===ue-1&&ry(a,y,ne,ce,z,!1,z))),a.yf(x,E)}fi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Na(y,a,x.x,x.y,E.x,E.y),z=0,ne=1;nethis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oept?De>Fe?(z.x=it-It,z.y=Fe-It,b.x=it+_e,b.y=Fe+_e):(z.x=it-It,z.y=Fe+It,b.x=it+_e,b.y=Fe-_e):De>Fe?(z.x=it+It,z.y=Fe-It,b.x=it-_e,b.y=Fe+_e):(z.x=it+It,z.y=Fe+It,b.x=it-_e,b.y=Fe-_e)),nt.$(pt,it)&&nt.$(Fe,De)&&(Fe>we?(bt>it?(z.x=it-It,z.y=Fe-It,b.x=it+_e):(z.x=it+It,z.y=Fe-It,b.x=it-_e),b.y=Fe+_e):(bt>it?(z.x=it-It,z.y=Fe+It,b.x=it+_e):(z.x=it+It,z.y=Fe+It,b.x=it-_e),b.y=Fe-_e)),(nt.$(pt,it)&&nt.$(it,bt)||nt.$(we,Fe)&&nt.$(Fe,De))&&(pt=.5*(pt+bt),we=.5*(we+De),z.x=pt,z.y=we,b.x=pt,b.y=we),(me===1||me===2&&nt.$(ne.x,this.i(0).x)&&nt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ue.x),x.y=.5*(ne.y+ue.y)),Kh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,ue.x-E,ue.y-oe),y.set(z),x.set(b),ne=ue}}ue=ne.x,ne=ne.y,ce=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ce=Ig(this,ce.copy(),!1,sa)),ue=.5*(ue+ce.x),ne=.5*(ne+ce.y),Kh(re,b.x-E,b.y-oe,ue-E,ne-oe,ce.x-E,ce.y-oe),st.free(y),st.free(x),st.free(z),st.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=Ig(this,ne.copy(),!1,sa)),Kh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ne.x-E,ne.y-oe);else{for(z=st.alloc(),z.assign(this.i(0)),b=st.alloc(),b.assign(z),ne=this.computeCorner(),me=1,ue=0;me=y-1){if(!z.D(ce))this.computeShortLength(!1)!==0&&(ce=Ig(this,ce.copy(),!1,sa)),Og(this,re,-E,-oe,z,ce,x);else if(ue===0)for(me=1;mez.x?Rt=we.x-De:Rt=we.x+De,it.y>we.y?bt=we.y+It:bt=we.y-It,it=st.allocAt(Rt,Kt),Og(this,re,me,pt,z,it,_e),st.free(it),u0(re,we.x+me,we.y+pt,Fe+me,bt+pt),z.h(Fe,bt)}else nt.B(z.x,we.x)&&nt.B(we.y,it.y)?(De=Math.min(ne,Math.abs(we.y-b.y)/2),De=It=Math.min(De,Math.abs(it.x-we.x)/2),nt.B(It,0)?(Og(this,re,me,pt,z,we,_e),z.assign(we)):(Rt=we.x,Kt=we.y,Fe=Rt,bt=Kt,we.y>z.y?Kt=we.y-De:Kt=we.y+De,it.x>we.x?Fe=we.x+It:Fe=we.x-It,it=st.allocAt(Rt,Kt),Og(this,re,me,pt,z,it,_e),st.free(it),u0(re,we.x+me,we.y+pt,Fe+me,bt+pt),z.h(Fe,bt))):(Og(this,re,me,pt,z,we,_e),z.assign(we));b.assign(ce),me=ue}st.free(z)}c0=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Ig(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Ig(this,re,!1,z)),a.type=Qt.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function x0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),nt.$(a,0)?y:nt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ig(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=x0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=x0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function oy(a,y,x,E){for(var b=a.pointsCount,z=y;nt.$(y.x,z.x)&&nt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!nt.$(y.x,z.x)&&!nt.$(y.y,z.y))return x-1;for(var ne=z;nt.$(y.x,z.x)&&nt.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||nt.$(y.y,z.y)&&nt.$(z.y,ne.y)&&(!E||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(x>=b)return b-1;ne=a.i(x++)}return x-2}fi.prototype.computeJumpLength=function(){return 10};function Og(a,y,x,E,b,z,ne){if(!ne&&tg(a)){ne=a.computeJumpLength();var re=ne/2,oe=[],ue=0;if(a.isVisible()&&(ue=bS(a,b,z,oe)),0me-ne);)ue--,me=Math.max(ce-re,z.x);ce=z.y-ne+E,me+=x,Fe=z.y+E,a.curve===Xh?pp(y,me,Fe,!1):Kh(y,we,ce,me,ce,me,Fe)}else if(nt.B(b.x,z.x))if(b.yce-ne);)ue--,ce=Math.max(me-re,z.y);me=z.x-ne+x,Fe=z.x+x,ce+=E,a.curve===Xh?pp(y,Fe,ce,!1):Kh(y,me,we,me,ce,Fe,ce)}}}y.lineTo(z.x+x,z.y+E)}function bS(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ne=z.length,re=0;rene.x&&ce.x>=ue.x||ue.xne.y&&ce.y>=ue.y||ue.yne&&Math.min(De,_e)ce&&!nt.B(De,_e)){re.x=ce,re.y=ne,ce=!0;break e}}else if(nt.B(me,Fe)&&nt.B(De,_e)&&Math.min(ce,we)De&&Math.min(ne,pt)me&&!nt.B(ne,pt)){re.x=De,re.y=me,ce=!0;break e}re.x=0,re.y=0,ce=!1}ce&&(b?x.push(re.x):x.push(re.y)),ne=ue}st.free(re)}function tg(a){return a=a.curve,a===yp||a===Xh}function S0(a,y){(y||tg(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}fi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ne=b.length,re=0;rea&&Kn(a,">= 0",fi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Fi},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&&dc(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&&Kn(a,">= 0",fi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);nt.Dl(b.x,b.y,ne.x,ne.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):nt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!vp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!vp(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(),S0(this,y===Xh||y===yp||a===Xh||a===yp),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(),S0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),fi.prototype.invalidateOtherJumpOvers=fi.prototype.Xo,fi.prototype.findClosestSegment=fi.prototype.ez,fi.prototype.updateRoute=fi.prototype.vg,fi.prototype.invalidateRoute=fi.prototype.bb,fi.prototype.rollbackRoute=fi.prototype.rv,fi.prototype.commitRoute=fi.prototype.zf,fi.prototype.startRoute=fi.prototype.uh,fi.prototype.clearPoints=fi.prototype.Fj,fi.prototype.removePoint=fi.prototype.pv,fi.prototype.addPointAt=fi.prototype.yf,fi.prototype.addPoint=fi.prototype.ne,fi.prototype.insertPointAt=fi.prototype.m,fi.prototype.insertPoint=fi.prototype.Kz,fi.prototype.setPointAt=fi.prototype.L,fi.prototype.setPoint=fi.prototype.dd,fi.prototype.getPoint=fi.prototype.i,fi.prototype.getOtherPort=fi.prototype.Cz,fi.prototype.getOtherNode=fi.prototype.To;var Tg=null,kg=null,ay=new Cn(fi,"Normal",1),BS=new Cn(fi,"Orthogonal",2),MS=new Cn(fi,"AvoidsNodes",6),nx=new Cn(fi,"AvoidsNodesStraight",7),Eu=new Cn(fi,"None",0),Ec=new Cn(fi,"Bezier",9),Xh=new Cn(fi,"JumpGap",10),yp=new Cn(fi,"JumpOver",11),tm=new Cn(fi,"End",17),P0=new Cn(fi,"Scale",18),w0=new Cn(fi,"Stretch",19),nm=new Cn(fi,"OrientAlong",21),im=new Cn(fi,"OrientPlus90",22),rm=new Cn(fi,"OrientMinus90",23),sy=new Cn(fi,"OrientOpposite",24),C0=new Cn(fi,"OrientUpright",25),om=new Cn(fi,"OrientPlus90Upright",26),am=new Cn(fi,"OrientMinus90Upright",27),E0=new Cn(fi,"OrientUpright45",28),ix=16,rx=14,sm=8;fi.className="Link",fi.Normal=ay,fi.Orthogonal=BS,fi.AvoidsNodes=MS,fi.AvoidsNodesStraight=nx,fi.None=Eu,fi.Bezier=Ec,fi.JumpGap=Xh,fi.JumpOver=yp,fi.End=tm,fi.Scale=P0,fi.Stretch=w0,fi.OrientAlong=nm,fi.OrientPlus90=im,fi.OrientMinus90=rm,fi.OrientOpposite=sy,fi.OrientUpright=C0,fi.OrientPlus90Upright=om,fi.OrientMinus90Upright=am,fi.OrientUpright45=E0,fi.EndSegmentStep=8,fi.CurvinessStart=ix,fi.SpacingMin=rx,fi.OrthoShortCut=sm;function b0(a,y,x,E){Ao(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}b0.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,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=ng&&(x[E]=ly)}lm.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Jh)return!1}return!0};function nh(a,y,x,E,b,z,ne,re,oe){if(!(yne||xoe)){var ue=y|0,ce=x|0,me=a.ac[ue][ce];if(me>=ng&&me=a.ac[ue][ce]);)a.ac[ue][ce]=me,me+=1,b?ce+=E:ue+=E;if(ue=b?ce:ue,b)if(0ue;x+=E)nh(a,y,x,1,!b,z,ne,re,oe),nh(a,y,x,-1,!b,z,ne,re,oe);else if(0ue;y+=E)nh(a,y,x,1,!b,z,ne,re,oe),nh(a,y,x,-1,!b,z,ne,re,oe)}}function F0(a,y,x,E,b,z,ne,re,oe){y|=0,x|=0;var ue=Jh,ce=ng;for(a.ac[y][x]=ce;ue===Jh&&y>z&&yre&&xz&&yre&&x=Math.abs(re-ue)&&1>=Math.abs(oe-ce))a.abort=!0;else{var me=z.x;E=z.y,y=z.x+z.width;var we=z.y+z.height;me-=a.Nd,me/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,we-=a.Od,we/=a.sc,z=Math.max(0,Math.min(a.di,me|0)),y=Math.min(a.di,Math.max(0,y|0)),me=Math.max(0,Math.min(a.ei,E|0)),we=Math.min(a.ei,Math.max(0,we|0)),E=a.ac,re|=0,oe|=0,ue|=0,ce|=0;var Fe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Jh?(F0(a,re,oe,Fe,x,z,y,me,we),F0(a,re,oe,1,!x,z,y,me,we),F0(a,re,oe,-1,!x,z,y,me,we)):F0(a,re,oe,Fe,x,re,oe,re,oe),E[ue][ce]===Jh?(B0(a,ue,ce,b===0||b===90?1:-1,b===90||b===270,z,y,me,we),B0(a,ue,ce,1,!(b===90||b===270),z,y,me,we),B0(a,ue,ce,-1,!(b===90||b===270),z,y,me,we)):B0(a,ue,ce,Fe,x,ue,ce,ue,ce),x=vi(),ne&&sx(a,ue,ce,b,re,oe,x))for((x[0]!==ue||x[1]!==ce)&&(x.unshift(ce),x.unshift(ue)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=ng,b=x[x.length-2],ne=x[x.length-1],E[b][ne]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ne=x[z+3],y=x[z],ue=x[z+1];y>b?b++:yne?ne++:ueb)ce--;else break;else if(me>z)me--;else break;var we=re[ce][me];if(we===0||we===uy)break;oe=ce,ue=me}for(;;){if(ce=E,me=oe,we=ue,E===0?wez&&(ce=270,we--):E===90?meb&&(ce=180,me--):E===180?wez&&(ce=270,we--):meb&&(ce=180,me--),me=re[me][we],ce!==E&&me!==0&&me!==uy){if(ne.push(oe),ne.push(ue),sx(a,oe,ue,ce,b,z,ne))return!0;ne.pop(),ne.pop()}if(re[oe][ue]=uy,E===0){if(oe===y)return!1;oe--}else if(E===90){if(ue===x)return!1;ue--}else if(E===180){if(oe===y)return!1;oe++}else{if(ue===x)return!1;ue++}}}Qe.Object.defineProperties(lm.prototype,{bounds:{get:function(){return new Mn(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 E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Rg.prototype.Sl=function(){this.pe.length=0};function lx(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof ho?b:null;if(z===null||z.isSubGraphExpanded)var ne=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ne=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Us,st.alloc()),oe=a.port.ga(Nn,st.alloc());for(b=Mn.allocAt(re.x,re.y,0,0),b.Ye(oe),st.free(re),st.free(oe),re=st.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ne=ne.iterator;ne.next();){var ue=ne.value;if(ue.isVisible()&&ue.fromPort!==ue.toPort){var ce=ue.fromPort===a.port||ue.fromNode!==null&&ue.fromNode.Td(E),me=ue.computeSpot(ce,a.port);if(me.$c()&&(ce=ce?ue.toPort:ue.fromPort,ce!==null)){var we=ce.part;if(we!==null){var Fe=we.findVisibleNode();Fe!==null&&Fe!==we&&(we=Fe,ce=we.port),ce=ue.computeOtherPoint(we,ce),we=re.ab(ce),we-=oe,0>we?we+=360:360<=we&&(we-=360),me=LS(b,me,we,ue.isOrthogonal),me===0?(me=4,180we&&(we+=360)),Fe=a.pe[z],Fe===void 0?(Fe=new cy(ue,we,me),a.pe[z]=Fe):(Fe.link=ue,Fe.angle=we,Fe.Nc=me),Fe.hv.set(ce),z++}}}}for(st.free(re),a.pe.sort(Rg.prototype.j),oe=a.pe.length,E=-1,z=re=0;zMath.abs(_e)?(bt=Math.abs(_e)/we,we=Math.abs(_e)):bt=1;break;case 2:Fe>Math.abs(It)?(bt=Math.abs(It)/Fe,Fe=Math.abs(It)):bt=1;break;case 1:me>Math.abs(_e)?(bt=Math.abs(_e)/me,me=Math.abs(_e)):bt=1;break;default:case 4:ce>Math.abs(It)?(bt=Math.abs(It)/ce,ce=Math.abs(It)):bt=1}it=0}var hn=Rt.Zo;if(E===qv){switch(Rt=Rt.link.computeThickness(),Rt*=bt,hn.set(Kt),De){case 8:hn.x=Kt.x+_e/2+we/2-it-Rt/2;break;case 2:hn.y=Kt.y+It/2+Fe/2-it-Rt/2;break;case 1:hn.x=Kt.x+_e/2-me/2+it+Rt/2;break;default:case 4:hn.y=Kt.y+It/2-ce/2+it+Rt/2}it+=Rt}else{var bi=.5;E===p0&&(bi=(Rt.Uo+1)/(Rt.Gl+1)),hn.x=Kt.x+_e*bi,hn.y=Kt.y+It*bi}}}for(st.free(re),st.free(oe),st.free(ne),st.free(ue),Kt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Cs,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=ne+20,ne=0):z++}},xs.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value.node;if(!(re===null||re instanceof fi)&&(um(re),this.rh(re))){var oe=re.measuredBounds,ue=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof ho&&(re.rh=!1),x+=Math.max(ue,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},xs.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ho&&a.rh)};function Ef(a,y,x,E,b,z,ne,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof Ni?oe.isLinkLabel||(oe instanceof ho&&oe.layout===null?Ef(a,y,oe.memberParts,!1,b,z,ne,re):(um(oe),y.add(oe))):ne&&oe instanceof fi?y.add(oe):!re||!oe.Zc()||oe instanceof Ni||(um(oe),y.add(oe)))}}function um(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}xs.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Mn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},xs.prototype.ex=function(a){var y=new Yn;return a instanceof dn?(Ef(this,y,a.nodes,!0,null,!0,!0,!0),Ef(this,y,a.links,!0,null,!0,!0,!0),Ef(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ho?Ef(this,y,a.memberParts,!1,null,!0,!0,!0):Ef(this,y,a.iterator,!1,null,!0,!0,!0),y},xs.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(Us),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Qe.Object.defineProperties(xs.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())}}}),xs.prototype.collectParts=xs.prototype.ex,xs.prototype.getLayoutBounds=xs.prototype.ni,xs.prototype.invalidateLayout=xs.prototype.C,xs.className="Layout";function ts(a){Ao(this),this.Sc=a,this.wf=new Yn,this.ye=new Yn,this.Es=new Ki,this.zs=new Ki}ts.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 Yn,this.ye=new Yn,this.Es=new Ki,this.zs=new Ki},ts.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}Qe.Object.defineProperties(ul.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=Mn.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),Mn.free(x),!(a instanceof ho)&&(a=a.locationObject.ga(Oo),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Yn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Yn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Yn,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 Un,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}}}),ul.prototype.deleteDestinationEdge=ul.prototype.Jl,ul.prototype.addDestinationEdge=ul.prototype.zl,ul.prototype.deleteSourceEdge=ul.prototype.Kl,ul.prototype.addSourceEdge=ul.prototype.Cl,ul.className="LayoutVertex",ul.standardComparer=gy,ul.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},hc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},hc.prototype.commit=function(){},hc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Qe.Object.defineProperties(hc.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)}}}),hc.prototype.getOtherVertex=hc.prototype.Ax,hc.className="LayoutEdge";function Rl(a){xs.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new pi(NaN,NaN).freeze(),this.tf=new pi(10,10).freeze(),this.Jb=cm,this.Rb=L0,this.nd=dm,this.hd=cx,a&&Object.assign(this,a)}$t(Rl,xs),Rl.prototype.cloneProtected=function(a){xs.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Rl.prototype.qb=function(a){a.classType===Rl?a===dm||a===A0||a===py||a===N0?this.sorting=a:a===L0||a===md?this.arrangement=a:a===cm||a===M0?this.alignment=a:Et("Unknown enum value: "+a):xs.prototype.qb.call(this,a)},Rl.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof ho)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case N0:b.reverse();break;case dm:b.sort(this.comparer);break;case A0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=z&&0>=ne&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case M0:var re=y,oe=x,ue=Mn.alloc(),ce=Math.max(this.cellSize.width,1);if(!isFinite(ce))for(var me=ce=0;mez-1||0ne)&&(E.push(new Mn(0,_e,ne+re,it)),pt=0,De=Fe,_e+=it,it=0),it=Math.max(it,hn),we){case md:Rt=-Rt.width;break;default:Rt=0}switch(It.moveTo(De+Rt,_e),we){case md:De-=Kt;break;default:De+=Kt}pt++}E.push(new Mn(0,_e,ne+re,it)),Mn.free(ue);break;case cm:for(oe=ne,ce=z,me=y,we=x,ne=Mn.alloc(),Fe=Math.max(this.cellSize.width,1),z=_e=ue=0,re=st.alloc(),De=0;De=ue&&(oe-=ue),ue=It=0,Kt=Math.max(this.cellSize.height,1),Rt=z=0,hn=!0,pt=st.alloc(),bi=0;bice-1||0oe){for(E.push(new Mn(0,hn?bt-z:bt,oe+me,Rt+z+we)),Xi=0;Xi<_e&&bi!==_e;Xi++){lo=b[bi-_e+Xi];var $r=Vh(lo,lo.locationObject,lo.locationSpot,pt);lo.moveTo(lo.position.x,lo.position.y+z-$r.y)}Rt+=we,bt=hn?bt+Rt:bt+(Rt+z),_e=Rt=z=0,Xi=it,hn=!1}switch(Xi===it&&(ue=De===md?Math.max(ue,hi.width-ti.x):Math.min(ue,-ti.x)),z=Math.max(z,ti.y),Rt=Math.max(Rt,hi.height-ti.y),isFinite(Kt)&&(Rt=Math.max(Rt,Math.max(hi.height,Kt)-ti.y)),hn?zi.moveTo(Xi-ti.x,bt-ti.y):zi.moveTo(Xi-ti.x,bt),De){case md:Xi-=ti.x+me;break;default:Xi+=hi.width-ti.x+me}_e++}if(E.push(new Mn(0,bt,oe+me,(hn?Rt:Rt+z)+we)),b.length!==_e)for(oe=0;oe<_e;oe++)ce=b[b.length-_e+oe],me=Vh(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-me.y);if(st.free(re),st.free(pt),De===md)for(b=0;bue&&(z.width+=z.x-ue,z.x=ue);Mn.free(ne)}for(re=z=ne=b=0;rey?1:0}Qe.Object.defineProperties(Rl.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0me)){var _e=me+Kp(De);De.pc(_e,!0),Nv(De,_e,me)}}y.isModified=!0}}finally{y.aa=!0}}}}},ja.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)},ja.prototype.rp=function(){for(var a=this.H.model,y=new Yn,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Yi;b.add("["),x&&1E)return;Di(a.Tc,E)}al(a,"nodeDataArray",Wa,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ne.nA=function(a){if(sn(a))for(var y=a.length,x=0;xy&&(y=a.length),Oi(a,y,x),al(this,"",xa,"",a,null,x,null,y)},Ne.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Et("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Di(a,y),al(this,"",Wa,"",a,x,null,y,null)},Ne.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Qs(a,y),y===void 0))return"";if(typeof y=="string")return y;Et("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ne.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Qs(a,x);E===void 0&&(E=""),E!==y&&(vs(a,x,y),al(this,"nodeCategory",_o,x,a,E,y))}else vs(a,x,y)}},Ne.lm=function(a,y){this.jm(y,this.Ro(a))},Ne.Tl=function(){return!1},Ne.Wj=function(){return!1},Ne.ri=function(){return!1},Ne.xs=function(){return!1},Ne.Xj=function(){return!1};function Sy(){return new ar}function fm(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 fm(a,y.constructor);return typeof y}function Py(a){return ed[a]?ed[a]:ht.go!==void 0&&ht.go[a]?ht.go[a]:null}function Qs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function vs(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Qe.Object.defineProperties(ar.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===""&&Et("Model.nodeKeyProperty may not be the empty string"),0"+bc(this,b,!1)}return y},Ne.Qv=function(a,y){this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ar.prototype.Qv.call(this,a,y),E=this,b=new Yn,z=new Yn,ne=new Yn,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===xa?b.add(ce.newValue):ce.change===Wa&&ne.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(me){E.Jc(me)&&z.add(me)}):ce.object instanceof ar||E.lb(ce.object)||Lx(E,ce.object).each(function(me){z.add(me)})))});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(E.Ac(ce)),y||z.add(ce)});var ue=this.kl;return ue.clear(),ne.each(function(ce){ue.add(E.Ac(ce)),y&&z.add(ce)}),a=E.cloneDeep(z.Fa()),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Wa){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,tn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}ar.prototype.changeState.call(this,a,y)}},Ne=ia.prototype,Ne.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),vs(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ne.yx=function(a){return bc(this,a,!0)},Ne.wv=function(a,y){wp(this,a,y,!0)},Ne.Bx=function(a){return bc(this,a,!1)},Ne.Bv=function(a,y){wp(this,a,y,!1)};function bc(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Qs(y,a),a!==void 0))){if(Ff(a))return a;Et((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function wp(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Qs(y,b);z!==x&&(yd(a,z,y),vs(y,b,x),a.hc(x)===null&&vd(a,x,y),al(a,E?"linkFromKey":"linkToKey",_o,b,y,z,x),typeof b=="string"&&a.La(y,b))}else vs(y,b,x)}}Ne.zx=function(a){return k0(this,a,!0)},Ne.xv=function(a,y){Cp(this,a,y,!0)},Ne.Cx=function(a){return k0(this,a,!1)},Ne.Cv=function(a,y){Cp(this,a,y,!1)};function k0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Qs(y,a),y===void 0?"":y)}function Cp(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Qs(y,b);z===void 0&&(z=""),z!==x&&(vs(y,b,x),al(a,E?"linkFromPortId":"linkToPortId",_o,b,y,z,x),typeof b=="string"&&a.La(y,b))}else vs(y,b,x)}}Ne.Ef=function(a){if(a===null)return R0;var y=this.je;return y===""?R0:(a=Qs(a,y),a===void 0?R0:a)},Ne.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Qs(a,x);if(E===void 0&&(E=R0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(yd(this,y,a),al(this,"linkLabelKeys",Wa,x,a,y,null,b,null)))}else E!==void 0&&Et(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ne.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Qs(a,y),y!==void 0)){if(Ff(y))return y;Et("Key value for link data "+a+" is not a number or a string: "+y)}}},Ne.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Qs(a,x);E!==y&&this.jh(y)===null&&(vs(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),al(this,"linkKey",_o,x,a,E,y),typeof x=="string"&&this.La(a,x))}else vs(a,x,y)}},Ne.jh=function(a){return a===null&&Et("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Ff(a)?this.wb.I(a):null},Ne.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){vs(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;vs(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;vs(a,y,x)}}}}},Ne.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ne.fi=function(a){a!==null&&(Qo(a),this.Jc(a)||Nx(this,a,!0))};function Nx(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Et("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),al(a,"linkDataArray",xa,"linkDataArray",a,null,y,null,E),wy(a,y)}Ne.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(al(a,"linkDataArray",Wa,"linkDataArray",a,y,null,E,null),x=bc(a,y,!0),yd(a,x,y),x=bc(a,y,!1),yd(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Un;y.addAll(a.iterator),a=new Un;var x=new Un,E=this.sort(y),b,z,ne=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,ue=this.radius;(!isFinite(ue)||0>=ue)&&(ue=NaN);var ce=this.aspectRatio;(!isFinite(ce)||0>=ce)&&(ce=1);var me=this.startAngle;isFinite(me)||(me=0);var we=this.sweepAngle;if((!isFinite(we)||360we)&&(we=360),y=this.spacing,isFinite(y)||(y=NaN),re===nd&&oe===_g?re=td:re===nd&&oe!==_g&&(re=this.arrangement),(this.direction===ig||this.direction===Ep)&&this.sorting!==bp){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===ig?(this.arrangement===nd&&a.reverse(),E=new Un,E.addAll(a),E.addAll(x)):(this.arrangement===nd&&x.reverse(),E=new Un,E.addAll(x),E.addAll(a))}oe=E.length;for(var Fe=z=b=0;Fewe&&(Fe===0||Fe===E.length-1)&&(_e/=2),b+=_e,z++}if(isNaN(ue)||re===nd){if(isNaN(y)&&(y=6),re!==td&&re!==nd){for(z=-1/0,ne=0;neue?(ue=b,z=ue*ce):ne=Fe/(360<=we?oe:oe-1)}if(this.kw=re,this.lc=ue,this.Zm=ce,this.lw=me,this.Wp=we,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,re=this.lc,ue=this.lw,ce=this.Wp,me=this.Ti,we=this.me,oe=this.Jp,this.direction!==ig&&this.direction!==Ep||E!==nd)if(this.direction===ig||this.direction===Ep){switch(ne=0,E){case Bf:ne=180*j0(this,re,we,ue,oe)/Math.PI;break;case td:oe=y=0,ne=a.first(),ne!==null&&(y=Lf(ne,Math.PI/2)),ne=x.first(),ne!==null&&(oe=Lf(ne,Math.PI/2)),ne=180*j0(this,re,we,ue,me+(y+oe)/2)/Math.PI;break;case Qh:ne=ce/y.length}if(this.direction===ig){switch(E){case Bf:vm(this,a,ue,Mf);break;case td:mm(this,a,ue,Mf);break;case Qh:pm(this,a,ce/2,ue,Mf)}switch(E){case Bf:vm(this,x,ue+ne,Mu);break;case td:mm(this,x,ue+ne,Mu);break;case Qh:pm(this,x,ce/2,ue+ne,Mu)}}else{switch(E){case Bf:vm(this,x,ue,Mf);break;case td:mm(this,x,ue,Mf);break;case Qh:pm(this,x,ce/2,ue,Mf)}switch(E){case Bf:vm(this,a,ue+ne,Mu);break;case td:mm(this,a,ue+ne,Mu);break;case Qh:pm(this,a,ce/2,ue+ne,Mu)}}}else switch(E){case Bf:vm(this,y,ue,this.direction);break;case td:mm(this,y,ue,this.direction);break;case Qh:pm(this,y,ce,ue,this.direction);break;case nd:Ix(this,y,ce,ue,this.direction)}else Ix(this,y,ce,ue-ce/2,Mu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function pm(a,y,x,E,b){var z=a.Wp,ne=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oex){for(z=E+(b===Mu?z:-z);0>z;)z+=360;z%=360,180=ce.length-1));me++)kx(a,oe,ue,ce,me,b,z)||Rx(a,oe,ue,ce,me,b,z),oe=z.x,ue=z.y;if(st.free(z),a.mj++,!(23Math.abs(Fe)?Math.abs(oe-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ne=0):ne=0Math.abs(we)?0:we,oe=Math.abs(z)>Math.abs(me)?0me:0a.mj?a.lc-ne/(2*Math.PI):5>ce.length&&10=me.length-1));we++)kx(a,oe,ue,me,we,b,ce)||Rx(a,oe,ue,me,we,b,ce),oe=ce.x,ue=ce.y;if(st.free(ce),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0re){if(z=y-a,z<-re)return ne.x=z,ne.y=ue,!1;ce=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ne.x=z,ne.y=ue,!1;ce=!0}return ue=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ce&&(ue=-ue),Math.abs(x-ue)>(E[b].height+E[b+1].height)/2?(ne.x=z,ne.y=ue,!1):(ne.x=z,ne.y=ue,!0)}function Rx(a,y,x,E,b,z,ne){var re=a.lc,oe=a.me,ue=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Mu)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ne.x=ue,ne.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ne.x=ue,ne.y=z;return}E=!0}ue=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(ue=-ue),ne.x=ue,ne.y=z}Os.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Os.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 st(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Os.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Cy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,ue=0;ue<=z;ue++){E!==void 0&&b!==void 0?oe=E+ue*b/z:oe=ue*Math.PI/(2*z);var ce=Math.sin(oe);ne+=Math.sqrt(1-a*a*ce*ce)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function _0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?Cy(a,1,x,E,b):Cy(a,1,x))}function j0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ne+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ne>=b)return re*a}}Os.prototype.sort=function(a){switch(this.sorting){case z0:break;case Z0:a.reverse();break;case H0:a.sort(this.comparer);break;case W0:a.sort(this.comparer),a.reverse();break;case bp:return this.ak(IS(a));default:Et("Invalid sorting type.")}return a};function IS(a){for(var y=[],x=0;xb&&(b=re,z=ne)}else for(ne=0;neb&&(b=re,z=ne);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ne=z.sourceEdges;ne.next();)b=a.indexOf(ne.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Os.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[De]].indexOf(x[De===x.length-1?0:De+1])&&Fe.push(De===x.length-1?0:De+1);if(Fe.length===0)for(De=0;Dex.indexOf(hn)||Ktx.indexOf(hn)||Kt=_e?Kt+1:Kt)),it+=Kt=_e&&Kt++,It>=_e&&It++,Kt>It&&(Rt=It,It=Kt,Kt=Rt),It-Kt<(x.length+2)/2==(Kt<_e&&_e<=It)&&it++;(ptFe||Fe===ce||(De=Fe>ce?Fe-ce:ce-Fe,me+=Fene-De?1:-1);x.splice(0>me?ce:ce+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nd&&a!==td&&a!==Bf&&a!==Qh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Mu&&a!==Mf&&a!==ig&&a!==Ep||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==z0&&a!==Z0&&a!==H0&&!W0&&a!==bp||(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!==G0&&a!==_g||(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 td=new Cn(Os,"ConstantSpacing",0),Bf=new Cn(Os,"ConstantDistance",1),Qh=new Cn(Os,"ConstantAngle",2),nd=new Cn(Os,"Packed",3),Mu=new Cn(Os,"Clockwise",4),Mf=new Cn(Os,"Counterclockwise",5),ig=new Cn(Os,"BidirectionalLeft",6),Ep=new Cn(Os,"BidirectionalRight",7),z0=new Cn(Os,"Forwards",8),Z0=new Cn(Os,"Reverse",9),H0=new Cn(Os,"Ascending",10),W0=new Cn(Os,"Descending",11),bp=new Cn(Os,"Optimized",12),G0=new Cn(Os,"Pythagorean",13),_g=new Cn(Os,"Circular",14);Os.className="CircularLayout",Os.ConstantSpacing=td,Os.ConstantDistance=Bf,Os.ConstantAngle=Qh,Os.Packed=nd,Os.Clockwise=Mu,Os.Counterclockwise=Mf,Os.BidirectionalLeft=ig,Os.BidirectionalRight=Ep,Os.Forwards=z0,Os.Reverse=Z0,Os.Ascending=H0,Os.Descending=W0,Os.Optimized=bp,Os.Pythagorean=G0,Os.Circular=_g;function ym(){this.Pl=-1/0,this.tm=this.mk=null}ym.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0re?(b=we.x+we.width/2,z=we.y+we.height/2,ue[0]=new st(we.x+we.width+E.width,we.y),ue[1]=new st(we.x,we.y+we.height+E.height),re=2):(oe=jx(ue,re,b,z,we.width,we.height,E),me=ue[oe],Fe=new st(me.x+we.width+E.width,me.y),we=new st(me.x,me.y+we.height+E.height),oe+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=ne))){for(var ue=re=0,ce=oe.count-ne;ceFe&&(Fe=1),re=nt.sqrt((re+Fe+ue*ue*4/(ne*ne))/Fe),ne=(re-1)*ce/2,re=(re-1)*me/2,b.bounds=new Mn(z-we.x-ne,oe-we.y-re,ce+2*ne,me+2*re),b.focus=new st(we.x+ne,we.y+re)}}return a.network=E,x}function kS(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ne=b.Tv;E.bounds=new Mn(E.centerX-z,E.centerY-ne,b.Ss,b.Qs),E.focus=new st(z,ne),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function RS(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ne=y.height;y.We!==null&&0=me.Vd?oe++:(re=!0,ue++,ne+=Math.atan2(y.centerY-me.centerY,y.centerX-me.centerX))}if(oe!==0){for(0>1)+ue)*(re%2===0?1:-1),oe.centerX=E+ce*Math.cos(me),oe.centerY=b+ce*Math.sin(me),re++}}}}function jx(a,y,x,E,b,z,ne){var re=9e19,oe=-1,ue=0;e:for(;uece.y&&a[we].x-ce.xce.x&&a[we].y-ce.yy+z?(x=E+b-ne,a=a-y-z,nt.sqrt(x*x+a*a)):a+xne+re?a>y+z?(x=E-ne-re,a=a-y-z,nt.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 E=x.centerX,b=E,z=x=x.centerY,ne=1;nez-x)?y.sort(function(_e,pt){return _e===null||pt===null||_e===pt?0:_e.centerX-pt.centerX}):y.sort(function(_e,pt){return _e===null||pt===null||_e===pt?0:_e.centerY-pt.centerY}),x=a.Zf;var ue=E=re=0;for(z=0;zx||ue-oe>x){if(b)break}else if(ce-Fe>x||Fe-ce>x){if(!b)break}else{var De=zx(ne,we);1>De?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new K0),De=E.random(),re=E.random(),oe>ue?(E=Math.abs(we.bounds.right-ne.bounds.x),E=(1+E)*De):oeFe?(ue=Math.abs(we.bounds.bottom-ne.bounds.y),ue=(1+ue)*re):oeme?(me=a.randomNumberGenerator,me===null&&(a.randomNumberGenerator=me=new K0),re=me.random(),me=me.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,ue=(ne>ce?1:-1)*(1+(z.height>x.height?z.height:x.height))*me):(re=re.stiffness*(me-re.length),E=(oe-E)/me*re,ue=(ce-ne)/me*re),x.forceX+=E,x.forceY+=ue,z.forceX-=E,z.forceY-=ue;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}ql.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},ql.prototype.moveFixedVertex=function(){},ql.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ql.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Fi,y.toSpot=Fi)}},ql.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Mn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Mn.free(x)}x=Mn.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}Mn.free(x)},ql.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ql.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ql.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ql.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ql.prototype.electricalFieldX=function(){return 0},ql.prototype.electricalFieldY=function(){return 0},ql.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ql.prototype.gravitationalFieldX=function(){return 0},ql.prototype.gravitationalFieldY=function(){return 0},ql.prototype.isFixed=function(a){return a.isFixed},Qe.Object.defineProperties(ql.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0_e&&0_e&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]ne)for(var ce=ne+1;ceoe;ce--)me=E[ce],me.near===ue&&me.Dj===ue.Dj||re++;var we;if(0<=x)for(oe=E[ne].sourceEdgesArrayAccess,ue=0;ue_e||me===_e&&Fe>De)&&re++,ptme||_e===me&&De>Fe)&&re++}}}if(0>=x){for(oe=E[ne].destinationEdgesArrayAccess,ue=0;ue_e||me===_e&&ce>pt)&&re++,Deme||_e===me&&pt>ce)&&re++)}for(z[ne*b+ne]=re,oe=ne+1;oe=x){for(re=E[ne].destinationEdgesArrayAccess,It=E[oe].destinationEdgesArrayAccess,ue=0;ue=x&&(oe=re.sourceEdgesArrayAccess);var ue=null;0<=x&&(ue=re.destinationEdgesArrayAccess);var ce=0,me=0,we=re.near;if(we!==null&&we.layer===re.layer&&(ce+=we.column-1,me++),oe!==null)for(we=0;we=x&&(oe=re.sourceEdgesArrayAccess);var ue=null;0<=x&&(ue=re.destinationEdgesArrayAccess);var ce=0,me=[],we=re.near;if(we!==null&&we.layer===re.layer&&(me[ce]=we.column-1,ce++),re=void 0,oe!==null)for(we=0;we>1,z[ne]=ce&1?me[ue]:me[ue-1]+me[ue]>>1)}return Af(a,y,E),z}function wm(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();){var re=ne.value,oe=re.toVertex,ue=y.layer-oe.layer;re=a.linkMinLength(re),ue===re&&wm(a,oe,x,E,b,z)}if(z)for(ne=y.sourceEdges;ne.next();)re=ne.value,oe=re.fromVertex,ue=oe.layer-y.layer,re=a.linkMinLength(re),ue===re&&wm(a,oe,x,E,b,z)}}function Fy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();)Fy(a,ne.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)Fy(a,y.value.fromVertex,x,E,b,z)}}za.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ly:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;jS(a)!==null;){for(b=$x(a);b!==null;)E[x]=b,x--,b.valid=!1,b=$x(a);for(b=Kx(a);b!==null;)E[y]=b,y++,b.valid=!1,b=Kx(a);b=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value;if(re.valid){for(var oe=0,ue=re.destinationEdges;ue.next();)ue.value.toVertex.valid&&oe++;ue=0;for(var ce=re.sourceEdges;ce.next();)ce.value.fromVertex.valid&&ue++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case J0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&By(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&By(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xne&&wm(a,re,0,-1,!0,!1)}for(wm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ne=a.network.vertexes.iterator;ne.next();){var ue=ne.value;if(ue.component===1){var ce=0,me=!1,we=ue.sourceEdgesArrayAccess;b=we.length;for(var Fe=0;Fez)&&!ce&&(re=ne,z=ue)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function Jx(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}za.prototype.initializeIndices=function(){switch(this.Qk){default:case Iy: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 q0: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&&Qx(this,x);break;case Dy: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&&qx(this,x)}};function Qx(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=ne;E--)z=Hc(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Hc(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,1)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,-1)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Hc(this,E,0)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,0)||z;b>=a?Ic(this,y):(a=b,y=Hu(this))}break;default:case ev:for(x=this.Ia,ne=0,re=a+1;(E=this.countCrossings())=ne;E--)z=Hc(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Hc(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,1)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,-1)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Hc(this,E,0)||z;for(b>=a?Ic(this,y):(a=b,y=Hu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Hc(this,E,0)||z;b>=a?Ic(this,y):(a=b,y=Hu(this))}}Ic(this,y)};function U0(a,y,x){var E=Nf(a,y),b=a.tc[y],z=Gx(a,y,x),ne=by(a,y,x);for(x=0;xz+1&&(we+=4*(bt-z),Fe+=4*(bt-(z+1)))}for(Rt=E[z].destinationEdges.iterator,Rt.reset();Rt.next();)if(bt=Rt.value,It=bt.toVertex,bt.valid&&It.layer===y){for(bt=0;E[bt]!==It;)bt++;bt===z+1&&(Fe+=1)}for(Rt=E[z+1].sourceEdges.iterator,Rt.reset();Rt.next();)if(bt=Rt.value,It=bt.fromVertex,bt.valid&&It.layer===y){for(bt=0;E[bt]!==It;)bt++;btz+1&&(we+=4*(bt-(z+1)),Fe+=4*(bt-z))}for(Rt=E[z+1].destinationEdges.iterator,Rt.reset();Rt.next();)if(bt=Rt.value,It=bt.toVertex,bt.valid&&It.layer===y){for(bt=0;E[bt]!==It;)bt++;bt===z&&(we+=1)}bt=It=0,Rt=ne[E[z].index];var Kt=re[E[z].index],hn=ne[E[z+1].index],bi=re[E[z+1].index];Rt!==-1&&(It+=Math.abs(Rt-De),bt+=Math.abs(Rt-it)),Kt!==-1&&(It+=Math.abs(Kt-De),bt+=Math.abs(Kt-it)),hn!==-1&&(It+=Math.abs(hn-_e),bt+=Math.abs(hn-pt)),bi!==-1&&(It+=Math.abs(bi-_e),bt+=Math.abs(bi-pt)),(Fe>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Bp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Bp(this,y,-1)||x;x=Bp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)My(this,y,1);for(y=this.Md-1;0<=y;y--)My(this,y,-1);My(this,this.Md,0)}if(a&&(eS(this,-1),eS(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Bp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Bp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Bp(this,y,0)||x}}else WS(this)};function Bp(a,y,x){for(var E=!1;zS(a,y,x);)E=!0;return E}function zS(a,y,x){var E,b=Nf(a,y),z=a.tc[y],ne=by(a,y,-1);if(0x)for(E=0;EE-1||ce-b[E-1].column-1>me+a.nodeMinColumnSpace(b[E-1],!1)?Fe=ce-1:Fe=ce,me=E+1>=z||b[E+1].column-ce-1>we+a.nodeMinColumnSpace(b[E+1],!0)?ce+1:ce;var De=we=0,_e=0;if(0>=x)for(var pt=b[E].sourceEdges.iterator;pt.next();){var it=pt.value,bt=it.fromVertex;if(it.valid&&bt.layer!==y){var It=Ey(it),Rt=it.portFromColOffset;it=it.portToColOffset,bt=bt.column,we+=(Math.abs(ce+it-(bt+Rt))+1)*It,De+=(Math.abs(Fe+it-(bt+Rt))+1)*It,_e+=(Math.abs(me+it-(bt+Rt))+1)*It}}if(0<=x)for(pt=b[E].destinationEdges.iterator;pt.next();)it=pt.value,bt=it.toVertex,it.valid&&bt.layer!==y&&(It=Ey(it),Rt=it.portFromColOffset,it=it.portToColOffset,bt=bt.column,we+=(Math.abs(ce+Rt-(bt+it))+1)*It,De+=(Math.abs(Fe+Rt-(bt+it))+1)*It,_e+=(Math.abs(me+Rt-(bt+it))+1)*It);it=Rt=It=0,pt=ne[b[E].index],bt=re[b[E].index],pt!==-1&&(It+=Math.abs(pt-ce),Rt+=Math.abs(pt-Fe),it+=Math.abs(pt-me)),bt!==-1&&(It+=Math.abs(bt-ce),Rt+=Math.abs(bt-Fe),it+=Math.abs(bt-me)),De=ne[x]?ce=oe:ue<=ne[x]&&(ce=ue));ce!==re&&(z=!0,E[x].column=ce)}Af(a,y,E),a.normalize()}function ZS(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ne=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ne>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function HS(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function eS(a,y){for(var x=0;x<=a.Ra;x++)for(;ZS(a,x););for(a.normalize(),x=0;xz?Ic(a,b):ney)for(x=a.Ra;0<=x;x--)for(b=Hu(a),z=V0(a),E=z+1;zz?Ic(a,b):nex)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(Fy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(ne=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function WS(a){for(var y=vi(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Yn,GS(y,x);var z=null,ne=null,re=null,oe=null,ue=(a.ve&1)!==0,ce=(a.ve&2)!==0,me=(a.ve&4)!==0,we=(a.ve&8)!==0;for(ue&&(a.verticalAlignment(y,x,!0),z=Y0(a,y,!0,!1)),y.reverse(),me&&(a.verticalAlignment(y,x,!1),re=Y0(a,y,!1,!1)),E=wr(y),b=E.next();!b.done;b=E.next())b.value.reverse();we&&(a.verticalAlignment(y,x,!1),oe=Y0(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),ne=Y0(a,y,!0,!0)),Ti(y),a.u(z,ne,re,oe),a.network.vertexes.each(function(Fe){var De=vi();ue&&De.push(z.get(Fe)),ce&&De.push(ne.get(Fe)),me&&De.push(re.get(Fe)),we&&De.push(oe.get(Fe)),De.sort(function(pt,it){return pt-it});var _e=De.length;_e=(De[Math.floor((_e-1)/2)]+De[Math.ceil((_e-1)/2)])/2,Ti(De),Fe.zc=_e})}function GS(a,y){for(var x=a.length,E=1;Ece)&&y.add(me);z++}b=ce}}}za.prototype.verticalAlignment=function(a,y,x){$S(a),a=wr(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=wr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=x?ky(z):US(z),re=ne.length;if(0=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,re=0;do{for(z=y[ne][re];z.align!==z.root;)z=z.align,ne++,0a&&Et("Could not determine previous vertex in layer"),y[x][a-1]}za.prototype.u=function(a){for(var y=[],x=0;xne;ne++)if(y[ne]){var re=KS(this,y[ne],E,b,ne);rene;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?E[x]-E[ne]:b[x]-b[ne],z.delta!==0&&y[ne].each(function(oe){return function(ue){ue.value+=oe.delta}}(z)));Ti(E),Ti(b)};function KS(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,rene&&(ne=re+oe)}),x[b]=z,E[b]=ne,ne-z}za.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=X0(this,!0),y=X0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function X0(a,y){return a.K===270?y?bo:Dr:a.K===90?y?Dr:bo:a.K===180?y?oa:Io:y?Io:oa}za.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=me.bounds.bottom?(me=me.bounds.y+me.bounds.height,y.m(_e++,Rt,me+hn),y.m(_e++,Rt,me),y.m(_e++,Rt,me-It)):(y.m(_e++,Rt,Kt+hn),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt-It)):this.K===270?Kt<=me.bounds.y?(me=me.bounds.y,y.m(_e++,Rt,me-It),y.m(_e++,Rt,me),y.m(_e++,Rt,me+hn)):(y.m(_e++,Rt,Kt-It),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt+hn)):this.K===0&&(Rt>=me.bounds.right?(me=me.bounds.x+me.bounds.width,y.m(_e++,me+hn,Kt),y.m(_e++,me,Kt),y.m(_e++,me-It,Kt)):(y.m(_e++,Rt+hn,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt-It,Kt)));else{y.m(_e++,it,bt);var bi=0;this.K===180||this.K===0?((this.K===180?Rt>=me.bounds.right:Rt<=me.bounds.x)&&(bi=(this.K===0?-It:hn)/2),y.m(_e++,it+bi,Kt)):((this.K===270?Kt>=me.bounds.bottom:Kt<=me.bounds.y)&&(bi=(this.K===90?-It:hn)/2),y.m(_e++,Rt,bt+bi)),y.m(_e++,Rt,Kt)}}else It=Math.max(10,this.he[pt.layer]),hn=Math.max(10,this.Ld[pt.layer]),we?this.K===180?(y.m(_e++,Rt-It-De,Kt),y.m(_e++,Math.min(Rt-It+De/2,Rt),Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Math.max(Rt+hn-De/2,Rt),Kt),y.m(_e++,Rt+hn+De,Kt)):this.K===90?(y.m(_e++,Rt,Kt+hn+De),y.m(_e++,Rt,Math.max(Kt+hn-De/2,Kt)),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Math.min(Kt-It+De/2,Kt)),y.m(_e++,Rt,Kt-It-De)):this.K===270?(y.m(_e++,Rt,Kt-It-De),y.m(_e++,Rt,Math.min(Kt-It+De/2,Kt)),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Math.max(Kt+hn-De/2,Kt)),y.m(_e++,Rt,Kt+hn+De)):(y.m(_e++,Rt+hn+De,Kt),y.m(_e++,Math.max(Rt+hn-De/2,Rt),Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Math.min(Rt-It+De/2,Rt),Kt),y.m(_e++,Rt-It-De,Kt)):y.m(_e++,Rt,Kt)}me=pt}(re===null||ue!==Cs||Fe)&&(it=y.i(_e-1).x,bt=y.i(_e-1).y,Rt=y.i(_e).x,Kt=y.i(_e).y,Fe?(De=this.Ld[ce.layer],this.K===180||this.K===0?(Fe=bt,Fe>=ce.bounds.y&&Fe<=ce.bounds.bottom&&(this.K===180?Rt>=ce.bounds.x:Rt<=ce.bounds.right)&&(me=ce.centerX+(this.K===180?-De:De),Fe=ce.bounds.x&&Fe<=ce.bounds.right&&(this.K===270?Kt>=ce.bounds.y:Kt<=ce.bounds.bottom)&&(me=ce.centerY+(this.K===270?-De:De),Fe=ce.bounds.x?(me=ce.bounds.x+ce.bounds.width,y.L(_e-2,me,bt),y.L(_e-1,me+hn,bt)):this.K===90&&Kt<=ce.bounds.bottom?(me=ce.bounds.y,y.L(_e-2,it,me),y.L(_e-1,it,me-It)):this.K===270&&Kt>=ce.bounds.y?(me=ce.bounds.y+ce.bounds.height,y.L(_e-2,it,me),y.L(_e-1,it,me+hn)):this.K===0&&Rt<=ce.bounds.right&&(me=ce.bounds.x,y.L(_e-2,me,bt),y.L(_e-1,me-It,bt))):(It=Math.max(10,this.he[ce.layer]),hn=Math.max(10,this.Ld[ce.layer]),Fe=0,this.K===180||this.K===0?((this.K===180?Rt<=ce.bounds.x:Rt>=ce.bounds.right)&&(Fe=(this.K===0?hn:-It)/2),y.m(_e++,Rt+Fe,bt)):((this.K===270?Kt<=ce.bounds.y:Kt>=ce.bounds.bottom)&&(Fe=(this.K===90?hn:-It)/2),y.m(_e++,it,Kt+Fe)),y.m(_e++,Rt,Kt)))}else{for(;ce!==null&&ce!==me;){for(It=pt=null,ce=ce.destinationEdges.iterator;ce.next()&&(it=ce.value,it.link!==x.link||(pt=it.toVertex,It=it.fromVertex,It.node!==null&&(It=null),pt.node!==null)););if(pt===null)break;pt!==me&&(it=y.i(_e-1).x,bt=y.i(_e-1).y,Rt=pt.centerX,Kt=pt.centerY,Fe?this.K===180||this.K===0?(It!==null?It.centerY:bt)!==Kt&&(It=this.Ta[pt.layer]+this.Rf.x,_e===y.firstPickIndex+1&&(It=this.K===0?Math.max(It,it):Math.min(It,it)),y.m(_e++,It,bt),y.m(_e++,It,Kt)):(It!==null?It.centerX:it)!==Rt&&(It=this.Ta[pt.layer]+this.Rf.y,_e===y.firstPickIndex+1&&(It=this.K===90?Math.max(It,bt):Math.min(It,bt)),y.m(_e++,it,It),y.m(_e++,Rt,It)):(It=Math.max(10,this.he[pt.layer]),hn=Math.max(10,this.Ld[pt.layer]),we?this.K===180?(y.m(_e++,Rt+hn+De,Kt),y.m(_e++,Math.max(Rt+hn-De/2,Rt),Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Math.min(Rt-It+De/2,Rt),Kt),y.m(_e++,Rt-It-De,Kt)):this.K===90?(y.m(_e++,Rt,Kt-It-De),y.m(_e++,Rt,Math.min(Kt-It+De/2,Kt)),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Math.max(Kt+hn-De/2,Kt)),y.m(_e++,Rt,Kt+hn+De)):this.K===270?(y.m(_e++,Rt,Kt+hn+De),y.m(_e++,Rt,Math.max(Kt+hn-De/2,Kt)),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Math.min(Kt-It+De/2,Kt)),y.m(_e++,Rt,Kt-It-De)):(y.m(_e++,Rt-It-De,Kt),y.m(_e++,Math.min(Rt-It+De/2,Rt),Kt),y.m(_e++,Rt,Kt),y.m(_e++,Rt,Kt),y.m(_e++,Math.max(Rt+hn-De/2,Rt),Kt),y.m(_e++,Rt+hn+De,Kt)):this.K===180?(y.m(_e++,Rt+hn,Kt),y.m(_e++,Rt-It,Kt)):this.K===90?(y.m(_e++,Rt,Kt-It),y.m(_e++,Rt,Kt+hn)):this.K===270?(y.m(_e++,Rt,Kt+hn),y.m(_e++,Rt,Kt-It)):(y.m(_e++,Rt-It,Kt),y.m(_e++,Rt+hn,Kt)))),ce=pt}Fe&&(it=y.i(_e-1).x,bt=y.i(_e-1).y,Rt=y.i(_e).x,Kt=y.i(_e).y,this.K===180||this.K===0?bt!==Kt&&(It=this.K===0?Math.min(Math.max((Rt+it)/2,this.Ta[me.layer]+this.Rf.x),Rt):Math.max(Math.min((Rt+it)/2,this.Ta[me.layer]+this.Rf.x),Rt),y.m(_e++,It,bt),y.m(_e++,It,Kt)):it!==Rt&&(It=this.K===90?Math.min(Math.max((Kt+bt)/2,this.Ta[me.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+bt)/2,this.Ta[me.layer]+this.Rf.y),Kt),y.m(_e++,it,It),y.m(_e++,Rt,It)))}E!==null&&we&&4<=y.pointsCount&&(ne!==null&&(ne=ue===Cs?y.getLinkPointFromPoint(b,ne,ne.ga(Oo),y.i(3),!0):y.i(0),ue===Cs&&(ue=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ue.x)/2,ue.y),y.L(2,E.x,(ue.y+E.y)/2)):(y.L(1,ue.x,(ne.y+ue.y)/2),y.L(2,(ue.x+E.x)/2,E.y))),ne.w()||ne.set(b.actualBounds.center),y.L(0,ne.x,ne.y)),re!==null&&(b=oe===Cs?y.getLinkPointFromPoint(z,re,re.ga(Oo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Cs&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},za.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Un,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&&(ce=ue.y>z.y?0:ne.xz.x&&(ce=ue.x>z.x?0:ne.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ne.Ux=function(a,y){return a instanceof Df&&y instanceof Df&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ne.Js=function(a,y){return a instanceof Df&&y instanceof Df&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ne.B=function(a,y){return a-=y,-1a},Ne.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Et("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(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 J0=new Cn(za,"CycleDepthFirst",0),Ly=new Cn(za,"CycleGreedy",1),Cm=new Cn(za,"CycleFromLayers",2),Q0=new Cn(za,"LayerOptimalLinkLength",0),Ny=new Cn(za,"LayerLongestPathSink",1),Ay=new Cn(za,"LayerLongestPathSource",2),q0=new Cn(za,"InitDepthFirstOut",0),Dy=new Cn(za,"InitDepthFirstIn",1),Iy=new Cn(za,"InitNaive",2),Oy=new Cn(za,"AggressiveNone",0),ev=new Cn(za,"AggressiveLess",1),Ty=new Cn(za,"AggressiveMore",2),VS=8;za.className="LayeredDigraphLayout",za.CycleDepthFirst=J0,za.CycleGreedy=Ly,za.CycleFromLayers=Cm,za.LayerOptimalLinkLength=Q0,za.LayerLongestPathSink=Ny,za.LayerLongestPathSource=Ay,za.InitDepthFirstOut=q0,za.InitDepthFirstIn=Dy,za.InitNaive=Iy,za.AggressiveNone=Oy,za.AggressiveLess=ev,za.AggressiveMore=Ty,za.PackNone=0,za.PackExpand=1,za.PackStraighten=2,za.PackMedian=4,za.PackAll=15,za.AlignNone=0,za.AlignUpperLeft=1,za.AlignUpperRight=2,za.AlignLowerLeft=4,za.AlignLowerRight=8,za.AlignAll=15;function Df(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Df.className="SegInfo";function Mp(a){ts.call(this,a)}$t(Mp,ts),Mp.prototype.createVertex=function(){return new Oc(this)},Mp.prototype.createEdge=function(){return new Em(this)},Mp.className="LayeredDigraphNetwork";function Oc(a){ul.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}$t(Oc,ul);function rS(a,y){return a.index-y.index}function tv(a,y){if(!a.$n){for(var x=[],E=wr(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=wr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Et("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=wr(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(rS),a.co=y}return a.co}function US(a){if(!a.ao){for(var y=[],x=wr(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(rS),a.ao=y}return a.ao}Oc.prototype.Cl=function(a){ul.prototype.Cl.call(this,a),this.bo=this.co=null},Oc.prototype.Kl=function(a){ul.prototype.Kl.call(this,a),this.bo=this.co=null},Oc.prototype.zl=function(a){ul.prototype.zl.call(this,a),this.$n=this.ao=null},Oc.prototype.Jl=function(a){ul.prototype.Jl.call(this,a),this.$n=this.ao=null},Qe.Object.defineProperties(Oc.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)}}}),Oc.prototype.deleteDestinationEdge=Oc.prototype.Jl,Oc.prototype.addDestinationEdge=Oc.prototype.zl,Oc.prototype.deleteSourceEdge=Oc.prototype.Kl,Oc.prototype.addSourceEdge=Oc.prototype.Cl,Oc.className="LayeredDigraphVertex";function Em(a){hc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}$t(Em,hc),Qe.Object.defineProperties(Em.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)}}}),Em.className="LayeredDigraphEdge";function Ro(a){xs.call(this),this.Ub=new Yn,this.Wn=ov,this.ud=ih,this.vo=sv,this.Bq=Vy,this.$v=[],this.td=!0,this.Rb=lv,this.$d=new pi(10,10).freeze();var y=new Wg(this);this.W=new Wc(y),this.Y=new Wc(y),this.ru=[],a&&Object.assign(this,a)}$t(Ro,xs),Ro.prototype.cloneProtected=function(a){xs.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:Et("Unknown enum value: "+a):xs.prototype.qb.call(this,a)},Ro.prototype.createNetwork=function(){return new Wg(this)},Ro.prototype.makeNetwork=function(a){function y(E){if(E instanceof Ni)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof fi){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof dn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ho?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!==uv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof dn&&(y=a),this.path===ov&&y!==null?this.ud=y.isTreePathToChildren?ih:Zg:this.ud=this.path===ov?ih: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,E=0,b=0;bb?dS(this,a,ne,$r,it,bt):hS(this,a,ne,$r,it,bt),$r=bt.x,it=bt.width,bt=bt.height;break;case ef:for(Rt=0;Rtme&&(XiNl&&(zg(a,-Nl,0,lo,Fa-1),rv(Rt,-Nl,0),rv(Kt,-Nl,0),Nl=0)}qa.S.h(Nl,zi),it=Math.max(it,hn),bt=Math.max(bt,It+(hi===0?0:De)+wl.height),Xi=hn}else 0me&&(ziNl&&(zg(a,0,-Nl,lo,Fa-1),rv(Rt,0,-Nl),rv(Kt,0,-Nl),Nl=0)),qa.S.h(Xi,Nl),bt=Math.max(bt,bi),it=Math.max(it,It+(hi===0?0:De)+wl.width),zi=bi;ti++}switch(0ue&&(ue=0),135_e&&(_e=0),oe===Nh&&(re+=we/2+a.focus.y),ne+=E+x):y?(a.comments===null?E>it&&(it=Zy(oe,E-it,0),ne=it.x,re=it.y,it=E,ue=0):it=jy(a,it,ue),0>ue&&(ne-=ue,ue=0),135bt&&(bt=Zy(oe,0,pt-bt),ne=bt.x,re=bt.y,bt=pt,_e=0):bt=zy(a,bt,_e),0>_e&&(re-=_e,_e=0),ne+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),hi[0].h(ue+E,0),hi[1].h(hi[0].x,pt),hi[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),hi[0].h(0,_e+pt),hi[1].h(E,hi[0].y),hi[2].xE?dS(a,y,b,ti,It,Rt):hS(a,y,b,ti,It,Rt),ti=Rt.x,It=Rt.width,Rt=Rt.height;break;case ef:for(we=0;wewe&&(hnwe&&(bime&&(me=0),135it&&(it=0)),y.la.h(me,it),y.Da.h(It,Rt)}}Ro.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function dS(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new Mn(E,0,b,z);if(ne===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Mn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ue=id(y)===90,ce=0,me=0,we=0,Fe=0;Feue&&(b-=ue),z=Math.max(z,Math.max(Fe,we)+a+ne.height),0>x.S.x&&(E=nv(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(De,me)+a+ne.width),we=E+re/2-x.focus.y-x.la.y,z=Math.max(z,we+ne.height),0>we&&(z-=we),0>x.S.y&&(E=nv(y,x.S.y,!0,E,re)))),new Mn(E,0,b,z)}function hS(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new Mn(E,0,b,z);if(ne===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Mn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ue=id(y)===270,ce=0,me=0,we=0,Fe=0;Feme&&(b-=me),z=Math.max(z,Math.abs(Math.min(Fe,we))+a+ce.height),0>oe.S.x&&(E=nv(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ce.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(De,me))+a+ce.width),we=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,we+ce.height),0>we&&(z-=we),0>oe.S.y&&(E=nv(y,oe.S.y,!0,E,re)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case rh:return a.width>y?a.width:y;case oh:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case qh:case ah:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case ef:return a.width-a.focus.x+a.nodeSpacing/2+y;case Nh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function zy(a,y,x){switch(a.alignment){case Hg:case Np:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case rh:return a.height>y?a.height:y;case oh:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case qh:case ah:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case ef:return a.height-a.focus.y+a.nodeSpacing/2+y;case Nh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Zy(a,y,x){switch(a){case Np:y/=2,x/=2;break;case Hg:y/=2,x/=2;break;case rh:x=y=0;break;case oh:break;default:Et("Unhandled alignment value "+a.toString())}return new st(y,x)}function rg(a,y,x,E,b,z){y=Zy(y,x,E),zg(a,y.x,y.y,b,z)}function zg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function iv(a,y,x,E){var b=y.parent;switch(a.ud){case ih:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Zg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Et("Unhandled path value "+a.ud.toString())}}function rv(a,y,x){for(var E=0;Eme.length||Fe===null||2>Fe.length))for(b=x=0;xue&&z.yz.y&&uey.length||x===null||2>x.length)E=null;else{for(ce=Qu(a,y.length+x.length),E=z=oe=0;zoe;)ue=x[z++],ce[E++].h(ue.x+b,ue.y);for(x=Qu(a,E),oe=0;oeme.length||z===null||2>z.length)b=null;else{for(ce=Qu(a,me.length+z.length),b=ue=x=0;xz;)oe=me[x++],ce[b++].h(oe.x,oe.y);for(z=Qu(a,b),x=0;xme.length||Fe===null||2>Fe.length))for(b=x=0;xoe&&z.xz.x&&oey.length||x===null||2>x.length)E=null;else{for(ce=Qu(a,y.length+x.length),E=z=oe=0;zoe;)ue=x[z++],ce[E++].h(ue.x,ue.y+b);for(x=Qu(a,E),oe=0;oeme.length||z===null||2>z.length)b=null;else{for(ce=Qu(a,me.length+z.length),b=ue=x=0;xz;)oe=me[x++],ce[b++].h(oe.x,oe.y);for(z=Qu(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ro.prototype.computeLayerSpacing=function(a){var y=id(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!==av&&a!==Lm||(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!==Lp&&a!==Fm&&a!==Bm&&!Mm||(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!==av&&a!==Lm||(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 ov=new Cn(Ro,"PathDefault",-1),ih=new Cn(Ro,"PathDestination",0),Zg=new Cn(Ro,"PathSource",1),Lp=new Cn(Ro,"SortingForwards",10),Fm=new Cn(Ro,"SortingReverse",11),Bm=new Cn(Ro,"SortingAscending",12),Mm=new Cn(Ro,"SortingDescending",13),Np=new Cn(Ro,"AlignmentCenterSubtrees",20),Hg=new Cn(Ro,"AlignmentCenterChildren",21),rh=new Cn(Ro,"AlignmentStart",22),oh=new Cn(Ro,"AlignmentEnd",23),qh=new Cn(Ro,"AlignmentBus",24),ah=new Cn(Ro,"AlignmentBusBranching",25),ef=new Cn(Ro,"AlignmentTopLeftBus",26),Nh=new Cn(Ro,"AlignmentBottomRightBus",27),av=new Cn(Ro,"CompactionNone",30),Lm=new Cn(Ro,"CompactionBlock",31),sv=new Cn(Ro,"StyleLayered",40),Wy=new Cn(Ro,"StyleLastParents",41),Gy=new Cn(Ro,"StyleAlternating",42),$y=new Cn(Ro,"StyleRootOnly",43),lv=new Cn(Ro,"ArrangementVertical",50),Ky=new Cn(Ro,"ArrangementHorizontal",51),uv=new Cn(Ro,"ArrangementFixedRoots",52),Vy=new Cn(Ro,"LayerIndividual",60),Uy=new Cn(Ro,"LayerSiblings",61),cv=new Cn(Ro,"LayerUniform",62);Ro.className="TreeLayout",Ro.PathDefault=ov,Ro.PathDestination=ih,Ro.PathSource=Zg,Ro.SortingForwards=Lp,Ro.SortingReverse=Fm,Ro.SortingAscending=Bm,Ro.SortingDescending=Mm,Ro.AlignmentCenterSubtrees=Np,Ro.AlignmentCenterChildren=Hg,Ro.AlignmentStart=rh,Ro.AlignmentEnd=oh,Ro.AlignmentBus=qh,Ro.AlignmentBusBranching=ah,Ro.AlignmentTopLeftBus=ef,Ro.AlignmentBottomRightBus=Nh,Ro.CompactionNone=av,Ro.CompactionBlock=Lm,Ro.StyleLayered=sv,Ro.StyleLastParents=Wy,Ro.StyleAlternating=Gy,Ro.StyleRootOnly=$y,Ro.ArrangementVertical=lv,Ro.ArrangementHorizontal=Ky,Ro.ArrangementFixedRoots=uv,Ro.LayerIndividual=Vy,Ro.LayerSiblings=Uy,Ro.LayerUniform=cv;function Wg(a){ts.call(this,a)}$t(Wg,ts),Wg.prototype.createVertex=function(){return new Wc(this)},Wg.prototype.createEdge=function(){return new Ap(this)},Wg.className="TreeNetwork";function Wc(a){ul.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 st(0,0),this.Da=new pi(0,0),this.la=new st(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Lp,this.hd=gy,this.Kb=0,this.Jb=Hg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Lm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Fi,this.wr=!0,this.Dp=Fi}$t(Wc,ul),Wc.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Qe.Object.defineProperties(Wc.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xFe.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===rh?(z=E.top+b.y,b.y===0&&me.yFe.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===rh?(z=E.left+b.x,b.x===0&&me.xFe.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===rh?(z=E.top+b.y,b.y===0&&me.yFe.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===rh?(z=E.left+b.x,b.x===0&&me.x>>6)+Ct(128|Tt&63):Ct(224|Tt>>>12&15)+Ct(128|Tt>>>6&63)+Ct(128|Tt&63)}else{var Tt=65536+(ot.charCodeAt(0)-55296)*1024+(ot.charCodeAt(1)-56320);return Ct(240|Tt>>>18&7)+Ct(128|Tt>>>12&63)+Ct(128|Tt>>>6&63)+Ct(128|Tt&63)}},$e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ft=function(ot){return ot.replace($e,wt)},lt=function(ot){var Tt=[0,2,1][ot.length%3],xt=ot.charCodeAt(0)<<16|(ot.length>1?ot.charCodeAt(1):0)<<8|(ot.length>2?ot.charCodeAt(2):0),Ot=[Ue.charAt(xt>>>18),Ue.charAt(xt>>>12&63),Tt>=2?"=":Ue.charAt(xt>>>6&63),Tt>=1?"=":Ue.charAt(xt&63)];return Ot.join("")},vt=We.btoa&&typeof We.btoa=="function"?function(ot){return We.btoa(ot)}:function(ot){if(ot.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ot.replace(/[\s\S]{1,3}/g,lt)},Ie=function(ot){return vt(Ft(String(ot)))},te=function(ot){return ot.replace(/[+\/]/g,function(Tt){return Tt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(ot,Tt){return Tt?te(Ie(ot)):Ie(ot)},de=function(ot){return ee(ot,!0)},se;We.Uint8Array&&(se=function(ot,Tt){for(var xt="",Ot=0,Wt=ot.length;Ot>>18)+Ue.charAt(_t>>>12&63)+(typeof tt!="undefined"?Ue.charAt(_t>>>6&63):"=")+(typeof Ve!="undefined"?Ue.charAt(_t&63):"=")}return Tt?te(xt):xt});var he=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ve=function(ot){switch(ot.length){case 4:var Tt=(7&ot.charCodeAt(0))<<18|(63&ot.charCodeAt(1))<<12|(63&ot.charCodeAt(2))<<6|63&ot.charCodeAt(3),xt=Tt-65536;return Ct((xt>>>10)+55296)+Ct((xt&1023)+56320);case 3:return Ct((15&ot.charCodeAt(0))<<12|(63&ot.charCodeAt(1))<<6|63&ot.charCodeAt(2));default:return Ct((31&ot.charCodeAt(0))<<6|63&ot.charCodeAt(1))}},Ee=function(ot){return ot.replace(he,ve)},Be=function(ot){var Tt=ot.length,xt=Tt%4,Ot=(Tt>0?Me[ot.charAt(0)]<<18:0)|(Tt>1?Me[ot.charAt(1)]<<12:0)|(Tt>2?Me[ot.charAt(2)]<<6:0)|(Tt>3?Me[ot.charAt(3)]:0),Wt=[Ct(Ot>>>16),Ct(Ot>>>8&255),Ct(Ot&255)];return Wt.length-=[0,0,2,1][xt],Wt.join("")},Le=We.atob&&typeof We.atob=="function"?function(ot){return We.atob(ot)}:function(ot){return ot.replace(/\S{1,4}/g,Be)},ze=function(ot){return Le(String(ot).replace(/[^A-Za-z0-9\+\/]/g,""))},je=function(ot){return Ee(Le(ot))},Xe=function(ot){return String(ot).replace(/[-_]/g,function(Tt){return Tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ye=function(ot){return je(Xe(ot))},dt;We.Uint8Array&&(dt=function(ot){return Uint8Array.from(ze(Xe(ot)),function(Tt){return Tt.charCodeAt(0)})});var He=function(){var ot=We.Base64;return We.Base64=ut,ot};if(We.Base64={VERSION:Ge,atob:ze,btoa:vt,fromBase64:Ye,toBase64:ee,utob:Ft,encode:ee,encodeURI:de,btou:Ee,decode:Ye,noConflict:He,fromUint8Array:se,toUint8Array:dt},typeof Object.defineProperty=="function"){var Nt=function(ot){return{value:ot,enumerable:!1,writable:!0,configurable:!0}};We.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Nt(function(){return Ye(this)})),Object.defineProperty(String.prototype,"toBase64",Nt(function(ot){return ee(this,ot)})),Object.defineProperty(String.prototype,"toBase64URI",Nt(function(){return ee(this,!0)}))}}return We.Meteor&&(Base64=We.Base64),On.exports?On.exports.Base64=We.Base64:(le=[],ke=function(){return We.Base64}.apply(pn,le),ke!==void 0&&(On.exports=ke)),{Base64:We.Base64}})},2859:function(On,pn,pe){"use strict";pe.d(pn,{hP:function(){return ci}});var le=function(Ze,be){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ae){Pe.__proto__=Ae}||function(Pe,Ae){for(var Oe in Ae)Object.prototype.hasOwnProperty.call(Ae,Oe)&&(Pe[Oe]=Ae[Oe])})(Ze,be)};function ke(Ze,be){function Pe(){this.constructor=Ze}le(Ze,be),Ze.prototype=be===null?Object.create(be):(Pe.prototype=be.prototype,new Pe)}function We(Ze,be,Pe,Ae){return new(Pe||(Pe=Promise))(function(Oe,xe){function ct(qe){try{at(Ae.next(qe))}catch(Lt){xe(Lt)}}function Mt(qe){try{at(Ae.throw(qe))}catch(Lt){xe(Lt)}}function at(qe){var Lt;qe.done?Oe(qe.value):(Lt=qe.value,Lt instanceof Pe?Lt:new Pe(function(Bt){Bt(Lt)})).then(ct,Mt)}at((Ae=Ae.apply(Ze,be||[])).next())})}function ut(Ze,be){var Pe,Ae,Oe,xe,ct={label:0,sent:function(){if(1&Oe[0])throw Oe[1];return Oe[1]},trys:[],ops:[]};return xe={next:Mt(0),throw:Mt(1),return:Mt(2)},typeof Symbol=="function"&&(xe[Symbol.iterator]=function(){return this}),xe;function Mt(at){return function(qe){return function(Lt){if(Pe)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Pe=1,Ae&&(Oe=2&Lt[0]?Ae.return:Lt[0]?Ae.throw||((Oe=Ae.return)&&Oe.call(Ae),0):Ae.next)&&!(Oe=Oe.call(Ae,Lt[1])).done)return Oe;switch(Ae=0,Oe&&(Lt=[2&Lt[0],Oe.value]),Lt[0]){case 0:case 1:Oe=Lt;break;case 4:return ct.label++,{value:Lt[1],done:!1};case 5:ct.label++,Ae=Lt[1],Lt=[0];continue;case 7:Lt=ct.ops.pop(),ct.trys.pop();continue;default:if(Oe=ct.trys,!((Oe=Oe.length>0&&Oe[Oe.length-1])||Lt[0]!==6&&Lt[0]!==2)){ct=0;continue}if(Lt[0]===3&&(!Oe||Lt[1]>Oe[0]&&Lt[1]',"select"),this.addActionButton(Ae,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ae,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ae,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ae,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ae,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ae,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ae,'',"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(xe){var ct=document.createElement("div");ct.className=""+Pe.toolbarButtonStyleClass.name,ct.setAttribute("data-type-name",xe.typeName),ct.innerHTML=xe.icon,ct.addEventListener("click",function(){Pe.markerToolbarButtonClicked(ct,xe)}),Pe.buttons.push(ct),Pe.markerButtons.push(ct)}),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 Oe=document.createElement("div");Oe.className=this.toolbarBlockStyleClass.name,Oe.style.whiteSpace="nowrap",Oe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Oe),this.addActionButton(Oe,'',"render"),this.addActionButton(Oe,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ze.prototype.addButtonClickListener=function(be){this.buttonClickListeners.push(be)},Ze.prototype.removeButtonClickListener=function(be){this.buttonClickListeners.indexOf(be)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(be),1)},Ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var be=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Pe=0;Pe0&&this.buttonClickListeners.forEach(function(Ae){return Ae("marker",Pe)}),this.markerButtonOverflowBlock.style.display="none"},Ze.prototype.actionToolbarButtonClicked=function(be,Pe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ae){return Ae("action",Pe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ze.prototype.setActiveButton=function(be){this.resetButtonStyles(),be.className=be.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),be.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ze.prototype.setActiveMarkerButton=function(be){var Pe=this.markerButtons.find(function(Ae){return Ae.getAttribute("data-type-name")===be});Pe&&this.setActiveButton(Pe)},Ze.prototype.setCurrentMarker=function(be){var Pe=this;this.currentMarker=be,this.buttons.filter(function(Ae){return/delete|notes/.test(Ae.getAttribute("data-action"))}).forEach(function(Ae){Pe.currentMarker===void 0?(Ae.style.fillOpacity="0.4",Ae.style.pointerEvents="none"):(Ae.style.fillOpacity="1",Ae.style.pointerEvents="all")})},Ze}(),Ie=function(){function Ze(be,Pe,Ae,Oe){this.panels=[],this.panelButtons=[],this.markerjsContainer=be,this.displayMode=Pe,this.uiStyleSettings=Ae,this.styles=Oe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ze.prototype.addStyles=function(){var be;this.toolboxStyleClass=this.styles.addClass(new lt("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 lt("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var Pe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new lt("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new lt("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new lt("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 lt("toolbox-panel-row_colors",` background-color: `+((be=this.uiStyleSettings.toolboxBackgroundColor)!==null&&be!==void 0?be:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new lt("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px; padding: `+Pe+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Ft("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Ft("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Ze.prototype.show=function(be){var Pe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=be,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Pe!==void 0?Pe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ze.prototype.setPanelButtons=function(be){var Pe,Ae,Oe=this;this.panels=be,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Pe!==void 0?Pe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ae=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ae!==void 0?Ae:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(xe){var ct;xe.uiStyleSettings=Oe.uiStyleSettings;var Mt=document.createElement("div");Mt.className=Oe.toolboxButtonStyleClass.name+" "+((ct=Oe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:Oe.toolboxButtonStyleColorsClass.name),Mt.innerHTML=xe.icon,Mt.title=xe.title,Mt.addEventListener("click",function(){Oe.panelButtonClick(xe)}),Oe.panelButtons.push(Mt),Oe.buttonRow.appendChild(Mt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ze.prototype.panelButtonClick=function(be){var Pe=this,Ae=-1;if(be!==this.activePanel){Ae=this.panels.indexOf(be),this.panelRow.innerHTML="";var Oe=be.getUi();Oe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Oe),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=be}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Pe.displayMode==="inline"?Pe.panelRow.style.display="none":Pe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(xe,ct){var Mt,at;xe.className=Pe.toolboxButtonStyleClass.name+" "+(ct===Ae?""+((Mt=Pe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Mt!==void 0?Mt:Pe.toolboxActiveButtonStyleColorsClass.name):""+((at=Pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:Pe.toolboxButtonStyleColorsClass.name))})},Ze}(),te=function(Ze,be){this.title=Ze,this.icon=be},ee=function(Ze){function be(Pe,Ae,Oe,xe){var ct=Ze.call(this,Pe,xe||'')||this;return ct.colors=[],ct.addTransparent=!1,ct.colorBoxes=[],ct.colors=Ae,ct.currentColor=Oe,ct.setCurrentColor=ct.setCurrentColor.bind(ct),ct.getColorBox=ct.getColorBox.bind(ct),ct}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");return Ae.style.overflow="hidden",Ae.style.whiteSpace="nowrap",this.colors.forEach(function(Oe){var xe=Pe.getColorBox(Oe);Ae.appendChild(xe),Pe.colorBoxes.push(xe)}),Ae},be.prototype.getColorBox=function(Pe){var Ae=this,Oe=this.uiStyleSettings.toolbarHeight/4,xe=this.uiStyleSettings.toolbarHeight-Oe,ct=document.createElement("div");ct.style.display="inline-block",ct.style.boxSizing="content-box",ct.style.width=xe-2+"px",ct.style.height=xe-2+"px",ct.style.padding="1px",ct.style.marginRight="2px",ct.style.marginBottom="2px",ct.style.borderWidth="2px",ct.style.borderStyle="solid",ct.style.borderRadius=(xe+2)/2+"px",ct.style.borderColor=Pe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ct.addEventListener("click",function(){Ae.setCurrentColor(Pe,ct)});var Mt=document.createElement("div");return Mt.style.display="inline-block",Mt.style.width=xe-2+"px",Mt.style.height=xe-2+"px",Mt.style.backgroundColor=Pe,Mt.style.borderRadius=xe/2+"px",Pe==="transparent"&&(Mt.style.fill=this.uiStyleSettings.toolboxAccentColor,Mt.innerHTML=` `),ct.appendChild(Mt),ct},be.prototype.setCurrentColor=function(Pe,Ae){var Oe=this;this.currentColor=Pe,this.colorBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Pe)},be}(te),de=function(){function Ze(be,Pe,Ae){this._state="new",this._isSelected=!1,this._container=be,this._overlayContainer=Pe,this.globalSettings=Ae,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ze.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ze.prototype.ownsTarget=function(be){return!1},Object.defineProperty(Ze.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ze.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ze.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ze.prototype.pointerDown=function(be,Pe){},Ze.prototype.dblClick=function(be,Pe){},Ze.prototype.manipulate=function(be){},Ze.prototype.pointerUp=function(be){this.stateChanged()},Ze.prototype.dispose=function(){},Ze.prototype.addMarkerVisualToContainer=function(be){this.container.childNodes.length>0?this.container.insertBefore(be,this.container.childNodes[0]):this.container.appendChild(be)},Ze.prototype.getState=function(){return{typeName:Ze.typeName,state:this.state,notes:this.notes}},Ze.prototype.restoreState=function(be){this._state=be.state,this.notes=be.notes},Ze.prototype.scale=function(be,Pe){},Ze.prototype.colorChanged=function(be){this.onColorChanged&&this.onColorChanged(be),this.stateChanged()},Ze.prototype.fillColorChanged=function(be){this.onFillColorChanged&&this.onFillColorChanged(be),this.stateChanged()},Ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var be=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),be.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(be)&&this.onStateChanged(this)}},Ze.typeName="MarkerBase",Ze}(),se=function(){function Ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ze.prototype.findGripByVisual=function(be){return this.topLeft.ownsTarget(be)?this.topLeft:this.topCenter.ownsTarget(be)?this.topCenter:this.topRight.ownsTarget(be)?this.topRight:this.centerLeft.ownsTarget(be)?this.centerLeft:this.centerRight.ownsTarget(be)?this.centerRight:this.bottomLeft.ownsTarget(be)?this.bottomLeft:this.bottomCenter.ownsTarget(be)?this.bottomCenter:this.bottomRight.ownsTarget(be)?this.bottomRight:void 0},Ze}(),he=function(){function Ze(){this.GRIP_SIZE=10,this.visual=Ue.createGroup(),this.visual.appendChild(Ue.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ue.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ze.prototype.ownsTarget=function(be){return be===this.visual||be===this.visual.childNodes[0]||be===this.visual.childNodes[1]},Ze}(),ve=function(){function Ze(){}return Ze.toITransformMatrix=function(be){return{a:be.a,b:be.b,c:be.c,d:be.d,e:be.e,f:be.f}},Ze.toSVGMatrix=function(be,Pe){return be.a=Pe.a,be.b=Pe.b,be.c=Pe.c,be.d=Pe.d,be.e=Pe.e,be.f=Pe.f,be},Ze}(),Ee=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.left=0,xe.top=0,xe.width=0,xe.height=0,xe.defaultSize={x:50,y:20},xe.offsetX=0,xe.offsetY=0,xe.rotationAngle=0,xe.CB_DISTANCE=10,xe._suppressMarkerCreateEvent=!1,xe.container.transform.baseVal.appendItem(Ue.createTransform()),xe.setupControlBox(),xe}return ke(be,Ze),Object.defineProperty(be.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"visual",{get:function(){return this._visual},set:function(Pe){this._visual=Pe;var Ae=Ue.createTransform();this._visual.transform.baseVal.appendItem(Ae)},enumerable:!1,configurable:!0}),be.prototype.ownsTarget=function(Pe){return!!Ze.prototype.ownsTarget.call(this,Pe)||!!(this.controlGrips.findGripByVisual(Pe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Pe))},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.state==="new"&&(this.left=Pe.x,this.top=Pe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Oe=this.unrotatePoint(Pe);if(this.manipulationStartX=Oe.x,this.manipulationStartY=Oe.y,this.offsetX=Oe.x-this.left,this.offsetY=Oe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ae),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ae)){this.activeGrip=this.rotatorGrip;var xe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=xe.x-this.width/2,this.top=xe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ct=this.container.transform.baseVal.getItem(0);ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ct,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},be.prototype.pointerUp=function(Pe){var Ae=this.state;Ze.prototype.pointerUp.call(this,Pe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Pe),this._state="select",Ae==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},be.prototype.moveVisual=function(Pe){this.visual.style.transform="translate("+Pe.x+"px, "+Pe.y+"px)"},be.prototype.manipulate=function(Pe){var Ae=this.unrotatePoint(Pe);this.state==="creating"?this.resize(Pe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ae.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ae.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ae):this.state==="rotate"&&this.rotate(Pe)},be.prototype.resize=function(Pe){var Ae=this.manipulationStartLeft,Oe=this.manipulationStartWidth,xe=this.manipulationStartTop,ct=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ae=this.manipulationStartLeft+Pe.x-this.manipulationStartX,Oe=this.manipulationStartWidth+this.manipulationStartLeft-Ae;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Oe=this.manipulationStartWidth+Pe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:xe=this.manipulationStartTop+Pe.y-this.manipulationStartY,ct=this.manipulationStartHeight+this.manipulationStartTop-xe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ct=this.manipulationStartHeight+Pe.y-this.manipulationStartY}Oe>=0?(this.left=Ae,this.width=Oe):(this.left=Ae+Oe,this.width=-Oe),ct>=0?(this.top=xe,this.height=ct):(this.top=xe+ct,this.height=-ct),this.setSize()},be.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},be.prototype.rotate=function(Pe){if(Math.abs(Pe.x-this.centerX)>.1){var Ae=Math.sign(Pe.x-this.centerX);this.rotationAngle=180*Math.atan((Pe.y-this.centerY)/(Pe.x-this.centerX))/Math.PI+90*Ae,this.applyRotation()}},be.prototype.applyRotation=function(){var Pe=this.container.transform.baseVal.getItem(0);Pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Pe,0)},be.prototype.rotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ae=this.container.getCTM(),Oe=Ue.createPoint(Pe.x,Pe.y);return{x:(Oe=Oe.matrixTransform(Ae)).x,y:Oe.y}},be.prototype.unrotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ae=this.container.getCTM();Ae=Ae.inverse();var Oe=Ue.createPoint(Pe.x,Pe.y);return{x:(Oe=Oe.matrixTransform(Ae)).x,y:Oe.y}},be.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},be.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},be.prototype.setupControlBox=function(){this.controlBox=Ue.createGroup();var Pe=Ue.createTransform();Pe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Pe),this.container.appendChild(this.controlBox),this.controlRect=Ue.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=Ue.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},be.prototype.adjustControlBox=function(){var Pe=this.controlBox.transform.baseVal.getItem(0);Pe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Pe,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()},be.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()},be.prototype.createGrip=function(){var Pe=new he;return Pe.visual.transform.baseVal.appendItem(Ue.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},be.prototype.positionGrips=function(){var Pe=this.controlGrips.topLeft.GRIP_SIZE,Ae=-Pe/2,Oe=Ae,xe=(this.width+this.CB_DISTANCE)/2-Pe/2,ct=(this.height+this.CB_DISTANCE)/2-Pe/2,Mt=this.height+this.CB_DISTANCE-Pe/2,at=this.width+this.CB_DISTANCE-Pe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ae,Oe),this.positionGrip(this.controlGrips.topCenter.visual,xe,Oe),this.positionGrip(this.controlGrips.topRight.visual,at,Oe),this.positionGrip(this.controlGrips.centerLeft.visual,Ae,ct),this.positionGrip(this.controlGrips.centerRight.visual,at,ct),this.positionGrip(this.controlGrips.bottomLeft.visual,Ae,Mt),this.positionGrip(this.controlGrips.bottomCenter.visual,xe,Mt),this.positionGrip(this.controlGrips.bottomRight.visual,at,Mt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,xe,Oe-3*this.CB_DISTANCE)},be.prototype.positionGrip=function(Pe,Ae,Oe){var xe=Pe.transform.baseVal.getItem(0);xe.setTranslate(Ae,Oe),Pe.transform.baseVal.replaceItem(xe,0)},be.prototype.hideControlBox=function(){this.controlBox.style.display="none"},be.prototype.showControlBox=function(){this.controlBox.style.display=""},be.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ve.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ve.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ze.prototype.getState.call(this))},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe);var Ae=Pe;this.left=Ae.left,this.top=Ae.top,this.width=Ae.width,this.height=Ae.height,this.rotationAngle=Ae.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ve.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ae.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ve.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ae.containerTransformMatrix))},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae);var Oe=this.rotatePoint({x:this.left,y:this.top}),xe=this.unrotatePoint({x:Oe.x*Pe,y:Oe.y*Ae});this.left=xe.x,this.top=xe.y,this.width=this.width*Pe,this.height=this.height*Ae,this.adjustControlBox()},be}(de),Be=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual)},be.prototype.createVisual=function(){this.visual=Ue.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)},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},be.prototype.manipulate=function(Pe){Ze.prototype.manipulate.call(this,Pe)},be.prototype.resize=function(Pe){Ze.prototype.resize.call(this,Pe),this.setSize()},be.prototype.setSize=function(){Ze.prototype.setSize.call(this),Ue.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},be.prototype.pointerUp=function(Pe){Ze.prototype.pointerUp.call(this,Pe),this.setSize()},be.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.visual&&Ue.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},be.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.visual&&Ue.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},be.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.visual&&Ue.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},be.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.visual&&Ue.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},be.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ze.prototype.getState.call(this))},be.prototype.restoreState=function(Pe){var Ae=Pe;this.fillColor=Ae.fillColor,this.strokeColor=Ae.strokeColor,this.strokeWidth=Ae.strokeWidth,this.strokeDasharray=Ae.strokeDasharray,this.opacity=Ae.opacity,this.createVisual(),Ze.prototype.restoreState.call(this,Pe),this.setSize()},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae),this.setSize()},be.title="Rectangle marker",be}(Ee),Le=function(Ze){function be(Pe,Ae,Oe,xe){var ct=Ze.call(this,Pe,xe||'')||this;return ct.widths=[],ct.widthBoxes=[],ct.widths=Ae,ct.currentWidth=Oe,ct.setCurrentWidth=ct.setCurrentWidth.bind(ct),ct}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");return Ae.style.display="flex",Ae.style.overflow="hidden",Ae.style.flexGrow="2",this.widths.forEach(function(Oe){var xe=document.createElement("div");xe.style.display="flex",xe.style.flexGrow="2",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Oe===Pe.currentWidth?Pe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){Pe.setCurrentWidth(Oe,xe)}),Ae.appendChild(xe);var ct=document.createElement("div");ct.innerText=Oe.toString(),ct.style.marginRight="5px",xe.appendChild(ct);var Mt=document.createElement("div");Mt.style.minHeight="20px",Mt.style.flexGrow="2",Mt.style.display="flex",Mt.style.alignItems="center";var at=document.createElement("hr");at.style.minWidth="20px",at.style.border="0px",at.style.borderTop=Oe+"px solid "+Pe.uiStyleSettings.toolboxColor,at.style.flexGrow="2",Mt.appendChild(at),xe.appendChild(Mt),Pe.widthBoxes.push(xe)}),Ae},be.prototype.setCurrentWidth=function(Pe,Ae){var Oe=this;this.currentWidth=Pe,this.widthBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},be}(te),ze=function(Ze){function be(Pe,Ae,Oe,xe){var ct=Ze.call(this,Pe,xe||'')||this;return ct.styles=[],ct.styleBoxes=[],ct.styles=Ae,ct.currentStyle=Oe,ct.setCurrentStyle=ct.setCurrentStyle.bind(ct),ct}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");return Ae.style.display="flex",Ae.style.overflow="hidden",Ae.style.flexGrow="2",this.styles.forEach(function(Oe){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/Pe.styles.length-5+"%",xe.style.borderColor=Oe===Pe.currentStyle?Pe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){Pe.setCurrentStyle(Oe,xe)}),Ae.appendChild(xe);var ct=document.createElement("div");ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.overflow="hidden";var Mt=` `;ct.innerHTML=Mt,xe.appendChild(ct),Pe.styleBoxes.push(xe)}),Ae},be.prototype.setCurrentStyle=function(Pe,Ae){var Oe=this;this.currentStyle=Pe,this.styleBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},be}(te),je=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.strokeColor=Oe.defaultColor,xe.strokeWidth=Oe.defaultStrokeWidth,xe.strokeDasharray=Oe.defaultStrokeDasharray,xe.strokePanel=new ee("Line color",Oe.defaultColorSet,Oe.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Le("Line width",Oe.defaultStrokeWidths,Oe.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new ze("Line style",Oe.defaultStrokeDasharrays,Oe.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return ke(be,Ze),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Ze.prototype.getState.call(this);return Pe.typeName=be.typeName,Pe},be.typeName="FrameMarker",be.title="Frame marker",be.icon='',be}(Be),Xe=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ye=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.x1=0,xe.y1=0,xe.x2=0,xe.y2=0,xe.defaultLength=50,xe.manipulationStartX=0,xe.manipulationStartY=0,xe.manipulationStartX1=0,xe.manipulationStartY1=0,xe.manipulationStartX2=0,xe.manipulationStartY2=0,xe.setupControlBox(),xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!!Ze.prototype.ownsTarget.call(this,Pe)||!(!this.grip1.ownsTarget(Pe)&&!this.grip2.ownsTarget(Pe))},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.manipulationStartX=Pe.x,this.manipulationStartY=Pe.y,this.state==="new"&&(this.x1=Pe.x,this.y1=Pe.y,this.x2=Pe.x,this.y2=Pe.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(Ae)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ae)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},be.prototype.pointerUp=function(Pe){var Ae=this.state;Ze.prototype.pointerUp.call(this,Pe),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(Pe),this._state="select",Ae==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},be.prototype.adjustVisual=function(){},be.prototype.manipulate=function(Pe){this.state==="creating"?this.resize(Pe):this.state==="move"?(this.x1=this.manipulationStartX1+Pe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Pe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Pe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Pe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Pe)},be.prototype.resize=function(Pe){switch(this.activeGrip){case this.grip1:this.x1=Pe.x,this.y1=Pe.y;break;case this.grip2:case void 0:this.x2=Pe.x,this.y2=Pe.y}this.adjustVisual(),this.adjustControlBox()},be.prototype.select=function(){Ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},be.prototype.deselect=function(){Ze.prototype.deselect.call(this),this.controlBox.style.display="none"},be.prototype.setupControlBox=function(){this.controlBox=Ue.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},be.prototype.adjustControlBox=function(){this.positionGrips()},be.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},be.prototype.createGrip=function(){var Pe=new he;return Pe.visual.transform.baseVal.appendItem(Ue.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},be.prototype.positionGrips=function(){var Pe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Pe/2,this.y1-Pe/2),this.positionGrip(this.grip2.visual,this.x2-Pe/2,this.y2-Pe/2)},be.prototype.positionGrip=function(Pe,Ae,Oe){var xe=Pe.transform.baseVal.getItem(0);xe.setTranslate(Ae,Oe),Pe.transform.baseVal.replaceItem(xe,0)},be.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ze.prototype.getState.call(this))},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe);var Ae=Pe;this.x1=Ae.x1,this.y1=Ae.y1,this.x2=Ae.x2,this.y2=Ae.y2},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae),this.x1=this.x1*Pe,this.y1=this.y1*Ae,this.x2=this.x2*Pe,this.y2=this.y2*Ae,this.adjustVisual(),this.adjustControlBox()},be}(de),dt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.strokeColor=Oe.defaultColor,xe.strokeWidth=Oe.defaultStrokeWidth,xe.strokeDasharray=Oe.defaultStrokeDasharray,xe.strokePanel=new ee("Line color",Oe.defaultColorSet,Oe.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Le("Line width",Oe.defaultStrokeWidths,Oe.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new ze("Line style",Oe.defaultStrokeDasharrays,Oe.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorLine&&Pe!==this.visibleLine)},be.prototype.createVisual=function(){this.visual=Ue.createGroup(),this.selectorLine=Ue.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ue.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)},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},be.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()),Ue.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ue.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ue.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},be.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},be.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},be.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ze.prototype.getState.call(this));return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe);var Ae=Pe;this.strokeColor=Ae.strokeColor,this.strokeWidth=Ae.strokeWidth,this.strokeDasharray=Ae.strokeDasharray,this.createVisual(),this.adjustVisual()},be.typeName="LineMarker",be.title="Line marker",be.icon='',be}(Ye),He=function(Ze){function be(Pe,Ae,Oe,xe){var ct=Ze.call(this,Pe,xe||'')||this;return ct.fonts=[],ct.fontBoxes=[],ct.fonts=Ae,ct.currentFont=Oe,ct.setCurrentFont=ct.setCurrentFont.bind(ct),ct}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");return Ae.style.overflow="hidden",Ae.style.flexGrow="2",this.fonts.forEach(function(Oe){var xe=document.createElement("div");xe.style.display="inline-block",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/Pe.fonts.length-5+"%",xe.style.borderColor=Oe===Pe.currentFont?Pe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){Pe.setCurrentFont(Oe,xe)}),Ae.appendChild(xe);var ct=document.createElement("div");ct.style.display="flex",ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.fontFamily=Oe,ct.style.overflow="hidden";var Mt=document.createElement("div");Mt.style.whiteSpace="nowrap",Mt.style.overflow="hidden",Mt.style.textOverflow="ellipsis",Mt.innerHTML="The quick brown fox jumps over the lazy dog",ct.appendChild(Mt),xe.appendChild(ct),Pe.fontBoxes.push(xe)}),Ae},be.prototype.setCurrentFont=function(Pe,Ae){var Oe=this;this.currentFont=Pe,this.fontBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},be}(te),Nt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.color="transparent",xe.padding=5,xe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",xe.text=xe.DEFAULT_TEXT,xe.isMoved=!1,xe.color=Oe.defaultColor,xe.fontFamily=Oe.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setColor=xe.setColor.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.renderText=xe.renderText.bind(xe),xe.sizeText=xe.sizeText.bind(xe),xe.textEditDivClicked=xe.textEditDivClicked.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.setSize=xe.setSize.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.colorPanel=new ee("Color",Oe.defaultColorSet,Oe.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.fontFamilyPanel=new He("Font",Oe.defaultFontFamilies,Oe.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){if(Ze.prototype.ownsTarget.call(this,Pe)||Pe===this.visual||Pe===this.textElement||Pe===this.bgRectangle)return!0;var Ae=!1;return this.textElement.childNodes.forEach(function(Oe){Oe===Pe&&(Ae=!0)}),Ae},be.prototype.createVisual=function(){this.visual=Ue.createGroup(),this.bgRectangle=Ue.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ue.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ue.createTransform()),this.textElement.transform.baseVal.appendItem(Ue.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},be.prototype.renderText=function(){var Pe=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(Ae){Pe.textElement.appendChild(Ue.createTSpan(Ae.trim()===""?" ":Ae.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},be.prototype.getTextScale=function(){var Pe=this.textElement.getBBox(),Ae=1;if(Pe.width>0&&Pe.height>0){var Oe=(1*this.width-this.width*this.padding*2/100)/Pe.width,xe=(1*this.height-this.height*this.padding*2/100)/Pe.height;Ae=Math.min(Oe,xe)}return Ae},be.prototype.getTextPosition=function(Pe){var Ae=this.textElement.getBBox(),Oe=0,xe=0;return Ae.width>0&&Ae.height>0&&(Oe=(this.width-Ae.width*Pe)/2,xe=this.height/2-Ae.height*Pe/2),{x:Oe,y:xe}},be.prototype.sizeText=function(){var Pe=this.textElement.getBBox(),Ae=this.getTextScale(),Oe=this.getTextPosition(Ae);Oe.y-=Pe.y*Ae,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Oe.x+"px, "+Oe.y+"px) scale("+Ae+", "+Ae+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Oe.x,Oe.y),this.textElement.transform.baseVal.getItem(1).setScale(Ae,Ae))},be.prototype.manipulate=function(Pe){Ze.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},be.prototype.resize=function(Pe){Ze.prototype.resize.call(this,Pe),this.isMoved=!0,this.setSize(),this.sizeText()},be.prototype.setSize=function(){Ze.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ue.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ue.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},be.prototype.pointerUp=function(Pe){var Ae=this.state;Ae==="creating"&&(this._suppressMarkerCreateEvent=!0),Ze.prototype.pointerUp.call(this,Pe),this.setSize(),(Ae==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},be.prototype.showTextEditor=function(){var Pe=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(Ae){Ae.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ae=Number.parseFloat(Pe.textEditor.style.fontSize);Pe.textEditor.clientWidth>=Number.parseInt(Pe.textEditor.style.maxWidth)&&Ae>.9;)Ae-=.1,Pe.textEditor.style.fontSize=Math.max(Ae,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ae){Ae.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ae){if(Ae.clipboardData){var Oe=Ae.clipboardData.getData("text"),xe=window.getSelection();if(!xe.rangeCount)return!1;xe.deleteFromDocument(),xe.getRangeAt(0).insertNode(document.createTextNode(Oe)),Ae.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Pe.textEditDivClicked(Pe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},be.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Pe=this.getTextScale(),Ae=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Oe=this.textElement.getBBox(),xe={x:Oe.width*Pe,y:Oe.height*Pe};Ae.x-=xe.x/2,Ae.y-=xe.y/2,this.textEditor.style.top=Ae.y+"px",this.textEditor.style.left=Ae.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ae.x+"px",this.textEditor.style.fontSize=Math.max(16*Pe,12)+"px",this.textElement.style.display="none"}},be.prototype.textEditDivClicked=function(Pe){this.text=Pe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},be.prototype.select=function(){Ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},be.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ze.prototype.deselect.call(this)},be.prototype.dblClick=function(Pe,Ae){Ze.prototype.dblClick.call(this,Pe,Ae),this.showTextEditor()},be.prototype.setColor=function(Pe){this.textElement&&Ue.setAttributes(this.textElement,[["fill",Pe]]),this.color=Pe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Pe)},be.prototype.setFont=function(Pe){this.textElement&&Ue.setAttributes(this.textElement,[["font-family",Pe]]),this.fontFamily=Pe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},be.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},be.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ze.prototype.getState.call(this));return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){var Ae=Pe;this.color=Ae.color,this.fontFamily=Ae.fontFamily,this.padding=Ae.padding,this.text=Ae.text,this.createVisual(),Ze.prototype.restoreState.call(this,Pe),this.setSize()},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae),this.setSize(),this.sizeText(),this.positionTextEditor()},be.typeName="TextMarker",be.title="Text marker",be.icon='',be}(Ee),ot=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.color="transparent",xe.lineWidth=3,xe.drawing=!1,xe.pixelRatio=1,xe.color=Oe.defaultColor,xe.lineWidth=Oe.defaultStrokeWidth,xe.pixelRatio=Oe.freehandPixelRatio,xe.setColor=xe.setColor.bind(xe),xe.addCanvas=xe.addCanvas.bind(xe),xe.finishCreation=xe.finishCreation.bind(xe),xe.setLineWidth=xe.setLineWidth.bind(xe),xe.colorPanel=new ee("Color",Oe.defaultColorSet,Oe.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.lineWidthPanel=new Le("Line width",Oe.defaultStrokeWidths,Oe.defaultStrokeWidth),xe.lineWidthPanel.onWidthChanged=xe.setLineWidth,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.drawingImage)},be.prototype.createVisual=function(){this.visual=Ue.createGroup(),this.drawingImage=Ue.createImage(),this.visual.appendChild(this.drawingImage);var Pe=Ue.createTransform();this.visual.transform.baseVal.appendItem(Pe),this.addMarkerVisualToContainer(this.visual)},be.prototype.pointerDown=function(Pe,Ae){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(Pe.x,Pe.y),this.drawing=!0):Ze.prototype.pointerDown.call(this,Pe,Ae)},be.prototype.manipulate=function(Pe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Pe.x,Pe.y),this.canvasContext.stroke()):Ze.prototype.manipulate.call(this,Pe)},be.prototype.resize=function(Pe){Ze.prototype.resize.call(this,Pe),Ue.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ue.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},be.prototype.pointerUp=function(Pe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ze.prototype.pointerUp.call(this,Pe)},be.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)},be.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.select.call(this)},be.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ze.prototype.deselect.call(this)},be.prototype.finishCreation=function(){for(var Pe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ae=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Oe=Ae[0],xe=Ae[1],ct=Ae[2],Mt=Ae[3],at=!1,qe=0;qe0&&(at=!0,qeMt&&(Mt=qe),Lt>ct&&(ct=Lt));if(at){this.left=Oe/this.pixelRatio,this.top=xe/this.pixelRatio,this.width=(ct-Oe)/this.pixelRatio,this.height=(Mt-xe)/this.pixelRatio;var Bt=document.createElement("canvas");Bt.width=ct-Oe,Bt.height=Mt-xe,Bt.getContext("2d").putImageData(this.canvasContext.getImageData(Oe,xe,ct-Oe,Mt-xe),0,0),this.drawingImgUrl=Bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},be.prototype.setDrawingImage=function(){Ue.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ue.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},be.prototype.setColor=function(Pe){this.color=Pe,this.colorChanged(Pe)},be.prototype.setLineWidth=function(Pe){this.lineWidth=Pe},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Object.assign({drawingImgUrl:this.drawingImgUrl},Ze.prototype.getState.call(this));return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){this.createVisual(),Ze.prototype.restoreState.call(this,Pe),this.drawingImgUrl=Pe.drawingImgUrl,this.setDrawingImage()},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae),this.setDrawingImage()},be.typeName="FreehandMarker",be.title="Freehand marker",be.icon='',be}(Ee),Tt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Oe||'')||this;return xe.typeBoxes=[],xe.currentType=Ae,xe.setCurrentType=xe.setCurrentType.bind(xe),xe}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");Ae.style.display="flex",Ae.style.overflow="hidden",Ae.style.flexGrow="2";for(var Oe=function(Mt){var at="both";switch(Mt){case 0:at="both";break;case 1:at="start";break;case 2:at="end";break;case 3:at="none"}var qe=document.createElement("div");if(qe.style.display="flex",qe.style.flexGrow="2",qe.style.alignItems="center",qe.style.justifyContent="space-between",qe.style.padding="5px",qe.style.borderWidth="2px",qe.style.borderStyle="solid",qe.style.borderColor=at===xe.currentType?xe.uiStyleSettings.toolboxAccentColor:"transparent",qe.addEventListener("click",function(){Pe.setCurrentType(at,qe)}),Ae.appendChild(qe),at==="both"||at==="start"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.innerHTML=` `,Lt.style.marginLeft="5px",qe.appendChild(Lt)}var Bt=document.createElement("div");Bt.style.display="flex",Bt.style.alignItems="center",Bt.style.minHeight="20px",Bt.style.flexGrow="2";var ft=document.createElement("hr");if(ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop="3px solid "+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee"),ft.style.flexGrow="2",Bt.appendChild(ft),qe.appendChild(Bt),at==="both"||at==="end"){var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.alignItems="center",Gt.style.minHeight="20px",Gt.innerHTML=` `,Gt.style.marginRight="5px",qe.appendChild(Gt)}xe.typeBoxes.push(qe)},xe=this,ct=0;ct<4;ct++)Oe(ct);return Ae},be.prototype.setCurrentType=function(Pe,Ae){var Oe=this;this.currentType=Pe,this.typeBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},be}(te),xt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.arrowType="end",xe.arrowBaseHeight=10,xe.arrowBaseWidth=10,xe.getArrowPoints=xe.getArrowPoints.bind(xe),xe.setArrowType=xe.setArrowType.bind(xe),xe.arrowTypePanel=new Tt("Arrow type","end"),xe.arrowTypePanel.onArrowTypeChanged=xe.setArrowType,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.arrow1&&Pe!==this.arrow2)},be.prototype.getArrowPoints=function(Pe,Ae){var Oe=this.arrowBaseWidth+2*this.strokeWidth,xe=this.arrowBaseHeight+2*this.strokeWidth;return Pe-Oe/2+","+(Ae+xe/2)+" "+Pe+","+(Ae-xe/2)+" "+(Pe+Oe/2)+","+(Ae+xe/2)},be.prototype.createTips=function(){this.arrow1=Ue.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ue.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ue.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ue.createTransform()),this.visual.appendChild(this.arrow2)},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.state==="creating"&&this.createTips()},be.prototype.adjustVisual=function(){if(Ze.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",Ue.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ue.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Pe=0;Math.abs(this.x1-this.x2)>.1&&(Pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ae=this.arrow1.transform.baseVal.getItem(0);Ae.setRotate(Pe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ae,0);var Oe=this.arrow2.transform.baseVal.getItem(0);Oe.setRotate(Pe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Oe,0)}},be.prototype.setArrowType=function(Pe){this.arrowType=Pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Object.assign({arrowType:this.arrowType},Ze.prototype.getState.call(this));return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe);var Ae=Pe;this.arrowType=Ae.arrowType,this.createTips(),this.adjustVisual()},be.typeName="ArrowMarker",be.title="Arrow marker",be.icon='',be}(dt),Ot=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.fillColor=Oe.defaultFillColor,xe.strokeWidth=0,xe.fillPanel=new ee("Color",Oe.defaultColorSet,Oe.defaultFillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe}return ke(be,Ze),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Ze.prototype.getState.call(this);return Pe.typeName=be.typeName,Pe},be.typeName="CoverMarker",be.title="Cover marker",be.icon='',be}(Be),Wt=function(Ze){function be(Pe,Ae,Oe,xe){var ct=Ze.call(this,Pe,xe||'')||this;return ct.opacities=[],ct.opacityBoxes=[],ct.opacities=Ae,ct.currentOpacity=Oe,ct.setCurrentOpacity=ct.setCurrentOpacity.bind(ct),ct}return ke(be,Ze),be.prototype.getUi=function(){var Pe=this,Ae=document.createElement("div");return Ae.style.display="flex",Ae.style.overflow="hidden",Ae.style.flexGrow="2",Ae.style.justifyContent="space-between",this.opacities.forEach(function(Oe){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="center",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Oe===Pe.currentOpacity?Pe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){Pe.setCurrentOpacity(Oe,xe)}),Ae.appendChild(xe);var ct=document.createElement("div");ct.innerText=100*Oe+"%",xe.appendChild(ct),Pe.opacityBoxes.push(xe)}),Ae},be.prototype.setCurrentOpacity=function(Pe,Ae){var Oe=this;this.currentOpacity=Pe,this.opacityBoxes.forEach(function(xe){xe.style.borderColor=xe===Ae?Oe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},be}(te),Dt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.setOpacity=xe.setOpacity.bind(xe),xe.fillColor=Oe.defaultHighlightColor,xe.strokeWidth=0,xe.opacity=Oe.defaultHighlightOpacity,xe.fillPanel=new ee("Color",Oe.defaultColorSet,xe.fillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe.opacityPanel=new Wt("Opacity",Oe.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return ke(be,Ze),be.prototype.setOpacity=function(Pe){this.opacity=Pe,this.visual&&Ue.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Ze.prototype.getState.call(this);return Pe.typeName=be.typeName,Pe},be.typeName="HighlightMarker",be.title="Highlight marker",be.icon='',be}(Ot),tt='',Ve='',_t=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.bgColor="transparent",xe.tipPosition={x:0,y:0},xe.tipBase1Position={x:0,y:0},xe.tipBase2Position={x:0,y:0},xe.tipMoving=!1,xe.color=Oe.defaultStrokeColor,xe.bgColor=Oe.defaultFillColor,xe.fontFamily=Oe.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setBgColor=xe.setBgColor.bind(xe),xe.getTipPoints=xe.getTipPoints.bind(xe),xe.positionTip=xe.positionTip.bind(xe),xe.setTipPoints=xe.setTipPoints.bind(xe),xe.colorPanel=new ee("Text color",Oe.defaultColorSet,xe.color,tt),xe.colorPanel.onColorChanged=xe.setColor,xe.bgColorPanel=new ee("Fill color",Oe.defaultColorSet,xe.bgColor,Ve),xe.bgColorPanel.onColorChanged=xe.setBgColor,xe.fontFamilyPanel=new He("Font",Oe.defaultFontFamilies,Oe.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.tipGrip=new he,xe.tipGrip.visual.transform.baseVal.appendItem(Ue.createTransform()),xe.controlBox.appendChild(xe.tipGrip.visual),xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return Ze.prototype.ownsTarget.call(this,Pe)||this.tipGrip.ownsTarget(Pe)||this.tip===Pe},be.prototype.createTip=function(){Ue.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ue.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},be.prototype.pointerDown=function(Pe,Ae){this.state==="new"&&Ze.prototype.pointerDown.call(this,Pe,Ae),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ae)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ze.prototype.pointerDown.call(this,Pe,Ae)},be.prototype.pointerUp=function(Pe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ze.prototype.pointerUp.call(this,Pe);else{var Ae=this.state==="creating";Ze.prototype.pointerUp.call(this,Pe),this.setTipPoints(Ae),this.positionTip()}},be.prototype.manipulate=function(Pe){if(this.tipMoving){var Ae=this.unrotatePoint(Pe);this.tipPosition={x:Ae.x-this.manipulationStartLeft,y:Ae.y-this.manipulationStartTop},this.positionTip()}else Ze.prototype.manipulate.call(this,Pe)},be.prototype.setBgColor=function(Pe){this.bgRectangle&&this.tip&&(Ue.setAttributes(this.bgRectangle,[["fill",Pe]]),Ue.setAttributes(this.tip,[["fill",Pe]])),this.bgColor=Pe,this.fillColorChanged(Pe)},be.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},be.prototype.setTipPoints=function(Pe){Pe===void 0&&(Pe=!1);var Ae=Math.min(this.height/2,15),Oe=this.height/5;Pe&&(this.tipPosition={x:Ae+Oe/2,y:this.height+20});var xe=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?xe.1)){var Pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ae=this.tip1.transform.baseVal.getItem(0);Ae.setRotate(Pe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ae,0);var Oe=this.tip2.transform.baseVal.getItem(0);Oe.setRotate(Pe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Oe,0)}},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Ze.prototype.getState.call(this);return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe),this.createTips(),this.adjustVisual()},be.typeName="MeasurementMarker",be.title="Measurement marker",be.icon='',be}(dt),zt=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.strokePanel.colors=Oe.defaultColorSet,xe.fillColor="transparent",xe}return ke(be,Ze),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Ze.prototype.getState.call(this);return Pe.typeName=be.typeName,Pe},be.typeName="EllipseFrameMarker",be.title="Ellipse frame marker",be.icon='',be}(vn),qt=function(){function Ze(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ze.prototype.addUndoStep=function(be){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(be)||(this.undoStack.push(be),JSON.stringify(this.lastRedoStep)!==JSON.stringify(be)&&this.redoStack.splice(0,this.redoStack.length))},Ze.prototype.replaceLastUndoStep=function(be){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=be)},Ze.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ze.prototype.undo=function(){if(this.undoStack.length>1){var be=this.undoStack.pop();return be!==void 0&&this.redoStack.push(be),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ze.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ze}(),ln=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.curveX=0,xe.curveY=0,xe.manipulationStartCurveX=0,xe.manipulationStartCurveY=0,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.positionGrips=xe.positionGrips.bind(xe),xe.addControlGrips=xe.addControlGrips.bind(xe),xe.adjustVisual=xe.adjustVisual.bind(xe),xe.setupControlBox=xe.setupControlBox.bind(xe),xe.resize=xe.resize.bind(xe),xe.strokeColor=Oe.defaultColor,xe.strokeWidth=Oe.defaultStrokeWidth,xe.strokeDasharray=Oe.defaultStrokeDasharray,xe.strokePanel=new ee("Line color",Oe.defaultColorSet,Oe.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Le("Line width",Oe.defaultStrokeWidths,Oe.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new ze("Line style",Oe.defaultStrokeDasharrays,Oe.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorCurve&&Pe!==this.visibleCurve&&!this.curveGrip.ownsTarget(Pe))},be.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},be.prototype.createVisual=function(){this.visual=Ue.createGroup(),this.selectorCurve=Ue.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ue.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)},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Pe.x,this.curveY=Pe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ae)&&(this.activeGrip=this.curveGrip,this._state="resize")},be.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ue.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ue.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ue.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},be.prototype.setupControlBox=function(){Ze.prototype.setupControlBox.call(this),this.curveControlLine1=Ue.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ue.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)},be.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ze.prototype.addControlGrips.call(this)},be.prototype.positionGrips=function(){Ze.prototype.positionGrips.call(this);var Pe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Pe/2,this.curveY-Pe/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()))},be.prototype.manipulate=function(Pe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Pe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Pe.y-this.manipulationStartY),Ze.prototype.manipulate.call(this,Pe)},be.prototype.resize=function(Pe){this.activeGrip===this.curveGrip&&(this.curveX=Pe.x,this.curveY=Pe.y),Ze.prototype.resize.call(this,Pe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},be.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},be.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},be.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.adjustVisual()},be.prototype.scale=function(Pe,Ae){this.curveX=this.curveX*Pe,this.curveY=this.curveY*Ae,Ze.prototype.scale.call(this,Pe,Ae)},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ze.prototype.getState.call(this));return Pe.typeName=be.typeName,Pe},be.prototype.restoreState=function(Pe){Ze.prototype.restoreState.call(this,Pe);var Ae=Pe;this.strokeColor=Ae.strokeColor,this.strokeWidth=Ae.strokeWidth,this.strokeDasharray=Ae.strokeDasharray,this.curveX=Ae.curveX,this.curveY=Ae.curveY,this.createVisual(),this.adjustVisual()},be.typeName="CurveMarker",be.title="Curve marker",be.icon='',be}(Ye),Gn=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,Ae,Oe)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.textColor="transparent",xe.fontSize="1rem",xe.isMoved=!1,xe.captionText="Caption",xe.PADDING=5,xe.captionBoxWidth=0,xe.captionBoxHeight=0,xe.strokeColor=Oe.defaultColor,xe.strokeWidth=Oe.defaultStrokeWidth,xe.strokeDasharray=Oe.defaultStrokeDasharray,xe.fillColor=Oe.defaultFillColor,xe.textColor=Oe.defaultStrokeColor,xe.fontFamily=Oe.defaultFontFamily,xe.fontSize=Oe.defaultCaptionFontSize,xe.captionText=Oe.defaultCaptionText,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.sizeCaption=xe.sizeCaption.bind(xe),xe.setCaptionText=xe.setCaptionText.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.finishTextEditing=xe.finishTextEditing.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.setTextColor=xe.setTextColor.bind(xe),xe.strokePanel=new ee("Line color",Ge(Oe.defaultColorSet,["transparent"]),xe.strokeColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new ee("Fill color",Ge(Oe.defaultColorSet,["transparent"]),xe.fillColor,Ve),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new Le("Line width",Oe.defaultStrokeWidths,Oe.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new ze("Line style",Oe.defaultStrokeDasharrays,Oe.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.fontFamilyPanel=new He("Font",Oe.defaultFontFamilies,Oe.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.textColorPanel=new ee("Text color",Oe.defaultColorSet,xe.textColor,tt),xe.textColorPanel.onColorChanged=xe.setTextColor,xe}return ke(be,Ze),be.prototype.ownsTarget=function(Pe){return!(!Ze.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.frame&&Pe!==this.captionBg&&Pe!==this.captionElement)},be.prototype.createVisual=function(){this.visual=Ue.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ue.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ue.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=Ue.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()},be.prototype.setCaptionText=function(Pe){this.captionText=Pe,this.captionElement.textContent=this.captionText,this.sizeCaption()},be.prototype.pointerDown=function(Pe,Ae){Ze.prototype.pointerDown.call(this,Pe,Ae),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},be.prototype.manipulate=function(Pe){Ze.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},be.prototype.resize=function(Pe){Ze.prototype.resize.call(this,Pe),this.setSize()},be.prototype.sizeCaption=function(){var Pe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Pe.width+2*this.PADDING,this.captionBoxHeight=Pe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ue.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')"]]),Ue.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')"]])},be.prototype.showTextEditor=function(){var Pe=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(Ae){Ae.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ae){Ae.key==="Enter"&&Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ae){Ae.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Pe.finishTextEditing(Pe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},be.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"))},be.prototype.finishTextEditing=function(Pe){this.setCaptionText(Pe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},be.prototype.setFont=function(Pe){this.captionElement&&Ue.setAttributes(this.captionElement,[["font-family",Pe]]),this.fontFamily=Pe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},be.prototype.setTextColor=function(Pe){this.captionElement&&Ue.setAttributes(this.captionElement,[["fill",Pe]]),this.textColor=Pe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},be.prototype.setSize=function(){Ze.prototype.setSize.call(this),Ue.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},be.prototype.pointerUp=function(Pe){Ze.prototype.pointerUp.call(this,Pe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},be.prototype.dblClick=function(Pe,Ae){Ze.prototype.dblClick.call(this,Pe,Ae),this.showTextEditor()},be.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.frame&&Ue.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},be.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.captionBg&&Ue.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Pe),this.stateChanged()},be.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.frame&&Ue.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},be.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.frame&&Ue.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var Pe=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},Ze.prototype.getState.call(this));return Pe.typeName=this.typeName,Pe},be.prototype.restoreState=function(Pe){var Ae=Pe;this.fillColor=Ae.fillColor,this.strokeColor=Ae.strokeColor,this.strokeWidth=Ae.strokeWidth,this.strokeDasharray=Ae.strokeDasharray,this.textColor=Ae.textColor,this.fontFamily=Ae.fontFamily,this.captionText=Ae.captionText,this.fontSize=Ae.fontSize,this.createVisual(),Ze.prototype.restoreState.call(this,Pe),this.setSize()},be.prototype.scale=function(Pe,Ae){Ze.prototype.scale.call(this,Pe,Ae),this.setSize()},be.typeName="CaptionFrameMarker",be.title="Caption frame marker",be.icon='',be}(Ee),un=function(){function Ze(be,Pe){Pe===void 0&&(Pe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=be,this.cancelable=Pe}return Object.defineProperty(Ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ze.prototype.preventDefault=function(){this._defaultPrevented=!0},Ze}(),_n=function(Ze){function be(Pe,Ae,Oe){var xe=Ze.call(this,Pe,!1)||this;return xe.dataUrl=Ae,xe.state=Oe,xe}return ke(be,Ze),be}(un),St=function(Ze){function be(Pe,Ae,Oe){Oe===void 0&&(Oe=!1);var xe=Ze.call(this,Pe,Oe)||this;return xe.marker=Ae,xe}return ke(be,Ze),be}(un),Zn=function(){function Ze(){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 Ze.prototype.addEventListener=function(be,Pe){this[be].push(Pe)},Ze.prototype.removeEventListener=function(be,Pe){var Ae=this[be].indexOf(Pe);Ae>-1&&this[be].splice(Ae,1)},Ze}(),ci=function(){function Ze(be){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Xe,this._isOpen=!1,this.undoRedoManager=new qt,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 Zn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ze.instanceCounter++,this.styles=new $e(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=be,this.targetRoot=document.body,this.width=be.clientWidth,this.height=be.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(Ze.prototype,"ALL_MARKER_TYPES",{get:function(){return[je,ot,xt,Nt,zt,vn,Dt,_t,yn,Ot,dt,ln,Gn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[je,ot,xt,Nt,vn,Dt,_t]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[je,ot,xt,Nt,Dt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(be){var Pe=this;this._availableMarkerTypes.splice(0),be.forEach(function(Ae){if(typeof Ae=="string"){var Oe=Pe.ALL_MARKER_TYPES.find(function(xe){return xe.typeName===Ae});Oe!==void 0&&Pe._availableMarkerTypes.push(Oe)}else Pe._availableMarkerTypes.push(Ae)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ze.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(be){this._zoomLevel=be,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(Ze.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ze.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ze.prototype.show=function(){var be=this;this.styles.styleSheetRoot===void 0&&wt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=wt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Pe){return Pe(new un(be))})},Ze.prototype.render=function(){return We(this,void 0,void 0,function(){var be;return ut(this,function(Pe){switch(Pe.label){case 0:return this.setCurrentMarker(),(be=new Ct).naturalSize=this.renderAtNaturalSize,be.imageType=this.renderImageType,be.imageQuality=this.renderImageQuality,be.markersOnly=this.renderMarkersOnly,be.width=this.renderWidth,be.height=this.renderHeight,[4,be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Pe.sent(),[4,be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Pe.sent()]}})})},Ze.prototype.close=function(be){var Pe=this;if(be===void 0&&(be=!1),this.isOpen){var Ae=!1;be||this.eventListeners.beforeclose.forEach(function(Oe){var xe=new un(Pe,!0);Oe(xe),xe.defaultPrevented&&(Ae=!0)}),Ae||(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(Oe){return Oe(new un(Pe))}),this.detachEvents(),this._isOpen=!1)}},Ze.prototype.addMarkersToToolbar=function(){for(var be,Pe=[],Ae=0;Aethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*be:this.editorCanvas.clientWidth,Ae=Pe',be.title="Powered by marker.js",be.style.display="grid",be.style.alignItems="center",be.style.justifyItems="center",be.style.padding="3px",be.style.width="20px",be.style.height="20px",this.logoUI.appendChild(be),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ze.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")},Ze.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"},Ze.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ze.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 be=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=be+"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 vt(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(be),1),be.dispose()},Ze.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())},Ze.prototype.toolbarButtonClicked=function(be,Pe){if(be==="marker"&&Pe!==void 0)this.createNewMarker(Pe);else if(be==="action")switch(Pe){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()}},Ze.prototype.deleteSelectedMarker=function(){var be=this;if(this._currentMarker!==void 0){var Pe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Oe){var xe=new St(be,be._currentMarker,!0);Oe(xe),xe.defaultPrevented&&(Pe=!0)}),!Pe){var Ae=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(Oe){return Oe(new St(be,Ae))})}}},Ze.prototype.clear=function(){var be=this,Pe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ct){var Mt=new St(be,void 0,!0);ct(Mt),Mt.defaultPrevented&&(Pe=!0)}),!Pe)){this.setCurrentMarker();for(var Ae=function(ct){var Mt=Oe.markers[ct];Oe.setCurrentMarker(Oe.markers[ct]),Oe._currentMarker.dispose(),Oe.markerImage.removeChild(Oe._currentMarker.container),Oe.markers.splice(Oe.markers.indexOf(Oe._currentMarker),1),Oe.eventListeners.markerdelete.forEach(function(at){return at(new St(be,Mt))})},Oe=this,xe=this.markers.length-1;xe>=0;xe--)Ae(xe);this.addUndoStep()}},Object.defineProperty(Ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ze.prototype.showNotesEditor=function(){var be;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=(be=this._currentMarker.notes)!==null&&be!==void 0?be:"",this.overlayContainer.appendChild(this.notesArea))},Ze.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)},Ze.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ze.prototype.addUndoStep=function(){var be=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Pe=this.getState(),Ae=this.undoRedoManager.getLastUndoStep();if(!Ae||Ae.width===Pe.width&&Ae.height===Pe.height){var Oe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Pe),Oe1&&this.panTo({x:be.clientX,y:be.clientY}))},Ze.prototype.onPointerUp=function(be){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(be.clientX,be.clientY)),this.isDragging=!1,this.addUndoStep()},Ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ze.prototype.onKeyUp=function(be){this._currentMarker===void 0||this.notesArea!==void 0||be.key!=="Delete"&&be.key!=="Backspace"||this.deleteSelectedMarker()},Ze.prototype.clientToLocalCoordinates=function(be,Pe){var Ae=this.markerImage.getBoundingClientRect();return{x:(be-Ae.left)/this.zoomLevel,y:(Pe-Ae.top)/this.zoomLevel}},Ze.prototype.onWindowResize=function(){this.positionUI()},Ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var be=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=be+"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()},Ze.prototype.addLicenseKey=function(be){Me.addKey(be)},Ze.prototype.addEventListener=function(be,Pe){this.eventListeners.addEventListener(be,Pe)},Ze.prototype.removeEventListener=function(be,Pe){this.eventListeners.removeEventListener(be,Pe)},Ze.prototype.renderState=function(be){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(be),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ze.prototype.focus=function(){var be=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Pe){return Pe(new un(be))}))},Ze.prototype.blur=function(){var be=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Pe){return Pe(new un(be))}))},Ze.instanceCounter=0,Ze}()},17115:function(On,pn,pe){"use strict";pe.d(pn,{ZP:function(){return Me}});var le=pe(72071),ke=pe(59301),We=pe(47273),ut=0,Ge=(0,We.Z)();function Ue(){var Ct;return Ge?(Ct=ut,ut+=1):Ct="TEST_OR_SSR",Ct}function Me(Ct){var wt=ke.useState(),$e=(0,le.Z)(wt,2),Ft=$e[0],lt=$e[1];return ke.useEffect(function(){lt("rc_select_".concat(Ue()))},[]),Ct||Ft}},77861:function(On,pn,pe){"use strict";pe.d(pn,{Ac:function(){return Gt},Xo:function(){return Hi},Wx:function(){return _r},ZP:function(){return cn},lk:function(){return Ee}});var le=pe(96663),ke=pe(19127),We=pe(90493),ut=pe(44127),Ge=pe(72071),Ue=pe(6620),Me=pe(20135),Ct=pe(18929),wt=pe(48736),$e=pe(59301),Ft=pe(92310),lt=pe.n(Ft),vt=pe(34280),Ie=pe(49658),te=pe(10228),ee=pe(8654),de=function(ht){var en=ht.className,fn=ht.customizeIcon,Rn=ht.customizeIconProps,Qn=ht.onMouseDown,Et=ht.onClick,wn=ht.children,Kn;return typeof fn=="function"?Kn=fn(Rn):Kn=fn,$e.createElement("span",{className:en,onMouseDown:function(tn){tn.preventDefault(),Qn&&Qn(tn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Et,"aria-hidden":!0},Kn!==void 0?Kn:$e.createElement("span",{className:lt()(en.split(/\s+/).map(function(Ei){return"".concat(Ei,"-icon")}))},wn))},se=de;function he(At,ht,en,fn,Rn){var Qn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Et=arguments.length>6?arguments[6]:void 0,wn=arguments.length>7?arguments[7]:void 0,Kn=$e.useMemo(function(){if((0,Me.Z)(fn)==="object")return fn.clearIcon;if(Rn)return Rn},[fn,Rn]),Ei=$e.useMemo(function(){return!!(!Qn&&fn&&(en.length||Et)&&!(wn==="combobox"&&Et===""))},[fn,Qn,en.length,Et,wn]);return{allowClear:Ei,clearIcon:$e.createElement(se,{className:"".concat(At,"-clear"),onMouseDown:ht,customizeIcon:Kn},"\xD7")}}var ve=$e.createContext(null);function Ee(){return $e.useContext(ve)}function Be(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ht=$e.useState(!1),en=(0,Ge.Z)(ht,2),fn=en[0],Rn=en[1],Qn=$e.useRef(null),Et=function(){window.clearTimeout(Qn.current)};$e.useEffect(function(){return Et},[]);var wn=function(Ei,tn){Et(),Qn.current=window.setTimeout(function(){Rn(Ei),tn&&tn()},At)};return[fn,wn,Et]}function Le(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ht=$e.useRef(null),en=$e.useRef(null);$e.useEffect(function(){return function(){window.clearTimeout(en.current)}},[]);function fn(Rn){(Rn||ht.current===null)&&(ht.current=Rn),window.clearTimeout(en.current),en.current=window.setTimeout(function(){ht.current=null},At)}return[function(){return ht.current},fn]}function ze(At,ht,en,fn){var Rn=$e.useRef(null);Rn.current={open:ht,triggerOpen:en,customizedTrigger:fn},$e.useEffect(function(){function Qn(Et){var wn;if(!((wn=Rn.current)!==null&&wn!==void 0&&wn.customizedTrigger)){var Kn=Et.target;Kn.shadowRoot&&Et.composed&&(Kn=Et.composedPath()[0]||Kn),Rn.current.open&&At().filter(function(Ei){return Ei}).every(function(Ei){return!Ei.contains(Kn)&&Ei!==Kn})&&Rn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Qn),function(){return window.removeEventListener("mousedown",Qn)}},[])}var je=pe(26112),Xe=pe(11780),Ye=function(ht,en){var fn,Rn,Qn=ht.prefixCls,Et=ht.id,wn=ht.inputElement,Kn=ht.disabled,Ei=ht.tabIndex,tn=ht.autoFocus,sn=ht.autoComplete,In=ht.editable,Oi=ht.activeDescendantId,Di=ht.value,vi=ht.maxLength,Ti=ht.onKeyDown,Li=ht.onMouseDown,sr=ht.onChange,Zr=ht.onPaste,Vr=ht.onCompositionStart,Tn=ht.onCompositionEnd,Po=ht.open,Xr=ht.attrs,Cr=wn||$e.createElement("input",null),Cn=Cr,ri=Cn.ref,Yi=Cn.props,yr=Yi.onKeyDown,er=Yi.onChange,Fr=Yi.onMouseDown,Ur=Yi.onCompositionStart,zr=Yi.onCompositionEnd,Tr=Yi.style;return(0,wt.Kp)(!("maxLength"in Cr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Cr=$e.cloneElement(Cr,(0,ut.Z)((0,ut.Z)((0,ut.Z)({type:"search"},Yi),{},{id:Et,ref:(0,ee.sQ)(en,ri),disabled:Kn,tabIndex:Ei,autoComplete:sn||"off",autoFocus:tn,className:lt()("".concat(Qn,"-selection-search-input"),(fn=Cr)===null||fn===void 0||(Rn=fn.props)===null||Rn===void 0?void 0:Rn.className),role:"combobox","aria-label":"Search","aria-expanded":Po||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Et,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Et,"_list"),"aria-activedescendant":Po?Oi:void 0},Xr),{},{value:In?Di:"",maxLength:vi,readOnly:!In,unselectable:In?null:"on",style:(0,ut.Z)((0,ut.Z)({},Tr),{},{opacity:In?null:0}),onKeyDown:function(Un){Ti(Un),yr&&yr(Un)},onMouseDown:function(Un){Li(Un),Fr&&Fr(Un)},onChange:function(Un){sr(Un),er&&er(Un)},onCompositionStart:function(Un){Vr(Un),Ur&&Ur(Un)},onCompositionEnd:function(Un){Tn(Un),zr&&zr(Un)},onPaste:Zr})),Cr},dt=$e.forwardRef(Ye);dt.displayName="Input";var He=dt;function Nt(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}var ot=typeof window!="undefined"&&window.document&&window.document.documentElement,Tt=ot;function xt(At){return At!=null}function Ot(At){return!At&&At!==0}function Wt(At){return["string","number"].includes((0,Me.Z)(At))}function Dt(At){var ht=void 0;return At&&(Wt(At.title)?ht=At.title.toString():Wt(At.label)&&(ht=At.label.toString())),ht}function tt(At,ht){Tt?$e.useLayoutEffect(At,ht):$e.useEffect(At,ht)}function Ve(At){var ht;return(ht=At.key)!==null&&ht!==void 0?ht:At.value}var _t=function(ht){ht.preventDefault(),ht.stopPropagation()},vn=function(ht){var en=ht.id,fn=ht.prefixCls,Rn=ht.values,Qn=ht.open,Et=ht.searchValue,wn=ht.autoClearSearchValue,Kn=ht.inputRef,Ei=ht.placeholder,tn=ht.disabled,sn=ht.mode,In=ht.showSearch,Oi=ht.autoFocus,Di=ht.autoComplete,vi=ht.activeDescendantId,Ti=ht.tabIndex,Li=ht.removeIcon,sr=ht.maxTagCount,Zr=ht.maxTagTextLength,Vr=ht.maxTagPlaceholder,Tn=Vr===void 0?function(sa){return"+ ".concat(sa.length," ...")}:Vr,Po=ht.tagRender,Xr=ht.onToggleOpen,Cr=ht.onRemove,Cn=ht.onInputChange,ri=ht.onInputPaste,Yi=ht.onInputKeyDown,yr=ht.onInputMouseDown,er=ht.onInputCompositionStart,Fr=ht.onInputCompositionEnd,Ur=$e.useRef(null),zr=(0,$e.useState)(0),Tr=(0,Ge.Z)(zr,2),Yr=Tr[0],Un=Tr[1],Ho=(0,$e.useState)(!1),Yn=(0,Ge.Z)(Ho,2),Ao=Yn[0],Qo=Yn[1],nr="".concat(fn,"-selection"),qo=Qn||sn==="multiple"&&wn===!1||sn==="tags"?Et:"",Go=sn==="tags"||sn==="multiple"&&wn===!1||In&&(Qn||Ao);tt(function(){Un(Ur.current.scrollWidth)},[qo]);function Lr(sa,va,Ma,hs,Ga){return $e.createElement("span",{className:lt()("".concat(nr,"-item"),(0,We.Z)({},"".concat(nr,"-item-disabled"),Ma)),title:Dt(sa)},$e.createElement("span",{className:"".concat(nr,"-item-content")},va),hs&&$e.createElement(se,{className:"".concat(nr,"-item-remove"),onMouseDown:_t,onClick:Ga,customizeIcon:Li},"\xD7"))}function br(sa,va,Ma,hs,Ga){var Lo=function(la){_t(la),Xr(!Qn)};return $e.createElement("span",{onMouseDown:Lo},Po({label:va,value:sa,disabled:Ma,closable:hs,onClose:Ga}))}function mo(sa){var va=sa.disabled,Ma=sa.label,hs=sa.value,Ga=!tn&&!va,Lo=Ma;if(typeof Zr=="number"&&(typeof Ma=="string"||typeof Ma=="number")){var po=String(Lo);po.length>Zr&&(Lo="".concat(po.slice(0,Zr),"..."))}var la=function(Na){Na&&Na.stopPropagation(),Cr(sa)};return typeof Po=="function"?br(hs,Lo,va,Ga,la):Lr(sa,Lo,va,Ga,la)}function Yo(sa){var va=typeof Tn=="function"?Tn(sa):Tn;return Lr({title:va},va,!1)}var Ki=$e.createElement("div",{className:"".concat(nr,"-search"),style:{width:Yr},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},$e.createElement(He,{ref:Kn,open:Qn,prefixCls:fn,id:en,inputElement:null,disabled:tn,autoFocus:Oi,autoComplete:Di,editable:Go,activeDescendantId:vi,value:qo,onKeyDown:Yi,onMouseDown:yr,onChange:Cn,onPaste:ri,onCompositionStart:er,onCompositionEnd:Fr,tabIndex:Ti,attrs:(0,je.Z)(ht,!0)}),$e.createElement("span",{ref:Ur,className:"".concat(nr,"-search-mirror"),"aria-hidden":!0},qo,"\xA0")),st=$e.createElement(Xe.Z,{prefixCls:"".concat(nr,"-overflow"),data:Rn,renderItem:mo,renderRest:Yo,suffix:Ki,itemKey:Ve,maxCount:sr});return $e.createElement($e.Fragment,null,st,!Rn.length&&!qo&&$e.createElement("span",{className:"".concat(nr,"-placeholder")},Ei))},yn=vn,zt=function(ht){var en=ht.inputElement,fn=ht.prefixCls,Rn=ht.id,Qn=ht.inputRef,Et=ht.disabled,wn=ht.autoFocus,Kn=ht.autoComplete,Ei=ht.activeDescendantId,tn=ht.mode,sn=ht.open,In=ht.values,Oi=ht.placeholder,Di=ht.tabIndex,vi=ht.showSearch,Ti=ht.searchValue,Li=ht.activeValue,sr=ht.maxLength,Zr=ht.onInputKeyDown,Vr=ht.onInputMouseDown,Tn=ht.onInputChange,Po=ht.onInputPaste,Xr=ht.onInputCompositionStart,Cr=ht.onInputCompositionEnd,Cn=ht.title,ri=$e.useState(!1),Yi=(0,Ge.Z)(ri,2),yr=Yi[0],er=Yi[1],Fr=tn==="combobox",Ur=Fr||vi,zr=In[0],Tr=Ti||"";Fr&&Li&&!yr&&(Tr=Li),$e.useEffect(function(){Fr&&er(!1)},[Fr,Li]);var Yr=tn!=="combobox"&&!sn&&!vi?!1:!!Tr,Un=Cn===void 0?Dt(zr):Cn,Ho=function(){if(zr)return null;var Ao=Yr?{visibility:"hidden"}:void 0;return $e.createElement("span",{className:"".concat(fn,"-selection-placeholder"),style:Ao},Oi)};return $e.createElement($e.Fragment,null,$e.createElement("span",{className:"".concat(fn,"-selection-search")},$e.createElement(He,{ref:Qn,prefixCls:fn,id:Rn,open:sn,inputElement:en,disabled:Et,autoFocus:wn,autoComplete:Kn,editable:Ur,activeDescendantId:Ei,value:Tr,onKeyDown:Zr,onMouseDown:Vr,onChange:function(Ao){er(!0),Tn(Ao)},onPaste:Po,onCompositionStart:Xr,onCompositionEnd:Cr,tabIndex:Di,attrs:(0,je.Z)(ht,!0),maxLength:Fr?sr:void 0})),!Fr&&zr?$e.createElement("span",{className:"".concat(fn,"-selection-item"),title:Un,style:Yr?{visibility:"hidden"}:void 0},zr.label):null,Ho())},qt=zt;function ln(At){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(At)}var Gn=function(ht,en){var fn=(0,$e.useRef)(null),Rn=(0,$e.useRef)(!1),Qn=ht.prefixCls,Et=ht.open,wn=ht.mode,Kn=ht.showSearch,Ei=ht.tokenWithEnter,tn=ht.autoClearSearchValue,sn=ht.onSearch,In=ht.onSearchSubmit,Oi=ht.onToggleOpen,Di=ht.onInputKeyDown,vi=ht.domRef;$e.useImperativeHandle(en,function(){return{focus:function(){fn.current.focus()},blur:function(){fn.current.blur()}}});var Ti=Le(0),Li=(0,Ge.Z)(Ti,2),sr=Li[0],Zr=Li[1],Vr=function(Tr){var Yr=Tr.which;(Yr===te.Z.UP||Yr===te.Z.DOWN)&&Tr.preventDefault(),Di&&Di(Tr),Yr===te.Z.ENTER&&wn==="tags"&&!Rn.current&&!Et&&(In==null||In(Tr.target.value)),ln(Yr)&&Oi(!0)},Tn=function(){Zr(!0)},Po=(0,$e.useRef)(null),Xr=function(Tr){sn(Tr,!0,Rn.current)!==!1&&Oi(!0)},Cr=function(){Rn.current=!0},Cn=function(Tr){Rn.current=!1,wn!=="combobox"&&Xr(Tr.target.value)},ri=function(Tr){var Yr=Tr.target.value;if(Ei&&Po.current&&/[\r\n]/.test(Po.current)){var Un=Po.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Yr=Yr.replace(Un,Po.current)}Po.current=null,Xr(Yr)},Yi=function(Tr){var Yr=Tr.clipboardData,Un=Yr.getData("text");Po.current=Un},yr=function(Tr){var Yr=Tr.target;if(Yr!==fn.current){var Un=document.body.style.msTouchAction!==void 0;Un?setTimeout(function(){fn.current.focus()}):fn.current.focus()}},er=function(Tr){var Yr=sr();Tr.target!==fn.current&&!Yr&&wn!=="combobox"&&Tr.preventDefault(),(wn!=="combobox"&&(!Kn||!Yr)||!Et)&&(Et&&tn!==!1&&sn("",!0,!1),Oi())},Fr={inputRef:fn,onInputKeyDown:Vr,onInputMouseDown:Tn,onInputChange:ri,onInputPaste:Yi,onInputCompositionStart:Cr,onInputCompositionEnd:Cn},Ur=wn==="multiple"||wn==="tags"?$e.createElement(yn,(0,le.Z)({},ht,Fr)):$e.createElement(qt,(0,le.Z)({},ht,Fr));return $e.createElement("div",{ref:vi,className:"".concat(Qn,"-selector"),onClick:yr,onMouseDown:er},Ur)},un=$e.forwardRef(Gn);un.displayName="Selector";var _n=un,St=pe(35593),Zn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ci=function(ht){var en=ht===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:en,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:en,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:en,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:en,adjustY:1},htmlRegion:"scroll"}}},Ze=function(ht,en){var fn=ht.prefixCls,Rn=ht.disabled,Qn=ht.visible,Et=ht.children,wn=ht.popupElement,Kn=ht.animation,Ei=ht.transitionName,tn=ht.dropdownStyle,sn=ht.dropdownClassName,In=ht.direction,Oi=In===void 0?"ltr":In,Di=ht.placement,vi=ht.builtinPlacements,Ti=ht.dropdownMatchSelectWidth,Li=ht.dropdownRender,sr=ht.dropdownAlign,Zr=ht.getPopupContainer,Vr=ht.empty,Tn=ht.getTriggerDOMNode,Po=ht.onPopupVisibleChange,Xr=ht.onPopupMouseEnter,Cr=(0,Ue.Z)(ht,Zn),Cn="".concat(fn,"-dropdown"),ri=wn;Li&&(ri=Li(wn));var Yi=$e.useMemo(function(){return vi||ci(Ti)},[vi,Ti]),yr=Kn?"".concat(Cn,"-").concat(Kn):Ei,er=typeof Ti=="number",Fr=$e.useMemo(function(){return er?null:Ti===!1?"minWidth":"width"},[Ti,er]),Ur=tn;er&&(Ur=(0,ut.Z)((0,ut.Z)({},Ur),{},{width:Ti}));var zr=$e.useRef(null);return $e.useImperativeHandle(en,function(){return{getPopupElement:function(){return zr.current}}}),$e.createElement(St.Z,(0,le.Z)({},Cr,{showAction:Po?["click"]:[],hideAction:Po?["click"]:[],popupPlacement:Di||(Oi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yi,prefixCls:Cn,popupTransitionName:yr,popup:$e.createElement("div",{ref:zr,onMouseEnter:Xr},ri),stretch:Fr,popupAlign:sr,popupVisible:Qn,getPopupContainer:Zr,popupClassName:lt()(sn,(0,We.Z)({},"".concat(Cn,"-empty"),Vr)),popupStyle:Ur,getTriggerDOMNode:Tn,onPopupVisibleChange:Po}),Et)},be=$e.forwardRef(Ze);be.displayName="SelectTrigger";var Pe=be,Ae=pe(4537);function Oe(At,ht){var en=At.key,fn;return"value"in At&&(fn=At.value),en!=null?en:fn!==void 0?fn:"rc-index-key-".concat(ht)}function xe(At,ht){var en=At||{},fn=en.label,Rn=en.value,Qn=en.options,Et=en.groupLabel,wn=fn||(ht?"children":"label");return{label:wn,value:Rn||"value",options:Qn||"options",groupLabel:Et||wn}}function ct(At){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},en=ht.fieldNames,fn=ht.childrenAsData,Rn=[],Qn=xe(en,!1),Et=Qn.label,wn=Qn.value,Kn=Qn.options,Ei=Qn.groupLabel;function tn(sn,In){sn.forEach(function(Oi){if(In||!(Kn in Oi)){var Di=Oi[wn];Rn.push({key:Oe(Oi,Rn.length),groupOption:In,data:Oi,label:Oi[Et],value:Di})}else{var vi=Oi[Ei];vi===void 0&&fn&&(vi=Oi.label),Rn.push({key:Oe(Oi,Rn.length),group:!0,data:Oi,label:vi}),tn(Oi[Kn],!0)}})}return tn(At,!1),Rn}function Mt(At){var ht=(0,ut.Z)({},At);return"props"in ht||Object.defineProperty(ht,"props",{get:function(){return(0,wt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ht}}),ht}function at(At,ht){if(!ht||!ht.length)return null;var en=!1;function fn(Qn,Et){var wn=(0,Ae.Z)(Et),Kn=wn[0],Ei=wn.slice(1);if(!Kn)return[Qn];var tn=Qn.split(Kn);return en=en||tn.length>1,tn.reduce(function(sn,In){return[].concat((0,ke.Z)(sn),(0,ke.Z)(fn(In,Ei)))},[]).filter(function(sn){return sn})}var Rn=fn(At,ht);return en?Rn:null}var qe=["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"],Lt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Bt(At){return At==="tags"||At==="multiple"}var ft=$e.forwardRef(function(At,ht){var en,fn,Rn=At.id,Qn=At.prefixCls,Et=At.className,wn=At.showSearch,Kn=At.tagRender,Ei=At.direction,tn=At.omitDomProps,sn=At.displayValues,In=At.onDisplayValuesChange,Oi=At.emptyOptions,Di=At.notFoundContent,vi=Di===void 0?"Not Found":Di,Ti=At.onClear,Li=At.mode,sr=At.disabled,Zr=At.loading,Vr=At.getInputElement,Tn=At.getRawInputElement,Po=At.open,Xr=At.defaultOpen,Cr=At.onDropdownVisibleChange,Cn=At.activeValue,ri=At.onActiveValueChange,Yi=At.activeDescendantId,yr=At.searchValue,er=At.autoClearSearchValue,Fr=At.onSearch,Ur=At.onSearchSplit,zr=At.tokenSeparators,Tr=At.allowClear,Yr=At.suffixIcon,Un=At.clearIcon,Ho=At.OptionList,Yn=At.animation,Ao=At.transitionName,Qo=At.dropdownStyle,nr=At.dropdownClassName,qo=At.dropdownMatchSelectWidth,Go=At.dropdownRender,Lr=At.dropdownAlign,br=At.placement,mo=At.builtinPlacements,Yo=At.getPopupContainer,Ki=At.showAction,st=Ki===void 0?[]:Ki,sa=At.onFocus,va=At.onBlur,Ma=At.onKeyUp,hs=At.onKeyDown,Ga=At.onMouseDown,Lo=(0,Ue.Z)(At,qe),po=Bt(Li),la=(wn!==void 0?wn:po)||Li==="combobox",Eo=(0,ut.Z)({},Lo);Lt.forEach(function(Fi){delete Eo[Fi]}),tn==null||tn.forEach(function(Fi){delete Eo[Fi]});var Na=$e.useState(!1),os=(0,Ge.Z)(Na,2),xo=os[0],Qr=os[1];$e.useEffect(function(){Qr((0,Ie.Z)())},[]);var pi=$e.useRef(null),io=$e.useRef(null),ro=$e.useRef(null),Ja=$e.useRef(null),Ca=$e.useRef(null),fa=Be(),$a=(0,Ge.Z)(fa,3),Qa=$a[0],Es=$a[1],ys=$a[2];$e.useImperativeHandle(ht,function(){var Fi,eo;return{focus:(Fi=Ja.current)===null||Fi===void 0?void 0:Fi.focus,blur:(eo=Ja.current)===null||eo===void 0?void 0:eo.blur,scrollTo:function(ma){var ya;return(ya=Ca.current)===null||ya===void 0?void 0:ya.scrollTo(ma)}}});var Zs=$e.useMemo(function(){var Fi;if(Li!=="combobox")return yr;var eo=(Fi=sn[0])===null||Fi===void 0?void 0:Fi.value;return typeof eo=="string"||typeof eo=="number"?String(eo):""},[yr,Li,sn]),Mn=Li==="combobox"&&typeof Vr=="function"&&Vr()||null,Ss=typeof Tn=="function"&&Tn(),ra=(0,ee.x1)(io,Ss==null||(en=Ss.props)===null||en===void 0?void 0:en.ref),hl=$e.useState(!1),Ol=(0,Ge.Z)(hl,2),ns=Ol[0],yu=Ol[1];(0,vt.Z)(function(){yu(!0)},[]);var eu=(0,Ct.Z)(!1,{defaultValue:Xr,value:Po}),ps=(0,Ge.Z)(eu,2),Ba=ps[0],tu=ps[1],Do=ns?Ba:!1,Ea=!vi&&Oi;(sr||Ea&&Do&&Li==="combobox")&&(Do=!1);var ca=Ea?!1:Do,hr=$e.useCallback(function(Fi){var eo=Fi!==void 0?Fi:!Do;sr||(tu(eo),Do!==eo&&(Cr==null||Cr(eo)))},[sr,Do,tu,Cr]),Rs=$e.useMemo(function(){return(zr||[]).some(function(Fi){return[` `,`\r `].includes(Fi)})},[zr]),ls=function(eo,Ko,ma){var ya=!0,bo=eo;ri==null||ri(null);var oa=ma?null:at(eo,zr);return Li!=="combobox"&&oa&&(bo="",Ur==null||Ur(oa),hr(!1),ya=!1),Fr&&Zs!==bo&&Fr(bo,{source:Ko?"typing":"effect"}),ya},sl=function(eo){!eo||!eo.trim()||Fr(eo,{source:"submit"})};$e.useEffect(function(){!Do&&!po&&Li!=="combobox"&&ls("",!1,!1)},[Do]),$e.useEffect(function(){Ba&&sr&&tu(!1),sr&&Es(!1)},[sr]);var jl=Le(),ou=(0,Ge.Z)(jl,2),Ji=ou[0],Cs=ou[1],Us=function(eo){var Ko=Ji(),ma=eo.which;if(ma===te.Z.ENTER&&(Li!=="combobox"&&eo.preventDefault(),Do||hr(!0)),Cs(!!Zs),ma===te.Z.BACKSPACE&&!Ko&&po&&!Zs&&sn.length){for(var ya=(0,ke.Z)(sn),bo=null,oa=ya.length-1;oa>=0;oa-=1){var Io=ya[oa];if(!Io.disabled){ya.splice(oa,1),bo=Io;break}}bo&&In(ya,{type:"remove",values:[bo]})}for(var Dr=arguments.length,Da=new Array(Dr>1?Dr-1:0),Ha=1;Ha1?Ko-1:0),ya=1;ya1?oa-1:0),Dr=1;Dr1&&arguments[1]!==void 0?arguments[1]:!1;return(0,kn.Z)(At).map(function(en,fn){if(!$e.isValidElement(en)||!en.type)return null;var Rn=en,Qn=Rn.type.isSelectOptGroup,Et=Rn.key,wn=Rn.props,Kn=wn.children,Ei=(0,Ue.Z)(wn,ei);return ht||!Qn?Pi(en):(0,ut.Z)((0,ut.Z)({key:"__RC_SELECT_GRP__".concat(Et===null?fn:Et,"__"),label:Et},Ei),{},{options:Hn(Kn)})}).filter(function(en){return en})}function bn(At,ht,en,fn,Rn){return $e.useMemo(function(){var Qn=At,Et=!At;Et&&(Qn=Hn(ht));var wn=new Map,Kn=new Map,Ei=function(In,Oi,Di){Di&&typeof Di=="string"&&In.set(Oi[Di],Oi)};function tn(sn){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oi=0;Oi1&&arguments[1]!==void 0?arguments[1]:1,Yo=ri.length,Ki=0;Ki1&&arguments[1]!==void 0?arguments[1]:!1;Yr(br);var Yo={source:mo?"keyboard":"mouse"},Ki=ri[br];if(!Ki){vi(null,-1,Yo);return}vi(Ki.value,br,Yo)};(0,$e.useEffect)(function(){Un(Ti!==!1?Fr(0):-1)},[ri.length,Ei]);var Ho=$e.useCallback(function(Lr){return Zr.has(Lr)&&Kn!=="combobox"},[Kn,(0,ke.Z)(Zr).toString(),Zr.size]);(0,$e.useEffect)(function(){var Lr=setTimeout(function(){if(!wn&&Et&&Zr.size===1){var mo=Array.from(Zr)[0],Yo=ri.findIndex(function(Ki){var st=Ki.data;return st.value===mo});Yo!==-1&&(Un(Yo),er(Yo))}});if(Et){var br;(br=Yi.current)===null||br===void 0||br.scrollTo(void 0)}return function(){return clearTimeout(Lr)}},[Et,Ei,Di.length]);var Yn=function(br){br!==void 0&&Li(br,{selected:!Zr.has(br)}),wn||tn(!1)};if($e.useImperativeHandle(en,function(){return{onKeyDown:function(br){var mo=br.which,Yo=br.ctrlKey;switch(mo){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var Ki=0;if(mo===te.Z.UP?Ki=-1:mo===te.Z.DOWN?Ki=1:Kr()&&Yo&&(mo===te.Z.N?Ki=1:mo===te.Z.P&&(Ki=-1)),Ki!==0){var st=Fr(Tr+Ki,Ki);er(st),Un(st,!0)}break}case te.Z.ENTER:{var sa=ri[Tr];sa&&!sa.data.disabled?Yn(sa.value):Yn(void 0),Et&&br.preventDefault();break}case te.Z.ESC:tn(!1),Et&&br.stopPropagation()}},onKeyUp:function(){},scrollTo:function(br){er(br)}}}),ri.length===0)return $e.createElement("div",{role:"listbox",id:"".concat(Qn,"_list"),className:"".concat(Cn,"-empty"),onMouseDown:yr},sn);var Ao=Object.keys(Vr).map(function(Lr){return Vr[Lr]}),Qo=function(br){return br.label};function nr(Lr,br){var mo=Lr.group;return{role:mo?"presentation":"option",id:"".concat(Qn,"_list_").concat(br)}}var qo=function(br){var mo=ri[br];if(!mo)return null;var Yo=mo.data||{},Ki=Yo.value,st=mo.group,sa=(0,je.Z)(Yo,!0),va=Qo(mo);return mo?$e.createElement("div",(0,le.Z)({"aria-label":typeof va=="string"&&!st?va:null},sa,{key:br},nr(mo,br),{"aria-selected":Ho(Ki)}),Ki):null},Go={role:"listbox",id:"".concat(Qn,"_list")};return $e.createElement($e.Fragment,null,Tn&&$e.createElement("div",(0,le.Z)({},Go,{style:{height:0,width:0,overflow:"hidden"}}),qo(Tr-1),qo(Tr),qo(Tr+1)),$e.createElement(xi.Z,{itemKey:"key",ref:Yi,data:ri,height:Xr,itemHeight:Cr,fullHeight:!1,onMouseDown:yr,onScroll:In,virtual:Tn,direction:Po,innerProps:Tn?null:Go},function(Lr,br){var mo,Yo=Lr.group,Ki=Lr.groupOption,st=Lr.data,sa=Lr.label,va=Lr.value,Ma=st.key;if(Yo){var hs,Ga=(hs=st.title)!==null&&hs!==void 0?hs:Ne(sa)?sa.toString():void 0;return $e.createElement("div",{className:lt()(Cn,"".concat(Cn,"-group")),title:Ga},sa!==void 0?sa:Ma)}var Lo=st.disabled,po=st.title,la=st.children,Eo=st.style,Na=st.className,os=(0,Ue.Z)(st,Sr),xo=(0,di.Z)(os,Ao),Qr=Ho(va),pi="".concat(Cn,"-option"),io=lt()(Cn,pi,Na,(mo={},(0,We.Z)(mo,"".concat(pi,"-grouped"),Ki),(0,We.Z)(mo,"".concat(pi,"-active"),Tr===br&&!Lo),(0,We.Z)(mo,"".concat(pi,"-disabled"),Lo),(0,We.Z)(mo,"".concat(pi,"-selected"),Qr),mo)),ro=Qo(Lr),Ja=!sr||typeof sr=="function"||Qr,Ca=typeof ro=="number"?ro:ro||va,fa=Ne(Ca)?Ca.toString():void 0;return po!==void 0&&(fa=po),$e.createElement("div",(0,le.Z)({},(0,je.Z)(xo),Tn?{}:nr(Lr,br),{"aria-selected":Qr,className:io,title:fa,onMouseMove:function(){Tr===br||Lo||Un(br)},onClick:function(){Lo||Yn(va)},style:Eo}),$e.createElement("div",{className:"".concat(pi,"-content")},Ca),$e.isValidElement(sr)||Qr,Ja&&$e.createElement(se,{className:"".concat(Cn,"-option-state"),customizeIcon:sr,customizeIconProps:{isSelected:Qr}},Qr?"\u2713":null))}))},wr=$e.forwardRef(Ci);wr.displayName="OptionList";var Pn=wr;function Si(At){var ht=At.mode,en=At.options,fn=At.children,Rn=At.backfill,Qn=At.allowClear,Et=At.placeholder,wn=At.getInputElement,Kn=At.showSearch,Ei=At.onSearch,tn=At.defaultOpen,sn=At.autoFocus,In=At.labelInValue,Oi=At.value,Di=At.inputValue,vi=At.optionLabelProp,Ti=isMultiple(ht),Li=Kn!==void 0?Kn:Ti||ht==="combobox",sr=en||convertChildrenToData(fn);if(warning(ht!=="tags"||sr.every(function(Po){return!Po.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ht==="tags"||ht==="combobox"){var Zr=sr.some(function(Po){return Po.options?Po.options.some(function(Xr){return typeof("value"in Xr?Xr.value:Xr.key)=="number"}):typeof("value"in Po?Po.value:Po.key)=="number"});warning(!Zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ht!=="combobox"||!vi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ht==="combobox"||!Rn,"`backfill` only works with `combobox` mode."),warning(ht==="combobox"||!wn,"`getInputElement` only work with `combobox` mode."),noteOnce(ht!=="combobox"||!wn||!Qn||!Et,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ei&&!Li&&ht!=="combobox"&&ht!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!tn||sn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oi!=null){var Vr=toArray(Oi);warning(!In||Vr.every(function(Po){return _typeof(Po)==="object"&&("key"in Po||"value"in Po)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ti||Array.isArray(Oi),"`value` should be array when `mode` is `multiple` or `tags`")}if(fn){var Tn=null;toNodeArray(fn).some(function(Po){if(!React.isValidElement(Po)||!Po.type)return!1;var Xr=Po,Cr=Xr.type;if(Cr.isSelectOption)return!1;if(Cr.isSelectOptGroup){var Cn=toNodeArray(Po.props.children).every(function(ri){return!React.isValidElement(ri)||!Po.type||ri.type.isSelectOption?!0:(Tn=ri.type,!1)});return!Cn}return Tn=Cr,!0}),Tn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Tn.displayName||Tn.name||Tn,"`.")),warning(Di===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Wi(At,ht){if(At){var en=function fn(Rn){for(var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=0;Et2&&arguments[2]!==void 0?arguments[2]:{},hr=ca.source,Rs=hr===void 0?"keyboard":hr;ra(Ea),Et&&fn==="combobox"&&Do!==null&&Rs==="keyboard"&&ys(String(Do))},[Et,fn]),ns=function(Ea,ca,hr){var Rs=function(){var Kl,Oo=Na(Ea);return[Tr?{label:Oo==null?void 0:Oo[nr.label],value:Ea,key:(Kl=Oo==null?void 0:Oo.key)!==null&&Kl!==void 0?Kl:Ea}:Ea,Mt(Oo)]};if(ca&&Oi){var ls=Rs(),sl=(0,Ge.Z)(ls,2),jl=sl[0],ou=sl[1];Oi(jl,ou)}else if(!ca&&Di&&hr!=="clear"){var Ji=Rs(),Cs=(0,Ge.Z)(Ji,2),Us=Cs[0],$l=Cs[1];Di(Us,$l)}},yu=wi(function(Do,Ea){var ca,hr=Yn?Ea.selected:!0;hr?ca=Yn?[].concat((0,ke.Z)(Eo),[Do]):[Do]:ca=Eo.filter(function(Rs){return Rs.value!==Do}),fa(ca),ns(Do,hr),fn==="combobox"?ys(""):(!Bt||In)&&(br(""),ys(""))}),eu=function(Ea,ca){fa(Ea);var hr=ca.type,Rs=ca.values;(hr==="remove"||hr==="clear")&&Rs.forEach(function(ls){ns(ls.value,!1,hr)})},ps=function(Ea,ca){if(br(Ea),ys(null),ca.source==="submit"){var hr=(Ea||"").trim();if(hr){var Rs=Array.from(new Set([].concat((0,ke.Z)(xo),[hr])));fa(Rs),ns(hr,!0),br("")}return}ca.source!=="blur"&&(fn==="combobox"&&fa(Ea),tn==null||tn(Ea))},Ba=function(Ea){var ca=Ea;fn!=="tags"&&(ca=Ea.map(function(Rs){var ls=Ki.get(Rs);return ls==null?void 0:ls.value}).filter(function(Rs){return Rs!==void 0}));var hr=Array.from(new Set([].concat((0,ke.Z)(xo),(0,ke.Z)(ca))));fa(hr),hr.forEach(function(Rs){ns(Rs,!0)})},tu=$e.useMemo(function(){var Do=Cn!==!1&&Ti!==!1;return(0,ut.Z)((0,ut.Z)({},mo),{},{flattenOptions:Ca,onActiveValue:Ol,defaultActiveFirstOption:hl,onSelect:yu,menuItemSelectedIcon:Cr,rawValues:xo,fieldNames:nr,virtual:Do,direction:ri,listHeight:yr,listItemHeight:Fr,childrenAsData:Ao})},[mo,Ca,Ol,hl,yu,Cr,xo,nr,Cn,Ti,yr,Fr,Ao]);return $e.createElement(Ri.Provider,{value:tu},$e.createElement(Gt,(0,le.Z)({},Un,{id:Ho,prefixCls:Qn,ref:ht,omitDomProps:qn,mode:fn,displayValues:os,onDisplayValuesChange:eu,direction:ri,searchValue:Lr,onSearch:ps,autoClearSearchValue:In,onSearchSplit:Ba,dropdownMatchSelectWidth:Ti,OptionList:Pn,emptyOptions:!Ca.length,activeValue:Es,activeDescendantId:"".concat(Ho,"_list_").concat(Ss)})))}),Qe=$t;Qe.Option=_r,Qe.OptGroup=Hi;var on=Qe,cn=on},9296:function(On,pn,pe){"use strict";pe.r(pn),pe.d(pn,{ResizableTextArea:function(){return dt},default:function(){return Ot}});var le=pe(96663),ke=pe(44127),We=pe(90493),ut=pe(20135),Ge=pe(72071),Ue=pe(6620),Me=pe(19127),Ct=pe(92310),wt=pe.n(Ct),$e=pe(93681),Ft=pe(5643),lt=pe(18929),vt=pe(59301),Ie=pe(29301),te=pe(34280),ee=pe(16089),de=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,se=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],he={},ve;function Ee(Wt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=Wt.getAttribute("id")||Wt.getAttribute("data-reactid")||Wt.getAttribute("name");if(Dt&&he[tt])return he[tt];var Ve=window.getComputedStyle(Wt),_t=Ve.getPropertyValue("box-sizing")||Ve.getPropertyValue("-moz-box-sizing")||Ve.getPropertyValue("-webkit-box-sizing"),vn=parseFloat(Ve.getPropertyValue("padding-bottom"))+parseFloat(Ve.getPropertyValue("padding-top")),yn=parseFloat(Ve.getPropertyValue("border-bottom-width"))+parseFloat(Ve.getPropertyValue("border-top-width")),zt=se.map(function(ln){return"".concat(ln,":").concat(Ve.getPropertyValue(ln))}).join(";"),qt={sizingStyle:zt,paddingSize:vn,borderSize:yn,boxSizing:_t};return Dt&&tt&&(he[tt]=qt),qt}function Be(Wt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),Wt.getAttribute("wrap")?ve.setAttribute("wrap",Wt.getAttribute("wrap")):ve.removeAttribute("wrap");var _t=Ee(Wt,Dt),vn=_t.paddingSize,yn=_t.borderSize,zt=_t.boxSizing,qt=_t.sizingStyle;ve.setAttribute("style","".concat(qt,";").concat(de)),ve.value=Wt.value||Wt.placeholder||"";var ln=void 0,Gn=void 0,un,_n=ve.scrollHeight;if(zt==="border-box"?_n+=yn:zt==="content-box"&&(_n-=vn),tt!==null||Ve!==null){ve.value=" ";var St=ve.scrollHeight-vn;tt!==null&&(ln=St*tt,zt==="border-box"&&(ln=ln+vn+yn),_n=Math.max(ln,_n)),Ve!==null&&(Gn=St*Ve,zt==="border-box"&&(Gn=Gn+vn+yn),un=_n>Gn?"":"hidden",_n=Math.min(Gn,_n))}var Zn={height:_n,overflowY:un,resize:"none"};return ln&&(Zn.minHeight=ln),Gn&&(Zn.maxHeight=Gn),Zn}var Le=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ze=0,je=1,Xe=2,Ye=vt.forwardRef(function(Wt,Dt){var tt=Wt,Ve=tt.prefixCls,_t=tt.onPressEnter,vn=tt.defaultValue,yn=tt.value,zt=tt.autoSize,qt=tt.onResize,ln=tt.className,Gn=tt.style,un=tt.disabled,_n=tt.onChange,St=tt.onInternalAutoSize,Zn=(0,Ue.Z)(tt,Le),ci=(0,lt.Z)(vn,{value:yn,postState:function(Hi){return Hi!=null?Hi:""}}),Ze=(0,Ge.Z)(ci,2),be=Ze[0],Pe=Ze[1],Ae=function(Hi){Pe(Hi.target.value),_n==null||_n(Hi)},Oe=vt.useRef();vt.useImperativeHandle(Dt,function(){return{textArea:Oe.current}});var xe=vt.useMemo(function(){return zt&&(0,ut.Z)(zt)==="object"?[zt.minRows,zt.maxRows]:[]},[zt]),ct=(0,Ge.Z)(xe,2),Mt=ct[0],at=ct[1],qe=!!zt,Lt=function(){try{if(document.activeElement===Oe.current){var Hi=Oe.current,rr=Hi.selectionStart,_r=Hi.selectionEnd,gi=Hi.scrollTop;Oe.current.setSelectionRange(rr,_r),Oe.current.scrollTop=gi}}catch(di){}},Bt=vt.useState(Xe),ft=(0,Ge.Z)(Bt,2),Gt=ft[0],Sn=ft[1],an=vt.useState(),rn=(0,Ge.Z)(an,2),zn=rn[0],kn=rn[1],mn=function(){Sn(ze)};(0,te.Z)(function(){qe&&mn()},[yn,Mt,at,qe]),(0,te.Z)(function(){if(Gt===ze)Sn(je);else if(Gt===je){var Zi=Be(Oe.current,!1,Mt,at);Sn(Xe),kn(Zi)}else Lt()},[Gt]);var ei=vt.useRef(),Pi=function(){ee.Z.cancel(ei.current)},Hn=function(Hi){Gt===Xe&&(qt==null||qt(Hi),zt&&(Pi(),ei.current=(0,ee.Z)(function(){mn()})))};vt.useEffect(function(){return Pi},[]);var bn=qe?zn:null,wi=(0,ke.Z)((0,ke.Z)({},Gn),bn);return(Gt===ze||Gt===je)&&(wi.overflowY="hidden",wi.overflowX="hidden"),vt.createElement(Ie.Z,{onResize:Hn,disabled:!(zt||qt)},vt.createElement("textarea",(0,le.Z)({},Zn,{ref:Oe,style:wi,className:wt()(Ve,ln,(0,We.Z)({},"".concat(Ve,"-disabled"),un)),disabled:un,value:be,onChange:Ae})))}),dt=Ye,He=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Nt(Wt,Dt){return(0,Me.Z)(Wt||"").slice(0,Dt).join("")}function ot(Wt,Dt,tt,Ve){var _t=tt;return Wt?_t=Nt(tt,Ve):(0,Me.Z)(Dt||"").lengthVe&&(_t=Dt),_t}var Tt=vt.forwardRef(function(Wt,Dt){var tt,Ve=Wt.defaultValue,_t=Wt.value,vn=Wt.onFocus,yn=Wt.onBlur,zt=Wt.onChange,qt=Wt.allowClear,ln=Wt.maxLength,Gn=Wt.onCompositionStart,un=Wt.onCompositionEnd,_n=Wt.suffix,St=Wt.prefixCls,Zn=St===void 0?"rc-textarea":St,ci=Wt.classes,Ze=Wt.showCount,be=Wt.className,Pe=Wt.style,Ae=Wt.disabled,Oe=Wt.hidden,xe=Wt.classNames,ct=Wt.styles,Mt=Wt.onResize,at=(0,Ue.Z)(Wt,He),qe=(0,lt.Z)(Ve,{value:_t,defaultValue:Ve}),Lt=(0,Ge.Z)(qe,2),Bt=Lt[0],ft=Lt[1],Gt=(0,vt.useRef)(null),Sn=vt.useState(!1),an=(0,Ge.Z)(Sn,2),rn=an[0],zn=an[1],kn=vt.useState(!1),mn=(0,Ge.Z)(kn,2),ei=mn[0],Pi=mn[1],Hn=vt.useRef(),bn=vt.useRef(0),wi=vt.useState(null),Zi=(0,Ge.Z)(wi,2),Hi=Zi[0],rr=Zi[1],_r=function(){var Zt;(Zt=Gt.current)===null||Zt===void 0||Zt.textArea.focus()};(0,vt.useImperativeHandle)(Dt,function(){return{resizableTextArea:Gt.current,focus:_r,blur:function(){var Zt;(Zt=Gt.current)===null||Zt===void 0||Zt.textArea.blur()}}}),(0,vt.useEffect)(function(){zn(function(qn){return!Ae&&qn})},[Ae]);var gi=Number(ln)>0,di=function(Zt){Pi(!0),Hn.current=Bt,bn.current=Zt.currentTarget.selectionStart,Gn==null||Gn(Zt)},xi=function(Zt){Pi(!1);var $t=Zt.currentTarget.value;if(gi){var Qe,on=bn.current>=ln+1||bn.current===((Qe=Hn.current)===null||Qe===void 0?void 0:Qe.length);$t=ot(on,Hn.current,$t,ln)}$t!==Bt&&(ft($t),(0,Ft.rJ)(Zt.currentTarget,Zt,zt,$t)),un==null||un(Zt)},$i=function(Zt){var $t=Zt.target.value;if(!ei&&gi){var Qe=Zt.target.selectionStart>=ln+1||Zt.target.selectionStart===$t.length||!Zt.target.selectionStart;$t=ot(Qe,Bt,$t,ln)}ft($t),(0,Ft.rJ)(Zt.currentTarget,Zt,zt,$t)},Ri=function(Zt){var $t=at.onPressEnter,Qe=at.onKeyDown;Zt.key==="Enter"&&$t&&$t(Zt),Qe==null||Qe(Zt)},Kr=function(Zt){zn(!0),vn==null||vn(Zt)},Sr=function(Zt){zn(!1),yn==null||yn(Zt)},Ne=function(Zt){var $t;ft(""),_r(),(0,Ft.rJ)(($t=Gt.current)===null||$t===void 0?void 0:$t.textArea,Zt,zt)},Ci=(0,Ft.D7)(Bt);!ei&&gi&&_t==null&&(Ci=Nt(Ci,ln));var wr=_n,Pn;if(Ze){var Si=(0,Me.Z)(Ci).length;(0,ut.Z)(Ze)==="object"?Pn=Ze.formatter({value:Ci,count:Si,maxLength:ln}):Pn="".concat(Si).concat(gi?" / ".concat(ln):""),wr=vt.createElement(vt.Fragment,null,wr,vt.createElement("span",{className:wt()("".concat(Zn,"-data-count"),xe==null?void 0:xe.count),style:ct==null?void 0:ct.count},Pn))}var Wi=function(Zt){var $t;Mt==null||Mt(Zt),($t=Gt.current)!==null&&$t!==void 0&&$t.textArea.style.height&&rr(!0)},qi=!at.autoSize&&!Ze&&!qt,$n=vt.createElement($e.BaseInput,{value:Ci,allowClear:qt,handleReset:Ne,suffix:wr,prefixCls:Zn,classes:{affixWrapper:wt()(ci==null?void 0:ci.affixWrapper,(tt={},(0,We.Z)(tt,"".concat(Zn,"-show-count"),Ze),(0,We.Z)(tt,"".concat(Zn,"-textarea-allow-clear"),qt),tt))},disabled:Ae,focused:rn,className:be,style:(0,ke.Z)((0,ke.Z)({},Pe),Hi&&!qi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pn=="string"?Pn:void 0}},hidden:Oe,inputElement:vt.createElement(dt,(0,le.Z)({},at,{onKeyDown:Ri,onChange:$i,onFocus:Kr,onBlur:Sr,onCompositionStart:di,onCompositionEnd:xi,className:xe==null?void 0:xe.textarea,style:(0,ke.Z)((0,ke.Z)({},ct==null?void 0:ct.textarea),{},{resize:Pe==null?void 0:Pe.resize}),disabled:Ae,prefixCls:Zn,onResize:Wi,ref:Gt}))});return $n}),xt=Tt,Ot=xt},39417:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return je}});var le=pe(96663),ke=pe(90493),We=pe(6620),ut=pe(44127),Ge=pe(52884),Ue=pe(95727),Me=pe(89866),Ct=pe(65711),wt=pe(85745),$e=pe(92310),Ft=pe.n($e),lt=pe(26112),vt=pe(59301),Ie=pe(39378),te=function(Ye){for(var dt=Ye.prefixCls,He=Ye.level,Nt=Ye.isStart,ot=Ye.isEnd,Tt="".concat(dt,"-indent-unit"),xt=[],Ot=0;Ot0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=Pe.length,xe=Ae.length;if(Math.abs(Oe-xe)!==1)return{add:!1,key:null};function ct(Mt,at){var qe=new Map;Mt.forEach(function(Bt){qe.set(Bt,!0)});var Lt=at.filter(function(Bt){return!qe.has(Bt)});return Lt.length===1?Lt[0]:null}return Oe ").concat(Ae);return Ae}var ln=ee.forwardRef(function(Pe,Ae){var Oe=Pe.prefixCls,xe=Pe.data,ct=Pe.selectable,Mt=Pe.checkable,at=Pe.expandedKeys,qe=Pe.selectedKeys,Lt=Pe.checkedKeys,Bt=Pe.loadedKeys,ft=Pe.loadingKeys,Gt=Pe.halfCheckedKeys,Sn=Pe.keyEntities,an=Pe.disabled,rn=Pe.dragging,zn=Pe.dragOverNodeKey,kn=Pe.dropPosition,mn=Pe.motion,ei=Pe.height,Pi=Pe.itemHeight,Hn=Pe.virtual,bn=Pe.focusable,wi=Pe.activeItem,Zi=Pe.focused,Hi=Pe.tabIndex,rr=Pe.onKeyDown,_r=Pe.onFocus,gi=Pe.onBlur,di=Pe.onActiveChange,xi=Pe.onListChangeStart,$i=Pe.onListChangeEnd,Ri=(0,Ee.Z)(Pe,Ot),Kr=ee.useRef(null),Sr=ee.useRef(null);ee.useImperativeHandle(Ae,function(){return{scrollTo:function(sn){Kr.current.scrollTo(sn)},getIndentWidth:function(){return Sr.current.offsetWidth}}});var Ne=ee.useState(at),Ci=(0,ve.Z)(Ne,2),wr=Ci[0],Pn=Ci[1],Si=ee.useState(xe),Wi=(0,ve.Z)(Si,2),qi=Wi[0],$n=Wi[1],qn=ee.useState(xe),Zt=(0,ve.Z)(qn,2),$t=Zt[0],Qe=Zt[1],on=ee.useState([]),cn=(0,ve.Z)(on,2),At=cn[0],ht=cn[1],en=ee.useState(null),fn=(0,ve.Z)(en,2),Rn=fn[0],Qn=fn[1],Et=ee.useRef(xe);Et.current=xe;function wn(){var tn=Et.current;$n(tn),Qe(tn),ht([]),Qn(null),$i()}(0,Be.Z)(function(){Pn(at);var tn=Tt(wr,at);if(tn.key!==null)if(tn.add){var sn=qi.findIndex(function(Li){var sr=Li.key;return sr===tn.key}),In=yn(xt(qi,xe,tn.key),Hn,ei,Pi),Oi=qi.slice();Oi.splice(sn+1,0,vn),Qe(Oi),ht(In),Qn("show")}else{var Di=xe.findIndex(function(Li){var sr=Li.key;return sr===tn.key}),vi=yn(xt(xe,qi,tn.key),Hn,ei,Pi),Ti=xe.slice();Ti.splice(Di+1,0,vn),Qe(Ti),ht(vi),Qn("hide")}else qi!==xe&&($n(xe),Qe(xe))},[at,xe]),ee.useEffect(function(){rn||wn()},[rn]);var Kn=mn?$t:xe,Ei={expandedKeys:at,selectedKeys:qe,loadedKeys:Bt,loadingKeys:ft,checkedKeys:Lt,halfCheckedKeys:Gt,dragOverNodeKey:zn,dropPosition:kn,keyEntities:Sn};return ee.createElement(ee.Fragment,null,Zi&&wi&&ee.createElement("span",{style:Wt,"aria-live":"assertive"},qt(wi)),ee.createElement("div",null,ee.createElement("input",{style:Wt,disabled:bn===!1||an,tabIndex:bn!==!1?Hi:null,onKeyDown:rr,onFocus:_r,onBlur:gi,value:"",onChange:Dt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Oe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Oe,"-indent")},ee.createElement("div",{ref:Sr,className:"".concat(Oe,"-indent-unit")}))),ee.createElement(Le.Z,(0,le.Z)({},Ri,{data:Kn,itemKey:zt,height:ei,fullHeight:!1,virtual:Hn,itemHeight:Pi,prefixCls:"".concat(Oe,"-list"),ref:Kr,onVisibleChange:function(sn,In){var Oi=new Set(sn),Di=In.filter(function(vi){return!Oi.has(vi)});Di.some(function(vi){return zt(vi)===tt})&&wn()}}),function(tn){var sn=tn.pos,In=(0,le.Z)({},(he(tn.data),tn.data)),Oi=tn.title,Di=tn.key,vi=tn.isStart,Ti=tn.isEnd,Li=(0,Ye.km)(Di,sn);delete In.key,delete In.children;var sr=(0,Ye.H8)(Li,Ei);return ee.createElement(ot,(0,le.Z)({},In,sr,{title:Oi,active:!!wi&&Di===wi.key,pos:sn,data:tn.data,isStart:vi,isEnd:Ti,motion:mn,motionNodes:Di===tt?At:null,motionType:Rn,onMotionStart:xi,onMotionEnd:wn,treeNodeRequiredProps:Ei,onMouseMove:function(){di(null)}}))}))});ln.displayName="NodeList";var Gn=ln,un=pe(35654),_n=pe(90782),St=pe(67841),Zn=10,ci=function(Pe){(0,wt.Z)(Oe,Pe);var Ae=(0,$e.Z)(Oe);function Oe(){var xe;(0,Ue.Z)(this,Oe);for(var ct=arguments.length,Mt=new Array(ct),at=0;at2&&arguments[2]!==void 0?arguments[2]:!1,Gt=xe.state,Sn=Gt.dragChildrenKeys,an=Gt.dropPosition,rn=Gt.dropTargetKey,zn=Gt.dropTargetPos,kn=Gt.dropAllowed;if(kn){var mn=xe.props.onDrop;if(xe.setState({dragOverNodeKey:null}),xe.cleanDragState(),rn!==null){var ei=(0,ut.Z)((0,ut.Z)({},(0,Ye.H8)(rn,xe.getTreeNodeRequiredProps())),{},{active:((Bt=xe.getActiveItem())===null||Bt===void 0?void 0:Bt.key)===rn,data:(0,St.Z)(xe.state.keyEntities,rn).node}),Pi=Sn.indexOf(rn)!==-1;(0,te.ZP)(!Pi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Hn=(0,un.yx)(zn),bn={event:qe,node:(0,Ye.F)(ei),dragNode:xe.dragNode?(0,Ye.F)(xe.dragNode.props):null,dragNodesKeys:[xe.dragNode.props.eventKey].concat(Sn),dropToGap:an!==0,dropPosition:an+Number(Hn[Hn.length-1])};ft||mn==null||mn(bn),xe.dragNode=null}}},xe.cleanDragState=function(){var qe=xe.state.draggingNodeKey;qe!==null&&xe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),xe.dragStartMousePosition=null,xe.currentMouseOverDroppableNodeKey=null},xe.triggerExpandActionExpand=function(qe,Lt){var Bt=xe.state,ft=Bt.expandedKeys,Gt=Bt.flattenNodes,Sn=Lt.expanded,an=Lt.key,rn=Lt.isLeaf;if(!(rn||qe.shiftKey||qe.metaKey||qe.ctrlKey)){var zn=Gt.filter(function(mn){return mn.key===an})[0],kn=(0,Ye.F)((0,ut.Z)((0,ut.Z)({},(0,Ye.H8)(an,xe.getTreeNodeRequiredProps())),{},{data:zn.data}));xe.setExpandedKeys(Sn?(0,un._5)(ft,an):(0,un.L0)(ft,an)),xe.onNodeExpand(qe,kn)}},xe.onNodeClick=function(qe,Lt){var Bt=xe.props,ft=Bt.onClick,Gt=Bt.expandAction;Gt==="click"&&xe.triggerExpandActionExpand(qe,Lt),ft==null||ft(qe,Lt)},xe.onNodeDoubleClick=function(qe,Lt){var Bt=xe.props,ft=Bt.onDoubleClick,Gt=Bt.expandAction;Gt==="doubleClick"&&xe.triggerExpandActionExpand(qe,Lt),ft==null||ft(qe,Lt)},xe.onNodeSelect=function(qe,Lt){var Bt=xe.state.selectedKeys,ft=xe.state,Gt=ft.keyEntities,Sn=ft.fieldNames,an=xe.props,rn=an.onSelect,zn=an.multiple,kn=Lt.selected,mn=Lt[Sn.key],ei=!kn;ei?zn?Bt=(0,un.L0)(Bt,mn):Bt=[mn]:Bt=(0,un._5)(Bt,mn);var Pi=Bt.map(function(Hn){var bn=(0,St.Z)(Gt,Hn);return bn?bn.node:null}).filter(function(Hn){return Hn});xe.setUncontrolledState({selectedKeys:Bt}),rn==null||rn(Bt,{event:"select",selected:ei,node:Lt,selectedNodes:Pi,nativeEvent:qe.nativeEvent})},xe.onNodeCheck=function(qe,Lt,Bt){var ft=xe.state,Gt=ft.keyEntities,Sn=ft.checkedKeys,an=ft.halfCheckedKeys,rn=xe.props,zn=rn.checkStrictly,kn=rn.onCheck,mn=Lt.key,ei,Pi={event:"check",node:Lt,checked:Bt,nativeEvent:qe.nativeEvent};if(zn){var Hn=Bt?(0,un.L0)(Sn,mn):(0,un._5)(Sn,mn),bn=(0,un._5)(an,mn);ei={checked:Hn,halfChecked:bn},Pi.checkedNodes=Hn.map(function(gi){return(0,St.Z)(Gt,gi)}).filter(function(gi){return gi}).map(function(gi){return gi.node}),xe.setUncontrolledState({checkedKeys:Hn})}else{var wi=(0,_n.S)([].concat((0,Ge.Z)(Sn),[mn]),!0,Gt),Zi=wi.checkedKeys,Hi=wi.halfCheckedKeys;if(!Bt){var rr=new Set(Zi);rr.delete(mn);var _r=(0,_n.S)(Array.from(rr),{checked:!1,halfCheckedKeys:Hi},Gt);Zi=_r.checkedKeys,Hi=_r.halfCheckedKeys}ei=Zi,Pi.checkedNodes=[],Pi.checkedNodesPositions=[],Pi.halfCheckedKeys=Hi,Zi.forEach(function(gi){var di=(0,St.Z)(Gt,gi);if(di){var xi=di.node,$i=di.pos;Pi.checkedNodes.push(xi),Pi.checkedNodesPositions.push({node:xi,pos:$i})}}),xe.setUncontrolledState({checkedKeys:Zi},!1,{halfCheckedKeys:Hi})}kn==null||kn(ei,Pi)},xe.onNodeLoad=function(qe){var Lt=qe.key,Bt=new Promise(function(ft,Gt){xe.setState(function(Sn){var an=Sn.loadedKeys,rn=an===void 0?[]:an,zn=Sn.loadingKeys,kn=zn===void 0?[]:zn,mn=xe.props,ei=mn.loadData,Pi=mn.onLoad;if(!ei||rn.indexOf(Lt)!==-1||kn.indexOf(Lt)!==-1)return null;var Hn=ei(qe);return Hn.then(function(){var bn=xe.state.loadedKeys,wi=(0,un.L0)(bn,Lt);Pi==null||Pi(wi,{event:"load",node:qe}),xe.setUncontrolledState({loadedKeys:wi}),xe.setState(function(Zi){return{loadingKeys:(0,un._5)(Zi.loadingKeys,Lt)}}),ft()}).catch(function(bn){if(xe.setState(function(Zi){return{loadingKeys:(0,un._5)(Zi.loadingKeys,Lt)}}),xe.loadingRetryTimes[Lt]=(xe.loadingRetryTimes[Lt]||0)+1,xe.loadingRetryTimes[Lt]>=Zn){var wi=xe.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),xe.setUncontrolledState({loadedKeys:(0,un.L0)(wi,Lt)}),ft()}Gt(bn)}),{loadingKeys:(0,un.L0)(kn,Lt)}})});return Bt.catch(function(){}),Bt},xe.onNodeMouseEnter=function(qe,Lt){var Bt=xe.props.onMouseEnter;Bt==null||Bt({event:qe,node:Lt})},xe.onNodeMouseLeave=function(qe,Lt){var Bt=xe.props.onMouseLeave;Bt==null||Bt({event:qe,node:Lt})},xe.onNodeContextMenu=function(qe,Lt){var Bt=xe.props.onRightClick;Bt&&(qe.preventDefault(),Bt({event:qe,node:Lt}))},xe.onFocus=function(){var qe=xe.props.onFocus;xe.setState({focused:!0});for(var Lt=arguments.length,Bt=new Array(Lt),ft=0;ft1&&arguments[1]!==void 0?arguments[1]:!1,Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!xe.destroyed){var ft=!1,Gt=!0,Sn={};Object.keys(qe).forEach(function(an){if(an in xe.props){Gt=!1;return}ft=!0,Sn[an]=qe[an]}),ft&&(!Lt||Gt)&&xe.setState((0,ut.Z)((0,ut.Z)({},Sn),Bt))}},xe.scrollTo=function(qe){xe.listRef.current.scrollTo(qe)},xe}return(0,Me.Z)(Oe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ct=this.props.activeKey;ct!==void 0&&ct!==this.state.activeKey&&(this.setState({activeKey:ct}),ct!==null&&this.scrollTo({key:ct}))}},{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 ct,Mt=this.state,at=Mt.focused,qe=Mt.flattenNodes,Lt=Mt.keyEntities,Bt=Mt.draggingNodeKey,ft=Mt.activeKey,Gt=Mt.dropLevelOffset,Sn=Mt.dropContainerKey,an=Mt.dropTargetKey,rn=Mt.dropPosition,zn=Mt.dragOverNodeKey,kn=Mt.indent,mn=this.props,ei=mn.prefixCls,Pi=mn.className,Hn=mn.style,bn=mn.showLine,wi=mn.focusable,Zi=mn.tabIndex,Hi=Zi===void 0?0:Zi,rr=mn.selectable,_r=mn.showIcon,gi=mn.icon,di=mn.switcherIcon,xi=mn.draggable,$i=mn.checkable,Ri=mn.checkStrictly,Kr=mn.disabled,Sr=mn.motion,Ne=mn.loadData,Ci=mn.filterTreeNode,wr=mn.height,Pn=mn.itemHeight,Si=mn.virtual,Wi=mn.titleRender,qi=mn.dropIndicatorRender,$n=mn.onContextMenu,qn=mn.onScroll,Zt=mn.direction,$t=mn.rootClassName,Qe=mn.rootStyle,on=(0,Ie.Z)(this.props,{aria:!0,data:!0}),cn;return xi&&((0,We.Z)(xi)==="object"?cn=xi:typeof xi=="function"?cn={nodeDraggable:xi}:cn={}),ee.createElement(de.k.Provider,{value:{prefixCls:ei,selectable:rr,showIcon:_r,icon:gi,switcherIcon:di,draggable:cn,draggingNodeKey:Bt,checkable:$i,checkStrictly:Ri,disabled:Kr,keyEntities:Lt,dropLevelOffset:Gt,dropContainerKey:Sn,dropTargetKey:an,dropPosition:rn,dragOverNodeKey:zn,indent:kn,direction:Zt,dropIndicatorRender:qi,loadData:Ne,filterTreeNode:Ci,titleRender:Wi,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}},ee.createElement("div",{role:"tree",className:lt()(ei,Pi,$t,(ct={},(0,ke.Z)(ct,"".concat(ei,"-show-line"),bn),(0,ke.Z)(ct,"".concat(ei,"-focused"),at),(0,ke.Z)(ct,"".concat(ei,"-active-focused"),ft!==null),ct)),style:Qe},ee.createElement(Gn,(0,le.Z)({ref:this.listRef,prefixCls:ei,style:Hn,data:qe,disabled:Kr,selectable:rr,checkable:!!$i,motion:Sr,dragging:Bt!==null,height:wr,itemHeight:Pn,virtual:Si,focusable:wi,focused:at,tabIndex:Hi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$n,onScroll:qn},this.getTreeNodeRequiredProps(),on))))}}],[{key:"getDerivedStateFromProps",value:function(ct,Mt){var at=Mt.prevProps,qe={prevProps:ct};function Lt(wi){return!at&&wi in ct||at&&at[wi]!==ct[wi]}var Bt,ft=Mt.fieldNames;if(Lt("fieldNames")&&(ft=(0,Ye.w$)(ct.fieldNames),qe.fieldNames=ft),Lt("treeData")?Bt=ct.treeData:Lt("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Bt=(0,Ye.zn)(ct.children)),Bt){qe.treeData=Bt;var Gt=(0,Ye.I8)(Bt,{fieldNames:ft});qe.keyEntities=(0,ut.Z)((0,ke.Z)({},tt,_t),Gt.keyEntities)}var Sn=qe.keyEntities||Mt.keyEntities;if(Lt("expandedKeys")||at&&Lt("autoExpandParent"))qe.expandedKeys=ct.autoExpandParent||!at&&ct.defaultExpandParent?(0,un.r7)(ct.expandedKeys,Sn):ct.expandedKeys;else if(!at&&ct.defaultExpandAll){var an=(0,ut.Z)({},Sn);delete an[tt],qe.expandedKeys=Object.keys(an).map(function(wi){return an[wi].key})}else!at&&ct.defaultExpandedKeys&&(qe.expandedKeys=ct.autoExpandParent||ct.defaultExpandParent?(0,un.r7)(ct.defaultExpandedKeys,Sn):ct.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Bt||qe.expandedKeys){var rn=(0,Ye.oH)(Bt||Mt.treeData,qe.expandedKeys||Mt.expandedKeys,ft);qe.flattenNodes=rn}if(ct.selectable&&(Lt("selectedKeys")?qe.selectedKeys=(0,un.BT)(ct.selectedKeys,ct):!at&&ct.defaultSelectedKeys&&(qe.selectedKeys=(0,un.BT)(ct.defaultSelectedKeys,ct))),ct.checkable){var zn;if(Lt("checkedKeys")?zn=(0,un.E6)(ct.checkedKeys)||{}:!at&&ct.defaultCheckedKeys?zn=(0,un.E6)(ct.defaultCheckedKeys)||{}:Bt&&(zn=(0,un.E6)(ct.checkedKeys)||{checkedKeys:Mt.checkedKeys,halfCheckedKeys:Mt.halfCheckedKeys}),zn){var kn=zn,mn=kn.checkedKeys,ei=mn===void 0?[]:mn,Pi=kn.halfCheckedKeys,Hn=Pi===void 0?[]:Pi;if(!ct.checkStrictly){var bn=(0,_n.S)(ei,!0,Sn);ei=bn.checkedKeys,Hn=bn.halfCheckedKeys}qe.checkedKeys=ei,qe.halfCheckedKeys=Hn}}return Lt("loadedKeys")&&(qe.loadedKeys=ct.loadedKeys),qe}}]),Oe}(ee.Component);ci.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:se,allowDrop:function(){return!0},expandAction:!1},ci.TreeNode=je.Z;var Ze=ci,be=Ze},35654:function(On,pn,pe){"use strict";pe.d(pn,{BT:function(){return ee},E6:function(){return he},L0:function(){return $e},OM:function(){return te},_5:function(){return wt},r7:function(){return ve},wA:function(){return lt},yx:function(){return Ft}});var le=pe(19127),ke=pe(20135),We=pe(48736),ut=pe(59301),Ge=pe(39417),Ue=pe(67841),Me=pe(71430),Ct=null;function wt(Ee,Be){if(!Ee)return[];var Le=Ee.slice(),ze=Le.indexOf(Be);return ze>=0&&Le.splice(ze,1),Le}function $e(Ee,Be){var Le=(Ee||[]).slice();return Le.indexOf(Be)===-1&&Le.push(Be),Le}function Ft(Ee){return Ee.split("-")}function lt(Ee,Be){var Le=[],ze=(0,Ue.Z)(Be,Ee);function je(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Xe.forEach(function(Ye){var dt=Ye.key,He=Ye.children;Le.push(dt),je(He)})}return je(ze.children),Le}function vt(Ee){if(Ee.parent){var Be=Ft(Ee.pos);return Number(Be[Be.length-1])===Ee.parent.children.length-1}return!1}function Ie(Ee){var Be=Ft(Ee.pos);return Number(Be[Be.length-1])===0}function te(Ee,Be,Le,ze,je,Xe,Ye,dt,He,Nt){var ot,Tt=Ee.clientX,xt=Ee.clientY,Ot=Ee.target.getBoundingClientRect(),Wt=Ot.top,Dt=Ot.height,tt=(Nt==="rtl"?-1:1)*(((je==null?void 0:je.x)||0)-Tt),Ve=(tt-12)/ze,_t=(0,Ue.Z)(dt,Le.props.eventKey);if(xt-1.5?Xe({dragNode:Zn,dropNode:ci,dropPosition:1})?un=1:Ze=!1:Xe({dragNode:Zn,dropNode:ci,dropPosition:0})?un=0:Xe({dragNode:Zn,dropNode:ci,dropPosition:1})?un=1:Ze=!1:Xe({dragNode:Zn,dropNode:ci,dropPosition:1})?un=1:Ze=!1,{dropPosition:un,dropLevelOffset:_n,dropTargetKey:_t.key,dropTargetPos:_t.pos,dragOverNodeKey:Gn,dropContainerKey:un===0?null:((ot=_t.parent)===null||ot===void 0?void 0:ot.key)||null,dropAllowed:Ze}}function ee(Ee,Be){if(Ee){var Le=Be.multiple;return Le?Ee.slice():Ee.length?[Ee[0]]:Ee}}var de=function(Be){return Be};function se(Ee,Be){if(!Ee)return[];var Le=Be||{},ze=Le.processProps,je=ze===void 0?de:ze,Xe=Array.isArray(Ee)?Ee:[Ee];return Xe.map(function(Ye){var dt=Ye.children,He=_objectWithoutProperties(Ye,Ct),Nt=se(dt,Be);return React.createElement(TreeNode,_extends({key:He.key},je(He)),Nt)})}function he(Ee){if(!Ee)return null;var Be;if(Array.isArray(Ee))Be={checkedKeys:Ee,halfCheckedKeys:void 0};else if((0,ke.Z)(Ee)==="object")Be={checkedKeys:Ee.checked||void 0,halfCheckedKeys:Ee.halfChecked||void 0};else return(0,We.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Be}function ve(Ee,Be){var Le=new Set;function ze(je){if(!Le.has(je)){var Xe=(0,Ue.Z)(Be,je);if(Xe){Le.add(je);var Ye=Xe.parent,dt=Xe.node;dt.disabled||Ye&&ze(Ye.key)}}}return(Ee||[]).forEach(function(je){ze(je)}),(0,le.Z)(Le)}},90782:function(On,pn,pe){"use strict";pe.d(pn,{S:function(){return Me}});var le=pe(48736),ke=pe(67841);function We(Ct,wt){var $e=new Set;return Ct.forEach(function(Ft){wt.has(Ft)||$e.add(Ft)}),$e}function ut(Ct){var wt=Ct||{},$e=wt.disabled,Ft=wt.disableCheckbox,lt=wt.checkable;return!!($e||Ft)||lt===!1}function Ge(Ct,wt,$e,Ft){for(var lt=new Set(Ct),vt=new Set,Ie=0;Ie<=$e;Ie+=1){var te=wt.get(Ie)||new Set;te.forEach(function(he){var ve=he.key,Ee=he.node,Be=he.children,Le=Be===void 0?[]:Be;lt.has(ve)&&!Ft(Ee)&&Le.filter(function(ze){return!Ft(ze.node)}).forEach(function(ze){lt.add(ze.key)})})}for(var ee=new Set,de=$e;de>=0;de-=1){var se=wt.get(de)||new Set;se.forEach(function(he){var ve=he.parent,Ee=he.node;if(!(Ft(Ee)||!he.parent||ee.has(he.parent.key))){if(Ft(he.parent.node)){ee.add(ve.key);return}var Be=!0,Le=!1;(ve.children||[]).filter(function(ze){return!Ft(ze.node)}).forEach(function(ze){var je=ze.key,Xe=lt.has(je);Be&&!Xe&&(Be=!1),!Le&&(Xe||vt.has(je))&&(Le=!0)}),Be&<.add(ve.key),Le&&vt.add(ve.key),ee.add(ve.key)}})}return{checkedKeys:Array.from(lt),halfCheckedKeys:Array.from(We(vt,lt))}}function Ue(Ct,wt,$e,Ft,lt){for(var vt=new Set(Ct),Ie=new Set(wt),te=0;te<=Ft;te+=1){var ee=$e.get(te)||new Set;ee.forEach(function(ve){var Ee=ve.key,Be=ve.node,Le=ve.children,ze=Le===void 0?[]:Le;!vt.has(Ee)&&!Ie.has(Ee)&&!lt(Be)&&ze.filter(function(je){return!lt(je.node)}).forEach(function(je){vt.delete(je.key)})})}Ie=new Set;for(var de=new Set,se=Ft;se>=0;se-=1){var he=$e.get(se)||new Set;he.forEach(function(ve){var Ee=ve.parent,Be=ve.node;if(!(lt(Be)||!ve.parent||de.has(ve.parent.key))){if(lt(ve.parent.node)){de.add(Ee.key);return}var Le=!0,ze=!1;(Ee.children||[]).filter(function(je){return!lt(je.node)}).forEach(function(je){var Xe=je.key,Ye=vt.has(Xe);Le&&!Ye&&(Le=!1),!ze&&(Ye||Ie.has(Xe))&&(ze=!0)}),Le||vt.delete(Ee.key),ze&&Ie.add(Ee.key),de.add(Ee.key)}})}return{checkedKeys:Array.from(vt),halfCheckedKeys:Array.from(We(Ie,vt))}}function Me(Ct,wt,$e,Ft){var lt=[],vt;Ft?vt=Ft:vt=ut;var Ie=new Set(Ct.filter(function(se){var he=!!(0,ke.Z)($e,se);return he||lt.push(se),he})),te=new Map,ee=0;Object.keys($e).forEach(function(se){var he=$e[se],ve=he.level,Ee=te.get(ve);Ee||(Ee=new Set,te.set(ve,Ee)),Ee.add(he),ee=Math.max(ee,ve)}),(0,le.ZP)(!lt.length,"Tree missing follow keys: ".concat(lt.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var de;return wt===!0?de=Ge(Ie,te,ee,vt):de=Ue(Ie,wt.halfCheckedKeys,te,ee,vt),de}},67841:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return le}});function le(ke,We){return ke[We]}},71430:function(On,pn,pe){"use strict";pe.d(pn,{F:function(){return ve},H8:function(){return he},I8:function(){return se},km:function(){return lt},oH:function(){return ee},w$:function(){return vt},zn:function(){return te}});var le=pe(20135),ke=pe(19127),We=pe(44127),ut=pe(6620),Ge=pe(11592),Ue=pe(2738),Me=pe(48736),Ct=pe(67841),wt=["children"];function $e(Ee,Be){return"".concat(Ee,"-").concat(Be)}function Ft(Ee){return Ee&&Ee.type&&Ee.type.isTreeNode}function lt(Ee,Be){return Ee!=null?Ee:Be}function vt(Ee){var Be=Ee||{},Le=Be.title,ze=Be._title,je=Be.key,Xe=Be.children,Ye=Le||"title";return{title:Ye,_title:ze||[Ye],key:je||"key",children:Xe||"children"}}function Ie(Ee,Be){var Le=new Map;function ze(je){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(je||[]).forEach(function(Ye){var dt=Ye[Be.key],He=Ye[Be.children];warning(dt!=null,"Tree node must have a certain key: [".concat(Xe).concat(dt,"]"));var Nt=String(dt);warning(!Le.has(Nt)||dt===null||dt===void 0,"Same 'key' exist in the Tree: ".concat(Nt)),Le.set(Nt,!0),ze(He,"".concat(Xe).concat(Nt," > "))})}ze(Ee)}function te(Ee){function Be(Le){var ze=(0,Ge.Z)(Le);return ze.map(function(je){if(!Ft(je))return(0,Me.ZP)(!je,"Tree/TreeNode can only accept TreeNode as children."),null;var Xe=je.key,Ye=je.props,dt=Ye.children,He=(0,ut.Z)(Ye,wt),Nt=(0,We.Z)({key:Xe},He),ot=Be(dt);return ot.length&&(Nt.children=ot),Nt}).filter(function(je){return je})}return Be(Ee)}function ee(Ee,Be,Le){var ze=vt(Le),je=ze._title,Xe=ze.key,Ye=ze.children,dt=new Set(Be===!0?[]:Be),He=[];function Nt(ot){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ot.map(function(xt,Ot){for(var Wt=$e(Tt?Tt.pos:"0",Ot),Dt=lt(xt[Xe],Wt),tt,Ve=0;Ve1&&arguments[1]!==void 0?arguments[1]:{},Le=Be.initWrapper,ze=Be.processEntity,je=Be.onProcessFinished,Xe=Be.externalGetKey,Ye=Be.childrenPropName,dt=Be.fieldNames,He=arguments.length>2?arguments[2]:void 0,Nt=Xe||He,ot={},Tt={},xt={posEntities:ot,keyEntities:Tt};return Le&&(xt=Le(xt)||xt),de(Ee,function(Ot){var Wt=Ot.node,Dt=Ot.index,tt=Ot.pos,Ve=Ot.key,_t=Ot.parentPos,vn=Ot.level,yn=Ot.nodes,zt={node:Wt,nodes:yn,index:Dt,key:Ve,pos:tt,level:vn},qt=lt(Ve,tt);ot[tt]=zt,Tt[qt]=zt,zt.parent=ot[_t],zt.parent&&(zt.parent.children=zt.parent.children||[],zt.parent.children.push(zt)),ze&&ze(zt,xt)},{externalGetKey:Nt,childrenPropName:Ye,fieldNames:dt}),je&&je(xt),xt}function he(Ee,Be){var Le=Be.expandedKeys,ze=Be.selectedKeys,je=Be.loadedKeys,Xe=Be.loadingKeys,Ye=Be.checkedKeys,dt=Be.halfCheckedKeys,He=Be.dragOverNodeKey,Nt=Be.dropPosition,ot=Be.keyEntities,Tt=(0,Ct.Z)(ot,Ee),xt={eventKey:Ee,expanded:Le.indexOf(Ee)!==-1,selected:ze.indexOf(Ee)!==-1,loaded:je.indexOf(Ee)!==-1,loading:Xe.indexOf(Ee)!==-1,checked:Ye.indexOf(Ee)!==-1,halfChecked:dt.indexOf(Ee)!==-1,pos:String(Tt?Tt.pos:""),dragOver:He===Ee&&Nt===0,dragOverGapTop:He===Ee&&Nt===-1,dragOverGapBottom:He===Ee&&Nt===1};return xt}function ve(Ee){var Be=Ee.data,Le=Ee.expanded,ze=Ee.selected,je=Ee.checked,Xe=Ee.loaded,Ye=Ee.loading,dt=Ee.halfChecked,He=Ee.dragOver,Nt=Ee.dragOverGapTop,ot=Ee.dragOverGapBottom,Tt=Ee.pos,xt=Ee.active,Ot=Ee.eventKey,Wt=(0,We.Z)((0,We.Z)({},Be),{},{expanded:Le,selected:ze,checked:je,loaded:Xe,loading:Ye,halfChecked:dt,dragOver:He,dragOverGapTop:Nt,dragOverGapBottom:ot,pos:Tt,active:xt,key:Ot});return"props"in Wt||Object.defineProperty(Wt,"props",{get:function(){return(0,Me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ee}}),Wt}},8224:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ke}});var le=pe(4676);function ke(We,ut,Ge,Ue){var Me=le.unstable_batchedUpdates?function(wt){le.unstable_batchedUpdates(Ge,wt)}:Ge;return We!=null&&We.addEventListener&&We.addEventListener(ut,Me,Ue),{remove:function(){We!=null&&We.removeEventListener&&We.removeEventListener(ut,Me,Ue)}}}},55468:function(On,pn,pe){"use strict";pe.d(pn,{g1:function(){return Ft},os:function(){return vt}});var le=/margin|padding|width|height|max|min|offset/,ke={left:!0,top:!0},We={cssFloat:1,styleFloat:1,float:1};function ut(Ie){return Ie.nodeType===1?Ie.ownerDocument.defaultView.getComputedStyle(Ie,null):{}}function Ge(Ie,te,ee){if(te=te.toLowerCase(),ee==="auto"){if(te==="height")return Ie.offsetHeight;if(te==="width")return Ie.offsetWidth}return te in ke||(ke[te]=le.test(te)),ke[te]?parseFloat(ee)||0:ee}function Ue(Ie,te){var ee=arguments.length,de=ut(Ie);return te=We[te]?"cssFloat"in Ie.style?"cssFloat":"styleFloat":te,ee===1?de:Ge(Ie,te,de[te]||Ie.style[te])}function Me(Ie,te,ee){var de=arguments.length;if(te=We[te]?"cssFloat"in Ie.style?"cssFloat":"styleFloat":te,de===3)return typeof ee=="number"&&le.test(te)&&(ee="".concat(ee,"px")),Ie.style[te]=ee,ee;for(var se in te)te.hasOwnProperty(se)&&Me(Ie,se,te[se]);return ut(Ie)}function Ct(Ie){return Ie===document.body?document.documentElement.clientWidth:Ie.offsetWidth}function wt(Ie){return Ie===document.body?window.innerHeight||document.documentElement.clientHeight:Ie.offsetHeight}function $e(){var Ie=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ie,height:te}}function Ft(){var Ie=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Ie,height:te}}function lt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function vt(Ie){var te=Ie.getBoundingClientRect(),ee=document.documentElement;return{left:te.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},24514:function(On,pn,pe){"use strict";pe.d(pn,{G:function(){return ut}});var le=pe(47273),ke=function(Ue){if((0,le.Z)()&&window.document.documentElement){var Me=Array.isArray(Ue)?Ue:[Ue],Ct=window.document.documentElement;return Me.some(function(wt){return wt in Ct.style})}return!1},We=function(Ue,Me){if(!ke(Ue))return!1;var Ct=document.createElement("div"),wt=Ct.style[Ue];return Ct.style[Ue]=Me,Ct.style[Ue]!==wt};function ut(Ge,Ue){return!Array.isArray(Ge)&&Ue!==void 0?We(Ge,Ue):ke(Ge)}},24916:function(On,pn,pe){"use strict";pe.d(pn,{Z:function(){return ci}});var le=pe(96663),ke=pe(20135),We=pe(44127),ut=pe(90493),Ge=pe(72071),Ue=pe(6620),Me=pe(92310),Ct=pe.n(Me),wt=pe(29301),$e=pe(70425),Ft=pe(34280),lt=pe(59301),vt=pe(4676),Ie=lt.forwardRef(function(Ze,be){var Pe=Ze.height,Ae=Ze.offsetY,Oe=Ze.offsetX,xe=Ze.children,ct=Ze.prefixCls,Mt=Ze.onInnerResize,at=Ze.innerProps,qe=Ze.rtl,Lt=Ze.extra,Bt={},ft={display:"flex",flexDirection:"column"};return Ae!==void 0&&(Bt={height:Pe,position:"relative",overflow:"hidden"},ft=(0,We.Z)((0,We.Z)({},ft),{},(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({transform:"translateY(".concat(Ae,"px)")},qe?"marginRight":"marginLeft",-Oe),"position","absolute"),"left",0),"right",0),"top",0))),lt.createElement("div",{style:Bt},lt.createElement(wt.Z,{onResize:function(Sn){var an=Sn.offsetHeight;an&&Mt&&Mt()}},lt.createElement("div",(0,le.Z)({style:ft,className:Ct()((0,ut.Z)({},"".concat(ct,"-holder-inner"),ct)),ref:be},at),xe,Lt)))});Ie.displayName="Filler";var te=Ie;function ee(Ze){var be=Ze.children,Pe=Ze.setRef,Ae=lt.useCallback(function(Oe){Pe(Oe)},[]);return lt.cloneElement(be,{ref:Ae})}function de(Ze,be,Pe,Ae,Oe,xe,ct,Mt){var at=Mt.getKey;return Ze.slice(be,Pe+1).map(function(qe,Lt){var Bt=be+Lt,ft=ct(qe,Bt,{style:{width:Ae},offsetX:Oe}),Gt=at(qe);return lt.createElement(ee,{key:Gt,setRef:function(an){return xe(qe,an)}},ft)})}function se(Ze,be,Pe,Ae){var Oe=Pe-Ze,xe=be-Pe,ct=Math.min(Oe,xe)*2;if(Ae<=ct){var Mt=Math.floor(Ae/2);return Ae%2?Pe+Mt+1:Pe-Mt}return Oe>xe?Pe-(Ae-xe):Pe+(Ae-Oe)}function he(Ze,be,Pe){var Ae=Ze.length,Oe=be.length,xe,ct;if(Ae===0&&Oe===0)return null;Ae2&&arguments[2]!==void 0?arguments[2]:!1,Bt=at?qe<0&&Mt.current.left||qe>0&&Mt.current.right:qe<0&&Mt.current.top||qe>0&&Mt.current.bottom;return Lt&&Bt?(clearTimeout(xe.current),Oe.current=!1):(!Bt||Oe.current)&&ct(),!Oe.current&&Bt}};function je(Ze,be,Pe,Ae,Oe,xe,ct){var Mt=(0,lt.useRef)(0),at=(0,lt.useRef)(null),qe=(0,lt.useRef)(null),Lt=(0,lt.useRef)(!1),Bt=ze(be,Pe,Ae,Oe);function ft(kn,mn){if(Ee.Z.cancel(at.current),!Bt(!1,mn)){var ei=kn;if(!ei._virtualHandled)ei._virtualHandled=!0;else return;Mt.current+=mn,qe.current=mn,Le||ei.preventDefault(),at.current=(0,Ee.Z)(function(){var Pi=Lt.current?10:1;ct(Mt.current*Pi,!1),Mt.current=0})}}function Gt(kn,mn){ct(mn,!0),Le||kn.preventDefault()}var Sn=(0,lt.useRef)(null),an=(0,lt.useRef)(null);function rn(kn){if(Ze){Ee.Z.cancel(an.current),an.current=(0,Ee.Z)(function(){Sn.current=null},2);var mn=kn.deltaX,ei=kn.deltaY,Pi=kn.shiftKey,Hn=mn,bn=ei;(Sn.current==="sx"||!Sn.current&&Pi&&ei&&!mn)&&(Hn=ei,bn=0,Sn.current="sx");var wi=Math.abs(Hn),Zi=Math.abs(bn);Sn.current===null&&(Sn.current=xe&&wi>Zi?"x":"y"),Sn.current==="y"?ft(kn,bn):Gt(kn,Hn)}}function zn(kn){Ze&&(Lt.current=kn.detail===qe.current)}return[rn,zn]}function Xe(Ze,be,Pe,Ae){var Oe=lt.useMemo(function(){return[new Map,[]]},[Ze,Pe.id,Ae]),xe=(0,Ge.Z)(Oe,2),ct=xe[0],Mt=xe[1],at=function(Lt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lt,ft=ct.get(Lt),Gt=ct.get(Bt);if(ft===void 0||Gt===void 0)for(var Sn=Ze.length,an=Mt.length;an0&&arguments[0]!==void 0?arguments[0]:!1;Lt();var Sn=function(){var zn=!1;Mt.current.forEach(function(kn,mn){if(kn&&kn.offsetParent){var ei=kn.offsetHeight,Pi=getComputedStyle(kn),Hn=Pi.marginTop,bn=Pi.marginBottom,wi=ot(Hn),Zi=ot(bn),Hi=ei+wi+Zi;at.current.get(mn)!==Hi&&(at.current.set(mn,Hi),zn=!0)}}),zn&&ct(function(kn){return kn+1})};if(Gt)Sn();else{qe.current+=1;var an=qe.current;Promise.resolve().then(function(){an===qe.current&&Sn()})}}function ft(Gt,Sn){var an=Ze(Gt),rn=Mt.current.get(an);Sn?(Mt.current.set(an,Sn),Bt()):Mt.current.delete(an),!rn!=!Sn&&(Sn?be==null||be(Gt):Pe==null||Pe(Gt))}return(0,lt.useEffect)(function(){return Lt},[]),[ft,Bt,at.current,xe]}var xt=14/15;function Ot(Ze,be,Pe){var Ae=(0,lt.useRef)(!1),Oe=(0,lt.useRef)(0),xe=(0,lt.useRef)(0),ct=(0,lt.useRef)(null),Mt=(0,lt.useRef)(null),at,qe=function(Gt){if(Ae.current){var Sn=Math.ceil(Gt.touches[0].pageX),an=Math.ceil(Gt.touches[0].pageY),rn=Oe.current-Sn,zn=xe.current-an,kn=Math.abs(rn)>Math.abs(zn);kn?Oe.current=Sn:xe.current=an;var mn=Pe(kn,kn?rn:zn,!1,Gt);mn&&Gt.preventDefault(),clearInterval(Mt.current),mn&&(Mt.current=setInterval(function(){kn?rn*=xt:zn*=xt;var ei=Math.floor(kn?rn:zn);(!Pe(kn,ei,!0)||Math.abs(ei)<=.1)&&clearInterval(Mt.current)},16))}},Lt=function(){Ae.current=!1,at()},Bt=function(Gt){at(),Gt.touches.length===1&&!Ae.current&&(Ae.current=!0,Oe.current=Math.ceil(Gt.touches[0].pageX),xe.current=Math.ceil(Gt.touches[0].pageY),ct.current=Gt.target,ct.current.addEventListener("touchmove",qe,{passive:!1}),ct.current.addEventListener("touchend",Lt,{passive:!0}))};at=function(){ct.current&&(ct.current.removeEventListener("touchmove",qe),ct.current.removeEventListener("touchend",Lt))},(0,Ft.Z)(function(){return Ze&&be.current.addEventListener("touchstart",Bt,{passive:!0}),function(){var ft;(ft=be.current)===null||ft===void 0||ft.removeEventListener("touchstart",Bt),at(),clearInterval(Mt.current)}},[Ze])}function Wt(Ze){return Math.floor(Math.pow(Ze,.5))}function Dt(Ze,be){var Pe="touches"in Ze?Ze.touches[0]:Ze;return Pe[be?"pageX":"pageY"]-window[be?"scrollX":"scrollY"]}function tt(Ze,be,Pe){lt.useEffect(function(){var Ae=be.current;if(Ze&&Ae){var Oe=!1,xe,ct,Mt=function(){Ee.Z.cancel(xe)},at=function ft(){Mt(),xe=(0,Ee.Z)(function(){Pe(ct),ft()})},qe=function(Gt){if(!Gt.target.draggable){var Sn=Gt;Sn._virtualHandled||(Sn._virtualHandled=!0,Oe=!0)}},Lt=function(){Oe=!1,Mt()},Bt=function(Gt){if(Oe){var Sn=Dt(Gt,!1),an=Ae.getBoundingClientRect(),rn=an.top,zn=an.bottom;if(Sn<=rn){var kn=rn-Sn;ct=-Wt(kn),at()}else if(Sn>=zn){var mn=Sn-zn;ct=Wt(mn),at()}else Mt()}};return Ae.addEventListener("mousedown",qe),Ae.ownerDocument.addEventListener("mouseup",Lt),Ae.ownerDocument.addEventListener("mousemove",Bt),function(){Ae.removeEventListener("mousedown",qe),Ae.ownerDocument.removeEventListener("mouseup",Lt),Ae.ownerDocument.removeEventListener("mousemove",Bt),Mt()}}},[Ze])}var Ve=10;function _t(Ze,be,Pe,Ae,Oe,xe,ct,Mt){var at=lt.useRef(),qe=lt.useState(null),Lt=(0,Ge.Z)(qe,2),Bt=Lt[0],ft=Lt[1];return(0,Ft.Z)(function(){if(Bt&&Bt.times=0;di-=1){var xi=Oe(be[di]),$i=Pe.get(xi);if($i===void 0){kn=!0;break}if(gi-=$i,gi<=0)break}switch(Pi){case"top":ei=bn-rn;break;case"bottom":ei=wi-zn+rn;break;default:{var Ri=Ze.current.scrollTop,Kr=Ri+zn;bnKr&&(mn="bottom")}}ei!==null&&ct(ei),ei!==Bt.lastTop&&(kn=!0)}kn&&ft((0,We.Z)((0,We.Z)({},Bt),{},{times:Bt.times+1,targetAlign:mn,lastTop:ei}))}},[Bt,Ze.current]),function(Gt){if(Gt==null){Mt();return}if(Ee.Z.cancel(at.current),typeof Gt=="number")ct(Gt);else if(Gt&&(0,ke.Z)(Gt)==="object"){var Sn,an=Gt.align;"index"in Gt?Sn=Gt.index:Sn=be.findIndex(function(kn){return Oe(kn)===Gt.key});var rn=Gt.offset,zn=rn===void 0?0:rn;ft({times:0,index:Sn,offset:zn,originAlign:an})}}}var vn=lt.forwardRef(function(Ze,be){var Pe=Ze.prefixCls,Ae=Ze.rtl,Oe=Ze.scrollOffset,xe=Ze.scrollRange,ct=Ze.onStartMove,Mt=Ze.onStopMove,at=Ze.onScroll,qe=Ze.horizontal,Lt=Ze.spinSize,Bt=Ze.containerSize,ft=Ze.style,Gt=Ze.thumbStyle,Sn=Ze.showScrollBar,an=lt.useState(!1),rn=(0,Ge.Z)(an,2),zn=rn[0],kn=rn[1],mn=lt.useState(null),ei=(0,Ge.Z)(mn,2),Pi=ei[0],Hn=ei[1],bn=lt.useState(null),wi=(0,Ge.Z)(bn,2),Zi=wi[0],Hi=wi[1],rr=!Ae,_r=lt.useRef(),gi=lt.useRef(),di=lt.useState(Sn),xi=(0,Ge.Z)(di,2),$i=xi[0],Ri=xi[1],Kr=lt.useRef(),Sr=function(){Sn===!0||Sn===!1||(clearTimeout(Kr.current),Ri(!0),Kr.current=setTimeout(function(){Ri(!1)},3e3))},Ne=xe-Bt||0,Ci=Bt-Lt||0,wr=lt.useMemo(function(){if(Oe===0||Ne===0)return 0;var Qe=Oe/Ne;return Qe*Ci},[Oe,Ne,Ci]),Pn=function(on){on.stopPropagation(),on.preventDefault()},Si=lt.useRef({top:wr,dragging:zn,pageY:Pi,startTop:Zi});Si.current={top:wr,dragging:zn,pageY:Pi,startTop:Zi};var Wi=function(on){kn(!0),Hn(Dt(on,qe)),Hi(Si.current.top),ct(),on.stopPropagation(),on.preventDefault()};lt.useEffect(function(){var Qe=function(ht){ht.preventDefault()},on=_r.current,cn=gi.current;return on.addEventListener("touchstart",Qe,{passive:!1}),cn.addEventListener("touchstart",Wi,{passive:!1}),function(){on.removeEventListener("touchstart",Qe),cn.removeEventListener("touchstart",Wi)}},[]);var qi=lt.useRef();qi.current=Ne;var $n=lt.useRef();$n.current=Ci,lt.useEffect(function(){if(zn){var Qe,on=function(ht){var en=Si.current,fn=en.dragging,Rn=en.pageY,Qn=en.startTop;Ee.Z.cancel(Qe);var Et=_r.current.getBoundingClientRect(),wn=Bt/(qe?Et.width:Et.height);if(fn){var Kn=(Dt(ht,qe)-Rn)*wn,Ei=Qn;!rr&&qe?Ei-=Kn:Ei+=Kn;var tn=qi.current,sn=$n.current,In=sn?Ei/sn:0,Oi=Math.ceil(In*tn);Oi=Math.max(Oi,0),Oi=Math.min(Oi,tn),Qe=(0,Ee.Z)(function(){at(Oi,qe)})}},cn=function(){kn(!1),Mt()};return window.addEventListener("mousemove",on,{passive:!0}),window.addEventListener("touchmove",on,{passive:!0}),window.addEventListener("mouseup",cn,{passive:!0}),window.addEventListener("touchend",cn,{passive:!0}),function(){window.removeEventListener("mousemove",on),window.removeEventListener("touchmove",on),window.removeEventListener("mouseup",cn),window.removeEventListener("touchend",cn),Ee.Z.cancel(Qe)}}},[zn]),lt.useEffect(function(){return Sr(),function(){clearTimeout(Kr.current)}},[Oe]),lt.useImperativeHandle(be,function(){return{delayHidden:Sr}});var qn="".concat(Pe,"-scrollbar"),Zt={position:"absolute",visibility:$i?null:"hidden"},$t={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return qe?(Zt.height=8,Zt.left=0,Zt.right=0,Zt.bottom=0,$t.height="100%",$t.width=Lt,rr?$t.left=wr:$t.right=wr):(Zt.width=8,Zt.top=0,Zt.bottom=0,rr?Zt.right=0:Zt.left=0,$t.width="100%",$t.height=Lt,$t.top=wr),lt.createElement("div",{ref:_r,className:Ct()(qn,(0,ut.Z)((0,ut.Z)((0,ut.Z)({},"".concat(qn,"-horizontal"),qe),"".concat(qn,"-vertical"),!qe),"".concat(qn,"-visible"),$i)),style:(0,We.Z)((0,We.Z)({},Zt),ft),onMouseDown:Pn,onMouseMove:Sr},lt.createElement("div",{ref:gi,className:Ct()("".concat(qn,"-thumb"),(0,ut.Z)({},"".concat(qn,"-thumb-moving"),zn)),style:(0,We.Z)((0,We.Z)({},$t),Gt),onMouseDown:Wi}))}),yn=vn,zt=20;function qt(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Pe=Ze/be*Ze;return isNaN(Pe)&&(Pe=0),Pe=Math.max(Pe,zt),Math.floor(Pe)}var ln=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Gn=[],un={overflowY:"auto",overflowAnchor:"none"};function _n(Ze,be){var Pe=Ze.prefixCls,Ae=Pe===void 0?"rc-virtual-list":Pe,Oe=Ze.className,xe=Ze.height,ct=Ze.itemHeight,Mt=Ze.fullHeight,at=Mt===void 0?!0:Mt,qe=Ze.style,Lt=Ze.data,Bt=Ze.children,ft=Ze.itemKey,Gt=Ze.virtual,Sn=Ze.direction,an=Ze.scrollWidth,rn=Ze.component,zn=rn===void 0?"div":rn,kn=Ze.onScroll,mn=Ze.onVirtualScroll,ei=Ze.onVisibleChange,Pi=Ze.innerProps,Hn=Ze.extraRender,bn=Ze.styles,wi=Ze.showScrollBar,Zi=wi===void 0?"optional":wi,Hi=(0,Ue.Z)(Ze,ln),rr=lt.useCallback(function(Lo){return typeof ft=="function"?ft(Lo):Lo==null?void 0:Lo[ft]},[ft]),_r=Tt(rr,null,null),gi=(0,Ge.Z)(_r,4),di=gi[0],xi=gi[1],$i=gi[2],Ri=gi[3],Kr=!!(Gt!==!1&&xe&&ct),Sr=lt.useMemo(function(){return Object.values($i.maps).reduce(function(Lo,po){return Lo+po},0)},[$i.id,$i.maps]),Ne=Kr&&Lt&&(Math.max(ct*Lt.length,Sr)>xe||!!an),Ci=Sn==="rtl",wr=Ct()(Ae,(0,ut.Z)({},"".concat(Ae,"-rtl"),Ci),Oe),Pn=Lt||Gn,Si=(0,lt.useRef)(),Wi=(0,lt.useRef)(),qi=(0,lt.useRef)(),$n=(0,lt.useState)(0),qn=(0,Ge.Z)($n,2),Zt=qn[0],$t=qn[1],Qe=(0,lt.useState)(0),on=(0,Ge.Z)(Qe,2),cn=on[0],At=on[1],ht=(0,lt.useState)(!1),en=(0,Ge.Z)(ht,2),fn=en[0],Rn=en[1],Qn=function(){Rn(!0)},Et=function(){Rn(!1)},wn={getKey:rr};function Kn(Lo){$t(function(po){var la;typeof Lo=="function"?la=Lo(po):la=Lo;var Eo=Fr(la);return Si.current.scrollTop=Eo,Eo})}var Ei=(0,lt.useRef)({start:0,end:Pn.length}),tn=(0,lt.useRef)(),sn=ve(Pn,rr),In=(0,Ge.Z)(sn,1),Oi=In[0];tn.current=Oi;var Di=lt.useMemo(function(){if(!Kr)return{scrollHeight:void 0,start:0,end:Pn.length-1,offset:void 0};if(!Ne){var Lo;return{scrollHeight:((Lo=Wi.current)===null||Lo===void 0?void 0:Lo.offsetHeight)||0,start:0,end:Pn.length-1,offset:void 0}}for(var po=0,la,Eo,Na,os=Pn.length,xo=0;xo=Zt&&la===void 0&&(la=xo,Eo=po),ro>Zt+xe&&Na===void 0&&(Na=xo),po=ro}return la===void 0&&(la=0,Eo=0,Na=Math.ceil(xe/ct)),Na===void 0&&(Na=Pn.length-1),Na=Math.min(Na+1,Pn.length-1),{scrollHeight:po,start:la,end:Na,offset:Eo}},[Ne,Kr,Zt,Pn,Ri,xe]),vi=Di.scrollHeight,Ti=Di.start,Li=Di.end,sr=Di.offset;Ei.current.start=Ti,Ei.current.end=Li,lt.useLayoutEffect(function(){var Lo=$i.getRecord();if(Lo.size===1){var po=Array.from(Lo)[0],la=Pn[Ti];if(la){var Eo=rr(la);if(Eo===po){var Na=$i.get(po),os=Na-ct;Kn(function(xo){return xo+os})}}}$i.resetRecord()},[vi]);var Zr=lt.useState({width:0,height:xe}),Vr=(0,Ge.Z)(Zr,2),Tn=Vr[0],Po=Vr[1],Xr=function(po){Po({width:po.offsetWidth,height:po.offsetHeight})},Cr=(0,lt.useRef)(),Cn=(0,lt.useRef)(),ri=lt.useMemo(function(){return qt(Tn.width,an)},[Tn.width,an]),Yi=lt.useMemo(function(){return qt(Tn.height,vi)},[Tn.height,vi]),yr=vi-xe,er=(0,lt.useRef)(yr);er.current=yr;function Fr(Lo){var po=Lo;return Number.isNaN(er.current)||(po=Math.min(po,er.current)),po=Math.max(po,0),po}var Ur=Zt<=0,zr=Zt>=yr,Tr=cn<=0,Yr=cn>=an,Un=ze(Ur,zr,Tr,Yr),Ho=function(){return{x:Ci?-cn:cn,y:Zt}},Yn=(0,lt.useRef)(Ho()),Ao=(0,$e.useEvent)(function(Lo){if(mn){var po=(0,We.Z)((0,We.Z)({},Ho()),Lo);(Yn.current.x!==po.x||Yn.current.y!==po.y)&&(mn(po),Yn.current=po)}});function Qo(Lo,po){var la=Lo;po?((0,vt.flushSync)(function(){At(la)}),Ao()):Kn(la)}function nr(Lo){var po=Lo.currentTarget.scrollTop;po!==Zt&&Kn(po),kn==null||kn(Lo),Ao()}var qo=function(po){var la=po,Eo=an?an-Tn.width:0;return la=Math.max(la,0),la=Math.min(la,Eo),la},Go=(0,$e.useEvent)(function(Lo,po){po?((0,vt.flushSync)(function(){At(function(la){var Eo=la+(Ci?-Lo:Lo);return qo(Eo)})}),Ao()):Kn(function(la){var Eo=la+Lo;return Eo})}),Lr=je(Kr,Ur,zr,Tr,Yr,!!an,Go),br=(0,Ge.Z)(Lr,2),mo=br[0],Yo=br[1];Ot(Kr,Si,function(Lo,po,la,Eo){var Na=Eo;return Un(Lo,po,la)?!1:!Na||!Na._virtualHandled?(Na&&(Na._virtualHandled=!0),mo({preventDefault:function(){},deltaX:Lo?po:0,deltaY:Lo?0:po}),!0):!1}),tt(Ne,Si,function(Lo){Kn(function(po){return po+Lo})}),(0,Ft.Z)(function(){function Lo(la){var Eo=Ur&&la.detail<0,Na=zr&&la.detail>0;Kr&&!Eo&&!Na&&la.preventDefault()}var po=Si.current;return po.addEventListener("wheel",mo,{passive:!1}),po.addEventListener("DOMMouseScroll",Yo,{passive:!0}),po.addEventListener("MozMousePixelScroll",Lo,{passive:!1}),function(){po.removeEventListener("wheel",mo),po.removeEventListener("DOMMouseScroll",Yo),po.removeEventListener("MozMousePixelScroll",Lo)}},[Kr,Ur,zr]),(0,Ft.Z)(function(){if(an){var Lo=qo(cn);At(Lo),Ao({x:Lo})}},[Tn.width,an]);var Ki=function(){var po,la;(po=Cr.current)===null||po===void 0||po.delayHidden(),(la=Cn.current)===null||la===void 0||la.delayHidden()},st=_t(Si,Pn,$i,ct,rr,function(){return xi(!0)},Kn,Ki);lt.useImperativeHandle(be,function(){return{nativeElement:qi.current,getScrollInfo:Ho,scrollTo:function(po){function la(Eo){return Eo&&(0,ke.Z)(Eo)==="object"&&("left"in Eo||"top"in Eo)}la(po)?(po.left!==void 0&&At(qo(po.left)),st(po.top)):st(po)}}}),(0,Ft.Z)(function(){if(ei){var Lo=Pn.slice(Ti,Li+1);ei(Lo,Pn)}},[Ti,Li,Pn]);var sa=Xe(Pn,rr,$i,ct),va=Hn==null?void 0:Hn({start:Ti,end:Li,virtual:Ne,offsetX:cn,offsetY:sr,rtl:Ci,getSize:sa}),Ma=de(Pn,Ti,Li,an,cn,di,Bt,wn),hs=null;xe&&(hs=(0,We.Z)((0,ut.Z)({},at?"height":"maxHeight",xe),un),Kr&&(hs.overflowY="hidden",an&&(hs.overflowX="hidden"),fn&&(hs.pointerEvents="none")));var Ga={};return Ci&&(Ga.dir="rtl"),lt.createElement("div",(0,le.Z)({ref:qi,style:(0,We.Z)((0,We.Z)({},qe),{},{position:"relative"}),className:wr},Ga,Hi),lt.createElement(wt.Z,{onResize:Xr},lt.createElement(zn,{className:"".concat(Ae,"-holder"),style:hs,ref:Si,onScroll:nr,onMouseEnter:Ki},lt.createElement(te,{prefixCls:Ae,height:vi,offsetX:cn,offsetY:sr,scrollWidth:an,onInnerResize:xi,ref:Wi,innerProps:Pi,rtl:Ci,extra:va},Ma))),Ne&&vi>xe&<.createElement(yn,{ref:Cr,prefixCls:Ae,scrollOffset:Zt,scrollRange:vi,rtl:Ci,onScroll:Qo,onStartMove:Qn,onStopMove:Et,spinSize:Yi,containerSize:Tn.height,style:bn==null?void 0:bn.verticalScrollBar,thumbStyle:bn==null?void 0:bn.verticalScrollBarThumb,showScrollBar:Zi}),Ne&&an>Tn.width&<.createElement(yn,{ref:Cn,prefixCls:Ae,scrollOffset:cn,scrollRange:an,rtl:Ci,onScroll:Qo,onStartMove:Qn,onStopMove:Et,spinSize:ri,containerSize:Tn.width,horizontal:!0,style:bn==null?void 0:bn.horizontalScrollBar,thumbStyle:bn==null?void 0:bn.horizontalScrollBarThumb,showScrollBar:Zi}))}var St=lt.forwardRef(_n);St.displayName="List";var Zn=St,ci=Zn},54203:function(On,pn,pe){"use strict";pe.d(pn,{Z5:function(){return wg},_l:function(){return hu},bK:function(){return Pc}});var le=pe(59301),ke=pe(75229);function We(Se,Ce){Se.prototype=Object.create(Ce.prototype),Se.prototype.constructor=Se,(0,ke.Z)(Se,Ce)}var ut=pe(96663),Ge=pe(59781),Ue=le.createContext(null),Me=null;function Ct(Se){Se()}var wt=Ct,$e=function(Ce){return wt=Ce},Ft=function(){return wt};function lt(){var Se=Ft(),Ce=null,Te=null;return{clear:function(){Ce=null,Te=null},notify:function(){Se(function(){for(var Pt=Ce;Pt;)Pt.callback(),Pt=Pt.next})},get:function(){for(var Pt=[],yt=Ce;yt;)Pt.push(yt),yt=yt.next;return Pt},subscribe:function(Pt){var yt=!0,kt=Te={callback:Pt,next:null,prev:Te};return kt.prev?kt.prev.next=kt:Ce=kt,function(){!yt||Ce===null||(yt=!1,kt.next?kt.next.prev=kt.prev:Te=kt.prev,kt.prev?kt.prev.next=kt.next:Ce=kt.next)}}}}var vt={notify:function(){},get:function(){return[]}};function Ie(Se,Ce){var Te,Ke=vt;function Pt(Bn){return xn(),Ke.subscribe(Bn)}function yt(){Ke.notify()}function kt(){An.onStateChange&&An.onStateChange()}function Ht(){return!!Te}function xn(){Te||(Te=Ce?Ce.addNestedSub(kt):Se.subscribe(kt),Ke=lt())}function Wn(){Te&&(Te(),Te=void 0,Ke.clear(),Ke=vt)}var An={addNestedSub:Pt,notifyNestedSubs:yt,handleChangeWrapper:kt,isSubscribed:Ht,trySubscribe:xn,tryUnsubscribe:Wn,getListeners:function(){return Ke}};return An}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?le.useLayoutEffect:le.useEffect;function ee(Se){var Ce=Se.store,Te=Se.context,Ke=Se.children,Pt=(0,le.useMemo)(function(){var Ht=Ie(Ce);return{store:Ce,subscription:Ht}},[Ce]),yt=(0,le.useMemo)(function(){return Ce.getState()},[Ce]);te(function(){var Ht=Pt.subscription;return Ht.onStateChange=Ht.notifyNestedSubs,Ht.trySubscribe(),yt!==Ce.getState()&&Ht.notifyNestedSubs(),function(){Ht.tryUnsubscribe(),Ht.onStateChange=null}},[Pt,yt]);var kt=Te||Ue;return le.createElement(kt.Provider,{value:Pt},Ke)}var de=ee,se=pe(30176),he=pe(94266),ve=pe.n(he),Ee=pe(53410),Be=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Le=["reactReduxForwardedRef"],ze=[],je=[null,null],Xe=function(Ce){try{return JSON.stringify(Ce)}catch(Te){return String(Ce)}};function Ye(Se,Ce){var Te=Se[1];return[Ce.payload,Te+1]}function dt(Se,Ce,Te){te(function(){return Se.apply(void 0,Ce)},Te)}function He(Se,Ce,Te,Ke,Pt,yt,kt){Se.current=Ke,Ce.current=Pt,Te.current=!1,yt.current&&(yt.current=null,kt())}function Nt(Se,Ce,Te,Ke,Pt,yt,kt,Ht,xn,Wn){if(Se){var An=!1,Bn=null,Fn=function(){if(!An){var Gr=Ce.getState(),no,yo;try{no=Ke(Gr,Pt.current)}catch(ko){yo=ko,Bn=ko}yo||(Bn=null),no===yt.current?kt.current||xn():(yt.current=no,Ht.current=no,kt.current=!0,Wn({type:"STORE_UPDATED",payload:{error:yo}}))}};Te.onStateChange=Fn,Te.trySubscribe(),Fn();var ni=function(){if(An=!0,Te.tryUnsubscribe(),Te.onStateChange=null,Bn)throw Bn};return ni}}var ot=function(){return[null,0]};function Tt(Se,Ce){Ce===void 0&&(Ce={});var Te=Ce,Ke=Te.getDisplayName,Pt=Ke===void 0?function(ds){return"ConnectAdvanced("+ds+")"}:Ke,yt=Te.methodName,kt=yt===void 0?"connectAdvanced":yt,Ht=Te.renderCountProp,xn=Ht===void 0?void 0:Ht,Wn=Te.shouldHandleStateChanges,An=Wn===void 0?!0:Wn,Bn=Te.storeKey,Fn=Bn===void 0?"store":Bn,ni=Te.withRef,Ii=ni===void 0?!1:ni,Gr=Te.forwardRef,no=Gr===void 0?!1:Gr,yo=Te.context,ko=yo===void 0?Ue:yo,na=(0,se.Z)(Te,Be);if(0)var Jo;var Ia=ko;return function(ks){var Ql=ks.displayName||ks.name||"Component",Is=Pt(Ql),Wl=(0,ut.Z)({},na,{getDisplayName:Pt,methodName:kt,renderCountProp:xn,shouldHandleStateChanges:An,storeKey:Fn,displayName:Is,wrappedComponentName:Ql,WrappedComponent:ks}),_u=na.pure;function Xu(Il){return Se(Il.dispatch,Wl)}var hd=_u?le.useMemo:function(Il){return Il()};function Lc(Il){var Nd=(0,le.useMemo)(function(){var kl=Il.reactReduxForwardedRef,zc=(0,se.Z)(Il,Le);return[Il.context,kl,zc]},[Il]),Gl=Nd[0],fd=Nd[1],vf=Nd[2],gd=(0,le.useMemo)(function(){return Gl&&Gl.Consumer&&(0,Ee.isContextConsumer)(le.createElement(Gl.Consumer,null))?Gl:Ia},[Gl,Ia]),ha=(0,le.useContext)(gd),Wh=!!Il.store&&!!Il.store.getState&&!!Il.store.dispatch,Lg=!!ha&&!!ha.store,pd=Wh?Il.store:ha.store,Qd=(0,le.useMemo)(function(){return Xu(pd)},[pd]),Fh=(0,le.useMemo)(function(){if(!An)return je;var kl=Ie(pd,Wh?null:ha.subscription),zc=kl.notifyNestedSubs.bind(kl);return[kl,zc]},[pd,Wh,ha]),Cc=Fh[0],Yf=Fh[1],Xf=(0,le.useMemo)(function(){return Wh?ha:(0,ut.Z)({},ha,{subscription:Cc})},[Wh,ha,Cc]),op=(0,le.useReducer)(Ye,ze,ot),Wp=op[0],Ng=Wp[0],yf=op[1];if(Ng&&Ng.error)throw Ng.error;var ap=(0,le.useRef)(),Ag=(0,le.useRef)(vf),xf=(0,le.useRef)(),Sf=(0,le.useRef)(!1),Dg=hd(function(){return xf.current&&vf===Ag.current?xf.current:Qd(pd.getState(),vf)},[pd,Ng,vf]);dt(He,[Ag,ap,Sf,vf,Dg,xf,Yf]),dt(Nt,[An,pd,Cc,Qd,Ag,ap,Sf,xf,Yf,yf],[pd,Cc,Qd]);var Ya=(0,le.useMemo)(function(){return le.createElement(ks,(0,ut.Z)({},Dg,{ref:fd}))},[fd,ks,Dg]),Ju=(0,le.useMemo)(function(){return An?le.createElement(gd.Provider,{value:Xf},Ya):Ya},[gd,Ya,Xf]);return Ju}var wc=_u?le.memo(Lc):Lc;if(wc.WrappedComponent=ks,wc.displayName=Lc.displayName=Is,no){var gu=le.forwardRef(function(Nd,Gl){return le.createElement(wc,(0,ut.Z)({},Nd,{reactReduxForwardedRef:Gl}))});return gu.displayName=Is,gu.WrappedComponent=ks,ve()(gu,ks)}return ve()(wc,ks)}}function xt(Se,Ce){return Se===Ce?Se!==0||Ce!==0||1/Se===1/Ce:Se!==Se&&Ce!==Ce}function Ot(Se,Ce){if(xt(Se,Ce))return!0;if(typeof Se!="object"||Se===null||typeof Ce!="object"||Ce===null)return!1;var Te=Object.keys(Se),Ke=Object.keys(Ce);if(Te.length!==Ke.length)return!1;for(var Pt=0;Pt=0;Ke--){var Pt=Ce[Ke](Se);if(Pt)return Pt}return function(yt,kt){throw new Error("Invalid value of type "+typeof Se+" for "+Te+" argument when connecting component "+kt.wrappedComponentName+".")}}function ct(Se,Ce){return Se===Ce}function Mt(Se){var Ce=Se===void 0?{}:Se,Te=Ce.connectHOC,Ke=Te===void 0?Tt:Te,Pt=Ce.mapStateToPropsFactories,yt=Pt===void 0?Gn:Pt,kt=Ce.mapDispatchToPropsFactories,Ht=kt===void 0?zt:kt,xn=Ce.mergePropsFactories,Wn=xn===void 0?ci:xn,An=Ce.selectorFactory,Bn=An===void 0?Ae:An;return function(ni,Ii,Gr,no){no===void 0&&(no={});var yo=no,ko=yo.pure,na=ko===void 0?!0:ko,Jo=yo.areStatesEqual,Ia=Jo===void 0?ct:Jo,ds=yo.areOwnPropsEqual,ks=ds===void 0?Ot:ds,Ql=yo.areStatePropsEqual,Is=Ql===void 0?Ot:Ql,Wl=yo.areMergedPropsEqual,_u=Wl===void 0?Ot:Wl,Xu=(0,se.Z)(yo,Oe),hd=xe(ni,yt,"mapStateToProps"),Lc=xe(Ii,Ht,"mapDispatchToProps"),wc=xe(Gr,Wn,"mergeProps");return Ke(Bn,(0,ut.Z)({methodName:"connect",getDisplayName:function(Il){return"Connect("+Il+")"},shouldHandleStateChanges:!!ni,initMapStateToProps:hd,initMapDispatchToProps:Lc,initMergeProps:wc,pure:na,areStatesEqual:Ia,areOwnPropsEqual:ks,areStatePropsEqual:Is,areMergedPropsEqual:_u},Xu))}}var at=Mt();function qe(){var Se=useContext(ReactReduxContext);return Se}function Lt(Se){Se===void 0&&(Se=ReactReduxContext);var Ce=Se===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Se)};return function(){var Ke=Ce(),Pt=Ke.store;return Pt}}var Bt=null;function ft(Se){Se===void 0&&(Se=ReactReduxContext);var Ce=Se===ReactReduxContext?useDefaultStore:createStoreHook(Se);return function(){var Ke=Ce();return Ke.dispatch}}var Gt=null,Sn=function(Ce,Te){return Ce===Te};function an(Se,Ce,Te,Ke){var Pt=useReducer(function(Ii){return Ii+1},0),yt=Pt[1],kt=useMemo(function(){return createSubscription(Te,Ke)},[Te,Ke]),Ht=useRef(),xn=useRef(),Wn=useRef(),An=useRef(),Bn=Te.getState(),Fn;try{if(Se!==xn.current||Bn!==Wn.current||Ht.current){var ni=Se(Bn);An.current===void 0||!Ce(ni,An.current)?Fn=ni:Fn=An.current}else Fn=An.current}catch(Ii){throw Ht.current&&(Ii.message+=` The error may be correlated with this previous error: `+Ht.current.stack+` `),Ii}return useIsomorphicLayoutEffect(function(){xn.current=Se,Wn.current=Bn,An.current=Fn,Ht.current=void 0}),useIsomorphicLayoutEffect(function(){function Ii(){try{var Gr=Te.getState();if(Gr===Wn.current)return;var no=xn.current(Gr);if(Ce(no,An.current))return;An.current=no,Wn.current=Gr}catch(yo){Ht.current=yo}yt()}return kt.onStateChange=Ii,kt.trySubscribe(),Ii(),function(){return kt.tryUnsubscribe()}},[Te,kt]),Fn}function rn(Se){Se===void 0&&(Se=ReactReduxContext);var Ce=Se===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Se)};return function(Ke,Pt){Pt===void 0&&(Pt=Sn);var yt=Ce(),kt=yt.store,Ht=yt.subscription,xn=an(Ke,Pt,kt,Ht);return useDebugValue(xn),xn}}var zn=null,kn=pe(4676);$e(kn.unstable_batchedUpdates);function mn(Se,Ce){if(Se.length!==Ce.length)return!1;for(var Te=0;Te");return Ke.callbacks},Ke.setCallbacks=function(Ht){Ke.callbacks=Ht},Ke}var Te=Ce.prototype;return Te.componentDidMount=function(){this.unbind=Kn(window,[{eventName:"error",fn:this.onWindowError}])},Te.componentWillUnmount=function(){this.unbind()},Te.componentDidCatch=function(Pt){if(Pt instanceof sn){this.setState({});return}throw Pt},Te.render=function(){return this.props.children(this.setCallbacks)},Ce}(le.Component),Di=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,vi=function(Ce){return Ce+1},Ti=function(Ce){return` You have lifted an item in position `+vi(Ce.source.index)+` `},Li=function(Ce,Te){var Ke=Ce.droppableId===Te.droppableId,Pt=vi(Ce.index),yt=vi(Te.index);return Ke?` You have moved the item from position `+Pt+` to position `+yt+` `:` You have moved the item from position `+Pt+` in list `+Ce.droppableId+` to list `+Te.droppableId+` in position `+yt+` `},sr=function(Ce,Te,Ke){var Pt=Te.droppableId===Ke.droppableId;return Pt?` The item `+Ce+` has been combined with `+Ke.draggableId:` The item `+Ce+` in list `+Te.droppableId+` has been combined with `+Ke.draggableId+` in list `+Ke.droppableId+` `},Zr=function(Ce){var Te=Ce.destination;if(Te)return Li(Ce.source,Te);var Ke=Ce.combine;return Ke?sr(Ce.draggableId,Ce.source,Ke):"You are over an area that cannot be dropped on"},Vr=function(Ce){return` The item has returned to its starting position of `+vi(Ce.index)+` `},Tn=function(Ce){if(Ce.reason==="CANCEL")return` Movement cancelled. `+Vr(Ce.source)+` `;var Te=Ce.destination,Ke=Ce.combine;return Te?` You have dropped the item. `+Li(Ce.source,Te)+` `:Ke?` You have dropped the item. `+sr(Ce.draggableId,Ce.source,Ke)+` `:` The item has been dropped while not over a drop area. `+Vr(Ce.source)+` `},Po={dragHandleUsageInstructions:Di,onDragStart:Ti,onDragUpdate:Zr,onDragEnd:Tn},Xr={x:0,y:0},Cr=function(Ce,Te){return{x:Ce.x+Te.x,y:Ce.y+Te.y}},Cn=function(Ce,Te){return{x:Ce.x-Te.x,y:Ce.y-Te.y}},ri=function(Ce,Te){return Ce.x===Te.x&&Ce.y===Te.y},Yi=function(Ce){return{x:Ce.x!==0?-Ce.x:0,y:Ce.y!==0?-Ce.y:0}},yr=function(Ce,Te,Ke){var Pt;return Ke===void 0&&(Ke=0),Pt={},Pt[Ce]=Te,Pt[Ce==="x"?"y":"x"]=Ke,Pt},er=function(Ce,Te){return Math.sqrt(Math.pow(Te.x-Ce.x,2)+Math.pow(Te.y-Ce.y,2))},Fr=function(Ce,Te){return Math.min.apply(Math,Te.map(function(Ke){return er(Ce,Ke)}))},Ur=function(Ce){return function(Te){return{x:Ce(Te.x),y:Ce(Te.y)}}},zr=function(Se,Ce){var Te=rr({top:Math.max(Ce.top,Se.top),right:Math.min(Ce.right,Se.right),bottom:Math.min(Ce.bottom,Se.bottom),left:Math.max(Ce.left,Se.left)});return Te.width<=0||Te.height<=0?null:Te},Tr=function(Ce,Te){return{top:Ce.top+Te.y,left:Ce.left+Te.x,bottom:Ce.bottom+Te.y,right:Ce.right+Te.x}},Yr=function(Ce){return[{x:Ce.left,y:Ce.top},{x:Ce.right,y:Ce.top},{x:Ce.left,y:Ce.bottom},{x:Ce.right,y:Ce.bottom}]},Un={top:0,right:0,bottom:0,left:0},Ho=function(Ce,Te){return Te?Tr(Ce,Te.scroll.diff.displacement):Ce},Yn=function(Ce,Te,Ke){if(Ke&&Ke.increasedBy){var Pt;return(0,ut.Z)({},Ce,(Pt={},Pt[Te.end]=Ce[Te.end]+Ke.increasedBy[Te.line],Pt))}return Ce},Ao=function(Ce,Te){return Te&&Te.shouldClipSubject?zr(Te.pageMarginBox,Ce):rr(Ce)},Qo=function(Se){var Ce=Se.page,Te=Se.withPlaceholder,Ke=Se.axis,Pt=Se.frame,yt=Ho(Ce.marginBox,Pt),kt=Yn(yt,Ke,Te),Ht=Ao(kt,Pt);return{page:Ce,withPlaceholder:Te,active:Ht}},nr=function(Se,Ce){Se.frame||In(!1);var Te=Se.frame,Ke=Cn(Ce,Te.scroll.initial),Pt=Yi(Ke),yt=(0,ut.Z)({},Te,{scroll:{initial:Te.scroll.initial,current:Ce,diff:{value:Ke,displacement:Pt},max:Te.scroll.max}}),kt=Qo({page:Se.subject.page,withPlaceholder:Se.subject.withPlaceholder,axis:Se.axis,frame:yt}),Ht=(0,ut.Z)({},Se,{frame:yt,subject:kt});return Ht};function qo(Se){return Number.isInteger?Number.isInteger(Se):typeof Se=="number"&&isFinite(Se)&&Math.floor(Se)===Se}function Go(Se){return Object.values?Object.values(Se):Object.keys(Se).map(function(Ce){return Se[Ce]})}function Lr(Se,Ce){if(Se.findIndex)return Se.findIndex(Ce);for(var Te=0;TeSe.bottom,Wn=Ke.leftSe.right,An=xn&&Wn;if(An)return!0;var Bn=xn&&kt||Wn&&yt;return Bn}},Qr=function(Se){var Ce=os(Se.top,Se.bottom),Te=os(Se.left,Se.right);return function(Ke){var Pt=Ce(Ke.top)&&Ce(Ke.bottom)&&Te(Ke.left)&&Te(Ke.right);return Pt}},pi={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},io={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ro=function(Se){return function(Ce){var Te=os(Ce.top,Ce.bottom),Ke=os(Ce.left,Ce.right);return function(Pt){return Se===pi?Te(Pt.top)&&Te(Pt.bottom):Ke(Pt.left)&&Ke(Pt.right)}}},Ja=function(Ce,Te){var Ke=Te.frame?Te.frame.scroll.diff.displacement:Xr;return Tr(Ce,Ke)},Ca=function(Ce,Te,Ke){return Te.subject.active?Ke(Te.subject.active)(Ce):!1},fa=function(Ce,Te,Ke){return Ke(Te)(Ce)},$a=function(Ce){var Te=Ce.target,Ke=Ce.destination,Pt=Ce.viewport,yt=Ce.withDroppableDisplacement,kt=Ce.isVisibleThroughFrameFn,Ht=yt?Ja(Te,Ke):Te;return Ca(Ht,Ke,kt)&&fa(Ht,Pt,kt)},Qa=function(Ce){return $a((0,ut.Z)({},Ce,{isVisibleThroughFrameFn:xo}))},Es=function(Ce){return $a((0,ut.Z)({},Ce,{isVisibleThroughFrameFn:Qr}))},ys=function(Ce){return $a((0,ut.Z)({},Ce,{isVisibleThroughFrameFn:ro(Ce.destination.axis)}))},Zs=function(Ce,Te,Ke){if(typeof Ke=="boolean")return Ke;if(!Te)return!0;var Pt=Te.invisible,yt=Te.visible;if(Pt[Ce])return!1;var kt=yt[Ce];return kt?kt.shouldAnimate:!0};function Mn(Se,Ce){var Te=Se.page.marginBox,Ke={top:Ce.point.y,right:0,bottom:0,left:Ce.point.x};return rr(_r(Te,Ke))}function Ss(Se){var Ce=Se.afterDragging,Te=Se.destination,Ke=Se.displacedBy,Pt=Se.viewport,yt=Se.forceShouldAnimate,kt=Se.last;return Ce.reduce(function(xn,Wn){var An=Mn(Wn,Ke),Bn=Wn.descriptor.id;xn.all.push(Bn);var Fn=Qa({target:An,destination:Te,viewport:Pt,withDroppableDisplacement:!0});if(!Fn)return xn.invisible[Wn.descriptor.id]=!0,xn;var ni=Zs(Bn,kt,yt),Ii={draggableId:Bn,shouldAnimate:ni};return xn.visible[Bn]=Ii,xn},{all:[],visible:{},invisible:{}})}function ra(Se,Ce){if(!Se.length)return 0;var Te=Se[Se.length-1].descriptor.index;return Ce.inHomeList?Te:Te+1}function hl(Se){var Ce=Se.insideDestination,Te=Se.inHomeList,Ke=Se.displacedBy,Pt=Se.destination,yt=ra(Ce,{inHomeList:Te});return{displaced:Eo,displacedBy:Ke,at:{type:"REORDER",destination:{droppableId:Pt.descriptor.id,index:yt}}}}function Ol(Se){var Ce=Se.draggable,Te=Se.insideDestination,Ke=Se.destination,Pt=Se.viewport,yt=Se.displacedBy,kt=Se.last,Ht=Se.index,xn=Se.forceShouldAnimate,Wn=po(Ce,Ke);if(Ht==null)return hl({insideDestination:Te,inHomeList:Wn,displacedBy:yt,destination:Ke});var An=br(Te,function(Gr){return Gr.descriptor.index===Ht});if(!An)return hl({insideDestination:Te,inHomeList:Wn,displacedBy:yt,destination:Ke});var Bn=Ga(Ce,Te),Fn=Te.indexOf(An),ni=Bn.slice(Fn),Ii=Ss({afterDragging:ni,destination:Ke,displacedBy:yt,last:kt,viewport:Pt.frame,forceShouldAnimate:xn});return{displaced:Ii,displacedBy:yt,at:{type:"REORDER",destination:{droppableId:Ke.descriptor.id,index:Ht}}}}function ns(Se,Ce){return!!Ce.effected[Se]}var yu=function(Se){var Ce=Se.isMovingForward,Te=Se.destination,Ke=Se.draggables,Pt=Se.combine,yt=Se.afterCritical;if(!Te.isCombineEnabled)return null;var kt=Pt.draggableId,Ht=Ke[kt],xn=Ht.descriptor.index,Wn=ns(kt,yt);return Wn?Ce?xn:xn-1:Ce?xn+1:xn},eu=function(Se){var Ce=Se.isMovingForward,Te=Se.isInHomeList,Ke=Se.insideDestination,Pt=Se.location;if(!Ke.length)return null;var yt=Pt.index,kt=Ce?yt+1:yt-1,Ht=Ke[0].descriptor.index,xn=Ke[Ke.length-1].descriptor.index,Wn=Te?xn:xn+1;return ktWn?null:kt},ps=function(Se){var Ce=Se.isMovingForward,Te=Se.isInHomeList,Ke=Se.draggable,Pt=Se.draggables,yt=Se.destination,kt=Se.insideDestination,Ht=Se.previousImpact,xn=Se.viewport,Wn=Se.afterCritical,An=Ht.at;if(An||In(!1),An.type==="REORDER"){var Bn=eu({isMovingForward:Ce,isInHomeList:Te,location:An.destination,insideDestination:kt});return Bn==null?null:Ol({draggable:Ke,insideDestination:kt,destination:yt,viewport:xn,last:Ht.displaced,displacedBy:Ht.displacedBy,index:Bn})}var Fn=yu({isMovingForward:Ce,destination:yt,displaced:Ht.displaced,draggables:Pt,combine:An.combine,afterCritical:Wn});return Fn==null?null:Ol({draggable:Ke,insideDestination:kt,destination:yt,viewport:xn,last:Ht.displaced,displacedBy:Ht.displacedBy,index:Fn})},Ba=function(Se){var Ce=Se.displaced,Te=Se.afterCritical,Ke=Se.combineWith,Pt=Se.displacedBy,yt=!!(Ce.visible[Ke]||Ce.invisible[Ke]);return ns(Ke,Te)?yt?Xr:Yi(Pt.point):yt?Pt.point:Xr},tu=function(Se){var Ce=Se.afterCritical,Te=Se.impact,Ke=Se.draggables,Pt=hs(Te);Pt||In(!1);var yt=Pt.draggableId,kt=Ke[yt].page.borderBox.center,Ht=Ba({displaced:Te.displaced,afterCritical:Ce,combineWith:yt,displacedBy:Te.displacedBy});return Cr(kt,Ht)},Do=function(Ce,Te){return Te.margin[Ce.start]+Te.borderBox[Ce.size]/2},Ea=function(Ce,Te){return Te.margin[Ce.end]+Te.borderBox[Ce.size]/2},ca=function(Ce,Te,Ke){return Te[Ce.crossAxisStart]+Ke.margin[Ce.crossAxisStart]+Ke.borderBox[Ce.crossAxisSize]/2},hr=function(Ce){var Te=Ce.axis,Ke=Ce.moveRelativeTo,Pt=Ce.isMoving;return yr(Te.line,Ke.marginBox[Te.end]+Do(Te,Pt),ca(Te,Ke.marginBox,Pt))},Rs=function(Ce){var Te=Ce.axis,Ke=Ce.moveRelativeTo,Pt=Ce.isMoving;return yr(Te.line,Ke.marginBox[Te.start]-Ea(Te,Pt),ca(Te,Ke.marginBox,Pt))},ls=function(Ce){var Te=Ce.axis,Ke=Ce.moveInto,Pt=Ce.isMoving;return yr(Te.line,Ke.contentBox[Te.start]+Do(Te,Pt),ca(Te,Ke.contentBox,Pt))},sl=function(Se){var Ce=Se.impact,Te=Se.draggable,Ke=Se.draggables,Pt=Se.droppable,yt=Se.afterCritical,kt=va(Pt.descriptor.id,Ke),Ht=Te.page,xn=Pt.axis;if(!kt.length)return ls({axis:xn,moveInto:Pt.page,isMoving:Ht});var Wn=Ce.displaced,An=Ce.displacedBy,Bn=Wn.all[0];if(Bn){var Fn=Ke[Bn];if(ns(Bn,yt))return Rs({axis:xn,moveRelativeTo:Fn.page,isMoving:Ht});var ni=Sr(Fn.page,An.point);return Rs({axis:xn,moveRelativeTo:ni,isMoving:Ht})}var Ii=kt[kt.length-1];if(Ii.descriptor.id===Te.descriptor.id)return Ht.borderBox.center;if(ns(Ii.descriptor.id,yt)){var Gr=Sr(Ii.page,Yi(yt.displacedBy.point));return hr({axis:xn,moveRelativeTo:Gr,isMoving:Ht})}return hr({axis:xn,moveRelativeTo:Ii.page,isMoving:Ht})},jl=function(Se,Ce){var Te=Se.frame;return Te?Cr(Ce,Te.scroll.diff.displacement):Ce},ou=function(Ce){var Te=Ce.impact,Ke=Ce.draggable,Pt=Ce.droppable,yt=Ce.draggables,kt=Ce.afterCritical,Ht=Ke.page.borderBox.center,xn=Te.at;return!Pt||!xn?Ht:xn.type==="REORDER"?sl({impact:Te,draggable:Ke,draggables:yt,droppable:Pt,afterCritical:kt}):tu({impact:Te,draggables:yt,afterCritical:kt})},Ji=function(Se){var Ce=ou(Se),Te=Se.droppable,Ke=Te?jl(Te,Ce):Ce;return Ke},Cs=function(Se,Ce){var Te=Cn(Ce,Se.scroll.initial),Ke=Yi(Te),Pt=rr({top:Ce.y,bottom:Ce.y+Se.frame.height,left:Ce.x,right:Ce.x+Se.frame.width}),yt={frame:Pt,scroll:{initial:Se.scroll.initial,max:Se.scroll.max,current:Ce,diff:{value:Te,displacement:Ke}}};return yt};function Us(Se,Ce){return Se.map(function(Te){return Ce[Te]})}function $l(Se,Ce){for(var Te=0;Te1?An.sort(function(Bn,Fn){return En(Bn)[Ht.start]-En(Fn)[Ht.start]})[0]:Wn.sort(function(Bn,Fn){var ni=Fr(Te,Yr(En(Bn))),Ii=Fr(Te,Yr(En(Fn)));return ni!==Ii?ni-Ii:En(Bn)[Ht.start]-En(Fn)[Ht.start]})[0]},ai=function(Ce,Te){var Ke=Ce.page.borderBox.center;return ns(Ce.descriptor.id,Te)?Cn(Ke,Te.displacedBy.point):Ke},Qi=function(Ce,Te){var Ke=Ce.page.borderBox;return ns(Ce.descriptor.id,Te)?Tr(Ke,Yi(Te.displacedBy.point)):Ke},Gi=function(Se){var Ce=Se.pageBorderBoxCenter,Te=Se.viewport,Ke=Se.destination,Pt=Se.insideDestination,yt=Se.afterCritical,kt=Pt.filter(function(Ht){return Es({target:Qi(Ht,yt),destination:Ke,viewport:Te.frame,withDroppableDisplacement:!0})}).sort(function(Ht,xn){var Wn=er(Ce,jl(Ke,ai(Ht,yt))),An=er(Ce,jl(Ke,ai(xn,yt)));return WnCe.left&&Se.topCe.top}function eo(Se){var Ce=Se.pageBorderBox,Te=Se.draggable,Ke=Se.candidates,Pt=Te.page.borderBox.center,yt=Ke.map(function(kt){var Ht=kt.axis,xn=yr(kt.axis.line,Ce.center[Ht.line],kt.page.borderBox.center[Ht.crossAxisLine]);return{id:kt.descriptor.id,distance:er(Pt,xn)}}).sort(function(kt,Ht){return Ht.distance-kt.distance});return yt[0]?yt[0].id:null}function Ko(Se){var Ce=Se.pageBorderBox,Te=Se.draggable,Ke=Se.droppables,Pt=st(Ke).filter(function(yt){if(!yt.isEnabled)return!1;var kt=yt.subject.active;if(!kt||!Fi(Ce,kt))return!1;if(qr(kt)(Ce.center))return!0;var Ht=yt.axis,xn=kt.center[Ht.crossAxisLine],Wn=Ce[Ht.crossAxisStart],An=Ce[Ht.crossAxisEnd],Bn=os(kt[Ht.crossAxisStart],kt[Ht.crossAxisEnd]),Fn=Bn(Wn),ni=Bn(An);return!Fn&&!ni?!0:Fn?Wnxn});return Pt.length?Pt.length===1?Pt[0].descriptor.id:eo({pageBorderBox:Ce,draggable:Te,candidates:Pt}):null}var ma=function(Ce,Te){return rr(Tr(Ce,Te))},ya=function(Se,Ce){var Te=Se.frame;return Te?ma(Ce,Te.scroll.diff.value):Ce};function bo(Se){var Ce=Se.displaced,Te=Se.id;return!!(Ce.visible[Te]||Ce.invisible[Te])}function oa(Se){var Ce=Se.draggable,Te=Se.closest,Ke=Se.inHomeList;return Te?Ke&&Te.descriptor.index>Ce.descriptor.index?Te.descriptor.index-1:Te.descriptor.index:null}var Io=function(Se){var Ce=Se.pageBorderBoxWithDroppableScroll,Te=Se.draggable,Ke=Se.destination,Pt=Se.insideDestination,yt=Se.last,kt=Se.viewport,Ht=Se.afterCritical,xn=Ke.axis,Wn=ki(Ke.axis,Te.displaceBy),An=Wn.value,Bn=Ce[xn.start],Fn=Ce[xn.end],ni=Ga(Te,Pt),Ii=br(ni,function(no){var yo=no.descriptor.id,ko=no.page.borderBox.center[xn.line],na=ns(yo,Ht),Jo=bo({displaced:yt,id:yo});return na?Jo?Fn<=ko:Bnyo[Ht.start]+na&&Bnyo[Ht.start]-Wn+na&&Anyo[Ht.start]+Wn+na&&Bnyo[Ht.start]+na&&An=Fd)return bd;var yt=Pt/Fd,kt=yc+_d*yt,Ht=Ke==="CANCEL"?kt*ch:kt;return Number(Ht.toFixed(2))},fo=function(Se){var Ce=Se.impact,Te=Se.draggable,Ke=Se.dimensions,Pt=Se.viewport,yt=Se.afterCritical,kt=Ke.draggables,Ht=Ke.droppables,xn=$o(Ce),Wn=xn?Ht[xn]:null,An=Ht[Te.descriptor.droppableId],Bn=nt({impact:Ce,draggable:Te,draggables:kt,afterCritical:yt,droppable:Wn||An,viewport:Pt}),Fn=Cn(Bn,Te.client.borderBox.center);return Fn},Xa=function(Se){var Ce=Se.draggables,Te=Se.reason,Ke=Se.lastImpact,Pt=Se.home,yt=Se.viewport,kt=Se.onLiftImpact;if(!Ke.at||Te!=="DROP"){var Ht=Dn({draggables:Ce,impact:kt,destination:Pt,viewport:yt,forceShouldAnimate:!0});return{impact:Ht,didDropInsideDroppable:!1}}if(Ke.at.type==="REORDER")return{impact:Ke,didDropInsideDroppable:!0};var xn=(0,ut.Z)({},Ke,{displaced:Eo});return{impact:xn,didDropInsideDroppable:!0}},rt=function(Se){var Ce=Se.getState,Te=Se.dispatch;return function(Ke){return function(Pt){if(Pt.type!=="DROP"){Ke(Pt);return}var yt=Ce(),kt=Pt.payload.reason;if(yt.phase==="COLLECTING"){Te(ad({reason:kt}));return}if(yt.phase!=="IDLE"){var Ht=yt.phase==="DROP_PENDING"&&yt.isWaiting;Ht&&In(!1),yt.phase==="DRAGGING"||yt.phase==="DROP_PENDING"||In(!1);var xn=yt.critical,Wn=yt.dimensions,An=Wn.draggables[yt.critical.draggable.id],Bn=Xa({reason:kt,lastImpact:yt.impact,afterCritical:yt.afterCritical,onLiftImpact:yt.onLiftImpact,home:yt.dimensions.droppables[yt.critical.droppable.id],viewport:yt.viewport,draggables:yt.dimensions.draggables}),Fn=Bn.impact,ni=Bn.didDropInsideDroppable,Ii=ni?Ma(Fn):null,Gr=ni?hs(Fn):null,no={index:xn.draggable.index,droppableId:xn.droppable.id},yo={draggableId:An.descriptor.id,type:An.descriptor.type,source:no,reason:kt,mode:yt.movementMode,destination:Ii,combine:Gr},ko=fo({impact:Fn,draggable:An,dimensions:Wn,viewport:yt.viewport,afterCritical:yt.afterCritical}),na={critical:yt.critical,afterCritical:yt.afterCritical,result:yo,impact:Fn},Jo=!ri(yt.current.client.offset,ko)||!!yo.combine;if(!Jo){Te(gl({completed:na}));return}var Ia=li({current:yt.current.client.offset,destination:ko,reason:kt}),ds={newHomeClientOffset:ko,dropDuration:Ia,completed:na};Te(Hs(ds))}}}},et=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ut(Se){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Te){Te.target!==window&&Te.target!==window.document||Se()}}}function Xt(Se){var Ce=Se.onWindowScroll;function Te(){Ce(et())}var Ke=Zt(Te),Pt=Ut(Ke),yt=Et;function kt(){return yt!==Et}function Ht(){kt()&&In(!1),yt=Kn(window,[Pt])}function xn(){kt()||In(!1),Ke.cancel(),yt(),yt=Et}return{start:Ht,stop:xn,isActive:kt}}var gn=function(Ce){return Ce.type==="DROP_COMPLETE"||Ce.type==="DROP_ANIMATE"||Ce.type==="FLUSH"},nn=function(Se){var Ce=Xt({onWindowScroll:function(Ke){Se.dispatch(Wa({newScroll:Ke}))}});return function(Te){return function(Ke){!Ce.isActive()&&Ke.type==="INITIAL_PUBLISH"&&Ce.start(),Ce.isActive()&&gn(Ke)&&Ce.stop(),Te(Ke)}}},Vn=function(Se){var Ce=!1,Te=!1,Ke=setTimeout(function(){Te=!0}),Pt=function(kt){Ce||Te||(Ce=!0,Se(kt),clearTimeout(Ke))};return Pt.wasCalled=function(){return Ce},Pt},jn=function(){var Se=[],Ce=function(yt){var kt=Lr(Se,function(Wn){return Wn.timerId===yt});kt===-1&&In(!1);var Ht=Se.splice(kt,1),xn=Ht[0];xn.callback()},Te=function(yt){var kt=setTimeout(function(){return Ce(kt)}),Ht={timerId:kt,callback:yt};Se.push(Ht)},Ke=function(){if(Se.length){var yt=[].concat(Se);Se.length=0,yt.forEach(function(kt){clearTimeout(kt.timerId),kt.callback()})}};return{add:Te,flush:Ke}},Xn=function(Ce,Te){return Ce==null&&Te==null?!0:Ce==null||Te==null?!1:Ce.droppableId===Te.droppableId&&Ce.index===Te.index},yi=function(Ce,Te){return Ce==null&&Te==null?!0:Ce==null||Te==null?!1:Ce.draggableId===Te.draggableId&&Ce.droppableId===Te.droppableId},Jn=function(Ce,Te){if(Ce===Te)return!0;var Ke=Ce.draggable.id===Te.draggable.id&&Ce.draggable.droppableId===Te.draggable.droppableId&&Ce.draggable.type===Te.draggable.type&&Ce.draggable.index===Te.draggable.index,Pt=Ce.droppable.id===Te.droppable.id&&Ce.droppable.type===Te.droppable.type;return Ke&&Pt},mi=function(Ce,Te){ur(),Te(),Bi()},or=function(Ce,Te){return{draggableId:Ce.draggable.id,type:Ce.droppable.type,source:{droppableId:Ce.droppable.id,index:Ce.draggable.index},mode:Te}},Vi=function(Ce,Te,Ke,Pt){if(!Ce){Ke(Pt(Te));return}var yt=Vn(Ke),kt={announce:yt};Ce(Te,kt),yt.wasCalled()||Ke(Pt(Te))},Ui=function(Se,Ce){var Te=jn(),Ke=null,Pt=function(Fn,ni){Ke&&In(!1),mi("onBeforeCapture",function(){var Ii=Se().onBeforeCapture;if(Ii){var Gr={draggableId:Fn,mode:ni};Ii(Gr)}})},yt=function(Fn,ni){Ke&&In(!1),mi("onBeforeDragStart",function(){var Ii=Se().onBeforeDragStart;Ii&&Ii(or(Fn,ni))})},kt=function(Fn,ni){Ke&&In(!1);var Ii=or(Fn,ni);Ke={mode:ni,lastCritical:Fn,lastLocation:Ii.source,lastCombine:null},Te.add(function(){mi("onDragStart",function(){return Vi(Se().onDragStart,Ii,Ce,Po.onDragStart)})})},Ht=function(Fn,ni){var Ii=Ma(ni),Gr=hs(ni);Ke||In(!1);var no=!Jn(Fn,Ke.lastCritical);no&&(Ke.lastCritical=Fn);var yo=!Xn(Ke.lastLocation,Ii);yo&&(Ke.lastLocation=Ii);var ko=!yi(Ke.lastCombine,Gr);if(ko&&(Ke.lastCombine=Gr),!(!no&&!yo&&!ko)){var na=(0,ut.Z)({},or(Fn,Ke.mode),{combine:Gr,destination:Ii});Te.add(function(){mi("onDragUpdate",function(){return Vi(Se().onDragUpdate,na,Ce,Po.onDragUpdate)})})}},xn=function(){Ke||In(!1),Te.flush()},Wn=function(Fn){Ke||In(!1),Ke=null,mi("onDragEnd",function(){return Vi(Se().onDragEnd,Fn,Ce,Po.onDragEnd)})},An=function(){if(Ke){var Fn=(0,ut.Z)({},or(Ke.lastCritical,Ke.mode),{combine:null,destination:null,reason:"CANCEL"});Wn(Fn)}};return{beforeCapture:Pt,beforeStart:yt,start:kt,update:Ht,flush:xn,drop:Wn,abort:An}},Jr=function(Se,Ce){var Te=Ui(Se,Ce);return function(Ke){return function(Pt){return function(yt){if(yt.type==="BEFORE_INITIAL_CAPTURE"){Te.beforeCapture(yt.payload.draggableId,yt.payload.movementMode);return}if(yt.type==="INITIAL_PUBLISH"){var kt=yt.payload.critical;Te.beforeStart(kt,yt.payload.movementMode),Pt(yt),Te.start(kt,yt.payload.movementMode);return}if(yt.type==="DROP_COMPLETE"){var Ht=yt.payload.completed.result;Te.flush(),Pt(yt),Te.drop(Ht);return}if(Pt(yt),yt.type==="FLUSH"){Te.abort();return}var xn=Ke.getState();xn.phase==="DRAGGING"&&Te.update(xn.critical,xn.impact)}}}},ir=function(Se){return function(Ce){return function(Te){if(Te.type!=="DROP_ANIMATION_FINISHED"){Ce(Te);return}var Ke=Se.getState();Ke.phase!=="DROP_ANIMATING"&&In(!1),Se.dispatch(gl({completed:Ke.completed}))}}},Rr=function(Se){var Ce=null,Te=null;function Ke(){Te&&(cancelAnimationFrame(Te),Te=null),Ce&&(Ce(),Ce=null)}return function(Pt){return function(yt){if((yt.type==="FLUSH"||yt.type==="DROP_COMPLETE"||yt.type==="DROP_ANIMATION_FINISHED")&&Ke(),Pt(yt),yt.type==="DROP_ANIMATE"){var kt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xn=Se.getState();xn.phase==="DROP_ANIMATING"&&Se.dispatch(kc())}};Te=requestAnimationFrame(function(){Te=null,Ce=Kn(window,[kt])})}}}},jr=function(Se){return function(){return function(Ce){return function(Te){(Te.type==="DROP_COMPLETE"||Te.type==="FLUSH"||Te.type==="DROP_ANIMATE")&&Se.stopPublishing(),Ce(Te)}}}},vo=function(Se){var Ce=!1;return function(){return function(Te){return function(Ke){if(Ke.type==="INITIAL_PUBLISH"){Ce=!0,Se.tryRecordFocus(Ke.payload.critical.draggable.id),Te(Ke),Se.tryRestoreFocusRecorded();return}if(Te(Ke),!!Ce){if(Ke.type==="FLUSH"){Ce=!1,Se.tryRestoreFocusRecorded();return}if(Ke.type==="DROP_COMPLETE"){Ce=!1;var Pt=Ke.payload.completed.result;Pt.combine&&Se.tryShiftRecord(Pt.draggableId,Pt.combine.draggableId),Se.tryRestoreFocusRecorded()}}}}}},Vo=function(Ce){return Ce.type==="DROP_COMPLETE"||Ce.type==="DROP_ANIMATE"||Ce.type==="FLUSH"},ua=function(Se){return function(Ce){return function(Te){return function(Ke){if(Vo(Ke)){Se.stop(),Te(Ke);return}if(Ke.type==="INITIAL_PUBLISH"){Te(Ke);var Pt=Ce.getState();Pt.phase!=="DRAGGING"&&In(!1),Se.start(Pt);return}Te(Ke),Se.scroll(Ce.getState())}}}},oo=function(Se){return function(Ce){return function(Te){if(Ce(Te),Te.type==="PUBLISH_WHILE_DRAGGING"){var Ke=Se.getState();Ke.phase==="DROP_PENDING"&&(Ke.isWaiting||Se.dispatch(rc({reason:Ke.reason})))}}}},Wo=Ge.qC,Ta=function(Se){var Ce=Se.dimensionMarshal,Te=Se.focusMarshal,Ke=Se.styleMarshal,Pt=Se.getResponders,yt=Se.announce,kt=Se.autoScroller;return(0,Ge.MT)(Wr,Wo((0,Ge.md)(du(Ke),jr(Ce),as(Ce),rt,ir,Rr,oo,ua(kt),nn,vo(Te),Jr(Pt,yt))))},uo=function(){return{additions:{},removals:{},modified:{}}};function To(Se){var Ce=Se.registry,Te=Se.callbacks,Ke=uo(),Pt=null,yt=function(){Pt||(Te.collectionStarting(),Pt=requestAnimationFrame(function(){Pt=null,ur();var An=Ke,Bn=An.additions,Fn=An.removals,ni=An.modified,Ii=Object.keys(Bn).map(function(yo){return Ce.draggable.getById(yo).getDimension(Xr)}).sort(function(yo,ko){return yo.descriptor.index-ko.descriptor.index}),Gr=Object.keys(ni).map(function(yo){var ko=Ce.droppable.getById(yo),na=ko.callbacks.getScrollWhileDragging();return{droppableId:yo,scroll:na}}),no={additions:Ii,removals:Object.keys(Fn),modified:Gr};Ke=uo(),Bi(),Te.publish(no)}))},kt=function(An){var Bn=An.descriptor.id;Ke.additions[Bn]=An,Ke.modified[An.descriptor.droppableId]=!0,Ke.removals[Bn]&&delete Ke.removals[Bn],yt()},Ht=function(An){var Bn=An.descriptor;Ke.removals[Bn.id]=!0,Ke.modified[Bn.droppableId]=!0,Ke.additions[Bn.id]&&delete Ke.additions[Bn.id],yt()},xn=function(){Pt&&(cancelAnimationFrame(Pt),Pt=null,Ke=uo())};return{add:kt,remove:Ht,stop:xn}}var co=function(Se){var Ce=Se.scrollHeight,Te=Se.scrollWidth,Ke=Se.height,Pt=Se.width,yt=Cn({x:Te,y:Ce},{x:Pt,y:Ke}),kt={x:Math.max(0,yt.x),y:Math.max(0,yt.y)};return kt},Ar=function(){var Se=document.documentElement;return Se||In(!1),Se},Fo=function(){var Se=Ar(),Ce=co({scrollHeight:Se.scrollHeight,scrollWidth:Se.scrollWidth,width:Se.clientWidth,height:Se.clientHeight});return Ce},ta=function(){var Se=et(),Ce=Fo(),Te=Se.y,Ke=Se.x,Pt=Ar(),yt=Pt.clientWidth,kt=Pt.clientHeight,Ht=Ke+yt,xn=Te+kt,Wn=rr({top:Te,left:Ke,right:Ht,bottom:xn}),An={frame:Wn,scroll:{initial:Se,current:Se,max:Ce,diff:{value:Xr,displacement:Xr}}};return An},Sa=function(Se){var Ce=Se.critical,Te=Se.scrollOptions,Ke=Se.registry;ur();var Pt=ta(),yt=Pt.scroll.current,kt=Ce.droppable,Ht=Ke.droppable.getAllByType(kt.type).map(function(Bn){return Bn.callbacks.getDimensionAndWatchScroll(yt,Te)}),xn=Ke.draggable.getAllByType(Ce.draggable.type).map(function(Bn){return Bn.getDimension(yt)}),Wn={draggables:Ki(xn),droppables:Yo(Ht)};Bi();var An={dimensions:Wn,critical:Ce,viewport:Pt};return An};function Pa(Se,Ce,Te){if(Te.descriptor.id===Ce.id||Te.descriptor.type!==Ce.type)return!1;var Ke=Se.droppable.getById(Te.descriptor.droppableId);return Ke.descriptor.mode==="virtual"}var ao=function(Se,Ce){var Te=null,Ke=To({callbacks:{publish:Ce.publishWhileDragging,collectionStarting:Ce.collectionStarting},registry:Se}),Pt=function(ni,Ii){Se.droppable.exists(ni)||In(!1),Te&&Ce.updateDroppableIsEnabled({id:ni,isEnabled:Ii})},yt=function(ni,Ii){Te&&(Se.droppable.exists(ni)||In(!1),Ce.updateDroppableIsCombineEnabled({id:ni,isCombineEnabled:Ii}))},kt=function(ni,Ii){Te&&(Se.droppable.exists(ni)||In(!1),Ce.updateDroppableScroll({id:ni,newScroll:Ii}))},Ht=function(ni,Ii){Te&&Se.droppable.getById(ni).callbacks.scroll(Ii)},xn=function(){if(Te){Ke.stop();var ni=Te.critical.droppable;Se.droppable.getAllByType(ni.type).forEach(function(Ii){return Ii.callbacks.dragStopped()}),Te.unsubscribe(),Te=null}},Wn=function(ni){Te||In(!1);var Ii=Te.critical.draggable;ni.type==="ADDITION"&&Pa(Se,Ii,ni.value)&&Ke.add(ni.value),ni.type==="REMOVAL"&&Pa(Se,Ii,ni.value)&&Ke.remove(ni.value)},An=function(ni){Te&&In(!1);var Ii=Se.draggable.getById(ni.draggableId),Gr=Se.droppable.getById(Ii.descriptor.droppableId),no={draggable:Ii.descriptor,droppable:Gr.descriptor},yo=Se.subscribe(Wn);return Te={critical:no,unsubscribe:yo},Sa({critical:no,registry:Se,scrollOptions:ni.scrollOptions})},Bn={updateDroppableIsEnabled:Pt,updateDroppableIsCombineEnabled:yt,scrollDroppable:Ht,updateDroppableScroll:kt,startPublishing:An,stopPublishing:xn};return Bn},ka=function(Se,Ce){return Se.phase==="IDLE"?!0:Se.phase!=="DROP_ANIMATING"||Se.completed.result.draggableId===Ce?!1:Se.completed.result.reason==="DROP"},Va=function(Se){window.scrollBy(Se.x,Se.y)},bs=$n(function(Se){return st(Se).filter(function(Ce){return!(!Ce.isEnabled||!Ce.frame)})}),us=function(Ce,Te){var Ke=br(bs(Te),function(Pt){return Pt.frame||In(!1),qr(Pt.frame.pageMarginBox)(Ce)});return Ke},qs=function(Se){var Ce=Se.center,Te=Se.destination,Ke=Se.droppables;if(Te){var Pt=Ke[Te];return Pt.frame?Pt:null}var yt=us(Ce,Ke);return yt},Ls={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Ce){return Math.pow(Ce,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Za=function(Se,Ce){var Te=Se[Ce.size]*Ls.startFromPercentage,Ke=Se[Ce.size]*Ls.maxScrollAtPercentage,Pt={startScrollingFrom:Te,maxScrollValueAt:Ke};return Pt},aa=function(Se){var Ce=Se.startOfRange,Te=Se.endOfRange,Ke=Se.current,Pt=Te-Ce;if(Pt===0)return 0;var yt=Ke-Ce,kt=yt/Pt;return kt},fs=1,el=function(Se,Ce){if(Se>Ce.startScrollingFrom)return 0;if(Se<=Ce.maxScrollValueAt)return Ls.maxPixelScroll;if(Se===Ce.startScrollingFrom)return fs;var Te=aa({startOfRange:Ce.maxScrollValueAt,endOfRange:Ce.startScrollingFrom,current:Se}),Ke=1-Te,Pt=Ls.maxPixelScroll*Ls.ease(Ke);return Math.ceil(Pt)},Ws=Ls.durationDampening.accelerateAt,cl=Ls.durationDampening.stopDampeningAt,ba=function(Se,Ce){var Te=Ce,Ke=cl,Pt=Date.now(),yt=Pt-Te;if(yt>=cl)return Se;if(ytCe.height,yt=Te.width>Ce.width;return!yt&&!Pt?Ke:yt&&Pt?null:{x:yt?0:Ke.x,y:Pt?0:Ke.y}},Ps=Ur(function(Se){return Se===0?0:Se}),Uo=function(Se){var Ce=Se.dragStartTime,Te=Se.container,Ke=Se.subject,Pt=Se.center,yt=Se.shouldUseTimeDampening,kt={top:Pt.y-Te.top,right:Te.right-Pt.x,bottom:Te.bottom-Pt.y,left:Pt.x-Te.left},Ht=wa({container:Te,distanceToEdges:kt,dragStartTime:Ce,axis:pi,shouldUseTimeDampening:yt}),xn=wa({container:Te,distanceToEdges:kt,dragStartTime:Ce,axis:io,shouldUseTimeDampening:yt}),Wn=Ps({x:xn,y:Ht});if(ri(Wn,Xr))return null;var An=Xo({container:Te,subject:Ke,proposedScroll:Wn});return An?ri(An,Xr)?null:An:null},Ra=Ur(function(Se){return Se===0?0:Se>0?1:-1}),ss=function(){var Se=function(Te,Ke){return Te<0?Te:Te>Ke?Te-Ke:0};return function(Ce){var Te=Ce.current,Ke=Ce.max,Pt=Ce.change,yt=Cr(Te,Pt),kt={x:Se(yt.x,Ke.x),y:Se(yt.y,Ke.y)};return ri(kt,Xr)?null:kt}}(),cs=function(Ce){var Te=Ce.max,Ke=Ce.current,Pt=Ce.change,yt={x:Math.max(Ke.x,Te.x),y:Math.max(Ke.y,Te.y)},kt=Ra(Pt),Ht=ss({max:yt,current:Ke,change:kt});return!Ht||kt.x!==0&&Ht.x===0||kt.y!==0&&Ht.y===0},Al=function(Ce,Te){return cs({current:Ce.scroll.current,max:Ce.scroll.max,change:Te})},bl=function(Ce,Te){if(!Al(Ce,Te))return null;var Ke=Ce.scroll.max,Pt=Ce.scroll.current;return ss({current:Pt,max:Ke,change:Te})},Vl=function(Ce,Te){var Ke=Ce.frame;return Ke?cs({current:Ke.scroll.current,max:Ke.scroll.max,change:Te}):!1},Fs=function(Ce,Te){var Ke=Ce.frame;return!Ke||!Vl(Ce,Te)?null:ss({current:Ke.scroll.current,max:Ke.scroll.max,change:Te})},Zl=function(Se){var Ce=Se.viewport,Te=Se.subject,Ke=Se.center,Pt=Se.dragStartTime,yt=Se.shouldUseTimeDampening,kt=Uo({dragStartTime:Pt,container:Ce.frame,subject:Te,center:Ke,shouldUseTimeDampening:yt});return kt&&Al(Ce,kt)?kt:null},dl=function(Se){var Ce=Se.droppable,Te=Se.subject,Ke=Se.center,Pt=Se.dragStartTime,yt=Se.shouldUseTimeDampening,kt=Ce.frame;if(!kt)return null;var Ht=Uo({dragStartTime:Pt,container:kt.pageMarginBox,subject:Te,center:Ke,shouldUseTimeDampening:yt});return Ht&&Vl(Ce,Ht)?Ht:null},Fl=function(Se){var Ce=Se.state,Te=Se.dragStartTime,Ke=Se.shouldUseTimeDampening,Pt=Se.scrollWindow,yt=Se.scrollDroppable,kt=Ce.current.page.borderBoxCenter,Ht=Ce.dimensions.draggables[Ce.critical.draggable.id],xn=Ht.page.marginBox;if(Ce.isWindowScrollAllowed){var Wn=Ce.viewport,An=Zl({dragStartTime:Te,viewport:Wn,subject:xn,center:kt,shouldUseTimeDampening:Ke});if(An){Pt(An);return}}var Bn=qs({center:kt,destination:$o(Ce.impact),droppables:Ce.dimensions.droppables});if(Bn){var Fn=dl({dragStartTime:Te,droppable:Bn,subject:xn,center:kt,shouldUseTimeDampening:Ke});Fn&&yt(Bn.descriptor.id,Fn)}},_c=function(Se){var Ce=Se.scrollWindow,Te=Se.scrollDroppable,Ke=Zt(Ce),Pt=Zt(Te),yt=null,kt=function(An){yt||In(!1);var Bn=yt,Fn=Bn.shouldUseTimeDampening,ni=Bn.dragStartTime;Fl({state:An,scrollWindow:Ke,scrollDroppable:Pt,dragStartTime:ni,shouldUseTimeDampening:Fn})},Ht=function(An){ur(),yt&&In(!1);var Bn=Date.now(),Fn=!1,ni=function(){Fn=!0};Fl({state:An,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:ni,scrollDroppable:ni}),yt={dragStartTime:Bn,shouldUseTimeDampening:Fn},Bi(),Fn&&kt(An)},xn=function(){yt&&(Ke.cancel(),Pt.cancel(),yt=null)};return{start:Ht,stop:xn,scroll:kt}},Bs=function(Se){var Ce=Se.move,Te=Se.scrollDroppable,Ke=Se.scrollWindow,Pt=function(Wn,An){var Bn=Cr(Wn.current.client.selection,An);Ce({client:Bn})},yt=function(Wn,An){if(!Vl(Wn,An))return An;var Bn=Fs(Wn,An);if(!Bn)return Te(Wn.descriptor.id,An),null;var Fn=Cn(An,Bn);Te(Wn.descriptor.id,Fn);var ni=Cn(An,Fn);return ni},kt=function(Wn,An,Bn){if(!Wn||!Al(An,Bn))return Bn;var Fn=bl(An,Bn);if(!Fn)return Ke(Bn),null;var ni=Cn(Bn,Fn);Ke(ni);var Ii=Cn(Bn,ni);return Ii},Ht=function(Wn){var An=Wn.scrollJumpRequest;if(An){var Bn=$o(Wn.impact);Bn||In(!1);var Fn=yt(Wn.dimensions.droppables[Bn],An);if(Fn){var ni=Wn.viewport,Ii=kt(Wn.isWindowScrollAllowed,ni,Fn);Ii&&Pt(Wn,Ii)}}};return Ht},Ts=function(Se){var Ce=Se.scrollDroppable,Te=Se.scrollWindow,Ke=Se.move,Pt=_c({scrollWindow:Te,scrollDroppable:Ce}),yt=Bs({move:Ke,scrollWindow:Te,scrollDroppable:Ce}),kt=function(Wn){if(Wn.phase==="DRAGGING"){if(Wn.movementMode==="FLUID"){Pt.scroll(Wn);return}Wn.scrollJumpRequest&&yt(Wn)}},Ht={scroll:kt,start:Pt.start,stop:Pt.stop};return Ht},Ms="data-rbd",Gs=function(){var Se=Ms+"-drag-handle";return{base:Se,draggableId:Se+"-draggable-id",contextId:Se+"-context-id"}}(),pl=function(){var Se=Ms+"-draggable";return{base:Se,contextId:Se+"-context-id",id:Se+"-id"}}(),is=function(){var Se=Ms+"-droppable";return{base:Se,contextId:Se+"-context-id",id:Se+"-id"}}(),js={contextId:Ms+"-scroll-container-context-id"},Dl=function(Ce){return function(Te){return"["+Te+'="'+Ce+'"]'}},Ul=function(Ce,Te){return Ce.map(function(Ke){var Pt=Ke.styles[Te];return Pt?Ke.selector+" { "+Pt+" }":""}).join(" ")},Gu="pointer-events: none;",Du=function(Se){var Ce=Dl(Se),Te=function(){var Ht=` cursor: -webkit-grab; cursor: grab; `;return{selector:Ce(Gs.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:Ht,dragging:Gu,dropAnimating:Ht}}}(),Ke=function(){var Ht=` transition: `+su.outOfTheWay+`; `;return{selector:Ce(pl.contextId),styles:{dragging:Ht,dropAnimating:Ht,userCancel:Ht}}}(),Pt={selector:Ce(is.contextId),styles:{always:"overflow-anchor: none;"}},yt={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}},kt=[Ke,Te,Pt,yt];return{always:Ul(kt,"always"),resting:Ul(kt,"resting"),dragging:Ul(kt,"dragging"),dropAnimating:Ul(kt,"dropAnimating"),userCancel:Ul(kt,"userCancel")}},ml=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?le.useLayoutEffect:le.useEffect,Iu=function(){var Ce=document.querySelector("head");return Ce||In(!1),Ce},Ou=function(Ce){var Te=document.createElement("style");return Ce&&Te.setAttribute("nonce",Ce),Te.type="text/css",Te};function Ns(Se,Ce){var Te=Hn(function(){return Du(Se)},[Se]),Ke=(0,le.useRef)(null),Pt=(0,le.useRef)(null),yt=bn($n(function(Bn){var Fn=Pt.current;Fn||In(!1),Fn.textContent=Bn}),[]),kt=bn(function(Bn){var Fn=Ke.current;Fn||In(!1),Fn.textContent=Bn},[]);ml(function(){!Ke.current&&!Pt.current||In(!1);var Bn=Ou(Ce),Fn=Ou(Ce);return Ke.current=Bn,Pt.current=Fn,Bn.setAttribute(Ms+"-always",Se),Fn.setAttribute(Ms+"-dynamic",Se),Iu().appendChild(Bn),Iu().appendChild(Fn),kt(Te.always),yt(Te.resting),function(){var ni=function(Gr){var no=Gr.current;no||In(!1),Iu().removeChild(no),Gr.current=null};ni(Ke),ni(Pt)}},[Ce,kt,yt,Te.always,Te.resting,Se]);var Ht=bn(function(){return yt(Te.dragging)},[yt,Te.dragging]),xn=bn(function(Bn){if(Bn==="DROP"){yt(Te.dropAnimating);return}yt(Te.userCancel)},[yt,Te.dropAnimating,Te.userCancel]),Wn=bn(function(){Pt.current&&yt(Te.resting)},[yt,Te.resting]),An=Hn(function(){return{dragging:Ht,dropping:xn,resting:Wn}},[Ht,xn,Wn]);return An}var Hl=function(Se){return Se&&Se.ownerDocument?Se.ownerDocument.defaultView:window};function $s(Se){return Se instanceof Hl(Se).HTMLElement}function zs(Se,Ce){var Te="["+Gs.contextId+'="'+Se+'"]',Ke=mo(document.querySelectorAll(Te));if(!Ke.length)return null;var Pt=br(Ke,function(yt){return yt.getAttribute(Gs.draggableId)===Ce});return!Pt||!$s(Pt)?null:Pt}function $u(Se){var Ce=(0,le.useRef)({}),Te=(0,le.useRef)(null),Ke=(0,le.useRef)(null),Pt=(0,le.useRef)(!1),yt=bn(function(Fn,ni){var Ii={id:Fn,focus:ni};return Ce.current[Fn]=Ii,function(){var no=Ce.current,yo=no[Fn];yo!==Ii&&delete no[Fn]}},[]),kt=bn(function(Fn){var ni=zs(Se,Fn);ni&&ni!==document.activeElement&&ni.focus()},[Se]),Ht=bn(function(Fn,ni){Te.current===Fn&&(Te.current=ni)},[]),xn=bn(function(){Ke.current||Pt.current&&(Ke.current=requestAnimationFrame(function(){Ke.current=null;var Fn=Te.current;Fn&&kt(Fn)}))},[kt]),Wn=bn(function(Fn){Te.current=null;var ni=document.activeElement;ni&&ni.getAttribute(Gs.draggableId)===Fn&&(Te.current=Fn)},[]);ml(function(){return Pt.current=!0,function(){Pt.current=!1;var Fn=Ke.current;Fn&&cancelAnimationFrame(Fn)}},[]);var An=Hn(function(){return{register:yt,tryRecordFocus:Wn,tryRestoreFocusRecorded:xn,tryShiftRecord:Ht}},[yt,Wn,xn,Ht]);return An}function Vc(){var Se={draggables:{},droppables:{}},Ce=[];function Te(Bn){return Ce.push(Bn),function(){var ni=Ce.indexOf(Bn);ni!==-1&&Ce.splice(ni,1)}}function Ke(Bn){Ce.length&&Ce.forEach(function(Fn){return Fn(Bn)})}function Pt(Bn){return Se.draggables[Bn]||null}function yt(Bn){var Fn=Pt(Bn);return Fn||In(!1),Fn}var kt={register:function(Fn){Se.draggables[Fn.descriptor.id]=Fn,Ke({type:"ADDITION",value:Fn})},update:function(Fn,ni){var Ii=Se.draggables[ni.descriptor.id];Ii&&Ii.uniqueId===Fn.uniqueId&&(delete Se.draggables[ni.descriptor.id],Se.draggables[Fn.descriptor.id]=Fn)},unregister:function(Fn){var ni=Fn.descriptor.id,Ii=Pt(ni);Ii&&Fn.uniqueId===Ii.uniqueId&&(delete Se.draggables[ni],Ke({type:"REMOVAL",value:Fn}))},getById:yt,findById:Pt,exists:function(Fn){return!!Pt(Fn)},getAllByType:function(Fn){return Go(Se.draggables).filter(function(ni){return ni.descriptor.type===Fn})}};function Ht(Bn){return Se.droppables[Bn]||null}function xn(Bn){var Fn=Ht(Bn);return Fn||In(!1),Fn}var Wn={register:function(Fn){Se.droppables[Fn.descriptor.id]=Fn},unregister:function(Fn){var ni=Ht(Fn.descriptor.id);ni&&Fn.uniqueId===ni.uniqueId&&delete Se.droppables[Fn.descriptor.id]},getById:xn,findById:Ht,exists:function(Fn){return!!Ht(Fn)},getAllByType:function(Fn){return Go(Se.droppables).filter(function(ni){return ni.descriptor.type===Fn})}};function An(){Se.draggables={},Se.droppables={},Ce.length=0}return{draggable:kt,droppable:Wn,subscribe:Te,clean:An}}function sc(){var Se=Hn(Vc,[]);return(0,le.useEffect)(function(){return function(){requestAnimationFrame(Se.clean)}},[Se]),Se}var lc=le.createContext(null),Ku=function(){var Se=document.body;return Se||In(!1),Se},Tu={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ws=function(Ce){return"rbd-announcement-"+Ce};function Ys(Se){var Ce=Hn(function(){return ws(Se)},[Se]),Te=(0,le.useRef)(null);(0,le.useEffect)(function(){var yt=document.createElement("div");return Te.current=yt,yt.id=Ce,yt.setAttribute("aria-live","assertive"),yt.setAttribute("aria-atomic","true"),(0,ut.Z)(yt.style,Tu),Ku().appendChild(yt),function(){setTimeout(function(){var xn=Ku();xn.contains(yt)&&xn.removeChild(yt),yt===Te.current&&(Te.current=null)})}},[Ce]);var Ke=bn(function(Pt){var yt=Te.current;if(yt){yt.textContent=Pt;return}},[]);return Ke}var vl=0,Xs={separator:"::"};function ms(){vl=0}function yl(Se,Ce){return Ce===void 0&&(Ce=Xs),Hn(function(){return""+Se+Ce.separator+vl++},[Ce.separator,Se])}function Su(Se){var Ce=Se.contextId,Te=Se.uniqueId;return"rbd-hidden-text-"+Ce+"-"+Te}function xc(Se){var Ce=Se.contextId,Te=Se.text,Ke=yl("hidden-text",{separator:"-"}),Pt=Hn(function(){return Su({contextId:Ce,uniqueId:Ke})},[Ke,Ce]);return(0,le.useEffect)(function(){var kt=document.createElement("div");return kt.id=Pt,kt.textContent=Te,kt.style.display="none",Ku().appendChild(kt),function(){var xn=Ku();xn.contains(kt)&&xn.removeChild(kt)}},[Pt,Te]),Pt}var jd=le.createContext(null),dn={react:"^16.8.5","react-dom":"^16.8.5"},sd=/(\d+)\.(\d+)\.(\d+)/,Bc=function(Ce){var Te=sd.exec(Ce);Te==null&&In(!1);var Ke=Number(Te[1]),Pt=Number(Te[2]),yt=Number(Te[3]);return{major:Ke,minor:Pt,patch:yt,raw:Ce}},df=function(Ce,Te){return Te.major>Ce.major?!0:Te.majorCe.minor?!0:Te.minor=Ce.patch},zd=function(Se,Ce){var Te=Bc(Se),Ke=Bc(Ce);df(Te,Ke)},Zd=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md `,Rh=function(Se){var Ce=Se.doctype;Ce&&(Ce.name.toLowerCase(),Ce.publicId)};function Qg(Se){}function Bl(Se,Ce){}function dh(){Bl(function(){zd(dn.react,le.version),Rh(document)},[])}function Hd(Se){var Ce=(0,le.useRef)(Se);return(0,le.useEffect)(function(){Ce.current=Se}),Ce}function hh(){var Se=null;function Ce(){return!!Se}function Te(kt){return kt===Se}function Ke(kt){Se&&In(!1);var Ht={abandon:kt};return Se=Ht,Ht}function Pt(){Se||In(!1),Se=null}function yt(){Se&&(Se.abandon(),Pt())}return{isClaimed:Ce,isActive:Te,claim:Ke,release:Pt,tryAbandon:yt}}var hf=9,Hf=13,fh=27,gh=32,Vu=33,Wd=34,ff=35,Mc=36,ld=37,Gd=38,Bd=39,Pu=40,Md,_h=(Md={},Md[Hf]=!0,Md[hf]=!0,Md),ku=function(Se){_h[Se.keyCode]&&Se.preventDefault()},Uc=function(){var Se="visibilitychange";if(typeof document=="undefined")return Se;var Ce=[Se,"ms"+Se,"webkit"+Se,"moz"+Se,"o"+Se],Te=br(Ce,function(Ke){return"on"+Ke in document});return Te||Se}(),ph=0,mh=5;function ud(Se,Ce){return Math.abs(Ce.x-Se.x)>=mh||Math.abs(Ce.y-Se.y)>=mh}var lu={type:"IDLE"};function jh(Se){var Ce=Se.cancel,Te=Se.completed,Ke=Se.getPhase,Pt=Se.setPhase;return[{eventName:"mousemove",fn:function(kt){var Ht=kt.button,xn=kt.clientX,Wn=kt.clientY;if(Ht===ph){var An={x:xn,y:Wn},Bn=Ke();if(Bn.type==="DRAGGING"){kt.preventDefault(),Bn.actions.move(An);return}Bn.type!=="PENDING"&&In(!1);var Fn=Bn.point;if(ud(Fn,An)){kt.preventDefault();var ni=Bn.actions.fluidLift(An);Pt({type:"DRAGGING",actions:ni})}}}},{eventName:"mouseup",fn:function(kt){var Ht=Ke();if(Ht.type!=="DRAGGING"){Ce();return}kt.preventDefault(),Ht.actions.drop({shouldBlockNextClick:!0}),Te()}},{eventName:"mousedown",fn:function(kt){Ke().type==="DRAGGING"&&kt.preventDefault(),Ce()}},{eventName:"keydown",fn:function(kt){var Ht=Ke();if(Ht.type==="PENDING"){Ce();return}if(kt.keyCode===fh){kt.preventDefault(),Ce();return}ku(kt)}},{eventName:"resize",fn:Ce},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ke().type==="PENDING"&&Ce()}},{eventName:"webkitmouseforcedown",fn:function(kt){var Ht=Ke();if(Ht.type==="IDLE"&&In(!1),Ht.actions.shouldRespectForcePress()){Ce();return}kt.preventDefault()}},{eventName:Uc,fn:Ce}]}function Ml(Se){var Ce=(0,le.useRef)(lu),Te=(0,le.useRef)(Et),Ke=Hn(function(){return{eventName:"mousedown",fn:function(Bn){if(!Bn.defaultPrevented&&Bn.button===ph&&!(Bn.ctrlKey||Bn.metaKey||Bn.shiftKey||Bn.altKey)){var Fn=Se.findClosestDraggableId(Bn);if(Fn){var ni=Se.tryGetLock(Fn,kt,{sourceEvent:Bn});if(ni){Bn.preventDefault();var Ii={x:Bn.clientX,y:Bn.clientY};Te.current(),Wn(ni,Ii)}}}}}},[Se]),Pt=Hn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Bn){if(!Bn.defaultPrevented){var Fn=Se.findClosestDraggableId(Bn);if(Fn){var ni=Se.findOptionsForDraggable(Fn);ni&&(ni.shouldRespectForcePress||Se.canGetLock(Fn)&&Bn.preventDefault())}}}}},[Se]),yt=bn(function(){var Bn={passive:!1,capture:!0};Te.current=Kn(window,[Pt,Ke],Bn)},[Pt,Ke]),kt=bn(function(){var An=Ce.current;An.type!=="IDLE"&&(Ce.current=lu,Te.current(),yt())},[yt]),Ht=bn(function(){var An=Ce.current;kt(),An.type==="DRAGGING"&&An.actions.cancel({shouldBlockNextClick:!0}),An.type==="PENDING"&&An.actions.abort()},[kt]),xn=bn(function(){var Bn={capture:!0,passive:!1},Fn=jh({cancel:Ht,completed:kt,getPhase:function(){return Ce.current},setPhase:function(Ii){Ce.current=Ii}});Te.current=Kn(window,Fn,Bn)},[Ht,kt]),Wn=bn(function(Bn,Fn){Ce.current.type!=="IDLE"&&In(!1),Ce.current={type:"PENDING",point:Fn,actions:Bn},xn()},[xn]);ml(function(){return yt(),function(){Te.current()}},[yt])}var gs;function Js(){}var nu=(gs={},gs[Wd]=!0,gs[Vu]=!0,gs[Mc]=!0,gs[ff]=!0,gs);function uc(Se,Ce){function Te(){Ce(),Se.cancel()}function Ke(){Ce(),Se.drop()}return[{eventName:"keydown",fn:function(yt){if(yt.keyCode===fh){yt.preventDefault(),Te();return}if(yt.keyCode===gh){yt.preventDefault(),Ke();return}if(yt.keyCode===Pu){yt.preventDefault(),Se.moveDown();return}if(yt.keyCode===Gd){yt.preventDefault(),Se.moveUp();return}if(yt.keyCode===Bd){yt.preventDefault(),Se.moveRight();return}if(yt.keyCode===ld){yt.preventDefault(),Se.moveLeft();return}if(nu[yt.keyCode]){yt.preventDefault();return}ku(yt)}},{eventName:"mousedown",fn:Te},{eventName:"mouseup",fn:Te},{eventName:"click",fn:Te},{eventName:"touchstart",fn:Te},{eventName:"resize",fn:Te},{eventName:"wheel",fn:Te,options:{passive:!0}},{eventName:Uc,fn:Te}]}function cc(Se){var Ce=(0,le.useRef)(Js),Te=Hn(function(){return{eventName:"keydown",fn:function(yt){if(yt.defaultPrevented||yt.keyCode!==gh)return;var kt=Se.findClosestDraggableId(yt);if(!kt)return;var Ht=Se.tryGetLock(kt,An,{sourceEvent:yt});if(!Ht)return;yt.preventDefault();var xn=!0,Wn=Ht.snapLift();Ce.current();function An(){xn||In(!1),xn=!1,Ce.current(),Ke()}Ce.current=Kn(window,uc(Wn,An),{capture:!0,passive:!1})}}},[Se]),Ke=bn(function(){var yt={passive:!1,capture:!0};Ce.current=Kn(window,[Te],yt)},[Te]);ml(function(){return Ke(),function(){Ce.current()}},[Ke])}var $d={type:"IDLE"},cd=120,vh=.15;function Sc(Se){var Ce=Se.cancel,Te=Se.getPhase;return[{eventName:"orientationchange",fn:Ce},{eventName:"resize",fn:Ce},{eventName:"contextmenu",fn:function(Pt){Pt.preventDefault()}},{eventName:"keydown",fn:function(Pt){if(Te().type!=="DRAGGING"){Ce();return}Pt.keyCode===fh&&Pt.preventDefault(),Ce()}},{eventName:Uc,fn:Ce}]}function Yc(Se){var Ce=Se.cancel,Te=Se.completed,Ke=Se.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(yt){var kt=Ke();if(kt.type!=="DRAGGING"){Ce();return}kt.hasMoved=!0;var Ht=yt.touches[0],xn=Ht.clientX,Wn=Ht.clientY,An={x:xn,y:Wn};yt.preventDefault(),kt.actions.move(An)}},{eventName:"touchend",fn:function(yt){var kt=Ke();if(kt.type!=="DRAGGING"){Ce();return}yt.preventDefault(),kt.actions.drop({shouldBlockNextClick:!0}),Te()}},{eventName:"touchcancel",fn:function(yt){if(Ke().type!=="DRAGGING"){Ce();return}yt.preventDefault(),Ce()}},{eventName:"touchforcechange",fn:function(yt){var kt=Ke();kt.type==="IDLE"&&In(!1);var Ht=yt.touches[0];if(Ht){var xn=Ht.force>=vh;if(xn){var Wn=kt.actions.shouldRespectForcePress();if(kt.type==="PENDING"){Wn&&Ce();return}if(Wn){if(kt.hasMoved){yt.preventDefault();return}Ce();return}yt.preventDefault()}}}},{eventName:Uc,fn:Ce}]}function Wf(Se){var Ce=(0,le.useRef)($d),Te=(0,le.useRef)(Et),Ke=bn(function(){return Ce.current},[]),Pt=bn(function(ni){Ce.current=ni},[]),yt=Hn(function(){return{eventName:"touchstart",fn:function(ni){if(!ni.defaultPrevented){var Ii=Se.findClosestDraggableId(ni);if(Ii){var Gr=Se.tryGetLock(Ii,Ht,{sourceEvent:ni});if(Gr){var no=ni.touches[0],yo=no.clientX,ko=no.clientY,na={x:yo,y:ko};Te.current(),Bn(Gr,na)}}}}}},[Se]),kt=bn(function(){var ni={capture:!0,passive:!1};Te.current=Kn(window,[yt],ni)},[yt]),Ht=bn(function(){var Fn=Ce.current;Fn.type!=="IDLE"&&(Fn.type==="PENDING"&&clearTimeout(Fn.longPressTimerId),Pt($d),Te.current(),kt())},[kt,Pt]),xn=bn(function(){var Fn=Ce.current;Ht(),Fn.type==="DRAGGING"&&Fn.actions.cancel({shouldBlockNextClick:!0}),Fn.type==="PENDING"&&Fn.actions.abort()},[Ht]),Wn=bn(function(){var ni={capture:!0,passive:!1},Ii={cancel:xn,completed:Ht,getPhase:Ke},Gr=Kn(window,Yc(Ii),ni),no=Kn(window,Sc(Ii),ni);Te.current=function(){Gr(),no()}},[xn,Ke,Ht]),An=bn(function(){var ni=Ke();ni.type!=="PENDING"&&In(!1);var Ii=ni.actions.fluidLift(ni.point);Pt({type:"DRAGGING",actions:Ii,hasMoved:!1})},[Ke,Pt]),Bn=bn(function(ni,Ii){Ke().type!=="IDLE"&&In(!1);var Gr=setTimeout(An,cd);Pt({type:"PENDING",point:Ii,actions:ni,longPressTimerId:Gr}),Wn()},[Wn,Ke,Pt,An]);ml(function(){return kt(),function(){Te.current();var Ii=Ke();Ii.type==="PENDING"&&(clearTimeout(Ii.longPressTimerId),Pt($d))}},[Ke,kt,Pt]),ml(function(){var ni=Kn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return ni},[])}function Gf(Se){}var $f={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kd(Se,Ce){if(Ce==null)return!1;var Te=!!$f[Ce.tagName.toLowerCase()];if(Te)return!0;var Ke=Ce.getAttribute("contenteditable");return Ke==="true"||Ke===""?!0:Ce===Se?!1:Kd(Se,Ce.parentElement)}function hg(Se,Ce){var Te=Ce.target;return $s(Te)?Kd(Se,Te):!1}var fg=function(Se){return rr(Se.getBoundingClientRect()).center};function gg(Se){return Se instanceof Hl(Se).Element}var Xc=function(){var Se="matches";if(typeof document=="undefined")return Se;var Ce=[Se,"msMatchesSelector","webkitMatchesSelector"],Te=br(Ce,function(Ke){return Ke in Element.prototype});return Te||Se}();function pg(Se,Ce){return Se==null?null:Se[Xc](Ce)?Se:pg(Se.parentElement,Ce)}function mg(Se,Ce){return Se.closest?Se.closest(Ce):pg(Se,Ce)}function zh(Se){return"["+Gs.contextId+'="'+Se+'"]'}function yh(Se,Ce){var Te=Ce.target;if(!gg(Te))return null;var Ke=zh(Se),Pt=mg(Te,Ke);return!Pt||!$s(Pt)?null:Pt}function vg(Se,Ce){var Te=yh(Se,Ce);return Te?Te.getAttribute(Gs.draggableId):null}function Jc(Se,Ce){var Te="["+pl.contextId+'="'+Se+'"]',Ke=mo(document.querySelectorAll(Te)),Pt=br(Ke,function(yt){return yt.getAttribute(pl.id)===Ce});return!Pt||!$s(Pt)?null:Pt}function yg(Se){Se.preventDefault()}function xh(Se){var Ce=Se.expected,Te=Se.phase,Ke=Se.isLockActive,Pt=Se.shouldWarn;return!(!Ke()||Ce!==Te)}function xg(Se){var Ce=Se.lockAPI,Te=Se.store,Ke=Se.registry,Pt=Se.draggableId;if(Ce.isClaimed())return!1;var yt=Ke.draggable.findById(Pt);return!(!yt||!yt.options.isEnabled||!ka(Te.getState(),Pt))}function Sg(Se){var Ce=Se.lockAPI,Te=Se.contextId,Ke=Se.store,Pt=Se.registry,yt=Se.draggableId,kt=Se.forceSensorStop,Ht=Se.sourceEvent,xn=xg({lockAPI:Ce,store:Ke,registry:Pt,draggableId:yt});if(!xn)return null;var Wn=Pt.draggable.getById(yt),An=Jc(Te,Wn.descriptor.id);if(!An||Ht&&!Wn.options.canDragInteractiveElements&&hg(An,Ht))return null;var Bn=Ce.claim(kt||Et),Fn="PRE_DRAG";function ni(){return Wn.options.shouldRespectForcePress}function Ii(){return Ce.isActive(Bn)}function Gr(ds,ks){xh({expected:ds,phase:Fn,isLockActive:Ii,shouldWarn:!0})&&Ke.dispatch(ks())}var no=Gr.bind(null,"DRAGGING");function yo(ds){function ks(){Ce.release(),Fn="COMPLETED"}Fn!=="PRE_DRAG"&&(ks(),Fn!=="PRE_DRAG"&&In(!1)),Ke.dispatch(Br(ds.liftActionArgs)),Fn="DRAGGING";function Ql(Is,Wl){if(Wl===void 0&&(Wl={shouldBlockNextClick:!1}),ds.cleanup(),Wl.shouldBlockNextClick){var _u=Kn(window,[{eventName:"click",fn:yg,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(_u)}ks(),Ke.dispatch(rc({reason:Is}))}return(0,ut.Z)({isActive:function(){return xh({expected:"DRAGGING",phase:Fn,isLockActive:Ii,shouldWarn:!1})},shouldRespectForcePress:ni,drop:function(Wl){return Ql("DROP",Wl)},cancel:function(Wl){return Ql("CANCEL",Wl)}},ds.actions)}function ko(ds){var ks=Zt(function(Is){no(function(){return xa({client:Is})})}),Ql=yo({liftActionArgs:{id:yt,clientSelection:ds,movementMode:"FLUID"},cleanup:function(){return ks.cancel()},actions:{move:ks}});return(0,ut.Z)({},Ql,{move:ks})}function na(){var ds={moveUp:function(){return no(Oa)},moveRight:function(){return no(Nr)},moveDown:function(){return no(El)},moveLeft:function(){return no(_s)}};return yo({liftActionArgs:{id:yt,clientSelection:fg(An),movementMode:"SNAP"},cleanup:Et,actions:ds})}function Jo(){var ds=xh({expected:"PRE_DRAG",phase:Fn,isLockActive:Ii,shouldWarn:!0});ds&&Ce.release()}var Ia={isActive:function(){return xh({expected:"PRE_DRAG",phase:Fn,isLockActive:Ii,shouldWarn:!1})},shouldRespectForcePress:ni,fluidLift:ko,snapLift:na,abort:Jo};return Ia}var Pg=[Ml,cc,Wf];function Hp(Se){var Ce=Se.contextId,Te=Se.store,Ke=Se.registry,Pt=Se.customSensors,yt=Se.enableDefaultSensors,kt=[].concat(yt?Pg:[],Pt||[]),Ht=(0,le.useState)(function(){return hh()})[0],xn=bn(function(ko,na){ko.isDragging&&!na.isDragging&&Ht.tryAbandon()},[Ht]);ml(function(){var ko=Te.getState(),na=Te.subscribe(function(){var Jo=Te.getState();xn(ko,Jo),ko=Jo});return na},[Ht,Te,xn]),ml(function(){return Ht.tryAbandon},[Ht.tryAbandon]);var Wn=bn(function(yo){return xg({lockAPI:Ht,registry:Ke,store:Te,draggableId:yo})},[Ht,Ke,Te]),An=bn(function(yo,ko,na){return Sg({lockAPI:Ht,registry:Ke,contextId:Ce,store:Te,draggableId:yo,forceSensorStop:ko,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Ce,Ht,Ke,Te]),Bn=bn(function(yo){return vg(Ce,yo)},[Ce]),Fn=bn(function(yo){var ko=Ke.draggable.findById(yo);return ko?ko.options:null},[Ke.draggable]),ni=bn(function(){Ht.isClaimed()&&(Ht.tryAbandon(),Te.getState().phase!=="IDLE"&&Te.dispatch(jo()))},[Ht,Te]),Ii=bn(Ht.isClaimed,[Ht]),Gr=Hn(function(){return{canGetLock:Wn,tryGetLock:An,findClosestDraggableId:Bn,findOptionsForDraggable:Fn,tryReleaseLock:ni,isLockClaimed:Ii}},[Wn,An,Bn,Fn,ni,Ii]);Gf(kt);for(var no=0;notypeof wt=="object"&&wt!=null&&wt.nodeType===1,ke=(wt,$e)=>(!$e||wt!=="hidden")&&wt!=="visible"&&wt!=="clip",We=(wt,$e)=>{if(wt.clientHeight{const vt=(Ie=>{if(!Ie.ownerDocument||!Ie.ownerDocument.defaultView)return null;try{return Ie.ownerDocument.defaultView.frameElement}catch(te){return null}})(lt);return!!vt&&(vt.clientHeightIe$e||Ie>wt&&te<$e?0:Ie<=wt&&ee<=Ft||te>=$e&&ee>=Ft?Ie-wt-lt:te>$e&&eeFt?te-$e+vt:0,Ge=wt=>{const $e=wt.parentElement;return $e==null?wt.getRootNode().host||null:$e},Ue=(wt,$e)=>{var Ft,lt,vt,Ie;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:de,boundary:se,skipOverflowHiddenElements:he}=$e,ve=typeof se=="function"?se:yn=>yn!==se;if(!le(wt))throw new TypeError("Invalid target");const Ee=document.scrollingElement||document.documentElement,Be=[];let Le=wt;for(;le(Le)&&ve(Le);){if(Le=Ge(Le),Le===Ee){Be.push(Le);break}Le!=null&&Le===document.body&&We(Le)&&!We(document.documentElement)||Le!=null&&We(Le,he)&&Be.push(Le)}const ze=(lt=(Ft=window.visualViewport)==null?void 0:Ft.width)!=null?lt:innerWidth,je=(Ie=(vt=window.visualViewport)==null?void 0:vt.height)!=null?Ie:innerHeight,{scrollX:Xe,scrollY:Ye}=window,{height:dt,width:He,top:Nt,right:ot,bottom:Tt,left:xt}=wt.getBoundingClientRect(),{top:Ot,right:Wt,bottom:Dt,left:tt}=(yn=>{const zt=window.getComputedStyle(yn);return{top:parseFloat(zt.scrollMarginTop)||0,right:parseFloat(zt.scrollMarginRight)||0,bottom:parseFloat(zt.scrollMarginBottom)||0,left:parseFloat(zt.scrollMarginLeft)||0}})(wt);let Ve=ee==="start"||ee==="nearest"?Nt-Ot:ee==="end"?Tt+Dt:Nt+dt/2-Ot+Dt,_t=de==="center"?xt+He/2-tt+Wt:de==="end"?ot+Wt:xt-tt;const vn=[];for(let yn=0;yn=0&&xt>=0&&Tt<=je&&ot<=ze&&(zt===Ee&&!We(zt)||Nt>=Gn&&Tt<=_n&&xt>=St&&ot<=un))return vn;const Zn=getComputedStyle(zt),ci=parseInt(Zn.borderLeftWidth,10),Ze=parseInt(Zn.borderTopWidth,10),be=parseInt(Zn.borderRightWidth,10),Pe=parseInt(Zn.borderBottomWidth,10);let Ae=0,Oe=0;const xe="offsetWidth"in zt?zt.offsetWidth-zt.clientWidth-ci-be:0,ct="offsetHeight"in zt?zt.offsetHeight-zt.clientHeight-Ze-Pe:0,Mt="offsetWidth"in zt?zt.offsetWidth===0?0:ln/zt.offsetWidth:0,at="offsetHeight"in zt?zt.offsetHeight===0?0:qt/zt.offsetHeight:0;if(Ee===zt)Ae=ee==="start"?Ve:ee==="end"?Ve-je:ee==="nearest"?ut(Ye,Ye+je,je,Ze,Pe,Ye+Ve,Ye+Ve+dt,dt):Ve-je/2,Oe=de==="start"?_t:de==="center"?_t-ze/2:de==="end"?_t-ze:ut(Xe,Xe+ze,ze,ci,be,Xe+_t,Xe+_t+He,He),Ae=Math.max(0,Ae+Ye),Oe=Math.max(0,Oe+Xe);else{Ae=ee==="start"?Ve-Gn-Ze:ee==="end"?Ve-_n+Pe+ct:ee==="nearest"?ut(Gn,_n,qt,Ze,Pe+ct,Ve,Ve+dt,dt):Ve-(Gn+qt/2)+ct/2,Oe=de==="start"?_t-St-ci:de==="center"?_t-(St+ln/2)+xe/2:de==="end"?_t-un+be+xe:ut(St,un,ln,ci,be+xe,_t,_t+He,He);const{scrollLeft:qe,scrollTop:Lt}=zt;Ae=at===0?0:Math.max(0,Math.min(Lt+Ae/at,zt.scrollHeight-qt/at+ct)),Oe=Mt===0?0:Math.max(0,Math.min(qe+Oe/Mt,zt.scrollWidth-ln/Mt+xe)),Ve+=Lt-Ae,_t+=qe-Oe}vn.push({el:zt,top:Ae,left:Oe})}return vn},Me=wt=>wt===!1?{block:"end",inline:"nearest"}:($e=>$e===Object($e)&&Object.keys($e).length!==0)(wt)?wt:{block:"start",inline:"nearest"};function Ct(wt,$e){if(!wt.isConnected||!(vt=>{let Ie=vt;for(;Ie&&Ie.parentNode;){if(Ie.parentNode===document)return!0;Ie=Ie.parentNode instanceof ShadowRoot?Ie.parentNode.host:Ie.parentNode}return!1})(wt))return;const Ft=(vt=>{const Ie=window.getComputedStyle(vt);return{top:parseFloat(Ie.scrollMarginTop)||0,right:parseFloat(Ie.scrollMarginRight)||0,bottom:parseFloat(Ie.scrollMarginBottom)||0,left:parseFloat(Ie.scrollMarginLeft)||0}})(wt);if((vt=>typeof vt=="object"&&typeof vt.behavior=="function")($e))return $e.behavior(Ue(wt,$e));const lt=typeof $e=="boolean"||$e==null?void 0:$e.behavior;for(const{el:vt,top:Ie,left:te}of Ue(wt,Me($e))){const ee=Ie-Ft.top+Ft.bottom,de=te-Ft.left+Ft.right;vt.scroll({top:ee,left:de,behavior:lt})}}}}]);