|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},59477:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},81953:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},49198:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},87169:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},52671:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},8657:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},10906:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},56082:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},33853:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},15075:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},43531:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},76618:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},38819:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ue}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},96408:function(ft,Ke){"use strict";Ke.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},93373:function(ft,Ke){"use strict";Ke.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},829:function(){"use strict"},81747:function(ft,Ke,ee){"use strict";var te=ee(59301),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ge=(ce,me,se)=>me in ce?fe(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[me]=se,ie=(ce,me)=>{for(var se in me||(me={}))ye.call(me,se)&&ge(ce,se,me[se]);if(be)for(var se of be(me))he.call(me,se)&&ge(ce,se,me[se]);return ce};const ue=ce=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));Ke.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},51976:function(ft,Ke,ee){"use strict";var te=ee(59301),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ge=(ce,me,se)=>me in ce?fe(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[me]=se,ie=(ce,me)=>{for(var se in me||(me={}))ye.call(me,se)&&ge(ce,se,me[se]);if(be)for(var se of be(me))he.call(me,se)&&ge(ce,se,me[se]);return ce};const ue=ce=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));Ke.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},25863:function(){"use strict";function ft(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ft.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(ft.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(ft.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(ft.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ft))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var Ke=[];function ee(ne,a){var y=Ke.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function te(){var ne=Ke.pop();return ne===void 0?new go.Point:ne}function fe(ne){Ke.push(ne)}function be(ne,a,y,E,b,x,z,re,le){le||(le=new go.Point);var de=ne-y,ve=b-z,Se=NaN,Le=NaN;if(de===0)if(ve===0)ne===y&&(Se=ne,Le=a);else{var Ee=(x-re)/ve,Fe=x-Ee*b;Se=ne,Le=Ee*Se+Fe}else if(ve===0){var xe=(a-E)/de,lt=a-xe*ne;Se=b,Le=xe*Se+lt}else{var xe=(a-E)/de,Ee=(x-re)/ve,lt=a-xe*ne,Fe=x-Ee*b;Se=(Fe-lt)/(xe-Ee),Le=xe*Se+lt}return le.x=Se,le.y=Le,le}function ye(ne,a,y,E,b,x,z,re,le,de,ve,Se,Le,Ee){var Fe=1-le,xe=le,lt=ne*Fe+y*xe,Ye=a*Fe+E*xe,ht=y*Fe+b*xe,we=E*Fe+x*xe,je=b*Fe+z*xe,He=x*Fe+re*xe,Je=lt*Fe+ht*xe,$e=Ye*Fe+we*xe,mt=ht*Fe+je*xe,Pt=we*Fe+He*xe,At=Je*Fe+mt*xe,Nt=$e*Fe+Pt*xe;de.x=lt,de.y=Ye,ve.x=Je,ve.y=$e,Se.x=At,Se.y=Nt,Le.x=mt,Le.y=Pt,Ee.x=je,Ee.y=He}var he=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ft("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=he,b.spot2=ge,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ie*a,0,a,(1-ie)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ie*y,(1-ie)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ie*y,ie*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ie)*a,0,0,(1-ie)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ft("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ft("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ft("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var ue=[];function ce(){var ne=ue.pop();return ne===void 0?[]:ne}function me(ne){ne.length=0,ue.push(ne)}function se(ne){for(var a=ce(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function pe(ne){var a=oe(ne),y=ce();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return me(a),y}function oe(ne){for(var a=se(ne),y=ce(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var re=a[z],le=a[z+1],de=a[(E+z-1)%b],ve=a[(E+z+x)%b];y[z*2]=re,y[z*2+1]=be(re.x,re.y,de.x,de.y,le.x,le.y,ve.x,ve.y,new go.Point)}return y[y.length]=y[0],me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=se(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=se(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=se(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=se(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=se(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=se(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=se(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=oe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=oe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=oe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=oe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=oe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=oe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=pe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=pe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=pe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=pe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=pe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=pe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ft("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ft("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ft("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var re=Math.max(b-E,0);return re>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+re,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,re,re).close())),x.spot1=he,x.spot2=ge,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ft("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ft("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,re=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,x,z,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ie/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,re=Math.atan2(y,a),le=E-Math.min(Math.cos(re)*E/2,x),de=E-Math.min(Math.sin(re)*E/2,z),b=new go.Geometry,ve=new go.PathFigure(le,0,!0);return b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ve.add(new go.PathSegment(go.PathSegment.Line,a-le,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,de)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,a,y-de)),ve.add(new go.PathSegment(go.PathSegment.Line,a-le,y)),ve.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ve.add(new go.PathSegment(go.PathSegment.Line,le,y)),ve.add(new go.PathSegment(go.PathSegment.Line,0,y-de)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,0,de).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ft("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ft("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,re=0,le=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+le+re)*y,(.5-le+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+le+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+le+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-le+re)*y,(.5+le+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-le+z)*a,(.5-x+re)*y,(.5-x+z+.05)*a,(.5-le+re-.02)*y)),x=.2,z=0,re=-.3,le=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+le+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+le+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-le+re)*y,(.5+le+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-le+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-le+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+le+re)*y,(.5-le+z)*a,(.5+x+re)*y)),x=.2,z=-.3,re=0,le=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z-.05)*a,(.5-le+re-.02)*y,(.5+le+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-le+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-le+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+le+re)*y,(.5-le+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+le+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+le+re)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,re=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,re*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*re,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),re=.75,b=new go.PathFigure((z+x)*a,re*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*re,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,le=new go.PathFigure(z*a,(re-x)*y);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),x=.4,b=ie*.4;var de=te(),ve=te(),Se=te(),Le=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.42,de,ve,Se,Le,Le);var Ee=te(),Fe=te(),xe=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,Le,Le,xe,Ee,Fe);var lt=te(),Ye=te(),ht=te();ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,lt,Ye,ht,Le,Le);var we=te(),je=te(),He=te();return ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.58,Le,Le,He,we,je),le.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,we.x*a,we.y*y,je.x*a,je.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,Se.x*a,Se.y*y,de.x*a,de.y*y,ve.x*a,ve.y*y)),le.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),le.add(new go.PathSegment(go.PathSegment.Move,ht.x*a,ht.y*y)),le.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,Ee.x*a,Ee.y*y,Fe.x*a,Fe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ht.x*a,ht.y*y,lt.x*a,lt.y*y,Ye.x*a,Ye.y*y).close()),fe(de),fe(ve),fe(Se),fe(Le),fe(Ee),fe(Fe),fe(xe),fe(lt),fe(Ye),fe(ht),fe(we),fe(je),fe(He),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,le=te(),de=te(),ve=te(),Se=te(),Le=new go.PathFigure((z-x)*a,re*y,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.44,ve,Se,de,le,le),Le.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,ve.x*a,ve.y*y,Se.x*a,Se.y*y));var Ee=ee(de.x,de.y);ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.56,le,le,de,ve,Se);var Fe=ee(de.x,de.y);Le.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*a,Ee.y*.1*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ee.y*.1*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Le.add(new go.PathSegment(go.PathSegment.Line,a,0)),Le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,ve.x*a,ve.y*y,Se.x*a,Se.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),x=.35,b=ie*.35;var xe=new go.PathFigure(z*a,(re-x)*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y));var lt=new go.PathFigure((z-x)*a,re*y,!1);return E.add(lt),fe(le),fe(de),fe(ve),fe(Se),fe(Ee),fe(Fe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,re=b*ie,le=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y,(.5+re+x)*a,(.5-b+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,(.5+b+z)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),le.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),le.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),le.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),le.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),le.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),le.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),le.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,re=b*ie;var le=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y,(.5+re+x)*a,(.5+b+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y,(.5-re+x)*a,(.5-b+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y));var le=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(le),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ft("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ft("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,re=(.5+b/2)*y,le=new go.Geometry,de=new go.PathFigure(0,z,!0);le.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x,z)),de.add(new go.PathSegment(go.PathSegment.Line,x,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,x,y)),de.add(new go.PathSegment(go.PathSegment.Line,x,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),le.spot1=new go.Spot(0,z/y);var ve=be(0,re/y,1,re/y,x/a,1,1,.5,te());return le.spot2=new go.Spot(ve.x,ve.y),fe(ve),le}),go.Shape.setFigureParameter("Arrow2",0,new ft("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ft("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,re=z+b,le=new go.Geometry,de=new go.PathFigure(0,z,!0);le.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x,z)),de.add(new go.PathSegment(go.PathSegment.Line,x,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,x,y)),de.add(new go.PathSegment(go.PathSegment.Line,x,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),le.spot1=new go.Spot(0,z/y);var ve=be(0,re/y,1,re/y,x/a,1,1,.5,te());return le.spot2=new go.Spot(ve.x,ve.y),fe(ve),le}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ft("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var le=be(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(le.x,le.y),le=be(.7,1,1,.5,0,x/y,1,x/y,le),z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ft("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ft("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,re=(y-b)/2,le=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,le=y):(x=0,z=y,re=0,le=y));var de=new go.Geometry,ve=new go.PathFigure(a,.5*y,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,le)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*a,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close());var Se=be(0,.5,.3,re/y,0,x/y,1,x/y,te());return de.spot1=new go.Spot(Se.x,Se.y),Se=be(.7,le/y,1,.5,0,z/y,1,z/y,Se),de.spot2=new go.Spot(Se.x,Se.y),fe(Se),de}),go.Shape.setFigureParameter("IBeamArrow",0,new ft("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var le=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ft("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ft("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,re=(y-b)/2,le=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,le=y):(x=0,z=y,re=0,le=y));var de=new go.Geometry,ve=new go.PathFigure(a,.5*y,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,le)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close()),de.spot1=new go.Spot(0,x/y);var Se=be(.7,le/y,1,.5,0,z/y,1,z/y,te());return de.spot2=new go.Spot(Se.x,Se.y),fe(Se),de}),go.Shape.setFigureParameter("Pointer",0,new ft("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=be(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ft("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ft("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var le=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ft("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var le=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("SquareArrow",0,new ft("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var re=new go.PathFigure(a,E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ie*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var re=new go.PathFigure(0,y-E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ie*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var re=new go.PathFigure(E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ie*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var re=new go.PathFigure(a-E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ie*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=ie*b,re=ie*x,le=.5,de=.1,ve=new go.PathFigure(le*a,(de+x)*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-b)*a,de*y,(le-z)*a,(de+x)*y,(le-b)*a,(de+re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-x)*y,(le-b)*a,(de-re)*y,(le-z)*a,(de-x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+b)*a,de*y,(le+z)*a,(de-x)*y,(le+b)*a,(de-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+x)*y,(le+b)*a,(de+re)*y,(le+z)*a,(de+x)*y));var Se=.05,Le=ie*Se;le=.05,de=.25;var Ee=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),le=.95,de=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+Se)*a,de*y,(le+Le)*a,(de-Se)*y,(le+Se)*a,(de-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),Se=.025,Le=ie*Se,le=.825,de=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-Se)*y,(le+Se)*a,(de-Le)*y,(le+Le)*a,(de-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*a,de*y,(le-Le)*a,(de-Se)*y,(le-Se)*a,(de-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),Se=.05,Le=ie*Se,le=.5,de=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-Se)*y,(le+Se)*a,(de-Le)*y,(le+Le)*a,(de-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*a,de*y,(le-Le)*a,(de-Se)*y,(le-Se)*a,(de-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),Se=.025,Le=ie*Se,le=.175,de=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-Se)*y,(le+Se)*a,(de-Le)*y,(le+Le)*a,(de-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*a,de*y,(le-Le)*a,(de-Se)*y,(le-Se)*a,(de-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),Se=.05,Le=ie*Se,le=.05,de=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-Se)*y,(le-Se)*a,(de-Le)*y,(le-Le)*a,(de-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ft("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ie*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var re=new go.PathFigure(0,b*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),re.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ie*.5,re=.5,le=new go.PathFigure(a,re*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,y,a,(re+z)*y,(re+z)*a,y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,re*y,(re-z)*a,y,0,(re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,0,0,(re-z)*y,(re-z)*a,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,a,re*y,(re+z)*a,0,a,(re-z)*y));var de=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),de.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),de.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var re=new go.PathFigure(.5*b*a,b*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var re=new go.PathFigure(a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var re=new go.PathFigure(a,x*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var le=new go.PathFigure(.8*a,.75*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),le.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),le.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),le.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),le.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,z=.9,re=.5,le=new go.PathFigure(.8*a,.5*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var de=new go.PathFigure((z+x)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.4,z=ie*.1,re=.1,le=.9,de=.5,ve=new go.PathFigure(.8*a,.5*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ve.add(new go.PathSegment(go.PathSegment.Line,0,y)),ve.add(new go.PathSegment(go.PathSegment.Line,0,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var Se=new go.PathFigure((le+re)*a,de*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+re)*y,(le+re)*a,(de+z)*y,(le+z)*a,(de+re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,de*y,(le-z)*a,(de+re)*y,(le-re)*a,(de+z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-re)*y,(le-re)*a,(de-z)*y,(le-z)*a,(de-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,de*y,(le+z)*a,(de-re)*y,(le+re)*a,(de-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,le=new go.PathFigure(.8*a,.5*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var de=new go.PathFigure((z-b)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,le=new go.PathFigure(0,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(re-b)*y,.8*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(re+x)*y,(z+x+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,le=new go.PathFigure(.1*a,0,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var de=new go.PathFigure(.8*a,.5*y,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var ve=new go.PathFigure((z-b)*a,re*y,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,le=new go.PathFigure(.1*a,0,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var de=new go.PathFigure(.2*a,0,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(re-b)*y,.9*a,(re-x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(re+x)*y,(z+x)*a,(re+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,z=.1,re=.5,le=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,le=new go.PathFigure((z-x)*a,re*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,re*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,re*y,z*a,(re-x)*y,z*a,(re+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ie*.8,re=.8,le=0,de=.5,ve=(b-a)/2,Se=(x-y)/2,Le=new go.PathFigure(le*a+ve,(de+re)*y+Se,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a+ve,de*y+Se,(le-z)*a+ve,(de+re)*y+Se,(le-re)*a+ve,(de+z)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de-re)*y+Se,(le-re)*a+ve,(de-z)*y+Se,(le-z)*a+ve,(de-re)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(le-re+z*.5)*a+ve,de*y+Se,le*a+ve,(de-re)*y+Se,(le-re+z*.5)*a+ve,(de-z)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de+re)*y+Se,(le-re+z*.5)*a+ve,(de+z)*y+Se,le*a+ve,(de+re)*y+Se).close()),z=ie*.4,re=.4,le=.2,de=.5;var Ee=new go.PathFigure(le*a+ve,(de+re)*y+Se,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a+ve,de*y+Se,(le-z)*a+ve,(de+re)*y+Se,(le-re)*a+ve,(de+z)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de-re)*y+Se,(le-re)*a+ve,(de-z)*y+Se,(le-z)*a+ve,(de-re)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-re+z*.5)*a+ve,de*y+Se,le*a+ve,(de-re)*y+Se,(le-re+z*.5)*a+ve,(de-z)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de+re)*y+Se,(le-re+z*.5)*a+ve,(de+z)*y+Se,le*a+ve,(de+re)*y+Se).close()),z=ie*.2,re=.2,le=.5,de=.5;var Fe=new go.PathFigure((le-re)*a+ve,de*y+Se,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de-re)*y+Se,(le-re)*a+ve,(de-z)*y+Se,(le-z)*a+ve,(de-re)*y+Se)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a+ve,de*y+Se,(le+z)*a+ve,(de-re)*y+Se,(le+re)*a+ve,(de-z)*y+Se)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de+re)*y+Se,(le+re)*a+ve,(de+z)*y+Se,(le+z)*a+ve,(de+re)*y+Se)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a+ve,de*y+Se,(le-z)*a+ve,(de+re)*y+Se,(le-re)*a+ve,(de+z)*y+Se)),z=ie*.4,re=.4,le=.8,de=.5;var xe=new go.PathFigure(le*a+ve,(de-re)*y+Se,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a+ve,de*y+Se,(le+z)*a+ve,(de-re)*y+Se,(le+re)*a+ve,(de-z)*y+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de+re)*y+Se,(le+re)*a+ve,(de+z)*y+Se,(le+z)*a+ve,(de+re)*y+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re-z*.5)*a+ve,de*y+Se,le*a+ve,(de+re)*y+Se,(le+re-z*.5)*a+ve,(de+z)*y+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de-re)*y+Se,(le+re-z*.5)*a+ve,(de-z)*y+Se,le*a+ve,(de-re)*y+Se).close()),z=ie*.8,re=.8,le=1,de=.5;var lt=new go.PathFigure(le*a+ve,(de-re)*y+Se,!0);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a+ve,de*y+Se,(le+z)*a+ve,(de-re)*y+Se,(le+re)*a+ve,(de-z)*y+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de+re)*y+Se,(le+re)*a+ve,(de+z)*y+Se,(le+z)*a+ve,(de+re)*y+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(le+re-z*.5)*a+ve,de*y+Se,le*a+ve,(de+re)*y+Se,(le+re-z*.5)*a+ve,(de+z)*y+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,le*a+ve,(de-re)*y+Se,(le+re-z*.5)*a+ve,(de-z)*y+Se,le*a+ve,(de-re)*y+Se).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var re=new go.PathFigure(0,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),re.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,le=te(),de=te(),ve=te(),Se=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,le,le,de,ve,Se);var Le=ee(de.x,de.y),Ee=new go.PathFigure(de.x*a,de.y*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,ve.x*a,ve.y*y,Se.x*a,Se.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,ve,Se,de,le,le),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,ve.x*a,ve.y*y,Se.x*a,Se.y*y)),b=ie*.3,x=.3,ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,ve,Se,de,le,le),Ee.add(new go.PathSegment(go.PathSegment.Line,de.x*a,de.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,Se.x*a,Se.y*y,ve.x*a,ve.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,le,le,de,ve,Se),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,Se.x*a,Se.y*y,ve.x*a,ve.y*y).close());var Ee=new go.PathFigure(.45*a,0,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(le),fe(de),fe(ve),fe(Se),fe(Le),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,re,le){z.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*a,(.8+le)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*a,(.5+le)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*a,(.5+le)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*a,(.8+le)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,re=b*ie,le=.4*Math.SQRT2/2+.5,de=.5-.5*Math.SQRT2/2,ve=1,Se=.5,Le=.5,Ee=0,Fe=new go.PathFigure(le*a,(1-de)*y,!1);return E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,Se*y,ve*a,.7*y,ve*a,Se*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+x)*a,(Ee+x)*y,(.5+b+x)*a,(.5-re+x)*y,(.5+re+x)*a,(.5-b+x)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,re=.5,le=z,de=Math.PI/4,ve=4*(1-Math.cos(de))/(3*Math.sin(de)),Se=ve*.5,Le=z,Ee=z,Fe=ve*Le,xe=ve*Ee;x.add(new go.PathSegment(go.PathSegment.Bezier,(re-Le)*a,le*y,(re-(Fe+Le)/2)*a,(le+(Ee+xe)/2)*y,(re-Le)*a,(le+xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(le-Ee)*y,(re-Le)*a,(le-xe)*y,(re-Fe)*a,(le-Ee)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(re+Le)*a,le*y,(re+Fe)*a,(le-Ee)*y,(re+Le)*a,(le-xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(re+Le)*a,(le+xe)*y,(re+(Fe+Le)/2)*a,(le+(Ee+xe)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var lt=new go.PathFigure(.2*a,y,!1);E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ye=new go.PathFigure(.8*a,y,!1);return E.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,re=ie*.1,le=.2,de=.9,ve=new go.PathFigure((le-z)*a,de*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-z)*y,(le-z)*a,(de-re)*y,(le-re)*a,(de-z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+z)*a,de*y,(le+re)*a,(de-z)*y,(le+z)*a,(de-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+z)*y,(le+z)*a,(de+re)*y,(le+re)*a,(de+z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-z)*a,de*y,(le-re)*a,(de+z)*y,(le-z)*a,(de+re)*y).close()),z=.1,re=ie*.1,le=.8,de=.9;var Se=new go.PathFigure((le-z)*a,de*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-z)*y,(le-z)*a,(de-re)*y,(le-re)*a,(de-z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le+z)*a,de*y,(le+re)*a,(de-z)*y,(le+z)*a,(de-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+z)*y,(le+z)*a,(de+re)*y,(le+re)*a,(de+z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le-z)*a,de*y,(le-re)*a,(de+z)*y,(le-z)*a,(de+re)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var re=new go.PathFigure(.5*a,.7*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var le=.1,de=ie*.1,ve=.1,Se=.9,Le=new go.PathFigure((ve-le)*a,Se*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Se-le)*y,(ve-le)*a,(Se-de)*y,(ve-de)*a,(Se-le)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Se*y,(ve+de)*a,(Se-le)*y,(ve+le)*a,(Se-de)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Se+le)*y,(ve+le)*a,(Se+de)*y,(ve+de)*a,(Se+le)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Se*y,(ve-de)*a,(Se+le)*y,(ve-le)*a,(Se+de)*y)),le=.1,de=ie*.1,ve=.4,Se=.9;var Ee=new go.PathFigure((ve-le)*a,Se*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Se-le)*y,(ve-le)*a,(Se-de)*y,(ve-de)*a,(Se-le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Se*y,(ve+de)*a,(Se-le)*y,(ve+le)*a,(Se-de)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Se+le)*y,(ve+le)*a,(Se+de)*y,(ve+de)*a,(Se+le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Se*y,(ve-de)*a,(Se+le)*y,(ve-le)*a,(Se+de)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ve=.05,Se=ie*.05,Le=.175,Ee=.95,re=new go.PathFigure((Le-ve)*a,Ee*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-ve)*y,(Le-ve)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-ve)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*a,Ee*y,(Le+Se)*a,(Ee-ve)*y,(Le+ve)*a,(Ee-Se)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+ve)*y,(Le+ve)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+ve)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*a,Ee*y,(Le-Se)*a,(Ee+ve)*y,(Le-ve)*a,(Ee+Se)*y));var ve=.05,Se=ie*.05,Le=.375,Ee=.95,le=new go.PathFigure((Le-ve)*a,Ee*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-ve)*y,(Le-ve)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-ve)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*a,Ee*y,(Le+Se)*a,(Ee-ve)*y,(Le+ve)*a,(Ee-Se)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+ve)*y,(Le+ve)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+ve)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*a,Ee*y,(Le-Se)*a,(Ee+ve)*y,(Le-ve)*a,(Ee+Se)*y));var ve=.05,Se=ie*.05,Le=.625,Ee=.95,de=new go.PathFigure((Le-ve)*a,Ee*y,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-ve)*y,(Le-ve)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-ve)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*a,Ee*y,(Le+Se)*a,(Ee-ve)*y,(Le+ve)*a,(Ee-Se)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+ve)*y,(Le+ve)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+ve)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*a,Ee*y,(Le-Se)*a,(Ee+ve)*y,(Le-ve)*a,(Ee+Se)*y));var ve=.05,Se=ie*.05,Le=.825,Ee=.95,Fe=new go.PathFigure((Le-ve)*a,Ee*y,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-ve)*y,(Le-ve)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-ve)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*a,Ee*y,(Le+Se)*a,(Ee-ve)*y,(Le+ve)*a,(Ee-Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+ve)*y,(Le+ve)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+ve)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*a,Ee*y,(Le-Se)*a,(Ee+ve)*y,(Le-ve)*a,(Ee+Se)*y).close());var xe=new go.PathFigure(0,y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var re=.05,le=ie*.05,de=.35,ve=.775,Se=new go.PathFigure((de-re)*a,ve*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ve-re)*y,(de-re)*a,(ve-le)*y,(de-le)*a,(ve-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de+re)*a,ve*y,(de+le)*a,(ve-re)*y,(de+re)*a,(ve-le)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ve+re)*y,(de+re)*a,(ve+le)*y,(de+le)*a,(ve+re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de-re)*a,ve*y,(de-le)*a,(ve+re)*y,(de-re)*a,(ve+le)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ie*.3,z=.5,re=.7,le=new go.PathFigure((z-b)*a,re*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y));var de=new go.PathFigure(0,.7*y,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,le=new go.PathFigure((z-b)*a,re*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y));var de=new go.PathFigure(.15*a,.5*y,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,le=new go.PathFigure((z-b)*a,re*y,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y).close()),b=.05,x=ie*.05,z=.5,re=.8;var de=new go.PathFigure((z-b)*a,re*y,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y).close()),de.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),de.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var re=new go.PathFigure(.678*a,.85*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var le=new go.PathFigure(.5*a,.1*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var re=new go.PathFigure(a*.612,y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var le=new go.PathFigure(a*.816,y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),le.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),le.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var re=new go.PathFigure(a*.055,.18*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),re.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var le=new go.PathFigure(a*1,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),le.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),le.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var re=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var le=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ie,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var re=new go.PathFigure(a*.83,0,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var le=new go.PathFigure(a*.83,y*1,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),le.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),le.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var de=new go.PathFigure(a*.78,y*.05,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),de.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),de.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=y*.8,z=new go.Geometry,re=new go.PathFigure(E,0,!0);return z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),re.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),re.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),re.add(new go.PathSegment(go.PathSegment.Line,E,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),re.add(new go.PathSegment(go.PathSegment.Line,0,E)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ie,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),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")},93510: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 ft={},Ke="5.0",ee={},te=null,fe=!1,be=!1,ye=null,he=!1,ge=null,ie=null,ue=0;ue<arguments.length;ue++){var ce=arguments[ue];if(ce!==null)switch(typeof ce){case"number":Ke=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ke=ce:ye=ce;break;case"object":typeof ce.is3D!="undefined"?te=ce:ee=ce;break;case"boolean":fe=ce,be=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!be&&(fe=!0)),ye!==null&&ee.id===void 0&&(ee.id=ye);var me="",se="",pe=!1,oe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,re=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var le=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};ft.setHTML5Codebase=function(rt,Xe){ie=rt,Pt(rt,Xe)},ft.setJavaCodebase=ft.setJavaCodebaseVersion=ft.isCompiledInstalled=ft.setPreCompiledScriptPath=ft.setPreCompiledResourcePath=function(){},ft.setHTML5CodebaseVersion=function(rt,Xe){var Ct=parseFloat(rt);if(Ct!==NaN&&Ct<5){console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead.");return}ge=rt,mt(rt,Xe)},ft.getHTML5CodebaseVersion=function(){return ne},ft.getParameters=function(){return ee},ft.setFontsCSSURL=function(rt){z=rt},ft.setGiacJSURL=function(rt){},ft.setJNLPFile=function(rt){me=rt},ft.setJNLPBaseDir=function(rt){},ft.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Ct=ee.id,Ht,Et=!1,rn=0;rn<arguments.length;rn++){var Ze=arguments[rn];typeof Ze=="string"?(Ze=Ze.toLowerCase(),Ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=Ze:Ct=arguments[rn]):typeof Ze=="boolean"?Et=Ze:Ze instanceof HTMLElement&&(Ht=Ze)}St();function St(){if(!he){setTimeout(St,200);return}Xe=Je(Xe);var Lt=Ht||document.getElementById(Ct);if(!Lt){console.log("possibly bug on ajax loading? ");return}if(ft.removeExistingApplet(Lt,!1),ee.width===void 0&&Lt.clientWidth&&(ee.width=Lt.clientWidth),ee.height===void 0&&Lt.clientHeight&&(ee.height=Lt.clientHeight),!(ee.width&&ee.height)&&Xe==="html5"&&(delete ee.width,delete ee.height),oe=Xe,Xe==="screenshot")Ye(Lt,ee);else{var nn=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?nn=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(nn=(!de()||rt())&&ve()),nn?(oe="screenshot",we(Lt,ee,Et,Xe)):lt(Lt,ee,Et)}}};function de(){try{return window.self!==window.top}catch(rt){return!0}}function ve(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ft.getViews=function(){return te},ft.isJavaInstalled=function(){return!1};var Se=function(rt){var Xe=function(rn){var Ze=JSON.parse(rn),St=function(Zt){return Zt.type=="G"||Zt.type=="E"},Lt=Ze.elements?Ze.elements.filter(St)[0]:Ze;if(!Lt||!Lt.url){Ct();return}ee.fileName=Lt.url,Le(Lt.settings||{}),te.is3D=!0;var nn="https://www.geogebra.org/images/";ft.setPreviewImage(E||Lt.previewUrl,nn+"GeoGebra_loading.png",nn+"applet_play.png"),rt()},Ct=function(){ee.onError&&ee.onError(),At("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Ht=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+ee.material_id+"?scope=basic";Ee("https://"+Ht+"/api/proxy.php?path="+encodeURIComponent(Et),Xe,Ct)};function Le(rt){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ct){rt[Ct]=!!rt[Ct]}),Xe.forEach(function(Ct){ee[Ct]===void 0&&rt[Ct]!==void 0&&(ee[Ct]=rt[Ct])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Ee(rt,Xe,Ct){var Ht=new XMLHttpRequest;Ht.open("GET",rt),Ht.onload=function(){Xe(Ht.responseText)},Ht.onerror=Ct,Ht.send()}ft.isHTML5Installed=function(){return!0},ft.getLoadedAppletType=function(){return oe},ft.setPreviewImage=function(rt,Xe,Ct){E=rt,b=Xe,x=Ct},ft.removeExistingApplet=function(rt,Xe){var Ct;typeof rt=="string"&&(rt=document.getElementById(rt)),oe=null;var Ht=null;for(Ct=0;Ct<rt.childNodes.length;Ct++){var Et=rt.childNodes[Ct],rn=Et.className;rn==="applet_screenshot"?Xe?(Et.style.display="block",oe="screenshot"):Et.style.display="none":rn!=="applet_scaler prerender"&&(rt.removeChild(Et),Ht=rn&&rn.indexOf("appletParameters")!=-1?Et.id:null,Ct--)}var Ze=ee.id!==void 0?ee.id:Ht,St=window[Ze];St&&typeof St.getBase64=="function"&&(St.remove(),window[Ze]=null)},ft.refreshHitPoints=function(){if(le(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=ft.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ft.startAnimation=function(){var rt=ft.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ft.stopAnimation=function(){var rt=ft.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ft.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},ft.resize=function(){};var Fe=function(rt,Xe,Ct){var Ht=document.createElement("param");Ht.setAttribute("name",Xe),Ht.setAttribute("value",Ct),rt.appendChild(Ht)},xe=function(rt){return rt&&rt!=="false"},lt=function(rt,Xe,Ct){le(ne)<=4.2&&(Ct=!0);var Ht=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ht=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var rn=Xe.width,Ze=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(le(ne)<=4.4)xe(Xe.showToolBar)&&(Xe.height-=7),xe(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&xe(Xe.showToolBar)&&(Xe.width=605,rn=605);else{var St=100;(xe(Xe.showToolBar)||xe(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),St=xe(Xe.showMenuBar)?245:155),rn<St&&(Xe.width=St,rn=St)}Et.style.border="none",Et.style.display="inline-block";for(var Lt in Xe)Xe.hasOwnProperty(Lt)&&Lt!=="appletOnLoad"&&Et.setAttribute("data-param-"+Lt,Xe[Lt]);z&&Et.setAttribute("data-param-fontscssurl",z),ft.resize=function(){GGBAppletUtils.responsiveResize(rt,Xe)},window.addEventListener("resize",function(ze){ft.resize()});var nn=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!Ct&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var Zt=rt.querySelector(".applet_scaler.prerender"),at=Zt!==null;if(at)var dt=Zt.querySelector(".ggb_preview");else{var dt=He(rn,Ze,Xe.borderColor,!1);Zt=document.createElement("div"),Zt.className="applet_scaler",Zt.style.position="relative",Zt.style.display="block",Zt.style.width=rn+"px",Zt.style.height=Ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Zt,"66%"),le(ne)>=5?(Xe.appletOnLoad=function(ze){var ot=rt.querySelector(".ggb_preview");ot&&ot.parentNode.removeChild(ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Zt),window.GGBT_wsf_view&&$(window).trigger("resize"),nn(ze)},at||Zt.appendChild(dt)):Et.appendChild(dt),Zt.appendChild(Et),at||rt.appendChild(Zt),setTimeout(function(){ft.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(Et),rt.appendChild(Ge),Xe.appletOnLoad=function(ze){ft.resize(),nn(ze)}}function Ne(ze,ot){ot&&typeof ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ze,ot.appletOnLoad):renderGGBElement(ze),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ot)}function nt(ze,ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ze,params:ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ot){Ne(Ot.article,Ot.params)}),html5AppletsToProcess=null)},le(ne)<5&&(ze.className+=" geogebraweb")):Ne(ze,ot)}if(Ht){scriptLoadStarted=!0;for(var xt=0;xt<Et.childNodes.length;xt++){var Ae=Et.childNodes[xt].tagName;Ae==="TABLE"&&(Et.removeChild(Et.childNodes[xt]),xt--)}if(ggbHTML5LoadedScript!==null){var Re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Re!=null&&Re.parentNode.removeChild(Re)}var We=document.createElement("script"),Be=function(){nt(Et,Xe)};We.src=se+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=We.src,At("GeoGebra HTML5 codebase loaded: '"+se+"'.",Xe),!ie&&(!ge||ge=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Be()):se.requirejs?__webpack_require__.e(3861).then(function(){var ze=[__webpack_require__(40341)];Be.apply(null,ze)}.bind(this)).catch(__webpack_require__.oe):(We.onload=Be,rt.appendChild(We))}else nt(Et,Xe);Xe.height=Ze,Xe.width=rn},Ye=function(rt,Xe,Ct){var Ht=He(Xe.width,Xe.height,Xe.borderColor,Ct),Et=document.createElement("div");Et.style.position="relative",Et.style.display="block",Et.style.width=Xe.width+"px",Et.style.height=Xe.height+"px",Et.className="applet_screenshot applet_scaler"+(Ct?" applet_screenshot_play":""),Et.appendChild(Ht);var rn=GGBAppletUtils.getScale(Xe,rt,Ct);Ct?(rt.appendChild(je()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),rt.appendChild(Et),rn!==1&&!isNaN(rn)&&(GGBAppletUtils.scaleElement(Et,rn),Et.style.width=Xe.width+"px",Et.style.height=Xe.height+"px",Et.parentNode.style.width=Xe.width*rn+"px",Et.parentNode.style.height=Xe.height*rn+"px"),ft.resize=function(){ht(rt,Ht,Et,Ct)},window.addEventListener("resize",function(Ze){ft.resize()}),ft.resize()};function ht(rt,Xe,Ct,Ht){if(rt.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var Et=GGBAppletUtils.getScale(ee,rt,Ht);Ct.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(Ct,Et),Ct.parentNode.style.width=ee.width*Et+"px",Ct.parentNode.style.height=ee.height*Et+"px"):(GGBAppletUtils.scaleElement(Ct,1),Ct.parentNode.style.width=ee.width+"px",Ct.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ft.onExitFullscreen=function(rt,Xe){Xe.appendChild(rt)};var we=function(rt,Xe,Ct,Ht){Ye(rt,Xe,!0);for(var Et=function(){var St=[];for(Ze=0;Ze<rt.childNodes.length;Ze++)St.push(rt.childNodes[Ze]);if(window.GGBT_wsf_view){var Lt=window.GGBT_wsf_view.renderFullScreen(rt,Xe.id),nn=document.getElementById("fullscreencontainer"),Zt=jQuery(rt).find(".fullscreencontent");Zt.length>0?(Lt.remove(),Zt.attr("id","fullscreencontent").show(),jQuery(nn).append(Zt),window.dispatchEvent(new Event("resize"))):lt(Lt,Xe,!1),window.GGBT_wsf_view.launchFullScreen(nn)}else oe=Ht,lt(rt,Xe,!1);if(!window.GGBT_wsf_view)for(Ze=0;Ze<St.length;Ze++)rt.removeChild(St[Ze])},rn=rt.getElementsByClassName("ggb_preview_play"),Ze=0;Ze<rn.length;Ze++)rn[Ze].addEventListener("click",Et,!1),rn[Ze].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},je=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ct=document.createElement("style");Ct.styleSheet?Ct.styleSheet.cssText=Xe:Ct.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(Ct)}return rt},He=function(rt,Xe,Ct,Ht){var Et=document.createElement("div");Et.className="ggb_preview",Et.style.position="absolute",Et.style.zIndex="90",Et.style.width=rt-2+"px",Et.style.height=Xe-2+"px",Et.style.top="0px",Et.style.left="0px",Et.style.overflow="hidden",Et.style.backgroundColor="white";var rn="lightgrey";Ct!==void 0&&(Ct==="none"?rn="transparent":rn=Ct),Et.style.border="1px solid "+rn;var Ze=document.createElement("img");if(Ze.style.position="relative",Ze.style.zIndex="1000",Ze.style.top="-1px",Ze.style.left="-1px",E!==null&&Ze.setAttribute("src",E),Ze.style.opacity=.7,b!==null){var St,Lt,nn;if(!Ht){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,Ze.style.opacity=.3,Lt=360,Lt>rt/4*3&&(Lt=rt/4*3),nn=Lt/5.8,St.setAttribute("src",b),St.setAttribute("width",Lt),St.setAttribute("height",nn);var Zt=(rt-Lt)/2,at=(Xe-nn)/2;St.style.left=Zt+"px",St.style.top=at+"px",Et.appendChild(St)}}return Et.appendChild(Ze),Et},Je=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},$e=["web","webSimple","web3d","tablet","tablet3d","phone"],mt=function(rt,Xe){if(ne=rt,Xe){Pt(ne,!0);return}var Ct=!fe;if(Ct){var Ht=le(ne);!isNaN(Ht)&&Ht<4.4&&(Ct=!1)}var Et,rn;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var Ze=ne.indexOf("//");Ze>0?rn=ne:Ze===0?rn=Et+ne:rn="https://www.geogebra.org/apps/5.2.814.0/";for(var St in $e)if(ne.slice($e[St].length*-1)===$e[St]||ne.slice(($e[St].length+1)*-1)===$e[St]+"/"){Pt(rn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!xe(ee.showToolBar)&&!xe(ee.showMenuBar)&&!xe(ee.showAlgebraInput)&&!xe(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?rn+="webSimple/":rn+="web3d/",Pt(rn,!1)},Pt=function(rt,Xe){if(rt.requirejs){se=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),se=rt,Xe===null&&(Xe=rt.indexOf("http")===-1),pe=Xe,a="web.nocache.js",y=!1;var Ct=se.split("/");Ct.length>1&&(!Xe&&Ct[Ct.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):$e.indexOf(Ct[Ct.length-2])>=0&&(a=Ct[Ct.length-2]+".nocache.js")),Ct=rt.split("/"),ne=Ct[Ct.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Ht=parseFloat(ne);Ht!==NaN&&Ht<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ht+" is deprecated. Using version latest instead."),mt("5.0",Xe))},At=function(rt,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?Se(Nt):Nt();function Nt(){var rt=Ke;ge!==null?rt=ge:parseFloat(rt)<5&&(rt="5.0"),mt(rt,!1),ie!==null&&Pt(ie,pe),he=!0}return ft},GGBAppletUtils=function(){"use strict";function ft(){return window.GGBT_wsf_edit!==void 0}function Ke(he,ge){ge!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+ge+","+ge+")",he.style.webkitTransform="scale("+ge+","+ge+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function ee(he,ge,ie,ue,ce,me){var se=null;if(me!=null&&me!="")for(var pe=he.parentNode;pe!=null;)if((" "+pe.className+" ").indexOf(" "+me+" ")>-1){se=pe;break}else pe=pe.parentNode;var oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(se)oe=se.offsetWidth,ne=Math.max(ue?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=oe):(oe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=oe&&(ce===void 0||!ce)&&(document.dir==="rtl"?(E=oe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return he&&((ie===void 0||!ie)&&ge>0&&ge+y<oe?oe=ge:oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:oe,height:ne}}function te(he,ge,ie,ue,ce){if(he.isScreenshoGenerator)return 1;var me=ue!==void 0&&ue,se=he.noScaleMargin!=null&&he.noScaleMargin,pe=function(re){return re&&re!=="false"},oe=pe(he.autoHeight),ne=ee(ge,he.width,ie,oe,me&&window.GGBT_wsf_view||se,ce),a=parseInt(ne.width),y=he.width,E=he.height;if(y===void 0){var b=ge.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=me?1:ne.height/E;return ie!==void 0&&!ie&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function fe(he,ge,ie){var ue=1,ce,me=!1;if(he.hasOwnProperty("allowUpscale")&&(me=he.allowUpscale),he.hasOwnProperty("scale")&&(ue=parseFloat(he.scale),(isNaN(ue)||ue===null||ue===0)&&(ue=1),ue>1&&(me=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))ce=te(he,ge,me,ie,he.scaleContainerClass);else return ue;return me&&(!he.hasOwnProperty("scale")||ue===1)?ce:Math.min(ue,ce)}function be(he){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=he.getBoundingClientRect(),ce=(ge-ue.width)/2,me=(ie-ue.height)/2;me<0&&(me=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?he.style.left="40px":he.style.left=ce+"px",he.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?he.style.top="40px":he.style.top=me+"px",he.style.left=ce+"px")}function ye(he,ge){var ie=he.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var ue=fe(ge,he);ft()&&ie.setAttribute("data-param-scale",ue);for(var ce=null,me=0;me<he.childNodes.length;me++)if(he.childNodes[me].className!==void 0&&he.childNodes[me].className.match(/^applet_scaler/)){ce=he.childNodes[me];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var se=ge.id!==void 0?ge.id:"ggbApplet",pe=window[se];(pe==null||!pe.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(ue)&&ue!==1?(ce.parentNode.style.width=ge.width*ue+"px",ce.parentNode.style.height=ge.height*ue+"px",Ke(ce,ue)):(Ke(ce,1),ce.parentNode.style.width=ge.width+"px",ce.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ye,isFlexibleWorksheetEditor:ft,positionCenter:be,getScale:fe,scaleElement:Ke}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ft=n.location.search;return ft.indexOf(J)!=-1||ft.indexOf(K)!=-1}function q(ft,Ke){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ft){var Ke=s[L].bindings;s[L].bindings=function(){for(var ee=Ke?Ke():{},te=ft[webModule.__softPermutationId],fe=O;fe<te.length;fe++){var be=te[fe];ee[be[O]]=be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var ft=o.createElement(Q);if(ft.id=L,ft.style.cssText=R+S,ft.tabIndex=-1,o.body.appendChild(ft),t=ft.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ke=document.compatMode==U?V:W;t.write(Ke+X),t.close()}}}function w(ft){function Ke(te){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=fe();if(be){te();return}function ye(){if(!be){if(!fe())return;be=!0,te(),o.removeEventListener&&o.removeEventListener(Z,ye,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,ye,!1);var he=setInterval(function(){ye()},$)}function ee(te){var fe=u(),be=fe.body,ye=fe.createElement(_);ye.language=ab,ye.crossOrigin=W,ye.src=te,webModule.__errFn&&(ye.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),be.appendChild(ye)}Ke(function(){ee(ft)})}webModule.__startLoadingFragment=function(ft){return C(ft)},webModule.__installRunAsyncCode=function(ft){var Ke=u(),ee=Ke.body,te=Ke.createElement(_);te.language=ab,te.text=ft,ee.appendChild(te),ee.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ft){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ft){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ft){var Ke=c[ft];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function ft(he){var ge=he.lastIndexOf(rb);ge==-1&&(ge=he.length);var ie=he.indexOf(sb);ie==-1&&(ie=he.length);var ue=he.lastIndexOf(tb,Math.min(ie,ge));return ue>=O?he.substring(O,ue+P):W}function Ke(he){if(!he.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=he+vb,he=ft(ge.src)}return he}function ee(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function te(){for(var he=o.getElementsByTagName(_),ge=O;ge<he.length;++ge)if(he[ge].src.indexOf(xb)!=-1)return ft(he[ge].src);return W}function fe(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function be(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var ye=ee();return ye==W&&(ye=te()),ye==W&&(ye=fe()),ye==W&&be()&&(ye=ft(o.location.href)),ye=Ke(ye),ye}function C(ft){return ft.match(/^\//)||ft.match(/^[a-zA-Z]+:\/\//)?ft:webModule.__moduleBase+ft}function D(){var ft=[],Ke=O,ee=[],te=[];function fe(he){var ge=te[he](),ie=ee[he];if(ge in ie)return ge;var ue=[];for(var ce in ie)ue[ie[ce]]=ce;throw r&&r(he,ue,ge),null}if(__gwt_isKnownPropertyValue=function(he,ge){return ge in ee[he]},webModule.__getPropMap=function(){var he={};for(var ge in ee)ee.hasOwnProperty(ge)&&(he[ge]=fe(ge));return he},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ye=be.indexOf(Db);ye!=-1&&(Ke=parseInt(be.substring(ye+P),$),be=be.substring(O,ye))}catch(he){}return webModule.__softPermutationId=Ke,C(be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},28735:function(ft,Ke,ee){"use strict";ee.d(Ke,{Ax:function(){return ye},Ds:function(){return he},KI:function(){return ie},SI:function(){return be},f1:function(){return fe}});var te=ee(74128);function fe(ue){let ce=!0;if(ue.length>0){for(let me=0;me<ue.length;me++)if(ue[me].compile_success==0||!ue[me].compile_success){ce=!1;break}}else ce=!1;return ce}function be(ue,ce=""){let me=[];for(let se=0;se<ue.length;se++){let pe=ue[se],oe=ce?`${ce}/${pe.name}`:`${pe.name}`;me.push({title:pe.name,type:pe.type,isLeaf:pe.type!=="tree",key:oe})}return me}function ye(ue,ce,me){for(let se=0;se<ue.length;se++){let pe=ue[se];if(pe.key===ce){pe.children=me;break}pe.children&&ye(pe.children,ce,me)}return ue}function he(ue,ce,me){let se;return function(){let pe=this,oe=arguments,ne=function(){se=null,me||ue.apply(pe,oe)},a=me&&!se;clearTimeout(se),se=setTimeout(ne,ce),a&&ue.apply(pe,oe)}}const ge=!0,ie=te.Z.API_SERVER},89613:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return b}});var te=ee(59301),fe=ee(38147),be=ee(1012),ye=ee(92310),he=ee.n(ye),ge={upload:"upload___jpwPD"},ie=Object.defineProperty,ue=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,oe=(x,z,re)=>z in x?ie(x,z,{enumerable:!0,configurable:!0,writable:!0,value:re}):x[z]=re,ne=(x,z)=>{for(var re in z||(z={}))se.call(z,re)&&oe(x,re,z[re]);if(me)for(var re of me(z))pe.call(z,re)&&oe(x,re,z[re]);return x},a=(x,z)=>ue(x,ce(z)),y=(x,z,re)=>new Promise((le,de)=>{var ve=Ee=>{try{Le(re.next(Ee))}catch(Fe){de(Fe)}},Se=Ee=>{try{Le(re.throw(Ee))}catch(Fe){de(Fe)}},Le=Ee=>Ee.done?le(Ee.value):Promise.resolve(Ee.value).then(ve,Se);Le((re=re.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:re,onComplete:le,onError:de,onProgress:ve,onBefore:Se,onBeginInitFile:Le,children:Ee,accept:Fe,className:xe,style:lt={},concurrency:Ye=4},ht)=>{let[we,je]=(0,te.useState)("ready");const[He,Je]=(0,te.useState)(0),[$e,mt]=(0,te.useState)(""),[Pt,At]=(0,te.useState)(null),Nt=(0,te.useRef)(null),rt=(0,te.useRef)((0,be.Z)()),Xe=(0,te.useRef)(!1);(0,te.useImperativeHandle)(ht,()=>({cancel:Et,file:Pt,uploadStatus:we}));const Ct=()=>{const Ze=document.getElementById(rt.current);Ze&&(Ze.value="")},Ht=Ze=>y(void 0,null,function*(){var St;if(we==="uploading")return;Le&&Le(Ze);const Lt=Ze.size,nn=Math.ceil(Lt/x);Xe.current=!1,je("uploading"),Je(0),mt("");try{const Zt=yield(0,fe.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ze.name,chunkCount:nn},z)});if(Xe.current||(Zt==null?void 0:Zt.status)!==0)throw new Error;const{upload_id:at}=Zt;Nt.current=new AbortController;const dt=[];let Ge=0;for(let Ae=0;Ae<nn;Ae++){const Re=Ae*x,We=Math.min(Re+x,Lt),Be=Ze.slice(Re,We),ze=new FormData;ze.append("chunk",Be),ze.append("fileName",Ze.name),ze.append("chunkIndex",(Ae+1).toString()),ze.append("uploadId",at);for(const ot in z)Object.prototype.hasOwnProperty.call(z,ot)&&ze.append(ot,z[ot]);dt.push(()=>(0,fe.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:Nt.current.signal},!0).then(ot=>{console.log(ot,444),Ge++;const Ot=Math.round(Ge/nn*100);Je(Ot),ve&&ve(a(ne({},ot),{file:Ze,percent:Ot}))}))}let Ne=0,nt=Ye;for(console.log(dt,"promises");Ne<dt.length;){const Ae=(St=dt.slice(Ne,Ne+nt))==null?void 0:St.map(Re=>Re());if(Ae.length>0){const Re=yield Promise.all(Ae);Ne+=nt}}const xt=yield(0,fe.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ze.name,chunkCount:nn,uploadId:at},z)});xt.object?(je("success"),Ct(),le&&le(a(ne({},xt),{file:Ze,percent:100}))):(je("error"),mt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),de&&de(Ze.name))}catch(Zt){je("error"),mt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),de&&de(Ze.name)}}),Et=(0,te.useCallback)(()=>{Xe.current=!0,Nt.current&&(Nt.current.abort(),re&&re())},[re]),rn=Ze=>{var St,Lt;const nn=(Lt=(St=Ze==null?void 0:Ze.target)==null?void 0:St.files)==null?void 0:Lt[0];if(At(nn),we="ready",!!nn){if(Se){Se(nn)||Ht(nn),Ct();return}Ht(nn)}};return te.createElement(te.Fragment,null,te.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:rn,accept:Fe}),te.createElement("label",{className:he()(ge.upload,xe),htmlFor:rt.current,style:lt},Ee))};var b=(0,te.forwardRef)(E)},16750:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return pe}});var te=ee(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(92310),ye=ee.n(be),he=ee(71418),ge=ee(2859),ie=ee(38147),ue=ee(65862),ce=ee(65582),me=(oe,ne,a)=>new Promise((y,E)=>{var b=re=>{try{z(a.next(re))}catch(le){E(le)}},x=re=>{try{z(a.throw(re))}catch(le){E(le)}},z=re=>re.done?y(re.value):Promise.resolve(re.value).then(b,x);z((a=a.apply(oe,ne)).next())}),pe=({data:oe,className:ne,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const re=(0,ce.useIntl)(),le=(0,te.useRef)(null),de=(0,te.useRef)(null),ve=(0,te.useRef)(null),Se=(0,te.useRef)(null),[Le,Ee]=(0,te.useState)(!1),[Fe,xe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ve.current||(ve.current=document.createElement("style"),document.head.appendChild(ve.current)),oe!=null&&oe.visible?(document.body.setAttribute("data-custom","y-hidden"),ve.current.innerHTML=" html { overflow-y: hidden; }",oe!=null&&oe.src&<()):(document.body.removeAttribute("data-custom"),ve.current&&(document.head.removeChild(ve.current),ve.current=null))},[oe==null?void 0:oe.visible]);const lt=()=>me(void 0,null,function*(){Ee(!0),xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const He=yield(0,ue.ZJ)(oe==null?void 0:oe.src);le.current.src="",le.current.src=He,le.current.onload=function(){je()},Ee(!1),xe("")}),Ye=()=>{document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",E()},ht=He=>me(void 0,null,function*(){Ee(!0),xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Je=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:oe.title,file:He.dataUrl}});Je!=null&&Je.id&&!z?(yield(0,ie.ZP)(`/api/attachments/${oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Je==null?void 0:Je.id,settings:JSON.stringify(He.state)}})).status===0&&b():Je!=null&&Je.id&&b(Je),document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",Ee(!1),xe("")}),we=()=>{const He=document.querySelector('a[href="https://markerjs.com/"]');He&&He.parentNode&&(He.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:re.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach($e=>{const mt=document.querySelector($e.name);mt&&mt.setAttribute("title",$e.title)})},je=()=>{de.current=new ge.hP(le.current),de.current.targetRoot=Se.current,de.current.addEventListener("render",ht),de.current.addEventListener("beforeclose",Ye),x&&(de.current.availableMarkerTypes=de.current.ALL_MARKER_TYPES,de.current.uiStyleSettings.redoButtonVisible=!0,de.current.uiStyleSettings.notesButtonVisible=!0,de.current.uiStyleSettings.zoomButtonVisible=!0,de.current.uiStyleSettings.zoomOutButtonVisible=!0,de.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=de.current.uiStyleSettings,de.current.show(),oe!=null&&oe.snapshotData&&de.current.restoreState(oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),we()},300)};return te.createElement(te.Fragment,null,(oe==null?void 0:oe.visible)&&te.createElement(he.Z,{spinning:Le,tip:Fe,style:{position:"absolute"}},te.createElement("div",{ref:Se,className:ye()(fe.imageDimensions,ne,a?fe.fullWidth:""),style:y},te.createElement("img",{className:fe.img,ref:le}))))}},99298:function(ft,Ke,ee){"use strict";var te=ee(59301),fe=ee(95237),be=ee(43604),ye=ee(99313),he=ee(3113),ge=ee(6339),ie=ee(96408),ue=ee(48136),ce=ee(65582),me=ee(59301);const se=(0,te.forwardRef)(({callback:pe,showSaveButton:oe,value:ne=""},a)=>{const y=(0,te.useRef)(),E=(0,ce.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=de=>{y.current.setValue(y.current.getValue()+" "+de.value+" ")},re=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:me.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},b.map((de,ve)=>me.createElement(be.Z,{flex:"110px",className:ie.Z.item},me.createElement("div",null,me.createElement(ge.Z,{value:`$$${de.value}$$`}),de.name),me.createElement("div",{className:ie.Z.children},de.children.map((Se,Le)=>me.createElement("div",{key:Le},me.createElement("h1",null,Se.name),me.createElement(fe.Z,{gutter:[10,10]},Se.data.map((Ee,Fe)=>me.createElement(be.Z,{key:Fe,onClick:()=>z(Ee),className:ie.Z.diamond},me.createElement(ge.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:me.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},x.map((de,ve)=>me.createElement(be.Z,{flex:"110px",className:ie.Z.item},me.createElement("div",null,me.createElement(ge.Z,{value:"`$$"+de.value+"$$`"}),de.name),me.createElement("div",{className:ie.Z.children},de.children.map((Se,Le)=>me.createElement("div",{key:Le},Se.name&&me.createElement("h1",null,Se.name),me.createElement(fe.Z,{gutter:[10,10]},Se.data.map((Ee,Fe)=>me.createElement(be.Z,{key:Fe,onClick:()=>z(Ee),className:ie.Z.diamond},me.createElement(ge.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))}],le=()=>{var de=document.createElement("div");de.innerHTML=y.current.getValue();var ve=de.innerText;return pe&&pe(ve),ve};return(0,te.useImperativeHandle)(a,()=>({getData:le})),me.createElement("div",{className:ie.Z.mathWrap},me.createElement(ye.default,{defaultActiveKey:"1",items:re}),me.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},ne||""),oe&&me.createElement("div",{className:ie.Z.button},me.createElement(he.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});Ke.Z=se},42678:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ye}});var te=ee(65582),fe={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(59301),ye=({message:he,className:ge,children:ie,style:ue={}})=>be.createElement("div",{className:`custom-spinner ${fe.idsRingWrapper} ${ge}`},be.createElement("div",{className:fe.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),he?be.createElement("p",{style:ue},he):null,ie,be.createElement(te.Outlet,null))},29584:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ye}});var te=ee(59301),fe=ee(77254),be=ee(59301),ye=({defaultX:he="40%",leftChild:ge,rightChild:ie,className:ue,hideResize:ce=!1})=>{const[me,se]=(0,te.useState)(he),pe=(0,te.useRef)();function oe(){pe.current=!0}(0,te.useEffect)(()=>{function y(b){pe.current&&(fe.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){pe.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof me=="number"&&me!==.01?`${me}px`:he,a=`calc(100% - ${ce?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${ue}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},ge),be.createElement("section",{className:"resize-x-bar",onMouseDown:oe},be.createElement("a",{className:"btn-resize"},be.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},be.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),be.createElement("section",{style:{width:a}},ie))}},51908:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ge}});var te=ee(59301),fe={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},be=ee(92310),ye=ee.n(be),ge=({className:ie,style:ue={},leftNode:ce,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:pe="\u8FD0\u884C\u7ED3\u679C"})=>te.createElement("div",{className:ye()(fe.result,ie),style:ue},te.createElement("div",{className:fe.left},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),te.createElement("span",null,me)),te.createElement("div",{className:fe.leftNode},ce)),te.createElement("div",{className:fe.right},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),te.createElement("span",null,pe)),te.createElement("div",{className:fe.rightNode},se)))},22744:function(ft,Ke,ee){"use strict";var te=ee(59301);const fe=ye=>String(ye).length===1?`0${ye}`:ye,be=({className:ye="",onChange:he,defaultValue:ge=0})=>{const[ie,ue]=(0,te.useState)(ge);(0,te.useEffect)(()=>{const pe=setTimeout(()=>{ue(ie+1e3)},1e3);return he(ie+1e3),()=>{clearInterval(pe)}},[ie]);const ce=parseInt(ie/(60*6e4))||"00",me=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return te.createElement("div",{className:ye},fe(ce),":",fe(me),":",fe(se))};Ke.Z=be},44080:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return a}});var te=ee(59301),fe=ee(8591),be=ee(38854),ye=ee(73217),he=ee(16471),ge=ee(41867),ie=ee(56102),ue=ee(84056),ce={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},me=(y,E,b)=>new Promise((x,z)=>{var re=ve=>{try{de(b.next(ve))}catch(Se){z(Se)}},le=ve=>{try{de(b.throw(ve))}catch(Se){z(Se)}},de=ve=>ve.done?x(ve.value):Promise.resolve(ve.value).then(re,le);de((b=b.apply(y,E)).next())});function se(y){if(isNaN(y))return{minutes:"00",seconds:"00"};const E=new Date(y*1e3).toISOString().substr(11,8);return{hour:E.substr(0,2),minutes:E.substr(3,2),seconds:E.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function pe(y,E){return y-E}function oe(y){y.sort(pe);let E=0;for(let b=0;b<y.length-1;b++){let x=Math.abs(y[b+1]-y[b]);x<21&&(E+=x)}return E}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var a=(0,te.forwardRef)(({allow_skip:y,src:E,toLog:b,videoId:x,logWatchHistory:z,courseId:re=null,startTime:le,handlePause:de=()=>{},handlePlay:ve=()=>{},handlePlayEnded:Se=()=>{},autoPlay:Le=!1,onPlayEnded:Ee=()=>{},isShowWaterMark:Fe=!0},xe)=>{var lt;const ht=((lt=E==null?void 0:E.split("."))==null?void 0:lt.pop())==="flv",we=(0,te.useRef)(),je=(0,te.useRef)(),He=(0,te.useRef)(),Je=(0,te.useRef)(),$e=(0,te.useRef)(),mt=(0,te.useRef)(),Pt=(0,te.useRef)(),At=(0,te.useRef)(),Nt=(0,te.useRef)(),rt=(0,te.useRef)(),Xe=(0,te.useRef)(),Ct=(0,te.useRef)(),Ht=(0,te.useRef)(),Et=(0,te.useRef)(),rn=navigator.userAgent.toLowerCase().match(ne),Ze=rn?rn[0]:"pc",St=(0,te.useRef)(!1),Lt=(0,ge.eY)();let nn=0,Zt=0,at=0,dt=null,Ge=!1,Ne=20,nt=1,xt=!1,Ae=!1,Re=[];(0,te.useImperativeHandle)(xe,()=>({getLastUpdatedTime:()=>we.current.currentTime,getDuration:()=>we.current.duration})),fe.ZP.config({maxCount:1,getContainer:()=>He.current});const We=(0,te.useCallback)((Mt,Gt=!1)=>{let bt={point:we.current.currentTime};dt?(bt.log_id=dt,bt.watch_duration=oe(Re),bt.total_duration=Zt):(re?(bt.video_id=parseInt(x,10),bt.course_id=re):bt.video_id=x,bt.duration=nn,bt.device=Ze),Gt&&(bt.ed="1");function fn(){return me(this,null,function*(){xt=!0,dt=yield z==null?void 0:z(bt),xt=!1,Mt&&Mt()})}fn()},[x,re]);(0,te.useEffect)(()=>{we.current&&(Je.current.style.display="none",$e.current.style.display="block"),fe.ZP.destroy();let Mt=null;return ye.Z.isSupported&&ht&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(Mt=ye.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),we.current&&(Mt.attachMediaElement(we.current),Mt.load())):we.current.setAttribute("src",E),ze(),()=>{Mt&&(Mt.unload(),Mt.pause(),Mt.destroy(),Mt=null)}},[we,ht,E]);function Be(){we.current.paused?(Je.current.style.display="none",$e.current.style.display="block"):(Je.current.style.display="block",$e.current.style.display="none")}function ze(){Xe.current.style.display="none",Ht.current.style.display="none",Ct.current.style.display="none",we.current.muted||we.current.volume===0?Xe.current.style.display="block":we.current.volume>0&&we.current.volume<=.5?Ht.current.style.display="block":Ct.current.style.display="block"}(0,te.useEffect)(()=>{const Mt=document.getElementById("play"),Gt=document.querySelectorAll(".playback-icons use");function bt(){ve(),le&&!St.current&&(we.current.currentTime=le),St.current=!0,Re.push(we.current.currentTime),Ge||(Ge=!0,b&&We())}function fn(){return me(this,null,function*(){Be(),Re.push(we.current.currentTime),b&&We(()=>{dt=null,at=0,Ge=!1,xt=!1,Ae=!1,Re=[],Zt=0,nt=1},!0),Ee()})}function dn(){mt.current.value=Math.round(we.current.currentTime),Pt.current.value=Math.round(we.current.currentTime)}function wt(){const sn=se(Math.round(we.current.currentTime));Nt.current.innerText=`${sn.hour>0?sn.hour+":":""}${sn.minutes}:${sn.seconds}`,Nt.current.setAttribute("datetime",`${sn.hour>0?" "+sn.hour+" ":""}${sn.minutes}m ${sn.seconds}s`)}function yn(){var sn,Yn,or,$n,ir,Ar,Ir;const wr=Math.round((sn=we.current)==null?void 0:sn.duration);(or=(Yn=mt.current)==null?void 0:Yn.setAttribute)==null||or.call(Yn,"max",wr),(ir=($n=Pt.current)==null?void 0:$n.setAttribute)==null||ir.call($n,"max",wr);const Tr=se(wr);At.current&&(At.current.innerText=`${Tr.hour>0?Tr.hour+":":""}${Tr.minutes}:${Tr.seconds}`,(Ir=(Ar=At.current).setAttribute)==null||Ir.call(Ar,"datetime",`${Tr.hour>0?" "+Tr.hour+" ":""}${Tr.minutes}m ${Tr.seconds}s`))}function _n(){try{const sn=Math.round(we.current.duration);mt.current.setAttribute("max",sn),Pt.current.setAttribute("max",sn);const Yn=se(sn);At.current.innerText=`${Yn.hour>0?Yn.hour+":":""}${Yn.minutes}:${Yn.seconds}`,At.current.setAttribute("datetime",`${Yn.hour>0?" "+Yn.hour+" ":""}${Yn.minutes}m ${Yn.seconds}s`),dn(),wt();const{width:or,height:$n,x:ir,y:Ar}=je.current.getBoundingClientRect();if(ir<0||Ar<0||!or)return;if(!Ae){let Ir=we.current.currentTime,wr=Ir-at;Math.abs(wr)<10?(Zt+=Math.abs(wr),at=Ir,xt||Zt-nt*Ne>=0&&(nt++,Re.push(at),b&&We())):(at=Ir,b&&We())}}catch(sn){console.log(sn)}}function Fn(){Ae=!0}function xn(){we.current.playing&&Re.push(we.current.currentTime,at),at=we.current.currentTime,Ae=!1}function Zn(){nn=we.current.duration,nn<=20&&(Ne=nn/3),we.current.addEventListener("play",bt)}function Jn(sn){sn.preventDefault(),(0,ue.vp)()?(we.current.style.width="100%",we.current.style.height="100%"):we.current.style.cssText=""}function Kn(){de()}function Vn(sn){if(!y){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Yn=sn.target.dataset.seek?sn.target.dataset.seek:sn.target.value;we.current.currentTime=Yn,Pt.current.value=Yn,mt.current.value=Yn}function Sr(sn){const Yn=Math.round(sn.offsetX/sn.target.clientWidth*parseInt(sn.target.getAttribute("max"),10));mt.current.setAttribute("data-seek",Yn);const or=se(Yn);rt.current.textContent=`${or.hour>0?or.hour+":":""}${or.minutes}:${or.seconds}`;const $n=we.current.getBoundingClientRect();rt.current.style.left=`${sn.pageX-$n.left}px`}function sr(sn){switch(sn.code){case"Space":sn.preventDefault(),Dt();break;case"ArrowRight":if(sn.preventDefault(),!y){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime>=we.current.duration)break;we.current.currentTime=parseInt(we.current.currentTime)+5,dn();break;case"ArrowLeft":if(sn.preventDefault(),!y){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime===0)break;we.current.currentTime=parseInt(we.current.currentTime)-5,dn();break;case"ArrowUp":sn.preventDefault(),we.current.volume<1&&(we.current.volume=(parseInt(we.current.volume*10)+1)/10);break;case"ArrowDown":sn.preventDefault(),we.current.volume>0&&(we.current.volume=(parseInt(we.current.volume*10)-1)/10);break}}return He.current.addEventListener((0,ue.gH)(),Jn),we.current.addEventListener("canplay",Zn),we.current.addEventListener("ended",fn),we.current.addEventListener("seeking",Fn),we.current.addEventListener("seeked",xn),we.current.addEventListener("loadedmetadata",yn),mt.current.addEventListener("mousemove",Sr),mt.current.addEventListener("input",Vn),we.current.addEventListener("timeupdate",_n),we.current.addEventListener("pause",Kn),we.current.addEventListener("volumechange",ze),document.addEventListener("keydown",sr),()=>{var sn,Yn,or,$n,ir,Ar,Ir,wr,Tr,ar,$r,Wt;(sn=we.current)==null||sn.removeEventListener("canplay",Zn),(Yn=we.current)==null||Yn.removeEventListener("play",bt),(or=we.current)==null||or.removeEventListener("ended",fn),($n=we.current)==null||$n.removeEventListener("seeking",Fn),(ir=we.current)==null||ir.removeEventListener("seeked",xn),(Ar=mt.current)==null||Ar.removeEventListener("mousemove",Sr),(Ir=mt.current)==null||Ir.removeEventListener("input",Vn),(wr=we.current)==null||wr.removeEventListener("timeupdate",_n),(Tr=we.current)==null||Tr.removeEventListener("pause",Kn),(ar=we.current)==null||ar.removeEventListener("loadedmetadata",yn),($r=we.current)==null||$r.removeEventListener("volumechange",ze),document.removeEventListener("keydown",sr),(Wt=we.current)!=null&&Wt.playing&&(Re.push(at,we.current.currentTime),b&&We())}},[we,E]),(0,te.useEffect)(()=>{if(we.current.onended=()=>{Se(we)},we.current.oncontextmenu=()=>!1,(E==null?void 0:E.indexOf(".m3u8"))>-1){if(we.current.canPlayType("application/vnd.apple.mpegurl"))we.current.src=E;else if(he.ZP.isSupported()){var Mt=new he.ZP;Mt.loadSource(E),Mt.attachMedia(we.current)}}},[E]);const[ot,Ot]=(0,te.useState)(1),Dt=()=>{we.current.paused||we.current.ended?we.current.play():we.current.pause(),Be()};function jt(){we.current.muted=!we.current.muted,we.current.muted?(Et.current.setAttribute("data-volume",volume.value),Et.current.value=0):Et.current.value=Et.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:He},te.createElement("div",{ref:je,className:`${ce.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ce.animate__loop}`},Fe&&Lt?Lt.login:" "),te.createElement("div",{className:ce.container},te.createElement("div",{className:ce["video-container"],id:"video-container"},te.createElement("div",{className:ce["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:ce["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:ce.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:we,autoPlay:Le}),te.createElement("div",{className:`${ce["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:ce["bottom-controls"]},te.createElement("div",{className:ce["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Dt},te.createElement("svg",{className:ce["playback-icons"]},te.createElement("use",{ref:$e,href:"#play-icon"}),te.createElement("use",{ref:Je,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:ce.time},te.createElement("time",{id:"time-elapsed",ref:Nt},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:At},"00:00"))),te.createElement("div",{className:ce["right-controls"]},y&&te.createElement(be.Z,{placement:"top",overlayClassName:ce.rateOverlay,getPopupContainer:Mt=>Mt.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{Ot(1),we.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{Ot(1.5),we.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{Ot(2),we.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${ce.controlText} mr5`},"\u500D\u901F")),te.createElement(ie.CopyToClipboard,{text:E,onCopy:()=>fe.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:ce["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ce["volume-button"],id:"volume-button",onClick:jt},te.createElement("i",{ref:Xe,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Ht,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Ct,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:ce.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Et,style:{display:"none"},onClick:ze})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ce["fullscreen-button"],onClick:()=>{(0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(He.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:ce["video-progress"]},te.createElement("progress",{ref:Pt,value:"0",min:"0"}),te.createElement("input",{className:ce.seek,ref:mt,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:ce["seek-tooltip"],ref:rt,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},30214:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ye}});var te=ee(59301),fe=ee(77254),be=ee(11611),ye=()=>{const[he,ge]=(0,te.useState)(""),[ie,ue]=(0,te.useState)(0);let[ce,me]=(0,te.useState)(),[se,pe]=(0,te.useState)();const[oe,ne]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>fe.Z.subscribe("preview-image",Le=>{ge(Le),console.log(de.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=he},[he]);function y(Se){Se.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",me(void 0),pe(void 0),ue(0),ge("")}function b(){ue(ie+90)}function x(){ce=de.current.width*1.1,se=de.current.height*1.1,pe(se),me(ce)}function z(){ce=de.current.width/1.1,se=de.current.height/1.1,pe(se),me(ce)}const re=(0,te.useRef)(),le=(0,te.useRef)(),de=(0,te.useRef)(),ve=Se=>{(Se.nativeEvent.target===re.current||Se.nativeEvent.target===le.current)&&E()};return te.createElement(te.Fragment,null,he?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:le},te.createElement(be.Z,{className:"image-preview",src:he,style:{display:"none"},preview:{visible:!0,src:he,movable:!1,onVisibleChange:Se=>{ge("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},85533:function(ft,Ke,ee){"use strict";ee.d(Ke,{h:function(){return le}});var te=ee(59301),fe=ee(57809),be=ee(78241),ye=ee(3113),he=ee(89780),ge=ee.n(he),ie=ee(45559),ue=ee(42313),ce=ee(65582),me=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(de,ve,Se)=>ve in de?me(de,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):de[ve]=Se,E=(de,ve)=>{for(var Se in ve||(ve={}))ne.call(ve,Se)&&y(de,Se,ve[Se]);if(oe)for(var Se of oe(ve))a.call(ve,Se)&&y(de,Se,ve[Se]);return de},b=(de,ve)=>se(de,pe(ve));const x=fe.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},re={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"]};Ke.Z=({callback:de,onCancel:ve})=>{const[Se,Le]=(0,te.useState)("python");function Ee(lt){Le(re[lt][1])}function Fe(lt){de(lt)}const xe=(0,ce.useIntl)();return te.createElement(be.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Fe,style:{width:500}}),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},te.createElement(fe.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ee},Object.keys(re).map(lt=>te.createElement(x,{key:lt,value:lt},re[lt][0])))),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(le,{mode:Se})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},xe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(ye.ZP,{type:"ghost",onClick:ve},xe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function le({value:de,onChange:ve,mode:Se,options:Le={}}){const Ee=(0,te.useRef)(),[Fe,xe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Fe){let lt=function(Ye){const ht=Ye.getValue();ve&&ve(ht)};return Fe.on("change",lt),()=>{Fe.off("change",lt)}}},[Fe,ve]),(0,te.useEffect)(()=>{Fe&&Fe.setOption("mode",Se)},[Fe,Se]),(0,te.useEffect)(()=>{Fe&&(de!==Fe.getValue()||de==="")&&setTimeout(()=>{Fe.setValue(de||"")},300)},[Fe,de]),(0,te.useEffect)(()=>{if(Ee.current&&!Fe){const lt=ge().fromTextArea(Ee.current,E({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));xe(lt)}},[Ee.current,Fe]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Ee}))}},96565:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return Wt}});var te=ee(59301),fe=ee(89780),be=ee.n(fe),ye=ee(76374),he=ee(45559),ge=ee(6313),ie=ee(25717),ue=ee(99498),ce=ee(25419),me=ee(67549),se=ee(6339),pe=({value:ae="",className:_e,showTextOnly:Pe,showLines:Ie,style:ke={}})=>{const et=(0,te.useMemo)(()=>"",[ae]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:et}}))},oe=ee(65582),ne=ee(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,re=(ae,_e,Pe)=>_e in ae?a(ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ae[_e]=Pe,le=(ae,_e)=>{for(var Pe in _e||(_e={}))x.call(_e,Pe)&&re(ae,Pe,_e[Pe]);if(b)for(var Pe of b(_e))z.call(_e,Pe)&&re(ae,Pe,_e[Pe]);return ae},de=(ae,_e)=>y(ae,E(_e));function ve({onActionCallback:ae,title:_e,icon:Pe,actionName:Ie,className:ke="",children:et}){function vt(){ae(Ie)}return ne.createElement("a",{title:_e,className:ke,onClick:vt},ne.createElement("i",{className:`${Pe}`}),et)}var Se=({watch:ae,showNullButton:_e,showNullProgramButton:Pe,onActionCallback:Ie,fullScreen:ke,insertTemp:et,hidetoolBar:vt,extraUse:Qt})=>{const Ut=(0,oe.useIntl)(),pt=[...[{title:Ut.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Ut.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Ut.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Ut.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Ut.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Ut.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Ut.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Ut.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Ut.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Ut.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Ut.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Ut.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Ut.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Ut.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Ut.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Ut.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ae?Ut.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Ut.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${ae?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!vt&&pt.map((Bt,gt)=>ne.createElement("li",{key:gt},Bt.actionName?ne.createElement(ve,de(le({},Bt),{onActionCallback:Ie})):ne.createElement("span",{className:"v-line"}))),_e?ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,et&&ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${et}`,onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qt&&ne.createElement("li",null,Qt),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ve,{icon:`${ke?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ke?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ie})))},Le=ee(57261),Ee=ee(78241),Fe=ee(92832),xe=ee(3113),lt=Object.defineProperty,Ye=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Je=(ae,_e,Pe)=>_e in ae?lt(ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ae[_e]=Pe,$e=(ae,_e)=>{for(var Pe in _e||(_e={}))je.call(_e,Pe)&&Je(ae,Pe,_e[Pe]);if(we)for(var Pe of we(_e))He.call(_e,Pe)&&Je(ae,Pe,_e[Pe]);return ae},mt=(ae,_e)=>Ye(ae,ht(_e));const Pt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ae,onCancel:_e})=>{function Pe(ke){ae(ke)}const Ie=(0,oe.useIntl)();return te.createElement(Ee.default,mt($e({},Pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(Ee.default.Item,{label:Ie.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Fe.default,null)),te.createElement(Ee.default.Item,{label:Ie.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Fe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ie.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:_e},Ie.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Nt=ee(85533),rt=ee(45053),Xe=ee(43418),Ct=ee(95237),Ht=ee(16750),Et=ee(59301),rn=({callback:ae,onCancel:_e})=>{const Pe=document.createElement("canvas"),Ie=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ie.fillStyle="#ffffff",Ie.fillRect(0,0,Pe.width,Pe.height);const ke=Pe.toDataURL("image/png");return Et.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(Ct.Z,{style:{height:"100vh"}},Et.createElement(Ht.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ke,visible:!0,title:String(Date.now())},onOk:et=>{ae({src:et.url})},onClose:_e})))},Ze=ee(12378);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var ae=this.diagram;return!(ae===null||ae.isReadOnly||ae.isModelReadOnly||ae.selection.count<2)},St.prototype.alignLeft=function(){var ae=this.diagram;ae.startTransaction("aligning left");var _e=1/0;ae.selection.each(function(Pe){Pe instanceof go.Link||(_e=Math.min(Pe.position.x,_e))}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(_e,Pe.position.y))}),ae.commitTransaction("aligning left")},St.prototype.alignRight=function(){var ae=this.diagram;ae.startTransaction("aligning right");var _e=-1/0;ae.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ie=Pe.actualBounds.x+Pe.actualBounds.width;_e=Math.max(Ie,_e)}}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(_e-Pe.actualBounds.width,Pe.position.y))}),ae.commitTransaction("aligning right")},St.prototype.alignTop=function(){var ae=this.diagram;ae.startTransaction("alignTop");var _e=1/0;ae.selection.each(function(Pe){Pe instanceof go.Link||(_e=Math.min(Pe.position.y,_e))}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,_e))}),ae.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var ae=this.diagram;ae.startTransaction("aligning bottom");var _e=-1/0;ae.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ie=Pe.actualBounds.y+Pe.actualBounds.height;_e=Math.max(Ie,_e)}}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,_e-Pe.actualBounds.height))}),ae.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var ae=this.diagram,_e=ae.selection.first();if(_e){ae.startTransaction("aligning Center X");var Pe=_e.actualBounds.x+_e.actualBounds.width/2;ae.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(Pe-Ie.actualBounds.width/2,Ie.actualBounds.y))}),ae.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var ae=this.diagram,_e=ae.selection.first();if(_e){ae.startTransaction("aligning Center Y");var Pe=_e.actualBounds.y+_e.actualBounds.height/2;ae.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(Ie.actualBounds.x,Pe-Ie.actualBounds.height/2))}),ae.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(ae){var _e=this.diagram;_e.startTransaction("align Column"),ae===void 0&&(ae=0),ae=parseFloat(ae);var Pe=new Array;_e.selection.each(function(Qt){Qt instanceof go.Link||Pe.push(Qt)});for(var Ie=0;Ie<Pe.length-1;Ie++){var ke=Pe[Ie],et=ke.actualBounds.y+ke.actualBounds.height+ae,vt=Pe[Ie+1];vt.move(new go.Point(ke.actualBounds.x,et))}_e.commitTransaction("align Column")},St.prototype.alignRow=function(ae){ae===void 0&&(ae=0),ae=parseFloat(ae);var _e=this.diagram;_e.startTransaction("align Row");var Pe=new Array;_e.selection.each(function(Qt){Qt instanceof go.Link||Pe.push(Qt)});for(var Ie=0;Ie<Pe.length-1;Ie++){var ke=Pe[Ie],et=ke.actualBounds.x+ke.actualBounds.width+ae,vt=Pe[Ie+1];vt.move(new go.Point(et,ke.actualBounds.y))}_e.commitTransaction("align Row")},St.prototype.canRotate=function(ae){var _e=this.diagram;return!(_e===null||_e.isReadOnly||_e.isModelReadOnly||_e.selection.count<1)},St.prototype.rotate=function(ae){ae===void 0&&(ae=90);var _e=this.diagram;_e.startTransaction("rotate "+ae.toString());var _e=this.diagram;_e.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ae)}),_e.commitTransaction("rotate "+ae.toString())},St.prototype.pullToFront=function(){var ae=this.diagram;ae.startTransaction("pullToFront");var _e=new go.Map;ae.selection.each(function(Pe){_e.set(Pe.layer,0)}),_e.iteratorKeys.each(function(Pe){var Ie=0;Pe.parts.each(function(ke){if(!ke.isSelected){var et=ke.zOrder;isNaN(et)?ke.zOrder=0:Ie=Math.max(Ie,et)}}),_e.set(Pe,Ie)}),ae.selection.each(function(Pe){St._assignZOrder(Pe,_e.get(Pe.layer)+1)}),ae.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var ae=this.diagram;ae.startTransaction("pushToBack");var _e=new go.Map;ae.selection.each(function(Pe){_e.set(Pe.layer,0)}),_e.iteratorKeys.each(function(Pe){var Ie=0;Pe.parts.each(function(ke){if(!ke.isSelected){var et=ke.zOrder;isNaN(et)?ke.zOrder=0:Ie=Math.min(Ie,et)}}),_e.set(Pe,Ie)}),ae.selection.each(function(Pe){St._assignZOrder(Pe,_e.get(Pe.layer)-1-St._findGroupDepth(Pe))}),ae.commitTransaction("pushToBack")},St._assignZOrder=function(ae,_e,Pe){Pe===void 0&&(Pe=ae),ae.layer===Pe.layer&&(ae.zOrder=_e),ae instanceof go.Group&&ae.memberParts.each(function(Ie){St._assignZOrder(Ie,_e+1,Pe)})},St._findGroupDepth=function(ae){if(ae instanceof go.Group){var _e=0;return ae.memberParts.each(function(Pe){_e=Math.max(_e,St._findGroupDepth(Pe))}),_e+1}else return 0},St.prototype.doKeyDown=function(){var ae=this.diagram;if(ae!==null){var _e=ae.lastInput;if(_e.key==="Up"||_e.key==="Down"||_e.key==="Left"||_e.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var ae=new Array;return this.diagram.nodes.each(function(_e){ae.push(_e)}),this.diagram.parts.each(function(_e){ae.push(_e)}),ae},St.prototype._arrowKeyMove=function(){var ae=this.diagram,_e=ae.lastInput,Pe=0,Ie=0;if(_e.control||_e.meta)Pe=1,Ie=1;else if(ae.grid!==null){var ke=ae.grid.gridCellSize;Ie=ke.width,Pe=ke.height}ae.startTransaction("arrowKeyMove"),ae.selection.each(function(et){_e.key==="Up"?et.move(new go.Point(et.actualBounds.x,et.actualBounds.y-Pe)):_e.key==="Down"?et.move(new go.Point(et.actualBounds.x,et.actualBounds.y+Pe)):_e.key==="Left"?et.move(new go.Point(et.actualBounds.x-Ie,et.actualBounds.y)):_e.key==="Right"&&et.move(new go.Point(et.actualBounds.x+Ie,et.actualBounds.y))}),ae.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var ae=this.diagram,_e=ae.lastInput,Pe=null;_e.key==="Up"?Pe=this._findNearestPartTowards(270):_e.key==="Down"?Pe=this._findNearestPartTowards(90):_e.key==="Left"?Pe=this._findNearestPartTowards(180):_e.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(_e.shift?Pe.isSelected=!0:_e.control||_e.meta?Pe.isSelected=!Pe.isSelected:ae.select(Pe))},St.prototype._findNearestPartTowards=function(ae){var _e=this.diagram.selection.first();if(_e===null)return null;for(var Pe=_e.actualBounds.center,Ie=this._getAllParts(),ke=1/0,et=_e,vt=0;vt<Ie.length;vt++){var Qt=Ie[vt];if(Qt!==_e&&Qt.canSelect()){var Ut=Qt.actualBounds.center,yt=Pe.directionPoint(Ut),pt=this._angleCloseness(yt,ae);if(pt<=45){var Bt=Pe.distanceSquaredPoint(Ut);Bt*=1+Math.sin(pt*Math.PI/180),Bt<ke&&(ke=Bt,et=Qt)}}}return et},St.prototype._angleCloseness=function(ae,_e){return Math.min(Math.abs(_e-ae),Math.min(Math.abs(_e+360-ae),Math.abs(_e-360-ae)))},St.prototype._arrowKeyTree=function(){var ae=this.diagram,_e=ae.selection.first();if(_e instanceof go.Node){var Pe=ae.lastInput;if(Pe.key==="Right"){if(!_e.isTreeLeaf)if(!_e.isTreeExpanded)ae.commandHandler.canExpandTree(_e)&&ae.commandHandler.expandTree(_e);else{var Ie=this._sortTreeChildrenByY(_e).first();Ie!==null&&ae.select(Ie)}}else if(Pe.key==="Left")if(!_e.isTreeLeaf&&_e.isTreeExpanded)ae.commandHandler.canCollapseTree(_e)&&ae.commandHandler.collapseTree(_e);else{var ke=_e.findTreeParentNode();ke!==null&&ae.select(ke)}else if(Pe.key==="Up"){var ke=_e.findTreeParentNode();if(ke!==null){var et=this._sortTreeChildrenByY(ke),vt=et.indexOf(_e);if(vt>0){for(var Qt=et.elt(vt-1);Qt!==null&&Qt.isTreeExpanded&&!Qt.isTreeLeaf;){var Ut=this._sortTreeChildrenByY(Qt);Qt=Ut.last()}Qt!==null&&ae.select(Qt)}else ae.select(ke)}}else if(Pe.key==="Down")if(_e.isTreeExpanded&&!_e.isTreeLeaf){var Ie=this._sortTreeChildrenByY(_e).first();Ie!==null&&ae.select(Ie)}else for(;_e!==null;){var ke=_e.findTreeParentNode();if(ke===null)break;var et=this._sortTreeChildrenByY(ke),vt=et.indexOf(_e);if(vt<et.length-1){ae.select(et.elt(vt+1));break}else _e=ke}var yt=ae.selection.first();yt!==null&&ae.scrollToRect(yt.actualBounds)}},St.prototype._sortTreeChildrenByY=function(ae){var _e=new go.List().addAll(ae.findTreeChildrenNodes());return _e.sort(function(Pe,Ie){var ke=Pe.location,et=Ie.location;return ke.y<et.y?-1:ke.y>et.y?1:ke.x<et.x?-1:ke.x>et.x?1:0}),_e},St.prototype.copyToClipboard=function(ae){go.CommandHandler.prototype.copyToClipboard.call(this,ae),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var ae=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ae,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ae},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ae){if(ae!=="move"&&ae!=="select"&&ae!=="scroll"&&ae!=="tree"&&ae!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ae);this._arrowKeyBehavior=ae}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ae){if(!(ae instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ae);this._pasteOffset.set(ae)}});var Lt=St,nn=ee(25863),Zt=ee(43604),at=ee(38147),dt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=ee(59301),Ne=(ae,_e,Pe)=>new Promise((Ie,ke)=>{var et=Ut=>{try{Qt(Pe.next(Ut))}catch(yt){ke(yt)}},vt=Ut=>{try{Qt(Pe.throw(Ut))}catch(yt){ke(yt)}},Qt=Ut=>Ut.done?Ie(Ut.value):Promise.resolve(Ut.value).then(et,vt);Qt((Pe=Pe.apply(ae,_e)).next())});function nt({onCancel:ae,callback:_e}){let Pe=(0,te.useRef)(),Ie=(0,te.useRef)(),ke=(0,te.useRef)(),et=(0,te.useRef)(!1);const vt=(0,te.useRef)(!1),[Qt,Ut]=(0,te.useState)(0);function yt(){const gt=Ze.bx.make,zt={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"};Pe.current=new Ze.S0(Ie.current,{padding:20,grid:gt(Ze.s_,"Grid",gt(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:an=>{var bn=an.diagram.commandHandler.addTopLevelParts(an.diagram.selection,!0);bn||an.diagram.currentTool.doCancel()},commandHandler:gt(Lt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:an=>{var bn=an.subject;bn.location=bn.location.copy().snapToGridPoint(an.diagram.grid.gridOrigin,an.diagram.grid.gridCellSize),setTimeout(()=>{an.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:an=>{var bn=an.subject;setTimeout(()=>{an.diagram.commandHandler.editTextBlock()})},LinkRelinked:an=>{var bn=an.parameter.part;bn.invalidateConnectedLinks();var Cn=an.subject;an.diagram.toolManager.linkingTool.isForwards?Cn.toNode.invalidateConnectedLinks():Cn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=gt(Ze.NB,"Auto",{locationSpot:Ze.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ze.$u(120,60),minSize:new Ze.$u(40,40),resizable:!0,resizeCellSize:new Ze.$u(10,10),rotatable:!0},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),new Ze.KX("desiredSize","size",Ze.$u.parse).makeTwoWay(Ze.$u.stringify),gt(Ze.bn,{name:"SHAPE",fill:zt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("figure"),new Ze.KX("fill"),new Ze.KX("stroke","borderColor"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),gt(Ze.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt(Ze.al,{margin:1,textAlign:"center",overflow:Ze.al.OverflowEllipsis,editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=gt("ToolTip",gt(Ze.s_,"Vertical",{maxSize:new Ze.$u(200,NaN)},gt(Ze.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ze.KX("text")),gt(Ze.al,{font:"10pt sans-serif",textAlign:"center"},new Ze.KX("text","details"))));function Vt(an,bn){var Cn=(Pn,_r)=>{Pn.handled=!0,Pn.diagram.model.commit(fr=>{var Or=_r.part.adornedPart,Hr=new Ze.E9().setRectSpot(Or.actualBounds,an);Hr.subtract(Or.location),Hr.scale(2,2),Hr.x+=Math.sign(Hr.x)*130,Hr.y+=Math.sign(Hr.y)*130,Hr.add(Or.location),Hr.snapToGridPoint(Pn.diagram.grid.gridOrigin,Pn.diagram.grid.gridCellSize);var so=fr.copyNodeData(Or.data);fr.setGroupKeyForNodeData(so,fr.getGroupKeyForNodeData(Or.data)),fr.addNodeData(so);var co={from:Or.key,to:fr.getKeyForNodeData(so)};fr.addLinkData(co);var yo=Pn.diagram.findNodeForData(so);yo.location=Hr,Pn.diagram.select(yo),setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()},20)})};return gt(Ze.bn,{figure:bn,alignment:an,alignmentFocus:an.opposite(),width:an.equals(Ze.z6.Top)||an.equals(Ze.z6.Bottom)?25:18,height:an.equals(Ze.z6.Top)||an.equals(Ze.z6.Bottom)?18:25,fill:"orange",stroke:zt.white,strokeWidth:4,mouseEnter:(Pn,_r)=>_r.fill="dodgerblue",mouseLeave:(Pn,_r)=>_r.fill="orange",isActionable:!0,click:Cn,contextClick:Cn})}function Rt(an){return gt(Ze.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:(bn,Cn)=>Cn.fill="dodgerblue",mouseLeave:(bn,Cn)=>Cn.fill="orange",click:(bn,Cn)=>{bn.diagram.commandHandler.showContextMenu(Cn.part.adornedPart)}},an||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=gt(Ze.uz,"Spot",gt(Ze.Vm,{padding:10}),Vt(Ze.z6.Top,"TriangleUp"),Vt(Ze.z6.Left,"TriangleLeft"),Vt(Ze.z6.Right,"TriangleRight"),Vt(Ze.z6.Bottom,"TriangleDown"),Rt({alignment:new Ze.z6(.75,0)}));function kt(an,bn){return(Cn,Pn)=>{Cn.handled=!0,Cn.diagram.model.commit(_r=>{_r.set(Pn.part.adornedPart.data,an,bn)})}}function Jt(an,bn){return bn||(bn="color"),gt(Ze.bn,{width:16,height:16,stroke:"lightgray",fill:an,margin:1,background:"transparent",mouseEnter:(Cn,Pn)=>Pn.stroke="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.stroke="lightgray",click:kt(bn,an),contextClick:kt(bn,an)})}function un(){return[gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Jt(zt.white,"fill"),Jt(zt.beige,"fill"),Jt(zt.extralightblue,"fill"),Jt(zt.extralightred,"fill"))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Jt(zt.lightgray,"fill"),Jt(zt.lightgreen,"fill"),Jt(zt.lightblue,"fill"),Jt(zt.lightred,"fill")))]}function Dn(){return[gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Jt(zt.black),Jt(zt.green),Jt(zt.blue),Jt(zt.red))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Jt(zt.white),Jt(zt.magenta),Jt(zt.purple),Jt(zt.orange)))]}function kn(an,bn){return bn||(bn="thickness"),gt(Ze.bn,"LineH",{width:16,height:16,strokeWidth:an,margin:1,background:"transparent",mouseEnter:(Cn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.background="transparent",click:kt(bn,an),contextClick:kt(bn,an)})}function Xn(an,bn){return bn||(bn="dash"),gt(Ze.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:an,margin:1,background:"transparent",mouseEnter:(Cn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.background="transparent",click:kt(bn,an),contextClick:kt(bn,an)})}function pn(){return[gt("ContextMenuButton",gt(Ze.s_,"Horizontal",kn(1),kn(2),kn(3),kn(4))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Xn(null),Xn([2,4]),Xn([4,4])))]}function Rn(an,bn){return bn||(bn="figure"),gt(Ze.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:an,margin:1,background:"transparent",mouseEnter:(Cn,Pn)=>Pn.fill="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.fill="lightgray",click:kt(bn,an),contextClick:kt(bn,an)})}Pe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Rn("Rectangle"),Rn("RoundedRectangle"),Rn("Ellipse"),Rn("Diamond"))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Rn("Parallelogram2"),Rn("ManualOperation"),Rn("Procedure"),Rn("Cylinder1"))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",Rn("Terminator"),Rn("CreateRequest"),Rn("Document"),Rn("TriangleDown"))),un(),Dn(),pn()),Pe.current.groupTemplate=gt(Ze.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ze.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(an,bn)=>{var Cn=bn.addMembers(bn.diagram.selection,!0);Cn||bn.diagram.currentTool.doCancel()},avoidable:!1},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),gt(Ze.s_,"Auto",{name:"BODY"},gt(Ze.bn,{parameter1:10,fill:zt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("fill"),new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),gt(Ze.Vm,{background:"transparent",margin:20})),gt(Ze.al,{alignment:Ze.z6.Top,alignmentFocus:Ze.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ze.KX("text"),new Ze.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=gt(Ze.uz,"Spot",gt(Ze.s_,"Auto",gt(Ze.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt(Ze.Vm,{margin:1.5})),Rt({alignment:Ze.z6.TopRight,alignmentFocus:Ze.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=gt("ContextMenu",un(),Dn(),pn()),Pe.current.linkTemplate=gt(Ze.rU,{layerName:"Foreground",routing:Ze.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ze.KX("fromSpot","fromSpot",Ze.z6.parse),new Ze.KX("toSpot","toSpot",Ze.z6.parse),new Ze.KX("fromShortLength","dir",an=>an>=1?10:0),new Ze.KX("toShortLength","dir",an=>an>=1?10:0),new Ze.KX("points").makeTwoWay(),gt(Ze.bn,{strokeWidth:2},new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),gt(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,0),segmentOrientation:Ze.rU.OrientAlong,alignmentFocus:Ze.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",an=>an===1)),gt(Ze.bn,{segmentIndex:-1,segmentOffset:new Ze.E9(-10,6),segmentOrientation:Ze.rU.OrientPlus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",an=>an>=1),new Ze.KX("width","thickness",an=>7+3*an),new Ze.KX("height","thickness",an=>7+3*an),new Ze.KX("segmentOffset","thickness",an=>new Ze.E9(-15,4+1.5*an))),gt(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,-6),segmentOrientation:Ze.rU.OrientMinus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",an=>an===2),new Ze.KX("width","thickness",an=>7+3*an),new Ze.KX("height","thickness",an=>7+3*an),new Ze.KX("segmentOffset","thickness",an=>new Ze.E9(-15,4+1.5*an))),gt(Ze.al,{alignmentFocus:new Ze.z6(0,1,-4,0),editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=gt(Ze.uz,gt(Ze.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:lr(2)},new Ze.KX("pathPattern","thickness",lr)),Rt({alignmentFocus:new Ze.z6(0,0,-6,-4)}));function lr(an){return gt(Ze.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(an+4).toString()+" H3"})}function rr(an){var bn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return an===0?bn="M0 0 M16 16 M0 8 L16 8":an===2&&(bn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt(Ze.bn,{geometryString:bn,margin:2,background:"transparent",mouseEnter:(Cn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.background="transparent",click:kt("dir",an),contextClick:kt("dir",an)})}function $t(an){var bn=(Cn,Pn)=>{Cn.handled=!0,Cn.diagram.model.commit(_r=>{var fr=Pn.part.adornedPart;_r.set(fr.data,an?"toSpot":"fromSpot",Ze.z6.stringify(Ze.z6.AllSides)),(an?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return gt(Ze.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Cn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Cn,Pn)=>Pn.background="transparent",click:bn,contextClick:bn})}function ur(an,bn){var Cn=0,Pn=Ze.z6.RightSide;an.equals(Ze.z6.Top)?(Cn=270,Pn=Ze.z6.TopSide):an.equals(Ze.z6.Left)?(Cn=180,Pn=Ze.z6.LeftSide):an.equals(Ze.z6.Bottom)&&(Cn=90,Pn=Ze.z6.BottomSide),bn||(Cn-=180);var _r=(fr,Or)=>{fr.handled=!0,fr.diagram.model.commit(Hr=>{var so=Or.part.adornedPart;Hr.set(so.data,bn?"toSpot":"fromSpot",Ze.z6.stringify(Pn)),(bn?so.toNode:so.fromNode).invalidateConnectedLinks()})};return gt(Ze.bn,{alignment:an,alignmentFocus:an.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Cn,background:"transparent",mouseEnter:(fr,Or)=>Or.background="dodgerblue",mouseLeave:(fr,Or)=>Or.background="transparent",click:_r,contextClick:_r})}Pe.current.linkTemplate.contextMenu=gt("ContextMenu",Dn(),pn(),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",rr(0),rr(1),rr(2))),gt("ContextMenuButton",gt(Ze.s_,"Horizontal",gt(Ze.s_,"Spot",$t(!1),ur(Ze.z6.Top,!1),ur(Ze.z6.Left,!1),ur(Ze.z6.Right,!1),ur(Ze.z6.Bottom,!1)),gt(Ze.s_,"Spot",{margin:new Ze.Zt(0,0,0,2)},$t(!0),ur(Ze.z6.Top,!0),ur(Ze.z6.Left,!0),ur(Ze.z6.Right,!0),ur(Ze.z6.Bottom,!0)))));const qr=`{ "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 Dr(an){return console.log("shapeName:",an),xr.indexOf(an)>=0}var Zr=new Ze.YI(ke.current,{maxSelectionCount:1,linkTemplate:gt(Ze.rU,{locationSpot:Ze.z6.Center,selectionAdornmentTemplate:gt(Ze.uz,"Link",{locationSpot:Ze.z6.Center},gt(Ze.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt(Ze.bn,{toArrow:"Standard",stroke:null}))},{routing:Ze.rU.AvoidsNodes,curve:Ze.rU.JumpOver,corner:5,toShortLength:4},new Ze.KX("points"),gt(Ze.bn,{isPanelMain:!0,strokeWidth:2}),gt(Ze.bn,{toArrow:"Standard",stroke:null})),model:new Ze.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ze.bn.getFigureGenerators().toArray().map(an=>({text:"\u672A\u547D\u540D",size:"100 100",figure:an.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(an){var bn;const Cn=an.subject.part;var Pn=(bn=document.activeElement)==null?void 0:bn.value;typeof Pn=="string"&&Pn.trim()===""&&Pe.current.model.commit(function(_r){_r.set(Cn.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Zr.nodeTemplate=gt(Ze.NB,"Auto",{locationSpot:Ze.z6.Center},new Ze.KX("location","location",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),gt(Ze.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 Ze.KX("stroke").makeTwoWay(),new Ze.KX("fill").makeTwoWay(),new Ze.KX("figure")),gt(Ze.al,{margin:new Ze.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ze.$u(16,16),maxSize:new Ze.$u(10,NaN),textAlign:"center",editable:!0},new Ze.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=gt(Ze.s_,"Grid",gt(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const pt=()=>Ne(this,null,function*(){var gt=Pe.current.makeImage();const zt=yield(0,at.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});_e({src:zt.url})});(0,te.useEffect)(()=>(setTimeout(()=>{yt()},500),Ut(Qt+1),()=>{Pe.current=null}),[]);const Bt=(0,oe.useIntl)();return Ge.createElement("div",{ref:vt,className:et.current?`${dt.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Ct.Z,null,Ge.createElement(Zt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement(Zt.Z,{onClick:()=>{var gt,zt,Vt=Pe.current.selection.first();if(et.current=!et.current,document.activeElement&&Vt){let Rt=(zt=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:zt.trim();typeof Rt=="string"&&Pe.current.model.commit(function(kt){kt.set(Vt.data,"text",Rt||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ut(Qt+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Bt.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ae},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:dt.flowChartWrp},Ge.createElement("div",{style:{display:"flex",height:"100%"}},Ge.createElement("div",{style:{width:"300px",height:"100%"}},Ge.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ge.createElement("div",{style:{height:"calc(100% - 50px)"},className:dt.myPaletteDiv,ref:ke})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:Ie,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(xe.ZP,{size:"large",onClick:pt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Bt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var xt=nt,Ae=ee(5112),Re=ee(5871);const We=Ae.ZP.Group,Be={margin:"0 8px"};var ze=({callback:ae,onCancel:_e})=>{function Pe(ke){ae(ke)}const Ie=(0,oe.useIntl)();return te.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Be},Ie.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),te.createElement("span",{style:Be},Ie.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),te.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Re.Z,null)),te.createElement("span",{style:Be},Ie.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),te.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Re.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Be},Ie.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),te.createElement(Ee.default.Item,{name:"align"},te.createElement(We,null,te.createElement(Ae.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Ae.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Ae.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Ae.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ie.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:_e},Ie.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},ot=ee(78673),Ot=ee(93510),Dt=ee.n(Ot),Mt=(0,te.forwardRef)(({use3d:ae,width:_e,height:Pe,callback:Ie,showSaveButton:ke},et)=>{const vt=(0,te.useRef)(),Qt=(0,te.useRef)(),Ut=(0,oe.useIntl)(),[yt,pt]=(0,te.useState)(!1),Bt=(0,te.useRef)({id:vt,appName:"graphing",width:_e||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Qt.current=new(Dt())(Bt.current,!0),window.onload=function(){Qt.current.inject("applet_container")}},[]);const gt=()=>{var zt=window.ggbApplet.getPNGBase64(1,!0,72);return Ie&&Ie(zt),zt};return(0,te.useEffect)(()=>{Bt.current.appName=yt?"3D":"graphing",Qt.current.inject("applet_container")},[yt]),(0,te.useEffect)(()=>{pt(ae)},[ae]),(0,te.useImperativeHandle)(et,()=>({getImgData:gt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:vt}),te.createElement(Ct.Z,{align:"middle"},te.createElement(Zt.Z,{flex:1},te.createElement(ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Ut.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:yt,onChange:zt=>pt(zt)})),te.createElement(Zt.Z,null,te.createElement(xe.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},Ut.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Gt=ee(99298),bt=ee(1012),fn=ee(8591);const dn="link",wt="upload-image",yn="add-flowchart",_n="draw-image",Fn="add-flowchart",xn="code-block",Zn="add-table",Jn="------------",Kn={default:Jn,left:`:${Jn}`,center:`:${Jn}:`,right:`${Jn}:`};var Vn=ee(31103),Sr=(ae,_e,Pe)=>new Promise((Ie,ke)=>{var et=Ut=>{try{Qt(Pe.next(Ut))}catch(yt){ke(yt)}},vt=Ut=>{try{Qt(Pe.throw(Ut))}catch(yt){ke(yt)}},Qt=Ut=>Ut.done?Ie(Ut.value):Promise.resolve(Ut.value).then(et,vt);Qt((Pe=Pe.apply(ae,_e)).next())});function sr(){}let sn=0;const Yn=1e4,or="\u2581",$n="@\u2581\u2581@",ir="@\u2581@",Ar=`
|
|
|
**\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`,Ir=["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 wr(ae){return/^\d+$/.test(ae)?`${ae}px`:ae}const ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$r={[ar+"-B"]:"bold",[ar+"-I"]:"italic"};var Wt=({defaultValue:ae="",onChange:_e,width:Pe="100%",height:Ie=400,miniToolbar:ke=!1,isFocus:et=!1,watch:vt,insertTemp:Qt,mode:Ut="markdown",id:yt="markdown-editor-id",showResizeBar:pt=!1,noStorage:Bt=!1,showNullButton:gt=!1,showNullProgramButton:zt=!1,hidetoolBar:Vt=!1,fullScreen:Rt=!1,onBlur:kt,onCMBeforeChange:Jt,onFullScreen:un,className:Dn="",disablePaste:kn=!1,disabled:Xn=!1,disabledFill:pn=!1,placeholder:Rn="",values:lr="",extraUse:rr})=>{const[$t,ur]=(0,te.useState)(null),[qr,xr]=(0,te.useState)(ae),[Dr,Zr]=(0,te.useState)(vt),[an,bn]=(0,te.useState)(Rt),[Cn,Pn]=(0,te.useState)(""),[_r,fr]=(0,te.useState)(0),[Or,Hr]=(0,te.useState)(Ie),[so,co]=(0,te.useState)(!1),yo=(0,te.useRef)((0,bt.Z)()),So=(0,te.useRef)(!1),wo=(0,te.useRef)(),[Po,xo]=(0,te.useState)(0),[Lo,Bo]=(0,te.useState)(0),Wr=(0,te.useRef)(),Kr=(0,te.useRef)(),Gr=(0,te.useRef)(),to=(0,te.useRef)(),bo=()=>Sr(void 0,null,function*(){var Gn;const wn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:yo.current}});(Gn=wn==null?void 0:wn.attachments)!=null&&Gn.length&&(console.log("cm:",$t,Wr),wn.attachments.map(Ln=>{Ln.content_type.indexOf("image")>-1?$t.replaceSelection(``):Ln.content_type.indexOf("video")>-1?$t.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ln.content_type.indexOf("pdf")>-1?$t.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ln.id}?type=${Ln.content_type}&disposition=inline" target="_blank">${Ln.name}</a>`):$t.replaceSelection(`[${Ln.name}](${ENV.API_SERVER}/api/attachments/${Ln.id}?type=${Ln.content_type})`)}))});(0,te.useEffect)(()=>{const Gn=window.scrollY||window.pageYOffset;xr(lr),$t==null||$t.setValue(lr),window.scrollTo(0,Gn)},[lr]),(0,te.useEffect)(()=>{un==null||un(an)},[an]),(0,te.useEffect)(()=>{if(Wr.current){let Gn=function(Ln,In){var hr;if(kn){In.preventDefault();return}const Nr=In.clipboardData;if(Nr){const ao=Nr.types.toString(),lo=Nr.items;if(ao==="Files"||Nr.types.indexOf("Files")>-1){if(In.preventDefault(),Ut=="stex")return;try{let uo=lo[1];((hr=lo[0])==null?void 0:hr.kind)==="file"&&(uo=lo[0]);const fo=uo.getAsFile(),Ho=fo.name.split(".").pop();(0,rt.I)(fo,Co=>{var ri,Qr,dr;Co.id?((ri=fo==null?void 0:fo.type)==null?void 0:ri.indexOf("image"))>-1?wn.replaceSelection(`<img width="100%" src="/api/attachments/${Co.id}?type=${Co.content_type})" alt="" />`):((Qr=fo==null?void 0:fo.type)==null?void 0:Qr.indexOf("video"))>-1?wn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Co.id}"></video>`):((dr=fo==null?void 0:fo.type)==null?void 0:dr.indexOf("pdf"))>-1?wn.replaceSelection(`<a href="/api/attachments/${Co.id}?type=${fo.type}&disposition=inline" target="_blank">${fo.name}</a>`):Ir.includes(Ho)?wn.replaceSelection(`<a href="/api/attachments/${Co.id}?type=office&disposition=inline" target="_blank">${fo.name}</a>`):wn.replaceSelection(`[${fo.name}](/api/attachments/${Co.id}?type=${Co.content_type})`):(Co==null?void 0:Co.status)===401&&(fn.ZP.warning((Co==null?void 0:Co.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(uo){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wn=be().fromTextArea(Wr.current,{mode:Ut,lineNumbers:!ke,lineWrapping:!0,value:ae,autoCloseTags:!zt,autoCloseBrackets:!0});return wn.on("keyup",function(Ln,In){In.keyCode===8&&(Ln.getValue()==""?wn.setOption("placeholder",Rn):wn.setOption("placeholder",null))}),wn.on("keydown",function(Ln,In){if(In.keyCode===8){var hr=zr(Ln);hr&&In.preventDefault()}}),et&&wn.focus(),wn.on("paste",Gn),wn.on("dragleave",function(Ln,In){Kr.current.classList.remove("mouse-hover-md")}),Xn&&wn.on("beforeChange",function(Ln,In){(In.origin==="paste"||In.origin==="+input")&&In.cancel()}),ur(wn),()=>{wn.off("paste",Gn)}}},[]);const Oo=(0,te.useCallback)(()=>{if(Kr.current)try{}catch(Gn){console.log(Gn,"---- to set md editor body height")}},[Or,Kr,an]);(0,te.useEffect)(()=>{function Gn(){let wn=new ye.Z(Ln=>{for(let In of Ln)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&(Oo(),$t.setSize("100%","100%"),$t.refresh())});return wn.observe(Wr.current.parentElement),wn}if($t){const wn=Gn();return()=>{var Ln,In;(Ln=Wr.current)!=null&&Ln.parentElement&&wn.unobserve((In=Wr.current)==null?void 0:In.parentElement)}}},[$t,Oo]),(0,te.useEffect)(()=>{if($t){let Gn=[];for(const[wn,Ln]of Object.entries($r)){let In={[wn]:()=>{jo(Ln)}};Gn.push(In),$t.addKeyMap(In)}return wo.current=setInterval(()=>{So.current&&bo()},4e3),()=>{clearInterval(wo.current);for(let wn of Gn)$t.removeKeyMap(wn)}}},[$t]),(0,te.useEffect)(()=>{Rt!==an&&bn(Rt)},[Rt]),(0,Vn.Z)(()=>{if(!Bt&&_r>0){let Gn=new Date().getTime(),wn=window.sessionStorage.getItem(yt);Gn>=_r+Yn&&(!wn||wn!==qr)&&(window.sessionStorage.setItem(yt,qr),co(!0))}},Yn),(0,te.useEffect)(()=>{Zr(vt)},[$t,vt]),(0,te.useEffect)(()=>{$t&&et&&$t.focus()},[$t,et]),(0,te.useEffect)(()=>{if(Dr&&$t){let Gn=function(Ln){let In=Ln.target;if(to.current){let hr=In.scrollTop/In.scrollHeight;to.current.scrollTop=to.current.scrollHeight*hr}};const wn=$t.getScrollerElement();return wn.addEventListener("scroll",Gn),()=>{wn.removeEventListener("scroll",Gn)}}},[$t,Dr]),(0,te.useEffect)(()=>{if($t&&Jt){let Gn=function(wn,Ln){Jt(wn,Ln)};return $t.on("beforeChange",Gn),()=>{$t.off("beforeChange",Gn)}}},[$t,Jt]),(0,te.useEffect)(()=>{if($t&&kt){let Gn=function(){kt($t.getValue())};return $t.on("blur",Gn),()=>{$t.off("blur",Gn)}}},[$t,kt]);function zr(Gn,wn){var Ln=Gn.getDoc(),In=Ln.getCursor(),hr=Ln.getLine(In.line),Nr=hr.charAt(In.ch-1),ao=hr.lastIndexOf("@\u2581@",In.ch),lo=hr.lastIndexOf("@\u2581\u2581@",In.ch),uo=ao>lo?ao:lo,fo=ao>lo?3:4;if($n.indexOf(Nr)===-1)return null;if(console.log("change1:",wn,Gn,hr,In,uo,ao,lo,Nr),uo>=0&&In.ch-uo<5){var Ho=uo+fo;return Ln.replaceRange("",{line:In.line,ch:uo},{line:In.line,ch:Ho}),{line:In.line,ch:Ho}}return null}(0,te.useEffect)(()=>{if($t){let Gn=function(wn,Ln){const In=wn.getValue();xr(In),fr(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),_e&&(zt?_e(In,ho(In)):_e(In))};return $t.on("change",Gn),()=>{$t.off("change",Gn)}}},[$t,_e]),(0,te.useEffect)(()=>{if($t)if(ae==null)$t.setValue(""),xr("");else{const Gn=window.scrollY||window.pageYOffset;ae!==$t.getValue()&&($t.setValue(ae),xr(ae),$t.setCursor(Xn?1:$t.lineCount(),0),window.scrollTo(0,Gn))}},[$t,ae]);const jo=(0,te.useCallback)(Gn=>{const wn=$t.getCursor(),Ln=$t.getSelection();let In=Ln.split(`
|
|
|
`);switch(Gn){case"bold":return $t.replaceSelection("**"+Ln+"**"),Ln===""&&$t.setCursor(wn.line,wn.ch+2),$t.focus();case"italic":return $t.replaceSelection("*"+Ln+"*"),Ln===""&&$t.setCursor(wn.line,wn.ch+1),$t.focus();case"code":return $t.replaceSelection("`"+Ln+"`"),Ln===""&&$t.setCursor(wn.line,wn.ch+1),$t.focus();case"inline-latex":return Pn("inline-latex"),$t.focus();case"latex":return $t.replaceSelection("```latex\n"+Ln+"\n```"),$t.setCursor(wn.line+1,Ln.length+1),$t.focus();case"line-break":return $t.replaceSelection(`<br/>
|
|
|
`),$t.focus();case"list-ul":return Ln===""?$t.replaceSelection("- "+Ln):$t.replaceSelection(In.map(hr=>hr===""?"":`- ${hr}`).join(`
|
|
|
`)),$t.focus();case"list-ol":return Ln===""?$t.replaceSelection("1. "+Ln):$t.replaceSelection(In.map((hr,Nr)=>hr===""?"":`${Nr+1}. ${hr}`).join(`
|
|
|
`)),$t.focus();case"add-null-ch":return Ln===""&&$t.setCursor(wn.line,wn.ch),$t.replaceSelection(or),$t.focus();case"add-signal":return Ln===""&&$t.setCursor(wn.line,wn.ch),$t.replaceSelection(ir),$t.focus();case"add-multiple":return Ln===""&&$t.setCursor(wn.line,wn.ch),$t.replaceSelection($n),$t.focus();case"inster-template-1":return Ln===""&&$t.setCursor(wn.line,wn.ch),$t.replaceSelection(Ar),$t.focus();case"eraser":return $t.setValue(""),$t.focus();case"trigger-watch":return Zr(!Dr),$t.focus();case"trigger-full-screen":return bn(!an),$t.focus();case dn:Pn(dn);return;case xn:Pn(xn);return;case wt:Pn(wt);return;case _n:Pn(_n);return;case"maths-latex":Pn("maths-latex");return;case yn:Pn(yn);return;case Zn:Pn(Zn);return;default:throw new Error}},[$t,Dr,an]),no=(0,te.useCallback)((Gn,wn)=>{var Ln,In,hr,Nr,ao,lo;switch(Pn(""),Cn){case dn:const{title:ri,link:Qr}=Gn;return $t.replaceSelection(`[${ri}](${Qr})`),$t.focus();case xn:const{language:dr,content:Yo}=Gn;return $t.replaceSelection(["```"+dr,Yo,"```"].join(`
|
|
|
`)),$t.focus();case"maths-latex":for(var uo=atob(Gn),fo=new Uint8Array(uo.length),Ho=0;Ho<uo.length;Ho++)fo[Ho]=uo.charCodeAt(Ho);var Co=new Blob([fo],{type:"image/png"});(0,rt.I)(Co,To=>{To.id?$t.replaceSelection(``):(To==null?void 0:To.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$t.replaceSelection("`$$"+Gn+"$$`");break;case wt:case _n:case Fn:const{src:Do,alt:Eo}=Gn,Pr=wn,oi=(hr=(In=(Ln=Pr==null?void 0:Pr.name)==null?void 0:Ln.split("."))==null?void 0:In.pop)==null?void 0:hr.call(In);return((Nr=Pr==null?void 0:Pr.type)==null?void 0:Nr.indexOf("image"))>-1||!(Pr!=null&&Pr.type)?Pr.align||Pr.width?$t.replaceSelection(`<p style="text-align:${Pr.align||"initial"}"><img width="${Pr.width?Pr.width+"%":"initial"}" src="${Do}" alt="${Eo||""}" /></p>`):$t.replaceSelection(`<img width="100%" src="${Do}" alt="${Eo||""}" />`):((ao=Pr==null?void 0:Pr.type)==null?void 0:ao.indexOf("video"))>-1?$t.replaceSelection(`<video width="100%" controls src="${Do}"></video>`):((lo=Pr==null?void 0:Pr.type)==null?void 0:lo.indexOf("pdf"))>-1?$t.replaceSelection(`<a href="${Do}?type=${Pr.type}&disposition=inline" target="_blank">${Pr.name}</a>`):Ir.includes(oi)?$t.replaceSelection(`<a href="${Do}?type=office&disposition=inline" target="_blank">${Pr.name}</a>`):$t.replaceSelection(`[${Pr.name}](${Do})`),$t.focus();case Zn:const{row:ii,col:gi,align:Li}=Gn;let fi=`
|
|
|
`;for(let To=0;To<ii;To++){let Ti=[],Ni=[];for(let Mi=0;Mi<gi;Mi++)To===1&&Ni.push(Kn[Li]),Ti.push(" ");To===1&&(fi+=`| ${Ni.join(" | ")} |
|
|
|
`),fi+=`| ${Ti.join(gi===1?"":" | ")} |
|
|
|
`}return $t.replaceSelection(fi+`
|
|
|
`),$t.focus();default:throw new Error}},[$t,Cn]),Wo=(0,te.useMemo)(()=>{switch(Cn){case dn:return te.createElement(At,{callback:no,onCancel:Ro});case xn:return te.createElement(Nt.Z,{callback:no,onCancel:Ro});case wt:return te.createElement(rt.Z,{callback:no,onCancel:Ro});case yn:return te.createElement(xt,{callback:no,onCancel:Ro});case Zn:return te.createElement(ze,{callback:no,onCancel:Ro});case"maths-latex":return te.createElement(Mt,{showSaveButton:!0,callback:no});case"inline-latex":return te.createElement(Gt.Z,{showSaveButton:!0,callback:no});default:return null}},[Cn]);function Ro(){Pn("")}(0,te.useEffect)(()=>{if(Gr.current){let Gn=function(ao){hr=!0,Nr=ao.pageY},wn=function(){hr=!1},Ln=function(ao){if(hr){let lo=ao.pageY-Nr;lo<0&&(lo=0),lo>300&&(lo=300);let uo=Ie+lo+"px";Hr(uo)}},In=Gr.current,hr=!1,Nr=0;return In.addEventListener("mousedown",Gn),document.addEventListener("mousemove",Ln),document.addEventListener("mouseup",wn),()=>{In.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",Ln),document.removeEventListener("mouseup",wn)}}},[$t,Gr]),(0,te.useEffect)(()=>{Hr(Ie)},[Ie]);const Jo=wr(Pe),Ko=wr(Or),ko={width:Jo,height:Ko},Mo=(0,te.useMemo)(()=>{if(_r){let Gn=new Date(_r),wn=Gn.getHours(),Ln=Gn.getMinutes(),In=Gn.getSeconds();return wn=wn<10?"0"+wn:wn,Ln=Ln<10?"0"+Ln:Ln,In=In<10?"0"+In:In,`${wn}:${Ln}:${In}`}return 0},[_r]),ho=Gn=>{const wn=[];if(zt){let Ln=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(In,hr,Nr){wn.push({multiLine:In!==ir})})}return wn};function Vo(){window.sessionStorage.removeItem(yt),co(!1),fr(0)}function qo(){co(!1),fr(0),$t.setValue(window.sessionStorage.getItem(yt))}const ei=(0,oe.useIntl)(),ci={[dn]:"\u6DFB\u52A0\u94FE\u63A5",[xn]:ei.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[wt]:ei.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[_n]:"\u6DFB\u52A0\u753B\u56FE",[yn]:ei.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Zn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ei.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ei.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,te.useEffect)(()=>{ci[Cn]&&Cn!==_n&&Cn!==yn&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth/2-Gn.offsetWidth/2,Ln=window.innerHeight/2-Gn.offsetHeight/2;xo(wn),Bo(Ln)},0)},[Cn]);const ti=Gn=>{Gn.preventDefault();const wn=Gn.clientX-Po,Ln=Gn.clientY-Lo;document.body.onmousemove=In=>{let hr=In.clientX-wn,Nr=In.clientY-Ln;const ao=document.getElementsByClassName("markdown-popup-form")[0],lo=window.innerWidth-ao.offsetWidth,uo=window.innerHeight-ao.offsetHeight;hr=Math.max(0,Math.min(hr,lo)),Nr=Math.max(0,Math.min(Nr,uo)),Si(In.clientX,In.clientY,wn,Ln)&&(xo(hr),Bo(Nr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Si=(Gn,wn,Ln,In)=>{const hr=document.body.clientHeight,Nr=document.body.clientWidth;return Gn<20&&Ln>Gn||Gn>Nr-20&&Ln<Gn||wn<20&&In>wn||wn>hr-20&&In<wn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Kr},te.createElement("div",{className:`markdown-editor-container ${Dn} ${Dr?"on-preview":""} ${ke?"mini":""} ${an?"full-screen":""}`,style:ko},te.createElement(Se,{insertTemp:Qt,watch:Dr,fullScreen:an,showNullButton:gt,showNullProgramButton:zt,onActionCallback:jo,hidetoolBar:Vt,extraUse:rr}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Wr,placeholder:Rn})),Dr?te.createElement("div",{ref:to,className:"preview-container"},Ut==="stex"&&te.createElement(pe,{value:qr}),Ut!=="stex"&&te.createElement(se.Z,{disabledFill:pn,showProgramFill:zt,value:qr})):null))),pt?te.createElement("a",{ref:Gr,className:"editor-resize"}):null,Cn===_n&&te.createElement(rn,{callback:no,onCancel:Ro}),Cn===yn&&te.createElement(xt,{callback:no,onCancel:Ro}),te.createElement(Le.Z,null,ci[Cn]&&Cn!==_n&&Cn!==yn?te.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Po,top:Lo},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ti},ci[Cn]),open:!0,onCancel:Ro,footer:null,destroyOnClose:!0,width:Cn===yn?"1200px":null,height:Cn===yn?"80vh":null,className:"markdown-popup-form"},Wo):null))}},45053:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return Se},I:function(){return Ee}});var te=ee(78241),fe=ee(8591),be=ee(92832),ye=ee(81327),he=ee(5871),ge=ee(5112),ie=ee(3113),ue=ee(28735),ce=ee(59301),me=ee(41867),se=ee(65582),pe=ee(59301),oe=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Fe,xe,lt)=>xe in Fe?oe(Fe,xe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Fe[xe]=lt,z=(Fe,xe)=>{for(var lt in xe||(xe={}))E.call(xe,lt)&&x(Fe,lt,xe[lt]);if(y)for(var lt of y(xe))b.call(xe,lt)&&x(Fe,lt,xe[lt]);return Fe},re=(Fe,xe)=>ne(Fe,a(xe));const{useForm:le}=te.default,de={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:Fe,onCancel:xe})=>{const[lt]=le();let Ye=(0,ce.useRef)();const ht=(0,se.useIntl)();function we(Je){Ye.current.width=lt.getFieldValue("width"),Ye.current.align=lt.getFieldValue("align"),Fe(Je,Ye.current)}function je(Je,$e){if(Je.status===-1){fe.ZP.error(Je.message);return}lt.setFieldsValue({src:`/api/attachments/${Je.id}`,type:$e.type})}function He(Je){let $e=Je.target.files[0];Ye.current=$e,Ee($e,je)}return pe.createElement(te.default,re(z({form:lt},ve),{className:"upload-image-panel",onFinish:we,style:{width:470,overflow:"hidden"}}),pe.createElement(te.default.Item,{label:ht.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},pe.createElement(be.default,{style:de})),pe.createElement(Le,{onFileChange:He}))),pe.createElement(te.default.Item,{label:ht.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},pe.createElement(be.default,{style:{width:264}})),pe.createElement(te.default.Item,{label:ht.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},pe.createElement(ye.Z,null,pe.createElement(te.default.Item,{name:"width",style:{margin:0}},pe.createElement(he.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(te.default.Item,{label:ht.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},pe.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:ht.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:ht.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:ht.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),pe.createElement("aside",null,pe.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ht.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),pe.createElement(ie.ZP,{type:"default",onClick:xe},ht.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Le({onFileChange:Fe}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:Fe}))}function Ee(Fe,xe){if(!Fe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let lt=new FormData;lt.append("editormd-image-file",Fe),lt.append("file_param_name","editormd-image-file"),lt.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(ht){xe(JSON.parse(ht.target.responseText),Fe)},!1),Ye.addEventListener("error",function(ht){console.error(ht)},!1),Ye.open("POST",`${ue.KI}/api/attachments.json`),Ye.send(lt)}},57261:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return be}});var te=ee(59301),fe=ee(4676);class be extends te.Component{constructor(he){super(he);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,fe.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},77825:function(ft,Ke,ee){"use strict";var te=ee(829),fe=ee(57809),be=ee(78673),ye=ee(65582),he=ee(59301);const ge=fe.default.Option;Ke.Z=({isTheoretical:ie,onFontSizeChange:ue,cmFontSize:ce,cmCodeMode:me,autoFormat:se,onCodeModeChange:pe,onTabToSpace:oe,onAutoFormat:ne,formatDocument:a,className:y="",tabToSpace:E,children:b,code_editor:x,challenge:z,shixun_environment_id:re,shixun_environments:le})=>{var de;const ve=(0,ye.useIntl)(),Se={1:ve.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"}),2:ve.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"}),3:ve.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})},Le=(de=le==null?void 0:le.find(Ee=>Ee.shixun_environment_id===re))==null?void 0:de.program_language;return he.createElement("div",{className:`tpi-code-setting ${y}`},he.createElement("h3",null,ve.formatMessage({id:"shixuns.codeFormat",defaultMessage:"\u4EE3\u7801\u683C\u5F0F"})),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.displayMode",defaultMessage:"\u663E\u793A\u6A21\u5F0F"})),he.createElement(fe.default,{bordered:!1,size:"small",value:me,onChange:pe},he.createElement(ge,{value:"vs"},ve.formatMessage({id:"shixuns.whiteBackground",defaultMessage:"\u767D\u8272\u80CC\u666F"})),he.createElement(ge,{value:"vs-dark"},ve.formatMessage({id:"shixuns.blackBackground",defaultMessage:"\u9ED1\u8272\u80CC\u666F"})))),!ie&&he.createElement(he.Fragment,null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.fontSize",defaultMessage:"\u5B57\u4F53\u5927\u5C0F"})),he.createElement(fe.default,{bordered:!1,size:"small",value:ce,onChange:ue},he.createElement(ge,{value:12},"12px"),he.createElement(ge,{value:14},"14px"),he.createElement(ge,{value:16},"16px"),he.createElement(ge,{value:18},"18px"),he.createElement(ge,{value:20},"20px"),he.createElement(ge,{value:22},"22px"))),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.tabConversion",defaultMessage:"Tab\u8F6C\u6362"})),he.createElement(be.Z,{checked:E,onChange:oe})),he.createElement("div",{className:"file-item",onClick:a},he.createElement("b",{style:{cursor:"pointer"}},ve.formatMessage({id:"shixuns.formatCode",defaultMessage:"\u683C\u5F0F\u5316\u4EE3\u7801"}))))),!ie&&he.createElement(he.Fragment,null,he.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.saveCode",defaultMessage:"\u4FDD\u5B58\u4EE3\u7801"})),he.createElement("span",null,"Ctrl + S")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.showShortcutsList",defaultMessage:"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"})),he.createElement("span",null,"F1 / Alt + F1")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.indentLeftRight",defaultMessage:"\u5DE6\u53F3\u7F29\u8FDB"})),he.createElement("span",null,"Ctrl + ]/[")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.jumpToMatchingBracket",defaultMessage:"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"})),he.createElement("span",null,"Ctrl + Shift + \\")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineStart",defaultMessage:"\u8F6C\u5230\u884C\u9996"})),he.createElement("span",null,"Home")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineEnd",defaultMessage:"\u8F6C\u5230\u884C\u5C3E"})),he.createElement("span",null,"End"))),b),!ie&&he.createElement(he.Fragment,null,he.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),he.createElement("section",null,Le&&he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),he.createElement("span",null,Le)),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.practicalDifficulty",defaultMessage:"\u5B9E\u8BAD\u96BE\u6613\u5EA6"})),he.createElement("span",null,Se[z==null?void 0:z.difficulty])),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.labEnvironment",defaultMessage:"\u5B9E\u9A8C\u73AF\u5883"})),he.createElement("span",null,x==null?void 0:x.name)),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.labContainerNetwork",defaultMessage:"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"})),he.createElement("span",null,x!=null&&x.close_internet?"\u5173\u95ED\u5916\u7F51":ve.formatMessage({id:"shixuns.enableExternalNetwork",defaultMessage:"\u5F00\u542F\u5916\u7F51"}))))))}},31103:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return fe}});var te=ee(59301);function fe(be,ye){const he=(0,te.useRef)();(0,te.useEffect)(()=>{he.current=be}),(0,te.useEffect)(()=>{function ge(){he.current()}if(ye!==null){let ie=setInterval(ge,ye);return()=>clearInterval(ie)}},[ye])}},80443:function(ft,Ke,ee){"use strict";ee.d(Ke,{Im:function(){return Ee},ZP:function(){return we},gZ:function(){return Ye}});var te=ee(59301),fe=ee(92832),be=ee(3113),ye=ee(84105),he=ee(87395),ge=ee(17124),ie=ee(24334),ue=ee(42678),ce=ee(6339),me=ee(65862),se=ee(51908),pe=ee(34376),oe=ee(92310),ne=ee.n(oe),a=ee(59301),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(je,He,Je)=>He in je?y(je,He,{enumerable:!0,configurable:!0,writable:!0,value:Je}):je[He]=Je,de=(je,He)=>{for(var Je in He||(He={}))z.call(He,Je)&&le(je,Je,He[Je]);if(x)for(var Je of x(He))re.call(He,Je)&&le(je,Je,He[Je]);return je},ve=(je,He)=>E(je,b(He));const{TextArea:Se}=fe.default,Le={visible:!1,tabIndex:"0"},Ee={[ge.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[ge.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[ge.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Fe=(je=>(je[je.SET_VISIBLE=0]="SET_VISIBLE",je[je.SET_TABINDEX=1]="SET_TABINDEX",je))(Fe||{});function xe(je,He){switch(He.type){case 0:return ve(de({},je),{visible:He.payload});case 1:return ve(de({},je),{tabIndex:He.payload});default:throw new Error}}function lt({value:je,className:He}){const[Je,$e]=(0,te.useState)(!1),mt=(0,te.useRef)(),Pt=(0,te.useRef)();return(0,te.useEffect)(()=>{Je&&(Pt.current.reset(),Pt.current.write((0,me.pp)(je||"")))},[je,Je]),(0,te.useEffect)(()=>{var At,Nt,rt,Xe;if(mt.current){Pt.current=new pe.Terminal({fontSize:14,disableStdin:!0}),Pt.current.open(mt.current);const Ct=mt.current.offsetWidth-14,Ht=((Xe=(rt=(Nt=(At=Pt.current)==null?void 0:At._core)==null?void 0:Nt._renderService)==null?void 0:rt.dimensions)==null?void 0:Xe.actualCellWidth)||9.5,Et=Math.ceil(Ct/Ht);Pt.current.resize(Et,8),$e(!0)}},[]),a.createElement("div",{ref:mt,className:ne()("XtermText-valueRef",He)})}function Ye(je){const{status:He,error_msg:Je,output:$e,input:mt,expected_output:Pt,is_file:At,input_file_url:Nt,output_file_url:rt,expected_output_file_url:Xe}=je;let Ct=null;const Ht={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(He){case ge.h.NOMATCH:Ct=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!At&&a.createElement(lt,{className:"mb10",value:mt}),At&&a.createElement("div",{style:Ht},a.createElement("a",{onClick:()=>(0,me.LR)(Nt,mt)},mt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!At&&a.createElement(lt,{className:"mb10",value:$e&&ie.Base64.decode($e)||""}),At&&a.createElement("div",{style:Ht},a.createElement("a",{onClick:()=>(0,me.LR)(rt,$e)},$e)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!At&&a.createElement(lt,{className:"mb10",value:Pt&&ie.Base64.decode(Pt)||""}),At&&a.createElement("div",{style:Ht},a.createElement("a",{onClick:()=>(0,me.LR)(Xe,Pt)},Pt)));break;case ge.h.EXECUTEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(ce.Z,{value:mt,style:Ht}),At&&a.createElement("div",{style:Ht},a.createElement("a",{onClick:()=>(0,me.LR)(Nt,mt)},mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(Je)));break;case ge.h.COMPILEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(ce.Z,{value:mt,style:Ht}),At&&a.createElement("div",{style:Ht},a.createElement("a",{onClick:()=>(0,me.LR)(Nt,mt)},mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(Je)));break;case ge.h.PODFAILURE:Ct=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ge.h.TIMEOUT:Ct=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ct," ")}function ht(je){const{status:He,error_msg:Je,execute_time:$e,output:mt,input:Pt,expected_output:At,is_file:Nt,input_file_url:rt,output_file_url:Xe,expected_output_file_url:Ct}=je;let Ht=null;switch(He){case ge.h.OK:Ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",$e,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(mt)));break;case ge.h.NOMATCH:Ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Pt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",mt&&ie.Base64.decode(mt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",At&&ie.Base64.decode(At)));break;case ge.h.EXECUTEFAILURE:Ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(Je)));break;case ge.h.COMPILEFAILURE:Ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(Je)));break;case ge.h.PODFAILURE:Ht=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ge.h.TIMEOUT:Ht=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ht," ")}var we=({id:je,is_file:He,input:Je,debuging:$e,submitting:mt,executingMessage:Pt,debugResult:At,onChangeInput:Nt,onDebugCode:rt,onSubmitCode:Xe})=>{const[Ct,Ht]=(0,te.useReducer)(xe,Le),{visible:Et,tabIndex:rn}=Ct;(0,te.useEffect)(()=>{Ht({type:0,payload:!1})},[je]);function Ze(Zt){let at=Zt.target.id;Ht({type:1,payload:at})}function St(){Ht({type:0,payload:!Et})}const Lt=(0,te.useMemo)(()=>{if(At){const{status:Zt}=At;return a.createElement(a.Fragment,null,ht(At))}return null},[At]);function nn(){Ht({type:0,payload:!0}),Ht({type:1,payload:"1"}),rt()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Et?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(se.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(Se,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:He?"":Je,onChange:Nt}),rightNode:$e?a.createElement(ue.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):At?Lt:a.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),a.createElement("a",{className:`btn-collapse ${Et?"up":""}`,onClick:St},Et?a.createElement(ye.Z,null):a.createElement(he.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(be.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:$e,onClick:nn},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:mt,disabled:mt,onClick:()=>{Ht({type:0,payload:!1}),Xe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},20620:function(ft,Ke,ee){"use strict";ee.r(Ke),ee.d(Ke,{default:function(){return Ue}});var te=ee(59301),fe=ee(10906),be=ee(76618),ye=ee(65582),he=ee(31797),ge=ee(8591),ie=ee(43418),ue=ee(71418),ce=ee(57809),me=ee(47887),se=ee(29584),pe=ee(74128),oe=ee(87169),ne=ee(43428),a=ee(50258),y=ee(57261),E=ee(42926),b=ee(77825),x=ee(59301),z=Object.defineProperty,re=Object.defineProperties,le=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Le=(Ce,Me,Oe)=>Me in Ce?z(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ee=(Ce,Me)=>{for(var Oe in Me||(Me={}))ve.call(Me,Oe)&&Le(Ce,Oe,Me[Oe]);if(de)for(var Oe of de(Me))Se.call(Me,Oe)&&Le(Ce,Oe,Me[Oe]);return Ce},Fe=(Ce,Me)=>re(Ce,le(Me));const xe={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var lt=(Ce=>(Ce[Ce.set_font_size=0]="set_font_size",Ce[Ce.set_theme=1]="set_theme",Ce[Ce.on_tab_to_space=2]="on_tab_to_space",Ce[Ce.set_show_editor_setting=3]="set_show_editor_setting",Ce))(lt||{});function Ye(Ce,Me){switch(Me.type){case 3:return Fe(Ee({},Ce),{showEditorSetting:Me.payload});case 1:return Fe(Ee({},Ce),{theme:Me.payload});case 0:return Fe(Ee({},Ce),{fontSize:Me.payload});case 2:return Fe(Ee({},Ce),{tabToSpace:Me.payload});default:throw new Error}}var ht=({isLoading:Ce,value:Me,onChange:Oe,language:Qe,onUpdateCode:qe,ActionBarRender:tt=ut=>x.createElement(we,{onShowCodeSetting:ut})})=>{const[ut,ct]=(0,te.useReducer)(Ye,xe),{theme:st,fontSize:_t,showEditorSetting:Yt,tabToSpace:It}=ut,Kt=(0,te.useRef)(),Ft=(0,te.useRef)(),Xt={onFontSizeChange:vn=>{ct({type:0,payload:vn}),(0,E.t)("cmFontSize",vn)},tabToSpace:It,cmFontSize:_t,className:"oj",cmCodeMode:st,onTabToSpace:vn=>{ct({type:2,payload:vn}),(0,E.t)("cmTabToSpace",vn)},onCodeModeChange:vn=>{ct({type:1,payload:vn}),(0,E.t)("cmCodeMode",vn)}};function on(){ct({type:3,payload:!1})}function mn(){ct({type:3,payload:!0})}const ln={value:Me,language:Qe,theme:st,height:"calc(100% - 56px)",options:{fontSize:_t,insertSpaces:It},onChange:vn=>{Oe(vn),Ft.current=vn,clearTimeout(Kt.current),Kt.current=setTimeout(()=>{qe(Ft.current)},1e4)},onEditBlur:vn=>{Ft.current&&qe(Ft.current)}};return x.createElement(te.Fragment,null,x.createElement("div",{className:"code-panel-container"},tt(mn),!Ce&&x.createElement(a.ZP,Ee({},ln))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Yt,onClose:on},x.createElement(b.Z,Ee({},Xt)))))};function we({onShowCodeSetting:Ce}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Ce},x.createElement("i",{className:"iconfont icon-shezhi"})))}var je=ee(24334),He=ee(93373),Je=ee(80443),$e=ee(92832),mt=ee(78241),Pt=ee(3113);const{TextArea:At}=$e.default,Nt=5e3;var rt=({callback:Ce,onCancel:Me,notes:Oe})=>{function Qe(qe){Ce(qe)}return te.createElement(mt.default,{className:"note-form-panel",onFinish:Qe,initialValues:{notes:Oe}},te.createElement(mt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Nt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Nt}`}]},te.createElement(At,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),te.createElement(mt.default.Item,{style:{textAlign:"right"}},te.createElement(Pt.ZP,{type:"ghost",onClick:Me,style:{marginRight:10}}," \u53D6\u6D88 "),te.createElement(Pt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},Xe={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},Ct={pagination:"pagination___npPu7",info:"info___aRH6C"},Ht=ee(1710),Et=ee(58421),rn=ee(58617),Ze=ee(81953),St=ee(17124),Lt=ee(65862),nn=ee(66649),Zt=ee.n(nn);const{Column:at}=Ht.default;var dt=({submitResult:Ce,submitting:Me,submitRecords:Oe,page:Qe,onPageChange:qe,topicId:tt})=>{const{status:ut,id:ct,input:st,output:_t,expected_output:Yt,is_file:It,input_file_url:Kt,output_file_url:Ft,expected_output_file_url:Xt,error_msg:on}=Ce||{},{records:mn,records_count:ln}=Oe||{},vn=(0,ye.useParams)();function Nn(){It?(0,Lt.vQ)(je.Base64.decode(on)).then(()=>{ge.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Lt.vQ)(je.Base64.decode(_t)).then(()=>{ge.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return te.createElement(ue.Z,{spinning:Me,tip:"\u8BC4\u6D4B\u4E2D...",indicator:te.createElement(rn.Z,{style:{fontSize:24},spin:!0})},ct?te.createElement(te.Fragment,null,te.createElement("ul",{className:Ct.info},te.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",te.createElement("span",{className:ut===St.h.OK?"c-green":"c-red"},Je.Im[ut])),te.createElement("li",{className:Ct.error},te.createElement("a",{onClick:Nn},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",te.createElement(Ze.Z,null)," ")),te.createElement("li",null,te.createElement(ye.Link,{to:`/problems/${tt}/record-detail/${ct}?backId=${vn==null?void 0:vn.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),ut!==St.h.OK?te.createElement(te.Fragment,null,te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),te.createElement("pre",null,!It&&st,It&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Kt,st)},st)),te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),te.createElement("pre",null,(ut===4||ut===5)&&je.Base64.decode(on),ut!=4&&ut!=5&&(It?te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Ft,_t)},_t):je.Base64.decode(_t))),te.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),te.createElement("pre",null,!It&&je.Base64.decode(Yt),It&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Xt,Yt)},Yt))):null):null,(mn==null?void 0:mn.length)>0?te.createElement(Ht.default,{dataSource:mn,rowKey:"id",pagination:!1},te.createElement(at,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(qt,hn)=>te.createElement("span",null," ",Zt()(qt).format("YYYY-MM-DD HH:mm:ss"))}),te.createElement(at,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(qt,hn)=>{var Tt;return te.createElement(ye.Link,{className:qt===0?"c-green":"c-red",to:`/problems/${tt}/record-detail/${hn.id}?backId=${vn==null?void 0:vn.save_identifier}`},(Tt=Je.Im[qt])==null?void 0:Tt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),te.createElement(at,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),te.createElement(at,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),te.createElement(at,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,ln>15?te.createElement(Et.Z,{className:Ct.pagination,current:Qe,pageSize:15,total:ln,onChange:qe}):null)},Ge=ee(2524),Ne=ee(12563),nt=ee(81327),xt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ae=ee(6339),Re=ee(59301);const We={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Be=({hack:Ce,onTriggerPraise:Me,toDiscuss:Oe})=>{const{language:Qe,difficulty:qe,time_limit:tt,username:ut,user_path:ct,user_praise:st,comments_count:_t,praises_count:Yt,description:It,pass_count:Kt,submit_count:Ft}=Ce,Xt=(0,ye.useLocation)();console.log(Ce.language,"language");const on=We[qe];return Re.createElement(Re.Fragment,null,Re.createElement("ul",{className:xt.info},Re.createElement("li",null,"\u96BE\u5EA6\uFF1A",Re.createElement(Ne.default,{color:on==null?void 0:on.color},on==null?void 0:on.name)),Re.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Re.createElement("b",null,tt,"\u79D2"))),Re.createElement(Ae.Z,{value:It,className:xt.desc}),Re.createElement("ul",{className:xt["commit-info"]},Re.createElement("li",null,Re.createElement(nt.Z,{size:4},Re.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Re.createElement("b",null,Kt))),Re.createElement("li",null,Re.createElement(nt.Z,{size:4},Re.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Re.createElement("b",null,Ft))," "),Re.createElement("li",{style:{flex:"1 0 0"}}),Re.createElement("li",null,Re.createElement(nt.Z,{size:4},Re.createElement("i",{className:"iconfont icon-huifu1",onClick:Oe})," ",Re.createElement("b",null,_t))," ")))},ze=ee(77254),ot=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Mt=(Ce,Me,Oe)=>Me in Ce?ot(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Gt=(Ce,Me)=>{for(var Oe in Me||(Me={}))Dt.call(Me,Oe)&&Mt(Ce,Oe,Me[Oe]);if(Ot)for(var Oe of Ot(Me))jt.call(Me,Oe)&&Mt(Ce,Oe,Me[Oe]);return Ce};const bt=Ce=>React.createElement("svg",Gt({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var fn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",dn=ee(38147);function wt(Ce){return(0,dn.U2)("comments.json",Ce)}function yn(Ce){return(0,dn.v_)(`/discusses/${Ce}/plus.json`,{container_type:"Discuss",type:1})}function _n(Ce){return(0,dn.v_)("comments/reply.json",Ce)}function Fn(Ce){return(0,dn.v_)("comments.json",Ce)}function xn(Ce){return(0,dn.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Zn(Ce){return(0,dn.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var Jn=ee(83554),Kn=ee(41867);function Vn({author:Ce}){return te.createElement("a",{href:`/users/${Ce.login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${pe.Z.IMG_SERVER}/images/${Ce.image_url}`,width:"50"}))}function Sr({data:Ce,index:Me,parentDiscussIndex:Oe,user:Qe,onSetActionType:qe}){const{author:tt,can_delete:ut,content:ct,id:st,time:_t}=Ce;function Yt(){qe({id:st,index:Me,type:"delete-discuss",parentDiscussIndex:Oe,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const It=Qe.admin||ut||tt.user_id===Qe.user_id;return te.createElement("div",{className:"discuss-item-container second-discuss "},te.createElement(Vn,{author:tt}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${tt.login}`,target:"_blank"},tt.name),te.createElement("span",{className:"grey"},_t),te.createElement("div",{className:"btn-group",style:{marginBottom:0}},It?te.createElement("a",{onClick:Yt,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null)),te.createElement(Ae.Z,{className:"discuss-content",value:ct})))}var sr=({user:Ce,data:Me,index:Oe,onPlusDiscuss:Qe,onSetActionType:qe,activeDiscussIndex:tt,onReplyDiscuss:ut,onSetActiveDiscussIndex:ct})=>{const{content:st,children:_t,hidden:Yt,id:It,praise_count:Kt,time:Ft,user_praise:Xt,can_delete:on,author:mn}=Me;console.log(on&&(!_t||_t.length==0),"children22");function ln(){ct(It)}function vn(){Qe(It,!Xt,Oe)}function Nn(){qe({id:It,index:Oe,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function qt(){qe({id:It,index:Oe,params:{hidden:Yt?"0":"1"},type:"hidden-discuss",message:Yt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const hn=Ce.admin||Ce.user_id===mn.user_id;return te.createElement("div",{className:"discuss-item-container",key:It},te.createElement(Vn,{author:mn}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${mn.login}`,target:"_blank"}," ",mn.name," "),te.createElement("span",{className:"grey"},Ft)),te.createElement(Ae.Z,{className:"discuss-content",value:st}),_t&&_t.length>0?te.createElement("div",{className:"reply-discuss-container"},_t.map((Tt,tn)=>te.createElement(Sr,{key:Tt.id,data:Tt,index:tn,user:Ce,onSetActionType:qe,parentDiscussIndex:Oe}))):null,te.createElement("div",{className:"btn-group"},(0,Kn.Ny)()?te.createElement("a",{onClick:qt,title:Yt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},te.createElement("i",{className:Yt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,on&&(!_t||_t.length==0)?te.createElement("a",{onClick:Nn,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null,te.createElement("a",{onClick:ln,title:"\u56DE\u590D"}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," "),te.createElement("a",{onClick:vn,className:Xt?"c-orange":""},te.createElement("i",{className:Xt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),te.createElement("span",null,Kt||""))),te.createElement(Jn.Z,{id:It,activeDiscussIndex:tt,onReplyDiscuss:ut})))},sn=ee(30214),Yn=ee(96565),or=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),$n=({user_praise:Ce,praise_count:Me,praisePlus:Oe,onCreateDiscuss:Qe,discuss_count:qe})=>{const[tt,ut]=(0,te.useState)(!1),[ct,st]=(0,te.useState)("");function _t(Ft){st(Ft)}function Yt(){ut(!0)}function It(){ut(!1)}function Kt(){return or(this,null,function*(){Qe(ct),st(""),ut(!1)})}return te.createElement("div",{className:`dis-input-editor-container ${tt?"active":""} `},te.createElement("div",{className:tt?"text-area hide":"text-area"},te.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Yt}),te.createElement("a",{style:{alignItems:"center"}}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",qe," "),te.createElement("a",{className:"c-light-black",onClick:Oe,style:{alignItems:"center"},title:Ce?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("i",{className:`mr3 ${Ce?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Me?te.createElement("span",null,Me):"")),tt?te.createElement("div",{className:"input-mask",onClick:It}):null,te.createElement("div",{className:tt?"md-container":"md-container hide"},te.createElement(Yn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:ct,height:240,onChange:_t}),te.createElement("div",{className:"tip-container",onClick:It},te.createElement("a",{className:"btn-send",onClick:Kt}," \u53D1\u9001 "))))},ir=Object.defineProperty,Ar=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,$r=(Ce,Me,Oe)=>Me in Ce?ir(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Wt=(Ce,Me)=>{for(var Oe in Me||(Me={}))Tr.call(Me,Oe)&&$r(Ce,Oe,Me[Oe]);if(wr)for(var Oe of wr(Me))ar.call(Me,Oe)&&$r(Ce,Oe,Me[Oe]);return Ce},ae=(Ce,Me)=>Ar(Ce,Ir(Me)),_e=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Ie=(Ce=>(Ce[Ce.GET_DISCUSSES=0]="GET_DISCUSSES",Ce[Ce.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Ce[Ce.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Ce[Ce.PLUS_DISCUSS=3]="PLUS_DISCUSS",Ce[Ce.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Ce[Ce.SET_PAGE=5]="SET_PAGE",Ce[Ce.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Ce))(Ie||{});function ke(Ce,Me){switch(Me.type){case 6:return ae(Wt({},Ce),{loading:!0});case 0:return Wt(Wt({},Ce),Me.payload);case 1:return Wt(Wt({},Ce),Me.payload);case 4:return Wt(Wt({},Ce),Me.payload);case 3:return Wt(Wt({},Ce),Me.payload);case 5:return Wt(Wt({},Ce),Me.payload);case 2:return Wt(Wt({},Ce),Me.payload);default:throw new Error}}var et=({user:Ce,identifier:Me,hack:Oe,onTriggerPraise:Qe,setDiscussTotal:qe})=>{const[tt,ut]=(0,te.useReducer)(ke,Pe),{loading:ct,page:st,data:_t,count:Yt,actionType:It,activeDiscussIndex:Kt}=tt;console.log("---",tt);const Ft=(0,te.useCallback)(()=>_e(void 0,null,function*(){ut({type:6});const Tt=yield wt({container_type:"Practice",container_identifier:Me,limit:10,page:st}),{comments:tn,disscuss_count:cn}=Tt;ut({type:0,payload:{data:tn,count:cn,loading:!1}}),qe(cn)}),[st,Me]);(0,te.useEffect)(()=>{Ft()},[Me,st]);function Xt(Tt){ut({type:5,payload:{page:Tt}})}function on(Tt){ut({type:4,payload:{actionType:Tt}})}function mn(Tt){ut(Kt===Tt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Tt}})}function ln(Tt,tn,cn){return _e(this,null,function*(){try{const Mn=yield yn(Tt);_t[cn].user_praise=tn,_t[cn].praise_count=Mn.praise_count,ut({type:3,payload:{data:[..._t]}})}catch(Mn){console.log(Mn)}})}function vn(){return _e(this,null,function*(){const{id:Tt,params:tn,type:cn,index:Mn,parentDiscussIndex:qn}=It;cn==="hidden-discuss"&&(console.log(tn,"params"),yield xn(Wt({id:Tt,container_type:"Practice",container_identifier:Me},tn)),qn?_t[qn].children[Mn].hidden=tn.hidden==1:_t[Mn].hidden=tn.hidden==1,ut({type:4,payload:{actionType:null,data:[..._t]}})),cn==="delete-discuss"&&(yield Zn({id:Tt,container_type:"Practice",container_identifier:Me}),ut({type:4,payload:{actionType:null}}),yield Ft())})}function Nn(){ut({type:4,payload:{actionType:null}})}function qt(Tt,tn){return _e(this,null,function*(){try{yield _n({container_type:"Practice",container_identifier:Me,comments:{content:tn,parent_id:Tt}}),Ft()}catch(cn){console.log(cn)}})}function hn(Tt){return _e(this,null,function*(){ut({type:6}),yield Fn({comments:{content:Tt},container_type:"Practice",container_identifier:Me}),Ft()})}return te.createElement(te.Fragment,null,te.createElement("div",{className:"discuss-panel"},_t.length===0?te.createElement(Ge.Z,null):te.createElement(ue.Z,{spinning:ct},_t.map((Tt,tn)=>te.createElement(sr,{onReplyDiscuss:qt,onPlusDiscuss:ln,onSetActiveDiscussIndex:mn,onSetActionType:on,data:Tt,index:tn,user:Ce,activeDiscussIndex:Kt}))),Yt>10?te.createElement("div",{className:"pagination-container mt10 mb10"},te.createElement(Et.Z,{showQuickJumper:!0,onChange:Xt,current:st,total:Yt,showTotal:Tt=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Tt),"\u6761\u6570\u636E")})):null),te.createElement($n,{user_praise:Oe.user_praise,praise_count:Oe.praises_count,praisePlus:Qe,discuss_count:Oe.comments_count,onCreateDiscuss:hn}),te.createElement(y.Z,null,te.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!It,onOk:vn,onCancel:Nn},te.createElement("p",null,It?It.message:"")),te.createElement(sn.Z,null)))},vt={flex_box_center:"flex_box_center___tosr6",flex_space_between:"flex_space_between___cQaTP",flex_box_vertical_center:"flex_box_vertical_center___uovxL",flex_box_center_end:"flex_box_center_end___b4gLY",flex_box_column:"flex_box_column___Umjm_",wrap:"wrap___sgoJE",head:"head___b9a9v",sort:"sort___L2Zw8",btn:"btn___khuE4",listWarp:"listWarp___zZj6C",pagination:"pagination___XlROP",fixedRight:"fixedRight___MuAXo","oj-width-input":"oj-width-input___RsZb6"},Qt={flex_box_center:"flex_box_center___EahWI",flex_space_between:"flex_space_between___zopS4",flex_box_vertical_center:"flex_box_vertical_center___w03mz",flex_box_center_end:"flex_box_center_end___lr0Fp",flex_box_column:"flex_box_column___KFHVi",active:"active___BczOO",line:"line___VC_Ry",list:"list___n9ABd",left:"left___LVHqw",mask:"mask___fP13z",right:"right___iLe52",name:"name___Oz_7h",title:"title___2Sess",a:"a___t7rIW",b:"b___Kb_45",des:"des___CjMBM",tag:"tag___V0PVb"},Ut=Object.defineProperty,yt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,gt=(Ce,Me,Oe)=>Me in Ce?Ut(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,zt=(Ce,Me)=>{for(var Oe in Me||(Me={}))pt.call(Me,Oe)&>(Ce,Oe,Me[Oe]);if(yt)for(var Oe of yt(Me))Bt.call(Me,Oe)&>(Ce,Oe,Me[Oe]);return Ce};const Vt=Ce=>React.createElement("svg",zt({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var Rt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",kt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,kn=(Ce,Me,Oe)=>Me in Ce?kt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Xn=(Ce,Me)=>{for(var Oe in Me||(Me={}))un.call(Me,Oe)&&kn(Ce,Oe,Me[Oe]);if(Jt)for(var Oe of Jt(Me))Dn.call(Me,Oe)&&kn(Ce,Oe,Me[Oe]);return Ce};const pn=Ce=>React.createElement("svg",Xn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var Rn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",lr=Object.defineProperty,rr=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,qr=(Ce,Me,Oe)=>Me in Ce?lr(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,xr=(Ce,Me)=>{for(var Oe in Me||(Me={}))$t.call(Me,Oe)&&qr(Ce,Oe,Me[Oe]);if(rr)for(var Oe of rr(Me))ur.call(Me,Oe)&&qr(Ce,Oe,Me[Oe]);return Ce};const Dr=Ce=>React.createElement("svg",xr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var Zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",an=Object.defineProperty,bn=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,_r=(Ce,Me,Oe)=>Me in Ce?an(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,fr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Cn.call(Me,Oe)&&_r(Ce,Oe,Me[Oe]);if(bn)for(var Oe of bn(Me))Pn.call(Me,Oe)&&_r(Ce,Oe,Me[Oe]);return Ce};const Or=Ce=>React.createElement("svg",fr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var Hr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",so=Object.defineProperty,co=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,wo=(Ce,Me,Oe)=>Me in Ce?so(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Po=(Ce,Me)=>{for(var Oe in Me||(Me={}))yo.call(Me,Oe)&&wo(Ce,Oe,Me[Oe]);if(co)for(var Oe of co(Me))So.call(Me,Oe)&&wo(Ce,Oe,Me[Oe]);return Ce};const xo=Ce=>React.createElement("svg",Po({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var Lo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Wr=({style:Ce={},onClick:Me,onAssist:Oe,onHide:Qe,data:qe,active:tt,showLine:ut})=>te.createElement(te.Fragment,null,te.createElement("div",{className:tt===(qe==null?void 0:qe.id)?`${Qt.list} ${Qt.active}`:Qt.list,style:Ce,onClick:()=>Me(qe)},(qe==null?void 0:qe.video)&&te.createElement("div",{className:Qt.left},te.createElement("img",{src:qe==null?void 0:qe.video_cover}),te.createElement("div",null,te.createElement("img",{src:Rt}),te.createElement("span",null,qe==null?void 0:qe.video_duration)),te.createElement("div",{className:Qt.mask})),te.createElement("div",{className:Qt.right},te.createElement("div",{className:Qt.name},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+(qe==null?void 0:qe.image_url),width:30,height:30}),te.createElement("div",{title:qe==null?void 0:qe.name,className:Qt.title},qe==null?void 0:qe.name),(qe==null?void 0:qe.is_authority)&&te.createElement("div",{className:Qt.b},"\u5B98\u65B9"),(qe==null?void 0:qe.is_excellent)&&te.createElement("div",{className:Qt.a},"\u7CBE\u9009")),te.createElement("div",{className:Qt.des},te.createElement(Ae.Z,{showLines:2,showTextOnly:!0,value:(qe==null?void 0:qe.content)||"\u6682\u65E0\u5185\u5BB9"})),te.createElement("div",{className:Qt.tag},te.createElement("span",{className:"current",onClick:ct=>{ct.stopPropagation(),Oe(qe)}},te.createElement("img",{src:qe!=null&&qe.user_liker?Zr:Rn}),te.createElement("span",{style:{color:qe!=null&&qe.user_liker?"#0152d9":"#656f87"}},qe==null?void 0:qe.praises_count)),te.createElement("span",null,te.createElement("img",{src:Hr}),te.createElement("span",null,qe==null?void 0:qe.discusses_count)),te.createElement("span",null,te.createElement("img",{src:Lo}),te.createElement("span",null,qe==null?void 0:qe.viewed_count)),(0,Kn.Ny)()&&te.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:ct=>{ct.stopPropagation(),Qe(qe)}},qe!=null&&qe.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),ut&&te.createElement("div",{className:Qt.line})),Kr={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},Gr=ee(6848),to=Object.defineProperty,bo=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,jo=(Ce,Me,Oe)=>Me in Ce?to(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,no=(Ce,Me)=>{for(var Oe in Me||(Me={}))Oo.call(Me,Oe)&&jo(Ce,Oe,Me[Oe]);if(bo)for(var Oe of bo(Me))zr.call(Me,Oe)&&jo(Ce,Oe,Me[Oe]);return Ce};const Wo=Ce=>React.createElement("svg",no({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var Ro="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Jo=Object.defineProperty,Ko=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,ho=(Ce,Me,Oe)=>Me in Ce?Jo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Vo=(Ce,Me)=>{for(var Oe in Me||(Me={}))ko.call(Me,Oe)&&ho(Ce,Oe,Me[Oe]);if(Ko)for(var Oe of Ko(Me))Mo.call(Me,Oe)&&ho(Ce,Oe,Me[Oe]);return Ce};const qo=Ce=>React.createElement("svg",Vo({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var ei="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",ci=Object.defineProperty,ti=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,wn=(Ce,Me,Oe)=>Me in Ce?ci(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ln=(Ce,Me)=>{for(var Oe in Me||(Me={}))Si.call(Me,Oe)&&wn(Ce,Oe,Me[Oe]);if(ti)for(var Oe of ti(Me))Gn.call(Me,Oe)&&wn(Ce,Oe,Me[Oe]);return Ce};const In=Ce=>React.createElement("svg",Ln({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Ce),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var hr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Nr=ee(89613),ao=Object.defineProperty,lo=Object.defineProperties,uo=Object.getOwnPropertyDescriptors,fo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,ri=(Ce,Me,Oe)=>Me in Ce?ao(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ho.call(Me,Oe)&&ri(Ce,Oe,Me[Oe]);if(fo)for(var Oe of fo(Me))Co.call(Me,Oe)&&ri(Ce,Oe,Me[Oe]);return Ce},dr=(Ce,Me)=>lo(Ce,uo(Me)),Yo=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),Eo=({onClose:Ce,onOk:Me,identifier:Oe,active:Qe})=>{var qe;const[tt]=mt.default.useForm(),[ut,ct]=(0,te.useState)({}),[st,_t]=(0,te.useState)(!1),[Yt,It]=(0,te.useState)(!1),[Kt,Ft]=(0,te.useState)([]),Xt=(0,Kn.eY)(),on=(0,ye.useParams)(),mn=(0,te.useRef)();(0,te.useEffect)(()=>{Qe&&ln()},[Qe]);const ln=()=>Yo(void 0,null,function*(){var gn,Sn,jn,Qn,br,nr,tr,Vr,mr,Br;const cr=yield(0,me.M3)(Oe,{active:Qe});if((cr==null?void 0:cr.status)===0){const Wn={name:(gn=cr==null?void 0:cr.data)==null?void 0:gn.name,content:(Sn=cr==null?void 0:cr.data)==null?void 0:Sn.content};tt.setFieldsValue(Wn),ct(Wn),(Qn=(jn=cr==null?void 0:cr.data)==null?void 0:jn.videos)!=null&&Qn[0]&&Ft([{video_id:(tr=(nr=(br=cr==null?void 0:cr.data)==null?void 0:br.videos)==null?void 0:nr[0])==null?void 0:tr.video_id,name:(Br=(mr=(Vr=cr==null?void 0:cr.data)==null?void 0:Vr.videos)==null?void 0:mr[0])==null?void 0:Br.title,loaded:100}])}}),vn=(gn,Sn)=>{ct(Qr({},Sn))},Nn=gn=>Yo(void 0,null,function*(){const Sn={videos:Kt,articles:gn};It(!0);let jn;Qe?(Sn.active=Qe,jn=yield(0,me.gu)(Oe,Sn)):jn=yield(0,me.bx)(Oe,Sn),(jn==null?void 0:jn.status)===0&&(console.log(Qe||(jn==null?void 0:jn.id),44),Me(Qe||(jn==null?void 0:jn.id))),It(!1)}),qt=(gn,Sn)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:te.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Sn?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Sn?Ft([]):(mn.current.cancel(),Ft([]))}})},hn=()=>te.createElement(Nr.Z,dr(Qr({},en),{ref:mn}),te.createElement("div",{className:Kr.main},te.createElement("img",{src:Ro,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Tt=gn=>te.createElement("div",{className:Kr.mainLoading},te.createElement("div",{className:Kr.proWarp},te.createElement("div",{className:Kr.pro},te.createElement("div",{style:{width:gn}})),te.createElement("span",null,gn||0,"%")),te.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),te.createElement("div",{className:Kr.tip},te.createElement(Gr.Z,{getPopupContainer:Sn=>Sn.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hr,alt:""})))),tn=gn=>te.createElement("div",{className:Kr.mainSucceed},te.createElement("img",{src:ei,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),te.createElement("div",{className:Kr.tip},te.createElement(Gr.Z,{getPopupContainer:Sn=>Sn.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hr,alt:""}))),te.createElement("div",{className:Kr.del,onClick:()=>qt(gn.name,gn.loaded==100)},te.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),cn=()=>te.createElement(te.Fragment,null,Kt==null?void 0:Kt.map((gn,Sn)=>te.createElement(te.Fragment,{key:Sn},gn.loaded==100?tn(gn):Tt(gn.loaded)))),Mn=()=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Ce})},en={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:gn=>{const jn=gn.name.toLowerCase();return jn&&jn.indexOf(".avi")==-1&&jn.indexOf(".flv")==-1&&jn.indexOf(".f4v")==-1&&jn.indexOf(".m4v")==-1&&jn.indexOf(".mov")==-1&&jn.indexOf(".mp4")==-1&&jn.indexOf(".rmvb")==-1&&jn.indexOf(".swf")==-1&&jn.indexOf(".webm")==-1&&jn.indexOf(".wmv")==-1?(ge.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):gn.size>1024*1024*1024?(ge.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Kt!=null&&Kt.find(Qn=>Qn.name===gn.name)?(ge.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:gn=>{Ft([{name:gn.filename,loaded:0}])},onComplete:gn=>{Ft([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Ft([])},onProgress:gn=>{Ft([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(qe=Xt==null?void 0:Xt.userInfo)==null?void 0:qe.user_id}},En=Kt==null?void 0:Kt.length;return te.createElement("div",{className:Kr.listForm},te.createElement("header",null,Qe?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),te.createElement("section",{className:Kr.scroll,id:"sss"},te.createElement("div",{className:Kr.formWrap}," ",te.createElement(mt.default,{form:tt,scrollToFirstError:!0,layout:"vertical",onValuesChange:vn,onFinish:Nn},te.createElement(mt.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},te.createElement($e.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})),te.createElement(mt.default.Item,{name:"content",label:"\u5185\u5BB9:"},te.createElement(Yn.Z,{defaultValue:ut.content||"",watch:!0})))),te.createElement("div",{className:Kr.upload},En?cn():hn())),te.createElement("div",{className:Kr.btns},te.createElement(Pt.ZP,{onClick:Mn,type:"primary",ghost:!0},"\u5173\u95ED"),te.createElement(Pt.ZP,{loading:Yt,disabled:st,onClick:()=>tt.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Pr={flex_box_center:"flex_box_center___Udvu8",flex_space_between:"flex_space_between___WNLp1",flex_box_vertical_center:"flex_box_vertical_center___ecch5",flex_box_center_end:"flex_box_center_end___cu_DJ",flex_box_column:"flex_box_column___zF2CU",listDetails:"listDetails___HpDwH",head:"head___wipEz",name:"name___qdH8S",title:"title___B0yUa",a:"a___LB6ZS",b:"b___yvOON",tag:"tag___bRCso",btn:"btn___akBxg",scroll:"scroll___JKC_q",video:"video___nEr4F",html:"html___GDNSx",g:"g___LSOhO",btns:"btns___Ci727"},oi=ee(61621),ii=Object.defineProperty,gi=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,To=(Ce,Me,Oe)=>Me in Ce?ii(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ti=(Ce,Me)=>{for(var Oe in Me||(Me={}))Li.call(Me,Oe)&&To(Ce,Oe,Me[Oe]);if(gi)for(var Oe of gi(Me))fi.call(Me,Oe)&&To(Ce,Oe,Me[Oe]);return Ce};const Ni=Ce=>React.createElement("svg",Ti({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Ce),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var Mi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",wa=Object.defineProperty,xa=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,na=(Ce,Me,Oe)=>Me in Ce?wa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,ra=(Ce,Me)=>{for(var Oe in Me||(Me={}))La.call(Me,Oe)&&na(Ce,Oe,Me[Oe]);if(xa)for(var Oe of xa(Me))bi.call(Me,Oe)&&na(Ce,Oe,Me[Oe]);return Ce};const Ma=Ce=>React.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var Da="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Aa=Object.defineProperty,Bi=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Wi=(Ce,Me,Oe)=>Me in Ce?Aa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,aa=(Ce,Me)=>{for(var Oe in Me||(Me={}))oa.call(Me,Oe)&&Wi(Ce,Oe,Me[Oe]);if(Bi)for(var Oe of Bi(Me))ia.call(Me,Oe)&&Wi(Ce,Oe,Me[Oe]);return Ce};const ds=Ce=>React.createElement("svg",aa({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var sa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Ki={flex_box_center:"flex_box_center___Fl60v",flex_space_between:"flex_space_between___bECvI",flex_box_vertical_center:"flex_box_vertical_center___NasnL",flex_box_center_end:"flex_box_center_end___llsAF",flex_box_column:"flex_box_column___KaTPF",discuss:"discuss___fk6PE",reply:"reply___pOmly",pagination:"pagination___qEsHX"},la=ee(95237),ki=ee(43604),ai={flex_box_center:"flex_box_center___qGmgZ",flex_space_between:"flex_space_between___PeDhE",flex_box_vertical_center:"flex_box_vertical_center___avs2o",flex_box_center_end:"flex_box_center_end___bpXQB",flex_box_column:"flex_box_column___bc5wd",discussItem:"discussItem___zcesj",wrap:"wrap___ezVW4",list:"list___EEOWp",btns:"btns___Niwl7",secondLevelDiscuss:"secondLevelDiscuss___TXG1b",line:"line___ejh2a",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___HRI5Q"},Ia=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())});const ca=({id:Ce,cb:Me})=>{const[Oe,Qe]=(0,te.useState)("");return te.createElement("aside",{className:"mt10"},te.createElement(Yn.Z,{defaultValue:Oe,id:"writeForumsReviewId",onChange:qe=>{Qe(qe)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(la.Z,null,te.createElement(ki.Z,{flex:"1"}),te.createElement(ki.Z,null,te.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>Ia(void 0,null,function*(){Oe===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Me(Ce,Oe)})},"\u53D1\u9001"))))},Oa=({data:Ce})=>{var Me;return te.createElement("div",{className:ai.thirdlyLevelDiscuss},te.createElement("span",{className:"c-grey-333"},te.createElement("span",{className:"font 14 c-light-primary"},(Me=Ce==null?void 0:Ce.author)==null?void 0:Me.name),"@",te.createElement("span",{className:"font 14 c-light-primary"},Ce==null?void 0:Ce.parent_name),":"),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}))},Ra=({data:Ce,onReplyDiscuss:Me,thirdlyReply:Oe,setThirdlyReply:Qe})=>{var qe,tt,ut,ct;const st=(0,Kn.eY)();return console.log(st,"user"),te.createElement("div",{className:ai.list},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+((qe=Ce==null?void 0:Ce.author)==null?void 0:qe.image_url)}),te.createElement("div",{className:ai.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333"},(tt=Ce==null?void 0:Ce.author)==null?void 0:tt.name),(st==null?void 0:st.login)!==((ut=Ce==null?void 0:Ce.author)==null?void 0:ut.login)&&te.createElement("span",{onClick:()=>Qe(Ce==null?void 0:Ce.id),className:"c-grey-999 current",style:{float:"right"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),te.createElement("span",null,"\u56DE\u590D"))),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}),(ct=Ce==null?void 0:Ce.children)==null?void 0:ct.map(_t=>te.createElement(Oa,{key:_t.id,data:_t})),Oe===(Ce==null?void 0:Ce.id)&&te.createElement("div",null,te.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:Me}),te.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Qe(null),className:"c-light-primary current"},te.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),te.createElement("div",{className:ai.line})))};var Vi=({data:Ce,onReplyDiscuss:Me,secondReply:Oe,setSecondReply:Qe,thirdlyReply:qe,setThirdlyReply:tt,onPlusDiscuss:ut})=>{var ct,st,_t,Yt;const[It,Kt]=(0,te.useState)(!1);return console.log(Ce,"data"),te.createElement("div",{className:ai.discussItem},te.createElement("div",{className:ai.list},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+((ct=Ce==null?void 0:Ce.author)==null?void 0:ct.image_url)}),te.createElement("div",{className:ai.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333 mr30"},(st=Ce==null?void 0:Ce.author)==null?void 0:st.name),te.createElement("span",{className:"c-grey-999"},Ce==null?void 0:Ce.time)),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}),te.createElement("div",{className:ai.btns},te.createElement("div",{onClick:()=>ut(Ce==null?void 0:Ce.id),className:Ce!=null&&Ce.user_praise?"c-light-primary":"c-grey-999"},te.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),te.createElement("span",null,Ce==null?void 0:Ce.praise_count)),te.createElement("div",{onClick:()=>{var Ft;((Ft=Ce==null?void 0:Ce.children)==null?void 0:Ft.length)!==0&&(Qe(null),Kt(!It))},style:{color:It?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),te.createElement("span",null,It?"\u6536\u8D77\u8BC4\u8BBA":(_t=Ce==null?void 0:Ce.children)==null?void 0:_t.length)),te.createElement("div",{onClick:()=>{Kt(!1),Qe(Oe===(Ce==null?void 0:Ce.id)?null:Ce==null?void 0:Ce.id)},style:{color:Oe===(Ce==null?void 0:Ce.id)?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3"}),te.createElement("span",null,Oe===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Oe===(Ce==null?void 0:Ce.id)&&te.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(Ft,Xt)=>{Me(Ft,Xt),Kt(!0)}}),It&&te.createElement("div",{className:ai.secondLevelDiscuss},(Yt=Ce==null?void 0:Ce.children)==null?void 0:Yt.map(Ft=>te.createElement(Ra,{thirdlyReply:qe,setThirdlyReply:tt,key:Ft.id,data:Ft,onReplyDiscuss:Me}))))))},Fi=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),hi=({identifier:Ce,active:Me,onOk:Oe})=>{const[Qe,qe]=(0,te.useState)(""),[tt,ut]=(0,te.useState)(1),[ct,st]=(0,te.useState)([]),[_t,Yt]=(0,te.useState)(0),[It,Kt]=(0,te.useState)(null),[Ft,Xt]=(0,te.useState)(null);(0,te.useEffect)(()=>{on(1),ut(1)},[Me]);const on=qt=>Fi(void 0,null,function*(){const hn=yield wt({container_type:"QuestionSolutionArticle",container_identifier:Me,limit:5,page:qt});hn!=null&&hn.comments&&(st((hn==null?void 0:hn.comments)||[]),ut(qt),Yt(hn==null?void 0:hn.disscuss_count))}),mn=()=>Fi(void 0,null,function*(){if(Qe===""){ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const qt=yield Fn({comments:{content:Qe},container_type:"QuestionSolutionArticle",container_identifier:Me});qt!=null&&qt.discuss&&(qe(""),on(tt),Oe())}),ln=(qt,hn,Tt)=>Fi(void 0,null,function*(){const tn=yield _n({container_type:"QuestionSolutionArticle",container_identifier:Me,comments:{content:hn,parent_id:qt}});Kt(null),Xt(null),on(tt)}),vn=qt=>Fi(void 0,null,function*(){const hn=yield yn(qt);on(tt)}),Nn=qt=>{ut(qt),on(qt)};return te.createElement("div",{className:Ki.discuss},te.createElement("aside",{className:Ki.reply,style:{borderWidth:_t?1:0}},te.createElement(Yn.Z,{defaultValue:Qe,id:"writeForumsReviewId",onChange:qt=>{qe(qt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(la.Z,null,te.createElement(ki.Z,{flex:"1"}),te.createElement(ki.Z,null,te.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>mn()},"\u53D1\u9001")))),ct==null?void 0:ct.map(qt=>te.createElement(Vi,{secondReply:It,setSecondReply:Kt,thirdlyReply:Ft,setThirdlyReply:Xt,key:qt.id,data:qt,onReplyDiscuss:ln,onPlusDiscuss:vn})),te.createElement(Et.Z,{className:Ki.pagination,showTotal:qt=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},qt),"\u6761\u6570\u636E"),current:tt,onChange:Nn,total:_t,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Yi=ee(44080),Xi=Object.defineProperty,ji=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Na=(Ce,Me,Oe)=>Me in Ce?Xi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ba=(Ce,Me)=>{for(var Oe in Me||(Me={}))da.call(Me,Oe)&&Na(Ce,Oe,Me[Oe]);if(ji)for(var Oe of ji(Me))ua.call(Me,Oe)&&Na(Ce,Oe,Me[Oe]);return Ce},Qi=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),ka=({active:Ce,identifier:Me,onAssist:Oe,onEdit:Qe,onArticlesSkip:qe,onClose:tt,onOk:ut,onDelete:ct,detailsIndex:st,btnShowStatus:_t})=>{var Yt,It,Kt,Ft,Xt,on,mn,ln,vn,Nn;const[qt,hn]=(0,te.useState)(!0),[Tt,tn]=(0,te.useState)({});(0,te.useEffect)(()=>{Ce&&cn()},[Ce,st]);const cn=(gn=!0)=>Qi(void 0,null,function*(){gn&&hn(!0);const Sn=yield(0,me.wO)(Me,{active:Ce});(Sn==null?void 0:Sn.status)===0&&tn((Sn==null?void 0:Sn.data)||{}),hn(!1)}),Mn=gn=>Qi(void 0,null,function*(){const Sn=yield(0,me.qe)(Me,Ba({active:Ce},gn));(Sn==null?void 0:Sn.status)===0&&(cn(!1),ut())}),qn=gn=>Qi(void 0,null,function*(){(yield(0,me.Rg)(Me,{active:gn==null?void 0:gn.id})).status===0&&(cn(!1),ut())}),en=gn=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>ct(gn)})},En=()=>{cn(!1),ut()};return te.createElement("div",{className:Pr.listDetails},te.createElement(oi.Z,{className:"pt20 pl20 pr20",loading:qt,active:!0,paragraph:{rows:5}},te.createElement("div",{className:Pr.head},te.createElement("div",{className:Pr.name},te.createElement("div",{title:Tt==null?void 0:Tt.name,className:Pr.title},Tt==null?void 0:Tt.name),(Tt==null?void 0:Tt.is_authority)&&te.createElement("div",{className:Pr.b},"\u5B98\u65B9"),(Tt==null?void 0:Tt.is_excellent)&&te.createElement("div",{className:Pr.a},"\u7CBE\u9009")),te.createElement("div",{className:Pr.tag},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+(Tt==null?void 0:Tt.image_url)}),te.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Tt==null?void 0:Tt.username),te.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Zt()(Tt==null?void 0:Tt.created_at).format("YYYY-MM-DD")),te.createElement("span",null,te.createElement("img",{src:Rn}),te.createElement("span",null,Tt==null?void 0:Tt.praises_count)),te.createElement("span",null,te.createElement("img",{src:Hr}),te.createElement("span",null,Tt==null?void 0:Tt.discusses_count)),te.createElement("span",null,te.createElement("img",{src:Lo}),te.createElement("span",null,Tt==null?void 0:Tt.viewed_count)),te.createElement("div",{className:Pr.btn},((0,Kn.Ny)()||(Tt==null?void 0:Tt.is_self))&&te.createElement(te.Fragment,null,te.createElement(Pt.ZP,{onClick:()=>en(Tt),type:"primary",ghost:!0},"\u5220\u9664"),te.createElement(Pt.ZP,{onClick:()=>Qe(Tt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Kn.Ny)()&&te.createElement(Pt.ZP,{onClick:()=>Mn({is_authority:!(Tt!=null&&Tt.is_authority)}),type:"primary"},te.createElement("img",{src:Da}),Tt!=null&&Tt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Kn.Ny)()&&te.createElement(Pt.ZP,{onClick:()=>Mn({is_excellent:!(Tt!=null&&Tt.is_excellent)}),type:"primary"},te.createElement("img",{src:Mi}),Tt!=null&&Tt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),te.createElement("div",{className:Pr.scroll},((It=(Yt=Tt==null?void 0:Tt.videos)==null?void 0:Yt[0])==null?void 0:It.id)&&te.createElement("div",{className:Pr.video},te.createElement(ue.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Ft=(Kt=Tt==null?void 0:Tt.videos)==null?void 0:Kt[0])!=null&&Ft.transcoded)},te.createElement(Yi.Z,{poster:(on=(Xt=Tt==null?void 0:Tt.videos)==null?void 0:Xt[0])==null?void 0:on.cover_url,src:((ln=(mn=Tt==null?void 0:Tt.videos)==null?void 0:mn[0])==null?void 0:ln.play_url)||"",videoId:(Nn=(vn=Tt==null?void 0:Tt.videos)==null?void 0:vn[0])==null?void 0:Nn.id,logWatchHistory:()=>{}}))),te.createElement(Ae.Z,{className:Pr.html,value:(Tt==null?void 0:Tt.content)||""}),te.createElement("div",{onClick:()=>qn(Tt),className:Pr.g},te.createElement("img",{className:"mr10",src:(Tt!=null&&Tt.user_liker,sa)}),te.createElement("span",null,Tt==null?void 0:Tt.praises_count)),te.createElement(hi,{onOk:En,active:Ce,identifier:Me})),te.createElement("div",{className:Pr.btns},te.createElement(Pt.ZP,{onClick:()=>tt(),type:"primary",ghost:!0},"\u5173\u95ED"),_t[0]&&te.createElement(Pt.ZP,{onClick:gn=>qe(gn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),_t[1]&&te.createElement(Pt.ZP,{onClick:gn=>qe(gn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},zi=Object.defineProperty,Hi=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,fa=(Ce,Me,Oe)=>Me in Ce?zi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ji=(Ce,Me)=>{for(var Oe in Me||(Me={}))Gi.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);if(Hi)for(var Oe of Hi(Me))ga.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);return Ce};const Fa=Ce=>React.createElement("svg",Ji({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var ha="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",ma=ee(59477),qi=ee(89489),ja=Object.defineProperty,pa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Ai=(Ce,Me,Oe)=>Me in Ce?ja(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Xo=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ha.call(Me,Oe)&&Ai(Ce,Oe,Me[Oe]);if(va)for(var Oe of va(Me))Di.call(Me,Oe)&&Ai(Ce,Oe,Me[Oe]);return Ce},Ga=(Ce,Me)=>pa(Ce,za(Me)),Ii=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),hs=({identifier:Ce,tabStatus:Me,setFilterListTotal:Oe,setListStatus:Qe})=>{const qe={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[tt,ut]=(0,te.useState)(Xo({},qe));const[ct,st]=(0,te.useState)(!1),[_t,Yt]=(0,te.useState)(0),[It,Kt]=(0,te.useState)(1),[Ft,Xt]=(0,te.useState)(null),[on,mn]=(0,te.useState)([]),[ln,vn]=(0,te.useState)([!0,!0]),[Nn,qt]=(0,te.useState)(0),hn=(0,te.useRef)(null);(0,te.useEffect)(()=>{jn()},[Me]),(0,te.useEffect)(()=>{Tt()},[Ft]),(0,te.useEffect)(()=>{cn(Xo({},qe)),jn()},[Ce]),(0,te.useEffect)(()=>(window.addEventListener("resize",tn),Qe(Nn),()=>{window.removeEventListener("resize",tn)}),[Nn]);const Tt=()=>Ii(void 0,null,function*(){if(!Ft){vn([!0,!0]);return}const Wn=[!0,!0],On=on==null?void 0:on.findIndex(Tn=>Tn.id===Ft);On===0&&tt.page===1&&(Wn[0]=!1),(tt.page-1)*tt.limit+(On+1)===tt.total&&(Wn[1]=!1),vn(Wn)}),tn=()=>{var Wn;if(Nn){const On=window.innerWidth-((Wn=hn.current)==null?void 0:Wn.clientWidth);Yt(On)}},cn=Wn=>Ii(void 0,null,function*(){var On,Tn,Hn;st(!0);const An=yield(0,me.WH)(Ce,Wn);return(An==null?void 0:An.status)===0&&(mn(((On=An==null?void 0:An.data)==null?void 0:On.articles)||[]),ut(Ga(Xo({},Wn),{total:(Tn=An==null?void 0:An.data)==null?void 0:Tn.articles_count})),Oe((Hn=An==null?void 0:An.data)==null?void 0:Hn.articles_count)),st(!1),An}),Mn=()=>{(tt==null?void 0:tt.sort_direction)===null?tt.sort_direction="asc":(tt==null?void 0:tt.sort_direction)==="asc"?tt.sort_direction="desc":(tt==null?void 0:tt.sort_direction)==="desc"&&(tt.sort_direction=null),tt.page=1,jn(),ut(Xo({},tt)),cn(tt)},qn=()=>{tt.page=1,tt.search=tt==null?void 0:tt.save_search,jn(),ut(Xo({},tt)),cn(tt)},en=()=>{var Wn;const On=document.getElementsByClassName("btn-resize");On[0].style.visibility="hidden";const Tn=window.innerWidth-((Wn=hn.current)==null?void 0:Wn.clientWidth);Yt(Tn)},En=()=>{en(),qt(1)},gn=Wn=>{en(),Xt(Wn==null?void 0:Wn.id),qt(3)},Sn=Wn=>{en(),Xt(Wn==null?void 0:Wn.id),qt(2)},jn=()=>{const Wn=document.getElementsByClassName("btn-resize");Wn[0].style.visibility="visible",Yt(0),qt(0),Xt(null)},Qn=Wn=>{qt(3),Xt(Wn),tt.page=1,ut(Xo({},tt)),cn(tt)},br=Wn=>{qt(3),Xt(Wn),ut(Xo({},tt)),cn(tt)},nr=Wn=>{ut(Xo({},tt)),cn(tt)},tr=Wn=>Ii(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:Wn==null?void 0:Wn.id})).status===0&&(cn(tt),Kt(It+1))}),Vr=Wn=>Ii(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:Wn==null?void 0:Wn.id})).status===0&&(cn(tt),Kt(It+1))}),mr=Wn=>Ii(void 0,null,function*(){(yield(0,me.de)(Ce,{active:Wn==null?void 0:Wn.id})).status===0&&(jn(),cn(tt))}),Br=Wn=>{tt.page=Wn,ut(Xo({},tt)),cn(tt)},cr=(Wn,On)=>Ii(void 0,null,function*(){var Tn,Hn,An,Cr;const Bn=on==null?void 0:on.findIndex(zn=>zn.id===Ft);if(console.log(Bn,On,22),On==="prev"){if(Bn===void 0){ge.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Bn===0){if(tt.page===1){ge.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(tt.page!==1){tt.page=tt.page-1,ut(Xo({},tt));const zn=yield cn(tt);if((zn==null?void 0:zn.status)===0){const gr=(An=zn==null?void 0:zn.data)==null?void 0:An.articles[((Hn=(Tn=zn==null?void 0:zn.data)==null?void 0:Tn.articles)==null?void 0:Hn.length)-1];Xt(gr==null?void 0:gr.id),console.log(Wn.target,555)}}}else{const zn=on[Bn-1];Xt(zn==null?void 0:zn.id)}}if(On==="next"){if(Bn===void 0){ge.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((tt.page-1)*tt.limit+(Bn+1)===tt.total){ge.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Bn+1===tt.limit){tt.page=tt.page+1,ut(Xo({},tt));const zn=yield cn(tt);if((zn==null?void 0:zn.status)===0){const gr=(Cr=zn==null?void 0:zn.data)==null?void 0:Cr.articles[0];Xt(gr==null?void 0:gr.id)}}else{const zn=on[Bn+1];Xt(zn==null?void 0:zn.id)}}});return te.createElement("div",{className:vt.wrap,ref:hn},te.createElement("div",{className:vt.head},te.createElement("div",{className:vt.sort,onClick:Mn},te.createElement("span",null,"\u6700\u65B0"),te.createElement("aside",null,te.createElement(ma.Z,{style:{color:(tt==null?void 0:tt.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),te.createElement(qi.Z,{style:{color:(tt==null?void 0:tt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),te.createElement($e.default.Search,{value:tt.save_search,className:vt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Wn=>{tt.save_search=Wn.target.value,ut(Xo({},tt))},onSearch:qn}),te.createElement("div",{onClick:En,className:vt.btn},te.createElement("img",{src:ha}),"\u5199\u9898\u89E3")),te.createElement("div",{className:vt.listWarp},te.createElement(ue.Z,{spinning:ct,className:"mt20"},on==null?void 0:on.map((Wn,On)=>{let Tn=!0;return On+1===on.length&&On!==0&&(Tn=!1),te.createElement(Wr,{active:Ft,key:Wn.id,data:Wn,showLine:Tn,onClick:gn,onAssist:tr,onHide:Vr})}),(on==null?void 0:on.length)===0&&te.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),te.createElement(Et.Z,{className:vt.pagination,showTotal:Wn=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Wn),"\u6761\u6570\u636E"),total:tt.total,showSizeChanger:!1,current:tt==null?void 0:tt.page,onChange:Br,hideOnSinglePage:!0,showQuickJumper:!0}),Nn>0&&te.createElement("div",{className:vt.fixedRight,style:{width:_t}},Nn===1&&te.createElement(Eo,{identifier:Ce,onClose:jn,onOk:Qn}),Nn===2&&te.createElement(Eo,{active:Ft,identifier:Ce,onClose:jn,onOk:br}),Nn===3&&te.createElement(ka,{btnShowStatus:ln,onArticlesSkip:cr,detailsIndex:It,active:Ft,identifier:Ce,onClose:jn,onOk:nr,onEdit:Sn,onAssist:tr,onDelete:mr})))},Ci={flex_box_center:"flex_box_center___BbEkt",flex_space_between:"flex_space_between___v3cDl",flex_box_vertical_center:"flex_box_vertical_center___wUFLn",flex_box_center_end:"flex_box_center_end___Tdr08",flex_box_column:"flex_box_column___fYHlj",wrap:"wrap___UAZFM",head:"head___Nl6hk",title:"title___Ir573",content:"content___xUewa",list:"list___oi2ig",footer:"footer___V3bwQ"},ms=Object.defineProperty,Ua=Object.defineProperties,$a=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,Sa=(Ce,Me,Oe)=>Me in Ce?ms(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,_i=(Ce,Me)=>{for(var Oe in Me||(Me={}))Wa.call(Me,Oe)&&Sa(Ce,Oe,Me[Oe]);if(Za)for(var Oe of Za(Me))ps.call(Me,Oe)&&Sa(Ce,Oe,Me[Oe]);return Ce},ea=(Ce,Me)=>Ua(Ce,$a(Me)),Ui=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())}),Ss=({visible:Ce,onVisible:Me,value:Oe,onChange:Qe,setIndex:qe})=>{var tt;const ut={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[ct,st]=(0,te.useState)(ut);const[_t,Yt]=(0,te.useState)([]),[It,Kt]=(0,te.useState)([]),[Ft,Xt]=(0,te.useState)(!1),on=(0,te.useRef)([]),mn=(0,te.useRef)(null),ln=(0,ye.useParams)();(0,te.useEffect)(()=>(ln!=null&&ln.id&&(mn.current=setInterval(()=>{vn(30)},3e4)),()=>{clearInterval(mn.current)}),[]);const vn=en=>Ui(void 0,null,function*(){const En=yield(0,me.uc)(ln==null?void 0:ln.id,{practice_time:en})});(0,te.useEffect)(()=>{cn(ct),Tt()},[]),(0,te.useEffect)(()=>(window.addEventListener("click",qt),()=>{window.removeEventListener("click",qt)}),[ln==null?void 0:ln.save_identifier,Ce]),(0,te.useEffect)(()=>{const en=on.current.findIndex(Qn=>Qn.identifier===(ln==null?void 0:ln.save_identifier)),En=on.current[en-1],gn=on.current[en+1],Sn=document.getElementById("oj-prev"),jn=document.getElementById("oj-next");En?Sn.style.display="block":Sn.style.display="none",gn?jn.style.display="block":jn.style.display="none"},[ln==null?void 0:ln.save_identifier,on.current]);const Nn=(en,En)=>{if(en.id===En)return en;for(let gn=0,Sn=en;Sn=Sn.parentNode;gn++){if(Sn.id===En)return Sn;if(Sn==document.documentElement)return!1}},qt=en=>Ui(void 0,null,function*(){!Nn(en.target,"oj-drawer")&&Ce&&Me(!1);const En=on.current.findIndex(jn=>jn.identifier===(ln==null?void 0:ln.save_identifier)),gn=on.current[En-1],Sn=on.current[En+1];if(en.target.id==="oj-prev"){if(!gn||En===-1){ge.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Mn(gn==null?void 0:gn.identifier),qe("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}if(en.target.id==="oj-next"||en.target.id==="oj-modal-next"){if(!Sn||En===-1){ge.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Mn(Sn==null?void 0:Sn.identifier),qe("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}});(0,te.useEffect)(()=>{Qe(ln==null?void 0:ln.save_identifier);const en=It.findIndex(En=>En.some(gn=>gn.identifier===(ln==null?void 0:ln.save_identifier)));st(en===-1?ea(_i({},ct),{page:1}):ea(_i({},ct),{page:en+1}))},[ln==null?void 0:ln.save_identifier,It]);const hn=en=>{ct.page=1,ct.tag_discipline_id=en,st(_i({},ct)),cn(ct)},Tt=()=>Ui(void 0,null,function*(){const en=yield(0,dn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Yt(en.tag_disciplines||[])}),tn=en=>{ct.page=1,ct.difficulty=typeof en=="number"?en:null,st(_i({},ct)),cn(ct)},cn=en=>Ui(void 0,null,function*(){var En,gn;Xt(!0);const Sn=yield(0,me.KC)(en);if(Sn!=null&&Sn.practices_list){for(var jn=(En=Sn==null?void 0:Sn.practices_list)==null?void 0:En.length,Qn=[],br=0;br<jn;br+=ct==null?void 0:ct.per_page)Qn.push((gn=Sn==null?void 0:Sn.practices_list)==null?void 0:gn.slice(br,br+(ct==null?void 0:ct.per_page)));st(ea(_i({},ct),{total:Sn==null?void 0:Sn.practices_count})),on.current=(Sn==null?void 0:Sn.practices_list)||[],Kt(Qn)}Xt(!1)}),Mn=(en,En)=>Ui(void 0,null,function*(){const gn=yield(0,dn.ZP)(`/api/practices/${en}/start`,{method:"get"});(gn==null?void 0:gn.status)===0&&ye.history.push(`/problems/${gn==null?void 0:gn.identifier}/oj/${en}`)}),qn=en=>{ct.page=en,st(_i({},ct))};return te.createElement("div",{className:Ci.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},te.createElement("div",{className:Ci.head},te.createElement("div",{className:Ci.title},"\u9898\u76EE\u5217\u8868"),te.createElement($e.default.Search,{value:ct==null?void 0:ct.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:en=>{ct.save_search=en.target.value,st(_i({},ct))},onSearch:()=>{ct.page=1,ct.search=ct.save_search,st(_i({},ct)),cn(ct)}}),te.createElement(ce.default,{value:ct==null?void 0:ct.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:en=>en.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:hn},_t.map(en=>te.createElement(ce.default.Option,{key:en.id,value:en.id},en.name))),te.createElement(ce.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:en=>en.parentNode,value:ct==null?void 0:ct.difficulty,onChange:tn},te.createElement(ce.default.Option,{value:1},"\u7B80\u5355"),te.createElement(ce.default.Option,{value:2},"\u9002\u4E2D"),te.createElement(ce.default.Option,{value:3},"\u56F0\u96BE"))),te.createElement("div",{className:Ci.content},te.createElement(ue.Z,{spinning:Ft},(tt=It==null?void 0:It[ct.page-1])==null?void 0:tt.map(en=>te.createElement("div",{key:en.identifier,className:Ci.list,onClick:En=>Mn(en.identifier,En)},te.createElement("i",{style:{visibility:Oe===en.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),te.createElement("span",{style:{fontWeight:Oe===en.identifier?"bold":400,color:Oe===en.identifier?"#ffffff":"#bac4cd"},title:en==null?void 0:en.name},en.name),(en==null?void 0:en.difficulty)===1&&te.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(en==null?void 0:en.difficulty)===2&&te.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(en==null?void 0:en.difficulty)===3&&te.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),te.createElement("div",{className:Ci.footer},te.createElement(Et.Z,{showTotal:en=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},en),"\u6761\u6570\u636E"),total:ct.total,pageSize:ct==null?void 0:ct.per_page,current:ct==null?void 0:ct.page,showSizeChanger:!1,onChange:qn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ka=({hack:Ce,onTriggerPraise:Me,topicId:Oe,page:Qe,onPageChange:qe,user:tt,submitRecords:ut,submitting:ct,submitResult:st})=>{const[_t]=(0,ye.useSearchParams)(),Yt=(0,ye.useLocation)(),[It,Kt]=(0,te.useState)(_t.get("tab")||"0"),[Ft,Xt]=(0,te.useState)(0),[on,mn]=(0,te.useState)(0),[ln,vn]=(0,te.useState)(0),[Nn,qt]=(0,te.useState)(),[hn,Tt]=(0,te.useState)(!1);function tn(Mn){const qn=Mn.target.id;if(It==="3"&&qn!==It&&(on===1||on===2)){ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{Kt(qn)}});return}Kt(qn)}(0,te.useEffect)(()=>ze.Z.subscribe("to-commit-info",()=>{Kt("1")}),[]);function cn(){Kt("2")}return te.createElement("div",{className:Xe["left-panel"]},te.createElement("ul",{className:`${Xe["s-navs"]} ${Xe["bg-white"]} ${Xe.b1}`},te.createElement("li",{className:"mr40 current"},te.createElement("img",{onClick:()=>Tt(!0),src:fn})),te.createElement("li",{className:Xe["oj-mr"]},te.createElement("a",{className:It==="0"?Xe.active:"",id:"0",onClick:tn},"\u4EFB\u52A1\u63CF\u8FF0")),te.createElement("li",{className:Xe["oj-mr"]},te.createElement("a",{className:It==="3"?Xe.active:"",id:"3",onClick:tn},"\u9898\u89E3",ln?`(${ln})`:"")),te.createElement("li",{className:Xe["oj-mr"]},te.createElement("a",{className:It==="2"?Xe.active:"",id:"2",onClick:tn},"\u8BC4\u8BBA",Ft?`(${Ft})`:"")),te.createElement("li",null,te.createElement("a",{className:It==="1"?Xe.active:"",id:"1",onClick:tn},"\u63D0\u4EA4\u8BB0\u5F55"))),te.createElement("div",{className:`${Xe["tab-panel-body"]} ${It==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},te.createElement(Be,{hack:Ce,onTriggerPraise:Me,toDiscuss:cn})),te.createElement("div",{className:`${Xe["tab-panel-body"]} ${It==="1"?"":"hide"}`},ut!=null&&ut.records_count?te.createElement(dt,{page:Qe,onPageChange:qe,topicId:Oe,submitting:ct,submitRecords:ut,submitResult:st}):te.createElement(Ge.Z,null)),te.createElement("div",{className:`${Xe["tab-panel-body"]} ${It==="2"?"":"hide"}`,style:{padding:0}},te.createElement(et,{setDiscussTotal:Xt,user:tt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:Me})),te.createElement("div",{className:`${Xe["tab-panel-body"]} ${It==="3"?"":"hide"}`,style:{padding:0}},te.createElement(hs,{setListStatus:mn,setFilterListTotal:vn,tabStatus:It,identifier:Ce.identifier})),te.createElement(Ss,{visible:hn,setIndex:Kt,onVisible:Mn=>Tt(Mn),value:Nn,onChange:Mn=>qt(Mn)}))},_s=ee(22744),Va=ee(62522),ys=ee(81747),Ya=ee(51976),Ps=ee(89392),Xa=ee.n(Ps),bs=ee(56102),er=ee(59301),Cs=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ya=(Ce,Me,Oe)=>Me in Ce?Cs(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ur=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ja.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);if(Oi)for(var Oe of Oi(Me))_a.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);return Ce},mo=(Ce,Me)=>Qa(Ce,Es(Me)),qa=(Ce,Me)=>{var Oe={};for(var Qe in Ce)Ja.call(Ce,Qe)&&Me.indexOf(Qe)<0&&(Oe[Qe]=Ce[Qe]);if(Ce!=null&&Oi)for(var Qe of Oi(Ce))Me.indexOf(Qe)<0&&_a.call(Ce,Qe)&&(Oe[Qe]=Ce[Qe]);return Oe},Go=(Ce,Me,Oe)=>new Promise((Qe,qe)=>{var tt=st=>{try{ct(Oe.next(st))}catch(_t){qe(_t)}},ut=st=>{try{ct(Oe.throw(st))}catch(_t){qe(_t)}},ct=st=>st.done?Qe(st.value):Promise.resolve(st.value).then(tt,ut);ct((Oe=Oe.apply(Ce,Me)).next())});const{Countdown:ws}=he.default,di={Java:"java",C:"c",Python:"py","C++":"c"};var es=(Ce=>(Ce[Ce.SET_LOADING=0]="SET_LOADING",Ce[Ce.GET_DATA=1]="GET_DATA",Ce[Ce.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Ce[Ce.SET_DATA=3]="SET_DATA",Ce[Ce.SET_DEBUGING=4]="SET_DEBUGING",Ce[Ce.SET_SUBMITING=5]="SET_SUBMITING",Ce[Ce.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Ce[Ce.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Ce[Ce.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Ce[Ce.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Ce[Ce.SET_PAGE=10]="SET_PAGE",Ce[Ce.GET_LANGUAGE=11]="GET_LANGUAGE",Ce[Ce.GET_DRAWER=12]="GET_DRAWER",Ce))(es||{});function $i(){return new Date().getTime()}const De={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function Te(Ce,Me){switch(Me.type){case 1:return Ur(Ur({},Ce),Me.payload);case 3:return mo(Ur({},Ce),{data:Me.payload});case 0:return mo(Ur({},Ce),{loading:Me.payload});case 11:return mo(Ur({},Ce),{languageList:Me.payload});case 12:return mo(Ur({},Ce),{drawerData:Me.payload});case 9:return mo(Ur({},Ce),{showNote:Me.payload});case 4:return mo(Ur({},Ce),{debuging:Me.payload});case 5:return mo(Ur({},Ce),{submitting:Me.payload});case 2:return mo(Ur({},Ce),{submitRecords:Me.payload});case 10:return mo(Ur({},Ce),{submitRecordPage:Me.payload});case 6:return mo(Ur({},Ce),{executingMessage:Me.payload});case 7:return Ur(Ur({},Ce),Me.payload);case 8:return Ur(Ur({},Ce),Me.payload);default:throw new Error}}var Ue=({children:Ce})=>{var Me,Oe,Qe,qe;const tt=(0,ye.useIntl)(),[ut,ct]=(0,te.useReducer)(Te,De),{id:st}=(0,ye.useParams)(),_t=(0,ye.useLocation)(),[Yt]=(0,ye.useSearchParams)(),{languageValue:It,languageList:Kt,loading:Ft,data:Xt,debugResult:on,submitResult:mn,submitRecords:ln,submitRecordPage:vn,showNote:Nn,debuging:qt,submitting:hn,executingMessage:Tt}=ut,[tn,cn]=(0,te.useState)("#FFF"),[Mn,qn]=(0,te.useState)(null),[en,En]=(0,te.useState)({}),[gn,Sn]=(0,te.useState)(!1),jn=(0,te.useRef)(null),Qn=(0,te.useRef)(null),br=Xt==null?void 0:Xt.user,nr=Xt==null?void 0:Xt.hack;(0,te.useEffect)(()=>((0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,te.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,te.useEffect)(()=>{var Un;if(gn){const Rr=document.getElementById("oj-next"),Lr=document.getElementById("oj-modal-next");((Un=Rr==null?void 0:Rr.style)==null?void 0:Un.display)==="none"?Lr.style.display="none":Lr.style.display="block"}},[gn]),(0,te.useEffect)(()=>{function Un(){return Go(this,null,function*(){var Rr,Lr,Jr;const Fr=yield(0,me.fu)(st);if(Fr.status===401)document.location.href="/user/login";else{Fr.hack=Fr.practice,Fr.hack.code=je.Base64.decode((Rr=Fr==null?void 0:Fr.hack)==null?void 0:Rr.code);const pr=`${br==null?void 0:br.login}-language`;localStorage.getItem(pr)&&(Fr.hack.language=localStorage.getItem(pr)),Qn.current=Xa().cloneDeep(Fr),Qn.current.language=(Lr=Fr==null?void 0:Fr.hack)==null?void 0:Lr.language,ct({type:1,payload:{loading:!1,data:Fr}}),ct({type:8,payload:{languageValue:(Jr=Fr==null?void 0:Fr.hack)==null?void 0:Jr.language}})}})}st&&Un()},[st]),(0,te.useEffect)(()=>{ct({type:8,payload:{debugResult:void 0}}),mr(),Sn(!1)},[st]),(0,te.useEffect)(()=>{clearTimeout(jn.current)},[st]),(0,te.useEffect)(()=>{Vr()},[st,vn]);const tr=()=>{window.parent.postMessage("backExercise","*")};function Vr(){return Go(this,null,function*(){try{const Un=yield(0,me.zO)(st,{limit:15,page:vn});ct({type:2,payload:Un})}catch(Un){console.log(Un)}})}function mr(){return Go(this,null,function*(){try{const Un=yield(0,me.dd)(st);ct({type:11,payload:Un==null?void 0:Un.data})}catch(Un){console.log(Un)}})}function Br(Un){ct({type:10,payload:Un})}function cr(Un){return Go(this,null,function*(){var Rr,Lr,Jr;const Fr=((Jr=(Lr=(Rr=window==null?void 0:window.location)==null?void 0:Rr.pathname)==null?void 0:Lr.split("/"))==null?void 0:Jr[2])||st;return yield(0,me.n4)(Fr,Un||{code:je.Base64.encode(nr.code),language:It})})}function Wn(){return Go(this,null,function*(){var Un;if(!nr.code||((Un=nr.code)==null?void 0:Un.trim())===""){ge.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!hn){ct({type:5,payload:!0});try{if(ze.Z.publish("to-commit-info"),(yield cr()).status===0){let jr=function(){return Go(this,null,function*(){const{status:ro,data:Yr}=yield(0,me.rX)(st,"submit"),po=$i()-Er>(Fr*pr+3)*1e3;if(ro!==0&&!po&&setTimeout(jr,1e3),po){ie.default.error({centered:!0,okText:tt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),ct({type:5,payload:!1});return}if(ro===0){Yr.status===2&&ie.default.error({centered:!0,okText:tt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Io=yield(0,me.zO)(st,{limit:15,page:vn});ct({type:8,payload:mo(Ur({},ut),{submitResult:Yr,submitting:!1,submitRecords:Io})}),(Yr==null?void 0:Yr.status)===0&&Sn(!0)}})},Lr={};const Jr=yield(0,me.bM)(st,Lr);if(Jr.status===-1&&Yt.get("exercisesId")){window.parent.location.href=`/classrooms/${Yt.get("coursesId")}/exercise/${Yt.get("exercisesId")}/detail`;return}const{time_limit:Fr,test_case_size:pr}=nr,Er=$i();(Jr==null?void 0:Jr.status)>-1?jr():ct({type:4,payload:!1})}}catch(Rr){ct({type:5,payload:!1})}}})}function On(){return Go(this,null,function*(){var Un;if(!nr.code||((Un=nr.code)==null?void 0:Un.trim())===""){ge.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}ut.debuging=!0,ct({type:4,payload:!0});try{if((yield cr()).status===0){let Er=function(){return Go(this,null,function*(){const{status:jr,message:ro,data:Yr}=yield(0,me.rX)(st,"debug"),po=$i()-pr>(Lr+3)*1e3;if(jr!==0&&!po&&(ct({type:6,payload:ro}),setTimeout(Er,1e3)),po){ie.default.error({centered:!0,okText:tt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),ct({type:4,payload:!1});return}jr===0&&(ct({type:4,payload:!1}),Yr.status===2&&ie.default.error({centered:!0,okText:tt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),ct({type:7,payload:mo(Ur({},ut),{debugResult:Yr,debuging:!1})}))})};const{time_limit:Lr}=nr;let Jr={input:encodeURIComponent(Xt.test_case.input)};const Fr=yield(0,me.MU)(st,Jr);if(Fr.status===-1&&Yt.get("exercisesId")){window.parent.location.href=`/classrooms/${Yt.get("coursesId")}/exercise/${Yt.get("exercisesId")}/detail`;return}const pr=$i();(Fr==null?void 0:Fr.status)>-1?Er():ct({type:4,payload:!1})}else ct({type:4,payload:!1})}catch(Rr){console.log(Rr)}finally{}})}function Tn(Un){var Rr;clearTimeout(jn.current),jn.current=setTimeout(()=>{var Lr;cr({code:je.Base64.encode(Un),language:(Lr=Qn==null?void 0:Qn.current)==null?void 0:Lr.language})},2e3),ct({type:3,payload:mo(Ur({},Qn==null?void 0:Qn.current),{hack:mo(Ur({},(Rr=Qn==null?void 0:Qn.current)==null?void 0:Rr.hack),{code:Un})})})}function Hn(Un){let Rr=Un.target.value;ct({type:3,payload:mo(Ur({},Xt),{test_case:{input:Rr}})})}const An=Un=>Go(void 0,null,function*(){var Rr;if(ct({type:0,payload:!0}),(yield cr()).status===0){ct({type:8,payload:{languageValue:Un}}),Qn.current.language=Un;const Jr=`${br==null?void 0:br.login}-language`;localStorage.setItem(Jr,Un);const Fr=yield(0,me.dd)(st);if(Fr.status===0){const pr=(Rr=Fr==null?void 0:Fr.data)==null?void 0:Rr.find(Er=>Er.language===Un);Tn(je.Base64.decode(pr.code))}setTimeout(()=>{ct({type:0,payload:!1})},300)}});function Cr(){return Go(this,null,function*(){try{const Un=yield(0,me.H7)(st,{language:It});Un.status===401?ye.history.replace("/login",{from:_t.pathname}):(Tn(je.Base64.decode(Un.code)),mr())}catch(Un){console.log(Un)}})}function Bn(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:er.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",er.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Go(this,null,function*(){const Un=yield(0,me.fi)(st,{language:It});Un.status===401?ye.history.replace("/login",{from:_t.pathname}):Tn(je.Base64.decode(Un.code))})}})}function zn(){ct({type:9,payload:!0})}function gr(){ct({type:9,payload:!1})}function yr(Un){return Go(this,null,function*(){yield(0,me.MK)(st,Un),ct({type:1,payload:{showNote:!1,data:mo(Ur({},Xt),{hack:mo(Ur({},nr),{notes:Un.notes})})}})})}const Ao={input:(Me=Xt==null?void 0:Xt.test_case)==null?void 0:Me.input,is_file:(Oe=Xt==null?void 0:Xt.test_case)==null?void 0:Oe.is_file,language:((Qe=Qn.current)==null?void 0:Qe.language)||(nr==null?void 0:nr.language),code:nr==null?void 0:nr.code,title:"main."+di[nr==null?void 0:nr.language],modify_code:nr==null?void 0:nr.modify_code,notes:nr==null?void 0:nr.notes,debugResult:on,debuging:qt,submitting:hn,executingMessage:Tt,id:st,languageValue:It,languageList:Kt,onChangeLanguage:An,onCancelNote:gr,onAddNote:yr,showNote:Nn,onShowNote:zn,onSubmitCode:Wn,onChangeCode:Tn,onChangeInput:Hn,onDebugCode:On,onResetCode:Cr,onSyncCode:Bn,onUpdateCode:cr};function _o(){return Go(this,null,function*(){const{praise_count:Un}=yield(0,me.vl)(nr.id,{container_type:"Hack",type:1});let Rr=mo(Ur({},Xt),{hack:mo(Ur({},nr),{praises_count:Un,user_praise:!nr.user_praise})});ct({type:3,payload:Rr})})}const ni={topicId:st,submitResult:mn,submitRecords:ln,submitting:hn,page:vn,onPageChange:Br,hack:nr,user:Xt==null?void 0:Xt.user,onTriggerPraise:_o};return console.log(Xt,Qn==null?void 0:Qn.current,"data--------"),er.createElement(er.Fragment,null,er.createElement(ue.Z,{className:"oj-custom-large-spin",size:"large",spinning:Ft},Xt?er.createElement("div",{className:"oj-custom-warp"},er.createElement("header",{className:He.Z.header,style:{minWidth:1200}},er.createElement("div",null,er.createElement("img",{src:`${pe.Z.IMG_SERVER}/images/${br.image_url}`,alt:"user",width:30}),er.createElement("span",null,br.name)),er.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},er.createElement("div",null,nr.name),er.createElement(_s.Z,{onChange:Un=>{},className:"font12 c-grey-999"})),er.createElement(bs.CopyToClipboard,{text:`${(qe=window.location)==null?void 0:qe.origin}/problems/${nr.identifier}/share`,onCopy:()=>ge.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},er.createElement("span",{className:He.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",er.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),nr.edit_privilege?er.createElement(ye.Link,{className:He.Z.btn_back,to:`/problems/${nr.identifier}/ojedit`,style:{marginRight:10}}," ",er.createElement(fe.Z,null)," \u7F16\u8F91"):null,er.createElement(ye.Link,{className:He.Z.btn_back,onClick:()=>{},to:"/problems"}," ",er.createElement(be.Z,null),"\u9000\u51FA")),er.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:er.createElement(Ka,Ur({},ni)),rightChild:er.createElement(it,Ur({},Ao))})):null),er.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:gn,className:"oj-modal"},er.createElement("section",{className:"oj-modal-content"},er.createElement("div",{className:"oj-modal-head"},er.createElement("img",{src:Va,alt:""}),er.createElement("i",{onClick:()=>Sn(!1),className:"iconfont icon-guanbi1"})),er.createElement("aside",null,er.createElement("img",{className:"mr30",src:Ya.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",er.createElement("span",{style:{color:"#75d6ba",marginRight:100}},mn==null?void 0:mn.execute_time,"s"),"\u4F18\u4E8E",er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(mn==null?void 0:mn.time_better_than)||100,"%"),"\u7684\u7528\u6237"),er.createElement("aside",{className:"mb50"},er.createElement("img",{src:ys.Z,className:"mr30"}),er.createElement("span",{className:"oj-modal-tt"},er.createElement("span",null,er.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),er.createElement("span",{className:"c-light-primary"},mn==null?void 0:mn.execute_memory,"mb")),er.createElement("span",null,er.createElement("span",null))),"\u4F18\u4E8E",er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(mn==null?void 0:mn.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),er.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ve({languageValue:Ce,languageList:Me,onChangeLanguage:Oe,title:Qe,modify_code:qe,onSyncCode:tt,onShowCodeSetting:ut,onResetCode:ct}){const st=(0,ye.useLocation)(),_t=(0,ye.useIntl)(),Yt=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:er.createElement(oe.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:ct})};return er.createElement("div",{className:"action-bar"},er.createElement(ce.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Oe},Me==null?void 0:Me.map(It=>er.createElement(ce.default.Option,{key:It.language,value:It.language},It.language))),er.createElement("span",null),er.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:Yt},er.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),er.createElement("a",{onClick:ut},er.createElement("i",{className:"iconfont icon-shezhi"})))}function it(Ce){var Me=Ce,{id:Oe,input:Qe,is_file:qe,showNote:tt,onShowNote:ut,notes:ct,onCancelNote:st,onAddNote:_t,debugResult:Yt,language:It,debuging:Kt,submitting:Ft,executingMessage:Xt,code:on,onSubmitCode:mn,onDebugCode:ln,onChangeCode:vn,onChangeInput:Nn,onUpdateCode:qt}=Me,hn=qa(Me,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Tt(cn){return er.createElement(Ve,mo(Ur({},hn),{onShowCodeSetting:cn}))}const tn={id:Oe,input:Qe,debugResult:Yt,debuging:Kt,is_file:qe,submitting:Ft,executingMessage:Xt,onDebugCode:ln,onChangeCode:vn,onSubmitCode:mn,onChangeInput:Nn};return er.createElement("div",{className:"right-panel"},er.createElement(ht,{onUpdateCode:()=>{},language:It,value:on,onChange:vn,ActionBarRender:Tt}),er.createElement("div",{className:`note-form-area ${tt?"active":""}`},er.createElement(rt,{onCancel:st,notes:ct,callback:_t})),er.createElement(Je.ZP,Ur({},tn)))}},17124:function(ft,Ke,ee){"use strict";ee.d(Ke,{h:function(){return te}});var te=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(te||{})},47887:function(ft,Ke,ee){"use strict";ee.d(Ke,{H7:function(){return ce},KC:function(){return ne},M3:function(){return b},MK:function(){return ue},MU:function(){return ye},Rg:function(){return re},WH:function(){return a},X6:function(){return ge},bM:function(){return be},bx:function(){return y},dd:function(){return pe},de:function(){return de},fi:function(){return me},fu:function(){return fe},gu:function(){return E},n4:function(){return se},qe:function(){return z},rL:function(){return le},rX:function(){return ie},uc:function(){return ve},vl:function(){return oe},wO:function(){return x},zO:function(){return he}});var te=ee(38147);function fe(Se){return(0,te.U2)(`mypractices/${Se}.json`,{hidePopLogin:!0})}function be(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_submit.json`,Le)}function ye(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_debug.json`,Le)}function he(Se,Le){return Le.language&&(Le.language=encodeURIComponent(Le.language)),(0,te.U2)(`mypractices/${Se}/submit_records.json`,Le)}function ge(Se){return(0,te.U2)("mypractices/record_detail.json",{id:Se})}function ie(Se,Le){return(0,te.U2)(`mypractices/${Se}/result.json`,{mode:Le})}function ue(Se,Le){return(0,te.v_)(`mypractices/${Se}/add_notes.json`,Le)}function ce(Se,Le){return(0,te.v_)(`mypractices/${Se}/restore_initial_code.json`,Le)}function me(Se,Le){return(0,te.v_)(`mypractices/${Se}/sync_code.json`,Le)}function se(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_code.json`,Le)}function pe(Se){return(0,te.v_)(`mypractices/${Se}/initial_codes.json`)}function oe(Se,Le){return(0,te.v_)(`discusses/${Se}/plus.json`,Le)}function ne(Se){return(0,te.U2)("practices/practices_list.json",Se)}function a(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles`,Le)}function y(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles`,Le)}function E(Se,Le){return(0,te.gz)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function b(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/edit`,Le)}function x(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function z(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/set_authority_or_excellent`,Le)}function re(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/praise_or_treads`,Le)}function le(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/hide`)}function de(Se,Le){return(0,te.IV)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function ve(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_practice_time_sum`,Le)}},83554:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return oe}});var te=ee(59301),fe=ee(8591),be=ee(6848),ye=ee(71418),he=ee(95237),ge=ee(43604),ie=ee(58421),ue=ee(3113),ce=ee(96565),me=ee(38147),se=ee(6339),pe=(a,y,E)=>new Promise((b,x)=>{var z=de=>{try{le(E.next(de))}catch(ve){x(ve)}},re=de=>{try{le(E.throw(de))}catch(ve){x(ve)}},le=de=>de.done?b(de.value):Promise.resolve(de.value).then(z,re);le((E=E.apply(a,y)).next())}),oe=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,te.useState)(""),[re,le]=(0,te.useState)(!1);function de(Se){z(Se)}function ve(){if(!x){fe.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,te.useEffect)(()=>{y!=a&&le(!1)},[y]),te.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},te.createElement(ce.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:de,extraUse:b&&te.createElement(be.Z,{color:"#fff",open:re,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:re,activeDiscussIndex:y,onChange:de,setIsOpen:le}),overlayStyle:{maxWidth:600}},te.createElement("a",{title:re?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>le(!re)},te.createElement("i",{className:"iconfont icon-dianzan11"})))}),te.createElement("a",{onClick:ve,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,te.useState)(!1),[b,x]=(0,te.useState)([]),[z,re]=(0,te.useState)(1);(0,te.useEffect)(()=>{a!=null&&a.isOpen?le():(re(1),x([]))},[a==null?void 0:a.isOpen]);const le=()=>pe(void 0,null,function*(){E(!0);const de=yield(0,me.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(de==null?void 0:de.status)==0&&x(de==null?void 0:de.answer),E(!1)});return te.createElement(ye.Z,{spinning:y},te.createElement("div",{style:{color:"#000"}},te.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),te.createElement(he.Z,{justify:"end",align:"middle"},te.createElement(ge.Z,null,te.createElement(ie.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:de=>{re(de)}})),te.createElement(ge.Z,null,te.createElement(ue.ZP,{onClick:()=>pe(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[z-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},84056:function(ft,Ke,ee){"use strict";ee.d(Ke,{BU:function(){return fe},Dj:function(){return te},gH:function(){return be},vp:function(){return ye}});function te(he){try{he.mozRequestFullScreen?he.mozRequestFullScreen():he.webkitRequestFullScreen&&he.webkitRequestFullScreen()}catch(ge){console.log(ge,":e")}}function fe(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const be=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ye(){var he=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ge=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",he),window.isFullScreen?window.isFullScreen:he!=null}},42926:function(ft,Ke,ee){"use strict";ee.d(Ke,{G:function(){return he},t:function(){return ye}});var te=ee(7062),fe=ee.n(te);const be=null;function ye(ge,ie){let ue=fe().get("__ec");ue||(ue={}),ue[ge]=ie,fe().set("__ec",ue)}function he(ge,ie){let ue=fe().get("__ec");return ue?ue[ge]===void 0?ie:ue[ge]:ie}},73217:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return $r}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ae,_e){return ae.__proto__=_e,ae},Object.assign=Object.assign||function(ae){if(ae==null)throw new TypeError("Cannot convert undefined or null to object");let _e=Object(ae);for(let Pe=1;Pe<arguments.length;Pe++){let Ie=arguments[Pe];if(Ie!=null)for(let ke in Ie)Ie.hasOwnProperty(ke)&&(_e[ke]=Ie[ke])}return _e},typeof self.Promise!="function"&&ee(3867).polyfill()}}te.install();var fe=te,be=ee(86204),ye=ee.n(be);class he{static e(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","error",Pe),he.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","info",Pe),he.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","warn",Pe),he.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","debug",Pe),he.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","verbose",Pe),he.ENABLE_VERBOSE&&console.log(Pe)}}he.GLOBAL_TAG="flv.js",he.FORCE_GLOBAL_TAG=!1,he.ENABLE_ERROR=!0,he.ENABLE_INFO=!0,he.ENABLE_WARN=!0,he.ENABLE_DEBUG=!0,he.ENABLE_VERBOSE=!0,he.ENABLE_CALLBACK=!1,he.emitter=new(ye());var ge=he;class ie{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(ae){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ae,this._totalBytes+=ae):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ae,this._totalBytes+=ae):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ae,this._totalBytes+=ae,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ae=(this._now()-this._lastCheckpoint)/1e3;return ae==0&&(ae=1),this._intervalBytes/ae/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ae=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ae/1024}}var ue=ie;class ce{constructor(ae){this._message=ae}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends ce{constructor(ae){super(ae)}get name(){return"IllegalStateException"}}class se extends ce{constructor(ae){super(ae)}get name(){return"InvalidArgumentException"}}class pe extends ce{constructor(ae){super(ae)}get name(){return"NotImplementedException"}}const oe={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class a{constructor(ae){this._type=ae||"undefined",this._status=oe.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=oe.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===oe.kConnecting||this._status===oe.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(ae){this._onContentLengthKnown=ae}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ae){this._onURLRedirect=ae}get onDataArrival(){return this._onDataArrival}set onDataArrival(ae){this._onDataArrival=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onComplete(){return this._onComplete}set onComplete(ae){this._onComplete=ae}open(ae,_e){throw new pe("Unimplemented abstract function!")}abort(){throw new pe("Unimplemented abstract function!")}}let y={};function E(){let Wt=self.navigator.userAgent.toLowerCase(),ae=/(edge)\/([\w.]+)/.exec(Wt)||/(opr)[\/]([\w.]+)/.exec(Wt)||/(chrome)[ \/]([\w.]+)/.exec(Wt)||/(iemobile)[\/]([\w.]+)/.exec(Wt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Wt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Wt)||/(webkit)[ \/]([\w.]+)/.exec(Wt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Wt)||/(msie) ([\w.]+)/.exec(Wt)||Wt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Wt)||Wt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Wt)||[],_e=/(ipad)/.exec(Wt)||/(ipod)/.exec(Wt)||/(windows phone)/.exec(Wt)||/(iphone)/.exec(Wt)||/(kindle)/.exec(Wt)||/(android)/.exec(Wt)||/(windows)/.exec(Wt)||/(mac)/.exec(Wt)||/(linux)/.exec(Wt)||/(cros)/.exec(Wt)||[],Pe={browser:ae[5]||ae[3]||ae[1]||"",version:ae[2]||ae[4]||"0",majorVersion:ae[4]||ae[2]||"0",platform:_e[0]||""},Ie={};if(Pe.browser){Ie[Pe.browser]=!0;let ke=Pe.majorVersion.split(".");Ie.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},ke.length>1&&(Ie.version.minor=parseInt(ke[1],10)),ke.length>2&&(Ie.version.build=parseInt(ke[2],10))}if(Pe.platform&&(Ie[Pe.platform]=!0),(Ie.chrome||Ie.opr||Ie.safari)&&(Ie.webkit=!0),Ie.rv||Ie.iemobile){Ie.rv&&delete Ie.rv;let ke="msie";Pe.browser=ke,Ie[ke]=!0}if(Ie.edge){delete Ie.edge;let ke="msedge";Pe.browser=ke,Ie[ke]=!0}if(Ie.opr){let ke="opera";Pe.browser=ke,Ie[ke]=!0}if(Ie.safari&&Ie.android){let ke="android";Pe.browser=ke,Ie[ke]=!0}Ie.name=Pe.browser,Ie.platform=Pe.platform;for(let ke in y)y.hasOwnProperty(ke)&&delete y[ke];Object.assign(y,Ie)}E();var b=y;class x extends a{static isSupported(){try{let ae=b.msedge&&b.version.minor>=15048,_e=b.msedge?ae:!0;return self.fetch&&self.ReadableStream&&_e}catch(ae){return!1}}constructor(ae,_e){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ae,this._config=_e,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ae,_e){this._dataSource=ae,this._range=_e;let Pe=ae.url;this._config.reuseRedirectedURL&&ae.redirectedURL!=null&&(Pe=ae.redirectedURL);let Ie=this._seekHandler.getConfig(Pe,_e),ke=new self.Headers;if(typeof Ie.headers=="object"){let vt=Ie.headers;for(let Qt in vt)vt.hasOwnProperty(Qt)&&ke.append(Qt,vt[Qt])}let et={method:"GET",headers:ke,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let vt in this._config.headers)ke.append(vt,this._config.headers[vt]);ae.cors===!1&&(et.mode="same-origin"),ae.withCredentials&&(et.credentials="include"),ae.referrerPolicy&&(et.referrerPolicy=ae.referrerPolicy),this._status=oe.kConnecting,self.fetch(Ie.url,et).then(vt=>{if(this._requestAbort){this._requestAbort=!1,this._status=oe.kIdle;return}if(vt.ok&&vt.status>=200&&vt.status<=299){if(vt.url!==Ie.url&&this._onURLRedirect){let Ut=this._seekHandler.removeURLParameters(vt.url);this._onURLRedirect(Ut)}let Qt=vt.headers.get("Content-Length");return Qt!=null&&(this._contentLength=parseInt(Qt),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,vt.body.getReader())}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:vt.status,msg:vt.statusText});else throw new ce("FetchStreamLoader: Http code invalid, "+vt.status+" "+vt.statusText)}).catch(vt=>{if(this._status=oe.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:vt.message});else throw vt})}abort(){this._requestAbort=!0}_pump(ae){return ae.read().then(_e=>{if(_e.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=oe.kError;let Pe=ne.EARLY_EOF,Ie={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,Ie);else throw new ce(Ie.msg)}else this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=oe.kComplete,ae.cancel();this._status=oe.kBuffering;let Pe=_e.value.buffer,Ie=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,Ie,this._receivedLength),this._pump(ae)}}).catch(_e=>{if(_e.code===11&&b.msedge)return;this._status=oe.kError;let Pe=0,Ie=null;if((_e.code===19||_e.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,Ie={code:_e.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,Ie={code:_e.code,msg:_e.message}),this._onError)this._onError(Pe,Ie);else throw new ce(Ie.msg)})}}var z=x;class re extends a{static isSupported(){try{let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="moz-chunked-arraybuffer",ae.responseType==="moz-chunked-arraybuffer"}catch(ae){return ge.w("MozChunkedLoader",ae.message),!1}}constructor(ae,_e){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ae,this._config=_e,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(ae,_e){this._dataSource=ae,this._range=_e;let Pe=ae.url;this._config.reuseRedirectedURL&&ae.redirectedURL!=null&&(Pe=ae.redirectedURL);let Ie=this._seekHandler.getConfig(Pe,_e);this._requestURL=Ie.url;let ke=this._xhr=new XMLHttpRequest;if(ke.open("GET",Ie.url,!0),ke.responseType="moz-chunked-arraybuffer",ke.onreadystatechange=this._onReadyStateChange.bind(this),ke.onprogress=this._onProgress.bind(this),ke.onloadend=this._onLoadEnd.bind(this),ke.onerror=this._onXhrError.bind(this),ae.withCredentials&&(ke.withCredentials=!0),typeof Ie.headers=="object"){let et=Ie.headers;for(let vt in et)et.hasOwnProperty(vt)&&ke.setRequestHeader(vt,et[vt])}if(typeof this._config.headers=="object"){let et=this._config.headers;for(let vt in et)et.hasOwnProperty(vt)&&ke.setRequestHeader(vt,et[vt])}this._status=oe.kConnecting,ke.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=oe.kComplete}_onReadyStateChange(ae){let _e=ae.target;if(_e.readyState===2){if(_e.responseURL!=null&&_e.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(_e.responseURL);this._onURLRedirect(Pe)}if(_e.status!==0&&(_e.status<200||_e.status>299))if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:_e.status,msg:_e.statusText});else throw new ce("MozChunkedLoader: Http code invalid, "+_e.status+" "+_e.statusText);else this._status=oe.kBuffering}}_onProgress(ae){if(this._status===oe.kError)return;this._contentLength===null&&ae.total!==null&&ae.total!==0&&(this._contentLength=ae.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let _e=ae.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=_e.byteLength,this._onDataArrival&&this._onDataArrival(_e,Pe,this._receivedLength)}_onLoadEnd(ae){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===oe.kError)return;this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(ae){this._status=oe.kError;let _e=0,Pe=null;if(this._contentLength&&ae.loaded<this._contentLength?(_e=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(_e=ne.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new ce(Pe.msg)}}var le=re;class de extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="ms-stream",ae.responseType==="ms-stream"}catch(ae){return Log.w("MSStreamLoader",ae.message),!1}}constructor(ae,_e){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ae,this._config=_e,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(ae,_e){this._internalOpen(ae,_e,!1)}_internalOpen(ae,_e,Pe){this._dataSource=ae,Pe?this._currentRange=_e:this._totalRange=_e;let Ie=ae.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ie=this._currentRedirectedURL:ae.redirectedURL!=null&&(Ie=ae.redirectedURL));let ke=this._seekHandler.getConfig(Ie,_e);this._currentRequestURL=ke.url;let et=this._reader=new self.MSStreamReader;et.onprogress=this._msrOnProgress.bind(this),et.onload=this._msrOnLoad.bind(this),et.onerror=this._msrOnError.bind(this);let vt=this._xhr=new XMLHttpRequest;if(vt.open("GET",ke.url,!0),vt.responseType="ms-stream",vt.onreadystatechange=this._xhrOnReadyStateChange.bind(this),vt.onerror=this._xhrOnError.bind(this),ae.withCredentials&&(vt.withCredentials=!0),typeof ke.headers=="object"){let Qt=ke.headers;for(let Ut in Qt)Qt.hasOwnProperty(Ut)&&vt.setRequestHeader(Ut,Qt[Ut])}if(typeof this._config.headers=="object"){let Qt=this._config.headers;for(let Ut in Qt)Qt.hasOwnProperty(Ut)&&vt.setRequestHeader(Ut,Qt[Ut])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,vt.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(ae){let _e=ae.target;if(_e.readyState===2)if(_e.status>=200&&_e.status<=299){if(this._status=LoaderStatus.kBuffering,_e.responseURL!=null){let Ie=this._seekHandler.removeURLParameters(_e.responseURL);_e.responseURL!==this._currentRequestURL&&Ie!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ie,this._onURLRedirect&&this._onURLRedirect(Ie))}let Pe=_e.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Ie=parseInt(Pe);Ie>0&&(this._contentLength=Ie,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:_e.status,msg:_e.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+_e.status+" "+_e.statusText);else if(_e.readyState===3&&_e.status>=200&&_e.status<=299){this._status=LoaderStatus.kBuffering;let Pe=_e.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ae){this._status=LoaderStatus.kError;let _e=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type};if(this._onError)this._onError(_e,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ae){let Pe=ae.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Ie=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let ke=this._totalRange.from+this._receivedLength;this._receivedLength+=Ie.byteLength,this._onDataArrival&&this._onDataArrival(Ie,ke,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${ke+Ie.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ae={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ae,!0)}}_msrOnLoad(ae){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ae){this._status=LoaderStatus.kError;let _e=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(_e=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(_e=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new RuntimeException(Pe.msg)}}var ve=null;class Se extends a{static isSupported(){try{let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="arraybuffer",ae.responseType==="arraybuffer"}catch(ae){return ge.w("RangeLoader",ae.message),!1}}constructor(ae,_e){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ae,this._config=_e,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new ue,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(ae,_e){this._dataSource=ae,this._range=_e,this._status=oe.kConnecting;let Pe=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(Pe=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!Pe?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let ae=this._currentChunkSizeKB*1024,_e=this._range.from+this._receivedLength,Pe=_e+ae;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:_e,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ae,_e){this._lastTimeLoaded=0;let Pe=ae.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ae.redirectedURL!=null&&(Pe=ae.redirectedURL));let Ie=this._seekHandler.getConfig(Pe,_e);this._currentRequestURL=Ie.url;let ke=this._xhr=new XMLHttpRequest;if(ke.open("GET",Ie.url,!0),ke.responseType="arraybuffer",ke.onreadystatechange=this._onReadyStateChange.bind(this),ke.onprogress=this._onProgress.bind(this),ke.onload=this._onLoad.bind(this),ke.onerror=this._onXhrError.bind(this),ae.withCredentials&&(ke.withCredentials=!0),typeof Ie.headers=="object"){let et=Ie.headers;for(let vt in et)et.hasOwnProperty(vt)&&ke.setRequestHeader(vt,et[vt])}if(typeof this._config.headers=="object"){let et=this._config.headers;for(let vt in et)et.hasOwnProperty(vt)&&ke.setRequestHeader(vt,et[vt])}ke.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=oe.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(ae){let _e=ae.target;if(_e.readyState===2){if(_e.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(_e.responseURL);_e.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(_e.status>=200&&_e.status<=299){if(this._waitForTotalLength)return;this._status=oe.kBuffering}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:_e.status,msg:_e.statusText});else throw new ce("RangeLoader: Http code invalid, "+_e.status+" "+_e.statusText)}}_onProgress(ae){if(this._status===oe.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let Ie=ae.total;this._internalAbort(),Ie!=null&Ie!==0&&(this._totalLength=Ie)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Pe){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let _e=ae.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ae.loaded,this._speedSampler.addBytes(_e)}_normalizeSpeed(ae){let _e=this._chunkSizeKBList,Pe=_e.length-1,Ie=0,ke=0,et=Pe;if(ae<_e[0])return _e[0];for(;ke<=et;){if(Ie=ke+Math.floor((et-ke)/2),Ie===Pe||ae>=_e[Ie]&&ae<_e[Ie+1])return _e[Ie];_e[Ie]<ae?ke=Ie+1:et=Ie-1}}_onLoad(ae){if(this._status===oe.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let _e=this._speedSampler.lastSecondKBps;if(_e===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(_e=this._speedSampler.currentKBps)),_e!==0){let et=this._normalizeSpeed(_e);this._currentSpeedNormalized!==et&&(this._currentSpeedNormalized=et,this._currentChunkSizeKB=et)}let Pe=ae.target.response,Ie=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let ke=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():ke=!0,this._onDataArrival&&this._onDataArrival(Pe,Ie,this._receivedLength),ke&&(this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ae){this._status=oe.kError;let _e=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(_e=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(_e=ne.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new ce(Pe.msg)}}var Le=Se;class Ee extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ae){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(ae){try{let _e=this._ws=new self.WebSocket(ae.url);_e.binaryType="arraybuffer",_e.onopen=this._onWebSocketOpen.bind(this),_e.onclose=this._onWebSocketClose.bind(this),_e.onmessage=this._onWebSocketMessage.bind(this),_e.onerror=this._onWebSocketError.bind(this),this._status=oe.kConnecting}catch(_e){this._status=oe.kError;let Pe={code:_e.code,msg:_e.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new ce(Pe.msg)}}abort(){let ae=this._ws;ae&&(ae.readyState===0||ae.readyState===1)&&(this._requestAbort=!0,ae.close()),this._ws=null,this._status=oe.kComplete}_onWebSocketOpen(ae){this._status=oe.kBuffering}_onWebSocketClose(ae){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=oe.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ae){if(ae.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ae.data);else if(ae.data instanceof Blob){let _e=new FileReader;_e.onload=()=>{this._dispatchArrayBuffer(_e.result)},_e.readAsArrayBuffer(ae.data)}else{this._status=oe.kError;let _e={code:-1,msg:"Unsupported WebSocket message type: "+ae.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,_e);else throw new ce(_e.msg)}}_dispatchArrayBuffer(ae){let _e=ae,Pe=this._receivedLength;this._receivedLength+=_e.byteLength,this._onDataArrival&&this._onDataArrival(_e,Pe,this._receivedLength)}_onWebSocketError(ae){this._status=oe.kError;let _e={code:ae.code,msg:ae.message};if(this._onError)this._onError(ne.EXCEPTION,_e);else throw new ce(_e.msg)}}var Fe=Ee;class xe{constructor(ae){this._zeroStart=ae||!1}getConfig(ae,_e){let Pe={};if(_e.from!==0||_e.to!==-1){let Ie;_e.to!==-1?Ie=`bytes=${_e.from.toString()}-${_e.to.toString()}`:Ie=`bytes=${_e.from.toString()}-`,Pe.Range=Ie}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ae,headers:Pe}}removeURLParameters(ae){return ae}}var lt=xe;class Ye{constructor(ae,_e){this._startName=ae,this._endName=_e}getConfig(ae,_e){let Pe=ae;if(_e.from!==0||_e.to!==-1){let Ie=!0;Pe.indexOf("?")===-1&&(Pe+="?",Ie=!1),Ie&&(Pe+="&"),Pe+=`${this._startName}=${_e.from.toString()}`,_e.to!==-1&&(Pe+=`&${this._endName}=${_e.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ae){let _e=ae.split("?")[0],Pe,Ie=ae.indexOf("?");Ie!==-1&&(Pe=ae.substring(Ie+1));let ke="";if(Pe!=null&&Pe.length>0){let et=Pe.split("&");for(let vt=0;vt<et.length;vt++){let Qt=et[vt].split("="),Ut=vt>0;Qt[0]!==this._startName&&Qt[0]!==this._endName&&(Ut&&(ke+="&"),ke+=et[vt])}}return ke.length===0?_e:_e+"?"+ke}}var ht=Ye;class we{constructor(ae,_e,Pe){this.TAG="IOController",this._config=_e,this._extraData=Pe,this._stashInitialSize=1024*384,_e.stashInitialSize!=null&&_e.stashInitialSize>0&&(this._stashInitialSize=_e.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,_e.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ae,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ae.url),this._refTotalLength=ae.filesize?ae.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new ue,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(ae){this._extraData=ae}get onDataArrival(){return this._onDataArrival}set onDataArrival(ae){this._onDataArrival=ae}get onSeeked(){return this._onSeeked}set onSeeked(ae){this._onSeeked=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onComplete(){return this._onComplete}set onComplete(ae){this._onComplete=ae}get onRedirect(){return this._onRedirect}set onRedirect(ae){this._onRedirect=ae}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ae){this._onRecoveredEarlyEof=ae}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===Le?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let ae=this._config;if(ae.seekType==="range")this._seekHandler=new lt(this._config.rangeLoadZeroStart);else if(ae.seekType==="param"){let _e=ae.seekParamStart||"bstart",Pe=ae.seekParamEnd||"bend";this._seekHandler=new ht(_e,Pe)}else if(ae.seekType==="custom"){if(typeof ae.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ae.customSeekHandler}else throw new se(`Invalid seekType in config: ${ae.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Fe;else if(z.isSupported())this._loaderClass=z;else if(le.isSupported())this._loaderClass=le;else if(Le.isSupported())this._loaderClass=Le;else throw new ce("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(ae){this._currentRange={from:0,to:-1},ae&&(this._currentRange.from=ae),this._speedSampler.reset(),ae||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let ae=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ae,!0)}}seek(ae){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ae,!0)}_internalSeek(ae,_e){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(_e),this._loader.destroy(),this._loader=null;let Pe={from:ae,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}updateUrl(ae){if(!ae||typeof ae!="string"||ae.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ae}_expandBuffer(ae){let _e=this._stashSize;for(;_e+1024*1024*1<ae;)_e*=2;if(_e+=1024*1024*1,_e===this._bufferSize)return;let Pe=new ArrayBuffer(_e);if(this._stashUsed>0){let Ie=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,_e).set(Ie,0)}this._stashBuffer=Pe,this._bufferSize=_e}_normalizeSpeed(ae){let _e=this._speedNormalizeList,Pe=_e.length-1,Ie=0,ke=0,et=Pe;if(ae<_e[0])return _e[0];for(;ke<=et;){if(Ie=ke+Math.floor((et-ke)/2),Ie===Pe||ae>=_e[Ie]&&ae<_e[Ie+1])return _e[Ie];_e[Ie]<ae?ke=Ie+1:et=Ie-1}}_adjustStashSize(ae){let _e=0;this._config.isLive||ae<512?_e=ae:ae>=512&&ae<=1024?_e=Math.floor(ae*1.5):_e=ae*2,_e>8192&&(_e=8192);let Pe=_e*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=_e*1024}_dispatchChunks(ae,_e){return this._currentRange.to=_e+ae.byteLength-1,this._onDataArrival(ae,_e)}_onURLRedirect(ae){this._redirectedURL=ae,this._onRedirect&&this._onRedirect(ae)}_onContentLengthKnown(ae){ae&&this._fullRequestFlag&&(this._totalLength=ae,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ae,_e,Pe){if(!this._onDataArrival)throw new me("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(ae.byteLength);let Ie=this._speedSampler.lastSecondKBps;if(Ie!==0){let ke=this._normalizeSpeed(Ie);this._speedNormalized!==ke&&(this._speedNormalized=ke,this._adjustStashSize(ke))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=_e),this._stashUsed+ae.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength;else{let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let et=this._stashBuffer.slice(0,this._stashUsed),vt=this._dispatchChunks(et,this._stashByteStart);if(vt<et.byteLength){if(vt>0){let Qt=new Uint8Array(et,vt);ke.set(Qt,0),this._stashUsed=Qt.byteLength,this._stashByteStart+=vt}}else this._stashUsed=0,this._stashByteStart+=vt;this._stashUsed+ae.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ae.byteLength),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength}else{let et=this._dispatchChunks(ae,_e);if(et<ae.byteLength){let vt=ae.byteLength-et;vt>this._bufferSize&&(this._expandBuffer(vt),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ae,et),0),this._stashUsed+=vt,this._stashByteStart=_e+et}}}else if(this._stashUsed===0){let ke=this._dispatchChunks(ae,_e);if(ke<ae.byteLength){let et=ae.byteLength-ke;et>this._bufferSize&&this._expandBuffer(et),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ae,ke),0),this._stashUsed+=et,this._stashByteStart=_e+ke}}else{this._stashUsed+ae.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ae.byteLength);let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize);ke.set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength;let et=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(et<this._stashUsed&&et>0){let vt=new Uint8Array(this._stashBuffer,et);ke.set(vt,0)}this._stashUsed-=et,this._stashByteStart+=et}}_flushStashBuffer(ae){if(this._stashUsed>0){let _e=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(_e,this._stashByteStart),Ie=_e.byteLength-Pe;if(Pe<_e.byteLength)if(ae)ge.w(this.TAG,`${Ie} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize),et=new Uint8Array(_e,Pe);ke.set(et,0),this._stashUsed=et.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Ie}return 0}_onLoaderComplete(ae,_e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ae,_e){switch(ge.e(this.TAG,`Loader error, code = ${_e.code}, msg = ${_e.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ae=ne.UNRECOVERABLE_EARLY_EOF),ae){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(ge.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}ae=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(ae,_e);else throw new ce("IOException: "+_e.msg)}}var je=we;const He={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Je(){return Object.assign({},He)}class $e{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ae=new je({},Je()),_e=ae.loaderType;return ae.destroy(),_e=="fetch-stream-loader"||_e=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ae=new je({},Je()),_e=ae.loaderType;return ae.destroy(),_e}static supportNativeMediaPlayback(ae){$e.videoElement==null&&($e.videoElement=window.document.createElement("video"));let _e=$e.videoElement.canPlayType(ae);return _e==="probably"||_e=="maybe"}static getFeatureList(){let ae={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ae.mseFlvPlayback=$e.supportMSEH264Playback(),ae.networkStreamIO=$e.supportNetworkStreamIO(),ae.networkLoaderName=$e.getNetworkLoaderTypeName(),ae.mseLiveFlvPlayback=ae.mseFlvPlayback&&ae.networkStreamIO,ae.nativeMP4H264Playback=$e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ae.nativeWebmVP8Playback=$e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ae.nativeWebmVP9Playback=$e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ae}}var mt=$e,At={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class Nt{static get forceGlobalTag(){return ge.FORCE_GLOBAL_TAG}static set forceGlobalTag(ae){ge.FORCE_GLOBAL_TAG=ae,Nt._notifyChange()}static get globalTag(){return ge.GLOBAL_TAG}static set globalTag(ae){ge.GLOBAL_TAG=ae,Nt._notifyChange()}static get enableAll(){return ge.ENABLE_VERBOSE&&ge.ENABLE_DEBUG&&ge.ENABLE_INFO&&ge.ENABLE_WARN&&ge.ENABLE_ERROR}static set enableAll(ae){ge.ENABLE_VERBOSE=ae,ge.ENABLE_DEBUG=ae,ge.ENABLE_INFO=ae,ge.ENABLE_WARN=ae,ge.ENABLE_ERROR=ae,Nt._notifyChange()}static get enableDebug(){return ge.ENABLE_DEBUG}static set enableDebug(ae){ge.ENABLE_DEBUG=ae,Nt._notifyChange()}static get enableVerbose(){return ge.ENABLE_VERBOSE}static set enableVerbose(ae){ge.ENABLE_VERBOSE=ae,Nt._notifyChange()}static get enableInfo(){return ge.ENABLE_INFO}static set enableInfo(ae){ge.ENABLE_INFO=ae,Nt._notifyChange()}static get enableWarn(){return ge.ENABLE_WARN}static set enableWarn(ae){ge.ENABLE_WARN=ae,Nt._notifyChange()}static get enableError(){return ge.ENABLE_ERROR}static set enableError(ae){ge.ENABLE_ERROR=ae,Nt._notifyChange()}static getConfig(){return{globalTag:ge.GLOBAL_TAG,forceGlobalTag:ge.FORCE_GLOBAL_TAG,enableVerbose:ge.ENABLE_VERBOSE,enableDebug:ge.ENABLE_DEBUG,enableInfo:ge.ENABLE_INFO,enableWarn:ge.ENABLE_WARN,enableError:ge.ENABLE_ERROR,enableCallback:ge.ENABLE_CALLBACK}}static applyConfig(ae){ge.GLOBAL_TAG=ae.globalTag,ge.FORCE_GLOBAL_TAG=ae.forceGlobalTag,ge.ENABLE_VERBOSE=ae.enableVerbose,ge.ENABLE_DEBUG=ae.enableDebug,ge.ENABLE_INFO=ae.enableInfo,ge.ENABLE_WARN=ae.enableWarn,ge.ENABLE_ERROR=ae.enableError,ge.ENABLE_CALLBACK=ae.enableCallback}static _notifyChange(){let ae=Nt.emitter;if(ae.listenerCount("change")>0){let _e=Nt.getConfig();ae.emit("change",_e)}}static registerListener(ae){Nt.emitter.addListener("change",ae)}static removeListener(ae){Nt.emitter.removeListener("change",ae)}static addLogListener(ae){ge.emitter.addListener("log",ae),ge.emitter.listenerCount("log")>0&&(ge.ENABLE_CALLBACK=!0,Nt._notifyChange())}static removeLogListener(ae){ge.emitter.removeListener("log",ae),ge.emitter.listenerCount("log")===0&&(ge.ENABLE_CALLBACK=!1,Nt._notifyChange())}}Nt.emitter=new(ye());var rt=Nt;class Xe{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let ae=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,_e=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ae&&_e}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ae){if(this.keyframesIndex==null)return null;let _e=this.keyframesIndex,Pe=this._search(_e.times,ae);return{index:Pe,milliseconds:_e.times[Pe],fileposition:_e.filepositions[Pe]}}_search(ae,_e){let Pe=0,Ie=ae.length-1,ke=0,et=0,vt=Ie;for(_e<ae[0]&&(Pe=0,et=vt+1);et<=vt;)if(ke=et+Math.floor((vt-et)/2),ke===Ie||_e>=ae[ke]&&_e<ae[ke+1]){Pe=ke;break}else ae[ke]<_e?et=ke+1:vt=ke-1;return Pe}}var Ct=Xe;function Ht(Wt,ae,_e){let Pe=Wt;if(ae+_e<Pe.length){for(;_e--;)if((Pe[++ae]&192)!==128)return!1;return!0}else return!1}function Et(Wt){let ae=[],_e=Wt,Pe=0,Ie=Wt.length;for(;Pe<Ie;){if(_e[Pe]<128){ae.push(String.fromCharCode(_e[Pe])),++Pe;continue}else if(!(_e[Pe]<192)){if(_e[Pe]<224){if(Ht(_e,Pe,1)){let ke=(_e[Pe]&31)<<6|_e[Pe+1]&63;if(ke>=128){ae.push(String.fromCharCode(ke&65535)),Pe+=2;continue}}}else if(_e[Pe]<240){if(Ht(_e,Pe,2)){let ke=(_e[Pe]&15)<<12|(_e[Pe+1]&63)<<6|_e[Pe+2]&63;if(ke>=2048&&(ke&63488)!==55296){ae.push(String.fromCharCode(ke&65535)),Pe+=3;continue}}}else if(_e[Pe]<248&&Ht(_e,Pe,3)){let ke=(_e[Pe]&7)<<18|(_e[Pe+1]&63)<<12|(_e[Pe+2]&63)<<6|_e[Pe+3]&63;if(ke>65536&&ke<1114112){ke-=65536,ae.push(String.fromCharCode(ke>>>10|55296)),ae.push(String.fromCharCode(ke&1023|56320)),Pe+=4;continue}}}ae.push("\uFFFD"),++Pe}return ae.join("")}var rn=Et;let Ze=function(){let Wt=new ArrayBuffer(2);return new DataView(Wt).setInt16(0,256,!0),new Int16Array(Wt)[0]===256}();class St{static parseScriptData(ae,_e,Pe){let Ie={};try{let ke=St.parseValue(ae,_e,Pe),et=St.parseValue(ae,_e+ke.size,Pe-ke.size);Ie[ke.data]=et.data}catch(ke){ge.e("AMF",ke.toString())}return Ie}static parseObject(ae,_e,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let Ie=St.parseString(ae,_e,Pe),ke=St.parseValue(ae,_e+Ie.size,Pe-Ie.size),et=ke.objectEnd;return{data:{name:Ie.data,value:ke.data},size:Ie.size+ke.size,objectEnd:et}}static parseVariable(ae,_e,Pe){return St.parseObject(ae,_e,Pe)}static parseString(ae,_e,Pe){if(Pe<2)throw new me("Data not enough when parse String");let ke=new DataView(ae,_e,Pe).getUint16(0,!Ze),et;return ke>0?et=rn(new Uint8Array(ae,_e+2,ke)):et="",{data:et,size:2+ke}}static parseLongString(ae,_e,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let ke=new DataView(ae,_e,Pe).getUint32(0,!Ze),et;return ke>0?et=rn(new Uint8Array(ae,_e+4,ke)):et="",{data:et,size:4+ke}}static parseDate(ae,_e,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let Ie=new DataView(ae,_e,Pe),ke=Ie.getFloat64(0,!Ze),et=Ie.getInt16(8,!Ze);return ke+=et*60*1e3,{data:new Date(ke),size:10}}static parseValue(ae,_e,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let Ie=new DataView(ae,_e,Pe),ke=1,et=Ie.getUint8(0),vt,Qt=!1;try{switch(et){case 0:vt=Ie.getFloat64(1,!Ze),ke+=8;break;case 1:{vt=!!Ie.getUint8(1),ke+=1;break}case 2:{let Ut=St.parseString(ae,_e+1,Pe-1);vt=Ut.data,ke+=Ut.size;break}case 3:{vt={};let Ut=0;for((Ie.getUint32(Pe-4,!Ze)&16777215)===9&&(Ut=3);ke<Pe-4;){let yt=St.parseObject(ae,_e+ke,Pe-ke-Ut);if(yt.objectEnd)break;vt[yt.data.name]=yt.data.value,ke+=yt.size}ke<=Pe-3&&(Ie.getUint32(ke-1,!Ze)&16777215)===9&&(ke+=3);break}case 8:{vt={},ke+=4;let Ut=0;for((Ie.getUint32(Pe-4,!Ze)&16777215)===9&&(Ut=3);ke<Pe-8;){let yt=St.parseVariable(ae,_e+ke,Pe-ke-Ut);if(yt.objectEnd)break;vt[yt.data.name]=yt.data.value,ke+=yt.size}ke<=Pe-3&&(Ie.getUint32(ke-1,!Ze)&16777215)===9&&(ke+=3);break}case 9:vt=void 0,ke=1,Qt=!0;break;case 10:{vt=[];let Ut=Ie.getUint32(1,!Ze);ke+=4;for(let yt=0;yt<Ut;yt++){let pt=St.parseValue(ae,_e+ke,Pe-ke);vt.push(pt.data),ke+=pt.size}break}case 11:{let Ut=St.parseDate(ae,_e+1,Pe-1);vt=Ut.data,ke+=Ut.size;break}case 12:{let Ut=St.parseString(ae,_e+1,Pe-1);vt=Ut.data,ke+=Ut.size;break}default:ke=Pe,ge.w("AMF","Unsupported AMF value type "+et)}}catch(Ut){ge.e("AMF",Ut.toString())}return{data:vt,size:ke,objectEnd:Qt}}}var Lt=St;class nn{constructor(ae){this.TAG="ExpGolomb",this._buffer=ae,this._buffer_index=0,this._total_bytes=ae.byteLength,this._total_bits=ae.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ae=this._total_bytes-this._buffer_index;if(ae<=0)throw new me("ExpGolomb: _fillCurrentWord() but no bytes available");let _e=Math.min(4,ae),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+_e)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=_e,this._current_word_bits_left=_e*8}readBits(ae){if(ae>32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ae<=this._current_word_bits_left){let et=this._current_word>>>32-ae;return this._current_word<<=ae,this._current_word_bits_left-=ae,et}let _e=this._current_word_bits_left?this._current_word:0;_e=_e>>>32-this._current_word_bits_left;let Pe=ae-this._current_word_bits_left;this._fillCurrentWord();let Ie=Math.min(Pe,this._current_word_bits_left),ke=this._current_word>>>32-Ie;return this._current_word<<=Ie,this._current_word_bits_left-=Ie,_e=_e<<Ie|ke,_e}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ae;for(ae=0;ae<this._current_word_bits_left;ae++)if(this._current_word&2147483648>>>ae)return this._current_word<<=ae,this._current_word_bits_left-=ae,ae;return this._fillCurrentWord(),ae+this._skipLeadingZero()}readUEG(){let ae=this._skipLeadingZero();return this.readBits(ae+1)-1}readSEG(){let ae=this.readUEG();return ae&1?ae+1>>>1:-1*(ae>>>1)}}var Zt=nn;class at{static _ebsp2rbsp(ae){let _e=ae,Pe=_e.byteLength,Ie=new Uint8Array(Pe),ke=0;for(let et=0;et<Pe;et++)et>=2&&_e[et]===3&&_e[et-1]===0&&_e[et-2]===0||(Ie[ke]=_e[et],ke++);return new Uint8Array(Ie.buffer,0,ke)}static parseSPS(ae){let _e=at._ebsp2rbsp(ae),Pe=new Zt(_e);Pe.readByte();let Ie=Pe.readByte();Pe.readByte();let ke=Pe.readByte();Pe.readUEG();let et=at.getProfileString(Ie),vt=at.getLevelString(ke),Qt=1,Ut=420,yt=[0,420,422,444],pt=8;if((Ie===100||Ie===110||Ie===122||Ie===244||Ie===44||Ie===83||Ie===86||Ie===118||Ie===128||Ie===138||Ie===144)&&(Qt=Pe.readUEG(),Qt===3&&Pe.readBits(1),Qt<=3&&(Ut=yt[Qt]),pt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Cn=Qt!==3?8:12;for(let Pn=0;Pn<Cn;Pn++)Pe.readBool()&&(Pn<6?at._skipScalingList(Pe,16):at._skipScalingList(Pe,64))}Pe.readUEG();let Bt=Pe.readUEG();if(Bt===0)Pe.readUEG();else if(Bt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Cn=Pe.readUEG();for(let Pn=0;Pn<Cn;Pn++)Pe.readSEG()}let gt=Pe.readUEG();Pe.readBits(1);let zt=Pe.readUEG(),Vt=Pe.readUEG(),Rt=Pe.readBits(1);Rt===0&&Pe.readBits(1),Pe.readBits(1);let kt=0,Jt=0,un=0,Dn=0;Pe.readBool()&&(kt=Pe.readUEG(),Jt=Pe.readUEG(),un=Pe.readUEG(),Dn=Pe.readUEG());let Xn=1,pn=1,Rn=0,lr=!0,rr=0,$t=0;if(Pe.readBool()){if(Pe.readBool()){let Cn=Pe.readByte(),Pn=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],_r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Cn>0&&Cn<16?(Xn=Pn[Cn-1],pn=_r[Cn-1]):Cn===255&&(Xn=Pe.readByte()<<8|Pe.readByte(),pn=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){let Cn=Pe.readBits(32),Pn=Pe.readBits(32);lr=Pe.readBool(),rr=Pn,$t=Cn*2,Rn=rr/$t}}let qr=1;(Xn!==1||pn!==1)&&(qr=Xn/pn);let xr=0,Dr=0;if(Qt===0)xr=1,Dr=2-Rt;else{let Cn=Qt===3?1:2,Pn=Qt===1?2:1;xr=Cn,Dr=Pn*(2-Rt)}let Zr=(zt+1)*16,an=(2-Rt)*((Vt+1)*16);Zr-=(kt+Jt)*xr,an-=(un+Dn)*Dr;let bn=Math.ceil(Zr*qr);return Pe.destroy(),Pe=null,{profile_string:et,level_string:vt,bit_depth:pt,ref_frames:gt,chroma_format:Ut,chroma_format_string:at.getChromaFormatString(Ut),frame_rate:{fixed:lr,fps:Rn,fps_den:$t,fps_num:rr},sar_ratio:{width:Xn,height:pn},codec_size:{width:Zr,height:an},present_size:{width:bn,height:an}}}static _skipScalingList(ae,_e){let Pe=8,Ie=8,ke=0;for(let et=0;et<_e;et++)Ie!==0&&(ke=ae.readSEG(),Ie=(Pe+ke+256)%256),Pe=Ie===0?Pe:Ie}static getProfileString(ae){switch(ae){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(ae){return(ae/10).toFixed(1)}static getChromaFormatString(ae){switch(ae){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var dt=at,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function nt(Wt){return Wt>>>8&255|(Wt&255)<<8}function xt(Wt){return(Wt&4278190080)>>>24|(Wt&16711680)>>>8|(Wt&65280)<<8|(Wt&255)<<24}function Ae(Wt,ae){return Wt[ae]<<24|Wt[ae+1]<<16|Wt[ae+2]<<8|Wt[ae+3]}class Re{constructor(ae,_e){this.TAG="FLVDemuxer",this._config=_e,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ae.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ae.hasAudioTrack,this._hasVideo=ae.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(ae){let _e=new Uint8Array(ae),Pe={match:!1};if(_e[0]!==70||_e[1]!==76||_e[2]!==86||_e[3]!==1)return Pe;let Ie=(_e[4]&4)>>>2!==0,ke=(_e[4]&1)!==0,et=Ae(_e,5);return et<9?Pe:{match:!0,consumed:et,dataOffset:et,hasAudioTrack:Ie,hasVideoTrack:ke}}bindDataSource(ae){return ae.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ae){this._onTrackMetadata=ae}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ae){this._onMediaInfo=ae}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ae){this._onMetaDataArrived=ae}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ae){this._onScriptDataArrived=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ae){this._onDataAvailable=ae}get timestampBase(){return this._timestampBase}set timestampBase(ae){this._timestampBase=ae}get overridedDuration(){return this._duration}set overridedDuration(ae){this._durationOverrided=!0,this._duration=ae,this._mediaInfo.duration=ae}set overridedHasAudio(ae){this._hasAudioFlagOverrided=!0,this._hasAudio=ae,this._mediaInfo.hasAudio=ae}set overridedHasVideo(ae){this._hasVideoFlagOverrided=!0,this._hasVideo=ae,this._mediaInfo.hasVideo=ae}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ae,_e){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new me("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Ie=this._littleEndian;if(_e===0)if(ae.byteLength>13)Pe=Re.probe(ae).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,_e+Pe!==this._dataOffset&&ge.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ae,Pe).getUint32(0,!Ie)!==0&&ge.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<ae.byteLength;){this._dispatch=!0;let ke=new DataView(ae,Pe);if(Pe+11+4>ae.byteLength)break;let et=ke.getUint8(0),vt=ke.getUint32(0,!Ie)&16777215;if(Pe+11+vt+4>ae.byteLength)break;if(et!==8&&et!==9&&et!==18){ge.w(this.TAG,`Unsupported tag type ${et}, skipped`),Pe+=11+vt+4;continue}let Qt=ke.getUint8(4),Ut=ke.getUint8(5),yt=ke.getUint8(6),pt=ke.getUint8(7),Bt=yt|Ut<<8|Qt<<16|pt<<24;(ke.getUint32(7,!Ie)&16777215)!==0&&ge.w(this.TAG,"Meet tag which has StreamID != 0!");let zt=Pe+11;switch(et){case 8:this._parseAudioData(ae,zt,vt,Bt);break;case 9:this._parseVideoData(ae,zt,vt,Bt,_e+Pe);break;case 18:this._parseScriptData(ae,zt,vt);break}let Vt=ke.getUint32(11+vt,!Ie);Vt!==11+vt&&ge.w(this.TAG,`Invalid PrevTagSize ${Vt}`),Pe+=11+vt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ae,_e,Pe){let Ie=Lt.parseScriptData(ae,_e,Pe);if(Ie.hasOwnProperty("onMetaData")){if(Ie.onMetaData==null||typeof Ie.onMetaData!="object"){ge.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&ge.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ie;let ke=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ke)),typeof ke.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=ke.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof ke.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=ke.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof ke.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ke.audiodatarate),typeof ke.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ke.videodatarate),typeof ke.width=="number"&&(this._mediaInfo.width=ke.width),typeof ke.height=="number"&&(this._mediaInfo.height=ke.height),typeof ke.duration=="number"){if(!this._durationOverrided){let et=Math.floor(ke.duration*this._timescale);this._duration=et,this._mediaInfo.duration=et}}else this._mediaInfo.duration=0;if(typeof ke.framerate=="number"){let et=Math.floor(ke.framerate*1e3);if(et>0){let vt=et/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=vt,this._referenceFrameRate.fps_num=et,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=vt}}if(typeof ke.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let et=ke.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(et),ke.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ke,ge.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ie).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ie))}_parseKeyframesIndex(ae){let _e=[],Pe=[];for(let Ie=1;Ie<ae.times.length;Ie++){let ke=this._timestampBase+Math.floor(ae.times[Ie]*1e3);_e.push(ke),Pe.push(ae.filepositions[Ie])}return{times:_e,filepositions:Pe}}_parseAudioData(ae,_e,Pe,Ie){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let ke=this._littleEndian,vt=new DataView(ae,_e,Pe).getUint8(0),Qt=vt>>>4;if(Qt!==2&&Qt!==10){this._onError(Ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Qt);return}let Ut=0,yt=(vt&12)>>>2;if(yt>=0&&yt<=4)Ut=this._flvSoundRateTable[yt];else{this._onError(Ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+yt);return}let pt=(vt&2)>>>1,Bt=vt&1,gt=this._audioMetadata,zt=this._audioTrack;if(gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),gt=this._audioMetadata={},gt.type="audio",gt.id=zt.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Ut,gt.channelCount=Bt===0?1:2),Qt===10){let Vt=this._parseAACAudioData(ae,_e+1,Pe-1);if(Vt==null)return;if(Vt.packetType===0){gt.config&&ge.w(this.TAG,"Found another AudioSpecificConfig!");let Rt=Vt.data;gt.audioSampleRate=Rt.samplingRate,gt.channelCount=Rt.channelCount,gt.codec=Rt.codec,gt.originalCodec=Rt.originalCodec,gt.config=Rt.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.timescale,ge.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",gt);let kt=this._mediaInfo;kt.audioCodec=gt.originalCodec,kt.audioSampleRate=gt.audioSampleRate,kt.audioChannelCount=gt.channelCount,kt.hasVideo?kt.videoCodec!=null&&(kt.mimeType='video/x-flv; codecs="'+kt.videoCodec+","+kt.audioCodec+'"'):kt.mimeType='video/x-flv; codecs="'+kt.audioCodec+'"',kt.isComplete()&&this._onMediaInfo(kt)}else if(Vt.packetType===1){let Rt=this._timestampBase+Ie,kt={unit:Vt.data,length:Vt.data.byteLength,dts:Rt,pts:Rt};zt.samples.push(kt),zt.length+=Vt.data.length}else ge.e(this.TAG,`Flv: Unsupported AAC data type ${Vt.packetType}`)}else if(Qt===2){if(!gt.codec){let Jt=this._parseMP3AudioData(ae,_e+1,Pe-1,!0);if(Jt==null)return;gt.audioSampleRate=Jt.samplingRate,gt.channelCount=Jt.channelCount,gt.codec=Jt.codec,gt.originalCodec=Jt.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,ge.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt);let un=this._mediaInfo;un.audioCodec=gt.codec,un.audioSampleRate=gt.audioSampleRate,un.audioChannelCount=gt.channelCount,un.audioDataRate=Jt.bitRate,un.hasVideo?un.videoCodec!=null&&(un.mimeType='video/x-flv; codecs="'+un.videoCodec+","+un.audioCodec+'"'):un.mimeType='video/x-flv; codecs="'+un.audioCodec+'"',un.isComplete()&&this._onMediaInfo(un)}let Vt=this._parseMP3AudioData(ae,_e+1,Pe-1,!1);if(Vt==null)return;let Rt=this._timestampBase+Ie,kt={unit:Vt,length:Vt.byteLength,dts:Rt,pts:Rt};zt.samples.push(kt),zt.length+=Vt.length}}_parseAACAudioData(ae,_e,Pe){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Ie={},ke=new Uint8Array(ae,_e,Pe);return Ie.packetType=ke[0],ke[0]===0?Ie.data=this._parseAACAudioSpecificConfig(ae,_e+1,Pe-1):Ie.data=ke.subarray(1),Ie}_parseAACAudioSpecificConfig(ae,_e,Pe){let Ie=new Uint8Array(ae,_e,Pe),ke=null,et=0,vt=0,Qt=null,Ut=0,yt=null;if(et=vt=Ie[0]>>>3,Ut=(Ie[0]&7)<<1|Ie[1]>>>7,Ut<0||Ut>=this._mpegSamplingRates.length){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let pt=this._mpegSamplingRates[Ut],Bt=(Ie[1]&120)>>>3;if(Bt<0||Bt>=8){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}et===5&&(yt=(Ie[1]&7)<<1|Ie[2]>>>7,Qt=(Ie[2]&124)>>>2);let gt=self.navigator.userAgent.toLowerCase();return gt.indexOf("firefox")!==-1?Ut>=6?(et=5,ke=new Array(4),yt=Ut-3):(et=2,ke=new Array(2),yt=Ut):gt.indexOf("android")!==-1?(et=2,ke=new Array(2),yt=Ut):(et=5,yt=Ut,ke=new Array(4),Ut>=6?yt=Ut-3:Bt===1&&(et=2,ke=new Array(2),yt=Ut)),ke[0]=et<<3,ke[0]|=(Ut&15)>>>1,ke[1]=(Ut&15)<<7,ke[1]|=(Bt&15)<<3,et===5&&(ke[1]|=(yt&15)>>>1,ke[2]=(yt&1)<<7,ke[2]|=8,ke[3]=0),{config:ke,samplingRate:pt,channelCount:Bt,codec:"mp4a.40."+et,originalCodec:"mp4a.40."+vt}}_parseMP3AudioData(ae,_e,Pe,Ie){if(Pe<4){ge.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let ke=this._littleEndian,et=new Uint8Array(ae,_e,Pe),vt=null;if(Ie){if(et[0]!==255)return;let Qt=et[1]>>>3&3,Ut=(et[1]&6)>>1,yt=(et[2]&240)>>>4,pt=(et[2]&12)>>>2,gt=(et[3]>>>6&3)!==3?2:1,zt=0,Vt=0,Rt=34,kt="mp3";switch(Qt){case 0:zt=this._mpegAudioV25SampleRateTable[pt];break;case 2:zt=this._mpegAudioV20SampleRateTable[pt];break;case 3:zt=this._mpegAudioV10SampleRateTable[pt];break}switch(Ut){case 1:Rt=34,yt<this._mpegAudioL3BitRateTable.length&&(Vt=this._mpegAudioL3BitRateTable[yt]);break;case 2:Rt=33,yt<this._mpegAudioL2BitRateTable.length&&(Vt=this._mpegAudioL2BitRateTable[yt]);break;case 3:Rt=32,yt<this._mpegAudioL1BitRateTable.length&&(Vt=this._mpegAudioL1BitRateTable[yt]);break}vt={bitRate:Vt,samplingRate:zt,channelCount:gt,codec:kt,originalCodec:kt}}else vt=et;return vt}_parseVideoData(ae,_e,Pe,Ie,ke){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let et=new Uint8Array(ae,_e,Pe)[0],vt=(et&240)>>>4,Qt=et&15;if(Qt!==7){this._onError(Ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Qt}`);return}this._parseAVCVideoPacket(ae,_e+1,Pe-1,Ie,ke,vt)}_parseAVCVideoPacket(ae,_e,Pe,Ie,ke,et){if(Pe<4){ge.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let vt=this._littleEndian,Qt=new DataView(ae,_e,Pe),Ut=Qt.getUint8(0),pt=(Qt.getUint32(0,!vt)&16777215)<<8>>8;if(Ut===0)this._parseAVCDecoderConfigurationRecord(ae,_e+4,Pe-4);else if(Ut===1)this._parseAVCVideoData(ae,_e+4,Pe-4,Ie,ke,et,pt);else if(Ut!==2){this._onError(Ne.FORMAT_ERROR,`Flv: Invalid video packet type ${Ut}`);return}}_parseAVCDecoderConfigurationRecord(ae,_e,Pe){if(Pe<7){ge.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Ie=this._videoMetadata,ke=this._videoTrack,et=this._littleEndian,vt=new DataView(ae,_e,Pe);Ie?typeof Ie.avcc!="undefined"&&ge.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ie=this._videoMetadata={},Ie.type="video",Ie.id=ke.id,Ie.timescale=this._timescale,Ie.duration=this._duration);let Qt=vt.getUint8(0),Ut=vt.getUint8(1),yt=vt.getUint8(2),pt=vt.getUint8(3);if(Qt!==1||Ut===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(vt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Bt=vt.getUint8(5)&31;if(Bt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Bt>1&&ge.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Bt}`);let gt=6;for(let Vt=0;Vt<Bt;Vt++){let Rt=vt.getUint16(gt,!et);if(gt+=2,Rt===0)continue;let kt=new Uint8Array(ae,_e+gt,Rt);gt+=Rt;let Jt=dt.parseSPS(kt);if(Vt!==0)continue;Ie.codecWidth=Jt.codec_size.width,Ie.codecHeight=Jt.codec_size.height,Ie.presentWidth=Jt.present_size.width,Ie.presentHeight=Jt.present_size.height,Ie.profile=Jt.profile_string,Ie.level=Jt.level_string,Ie.bitDepth=Jt.bit_depth,Ie.chromaFormat=Jt.chroma_format,Ie.sarRatio=Jt.sar_ratio,Ie.frameRate=Jt.frame_rate,(Jt.frame_rate.fixed===!1||Jt.frame_rate.fps_num===0||Jt.frame_rate.fps_den===0)&&(Ie.frameRate=this._referenceFrameRate);let un=Ie.frameRate.fps_den,Dn=Ie.frameRate.fps_num;Ie.refSampleDuration=Ie.timescale*(un/Dn);let kn=kt.subarray(1,4),Xn="avc1.";for(let Rn=0;Rn<3;Rn++){let lr=kn[Rn].toString(16);lr.length<2&&(lr="0"+lr),Xn+=lr}Ie.codec=Xn;let pn=this._mediaInfo;pn.width=Ie.codecWidth,pn.height=Ie.codecHeight,pn.fps=Ie.frameRate.fps,pn.profile=Ie.profile,pn.level=Ie.level,pn.refFrames=Jt.ref_frames,pn.chromaFormat=Jt.chroma_format_string,pn.sarNum=Ie.sarRatio.width,pn.sarDen=Ie.sarRatio.height,pn.videoCodec=Xn,pn.hasAudio?pn.audioCodec!=null&&(pn.mimeType='video/x-flv; codecs="'+pn.videoCodec+","+pn.audioCodec+'"'):pn.mimeType='video/x-flv; codecs="'+pn.videoCodec+'"',pn.isComplete()&&this._onMediaInfo(pn)}let zt=vt.getUint8(gt);if(zt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else zt>1&&ge.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${zt}`);gt++;for(let Vt=0;Vt<zt;Vt++){let Rt=vt.getUint16(gt,!et);gt+=2,Rt!==0&&(gt+=Rt)}Ie.avcc=new Uint8Array(Pe),Ie.avcc.set(new Uint8Array(ae,_e,Pe),0),ge.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",Ie)}_parseAVCVideoData(ae,_e,Pe,Ie,ke,et,vt){let Qt=this._littleEndian,Ut=new DataView(ae,_e,Pe),yt=[],pt=0,Bt=0;const gt=this._naluLengthSize;let zt=this._timestampBase+Ie,Vt=et===1;for(;Bt<Pe;){if(Bt+4>=Pe){ge.w(this.TAG,`Malformed Nalu near timestamp ${zt}, offset = ${Bt}, dataSize = ${Pe}`);break}let Rt=Ut.getUint32(Bt,!Qt);if(gt===3&&(Rt>>>=8),Rt>Pe-gt){ge.w(this.TAG,`Malformed Nalus near timestamp ${zt}, NaluSize > DataSize!`);return}let kt=Ut.getUint8(Bt+gt)&31;kt===5&&(Vt=!0);let Jt=new Uint8Array(ae,_e+Bt,gt+Rt),un={type:kt,data:Jt};yt.push(un),pt+=Jt.byteLength,Bt+=gt+Rt}if(yt.length){let Rt=this._videoTrack,kt={units:yt,length:pt,isKeyframe:Vt,dts:zt,cts:vt,pts:zt+vt};Vt&&(kt.fileposition=ke),Rt.samples.push(kt),Rt.length+=pt}}}var We=Re;class Be{static init(){Be.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let _e in Be.types)Be.types.hasOwnProperty(_e)&&(Be.types[_e]=[_e.charCodeAt(0),_e.charCodeAt(1),_e.charCodeAt(2),_e.charCodeAt(3)]);let ae=Be.constants={};ae.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ae.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ae.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ae.STSC=ae.STCO=ae.STTS,ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ae.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),ae.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ae.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ae){let _e=8,Pe=null,Ie=Array.prototype.slice.call(arguments,1),ke=Ie.length;for(let vt=0;vt<ke;vt++)_e+=Ie[vt].byteLength;Pe=new Uint8Array(_e),Pe[0]=_e>>>24&255,Pe[1]=_e>>>16&255,Pe[2]=_e>>>8&255,Pe[3]=_e&255,Pe.set(ae,4);let et=8;for(let vt=0;vt<ke;vt++)Pe.set(Ie[vt],et),et+=Ie[vt].byteLength;return Pe}static generateInitSegment(ae){let _e=Be.box(Be.types.ftyp,Be.constants.FTYP),Pe=Be.moov(ae),Ie=new Uint8Array(_e.byteLength+Pe.byteLength);return Ie.set(_e,0),Ie.set(Pe,_e.byteLength),Ie}static moov(ae){let _e=Be.mvhd(ae.timescale,ae.duration),Pe=Be.trak(ae),Ie=Be.mvex(ae);return Be.box(Be.types.moov,_e,Pe,Ie)}static mvhd(ae,_e){return Be.box(Be.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(ae){return Be.box(Be.types.trak,Be.tkhd(ae),Be.mdia(ae))}static tkhd(ae){let _e=ae.id,Pe=ae.duration,Ie=ae.presentWidth,ke=ae.presentHeight;return Be.box(Be.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Ie>>>8&255,Ie&255,0,0,ke>>>8&255,ke&255,0,0]))}static mdia(ae){return Be.box(Be.types.mdia,Be.mdhd(ae),Be.hdlr(ae),Be.minf(ae))}static mdhd(ae){let _e=ae.timescale,Pe=ae.duration;return Be.box(Be.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ae){let _e=null;return ae.type==="audio"?_e=Be.constants.HDLR_AUDIO:_e=Be.constants.HDLR_VIDEO,Be.box(Be.types.hdlr,_e)}static minf(ae){let _e=null;return ae.type==="audio"?_e=Be.box(Be.types.smhd,Be.constants.SMHD):_e=Be.box(Be.types.vmhd,Be.constants.VMHD),Be.box(Be.types.minf,_e,Be.dinf(),Be.stbl(ae))}static dinf(){return Be.box(Be.types.dinf,Be.box(Be.types.dref,Be.constants.DREF))}static stbl(ae){return Be.box(Be.types.stbl,Be.stsd(ae),Be.box(Be.types.stts,Be.constants.STTS),Be.box(Be.types.stsc,Be.constants.STSC),Be.box(Be.types.stsz,Be.constants.STSZ),Be.box(Be.types.stco,Be.constants.STCO))}static stsd(ae){return ae.type==="audio"?ae.codec==="mp3"?Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp3(ae)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp4a(ae)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.avc1(ae))}static mp3(ae){let _e=ae.channelCount,Pe=ae.audioSampleRate,Ie=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types[".mp3"],Ie)}static mp4a(ae){let _e=ae.channelCount,Pe=ae.audioSampleRate,Ie=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types.mp4a,Ie,Be.esds(ae))}static esds(ae){let _e=ae.config||[],Pe=_e.length,Ie=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(_e).concat([6,1,2]));return Be.box(Be.types.esds,Ie)}static avc1(ae){let _e=ae.avcc,Pe=ae.codecWidth,Ie=ae.codecHeight,ke=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Pe>>>8&255,Pe&255,Ie>>>8&255,Ie&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Be.box(Be.types.avc1,ke,Be.box(Be.types.avcC,_e))}static mvex(ae){return Be.box(Be.types.mvex,Be.trex(ae))}static trex(ae){let _e=ae.id,Pe=new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Be.box(Be.types.trex,Pe)}static moof(ae,_e){return Be.box(Be.types.moof,Be.mfhd(ae.sequenceNumber),Be.traf(ae,_e))}static mfhd(ae){let _e=new Uint8Array([0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255]);return Be.box(Be.types.mfhd,_e)}static traf(ae,_e){let Pe=ae.id,Ie=Be.box(Be.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),ke=Be.box(Be.types.tfdt,new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255])),et=Be.sdtp(ae),vt=Be.trun(ae,et.byteLength+16+16+8+16+8+8);return Be.box(Be.types.traf,Ie,ke,vt,et)}static sdtp(ae){let _e=ae.samples||[],Pe=_e.length,Ie=new Uint8Array(4+Pe);for(let ke=0;ke<Pe;ke++){let et=_e[ke].flags;Ie[ke+4]=et.isLeading<<6|et.dependsOn<<4|et.isDependedOn<<2|et.hasRedundancy}return Be.box(Be.types.sdtp,Ie)}static trun(ae,_e){let Pe=ae.samples||[],Ie=Pe.length,ke=12+16*Ie,et=new Uint8Array(ke);_e+=8+ke,et.set([0,0,15,1,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255],0);for(let vt=0;vt<Ie;vt++){let Qt=Pe[vt].duration,Ut=Pe[vt].size,yt=Pe[vt].flags,pt=Pe[vt].cts;et.set([Qt>>>24&255,Qt>>>16&255,Qt>>>8&255,Qt&255,Ut>>>24&255,Ut>>>16&255,Ut>>>8&255,Ut&255,yt.isLeading<<2|yt.dependsOn,yt.isDependedOn<<6|yt.hasRedundancy<<4|yt.isNonSync,0,0,pt>>>24&255,pt>>>16&255,pt>>>8&255,pt&255],12+16*vt)}return Be.box(Be.types.trun,et)}static mdat(ae){return Be.box(Be.types.mdat,ae)}}Be.init();var ze=Be;class ot{static getSilentFrame(ae,_e){if(ae==="mp4a.40.2"){if(_e===1)return new Uint8Array([0,200,0,128,35,128]);if(_e===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(_e===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(_e===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(_e===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(_e===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(_e===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(_e===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(_e===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var Ot=ot;class Dt{constructor(ae,_e,Pe,Ie,ke){this.dts=ae,this.pts=_e,this.duration=Pe,this.originalDts=Ie,this.isSyncPoint=ke,this.fileposition=null}}class jt{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(ae){ae.isSyncPoint=!0,this.syncPoints.push(ae)}}class Mt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ae){let _e=this._list;ae.length!==0&&(_e.length>0&&ae[0].originalDts<_e[_e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(_e,ae))}getLastSyncPointBeforeDts(ae){if(this._list.length==0)return null;let _e=this._list,Pe=0,Ie=_e.length-1,ke=0,et=0,vt=Ie;for(ae<_e[0].dts&&(Pe=0,et=vt+1);et<=vt;)if(ke=et+Math.floor((vt-et)/2),ke===Ie||ae>=_e[ke].dts&&ae<_e[ke+1].dts){Pe=ke;break}else _e[ke].dts<ae?et=ke+1:vt=ke-1;return this._list[Pe]}}class Gt{constructor(ae){this._type=ae,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(ae){let _e=this._list;if(_e.length===0)return-2;let Pe=_e.length-1,Ie=0,ke=0,et=Pe,vt=0;if(ae<_e[0].originalBeginDts)return vt=-1,vt;for(;ke<=et;)if(Ie=ke+Math.floor((et-ke)/2),Ie===Pe||ae>_e[Ie].lastSample.originalDts&&ae<_e[Ie+1].originalBeginDts){vt=Ie;break}else _e[Ie].originalBeginDts<ae?ke=Ie+1:et=Ie-1;return vt}_searchNearestSegmentAfter(ae){return this._searchNearestSegmentBefore(ae)+1}append(ae){let _e=this._list,Pe=ae,Ie=this._lastAppendLocation,ke=0;Ie!==-1&&Ie<_e.length&&Pe.originalBeginDts>=_e[Ie].lastSample.originalDts&&(Ie===_e.length-1||Ie<_e.length-1&&Pe.originalBeginDts<_e[Ie+1].originalBeginDts)?ke=Ie+1:_e.length>0&&(ke=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=ke,this._list.splice(ke,0,Pe)}getLastSegmentBefore(ae){let _e=this._searchNearestSegmentBefore(ae);return _e>=0?this._list[_e]:null}getLastSampleBefore(ae){let _e=this.getLastSegmentBefore(ae);return _e!=null?_e.lastSample:null}getLastSyncPointBefore(ae){let _e=this._searchNearestSegmentBefore(ae),Pe=this._list[_e].syncPoints;for(;Pe.length===0&&_e>0;)_e--,Pe=this._list[_e].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class bt{constructor(ae){this.TAG="MP4Remuxer",this._config=ae,this._isLive=ae.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Gt("audio"),this._videoSegmentInfoList=new Gt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661)),this._fillSilentAfterSeek=b.msedge||b.msie,this._mp3UseMpegAudio=!b.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(ae){return ae.onDataAvailable=this.remux.bind(this),ae.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ae){this._onInitSegment=ae}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ae){this._onMediaSegment=ae}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ae){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ae,_e){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ae,_e),this._remuxVideo(_e),this._remuxAudio(ae)}_onTrackMetadataReceived(ae,_e){let Pe=null,Ie="mp4",ke=_e.codec;if(ae==="audio")this._audioMeta=_e,_e.codec==="mp3"&&this._mp3UseMpegAudio?(Ie="mpeg",ke="",Pe=new Uint8Array):Pe=ze.generateInitSegment(_e);else if(ae==="video")this._videoMeta=_e,Pe=ze.generateInitSegment(_e);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ae,{type:ae,data:Pe.buffer,codec:ke,container:`${ae}/${Ie}`,mediaDuration:_e.duration})}_calculateDtsBase(ae,_e){this._dtsBaseInited||(ae.samples&&ae.samples.length&&(this._audioDtsBase=ae.samples[0].dts),_e.samples&&_e.samples.length&&(this._videoDtsBase=_e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ae=this._videoStashedLastSample,_e=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ae!=null&&(Pe.samples.push(ae),Pe.length=ae.length);let Ie={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};_e!=null&&(Ie.samples.push(_e),Ie.length=_e.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Ie,!0)}_remuxAudio(ae,_e){if(this._audioMeta==null)return;let Pe=ae,Ie=Pe.samples,ke,et=-1,vt=-1,Qt=-1,Ut=this._audioMeta.refSampleDuration,yt=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,pt=this._dtsBaseInited&&this._audioNextDts===void 0,Bt=!1;if(!Ie||Ie.length===0||Ie.length===1&&!_e)return;let gt=0,zt=null,Vt=0;yt?(gt=0,Vt=Pe.length):(gt=8,Vt=8+Pe.length);let Rt=null;if(Ie.length>1&&(Rt=Ie.pop(),Vt-=Rt.length),this._audioStashedLastSample!=null){let pn=this._audioStashedLastSample;this._audioStashedLastSample=null,Ie.unshift(pn),Vt+=pn.length}Rt!=null&&(this._audioStashedLastSample=Rt);let kt=Ie[0].dts-this._dtsBase;if(this._audioNextDts)ke=kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ke=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Bt=!0);else{let pn=this._audioSegmentInfoList.getLastSampleBefore(kt);if(pn!=null){let Rn=kt-(pn.originalDts+pn.duration);Rn<=3&&(Rn=0);let lr=pn.dts+pn.duration+Rn;ke=kt-lr}else ke=0}if(Bt){let pn=kt-ke,Rn=this._videoSegmentInfoList.getLastSegmentBefore(kt);if(Rn!=null&&Rn.beginDts<pn){let lr=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(lr){let rr=Rn.beginDts,$t=pn-Rn.beginDts;ge.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rr}, duration: ${$t}`),Ie.unshift({unit:lr,dts:rr,pts:rr}),Vt+=lr.byteLength}}else Bt=!1}let Jt=[];for(let pn=0;pn<Ie.length;pn++){let Rn=Ie[pn],lr=Rn.unit,rr=Rn.dts-this._dtsBase,$t=rr-ke;et===-1&&(et=$t);let ur=0;pn!==Ie.length-1?ur=Ie[pn+1].dts-this._dtsBase-ke-$t:Rt!=null?ur=Rt.dts-this._dtsBase-ke-$t:Jt.length>=1?ur=Jt[Jt.length-1].duration:ur=Math.floor(Ut);let qr=!1,xr=null;if(ur>Ut*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){qr=!0;let Dr=Math.abs(ur-Ut),Zr=Math.ceil(Dr/Ut),an=$t+Ut;ge.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${$t+ur} ms, expected: ${$t+Math.round(Ut)} ms, delta: ${Math.round(Dr)} ms, generate: ${Zr} frames`);let bn=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);bn==null&&(ge.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),bn=lr),xr=[];for(let Pn=0;Pn<Zr;Pn++){let _r=Math.round(an);if(xr.length>0){let Or=xr[xr.length-1];Or.duration=_r-Or.dts}let fr={dts:_r,pts:_r,cts:0,unit:bn,size:bn.byteLength,duration:0,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};xr.push(fr),Vt+=fr.size,an+=Ut}let Cn=xr[xr.length-1];Cn.duration=$t+ur-Cn.dts,ur=Math.round(Ut)}Jt.push({dts:$t,pts:$t,cts:0,unit:Rn.unit,size:Rn.unit.byteLength,duration:ur,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),qr&&Jt.push.apply(Jt,xr)}yt?zt=new Uint8Array(Vt):(zt=new Uint8Array(Vt),zt[0]=Vt>>>24&255,zt[1]=Vt>>>16&255,zt[2]=Vt>>>8&255,zt[3]=Vt&255,zt.set(ze.types.mdat,4));for(let pn=0;pn<Jt.length;pn++){let Rn=Jt[pn].unit;zt.set(Rn,gt),gt+=Rn.byteLength}let un=Jt[Jt.length-1];vt=un.dts+un.duration,this._audioNextDts=vt;let Dn=new jt;Dn.beginDts=et,Dn.endDts=vt,Dn.beginPts=et,Dn.endPts=vt,Dn.originalBeginDts=Jt[0].originalDts,Dn.originalEndDts=un.originalDts+un.duration,Dn.firstSample=new Dt(Jt[0].dts,Jt[0].pts,Jt[0].duration,Jt[0].originalDts,!1),Dn.lastSample=new Dt(un.dts,un.pts,un.duration,un.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Dn),Pe.samples=Jt,Pe.sequenceNumber++;let kn=null;yt?kn=new Uint8Array:kn=ze.moof(Pe,et),Pe.samples=[],Pe.length=0;let Xn={type:"audio",data:this._mergeBoxes(kn,zt).buffer,sampleCount:Jt.length,info:Dn};yt&&pt&&(Xn.timestampOffset=et),this._onMediaSegment("audio",Xn)}_remuxVideo(ae,_e){if(this._videoMeta==null)return;let Pe=ae,Ie=Pe.samples,ke,et=-1,vt=-1,Qt=-1,Ut=-1;if(!Ie||Ie.length===0||Ie.length===1&&!_e)return;let yt=8,pt=null,Bt=8+ae.length,gt=null;if(Ie.length>1&&(gt=Ie.pop(),Bt-=gt.length),this._videoStashedLastSample!=null){let un=this._videoStashedLastSample;this._videoStashedLastSample=null,Ie.unshift(un),Bt+=un.length}gt!=null&&(this._videoStashedLastSample=gt);let zt=Ie[0].dts-this._dtsBase;if(this._videoNextDts)ke=zt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ke=0;else{let un=this._videoSegmentInfoList.getLastSampleBefore(zt);if(un!=null){let Dn=zt-(un.originalDts+un.duration);Dn<=3&&(Dn=0);let kn=un.dts+un.duration+Dn;ke=zt-kn}else ke=0}let Vt=new jt,Rt=[];for(let un=0;un<Ie.length;un++){let Dn=Ie[un],kn=Dn.dts-this._dtsBase,Xn=Dn.isKeyframe,pn=kn-ke,Rn=Dn.cts,lr=pn+Rn;et===-1&&(et=pn,Qt=lr);let rr=0;if(un!==Ie.length-1?rr=Ie[un+1].dts-this._dtsBase-ke-pn:gt!=null?rr=gt.dts-this._dtsBase-ke-pn:Rt.length>=1?rr=Rt[Rt.length-1].duration:rr=Math.floor(this._videoMeta.refSampleDuration),Xn){let $t=new Dt(pn,lr,rr,Dn.dts,!0);$t.fileposition=Dn.fileposition,Vt.appendSyncPoint($t)}Rt.push({dts:pn,pts:lr,cts:Rn,units:Dn.units,size:Dn.length,isKeyframe:Xn,duration:rr,originalDts:kn,flags:{isLeading:0,dependsOn:Xn?2:1,isDependedOn:Xn?1:0,hasRedundancy:0,isNonSync:Xn?0:1}})}pt=new Uint8Array(Bt),pt[0]=Bt>>>24&255,pt[1]=Bt>>>16&255,pt[2]=Bt>>>8&255,pt[3]=Bt&255,pt.set(ze.types.mdat,4);for(let un=0;un<Rt.length;un++){let Dn=Rt[un].units;for(;Dn.length;){let Xn=Dn.shift().data;pt.set(Xn,yt),yt+=Xn.byteLength}}let kt=Rt[Rt.length-1];if(vt=kt.dts+kt.duration,Ut=kt.pts+kt.duration,this._videoNextDts=vt,Vt.beginDts=et,Vt.endDts=vt,Vt.beginPts=Qt,Vt.endPts=Ut,Vt.originalBeginDts=Rt[0].originalDts,Vt.originalEndDts=kt.originalDts+kt.duration,Vt.firstSample=new Dt(Rt[0].dts,Rt[0].pts,Rt[0].duration,Rt[0].originalDts,Rt[0].isKeyframe),Vt.lastSample=new Dt(kt.dts,kt.pts,kt.duration,kt.originalDts,kt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Vt),Pe.samples=Rt,Pe.sequenceNumber++,this._forceFirstIDR){let un=Rt[0].flags;un.dependsOn=2,un.isNonSync=0}let Jt=ze.moof(Pe,et);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Jt,pt).buffer,sampleCount:Rt.length,info:Vt})}_mergeBoxes(ae,_e){let Pe=new Uint8Array(ae.byteLength+_e.byteLength);return Pe.set(ae,0),Pe.set(_e,ae.byteLength),Pe}}var fn=bt,wt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class yn{constructor(ae,_e){this.TAG="TransmuxingController",this._emitter=new(ye()),this._config=_e,ae.segments||(ae.segments=[{duration:ae.duration,filesize:ae.filesize,url:ae.url}]),typeof ae.cors!="boolean"&&(ae.cors=!0),typeof ae.withCredentials!="boolean"&&(ae.withCredentials=!1),this._mediaDataSource=ae,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(Ie=>{Ie.timestampBase=Pe,Pe+=Ie.duration,Ie.cors=ae.cors,Ie.withCredentials=ae.withCredentials,_e.referrerPolicy&&(Ie.referrerPolicy=_e.referrerPolicy)}),!isNaN(Pe)&&this._mediaDataSource.duration!==Pe&&(this._mediaDataSource.duration=Pe),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ae,_e){this._currentSegmentIndex=ae;let Pe=this._mediaDataSource.segments[ae],Ie=this._ioctl=new je(Pe,this._config,ae);Ie.onError=this._onIOException.bind(this),Ie.onSeeked=this._onIOSeeked.bind(this),Ie.onComplete=this._onIOComplete.bind(this),Ie.onRedirect=this._onIORedirect.bind(this),Ie.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),_e?this._demuxer.bindDataSource(this._ioctl):Ie.onDataArrival=this._onInitChunkArrival.bind(this),Ie.open(_e)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(ae){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let _e=this._searchSegmentIndexContains(ae);if(_e===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[_e];if(Pe==null)this._pendingSeekTime=ae;else{let Ie=Pe.getNearestKeyframe(ae);this._remuxer.seek(Ie.milliseconds),this._ioctl.seek(Ie.fileposition),this._pendingResolveSeekPoint=Ie.milliseconds}}else{let Pe=this._mediaInfo.segments[_e];if(Pe==null)this._pendingSeekTime=ae,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(_e);else{let Ie=Pe.getNearestKeyframe(ae);this._internalAbort(),this._remuxer.seek(ae),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[_e].timestampBase,this._loadSegment(_e,Ie.fileposition),this._pendingResolveSeekPoint=Ie.milliseconds,this._reportSegmentMediaInfo(_e)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ae){let _e=this._mediaDataSource.segments,Pe=_e.length-1;for(let Ie=0;Ie<_e.length;Ie++)if(ae<_e[Ie].timestampBase){Pe=Ie-1;break}return Pe}_onInitChunkArrival(ae,_e){let Pe=null,Ie=0;if(_e>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Ie=this._demuxer.parseChunks(ae,_e);else if((Pe=We.probe(ae)).match){this._demuxer=new We(Pe,this._config),this._remuxer||(this._remuxer=new fn(this._config));let ke=this._mediaDataSource;ke.duration!=null&&!isNaN(ke.duration)&&(this._demuxer.overridedDuration=ke.duration),typeof ke.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ke.hasAudio),typeof ke.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ke.hasVideo),this._demuxer.timestampBase=ke.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Ie=this._demuxer.parseChunks(ae,_e)}else Pe=null,ge.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(wt.DEMUX_ERROR,Ne.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Ie=0;return Ie}_onMediaInfo(ae){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ae),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let _e=Object.assign({},ae);Object.setPrototypeOf(_e,Ct.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=_e,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ae){this._emitter.emit(wt.METADATA_ARRIVED,ae)}_onScriptDataArrived(ae){this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ae)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ae){let Pe=ae+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(wt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(ae){let _e=this._ioctl.extraData;this._mediaDataSource.segments[_e].redirectedURL=ae}_onIORecoveredEarlyEof(){this._emitter.emit(wt.RECOVERED_EARLY_EOF)}_onIOException(ae,_e){ge.e(this.TAG,`IOException: type = ${ae}, code = ${_e.code}, msg = ${_e.msg}`),this._emitter.emit(wt.IO_ERROR,ae,_e),this._disableStatisticsReporter()}_onDemuxException(ae,_e){ge.e(this.TAG,`DemuxException: type = ${ae}, info = ${_e}`),this._emitter.emit(wt.DEMUX_ERROR,ae,_e)}_onRemuxerInitSegmentArrival(ae,_e){this._emitter.emit(wt.INIT_SEGMENT,ae,_e)}_onRemuxerMediaSegmentArrival(ae,_e){if(this._pendingSeekTime==null&&(this._emitter.emit(wt.MEDIA_SEGMENT,ae,_e),this._pendingResolveSeekPoint!=null&&ae==="video")){let Pe=_e.info.syncPoints,Ie=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===Ie&&(Ie=Pe[0].pts),this._emitter.emit(wt.RECOMMEND_SEEKPOINT,Ie)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(ae){let _e=this._mediaInfo.segments[ae],Pe=Object.assign({},_e);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(wt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ae={};ae.url=this._ioctl.currentURL,ae.hasRedirect=this._ioctl.hasRedirect,ae.hasRedirect&&(ae.redirectedURL=this._ioctl.currentRedirectedURL),ae.speed=this._ioctl.currentSpeed,ae.loaderType=this._ioctl.loaderType,ae.currentSegmentIndex=this._currentSegmentIndex,ae.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(wt.STATISTICS_INFO,ae)}}var _n=yn,xn=function(Wt){let ae="TransmuxingWorker",_e=null,Pe=Vt.bind(this);fe.install(),Wt.addEventListener("message",function(Rt){switch(Rt.data.cmd){case"init":_e=new _n(Rt.data.param[0],Rt.data.param[1]),_e.on(wt.IO_ERROR,Bt.bind(this)),_e.on(wt.DEMUX_ERROR,gt.bind(this)),_e.on(wt.INIT_SEGMENT,Ie.bind(this)),_e.on(wt.MEDIA_SEGMENT,ke.bind(this)),_e.on(wt.LOADING_COMPLETE,et.bind(this)),_e.on(wt.RECOVERED_EARLY_EOF,vt.bind(this)),_e.on(wt.MEDIA_INFO,Qt.bind(this)),_e.on(wt.METADATA_ARRIVED,Ut.bind(this)),_e.on(wt.SCRIPTDATA_ARRIVED,yt.bind(this)),_e.on(wt.STATISTICS_INFO,pt.bind(this)),_e.on(wt.RECOMMEND_SEEKPOINT,zt.bind(this));break;case"destroy":_e&&(_e.destroy(),_e=null),Wt.postMessage({msg:"destroyed"});break;case"start":_e.start();break;case"stop":_e.stop();break;case"seek":_e.seek(Rt.data.param);break;case"pause":_e.pause();break;case"resume":_e.resume();break;case"logging_config":{let kt=Rt.data.param;rt.applyConfig(kt),kt.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function Ie(Rt,kt){let Jt={msg:wt.INIT_SEGMENT,data:{type:Rt,data:kt}};Wt.postMessage(Jt,[kt.data])}function ke(Rt,kt){let Jt={msg:wt.MEDIA_SEGMENT,data:{type:Rt,data:kt}};Wt.postMessage(Jt,[kt.data])}function et(){let Rt={msg:wt.LOADING_COMPLETE};Wt.postMessage(Rt)}function vt(){let Rt={msg:wt.RECOVERED_EARLY_EOF};Wt.postMessage(Rt)}function Qt(Rt){let kt={msg:wt.MEDIA_INFO,data:Rt};Wt.postMessage(kt)}function Ut(Rt){let kt={msg:wt.METADATA_ARRIVED,data:Rt};Wt.postMessage(kt)}function yt(Rt){let kt={msg:wt.SCRIPTDATA_ARRIVED,data:Rt};Wt.postMessage(kt)}function pt(Rt){let kt={msg:wt.STATISTICS_INFO,data:Rt};Wt.postMessage(kt)}function Bt(Rt,kt){Wt.postMessage({msg:wt.IO_ERROR,data:{type:Rt,info:kt}})}function gt(Rt,kt){Wt.postMessage({msg:wt.DEMUX_ERROR,data:{type:Rt,info:kt}})}function zt(Rt){Wt.postMessage({msg:wt.RECOMMEND_SEEKPOINT,data:Rt})}function Vt(Rt,kt){Wt.postMessage({msg:"logcat_callback",data:{type:Rt,logcat:kt}})}};class Zn{constructor(ae,_e){if(this.TAG="Transmuxer",this._emitter=new(ye()),_e.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(82059);this._worker=Pe(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ae,_e]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){ge.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new _n(ae,_e)}else this._controller=new _n(ae,_e);if(this._controller){let Pe=this._controller;Pe.on(wt.IO_ERROR,this._onIOError.bind(this)),Pe.on(wt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(wt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(wt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(wt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(wt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(wt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(wt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(wt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(wt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(wt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),rt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(ae){this._worker?this._worker.postMessage({cmd:"seek",param:ae}):this._controller.seek(ae)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(wt.INIT_SEGMENT,ae,_e)})}_onMediaSegment(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_SEGMENT,ae,_e)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(wt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ae){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_INFO,ae)})}_onMetaDataArrived(ae){Promise.resolve().then(()=>{this._emitter.emit(wt.METADATA_ARRIVED,ae)})}_onScriptDataArrived(ae){Promise.resolve().then(()=>{this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ae)})}_onStatisticsInfo(ae){Promise.resolve().then(()=>{this._emitter.emit(wt.STATISTICS_INFO,ae)})}_onIOError(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(wt.IO_ERROR,ae,_e)})}_onDemuxError(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(wt.DEMUX_ERROR,ae,_e)})}_onRecommendSeekpoint(ae){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOMMEND_SEEKPOINT,ae)})}_onLoggingConfigChanged(ae){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ae})}_onWorkerMessage(ae){let _e=ae.data,Pe=_e.data;if(_e.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(_e.msg){case wt.INIT_SEGMENT:case wt.MEDIA_SEGMENT:this._emitter.emit(_e.msg,Pe.type,Pe.data);break;case wt.LOADING_COMPLETE:case wt.RECOVERED_EARLY_EOF:this._emitter.emit(_e.msg);break;case wt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(_e.msg,Pe);break;case wt.METADATA_ARRIVED:case wt.SCRIPTDATA_ARRIVED:case wt.STATISTICS_INFO:this._emitter.emit(_e.msg,Pe);break;case wt.IO_ERROR:case wt.DEMUX_ERROR:this._emitter.emit(_e.msg,Pe.type,Pe.info);break;case wt.RECOMMEND_SEEKPOINT:this._emitter.emit(_e.msg,Pe);break;case"logcat_callback":ge.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Jn=Zn,Vn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Sr{constructor(ae){this.TAG="MSEController",this._config=ae,this._emitter=new(ye()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Mt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let _e=this._mediaSource=new window.MediaSource;_e.addEventListener("sourceopen",this.e.onSourceOpen),_e.addEventListener("sourceended",this.e.onSourceEnded),_e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ae,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ae.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ae=this._mediaSource;for(let _e in this._sourceBuffers){let Pe=this._pendingSegments[_e];Pe.splice(0,Pe.length),this._pendingSegments[_e]=null,this._pendingRemoveRanges[_e]=null,this._lastInitSegments[_e]=null;let Ie=this._sourceBuffers[_e];if(Ie){if(ae.readyState!=="closed"){try{ae.removeSourceBuffer(Ie)}catch(ke){ge.e(this.TAG,ke.message)}Ie.removeEventListener("error",this.e.onSourceBufferError),Ie.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[_e]=null,this._sourceBuffers[_e]=null}}if(ae.readyState==="open")try{ae.endOfStream()}catch(_e){ge.e(this.TAG,_e.message)}ae.removeEventListener("sourceopen",this.e.onSourceOpen),ae.removeEventListener("sourceended",this.e.onSourceEnded),ae.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(ae,_e){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ae),this._pendingSegments[ae.type].push(ae);return}let Pe=ae,Ie=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Ie+=`;codecs=${Pe.codec}`);let ke=!1;if(ge.v(this.TAG,"Received Initialization Segment, mimeType: "+Ie),this._lastInitSegments[Pe.type]=Pe,Ie!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])ge.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Ie}`);else{ke=!0;try{let et=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Ie);et.addEventListener("error",this.e.onSourceBufferError),et.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(et){ge.e(this.TAG,et.message),this._emitter.emit(Vn.ERROR,{code:et.code,msg:et.message});return}}this._mimeTypes[Pe.type]=Ie}_e||this._pendingSegments[Pe.type].push(Pe),ke||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),b.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(ae){let _e=ae;this._pendingSegments[_e.type].push(_e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[_e.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ae){for(let _e in this._sourceBuffers){if(!this._sourceBuffers[_e])continue;let Pe=this._sourceBuffers[_e];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(ke){ge.e(this.TAG,ke.message)}this._idrList.clear();let Ie=this._pendingSegments[_e];if(Ie.splice(0,Ie.length),this._mediaSource.readyState!=="closed"){for(let ke=0;ke<Pe.buffered.length;ke++){let et=Pe.buffered.start(ke),vt=Pe.buffered.end(ke);this._pendingRemoveRanges[_e].push({start:et,end:vt})}if(Pe.updating||this._doRemoveRanges(),b.safari){let ke=this._lastInitSegments[_e];ke&&(this._pendingSegments[_e].push(ke),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let ae=this._mediaSource,_e=this._sourceBuffers;if(!ae||ae.readyState!=="open"){ae&&ae.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}_e.video&&_e.video.updating||_e.audio&&_e.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ae.endOfStream())}getNearestKeyframe(ae){return this._idrList.getLastSyncPointBeforeDts(ae)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ae=this._mediaElement.currentTime;for(let _e in this._sourceBuffers){let Pe=this._sourceBuffers[_e];if(Pe){let Ie=Pe.buffered;if(Ie.length>=1&&ae-Ie.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ae=this._mediaElement.currentTime;for(let _e in this._sourceBuffers){let Pe=this._sourceBuffers[_e];if(Pe){let Ie=Pe.buffered,ke=!1;for(let et=0;et<Ie.length;et++){let vt=Ie.start(et),Qt=Ie.end(et);if(vt<=ae&&ae<Qt+3){if(ae-vt>=this._config.autoCleanupMaxBackwardDuration){ke=!0;let Ut=ae-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[_e].push({start:vt,end:Ut})}}else Qt<ae&&(ke=!0,this._pendingRemoveRanges[_e].push({start:vt,end:Qt}))}ke&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ae=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ae.video&&ae.video.updating||ae.audio&&ae.audio.updating)return;let _e=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(_e)||Pe>_e)&&(ge.v(this.TAG,`Update MediaSource duration from ${_e} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ae in this._pendingRemoveRanges){if(!this._sourceBuffers[ae]||this._sourceBuffers[ae].updating)continue;let _e=this._sourceBuffers[ae],Pe=this._pendingRemoveRanges[ae];for(;Pe.length&&!_e.updating;){let Ie=Pe.shift();_e.remove(Ie.start,Ie.end)}}}_doAppendSegments(){let ae=this._pendingSegments;for(let _e in ae)if(!(!this._sourceBuffers[_e]||this._sourceBuffers[_e].updating)&&ae[_e].length>0){let Pe=ae[_e].shift();if(Pe.timestampOffset){let Ie=this._sourceBuffers[_e].timestampOffset,ke=Pe.timestampOffset/1e3;Math.abs(Ie-ke)>.1&&(ge.v(this.TAG,`Update MPEG audio timestampOffset from ${Ie} to ${ke}`),this._sourceBuffers[_e].timestampOffset=ke),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[_e].appendBuffer(Pe.data),this._isBufferFull=!1,_e==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Ie){this._pendingSegments[_e].unshift(Pe),Ie.code===22?(this._isBufferFull||this._emitter.emit(Vn.BUFFER_FULL),this._isBufferFull=!0):(ge.e(this.TAG,Ie.message),this._emitter.emit(Vn.ERROR,{code:Ie.code,msg:Ie.message}))}}}_onSourceOpen(){if(ge.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ae=this._pendingSourceBufferInit;for(;ae.length;){let _e=ae.shift();this.appendInitSegment(_e,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Vn.SOURCE_OPEN)}_onSourceEnded(){ge.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){ge.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let ae=this._pendingSegments;return ae.video.length>0||ae.audio.length>0}_hasPendingRemoveRanges(){let ae=this._pendingRemoveRanges;return ae.video.length>0||ae.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Vn.UPDATE_END)}_onSourceBufferError(ae){ge.e(this.TAG,`SourceBuffer Error: ${ae}`)}}var sr=Sr;const sn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Yn={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ne.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ne.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ne.CODEC_UNSUPPORTED};class or{constructor(ae,_e){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ye()),this._config=Je(),typeof _e=="object"&&Object.assign(this._config,_e),ae.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ae.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ae,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let Pe=b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661);this._alwaysSeekKeyframe=!!(Pe||b.msedge||b.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){ae===At.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ae===At.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaElement=ae,ae.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ae.addEventListener("seeking",this.e.onvSeeking),ae.addEventListener("canplay",this.e.onvCanPlay),ae.addEventListener("stalled",this.e.onvStalled),ae.addEventListener("progress",this.e.onvProgress),this._msectl=new sr(this._config),this._msectl.on(Vn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Vn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Vn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Vn.ERROR,_e=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,Yn.MEDIA_MSE_ERROR,_e)}),this._msectl.attachMediaElement(ae),this._pendingSeekTime!=null)try{ae.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(_e){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new me("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new me("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Jn(this._mediaDataSource,this._config),this._transmuxer.on(wt.INIT_SEGMENT,(ae,_e)=>{this._msectl.appendInitSegment(_e)}),this._transmuxer.on(wt.MEDIA_SEGMENT,(ae,_e)=>{if(this._msectl.appendMediaSegment(_e),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;_e.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(ge.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(wt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(At.LOADING_COMPLETE)}),this._transmuxer.on(wt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(At.RECOVERED_EARLY_EOF)}),this._transmuxer.on(wt.IO_ERROR,(ae,_e)=>{this._emitter.emit(At.ERROR,sn.NETWORK_ERROR,ae,_e)}),this._transmuxer.on(wt.DEMUX_ERROR,(ae,_e)=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,ae,{code:-1,msg:_e})}),this._transmuxer.on(wt.MEDIA_INFO,ae=>{this._mediaInfo=ae,this._emitter.emit(At.MEDIA_INFO,Object.assign({},ae))}),this._transmuxer.on(wt.METADATA_ARRIVED,ae=>{this._emitter.emit(At.METADATA_ARRIVED,ae)}),this._transmuxer.on(wt.SCRIPTDATA_ARRIVED,ae=>{this._emitter.emit(At.SCRIPTDATA_ARRIVED,ae)}),this._transmuxer.on(wt.STATISTICS_INFO,ae=>{this._statisticsInfo=this._fillStatisticsInfo(ae),this._emitter.emit(At.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(wt.RECOMMEND_SEEKPOINT,ae=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ae){this._mediaElement.volume=ae}get muted(){return this._mediaElement.muted}set muted(ae){this._mediaElement.muted=ae}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ae){this._mediaElement?this._internalSeek(ae):this._pendingSeekTime=ae}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(ae){if(ae.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ae;let _e=!0,Pe=0,Ie=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,Ie=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ie=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(ae.decodedFrames=Pe,ae.droppedFrames=Ie),ae}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ae=this._mediaElement.buffered,_e=this._mediaElement.currentTime,Pe=0,Ie=0;for(let ke=0;ke<ae.length;ke++){let et=ae.start(ke),vt=ae.end(ke);if(et<=_e&&_e<vt){Pe=et,Ie=vt;break}}Ie>=_e+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(ge.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){ge.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let ae=this._mediaElement.currentTime,_e=this._mediaElement.buffered,Pe=!1;for(let Ie=0;Ie<_e.length;Ie++){let ke=_e.start(Ie),et=_e.end(Ie);if(ae>=ke&&ae<et){ae>=et-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(ge.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ae){let _e=this._mediaElement.buffered;for(let Pe=0;Pe<_e.length;Pe++){let Ie=_e.start(Pe),ke=_e.end(Pe);if(ae>=Ie&&ae<ke)return!0}return!1}_internalSeek(ae){let _e=this._isTimepointBuffered(ae),Pe=!1,Ie=0;if(ae<1&&this._mediaElement.buffered.length>0){let ke=this._mediaElement.buffered.start(0);(ke<1&&ae<ke||b.safari)&&(Pe=!0,Ie=b.safari?.1:ke)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=Ie;else if(_e){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ae;else{let ke=this._msectl.getNearestKeyframe(Math.floor(ae*1e3));this._requestSetTime=!0,ke!=null?this._mediaElement.currentTime=ke.dts/1e3:this._mediaElement.currentTime=ae}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ae),this._transmuxer.seek(Math.floor(ae*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ae=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ae)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ae),this._transmuxer.seek(Math.floor(ae*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ae){let _e=this._mediaElement;if(ae||!this._receivedCanPlay||_e.readyState<2){let Pe=_e.buffered;Pe.length>0&&_e.currentTime<Pe.start(0)&&(ge.w(this.TAG,`Playback seems stuck at ${_e.currentTime}, seek to ${Pe.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(ae){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ae){let _e=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(_e<1&&Pe.length>0){let Ie=Pe.start(0);if(Ie<1&&_e<Ie||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Ie;return}}if(this._isTimepointBuffered(_e)){if(this._alwaysSeekKeyframe){let Ie=this._msectl.getNearestKeyframe(Math.floor(_e*1e3));Ie!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:_e,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ae){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ae){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ae){this._checkAndResumeStuckPlayback()}}var $n=or;class ir{constructor(ae,_e){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ye()),this._config=Je(),typeof _e=="object"&&Object.assign(this._config,_e),ae.type.toLowerCase()==="flv")throw new se("NativePlayer does't support flv MediaDataSource input!");if(ae.hasOwnProperty("segments"))throw new se(`NativePlayer(${ae.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ae,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){ae===At.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ae===At.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaElement=ae,ae.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ae.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(_e){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new me("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ae){this._mediaElement.volume=ae}get muted(){return this._mediaElement.muted}set muted(ae){this._mediaElement.muted=ae}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ae){this._mediaElement?this._mediaElement.currentTime=ae:this._pendingSeekTime=ae}get mediaInfo(){let _e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(_e.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(_e.width=this._mediaElement.videoWidth,_e.height=this._mediaElement.videoHeight)),_e}get statisticsInfo(){let ae={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ae;let _e=!0,Pe=0,Ie=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,Ie=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ie=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(ae.decodedFrames=Pe,ae.droppedFrames=Ie),ae}_onvLoadedMetadata(ae){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}}var Ar=ir;fe.install();function Ir(Wt,ae){let _e=Wt;if(_e==null||typeof _e!="object")throw new se("MediaDataSource must be an javascript object!");if(!_e.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(_e.type){case"flv":return new $n(_e,ae);default:return new Ar(_e,ae)}}function wr(){return mt.supportMSEH264Playback()}function Tr(){return mt.getFeatureList()}let ar={};ar.createPlayer=Ir,ar.isSupported=wr,ar.getFeatureList=Tr,ar.BaseLoader=a,ar.LoaderStatus=oe,ar.LoaderErrors=ne,ar.Events=At,ar.ErrorTypes=sn,ar.ErrorDetails=Yn,ar.FlvPlayer=$n,ar.NativePlayer=Ar,ar.LoggingControl=rt,Object.defineProperty(ar,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var $r=ar},50371:function(ft,Ke){"use strict";function ee(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe<arguments.length;fe++){const be=fe<0||arguments.length<=fe?void 0:arguments[fe];be&&Object.keys(be).forEach(ye=>{const he=be[ye];he!==void 0&&(te[ye]=he)})}return te}Ke.Z=ee},13845:function(ft,Ke,ee){"use strict";ee.d(Ke,{F:function(){return te},Z:function(){return fe}});function te(be){return be!=null&&be===be.window}function fe(be,ye){var he,ge;if(typeof window=="undefined")return 0;const ie=ye?"scrollTop":"scrollLeft";let ue=0;return te(be)?ue=be[ye?"pageYOffset":"pageXOffset"]:be instanceof Document?ue=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(ue=be[ie]),be&&!te(be)&&typeof ue!="number"&&(ue=(ge=((he=be.ownerDocument)!==null&&he!==void 0?he:be).documentElement)===null||ge===void 0?void 0:ge[ie]),ue}},56762:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return fe}});var te=ee(59301);function fe(){const[,be]=te.useReducer(ye=>ye+1,0);return be}},68031:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return ye}});var te=ee(16089);function fe(he,ge,ie,ue){const ce=ie-ge;return he/=ue/2,he<1?ce/2*he*he*he+ge:ce/2*((he-=2)*he*he+2)+ge}var be=ee(13845);function ye(he){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:ue,duration:ce=450}=ge,me=ie(),se=(0,be.Z)(me,!0),pe=Date.now(),oe=()=>{const a=Date.now()-pe,y=fe(a>ce?ce:a,se,he,ce);(0,be.F)(me)?me.scrollTo(window.pageXOffset,y):me instanceof Document||me.constructor.name==="HTMLDocument"?me.documentElement.scrollTop=y:me.scrollTop=y,a<ce?(0,te.Z)(oe):typeof ue=="function"&&ue()};(0,te.Z)(oe)}},24905:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return ve}});var te=ee(92310),fe=ee.n(te),be=ee(5630),ye=ee(59301),he=ee(36355),ge=ee(1684),ie=ee(32441),ce=ye.createContext(null),me=ee(98447),se=ee(14088),pe=ee(4572),oe=function(Se,Le){var Ee={};for(var Fe in Se)Object.prototype.hasOwnProperty.call(Se,Fe)&&Le.indexOf(Fe)<0&&(Ee[Fe]=Se[Fe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Fe=Object.getOwnPropertySymbols(Se);xe<Fe.length;xe++)Le.indexOf(Fe[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,Fe[xe])&&(Ee[Fe[xe]]=Se[Fe[xe]]);return Ee};const ne=(Se,Le)=>{var Ee;const{prefixCls:Fe,className:xe,rootClassName:lt,children:Ye,indeterminate:ht=!1,style:we,onMouseEnter:je,onMouseLeave:He,skipGroup:Je=!1,disabled:$e}=Se,mt=oe(Se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Pt,direction:At,checkbox:Nt}=ye.useContext(he.E_),rt=ye.useContext(ce),{isFormItemInput:Xe}=ye.useContext(ie.aM),Ct=ye.useContext(ge.Z),Ht=(Ee=(rt==null?void 0:rt.disabled)||$e)!==null&&Ee!==void 0?Ee:Ct,Et=ye.useRef(mt.value);ye.useEffect(()=>{rt==null||rt.registerValue(mt.value)},[]),ye.useEffect(()=>{if(!Je)return mt.value!==Et.current&&(rt==null||rt.cancelValue(Et.current),rt==null||rt.registerValue(mt.value),Et.current=mt.value),()=>rt==null?void 0:rt.cancelValue(mt.value)},[mt.value]);const rn=Pt("checkbox",Fe),[Ze,St]=(0,me.ZP)(rn),Lt=Object.assign({},mt);rt&&!Je&&(Lt.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),rt.toggleOption&&rt.toggleOption({label:Ye,value:mt.value})},Lt.name=rt.name,Lt.checked=rt.value.includes(mt.value));const nn=fe()(`${rn}-wrapper`,{[`${rn}-rtl`]:At==="rtl",[`${rn}-wrapper-checked`]:Lt.checked,[`${rn}-wrapper-disabled`]:Ht,[`${rn}-wrapper-in-form-item`]:Xe},Nt==null?void 0:Nt.className,xe,lt,St),Zt=fe()({[`${rn}-indeterminate`]:ht},pe.A,St),at=ht?"mixed":void 0;return Ze(ye.createElement(se.Z,{component:"Checkbox",disabled:Ht},ye.createElement("label",{className:nn,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),we),onMouseEnter:je,onMouseLeave:He},ye.createElement(be.Z,Object.assign({"aria-checked":at},Lt,{prefixCls:rn,className:Zt,disabled:Ht,ref:Le})),Ye!==void 0&&ye.createElement("span",null,Ye))))};var y=ye.forwardRef(ne),E=ee(94480),b=ee(2738),x=function(Se,Le){var Ee={};for(var Fe in Se)Object.prototype.hasOwnProperty.call(Se,Fe)&&Le.indexOf(Fe)<0&&(Ee[Fe]=Se[Fe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Fe=Object.getOwnPropertySymbols(Se);xe<Fe.length;xe++)Le.indexOf(Fe[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,Fe[xe])&&(Ee[Fe[xe]]=Se[Fe[xe]]);return Ee};const z=(Se,Le)=>{const{defaultValue:Ee,children:Fe,options:xe=[],prefixCls:lt,className:Ye,rootClassName:ht,style:we,onChange:je}=Se,He=x(Se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Je,direction:$e}=ye.useContext(he.E_),[mt,Pt]=ye.useState(He.value||Ee||[]),[At,Nt]=ye.useState([]);ye.useEffect(()=>{"value"in He&&Pt(He.value||[])},[He.value]);const rt=ye.useMemo(()=>xe.map(dt=>typeof dt=="string"||typeof dt=="number"?{label:dt,value:dt}:dt),[xe]),Xe=dt=>{Nt(Ge=>Ge.filter(Ne=>Ne!==dt))},Ct=dt=>{Nt(Ge=>[].concat((0,E.Z)(Ge),[dt]))},Ht=dt=>{const Ge=mt.indexOf(dt.value),Ne=(0,E.Z)(mt);Ge===-1?Ne.push(dt.value):Ne.splice(Ge,1),"value"in He||Pt(Ne),je==null||je(Ne.filter(nt=>At.includes(nt)).sort((nt,xt)=>{const Ae=rt.findIndex(We=>We.value===nt),Re=rt.findIndex(We=>We.value===xt);return Ae-Re}))},Et=Je("checkbox",lt),rn=`${Et}-group`,[Ze,St]=(0,me.ZP)(Et),Lt=(0,b.Z)(He,["value","disabled"]),nn=xe.length?rt.map(dt=>ye.createElement(y,{prefixCls:Et,key:dt.value.toString(),disabled:"disabled"in dt?dt.disabled:He.disabled,value:dt.value,checked:mt.includes(dt.value),onChange:dt.onChange,className:`${rn}-item`,style:dt.style,title:dt.title},dt.label)):Fe,Zt={toggleOption:Ht,value:mt,disabled:He.disabled,name:He.name,registerValue:Ct,cancelValue:Xe},at=fe()(rn,{[`${rn}-rtl`]:$e==="rtl"},Ye,ht,St);return Ze(ye.createElement("div",Object.assign({className:at,style:we},Lt,{ref:Le}),ye.createElement(ce.Provider,{value:Zt},nn)))},re=ye.forwardRef(z);var le=ye.memo(re);const de=y;de.Group=le,de.__ANT_CHECKBOX=!0;var ve=de},98447:function(ft,Ke,ee){"use strict";ee.d(Ke,{C2:function(){return he}});var te=ee(17313),fe=ee(37613),be=ee(83116);const ye=ge=>{const{checkboxCls:ie}=ge,ue=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{display:"inline-flex",flexWrap:"wrap",columnGap:ge.marginXS,[`> ${ge.antCls}-row`]:{flex:1}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ue}`]:{marginInlineStart:0},[`&${ue}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ge.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,te.oN)(ge))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ge.checkboxSize,height:ge.checkboxSize,direction:"ltr",backgroundColor:ge.colorBgContainer,border:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusSM,borderCollapse:"separate",transition:`all ${ge.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ge.checkboxSize/14*5,height:ge.checkboxSize/14*8,border:`${ge.lineWidthBold}px solid ${ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ge.motionDurationFast} ${ge.motionEaseInBack}, opacity ${ge.motionDurationFast}`}},"& + span":{paddingInlineStart:ge.paddingXS,paddingInlineEnd:ge.paddingXS}})},{[`
|
|
|
${ue}:not(${ue}-disabled),
|
|
|
${ie}:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{borderColor:ge.colorPrimary}},[`${ue}:not(${ue}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:ge.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:ge.colorPrimary,borderColor:ge.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ge.motionDurationMid} ${ge.motionEaseOutBack} ${ge.motionDurationFast}`}}},[`
|
|
|
${ue}-checked:not(${ue}-disabled),
|
|
|
${ie}-checked:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:ge.colorBgContainer,borderColor:ge.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ge.fontSizeLG/2,height:ge.fontSizeLG/2,backgroundColor:ge.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ue}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,"&:after":{borderColor:ge.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ge.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:ge.colorTextDisabled}}}]};function he(ge,ie){const ue=(0,fe.TS)(ie,{checkboxCls:`.${ge}`,checkboxSize:ie.controlInteractiveSize});return[ye(ue)]}Ke.ZP=(0,be.Z)("Checkbox",(ge,ie)=>{let{prefixCls:ue}=ie;return[he(ue,ge)]})},43428:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return Ze}});var te=ee(92310),fe=ee.n(te),be=ee(33885),ye=ee(42978),he=ee(43403),ge=ee(34280),ie=ee(59301),ue=ie.createContext(null),ce=ie.createContext({}),me=ue,se=ee(20068),pe=ee(54476),oe=ee(77900),ne=ee(10228),a=ee(26112),y=ee(70425),E=function(Lt){var nn=Lt.prefixCls,Zt=Lt.className,at=Lt.style,dt=Lt.children,Ge=Lt.containerRef,Ne=Lt.id,nt=Lt.onMouseEnter,xt=Lt.onMouseOver,Ae=Lt.onMouseLeave,Re=Lt.onClick,We=Lt.onKeyDown,Be=Lt.onKeyUp,ze={onMouseEnter:nt,onMouseOver:xt,onMouseLeave:Ae,onClick:Re,onKeyDown:We,onKeyUp:Be},ot=ie.useContext(ce),Ot=ot.panel,Dt=(0,y.useComposeRef)(Ot,Ge);return ie.createElement(ie.Fragment,null,ie.createElement("div",(0,pe.Z)({id:Ne,className:fe()("".concat(nn,"-content"),Zt),style:(0,be.Z)({},at),"aria-modal":"true",role:"dialog",ref:Dt},ze),dt))},b=E,x=ee(48736);function z(St){return typeof St=="string"&&String(Number(St))===St?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(St)):St}function re(St){warning(!("wrapperClassName"in St),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!St.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var le={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function de(St,Lt){var nn,Zt,at,dt,Ge=St.prefixCls,Ne=St.open,nt=St.placement,xt=St.inline,Ae=St.push,Re=St.forceRender,We=St.autoFocus,Be=St.keyboard,ze=St.rootClassName,ot=St.rootStyle,Ot=St.zIndex,Dt=St.className,jt=St.id,Mt=St.style,Gt=St.motion,bt=St.width,fn=St.height,dn=St.children,wt=St.contentWrapperStyle,yn=St.mask,_n=St.maskClosable,Fn=St.maskMotion,xn=St.maskClassName,Zn=St.maskStyle,Jn=St.afterOpenChange,Kn=St.onClose,Vn=St.onMouseEnter,Sr=St.onMouseOver,sr=St.onMouseLeave,sn=St.onClick,Yn=St.onKeyDown,or=St.onKeyUp,$n=ie.useRef(),ir=ie.useRef(),Ar=ie.useRef();ie.useImperativeHandle(Lt,function(){return $n.current});var Ir=function(pt){var Bt=pt.keyCode,gt=pt.shiftKey;switch(Bt){case ne.Z.TAB:{if(Bt===ne.Z.TAB){if(!gt&&document.activeElement===Ar.current){var zt;(zt=ir.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(gt&&document.activeElement===ir.current){var Vt;(Vt=Ar.current)===null||Vt===void 0||Vt.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Kn&&Be&&(pt.stopPropagation(),Kn(pt));break}}};ie.useEffect(function(){if(Ne&&We){var yt;(yt=$n.current)===null||yt===void 0||yt.focus({preventScroll:!0})}},[Ne]);var wr=ie.useState(!1),Tr=(0,ye.Z)(wr,2),ar=Tr[0],$r=Tr[1],Wt=ie.useContext(me),ae;Ae===!1?ae={distance:0}:Ae===!0?ae={}:ae=Ae||{};var _e=(nn=(Zt=(at=ae)===null||at===void 0?void 0:at.distance)!==null&&Zt!==void 0?Zt:Wt==null?void 0:Wt.pushDistance)!==null&&nn!==void 0?nn:180,Pe=ie.useMemo(function(){return{pushDistance:_e,push:function(){$r(!0)},pull:function(){$r(!1)}}},[_e]);ie.useEffect(function(){if(Ne){var yt;Wt==null||(yt=Wt.push)===null||yt===void 0||yt.call(Wt)}else{var pt;Wt==null||(pt=Wt.pull)===null||pt===void 0||pt.call(Wt)}},[Ne]),ie.useEffect(function(){return function(){var yt;Wt==null||(yt=Wt.pull)===null||yt===void 0||yt.call(Wt)}},[]);var Ie=yn&&ie.createElement(oe.default,(0,pe.Z)({key:"mask"},Fn,{visible:Ne}),function(yt,pt){var Bt=yt.className,gt=yt.style;return ie.createElement("div",{className:fe()("".concat(Ge,"-mask"),Bt,xn),style:(0,be.Z)((0,be.Z)({},gt),Zn),onClick:_n&&Ne?Kn:void 0,ref:pt})}),ke=typeof Gt=="function"?Gt(nt):Gt,et={};if(ar&&_e)switch(nt){case"top":et.transform="translateY(".concat(_e,"px)");break;case"bottom":et.transform="translateY(".concat(-_e,"px)");break;case"left":et.transform="translateX(".concat(_e,"px)");break;default:et.transform="translateX(".concat(-_e,"px)");break}nt==="left"||nt==="right"?et.width=z(bt):et.height=z(fn);var vt={onMouseEnter:Vn,onMouseOver:Sr,onMouseLeave:sr,onClick:sn,onKeyDown:Yn,onKeyUp:or},Qt=ie.createElement(oe.default,(0,pe.Z)({key:"panel"},ke,{visible:Ne,forceRender:Re,onVisibleChanged:function(pt){Jn==null||Jn(pt)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(yt,pt){var Bt=yt.className,gt=yt.style;return ie.createElement("div",(0,pe.Z)({className:fe()("".concat(Ge,"-content-wrapper"),Bt),style:(0,be.Z)((0,be.Z)((0,be.Z)({},et),gt),wt)},(0,a.Z)(St,{data:!0})),ie.createElement(b,(0,pe.Z)({id:jt,containerRef:pt,prefixCls:Ge,className:Dt,style:Mt},vt),dn))}),Ut=(0,be.Z)({},ot);return Ot&&(Ut.zIndex=Ot),ie.createElement(me.Provider,{value:Pe},ie.createElement("div",{className:fe()(Ge,"".concat(Ge,"-").concat(nt),ze,(dt={},(0,se.Z)(dt,"".concat(Ge,"-open"),Ne),(0,se.Z)(dt,"".concat(Ge,"-inline"),xt),dt)),style:Ut,tabIndex:-1,ref:$n,onKeyDown:Ir},Ie,ie.createElement("div",{tabIndex:0,ref:ir,style:le,"aria-hidden":"true","data-sentinel":"start"}),Qt,ie.createElement("div",{tabIndex:0,ref:Ar,style:le,"aria-hidden":"true","data-sentinel":"end"})))}var ve=ie.forwardRef(de),Se=ve,Le=function(Lt){var nn=Lt.open,Zt=nn===void 0?!1:nn,at=Lt.prefixCls,dt=at===void 0?"rc-drawer":at,Ge=Lt.placement,Ne=Ge===void 0?"right":Ge,nt=Lt.autoFocus,xt=nt===void 0?!0:nt,Ae=Lt.keyboard,Re=Ae===void 0?!0:Ae,We=Lt.width,Be=We===void 0?378:We,ze=Lt.mask,ot=ze===void 0?!0:ze,Ot=Lt.maskClosable,Dt=Ot===void 0?!0:Ot,jt=Lt.getContainer,Mt=Lt.forceRender,Gt=Lt.afterOpenChange,bt=Lt.destroyOnClose,fn=Lt.onMouseEnter,dn=Lt.onMouseOver,wt=Lt.onMouseLeave,yn=Lt.onClick,_n=Lt.onKeyDown,Fn=Lt.onKeyUp,xn=Lt.panelRef,Zn=ie.useState(!1),Jn=(0,ye.Z)(Zn,2),Kn=Jn[0],Vn=Jn[1],Sr=ie.useState(!1),sr=(0,ye.Z)(Sr,2),sn=sr[0],Yn=sr[1];(0,ge.Z)(function(){Yn(!0)},[]);var or=sn?Zt:!1,$n=ie.useRef(),ir=ie.useRef();(0,ge.Z)(function(){or&&(ir.current=document.activeElement)},[or]);var Ar=function($r){var Wt;if(Vn($r),Gt==null||Gt($r),!$r&&ir.current&&!((Wt=$n.current)!==null&&Wt!==void 0&&Wt.contains(ir.current))){var ae;(ae=ir.current)===null||ae===void 0||ae.focus({preventScroll:!0})}},Ir=ie.useMemo(function(){return{panel:xn}},[xn]);if(!Mt&&!Kn&&!or&&bt)return null;var wr={onMouseEnter:fn,onMouseOver:dn,onMouseLeave:wt,onClick:yn,onKeyDown:_n,onKeyUp:Fn},Tr=(0,be.Z)((0,be.Z)({},Lt),{},{open:or,prefixCls:dt,placement:Ne,autoFocus:xt,keyboard:Re,width:Be,mask:ot,maskClosable:Dt,inline:jt===!1,afterOpenChange:Ar,ref:$n},wr);return ie.createElement(ce.Provider,{value:Ir},ie.createElement(he.Z,{open:or||Mt||Kn,autoDestroy:!1,getContainer:jt,autoLock:ot&&(or||Kn)},ie.createElement(Se,Tr)))},Ee=Le,Fe=Ee,xe=ee(62892),lt=ee(36355),Ye=ee(32441),ht=ee(47729),je=St=>{const{prefixCls:Lt,title:nn,footer:Zt,extra:at,closeIcon:dt,closable:Ge,onClose:Ne,headerStyle:nt,drawerStyle:xt,bodyStyle:Ae,footerStyle:Re,children:We}=St,Be=ie.useCallback(jt=>ie.createElement("button",{type:"button",onClick:Ne,"aria-label":"Close",className:`${Lt}-close`},jt),[Ne]),[ze,ot]=(0,ht.Z)(Ge,dt,Be,void 0,!0),Ot=ie.useMemo(()=>!nn&&!ze?null:ie.createElement("div",{style:nt,className:fe()(`${Lt}-header`,{[`${Lt}-header-close-only`]:ze&&!nn&&!at})},ie.createElement("div",{className:`${Lt}-header-title`},ot,nn&&ie.createElement("div",{className:`${Lt}-title`},nn)),at&&ie.createElement("div",{className:`${Lt}-extra`},at)),[ze,ot,at,nt,Lt,nn]),Dt=ie.useMemo(()=>{if(!Zt)return null;const jt=`${Lt}-footer`;return ie.createElement("div",{className:jt,style:Re},Zt)},[Zt,Re,Lt]);return ie.createElement("div",{className:`${Lt}-wrapper-body`,style:xt},Ot,ie.createElement("div",{className:`${Lt}-body`,style:Ae},We),Dt)},He=ee(33234),Je=ee(83116),$e=ee(37613),Pt=St=>{const{componentCls:Lt,motionDurationSlow:nn}=St,Zt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${nn}`}}};return{[Lt]:{[`${Lt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${nn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Lt}-panel-motion`]:{"&-left":[Zt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Zt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Zt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Zt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const At=St=>{const{componentCls:Lt,zIndexPopup:nn,colorBgMask:Zt,colorBgElevated:at,motionDurationSlow:dt,motionDurationMid:Ge,padding:Ne,paddingLG:nt,fontSizeLG:xt,lineHeightLG:Ae,lineWidth:Re,lineType:We,colorSplit:Be,marginSM:ze,colorIcon:ot,colorIconHover:Ot,colorText:Dt,fontWeightStrong:jt,footerPaddingBlock:Mt,footerPaddingInline:Gt}=St,bt=`${Lt}-content-wrapper`;return{[Lt]:{position:"fixed",inset:0,zIndex:nn,pointerEvents:"none","&-pure":{position:"relative",background:at,[`&${Lt}-left`]:{boxShadow:St.boxShadowDrawerLeft},[`&${Lt}-right`]:{boxShadow:St.boxShadowDrawerRight},[`&${Lt}-top`]:{boxShadow:St.boxShadowDrawerUp},[`&${Lt}-bottom`]:{boxShadow:St.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Lt}-mask`]:{position:"absolute",inset:0,zIndex:nn,background:Zt,pointerEvents:"auto"},[bt]:{position:"absolute",zIndex:nn,maxWidth:"100vw",transition:`all ${dt}`,"&-hidden":{display:"none"}},[`&-left > ${bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:St.boxShadowDrawerLeft},[`&-right > ${bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:St.boxShadowDrawerRight},[`&-top > ${bt}`]:{top:0,insetInline:0,boxShadow:St.boxShadowDrawerUp},[`&-bottom > ${bt}`]:{bottom:0,insetInline:0,boxShadow:St.boxShadowDrawerDown},[`${Lt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:at,pointerEvents:"auto"},[`${Lt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Lt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ne}px ${nt}px`,fontSize:xt,lineHeight:Ae,borderBottom:`${Re}px ${We} ${Be}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Lt}-extra`]:{flex:"none"},[`${Lt}-close`]:{display:"inline-block",marginInlineEnd:ze,color:ot,fontWeight:jt,fontSize:xt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ge}`,textRendering:"auto","&:focus, &:hover":{color:Ot,textDecoration:"none"}},[`${Lt}-title`]:{flex:1,margin:0,color:Dt,fontWeight:St.fontWeightStrong,fontSize:xt,lineHeight:Ae},[`${Lt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:nt,overflow:"auto"},[`${Lt}-footer`]:{flexShrink:0,padding:`${Mt}px ${Gt}px`,borderTop:`${Re}px ${We} ${Be}`},"&-rtl":{direction:"rtl"}}}};var Nt=(0,Je.Z)("Drawer",St=>{const Lt=(0,$e.TS)(St,{});return[At(Lt),Pt(Lt)]},St=>({zIndexPopup:St.zIndexPopupBase,footerPaddingBlock:St.paddingXS,footerPaddingInline:St.padding})),rt=ee(11575),Xe=function(St,Lt){var nn={};for(var Zt in St)Object.prototype.hasOwnProperty.call(St,Zt)&&Lt.indexOf(Zt)<0&&(nn[Zt]=St[Zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Zt=Object.getOwnPropertySymbols(St);at<Zt.length;at++)Lt.indexOf(Zt[at])<0&&Object.prototype.propertyIsEnumerable.call(St,Zt[at])&&(nn[Zt[at]]=St[Zt[at]]);return nn};const Ct=null,Ht={distance:180},Et=St=>{var Lt;const{rootClassName:nn,width:Zt,height:at,size:dt="default",mask:Ge=!0,push:Ne=Ht,open:nt,afterOpenChange:xt,onClose:Ae,prefixCls:Re,getContainer:We,style:Be,className:ze,visible:ot,afterVisibleChange:Ot}=St,Dt=Xe(St,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Mt,direction:Gt,drawer:bt}=ie.useContext(lt.E_),fn=Mt("drawer",Re),[dn,wt]=Nt(fn),yn=We===void 0&&jt?()=>jt(document.body):We,_n=fe()({"no-mask":!Ge,[`${fn}-rtl`]:Gt==="rtl"},nn,wt),Fn=ie.useMemo(()=>Zt!=null?Zt:dt==="large"?736:378,[Zt,dt]),xn=ie.useMemo(()=>at!=null?at:dt==="large"?736:378,[at,dt]),Zn={motionName:(0,xe.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Jn=Vn=>({motionName:(0,xe.m)(fn,`panel-motion-${Vn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Kn=(0,rt.H)();return dn(ie.createElement(He.BR,null,ie.createElement(Ye.Ux,{status:!0,override:!0},ie.createElement(Fe,Object.assign({prefixCls:fn,onClose:Ae,maskMotion:Zn,motion:Jn},Dt,{open:nt!=null?nt:ot,mask:Ge,push:Ne,width:Fn,height:xn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Be),className:fe()(bt==null?void 0:bt.className,ze),rootClassName:_n,getContainer:yn,afterOpenChange:xt!=null?xt:Ot,panelRef:Kn}),ie.createElement(je,Object.assign({prefixCls:fn},Dt,{onClose:Ae}))))))},rn=St=>{const{prefixCls:Lt,style:nn,className:Zt,placement:at="right"}=St,dt=Xe(St,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ie.useContext(lt.E_),Ne=Ge("drawer",Lt),[nt,xt]=Nt(Ne),Ae=fe()(Ne,`${Ne}-pure`,`${Ne}-${at}`,xt,Zt);return nt(ie.createElement("div",{className:Ae,style:nn},ie.createElement(je,Object.assign({prefixCls:Ne},dt))))};Et._InternalPanelDoNotUseOrYouWillBeFired=rn;var Ze=Et},91857:function(ft,Ke,ee){"use strict";var te=ee(59301),fe=ee(38819),be=ee(92310),ye=ee.n(be),he=ee(31561),ge=ee(70425),ie=ee(18929),ue=ee(2738),ce=ee(79676),me=ee(53487),se=ee(92343),pe=ee(36355),oe=ee(20834),ne=ee(40875),a=ee(88088),y=ee(47211);const E=null,b=le=>{const{menu:de,arrow:ve,prefixCls:Se,children:Le,trigger:Ee,disabled:Fe,dropdownRender:xe,getPopupContainer:lt,overlayClassName:Ye,rootClassName:ht,open:we,onOpenChange:je,visible:He,onVisibleChange:Je,mouseEnterDelay:$e=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:Pt=!0,placement:At="",overlay:Nt,transitionName:rt}=le,{getPopupContainer:Xe,getPrefixCls:Ct,direction:Ht}=te.useContext(pe.E_),Et=te.useMemo(()=>{const ze=Ct();return rt!==void 0?rt:At.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Ct,At,rt]),rn=te.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:Ht==="rtl"?"bottomRight":"bottomLeft",[At,Ht]),Ze=Ct("dropdown",Se),[St,Lt]=(0,y.Z)(Ze),[,nn]=(0,a.Z)(),Zt=te.Children.only(Le),at=(0,se.Tm)(Zt,{className:ye()(`${Ze}-trigger`,{[`${Ze}-rtl`]:Ht==="rtl"},Zt.props.className),disabled:Fe}),dt=Fe?[]:Ee;let Ge;dt&&dt.includes("contextMenu")&&(Ge=!0);const[Ne,nt]=(0,ie.Z)(!1,{value:we!=null?we:He}),xt=(0,ge.useEvent)(ze=>{je==null||je(ze),Je==null||Je(ze),nt(ze)}),Ae=ye()(Ye,ht,Lt,{[`${Ze}-rtl`]:Ht==="rtl"}),Re=(0,ce.Z)({arrowPointAtCenter:typeof ve=="object"&&ve.pointAtCenter,autoAdjustOverflow:Pt,offset:nn.marginXXS,arrowWidth:ve?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),We=te.useCallback(()=>{nt(!1)},[]),Be=()=>{let ze;return de!=null&&de.items?ze=te.createElement(oe.default,Object.assign({},de)):typeof Nt=="function"?ze=Nt():ze=Nt,xe&&(ze=xe(ze)),ze=te.Children.only(typeof ze=="string"?te.createElement("span",null,ze):ze),te.createElement(ne.J,{prefixCls:`${Ze}-menu`,expandIcon:te.createElement("span",{className:`${Ze}-menu-submenu-arrow`},te.createElement(fe.Z,{className:`${Ze}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:ot=>{let{mode:Ot}=ot}},ze)};return St(te.createElement(he.Z,Object.assign({alignPoint:Ge},(0,ue.Z)(le,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:mt,visible:Ne,builtinPlacements:Re,arrow:!!ve,overlayClassName:Ae,prefixCls:Ze,getPopupContainer:lt||Xe,transitionName:Et,trigger:dt,overlay:Be,placement:rn,onVisibleChange:xt}),at))};function x(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,me.Z)(b,"dropdown",le=>le,x),re=le=>te.createElement(z,Object.assign({},le),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=re,Ke.Z=b},38854:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return a}});var te=ee(91857),fe=ee(92310),be=ee.n(fe),ye=ee(59301),he=ee(18785),ge=ee(3113),ie=ee(36355),ue=ee(81327),ce=ee(33234),me=ee(47211),se=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const pe=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ye.useContext(ie.E_),{prefixCls:z,type:re="default",danger:le,disabled:de,loading:ve,onClick:Se,htmlType:Le,children:Ee,className:Fe,menu:xe,arrow:lt,autoFocus:Ye,overlay:ht,trigger:we,align:je,open:He,onOpenChange:Je,placement:$e,getPopupContainer:mt,href:Pt,icon:At=ye.createElement(he.Z,null),title:Nt,buttonsRender:rt=Be=>Be,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:Ht,overlayStyle:Et,destroyPopupOnHide:rn,dropdownRender:Ze}=y,St=se(y,["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"]),Lt=b("dropdown",z),nn=`${Lt}-button`,[Zt,at]=(0,me.Z)(Lt),dt={menu:xe,arrow:lt,autoFocus:Ye,align:je,disabled:de,trigger:de?[]:we,onOpenChange:Je,getPopupContainer:mt||E,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:Ht,overlayStyle:Et,destroyPopupOnHide:rn,dropdownRender:Ze},{compactSize:Ge,compactItemClassnames:Ne}=(0,ce.ri)(Lt,x),nt=be()(nn,Ne,Fe,at);"overlay"in y&&(dt.overlay=ht),"open"in y&&(dt.open=He),"placement"in y?dt.placement=$e:dt.placement=x==="rtl"?"bottomLeft":"bottomRight";const xt=ye.createElement(ge.ZP,{type:re,danger:le,disabled:de,loading:ve,onClick:Se,htmlType:Le,href:Pt,title:Nt},Ee),Ae=ye.createElement(ge.ZP,{type:re,danger:le,icon:At}),[Re,We]=rt([xt,Ae]);return Zt(ye.createElement(ue.Z.Compact,Object.assign({className:nt,size:Ge,block:!0},St),Re,ye.createElement(te.Z,Object.assign({},dt),We)))};pe.__ANT_BUTTON=!0;var oe=pe;const ne=te.Z;ne.Button=oe;var a=ne},47211:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return se}});var te=ee(17313),fe=ee(13826),be=ee(92899),ye=ee(29878),he=ee(19447),ge=ee(83116),ie=ee(37613),ce=pe=>{const{componentCls:oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=pe,E=`${ne}-item`;return{[`${oe}, ${oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const me=pe=>{const{componentCls:oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:re,fontSize:le,dropdownEdgeChildPadding:de,colorTextDisabled:ve,fontSizeIcon:Se,controlPaddingHorizontal:Le,colorBgElevated:Ee}=pe;return[{[oe]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:Se}},[`${oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:Se},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${oe}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottomLeft,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomLeft,
|
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottom,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottom,
|
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottomRight,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topLeft,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topLeft,
|
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-top,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-top,
|
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topRight,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomLeft,
|
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottom,
|
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topLeft,
|
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-top,
|
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topRight`]:{animationName:fe.ly}})},(0,he.ZP)(pe,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${oe} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${oe}, ${oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary},(0,te.Qy)(pe)),{[`${ne}-item-group-title`]:{padding:`${re}px ${Le}px`,color:pe.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:le,marginInlineEnd:pe.marginXS,fontSize:pe.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${Le}px`,color:pe.colorText,fontWeight:"normal",fontSize:le,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:pe.controlItemBgHover}},(0,te.Qy)(pe)),{"&-selected":{color:pe.colorPrimary,backgroundColor:pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:pe.controlItemBgActiveHover}},"&-disabled":{color:ve,cursor:"not-allowed","&:hover":{color:ve,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${pe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:pe.colorSplit},[`${oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:pe.paddingXS,[`${oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:pe.colorTextDescription,fontSize:Se,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${pe.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Le+pe.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${oe}-menu-submenu-title`]:{[`&, ${oe}-menu-submenu-arrow-icon`]:{color:ve,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${oe}-menu-submenu-title`]:{color:pe.colorPrimary}})}},[(0,fe.oN)(pe,"slide-up"),(0,fe.oN)(pe,"slide-down"),(0,be.Fm)(pe,"move-up"),(0,be.Fm)(pe,"move-down"),(0,ye._y)(pe,"zoom-big")]]};var se=(0,ge.Z)("Dropdown",(pe,oe)=>{let{rootPrefixCls:ne}=oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:re,borderRadiusLG:le}=pe,de=(E-b*x)/2,{dropdownArrowOffset:ve}=(0,he.fS)({contentRadius:le}),Se=(0,ie.TS)(pe,{menuCls:`${re}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ve,dropdownPaddingVertical:de,dropdownEdgeChildPadding:z});return[me(Se),ce(Se)]},pe=>({zIndexPopup:pe.zIndexPopupBase+50}))},8628:function(ft,Ke,ee){"use strict";var te=ee(59301),fe=ee(34280),be=ee(56762),ye=ee(69507);function he(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,te.useRef)({}),ue=(0,be.Z)(),ce=(0,ye.ZP)();return(0,fe.Z)(()=>{const me=ce.subscribe(se=>{ie.current=se,ge&&ue()});return()=>ce.unsubscribe(me)},[]),ie.current}Ke.Z=he},11611:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return Ut}});var te=ee(59301),fe=ee(15277),be=ee(92310),ye=ee.n(be),he=ee(54476),ge=ee(33885),ie=ee(20068),ue=ee(42978),ce=ee(76190),me=ee(75931),se=ee(55468),pe=ee(18929),oe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ne=te.createContext(null),a=0;function y(yt,pt){var Bt=te.useState(function(){return a+=1,String(a)}),gt=(0,ue.Z)(Bt,1),zt=gt[0],Vt=te.useContext(ne),Rt={data:pt,canPreview:yt};return te.useEffect(function(){if(Vt)return Vt.register(zt,Rt)},[]),te.useEffect(function(){Vt&&Vt.register(zt,Rt)},[yt,pt]),zt}function E(yt){return new Promise(function(pt){var Bt=document.createElement("img");Bt.onerror=function(){return pt(!1)},Bt.onload=function(){return pt(!0)},Bt.src=yt})}function b(yt){var pt=yt.src,Bt=yt.isCustomPlaceholder,gt=yt.fallback,zt=(0,te.useState)(Bt?"loading":"normal"),Vt=(0,ue.Z)(zt,2),Rt=Vt[0],kt=Vt[1],Jt=(0,te.useRef)(!1),un=Rt==="error";(0,te.useEffect)(function(){E(pt).then(function(pn){pn||kt("error")})},[pt]),(0,te.useEffect)(function(){Bt&&!Jt.current?kt("loading"):un&&kt("normal")},[pt]);var Dn=function(){kt("normal")},kn=function(Rn){Jt.current=!1,Rt==="loading"&&Rn!=null&&Rn.complete&&(Rn.naturalWidth||Rn.naturalHeight)&&(Jt.current=!0,Dn())},Xn=un&>?{src:gt}:{onLoad:Dn,src:pt};return[kn,Xn,Rt]}var x=ee(86923),z=ee(8224),re=ee(10228),le=ee(48736);function de(yt,pt,Bt,gt){var zt=pt+Bt,Vt=(Bt-gt)/2;if(Bt>gt){if(pt>0)return(0,ie.Z)({},yt,Vt);if(pt<0&&zt<gt)return(0,ie.Z)({},yt,-Vt)}else if(pt<0||zt>gt)return(0,ie.Z)({},yt,pt<0?Vt:-Vt);return{}}function ve(yt,pt,Bt,gt){var zt=(0,se.g1)(),Vt=zt.width,Rt=zt.height,kt=null;return yt<=Vt&&pt<=Rt?kt={x:0,y:0}:(yt>Vt||pt>Rt)&&(kt=(0,ge.Z)((0,ge.Z)({},de("x",Bt,yt,Vt)),de("y",gt,pt,Rt))),kt}var Se=ee(13697),Le=ee(16089),Ee={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Fe(yt,pt,Bt,gt){var zt=(0,te.useRef)(null),Vt=(0,te.useRef)([]),Rt=(0,te.useState)(Ee),kt=(0,ue.Z)(Rt,2),Jt=kt[0],un=kt[1],Dn=function(Rn){un(Ee),gt&&!(0,Se.Z)(Ee,Jt)&>({transform:Ee,action:Rn})},kn=function(Rn,lr){zt.current===null&&(Vt.current=[],zt.current=(0,Le.Z)(function(){un(function(rr){var $t=rr;return Vt.current.forEach(function(ur){$t=(0,ge.Z)((0,ge.Z)({},$t),ur)}),zt.current=null,gt==null||gt({transform:$t,action:lr}),$t})})),Vt.current.push((0,ge.Z)((0,ge.Z)({},Jt),Rn))},Xn=function(Rn,lr,rr,$t){var ur=yt.current,qr=ur.width,xr=ur.height,Dr=ur.offsetWidth,Zr=ur.offsetHeight,an=ur.offsetLeft,bn=ur.offsetTop,Cn=Rn,Pn=Jt.scale*Rn;Pn>Bt?(Cn=Bt/Jt.scale,Pn=Bt):Pn<pt&&(Cn=pt/Jt.scale,Pn=pt);var _r=rr!=null?rr:innerWidth/2,fr=$t!=null?$t:innerHeight/2,Or=Cn-1,Hr=Or*qr*.5,so=Or*xr*.5,co=Or*(_r-Jt.x-an),yo=Or*(fr-Jt.y-bn),So=Jt.x-(co-Hr),wo=Jt.y-(yo-so);if(Rn<1&&Pn===1){var Po=Dr*Pn,xo=Zr*Pn,Lo=(0,se.g1)(),Bo=Lo.width,Wr=Lo.height;Po<=Bo&&xo<=Wr&&(So=0,wo=0)}kn({x:So,y:wo,scale:Pn},lr)};return{transform:Jt,resetTransform:Dn,updateTransform:kn,dispatchZoomChange:Xn}}var xe=ee(43403),lt=ee(77900),Ye=function(pt){var Bt=pt.visible,gt=pt.maskTransitionName,zt=pt.getContainer,Vt=pt.prefixCls,Rt=pt.rootClassName,kt=pt.icons,Jt=pt.countRender,un=pt.showSwitch,Dn=pt.showProgress,kn=pt.current,Xn=pt.transform,pn=pt.count,Rn=pt.scale,lr=pt.minScale,rr=pt.maxScale,$t=pt.closeIcon,ur=pt.onSwitchLeft,qr=pt.onSwitchRight,xr=pt.onClose,Dr=pt.onZoomIn,Zr=pt.onZoomOut,an=pt.onRotateRight,bn=pt.onRotateLeft,Cn=pt.onFlipX,Pn=pt.onFlipY,_r=pt.toolbarRender,fr=(0,te.useContext)(ne),Or=kt.rotateLeft,Hr=kt.rotateRight,so=kt.zoomIn,co=kt.zoomOut,yo=kt.close,So=kt.left,wo=kt.right,Po=kt.flipX,xo=kt.flipY,Lo="".concat(Vt,"-operations-operation");te.useEffect(function(){var Gr=function(bo){bo.keyCode===re.Z.ESC&&xr()};return Bt&&window.addEventListener("keydown",Gr),function(){window.removeEventListener("keydown",Gr)}},[Bt]);var Bo=[{icon:xo,onClick:Pn,type:"flipY"},{icon:Po,onClick:Cn,type:"flipX"},{icon:Or,onClick:bn,type:"rotateLeft"},{icon:Hr,onClick:an,type:"rotateRight"},{icon:co,onClick:Zr,type:"zoomOut",disabled:Rn===lr},{icon:so,onClick:Dr,type:"zoomIn",disabled:Rn===rr}],Wr=Bo.map(function(Gr){var to,bo=Gr.icon,Oo=Gr.onClick,zr=Gr.type,jo=Gr.disabled;return te.createElement("div",{className:ye()(Lo,(to={},(0,ie.Z)(to,"".concat(Vt,"-operations-operation-").concat(zr),!0),(0,ie.Z)(to,"".concat(Vt,"-operations-operation-disabled"),!!jo),to)),onClick:Oo,key:zr},bo)}),Kr=te.createElement("div",{className:"".concat(Vt,"-operations")},Wr);return te.createElement(lt.default,{visible:Bt,motionName:gt},function(Gr){var to=Gr.className,bo=Gr.style;return te.createElement(xe.Z,{open:!0,getContainer:zt!=null?zt:document.body},te.createElement("div",{className:ye()("".concat(Vt,"-operations-wrapper"),to,Rt),style:bo},$t===null?null:te.createElement("button",{className:"".concat(Vt,"-close"),onClick:xr},$t||yo),un&&te.createElement(te.Fragment,null,te.createElement("div",{className:ye()("".concat(Vt,"-switch-left"),(0,ie.Z)({},"".concat(Vt,"-switch-left-disabled"),kn===0)),onClick:ur},So),te.createElement("div",{className:ye()("".concat(Vt,"-switch-right"),(0,ie.Z)({},"".concat(Vt,"-switch-right-disabled"),kn===pn-1)),onClick:qr},wo)),te.createElement("div",{className:"".concat(Vt,"-footer")},Dn&&te.createElement("div",{className:"".concat(Vt,"-progress")},Jt?Jt(kn+1,pn):"".concat(kn+1," / ").concat(pn)),_r?_r(Kr,(0,ge.Z)({icons:{flipYIcon:Wr[0],flipXIcon:Wr[1],rotateLeftIcon:Wr[2],rotateRightIcon:Wr[3],zoomOutIcon:Wr[4],zoomInIcon:Wr[5]},actions:{onFlipY:Pn,onFlipX:Cn,onRotateLeft:bn,onRotateRight:an,onZoomOut:Zr,onZoomIn:Dr},transform:Xn},fr?{current:kn,total:pn}:{})):Kr)))})},ht=Ye,we=1,je=1,He=["fallback","src","imgRef"],Je=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],$e=function(pt){var Bt=pt.fallback,gt=pt.src,zt=pt.imgRef,Vt=(0,me.Z)(pt,He),Rt=b({src:gt,fallback:Bt}),kt=(0,ue.Z)(Rt,2),Jt=kt[0],un=kt[1];return te.createElement("img",(0,he.Z)({ref:function(kn){zt.current=kn,Jt(kn)}},Vt,un))},mt=function(pt){var Bt=pt.prefixCls,gt=pt.src,zt=pt.alt,Vt=pt.fallback,Rt=pt.movable,kt=Rt===void 0?!0:Rt,Jt=pt.onClose,un=pt.visible,Dn=pt.icons,kn=Dn===void 0?{}:Dn,Xn=pt.rootClassName,pn=pt.closeIcon,Rn=pt.getContainer,lr=pt.current,rr=lr===void 0?0:lr,$t=pt.count,ur=$t===void 0?1:$t,qr=pt.countRender,xr=pt.scaleStep,Dr=xr===void 0?.5:xr,Zr=pt.minScale,an=Zr===void 0?1:Zr,bn=pt.maxScale,Cn=bn===void 0?50:bn,Pn=pt.transitionName,_r=Pn===void 0?"zoom":Pn,fr=pt.maskTransitionName,Or=fr===void 0?"fade":fr,Hr=pt.imageRender,so=pt.imgCommonProps,co=pt.toolbarRender,yo=pt.onTransform,So=pt.onChange,wo=(0,me.Z)(pt,Je),Po=(0,te.useRef)(),xo=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Lo=(0,te.useState)(!1),Bo=(0,ue.Z)(Lo,2),Wr=Bo[0],Kr=Bo[1],Gr=(0,te.useContext)(ne),to=Gr&&ur>1,bo=Gr&&ur>=1,Oo=Fe(Po,an,Cn,yo),zr=Oo.transform,jo=Oo.resetTransform,no=Oo.updateTransform,Wo=Oo.dispatchZoomChange,Ro=(0,te.useState)(!0),Jo=(0,ue.Z)(Ro,2),Ko=Jo[0],ko=Jo[1],Mo=zr.rotate,ho=zr.scale,Vo=zr.x,qo=zr.y,ei=ye()((0,ie.Z)({},"".concat(Bt,"-moving"),Wr));(0,te.useEffect)(function(){Ko||ko(!0)},[Ko]);var ci=function(){jo("close")},ti=function(){Wo(we+Dr,"zoomIn")},Si=function(){Wo(we/(we+Dr),"zoomOut")},Gn=function(){no({rotate:Mo+90},"rotateRight")},wn=function(){no({rotate:Mo-90},"rotateLeft")},Ln=function(){no({flipX:!zr.flipX},"flipX")},In=function(){no({flipY:!zr.flipY},"flipY")},hr=function(dr){dr==null||dr.preventDefault(),dr==null||dr.stopPropagation(),rr>0&&(ko(!1),jo("prev"),So==null||So(rr-1,rr))},Nr=function(dr){dr==null||dr.preventDefault(),dr==null||dr.stopPropagation(),rr<ur-1&&(ko(!1),jo("next"),So==null||So(rr+1,rr))},ao=function(){if(un&&Wr){Kr(!1);var dr=xo.current,Yo=dr.transformX,Do=dr.transformY,Eo=Vo!==Yo&&qo!==Do;if(!Eo)return;var Pr=Po.current.offsetWidth*ho,oi=Po.current.offsetHeight*ho,ii=Po.current.getBoundingClientRect(),gi=ii.left,Li=ii.top,fi=Mo%180!==0,To=ve(fi?oi:Pr,fi?Pr:oi,gi,Li);To&&no((0,ge.Z)({},To),"dragRebound")}},lo=function(dr){!kt||dr.button!==0||(dr.preventDefault(),dr.stopPropagation(),xo.current={deltaX:dr.pageX-zr.x,deltaY:dr.pageY-zr.y,transformX:zr.x,transformY:zr.y},Kr(!0))},uo=function(dr){un&&Wr&&no({x:dr.pageX-xo.current.deltaX,y:dr.pageY-xo.current.deltaY},"move")},fo=function(dr){if(!(!un||dr.deltaY==0)){var Yo=Math.abs(dr.deltaY/100),Do=Math.min(Yo,je),Eo=we+Do*Dr;dr.deltaY>0&&(Eo=we/Eo),Wo(Eo,"wheel",dr.clientX,dr.clientY)}},Ho=function(dr){!un||!to||(dr.keyCode===re.Z.LEFT?hr():dr.keyCode===re.Z.RIGHT&&Nr())},Co=function(dr){un&&(ho!==1?no({x:0,y:0,scale:1},"doubleClick"):Wo(we+Dr,"doubleClick",dr.clientX,dr.clientY))};(0,te.useEffect)(function(){var Qr,dr,Yo,Do;if(kt){Yo=(0,z.Z)(window,"mouseup",ao,!1),Do=(0,z.Z)(window,"mousemove",uo,!1);try{window.top!==window.self&&(Qr=(0,z.Z)(window.top,"mouseup",ao,!1),dr=(0,z.Z)(window.top,"mousemove",uo,!1))}catch(Eo){(0,le.Kp)(!1,"[rc-image] ".concat(Eo))}}return function(){var Eo,Pr,oi,ii;(Eo=Yo)===null||Eo===void 0||Eo.remove(),(Pr=Do)===null||Pr===void 0||Pr.remove(),(oi=Qr)===null||oi===void 0||oi.remove(),(ii=dr)===null||ii===void 0||ii.remove()}},[un,Wr,Vo,qo,Mo,kt]),(0,te.useEffect)(function(){var Qr=(0,z.Z)(window,"keydown",Ho,!1);return function(){Qr.remove()}},[un,to,rr]);var ri=te.createElement($e,(0,he.Z)({},so,{width:pt.width,height:pt.height,imgRef:Po,className:"".concat(Bt,"-img"),alt:zt,style:{transform:"translate3d(".concat(zr.x,"px, ").concat(zr.y,"px, 0) scale3d(").concat(zr.flipX?"-":"").concat(ho,", ").concat(zr.flipY?"-":"").concat(ho,", 1) rotate(").concat(Mo,"deg)"),transitionDuration:!Ko&&"0s"},fallback:Vt,src:gt,onWheel:fo,onMouseDown:lo,onDoubleClick:Co}));return te.createElement(te.Fragment,null,te.createElement(x.Z,(0,he.Z)({transitionName:_r,maskTransitionName:Or,closable:!1,keyboard:!0,prefixCls:Bt,onClose:Jt,visible:un,wrapClassName:ei,rootClassName:Xn,getContainer:Rn},wo,{afterClose:ci}),te.createElement("div",{className:"".concat(Bt,"-img-wrapper")},Hr?Hr(ri,(0,ge.Z)({transform:zr},Gr?{current:rr}:{})):ri)),te.createElement(ht,{visible:un,transform:zr,maskTransitionName:Or,closeIcon:pn,getContainer:Rn,prefixCls:Bt,rootClassName:Xn,icons:kn,countRender:qr,showSwitch:to,showProgress:bo,current:rr,count:ur,scale:ho,minScale:an,maxScale:Cn,toolbarRender:co,onSwitchLeft:hr,onSwitchRight:Nr,onZoomIn:ti,onZoomOut:Si,onRotateRight:Gn,onRotateLeft:wn,onFlipX:Ln,onFlipY:In,onClose:Jt}))},Pt=mt,At=ee(94480);function Nt(yt){var pt=te.useState({}),Bt=(0,ue.Z)(pt,2),gt=Bt[0],zt=Bt[1],Vt=te.useCallback(function(kt,Jt){return zt(function(un){return(0,ge.Z)((0,ge.Z)({},un),{},(0,ie.Z)({},kt,Jt))}),function(){zt(function(un){var Dn=(0,ge.Z)({},un);return delete Dn[kt],Dn})}},[]),Rt=te.useMemo(function(){return yt?yt.map(function(kt){if(typeof kt=="string")return{data:{src:kt}};var Jt={};return Object.keys(kt).forEach(function(un){["src"].concat((0,At.Z)(oe)).includes(un)&&(Jt[un]=kt[un])}),{data:Jt}}):Object.keys(gt).reduce(function(kt,Jt){var un=gt[Jt],Dn=un.canPreview,kn=un.data;return Dn&&kt.push({data:kn,id:Jt}),kt},[])},[yt,gt]);return[Rt,Vt]}var rt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xe=["src"],Ct=function(pt){var Bt,gt=pt.previewPrefixCls,zt=gt===void 0?"rc-image-preview":gt,Vt=pt.children,Rt=pt.icons,kt=Rt===void 0?{}:Rt,Jt=pt.items,un=pt.preview,Dn=pt.fallback,kn=(0,ce.Z)(un)==="object"?un:{},Xn=kn.visible,pn=kn.onVisibleChange,Rn=kn.getContainer,lr=kn.current,rr=kn.movable,$t=kn.minScale,ur=kn.maxScale,qr=kn.countRender,xr=kn.closeIcon,Dr=kn.onChange,Zr=kn.onTransform,an=kn.toolbarRender,bn=kn.imageRender,Cn=(0,me.Z)(kn,rt),Pn=Nt(Jt),_r=(0,ue.Z)(Pn,2),fr=_r[0],Or=_r[1],Hr=(0,pe.Z)(0,{value:lr}),so=(0,ue.Z)(Hr,2),co=so[0],yo=so[1],So=(0,te.useState)(!1),wo=(0,ue.Z)(So,2),Po=wo[0],xo=wo[1],Lo=((Bt=fr[co])===null||Bt===void 0?void 0:Bt.data)||{},Bo=Lo.src,Wr=(0,me.Z)(Lo,Xe),Kr=(0,pe.Z)(!!Xn,{value:Xn,onChange:function(Mo,ho){pn==null||pn(Mo,ho,co)}}),Gr=(0,ue.Z)(Kr,2),to=Gr[0],bo=Gr[1],Oo=(0,te.useState)(null),zr=(0,ue.Z)(Oo,2),jo=zr[0],no=zr[1],Wo=te.useCallback(function(ko,Mo,ho){var Vo=fr.findIndex(function(qo){return qo.id===ko});bo(!0),no({x:Mo,y:ho}),yo(Vo<0?0:Vo),xo(!0)},[fr]);te.useEffect(function(){to?Po||yo(0):xo(!1)},[to]);var Ro=function(Mo,ho){yo(Mo),Dr==null||Dr(Mo,ho)},Jo=function(){bo(!1),no(null)},Ko=te.useMemo(function(){return{register:Or,onPreview:Wo}},[Or,Wo]);return te.createElement(ne.Provider,{value:Ko},Vt,te.createElement(Pt,(0,he.Z)({"aria-hidden":!to,movable:rr,visible:to,prefixCls:zt,closeIcon:xr,onClose:Jo,mousePosition:jo,imgCommonProps:Wr,src:Bo,fallback:Dn,icons:kt,minScale:$t,maxScale:ur,getContainer:Rn,current:co,count:fr.length,countRender:qr,onTransform:Zr,toolbarRender:an,imageRender:bn,onChange:Ro},Cn)))},Ht=Ct,Et=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],rn=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ze=function(pt){var Bt=pt.src,gt=pt.alt,zt=pt.onPreviewClose,Vt=pt.prefixCls,Rt=Vt===void 0?"rc-image":Vt,kt=pt.previewPrefixCls,Jt=kt===void 0?"".concat(Rt,"-preview"):kt,un=pt.placeholder,Dn=pt.fallback,kn=pt.width,Xn=pt.height,pn=pt.style,Rn=pt.preview,lr=Rn===void 0?!0:Rn,rr=pt.className,$t=pt.onClick,ur=pt.onError,qr=pt.wrapperClassName,xr=pt.wrapperStyle,Dr=pt.rootClassName,Zr=(0,me.Z)(pt,Et),an=un&&un!==!0,bn=(0,ce.Z)(lr)==="object"?lr:{},Cn=bn.src,Pn=bn.visible,_r=Pn===void 0?void 0:Pn,fr=bn.onVisibleChange,Or=fr===void 0?zt:fr,Hr=bn.getContainer,so=Hr===void 0?void 0:Hr,co=bn.mask,yo=bn.maskClassName,So=bn.movable,wo=bn.icons,Po=bn.scaleStep,xo=bn.minScale,Lo=bn.maxScale,Bo=bn.imageRender,Wr=bn.toolbarRender,Kr=(0,me.Z)(bn,rn),Gr=Cn!=null?Cn:Bt,to=(0,pe.Z)(!!_r,{value:_r,onChange:Or}),bo=(0,ue.Z)(to,2),Oo=bo[0],zr=bo[1],jo=b({src:Bt,isCustomPlaceholder:an,fallback:Dn}),no=(0,ue.Z)(jo,3),Wo=no[0],Ro=no[1],Jo=no[2],Ko=(0,te.useState)(null),ko=(0,ue.Z)(Ko,2),Mo=ko[0],ho=ko[1],Vo=(0,te.useContext)(ne),qo=!!lr,ei=function(){zr(!1),ho(null)},ci=ye()(Rt,qr,Dr,(0,ie.Z)({},"".concat(Rt,"-error"),Jo==="error")),ti=(0,te.useMemo)(function(){var Ln={};return oe.forEach(function(In){pt[In]!==void 0&&(Ln[In]=pt[In])}),Ln},oe.map(function(Ln){return pt[Ln]})),Si=(0,te.useMemo)(function(){return(0,ge.Z)((0,ge.Z)({},ti),{},{src:Gr})},[Gr,ti]),Gn=y(qo,Si),wn=function(In){var hr=(0,se.os)(In.target),Nr=hr.left,ao=hr.top;Vo?Vo.onPreview(Gn,Nr,ao):(ho({x:Nr,y:ao}),zr(!0)),$t==null||$t(In)};return te.createElement(te.Fragment,null,te.createElement("div",(0,he.Z)({},Zr,{className:ci,onClick:qo?wn:$t,style:(0,ge.Z)({width:kn,height:Xn},xr)}),te.createElement("img",(0,he.Z)({},ti,{className:ye()("".concat(Rt,"-img"),(0,ie.Z)({},"".concat(Rt,"-img-placeholder"),un===!0),rr),style:(0,ge.Z)({height:Xn},pn),ref:Wo},Ro,{width:kn,height:Xn,onError:ur})),Jo==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(Rt,"-placeholder")},un),co&&qo&&te.createElement("div",{className:ye()("".concat(Rt,"-mask"),yo),style:{display:(pn==null?void 0:pn.display)==="none"?"none":void 0}},co)),!Vo&&qo&&te.createElement(Pt,(0,he.Z)({"aria-hidden":!Oo,visible:Oo,prefixCls:Jt,onClose:ei,mousePosition:Mo,src:Gr,alt:gt,fallback:Dn,getContainer:so,icons:wo,movable:So,scaleStep:Po,minScale:xo,maxScale:Lo,rootClassName:Dr,imageRender:Bo,imgCommonProps:ti,toolbarRender:Wr},Kr)))};Ze.PreviewGroup=Ht,Ze.displayName="Image";var St=Ze,Lt=St,nn=ee(62892),Zt=ee(36355),at=ee(31724),dt=ee(99267),Ge=ee(33853),Ne=ee(38819),nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},xt=nt,Ae=ee(7657),Re=function(pt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},pt,{ref:Bt,icon:xt}))},We=te.forwardRef(Re),Be=We,ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},ot=ze,Ot=function(pt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},pt,{ref:Bt,icon:ot}))},Dt=te.forwardRef(Ot),jt=Dt,Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Gt=Mt,bt=function(pt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},pt,{ref:Bt,icon:Gt}))},fn=te.forwardRef(bt),dn=fn,wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},yn=wt,_n=function(pt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},pt,{ref:Bt,icon:yn}))},Fn=te.forwardRef(_n),xn=Fn,Zn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Jn=Zn,Kn=function(pt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},pt,{ref:Bt,icon:Jn}))},Vn=te.forwardRef(Kn),Sr=Vn,sr=ee(64993),sn=ee(73819),Yn=ee(17313),or=ee(29878),$n=ee(1950),ir=ee(83116),Ar=ee(37613);const Ir=yt=>({position:yt||"absolute",inset:0}),wr=yt=>{const{iconCls:pt,motionDurationSlow:Bt,paddingXXS:gt,marginXXS:zt,prefixCls:Vt,colorTextLightSolid:Rt}=yt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Rt,background:new sr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Bt}`,[`.${Vt}-mask-info`]:Object.assign(Object.assign({},Yn.vS),{padding:`0 ${gt}px`,[pt]:{marginInlineEnd:zt,svg:{verticalAlign:"baseline"}}})}},Tr=yt=>{const{previewCls:pt,modalMaskBg:Bt,paddingSM:gt,marginXL:zt,margin:Vt,paddingLG:Rt,previewOperationColorDisabled:kt,previewOperationHoverColor:Jt,motionDurationSlow:un,iconCls:Dn,colorTextLightSolid:kn}=yt,Xn=new sr.C(Bt).setAlpha(.1),pn=Xn.clone().setAlpha(.2);return{[`${pt}-footer`]:{position:"fixed",bottom:zt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:yt.previewOperationColor},[`${pt}-progress`]:{marginBottom:Vt},[`${pt}-close`]:{position:"fixed",top:zt,right:{_skip_check_:!0,value:zt},display:"flex",color:kn,backgroundColor:Xn.toRgbString(),borderRadius:"50%",padding:gt,outline:0,border:0,cursor:"pointer",transition:`all ${un}`,"&:hover":{backgroundColor:pn.toRgbString()},[`& > ${Dn}`]:{fontSize:yt.previewOperationSize}},[`${pt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Rt}px`,backgroundColor:Xn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:gt,padding:gt,cursor:"pointer",transition:`all ${un}`,userSelect:"none",[`&:not(${pt}-operations-operation-disabled):hover > ${Dn}`]:{color:Jt},"&-disabled":{color:kt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Dn}`]:{fontSize:yt.previewOperationSize}}}}},ar=yt=>{const{modalMaskBg:pt,iconCls:Bt,previewOperationColorDisabled:gt,previewCls:zt,zIndexPopup:Vt,motionDurationSlow:Rt}=yt,kt=new sr.C(pt).setAlpha(.1),Jt=kt.clone().setAlpha(.2);return{[`${zt}-switch-left, ${zt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Vt+1,display:"flex",alignItems:"center",justifyContent:"center",width:yt.imagePreviewSwitchSize,height:yt.imagePreviewSwitchSize,marginTop:-yt.imagePreviewSwitchSize/2,color:yt.previewOperationColor,background:kt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Rt}`,userSelect:"none","&:hover":{background:Jt.toRgbString()},"&-disabled":{"&, &:hover":{color:gt,background:"transparent",cursor:"not-allowed",[`> ${Bt}`]:{cursor:"not-allowed"}}},[`> ${Bt}`]:{fontSize:yt.previewOperationSize}},[`${zt}-switch-left`]:{insetInlineStart:yt.marginSM},[`${zt}-switch-right`]:{insetInlineEnd:yt.marginSM}}},$r=yt=>{const{motionEaseOut:pt,previewCls:Bt,motionDurationSlow:gt,componentCls:zt}=yt;return[{[`${zt}-preview-root`]:{[Bt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Bt}-body`]:Object.assign(Object.assign({},Ir()),{overflow:"hidden"}),[`${Bt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${gt} ${pt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ir()),{transition:`transform ${gt} ${pt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Bt}-moving`]:{[`${Bt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${zt}-preview-root`]:{[`${Bt}-wrap`]:{zIndex:yt.zIndexPopup}}},{[`${zt}-preview-operations-wrapper`]:{position:"fixed",zIndex:yt.zIndexPopup+1},"&":[Tr(yt),ar(yt)]}]},Wt=yt=>{const{componentCls:pt}=yt;return{[pt]:{position:"relative",display:"inline-block",[`${pt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pt}-img-placeholder`]:{backgroundColor:yt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pt}-mask`]:Object.assign({},wr(yt)),[`${pt}-mask:hover`]:{opacity:1},[`${pt}-placeholder`]:Object.assign({},Ir())}}},ae=yt=>{const{previewCls:pt}=yt;return{[`${pt}-root`]:(0,or._y)(yt,"zoom"),"&":(0,$n.J$)(yt,!0)}};var _e=(0,ir.Z)("Image",yt=>{const pt=`${yt.componentCls}-preview`,Bt=(0,Ar.TS)(yt,{previewCls:pt,modalMaskBg:new sr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:yt.controlHeightLG});return[Wt(Bt),$r(Bt),(0,sn.QA)((0,Ar.TS)(Bt,{componentCls:pt})),ae(Bt)]},yt=>({zIndexPopup:yt.zIndexPopupBase+80,previewOperationColor:new sr.C(yt.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new sr.C(yt.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new sr.C(yt.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:yt.fontSizeIcon*1.5})),Pe=function(yt,pt){var Bt={};for(var gt in yt)Object.prototype.hasOwnProperty.call(yt,gt)&&pt.indexOf(gt)<0&&(Bt[gt]=yt[gt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,gt=Object.getOwnPropertySymbols(yt);zt<gt.length;zt++)pt.indexOf(gt[zt])<0&&Object.prototype.propertyIsEnumerable.call(yt,gt[zt])&&(Bt[gt[zt]]=yt[gt[zt]]);return Bt};const Ie={rotateLeft:te.createElement(Be,null),rotateRight:te.createElement(jt,null),zoomIn:te.createElement(xn,null),zoomOut:te.createElement(Sr,null),close:te.createElement(dt.Z,null),left:te.createElement(Ge.Z,null),right:te.createElement(Ne.Z,null),flipX:te.createElement(dn,null),flipY:te.createElement(dn,{rotate:90})};var et=yt=>{var{previewPrefixCls:pt,preview:Bt}=yt,gt=Pe(yt,["previewPrefixCls","preview"]);const{getPrefixCls:zt}=te.useContext(Zt.E_),Vt=zt("image",pt),Rt=`${Vt}-preview`,kt=zt(),[Jt,un]=_e(Vt),Dn=te.useMemo(()=>{var kn;if(Bt===!1)return Bt;const Xn=typeof Bt=="object"?Bt:{},pn=ye()(un,(kn=Xn.rootClassName)!==null&&kn!==void 0?kn:"");return Object.assign(Object.assign({},Xn),{transitionName:(0,nn.m)(kt,"zoom",Xn.transitionName),maskTransitionName:(0,nn.m)(kt,"fade",Xn.maskTransitionName),rootClassName:pn})},[Bt]);return Jt(te.createElement(Lt.PreviewGroup,Object.assign({preview:Dn,previewPrefixCls:Rt,icons:Ie},gt)))},vt=function(yt,pt){var Bt={};for(var gt in yt)Object.prototype.hasOwnProperty.call(yt,gt)&&pt.indexOf(gt)<0&&(Bt[gt]=yt[gt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,gt=Object.getOwnPropertySymbols(yt);zt<gt.length;zt++)pt.indexOf(gt[zt])<0&&Object.prototype.propertyIsEnumerable.call(yt,gt[zt])&&(Bt[gt[zt]]=yt[gt[zt]]);return Bt};const Qt=yt=>{const{prefixCls:pt,preview:Bt,className:gt,rootClassName:zt,style:Vt}=yt,Rt=vt(yt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:kt,locale:Jt=at.Z,getPopupContainer:un,image:Dn}=te.useContext(Zt.E_),kn=kt("image",pt),Xn=kt(),pn=Jt.Image||at.Z.Image,[Rn,lr]=_e(kn),rr=ye()(zt,lr),$t=ye()(gt,lr,Dn==null?void 0:Dn.className),ur=te.useMemo(()=>{if(Bt===!1)return Bt;const xr=typeof Bt=="object"?Bt:{},{getContainer:Dr}=xr,Zr=vt(xr,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${kn}-mask-info`},te.createElement(fe.Z,null),pn==null?void 0:pn.preview),icons:Ie},Zr),{getContainer:Dr||un,transitionName:(0,nn.m)(Xn,"zoom",xr.transitionName),maskTransitionName:(0,nn.m)(Xn,"fade",xr.maskTransitionName)})},[Bt,pn]),qr=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Vt);return Rn(te.createElement(Lt,Object.assign({prefixCls:kn,preview:ur,rootClassName:rr,className:$t,style:qr},Rt)))};Qt.PreviewGroup=et;var Ut=Qt},45818:function(ft,Ke,ee){"use strict";ee.d(Ke,{D:function(){return z},Z:function(){return de}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(Se,Le){return fe.createElement(he.Z,(0,te.Z)({},Se,{ref:Le,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(33853),me=ee(38819),se=ee(92310),pe=ee.n(se),oe=ee(2738),a=ve=>!isNaN(parseFloat(ve))&&isFinite(ve),y=ee(36355),E=ee(84966),b=function(ve,Se){var Le={};for(var Ee in ve)Object.prototype.hasOwnProperty.call(ve,Ee)&&Se.indexOf(Ee)<0&&(Le[Ee]=ve[Ee]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ee=Object.getOwnPropertySymbols(ve);Fe<Ee.length;Fe++)Se.indexOf(Ee[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ee[Fe])&&(Le[Ee[Fe]]=ve[Ee[Fe]]);return Le};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),re=(()=>{let ve=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ve+=1,`${Se}${ve}`}})();var de=fe.forwardRef((ve,Se)=>{const{prefixCls:Le,className:Ee,trigger:Fe,children:xe,defaultCollapsed:lt=!1,theme:Ye="dark",style:ht={},collapsible:we=!1,reverseArrow:je=!1,width:He=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:$e,breakpoint:mt,onCollapse:Pt,onBreakpoint:At}=ve,Nt=b(ve,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,fe.useContext)(E.Gs),[Xe,Ct]=(0,fe.useState)("collapsed"in ve?ve.collapsed:lt),[Ht,Et]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ve&&Ct(ve.collapsed)},[ve.collapsed]);const rn=(at,dt)=>{"collapsed"in ve||Ct(at),Pt==null||Pt(at,dt)},Ze=(0,fe.useRef)();Ze.current=at=>{Et(at.matches),At==null||At(at.matches),Xe!==at.matches&&rn(at.matches,"responsive")},(0,fe.useEffect)(()=>{function at(Ge){return Ze.current(Ge)}let dt;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&mt&&mt in x){dt=Ge(`(max-width: ${x[mt]})`);try{dt.addEventListener("change",at)}catch(Ne){dt.addListener(at)}at(dt)}}return()=>{try{dt==null||dt.removeEventListener("change",at)}catch(Ge){dt==null||dt.removeListener(at)}}},[mt]),(0,fe.useEffect)(()=>{const at=re("ant-sider-");return rt.addSider(at),()=>rt.removeSider(at)},[]);const St=()=>{rn(!Xe,"clickTrigger")},{getPrefixCls:Lt}=(0,fe.useContext)(y.E_),nn=()=>{const at=Lt("layout-sider",Le),dt=(0,oe.Z)(Nt,["collapsed"]),Ge=Xe?Je:He,Ne=a(Ge)?`${Ge}px`:String(Ge),nt=parseFloat(String(Je||0))===0?fe.createElement("span",{onClick:St,className:pe()(`${at}-zero-width-trigger`,`${at}-zero-width-trigger-${je?"right":"left"}`),style:$e},Fe||fe.createElement(ue,null)):null,Re={expanded:je?fe.createElement(me.Z,null):fe.createElement(ce.Z,null),collapsed:je?fe.createElement(ce.Z,null):fe.createElement(me.Z,null)}[Xe?"collapsed":"expanded"],We=Fe!==null?nt||fe.createElement("div",{className:`${at}-trigger`,onClick:St,style:{width:Ne}},Fe||Re):null,Be=Object.assign(Object.assign({},ht),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),ze=pe()(at,`${at}-${Ye}`,{[`${at}-collapsed`]:!!Xe,[`${at}-has-trigger`]:we&&Fe!==null&&!nt,[`${at}-below`]:!!Ht,[`${at}-zero-width`]:parseFloat(Ne)===0},Ee);return fe.createElement("aside",Object.assign({className:ze},dt,{style:Be,ref:Se}),fe.createElement("div",{className:`${at}-children`},xe),we||Ht&&nt?We:null)},Zt=fe.useMemo(()=>({siderCollapsed:Xe}),[Xe]);return fe.createElement(z.Provider,{value:Zt},nn())})},84966:function(ft,Ke,ee){"use strict";ee.d(Ke,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return oe},ZP:function(){return re}});var te=ee(94480),fe=ee(92310),be=ee.n(fe),ye=ee(2738),he=ee(59301),ge=ee(36355),ie=ee(83116),ce=le=>{const{componentCls:de,bodyBg:ve,lightSiderBg:Se,lightTriggerBg:Le,lightTriggerColor:Ee}=le;return{[`${de}-sider-light`]:{background:Se,[`${de}-sider-trigger`]:{color:Ee,background:Le},[`${de}-sider-zero-width-trigger`]:{color:Ee,background:Le,border:`1px solid ${ve}`,borderInlineStart:0}}}};const me=le=>{const{antCls:de,componentCls:ve,colorText:Se,triggerColor:Le,footerBg:Ee,triggerBg:Fe,headerHeight:xe,headerPadding:lt,headerColor:Ye,footerPadding:ht,triggerHeight:we,zeroTriggerHeight:je,zeroTriggerWidth:He,motionDurationMid:Je,motionDurationSlow:$e,fontSize:mt,borderRadius:Pt,bodyBg:At,headerBg:Nt,siderBg:rt}=le;return{[ve]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${ve}-has-sider`]:{flexDirection:"row",[`> ${ve}, > ${ve}-content`]:{width:0}},[`${ve}-header, &${ve}-footer`]:{flex:"0 0 auto"},[`${ve}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${de}-menu${de}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:Le,lineHeight:`${we}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-He,zIndex:1,width:He,height:je,color:Le,fontSize:le.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:Pt,borderEndEndRadius:Pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${$e} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${$e}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pt}}}}},ce(le)),{"&-rtl":{direction:"rtl"}}),[`${ve}-header`]:{height:xe,padding:lt,color:Ye,lineHeight:`${xe}px`,background:Nt,[`${de}-menu`]:{lineHeight:"inherit"}},[`${ve}-footer`]:{padding:ht,color:Se,fontSize:mt,background:Ee},[`${ve}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",le=>[me(le)],le=>{const{colorBgLayout:de,controlHeight:ve,controlHeightLG:Se,colorText:Le,controlHeightSM:Ee,marginXXS:Fe,colorTextLightSolid:xe,colorBgContainer:lt}=le,Ye=Se*1.25;return{colorBgHeader:"#001529",colorBgBody:de,colorBgTrigger:"#002140",bodyBg:de,headerBg:"#001529",headerHeight:ve*2,headerPadding:`0 ${Ye}px`,headerColor:Le,footerPadding:`${Ee}px ${Ye}px`,footerBg:de,siderBg:"#001529",triggerHeight:Se+Fe*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:Se,zeroTriggerHeight:Se,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),pe=function(le,de){var ve={};for(var Se in le)Object.prototype.hasOwnProperty.call(le,Se)&&de.indexOf(Se)<0&&(ve[Se]=le[Se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Se=Object.getOwnPropertySymbols(le);Le<Se.length;Le++)de.indexOf(Se[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Se[Le])&&(ve[Se[Le]]=le[Se[Le]]);return ve};const oe=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(le){let{suffixCls:de,tagName:ve,displayName:Se}=le;return Le=>he.forwardRef((Fe,xe)=>he.createElement(Le,Object.assign({ref:xe,suffixCls:de,tagName:ve},Fe)))}const a=he.forwardRef((le,de)=>{const{prefixCls:ve,suffixCls:Se,className:Le,tagName:Ee}=le,Fe=pe(le,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=he.useContext(ge.E_),lt=xe("layout",ve),[Ye,ht]=se(lt),we=Se?`${lt}-${Se}`:lt;return Ye(he.createElement(Ee,Object.assign({className:be()(ve||we,Le,ht),ref:de},Fe)))}),y=he.forwardRef((le,de)=>{const{direction:ve}=he.useContext(ge.E_),[Se,Le]=he.useState([]),{prefixCls:Ee,className:Fe,rootClassName:xe,children:lt,hasSider:Ye,tagName:ht,style:we}=le,je=pe(le,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,ye.Z)(je,["suffixCls"]),{getPrefixCls:Je,layout:$e}=he.useContext(ge.E_),mt=Je("layout",Ee),[Pt,At]=se(mt),Nt=be()(mt,{[`${mt}-has-sider`]:typeof Ye=="boolean"?Ye:Se.length>0,[`${mt}-rtl`]:ve==="rtl"},$e==null?void 0:$e.className,Fe,xe,At),rt=he.useMemo(()=>({siderHook:{addSider:Xe=>{Le(Ct=>[].concat((0,te.Z)(Ct),[Xe]))},removeSider:Xe=>{Le(Ct=>Ct.filter(Ht=>Ht!==Xe))}}}),[]);return Pt(he.createElement(oe.Provider,{value:rt},he.createElement(ht,Object.assign({ref:de,className:Nt,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),we)},He),lt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var re=E},40875:function(ft,Ke,ee){"use strict";ee.d(Ke,{J:function(){return ge}});var te=ee(59301),fe=ee(33234),be=ee(70425),ye=function(ie,ue){var ce={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&ue.indexOf(me)<0&&(ce[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(ie);se<me.length;se++)ue.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[se])&&(ce[me[se]]=ie[me[se]]);return ce};const he=te.createContext(null),ge=te.forwardRef((ie,ue)=>{const{children:ce}=ie,me=ye(ie,["children"]),se=te.useContext(he),pe=te.useMemo(()=>Object.assign(Object.assign({},se),me),[se,me.prefixCls,me.mode,me.selectable]);return te.createElement(he.Provider,{value:pe},te.createElement(fe.BR,null,(0,be.supportNodeRef)(ce)?te.cloneElement(ce,{ref:ue}):ce))});Ke.Z=he},20834:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return Zt}});var te=ee(15285),fe=ee(59301),be=ee(45818),ye=ee(92310),he=ee.n(ye),ge=ee(36355),ie=function(at,dt){var Ge={};for(var Ne in at)Object.prototype.hasOwnProperty.call(at,Ne)&&dt.indexOf(Ne)<0&&(Ge[Ne]=at[Ne]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ne=Object.getOwnPropertySymbols(at);nt<Ne.length;nt++)dt.indexOf(Ne[nt])<0&&Object.prototype.propertyIsEnumerable.call(at,Ne[nt])&&(Ge[Ne[nt]]=at[Ne[nt]]);return Ge},ce=at=>{const{prefixCls:dt,className:Ge,dashed:Ne}=at,nt=ie(at,["prefixCls","className","dashed"]),{getPrefixCls:xt}=fe.useContext(ge.E_),Ae=xt("menu",dt),Re=he()({[`${Ae}-item-divider-dashed`]:!!Ne},Ge);return fe.createElement(te.iz,Object.assign({className:Re},nt))},me=ee(11592),se=ee(2738),pe=ee(6848),oe=ee(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=at=>{var dt;const{className:Ge,children:Ne,icon:nt,title:xt,danger:Ae}=at,{prefixCls:Re,firstLevel:We,direction:Be,disableMenuItemTitleTooltip:ze,inlineCollapsed:ot}=fe.useContext(a),Ot=fn=>{const dn=fe.createElement("span",{className:`${Re}-title-content`},Ne);return(!nt||(0,oe.l$)(Ne)&&Ne.type==="span")&&Ne&&fn&&We&&typeof Ne=="string"?fe.createElement("div",{className:`${Re}-inline-collapsed-noicon`},Ne.charAt(0)):dn},{siderCollapsed:Dt}=fe.useContext(be.D);let jt=xt;typeof xt=="undefined"?jt=We?Ne:"":xt===!1&&(jt="");const Mt={title:jt};!Dt&&!ot&&(Mt.title=null,Mt.open=!1);const Gt=(0,me.Z)(Ne).length;let bt=fe.createElement(te.ck,Object.assign({},(0,se.Z)(at,["title","icon","danger"]),{className:he()({[`${Re}-item-danger`]:Ae,[`${Re}-item-only-child`]:(nt?Gt+1:Gt)===1},Ge),title:typeof xt=="string"?xt:void 0}),(0,oe.Tm)(nt,{className:he()((0,oe.l$)(nt)?(dt=nt.props)===null||dt===void 0?void 0:dt.className:"",`${Re}-item-icon`)}),Ot(ot));return ze||(bt=fe.createElement(pe.Z,Object.assign({},Mt,{placement:Be==="rtl"?"left":"right",overlayClassName:`${Re}-inline-collapsed-tooltip`}),bt)),bt},x=at=>{var dt;const{popupClassName:Ge,icon:Ne,title:nt,theme:xt}=at,Ae=fe.useContext(a),{prefixCls:Re,inlineCollapsed:We,theme:Be}=Ae,ze=(0,te.Xl)();let ot;if(!Ne)ot=We&&!ze.length&&nt&&typeof nt=="string"?fe.createElement("div",{className:`${Re}-inline-collapsed-noicon`},nt.charAt(0)):fe.createElement("span",{className:`${Re}-title-content`},nt);else{const Dt=(0,oe.l$)(nt)&&nt.type==="span";ot=fe.createElement(fe.Fragment,null,(0,oe.Tm)(Ne,{className:he()((0,oe.l$)(Ne)?(dt=Ne.props)===null||dt===void 0?void 0:dt.className:"",`${Re}-item-icon`)}),Dt?nt:fe.createElement("span",{className:`${Re}-title-content`},nt))}const Ot=fe.useMemo(()=>Object.assign(Object.assign({},Ae),{firstLevel:!1}),[Ae]);return fe.createElement(a.Provider,{value:Ot},fe.createElement(te.Wd,Object.assign({},(0,se.Z)(at,["icon"]),{title:ot,popupClassName:he()(Re,Ge,`${Re}-${xt||Be}`)})))},z=ee(18785),re=ee(70425),le=ee(62892),de=ee(40875),ve=function(at,dt){var Ge={};for(var Ne in at)Object.prototype.hasOwnProperty.call(at,Ne)&&dt.indexOf(Ne)<0&&(Ge[Ne]=at[Ne]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ne=Object.getOwnPropertySymbols(at);nt<Ne.length;nt++)dt.indexOf(Ne[nt])<0&&Object.prototype.propertyIsEnumerable.call(at,Ne[nt])&&(Ge[Ne[nt]]=at[Ne[nt]]);return Ge};function Se(at){return(at||[]).map((dt,Ge)=>{if(dt&&typeof dt=="object"){const Ne=dt,{label:nt,children:xt,key:Ae,type:Re}=Ne,We=ve(Ne,["label","children","key","type"]),Be=Ae!=null?Ae:`tmp-${Ge}`;return xt||Re==="group"?Re==="group"?fe.createElement(te.BW,Object.assign({key:Be},We,{title:nt}),Se(xt)):fe.createElement(x,Object.assign({key:Be},We,{title:nt}),Se(xt)):Re==="divider"?fe.createElement(ce,Object.assign({key:Be},We)):fe.createElement(E,Object.assign({key:Be},We),nt)}return null}).filter(dt=>dt)}function Le(at){return fe.useMemo(()=>at&&Se(at),[at])}var Ee=ee(64993),Fe=ee(17313),xe=ee(8378),lt=ee(13826),Ye=ee(29878),ht=ee(83116),we=ee(37613),He=at=>{const{componentCls:dt,motionDurationSlow:Ge,horizontalLineHeight:Ne,colorSplit:nt,lineWidth:xt,lineType:Ae,itemPaddingInline:Re}=at;return{[`${dt}-horizontal`]:{lineHeight:Ne,border:0,borderBottom:`${xt}px ${Ae} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${dt}-item, ${dt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Re},[`> ${dt}-item:hover,
|
|
|
> ${dt}-item-active,
|
|
|
> ${dt}-submenu ${dt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${dt}-item, ${dt}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${dt}-submenu-arrow`]:{display:"none"}}}},$e=at=>{let{componentCls:dt,menuArrowOffset:Ge}=at;return{[`${dt}-rtl`]:{direction:"rtl"},[`${dt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${dt}-rtl${dt}-vertical,
|
|
|
${dt}-submenu-rtl ${dt}-vertical`]:{[`${dt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const mt=at=>Object.assign({},(0,Fe.oN)(at));var At=(at,dt)=>{const{componentCls:Ge,itemColor:Ne,itemSelectedColor:nt,groupTitleColor:xt,itemBg:Ae,subMenuItemBg:Re,itemSelectedBg:We,activeBarHeight:Be,activeBarWidth:ze,activeBarBorderWidth:ot,motionDurationSlow:Ot,motionEaseInOut:Dt,motionEaseOut:jt,itemPaddingInline:Mt,motionDurationMid:Gt,itemHoverColor:bt,lineType:fn,colorSplit:dn,itemDisabledColor:wt,dangerItemColor:yn,dangerItemHoverColor:_n,dangerItemSelectedColor:Fn,dangerItemActiveBg:xn,dangerItemSelectedBg:Zn,itemHoverBg:Jn,itemActiveBg:Kn,menuSubMenuBg:Vn,horizontalItemSelectedColor:Sr,horizontalItemSelectedBg:sr,horizontalItemBorderRadius:sn,horizontalItemHoverBg:Yn,popupBg:or}=at;return{[`${Ge}-${dt}, ${Ge}-${dt} > ${Ge}`]:{color:Ne,background:Ae,[`&${Ge}-root:focus-visible`]:Object.assign({},mt(at)),[`${Ge}-item-group-title`]:{color:xt},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:nt}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${wt} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:bt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:Jn},"&:active":{backgroundColor:Kn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:Jn},"&:active":{backgroundColor:Kn}}},[`${Ge}-item-danger`]:{color:yn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:_n}},[`&${Ge}-item:active`]:{background:xn}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:nt,[`&${Ge}-item-danger`]:{color:Fn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:We,[`&${Ge}-item-danger`]:{backgroundColor:Zn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},mt(at))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Vn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:or},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},dt==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:ot,marginTop:-ot,marginBottom:0,borderRadius:sn,"&::after":{position:"absolute",insetInline:Mt,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${Ot} ${Dt}`,content:'""'},"&:hover, &-active, &-open":{background:Yn,"&::after":{borderBottomWidth:Be,borderBottomColor:Sr}},"&-selected":{color:Sr,backgroundColor:sr,"&:hover":{backgroundColor:sr},"&::after":{borderBottomWidth:Be,borderBottomColor:Sr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${ot}px ${fn} ${dn}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Re},[`${Ge}-item, ${Ge}-submenu-title`]:ot&&ze?{width:`calc(100% + ${ot}px)`}:{},[`${Ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ze}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${jt}`,`opacity ${Gt} ${jt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:Fn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${Dt}`,`opacity ${Gt} ${Dt}`].join(",")}}}}}};const Nt=at=>{const{componentCls:dt,itemHeight:Ge,itemMarginInline:Ne,padding:nt,menuArrowSize:xt,marginXS:Ae,itemMarginBlock:Re}=at,We=nt+xt+Ae;return{[`${dt}-item`]:{position:"relative",overflow:"hidden"},[`${dt}-item, ${dt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ne,marginBlock:Re,width:`calc(100% - ${Ne*2}px)`},[`> ${dt}-item,
|
|
|
> ${dt}-submenu > ${dt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${dt}-item-group-list ${dt}-submenu-title,
|
|
|
${dt}-submenu-title`]:{paddingInlineEnd:We}}};var Xe=at=>{const{componentCls:dt,iconCls:Ge,itemHeight:Ne,colorTextLightSolid:nt,dropdownWidth:xt,controlHeightLG:Ae,motionDurationMid:Re,motionEaseOut:We,paddingXL:Be,itemMarginInline:ze,fontSizeLG:ot,motionDurationSlow:Ot,paddingXS:Dt,boxShadowSecondary:jt,collapsedWidth:Mt,collapsedIconSize:Gt}=at,bt={height:Ne,lineHeight:`${Ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[dt]:{"&-inline, &-vertical":Object.assign({[`&${dt}-root`]:{boxShadow:"none"}},Nt(at))},[`${dt}-submenu-popup`]:{[`${dt}-vertical`]:Object.assign(Object.assign({},Nt(at)),{boxShadow:jt})}},{[`${dt}-submenu-popup ${dt}-vertical${dt}-sub`]:{minWidth:xt,maxHeight:`calc(100vh - ${Ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${dt}-inline`]:{width:"100%",[`&${dt}-root`]:{[`${dt}-item, ${dt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ot}`,`background ${Ot}`,`padding ${Re} ${We}`].join(","),[`> ${dt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${dt}-sub${dt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${dt}-submenu > ${dt}-submenu-title`]:bt,[`& ${dt}-item-group-title`]:{paddingInlineStart:Be}},[`${dt}-item`]:bt}},{[`${dt}-inline-collapsed`]:{width:Mt,[`&${dt}-root`]:{[`${dt}-item, ${dt}-submenu ${dt}-submenu-title`]:{[`> ${dt}-inline-collapsed-noicon`]:{fontSize:ot,textAlign:"center"}}},[`> ${dt}-item,
|
|
|
> ${dt}-item-group > ${dt}-item-group-list > ${dt}-item,
|
|
|
> ${dt}-item-group > ${dt}-item-group-list > ${dt}-submenu > ${dt}-submenu-title,
|
|
|
> ${dt}-submenu > ${dt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ot/2}px - ${ze}px)`,textOverflow:"clip",[`
|
|
|
${dt}-submenu-arrow,
|
|
|
${dt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${dt}-item-icon, ${Ge}`]:{margin:0,fontSize:Gt,lineHeight:`${Ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${dt}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${dt}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:nt}},[`${dt}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Dt})}}]};const Ct=at=>{const{componentCls:dt,motionDurationSlow:Ge,motionDurationMid:Ne,motionEaseInOut:nt,motionEaseOut:xt,iconCls:Ae,iconSize:Re,iconMarginInlineEnd:We}=at;return{[`${dt}-item, ${dt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${nt}`].join(","),[`${dt}-item-icon, ${Ae}`]:{minWidth:Re,fontSize:Re,transition:[`font-size ${Ne} ${xt}`,`margin ${Ge} ${nt}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${Ge} ${nt}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${dt}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${dt}-item-only-child`]:{[`> ${Ae}, > ${dt}-item-icon`]:{marginInlineEnd:0}}},[`${dt}-item-disabled, ${dt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${dt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ht=at=>{const{componentCls:dt,motionDurationSlow:Ge,motionEaseInOut:Ne,borderRadius:nt,menuArrowSize:xt,menuArrowOffset:Ae}=at;return{[`${dt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:at.margin,width:xt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${Ne}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xt*.6,height:xt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${Ge} ${Ne}`,`transform ${Ge} ${Ne}`,`top ${Ge} ${Ne}`,`color ${Ge} ${Ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ae})`},"&::after":{transform:`rotate(-45deg) translateY(${Ae})`}}}}},Et=at=>{const{antCls:dt,componentCls:Ge,fontSize:Ne,motionDurationSlow:nt,motionDurationMid:xt,motionEaseInOut:Ae,paddingXS:Re,padding:We,colorSplit:Be,lineWidth:ze,zIndexPopup:ot,borderRadiusLG:Ot,subMenuItemBorderRadius:Dt,menuArrowSize:jt,menuArrowOffset:Mt,lineType:Gt,menuPanelMaskInset:bt,groupTitleLineHeight:fn,groupTitleFontSize:dn}=at;return[{"":{[`${Ge}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Ge}-submenu-hidden`]:{display:"none"}},{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(at)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ge}-item`]:{flex:"none"}},[`${Ge}-item, ${Ge}-submenu, ${Ge}-submenu-title`]:{borderRadius:at.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Re}px ${We}px`,fontSize:dn,lineHeight:fn,transition:`all ${nt}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${nt} ${Ae}`,`background ${nt} ${Ae}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${nt} ${Ae}`,`background ${nt} ${Ae}`,`padding ${xt} ${Ae}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${nt} ${Ae}`,`padding ${nt} ${Ae}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${nt}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:Gt,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(at)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Ne*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ot,borderRadius:Ot,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:at.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:at.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:at.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:at.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ot},Ct(at)),Ht(at)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Dt},[`${Ge}-submenu-title::after`]:{transition:`transform ${nt} ${Ae}`}})}}),Ht(at)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
|
|
|
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Mt})`},"&::after":{transform:`rotate(45deg) translateX(-${Mt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Mt})`},"&::before":{transform:`rotate(45deg) translateX(${Mt})`}}})},{[`${dt}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var rn=(at,dt)=>(0,ht.Z)("Menu",Ne=>{if(dt===!1)return[];const{colorBgElevated:nt,colorPrimary:xt,colorTextLightSolid:Ae,controlHeightLG:Re,fontSize:We,darkItemColor:Be,darkDangerItemColor:ze,darkItemBg:ot,darkSubMenuItemBg:Ot,darkItemSelectedColor:Dt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Mt,darkItemHoverBg:Gt,darkGroupTitleColor:bt,darkItemHoverColor:fn,darkItemDisabledColor:dn,darkDangerItemHoverColor:wt,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:_n}=Ne,Fn=We/7*5,xn=(0,we.TS)(Ne,{menuArrowSize:Fn,menuHorizontalHeight:Re*1.15,menuArrowOffset:`${Fn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),Zn=(0,we.TS)(xn,{itemColor:Be,itemHoverColor:fn,groupTitleColor:bt,itemSelectedColor:Dt,itemBg:ot,popupBg:ot,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Gt,itemDisabledColor:dn,dangerItemColor:ze,dangerItemHoverColor:wt,dangerItemSelectedColor:yn,dangerItemActiveBg:_n,dangerItemSelectedBg:Mt,menuSubMenuBg:Ot,horizontalItemSelectedColor:Ae,horizontalItemSelectedBg:xt});return[Et(xn),He(xn),Xe(xn),At(xn,"light"),At(Zn,"dark"),$e(xn),(0,xe.Z)(xn),(0,lt.oN)(xn,"slide-up"),(0,lt.oN)(xn,"slide-down"),(0,Ye._y)(xn,"zoom-big")]},Ne=>{const{colorPrimary:nt,colorError:xt,colorTextDisabled:Ae,colorErrorBg:Re,colorText:We,colorTextDescription:Be,colorBgContainer:ze,colorFillAlter:ot,colorFillContent:Ot,lineWidth:Dt,lineWidthBold:jt,controlItemBgActive:Mt,colorBgTextHover:Gt,controlHeightLG:bt,lineHeight:fn,colorBgElevated:dn,marginXXS:wt,padding:yn,fontSize:_n,controlHeightSM:Fn,fontSizeLG:xn,colorTextLightSolid:Zn,colorErrorHover:Jn}=Ne,Kn=new Ee.C(Zn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ne.zIndexPopupBase+50,radiusItem:Ne.borderRadiusLG,itemBorderRadius:Ne.borderRadiusLG,radiusSubMenuItem:Ne.borderRadiusSM,subMenuItemBorderRadius:Ne.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:nt,horizontalItemHoverColor:nt,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:ze,itemBg:ze,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:Ot,itemActiveBg:Mt,colorSubItemBg:ot,subMenuItemBg:ot,colorItemBgSelected:Mt,itemSelectedBg:Mt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Dt,activeBarBorderWidth:Dt,colorItemTextDisabled:Ae,itemDisabledColor:Ae,colorDangerItemText:xt,dangerItemColor:xt,colorDangerItemTextHover:xt,dangerItemHoverColor:xt,colorDangerItemTextSelected:xt,dangerItemSelectedColor:xt,colorDangerItemBgActive:Re,dangerItemActiveBg:Re,colorDangerItemBgSelected:Re,dangerItemSelectedBg:Re,itemMarginInline:Ne.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:fn,collapsedWidth:bt*2,popupBg:dn,itemMarginBlock:wt,itemPaddingInline:yn,horizontalLineHeight:`${bt*1.15}px`,iconSize:_n,iconMarginInlineEnd:Fn-_n,collapsedIconSize:xn,groupTitleFontSize:_n,darkItemDisabledColor:new Ee.C(Zn).setAlpha(.25).toRgbString(),darkItemColor:Kn,darkDangerItemColor:xt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Zn,darkItemSelectedBg:nt,darkDangerItemSelectedBg:xt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kn,darkItemHoverColor:Zn,darkDangerItemHoverColor:Jn,darkDangerItemSelectedColor:Zn,darkDangerItemActiveBg:xt}},{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"]]})(at),Ze=function(at,dt){var Ge={};for(var Ne in at)Object.prototype.hasOwnProperty.call(at,Ne)&&dt.indexOf(Ne)<0&&(Ge[Ne]=at[Ne]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ne=Object.getOwnPropertySymbols(at);nt<Ne.length;nt++)dt.indexOf(Ne[nt])<0&&Object.prototype.propertyIsEnumerable.call(at,Ne[nt])&&(Ge[Ne[nt]]=at[Ne[nt]]);return Ge},Lt=(0,fe.forwardRef)((at,dt)=>{var Ge,Ne;const nt=fe.useContext(de.Z),xt=nt||{},{getPrefixCls:Ae,getPopupContainer:Re,direction:We,menu:Be}=fe.useContext(ge.E_),ze=Ae(),{prefixCls:ot,className:Ot,style:Dt,theme:jt="light",expandIcon:Mt,_internalDisableMenuItemTitleTooltip:Gt,inlineCollapsed:bt,siderCollapsed:fn,items:dn,children:wt,rootClassName:yn,mode:_n,selectable:Fn,onClick:xn,overflowedIndicatorPopupClassName:Zn}=at,Jn=Ze(at,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kn=(0,se.Z)(Jn,["collapsedWidth"]),Vn=Le(dn)||wt;(Ge=xt.validator)===null||Ge===void 0||Ge.call(xt,{mode:_n});const Sr=(0,re.useEvent)(function(){var ar;xn==null||xn.apply(void 0,arguments),(ar=xt.onClick)===null||ar===void 0||ar.call(xt)}),sr=xt.mode||_n,sn=Fn!=null?Fn:xt.selectable,Yn=fe.useMemo(()=>fn!==void 0?fn:bt,[bt,fn]),or={horizontal:{motionName:`${ze}-slide-up`},inline:(0,le.Z)(ze),other:{motionName:`${ze}-zoom-big`}},$n=Ae("menu",ot||xt.prefixCls),[ir,Ar]=rn($n,!nt),Ir=he()(`${$n}-${jt}`,Be==null?void 0:Be.className,Ot);let wr;if(typeof Mt=="function")wr=Mt;else if(Mt===null||Mt===!1)wr=null;else if(xt.expandIcon===null||xt.expandIcon===!1)wr=null;else{const ar=Mt!=null?Mt:xt.expandIcon;wr=(0,oe.Tm)(ar,{className:he()(`${$n}-submenu-expand-icon`,(0,oe.l$)(ar)?(Ne=ar.props)===null||Ne===void 0?void 0:Ne.className:"")})}const Tr=fe.useMemo(()=>({prefixCls:$n,inlineCollapsed:Yn||!1,direction:We,firstLevel:!0,theme:jt,mode:sr,disableMenuItemTitleTooltip:Gt}),[$n,Yn,We,Gt,jt]);return ir(fe.createElement(de.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Tr},fe.createElement(te.ZP,Object.assign({getPopupContainer:Re,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()($n,`${$n}-${jt}`,Zn),mode:sr,selectable:sn,onClick:Sr},Kn,{inlineCollapsed:Yn,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),Dt),className:Ir,prefixCls:$n,direction:We,defaultMotions:or,expandIcon:wr,ref:dt,rootClassName:he()(yn,Ar)}),Vn))))});const nn=(0,fe.forwardRef)((at,dt)=>{const Ge=(0,fe.useRef)(null),Ne=fe.useContext(be.D);return(0,fe.useImperativeHandle)(dt,()=>({menu:Ge.current,focus:nt=>{var xt;(xt=Ge.current)===null||xt===void 0||xt.focus(nt)}})),fe.createElement(Lt,Object.assign({ref:Ge},at,Ne))});nn.Item=E,nn.SubMenu=x,nn.Divider=ce,nn.ItemGroup=te.BW;var Zt=nn},58421:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return xt}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(Re,We){return fe.createElement(he.Z,(0,te.Z)({},Re,{ref:We,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(49198),me=ee(33853),se=ee(38819),pe=ee(92310),oe=ee.n(pe),ne=ee(20068),a=ee(33885),y=ee(67732),E=ee(83652),b=ee(42403),x=ee(158),z=ee(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},le=re,de=ee(91735),ve=function(Ae){(0,b.Z)(We,Ae);var Re=(0,x.Z)(We);function We(){var Be;(0,y.Z)(this,We);for(var ze=arguments.length,ot=new Array(ze),Ot=0;Ot<ze;Ot++)ot[Ot]=arguments[Ot];return Be=Re.call.apply(Re,[this].concat(ot)),Be.state={goInputText:""},Be.getValidValue=function(){var Dt=Be.state.goInputText;return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},Be.buildOptionText=function(Dt){return"".concat(Dt," ").concat(Be.props.locale.items_per_page)},Be.changeSize=function(Dt){Be.props.changeSize(Number(Dt))},Be.handleChange=function(Dt){Be.setState({goInputText:Dt.target.value})},Be.handleBlur=function(Dt){var jt=Be.props,Mt=jt.goButton,Gt=jt.quickGo,bt=jt.rootPrefixCls,fn=Be.state.goInputText;Mt||fn===""||(Be.setState({goInputText:""}),!(Dt.relatedTarget&&(Dt.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Dt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&Gt(Be.getValidValue()))},Be.go=function(Dt){var jt=Be.state.goInputText;jt!==""&&(Dt.keyCode===le.ENTER||Dt.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,E.Z)(We,[{key:"getPageSizeOptions",value:function(){var ze=this.props,ot=ze.pageSize,Ot=ze.pageSizeOptions;return Ot.some(function(Dt){return Dt.toString()===ot.toString()})?Ot:Ot.concat([ot.toString()]).sort(function(Dt,jt){var Mt=Number.isNaN(Number(Dt))?0:Number(Dt),Gt=Number.isNaN(Number(jt))?0:Number(jt);return Mt-Gt})}},{key:"render",value:function(){var ze=this,ot=this.props,Ot=ot.pageSize,Dt=ot.locale,jt=ot.rootPrefixCls,Mt=ot.changeSize,Gt=ot.quickGo,bt=ot.goButton,fn=ot.selectComponentClass,dn=ot.buildOptionText,wt=ot.selectPrefixCls,yn=ot.disabled,_n=this.state.goInputText,Fn="".concat(jt,"-options"),xn=fn,Zn=null,Jn=null,Kn=null;if(!Mt&&!Gt)return null;var Vn=this.getPageSizeOptions();if(Mt&&xn){var Sr=Vn.map(function(sr,sn){return fe.createElement(xn.Option,{key:sn,value:sr.toString()},(dn||ze.buildOptionText)(sr))});Zn=fe.createElement(xn,{disabled:yn,prefixCls:wt,showSearch:!1,className:"".concat(Fn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ot||Vn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(sn){return sn.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},Sr)}return Gt&&(bt&&(Kn=typeof bt=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:yn,className:"".concat(Fn,"-quick-jumper-button")},Dt.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),Jn=fe.createElement("div",{className:"".concat(Fn,"-quick-jumper")},Dt.jump_to,fe.createElement("input",{disabled:yn,type:"text",value:_n,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Kn)),fe.createElement("li",{className:"".concat(Fn)},Zn,Jn)}}]),We}(fe.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var Se=ve,Le=function(Re){var We,Be=Re.rootPrefixCls,ze=Re.page,ot=Re.active,Ot=Re.className,Dt=Re.showTitle,jt=Re.onClick,Mt=Re.onKeyPress,Gt=Re.itemRender,bt="".concat(Be,"-item"),fn=oe()(bt,"".concat(bt,"-").concat(ze),(We={},(0,ne.Z)(We,"".concat(bt,"-active"),ot),(0,ne.Z)(We,"".concat(bt,"-disabled"),!ze),(0,ne.Z)(We,Re.className,Ot),We)),dn=function(){jt(ze)},wt=function(Fn){Mt(Fn,jt,ze)},yn=Gt(ze,"page",fe.createElement("a",{rel:"nofollow"},ze));return yn?fe.createElement("li",{title:Dt?ze.toString():null,className:fn,onClick:dn,onKeyPress:wt,tabIndex:0},yn):null},Ee=Le;function Fe(){}function xe(Ae){var Re=Number(Ae);return typeof Re=="number"&&!Number.isNaN(Re)&&isFinite(Re)&&Math.floor(Re)===Re}var lt=function(Re,We,Be){return Be};function Ye(Ae,Re,We){var Be=typeof Ae=="undefined"?Re.pageSize:Ae;return Math.floor((We.total-1)/Be)+1}var ht=function(Ae){(0,b.Z)(We,Ae);var Re=(0,x.Z)(We);function We(Be){var ze;(0,y.Z)(this,We),ze=Re.call(this,Be),ze.paginationNode=fe.createRef(),ze.getJumpPrevPage=function(){return Math.max(1,ze.state.current-(ze.props.showLessItems?3:5))},ze.getJumpNextPage=function(){return Math.min(Ye(void 0,ze.state,ze.props),ze.state.current+(ze.props.showLessItems?3:5))},ze.getItemIcon=function(Mt,Gt){var bt=ze.props.prefixCls,fn=Mt||fe.createElement("button",{type:"button","aria-label":Gt,className:"".concat(bt,"-item-link")});return typeof Mt=="function"&&(fn=fe.createElement(Mt,(0,a.Z)({},ze.props))),fn},ze.isValid=function(Mt){var Gt=ze.props.total;return xe(Mt)&&Mt!==ze.state.current&&xe(Gt)&&Gt>0},ze.shouldDisplayQuickJumper=function(){var Mt=ze.props,Gt=Mt.showQuickJumper,bt=Mt.total,fn=ze.state.pageSize;return bt<=fn?!1:Gt},ze.handleKeyDown=function(Mt){(Mt.keyCode===le.ARROW_UP||Mt.keyCode===le.ARROW_DOWN)&&Mt.preventDefault()},ze.handleKeyUp=function(Mt){var Gt=ze.getValidValue(Mt),bt=ze.state.currentInputValue;Gt!==bt&&ze.setState({currentInputValue:Gt}),Mt.keyCode===le.ENTER?ze.handleChange(Gt):Mt.keyCode===le.ARROW_UP?ze.handleChange(Gt-1):Mt.keyCode===le.ARROW_DOWN&&ze.handleChange(Gt+1)},ze.handleBlur=function(Mt){var Gt=ze.getValidValue(Mt);ze.handleChange(Gt)},ze.changePageSize=function(Mt){var Gt=ze.state.current,bt=Ye(Mt,ze.state,ze.props);Gt=Gt>bt?bt:Gt,bt===0&&(Gt=ze.state.current),typeof Mt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Mt}),"current"in ze.props||ze.setState({current:Gt,currentInputValue:Gt})),ze.props.onShowSizeChange(Gt,Mt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Gt,Mt)},ze.handleChange=function(Mt){var Gt=ze.props,bt=Gt.disabled,fn=Gt.onChange,dn=ze.state,wt=dn.pageSize,yn=dn.current,_n=dn.currentInputValue;if(ze.isValid(Mt)&&!bt){var Fn=Ye(void 0,ze.state,ze.props),xn=Mt;return Mt>Fn?xn=Fn:Mt<1&&(xn=1),"current"in ze.props||ze.setState({current:xn}),xn!==_n&&ze.setState({currentInputValue:xn}),fn(xn,wt),xn}return yn},ze.prev=function(){ze.hasPrev()&&ze.handleChange(ze.state.current-1)},ze.next=function(){ze.hasNext()&&ze.handleChange(ze.state.current+1)},ze.jumpPrev=function(){ze.handleChange(ze.getJumpPrevPage())},ze.jumpNext=function(){ze.handleChange(ze.getJumpNextPage())},ze.hasPrev=function(){return ze.state.current>1},ze.hasNext=function(){return ze.state.current<Ye(void 0,ze.state,ze.props)},ze.runIfEnter=function(Mt,Gt){if(Mt.key==="Enter"||Mt.charCode===13){for(var bt=arguments.length,fn=new Array(bt>2?bt-2:0),dn=2;dn<bt;dn++)fn[dn-2]=arguments[dn];Gt.apply(void 0,fn)}},ze.runIfEnterPrev=function(Mt){ze.runIfEnter(Mt,ze.prev)},ze.runIfEnterNext=function(Mt){ze.runIfEnter(Mt,ze.next)},ze.runIfEnterJumpPrev=function(Mt){ze.runIfEnter(Mt,ze.jumpPrev)},ze.runIfEnterJumpNext=function(Mt){ze.runIfEnter(Mt,ze.jumpNext)},ze.handleGoTO=function(Mt){(Mt.keyCode===le.ENTER||Mt.type==="click")&&ze.handleChange(ze.state.currentInputValue)},ze.renderPrev=function(Mt){var Gt=ze.props,bt=Gt.prevIcon,fn=Gt.itemRender,dn=fn(Mt,"prev",ze.getItemIcon(bt,"prev page")),wt=!ze.hasPrev();return(0,fe.isValidElement)(dn)?(0,fe.cloneElement)(dn,{disabled:wt}):dn},ze.renderNext=function(Mt){var Gt=ze.props,bt=Gt.nextIcon,fn=Gt.itemRender,dn=fn(Mt,"next",ze.getItemIcon(bt,"next page")),wt=!ze.hasNext();return(0,fe.isValidElement)(dn)?(0,fe.cloneElement)(dn,{disabled:wt}):dn};var ot=Be.onChange!==Fe,Ot="current"in Be;Ot&&!ot&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Dt=Be.defaultCurrent;"current"in Be&&(Dt=Be.current);var jt=Be.defaultPageSize;return"pageSize"in Be&&(jt=Be.pageSize),Dt=Math.min(Dt,Ye(jt,void 0,Be)),ze.state={current:Dt,currentInputValue:Dt,pageSize:jt},ze}return(0,E.Z)(We,[{key:"componentDidUpdate",value:function(ze,ot){var Ot=this.props.prefixCls;if(ot.current!==this.state.current&&this.paginationNode.current){var Dt=this.paginationNode.current.querySelector(".".concat(Ot,"-item-").concat(ot.current));if(Dt&&document.activeElement===Dt){var jt;Dt==null||(jt=Dt.blur)===null||jt===void 0||jt.call(Dt)}}}},{key:"getValidValue",value:function(ze){var ot=ze.target.value,Ot=Ye(void 0,this.state,this.props),Dt=this.state.currentInputValue,jt;return ot===""?jt=ot:Number.isNaN(Number(ot))?jt=Dt:ot>=Ot?jt=Ot:jt=Number(ot),jt}},{key:"getShowSizeChanger",value:function(){var ze=this.props,ot=ze.showSizeChanger,Ot=ze.total,Dt=ze.totalBoundaryShowSizeChanger;return typeof ot!="undefined"?ot:Ot>Dt}},{key:"render",value:function(){var ze=this.props,ot=ze.prefixCls,Ot=ze.className,Dt=ze.style,jt=ze.disabled,Mt=ze.hideOnSinglePage,Gt=ze.total,bt=ze.locale,fn=ze.showQuickJumper,dn=ze.showLessItems,wt=ze.showTitle,yn=ze.showTotal,_n=ze.simple,Fn=ze.itemRender,xn=ze.showPrevNextJumpers,Zn=ze.jumpPrevIcon,Jn=ze.jumpNextIcon,Kn=ze.selectComponentClass,Vn=ze.selectPrefixCls,Sr=ze.pageSizeOptions,sr=this.state,sn=sr.current,Yn=sr.pageSize,or=sr.currentInputValue;if(Mt===!0&&Gt<=Yn)return null;var $n=Ye(void 0,this.state,this.props),ir=[],Ar=null,Ir=null,wr=null,Tr=null,ar=null,$r=fn&&fn.goButton,Wt=dn?1:2,ae=sn-1>0?sn-1:0,_e=sn+1<$n?sn+1:$n,Pe=(0,z.Z)(this.props,{aria:!0,data:!0}),Ie=yn&&fe.createElement("li",{className:"".concat(ot,"-total-text")},yn(Gt,[Gt===0?0:(sn-1)*Yn+1,sn*Yn>Gt?Gt:sn*Yn]));if(_n){$r&&(typeof $r=="boolean"?ar=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):ar=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},$r),ar=fe.createElement("li",{title:wt?"".concat(bt.jump_to).concat(sn,"/").concat($n):null,className:"".concat(ot,"-simple-pager")},ar));var ke=this.renderPrev(ae);return fe.createElement("ul",(0,te.Z)({className:oe()(ot,"".concat(ot,"-simple"),(0,ne.Z)({},"".concat(ot,"-disabled"),jt),Ot),style:Dt,ref:this.paginationNode},Pe),Ie,ke?fe.createElement("li",{title:wt?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(ot,"-prev"),(0,ne.Z)({},"".concat(ot,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ke):null,fe.createElement("li",{title:wt?"".concat(sn,"/").concat($n):null,className:"".concat(ot,"-simple-pager")},fe.createElement("input",{type:"text",value:or,disabled:jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(ot,"-slash")},"/"),$n),fe.createElement("li",{title:wt?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:oe()("".concat(ot,"-next"),(0,ne.Z)({},"".concat(ot,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(_e)),ar)}if($n<=3+Wt*2){var et={locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wt,itemRender:Fn};$n||ir.push(fe.createElement(Ee,(0,te.Z)({},et,{key:"noPager",page:1,className:"".concat(ot,"-item-disabled")})));for(var vt=1;vt<=$n;vt+=1){var Qt=sn===vt;ir.push(fe.createElement(Ee,(0,te.Z)({},et,{key:vt,page:vt,active:Qt})))}}else{var Ut=dn?bt.prev_3:bt.prev_5,yt=dn?bt.next_3:bt.next_5,pt=Fn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Zn,"prev page")),Bt=Fn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Jn,"next page"));xn&&(Ar=pt?fe.createElement("li",{title:wt?Ut:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:oe()("".concat(ot,"-jump-prev"),(0,ne.Z)({},"".concat(ot,"-jump-prev-custom-icon"),!!Zn))},pt):null,Ir=Bt?fe.createElement("li",{title:wt?yt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:oe()("".concat(ot,"-jump-next"),(0,ne.Z)({},"".concat(ot,"-jump-next-custom-icon"),!!Jn))},Bt):null),Tr=fe.createElement(Ee,{locale:bt,last:!0,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$n,page:$n,active:!1,showTitle:wt,itemRender:Fn}),wr=fe.createElement(Ee,{locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wt,itemRender:Fn});var gt=Math.max(1,sn-Wt),zt=Math.min(sn+Wt,$n);sn-1<=Wt&&(zt=1+Wt*2),$n-sn<=Wt&&(gt=$n-Wt*2);for(var Vt=gt;Vt<=zt;Vt+=1){var Rt=sn===Vt;ir.push(fe.createElement(Ee,{locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vt,page:Vt,active:Rt,showTitle:wt,itemRender:Fn}))}sn-1>=Wt*2&&sn!==3&&(ir[0]=(0,fe.cloneElement)(ir[0],{className:"".concat(ot,"-item-after-jump-prev")}),ir.unshift(Ar)),$n-sn>=Wt*2&&sn!==$n-2&&(ir[ir.length-1]=(0,fe.cloneElement)(ir[ir.length-1],{className:"".concat(ot,"-item-before-jump-next")}),ir.push(Ir)),gt!==1&&ir.unshift(wr),zt!==$n&&ir.push(Tr)}var kt=!this.hasPrev()||!$n,Jt=!this.hasNext()||!$n,un=this.renderPrev(ae),Dn=this.renderNext(_e);return fe.createElement("ul",(0,te.Z)({className:oe()(ot,Ot,(0,ne.Z)({},"".concat(ot,"-disabled"),jt)),style:Dt,ref:this.paginationNode},Pe),Ie,un?fe.createElement("li",{title:wt?bt.prev_page:null,onClick:this.prev,tabIndex:kt?null:0,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(ot,"-prev"),(0,ne.Z)({},"".concat(ot,"-disabled"),kt)),"aria-disabled":kt},un):null,ir,Dn?fe.createElement("li",{title:wt?bt.next_page:null,onClick:this.next,tabIndex:Jt?null:0,onKeyPress:this.runIfEnterNext,className:oe()("".concat(ot,"-next"),(0,ne.Z)({},"".concat(ot,"-disabled"),Jt)),"aria-disabled":Jt},Dn):null,fe.createElement(Se,{disabled:jt,locale:bt,rootPrefixCls:ot,selectComponentClass:Kn,selectPrefixCls:Vn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:sn,pageSize:Yn,pageSizeOptions:Sr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:$r}))}}],[{key:"getDerivedStateFromProps",value:function(ze,ot){var Ot={};if("current"in ze&&(Ot.current=ze.current,ze.current!==ot.current&&(Ot.currentInputValue=Ot.current)),"pageSize"in ze&&ze.pageSize!==ot.pageSize){var Dt=ot.current,jt=Ye(ze.pageSize,ot,ze);Dt=Dt>jt?jt:Dt,"current"in ze||(Ot.current=Dt,Ot.currentInputValue=Dt),Ot.pageSize=ze.pageSize}return Ot}}]),We}(fe.Component);ht.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Fe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Fe,locale:de.Z,style:{},itemRender:lt,totalBoundaryShowSizeChanger:50};var we=ht,je=ee(22075),He=ee(36355),Je=ee(19716),$e=ee(8628),mt=ee(9763),Pt=ee(57809);const At=Ae=>fe.createElement(Pt.default,Object.assign({},Ae,{showSearch:!0,size:"small"})),Nt=Ae=>fe.createElement(Pt.default,Object.assign({},Ae,{showSearch:!0,size:"middle"}));At.Option=Pt.default.Option,Nt.Option=Pt.default.Option;var rt=ee(9937),Xe=ee(17313),Ct=ee(83116),Ht=ee(37613);const Et=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${Re}-disabled`]:{cursor:"not-allowed",[`${Re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ae.colorBorder,backgroundColor:Ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ae.itemActiveBgDisabled},a:{color:Ae.itemActiveColorDisabled}}},[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Re}-simple-pager`]:{color:Ae.colorTextDisabled},[`${Re}-jump-prev, ${Re}-jump-next`]:{[`${Re}-item-link-icon`]:{opacity:0},[`${Re}-item-ellipsis`]:{opacity:1}}},[`&${Re}-simple`]:{[`${Re}-prev, ${Re}-next`]:{[`&${Re}-disabled ${Re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},rn=Ae=>{const{componentCls:Re}=Ae;return{[`&${Re}-mini ${Re}-total-text, &${Re}-mini ${Re}-simple-pager`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini ${Re}-item`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM-2}px`},[`&${Re}-mini:not(${Re}-disabled) ${Re}-item:not(${Re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},[`&${Re}-mini ${Re}-prev, &${Re}-mini ${Re}-next`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini:not(${Re}-disabled)`]:{[`${Re}-prev, ${Re}-next`]:{[`&:hover ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${Re}-disabled:hover ${Re}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Re}-mini ${Re}-prev ${Re}-item-link,
|
|
|
&${Re}-mini ${Re}-next ${Re}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}},[`&${Re}-mini ${Re}-jump-prev, &${Re}-mini ${Re}-jump-next`]:{height:Ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini ${Re}-options`]:{marginInlineStart:Ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(Ae)),{width:Ae.paginationMiniQuickJumperInputWidth,height:Ae.controlHeightSM})}}}},Ze=Ae=>{const{componentCls:Re}=Ae;return{[`
|
|
|
&${Re}-simple ${Re}-prev,
|
|
|
&${Re}-simple ${Re}-next
|
|
|
`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,verticalAlign:"top",[`${Re}-item-link`]:{height:Ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive},"&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}}},[`&${Re}-simple ${Re}-simple-pager`]:{display:"inline-block",height:Ae.itemSizeSM,marginInlineEnd:Ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ae.marginXS,padding:`0 ${Ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ae.itemInputBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadius,outline:"none",transition:`border-color ${Ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ae.colorPrimary},"&:focus":{borderColor:Ae.colorPrimaryHover,boxShadow:`${Ae.inputOutlineOffset}px 0 ${Ae.controlOutlineWidth}px ${Ae.controlOutline}`},"&[disabled]":{color:Ae.colorTextDisabled,backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,cursor:"not-allowed"}}}}},St=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-jump-prev, ${Re}-jump-next`]:{outline:0,[`${Re}-item-container`]:{position:"relative",[`${Re}-item-link-icon`]:{color:Ae.colorPrimary,fontSize:Ae.fontSizeSM,opacity:0,transition:`all ${Ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Re}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ae.motionDurationMid}`}},"&:hover":{[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Re}-prev,
|
|
|
${Re}-jump-prev,
|
|
|
${Re}-jump-next
|
|
|
`]:{marginInlineEnd:Ae.marginXS},[`
|
|
|
${Re}-prev,
|
|
|
${Re}-next,
|
|
|
${Re}-jump-prev,
|
|
|
${Re}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,color:Ae.colorText,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ae.borderRadius,cursor:"pointer",transition:`all ${Ae.motionDurationMid}`},[`${Re}-prev, ${Re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ae.colorText,cursor:"pointer",userSelect:"none"},[`${Re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:"none",transition:`all ${Ae.motionDurationMid}`},[`&:hover ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${Re}-disabled:hover`]:{[`${Re}-item-link`]:{backgroundColor:"transparent"}}},[`${Re}-slash`]:{marginInlineEnd:Ae.paginationSlashMarginInlineEnd,marginInlineStart:Ae.paginationSlashMarginInlineStart},[`${Re}-options`]:{display:"inline-block",marginInlineStart:Ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ae.controlHeight,marginInlineStart:Ae.marginXS,lineHeight:`${Ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(Ae)),{width:Ae.controlHeightLG*1.25,height:Ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ae.marginXS,marginInlineEnd:Ae.marginXS})}}}},Lt=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-item`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,marginInlineEnd:Ae.marginXS,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ae.paginationItemPaddingInline}px`,color:Ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Re}-item-active)`]:{"&:hover":{transition:`all ${Ae.motionDurationMid}`,backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},"&-active":{fontWeight:Ae.fontWeightStrong,backgroundColor:Ae.itemActiveBg,borderColor:Ae.colorPrimary,a:{color:Ae.colorPrimary},"&:hover":{borderColor:Ae.colorPrimaryHover},"&:hover a":{color:Ae.colorPrimaryHover}}}}},nn=Ae=>{const{componentCls:Re}=Ae;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(Ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Re}-total-text`]:{display:"inline-block",height:Ae.itemSize,marginInlineEnd:Ae.marginXS,lineHeight:`${Ae.itemSize-2}px`,verticalAlign:"middle"}}),Lt(Ae)),St(Ae)),Ze(Ae)),rn(Ae)),Et(Ae)),{[`@media only screen and (max-width: ${Ae.screenLG}px)`]:{[`${Re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ae.screenSM}px)`]:{[`${Re}-options`]:{display:"none"}}}),[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}}},Zt=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}${Re}-disabled:not(${Re}-mini)`]:{"&, &:hover":{[`${Re}-item-link`]:{borderColor:Ae.colorBorder}},"&:focus-visible":{[`${Re}-item-link`]:{borderColor:Ae.colorBorder}},[`${Re}-item, ${Re}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,[`&:hover:not(${Re}-item-active)`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,a:{color:Ae.colorTextDisabled}},[`&${Re}-item-active`]:{backgroundColor:Ae.itemActiveBgDisabled}},[`${Re}-prev, ${Re}-next`]:{"&:hover button":{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,color:Ae.colorTextDisabled},[`${Re}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder}}},[`${Re}:not(${Re}-mini)`]:{[`${Re}-prev, ${Re}-next`]:{"&:hover button":{borderColor:Ae.colorPrimaryHover,backgroundColor:Ae.itemBg},[`${Re}-item-link`]:{backgroundColor:Ae.itemLinkBg,borderColor:Ae.colorBorder},[`&:hover ${Re}-item-link`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,color:Ae.colorPrimary},[`&${Re}-disabled`]:{[`${Re}-item-link`]:{borderColor:Ae.colorBorder,color:Ae.colorTextDisabled}}},[`${Re}-item`]:{backgroundColor:Ae.itemBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,[`&:hover:not(${Re}-item-active)`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,a:{color:Ae.colorPrimary}},"&-active":{borderColor:Ae.colorPrimary}}}}},at=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}:not(${Re}-disabled)`]:{[`${Re}-item`]:Object.assign({},(0,Xe.Qy)(Ae)),[`${Re}-jump-prev, ${Re}-jump-next`]:{"&:focus-visible":Object.assign({[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}},(0,Xe.oN)(Ae))},[`${Re}-prev, ${Re}-next`]:{[`&:focus-visible ${Re}-item-link`]:Object.assign({},(0,Xe.oN)(Ae))}}}};var dt=(0,Ct.Z)("Pagination",Ae=>{const Re=(0,Ht.TS)(Ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ae.marginXXS/2,paginationMiniQuickJumperInputWidth:Ae.controlHeightLG*1.1,paginationItemPaddingInline:Ae.marginXXS*1.5,paginationEllipsisLetterSpacing:Ae.marginXXS/2,paginationSlashMarginInlineStart:Ae.marginXXS,paginationSlashMarginInlineEnd:Ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(Ae),(0,rt.TM)(Ae));return[nn(Re),at(Re),Ae.wireframe&&Zt(Re)]},Ae=>({itemBg:Ae.colorBgContainer,itemSize:Ae.controlHeight,itemSizeSM:Ae.controlHeightSM,itemActiveBg:Ae.colorBgContainer,itemLinkBg:Ae.colorBgContainer,itemActiveColorDisabled:Ae.colorTextDisabled,itemActiveBgDisabled:Ae.controlItemBgActiveDisabled,itemInputBg:Ae.colorBgContainer,miniOptionsSizeChangerTop:0})),Ge=function(Ae,Re){var We={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&Re.indexOf(Be)<0&&(We[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(Ae);ze<Be.length;ze++)Re.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[ze])&&(We[Be[ze]]=Ae[Be[ze]]);return We},nt=Ae=>{const{prefixCls:Re,selectPrefixCls:We,className:Be,rootClassName:ze,style:ot,size:Ot,locale:Dt,selectComponentClass:jt,responsive:Mt,showSizeChanger:Gt}=Ae,bt=Ge(Ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fn}=(0,$e.Z)(Mt),{getPrefixCls:dn,direction:wt,pagination:yn={}}=fe.useContext(He.E_),_n=dn("pagination",Re),[Fn,xn]=dt(_n),Zn=Gt!=null?Gt:yn.showSizeChanger,Jn=fe.useMemo(()=>{const $n=fe.createElement("span",{className:`${_n}-item-ellipsis`},"\u2022\u2022\u2022"),ir=fe.createElement("button",{className:`${_n}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?fe.createElement(se.Z,null):fe.createElement(me.Z,null)),Ar=fe.createElement("button",{className:`${_n}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?fe.createElement(me.Z,null):fe.createElement(se.Z,null)),Ir=fe.createElement("a",{className:`${_n}-item-link`},fe.createElement("div",{className:`${_n}-item-container`},wt==="rtl"?fe.createElement(ce.Z,{className:`${_n}-item-link-icon`}):fe.createElement(ue,{className:`${_n}-item-link-icon`}),$n)),wr=fe.createElement("a",{className:`${_n}-item-link`},fe.createElement("div",{className:`${_n}-item-container`},wt==="rtl"?fe.createElement(ue,{className:`${_n}-item-link-icon`}):fe.createElement(ce.Z,{className:`${_n}-item-link-icon`}),$n));return{prevIcon:ir,nextIcon:Ar,jumpPrevIcon:Ir,jumpNextIcon:wr}},[wt,_n]),[Kn]=(0,mt.Z)("Pagination",je.Z),Vn=Object.assign(Object.assign({},Kn),Dt),Sr=(0,Je.Z)(Ot),sr=Sr==="small"||!!(fn&&!Sr&&Mt),sn=dn("select",We),Yn=oe()({[`${_n}-mini`]:sr,[`${_n}-rtl`]:wt==="rtl"},yn==null?void 0:yn.className,Be,ze,xn),or=Object.assign(Object.assign({},yn==null?void 0:yn.style),ot);return Fn(fe.createElement(we,Object.assign({},Jn,bt,{style:or,prefixCls:_n,selectPrefixCls:sn,className:Yn,selectComponentClass:jt||(sr?At:Nt),locale:Vn,showSizeChanger:Zn})))},xt=nt},61621:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return dt}});var te=ee(92310),fe=ee.n(te),be=ee(59301),ye=ee(36355),he=ee(2738),ie=Ge=>{const{prefixCls:Ne,className:nt,style:xt,size:Ae,shape:Re}=Ge,We=fe()({[`${Ne}-lg`]:Ae==="large",[`${Ne}-sm`]:Ae==="small"}),Be=fe()({[`${Ne}-circle`]:Re==="circle",[`${Ne}-square`]:Re==="square",[`${Ne}-round`]:Re==="round"}),ze=be.useMemo(()=>typeof Ae=="number"?{width:Ae,height:Ae,lineHeight:`${Ae}px`}:{},[Ae]);return be.createElement("span",{className:fe()(Ne,We,Be,nt),style:Object.assign(Object.assign({},ze),xt)})},ue=ee(36237),ce=ee(83116),me=ee(37613);const se=new ue.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),pe=Ge=>({height:Ge,lineHeight:`${Ge}px`}),oe=Ge=>Object.assign({width:Ge},pe(Ge)),ne=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},pe(Ge)),y=Ge=>{const{skeletonAvatarCls:Ne,gradientFromColor:nt,controlHeight:xt,controlHeightLG:Ae,controlHeightSM:Re}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:nt},oe(xt)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},oe(Ae)),[`${Ne}${Ne}-sm`]:Object.assign({},oe(Re))}},E=Ge=>{const{controlHeight:Ne,borderRadiusSM:nt,skeletonInputCls:xt,controlHeightLG:Ae,controlHeightSM:Re,gradientFromColor:We}=Ge;return{[`${xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:nt},a(Ne)),[`${xt}-lg`]:Object.assign({},a(Ae)),[`${xt}-sm`]:Object.assign({},a(Re))}},b=Ge=>Object.assign({width:Ge},pe(Ge)),x=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:nt,gradientFromColor:xt,borderRadiusSM:Ae}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xt,borderRadius:Ae},b(nt*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},b(nt)),{maxWidth:nt*4,maxHeight:nt*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},z=(Ge,Ne,nt)=>{const{skeletonButtonCls:xt}=Ge;return{[`${nt}${xt}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${nt}${xt}-round`]:{borderRadius:Ne}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},pe(Ge)),le=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:nt,controlHeight:xt,controlHeightLG:Ae,controlHeightSM:Re,gradientFromColor:We}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Ne,width:xt*2,minWidth:xt*2},re(xt))},z(Ge,xt,nt)),{[`${nt}-lg`]:Object.assign({},re(Ae))}),z(Ge,Ae,`${nt}-lg`)),{[`${nt}-sm`]:Object.assign({},re(Re))}),z(Ge,Re,`${nt}-sm`))},de=Ge=>{const{componentCls:Ne,skeletonAvatarCls:nt,skeletonTitleCls:xt,skeletonParagraphCls:Ae,skeletonButtonCls:Re,skeletonInputCls:We,skeletonImageCls:Be,controlHeight:ze,controlHeightLG:ot,controlHeightSM:Ot,gradientFromColor:Dt,padding:jt,marginSM:Mt,borderRadius:Gt,titleHeight:bt,blockRadius:fn,paragraphLiHeight:dn,controlHeightXS:wt,paragraphMarginTop:yn}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt},oe(ze)),[`${nt}-circle`]:{borderRadius:"50%"},[`${nt}-lg`]:Object.assign({},oe(ot)),[`${nt}-sm`]:Object.assign({},oe(Ot))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xt}`]:{width:"100%",height:bt,background:Dt,borderRadius:fn,[`+ ${Ae}`]:{marginBlockStart:Ot}},[`${Ae}`]:{padding:0,"> li":{width:"100%",height:dn,listStyle:"none",background:Dt,borderRadius:fn,"+ li":{marginBlockStart:wt}}},[`${Ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${xt}, ${Ae} > li`]:{borderRadius:Gt}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${xt}`]:{marginBlockStart:Mt,[`+ ${Ae}`]:{marginBlockStart:yn}}},[`${Ne}${Ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},le(Ge)),y(Ge)),E(Ge)),x(Ge)),[`${Ne}${Ne}-block`]:{width:"100%",[`${Re}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[`
|
|
|
${xt},
|
|
|
${Ae} > li,
|
|
|
${nt},
|
|
|
${Re},
|
|
|
${We},
|
|
|
${Be}
|
|
|
`]:Object.assign({},ne(Ge))}}};var ve=(0,ce.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,nt=(0,me.TS)(Ge,{skeletonAvatarCls:`${Ne}-avatar`,skeletonTitleCls:`${Ne}-title`,skeletonParagraphCls:`${Ne}-paragraph`,skeletonButtonCls:`${Ne}-button`,skeletonInputCls:`${Ne}-input`,skeletonImageCls:`${Ne}-image`,imageSizeBase:Ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ge.gradientFromColor} 25%, ${Ge.gradientToColor} 37%, ${Ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[de(nt)]},Ge=>{const{colorFillContent:Ne,colorFill:nt}=Ge,xt=Ne,Ae=nt;return{color:xt,colorGradientEnd:Ae,gradientFromColor:xt,gradientToColor:Ae,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Le=Ge=>{const{prefixCls:Ne,className:nt,rootClassName:xt,active:Ae,shape:Re="circle",size:We="default"}=Ge,{getPrefixCls:Be}=be.useContext(ye.E_),ze=Be("skeleton",Ne),[ot,Ot]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls","className"]),jt=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae},nt,xt,Ot);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-avatar`,shape:Re,size:We},Dt))))},Fe=Ge=>{const{prefixCls:Ne,className:nt,rootClassName:xt,active:Ae,block:Re=!1,size:We="default"}=Ge,{getPrefixCls:Be}=be.useContext(ye.E_),ze=Be("skeleton",Ne),[ot,Ot]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls"]),jt=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae,[`${ze}-block`]:Re},nt,xt,Ot);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-button`,size:We},Dt))))};const xe="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 Ye=Ge=>{const{prefixCls:Ne,className:nt,rootClassName:xt,style:Ae,active:Re}=Ge,{getPrefixCls:We}=be.useContext(ye.E_),Be=We("skeleton",Ne),[ze,ot]=ve(Be),Ot=fe()(Be,`${Be}-element`,{[`${Be}-active`]:Re},nt,xt,ot);return ze(be.createElement("div",{className:Ot},be.createElement("div",{className:fe()(`${Be}-image`,nt),style:Ae},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},be.createElement("path",{d:xe,className:`${Be}-image-path`})))))},we=Ge=>{const{prefixCls:Ne,className:nt,rootClassName:xt,active:Ae,block:Re,size:We="default"}=Ge,{getPrefixCls:Be}=be.useContext(ye.E_),ze=Be("skeleton",Ne),[ot,Ot]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls"]),jt=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae,[`${ze}-block`]:Re},nt,xt,Ot);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-input`,size:We},Dt))))},je=ee(54476),He={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"},Je=He,$e=ee(7657),mt=function(Ne,nt){return be.createElement($e.Z,(0,je.Z)({},Ne,{ref:nt,icon:Je}))},Pt=be.forwardRef(mt),At=Pt,rt=Ge=>{const{prefixCls:Ne,className:nt,rootClassName:xt,style:Ae,active:Re,children:We}=Ge,{getPrefixCls:Be}=be.useContext(ye.E_),ze=Be("skeleton",Ne),[ot,Ot]=ve(ze),Dt=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Re},Ot,nt,xt),jt=We!=null?We:be.createElement(At,null);return ot(be.createElement("div",{className:Dt},be.createElement("div",{className:fe()(`${ze}-image`,nt),style:Ae},jt)))},Xe=ee(94480),Ht=Ge=>{const Ne=Be=>{const{width:ze,rows:ot=2}=Ge;if(Array.isArray(ze))return ze[Be];if(ot-1===Be)return ze},{prefixCls:nt,className:xt,style:Ae,rows:Re}=Ge,We=(0,Xe.Z)(Array(Re)).map((Be,ze)=>be.createElement("li",{key:ze,style:{width:Ne(ze)}}));return be.createElement("ul",{className:fe()(nt,xt),style:Ae},We)},rn=Ge=>{let{prefixCls:Ne,className:nt,width:xt,style:Ae}=Ge;return be.createElement("h3",{className:fe()(Ne,nt),style:Object.assign({width:xt},Ae)})};function Ze(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function St(Ge,Ne){return Ge&&!Ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Lt(Ge,Ne){return!Ge&&Ne?{width:"38%"}:Ge&&Ne?{width:"50%"}:{}}function nn(Ge,Ne){const nt={};return(!Ge||!Ne)&&(nt.width="61%"),!Ge&&Ne?nt.rows=3:nt.rows=2,nt}const Zt=Ge=>{const{prefixCls:Ne,loading:nt,className:xt,rootClassName:Ae,style:Re,children:We,avatar:Be=!1,title:ze=!0,paragraph:ot=!0,active:Ot,round:Dt}=Ge,{getPrefixCls:jt,direction:Mt,skeleton:Gt}=be.useContext(ye.E_),bt=jt("skeleton",Ne),[fn,dn]=ve(bt);if(nt||!("loading"in Ge)){const wt=!!Be,yn=!!ze,_n=!!ot;let Fn;if(wt){const Jn=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},St(yn,_n)),Ze(Be));Fn=be.createElement("div",{className:`${bt}-header`},be.createElement(ie,Object.assign({},Jn)))}let xn;if(yn||_n){let Jn;if(yn){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-title`},Lt(wt,_n)),Ze(ze));Jn=be.createElement(rn,Object.assign({},Vn))}let Kn;if(_n){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},nn(wt,yn)),Ze(ot));Kn=be.createElement(Ht,Object.assign({},Vn))}xn=be.createElement("div",{className:`${bt}-content`},Jn,Kn)}const Zn=fe()(bt,{[`${bt}-with-avatar`]:wt,[`${bt}-active`]:Ot,[`${bt}-rtl`]:Mt==="rtl",[`${bt}-round`]:Dt},Gt==null?void 0:Gt.className,xt,Ae,dn);return fn(be.createElement("div",{className:Zn,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Re)},Fn,xn))}return typeof We!="undefined"?We:null};Zt.Button=Fe,Zt.Avatar=Le,Zt.Input=we,Zt.Image=Ye,Zt.Node=rt;var at=Zt,dt=at},31797:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return ve}});var te=ee(59301),fe=ee(56762),be=ee(92343),ye=ee(92310),he=ee.n(ye),ge=ee(36355),ie=ee(61621),ce=Se=>{const{value:Le,formatter:Ee,precision:Fe,decimalSeparator:xe,groupSeparator:lt="",prefixCls:Ye}=Se;let ht;if(typeof Ee=="function")ht=Ee(Le);else{const we=String(Le),je=we.match(/^(-?)(\d*)(\.(\d+))?$/);if(!je||we==="-")ht=we;else{const He=je[1];let Je=je[2]||"0",$e=je[4]||"";Je=Je.replace(/\B(?=(\d{3})+(?!\d))/g,lt),typeof Fe=="number"&&($e=$e.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),$e&&($e=`${xe}${$e}`),ht=[te.createElement("span",{key:"int",className:`${Ye}-content-value-int`},He,Je),$e&&te.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},$e)]}}return te.createElement("span",{className:`${Ye}-content-value`},ht)},me=ee(17313),se=ee(83116),pe=ee(37613);const oe=Se=>{const{componentCls:Le,marginXXS:Ee,padding:Fe,colorTextDescription:xe,titleFontSize:lt,colorTextHeading:Ye,contentFontSize:ht,fontFamily:we}=Se;return{[`${Le}`]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{[`${Le}-title`]:{marginBottom:Ee,color:xe,fontSize:lt},[`${Le}-skeleton`]:{paddingTop:Fe},[`${Le}-content`]:{color:Ye,fontSize:ht,fontFamily:we,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:Ee},[`${Le}-content-suffix`]:{marginInlineStart:Ee}}})}};var ne=(0,se.Z)("Statistic",Se=>{const Le=(0,pe.TS)(Se,{});return[oe(Le)]},Se=>{const{fontSizeHeading3:Le,fontSize:Ee}=Se;return{titleFontSize:Ee,contentFontSize:Le}}),y=Se=>{const{prefixCls:Le,className:Ee,rootClassName:Fe,style:xe,valueStyle:lt,value:Ye=0,title:ht,valueRender:we,prefix:je,suffix:He,loading:Je=!1,onMouseEnter:$e,onMouseLeave:mt,decimalSeparator:Pt=".",groupSeparator:At=","}=Se,{getPrefixCls:Nt,direction:rt,statistic:Xe}=te.useContext(ge.E_),Ct=Nt("statistic",Le),[Ht,Et]=ne(Ct),rn=te.createElement(ce,Object.assign({decimalSeparator:Pt,groupSeparator:At,prefixCls:Ct},Se,{value:Ye})),Ze=he()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},Xe==null?void 0:Xe.className,Ee,Fe,Et);return Ht(te.createElement("div",{className:Ze,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),xe),onMouseEnter:$e,onMouseLeave:mt},ht&&te.createElement("div",{className:`${Ct}-title`},ht),te.createElement(ie.Z,{paragraph:!1,loading:Je,className:`${Ct}-skeleton`},te.createElement("div",{style:lt,className:`${Ct}-content`},je&&te.createElement("span",{className:`${Ct}-content-prefix`},je),we?we(rn):rn,He&&te.createElement("span",{className:`${Ct}-content-suffix`},He)))))};const E=[["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 b(Se,Le){let Ee=Se;const Fe=/\[[^\]]*]/g,xe=(Le.match(Fe)||[]).map(we=>we.slice(1,-1)),lt=Le.replace(Fe,"[]"),Ye=E.reduce((we,je)=>{let[He,Je]=je;if(we.includes(He)){const $e=Math.floor(Ee/Je);return Ee-=$e*Je,we.replace(new RegExp(`${He}+`,"g"),mt=>{const Pt=mt.length;return $e.toString().padStart(Pt,"0")})}return we},lt);let ht=0;return Ye.replace(Fe,()=>{const we=xe[ht];return ht+=1,we})}function x(Se,Le){const{format:Ee=""}=Le,Fe=new Date(Se).getTime(),xe=Date.now(),lt=Math.max(Fe-xe,0);return b(lt,Ee)}const z=1e3/30;function re(Se){return new Date(Se).getTime()}const le=Se=>{const{value:Le,format:Ee="HH:mm:ss",onChange:Fe,onFinish:xe}=Se,lt=(0,fe.Z)(),Ye=te.useRef(null),ht=()=>{xe==null||xe(),Ye.current&&(clearInterval(Ye.current),Ye.current=null)},we=()=>{const Je=re(Le);Je>=Date.now()&&(Ye.current=setInterval(()=>{lt(),Fe==null||Fe(Je-Date.now()),Je<Date.now()&&ht()},z))};te.useEffect(()=>(we(),()=>{Ye.current&&(clearInterval(Ye.current),Ye.current=null)}),[Le]);const je=(Je,$e)=>x(Je,Object.assign(Object.assign({},$e),{format:Ee})),He=Je=>(0,be.Tm)(Je,{title:void 0});return te.createElement(y,Object.assign({},Se,{valueRender:He,formatter:je}))};var de=te.memo(le);y.Countdown=de;var ve=y},15969:function(ft,Ke,ee){"use strict";ee.d(Ke,{N:function(){return te}});const te=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},1710:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return $i}});var te={},fe="rc-table-internal-hook",be=ee(42978),ye=ee(6089),he=ee(34280),ge=ee(13697),ie=ee(59301),ue=ee(4676);function ce(De){var Te=ie.createContext(void 0),Ue=function(it){var Ce=it.value,Me=it.children,Oe=ie.useRef(Ce);Oe.current=Ce;var Qe=ie.useState(function(){return{getValue:function(){return Oe.current},listeners:new Set}}),qe=(0,be.Z)(Qe,1),tt=qe[0];return(0,he.Z)(function(){(0,ue.unstable_batchedUpdates)(function(){tt.listeners.forEach(function(ut){ut(Ce)})})},[Ce]),ie.createElement(Te.Provider,{value:tt},Me)};return{Context:Te,Provider:Ue,defaultValue:De}}function me(De,Te){var Ue=(0,ye.Z)(typeof Te=="function"?Te:function(ut){if(Te===void 0)return ut;if(!Array.isArray(Te))return ut[Te];var ct={};return Te.forEach(function(st){ct[st]=ut[st]}),ct}),Ve=ie.useContext(De==null?void 0:De.Context),it=Ve||{},Ce=it.listeners,Me=it.getValue,Oe=ie.useRef();Oe.current=Ue(Ve?Me():De==null?void 0:De.defaultValue);var Qe=ie.useState({}),qe=(0,be.Z)(Qe,2),tt=qe[1];return(0,he.Z)(function(){if(!Ve)return;function ut(ct){var st=Ue(ct);(0,ge.Z)(Oe.current,st,!0)||tt({})}return Ce.add(ut),function(){Ce.delete(ut)}},[Ve]),Oe.current}var se=ee(54476),pe=ee(8654);function oe(){var De=ie.createContext(null);function Te(){return ie.useContext(De)}function Ue(it,Ce){var Me=(0,pe.Yr)(it),Oe=function(qe,tt){var ut=Me?{ref:tt}:{},ct=ie.useRef(0),st=ie.useRef(qe),_t=Te();return _t!==null?ie.createElement(it,(0,se.Z)({},qe,ut)):((!Ce||Ce(st.current,qe))&&(ct.current+=1),st.current=qe,ie.createElement(De.Provider,{value:ct.current},ie.createElement(it,(0,se.Z)({},qe,ut))))};return Me?ie.forwardRef(Oe):Oe}function Ve(it,Ce){var Me=(0,pe.Yr)(it),Oe=function(qe,tt){var ut=Me?{ref:tt}:{};return Te(),ie.createElement(it,(0,se.Z)({},qe,ut))};return Me?ie.memo(ie.forwardRef(Oe),Ce):ie.memo(Oe,Ce)}return{makeImmutable:Ue,responseImmutable:Ve,useImmutableMark:Te}}var ne=oe(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=oe(),x=b.makeImmutable,z=b.responseImmutable,re=b.useImmutableMark,le=ce(),de=le;function ve(De,Te){var Ue=ie.useRef(0);Ue.current+=1;var Ve=ie.useRef(De),it=[];Object.keys(De||{}).map(function(Me){var Oe;(De==null?void 0:De[Me])!==((Oe=Ve.current)===null||Oe===void 0?void 0:Oe[Me])&&it.push(Me)}),Ve.current=De;var Ce=ie.useRef([]);return it.length&&(Ce.current=it),ie.useDebugValue(Ue.current),ie.useDebugValue(Ce.current.join(", ")),Te&&console.log("".concat(Te,":"),Ue.current,Ce.current),Ue.current}var Se=null,Le=ie.memo(function(){var De=ve();return ie.createElement("h1",null,"Render Times: ",De)});Le.displayName="RenderBlock";var Ee=ee(76190),Fe=ee(33885),xe=ee(20068),lt=ee(92310),Ye=ee.n(lt),ht=ee(80547),we=ee(97938),je=ee(48736),He=ie.createContext({renderWithProps:!1}),Je=He,$e="RC_TABLE_KEY";function mt(De){return De==null?[]:Array.isArray(De)?De:[De]}function Pt(De){var Te=[],Ue={};return De.forEach(function(Ve){for(var it=Ve||{},Ce=it.key,Me=it.dataIndex,Oe=Ce||mt(Me).join("-")||$e;Ue[Oe];)Oe="".concat(Oe,"_next");Ue[Oe]=!0,Te.push(Oe)}),Te}function At(De){return De!=null}function Nt(De){return De&&(0,Ee.Z)(De)==="object"&&!Array.isArray(De)&&!ie.isValidElement(De)}function rt(De,Te,Ue,Ve,it,Ce){var Me=ie.useContext(Je),Oe=re(),Qe=(0,ht.Z)(function(){if(At(Ve))return[Ve];var qe=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],tt=(0,we.Z)(De,qe),ut=tt,ct=void 0;if(it){var st=it(tt,De,Ue);Nt(st)?(ut=st.children,ct=st.props,Me.renderWithProps=!0):ut=st}return[ut,ct]},[Oe,De,Ve,Te,it,Ue],function(qe,tt){if(Ce){var ut=(0,be.Z)(qe,2),ct=ut[1],st=(0,be.Z)(tt,2),_t=st[1];return Ce(_t,ct)}return Me.renderWithProps?!0:!(0,ge.Z)(qe,tt,!0)});return Qe}function Xe(De,Te,Ue,Ve){var it=De+Te-1;return De<=Ve&&it>=Ue}function Ct(De,Te){return me(de,function(Ue){var Ve=Xe(De,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Ve,Ue.onHover]})}var Ht=function(Te){var Ue=Te.ellipsis,Ve=Te.rowType,it=Te.children,Ce,Me=Ue===!0?{showTitle:!0}:Ue;return Me&&(Me.showTitle||Ve==="header")&&(typeof it=="string"||typeof it=="number"?Ce=it.toString():ie.isValidElement(it)&&typeof it.props.children=="string"&&(Ce=it.props.children)),Ce};function Et(De){var Te,Ue,Ve,it,Ce,Me,Oe,Qe,qe=De.component,tt=De.children,ut=De.ellipsis,ct=De.scope,st=De.prefixCls,_t=De.className,Yt=De.align,It=De.record,Kt=De.render,Ft=De.dataIndex,Xt=De.renderIndex,on=De.shouldCellUpdate,mn=De.index,ln=De.rowType,vn=De.colSpan,Nn=De.rowSpan,qt=De.fixLeft,hn=De.fixRight,Tt=De.firstFixLeft,tn=De.lastFixLeft,cn=De.firstFixRight,Mn=De.lastFixRight,qn=De.appendNode,en=De.additionalProps,En=en===void 0?{}:en,gn=De.isSticky,Sn="".concat(st,"-cell"),jn=me(de,["supportSticky","allColumnsFixedLeft"]),Qn=jn.supportSticky,br=jn.allColumnsFixedLeft,nr=rt(It,Ft,Xt,tt,Kt,on),tr=(0,be.Z)(nr,2),Vr=tr[0],mr=tr[1],Br={},cr=typeof qt=="number"&&Qn,Wn=typeof hn=="number"&&Qn;cr&&(Br.position="sticky",Br.left=qt),Wn&&(Br.position="sticky",Br.right=hn);var On=(Te=(Ue=(Ve=mr==null?void 0:mr.colSpan)!==null&&Ve!==void 0?Ve:En.colSpan)!==null&&Ue!==void 0?Ue:vn)!==null&&Te!==void 0?Te:1,Tn=(it=(Ce=(Me=mr==null?void 0:mr.rowSpan)!==null&&Me!==void 0?Me:En.rowSpan)!==null&&Ce!==void 0?Ce:Nn)!==null&&it!==void 0?it:1,Hn=Ct(mn,Tn),An=(0,be.Z)(Hn,2),Cr=An[0],Bn=An[1],zn=function(Lr){var Jr;It&&Bn(mn,mn+Tn-1),En==null||(Jr=En.onMouseEnter)===null||Jr===void 0||Jr.call(En,Lr)},gr=function(Lr){var Jr;It&&Bn(-1,-1),En==null||(Jr=En.onMouseLeave)===null||Jr===void 0||Jr.call(En,Lr)};if(On===0||Tn===0)return null;var yr=(Oe=En.title)!==null&&Oe!==void 0?Oe:Ht({rowType:ln,ellipsis:ut,children:Vr}),Ao=Ye()(Sn,_t,(Qe={},(0,xe.Z)(Qe,"".concat(Sn,"-fix-left"),cr&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-left-first"),Tt&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-left-last"),tn&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-left-all"),tn&&br&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-right"),Wn&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-right-first"),cn&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-right-last"),Mn&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-ellipsis"),ut),(0,xe.Z)(Qe,"".concat(Sn,"-with-append"),qn),(0,xe.Z)(Qe,"".concat(Sn,"-fix-sticky"),(cr||Wn)&&gn&&Qn),(0,xe.Z)(Qe,"".concat(Sn,"-row-hover"),!mr&&Cr),Qe),En.className,mr==null?void 0:mr.className),_o={};Yt&&(_o.textAlign=Yt);var ni=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Br),En.style),_o),mr==null?void 0:mr.style),Un=Vr;return(0,Ee.Z)(Un)==="object"&&!Array.isArray(Un)&&!ie.isValidElement(Un)&&(Un=null),ut&&(tn||cn)&&(Un=ie.createElement("span",{className:"".concat(Sn,"-content")},Un)),ie.createElement(qe,(0,se.Z)({},mr,En,{className:Ao,style:ni,title:yr,scope:ct,onMouseEnter:zn,onMouseLeave:gr,colSpan:On!==1?On:null,rowSpan:Tn!==1?Tn:null}),qn,Un)}var rn=ie.memo(Et);function Ze(De,Te,Ue,Ve,it,Ce){var Me=Ue[De]||{},Oe=Ue[Te]||{},Qe,qe;Me.fixed==="left"?Qe=Ve.left[it==="rtl"?Te:De]:Oe.fixed==="right"&&(qe=Ve.right[it==="rtl"?De:Te]);var tt=!1,ut=!1,ct=!1,st=!1,_t=Ue[Te+1],Yt=Ue[De-1],It=!(Ce!=null&&Ce.children);if(it==="rtl"){if(Qe!==void 0){var Kt=Yt&&Yt.fixed==="left";st=!Kt&&It}else if(qe!==void 0){var Ft=_t&&_t.fixed==="right";ct=!Ft&&It}}else if(Qe!==void 0){var Xt=_t&&_t.fixed==="left";tt=!Xt&&It}else if(qe!==void 0){var on=Yt&&Yt.fixed==="right";ut=!on&&It}return{fixLeft:Qe,fixRight:qe,lastFixLeft:tt,firstFixRight:ut,lastFixRight:ct,firstFixLeft:st,isSticky:Ve.isSticky}}var St=ie.createContext({}),Lt=St;function nn(De){var Te=De.className,Ue=De.index,Ve=De.children,it=De.colSpan,Ce=it===void 0?1:it,Me=De.rowSpan,Oe=De.align,Qe=me(de,["prefixCls","direction"]),qe=Qe.prefixCls,tt=Qe.direction,ut=ie.useContext(Lt),ct=ut.scrollColumnIndex,st=ut.stickyOffsets,_t=ut.flattenColumns,Yt=ut.columns,It=Ue+Ce-1,Kt=It+1===ct?Ce+1:Ce,Ft=Ze(Ue,Ue+Kt-1,_t,st,tt,Yt==null?void 0:Yt[Ue]);return ie.createElement(rn,(0,se.Z)({className:Te,index:Ue,component:"td",prefixCls:qe,record:null,dataIndex:null,align:Oe,colSpan:Kt,rowSpan:Me,render:function(){return Ve}},Ft))}var Zt=ee(75931),at=["children"];function dt(De){var Te=De.children,Ue=(0,Zt.Z)(De,at);return ie.createElement("tr",Ue,Te)}function Ge(De){var Te=De.children;return Te}Ge.Row=dt,Ge.Cell=nn;var Ne=Ge;function nt(De){var Te=De.children,Ue=De.stickyOffsets,Ve=De.flattenColumns,it=De.columns,Ce=me(de,"prefixCls"),Me=Ve.length-1,Oe=Ve[Me],Qe=ie.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:Ve,scrollColumnIndex:Oe!=null&&Oe.scrollbar?Me:null,columns:it}},[Oe,Ve,Me,Ue,it]);return ie.createElement(Lt.Provider,{value:Qe},ie.createElement("tfoot",{className:"".concat(Ce,"-summary")},Te))}var xt=z(nt),Ae=Ne,Re=ee(70425),We=ee(29301),Be=ee(29194),ze=ee(3465),ot=ee(75152),Ot=ee(26112);function Dt(De,Te,Ue,Ve,it,Ce,Me){De.push({record:Te,indent:Ue,index:Me});var Oe=Ce(Te),Qe=it==null?void 0:it.has(Oe);if(Te&&Array.isArray(Te[Ve])&&Qe)for(var qe=0;qe<Te[Ve].length;qe+=1)Dt(De,Te[Ve][qe],Ue+1,Ve,it,Ce,qe)}function jt(De,Te,Ue,Ve){var it=ie.useMemo(function(){if(Ue!=null&&Ue.size){for(var Ce=[],Me=0;Me<(De==null?void 0:De.length);Me+=1){var Oe=De[Me];Dt(Ce,Oe,0,Te,Ue,Ve,Me)}return Ce}return De==null?void 0:De.map(function(Qe,qe){return{record:Qe,indent:0,index:qe}})},[De,Te,Ue,Ve]);return it}function Mt(De){var Te=De.prefixCls,Ue=De.children,Ve=De.component,it=De.cellComponent,Ce=De.className,Me=De.expanded,Oe=De.colSpan,Qe=De.isEmpty,qe=me(de,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),tt=qe.scrollbarSize,ut=qe.fixHeader,ct=qe.fixColumn,st=qe.componentWidth,_t=qe.horizonScroll,Yt=Ue;return(Qe?_t&&st:ct)&&(Yt=ie.createElement("div",{style:{width:st-(ut?tt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},Yt)),ie.createElement(Ve,{className:Ce,style:{display:Me?null:"none"}},ie.createElement(rn,{component:it,prefixCls:Te,colSpan:Oe},Yt))}var Gt=Mt;function bt(De,Te,Ue,Ve){var it=me(de,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ce=it.flattenColumns,Me=it.expandableType,Oe=it.expandedKeys,Qe=it.childrenColumnName,qe=it.onTriggerExpand,tt=it.rowExpandable,ut=it.onRow,ct=it.expandRowByClick,st=it.rowClassName,_t=Me==="nest",Yt=Me==="row"&&(!tt||tt(De)),It=Yt||_t,Kt=Oe&&Oe.has(Te),Ft=Qe&&De&&De[Qe],Xt=(0,Re.useEvent)(qe),on=ut==null?void 0:ut(De,Ue),mn=on==null?void 0:on.onClick,ln=function(hn){ct&&It&&qe(De,hn);for(var Tt=arguments.length,tn=new Array(Tt>1?Tt-1:0),cn=1;cn<Tt;cn++)tn[cn-1]=arguments[cn];mn==null||mn.apply(void 0,[hn].concat(tn))},vn;typeof st=="string"?vn=st:typeof st=="function"&&(vn=st(De,Ue,Ve));var Nn=Pt(Ce);return(0,Fe.Z)((0,Fe.Z)({},it),{},{columnsKey:Nn,nestExpandable:_t,expanded:Kt,hasNestChildren:Ft,record:De,onTriggerExpand:Xt,rowSupportExpand:Yt,expandable:It,rowProps:(0,Fe.Z)((0,Fe.Z)({},on),{},{className:Ye()(vn,on==null?void 0:on.className),onClick:ln})})}function fn(De,Te,Ue,Ve,it){var Ce=De.record,Me=De.prefixCls,Oe=De.columnsKey,Qe=De.fixedInfoList,qe=De.expandIconColumnIndex,tt=De.nestExpandable,ut=De.indentSize,ct=De.expandIcon,st=De.expanded,_t=De.hasNestChildren,Yt=De.onTriggerExpand,It=Oe[Ue],Kt=Qe[Ue],Ft;Ue===(qe||0)&&tt&&(Ft=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(ut*Ve,"px")},className:"".concat(Me,"-row-indent indent-level-").concat(Ve)}),ct({prefixCls:Me,expanded:st,expandable:_t,record:Ce,onExpand:Yt})));var Xt;return Te.onCell&&(Xt=Te.onCell(Ce,it)),{key:It,fixedInfo:Kt,appendCellNode:Ft,additionalCellProps:Xt||{}}}function dn(De){var Te=De.className,Ue=De.style,Ve=De.record,it=De.index,Ce=De.renderIndex,Me=De.rowKey,Oe=De.indent,Qe=Oe===void 0?0:Oe,qe=De.rowComponent,tt=De.cellComponent,ut=De.scopeCellComponent,ct=bt(Ve,Me,it,Qe),st=ct.prefixCls,_t=ct.flattenColumns,Yt=ct.expandedRowClassName,It=ct.expandedRowRender,Kt=ct.rowProps,Ft=ct.expanded,Xt=ct.rowSupportExpand,on=ie.useState(!1),mn=(0,be.Z)(on,2),ln=mn[0],vn=mn[1];ie.useEffect(function(){Ft&&vn(!0)},[Ft]);var Nn=ie.createElement(qe,(0,se.Z)({},Kt,{"data-row-key":Me,className:Ye()(Te,"".concat(st,"-row"),"".concat(st,"-row-level-").concat(Qe),Kt==null?void 0:Kt.className),style:(0,Fe.Z)((0,Fe.Z)({},Ue),Kt==null?void 0:Kt.style)}),_t.map(function(tn,cn){var Mn=tn.render,qn=tn.dataIndex,en=tn.className,En=fn(ct,tn,cn,Qe,it),gn=En.key,Sn=En.fixedInfo,jn=En.appendCellNode,Qn=En.additionalCellProps;return ie.createElement(rn,(0,se.Z)({className:en,ellipsis:tn.ellipsis,align:tn.align,scope:tn.rowScope,component:tn.rowScope?ut:tt,prefixCls:st,key:gn,record:Ve,index:it,renderIndex:Ce,dataIndex:qn,render:Mn,shouldCellUpdate:tn.shouldCellUpdate},Sn,{appendNode:jn,additionalProps:Qn}))})),qt;if(Xt&&(ln||Ft)){var hn=It(Ve,it,Qe+1,Ft),Tt=Yt&&Yt(Ve,it,Qe);qt=ie.createElement(Gt,{expanded:Ft,className:Ye()("".concat(st,"-expanded-row"),"".concat(st,"-expanded-row-level-").concat(Qe+1),Tt),prefixCls:st,component:qe,cellComponent:tt,colSpan:_t.length,isEmpty:!1},hn)}return ie.createElement(ie.Fragment,null,Nn,qt)}dn.displayName="BodyRow";var wt=z(dn);function yn(De){var Te=De.columnKey,Ue=De.onColumnResize,Ve=ie.useRef();return ie.useEffect(function(){Ve.current&&Ue(Te,Ve.current.offsetWidth)},[]),ie.createElement(We.Z,{data:Te},ie.createElement("td",{ref:Ve,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function _n(De){var Te=De.prefixCls,Ue=De.columnsKey,Ve=De.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(We.Z.Collection,{onBatchResize:function(Ce){Ce.forEach(function(Me){var Oe=Me.data,Qe=Me.size;Ve(Oe,Qe.offsetWidth)})}},Ue.map(function(it){return ie.createElement(yn,{key:it,columnKey:it,onColumnResize:Ve})})))}function Fn(De){var Te=De.data,Ue=De.measureColumnWidth,Ve=me(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),it=Ve.prefixCls,Ce=Ve.getComponent,Me=Ve.onColumnResize,Oe=Ve.flattenColumns,Qe=Ve.getRowKey,qe=Ve.expandedKeys,tt=Ve.childrenColumnName,ut=Ve.emptyNode,ct=jt(Te,tt,qe,Qe),st=ie.useRef({renderWithProps:!1}),_t=Ce(["body","wrapper"],"tbody"),Yt=Ce(["body","row"],"tr"),It=Ce(["body","cell"],"td"),Kt=Ce(["body","cell"],"th"),Ft;Te.length?Ft=ct.map(function(on,mn){var ln=on.record,vn=on.indent,Nn=on.index,qt=Qe(ln,mn);return ie.createElement(wt,{key:qt,rowKey:qt,record:ln,index:mn,renderIndex:Nn,rowComponent:Yt,cellComponent:It,scopeCellComponent:Kt,getRowKey:Qe,indent:vn})}):Ft=ie.createElement(Gt,{expanded:!0,className:"".concat(it,"-placeholder"),prefixCls:it,component:Yt,cellComponent:It,colSpan:Oe.length,isEmpty:!0},ut);var Xt=Pt(Oe);return ie.createElement(Je.Provider,{value:st.current},ie.createElement(_t,{className:"".concat(it,"-tbody")},Ue&&ie.createElement(_n,{prefixCls:it,columnsKey:Xt,onColumnResize:Me}),Ft))}Fn.displayName="Body";var xn=z(Fn),Zn=["expandable"],Jn="RC_TABLE_INTERNAL_COL_DEFINE";function Kn(De){var Te=De.expandable,Ue=(0,Zt.Z)(De,Zn),Ve;return"expandable"in De?Ve=(0,Fe.Z)((0,Fe.Z)({},Ue),Te):Ve=Ue,Ve.showExpandColumn===!1&&(Ve.expandIconColumnIndex=-1),Ve}var Vn=["columnType"];function Sr(De){for(var Te=De.colWidths,Ue=De.columns,Ve=De.columCount,it=[],Ce=Ve||Ue.length,Me=!1,Oe=Ce-1;Oe>=0;Oe-=1){var Qe=Te[Oe],qe=Ue&&Ue[Oe],tt=qe&&qe[Jn];if(Qe||tt||Me){var ut=tt||{},ct=ut.columnType,st=(0,Zt.Z)(ut,Vn);it.unshift(ie.createElement("col",(0,se.Z)({key:Oe,style:{width:Qe}},st))),Me=!0}}return ie.createElement("colgroup",null,it)}var sr=Sr,sn=ee(94480),Yn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function or(De,Te){return(0,ie.useMemo)(function(){for(var Ue=[],Ve=0;Ve<Te;Ve+=1){var it=De[Ve];if(it!==void 0)Ue[Ve]=it;else return null}return Ue},[De.join("_"),Te])}var $n=ie.forwardRef(function(De,Te){var Ue=De.className,Ve=De.noData,it=De.columns,Ce=De.flattenColumns,Me=De.colWidths,Oe=De.columCount,Qe=De.stickyOffsets,qe=De.direction,tt=De.fixHeader,ut=De.stickyTopOffset,ct=De.stickyBottomOffset,st=De.stickyClassName,_t=De.onScroll,Yt=De.maxContentScroll,It=De.children,Kt=(0,Zt.Z)(De,Yn),Ft=me(de,["prefixCls","scrollbarSize","isSticky"]),Xt=Ft.prefixCls,on=Ft.scrollbarSize,mn=Ft.isSticky,ln=mn&&!tt?0:on,vn=ie.useRef(null),Nn=ie.useCallback(function(en){(0,pe.mH)(Te,en),(0,pe.mH)(vn,en)},[]);ie.useEffect(function(){var en;function En(gn){var Sn=gn,jn=Sn.currentTarget,Qn=Sn.deltaX;Qn&&(_t({currentTarget:jn,scrollLeft:jn.scrollLeft+Qn}),gn.preventDefault())}return(en=vn.current)===null||en===void 0||en.addEventListener("wheel",En),function(){var gn;(gn=vn.current)===null||gn===void 0||gn.removeEventListener("wheel",En)}},[]);var qt=ie.useMemo(function(){return Ce.every(function(en){return en.width})},[Ce]),hn=Ce[Ce.length-1],Tt={fixed:hn?hn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Xt,"-cell-scrollbar")}}},tn=(0,ie.useMemo)(function(){return ln?[].concat((0,sn.Z)(it),[Tt]):it},[ln,it]),cn=(0,ie.useMemo)(function(){return ln?[].concat((0,sn.Z)(Ce),[Tt]):Ce},[ln,Ce]),Mn=(0,ie.useMemo)(function(){var en=Qe.right,En=Qe.left;return(0,Fe.Z)((0,Fe.Z)({},Qe),{},{left:qe==="rtl"?[].concat((0,sn.Z)(En.map(function(gn){return gn+ln})),[0]):En,right:qe==="rtl"?en:[].concat((0,sn.Z)(en.map(function(gn){return gn+ln})),[0]),isSticky:mn})},[ln,Qe,mn]),qn=or(Me,Oe);return ie.createElement("div",{style:(0,Fe.Z)({overflow:"hidden"},mn?{top:ut,bottom:ct}:{}),ref:Nn,className:Ye()(Ue,(0,xe.Z)({},st,!!st))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Ve||qn?null:"hidden"}},(!Ve||!Yt||qt)&&ie.createElement(sr,{colWidths:qn?[].concat((0,sn.Z)(qn),[ln]):[],columCount:Oe+1,columns:cn}),It((0,Fe.Z)((0,Fe.Z)({},Kt),{},{stickyOffsets:Mn,columns:tn,flattenColumns:cn}))))});$n.displayName="FixedHolder";var ir=ie.memo($n);function Ar(De){var Te=De.cells,Ue=De.stickyOffsets,Ve=De.flattenColumns,it=De.rowComponent,Ce=De.cellComponent,Me=De.tdCellComponent,Oe=De.onHeaderRow,Qe=De.index,qe=me(de,["prefixCls","direction"]),tt=qe.prefixCls,ut=qe.direction,ct;Oe&&(ct=Oe(Te.map(function(_t){return _t.column}),Qe));var st=Pt(Te.map(function(_t){return _t.column}));return ie.createElement(it,ct,Te.map(function(_t,Yt){var It=_t.column,Kt=Ze(_t.colStart,_t.colEnd,Ve,Ue,ut,It),Ft;return It&&It.onHeaderCell&&(Ft=_t.column.onHeaderCell(It)),ie.createElement(rn,(0,se.Z)({},_t,{scope:It.title?_t.colSpan>1?"colgroup":"col":null,ellipsis:It.ellipsis,align:It.align,component:It.title?Ce:Me,prefixCls:tt,key:st[Yt]},Kt,{additionalProps:Ft,rowType:"header"}))}))}Ar.displayName="HeaderRow";var Ir=Ar;function wr(De){var Te=[];function Ue(Me,Oe){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Qe]=Te[Qe]||[];var qe=Oe,tt=Me.filter(Boolean).map(function(ut){var ct={key:ut.key,className:ut.className||"",children:ut.title,column:ut,colStart:qe},st=1,_t=ut.children;return _t&&_t.length>0&&(st=Ue(_t,qe,Qe+1).reduce(function(Yt,It){return Yt+It},0),ct.hasSubColumns=!0),"colSpan"in ut&&(st=ut.colSpan),"rowSpan"in ut&&(ct.rowSpan=ut.rowSpan),ct.colSpan=st,ct.colEnd=ct.colStart+st-1,Te[Qe].push(ct),qe+=st,st});return tt}Ue(De,0);for(var Ve=Te.length,it=function(Oe){Te[Oe].forEach(function(Qe){!("rowSpan"in Qe)&&!Qe.hasSubColumns&&(Qe.rowSpan=Ve-Oe)})},Ce=0;Ce<Ve;Ce+=1)it(Ce);return Te}function Tr(De){var Te=De.stickyOffsets,Ue=De.columns,Ve=De.flattenColumns,it=De.onHeaderRow,Ce=me(de,["prefixCls","getComponent"]),Me=Ce.prefixCls,Oe=Ce.getComponent,Qe=ie.useMemo(function(){return wr(Ue)},[Ue]),qe=Oe(["header","wrapper"],"thead"),tt=Oe(["header","row"],"tr"),ut=Oe(["header","cell"],"th"),ct=Oe(["header","cell"],"td");return ie.createElement(qe,{className:"".concat(Me,"-thead")},Qe.map(function(st,_t){var Yt=ie.createElement(Ir,{key:_t,flattenColumns:Ve,cells:st,stickyOffsets:Te,rowComponent:tt,cellComponent:ut,tdCellComponent:ct,onHeaderRow:it,index:_t});return Yt}))}var ar=z(Tr),$r=ee(11592);function Wt(De){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?De*parseFloat(Te)/100:null}function ae(De,Te){return ie.useMemo(function(){if(Te&&Te>0){var Ue=0,Ve=0;De.forEach(function(qe){var tt=Wt(Te,qe.width);tt?Ue+=tt:Ve+=1});var it=Te-Ue,Ce=Ve,Me=it/Ve,Oe=0,Qe=De.map(function(qe){var tt=(0,Fe.Z)({},qe),ut=Wt(Te,tt.width);if(ut)tt.width=ut;else{var ct=Math.floor(Me);tt.width=Ce===1?it:ct,it-=ct,Ce-=1}return Oe+=tt.width,tt});return[Qe,Oe]}return[De,Te]},[De,Te])}var _e=["children"],Pe=["fixed"];function Ie(De){return(0,$r.Z)(De).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Ve=Te.props,it=Ve.children,Ce=(0,Zt.Z)(Ve,_e),Me=(0,Fe.Z)({key:Ue},Ce);return it&&(Me.children=Ie(it)),Me})}function ke(De){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(Ue){return Ue&&(0,Ee.Z)(Ue)==="object"}).reduce(function(Ue,Ve,it){var Ce=Ve.fixed,Me=Ce===!0?"left":Ce,Oe="".concat(Te,"-").concat(it),Qe=Ve.children;return Qe&&Qe.length>0?[].concat((0,sn.Z)(Ue),(0,sn.Z)(ke(Qe,Oe).map(function(qe){return(0,Fe.Z)({fixed:Me},qe)}))):[].concat((0,sn.Z)(Ue),[(0,Fe.Z)((0,Fe.Z)({key:Oe},Ve),{},{fixed:Me})])},[])}function et(De){for(var Te=!0,Ue=0;Ue<De.length;Ue+=1){var Ve=De[Ue];if(Te&&Ve.fixed!=="left")Te=!1;else if(!Te&&Ve.fixed==="left"){warning(!1,"Index ".concat(Ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var it=!0,Ce=De.length-1;Ce>=0;Ce-=1){var Me=De[Ce];if(it&&Me.fixed!=="right")it=!1;else if(!it&&Me.fixed==="right"){warning(!1,"Index ".concat(Ce+1," of `columns` missing `fixed='right'` prop."));break}}}function vt(De){return De.map(function(Te){var Ue=Te.fixed,Ve=(0,Zt.Z)(Te,Pe),it=Ue;return Ue==="left"?it="right":Ue==="right"&&(it="left"),(0,Fe.Z)({fixed:it},Ve)})}function Qt(De,Te){var Ue=De.prefixCls,Ve=De.columns,it=De.children,Ce=De.expandable,Me=De.expandedKeys,Oe=De.columnTitle,Qe=De.getRowKey,qe=De.onTriggerExpand,tt=De.expandIcon,ut=De.rowExpandable,ct=De.expandIconColumnIndex,st=De.direction,_t=De.expandRowByClick,Yt=De.columnWidth,It=De.fixed,Kt=De.scrollWidth,Ft=ie.useMemo(function(){return Ve||Ie(it)},[Ve,it]),Xt=ie.useMemo(function(){if(Ce){var hn,Tt=Ft.slice();if(!Tt.includes(te)){var tn=ct||0;tn>=0&&Tt.splice(tn,0,te)}var cn=Tt.indexOf(te);Tt=Tt.filter(function(En,gn){return En!==te||gn===cn});var Mn=Ft[cn],qn;(It==="left"||It)&&!ct?qn="left":(It==="right"||It)&&ct===Ft.length?qn="right":qn=Mn?Mn.fixed:null;var en=(hn={},(0,xe.Z)(hn,Jn,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,xe.Z)(hn,"title",Oe),(0,xe.Z)(hn,"fixed",qn),(0,xe.Z)(hn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,xe.Z)(hn,"width",Yt),(0,xe.Z)(hn,"render",function(gn,Sn,jn){var Qn=Qe(Sn,jn),br=Me.has(Qn),nr=ut?ut(Sn):!0,tr=tt({prefixCls:Ue,expanded:br,expandable:nr,record:Sn,onExpand:qe});return _t?ie.createElement("span",{onClick:function(mr){return mr.stopPropagation()}},tr):tr}),hn);return Tt.map(function(En){return En===te?en:En})}return Ft.filter(function(En){return En!==te})},[Ce,Ft,Qe,Me,tt,st]),on=ie.useMemo(function(){var hn=Xt;return Te&&(hn=Te(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[Te,Xt,st]),mn=ie.useMemo(function(){return st==="rtl"?vt(ke(on)):ke(on)},[on,st,Kt]),ln=ae(mn,Kt),vn=(0,be.Z)(ln,2),Nn=vn[0],qt=vn[1];return[on,Nn,qt]}var Ut=Qt;function yt(De){var Te,Ue=De.prefixCls,Ve=De.record,it=De.onExpand,Ce=De.expanded,Me=De.expandable,Oe="".concat(Ue,"-row-expand-icon");if(!Me)return ie.createElement("span",{className:Ye()(Oe,"".concat(Ue,"-row-spaced"))});var Qe=function(tt){it(Ve,tt),tt.stopPropagation()};return ie.createElement("span",{className:Ye()(Oe,(Te={},(0,xe.Z)(Te,"".concat(Ue,"-row-expanded"),Ce),(0,xe.Z)(Te,"".concat(Ue,"-row-collapsed"),!Ce),Te)),onClick:Qe})}function pt(De,Te,Ue){var Ve=[];function it(Ce){(Ce||[]).forEach(function(Me,Oe){Ve.push(Te(Me,Oe)),it(Me[Ue])})}return it(De),Ve}function Bt(De,Te,Ue){var Ve=Kn(De),it=Ve.expandIcon,Ce=Ve.expandedRowKeys,Me=Ve.defaultExpandedRowKeys,Oe=Ve.defaultExpandAllRows,Qe=Ve.expandedRowRender,qe=Ve.onExpand,tt=Ve.onExpandedRowsChange,ut=Ve.childrenColumnName,ct=it||yt,st=ut||"children",_t=ie.useMemo(function(){return Qe?"row":De.expandable&&De.internalHooks===fe&&De.expandable.__PARENT_RENDER_ICON__||Te.some(function(mn){return mn&&(0,Ee.Z)(mn)==="object"&&mn[st]})?"nest":!1},[!!Qe,Te]),Yt=ie.useState(function(){return Me||(Oe?pt(Te,Ue,st):[])}),It=(0,be.Z)(Yt,2),Kt=It[0],Ft=It[1],Xt=ie.useMemo(function(){return new Set(Ce||Kt||[])},[Ce,Kt]),on=ie.useCallback(function(mn){var ln=Ue(mn,Te.indexOf(mn)),vn,Nn=Xt.has(ln);Nn?(Xt.delete(ln),vn=(0,sn.Z)(Xt)):vn=[].concat((0,sn.Z)(Xt),[ln]),Ft(vn),qe&&qe(!Nn,mn),tt&&tt(vn)},[Ue,Xt,Te,qe,tt]);return[Ve,_t,Xt,ct,st,on]}function gt(De,Te,Ue,Ve){var it=De.map(function(Ce,Me){return Ze(Me,Me,De,Te,Ue,Ve==null?void 0:Ve[Me])});return(0,ht.Z)(function(){return it},[it],function(Ce,Me){return!(0,ge.Z)(Ce,Me)})}function zt(De){var Te=(0,ie.useRef)(De),Ue=(0,ie.useState)({}),Ve=(0,be.Z)(Ue,2),it=Ve[1],Ce=(0,ie.useRef)(null),Me=(0,ie.useRef)([]);function Oe(Qe){Me.current.push(Qe);var qe=Promise.resolve();Ce.current=qe,qe.then(function(){if(Ce.current===qe){var tt=Me.current,ut=Te.current;Me.current=[],tt.forEach(function(ct){Te.current=ct(Te.current)}),Ce.current=null,ut!==Te.current&&it({})}})}return(0,ie.useEffect)(function(){return function(){Ce.current=null}},[]),[Te.current,Oe]}function Vt(De){var Te=(0,ie.useRef)(De||null),Ue=(0,ie.useRef)();function Ve(){window.clearTimeout(Ue.current)}function it(Me){Te.current=Me,Ve(),Ue.current=window.setTimeout(function(){Te.current=null,Ue.current=void 0},100)}function Ce(){return Te.current}return(0,ie.useEffect)(function(){return Ve},[]),[it,Ce]}function Rt(){var De=ie.useState(-1),Te=(0,be.Z)(De,2),Ue=Te[0],Ve=Te[1],it=ie.useState(-1),Ce=(0,be.Z)(it,2),Me=Ce[0],Oe=Ce[1],Qe=ie.useCallback(function(qe,tt){Ve(qe),Oe(tt)},[]);return[Ue,Me,Qe]}var kt=ee(47273),Jt=(0,kt.Z)()?window:null;function un(De,Te){var Ue=(0,Ee.Z)(De)==="object"?De:{},Ve=Ue.offsetHeader,it=Ve===void 0?0:Ve,Ce=Ue.offsetSummary,Me=Ce===void 0?0:Ce,Oe=Ue.offsetScroll,Qe=Oe===void 0?0:Oe,qe=Ue.getContainer,tt=qe===void 0?function(){return Jt}:qe,ut=tt()||Jt;return ie.useMemo(function(){var ct=!!De;return{isSticky:ct,stickyClassName:ct?"".concat(Te,"-sticky-holder"):"",offsetHeader:it,offsetSummary:Me,offsetScroll:Qe,container:ut}},[Qe,it,Me,Te,ut])}function Dn(De,Te,Ue){var Ve=(0,ie.useMemo)(function(){for(var it=[],Ce=[],Me=0,Oe=0,Qe=0;Qe<Te;Qe+=1)if(Ue==="rtl"){Ce[Qe]=Oe,Oe+=De[Qe]||0;var qe=Te-Qe-1;it[qe]=Me,Me+=De[qe]||0}else{it[Qe]=Me,Me+=De[Qe]||0;var tt=Te-Qe-1;Ce[tt]=Oe,Oe+=De[tt]||0}return{left:it,right:Ce}},[De,Te,Ue]);return Ve}var kn=Dn;function Xn(De){var Te=De.className,Ue=De.children;return ie.createElement("div",{className:Te},Ue)}var pn=Xn,Rn=ee(8224),lr=ee(55468),rr=function(Te,Ue){var Ve,it,Ce=Te.scrollBodyRef,Me=Te.onScroll,Oe=Te.offsetScroll,Qe=Te.container,qe=me(de,"prefixCls"),tt=((Ve=Ce.current)===null||Ve===void 0?void 0:Ve.scrollWidth)||0,ut=((it=Ce.current)===null||it===void 0?void 0:it.clientWidth)||0,ct=tt&&ut*(ut/tt),st=ie.useRef(),_t=zt({scrollLeft:0,isHiddenScrollBar:!1}),Yt=(0,be.Z)(_t,2),It=Yt[0],Kt=Yt[1],Ft=ie.useRef({delta:0,x:0}),Xt=ie.useState(!1),on=(0,be.Z)(Xt,2),mn=on[0],ln=on[1],vn=function(){ln(!1)},Nn=function(cn){cn.persist(),Ft.current.delta=cn.pageX-It.scrollLeft,Ft.current.x=0,ln(!0),cn.preventDefault()},qt=function(cn){var Mn,qn=cn||((Mn=window)===null||Mn===void 0?void 0:Mn.event),en=qn.buttons;if(!mn||en===0){mn&&ln(!1);return}var En=Ft.current.x+cn.pageX-Ft.current.x-Ft.current.delta;En<=0&&(En=0),En+ct>=ut&&(En=ut-ct),Me({scrollLeft:En/ut*(tt+2)}),Ft.current.x=cn.pageX},hn=function(){if(Ce.current){var cn=(0,lr.os)(Ce.current).top,Mn=cn+Ce.current.offsetHeight,qn=Qe===window?document.documentElement.scrollTop+window.innerHeight:(0,lr.os)(Qe).top+Qe.clientHeight;Mn-(0,ot.Z)()<=qn||cn>=qn-Oe?Kt(function(en){return(0,Fe.Z)((0,Fe.Z)({},en),{},{isHiddenScrollBar:!0})}):Kt(function(en){return(0,Fe.Z)((0,Fe.Z)({},en),{},{isHiddenScrollBar:!1})})}},Tt=function(cn){Kt(function(Mn){return(0,Fe.Z)((0,Fe.Z)({},Mn),{},{scrollLeft:cn/tt*ut||0})})};return ie.useImperativeHandle(Ue,function(){return{setScrollLeft:Tt}}),ie.useEffect(function(){var tn=(0,Rn.Z)(document.body,"mouseup",vn,!1),cn=(0,Rn.Z)(document.body,"mousemove",qt,!1);return hn(),function(){tn.remove(),cn.remove()}},[ct,mn]),ie.useEffect(function(){var tn=(0,Rn.Z)(Qe,"scroll",hn,!1),cn=(0,Rn.Z)(window,"resize",hn,!1);return function(){tn.remove(),cn.remove()}},[Qe]),ie.useEffect(function(){It.isHiddenScrollBar||Kt(function(tn){var cn=Ce.current;return cn?(0,Fe.Z)((0,Fe.Z)({},tn),{},{scrollLeft:cn.scrollLeft/cn.scrollWidth*cn.clientWidth}):tn})},[It.isHiddenScrollBar]),tt<=ut||!ct||It.isHiddenScrollBar?null:ie.createElement("div",{style:{height:(0,ot.Z)(),width:ut,bottom:Oe},className:"".concat(qe,"-sticky-scroll")},ie.createElement("div",{onMouseDown:Nn,ref:st,className:Ye()("".concat(qe,"-sticky-scroll-bar"),(0,xe.Z)({},"".concat(qe,"-sticky-scroll-bar-active"),mn)),style:{width:"".concat(ct,"px"),transform:"translate3d(".concat(It.scrollLeft,"px, 0, 0)")}}))},$t=ie.forwardRef(rr);function ur(De){return null}var qr=ur;function xr(De){return null}var Dr=xr,Zr="rc-table",an=[],bn={};function Cn(){return"No Data"}function Pn(De){var Te,Ue=(0,Fe.Z)({rowKey:"key",prefixCls:Zr,emptyText:Cn},De),Ve=Ue.prefixCls,it=Ue.className,Ce=Ue.rowClassName,Me=Ue.style,Oe=Ue.data,Qe=Ue.rowKey,qe=Ue.scroll,tt=Ue.tableLayout,ut=Ue.direction,ct=Ue.title,st=Ue.footer,_t=Ue.summary,Yt=Ue.caption,It=Ue.id,Kt=Ue.showHeader,Ft=Ue.components,Xt=Ue.emptyText,on=Ue.onRow,mn=Ue.onHeaderRow,ln=Ue.internalHooks,vn=Ue.transformColumns,Nn=Ue.internalRefs,qt=Ue.tailor,hn=Ue.sticky,Tt=Oe||an,tn=!!Tt.length,cn=ln===fe,Mn=ie.useCallback(function(kr,eo){return(0,we.Z)(Ft,kr)||eo},[Ft]),qn=ie.useMemo(function(){return typeof Qe=="function"?Qe:function(kr){var eo=kr&&kr[Qe];return eo}},[Qe]),en=Mn(["body"]),En=Rt(),gn=(0,be.Z)(En,3),Sn=gn[0],jn=gn[1],Qn=gn[2],br=Bt(Ue,Tt,qn),nr=(0,be.Z)(br,6),tr=nr[0],Vr=nr[1],mr=nr[2],Br=nr[3],cr=nr[4],Wn=nr[5],On=qe==null?void 0:qe.x,Tn=ie.useState(0),Hn=(0,be.Z)(Tn,2),An=Hn[0],Cr=Hn[1],Bn=Ut((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Ue),tr),{},{expandable:!!tr.expandedRowRender,columnTitle:tr.columnTitle,expandedKeys:mr,getRowKey:qn,onTriggerExpand:Wn,expandIcon:Br,expandIconColumnIndex:tr.expandIconColumnIndex,direction:ut,scrollWidth:cn&&qt&&typeof On=="number"?On:null}),cn?vn:null),zn=(0,be.Z)(Bn,3),gr=zn[0],yr=zn[1],Ao=zn[2],_o=Ao!=null?Ao:On,ni=ie.useMemo(function(){return{columns:gr,flattenColumns:yr}},[gr,yr]),Un=ie.useRef(),Rr=ie.useRef(),Lr=ie.useRef(),Jr=ie.useRef(),Fr=ie.useRef(),pr=ie.useState(!1),Er=(0,be.Z)(pr,2),jr=Er[0],ro=Er[1],Yr=ie.useState(!1),vr=(0,be.Z)(Yr,2),po=vr[0],Io=vr[1],Qo=zt(new Map),mi=(0,be.Z)(Qo,2),ui=mi[0],ta=mi[1],yi=Pt(yr),si=yi.map(function(kr){return ui.get(kr)}),Uo=ie.useMemo(function(){return si},[si.join("_")]),zo=kn(Uo,yr.length,ut),vo=qe&&At(qe.y),oo=qe&&At(_o)||!!tr.fixed,pi=oo&&yr.some(function(kr){var eo=kr.fixed;return eo}),Ri=ie.useRef(),Ei=un(hn,Ve),vi=Ei.isSticky,Pa=Ei.offsetHeader,ts=Ei.offsetSummary,Mr=Ei.offsetScroll,Xr=Ei.stickyClassName,No=Ei.container,io=ie.useMemo(function(){return _t==null?void 0:_t(Tt)},[_t,Tt]),Fo=(vo||vi)&&ie.isValidElement(io)&&io.type===Ne&&io.props.fixed,$o,Zo,Pi;vo&&(Zo={overflowY:"scroll",maxHeight:qe.y}),oo&&($o={overflowX:"auto"},vo||(Zo={overflowY:"hidden"}),Pi={width:_o===!0?"auto":_o,minWidth:"100%"});var xs=ie.useCallback(function(kr,eo){(0,Be.Z)(Un.current)&&ta(function(li){if(li.get(kr)!==eo){var wi=new Map(li);return wi.set(kr,eo),wi}return li})},[]),$s=Vt(null),Ls=(0,be.Z)($s,2),Zs=Ls[0],Ms=Ls[1];function ba(kr,eo){eo&&(typeof eo=="function"?eo(kr):eo.scrollLeft!==kr&&(eo.scrollLeft=kr,eo.scrollLeft!==kr&&setTimeout(function(){eo.scrollLeft=kr},0)))}var Zi=(0,ye.Z)(function(kr){var eo=kr.currentTarget,li=kr.scrollLeft,wi=ut==="rtl",xi=typeof li=="number"?li:eo.scrollLeft,Us=eo||bn;if(!Ms()||Ms()===Us){var as;Zs(Us),ba(xi,Rr.current),ba(xi,Lr.current),ba(xi,Fr.current),ba(xi,(as=Ri.current)===null||as===void 0?void 0:as.setScrollLeft)}var ss=eo||Rr.current;if(ss){var ls=ss.scrollWidth,cs=ss.clientWidth;if(ls===cs){ro(!1),Io(!1);return}wi?(ro(-xi<ls-cs),Io(-xi>0)):(ro(xi>0),Io(xi<ls-cs))}}),Ds=function(){oo&&Lr.current?Zi({currentTarget:Lr.current}):(ro(!1),Io(!1))},Ws=function(eo){var li=eo.width;li!==An&&(Ds(),Cr(Un.current?Un.current.offsetWidth:li))},As=ie.useRef(!1);ie.useEffect(function(){As.current&&Ds()},[oo,Oe,gr.length]),ie.useEffect(function(){As.current=!0},[]);var Ks=ie.useState(0),Is=(0,be.Z)(Ks,2),Ca=Is[0],Os=Is[1],Vs=ie.useState(!0),Rs=(0,be.Z)(Vs,2),Ts=Rs[0],Ys=Rs[1];ie.useEffect(function(){(!qt||!cn)&&(Lr.current instanceof Element?Os((0,ot.o)(Lr.current).width):Os((0,ot.o)(Jr.current).width)),Ys((0,ze.G)("position","sticky"))},[]),ie.useEffect(function(){cn&&Nn&&(Nn.body.current=Lr.current)});var Xs=ie.useCallback(function(kr){return ie.createElement(ie.Fragment,null,ie.createElement(ar,kr),Fo==="top"&&ie.createElement(xt,kr,io))},[Fo,io]),Qs=ie.useCallback(function(kr){return ie.createElement(xt,kr,io)},[io]),Ns=Mn(["table"],"table"),Ea=ie.useMemo(function(){return tt||(pi?_o==="max-content"?"auto":"fixed":vo||vi||yr.some(function(kr){var eo=kr.ellipsis;return eo})?"fixed":"auto")},[vo,pi,yr,tt,vi]),ns,rs={colWidths:Uo,columCount:yr.length,stickyOffsets:zo,onHeaderRow:mn,fixHeader:vo,scroll:qe},Bs=ie.useMemo(function(){return tn?null:typeof Xt=="function"?Xt():Xt},[tn,Xt]),ks=ie.createElement(xn,{data:Tt,measureColumnWidth:vo||oo||vi}),Fs=ie.createElement(sr,{colWidths:yr.map(function(kr){var eo=kr.width;return eo}),columns:yr}),js=Yt!=null?ie.createElement("caption",{className:"".concat(Ve,"-caption")},Yt):void 0,Js=(0,Ot.Z)(Ue,{data:!0}),zs=(0,Ot.Z)(Ue,{aria:!0});if(vo||vi){var os;typeof en=="function"?(os=en(Tt,{scrollbarSize:Ca,ref:Lr,onScroll:Zi}),rs.colWidths=yr.map(function(kr,eo){var li=kr.width,wi=eo===yr.length-1?li-Ca:li;return typeof wi=="number"&&!Number.isNaN(wi)?wi:0})):os=ie.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},$o),Zo),onScroll:Zi,ref:Lr,className:Ye()("".concat(Ve,"-body"))},ie.createElement(Ns,(0,se.Z)({style:(0,Fe.Z)((0,Fe.Z)({},Pi),{},{tableLayout:Ea})},zs),js,Fs,ks,!Fo&&io&&ie.createElement(xt,{stickyOffsets:zo,flattenColumns:yr,columns:gr},io)));var Hs=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({noData:!Tt.length,maxContentScroll:oo&&_o==="max-content"},rs),ni),{},{direction:ut,stickyClassName:Xr,onScroll:Zi});ns=ie.createElement(ie.Fragment,null,Kt!==!1&&ie.createElement(ir,(0,se.Z)({},Hs,{stickyTopOffset:Pa,className:"".concat(Ve,"-header"),ref:Rr}),Xs),os,Fo&&Fo!=="top"&&ie.createElement(ir,(0,se.Z)({},Hs,{stickyBottomOffset:ts,className:"".concat(Ve,"-summary"),ref:Fr}),Qs),vi&&ie.createElement($t,{ref:Ri,offsetScroll:Mr,scrollBodyRef:Lr,onScroll:Zi,container:No}))}else ns=ie.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},$o),Zo),className:Ye()("".concat(Ve,"-content")),onScroll:Zi,ref:Lr},ie.createElement(Ns,(0,se.Z)({style:(0,Fe.Z)((0,Fe.Z)({},Pi),{},{tableLayout:Ea})},zs),js,Fs,Kt!==!1&&ie.createElement(ar,(0,se.Z)({},rs,ni)),ks,io&&ie.createElement(xt,{stickyOffsets:zo,flattenColumns:yr,columns:gr},io)));var is=ie.createElement("div",(0,se.Z)({className:Ye()(Ve,it,(Te={},(0,xe.Z)(Te,"".concat(Ve,"-rtl"),ut==="rtl"),(0,xe.Z)(Te,"".concat(Ve,"-ping-left"),jr),(0,xe.Z)(Te,"".concat(Ve,"-ping-right"),po),(0,xe.Z)(Te,"".concat(Ve,"-layout-fixed"),tt==="fixed"),(0,xe.Z)(Te,"".concat(Ve,"-fixed-header"),vo),(0,xe.Z)(Te,"".concat(Ve,"-fixed-column"),pi),(0,xe.Z)(Te,"".concat(Ve,"-scroll-horizontal"),oo),(0,xe.Z)(Te,"".concat(Ve,"-has-fix-left"),yr[0]&&yr[0].fixed),(0,xe.Z)(Te,"".concat(Ve,"-has-fix-right"),yr[yr.length-1]&&yr[yr.length-1].fixed==="right"),Te)),style:Me,id:It,ref:Un},Js),ct&&ie.createElement(pn,{className:"".concat(Ve,"-title")},ct(Tt)),ie.createElement("div",{ref:Jr,className:"".concat(Ve,"-container")},ns),st&&ie.createElement(pn,{className:"".concat(Ve,"-footer")},st(Tt)));oo&&(is=ie.createElement(We.Z,{onResize:Ws},is));var Gs=gt(yr,zo,ut,gr),qs=ie.useMemo(function(){return{scrollX:_o,prefixCls:Ve,getComponent:Mn,scrollbarSize:Ca,direction:ut,fixedInfoList:Gs,isSticky:vi,supportSticky:Ts,componentWidth:An,fixHeader:vo,fixColumn:pi,horizonScroll:oo,tableLayout:Ea,rowClassName:Ce,expandedRowClassName:tr.expandedRowClassName,expandIcon:Br,expandableType:Vr,expandRowByClick:tr.expandRowByClick,expandedRowRender:tr.expandedRowRender,onTriggerExpand:Wn,expandIconColumnIndex:tr.expandIconColumnIndex,indentSize:tr.indentSize,allColumnsFixedLeft:yr.every(function(kr){return kr.fixed==="left"}),emptyNode:Bs,columns:gr,flattenColumns:yr,onColumnResize:xs,hoverStartRow:Sn,hoverEndRow:jn,onHover:Qn,rowExpandable:tr.rowExpandable,onRow:on,getRowKey:qn,expandedKeys:mr,childrenColumnName:cr}},[_o,Ve,Mn,Ca,ut,Gs,vi,Ts,An,vo,pi,oo,Ea,Ce,tr.expandedRowClassName,Br,Vr,tr.expandRowByClick,tr.expandedRowRender,Wn,tr.expandIconColumnIndex,tr.indentSize,Bs,gr,yr,xs,Sn,jn,Qn,tr.rowExpandable,on,qn,mr,cr]);return ie.createElement(de.Provider,{value:qs},is)}function _r(De){return x(Pn,De)}var fr=_r();fr.EXPAND_COLUMN=te,fr.INTERNAL_HOOKS=fe,fr.Column=qr,fr.ColumnGroup=Dr,fr.Summary=Ae;var Or=fr,Hr=ee(48911),so=ce(null),co=ce(null);function yo(De,Te,Ue){var Ve=Te||1;return Ue[De+Ve]-(Ue[De]||0)}function So(De){var Te=De.rowInfo,Ue=De.column,Ve=De.colIndex,it=De.indent,Ce=De.index,Me=De.renderIndex,Oe=De.record,Qe=De.style,qe=De.className,tt=De.inverse,ut=De.getHeight,ct=Ue.render,st=Ue.dataIndex,_t=Ue.className,Yt=Ue.width,It=me(co,["columnsOffset"]),Kt=It.columnsOffset,Ft=fn(Te,Ue,Ve,it,Ce),Xt=Ft.key,on=Ft.fixedInfo,mn=Ft.appendCellNode,ln=Ft.additionalCellProps,vn=ln.style,Nn=ln.colSpan,qt=Nn===void 0?1:Nn,hn=ln.rowSpan,Tt=hn===void 0?1:hn,tn=Ve-1,cn=yo(tn,qt,Kt),Mn=qt>1?Yt-cn:0,qn=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},vn),Qe),{},{flex:"0 0 ".concat(cn,"px"),width:"".concat(cn,"px"),marginRight:Mn,pointerEvents:"auto"}),en=ie.useMemo(function(){return tt?Tt<=1:qt===0||Tt===0||Tt>1},[Tt,qt,tt]);en?qn.visibility="hidden":tt&&(qn.height=ut==null?void 0:ut(Tt));var En=en?function(){return null}:ct,gn={};return(Tt===0||qt===0)&&(gn.rowSpan=1,gn.colSpan=1),ie.createElement(rn,(0,se.Z)({className:Ye()(_t,qe),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:Xt,record:Oe,index:Ce,renderIndex:Me,dataIndex:st,render:En,shouldCellUpdate:Ue.shouldCellUpdate},on,{appendNode:mn,additionalProps:(0,Fe.Z)((0,Fe.Z)({},ln),{},{style:qn},gn)}))}var wo=So,Po=["data","index","className","rowKey","style","extra","getHeight"],xo=ie.forwardRef(function(De,Te){var Ue=De.data,Ve=De.index,it=De.className,Ce=De.rowKey,Me=De.style,Oe=De.extra,Qe=De.getHeight,qe=(0,Zt.Z)(De,Po),tt=Ue.record,ut=Ue.indent,ct=Ue.index,st=me(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),_t=st.scrollX,Yt=st.flattenColumns,It=st.prefixCls,Kt=st.fixColumn,Ft=st.componentWidth,Xt=bt(tt,Ce,Ve,ut),on=Xt.rowSupportExpand,mn=Xt.expanded,ln=Xt.rowProps,vn=Xt.expandedRowRender,Nn=Xt.expandedRowClassName,qt;if(on&&mn){var hn=vn(tt,Ve,ut+1,mn),Tt=Nn==null?void 0:Nn(tt,Ve,ut),tn={};Kt&&(tn={style:(0,xe.Z)({},"--virtual-width","".concat(Ft,"px"))});var cn="".concat(It,"-expanded-row-cell");qt=ie.createElement("div",{className:Ye()("".concat(It,"-expanded-row"),"".concat(It,"-expanded-row-level-").concat(ut+1),Tt)},ie.createElement(rn,{component:"div",prefixCls:It,className:Ye()(cn,(0,xe.Z)({},"".concat(cn,"-fixed"),Kt)),additionalProps:tn},hn))}var Mn=(0,Fe.Z)((0,Fe.Z)({},Me),{},{width:_t});Oe&&(Mn.position="absolute",Mn.pointerEvents="none");var qn=ie.createElement("div",(0,se.Z)({},ln,qe,{ref:on?null:Te,className:Ye()(it,"".concat(It,"-row"),ln==null?void 0:ln.className,(0,xe.Z)({},"".concat(It,"-row-extra"),Oe)),style:(0,Fe.Z)((0,Fe.Z)({},Mn),ln==null?void 0:ln.style)}),Yt.map(function(en,En){return ie.createElement(wo,{key:En,rowInfo:Xt,column:en,colIndex:En,indent:ut,index:Ve,renderIndex:ct,record:tt,inverse:Oe,getHeight:Qe})}));return on?ie.createElement("div",{ref:Te},qn,qt):qn}),Lo=z(xo),Bo=Lo,Wr=ie.forwardRef(function(De,Te){var Ue=De.data,Ve=De.onScroll,it=me(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ce=it.flattenColumns,Me=it.onColumnResize,Oe=it.getRowKey,Qe=it.expandedKeys,qe=it.prefixCls,tt=it.childrenColumnName,ut=it.emptyNode,ct=it.scrollX,st=me(so),_t=st.scrollY,Yt=st.listItemHeight,It=ie.useRef(),Kt=jt(Ue,tt,Qe,Oe),Ft=ie.useMemo(function(){var qt=0;return Ce.map(function(hn){var Tt=hn.width,tn=hn.key;return qt+=Tt,[tn,Tt,qt]})},[Ce]),Xt=ie.useMemo(function(){return Ft.map(function(qt){return qt[2]})},[Ft]);ie.useEffect(function(){Ft.forEach(function(qt){var hn=(0,be.Z)(qt,2),Tt=hn[0],tn=hn[1];Me(Tt,tn)})},[Ft]),ie.useImperativeHandle(Te,function(){var qt={};return Object.defineProperty(qt,"scrollLeft",{get:function(){var Tt;return((Tt=It.current)===null||Tt===void 0?void 0:Tt.getScrollInfo().x)||0},set:function(Tt){var tn;(tn=It.current)===null||tn===void 0||tn.scrollTo({left:Tt})}}),qt});var on=function(hn,Tt){var tn,cn=(tn=Kt[Tt])===null||tn===void 0?void 0:tn.record,Mn=hn.onCell;if(Mn){var qn,en=Mn(cn,Tt);return(qn=en==null?void 0:en.rowSpan)!==null&&qn!==void 0?qn:1}return 1},mn=function(hn){var Tt=hn.start,tn=hn.end,cn=hn.getSize,Mn=hn.offsetY;if(tn<0)return null;for(var qn=Ce.filter(function(On){return on(On,Tt)===0}),en=Tt,En=function(Tn){if(qn=qn.filter(function(Hn){return on(Hn,Tn)===0}),!qn.length)return en=Tn,"break"},gn=Tt;gn>=0;gn-=1){var Sn=En(gn);if(Sn==="break")break}for(var jn=Ce.filter(function(On){return on(On,tn)!==1}),Qn=tn,br=function(Tn){if(jn=jn.filter(function(Hn){return on(Hn,Tn)!==1}),!jn.length)return Qn=Math.max(Tn-1,tn),"break"},nr=tn;nr<Kt.length;nr+=1){var tr=br(nr);if(tr==="break")break}for(var Vr=[],mr=function(Tn){var Hn=Kt[Tn];if(!Hn)return"continue";Ce.some(function(An){return on(An,Tn)>1})&&Vr.push(Tn)},Br=en;Br<=Qn;Br+=1)var cr=mr(Br);var Wn=Vr.map(function(On){var Tn=Kt[On],Hn=Oe(Tn.record,On),An=function(zn){var gr=On+zn-1,yr=Oe(Kt[gr].record,gr),Ao=cn(Hn,yr);return Ao.bottom-Ao.top},Cr=cn(Hn);return ie.createElement(Bo,{key:On,data:Tn,rowKey:Hn,index:On,style:{top:-Mn+Cr.top},extra:!0,getHeight:An})});return Wn},ln=ie.useMemo(function(){return{columnsOffset:Xt}},[Xt]),vn="".concat(qe,"-tbody"),Nn;return Kt.length?Nn=ie.createElement(Hr.Z,{fullHeight:!1,ref:It,className:Ye()(vn,"".concat(vn,"-virtual")),height:_t,itemHeight:Yt||24,data:Kt,itemKey:function(hn){return Oe(hn.record)},scrollWidth:ct,onVirtualScroll:function(hn){var Tt=hn.x;Ve({scrollLeft:Tt})},extraRender:mn},function(qt,hn,Tt){var tn=Oe(qt.record,hn);return ie.createElement(Bo,(0,se.Z)({data:qt,rowKey:tn,index:hn},Tt))}):Nn=ie.createElement("div",{className:Ye()("".concat(qe,"-placeholder"))},ie.createElement(rn,{component:"div",prefixCls:qe},ut)),ie.createElement(co.Provider,{value:ln},Nn)}),Kr=z(Wr),Gr=Kr,to=function(Te,Ue){var Ve=Ue.ref,it=Ue.onScroll;return ie.createElement(Gr,{ref:Ve,data:Te,onScroll:it})},bo=100;function Oo(De){var Te=De.columns,Ue=De.scroll,Ve=De.prefixCls,it=Ve===void 0?Zr:Ve,Ce=De.className,Me=De.listItemHeight,Oe=Ue||{},Qe=Oe.x,qe=Oe.y;typeof Qe!="number"&&(Qe=((Te||[]).length+1)*bo),typeof qe!="number"&&(qe=500);var tt=ie.useMemo(function(){return{scrollY:qe,listItemHeight:Me}},[qe,Me]);return ie.createElement(so.Provider,{value:tt},ie.createElement(Or,(0,se.Z)({},De,{className:Ye()(Ce,"".concat(it,"-virtual")),scroll:(0,Fe.Z)((0,Fe.Z)({},Ue),{},{x:Qe}),components:{body:to},columns:Te,internalHooks:fe,tailor:!0})))}function zr(De){return x(Oo,De)}var jo=zr(),no=null;function Wo(De){return null}var Ro=Wo;function Jo(De){return null}var Ko=Jo,ko=ee(2738),Mo=ee(68031),ho=ee(36355),Vo=ee(93891),qo=ee(19716),ei=ee(8628),ci=ee(31724),ti=ee(58421),Si=ee(71418),Gn=ee(88088);function wn(De){return function(Ue){let{prefixCls:Ve,onExpand:it,record:Ce,expanded:Me,expandable:Oe}=Ue;const Qe=`${Ve}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:qe=>{it(Ce,qe),qe.stopPropagation()},className:Ye()(Qe,{[`${Qe}-spaced`]:!Oe,[`${Qe}-expanded`]:Oe&&Me,[`${Qe}-collapsed`]:Oe&&!Me}),"aria-label":Me?De.collapse:De.expand,"aria-expanded":Me})}}var Ln=wn;function In(De,Te){return"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Te}function hr(De,Te){return Te?`${Te}-${De}`:`${De}`}function Nr(De,Te){return typeof De=="function"?De(Te):De}function ao(De,Te){const Ue=Nr(De,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var lo={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"},uo=lo,fo=ee(7657),Ho=function(Te,Ue){return ie.createElement(fo.Z,(0,se.Z)({},Te,{ref:Ue,icon:uo}))},Co=ie.forwardRef(Ho),ri=Co,Qr=ee(56762);function dr(De){const Te=ie.useRef(De),Ue=(0,Qr.Z)();return[()=>Te.current,Ve=>{Te.current=Ve,Ue()}]}var Yo=ee(3113),Do=ee(24905),Eo=ee(38854),Pr=ee(64165),oi=ee(20834),ii=ee(40875),gi=ee(5112),Li=ee(17574),fi=ee(47472),To=ee(92832);function Ti(De){let{value:Te,onChange:Ue,filterSearch:Ve,tablePrefixCls:it,locale:Ce}=De;return Ve?ie.createElement("div",{className:`${it}-filter-dropdown-search`},ie.createElement(To.default,{prefix:ie.createElement(fi.Z,null),placeholder:Ce.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${it}-filter-dropdown-search-input`})):null}var Ni=Ti,Mi=ee(10228);const wa=De=>{const{keyCode:Te}=De;Te===Mi.Z.ENTER&&De.stopPropagation()};var La=ie.forwardRef((De,Te)=>ie.createElement("div",{className:De.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:wa,ref:Te},De.children));function bi(De){let Te=[];return(De||[]).forEach(Ue=>{let{value:Ve,children:it}=Ue;Te.push(Ve),it&&(Te=[].concat((0,sn.Z)(Te),(0,sn.Z)(bi(it))))}),Te}function na(De){return De.some(Te=>{let{children:Ue}=Te;return Ue})}function ra(De,Te){return typeof Te=="string"||typeof Te=="number"?Te==null?void 0:Te.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function Ma(De){let{filters:Te,prefixCls:Ue,filteredKeys:Ve,filterMultiple:it,searchValue:Ce,filterSearch:Me}=De;return Te.map((Oe,Qe)=>{const qe=String(Oe.value);if(Oe.children)return{key:qe||Qe,label:Oe.text,popupClassName:`${Ue}-dropdown-submenu`,children:Ma({filters:Oe.children,prefixCls:Ue,filteredKeys:Ve,filterMultiple:it,searchValue:Ce,filterSearch:Me})};const tt=it?Do.default:gi.ZP,ut={key:Oe.value!==void 0?qe:Qe,label:ie.createElement(ie.Fragment,null,ie.createElement(tt,{checked:Ve.includes(qe)}),ie.createElement("span",null,Oe.text))};return Ce.trim()?typeof Me=="function"?Me(Ce,Oe)?ut:null:ra(Ce,Oe.text)?ut:null:ut})}function Da(De){var Te,Ue;const{tablePrefixCls:Ve,prefixCls:it,column:Ce,dropdownPrefixCls:Me,columnKey:Oe,filterMultiple:Qe,filterMode:qe="menu",filterSearch:tt=!1,filterState:ut,triggerFilter:ct,locale:st,children:_t,getPopupContainer:Yt}=De,{filterDropdownOpen:It,onFilterDropdownOpenChange:Kt,filterResetToDefaultFilteredValue:Ft,defaultFilteredValue:Xt,filterDropdownVisible:on,onFilterDropdownVisibleChange:mn}=Ce,[ln,vn]=ie.useState(!1),Nn=!!(ut&&(!((Te=ut.filteredKeys)===null||Te===void 0)&&Te.length||ut.forceFiltered)),qt=Bn=>{vn(Bn),Kt==null||Kt(Bn),mn==null||mn(Bn)},hn=(Ue=It!=null?It:on)!==null&&Ue!==void 0?Ue:ln,Tt=ut==null?void 0:ut.filteredKeys,[tn,cn]=dr(Tt||[]),Mn=Bn=>{let{selectedKeys:zn}=Bn;cn(zn)},qn=(Bn,zn)=>{let{node:gr,checked:yr}=zn;Mn(Qe?{selectedKeys:Bn}:{selectedKeys:yr&&gr.key?[gr.key]:[]})};ie.useEffect(()=>{ln&&Mn({selectedKeys:Tt||[]})},[Tt]);const[en,En]=ie.useState([]),gn=Bn=>{En(Bn)},[Sn,jn]=ie.useState(""),Qn=Bn=>{const{value:zn}=Bn.target;jn(zn)};ie.useEffect(()=>{ln||jn("")},[ln]);const br=Bn=>{const zn=Bn&&Bn.length?Bn:null;if(zn===null&&(!ut||!ut.filteredKeys)||(0,ge.Z)(zn,ut==null?void 0:ut.filteredKeys,!0))return null;ct({column:Ce,key:Oe,filteredKeys:zn})},nr=()=>{qt(!1),br(tn())},tr=function(){let{confirm:Bn,closeDropdown:zn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Bn&&br([]),zn&&qt(!1),jn(""),cn(Ft?(Xt||[]).map(gr=>String(gr)):[])},Vr=function(){let{closeDropdown:Bn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Bn&&qt(!1),br(tn())},mr=Bn=>{Bn&&Tt!==void 0&&cn(Tt||[]),qt(Bn),!Bn&&!Ce.filterDropdown&&nr()},Br=Ye()({[`${Me}-menu-without-submenu`]:!na(Ce.filters||[])}),cr=Bn=>{if(Bn.target.checked){const zn=bi(Ce==null?void 0:Ce.filters).map(gr=>String(gr));cn(zn)}else cn([])},Wn=Bn=>{let{filters:zn}=Bn;return(zn||[]).map((gr,yr)=>{const Ao=String(gr.value),_o={title:gr.text,key:gr.value!==void 0?Ao:yr};return gr.children&&(_o.children=Wn({filters:gr.children})),_o})},On=Bn=>{var zn;return Object.assign(Object.assign({},Bn),{text:Bn.title,value:Bn.key,children:((zn=Bn.children)===null||zn===void 0?void 0:zn.map(gr=>On(gr)))||[]})};let Tn;if(typeof Ce.filterDropdown=="function")Tn=Ce.filterDropdown({prefixCls:`${Me}-custom`,setSelectedKeys:Bn=>Mn({selectedKeys:Bn}),selectedKeys:tn(),confirm:Vr,clearFilters:tr,filters:Ce.filters,visible:hn,close:()=>{qt(!1)}});else if(Ce.filterDropdown)Tn=Ce.filterDropdown;else{const Bn=tn()||[],zn=()=>(Ce.filters||[]).length===0?ie.createElement(Pr.Z,{image:Pr.Z.PRESENTED_IMAGE_SIMPLE,description:st.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):qe==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(Ni,{filterSearch:tt,value:Sn,onChange:Qn,tablePrefixCls:Ve,locale:st}),ie.createElement("div",{className:`${Ve}-filter-dropdown-tree`},Qe?ie.createElement(Do.default,{checked:Bn.length===bi(Ce.filters).length,indeterminate:Bn.length>0&&Bn.length<bi(Ce.filters).length,className:`${Ve}-filter-dropdown-checkall`,onChange:cr},st.filterCheckall):null,ie.createElement(Li.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Qe,checkStrictly:!Qe,className:`${Me}-menu`,onCheck:qn,checkedKeys:Bn,selectedKeys:Bn,showIcon:!1,treeData:Wn({filters:Ce.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Sn.trim()?yr=>typeof tt=="function"?tt(Sn,On(yr)):ra(Sn,yr.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(Ni,{filterSearch:tt,value:Sn,onChange:Qn,tablePrefixCls:Ve,locale:st}),ie.createElement(oi.default,{selectable:!0,multiple:Qe,prefixCls:`${Me}-menu`,className:Br,onSelect:Mn,onDeselect:Mn,selectedKeys:Bn,getPopupContainer:Yt,openKeys:en,onOpenChange:gn,items:Ma({filters:Ce.filters||[],filterSearch:tt,prefixCls:it,filteredKeys:tn(),filterMultiple:Qe,searchValue:Sn})})),gr=()=>Ft?(0,ge.Z)((Xt||[]).map(yr=>String(yr)),Bn,!0):Bn.length===0;Tn=ie.createElement(ie.Fragment,null,zn(),ie.createElement("div",{className:`${it}-dropdown-btns`},ie.createElement(Yo.ZP,{type:"link",size:"small",disabled:gr(),onClick:()=>tr()},st.filterReset),ie.createElement(Yo.ZP,{type:"primary",size:"small",onClick:nr},st.filterConfirm)))}Ce.filterDropdown&&(Tn=ie.createElement(ii.J,{selectable:void 0},Tn));const Hn=()=>ie.createElement(La,{className:`${it}-dropdown`},Tn);let An;typeof Ce.filterIcon=="function"?An=Ce.filterIcon(Nn):Ce.filterIcon?An=Ce.filterIcon:An=ie.createElement(ri,null);const{direction:Cr}=ie.useContext(ho.E_);return ie.createElement("div",{className:`${it}-column`},ie.createElement("span",{className:`${Ve}-column-title`},_t),ie.createElement(Eo.Z,{dropdownRender:Hn,trigger:["click"],open:hn,onOpenChange:mr,getPopupContainer:Yt,placement:Cr==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${it}-trigger`,{active:Nn}),onClick:Bn=>{Bn.stopPropagation()}},An)))}var Aa=Da;function Bi(De,Te,Ue){let Ve=[];return(De||[]).forEach((it,Ce)=>{var Me;const Oe=hr(Ce,Ue);if(it.filters||"filterDropdown"in it||"onFilter"in it)if("filteredValue"in it){let Qe=it.filteredValue;"filterDropdown"in it||(Qe=(Me=Qe==null?void 0:Qe.map(String))!==null&&Me!==void 0?Me:Qe),Ve.push({column:it,key:In(it,Oe),filteredKeys:Qe,forceFiltered:it.filtered})}else Ve.push({column:it,key:In(it,Oe),filteredKeys:Te&&it.defaultFilteredValue?it.defaultFilteredValue:void 0,forceFiltered:it.filtered});"children"in it&&(Ve=[].concat((0,sn.Z)(Ve),(0,sn.Z)(Bi(it.children,Te,Oe))))}),Ve}function oa(De,Te,Ue,Ve,it,Ce,Me,Oe){return Ue.map((Qe,qe)=>{const tt=hr(qe,Oe),{filterMultiple:ut=!0,filterMode:ct,filterSearch:st}=Qe;let _t=Qe;if(_t.filters||_t.filterDropdown){const Yt=In(_t,tt),It=Ve.find(Kt=>{let{key:Ft}=Kt;return Yt===Ft});_t=Object.assign(Object.assign({},_t),{title:Kt=>ie.createElement(Aa,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:Te,column:_t,columnKey:Yt,filterState:It,filterMultiple:ut,filterMode:ct,filterSearch:st,triggerFilter:Ce,locale:it,getPopupContainer:Me},Nr(Qe.title,Kt))})}return"children"in _t&&(_t=Object.assign(Object.assign({},_t),{children:oa(De,Te,_t.children,Ve,it,Ce,Me,tt)})),_t})}function ia(De){const Te={};return De.forEach(Ue=>{let{key:Ve,filteredKeys:it,column:Ce}=Ue;const{filters:Me,filterDropdown:Oe}=Ce;if(Oe)Te[Ve]=it||null;else if(Array.isArray(it)){const Qe=bi(Me);Te[Ve]=Qe.filter(qe=>it.includes(String(qe)))}else Te[Ve]=null}),Te}function Wi(De,Te){return Te.reduce((Ue,Ve)=>{const{column:{onFilter:it,filters:Ce},filteredKeys:Me}=Ve;return it&&Me&&Me.length?Ue.filter(Oe=>Me.some(Qe=>{const qe=bi(Ce),tt=qe.findIndex(ct=>String(ct)===String(Qe)),ut=tt!==-1?qe[tt]:Qe;return it(ut,Oe)})):Ue},De)}const aa=De=>De.flatMap(Te=>"children"in Te?[Te].concat((0,sn.Z)(aa(Te.children||[]))):[Te]);function ds(De){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Ve,onFilterChange:it,getPopupContainer:Ce,locale:Me}=De;const Oe=ie.useMemo(()=>aa(Ve||[]),[Ve]),[Qe,qe]=ie.useState(()=>Bi(Oe,!0)),tt=ie.useMemo(()=>{const _t=Bi(Oe,!1);if(_t.length===0)return _t;let Yt=!0,It=!0;if(_t.forEach(Kt=>{let{filteredKeys:Ft}=Kt;Ft!==void 0?Yt=!1:It=!1}),Yt){const Kt=(Oe||[]).map((Ft,Xt)=>In(Ft,hr(Xt)));return Qe.filter(Ft=>{let{key:Xt}=Ft;return Kt.includes(Xt)}).map(Ft=>{const Xt=Oe[Kt.findIndex(on=>on===Ft.key)];return Object.assign(Object.assign({},Ft),{column:Object.assign(Object.assign({},Ft.column),Xt),forceFiltered:Xt.filtered})})}return _t},[Oe,Qe]),ut=ie.useMemo(()=>ia(tt),[tt]),ct=_t=>{const Yt=tt.filter(It=>{let{key:Kt}=It;return Kt!==_t.key});Yt.push(_t),qe(Yt),it(ia(Yt),Yt)};return[_t=>oa(Te,Ue,_t,tt,Me,ct,Ce),tt,ut]}var sa=ds;function Ki(De,Te,Ue){const Ve=ie.useRef({});function it(Ce){if(!Ve.current||Ve.current.data!==De||Ve.current.childrenColumnName!==Te||Ve.current.getRowKey!==Ue){let Oe=function(Qe){Qe.forEach((qe,tt)=>{const ut=Ue(qe,tt);Me.set(ut,qe),qe&&typeof qe=="object"&&Te in qe&&Oe(qe[Te]||[])})};const Me=new Map;Oe(De),Ve.current={data:De,childrenColumnName:Te,kvMap:Me,getRowKey:Ue}}return Ve.current.kvMap.get(Ce)}return[it]}var la=ee(50371),ki=function(De,Te){var Ue={};for(var Ve in De)Object.prototype.hasOwnProperty.call(De,Ve)&&Te.indexOf(Ve)<0&&(Ue[Ve]=De[Ve]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(De);it<Ve.length;it++)Te.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(De,Ve[it])&&(Ue[Ve[it]]=De[Ve[it]]);return Ue};const ai=10;function Ia(De,Te){const Ue={current:De.current,pageSize:De.pageSize};return Object.keys(Te&&typeof Te=="object"?Te:{}).forEach(it=>{const Ce=De[it];typeof Ce!="function"&&(Ue[it]=Ce)}),Ue}function ca(De,Te,Ue){const Ve=Ue&&typeof Ue=="object"?Ue:{},{total:it=0}=Ve,Ce=ki(Ve,["total"]),[Me,Oe]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ce?Ce.defaultCurrent:1,pageSize:"defaultPageSize"in Ce?Ce.defaultPageSize:ai})),Qe=(0,la.Z)(Me,Ce,{total:it>0?it:De}),qe=Math.ceil((it||De)/Qe.pageSize);Qe.current>qe&&(Qe.current=qe||1);const tt=(ct,st)=>{Oe({current:ct!=null?ct:1,pageSize:st||Qe.pageSize})},ut=(ct,st)=>{var _t;Ue&&((_t=Ue.onChange)===null||_t===void 0||_t.call(Ue,ct,st)),tt(ct,st),Te(ct,st||(Qe==null?void 0:Qe.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qe),{onChange:ut}),tt]}var Oa=ca,Ra=ee(84105),Ta=ee(35654),Vi=ee(90782),Fi=ee(71430),us=ee(18929);const hi={},Yi="SELECT_ALL",Xi="SELECT_INVERT",ji="SELECT_NONE",da=[],ua=(De,Te)=>{let Ue=[];return(Te||[]).forEach(Ve=>{Ue.push(Ve),Ve&&typeof Ve=="object"&&De in Ve&&(Ue=[].concat((0,sn.Z)(Ue),(0,sn.Z)(ua(De,Ve[De]))))}),Ue};var Ba=(De,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Ve,defaultSelectedRowKeys:it,getCheckboxProps:Ce,onChange:Me,onSelect:Oe,onSelectAll:Qe,onSelectInvert:qe,onSelectNone:tt,onSelectMultiple:ut,columnWidth:ct,type:st,selections:_t,fixed:Yt,renderCell:It,hideSelectAll:Kt,checkStrictly:Ft=!0}=Te||{},{prefixCls:Xt,data:on,pageData:mn,getRecordByKey:ln,getRowKey:vn,expandType:Nn,childrenColumnName:qt,locale:hn,getPopupContainer:Tt}=De,[tn,cn]=(0,us.Z)(Ve||it||da,{value:Ve}),Mn=ie.useRef(new Map),qn=(0,ie.useCallback)(On=>{if(Ue){const Tn=new Map;On.forEach(Hn=>{let An=ln(Hn);!An&&Mn.current.has(Hn)&&(An=Mn.current.get(Hn)),Tn.set(Hn,An)}),Mn.current=Tn}},[ln,Ue]);ie.useEffect(()=>{qn(tn)},[tn]);const{keyEntities:en}=(0,ie.useMemo)(()=>{if(Ft)return{keyEntities:null};let On=on;if(Ue){const Tn=new Set(on.map((An,Cr)=>vn(An,Cr))),Hn=Array.from(Mn.current).reduce((An,Cr)=>{let[Bn,zn]=Cr;return Tn.has(Bn)?An:An.concat(zn)},[]);On=[].concat((0,sn.Z)(On),(0,sn.Z)(Hn))}return(0,Fi.I8)(On,{externalGetKey:vn,childrenPropName:qt})},[on,vn,Ft,qt,Ue]),En=(0,ie.useMemo)(()=>ua(qt,mn),[qt,mn]),gn=(0,ie.useMemo)(()=>{const On=new Map;return En.forEach((Tn,Hn)=>{const An=vn(Tn,Hn),Cr=(Ce?Ce(Tn):null)||{};On.set(An,Cr)}),On},[En,vn,Ce]),Sn=(0,ie.useCallback)(On=>{var Tn;return!!(!((Tn=gn.get(vn(On)))===null||Tn===void 0)&&Tn.disabled)},[gn,vn]),[jn,Qn]=(0,ie.useMemo)(()=>{if(Ft)return[tn||[],[]];const{checkedKeys:On,halfCheckedKeys:Tn}=(0,Vi.S)(tn,!0,en,Sn);return[On||[],Tn]},[tn,Ft,en,Sn]),br=(0,ie.useMemo)(()=>{const On=st==="radio"?jn.slice(0,1):jn;return new Set(On)},[jn,st]),nr=(0,ie.useMemo)(()=>st==="radio"?new Set:new Set(Qn),[Qn,st]),[tr,Vr]=(0,ie.useState)(null);ie.useEffect(()=>{Te||cn(da)},[!!Te]);const mr=(0,ie.useCallback)((On,Tn)=>{let Hn,An;qn(On),Ue?(Hn=On,An=On.map(Cr=>Mn.current.get(Cr))):(Hn=[],An=[],On.forEach(Cr=>{const Bn=ln(Cr);Bn!==void 0&&(Hn.push(Cr),An.push(Bn))})),cn(Hn),Me==null||Me(Hn,An,{type:Tn})},[cn,ln,Me,Ue]),Br=(0,ie.useCallback)((On,Tn,Hn,An)=>{if(Oe){const Cr=Hn.map(Bn=>ln(Bn));Oe(ln(On),Tn,Cr,An)}mr(Hn,"single")},[Oe,ln,mr]),cr=(0,ie.useMemo)(()=>!_t||Kt?null:(_t===!0?[Yi,Xi,ji]:_t).map(Tn=>Tn===Yi?{key:"all",text:hn.selectionAll,onSelect(){mr(on.map((Hn,An)=>vn(Hn,An)).filter(Hn=>{const An=gn.get(Hn);return!(An!=null&&An.disabled)||br.has(Hn)}),"all")}}:Tn===Xi?{key:"invert",text:hn.selectInvert,onSelect(){const Hn=new Set(br);mn.forEach((Cr,Bn)=>{const zn=vn(Cr,Bn),gr=gn.get(zn);gr!=null&&gr.disabled||(Hn.has(zn)?Hn.delete(zn):Hn.add(zn))});const An=Array.from(Hn);qe&&qe(An),mr(An,"invert")}}:Tn===ji?{key:"none",text:hn.selectNone,onSelect(){tt==null||tt(),mr(Array.from(br).filter(Hn=>{const An=gn.get(Hn);return An==null?void 0:An.disabled}),"none")}}:Tn).map(Tn=>Object.assign(Object.assign({},Tn),{onSelect:function(){for(var Hn,An,Cr=arguments.length,Bn=new Array(Cr),zn=0;zn<Cr;zn++)Bn[zn]=arguments[zn];(An=Tn.onSelect)===null||An===void 0||(Hn=An).call.apply(Hn,[Tn].concat(Bn)),Vr(null)}})),[_t,br,mn,vn,qe,mr]);return[(0,ie.useCallback)(On=>{var Tn;if(!Te)return On.filter(pr=>pr!==hi);let Hn=(0,sn.Z)(On);const An=new Set(br),Cr=En.map(vn).filter(pr=>!gn.get(pr).disabled),Bn=Cr.every(pr=>An.has(pr)),zn=Cr.some(pr=>An.has(pr)),gr=()=>{const pr=[];Bn?Cr.forEach(jr=>{An.delete(jr),pr.push(jr)}):Cr.forEach(jr=>{An.has(jr)||(An.add(jr),pr.push(jr))});const Er=Array.from(An);Qe==null||Qe(!Bn,Er.map(jr=>ln(jr)),pr.map(jr=>ln(jr))),mr(Er,"all"),Vr(null)};let yr;if(st!=="radio"){let pr;if(cr){const vr={getPopupContainer:Tt,items:cr.map((po,Io)=>{const{key:Qo,text:mi,onSelect:ui}=po;return{key:Qo!=null?Qo:Io,onClick:()=>{ui==null||ui(Cr)},label:mi}})};pr=ie.createElement("div",{className:`${Xt}-selection-extra`},ie.createElement(Eo.Z,{menu:vr,getPopupContainer:Tt},ie.createElement("span",null,ie.createElement(Ra.Z,null))))}const Er=En.map((vr,po)=>{const Io=vn(vr,po),Qo=gn.get(Io)||{};return Object.assign({checked:An.has(Io)},Qo)}).filter(vr=>{let{disabled:po}=vr;return po}),jr=!!Er.length&&Er.length===En.length,ro=jr&&Er.every(vr=>{let{checked:po}=vr;return po}),Yr=jr&&Er.some(vr=>{let{checked:po}=vr;return po});yr=!Kt&&ie.createElement("div",{className:`${Xt}-selection`},ie.createElement(Do.default,{checked:jr?ro:!!En.length&&Bn,indeterminate:jr?!ro&&Yr:!Bn&&zn,onChange:gr,disabled:En.length===0||jr,"aria-label":pr?"Custom selection":"Select all",skipGroup:!0}),pr)}let Ao;st==="radio"?Ao=(pr,Er,jr)=>{const ro=vn(Er,jr),Yr=An.has(ro);return{node:ie.createElement(gi.ZP,Object.assign({},gn.get(ro),{checked:Yr,onClick:vr=>vr.stopPropagation(),onChange:vr=>{An.has(ro)||Br(ro,!0,[ro],vr.nativeEvent)}})),checked:Yr}}:Ao=(pr,Er,jr)=>{var ro;const Yr=vn(Er,jr),vr=An.has(Yr),po=nr.has(Yr),Io=gn.get(Yr);let Qo;return Nn==="nest"?Qo=po:Qo=(ro=Io==null?void 0:Io.indeterminate)!==null&&ro!==void 0?ro:po,{node:ie.createElement(Do.default,Object.assign({},Io,{indeterminate:Qo,checked:vr,skipGroup:!0,onClick:mi=>mi.stopPropagation(),onChange:mi=>{let{nativeEvent:ui}=mi;const{shiftKey:ta}=ui;let yi=-1,si=-1;if(ta&&Ft){const Uo=new Set([tr,Yr]);Cr.some((zo,vo)=>{if(Uo.has(zo))if(yi===-1)yi=vo;else return si=vo,!0;return!1})}if(si!==-1&&yi!==si&&Ft){const Uo=Cr.slice(yi,si+1),zo=[];vr?Uo.forEach(oo=>{An.has(oo)&&(zo.push(oo),An.delete(oo))}):Uo.forEach(oo=>{An.has(oo)||(zo.push(oo),An.add(oo))});const vo=Array.from(An);ut==null||ut(!vr,vo.map(oo=>ln(oo)),zo.map(oo=>ln(oo))),mr(vo,"multiple")}else{const Uo=jn;if(Ft){const zo=vr?(0,Ta._5)(Uo,Yr):(0,Ta.L0)(Uo,Yr);Br(Yr,!vr,zo,ui)}else{const zo=(0,Vi.S)([].concat((0,sn.Z)(Uo),[Yr]),!0,en,Sn),{checkedKeys:vo,halfCheckedKeys:oo}=zo;let pi=vo;if(vr){const Ri=new Set(vo);Ri.delete(Yr),pi=(0,Vi.S)(Array.from(Ri),{checked:!1,halfCheckedKeys:oo},en,Sn).checkedKeys}Br(Yr,!vr,pi,ui)}}Vr(vr?null:Yr)}})),checked:vr}};const _o=(pr,Er,jr)=>{const{node:ro,checked:Yr}=Ao(pr,Er,jr);return It?It(Yr,Er,jr,ro):ro};if(!Hn.includes(hi))if(Hn.findIndex(pr=>{var Er;return((Er=pr[Jn])===null||Er===void 0?void 0:Er.columnType)==="EXPAND_COLUMN"})===0){const[pr,...Er]=Hn;Hn=[pr,hi].concat((0,sn.Z)(Er))}else Hn=[hi].concat((0,sn.Z)(Hn));const ni=Hn.indexOf(hi);Hn=Hn.filter((pr,Er)=>pr!==hi||Er===ni);const Un=Hn[ni-1],Rr=Hn[ni+1];let Lr=Yt;Lr===void 0&&((Rr==null?void 0:Rr.fixed)!==void 0?Lr=Rr.fixed:(Un==null?void 0:Un.fixed)!==void 0&&(Lr=Un.fixed)),Lr&&Un&&((Tn=Un[Jn])===null||Tn===void 0?void 0:Tn.columnType)==="EXPAND_COLUMN"&&Un.fixed===void 0&&(Un.fixed=Lr);const Jr=Ye()(`${Xt}-selection-col`,{[`${Xt}-selection-col-with-dropdown`]:_t&&st==="checkbox"}),Fr={fixed:Lr,width:ct,className:`${Xt}-selection-column`,title:Te.columnTitle||yr,render:_o,onCell:Te.onCell,[Jn]:{className:Jr}};return Hn.map(pr=>pr===hi?Fr:pr)},[vn,En,Te,jn,br,nr,ct,cr,Nn,tr,gn,ut,Br,Sn]),br]},Qi=ee(89489),gs=ee(59477),ka=ee(6848);const zi="ascend",Hi="descend";function Gi(De){return typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1}function ga(De){return typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1}function fa(De,Te){return Te?De[De.indexOf(Te)+1]:De[0]}function Ji(De,Te,Ue){let Ve=[];function it(Ce,Me){Ve.push({column:Ce,key:In(Ce,Me),multiplePriority:Gi(Ce),sortOrder:Ce.sortOrder})}return(De||[]).forEach((Ce,Me)=>{const Oe=hr(Me,Ue);Ce.children?("sortOrder"in Ce&&it(Ce,Oe),Ve=[].concat((0,sn.Z)(Ve),(0,sn.Z)(Ji(Ce.children,Te,Oe)))):Ce.sorter&&("sortOrder"in Ce?it(Ce,Oe):Te&&Ce.defaultSortOrder&&Ve.push({column:Ce,key:In(Ce,Oe),multiplePriority:Gi(Ce),sortOrder:Ce.defaultSortOrder}))}),Ve}function Fa(De,Te,Ue,Ve,it,Ce,Me,Oe){return(Te||[]).map((Qe,qe)=>{const tt=hr(qe,Oe);let ut=Qe;if(ut.sorter){const ct=ut.sortDirections||it,st=ut.showSorterTooltip===void 0?Me:ut.showSorterTooltip,_t=In(ut,tt),Yt=Ue.find(Nn=>{let{key:qt}=Nn;return qt===_t}),It=Yt?Yt.sortOrder:null,Kt=fa(ct,It);let Ft;if(Qe.sortIcon)Ft=Qe.sortIcon({sortOrder:It});else{const Nn=ct.includes(zi)&&ie.createElement(gs.Z,{className:Ye()(`${De}-column-sorter-up`,{active:It===zi})}),qt=ct.includes(Hi)&&ie.createElement(Qi.Z,{className:Ye()(`${De}-column-sorter-down`,{active:It===Hi})});Ft=ie.createElement("span",{className:Ye()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(Nn&&qt)})},ie.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},Nn,qt))}const{cancelSort:Xt,triggerAsc:on,triggerDesc:mn}=Ce||{};let ln=Xt;Kt===Hi?ln=mn:Kt===zi&&(ln=on);const vn=typeof st=="object"?st:{title:ln};ut=Object.assign(Object.assign({},ut),{className:Ye()(ut.className,{[`${De}-column-sort`]:It}),title:Nn=>{const qt=ie.createElement("div",{className:`${De}-column-sorters`},ie.createElement("span",{className:`${De}-column-title`},Nr(Qe.title,Nn)),Ft);return st?ie.createElement(ka.Z,Object.assign({},vn),qt):qt},onHeaderCell:Nn=>{const qt=Qe.onHeaderCell&&Qe.onHeaderCell(Nn)||{},hn=qt.onClick,Tt=qt.onKeyDown;qt.onClick=Mn=>{Ve({column:Qe,key:_t,sortOrder:Kt,multiplePriority:Gi(Qe)}),hn==null||hn(Mn)},qt.onKeyDown=Mn=>{Mn.keyCode===Mi.Z.ENTER&&(Ve({column:Qe,key:_t,sortOrder:Kt,multiplePriority:Gi(Qe)}),Tt==null||Tt(Mn))};const tn=ao(Qe.title,{}),cn=tn==null?void 0:tn.toString();return It?qt["aria-sort"]=It==="ascend"?"ascending":"descending":qt["aria-label"]=cn||"",qt.className=Ye()(qt.className,`${De}-column-has-sorters`),qt.tabIndex=0,Qe.ellipsis&&(qt.title=(tn!=null?tn:"").toString()),qt}})}return"children"in ut&&(ut=Object.assign(Object.assign({},ut),{children:Fa(De,ut.children,Ue,Ve,it,Ce,Me,tt)})),ut})}function ha(De){const{column:Te,sortOrder:Ue}=De;return{column:Te,order:Ue,field:Te.dataIndex,columnKey:Te.key}}function ma(De){const Te=De.filter(Ue=>{let{sortOrder:Ve}=Ue;return Ve}).map(ha);return Te.length===0&&De.length?Object.assign(Object.assign({},ha(De[De.length-1])),{column:void 0}):Te.length<=1?Te[0]||{}:Te}function qi(De,Te,Ue){const Ve=Te.slice().sort((Me,Oe)=>Oe.multiplePriority-Me.multiplePriority),it=De.slice(),Ce=Ve.filter(Me=>{let{column:{sorter:Oe},sortOrder:Qe}=Me;return ga(Oe)&&Qe});return Ce.length?it.sort((Me,Oe)=>{for(let Qe=0;Qe<Ce.length;Qe+=1){const qe=Ce[Qe],{column:{sorter:tt},sortOrder:ut}=qe,ct=ga(tt);if(ct&&ut){const st=ct(Me,Oe,ut);if(st!==0)return ut===zi?st:-st}}return 0}).map(Me=>{const Oe=Me[Ue];return Oe?Object.assign(Object.assign({},Me),{[Ue]:qi(Oe,Te,Ue)}):Me}):it}function ja(De){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Ve,sortDirections:it,tableLocale:Ce,showSorterTooltip:Me}=De;const[Oe,Qe]=ie.useState(Ji(Ue,!0)),qe=ie.useMemo(()=>{let _t=!0;const Yt=Ji(Ue,!1);if(!Yt.length)return Oe;const It=[];function Kt(Xt){_t?It.push(Xt):It.push(Object.assign(Object.assign({},Xt),{sortOrder:null}))}let Ft=null;return Yt.forEach(Xt=>{Ft===null?(Kt(Xt),Xt.sortOrder&&(Xt.multiplePriority===!1?_t=!1:Ft=!0)):(Ft&&Xt.multiplePriority!==!1||(_t=!1),Kt(Xt))}),It},[Ue,Oe]),tt=ie.useMemo(()=>{const _t=qe.map(Yt=>{let{column:It,sortOrder:Kt}=Yt;return{column:It,order:Kt}});return{sortColumns:_t,sortColumn:_t[0]&&_t[0].column,sortOrder:_t[0]&&_t[0].order}},[qe]);function ut(_t){let Yt;_t.multiplePriority===!1||!qe.length||qe[0].multiplePriority===!1?Yt=[_t]:Yt=[].concat((0,sn.Z)(qe.filter(It=>{let{key:Kt}=It;return Kt!==_t.key})),[_t]),Qe(Yt),Ve(ma(Yt),Yt)}return[_t=>Fa(Te,_t,qe,ut,it,Ce,Me),qe,tt,()=>ma(qe)]}function pa(De,Te){return De.map(Ue=>{const Ve=Object.assign({},Ue);return Ve.title=Nr(Ue.title,Te),"children"in Ve&&(Ve.children=pa(Ve.children,Te)),Ve})}function za(De){return[ie.useCallback(Ue=>pa(Ue,De),[De])]}var va=_r((De,Te)=>{const{_renderTimes:Ue}=De,{_renderTimes:Ve}=Te;return Ue!==Ve}),Ha=zr((De,Te)=>{const{_renderTimes:Ue}=De,{_renderTimes:Ve}=Te;return Ue!==Ve}),Di=ee(64993),Ai=ee(17313),Xo=ee(83116),Ga=ee(37613),fs=De=>{const{componentCls:Te}=De,Ue=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,Ve=(it,Ce,Me)=>({[`&${Te}-${it}`]:{[`> ${Te}-container`]:{[`> ${Te}-content, > ${Te}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${Ce}px -${Me+De.lineWidth}px`}}}}}});return{[`${Te}-wrapper`]:{[`${Te}${Te}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Te}-title`]:{border:Ue,borderBottom:0},[`> ${Te}-container`]:{borderInlineStart:Ue,borderTop:Ue,[`
|
|
|
> ${Te}-content,
|
|
|
> ${Te}-header,
|
|
|
> ${Te}-body,
|
|
|
> ${Te}-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:Ue},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ue},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Te}-cell-fix-right-first::after`]:{borderInlineEnd:Ue}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${De.tablePaddingVertical}px -${De.tablePaddingHorizontal+De.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:De.lineWidth,bottom:0,borderInlineEnd:Ue,content:'""'}}}}}},[`&${Te}-scroll-horizontal`]:{[`> ${Te}-container > ${Te}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Te}-expanded-row,
|
|
|
> tr${Te}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ve("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),Ve("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Te}-footer`]:{border:Ue,borderTop:0}}),[`${Te}-cell`]:{[`${Te}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${De.lineWidth}px 0 ${De.lineWidth}px ${De.tableHeaderBg}`}},[`${Te}-bordered ${Te}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},Ci=De=>{const{componentCls:Te}=De;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},Ai.vS),{wordBreak:"keep-all",[`
|
|
|
&${Te}-cell-fix-left-last,
|
|
|
&${Te}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Te}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Te}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ua=De=>{const{componentCls:Te}=De;return{[`${Te}-wrapper`]:{[`${Te}-tbody > tr${Te}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},$a=ee(15969),Wa=De=>{const{componentCls:Te,antCls:Ue,controlInteractiveSize:Ve,motionDurationSlow:it,lineWidth:Ce,paddingXS:Me,lineType:Oe,tableBorderColor:Qe,tableExpandIconBg:qe,tableExpandColumnWidth:tt,borderRadius:ut,fontSize:ct,fontSizeSM:st,lineHeight:_t,tablePaddingVertical:Yt,tablePaddingHorizontal:It,tableExpandedRowBg:Kt,paddingXXS:Ft}=De,Xt=Ve/2-Ce,on=Xt*2+Ce*3,mn=`${Ce}px ${Oe} ${Qe}`,ln=Ft-Ce;return{[`${Te}-wrapper`]:{[`${Te}-expand-icon-col`]:{width:tt},[`${Te}-row-expand-icon-cell`]:{textAlign:"center",[`${Te}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Te}-row-indent`]:{height:1,float:"left"},[`${Te}-row-expand-icon`]:Object.assign(Object.assign({},(0,$a.N)(De)),{position:"relative",float:"left",boxSizing:"border-box",width:on,height:on,padding:0,color:"inherit",lineHeight:`${on}px`,background:qe,border:mn,borderRadius:ut,transform:`scale(${Ve/on})`,transition:`all ${it}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${it} ease-out`,content:'""'},"&::before":{top:Xt,insetInlineEnd:ln,insetInlineStart:ln,height:Ce},"&::after":{top:ln,bottom:ln,insetInlineStart:Xt,width:Ce,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"}}),[`${Te}-row-indent + ${Te}-row-expand-icon`]:{marginTop:(ct*_t-Ce*3)/2-Math.ceil((st*1.4-Ce*3)/2),marginInlineEnd:Me},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Kt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${Yt}px -${It}px`,padding:`${Yt}px ${It}px`}}}},Sa=De=>{const{componentCls:Te,antCls:Ue,iconCls:Ve,tableFilterDropdownWidth:it,tableFilterDropdownSearchWidth:Ce,paddingXXS:Me,paddingXS:Oe,colorText:Qe,lineWidth:qe,lineType:tt,tableBorderColor:ut,tableHeaderIconColor:ct,fontSizeSM:st,tablePaddingHorizontal:_t,borderRadius:Yt,motionDurationSlow:It,colorTextDescription:Kt,colorPrimary:Ft,tableHeaderFilterActiveBg:Xt,colorTextDisabled:on,tableFilterDropdownBg:mn,tableFilterDropdownHeight:ln,controlItemBgHover:vn,controlItemBgActive:Nn,boxShadowSecondary:qt,filterDropdownMenuBg:hn}=De,Tt=`${Ue}-dropdown`,tn=`${Te}-filter-dropdown`,cn=`${Ue}-tree`,Mn=`${qe}px ${tt} ${ut}`;return[{[`${Te}-wrapper`]:{[`${Te}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Te}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Me,marginInline:`${Me}px ${-_t/2}px`,padding:`0 ${Me}px`,color:ct,fontSize:st,borderRadius:Yt,cursor:"pointer",transition:`all ${It}`,"&:hover":{color:Kt,background:Xt},"&.active":{color:Ft}}}},{[`${Ue}-dropdown`]:{[tn]:Object.assign(Object.assign({},(0,Ai.Wf)(De)),{minWidth:it,backgroundColor:mn,borderRadius:Yt,boxShadow:qt,overflow:"hidden",[`${Tt}-menu`]:{maxHeight:ln,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Oe}px 0`,color:on,fontSize:st,textAlign:"center",content:'"Not Found"'}},[`${tn}-tree`]:{paddingBlock:`${Oe}px 0`,paddingInline:Oe,[cn]:{padding:0},[`${cn}-treenode ${cn}-node-content-wrapper:hover`]:{backgroundColor:vn},[`${cn}-treenode-checkbox-checked ${cn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Nn}}},[`${tn}-search`]:{padding:Oe,borderBottom:Mn,"&-input":{input:{minWidth:Ce},[Ve]:{color:on}}},[`${tn}-checkall`]:{width:"100%",marginBottom:Me,marginInlineStart:Me},[`${tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Oe-qe}px ${Oe}px`,overflow:"hidden",borderTop:Mn}})}},{[`${Ue}-dropdown ${tn}, ${tn}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Oe,color:Qe},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ea=De=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Ve,motionDurationSlow:it,zIndexTableFixed:Ce,tableBg:Me,zIndexTableSticky:Oe}=De,Qe=Ve;return{[`${Te}-wrapper`]:{[`
|
|
|
${Te}-cell-fix-left,
|
|
|
${Te}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ce,background:Me},[`
|
|
|
${Te}-cell-fix-left-first::after,
|
|
|
${Te}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ue,width:30,transform:"translateX(100%)",transition:`box-shadow ${it}`,content:'""',pointerEvents:"none"},[`${Te}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Te}-cell-fix-right-first::after,
|
|
|
${Te}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ue,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${it}`,content:'""',pointerEvents:"none"},[`${Te}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Oe+1,width:30,transition:`box-shadow ${it}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Te}-ping-left`]:{[`&:not(${Te}-has-fix-left) ${Te}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Qe}`}},[`
|
|
|
${Te}-cell-fix-left-first::after,
|
|
|
${Te}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[`${Te}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Te}-ping-right`]:{[`&:not(${Te}-has-fix-right) ${Te}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Qe}`}},[`
|
|
|
${Te}-cell-fix-right-first::after,
|
|
|
${Te}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`}}}}},vs=De=>{const{componentCls:Te,antCls:Ue}=De;return{[`${Te}-wrapper`]:{[`${Te}-pagination${Ue}-pagination`]:{margin:`${De.margin}px 0`},[`${Te}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ka=De=>{const{componentCls:Te,tableRadius:Ue}=De;return{[`${Te}-wrapper`]:{[Te]:{[`${Te}-title, ${Te}-header`]:{borderRadius:`${Ue}px ${Ue}px 0 0`},[`${Te}-title + ${Te}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Te}-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:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${Ue}px ${Ue}px`}}}}},Va=De=>{const{componentCls:Te}=De;return{[`${Te}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Te}-pagination-left`]:{justifyContent:"flex-end"},[`${Te}-pagination-right`]:{justifyContent:"flex-start"},[`${Te}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Te}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Te}-row-indent`]:{float:"right"}}}}},Ya=De=>{const{componentCls:Te,antCls:Ue,iconCls:Ve,fontSizeIcon:it,padding:Ce,paddingXS:Me,tableHeaderIconColor:Oe,tableHeaderIconColorHover:Qe,tableSelectionColumnWidth:qe}=De;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:qe,[`&${Te}-selection-col-with-dropdown`]:{width:qe+it+Ce/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:qe+Me*2,[`&${Te}-selection-col-with-dropdown`]:{width:qe+it+Ce/4+Me*2}},[`
|
|
|
table tr th${Te}-selection-column,
|
|
|
table tr td${Te}-selection-column
|
|
|
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Te}-selection-column${Te}-cell-fix-left`]:{zIndex:De.zIndexTableFixed+1},[`table tr th${Te}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Te}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Te}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${De.tablePaddingHorizontal/4}px`,[Ve]:{color:Oe,fontSize:it,verticalAlign:"baseline","&:hover":{color:Qe}}}}}},Xa=De=>{const{componentCls:Te}=De,Ue=(Ve,it,Ce,Me)=>({[`${Te}${Te}-${Ve}`]:{fontSize:Me,[`
|
|
|
${Te}-title,
|
|
|
${Te}-footer,
|
|
|
${Te}-cell,
|
|
|
${Te}-thead > tr > th,
|
|
|
${Te}-tbody > tr > th,
|
|
|
${Te}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${it}px ${Ce}px`},[`${Te}-filter-trigger`]:{marginInlineEnd:`-${Ce/2}px`},[`${Te}-expanded-row-fixed`]:{margin:`-${it}px -${Ce}px`},[`${Te}-tbody`]:{[`${Te}-wrapper:only-child ${Te}`]:{marginBlock:`-${it}px`,marginInline:`${De.tableExpandColumnWidth-Ce}px -${Ce}px`}},[`${Te}-selection-column`]:{paddingInlineStart:`${Ce/4}px`}}});return{[`${Te}-wrapper`]:Object.assign(Object.assign({},Ue("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),Ue("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},er=De=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Ve,tableHeaderIconColor:it,tableHeaderIconColorHover:Ce}=De;return{[`${Te}-wrapper`]:{[`${Te}-thead th${Te}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
|
|
|
&${Te}-cell-fix-left:hover,
|
|
|
&${Te}-cell-fix-right:hover
|
|
|
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Te}-thead th${Te}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Te}-column-sort`]:{background:De.tableBodySortBg},[`${Te}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Te}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Te}-column-sorter`]:{marginInlineStart:Ue,color:it,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ve,"&.active":{color:De.colorPrimary}},[`${Te}-column-sorter-up + ${Te}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Te}-column-sorters:hover ${Te}-column-sorter`]:{color:Ce}}}},Qa=De=>{const{componentCls:Te,opacityLoading:Ue,tableScrollThumbBg:Ve,tableScrollThumbBgHover:it,tableScrollThumbSize:Ce,tableScrollBg:Me,zIndexTableSticky:Oe,stickyScrollBarBorderRadius:Qe}=De,qe=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:Oe,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce}px !important`,zIndex:Oe,display:"flex",alignItems:"center",background:Me,borderTop:qe,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ce,backgroundColor:Ve,borderRadius:Qe,transition:`all ${De.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:it}}}}}}},Oi=De=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Ve}=De,it=`${Ue}px ${De.lineType} ${Ve}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:it}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Ve}`}}}},_a=De=>{const{componentCls:Te}=De,Ue=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,Ve=`${Te}-expanded-row-cell`;return{[`${Te}-wrapper`]:{[`${Te}-tbody-virtual`]:{[`${Te}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Te}-cell`]:{borderBottom:Ue},[`${Te}-expanded-row`]:{[`${Ve}${Ve}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${De.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Te}-bordered`]:{[`${Te}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ue,position:"absolute"},[`${Te}-cell`]:{borderInlineEnd:Ue,[`&${Te}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-De.lineWidth,borderInlineStart:Ue}}}}}}};const ya=De=>{const{componentCls:Te,fontWeightStrong:Ue,tablePaddingVertical:Ve,tablePaddingHorizontal:it,lineWidth:Ce,lineType:Me,tableBorderColor:Oe,tableFontSize:Qe,tableBg:qe,tableRadius:tt,tableHeaderTextColor:ut,motionDurationMid:ct,tableHeaderBg:st,tableHeaderCellSplitColor:_t,tableRowHoverBg:Yt,tableSelectedRowBg:It,tableSelectedRowHoverBg:Kt,tableFooterTextColor:Ft,tableFooterBg:Xt,paddingContentVerticalLG:on}=De,mn=`${Ce}px ${Me} ${Oe}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ai.dF)()),{[Te]:Object.assign(Object.assign({},(0,Ai.Wf)(De)),{fontSize:Qe,background:qe,borderRadius:`${tt}px ${tt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${tt}px ${tt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Te}-cell,
|
|
|
${Te}-thead > tr > th,
|
|
|
${Te}-tbody > tr > th,
|
|
|
${Te}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${on}px ${it}px`,overflowWrap:"break-word"},[`${Te}-title`]:{padding:`${Ve}px ${it}px`},[`${Te}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:ut,fontWeight:Ue,textAlign:"start",background:st,borderBottom:mn,transition:`background ${ct} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Te}-selection-column):not(${Te}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:_t,transform:"translateY(-50%)",transition:`background-color ${ct}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Te}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ct}, border-color ${ct}`,borderBottom:mn,[`
|
|
|
> ${Te}-wrapper:only-child,
|
|
|
> ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child
|
|
|
`]:{[Te]:{marginBlock:`-${Ve}px`,marginInline:`${De.tableExpandColumnWidth-it}px -${it}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:ut,fontWeight:Ue,textAlign:"start",background:st,borderBottom:mn,transition:`background ${ct} ease`},[`
|
|
|
&${Te}-row:hover > th,
|
|
|
&${Te}-row:hover > td,
|
|
|
> th${Te}-cell-row-hover,
|
|
|
> td${Te}-cell-row-hover
|
|
|
`]:{background:Yt},[`&${Te}-row-selected`]:{"> th, > td":{background:It},"&:hover > th, &:hover > td":{background:Kt}}}},[`${Te}-footer`]:{padding:`${Ve}px ${it}px`,color:Ft,background:Xt}})}};var Ur=(0,Xo.Z)("Table",De=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Ve,colorIconHover:it,opacityLoading:Ce,colorBgContainer:Me,controlInteractiveSize:Oe,headerBg:Qe,headerColor:qe,headerSortActiveBg:tt,headerSortHoverBg:ut,bodySortBg:ct,rowHoverBg:st,rowSelectedBg:_t,rowSelectedHoverBg:Yt,rowExpandedBg:It,cellPaddingBlock:Kt,cellPaddingInline:Ft,cellPaddingBlockMD:Xt,cellPaddingInlineMD:on,cellPaddingBlockSM:mn,cellPaddingInlineSM:ln,borderColor:vn,footerBg:Nn,footerColor:qt,headerBorderRadius:hn,cellFontSize:Tt,cellFontSizeMD:tn,cellFontSizeSM:cn,headerSplitColor:Mn,fixedHeaderSortActiveBg:qn,headerFilterHoverBg:en,filterDropdownBg:En,expandIconBg:gn,selectionColumnWidth:Sn,stickyScrollBarBg:jn}=De,Qn=new Di.C(Ve),br=new Di.C(it),nr=2,tr=(0,Ga.TS)(De,{tableFontSize:Tt,tableBg:Me,tableRadius:hn,tablePaddingVertical:Kt,tablePaddingHorizontal:Ft,tablePaddingVerticalMiddle:Xt,tablePaddingHorizontalMiddle:on,tablePaddingVerticalSmall:mn,tablePaddingHorizontalSmall:ln,tableBorderColor:vn,tableHeaderTextColor:qe,tableHeaderBg:Qe,tableFooterTextColor:qt,tableFooterBg:Nn,tableHeaderCellSplitColor:Mn,tableHeaderSortBg:tt,tableHeaderSortHoverBg:ut,tableHeaderIconColor:Qn.clone().setAlpha(Qn.getAlpha()*Ce).toRgbString(),tableHeaderIconColorHover:br.clone().setAlpha(br.getAlpha()*Ce).toRgbString(),tableBodySortBg:ct,tableFixedHeaderSortActiveBg:qn,tableHeaderFilterActiveBg:en,tableFilterDropdownBg:En,tableRowHoverBg:st,tableSelectedRowBg:_t,tableSelectedRowHoverBg:Yt,zIndexTableFixed:nr,zIndexTableSticky:nr+1,tableFontSizeMiddle:tn,tableFontSizeSmall:cn,tableSelectionColumnWidth:Sn,tableExpandIconBg:gn,tableExpandColumnWidth:Oe+2*De.padding,tableExpandedRowBg:It,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:jn,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[ya(tr),vs(tr),Oi(tr),er(tr),Sa(tr),fs(tr),Ka(tr),Wa(tr),Oi(tr),Ua(tr),Ya(tr),ea(tr),Qa(tr),Ci(tr),Xa(tr),Va(tr),_a(tr)]},De=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Ve,colorFillSecondary:it,colorFillContent:Ce,controlItemBgActive:Me,controlItemBgActiveHover:Oe,padding:Qe,paddingSM:qe,paddingXS:tt,colorBorderSecondary:ut,borderRadiusLG:ct,fontSize:st,controlHeight:_t,colorTextPlaceholder:Yt}=De,It=new Di.C(it).onBackground(Ue).toHexShortString(),Kt=new Di.C(Ce).onBackground(Ue).toHexShortString(),Ft=new Di.C(Te).onBackground(Ue).toHexShortString();return{headerBg:Ft,headerColor:Ve,headerSortActiveBg:It,headerSortHoverBg:Kt,bodySortBg:Ft,rowHoverBg:Ft,rowSelectedBg:Me,rowSelectedHoverBg:Oe,rowExpandedBg:Te,cellPaddingBlock:Qe,cellPaddingInline:Qe,cellPaddingBlockMD:qe,cellPaddingInlineMD:tt,cellPaddingBlockSM:tt,cellPaddingInlineSM:tt,borderColor:ut,headerBorderRadius:ct,footerBg:Ft,footerColor:Ve,cellFontSize:st,cellFontSizeMD:st,cellFontSizeSM:st,headerSplitColor:ut,fixedHeaderSortActiveBg:It,headerFilterHoverBg:Ce,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:_t,stickyScrollBarBg:Yt,stickyScrollBarBorderRadius:100}});const mo=[],qa=(De,Te)=>{const{prefixCls:Ue,className:Ve,rootClassName:it,style:Ce,size:Me,bordered:Oe,dropdownPrefixCls:Qe,dataSource:qe,pagination:tt,rowSelection:ut,rowKey:ct="key",rowClassName:st,columns:_t,children:Yt,childrenColumnName:It,onChange:Kt,getPopupContainer:Ft,loading:Xt,expandIcon:on,expandable:mn,expandedRowRender:ln,expandIconColumnIndex:vn,indentSize:Nn,scroll:qt,sortDirections:hn,locale:Tt,showSorterTooltip:tn=!0,virtual:cn}=De,Mn=ie.useMemo(()=>_t||Ie(Yt),[_t,Yt]),qn=ie.useMemo(()=>Mn.some(Mr=>Mr.responsive),[Mn]),en=(0,ei.Z)(qn),En=ie.useMemo(()=>{const Mr=new Set(Object.keys(en).filter(Xr=>en[Xr]));return Mn.filter(Xr=>!Xr.responsive||Xr.responsive.some(No=>Mr.has(No)))},[Mn,en]),gn=(0,ko.Z)(De,["className","style","columns"]),{locale:Sn=ci.Z,direction:jn,table:Qn,renderEmpty:br,getPrefixCls:nr,getPopupContainer:tr}=ie.useContext(ho.E_),Vr=(0,qo.Z)(Me),mr=Object.assign(Object.assign({},Sn.Table),Tt),Br=qe||mo,cr=nr("table",Ue),Wn=nr("dropdown",Qe),On=Object.assign({childrenColumnName:It,expandIconColumnIndex:vn},mn),{childrenColumnName:Tn="children"}=On,Hn=ie.useMemo(()=>Br.some(Mr=>Mr==null?void 0:Mr[Tn])?"nest":ln||mn&&mn.expandedRowRender?"row":null,[Br]),An={body:ie.useRef()},Cr=ie.useMemo(()=>typeof ct=="function"?ct:Mr=>Mr==null?void 0:Mr[ct],[ct]),[Bn]=Ki(Br,Tn,Cr),zn={},gr=function(Mr,Xr){let No=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var io,Fo,$o;const Zo=Object.assign(Object.assign({},zn),Mr);No&&((io=zn.resetPagination)===null||io===void 0||io.call(zn),!((Fo=Zo.pagination)===null||Fo===void 0)&&Fo.current&&(Zo.pagination.current=1),tt&&tt.onChange&&tt.onChange(1,($o=Zo.pagination)===null||$o===void 0?void 0:$o.pageSize)),qt&&qt.scrollToFirstRowOnChange!==!1&&An.body.current&&(0,Mo.Z)(0,{getContainer:()=>An.body.current}),Kt==null||Kt(Zo.pagination,Zo.filters,Zo.sorter,{currentDataSource:Wi(qi(Br,Zo.sorterStates,Tn),Zo.filterStates),action:Xr})},yr=(Mr,Xr)=>{gr({sorter:Mr,sorterStates:Xr},"sort",!1)},[Ao,_o,ni,Un]=ja({prefixCls:cr,mergedColumns:En,onSorterChange:yr,sortDirections:hn||["ascend","descend"],tableLocale:mr,showSorterTooltip:tn}),Rr=ie.useMemo(()=>qi(Br,_o,Tn),[Br,_o]);zn.sorter=Un(),zn.sorterStates=_o;const Lr=(Mr,Xr)=>{gr({filters:Mr,filterStates:Xr},"filter",!0)},[Jr,Fr,pr]=sa({prefixCls:cr,locale:mr,dropdownPrefixCls:Wn,mergedColumns:En,onFilterChange:Lr,getPopupContainer:Ft||tr}),Er=Wi(Rr,Fr);zn.filters=pr,zn.filterStates=Fr;const jr=ie.useMemo(()=>{const Mr={};return Object.keys(pr).forEach(Xr=>{pr[Xr]!==null&&(Mr[Xr]=pr[Xr])}),Object.assign(Object.assign({},ni),{filters:Mr})},[ni,pr]),[ro]=za(jr),Yr=(Mr,Xr)=>{gr({pagination:Object.assign(Object.assign({},zn.pagination),{current:Mr,pageSize:Xr})},"paginate")},[vr,po]=Oa(Er.length,Yr,tt);zn.pagination=tt===!1?{}:Ia(vr,tt),zn.resetPagination=po;const Io=ie.useMemo(()=>{if(tt===!1||!vr.pageSize)return Er;const{current:Mr=1,total:Xr,pageSize:No=ai}=vr;return Er.length<Xr?Er.length>No?Er.slice((Mr-1)*No,Mr*No):Er:Er.slice((Mr-1)*No,Mr*No)},[!!tt,Er,vr&&vr.current,vr&&vr.pageSize,vr&&vr.total]),[Qo,mi]=Ba({prefixCls:cr,data:Er,pageData:Io,getRowKey:Cr,getRecordByKey:Bn,expandType:Hn,childrenColumnName:Tn,locale:mr,getPopupContainer:Ft||tr},ut),ui=(Mr,Xr,No)=>{let io;return typeof st=="function"?io=Ye()(st(Mr,Xr,No)):io=Ye()(st),Ye()({[`${cr}-row-selected`]:mi.has(Cr(Mr,Xr))},io)};On.__PARENT_RENDER_ICON__=On.expandIcon,On.expandIcon=On.expandIcon||on||Ln(mr),Hn==="nest"&&On.expandIconColumnIndex===void 0?On.expandIconColumnIndex=ut?1:0:On.expandIconColumnIndex>0&&ut&&(On.expandIconColumnIndex-=1),typeof On.indentSize!="number"&&(On.indentSize=typeof Nn=="number"?Nn:15);const ta=ie.useCallback(Mr=>ro(Qo(Jr(Ao(Mr)))),[Ao,Jr,Qo]);let yi,si;if(tt!==!1&&(vr!=null&&vr.total)){let Mr;vr.size?Mr=vr.size:Mr=Vr==="small"||Vr==="middle"?"small":void 0;const Xr=Fo=>ie.createElement(ti.Z,Object.assign({},vr,{className:Ye()(`${cr}-pagination ${cr}-pagination-${Fo}`,vr.className),size:Mr})),No=jn==="rtl"?"left":"right",{position:io}=vr;if(io!==null&&Array.isArray(io)){const Fo=io.find(Pi=>Pi.includes("top")),$o=io.find(Pi=>Pi.includes("bottom")),Zo=io.every(Pi=>`${Pi}`=="none");!Fo&&!$o&&!Zo&&(si=Xr(No)),Fo&&(yi=Xr(Fo.toLowerCase().replace("top",""))),$o&&(si=Xr($o.toLowerCase().replace("bottom","")))}else si=Xr(No)}let Uo;typeof Xt=="boolean"?Uo={spinning:Xt}:typeof Xt=="object"&&(Uo=Object.assign({spinning:!0},Xt));const[zo,vo]=Ur(cr),[,oo]=(0,Gn.Z)(),pi=Ye()(`${cr}-wrapper`,Qn==null?void 0:Qn.className,{[`${cr}-wrapper-rtl`]:jn==="rtl"},Ve,it,vo),Ri=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),Ce),Ei=Tt&&Tt.emptyText||(br==null?void 0:br("Table"))||ie.createElement(Vo.Z,{componentName:"Table"}),vi=cn?Ha:va,Pa={},ts=ie.useMemo(()=>{const{fontSize:Mr,lineHeight:Xr,padding:No,paddingXS:io,paddingSM:Fo}=oo,$o=Math.floor(Mr*Xr);switch(Vr){case"large":return No*2+$o;case"small":return io*2+$o;default:return Fo*2+$o}},[oo,Vr]);return cn&&(Pa.listItemHeight=ts),zo(ie.createElement("div",{ref:Te,className:pi,style:Ri},ie.createElement(Si.Z,Object.assign({spinning:!1},Uo),yi,ie.createElement(vi,Object.assign({},Pa,gn,{columns:En,direction:jn,expandable:On,prefixCls:cr,className:Ye()({[`${cr}-middle`]:Vr==="middle",[`${cr}-small`]:Vr==="small",[`${cr}-bordered`]:Oe,[`${cr}-empty`]:Br.length===0}),data:Io,rowKey:Cr,rowClassName:ui,emptyText:Ei,internalHooks:fe,internalRefs:An,transformColumns:ta})),si)))};var Go=ie.forwardRef(qa);const ws=(De,Te)=>{const Ue=ie.useRef(0);return Ue.current+=1,ie.createElement(Go,Object.assign({},De,{ref:Te,_renderTimes:Ue.current}))},di=ie.forwardRef(ws);di.SELECTION_COLUMN=hi,di.EXPAND_COLUMN=te,di.SELECTION_ALL=Yi,di.SELECTION_INVERT=Xi,di.SELECTION_NONE=ji,di.Column=Ro,di.ColumnGroup=Ko,di.Summary=Ae;var es=di,$i=es},12563:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return Fe}});var te=ee(59301),fe=ee(99267),be=ee(92310),ye=ee.n(be),he=ee(36785),ge=ee(47729),ie=ee(14088),ue=ee(36355),ce=ee(17313),me=ee(37613),se=ee(83116);const pe=xe=>{const{paddingXXS:lt,lineWidth:Ye,tagPaddingHorizontal:ht,componentCls:we}=xe,je=ht-Ye,He=lt-Ye;return{[we]:Object.assign(Object.assign({},(0,ce.Wf)(xe)),{display:"inline-block",height:"auto",marginInlineEnd:xe.marginXS,paddingInline:je,fontSize:xe.tagFontSize,lineHeight:xe.tagLineHeight,whiteSpace:"nowrap",background:xe.defaultBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadiusSM,opacity:1,transition:`all ${xe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${we}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:xe.defaultColor},[`${we}-close-icon`]:{marginInlineStart:He,color:xe.colorTextDescription,fontSize:xe.tagIconSize,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,"&:hover":{color:xe.colorTextHeading}},[`&${we}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${xe.iconCls}-close, ${xe.iconCls}-close:hover`]:{color:xe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${we}-checkable-checked):hover`]:{color:xe.colorPrimary,backgroundColor:xe.colorFillSecondary},"&:active, &-checked":{color:xe.colorTextLightSolid},"&-checked":{backgroundColor:xe.colorPrimary,"&:hover":{backgroundColor:xe.colorPrimaryHover}},"&:active":{backgroundColor:xe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${xe.iconCls} + span, > span + ${xe.iconCls}`]:{marginInlineStart:je}}),[`${we}-borderless`]:{borderColor:"transparent",background:xe.tagBorderlessBg}}},oe=xe=>{const{lineWidth:lt,fontSizeIcon:Ye}=xe,ht=xe.fontSizeSM,we=`${xe.lineHeightSM*ht}px`;return(0,me.TS)(xe,{tagFontSize:ht,tagLineHeight:we,tagIconSize:Ye-2*lt,tagPaddingHorizontal:8,tagBorderlessBg:xe.colorFillTertiary})},ne=xe=>({defaultBg:xe.colorFillQuaternary,defaultColor:xe.colorText});var a=(0,se.Z)("Tag",xe=>{const lt=oe(xe);return pe(lt)},ne),y=function(xe,lt){var Ye={};for(var ht in xe)Object.prototype.hasOwnProperty.call(xe,ht)&<.indexOf(ht)<0&&(Ye[ht]=xe[ht]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ht=Object.getOwnPropertySymbols(xe);we<ht.length;we++)lt.indexOf(ht[we])<0&&Object.prototype.propertyIsEnumerable.call(xe,ht[we])&&(Ye[ht[we]]=xe[ht[we]]);return Ye},b=xe=>{const{prefixCls:lt,style:Ye,className:ht,checked:we,onChange:je,onClick:He}=xe,Je=y(xe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$e,tag:mt}=te.useContext(ue.E_),Pt=Ct=>{je==null||je(!we),He==null||He(Ct)},At=$e("tag",lt),[Nt,rt]=a(At),Xe=ye()(At,`${At}-checkable`,{[`${At}-checkable-checked`]:we},mt==null?void 0:mt.className,ht,rt);return Nt(te.createElement("span",Object.assign({},Je,{style:Object.assign(Object.assign({},Ye),mt==null?void 0:mt.style),className:Xe,onClick:Pt})))},x=ee(45157);const z=xe=>(0,x.Z)(xe,(lt,Ye)=>{let{textColor:ht,lightBorderColor:we,lightColor:je,darkColor:He}=Ye;return{[`${xe.componentCls}-${lt}`]:{color:ht,background:je,borderColor:we,"&-inverse":{color:xe.colorTextLightSolid,background:He,borderColor:He},[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,se.b)(["Tag","preset"],xe=>{const lt=oe(xe);return z(lt)},ne);function le(xe){return typeof xe!="string"?xe:xe.charAt(0).toUpperCase()+xe.slice(1)}const de=(xe,lt,Ye)=>{const ht=le(Ye);return{[`${xe.componentCls}-${lt}`]:{color:xe[`color${Ye}`],background:xe[`color${ht}Bg`],borderColor:xe[`color${ht}Border`],[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ve=(0,se.b)(["Tag","status"],xe=>{const lt=oe(xe);return[de(lt,"success","Success"),de(lt,"processing","Info"),de(lt,"error","Error"),de(lt,"warning","Warning")]},ne),Se=function(xe,lt){var Ye={};for(var ht in xe)Object.prototype.hasOwnProperty.call(xe,ht)&<.indexOf(ht)<0&&(Ye[ht]=xe[ht]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ht=Object.getOwnPropertySymbols(xe);we<ht.length;we++)lt.indexOf(ht[we])<0&&Object.prototype.propertyIsEnumerable.call(xe,ht[we])&&(Ye[ht[we]]=xe[ht[we]]);return Ye};const Le=(xe,lt)=>{const{prefixCls:Ye,className:ht,rootClassName:we,style:je,children:He,icon:Je,color:$e,onClose:mt,closeIcon:Pt,closable:At,bordered:Nt=!0}=xe,rt=Se(xe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Xe,direction:Ct,tag:Ht}=te.useContext(ue.E_),[Et,rn]=te.useState(!0);te.useEffect(()=>{"visible"in rt&&rn(rt.visible)},[rt.visible]);const Ze=(0,he.o2)($e),St=(0,he.yT)($e),Lt=Ze||St,nn=Object.assign(Object.assign({backgroundColor:$e&&!Lt?$e:void 0},Ht==null?void 0:Ht.style),je),Zt=Xe("tag",Ye),[at,dt]=a(Zt),Ge=ye()(Zt,Ht==null?void 0:Ht.className,{[`${Zt}-${$e}`]:Lt,[`${Zt}-has-color`]:$e&&!Lt,[`${Zt}-hidden`]:!Et,[`${Zt}-rtl`]:Ct==="rtl",[`${Zt}-borderless`]:!Nt},ht,we,dt),Ne=Be=>{Be.stopPropagation(),mt==null||mt(Be),!Be.defaultPrevented&&rn(!1)},[,nt]=(0,ge.Z)(At,Pt,Be=>Be===null?te.createElement(fe.Z,{className:`${Zt}-close-icon`,onClick:Ne}):te.createElement("span",{className:`${Zt}-close-icon`,onClick:Ne},Be),null,!1),xt=typeof rt.onClick=="function"||He&&He.type==="a",Ae=Je||null,Re=Ae?te.createElement(te.Fragment,null,Ae,He&&te.createElement("span",null,He)):He,We=te.createElement("span",Object.assign({},rt,{ref:lt,className:Ge,style:nn}),Re,nt,Ze&&te.createElement(re,{key:"preset",prefixCls:Zt}),St&&te.createElement(ve,{key:"status",prefixCls:Zt}));return at(xt?te.createElement(ie.Z,{component:"Tag"},We):We)},Ee=te.forwardRef(Le);Ee.CheckableTag=b;var Fe=Ee},17574:function(ft,Ke,ee){"use strict";ee.d(Ke,{default:function(){return $e}});var te=ee(60091),fe=ee(94480),be=ee(52671),ye=ee(8657),he=ee(54476),ge=ee(59301),ie={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"},ue=ie,ce=ee(7657),me=function(Pt,At){return ge.createElement(ce.Z,(0,he.Z)({},Pt,{ref:At,icon:ue}))},se=ge.forwardRef(me),pe=se,oe=ee(92310),ne=ee.n(oe),a=ee(35654),y=ee(71430),E=ee(36355),b=ee(56082),x=ee(62892),z=ee(20648);const re=4;function le(mt){const{dropPosition:Pt,dropLevelOffset:At,prefixCls:Nt,indent:rt,direction:Xe="ltr"}=mt,Ct=Xe==="ltr"?"left":"right",Ht=Xe==="ltr"?"right":"left",Et={[Ct]:-At*rt+re,[Ht]:0};switch(Pt){case-1:Et.top=-3;break;case 1:Et.bottom=-3;break;default:Et.bottom=-3,Et[Ct]=rt+re;break}return ge.createElement("div",{style:Et,className:`${Nt}-drop-indicator`})}var de=ee(71997),Se=ge.forwardRef((mt,Pt)=>{const{getPrefixCls:At,direction:Nt,virtual:rt,tree:Xe}=ge.useContext(E.E_),{prefixCls:Ct,className:Ht,showIcon:Et=!1,showLine:rn,switcherIcon:Ze,blockNode:St=!1,children:Lt,checkable:nn=!1,selectable:Zt=!0,draggable:at,motion:dt,style:Ge}=mt,Ne=At("tree",Ct),nt=At(),xt=dt!=null?dt:Object.assign(Object.assign({},(0,x.Z)(nt)),{motionAppear:!1}),Ae=Object.assign(Object.assign({},mt),{checkable:nn,selectable:Zt,showIcon:Et,motion:xt,blockNode:St,showLine:!!rn,dropIndicatorRender:le}),[Re,We]=(0,z.ZP)(Ne),Be=ge.useMemo(()=>{if(!at)return!1;let ot={};switch(typeof at){case"function":ot.nodeDraggable=at;break;case"object":ot=Object.assign({},at);break;default:break}return ot.icon!==!1&&(ot.icon=ot.icon||ge.createElement(b.Z,null)),ot},[at]),ze=ot=>ge.createElement(de.Z,{prefixCls:Ne,switcherIcon:Ze,treeNodeProps:ot,showLine:rn});return Re(ge.createElement(te.Z,Object.assign({itemHeight:20,ref:Pt,virtual:rt},Ae,{style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Ge),prefixCls:Ne,className:ne()({[`${Ne}-icon-hide`]:!Et,[`${Ne}-block-node`]:St,[`${Ne}-unselectable`]:!Zt,[`${Ne}-rtl`]:Nt==="rtl"},Xe==null?void 0:Xe.className,Ht,We),direction:Nt,checkable:nn&&ge.createElement("span",{className:`${Ne}-checkbox-inner`}),selectable:Zt,switcherIcon:ze,draggable:Be}),Lt))}),Le;(function(mt){mt[mt.None=0]="None",mt[mt.Start=1]="Start",mt[mt.End=2]="End"})(Le||(Le={}));function Ee(mt,Pt){function At(Nt){const{key:rt,children:Xe}=Nt;Pt(rt,Nt)!==!1&&Ee(Xe||[],Pt)}mt.forEach(At)}function Fe(mt){let{treeData:Pt,expandedKeys:At,startKey:Nt,endKey:rt}=mt;const Xe=[];let Ct=Le.None;if(Nt&&Nt===rt)return[Nt];if(!Nt||!rt)return[];function Ht(Et){return Et===Nt||Et===rt}return Ee(Pt,Et=>{if(Ct===Le.End)return!1;if(Ht(Et)){if(Xe.push(Et),Ct===Le.None)Ct=Le.Start;else if(Ct===Le.Start)return Ct=Le.End,!1}else Ct===Le.Start&&Xe.push(Et);return At.includes(Et)}),Xe}function xe(mt,Pt){const At=(0,fe.Z)(Pt),Nt=[];return Ee(mt,(rt,Xe)=>{const Ct=At.indexOf(rt);return Ct!==-1&&(Nt.push(Xe),At.splice(Ct,1)),!!At.length}),Nt}var lt=function(mt,Pt){var At={};for(var Nt in mt)Object.prototype.hasOwnProperty.call(mt,Nt)&&Pt.indexOf(Nt)<0&&(At[Nt]=mt[Nt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Nt=Object.getOwnPropertySymbols(mt);rt<Nt.length;rt++)Pt.indexOf(Nt[rt])<0&&Object.prototype.propertyIsEnumerable.call(mt,Nt[rt])&&(At[Nt[rt]]=mt[Nt[rt]]);return At};function Ye(mt){const{isLeaf:Pt,expanded:At}=mt;return Pt?ge.createElement(be.Z,null):At?ge.createElement(ye.Z,null):ge.createElement(pe,null)}function ht(mt){let{treeData:Pt,children:At}=mt;return Pt||(0,y.zn)(At)}const we=(mt,Pt)=>{var{defaultExpandAll:At,defaultExpandParent:Nt,defaultExpandedKeys:rt}=mt,Xe=lt(mt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=ge.useRef(),Ht=ge.useRef(),Et=()=>{const{keyEntities:Be}=(0,y.I8)(ht(Xe));let ze;return At?ze=Object.keys(Be):Nt?ze=(0,a.r7)(Xe.expandedKeys||rt||[],Be):ze=Xe.expandedKeys||rt,ze},[rn,Ze]=ge.useState(Xe.selectedKeys||Xe.defaultSelectedKeys||[]),[St,Lt]=ge.useState(()=>Et());ge.useEffect(()=>{"selectedKeys"in Xe&&Ze(Xe.selectedKeys)},[Xe.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in Xe&&Lt(Xe.expandedKeys)},[Xe.expandedKeys]);const nn=(Be,ze)=>{var ot;return"expandedKeys"in Xe||Lt(Be),(ot=Xe.onExpand)===null||ot===void 0?void 0:ot.call(Xe,Be,ze)},Zt=(Be,ze)=>{var ot;const{multiple:Ot}=Xe,{node:Dt,nativeEvent:jt}=ze,{key:Mt=""}=Dt,Gt=ht(Xe),bt=Object.assign(Object.assign({},ze),{selected:!0}),fn=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),dn=jt==null?void 0:jt.shiftKey;let wt;Ot&&fn?(wt=Be,Ct.current=Mt,Ht.current=wt,bt.selectedNodes=xe(Gt,wt)):Ot&&dn?(wt=Array.from(new Set([].concat((0,fe.Z)(Ht.current||[]),(0,fe.Z)(Fe({treeData:Gt,expandedKeys:St,startKey:Mt,endKey:Ct.current}))))),bt.selectedNodes=xe(Gt,wt)):(wt=[Mt],Ct.current=Mt,Ht.current=wt,bt.selectedNodes=xe(Gt,wt)),(ot=Xe.onSelect)===null||ot===void 0||ot.call(Xe,wt,bt),"selectedKeys"in Xe||Ze(wt)},{getPrefixCls:at,direction:dt}=ge.useContext(E.E_),{prefixCls:Ge,className:Ne,showIcon:nt=!0,expandAction:xt="click"}=Xe,Ae=lt(Xe,["prefixCls","className","showIcon","expandAction"]),Re=at("tree",Ge),We=ne()(`${Re}-directory`,{[`${Re}-directory-rtl`]:dt==="rtl"},Ne);return ge.createElement(Se,Object.assign({icon:Ye,ref:Pt,blockNode:!0},Ae,{showIcon:nt,expandAction:xt,prefixCls:Re,className:We,expandedKeys:St,selectedKeys:rn,onSelect:Zt,onExpand:nn}))};var He=ge.forwardRef(we);const Je=Se;Je.DirectoryTree=He,Je.TreeNode=te.O;var $e=Je},20648:function(ft,Ke,ee){"use strict";ee.d(Ke,{TM:function(){return oe},Yk:function(){return pe}});var te=ee(36237),fe=ee(98447),be=ee(17313),ye=ee(8378),he=ee(37613),ge=ee(83116);const ie=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ue=(ne,a)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),ce=(ne,a)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:a.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${a.lineWidthBold}px solid ${a.colorPrimary}`,borderRadius:"50%",content:'""'}}}),me=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:re}=a,le=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,be.Wf)(a)),{background:a.colorBgContainer,borderRadius:a.borderRadius,transition:`background-color ${a.motionDurationSlow}`,[`&${y}-rtl`]:{[`${y}-switcher`]:{"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${y}-active-focused)`]:Object.assign({},(0,be.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ie,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,be.oN)(a)),[`&:not(${E}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},ue(ne,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:a.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:le},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${y}-node-selected`]:{backgroundColor:z},[`${y}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},ce(ne,a)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},se=ne=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:x},[`${a}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},pe=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,he.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[me(ne,x),se(x)]},oe=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ke.ZP=(0,ge.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,fe.C2)(`${y}-checkbox`,ne)},pe(y,ne),(0,ye.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},oe(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return E}});var te=ee(54476),fe=ee(59301),be={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"},ye=be,he=ee(7657),ge=function(x,z){return fe.createElement(he.Z,(0,te.Z)({},x,{ref:z,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(52671),me=ee(58617),se=ee(15075),pe=ee(43531),oe=ee(92310),ne=ee.n(oe),a=ee(92343),E=b=>{const{prefixCls:x,switcherIcon:z,treeNodeProps:re,showLine:le}=b,{isLeaf:de,expanded:ve,loading:Se}=re;if(Se)return fe.createElement(me.Z,{className:`${x}-switcher-loading-icon`});let Le;if(le&&typeof le=="object"&&(Le=le.showLeafIcon),de){if(!le)return null;if(typeof Le!="boolean"&&Le){const xe=typeof Le=="function"?Le(re):Le,lt=`${x}-switcher-line-custom-icon`;return(0,a.l$)(xe)?(0,a.Tm)(xe,{className:ne()(xe.props.className||"",lt)}):xe}return Le?fe.createElement(ce.Z,{className:`${x}-switcher-line-icon`}):fe.createElement("span",{className:`${x}-switcher-leaf-line`})}const Ee=`${x}-switcher-icon`,Fe=typeof z=="function"?z(re):z;return(0,a.l$)(Fe)?(0,a.Tm)(Fe,{className:ne()(Fe.props.className||"",Ee)}):Fe!==void 0?Fe:le?ve?fe.createElement(se.Z,{className:`${x}-switcher-line-icon`}):fe.createElement(pe.Z,{className:`${x}-switcher-line-icon`}):fe.createElement(ue,{className:Ee})}},3867:function(ft,Ke,ee){var te=ee(97671);(function(fe,be){ft.exports=be()})(this,function(){"use strict";function fe(Ae){var Re=typeof Ae;return Ae!==null&&(Re==="object"||Re==="function")}function be(Ae){return typeof Ae=="function"}var ye=void 0;Array.isArray?ye=Array.isArray:ye=function(Ae){return Object.prototype.toString.call(Ae)==="[object Array]"};var he=ye,ge=0,ie=void 0,ue=void 0,ce=function(Re,We){le[ge]=Re,le[ge+1]=We,ge+=2,ge===2&&(ue?ue(de):Se())};function me(Ae){ue=Ae}function se(Ae){ce=Ae}var pe=typeof window!="undefined"?window:void 0,oe=pe||{},ne=oe.MutationObserver||oe.WebKitMutationObserver,a=typeof self=="undefined"&&typeof te!="undefined"&&{}.toString.call(te)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return te.nextTick(de)}}function b(){return typeof ie!="undefined"?function(){ie(de)}:re()}function x(){var Ae=0,Re=new ne(de),We=document.createTextNode("");return Re.observe(We,{characterData:!0}),function(){We.data=Ae=++Ae%2}}function z(){var Ae=new MessageChannel;return Ae.port1.onmessage=de,function(){return Ae.port2.postMessage(0)}}function re(){var Ae=setTimeout;return function(){return Ae(de,1)}}var le=new Array(1e3);function de(){for(var Ae=0;Ae<ge;Ae+=2){var Re=le[Ae],We=le[Ae+1];Re(We),le[Ae]=void 0,le[Ae+1]=void 0}ge=0}function ve(){try{var Ae=Function("return this")().require("vertx");return ie=Ae.runOnLoop||Ae.runOnContext,b()}catch(Re){return re()}}var Se=void 0;a?Se=E():ne?Se=x():y?Se=z():pe===void 0?Se=ve():Se=re();function Le(Ae,Re){var We=this,Be=new this.constructor(xe);Be[Fe]===void 0&&St(Be);var ze=We._state;if(ze){var ot=arguments[ze-1];ce(function(){return Ht(ze,Be,ot,We._result)})}else Xe(We,Be,Ae,Re);return Be}function Ee(Ae){var Re=this;if(Ae&&typeof Ae=="object"&&Ae.constructor===Re)return Ae;var We=new Re(xe);return Pt(We,Ae),We}var Fe=Math.random().toString(36).substring(2);function xe(){}var lt=void 0,Ye=1,ht=2;function we(){return new TypeError("You cannot resolve a promise with itself")}function je(){return new TypeError("A promises callback cannot return that same promise.")}function He(Ae,Re,We,Be){try{Ae.call(Re,We,Be)}catch(ze){return ze}}function Je(Ae,Re,We){ce(function(Be){var ze=!1,ot=He(We,Re,function(Ot){ze||(ze=!0,Re!==Ot?Pt(Be,Ot):Nt(Be,Ot))},function(Ot){ze||(ze=!0,rt(Be,Ot))},"Settle: "+(Be._label||" unknown promise"));!ze&&ot&&(ze=!0,rt(Be,ot))},Ae)}function $e(Ae,Re){Re._state===Ye?Nt(Ae,Re._result):Re._state===ht?rt(Ae,Re._result):Xe(Re,void 0,function(We){return Pt(Ae,We)},function(We){return rt(Ae,We)})}function mt(Ae,Re,We){Re.constructor===Ae.constructor&&We===Le&&Re.constructor.resolve===Ee?$e(Ae,Re):We===void 0?Nt(Ae,Re):be(We)?Je(Ae,Re,We):Nt(Ae,Re)}function Pt(Ae,Re){if(Ae===Re)rt(Ae,we());else if(fe(Re)){var We=void 0;try{We=Re.then}catch(Be){rt(Ae,Be);return}mt(Ae,Re,We)}else Nt(Ae,Re)}function At(Ae){Ae._onerror&&Ae._onerror(Ae._result),Ct(Ae)}function Nt(Ae,Re){Ae._state===lt&&(Ae._result=Re,Ae._state=Ye,Ae._subscribers.length!==0&&ce(Ct,Ae))}function rt(Ae,Re){Ae._state===lt&&(Ae._state=ht,Ae._result=Re,ce(At,Ae))}function Xe(Ae,Re,We,Be){var ze=Ae._subscribers,ot=ze.length;Ae._onerror=null,ze[ot]=Re,ze[ot+Ye]=We,ze[ot+ht]=Be,ot===0&&Ae._state&&ce(Ct,Ae)}function Ct(Ae){var Re=Ae._subscribers,We=Ae._state;if(Re.length!==0){for(var Be=void 0,ze=void 0,ot=Ae._result,Ot=0;Ot<Re.length;Ot+=3)Be=Re[Ot],ze=Re[Ot+We],Be?Ht(We,Be,ze,ot):ze(ot);Ae._subscribers.length=0}}function Ht(Ae,Re,We,Be){var ze=be(We),ot=void 0,Ot=void 0,Dt=!0;if(ze){try{ot=We(Be)}catch(jt){Dt=!1,Ot=jt}if(Re===ot){rt(Re,je());return}}else ot=Be;Re._state!==lt||(ze&&Dt?Pt(Re,ot):Dt===!1?rt(Re,Ot):Ae===Ye?Nt(Re,ot):Ae===ht&&rt(Re,ot))}function Et(Ae,Re){try{Re(function(Be){Pt(Ae,Be)},function(Be){rt(Ae,Be)})}catch(We){rt(Ae,We)}}var rn=0;function Ze(){return rn++}function St(Ae){Ae[Fe]=rn++,Ae._state=void 0,Ae._result=void 0,Ae._subscribers=[]}function Lt(){return new Error("Array Methods must be provided an Array")}var nn=function(){function Ae(Re,We){this._instanceConstructor=Re,this.promise=new Re(xe),this.promise[Fe]||St(this.promise),he(We)?(this.length=We.length,this._remaining=We.length,this._result=new Array(this.length),this.length===0?Nt(this.promise,this._result):(this.length=this.length||0,this._enumerate(We),this._remaining===0&&Nt(this.promise,this._result))):rt(this.promise,Lt())}return Ae.prototype._enumerate=function(We){for(var Be=0;this._state===lt&&Be<We.length;Be++)this._eachEntry(We[Be],Be)},Ae.prototype._eachEntry=function(We,Be){var ze=this._instanceConstructor,ot=ze.resolve;if(ot===Ee){var Ot=void 0,Dt=void 0,jt=!1;try{Ot=We.then}catch(Gt){jt=!0,Dt=Gt}if(Ot===Le&&We._state!==lt)this._settledAt(We._state,Be,We._result);else if(typeof Ot!="function")this._remaining--,this._result[Be]=We;else if(ze===nt){var Mt=new ze(xe);jt?rt(Mt,Dt):mt(Mt,We,Ot),this._willSettleAt(Mt,Be)}else this._willSettleAt(new ze(function(Gt){return Gt(We)}),Be)}else this._willSettleAt(ot(We),Be)},Ae.prototype._settledAt=function(We,Be,ze){var ot=this.promise;ot._state===lt&&(this._remaining--,We===ht?rt(ot,ze):this._result[Be]=ze),this._remaining===0&&Nt(ot,this._result)},Ae.prototype._willSettleAt=function(We,Be){var ze=this;Xe(We,void 0,function(ot){return ze._settledAt(Ye,Be,ot)},function(ot){return ze._settledAt(ht,Be,ot)})},Ae}();function Zt(Ae){return new nn(this,Ae).promise}function at(Ae){var Re=this;return he(Ae)?new Re(function(We,Be){for(var ze=Ae.length,ot=0;ot<ze;ot++)Re.resolve(Ae[ot]).then(We,Be)}):new Re(function(We,Be){return Be(new TypeError("You must pass an array to race."))})}function dt(Ae){var Re=this,We=new Re(xe);return rt(We,Ae),We}function Ge(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ne(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var nt=function(){function Ae(Re){this[Fe]=Ze(),this._result=this._state=void 0,this._subscribers=[],xe!==Re&&(typeof Re!="function"&&Ge(),this instanceof Ae?Et(this,Re):Ne())}return Ae.prototype.catch=function(We){return this.then(null,We)},Ae.prototype.finally=function(We){var Be=this,ze=Be.constructor;return be(We)?Be.then(function(ot){return ze.resolve(We()).then(function(){return ot})},function(ot){return ze.resolve(We()).then(function(){throw ot})}):Be.then(We,We)},Ae}();nt.prototype.then=Le,nt.all=Zt,nt.race=at,nt.resolve=Ee,nt.reject=dt,nt._setScheduler=me,nt._setAsap=se,nt._asap=ce;function xt(){var Ae=void 0;if(typeof ee.g!="undefined")Ae=ee.g;else if(typeof self!="undefined")Ae=self;else try{Ae=Function("return this")()}catch(Be){throw new Error("polyfill failed because global object is unavailable in this environment")}var Re=Ae.Promise;if(Re){var We=null;try{We=Object.prototype.toString.call(Re.resolve())}catch(Be){}if(We==="[object Promise]"&&!Re.cast)return}Ae.Promise=nt}return nt.polyfill=xt,nt.Promise=nt,nt})},86204:function(ft){"use strict";var Ke=typeof Reflect=="object"?Reflect:null,ee=Ke&&typeof Ke.apply=="function"?Ke.apply:function(z,re,le){return Function.prototype.apply.call(z,re,le)},te;Ke&&typeof Ke.ownKeys=="function"?te=Ke.ownKeys:Object.getOwnPropertySymbols?te=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:te=function(z){return Object.getOwnPropertyNames(z)};function fe(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function ye(){ye.init.call(this)}ft.exports=ye,ft.exports.once=y,ye.EventEmitter=ye,ye.prototype._events=void 0,ye.prototype._eventsCount=0,ye.prototype._maxListeners=void 0;var he=10;function ge(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(ye,"defaultMaxListeners",{enumerable:!0,get:function(){return he},set:function(x){if(typeof x!="number"||x<0||be(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");he=x}}),ye.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ye.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||be(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function ie(x){return x._maxListeners===void 0?ye.defaultMaxListeners:x._maxListeners}ye.prototype.getMaxListeners=function(){return ie(this)},ye.prototype.emit=function(z){for(var re=[],le=1;le<arguments.length;le++)re.push(arguments[le]);var de=z==="error",ve=this._events;if(ve!==void 0)de=de&&ve.error===void 0;else if(!de)return!1;if(de){var Se;if(re.length>0&&(Se=re[0]),Se instanceof Error)throw Se;var Le=new Error("Unhandled error."+(Se?" ("+Se.message+")":""));throw Le.context=Se,Le}var Ee=ve[z];if(Ee===void 0)return!1;if(typeof Ee=="function")ee(Ee,this,re);else for(var Fe=Ee.length,xe=oe(Ee,Fe),le=0;le<Fe;++le)ee(xe[le],this,re);return!0};function ue(x,z,re,le){var de,ve,Se;if(ge(re),ve=x._events,ve===void 0?(ve=x._events=Object.create(null),x._eventsCount=0):(ve.newListener!==void 0&&(x.emit("newListener",z,re.listener?re.listener:re),ve=x._events),Se=ve[z]),Se===void 0)Se=ve[z]=re,++x._eventsCount;else if(typeof Se=="function"?Se=ve[z]=le?[re,Se]:[Se,re]:le?Se.unshift(re):Se.push(re),de=ie(x),de>0&&Se.length>de&&!Se.warned){Se.warned=!0;var Le=new Error("Possible EventEmitter memory leak detected. "+Se.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");Le.name="MaxListenersExceededWarning",Le.emitter=x,Le.type=z,Le.count=Se.length,fe(Le)}return x}ye.prototype.addListener=function(z,re){return ue(this,z,re,!1)},ye.prototype.on=ye.prototype.addListener,ye.prototype.prependListener=function(z,re){return ue(this,z,re,!0)};function ce(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function me(x,z,re){var le={fired:!1,wrapFn:void 0,target:x,type:z,listener:re},de=ce.bind(le);return de.listener=re,le.wrapFn=de,de}ye.prototype.once=function(z,re){return ge(re),this.on(z,me(this,z,re)),this},ye.prototype.prependOnceListener=function(z,re){return ge(re),this.prependListener(z,me(this,z,re)),this},ye.prototype.removeListener=function(z,re){var le,de,ve,Se,Le;if(ge(re),de=this._events,de===void 0)return this;if(le=de[z],le===void 0)return this;if(le===re||le.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete de[z],de.removeListener&&this.emit("removeListener",z,le.listener||re));else if(typeof le!="function"){for(ve=-1,Se=le.length-1;Se>=0;Se--)if(le[Se]===re||le[Se].listener===re){Le=le[Se].listener,ve=Se;break}if(ve<0)return this;ve===0?le.shift():ne(le,ve),le.length===1&&(de[z]=le[0]),de.removeListener!==void 0&&this.emit("removeListener",z,Le||re)}return this},ye.prototype.off=ye.prototype.removeListener,ye.prototype.removeAllListeners=function(z){var re,le,de;if(le=this._events,le===void 0)return this;if(le.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):le[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete le[z]),this;if(arguments.length===0){var ve=Object.keys(le),Se;for(de=0;de<ve.length;++de)Se=ve[de],Se!=="removeListener"&&this.removeAllListeners(Se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=le[z],typeof re=="function")this.removeListener(z,re);else if(re!==void 0)for(de=re.length-1;de>=0;de--)this.removeListener(z,re[de]);return this};function se(x,z,re){var le=x._events;if(le===void 0)return[];var de=le[z];return de===void 0?[]:typeof de=="function"?re?[de.listener||de]:[de]:re?a(de):oe(de,de.length)}ye.prototype.listeners=function(z){return se(this,z,!0)},ye.prototype.rawListeners=function(z){return se(this,z,!1)},ye.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):pe.call(x,z)},ye.prototype.listenerCount=pe;function pe(x){var z=this._events;if(z!==void 0){var re=z[x];if(typeof re=="function")return 1;if(re!==void 0)return re.length}return 0}ye.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function oe(x,z){for(var re=new Array(z),le=0;le<z;++le)re[le]=x[le];return re}function ne(x,z){for(;z+1<x.length;z++)x[z]=x[z+1];x.pop()}function a(x){for(var z=new Array(x.length),re=0;re<z.length;++re)z[re]=x[re].listener||x[re];return z}function y(x,z){return new Promise(function(re,le){function de(Se){x.removeListener(z,ve),le(Se)}function ve(){typeof x.removeListener=="function"&&x.removeListener("error",de),re([].slice.call(arguments))}b(x,z,ve,{once:!0}),z!=="error"&&E(x,de,{once:!0})})}function E(x,z,re){typeof x.on=="function"&&b(x,"error",z,re)}function b(x,z,re,le){if(typeof x.on=="function")le.once?x.once(z,re):x.on(z,re);else if(typeof x.addEventListener=="function")x.addEventListener(z,function de(ve){le.once&&x.removeEventListener(z,de),re(ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},24334:function(ft,Ke,ee){var te,fe;(function(be,ye){ft.exports=ye(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(be){"use strict";be=be||{};var ye=be.Base64,he="2.6.4",ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Ye){for(var ht={},we=0,je=Ye.length;we<je;we++)ht[Ye.charAt(we)]=we;return ht}(ge),ue=String.fromCharCode,ce=function(Ye){if(Ye.length<2){var ht=Ye.charCodeAt(0);return ht<128?Ye:ht<2048?ue(192|ht>>>6)+ue(128|ht&63):ue(224|ht>>>12&15)+ue(128|ht>>>6&63)+ue(128|ht&63)}else{var ht=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return ue(240|ht>>>18&7)+ue(128|ht>>>12&63)+ue(128|ht>>>6&63)+ue(128|ht&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Ye){return Ye.replace(me,ce)},pe=function(Ye){var ht=[0,2,1][Ye.length%3],we=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),je=[ge.charAt(we>>>18),ge.charAt(we>>>12&63),ht>=2?"=":ge.charAt(we>>>6&63),ht>=1?"=":ge.charAt(we&63)];return je.join("")},oe=be.btoa&&typeof be.btoa=="function"?function(Ye){return be.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,pe)},ne=function(Ye){return oe(se(String(Ye)))},a=function(Ye){return Ye.replace(/[+\/]/g,function(ht){return ht=="+"?"-":"_"}).replace(/=/g,"")},y=function(Ye,ht){return ht?a(ne(Ye)):ne(Ye)},E=function(Ye){return y(Ye,!0)},b;be.Uint8Array&&(b=function(Ye,ht){for(var we="",je=0,He=Ye.length;je<He;je+=3){var Je=Ye[je],$e=Ye[je+1],mt=Ye[je+2],Pt=Je<<16|$e<<8|mt;we+=ge.charAt(Pt>>>18)+ge.charAt(Pt>>>12&63)+(typeof $e!="undefined"?ge.charAt(Pt>>>6&63):"=")+(typeof mt!="undefined"?ge.charAt(Pt&63):"=")}return ht?a(we):we});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Ye){switch(Ye.length){case 4:var ht=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),we=ht-65536;return ue((we>>>10)+55296)+ue((we&1023)+56320);case 3:return ue((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return ue((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},re=function(Ye){return Ye.replace(x,z)},le=function(Ye){var ht=Ye.length,we=ht%4,je=(ht>0?ie[Ye.charAt(0)]<<18:0)|(ht>1?ie[Ye.charAt(1)]<<12:0)|(ht>2?ie[Ye.charAt(2)]<<6:0)|(ht>3?ie[Ye.charAt(3)]:0),He=[ue(je>>>16),ue(je>>>8&255),ue(je&255)];return He.length-=[0,0,2,1][we],He.join("")},de=be.atob&&typeof be.atob=="function"?function(Ye){return be.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,le)},ve=function(Ye){return de(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},Se=function(Ye){return re(de(Ye))},Le=function(Ye){return String(Ye).replace(/[-_]/g,function(ht){return ht=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ye){return Se(Le(Ye))},Fe;be.Uint8Array&&(Fe=function(Ye){return Uint8Array.from(ve(Le(Ye)),function(ht){return ht.charCodeAt(0)})});var xe=function(){var Ye=be.Base64;return be.Base64=ye,Ye};if(be.Base64={VERSION:he,atob:ve,btoa:oe,fromBase64:Ee,toBase64:y,utob:se,encode:y,encodeURI:E,btou:re,decode:Ee,noConflict:xe,fromUint8Array:b,toUint8Array:Fe},typeof Object.defineProperty=="function"){var lt=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(Ye){return y(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),ft.exports?ft.exports.Base64=be.Base64:(te=[],fe=function(){return be.Base64}.apply(Ke,te),fe!==void 0&&(ft.exports=fe)),{Base64:be.Base64}})},39417:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return Se}});var te=ee(54476),fe=ee(20068),be=ee(75931),ye=ee(33885),he=ee(67732),ge=ee(83652),ie=ee(31226),ue=ee(42403),ce=ee(158),me=ee(92310),se=ee.n(me),pe=ee(26112),oe=ee(59301),ne=ee(39378),a=function(Ee){for(var Fe=Ee.prefixCls,xe=Ee.level,lt=Ee.isStart,Ye=Ee.isEnd,ht="".concat(Fe,"-indent-unit"),we=[],je=0;je<xe;je+=1){var He;we.push(oe.createElement("span",{key:je,className:se()(ht,(He={},(0,fe.Z)(He,"".concat(ht,"-start"),lt[je]),(0,fe.Z)(He,"".concat(ht,"-end"),Ye[je]),He))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(Fe,"-indent")},we)},y=oe.memo(a),E=ee(67841),b=ee(71430),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",re="close",le="---",de=function(Le){(0,ue.Z)(Fe,Le);var Ee=(0,ce.Z)(Fe);function Fe(){var xe;(0,he.Z)(this,Fe);for(var lt=arguments.length,Ye=new Array(lt),ht=0;ht<lt;ht++)Ye[ht]=arguments[ht];return xe=Ee.call.apply(Ee,[this].concat(Ye)),xe.state={dragNodeHighlight:!1},xe.selectHandle=void 0,xe.cacheIndent=void 0,xe.onSelectorClick=function(we){var je=xe.props.context.onNodeClick;je(we,(0,b.F)(xe.props)),xe.isSelectable()?xe.onSelect(we):xe.onCheck(we)},xe.onSelectorDoubleClick=function(we){var je=xe.props.context.onNodeDoubleClick;je(we,(0,b.F)(xe.props))},xe.onSelect=function(we){if(!xe.isDisabled()){var je=xe.props.context.onNodeSelect;je(we,(0,b.F)(xe.props))}},xe.onCheck=function(we){if(!xe.isDisabled()){var je=xe.props,He=je.disableCheckbox,Je=je.checked,$e=xe.props.context.onNodeCheck;if(!(!xe.isCheckable()||He)){var mt=!Je;$e(we,(0,b.F)(xe.props),mt)}}},xe.onMouseEnter=function(we){var je=xe.props.context.onNodeMouseEnter;je(we,(0,b.F)(xe.props))},xe.onMouseLeave=function(we){var je=xe.props.context.onNodeMouseLeave;je(we,(0,b.F)(xe.props))},xe.onContextMenu=function(we){var je=xe.props.context.onNodeContextMenu;je(we,(0,b.F)(xe.props))},xe.onDragStart=function(we){var je=xe.props.context.onNodeDragStart;we.stopPropagation(),xe.setState({dragNodeHighlight:!0}),je(we,(0,ie.Z)(xe));try{we.dataTransfer.setData("text/plain","")}catch(He){}},xe.onDragEnter=function(we){var je=xe.props.context.onNodeDragEnter;we.preventDefault(),we.stopPropagation(),je(we,(0,ie.Z)(xe))},xe.onDragOver=function(we){var je=xe.props.context.onNodeDragOver;we.preventDefault(),we.stopPropagation(),je(we,(0,ie.Z)(xe))},xe.onDragLeave=function(we){var je=xe.props.context.onNodeDragLeave;we.stopPropagation(),je(we,(0,ie.Z)(xe))},xe.onDragEnd=function(we){var je=xe.props.context.onNodeDragEnd;we.stopPropagation(),xe.setState({dragNodeHighlight:!1}),je(we,(0,ie.Z)(xe))},xe.onDrop=function(we){var je=xe.props.context.onNodeDrop;we.preventDefault(),we.stopPropagation(),xe.setState({dragNodeHighlight:!1}),je(we,(0,ie.Z)(xe))},xe.onExpand=function(we){var je=xe.props,He=je.loading,Je=je.context.onNodeExpand;He||Je(we,(0,b.F)(xe.props))},xe.setSelectHandle=function(we){xe.selectHandle=we},xe.getNodeState=function(){var we=xe.props.expanded;return xe.isLeaf()?null:we?z:re},xe.hasChildren=function(){var we=xe.props.eventKey,je=xe.props.context.keyEntities,He=(0,E.Z)(je,we)||{},Je=He.children;return!!(Je||[]).length},xe.isLeaf=function(){var we=xe.props,je=we.isLeaf,He=we.loaded,Je=xe.props.context.loadData,$e=xe.hasChildren();return je===!1?!1:je||!Je&&!$e||Je&&He&&!$e},xe.isDisabled=function(){var we=xe.props.disabled,je=xe.props.context.disabled;return!!(je||we)},xe.isCheckable=function(){var we=xe.props.checkable,je=xe.props.context.checkable;return!je||we===!1?!1:je},xe.syncLoadData=function(we){var je=we.expanded,He=we.loading,Je=we.loaded,$e=xe.props.context,mt=$e.loadData,Pt=$e.onNodeLoad;He||mt&&je&&!xe.isLeaf()&&!xe.hasChildren()&&!Je&&Pt((0,b.F)(xe.props))},xe.isDraggable=function(){var we=xe.props,je=we.data,He=we.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(je)))},xe.renderDragHandler=function(){var we=xe.props.context,je=we.draggable,He=we.prefixCls;return je!=null&&je.icon?oe.createElement("span",{className:"".concat(He,"-draggable-icon")},je.icon):null},xe.renderSwitcherIconDom=function(we){var je=xe.props.switcherIcon,He=xe.props.context.switcherIcon,Je=je||He;return typeof Je=="function"?Je((0,ye.Z)((0,ye.Z)({},xe.props),{},{isLeaf:we})):Je},xe.renderSwitcher=function(){var we=xe.props.expanded,je=xe.props.context.prefixCls;if(xe.isLeaf()){var He=xe.renderSwitcherIconDom(!0);return He!==!1?oe.createElement("span",{className:se()("".concat(je,"-switcher"),"".concat(je,"-switcher-noop"))},He):null}var Je=se()("".concat(je,"-switcher"),"".concat(je,"-switcher_").concat(we?z:re)),$e=xe.renderSwitcherIconDom(!1);return $e!==!1?oe.createElement("span",{onClick:xe.onExpand,className:Je},$e):null},xe.renderCheckbox=function(){var we=xe.props,je=we.checked,He=we.halfChecked,Je=we.disableCheckbox,$e=xe.props.context.prefixCls,mt=xe.isDisabled(),Pt=xe.isCheckable();if(!Pt)return null;var At=typeof Pt!="boolean"?Pt:null;return oe.createElement("span",{className:se()("".concat($e,"-checkbox"),je&&"".concat($e,"-checkbox-checked"),!je&&He&&"".concat($e,"-checkbox-indeterminate"),(mt||Je)&&"".concat($e,"-checkbox-disabled")),onClick:xe.onCheck},At)},xe.renderIcon=function(){var we=xe.props.loading,je=xe.props.context.prefixCls;return oe.createElement("span",{className:se()("".concat(je,"-iconEle"),"".concat(je,"-icon__").concat(xe.getNodeState()||"docu"),we&&"".concat(je,"-icon_loading"))})},xe.renderSelector=function(){var we=xe.state.dragNodeHighlight,je=xe.props,He=je.title,Je=He===void 0?le:He,$e=je.selected,mt=je.icon,Pt=je.loading,At=je.data,Nt=xe.props.context,rt=Nt.prefixCls,Xe=Nt.showIcon,Ct=Nt.icon,Ht=Nt.loadData,Et=Nt.titleRender,rn=xe.isDisabled(),Ze="".concat(rt,"-node-content-wrapper"),St;if(Xe){var Lt=mt||Ct;St=Lt?oe.createElement("span",{className:se()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Lt=="function"?Lt(xe.props):Lt):xe.renderIcon()}else Ht&&Pt&&(St=xe.renderIcon());var nn;typeof Je=="function"?nn=Je(At):Et?nn=Et(At):nn=Je;var Zt=oe.createElement("span",{className:"".concat(rt,"-title")},nn);return oe.createElement("span",{ref:xe.setSelectHandle,title:typeof Je=="string"?Je:"",className:se()("".concat(Ze),"".concat(Ze,"-").concat(xe.getNodeState()||"normal"),!rn&&($e||we)&&"".concat(rt,"-node-selected")),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave,onContextMenu:xe.onContextMenu,onClick:xe.onSelectorClick,onDoubleClick:xe.onSelectorDoubleClick},St,Zt,xe.renderDropIndicator())},xe.renderDropIndicator=function(){var we=xe.props,je=we.disabled,He=we.eventKey,Je=xe.props.context,$e=Je.draggable,mt=Je.dropLevelOffset,Pt=Je.dropPosition,At=Je.prefixCls,Nt=Je.indent,rt=Je.dropIndicatorRender,Xe=Je.dragOverNodeKey,Ct=Je.direction,Ht=!!$e,Et=!je&&Ht&&Xe===He,rn=Nt!=null?Nt:xe.cacheIndent;return xe.cacheIndent=Nt,Et?rt({dropPosition:Pt,dropLevelOffset:mt,indent:rn,prefixCls:At,direction:Ct}):null},xe}return(0,ge.Z)(Fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var lt=this.props.selectable,Ye=this.props.context.selectable;return typeof lt=="boolean"?lt:Ye}},{key:"render",value:function(){var lt,Ye=this.props,ht=Ye.eventKey,we=Ye.className,je=Ye.style,He=Ye.dragOver,Je=Ye.dragOverGapTop,$e=Ye.dragOverGapBottom,mt=Ye.isLeaf,Pt=Ye.isStart,At=Ye.isEnd,Nt=Ye.expanded,rt=Ye.selected,Xe=Ye.checked,Ct=Ye.halfChecked,Ht=Ye.loading,Et=Ye.domRef,rn=Ye.active,Ze=Ye.data,St=Ye.onMouseMove,Lt=Ye.selectable,nn=(0,be.Z)(Ye,x),Zt=this.props.context,at=Zt.prefixCls,dt=Zt.filterTreeNode,Ge=Zt.keyEntities,Ne=Zt.dropContainerKey,nt=Zt.dropTargetKey,xt=Zt.draggingNodeKey,Ae=this.isDisabled(),Re=(0,pe.Z)(nn,{aria:!0,data:!0}),We=(0,E.Z)(Ge,ht)||{},Be=We.level,ze=At[At.length-1],ot=this.isDraggable(),Ot=!Ae&&ot,Dt=xt===ht,jt=Lt!==void 0?{"aria-selected":!!Lt}:void 0;return oe.createElement("div",(0,te.Z)({ref:Et,className:se()(we,"".concat(at,"-treenode"),(lt={},(0,fe.Z)(lt,"".concat(at,"-treenode-disabled"),Ae),(0,fe.Z)(lt,"".concat(at,"-treenode-switcher-").concat(Nt?"open":"close"),!mt),(0,fe.Z)(lt,"".concat(at,"-treenode-checkbox-checked"),Xe),(0,fe.Z)(lt,"".concat(at,"-treenode-checkbox-indeterminate"),Ct),(0,fe.Z)(lt,"".concat(at,"-treenode-selected"),rt),(0,fe.Z)(lt,"".concat(at,"-treenode-loading"),Ht),(0,fe.Z)(lt,"".concat(at,"-treenode-active"),rn),(0,fe.Z)(lt,"".concat(at,"-treenode-leaf-last"),ze),(0,fe.Z)(lt,"".concat(at,"-treenode-draggable"),ot),(0,fe.Z)(lt,"dragging",Dt),(0,fe.Z)(lt,"drop-target",nt===ht),(0,fe.Z)(lt,"drop-container",Ne===ht),(0,fe.Z)(lt,"drag-over",!Ae&&He),(0,fe.Z)(lt,"drag-over-gap-top",!Ae&&Je),(0,fe.Z)(lt,"drag-over-gap-bottom",!Ae&&$e),(0,fe.Z)(lt,"filter-node",dt&&dt((0,b.F)(this.props))),lt)),style:je,draggable:Ot,"aria-grabbed":Dt,onDragStart:Ot?this.onDragStart:void 0,onDragEnter:ot?this.onDragEnter:void 0,onDragOver:ot?this.onDragOver:void 0,onDragLeave:ot?this.onDragLeave:void 0,onDrop:ot?this.onDrop:void 0,onDragEnd:ot?this.onDragEnd:void 0,onMouseMove:St},jt,Re),oe.createElement(y,{prefixCls:at,level:Be,isStart:Pt,isEnd:At}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Fe}(oe.Component),ve=function(Ee){return oe.createElement(ne.k.Consumer,null,function(Fe){return oe.createElement(de,(0,te.Z)({},Ee,{context:Fe}))})};ve.displayName="TreeNode",ve.isTreeNode=1;var Se=ve},39378:function(ft,Ke,ee){"use strict";ee.d(Ke,{k:function(){return fe}});var te=ee(59301),fe=te.createContext(null)},60091:function(ft,Ke,ee){"use strict";ee.d(Ke,{O:function(){return Se.Z},Z:function(){return Zt}});var te=ee(54476),fe=ee(20068),be=ee(76190),ye=ee(33885),he=ee(94480),ge=ee(67732),ie=ee(83652),ue=ee(31226),ce=ee(42403),me=ee(158),se=ee(92310),pe=ee.n(se),oe=ee(10228),ne=ee(26112),a=ee(48736),y=ee(59301),E=ee(39378);function b(at){var dt=at.dropPosition,Ge=at.dropLevelOffset,Ne=at.indent,nt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(dt){case-1:nt.top=0,nt.left=-Ge*Ne;break;case 1:nt.bottom=0,nt.left=-Ge*Ne;break;case 0:nt.bottom=0,nt.left=Ne;break}return y.createElement("div",{style:nt})}function x(at){if(at==null)throw new TypeError("Cannot destructure "+at)}var z=ee(42978),re=ee(75931),le=ee(34280),de=ee(48911),ve=ee(77900),Se=ee(39417);function Le(at,dt){var Ge=y.useState(!1),Ne=(0,z.Z)(Ge,2),nt=Ne[0],xt=Ne[1];y.useLayoutEffect(function(){if(nt)return at(),function(){dt()}},[nt]),y.useLayoutEffect(function(){return xt(!0),function(){xt(!1)}},[])}var Ee=ee(71430),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xe=function(dt,Ge){var Ne=dt.className,nt=dt.style,xt=dt.motion,Ae=dt.motionNodes,Re=dt.motionType,We=dt.onMotionStart,Be=dt.onMotionEnd,ze=dt.active,ot=dt.treeNodeRequiredProps,Ot=(0,re.Z)(dt,Fe),Dt=y.useState(!0),jt=(0,z.Z)(Dt,2),Mt=jt[0],Gt=jt[1],bt=y.useContext(E.k),fn=bt.prefixCls,dn=Ae&&Re!=="hide";(0,le.Z)(function(){Ae&&dn!==Mt&&Gt(dn)},[Ae]);var wt=function(){Ae&&We()},yn=y.useRef(!1),_n=function(){Ae&&!yn.current&&(yn.current=!0,Be())};Le(wt,_n);var Fn=function(Zn){dn===Zn&&_n()};return Ae?y.createElement(ve.default,(0,te.Z)({ref:Ge,visible:Mt},xt,{motionAppear:Re==="show",onVisibleChanged:Fn}),function(xn,Zn){var Jn=xn.className,Kn=xn.style;return y.createElement("div",{ref:Zn,className:pe()("".concat(fn,"-treenode-motion"),Jn),style:Kn},Ae.map(function(Vn){var Sr=(0,te.Z)({},(x(Vn.data),Vn.data)),sr=Vn.title,sn=Vn.key,Yn=Vn.isStart,or=Vn.isEnd;delete Sr.children;var $n=(0,Ee.H8)(sn,ot);return y.createElement(Se.Z,(0,te.Z)({},Sr,$n,{title:sr,active:ze,data:Vn.data,key:sn,isStart:Yn,isEnd:or}))}))}):y.createElement(Se.Z,(0,te.Z)({domRef:Ge,className:Ne,style:nt},Ot,{active:ze}))};xe.displayName="MotionTreeNode";var lt=y.forwardRef(xe),Ye=lt;function ht(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=at.length,Ne=dt.length;if(Math.abs(Ge-Ne)!==1)return{add:!1,key:null};function nt(xt,Ae){var Re=new Map;xt.forEach(function(Be){Re.set(Be,!0)});var We=Ae.filter(function(Be){return!Re.has(Be)});return We.length===1?We[0]:null}return Ge<Ne?{add:!0,key:nt(at,dt)}:{add:!1,key:nt(dt,at)}}function we(at,dt,Ge){var Ne=at.findIndex(function(Re){return Re.key===Ge}),nt=at[Ne+1],xt=dt.findIndex(function(Re){return Re.key===Ge});if(nt){var Ae=dt.findIndex(function(Re){return Re.key===nt.key});return dt.slice(xt+1,Ae)}return dt.slice(xt+1)}var je=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],He={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Je=function(){},$e="RC_TREE_MOTION_".concat(Math.random()),mt={key:$e},Pt={key:$e,level:0,index:0,pos:"0",node:mt,nodes:[mt]},At={parent:null,children:[],pos:Pt.pos,data:mt,title:null,key:$e,isStart:[],isEnd:[]};function Nt(at,dt,Ge,Ne){return dt===!1||!Ge?at:at.slice(0,Math.ceil(Ge/Ne)+1)}function rt(at){var dt=at.key,Ge=at.pos;return(0,Ee.km)(dt,Ge)}function Xe(at){for(var dt=String(at.data.key),Ge=at;Ge.parent;)Ge=Ge.parent,dt="".concat(Ge.data.key," > ").concat(dt);return dt}var Ct=y.forwardRef(function(at,dt){var Ge=at.prefixCls,Ne=at.data,nt=at.selectable,xt=at.checkable,Ae=at.expandedKeys,Re=at.selectedKeys,We=at.checkedKeys,Be=at.loadedKeys,ze=at.loadingKeys,ot=at.halfCheckedKeys,Ot=at.keyEntities,Dt=at.disabled,jt=at.dragging,Mt=at.dragOverNodeKey,Gt=at.dropPosition,bt=at.motion,fn=at.height,dn=at.itemHeight,wt=at.virtual,yn=at.focusable,_n=at.activeItem,Fn=at.focused,xn=at.tabIndex,Zn=at.onKeyDown,Jn=at.onFocus,Kn=at.onBlur,Vn=at.onActiveChange,Sr=at.onListChangeStart,sr=at.onListChangeEnd,sn=(0,re.Z)(at,je),Yn=y.useRef(null),or=y.useRef(null);y.useImperativeHandle(dt,function(){return{scrollTo:function(kt){Yn.current.scrollTo(kt)},getIndentWidth:function(){return or.current.offsetWidth}}});var $n=y.useState(Ae),ir=(0,z.Z)($n,2),Ar=ir[0],Ir=ir[1],wr=y.useState(Ne),Tr=(0,z.Z)(wr,2),ar=Tr[0],$r=Tr[1],Wt=y.useState(Ne),ae=(0,z.Z)(Wt,2),_e=ae[0],Pe=ae[1],Ie=y.useState([]),ke=(0,z.Z)(Ie,2),et=ke[0],vt=ke[1],Qt=y.useState(null),Ut=(0,z.Z)(Qt,2),yt=Ut[0],pt=Ut[1],Bt=y.useRef(Ne);Bt.current=Ne;function gt(){var Rt=Bt.current;$r(Rt),Pe(Rt),vt([]),pt(null),sr()}(0,le.Z)(function(){Ir(Ae);var Rt=ht(Ar,Ae);if(Rt.key!==null)if(Rt.add){var kt=ar.findIndex(function(pn){var Rn=pn.key;return Rn===Rt.key}),Jt=Nt(we(ar,Ne,Rt.key),wt,fn,dn),un=ar.slice();un.splice(kt+1,0,At),Pe(un),vt(Jt),pt("show")}else{var Dn=Ne.findIndex(function(pn){var Rn=pn.key;return Rn===Rt.key}),kn=Nt(we(Ne,ar,Rt.key),wt,fn,dn),Xn=Ne.slice();Xn.splice(Dn+1,0,At),Pe(Xn),vt(kn),pt("hide")}else ar!==Ne&&($r(Ne),Pe(Ne))},[Ae,Ne]),y.useEffect(function(){jt||gt()},[jt]);var zt=bt?_e:Ne,Vt={expandedKeys:Ae,selectedKeys:Re,loadedKeys:Be,loadingKeys:ze,checkedKeys:We,halfCheckedKeys:ot,dragOverNodeKey:Mt,dropPosition:Gt,keyEntities:Ot};return y.createElement(y.Fragment,null,Fn&&_n&&y.createElement("span",{style:He,"aria-live":"assertive"},Xe(_n)),y.createElement("div",null,y.createElement("input",{style:He,disabled:yn===!1||Dt,tabIndex:yn!==!1?xn:null,onKeyDown:Zn,onFocus:Jn,onBlur:Kn,value:"",onChange:Je,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ge,"-indent")},y.createElement("div",{ref:or,className:"".concat(Ge,"-indent-unit")}))),y.createElement(de.Z,(0,te.Z)({},sn,{data:zt,itemKey:rt,height:fn,fullHeight:!1,virtual:wt,itemHeight:dn,prefixCls:"".concat(Ge,"-list"),ref:Yn,onVisibleChange:function(kt,Jt){var un=new Set(kt),Dn=Jt.filter(function(kn){return!un.has(kn)});Dn.some(function(kn){return rt(kn)===$e})&>()}}),function(Rt){var kt=Rt.pos,Jt=(0,te.Z)({},(x(Rt.data),Rt.data)),un=Rt.title,Dn=Rt.key,kn=Rt.isStart,Xn=Rt.isEnd,pn=(0,Ee.km)(Dn,kt);delete Jt.key,delete Jt.children;var Rn=(0,Ee.H8)(pn,Vt);return y.createElement(Ye,(0,te.Z)({},Jt,Rn,{title:un,active:!!_n&&Dn===_n.key,pos:kt,data:Rt.data,isStart:kn,isEnd:Xn,motion:bt,motionNodes:Dn===$e?et:null,motionType:yt,onMotionStart:Sr,onMotionEnd:gt,treeNodeRequiredProps:Vt,onMouseMove:function(){Vn(null)}}))}))});Ct.displayName="NodeList";var Ht=Ct,Et=ee(35654),rn=ee(90782),Ze=ee(67841),St=10,Lt=function(at){(0,ce.Z)(Ge,at);var dt=(0,me.Z)(Ge);function Ge(){var Ne;(0,ge.Z)(this,Ge);for(var nt=arguments.length,xt=new Array(nt),Ae=0;Ae<nt;Ae++)xt[Ae]=arguments[Ae];return Ne=dt.call.apply(dt,[this].concat(xt)),Ne.destroyed=!1,Ne.delayedDragEnterLogic=void 0,Ne.loadingRetryTimes={},Ne.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ee.w$)()},Ne.dragStartMousePosition=null,Ne.dragNode=void 0,Ne.currentMouseOverDroppableNodeKey=null,Ne.listRef=y.createRef(),Ne.onNodeDragStart=function(Re,We){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.keyEntities,Ot=Ne.props.onDragStart,Dt=We.props.eventKey;Ne.dragNode=We,Ne.dragStartMousePosition={x:Re.clientX,y:Re.clientY};var jt=(0,Et._5)(ze,Dt);Ne.setState({draggingNodeKey:Dt,dragChildrenKeys:(0,Et.wA)(Dt,ot),indent:Ne.listRef.current.getIndentWidth()}),Ne.setExpandedKeys(jt),window.addEventListener("dragend",Ne.onWindowDragEnd),Ot==null||Ot({event:Re,node:(0,Ee.F)(We.props)})},Ne.onNodeDragEnter=function(Re,We){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.keyEntities,Ot=Be.dragChildrenKeys,Dt=Be.flattenNodes,jt=Be.indent,Mt=Ne.props,Gt=Mt.onDragEnter,bt=Mt.onExpand,fn=Mt.allowDrop,dn=Mt.direction,wt=We.props,yn=wt.pos,_n=wt.eventKey,Fn=(0,ue.Z)(Ne),xn=Fn.dragNode;if(Ne.currentMouseOverDroppableNodeKey!==_n&&(Ne.currentMouseOverDroppableNodeKey=_n),!xn){Ne.resetDragState();return}var Zn=(0,Et.OM)(Re,xn,We,jt,Ne.dragStartMousePosition,fn,Dt,ot,ze,dn),Jn=Zn.dropPosition,Kn=Zn.dropLevelOffset,Vn=Zn.dropTargetKey,Sr=Zn.dropContainerKey,sr=Zn.dropTargetPos,sn=Zn.dropAllowed,Yn=Zn.dragOverNodeKey;if(Ot.indexOf(Vn)!==-1||!sn){Ne.resetDragState();return}if(Ne.delayedDragEnterLogic||(Ne.delayedDragEnterLogic={}),Object.keys(Ne.delayedDragEnterLogic).forEach(function(or){clearTimeout(Ne.delayedDragEnterLogic[or])}),xn.props.eventKey!==We.props.eventKey&&(Re.persist(),Ne.delayedDragEnterLogic[yn]=window.setTimeout(function(){if(Ne.state.draggingNodeKey!==null){var or=(0,he.Z)(ze),$n=(0,Ze.Z)(ot,We.props.eventKey);$n&&($n.children||[]).length&&(or=(0,Et.L0)(ze,We.props.eventKey)),"expandedKeys"in Ne.props||Ne.setExpandedKeys(or),bt==null||bt(or,{node:(0,Ee.F)(We.props),expanded:!0,nativeEvent:Re.nativeEvent})}},800)),xn.props.eventKey===Vn&&Kn===0){Ne.resetDragState();return}Ne.setState({dragOverNodeKey:Yn,dropPosition:Jn,dropLevelOffset:Kn,dropTargetKey:Vn,dropContainerKey:Sr,dropTargetPos:sr,dropAllowed:sn}),Gt==null||Gt({event:Re,node:(0,Ee.F)(We.props),expandedKeys:ze})},Ne.onNodeDragOver=function(Re,We){var Be=Ne.state,ze=Be.dragChildrenKeys,ot=Be.flattenNodes,Ot=Be.keyEntities,Dt=Be.expandedKeys,jt=Be.indent,Mt=Ne.props,Gt=Mt.onDragOver,bt=Mt.allowDrop,fn=Mt.direction,dn=(0,ue.Z)(Ne),wt=dn.dragNode;if(wt){var yn=(0,Et.OM)(Re,wt,We,jt,Ne.dragStartMousePosition,bt,ot,Ot,Dt,fn),_n=yn.dropPosition,Fn=yn.dropLevelOffset,xn=yn.dropTargetKey,Zn=yn.dropContainerKey,Jn=yn.dropAllowed,Kn=yn.dropTargetPos,Vn=yn.dragOverNodeKey;ze.indexOf(xn)!==-1||!Jn||(wt.props.eventKey===xn&&Fn===0?Ne.state.dropPosition===null&&Ne.state.dropLevelOffset===null&&Ne.state.dropTargetKey===null&&Ne.state.dropContainerKey===null&&Ne.state.dropTargetPos===null&&Ne.state.dropAllowed===!1&&Ne.state.dragOverNodeKey===null||Ne.resetDragState():_n===Ne.state.dropPosition&&Fn===Ne.state.dropLevelOffset&&xn===Ne.state.dropTargetKey&&Zn===Ne.state.dropContainerKey&&Kn===Ne.state.dropTargetPos&&Jn===Ne.state.dropAllowed&&Vn===Ne.state.dragOverNodeKey||Ne.setState({dropPosition:_n,dropLevelOffset:Fn,dropTargetKey:xn,dropContainerKey:Zn,dropTargetPos:Kn,dropAllowed:Jn,dragOverNodeKey:Vn}),Gt==null||Gt({event:Re,node:(0,Ee.F)(We.props)}))}},Ne.onNodeDragLeave=function(Re,We){Ne.currentMouseOverDroppableNodeKey===We.props.eventKey&&!Re.currentTarget.contains(Re.relatedTarget)&&(Ne.resetDragState(),Ne.currentMouseOverDroppableNodeKey=null);var Be=Ne.props.onDragLeave;Be==null||Be({event:Re,node:(0,Ee.F)(We.props)})},Ne.onWindowDragEnd=function(Re){Ne.onNodeDragEnd(Re,null,!0),window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDragEnd=function(Re,We){var Be=Ne.props.onDragEnd;Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),Be==null||Be({event:Re,node:(0,Ee.F)(We.props)}),Ne.dragNode=null,window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDrop=function(Re,We){var Be,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=Ne.state,Ot=ot.dragChildrenKeys,Dt=ot.dropPosition,jt=ot.dropTargetKey,Mt=ot.dropTargetPos,Gt=ot.dropAllowed;if(Gt){var bt=Ne.props.onDrop;if(Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),jt!==null){var fn=(0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(jt,Ne.getTreeNodeRequiredProps())),{},{active:((Be=Ne.getActiveItem())===null||Be===void 0?void 0:Be.key)===jt,data:(0,Ze.Z)(Ne.state.keyEntities,jt).node}),dn=Ot.indexOf(jt)!==-1;(0,a.ZP)(!dn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wt=(0,Et.yx)(Mt),yn={event:Re,node:(0,Ee.F)(fn),dragNode:Ne.dragNode?(0,Ee.F)(Ne.dragNode.props):null,dragNodesKeys:[Ne.dragNode.props.eventKey].concat(Ot),dropToGap:Dt!==0,dropPosition:Dt+Number(wt[wt.length-1])};ze||bt==null||bt(yn),Ne.dragNode=null}}},Ne.cleanDragState=function(){var Re=Ne.state.draggingNodeKey;Re!==null&&Ne.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ne.dragStartMousePosition=null,Ne.currentMouseOverDroppableNodeKey=null},Ne.triggerExpandActionExpand=function(Re,We){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.flattenNodes,Ot=We.expanded,Dt=We.key,jt=We.isLeaf;if(!(jt||Re.shiftKey||Re.metaKey||Re.ctrlKey)){var Mt=ot.filter(function(bt){return bt.key===Dt})[0],Gt=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Dt,Ne.getTreeNodeRequiredProps())),{},{data:Mt.data}));Ne.setExpandedKeys(Ot?(0,Et._5)(ze,Dt):(0,Et.L0)(ze,Dt)),Ne.onNodeExpand(Re,Gt)}},Ne.onNodeClick=function(Re,We){var Be=Ne.props,ze=Be.onClick,ot=Be.expandAction;ot==="click"&&Ne.triggerExpandActionExpand(Re,We),ze==null||ze(Re,We)},Ne.onNodeDoubleClick=function(Re,We){var Be=Ne.props,ze=Be.onDoubleClick,ot=Be.expandAction;ot==="doubleClick"&&Ne.triggerExpandActionExpand(Re,We),ze==null||ze(Re,We)},Ne.onNodeSelect=function(Re,We){var Be=Ne.state.selectedKeys,ze=Ne.state,ot=ze.keyEntities,Ot=ze.fieldNames,Dt=Ne.props,jt=Dt.onSelect,Mt=Dt.multiple,Gt=We.selected,bt=We[Ot.key],fn=!Gt;fn?Mt?Be=(0,Et.L0)(Be,bt):Be=[bt]:Be=(0,Et._5)(Be,bt);var dn=Be.map(function(wt){var yn=(0,Ze.Z)(ot,wt);return yn?yn.node:null}).filter(function(wt){return wt});Ne.setUncontrolledState({selectedKeys:Be}),jt==null||jt(Be,{event:"select",selected:fn,node:We,selectedNodes:dn,nativeEvent:Re.nativeEvent})},Ne.onNodeCheck=function(Re,We,Be){var ze=Ne.state,ot=ze.keyEntities,Ot=ze.checkedKeys,Dt=ze.halfCheckedKeys,jt=Ne.props,Mt=jt.checkStrictly,Gt=jt.onCheck,bt=We.key,fn,dn={event:"check",node:We,checked:Be,nativeEvent:Re.nativeEvent};if(Mt){var wt=Be?(0,Et.L0)(Ot,bt):(0,Et._5)(Ot,bt),yn=(0,Et._5)(Dt,bt);fn={checked:wt,halfChecked:yn},dn.checkedNodes=wt.map(function(Kn){return(0,Ze.Z)(ot,Kn)}).filter(function(Kn){return Kn}).map(function(Kn){return Kn.node}),Ne.setUncontrolledState({checkedKeys:wt})}else{var _n=(0,rn.S)([].concat((0,he.Z)(Ot),[bt]),!0,ot),Fn=_n.checkedKeys,xn=_n.halfCheckedKeys;if(!Be){var Zn=new Set(Fn);Zn.delete(bt);var Jn=(0,rn.S)(Array.from(Zn),{checked:!1,halfCheckedKeys:xn},ot);Fn=Jn.checkedKeys,xn=Jn.halfCheckedKeys}fn=Fn,dn.checkedNodes=[],dn.checkedNodesPositions=[],dn.halfCheckedKeys=xn,Fn.forEach(function(Kn){var Vn=(0,Ze.Z)(ot,Kn);if(Vn){var Sr=Vn.node,sr=Vn.pos;dn.checkedNodes.push(Sr),dn.checkedNodesPositions.push({node:Sr,pos:sr})}}),Ne.setUncontrolledState({checkedKeys:Fn},!1,{halfCheckedKeys:xn})}Gt==null||Gt(fn,dn)},Ne.onNodeLoad=function(Re){var We=Re.key,Be=new Promise(function(ze,ot){Ne.setState(function(Ot){var Dt=Ot.loadedKeys,jt=Dt===void 0?[]:Dt,Mt=Ot.loadingKeys,Gt=Mt===void 0?[]:Mt,bt=Ne.props,fn=bt.loadData,dn=bt.onLoad;if(!fn||jt.indexOf(We)!==-1||Gt.indexOf(We)!==-1)return null;var wt=fn(Re);return wt.then(function(){var yn=Ne.state.loadedKeys,_n=(0,Et.L0)(yn,We);dn==null||dn(_n,{event:"load",node:Re}),Ne.setUncontrolledState({loadedKeys:_n}),Ne.setState(function(Fn){return{loadingKeys:(0,Et._5)(Fn.loadingKeys,We)}}),ze()}).catch(function(yn){if(Ne.setState(function(Fn){return{loadingKeys:(0,Et._5)(Fn.loadingKeys,We)}}),Ne.loadingRetryTimes[We]=(Ne.loadingRetryTimes[We]||0)+1,Ne.loadingRetryTimes[We]>=St){var _n=Ne.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ne.setUncontrolledState({loadedKeys:(0,Et.L0)(_n,We)}),ze()}ot(yn)}),{loadingKeys:(0,Et.L0)(Gt,We)}})});return Be.catch(function(){}),Be},Ne.onNodeMouseEnter=function(Re,We){var Be=Ne.props.onMouseEnter;Be==null||Be({event:Re,node:We})},Ne.onNodeMouseLeave=function(Re,We){var Be=Ne.props.onMouseLeave;Be==null||Be({event:Re,node:We})},Ne.onNodeContextMenu=function(Re,We){var Be=Ne.props.onRightClick;Be&&(Re.preventDefault(),Be({event:Re,node:We}))},Ne.onFocus=function(){var Re=Ne.props.onFocus;Ne.setState({focused:!0});for(var We=arguments.length,Be=new Array(We),ze=0;ze<We;ze++)Be[ze]=arguments[ze];Re==null||Re.apply(void 0,Be)},Ne.onBlur=function(){var Re=Ne.props.onBlur;Ne.setState({focused:!1}),Ne.onActiveChange(null);for(var We=arguments.length,Be=new Array(We),ze=0;ze<We;ze++)Be[ze]=arguments[ze];Re==null||Re.apply(void 0,Be)},Ne.getTreeNodeRequiredProps=function(){var Re=Ne.state,We=Re.expandedKeys,Be=Re.selectedKeys,ze=Re.loadedKeys,ot=Re.loadingKeys,Ot=Re.checkedKeys,Dt=Re.halfCheckedKeys,jt=Re.dragOverNodeKey,Mt=Re.dropPosition,Gt=Re.keyEntities;return{expandedKeys:We||[],selectedKeys:Be||[],loadedKeys:ze||[],loadingKeys:ot||[],checkedKeys:Ot||[],halfCheckedKeys:Dt||[],dragOverNodeKey:jt,dropPosition:Mt,keyEntities:Gt}},Ne.setExpandedKeys=function(Re){var We=Ne.state,Be=We.treeData,ze=We.fieldNames,ot=(0,Ee.oH)(Be,Re,ze);Ne.setUncontrolledState({expandedKeys:Re,flattenNodes:ot},!0)},Ne.onNodeExpand=function(Re,We){var Be=Ne.state.expandedKeys,ze=Ne.state,ot=ze.listChanging,Ot=ze.fieldNames,Dt=Ne.props,jt=Dt.onExpand,Mt=Dt.loadData,Gt=We.expanded,bt=We[Ot.key];if(!ot){var fn=Be.indexOf(bt),dn=!Gt;if((0,a.ZP)(Gt&&fn!==-1||!Gt&&fn===-1,"Expand state not sync with index check"),dn?Be=(0,Et.L0)(Be,bt):Be=(0,Et._5)(Be,bt),Ne.setExpandedKeys(Be),jt==null||jt(Be,{node:We,expanded:dn,nativeEvent:Re.nativeEvent}),dn&&Mt){var wt=Ne.onNodeLoad(We);wt&&wt.then(function(){var yn=(0,Ee.oH)(Ne.state.treeData,Be,Ot);Ne.setUncontrolledState({flattenNodes:yn})}).catch(function(){var yn=Ne.state.expandedKeys,_n=(0,Et._5)(yn,bt);Ne.setExpandedKeys(_n)})}}},Ne.onListChangeStart=function(){Ne.setUncontrolledState({listChanging:!0})},Ne.onListChangeEnd=function(){setTimeout(function(){Ne.setUncontrolledState({listChanging:!1})})},Ne.onActiveChange=function(Re){var We=Ne.state.activeKey,Be=Ne.props.onActiveChange;We!==Re&&(Ne.setState({activeKey:Re}),Re!==null&&Ne.scrollTo({key:Re}),Be==null||Be(Re))},Ne.getActiveItem=function(){var Re=Ne.state,We=Re.activeKey,Be=Re.flattenNodes;return We===null?null:Be.find(function(ze){var ot=ze.key;return ot===We})||null},Ne.offsetActiveKey=function(Re){var We=Ne.state,Be=We.flattenNodes,ze=We.activeKey,ot=Be.findIndex(function(jt){var Mt=jt.key;return Mt===ze});ot===-1&&Re<0&&(ot=Be.length),ot=(ot+Re+Be.length)%Be.length;var Ot=Be[ot];if(Ot){var Dt=Ot.key;Ne.onActiveChange(Dt)}else Ne.onActiveChange(null)},Ne.onKeyDown=function(Re){var We=Ne.state,Be=We.activeKey,ze=We.expandedKeys,ot=We.checkedKeys,Ot=We.fieldNames,Dt=Ne.props,jt=Dt.onKeyDown,Mt=Dt.checkable,Gt=Dt.selectable;switch(Re.which){case oe.Z.UP:{Ne.offsetActiveKey(-1),Re.preventDefault();break}case oe.Z.DOWN:{Ne.offsetActiveKey(1),Re.preventDefault();break}}var bt=Ne.getActiveItem();if(bt&&bt.data){var fn=Ne.getTreeNodeRequiredProps(),dn=bt.data.isLeaf===!1||!!(bt.data[Ot.children]||[]).length,wt=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Be,fn)),{},{data:bt.data,active:!0}));switch(Re.which){case oe.Z.LEFT:{dn&&ze.includes(Be)?Ne.onNodeExpand({},wt):bt.parent&&Ne.onActiveChange(bt.parent.key),Re.preventDefault();break}case oe.Z.RIGHT:{dn&&!ze.includes(Be)?Ne.onNodeExpand({},wt):bt.children&&bt.children.length&&Ne.onActiveChange(bt.children[0].key),Re.preventDefault();break}case oe.Z.ENTER:case oe.Z.SPACE:{Mt&&!wt.disabled&&wt.checkable!==!1&&!wt.disableCheckbox?Ne.onNodeCheck({},wt,!ot.includes(Be)):!Mt&&Gt&&!wt.disabled&&wt.selectable!==!1&&Ne.onNodeSelect({},wt);break}}}jt==null||jt(Re)},Ne.setUncontrolledState=function(Re){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ne.destroyed){var ze=!1,ot=!0,Ot={};Object.keys(Re).forEach(function(Dt){if(Dt in Ne.props){ot=!1;return}ze=!0,Ot[Dt]=Re[Dt]}),ze&&(!We||ot)&&Ne.setState((0,ye.Z)((0,ye.Z)({},Ot),Be))}},Ne.scrollTo=function(Re){Ne.listRef.current.scrollTo(Re)},Ne}return(0,ie.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var nt=this.props.activeKey;nt!==void 0&&nt!==this.state.activeKey&&(this.setState({activeKey:nt}),nt!==null&&this.scrollTo({key:nt}))}},{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 nt,xt=this.state,Ae=xt.focused,Re=xt.flattenNodes,We=xt.keyEntities,Be=xt.draggingNodeKey,ze=xt.activeKey,ot=xt.dropLevelOffset,Ot=xt.dropContainerKey,Dt=xt.dropTargetKey,jt=xt.dropPosition,Mt=xt.dragOverNodeKey,Gt=xt.indent,bt=this.props,fn=bt.prefixCls,dn=bt.className,wt=bt.style,yn=bt.showLine,_n=bt.focusable,Fn=bt.tabIndex,xn=Fn===void 0?0:Fn,Zn=bt.selectable,Jn=bt.showIcon,Kn=bt.icon,Vn=bt.switcherIcon,Sr=bt.draggable,sr=bt.checkable,sn=bt.checkStrictly,Yn=bt.disabled,or=bt.motion,$n=bt.loadData,ir=bt.filterTreeNode,Ar=bt.height,Ir=bt.itemHeight,wr=bt.virtual,Tr=bt.titleRender,ar=bt.dropIndicatorRender,$r=bt.onContextMenu,Wt=bt.onScroll,ae=bt.direction,_e=bt.rootClassName,Pe=bt.rootStyle,Ie=(0,ne.Z)(this.props,{aria:!0,data:!0}),ke;return Sr&&((0,be.Z)(Sr)==="object"?ke=Sr:typeof Sr=="function"?ke={nodeDraggable:Sr}:ke={}),y.createElement(E.k.Provider,{value:{prefixCls:fn,selectable:Zn,showIcon:Jn,icon:Kn,switcherIcon:Vn,draggable:ke,draggingNodeKey:Be,checkable:sr,checkStrictly:sn,disabled:Yn,keyEntities:We,dropLevelOffset:ot,dropContainerKey:Ot,dropTargetKey:Dt,dropPosition:jt,dragOverNodeKey:Mt,indent:Gt,direction:ae,dropIndicatorRender:ar,loadData:$n,filterTreeNode:ir,titleRender:Tr,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}},y.createElement("div",{role:"tree",className:pe()(fn,dn,_e,(nt={},(0,fe.Z)(nt,"".concat(fn,"-show-line"),yn),(0,fe.Z)(nt,"".concat(fn,"-focused"),Ae),(0,fe.Z)(nt,"".concat(fn,"-active-focused"),ze!==null),nt)),style:Pe},y.createElement(Ht,(0,te.Z)({ref:this.listRef,prefixCls:fn,style:wt,data:Re,disabled:Yn,selectable:Zn,checkable:!!sr,motion:or,dragging:Be!==null,height:Ar,itemHeight:Ir,virtual:wr,focusable:_n,focused:Ae,tabIndex:xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$r,onScroll:Wt},this.getTreeNodeRequiredProps(),Ie))))}}],[{key:"getDerivedStateFromProps",value:function(nt,xt){var Ae=xt.prevProps,Re={prevProps:nt};function We(_n){return!Ae&&_n in nt||Ae&&Ae[_n]!==nt[_n]}var Be,ze=xt.fieldNames;if(We("fieldNames")&&(ze=(0,Ee.w$)(nt.fieldNames),Re.fieldNames=ze),We("treeData")?Be=nt.treeData:We("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,Ee.zn)(nt.children)),Be){Re.treeData=Be;var ot=(0,Ee.I8)(Be,{fieldNames:ze});Re.keyEntities=(0,ye.Z)((0,fe.Z)({},$e,Pt),ot.keyEntities)}var Ot=Re.keyEntities||xt.keyEntities;if(We("expandedKeys")||Ae&&We("autoExpandParent"))Re.expandedKeys=nt.autoExpandParent||!Ae&&nt.defaultExpandParent?(0,Et.r7)(nt.expandedKeys,Ot):nt.expandedKeys;else if(!Ae&&nt.defaultExpandAll){var Dt=(0,ye.Z)({},Ot);delete Dt[$e],Re.expandedKeys=Object.keys(Dt).map(function(_n){return Dt[_n].key})}else!Ae&&nt.defaultExpandedKeys&&(Re.expandedKeys=nt.autoExpandParent||nt.defaultExpandParent?(0,Et.r7)(nt.defaultExpandedKeys,Ot):nt.defaultExpandedKeys);if(Re.expandedKeys||delete Re.expandedKeys,Be||Re.expandedKeys){var jt=(0,Ee.oH)(Be||xt.treeData,Re.expandedKeys||xt.expandedKeys,ze);Re.flattenNodes=jt}if(nt.selectable&&(We("selectedKeys")?Re.selectedKeys=(0,Et.BT)(nt.selectedKeys,nt):!Ae&&nt.defaultSelectedKeys&&(Re.selectedKeys=(0,Et.BT)(nt.defaultSelectedKeys,nt))),nt.checkable){var Mt;if(We("checkedKeys")?Mt=(0,Et.E6)(nt.checkedKeys)||{}:!Ae&&nt.defaultCheckedKeys?Mt=(0,Et.E6)(nt.defaultCheckedKeys)||{}:Be&&(Mt=(0,Et.E6)(nt.checkedKeys)||{checkedKeys:xt.checkedKeys,halfCheckedKeys:xt.halfCheckedKeys}),Mt){var Gt=Mt,bt=Gt.checkedKeys,fn=bt===void 0?[]:bt,dn=Gt.halfCheckedKeys,wt=dn===void 0?[]:dn;if(!nt.checkStrictly){var yn=(0,rn.S)(fn,!0,Ot);fn=yn.checkedKeys,wt=yn.halfCheckedKeys}Re.checkedKeys=fn,Re.halfCheckedKeys=wt}}return We("loadedKeys")&&(Re.loadedKeys=nt.loadedKeys),Re}}]),Ge}(y.Component);Lt.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:b,allowDrop:function(){return!0},expandAction:!1},Lt.TreeNode=Se.Z;var nn=Lt,Zt=nn},35654:function(ft,Ke,ee){"use strict";ee.d(Ke,{BT:function(){return y},E6:function(){return x},L0:function(){return me},OM:function(){return a},_5:function(){return ce},r7:function(){return z},wA:function(){return pe},yx:function(){return se}});var te=ee(94480),fe=ee(76190),be=ee(48736),ye=ee(59301),he=ee(39417),ge=ee(67841),ie=ee(71430),ue=null;function ce(re,le){if(!re)return[];var de=re.slice(),ve=de.indexOf(le);return ve>=0&&de.splice(ve,1),de}function me(re,le){var de=(re||[]).slice();return de.indexOf(le)===-1&&de.push(le),de}function se(re){return re.split("-")}function pe(re,le){var de=[],ve=(0,ge.Z)(le,re);function Se(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Ee){var Fe=Ee.key,xe=Ee.children;de.push(Fe),Se(xe)})}return Se(ve.children),de}function oe(re){if(re.parent){var le=se(re.pos);return Number(le[le.length-1])===re.parent.children.length-1}return!1}function ne(re){var le=se(re.pos);return Number(le[le.length-1])===0}function a(re,le,de,ve,Se,Le,Ee,Fe,xe,lt){var Ye,ht=re.clientX,we=re.clientY,je=re.target.getBoundingClientRect(),He=je.top,Je=je.height,$e=(lt==="rtl"?-1:1)*(((Se==null?void 0:Se.x)||0)-ht),mt=($e-12)/ve,Pt=(0,ge.Z)(Fe,de.props.eventKey);if(we<He+Je/2){var At=Ee.findIndex(function(Zt){return Zt.key===Pt.key}),Nt=At<=0?0:At-1,rt=Ee[Nt].key;Pt=(0,ge.Z)(Fe,rt)}var Xe=Pt.key,Ct=Pt,Ht=Pt.key,Et=0,rn=0;if(!xe.includes(Xe))for(var Ze=0;Ze<mt&&oe(Pt);Ze+=1)Pt=Pt.parent,rn+=1;var St=le.props.data,Lt=Pt.node,nn=!0;return ne(Pt)&&Pt.level===0&&we<He+Je/2&&Le({dragNode:St,dropNode:Lt,dropPosition:-1})&&Pt.key===de.props.eventKey?Et=-1:(Ct.children||[]).length&&xe.includes(Ht)?Le({dragNode:St,dropNode:Lt,dropPosition:0})?Et=0:nn=!1:rn===0?mt>-1.5?Le({dragNode:St,dropNode:Lt,dropPosition:1})?Et=1:nn=!1:Le({dragNode:St,dropNode:Lt,dropPosition:0})?Et=0:Le({dragNode:St,dropNode:Lt,dropPosition:1})?Et=1:nn=!1:Le({dragNode:St,dropNode:Lt,dropPosition:1})?Et=1:nn=!1,{dropPosition:Et,dropLevelOffset:rn,dropTargetKey:Pt.key,dropTargetPos:Pt.pos,dragOverNodeKey:Ht,dropContainerKey:Et===0?null:((Ye=Pt.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:nn}}function y(re,le){if(re){var de=le.multiple;return de?re.slice():re.length?[re[0]]:re}}var E=function(le){return le};function b(re,le){if(!re)return[];var de=le||{},ve=de.processProps,Se=ve===void 0?E:ve,Le=Array.isArray(re)?re:[re];return Le.map(function(Ee){var Fe=Ee.children,xe=_objectWithoutProperties(Ee,ue),lt=b(Fe,le);return React.createElement(TreeNode,_extends({key:xe.key},Se(xe)),lt)})}function x(re){if(!re)return null;var le;if(Array.isArray(re))le={checkedKeys:re,halfCheckedKeys:void 0};else if((0,fe.Z)(re)==="object")le={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return le}function z(re,le){var de=new Set;function ve(Se){if(!de.has(Se)){var Le=(0,ge.Z)(le,Se);if(Le){de.add(Se);var Ee=Le.parent,Fe=Le.node;Fe.disabled||Ee&&ve(Ee.key)}}}return(re||[]).forEach(function(Se){ve(Se)}),(0,te.Z)(de)}},90782:function(ft,Ke,ee){"use strict";ee.d(Ke,{S:function(){return ie}});var te=ee(48736),fe=ee(67841);function be(ue,ce){var me=new Set;return ue.forEach(function(se){ce.has(se)||me.add(se)}),me}function ye(ue){var ce=ue||{},me=ce.disabled,se=ce.disableCheckbox,pe=ce.checkable;return!!(me||se)||pe===!1}function he(ue,ce,me,se){for(var pe=new Set(ue),oe=new Set,ne=0;ne<=me;ne+=1){var a=ce.get(ne)||new Set;a.forEach(function(x){var z=x.key,re=x.node,le=x.children,de=le===void 0?[]:le;pe.has(z)&&!se(re)&&de.filter(function(ve){return!se(ve.node)}).forEach(function(ve){pe.add(ve.key)})})}for(var y=new Set,E=me;E>=0;E-=1){var b=ce.get(E)||new Set;b.forEach(function(x){var z=x.parent,re=x.node;if(!(se(re)||!x.parent||y.has(x.parent.key))){if(se(x.parent.node)){y.add(z.key);return}var le=!0,de=!1;(z.children||[]).filter(function(ve){return!se(ve.node)}).forEach(function(ve){var Se=ve.key,Le=pe.has(Se);le&&!Le&&(le=!1),!de&&(Le||oe.has(Se))&&(de=!0)}),le&&pe.add(z.key),de&&oe.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(be(oe,pe))}}function ge(ue,ce,me,se,pe){for(var oe=new Set(ue),ne=new Set(ce),a=0;a<=se;a+=1){var y=me.get(a)||new Set;y.forEach(function(z){var re=z.key,le=z.node,de=z.children,ve=de===void 0?[]:de;!oe.has(re)&&!ne.has(re)&&!pe(le)&&ve.filter(function(Se){return!pe(Se.node)}).forEach(function(Se){oe.delete(Se.key)})})}ne=new Set;for(var E=new Set,b=se;b>=0;b-=1){var x=me.get(b)||new Set;x.forEach(function(z){var re=z.parent,le=z.node;if(!(pe(le)||!z.parent||E.has(z.parent.key))){if(pe(z.parent.node)){E.add(re.key);return}var de=!0,ve=!1;(re.children||[]).filter(function(Se){return!pe(Se.node)}).forEach(function(Se){var Le=Se.key,Ee=oe.has(Le);de&&!Ee&&(de=!1),!ve&&(Ee||ne.has(Le))&&(ve=!0)}),de||oe.delete(re.key),ve&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(be(ne,oe))}}function ie(ue,ce,me,se){var pe=[],oe;se?oe=se:oe=ye;var ne=new Set(ue.filter(function(b){var x=!!(0,fe.Z)(me,b);return x||pe.push(b),x})),a=new Map,y=0;Object.keys(me).forEach(function(b){var x=me[b],z=x.level,re=a.get(z);re||(re=new Set,a.set(z,re)),re.add(x),y=Math.max(y,z)}),(0,te.ZP)(!pe.length,"Tree missing follow keys: ".concat(pe.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return ce===!0?E=he(ne,a,y,oe):E=ge(ne,ce.halfCheckedKeys,a,y,oe),E}},67841:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return te}});function te(fe,be){return fe[be]}},71430:function(ft,Ke,ee){"use strict";ee.d(Ke,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return pe},oH:function(){return y},w$:function(){return oe},zn:function(){return a}});var te=ee(76190),fe=ee(94480),be=ee(33885),ye=ee(75931),he=ee(11592),ge=ee(2738),ie=ee(48736),ue=ee(67841),ce=["children"];function me(re,le){return"".concat(re,"-").concat(le)}function se(re){return re&&re.type&&re.type.isTreeNode}function pe(re,le){return re!=null?re:le}function oe(re){var le=re||{},de=le.title,ve=le._title,Se=le.key,Le=le.children,Ee=de||"title";return{title:Ee,_title:ve||[Ee],key:Se||"key",children:Le||"children"}}function ne(re,le){var de=new Map;function ve(Se){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Se||[]).forEach(function(Ee){var Fe=Ee[le.key],xe=Ee[le.children];warning(Fe!=null,"Tree node must have a certain key: [".concat(Le).concat(Fe,"]"));var lt=String(Fe);warning(!de.has(lt)||Fe===null||Fe===void 0,"Same 'key' exist in the Tree: ".concat(lt)),de.set(lt,!0),ve(xe,"".concat(Le).concat(lt," > "))})}ve(re)}function a(re){function le(de){var ve=(0,he.Z)(de);return ve.map(function(Se){if(!se(Se))return(0,ie.ZP)(!Se,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=Se.key,Ee=Se.props,Fe=Ee.children,xe=(0,ye.Z)(Ee,ce),lt=(0,be.Z)({key:Le},xe),Ye=le(Fe);return Ye.length&&(lt.children=Ye),lt}).filter(function(Se){return Se})}return le(re)}function y(re,le,de){var ve=oe(de),Se=ve._title,Le=ve.key,Ee=ve.children,Fe=new Set(le===!0?[]:le),xe=[];function lt(Ye){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(we,je){for(var He=me(ht?ht.pos:"0",je),Je=pe(we[Le],He),$e,mt=0;mt<Se.length;mt+=1){var Pt=Se[mt];if(we[Pt]!==void 0){$e=we[Pt];break}}var At=(0,be.Z)((0,be.Z)({},(0,ge.Z)(we,[].concat((0,fe.Z)(Se),[Le,Ee]))),{},{title:$e,key:Je,parent:ht,pos:He,children:null,data:we,isStart:[].concat((0,fe.Z)(ht?ht.isStart:[]),[je===0]),isEnd:[].concat((0,fe.Z)(ht?ht.isEnd:[]),[je===Ye.length-1])});return xe.push(At),le===!0||Fe.has(Je)?At.children=lt(we[Ee]||[],At):At.children=[],At})}return lt(re),xe}function E(re,le,de){var ve={};(0,te.Z)(de)==="object"?ve=de:ve={externalGetKey:de},ve=ve||{};var Se=ve,Le=Se.childrenPropName,Ee=Se.externalGetKey,Fe=Se.fieldNames,xe=oe(Fe),lt=xe.key,Ye=xe.children,ht=Le||Ye,we;Ee?typeof Ee=="string"?we=function(Je){return Je[Ee]}:typeof Ee=="function"&&(we=function(Je){return Ee(Je)}):we=function(Je,$e){return pe(Je[lt],$e)};function je(He,Je,$e,mt){var Pt=He?He[ht]:re,At=He?me($e.pos,Je):"0",Nt=He?[].concat((0,fe.Z)(mt),[He]):[];if(He){var rt=we(He,At),Xe={node:He,index:Je,pos:At,key:rt,parentPos:$e.node?$e.pos:null,level:$e.level+1,nodes:Nt};le(Xe)}Pt&&Pt.forEach(function(Ct,Ht){je(Ct,Ht,{node:He,pos:At,level:$e?$e.level+1:-1},Nt)})}je(null)}function b(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=le.initWrapper,ve=le.processEntity,Se=le.onProcessFinished,Le=le.externalGetKey,Ee=le.childrenPropName,Fe=le.fieldNames,xe=arguments.length>2?arguments[2]:void 0,lt=Le||xe,Ye={},ht={},we={posEntities:Ye,keyEntities:ht};return de&&(we=de(we)||we),E(re,function(je){var He=je.node,Je=je.index,$e=je.pos,mt=je.key,Pt=je.parentPos,At=je.level,Nt=je.nodes,rt={node:He,nodes:Nt,index:Je,key:mt,pos:$e,level:At},Xe=pe(mt,$e);Ye[$e]=rt,ht[Xe]=rt,rt.parent=Ye[Pt],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),ve&&ve(rt,we)},{externalGetKey:lt,childrenPropName:Ee,fieldNames:Fe}),Se&&Se(we),we}function x(re,le){var de=le.expandedKeys,ve=le.selectedKeys,Se=le.loadedKeys,Le=le.loadingKeys,Ee=le.checkedKeys,Fe=le.halfCheckedKeys,xe=le.dragOverNodeKey,lt=le.dropPosition,Ye=le.keyEntities,ht=(0,ue.Z)(Ye,re),we={eventKey:re,expanded:de.indexOf(re)!==-1,selected:ve.indexOf(re)!==-1,loaded:Se.indexOf(re)!==-1,loading:Le.indexOf(re)!==-1,checked:Ee.indexOf(re)!==-1,halfChecked:Fe.indexOf(re)!==-1,pos:String(ht?ht.pos:""),dragOver:xe===re&<===0,dragOverGapTop:xe===re&<===-1,dragOverGapBottom:xe===re&<===1};return we}function z(re){var le=re.data,de=re.expanded,ve=re.selected,Se=re.checked,Le=re.loaded,Ee=re.loading,Fe=re.halfChecked,xe=re.dragOver,lt=re.dragOverGapTop,Ye=re.dragOverGapBottom,ht=re.pos,we=re.active,je=re.eventKey,He=(0,be.Z)((0,be.Z)({},le),{},{expanded:de,selected:ve,checked:Se,loaded:Le,loading:Ee,halfChecked:Fe,dragOver:xe,dragOverGapTop:lt,dragOverGapBottom:Ye,pos:ht,active:we,key:je});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,ie.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),He}},8224:function(ft,Ke,ee){"use strict";ee.d(Ke,{Z:function(){return fe}});var te=ee(4676);function fe(be,ye,he,ge){var ie=te.unstable_batchedUpdates?function(ce){te.unstable_batchedUpdates(he,ce)}:he;return be!=null&&be.addEventListener&&be.addEventListener(ye,ie,ge),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(ye,ie,ge)}}}},55468:function(ft,Ke,ee){"use strict";ee.d(Ke,{g1:function(){return se},os:function(){return oe}});var te=/margin|padding|width|height|max|min|offset/,fe={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function ye(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function he(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in fe||(fe[a]=te.test(a)),fe[a]?parseFloat(y)||0:y}function ge(ne,a){var y=arguments.length,E=ye(ne);return a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?E:he(ne,a,E[a]||ne.style[a])}function ie(ne,a,y){var E=arguments.length;if(a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,E===3)return typeof y=="number"&&te.test(a)&&(y="".concat(y,"px")),ne.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&ie(ne,b,a[b]);return ye(ne)}function ue(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function ce(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function me(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:a}}function se(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(ne){var a=ne.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},3465:function(ft,Ke,ee){"use strict";ee.d(Ke,{G:function(){return ye}});var te=ee(47273),fe=function(ge){if((0,te.Z)()&&window.document.documentElement){var ie=Array.isArray(ge)?ge:[ge],ue=window.document.documentElement;return ie.some(function(ce){return ce in ue.style})}return!1},be=function(ge,ie){if(!fe(ge))return!1;var ue=document.createElement("div"),ce=ue.style[ge];return ue.style[ge]=ie,ue.style[ge]!==ce};function ye(he,ge){return!Array.isArray(he)&&ge!==void 0?be(he,ge):fe(he)}},7062:function(ft,Ke,ee){var te=ee(19637),fe=ee(97573),be=[ee(96627)];ft.exports=te.createStore(fe,be)},96627:function(ft,Ke,ee){ft.exports=te;function te(){return ee(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(ft){return ft<10?"0"+ft:ft}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(ft){return rx_escapable.lastIndex=0,rx_escapable.test(ft)?'"'+ft.replace(rx_escapable,function(Ke){var ee=meta[Ke];return typeof ee=="string"?ee:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ft+'"'}function str(ft,Ke){var ee,te,fe,be,ye=gap,he,ge=Ke[ft];switch(ge&&typeof ge=="object"&&typeof ge.toJSON=="function"&&(ge=ge.toJSON(ft)),typeof rep=="function"&&(ge=rep.call(Ke,ft,ge)),typeof ge){case"string":return quote(ge);case"number":return isFinite(ge)?String(ge):"null";case"boolean":case"null":return String(ge);case"object":if(!ge)return"null";if(gap+=indent,he=[],Object.prototype.toString.apply(ge)==="[object Array]"){for(be=ge.length,ee=0;ee<be;ee+=1)he[ee]=str(ee,ge)||"null";return fe=he.length===0?"[]":gap?`[
|
|
|
`+gap+he.join(`,
|
|
|
`+gap)+`
|
|
|
`+ye+"]":"["+he.join(",")+"]",gap=ye,fe}if(rep&&typeof rep=="object")for(be=rep.length,ee=0;ee<be;ee+=1)typeof rep[ee]=="string"&&(te=rep[ee],fe=str(te,ge),fe&&he.push(quote(te)+(gap?": ":":")+fe));else for(te in ge)Object.prototype.hasOwnProperty.call(ge,te)&&(fe=str(te,ge),fe&&he.push(quote(te)+(gap?": ":":")+fe));return fe=he.length===0?"{}":gap?`{
|
|
|
`+gap+he.join(`,
|
|
|
`+gap)+`
|
|
|
`+ye+"}":"{"+he.join(",")+"}",gap=ye,fe}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ft,Ke,ee){var te;if(gap="",indent="",typeof ee=="number")for(te=0;te<ee;te+=1)indent+=" ";else typeof ee=="string"&&(indent=ee);if(rep=Ke,Ke&&typeof Ke!="function"&&(typeof Ke!="object"||typeof Ke.length!="number"))throw new Error("JSON.stringify");return str("",{"":ft})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ft,Ke){var ee,te,fe=ft[Ke];if(fe&&typeof fe=="object")for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(te=walk(fe,ee),te!==void 0?fe[ee]=te:delete fe[ee]);return reviver.call(ft,Ke,fe)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ft){return"\\u"+("0000"+ft.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(ft,Ke,ee){var te=ee(67039),fe=te.slice,be=te.pluck,ye=te.each,he=te.bind,ge=te.create,ie=te.isList,ue=te.isFunction,ce=te.isObject;ft.exports={createStore:pe};var me={version:"2.0.12",enabled:!1,get:function(oe,ne){var a=this.storage.read(this._namespacePrefix+oe);return this._deserialize(a,ne)},set:function(oe,ne){return ne===void 0?this.remove(oe):(this.storage.write(this._namespacePrefix+oe,this._serialize(ne)),ne)},remove:function(oe){this.storage.remove(this._namespacePrefix+oe)},each:function(oe){var ne=this;this.storage.each(function(a,y){oe.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(oe){return this._namespacePrefix=="__storejs_"+oe+"_"},createStore:function(){return pe.apply(this,arguments)},addPlugin:function(oe){this._addPlugin(oe)},namespace:function(oe){return pe(this.storage,this.plugins,oe)}};function se(){var oe=typeof console=="undefined"?null:console;if(oe){var ne=oe.warn?oe.warn:oe.log;ne.apply(oe,arguments)}}function pe(oe,ne,a){a||(a=""),oe&&!ie(oe)&&(oe=[oe]),ne&&!ie(ne)&&(ne=[ne]);var y=a?"__storejs_"+a+"_":"",E=a?new RegExp("^"+y):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:y,_namespaceRegexp:E,_testStorage:function(re){try{var le="__storejs__test__";re.write(le,le);var de=re.read(le)===le;return re.remove(le),de}catch(ve){return!1}},_assignPluginFnProp:function(re,le){var de=this[le];this[le]=function(){var Se=fe(arguments,0),Le=this;function Ee(){if(de)return ye(arguments,function(xe,lt){Se[lt]=xe}),de.apply(Le,Se)}var Fe=[Ee].concat(Se);return re.apply(Le,Fe)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,le){if(!re)return le;var de="";try{de=JSON.parse(re)}catch(ve){de=re}return de!==void 0?de:le},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var le=this;if(ie(re)){ye(re,function(Se){le._addPlugin(Se)});return}var de=be(this.plugins,function(Se){return re===Se});if(!de){if(this.plugins.push(re),!ue(re))throw new Error("Plugins must be function values that return objects");var ve=re.call(this);if(!ce(ve))throw new Error("Plugins must return an object of function properties");ye(ve,function(Se,Le){if(!ue(Se))throw new Error("Bad plugin property: "+Le+" from plugin "+re.name+". Plugins should only return functions.");le._assignPluginFnProp(Se,Le)})}},addStorage:function(re){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},z=ge(x,me,{plugins:[]});return z.raw={},ye(z,function(re,le){ue(re)&&(z.raw[le]=he(z,re))}),ye(oe,function(re){z._addStorage(re)}),ye(ne,function(re){z._addPlugin(re)}),z}},67039:function(ft,Ke,ee){var te=he(),fe=ge(),be=ie(),ye=typeof window!="undefined"?window:ee.g;ft.exports={assign:te,create:fe,trim:be,bind:ue,slice:ce,each:me,map:se,pluck:pe,isList:oe,isFunction:ne,isObject:a,Global:ye};function he(){return Object.assign?Object.assign:function(E,b,x,z){for(var re=1;re<arguments.length;re++)me(Object(arguments[re]),function(le,de){E[de]=le});return E}}function ge(){if(Object.create)return function(b,x,z,re){var le=ce(arguments,1);return te.apply(this,[Object.create(b)].concat(le))};{let E=function(){};var y=E;return function(x,z,re,le){var de=ce(arguments,1);return E.prototype=x,te.apply(this,[new E].concat(de))}}}function ie(){return String.prototype.trim?function(E){return String.prototype.trim.call(E)}:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ue(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function ce(y,E){return Array.prototype.slice.call(y,E||0)}function me(y,E){pe(y,function(b,x){return E(b,x),!1})}function se(y,E){var b=oe(y)?[]:{};return pe(y,function(x,z){return b[z]=E(x,z),!1}),b}function pe(y,E){if(oe(y)){for(var b=0;b<y.length;b++)if(E(y[b],b))return y[b]}else for(var x in y)if(y.hasOwnProperty(x)&&E(y[x],x))return y[x]}function oe(y){return y!=null&&typeof y!="function"&&typeof y.length=="number"}function ne(y){return y&&{}.toString.call(y)==="[object Function]"}function a(y){return y&&{}.toString.call(y)==="[object Object]"}},97573:function(ft,Ke,ee){ft.exports=[ee(52496),ee(16436),ee(76673),ee(35701),ee(65578),ee(65300)]},35701:function(ft,Ke,ee){var te=ee(67039),fe=te.Global,be=te.trim;ft.exports={name:"cookieStorage",read:he,write:ie,each:ge,remove:ue,clearAll:ce};var ye=fe.document;function he(se){if(!se||!me(se))return null;var pe="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ye.cookie.replace(new RegExp(pe),"$1"))}function ge(se){for(var pe=ye.cookie.split(/; ?/g),oe=pe.length-1;oe>=0;oe--)if(be(pe[oe])){var ne=pe[oe].split("="),a=unescape(ne[0]),y=unescape(ne[1]);se(y,a)}}function ie(se,pe){se&&(ye.cookie=escape(se)+"="+escape(pe)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ue(se){!se||!me(se)||(ye.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ce(){ge(function(se,pe){ue(pe)})}function me(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ye.cookie)}},52496:function(ft,Ke,ee){var te=ee(67039),fe=te.Global;ft.exports={name:"localStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};function be(){return fe.localStorage}function ye(ce){return be().getItem(ce)}function he(ce,me){return be().setItem(ce,me)}function ge(ce){for(var me=be().length-1;me>=0;me--){var se=be().key(me);ce(ye(se),se)}}function ie(ce){return be().removeItem(ce)}function ue(){return be().clear()}},65300:function(ft){ft.exports={name:"memoryStorage",read:ee,write:te,each:fe,remove:be,clearAll:ye};var Ke={};function ee(he){return Ke[he]}function te(he,ge){Ke[he]=ge}function fe(he){for(var ge in Ke)Ke.hasOwnProperty(ge)&&he(Ke[ge],ge)}function be(he){delete Ke[he]}function ye(he){Ke={}}},16436:function(ft,Ke,ee){var te=ee(67039),fe=te.Global;ft.exports={name:"oldFF-globalStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};var be=fe.globalStorage;function ye(ce){return be[ce]}function he(ce,me){be[ce]=me}function ge(ce){for(var me=be.length-1;me>=0;me--){var se=be.key(me);ce(be[se],se)}}function ie(ce){return be.removeItem(ce)}function ue(){ge(function(ce,me){delete be[ce]})}},76673:function(ft,Ke,ee){var te=ee(67039),fe=te.Global;ft.exports={name:"oldIE-userDataStorage",write:ie,read:ue,each:ce,remove:me,clearAll:se};var be="storejs",ye=fe.document,he=ne(),ge=(fe.navigator?fe.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!ge){var E=oe(a);he(function(b){b.setAttribute(E,y),b.save(be)})}}function ue(a){if(!ge){var y=oe(a),E=null;return he(function(b){E=b.getAttribute(y)}),E}}function ce(a){he(function(y){for(var E=y.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];a(y.getAttribute(x.name),x.name)}})}function me(a){var y=oe(a);he(function(E){E.removeAttribute(y),E.save(be)})}function se(){he(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(be);for(var E=y.length-1;E>=0;E--)a.removeAttribute(y[E].name);a.save(be)})}var pe=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function oe(a){return a.replace(/^\d/,"___$&").replace(pe,"___")}function ne(){if(!ye||!ye.documentElement||!ye.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(x){b=ye.createElement("div"),y=ye.body}return function(x){var z=[].slice.call(arguments,0);z.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,z),y.removeChild(b)}}},65578:function(ft,Ke,ee){var te=ee(67039),fe=te.Global;ft.exports={name:"sessionStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};function be(){return fe.sessionStorage}function ye(ce){return be().getItem(ce)}function he(ce,me){return be().setItem(ce,me)}function ge(ce){for(var me=be().length-1;me>=0;me--){var se=be().key(me);ce(ye(se),se)}}function ie(ce){return be().removeItem(ce)}function ue(){return be().clear()}},82059:function(ft){var Ke=arguments[3],ee=arguments[4],te=arguments[5],fe=JSON.stringify;ft.exports=function(be,ye){for(var he,ge=Object.keys(te),ie=0,ue=ge.length;ie<ue;ie++){var ce=ge[ie],me=te[ce].exports;if(me===be||me&&me.default===be){he=ce;break}}if(!he){he=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var se={},ie=0,ue=ge.length;ie<ue;ie++){var ce=ge[ie];se[ce]=ce}ee[he]=["function(require,module,exports){"+be+"(self); }",se]}var pe=Math.floor(Math.pow(16,8)*Math.random()).toString(16),oe={};oe[he]=he,ee[pe]=["function(require,module,exports){var f = require("+fe(he)+");(f.default ? f.default : f)(self);}",oe];var ne={};a(pe);function a(re){ne[re]=!0;for(var le in ee[re][1]){var de=ee[re][1][le];ne[de]||a(de)}}var y="("+Ke+")({"+Object.keys(ne).map(function(re){return fe(re)+":["+ee[re][0]+","+fe(ee[re][1])+"]"}).join(",")+"},{},["+fe(pe)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(ye&&ye.bare)return b;var x=E.createObjectURL(b),z=new Worker(x);return z.objectURL=x,z}},34376:function(ft){(function(Ke,ee){if(1)ft.exports=ee();else var te,fe})(window,function(){return function(Ke){var ee={};function te(fe){if(ee[fe])return ee[fe].exports;var be=ee[fe]={i:fe,l:!1,exports:{}};return Ke[fe].call(be.exports,be,be.exports,te),be.l=!0,be.exports}return te.m=Ke,te.c=ee,te.d=function(fe,be,ye){te.o(fe,be)||Object.defineProperty(fe,be,{enumerable:!0,get:ye})},te.r=function(fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(fe,"__esModule",{value:!0})},te.t=function(fe,be){if(1&be&&(fe=te(fe)),8&be||4&be&&typeof fe=="object"&&fe&&fe.__esModule)return fe;var ye=Object.create(null);if(te.r(ye),Object.defineProperty(ye,"default",{enumerable:!0,value:fe}),2&be&&typeof fe!="string")for(var he in fe)te.d(ye,he,function(ge){return fe[ge]}.bind(null,he));return ye},te.n=function(fe){var be=fe&&fe.__esModule?function(){return fe.default}:function(){return fe};return te.d(be,"a",be),be},te.o=function(fe,be){return Object.prototype.hasOwnProperty.call(fe,be)},te.p="",te(te.s=34)}([function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.forwardEvent=ee.EventEmitter=void 0;var fe=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var ye=this;return this._event||(this._event=function(he){return ye._listeners.push(he),{dispose:function(){if(!ye._disposed){for(var ge=0;ge<ye._listeners.length;ge++)if(ye._listeners[ge]===he)return void ye._listeners.splice(ge,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ye,he){for(var ge=[],ie=0;ie<this._listeners.length;ie++)ge.push(this._listeners[ie]);for(ie=0;ie<ge.length;ie++)ge[ie].call(void 0,ye,he)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();ee.EventEmitter=fe,ee.forwardEvent=function(be,ye){return be(function(he){return ye.fire(he)})}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.IUnicodeService=ee.IOptionsService=ee.ILogService=ee.IInstantiationService=ee.IDirtyRowService=ee.ICharsetService=ee.ICoreService=ee.ICoreMouseService=ee.IBufferService=void 0;var fe=te(14);ee.IBufferService=fe.createDecorator("BufferService"),ee.ICoreMouseService=fe.createDecorator("CoreMouseService"),ee.ICoreService=fe.createDecorator("CoreService"),ee.ICharsetService=fe.createDecorator("CharsetService"),ee.IDirtyRowService=fe.createDecorator("DirtyRowService"),ee.IInstantiationService=fe.createDecorator("InstantiationService"),ee.ILogService=fe.createDecorator("LogService"),ee.IOptionsService=fe.createDecorator("OptionsService"),ee.IUnicodeService=fe.createDecorator("UnicodeService")},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getDisposeArrayDisposable=ee.disposeArray=ee.Disposable=void 0;var fe=function(){function ye(){this._disposables=[],this._isDisposed=!1}return ye.prototype.dispose=function(){this._isDisposed=!0;for(var he=0,ge=this._disposables;he<ge.length;he++)ge[he].dispose();this._disposables.length=0},ye.prototype.register=function(he){return this._disposables.push(he),he},ye.prototype.unregister=function(he){var ge=this._disposables.indexOf(he);ge!==-1&&this._disposables.splice(ge,1)},ye}();function be(ye){for(var he=0,ge=ye;he<ge.length;he++)ge[he].dispose();ye.length=0}ee.Disposable=fe,ee.disposeArray=be,ee.getDisposeArrayDisposable=function(ye){return{dispose:function(){return be(ye)}}}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WHITESPACE_CELL_CODE=ee.WHITESPACE_CELL_WIDTH=ee.WHITESPACE_CELL_CHAR=ee.NULL_CELL_CODE=ee.NULL_CELL_WIDTH=ee.NULL_CELL_CHAR=ee.CHAR_DATA_CODE_INDEX=ee.CHAR_DATA_WIDTH_INDEX=ee.CHAR_DATA_CHAR_INDEX=ee.CHAR_DATA_ATTR_INDEX=ee.DEFAULT_ATTR=ee.DEFAULT_COLOR=void 0,ee.DEFAULT_COLOR=256,ee.DEFAULT_ATTR=256|ee.DEFAULT_COLOR<<9,ee.CHAR_DATA_ATTR_INDEX=0,ee.CHAR_DATA_CHAR_INDEX=1,ee.CHAR_DATA_WIDTH_INDEX=2,ee.CHAR_DATA_CODE_INDEX=3,ee.NULL_CELL_CHAR="",ee.NULL_CELL_WIDTH=1,ee.NULL_CELL_CODE=0,ee.WHITESPACE_CELL_CHAR=" ",ee.WHITESPACE_CELL_WIDTH=1,ee.WHITESPACE_CELL_CODE=32},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CellData=void 0;var ye=te(8),he=te(3),ge=te(6),ie=function(ue){function ce(){var me=ue!==null&&ue.apply(this,arguments)||this;return me.content=0,me.fg=0,me.bg=0,me.extended=new ge.ExtendedAttrs,me.combinedData="",me}return be(ce,ue),ce.fromCharData=function(me){var se=new ce;return se.setFromCharData(me),se},ce.prototype.isCombined=function(){return 2097152&this.content},ce.prototype.getWidth=function(){return this.content>>22},ce.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?ye.stringFromCodePoint(2097151&this.content):""},ce.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ce.prototype.setFromCharData=function(me){this.fg=me[he.CHAR_DATA_ATTR_INDEX],this.bg=0;var se=!1;if(me[he.CHAR_DATA_CHAR_INDEX].length>2)se=!0;else if(me[he.CHAR_DATA_CHAR_INDEX].length===2){var pe=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=pe&&pe<=56319){var oe=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=oe&&oe<=57343?this.content=1024*(pe-55296)+oe-56320+65536|me[he.CHAR_DATA_WIDTH_INDEX]<<22:se=!0}else se=!0}else this.content=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|me[he.CHAR_DATA_WIDTH_INDEX]<<22;se&&(this.combinedData=me[he.CHAR_DATA_CHAR_INDEX],this.content=2097152|me[he.CHAR_DATA_WIDTH_INDEX]<<22)},ce.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ce}(ge.AttributeData);ee.CellData=ie},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ISoundService=ee.ISelectionService=ee.IRenderService=ee.IMouseService=ee.ICoreBrowserService=ee.ICharSizeService=void 0;var fe=te(14);ee.ICharSizeService=fe.createDecorator("CharSizeService"),ee.ICoreBrowserService=fe.createDecorator("CoreBrowserService"),ee.IMouseService=fe.createDecorator("MouseService"),ee.IRenderService=fe.createDecorator("RenderService"),ee.ISelectionService=fe.createDecorator("SelectionService"),ee.ISoundService=fe.createDecorator("SoundService")},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ExtendedAttrs=ee.AttributeData=void 0;var fe=function(){function ye(){this.fg=0,this.bg=0,this.extended=new be}return ye.toColorRGB=function(he){return[he>>>16&255,he>>>8&255,255&he]},ye.fromColorRGB=function(he){return(255&he[0])<<16|(255&he[1])<<8|255&he[2]},ye.prototype.clone=function(){var he=new ye;return he.fg=this.fg,he.bg=this.bg,he.extended=this.extended.clone(),he},ye.prototype.isInverse=function(){return 67108864&this.fg},ye.prototype.isBold=function(){return 134217728&this.fg},ye.prototype.isUnderline=function(){return 268435456&this.fg},ye.prototype.isBlink=function(){return 536870912&this.fg},ye.prototype.isInvisible=function(){return 1073741824&this.fg},ye.prototype.isItalic=function(){return 67108864&this.bg},ye.prototype.isDim=function(){return 134217728&this.bg},ye.prototype.getFgColorMode=function(){return 50331648&this.fg},ye.prototype.getBgColorMode=function(){return 50331648&this.bg},ye.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},ye.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},ye.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},ye.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},ye.prototype.isFgDefault=function(){return(50331648&this.fg)==0},ye.prototype.isBgDefault=function(){return(50331648&this.bg)==0},ye.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},ye.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},ye.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},ye.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},ye.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},ye.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},ye.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},ye.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},ye.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},ye.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},ye.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},ye}();ee.AttributeData=fe;var be=function(){function ye(he,ge){he===void 0&&(he=0),ge===void 0&&(ge=-1),this.underlineStyle=he,this.underlineColor=ge}return ye.prototype.clone=function(){return new ye(this.underlineStyle,this.underlineColor)},ye.prototype.isEmpty=function(){return this.underlineStyle===0},ye}();ee.ExtendedAttrs=be},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.addDisposableDomListener=void 0,ee.addDisposableDomListener=function(fe,be,ye,he){fe.addEventListener(be,ye,he);var ge=!1;return{dispose:function(){ge||(ge=!0,fe.removeEventListener(be,ye,he))}}}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Utf8ToUtf32=ee.StringToUtf32=ee.utf32ToString=ee.stringFromCodePoint=void 0,ee.stringFromCodePoint=function(ye){return ye>65535?(ye-=65536,String.fromCharCode(55296+(ye>>10))+String.fromCharCode(ye%1024+56320)):String.fromCharCode(ye)},ee.utf32ToString=function(ye,he,ge){he===void 0&&(he=0),ge===void 0&&(ge=ye.length);for(var ie="",ue=he;ue<ge;++ue){var ce=ye[ue];ce>65535?(ce-=65536,ie+=String.fromCharCode(55296+(ce>>10))+String.fromCharCode(ce%1024+56320)):ie+=String.fromCharCode(ce)}return ie};var fe=function(){function ye(){this._interim=0}return ye.prototype.clear=function(){this._interim=0},ye.prototype.decode=function(he,ge){var ie=he.length;if(!ie)return 0;var ue=0,ce=0;this._interim&&(56320<=(pe=he.charCodeAt(ce++))&&pe<=57343?ge[ue++]=1024*(this._interim-55296)+pe-56320+65536:(ge[ue++]=this._interim,ge[ue++]=pe),this._interim=0);for(var me=ce;me<ie;++me){var se=he.charCodeAt(me);if(55296<=se&&se<=56319){if(++me>=ie)return this._interim=se,ue;var pe;56320<=(pe=he.charCodeAt(me))&&pe<=57343?ge[ue++]=1024*(se-55296)+pe-56320+65536:(ge[ue++]=se,ge[ue++]=pe)}else ge[ue++]=se}return ue},ye}();ee.StringToUtf32=fe;var be=function(){function ye(){this.interim=new Uint8Array(3)}return ye.prototype.clear=function(){this.interim.fill(0)},ye.prototype.decode=function(he,ge){var ie=he.length;if(!ie)return 0;var ue,ce,me,se,pe=0,oe=0,ne=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)y<<=6,y|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,z=x-E;ne<z;){if(ne>=ie)return 0;if((192&(b=he[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:ge[pe++]=y:x===3?y<2048||y>=55296&&y<=57343||(ge[pe++]=y):y<65536||y>1114111||(ge[pe++]=y)),this.interim.fill(0)}for(var re=ie-4,le=ne;le<ie;){for(;!(!(le<re)||128&(ue=he[le])||128&(ce=he[le+1])||128&(me=he[le+2])||128&(se=he[le+3]));)ge[pe++]=ue,ge[pe++]=ce,ge[pe++]=me,ge[pe++]=se,le+=4;if((ue=he[le++])<128)ge[pe++]=ue;else if((224&ue)==192){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if((oe=(31&ue)<<6|63&ce)<128){le--;continue}ge[pe++]=oe}else if((240&ue)==224){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,pe;if((192&(me=he[le++]))!=128){le--;continue}if((oe=(15&ue)<<12|(63&ce)<<6|63&me)<2048||oe>=55296&&oe<=57343)continue;ge[pe++]=oe}else if((248&ue)==240){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,pe;if((192&(me=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,this.interim[2]=me,pe;if((192&(se=he[le++]))!=128){le--;continue}if((oe=(7&ue)<<18|(63&ce)<<12|(63&me)<<6|63&se)<65536||oe>1114111)continue;ge[pe++]=oe}}return pe},ye}();ee.Utf8ToUtf32=be},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CHAR_ATLAS_CELL_SPACING=ee.DIM_OPACITY=ee.INVERTED_DEFAULT_COLOR=void 0,ee.INVERTED_DEFAULT_COLOR=257,ee.DIM_OPACITY=.5,ee.CHAR_ATLAS_CELL_SPACING=1},function(Ke,ee,te){"use strict";var fe,be,ye,he;function ge(ue){var ce=ue.toString(16);return ce.length<2?"0"+ce:ce}function ie(ue,ce){return ue<ce?(ce+.05)/(ue+.05):(ue+.05)/(ce+.05)}Object.defineProperty(ee,"__esModule",{value:!0}),ee.contrastRatio=ee.toPaddedHex=ee.rgba=ee.rgb=ee.css=ee.color=ee.channels=void 0,function(ue){ue.toCss=function(ce,me,se,pe){return pe!==void 0?"#"+ge(ce)+ge(me)+ge(se)+ge(pe):"#"+ge(ce)+ge(me)+ge(se)},ue.toRgba=function(ce,me,se,pe){return pe===void 0&&(pe=255),(ce<<24|me<<16|se<<8|pe)>>>0}}(fe=ee.channels||(ee.channels={})),(be=ee.color||(ee.color={})).blend=function(ue,ce){var me=(255&ce.rgba)/255;if(me===1)return{css:ce.css,rgba:ce.rgba};var se=ce.rgba>>24&255,pe=ce.rgba>>16&255,oe=ce.rgba>>8&255,ne=ue.rgba>>24&255,a=ue.rgba>>16&255,y=ue.rgba>>8&255,E=ne+Math.round((se-ne)*me),b=a+Math.round((pe-a)*me),x=y+Math.round((oe-y)*me);return{css:fe.toCss(E,b,x),rgba:fe.toRgba(E,b,x)}},be.isOpaque=function(ue){return(255&ue.rgba)==255},be.ensureContrastRatio=function(ue,ce,me){var se=he.ensureContrastRatio(ue.rgba,ce.rgba,me);if(se)return he.toColor(se>>24&255,se>>16&255,se>>8&255)},be.opaque=function(ue){var ce=(255|ue.rgba)>>>0,me=he.toChannels(ce),se=me[0],pe=me[1],oe=me[2];return{css:fe.toCss(se,pe,oe),rgba:ce}},be.opacity=function(ue,ce){var me=Math.round(255*ce),se=he.toChannels(ue.rgba),pe=se[0],oe=se[1],ne=se[2];return{css:fe.toCss(pe,oe,ne,me),rgba:fe.toRgba(pe,oe,ne,me)}},(ee.css||(ee.css={})).toColor=function(ue){switch(ue.length){case 7:return{css:ue,rgba:(parseInt(ue.slice(1),16)<<8|255)>>>0};case 9:return{css:ue,rgba:parseInt(ue.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(ue){function ce(me,se,pe){var oe=me/255,ne=se/255,a=pe/255;return .2126*(oe<=.03928?oe/12.92:Math.pow((oe+.055)/1.055,2.4))+.7152*(ne<=.03928?ne/12.92:Math.pow((ne+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}ue.relativeLuminance=function(me){return ce(me>>16&255,me>>8&255,255&me)},ue.relativeLuminance2=ce}(ye=ee.rgb||(ee.rgb={})),function(ue){function ce(se,pe,oe){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=pe>>24&255,b=pe>>16&255,x=pe>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));z<oe&&(E>0||b>0||x>0);)E-=Math.max(0,Math.ceil(.1*E)),b-=Math.max(0,Math.ceil(.1*b)),x-=Math.max(0,Math.ceil(.1*x)),z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function me(se,pe,oe){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=pe>>24&255,b=pe>>16&255,x=pe>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));z<oe&&(E<255||b<255||x<255);)E=Math.min(255,E+Math.ceil(.1*(255-E))),b=Math.min(255,b+Math.ceil(.1*(255-b))),x=Math.min(255,x+Math.ceil(.1*(255-x))),z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}ue.ensureContrastRatio=function(se,pe,oe){var ne=ye.relativeLuminance(se>>8),a=ye.relativeLuminance(pe>>8);if(ie(ne,a)<oe)return a<ne?ce(se,pe,oe):me(se,pe,oe)},ue.reduceLuminance=ce,ue.increaseLuminance=me,ue.toChannels=function(se){return[se>>24&255,se>>16&255,se>>8&255,255&se]},ue.toColor=function(se,pe,oe){return{css:fe.toCss(se,pe,oe),rgba:fe.toRgba(se,pe,oe)}}}(he=ee.rgba||(ee.rgba={})),ee.toPaddedHex=ge,ee.contrastRatio=ie},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isLinux=ee.isWindows=ee.isIphone=ee.isIpad=ee.isMac=ee.isSafari=ee.isFirefox=void 0;var fe=typeof navigator=="undefined",be=fe?"node":navigator.userAgent,ye=fe?"node":navigator.platform;function he(ge,ie){return ge.indexOf(ie)>=0}ee.isFirefox=!!~be.indexOf("Firefox"),ee.isSafari=/^((?!chrome|android).)*safari/i.test(be),ee.isMac=he(["Macintosh","MacIntel","MacPPC","Mac68K"],ye),ee.isIpad=ye==="iPad",ee.isIphone=ye==="iPhone",ee.isWindows=he(["Windows","Win16","Win32","WinCE"],ye),ee.isLinux=ye.indexOf("Linux")>=0},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.C1=ee.C0=void 0,function(fe){fe.NUL="\0",fe.SOH="",fe.STX="",fe.ETX="",fe.EOT="",fe.ENQ="",fe.ACK="",fe.BEL="\x07",fe.BS="\b",fe.HT=" ",fe.LF=`
|
|
|
`,fe.VT="\v",fe.FF="\f",fe.CR="\r",fe.SO="",fe.SI="",fe.DLE="",fe.DC1="",fe.DC2="",fe.DC3="",fe.DC4="",fe.NAK="",fe.SYN="",fe.ETB="",fe.CAN="",fe.EM="",fe.SUB="",fe.ESC="\x1B",fe.FS="",fe.GS="",fe.RS="",fe.US="",fe.SP=" ",fe.DEL="\x7F"}(ee.C0||(ee.C0={})),function(fe){fe.PAD="\x80",fe.HOP="\x81",fe.BPH="\x82",fe.NBH="\x83",fe.IND="\x84",fe.NEL="\x85",fe.SSA="\x86",fe.ESA="\x87",fe.HTS="\x88",fe.HTJ="\x89",fe.VTS="\x8A",fe.PLD="\x8B",fe.PLU="\x8C",fe.RI="\x8D",fe.SS2="\x8E",fe.SS3="\x8F",fe.DCS="\x90",fe.PU1="\x91",fe.PU2="\x92",fe.STS="\x93",fe.CCH="\x94",fe.MW="\x95",fe.SPA="\x96",fe.EPA="\x97",fe.SOS="\x98",fe.SGCI="\x99",fe.SCI="\x9A",fe.CSI="\x9B",fe.ST="\x9C",fe.OSC="\x9D",fe.PM="\x9E",fe.APC="\x9F"}(ee.C1||(ee.C1={}))},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseRenderLayer=void 0;var fe=te(3),be=te(9),ye=te(25),he=te(6),ge=te(28),ie=te(10),ue=te(17),ce=function(){function me(se,pe,oe,ne,a,y,E,b){this._container=se,this._alpha=ne,this._colors=a,this._rendererId=y,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+pe+"-layer"),this._canvas.style.zIndex=oe.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var se;ue.removeElementFromParent(this._canvas),(se=this._charAtlas)===null||se===void 0||se.dispose()},me.prototype._initCanvas=function(){this._ctx=ge.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},me.prototype.onOptionsChanged=function(){},me.prototype.onBlur=function(){},me.prototype.onFocus=function(){},me.prototype.onCursorMove=function(){},me.prototype.onGridChanged=function(se,pe){},me.prototype.onSelectionChanged=function(se,pe,oe){oe===void 0&&(oe=!1)},me.prototype.setColors=function(se){this._refreshCharAtlas(se)},me.prototype._setTransparency=function(se){if(se!==this._alpha){var pe=this._canvas;this._alpha=se,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,pe),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},me.prototype._refreshCharAtlas=function(se){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ye.acquireCharAtlas(this._optionsService.options,this._rendererId,se,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},me.prototype.resize=function(se){this._scaledCellWidth=se.scaledCellWidth,this._scaledCellHeight=se.scaledCellHeight,this._scaledCharWidth=se.scaledCharWidth,this._scaledCharHeight=se.scaledCharHeight,this._scaledCharLeft=se.scaledCharLeft,this._scaledCharTop=se.scaledCharTop,this._canvas.width=se.scaledCanvasWidth,this._canvas.height=se.scaledCanvasHeight,this._canvas.style.width=se.canvasWidth+"px",this._canvas.style.height=se.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},me.prototype._fillCells=function(se,pe,oe,ne){this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(se,pe,oe){oe===void 0&&(oe=1),this._ctx.fillRect(se*this._scaledCellWidth,(pe+1)*this._scaledCellHeight-window.devicePixelRatio-1,oe*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(se,pe,oe){this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,window.devicePixelRatio*oe,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(se,pe,oe,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(se*this._scaledCellWidth+window.devicePixelRatio/2,pe*this._scaledCellHeight+window.devicePixelRatio/2,oe*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},me.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},me.prototype._clearCells=function(se,pe,oe,ne){this._alpha?this._ctx.clearRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(se,pe,oe){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(oe),this._ctx.fillText(se.getChars(),pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(se,pe,oe){var ne,a,y=this._getContrastColor(se);y||se.isFgRGB()||se.isBgRGB()?this._drawUncachedChars(se,pe,oe,y):(se.isInverse()?(ne=se.isBgDefault()?be.INVERTED_DEFAULT_COLOR:se.getBgColor(),a=se.isFgDefault()?be.INVERTED_DEFAULT_COLOR:se.getFgColor()):(a=se.isBgDefault()?fe.DEFAULT_COLOR:se.getBgColor(),ne=se.isFgDefault()?fe.DEFAULT_COLOR:se.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=se.getChars()||fe.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=se.getCode()||fe.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!se.isBold(),this._currentGlyphIdentifier.dim=!!se.isDim(),this._currentGlyphIdentifier.italic=!!se.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(se,pe,oe))},me.prototype._drawUncachedChars=function(se,pe,oe,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!se.isBold(),!!se.isItalic()),this._ctx.textBaseline="middle",se.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(se.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(se.isBgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var a=se.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(se.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(se.isFgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var y=se.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(oe),se.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(se.getChars(),pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},me.prototype._clipRow=function(se){this._ctx.beginPath(),this._ctx.rect(0,se*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},me.prototype._getFont=function(se,pe){return(pe?"italic":"")+" "+(se?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},me.prototype._getContrastColor=function(se){if(this._optionsService.options.minimumContrastRatio!==1){var pe=this._colors.contrastCache.getColor(se.bg,se.fg);if(pe!==void 0)return pe||void 0;var oe=se.getFgColor(),ne=se.getFgColorMode(),a=se.getBgColor(),y=se.getBgColorMode(),E=!!se.isInverse(),b=!!se.isInverse();if(E){var x=oe;oe=a,a=x;var z=ne;ne=y,y=z}var re=this._resolveBackgroundRgba(y,a,E),le=this._resolveForegroundRgba(ne,oe,E,b),de=ie.rgba.ensureContrastRatio(re,le,this._optionsService.options.minimumContrastRatio);if(de){var ve={css:ie.channels.toCss(de>>24&255,de>>16&255,de>>8&255),rgba:de};return this._colors.contrastCache.setColor(se.bg,se.fg,ve),ve}this._colors.contrastCache.setColor(se.bg,se.fg,null)}},me.prototype._resolveBackgroundRgba=function(se,pe,oe){switch(se){case 16777216:case 33554432:return this._colors.ansi[pe].rgba;case 50331648:return pe<<8;case 0:default:return oe?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(se,pe,oe,ne){switch(se){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&pe<8&&(pe+=8),this._colors.ansi[pe].rgba;case 50331648:return pe<<8;case 0:default:return oe?this._colors.background.rgba:this._colors.foreground.rgba}},me}();ee.BaseRenderLayer=ce},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDecorator=ee.getServiceDependencies=ee.serviceRegistry=void 0;function fe(be,ye,he){ye.di$target===ye?ye.di$dependencies.push({id:be,index:he}):(ye.di$dependencies=[{id:be,index:he}],ye.di$target=ye)}ee.serviceRegistry=new Map,ee.getServiceDependencies=function(be){return be.di$dependencies||[]},ee.createDecorator=function(be){if(ee.serviceRegistry.has(be))return ee.serviceRegistry.get(be);var ye=function(he,ge,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");fe(ye,he,ie)};return ye.toString=function(){return be},ee.serviceRegistry.set(be,ye),ye}},function(Ke,ee,te){"use strict";function fe(be,ye,he,ge){if(he===void 0&&(he=0),ge===void 0&&(ge=be.length),he>=be.length)return be;he=(be.length+he)%be.length,ge=ge>=be.length?be.length:(be.length+ge)%be.length;for(var ie=he;ie<ge;++ie)be[ie]=ye;return be}Object.defineProperty(ee,"__esModule",{value:!0}),ee.concat=ee.fillFallback=ee.fill=void 0,ee.fill=function(be,ye,he,ge){return be.fill?be.fill(ye,he,ge):fe(be,ye,he,ge)},ee.fillFallback=fe,ee.concat=function(be,ye){var he=new be.constructor(be.length+ye.length);return he.set(be),he.set(ye,be.length),he}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferLine=ee.DEFAULT_ATTR_DATA=void 0;var fe=te(8),be=te(3),ye=te(4),he=te(6);ee.DEFAULT_ATTR_DATA=Object.freeze(new he.AttributeData);var ge=function(){function ie(ue,ce,me){me===void 0&&(me=!1),this.isWrapped=me,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*ue);for(var se=ce||ye.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),pe=0;pe<ue;++pe)this.setCell(pe,se);this.length=ue}return ie.prototype.get=function(ue){var ce=this._data[3*ue+0],me=2097151&ce;return[this._data[3*ue+1],2097152&ce?this._combined[ue]:me?fe.stringFromCodePoint(me):"",ce>>22,2097152&ce?this._combined[ue].charCodeAt(this._combined[ue].length-1):me]},ie.prototype.set=function(ue,ce){this._data[3*ue+1]=ce[be.CHAR_DATA_ATTR_INDEX],ce[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[ue]=ce[1],this._data[3*ue+0]=2097152|ue|ce[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*ue+0]=ce[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[be.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(ue){return this._data[3*ue+0]>>22},ie.prototype.hasWidth=function(ue){return 12582912&this._data[3*ue+0]},ie.prototype.getFg=function(ue){return this._data[3*ue+1]},ie.prototype.getBg=function(ue){return this._data[3*ue+2]},ie.prototype.hasContent=function(ue){return 4194303&this._data[3*ue+0]},ie.prototype.getCodePoint=function(ue){var ce=this._data[3*ue+0];return 2097152&ce?this._combined[ue].charCodeAt(this._combined[ue].length-1):2097151&ce},ie.prototype.isCombined=function(ue){return 2097152&this._data[3*ue+0]},ie.prototype.getString=function(ue){var ce=this._data[3*ue+0];return 2097152&ce?this._combined[ue]:2097151&ce?fe.stringFromCodePoint(2097151&ce):""},ie.prototype.loadCell=function(ue,ce){var me=3*ue;return ce.content=this._data[me+0],ce.fg=this._data[me+1],ce.bg=this._data[me+2],2097152&ce.content&&(ce.combinedData=this._combined[ue]),268435456&ce.bg&&(ce.extended=this._extendedAttrs[ue]),ce},ie.prototype.setCell=function(ue,ce){2097152&ce.content&&(this._combined[ue]=ce.combinedData),268435456&ce.bg&&(this._extendedAttrs[ue]=ce.extended),this._data[3*ue+0]=ce.content,this._data[3*ue+1]=ce.fg,this._data[3*ue+2]=ce.bg},ie.prototype.setCellFromCodePoint=function(ue,ce,me,se,pe,oe){268435456&pe&&(this._extendedAttrs[ue]=oe),this._data[3*ue+0]=ce|me<<22,this._data[3*ue+1]=se,this._data[3*ue+2]=pe},ie.prototype.addCodepointToCell=function(ue,ce){var me=this._data[3*ue+0];2097152&me?this._combined[ue]+=fe.stringFromCodePoint(ce):(2097151&me?(this._combined[ue]=fe.stringFromCodePoint(2097151&me)+fe.stringFromCodePoint(ce),me&=-2097152,me|=2097152):me=ce|1<<22,this._data[3*ue+0]=me)},ie.prototype.insertCells=function(ue,ce,me,se){if((ue%=this.length)&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),ce<this.length-ue){for(var pe=new ye.CellData,oe=this.length-ue-ce-1;oe>=0;--oe)this.setCell(ue+ce+oe,this.loadCell(ue+oe,pe));for(oe=0;oe<ce;++oe)this.setCell(ue+oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.deleteCells=function(ue,ce,me,se){if(ue%=this.length,ce<this.length-ue){for(var pe=new ye.CellData,oe=0;oe<this.length-ue-ce;++oe)this.setCell(ue+oe,this.loadCell(ue+ce+oe,pe));for(oe=this.length-ce;oe<this.length;++oe)this.setCell(oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),this.getWidth(ue)!==0||this.hasContent(ue)||this.setCellFromCodePoint(ue,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.replaceCells=function(ue,ce,me,se){for(ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),ce<this.length&&this.getWidth(ce-1)===2&&this.setCellFromCodePoint(ce,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs);ue<ce&&ue<this.length;)this.setCell(ue++,me)},ie.prototype.resize=function(ue,ce){if(ue!==this.length){if(ue>this.length){var me=new Uint32Array(3*ue);this.length&&(3*ue<this._data.length?me.set(this._data.subarray(0,3*ue)):me.set(this._data)),this._data=me;for(var se=this.length;se<ue;++se)this.setCell(se,ce)}else if(ue){(me=new Uint32Array(3*ue)).set(this._data.subarray(0,3*ue)),this._data=me;var pe=Object.keys(this._combined);for(se=0;se<pe.length;se++){var oe=parseInt(pe[se],10);oe>=ue&&delete this._combined[oe]}}else this._data=new Uint32Array(0),this._combined={};this.length=ue}},ie.prototype.fill=function(ue){this._combined={},this._extendedAttrs={};for(var ce=0;ce<this.length;++ce)this.setCell(ce,ue)},ie.prototype.copyFrom=function(ue){for(var ce in this.length!==ue.length?this._data=new Uint32Array(ue._data):this._data.set(ue._data),this.length=ue.length,this._combined={},ue._combined)this._combined[ce]=ue._combined[ce];for(var ce in this._extendedAttrs={},ue._extendedAttrs)this._extendedAttrs[ce]=ue._extendedAttrs[ce];this.isWrapped=ue.isWrapped},ie.prototype.clone=function(){var ue=new ie(0);for(var ce in ue._data=new Uint32Array(this._data),ue.length=this.length,this._combined)ue._combined[ce]=this._combined[ce];for(var ce in this._extendedAttrs)ue._extendedAttrs[ce]=this._extendedAttrs[ce];return ue.isWrapped=this.isWrapped,ue},ie.prototype.getTrimmedLength=function(){for(var ue=this.length-1;ue>=0;--ue)if(4194303&this._data[3*ue+0])return ue+(this._data[3*ue+0]>>22);return 0},ie.prototype.copyCellsFrom=function(ue,ce,me,se,pe){var oe=ue._data;if(pe)for(var ne=se-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(ce+ne)+a];else for(ne=0;ne<se;ne++)for(a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(ce+ne)+a];var y=Object.keys(ue._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=ce&&(this._combined[E-ce+me]=ue._combined[E])}},ie.prototype.translateToString=function(ue,ce,me){ue===void 0&&(ue=!1),ce===void 0&&(ce=0),me===void 0&&(me=this.length),ue&&(me=Math.min(me,this.getTrimmedLength()));for(var se="";ce<me;){var pe=this._data[3*ce+0],oe=2097151&pe;se+=2097152&pe?this._combined[ce]:oe?fe.stringFromCodePoint(oe):be.WHITESPACE_CELL_CHAR,ce+=pe>>22||1}return se},ie}();ee.BufferLine=ge},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeElementFromParent=void 0,ee.removeElementFromParent=function(){for(var fe,be=[],ye=0;ye<arguments.length;ye++)be[ye]=arguments[ye];for(var he=0,ge=be;he<ge.length;he++){var ie=ge[he];(fe=ie==null?void 0:ie.parentElement)===null||fe===void 0||fe.removeChild(ie)}}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.tooMuchOutput=ee.promptLabel=void 0,ee.promptLabel="Terminal input",ee.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Se){ve.__proto__=Se}||function(ve,Se){for(var Le in Se)Se.hasOwnProperty(Le)&&(ve[Le]=Se[Le])})(le,de)},function(le,de){function ve(){this.constructor=le}fe(le,de),le.prototype=de===null?Object.create(de):(ve.prototype=de.prototype,new ve)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.InputHandler=ee.WindowsOptionsReportType=void 0;var ye,he=te(12),ge=te(20),ie=te(39),ue=te(2),ce=te(15),me=te(8),se=te(16),pe=te(0),oe=te(3),ne=te(4),a=te(6),y=te(22),E=te(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(le,de){if(le>24)return de.setWinLines||!1;switch(le){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(function(le){le[le.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",le[le.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ye=ee.WindowsOptionsReportType||(ee.WindowsOptionsReportType={}));var z=function(){function le(de,ve,Se,Le){this._bufferService=de,this._coreService=ve,this._logService=Se,this._optionsService=Le,this._data=new Uint32Array(0)}return le.prototype.hook=function(de){this._data=new Uint32Array(0)},le.prototype.put=function(de,ve,Se){this._data=ce.concat(this._data,de.subarray(ve,Se))},le.prototype.unhook=function(de){if(de){var ve=me.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ve){case'"q':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r0"q'+he.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r61;1"p'+he.C0.ESC+"\\");case"r":var Se=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r"+Se+he.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r0m"+he.C0.ESC+"\\");case" q":var Le={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return Le-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(he.C0.ESC+"P1$r"+Le+" q"+he.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",ve),this._coreService.triggerDataEvent(he.C0.ESC+"P0$r"+he.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},le}(),re=function(le){function de(ve,Se,Le,Ee,Fe,xe,lt,Ye,ht){ht===void 0&&(ht=new ie.EscapeSequenceParser);var we=le.call(this)||this;we._bufferService=ve,we._charsetService=Se,we._coreService=Le,we._dirtyRowService=Ee,we._logService=Fe,we._optionsService=xe,we._coreMouseService=lt,we._unicodeService=Ye,we._parser=ht,we._parseBuffer=new Uint32Array(4096),we._stringDecoder=new me.StringToUtf32,we._utf8Decoder=new me.Utf8ToUtf32,we._workCell=new ne.CellData,we._windowTitle="",we._iconName="",we._windowTitleStack=[],we._iconNameStack=[],we._curAttrData=se.DEFAULT_ATTR_DATA.clone(),we._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone(),we._onRequestBell=new pe.EventEmitter,we._onRequestRefreshRows=new pe.EventEmitter,we._onRequestReset=new pe.EventEmitter,we._onRequestScroll=new pe.EventEmitter,we._onRequestSyncScrollBar=new pe.EventEmitter,we._onRequestWindowsOptionsReport=new pe.EventEmitter,we._onA11yChar=new pe.EventEmitter,we._onA11yTab=new pe.EventEmitter,we._onCursorMove=new pe.EventEmitter,we._onLineFeed=new pe.EventEmitter,we._onScroll=new pe.EventEmitter,we._onTitleChange=new pe.EventEmitter,we.register(we._parser),we._parser.setCsiHandlerFallback(function($e,mt){we._logService.debug("Unknown CSI code: ",{identifier:we._parser.identToString($e),params:mt.toArray()})}),we._parser.setEscHandlerFallback(function($e){we._logService.debug("Unknown ESC code: ",{identifier:we._parser.identToString($e)})}),we._parser.setExecuteHandlerFallback(function($e){we._logService.debug("Unknown EXECUTE code: ",{code:$e})}),we._parser.setOscHandlerFallback(function($e,mt,Pt){we._logService.debug("Unknown OSC code: ",{identifier:$e,action:mt,data:Pt})}),we._parser.setDcsHandlerFallback(function($e,mt,Pt){mt==="HOOK"&&(Pt=Pt.toArray()),we._logService.debug("Unknown DCS code: ",{identifier:we._parser.identToString($e),action:mt,payload:Pt})}),we._parser.setPrintHandler(function($e,mt,Pt){return we.print($e,mt,Pt)}),we._parser.setCsiHandler({final:"@"},function($e){return we.insertChars($e)}),we._parser.setCsiHandler({intermediates:" ",final:"@"},function($e){return we.scrollLeft($e)}),we._parser.setCsiHandler({final:"A"},function($e){return we.cursorUp($e)}),we._parser.setCsiHandler({intermediates:" ",final:"A"},function($e){return we.scrollRight($e)}),we._parser.setCsiHandler({final:"B"},function($e){return we.cursorDown($e)}),we._parser.setCsiHandler({final:"C"},function($e){return we.cursorForward($e)}),we._parser.setCsiHandler({final:"D"},function($e){return we.cursorBackward($e)}),we._parser.setCsiHandler({final:"E"},function($e){return we.cursorNextLine($e)}),we._parser.setCsiHandler({final:"F"},function($e){return we.cursorPrecedingLine($e)}),we._parser.setCsiHandler({final:"G"},function($e){return we.cursorCharAbsolute($e)}),we._parser.setCsiHandler({final:"H"},function($e){return we.cursorPosition($e)}),we._parser.setCsiHandler({final:"I"},function($e){return we.cursorForwardTab($e)}),we._parser.setCsiHandler({final:"J"},function($e){return we.eraseInDisplay($e)}),we._parser.setCsiHandler({prefix:"?",final:"J"},function($e){return we.eraseInDisplay($e)}),we._parser.setCsiHandler({final:"K"},function($e){return we.eraseInLine($e)}),we._parser.setCsiHandler({prefix:"?",final:"K"},function($e){return we.eraseInLine($e)}),we._parser.setCsiHandler({final:"L"},function($e){return we.insertLines($e)}),we._parser.setCsiHandler({final:"M"},function($e){return we.deleteLines($e)}),we._parser.setCsiHandler({final:"P"},function($e){return we.deleteChars($e)}),we._parser.setCsiHandler({final:"S"},function($e){return we.scrollUp($e)}),we._parser.setCsiHandler({final:"T"},function($e){return we.scrollDown($e)}),we._parser.setCsiHandler({final:"X"},function($e){return we.eraseChars($e)}),we._parser.setCsiHandler({final:"Z"},function($e){return we.cursorBackwardTab($e)}),we._parser.setCsiHandler({final:"`"},function($e){return we.charPosAbsolute($e)}),we._parser.setCsiHandler({final:"a"},function($e){return we.hPositionRelative($e)}),we._parser.setCsiHandler({final:"b"},function($e){return we.repeatPrecedingCharacter($e)}),we._parser.setCsiHandler({final:"c"},function($e){return we.sendDeviceAttributesPrimary($e)}),we._parser.setCsiHandler({prefix:">",final:"c"},function($e){return we.sendDeviceAttributesSecondary($e)}),we._parser.setCsiHandler({final:"d"},function($e){return we.linePosAbsolute($e)}),we._parser.setCsiHandler({final:"e"},function($e){return we.vPositionRelative($e)}),we._parser.setCsiHandler({final:"f"},function($e){return we.hVPosition($e)}),we._parser.setCsiHandler({final:"g"},function($e){return we.tabClear($e)}),we._parser.setCsiHandler({final:"h"},function($e){return we.setMode($e)}),we._parser.setCsiHandler({prefix:"?",final:"h"},function($e){return we.setModePrivate($e)}),we._parser.setCsiHandler({final:"l"},function($e){return we.resetMode($e)}),we._parser.setCsiHandler({prefix:"?",final:"l"},function($e){return we.resetModePrivate($e)}),we._parser.setCsiHandler({final:"m"},function($e){return we.charAttributes($e)}),we._parser.setCsiHandler({final:"n"},function($e){return we.deviceStatus($e)}),we._parser.setCsiHandler({prefix:"?",final:"n"},function($e){return we.deviceStatusPrivate($e)}),we._parser.setCsiHandler({intermediates:"!",final:"p"},function($e){return we.softReset($e)}),we._parser.setCsiHandler({intermediates:" ",final:"q"},function($e){return we.setCursorStyle($e)}),we._parser.setCsiHandler({final:"r"},function($e){return we.setScrollRegion($e)}),we._parser.setCsiHandler({final:"s"},function($e){return we.saveCursor($e)}),we._parser.setCsiHandler({final:"t"},function($e){return we.windowOptions($e)}),we._parser.setCsiHandler({final:"u"},function($e){return we.restoreCursor($e)}),we._parser.setCsiHandler({intermediates:"'",final:"}"},function($e){return we.insertColumns($e)}),we._parser.setCsiHandler({intermediates:"'",final:"~"},function($e){return we.deleteColumns($e)}),we._parser.setExecuteHandler(he.C0.BEL,function(){return we.bell()}),we._parser.setExecuteHandler(he.C0.LF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(he.C0.VT,function(){return we.lineFeed()}),we._parser.setExecuteHandler(he.C0.FF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(he.C0.CR,function(){return we.carriageReturn()}),we._parser.setExecuteHandler(he.C0.BS,function(){return we.backspace()}),we._parser.setExecuteHandler(he.C0.HT,function(){return we.tab()}),we._parser.setExecuteHandler(he.C0.SO,function(){return we.shiftOut()}),we._parser.setExecuteHandler(he.C0.SI,function(){return we.shiftIn()}),we._parser.setExecuteHandler(he.C1.IND,function(){return we.index()}),we._parser.setExecuteHandler(he.C1.NEL,function(){return we.nextLine()}),we._parser.setExecuteHandler(he.C1.HTS,function(){return we.tabSet()}),we._parser.setOscHandler(0,new y.OscHandler(function($e){we.setTitle($e),we.setIconName($e)})),we._parser.setOscHandler(1,new y.OscHandler(function($e){return we.setIconName($e)})),we._parser.setOscHandler(2,new y.OscHandler(function($e){return we.setTitle($e)})),we._parser.setEscHandler({final:"7"},function(){return we.saveCursor()}),we._parser.setEscHandler({final:"8"},function(){return we.restoreCursor()}),we._parser.setEscHandler({final:"D"},function(){return we.index()}),we._parser.setEscHandler({final:"E"},function(){return we.nextLine()}),we._parser.setEscHandler({final:"H"},function(){return we.tabSet()}),we._parser.setEscHandler({final:"M"},function(){return we.reverseIndex()}),we._parser.setEscHandler({final:"="},function(){return we.keypadApplicationMode()}),we._parser.setEscHandler({final:">"},function(){return we.keypadNumericMode()}),we._parser.setEscHandler({final:"c"},function(){return we.fullReset()}),we._parser.setEscHandler({final:"n"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"o"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"|"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"}"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"~"},function(){return we.setgLevel(1)}),we._parser.setEscHandler({intermediates:"%",final:"@"},function(){return we.selectDefaultCharset()}),we._parser.setEscHandler({intermediates:"%",final:"G"},function(){return we.selectDefaultCharset()});var je=function($e){He._parser.setEscHandler({intermediates:"(",final:$e},function(){return we.selectCharset("("+$e)}),He._parser.setEscHandler({intermediates:")",final:$e},function(){return we.selectCharset(")"+$e)}),He._parser.setEscHandler({intermediates:"*",final:$e},function(){return we.selectCharset("*"+$e)}),He._parser.setEscHandler({intermediates:"+",final:$e},function(){return we.selectCharset("+"+$e)}),He._parser.setEscHandler({intermediates:"-",final:$e},function(){return we.selectCharset("-"+$e)}),He._parser.setEscHandler({intermediates:".",final:$e},function(){return we.selectCharset("."+$e)}),He._parser.setEscHandler({intermediates:"/",final:$e},function(){return we.selectCharset("/"+$e)})},He=this;for(var Je in ge.CHARSETS)je(Je);return we._parser.setEscHandler({intermediates:"#",final:"8"},function(){return we.screenAlignmentPattern()}),we._parser.setErrorHandler(function($e){return we._logService.error("Parsing error: ",$e),$e}),we._parser.setDcsHandler({intermediates:"$",final:"q"},new z(we._bufferService,we._coreService,we._logService,we._optionsService)),we}return be(de,le),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){le.prototype.dispose.call(this)},de.prototype.parse=function(ve){var Se=this._bufferService.buffer,Le=Se.x,Ee=Se.y;if(this._logService.debug("parsing data",ve),this._parseBuffer.length<ve.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(ve.length,131072))),this._dirtyRowService.clearRange(),ve.length>131072)for(var Fe=0;Fe<ve.length;Fe+=131072){var xe=Fe+131072<ve.length?Fe+131072:ve.length,lt=typeof ve=="string"?this._stringDecoder.decode(ve.substring(Fe,xe),this._parseBuffer):this._utf8Decoder.decode(ve.subarray(Fe,xe),this._parseBuffer);this._parser.parse(this._parseBuffer,lt)}else lt=typeof ve=="string"?this._stringDecoder.decode(ve,this._parseBuffer):this._utf8Decoder.decode(ve,this._parseBuffer),this._parser.parse(this._parseBuffer,lt);(Se=this._bufferService.buffer).x===Le&&Se.y===Ee||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(ve,Se,Le){var Ee,Fe,xe=this._bufferService.buffer,lt=this._charsetService.charset,Ye=this._optionsService.options.screenReaderMode,ht=this._bufferService.cols,we=this._coreService.decPrivateModes.wraparound,je=this._coreService.modes.insertMode,He=this._curAttrData,Je=xe.lines.get(xe.ybase+xe.y);this._dirtyRowService.markDirty(xe.y),xe.x&&Le-Se>0&&Je.getWidth(xe.x-1)===2&&Je.setCellFromCodePoint(xe.x-1,0,1,He.fg,He.bg,He.extended);for(var $e=Se;$e<Le;++$e){if(Ee=ve[$e],Fe=this._unicodeService.wcwidth(Ee),Ee<127&<){var mt=lt[String.fromCharCode(Ee)];mt&&(Ee=mt.charCodeAt(0))}if(Ye&&this._onA11yChar.fire(me.stringFromCodePoint(Ee)),Fe||!xe.x){if(xe.x+Fe-1>=ht){if(we){for(;xe.x<ht;)Je.setCellFromCodePoint(xe.x++,0,1,He.fg,He.bg,He.extended);xe.x=0,xe.y++,xe.y===xe.scrollBottom+1?(xe.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(xe.y>=this._bufferService.rows&&(xe.y=this._bufferService.rows-1),xe.lines.get(xe.ybase+xe.y).isWrapped=!0),Je=xe.lines.get(xe.ybase+xe.y)}else if(xe.x=ht-1,Fe===2)continue}if(je&&(Je.insertCells(xe.x,Fe,xe.getNullCell(He),He),Je.getWidth(ht-1)===2&&Je.setCellFromCodePoint(ht-1,oe.NULL_CELL_CODE,oe.NULL_CELL_WIDTH,He.fg,He.bg,He.extended)),Je.setCellFromCodePoint(xe.x++,Ee,Fe,He.fg,He.bg,He.extended),Fe>0)for(;--Fe;)Je.setCellFromCodePoint(xe.x++,0,0,He.fg,He.bg,He.extended)}else Je.getWidth(xe.x-1)?Je.addCodepointToCell(xe.x-1,Ee):Je.addCodepointToCell(xe.x-2,Ee)}Le-Se>0&&(Je.loadCell(xe.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),xe.x<ht&&Le-Se>0&&Je.getWidth(xe.x)===0&&!Je.hasContent(xe.x)&&Je.setCellFromCodePoint(xe.x,0,1,He.fg,He.bg,He.extended),this._dirtyRowService.markDirty(xe.y)},de.prototype.addCsiHandler=function(ve,Se){var Le=this;return ve.final!=="t"||ve.prefix||ve.intermediates?this._parser.addCsiHandler(ve,Se):this._parser.addCsiHandler(ve,function(Ee){return!x(Ee.params[0],Le._optionsService.options.windowOptions)||Se(Ee)})},de.prototype.addDcsHandler=function(ve,Se){return this._parser.addDcsHandler(ve,new E.DcsHandler(Se))},de.prototype.addEscHandler=function(ve,Se){return this._parser.addEscHandler(ve,Se)},de.prototype.addOscHandler=function(ve,Se){return this._parser.addOscHandler(ve,new y.OscHandler(Se))},de.prototype.bell=function(){this._onRequestBell.fire()},de.prototype.lineFeed=function(){var ve=this._bufferService.buffer;this._dirtyRowService.markDirty(ve.y),this._optionsService.options.convertEol&&(ve.x=0),ve.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),ve.x>=this._bufferService.cols&&ve.x--,this._dirtyRowService.markDirty(ve.y),this._onLineFeed.fire()},de.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},de.prototype.backspace=function(){var ve,Se=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Se.x>0&&Se.x--);if(this._restrictCursor(this._bufferService.cols),Se.x>0)Se.x--;else if(Se.x===0&&Se.y>Se.scrollTop&&Se.y<=Se.scrollBottom&&(!((ve=Se.lines.get(Se.ybase+Se.y))===null||ve===void 0)&&ve.isWrapped)){Se.lines.get(Se.ybase+Se.y).isWrapped=!1,Se.y--,Se.x=this._bufferService.cols-1;var Le=Se.lines.get(Se.ybase+Se.y);Le.hasWidth(Se.x)&&!Le.hasContent(Se.x)&&Se.x--}this._restrictCursor()},de.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var ve=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-ve)}},de.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},de.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},de.prototype._restrictCursor=function(ve){ve===void 0&&(ve=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(ve,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._setCursor=function(ve,Se){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Se):(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=Se),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._moveCursor=function(ve,Se){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+ve,this._bufferService.buffer.y+Se)},de.prototype.cursorUp=function(ve){var Se=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Se>=0?this._moveCursor(0,-Math.min(Se,ve.params[0]||1)):this._moveCursor(0,-(ve.params[0]||1))},de.prototype.cursorDown=function(ve){var Se=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Se>=0?this._moveCursor(0,Math.min(Se,ve.params[0]||1)):this._moveCursor(0,ve.params[0]||1)},de.prototype.cursorForward=function(ve){this._moveCursor(ve.params[0]||1,0)},de.prototype.cursorBackward=function(ve){this._moveCursor(-(ve.params[0]||1),0)},de.prototype.cursorNextLine=function(ve){this.cursorDown(ve),this._bufferService.buffer.x=0},de.prototype.cursorPrecedingLine=function(ve){this.cursorUp(ve),this._bufferService.buffer.x=0},de.prototype.cursorCharAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},de.prototype.cursorPosition=function(ve){this._setCursor(ve.length>=2?(ve.params[1]||1)-1:0,(ve.params[0]||1)-1)},de.prototype.charPosAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},de.prototype.hPositionRelative=function(ve){this._moveCursor(ve.params[0]||1,0)},de.prototype.linePosAbsolute=function(ve){this._setCursor(this._bufferService.buffer.x,(ve.params[0]||1)-1)},de.prototype.vPositionRelative=function(ve){this._moveCursor(0,ve.params[0]||1)},de.prototype.hVPosition=function(ve){this.cursorPosition(ve)},de.prototype.tabClear=function(ve){var Se=ve.params[0];Se===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Se===3&&(this._bufferService.buffer.tabs={})},de.prototype.cursorForwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1;Se--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},de.prototype.cursorBackwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.x=Le.prevStop()},de.prototype._eraseInBufferLine=function(ve,Se,Le,Ee){Ee===void 0&&(Ee=!1);var Fe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);Fe.replaceCells(Se,Le,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ee&&(Fe.isWrapped=!1)},de.prototype._resetBufferLine=function(ve){var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);Se.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Se.isWrapped=!1},de.prototype.eraseInDisplay=function(ve){var Se;switch(this._restrictCursor(),ve.params[0]){case 0:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Se<this._bufferService.rows;Se++)this._resetBufferLine(Se);this._dirtyRowService.markDirty(Se);break;case 1:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Se+1).isWrapped=!1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 2:for(Se=this._bufferService.rows,this._dirtyRowService.markDirty(Se-1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 3:var Le=this._bufferService.buffer.lines.length-this._bufferService.rows;Le>0&&(this._bufferService.buffer.lines.trimStart(Le),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-Le,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-Le,0),this._onScroll.fire(0))}},de.prototype.eraseInLine=function(ve){switch(this._restrictCursor(),ve.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype.insertLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){for(var Ee=Le.ybase+Le.y,Fe=this._bufferService.rows-1-Le.scrollBottom,xe=this._bufferService.rows-1+Le.ybase-Fe+1;Se--;)Le.lines.splice(xe-1,1),Le.lines.splice(Ee,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},de.prototype.deleteLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){var Ee,Fe=Le.ybase+Le.y;for(Ee=this._bufferService.rows-1-Le.scrollBottom,Ee=this._bufferService.rows-1+Le.ybase-Ee;Se--;)Le.lines.splice(Fe,1),Le.lines.splice(Ee,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},de.prototype.insertChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.insertCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.deleteChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.deleteCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.scrollUp=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollTop,1),Le.lines.splice(Le.ybase+Le.scrollBottom,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},de.prototype.scrollDown=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollBottom,1),Le.lines.splice(Le.ybase+Le.scrollTop,0,Le.getBlankLine(se.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},de.prototype.scrollLeft=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var Fe=Se.lines.get(Se.ybase+Ee);Fe.deleteCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},de.prototype.scrollRight=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var Fe=Se.lines.get(Se.ybase+Ee);Fe.insertCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},de.prototype.insertColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var Fe=this._bufferService.buffer.lines.get(Se.ybase+Ee);Fe.insertCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},de.prototype.deleteColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var Fe=Se.lines.get(Se.ybase+Ee);Fe.deleteCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},de.prototype.eraseChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(ve.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.repeatPrecedingCharacter=function(ve){if(this._parser.precedingCodepoint){for(var Se=ve.params[0]||1,Le=new Uint32Array(Se),Ee=0;Ee<Se;++Ee)Le[Ee]=this._parser.precedingCodepoint;this.print(Le,0,Le.length)}},de.prototype.sendDeviceAttributesPrimary=function(ve){ve.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(he.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(he.C0.ESC+"[?6c"))},de.prototype.sendDeviceAttributesSecondary=function(ve){ve.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(he.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(he.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ve.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(he.C0.ESC+"[>83;40003;0c"))},de.prototype._is=function(ve){return(this._optionsService.options.termName+"").indexOf(ve)===0},de.prototype.setMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!0}},de.prototype.setModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(1,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(2,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(3,ge.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},de.prototype.resetMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!1}},de.prototype.resetModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),ve.params[Se]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},de.prototype._updateAttrColor=function(ve,Se,Le,Ee,Fe){return Se===2?(ve|=50331648,ve&=-16777216,ve|=a.AttributeData.fromColorRGB([Le,Ee,Fe])):Se===5&&(ve&=-50331904,ve|=33554432|255&Le),ve},de.prototype._extractColor=function(ve,Se,Le){var Ee=[0,0,-1,0,0,0],Fe=0,xe=0;do{if(Ee[xe+Fe]=ve.params[Se+xe],ve.hasSubParams(Se+xe)){var lt=ve.getSubParams(Se+xe),Ye=0;do Ee[1]===5&&(Fe=1),Ee[xe+Ye+1+Fe]=lt[Ye];while(++Ye<lt.length&&Ye+xe+1+Fe<Ee.length);break}if(Ee[1]===5&&xe+Fe>=2||Ee[1]===2&&xe+Fe>=5)break;Ee[1]&&(Fe=1)}while(++xe+Se<ve.length&&xe+Fe<Ee.length);for(Ye=2;Ye<Ee.length;++Ye)Ee[Ye]===-1&&(Ee[Ye]=0);switch(Ee[0]){case 38:Le.fg=this._updateAttrColor(Le.fg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 48:Le.bg=this._updateAttrColor(Le.bg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 58:Le.extended=Le.extended.clone(),Le.extended.underlineColor=this._updateAttrColor(Le.extended.underlineColor,Ee[1],Ee[3],Ee[4],Ee[5])}return xe},de.prototype._processUnderline=function(ve,Se){Se.extended=Se.extended.clone(),(!~ve||ve>5)&&(ve=1),Se.extended.underlineStyle=ve,Se.fg|=268435456,ve===0&&(Se.fg&=-268435457),Se.updateExtended()},de.prototype.charAttributes=function(ve){if(ve.length===1&&ve.params[0]===0)return this._curAttrData.fg=se.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=se.DEFAULT_ATTR_DATA.bg);for(var Se,Le=ve.length,Ee=this._curAttrData,Fe=0;Fe<Le;Fe++)(Se=ve.params[Fe])>=30&&Se<=37?(Ee.fg&=-50331904,Ee.fg|=16777216|Se-30):Se>=40&&Se<=47?(Ee.bg&=-50331904,Ee.bg|=16777216|Se-40):Se>=90&&Se<=97?(Ee.fg&=-50331904,Ee.fg|=16777224|Se-90):Se>=100&&Se<=107?(Ee.bg&=-50331904,Ee.bg|=16777224|Se-100):Se===0?(Ee.fg=se.DEFAULT_ATTR_DATA.fg,Ee.bg=se.DEFAULT_ATTR_DATA.bg):Se===1?Ee.fg|=134217728:Se===3?Ee.bg|=67108864:Se===4?(Ee.fg|=268435456,this._processUnderline(ve.hasSubParams(Fe)?ve.getSubParams(Fe)[0]:1,Ee)):Se===5?Ee.fg|=536870912:Se===7?Ee.fg|=67108864:Se===8?Ee.fg|=1073741824:Se===2?Ee.bg|=134217728:Se===21?this._processUnderline(2,Ee):Se===22?(Ee.fg&=-134217729,Ee.bg&=-134217729):Se===23?Ee.bg&=-67108865:Se===24?Ee.fg&=-268435457:Se===25?Ee.fg&=-536870913:Se===27?Ee.fg&=-67108865:Se===28?Ee.fg&=-1073741825:Se===39?(Ee.fg&=-67108864,Ee.fg|=16777215&se.DEFAULT_ATTR_DATA.fg):Se===49?(Ee.bg&=-67108864,Ee.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):Se===38||Se===48||Se===58?Fe+=this._extractColor(ve,Fe,Ee):Se===59?(Ee.extended=Ee.extended.clone(),Ee.extended.underlineColor=-1,Ee.updateExtended()):Se===100?(Ee.fg&=-67108864,Ee.fg|=16777215&se.DEFAULT_ATTR_DATA.fg,Ee.bg&=-67108864,Ee.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Se)},de.prototype.deviceStatus=function(ve){switch(ve.params[0]){case 5:this._coreService.triggerDataEvent(he.C0.ESC+"[0n");break;case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"["+Se+";"+Le+"R")}},de.prototype.deviceStatusPrivate=function(ve){switch(ve.params[0]){case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"[?"+Se+";"+Le+"R")}},de.prototype.softReset=function(ve){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},de.prototype.setCursorStyle=function(ve){var Se=ve.params[0]||1;switch(Se){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var Le=Se%2==1;this._optionsService.options.cursorBlink=Le},de.prototype.setScrollRegion=function(ve){var Se,Le=ve.params[0]||1;(ve.length<2||(Se=ve.params[1])>this._bufferService.rows||Se===0)&&(Se=this._bufferService.rows),Se>Le&&(this._bufferService.buffer.scrollTop=Le-1,this._bufferService.buffer.scrollBottom=Se-1,this._setCursor(0,0))},de.prototype.windowOptions=function(ve){if(x(ve.params[0],this._optionsService.options.windowOptions)){var Se=ve.length>1?ve.params[1]:0;switch(ve.params[0]){case 14:Se!==2&&this._onRequestWindowsOptionsReport.fire(ye.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ye.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(he.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Se!==0&&Se!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Se!==0&&Se!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Se!==0&&Se!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Se!==0&&Se!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},de.prototype.saveCursor=function(ve){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},de.prototype.restoreCursor=function(ve){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},de.prototype.setTitle=function(ve){this._windowTitle=ve,this._onTitleChange.fire(ve)},de.prototype.setIconName=function(ve){this._iconName=ve},de.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},de.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},de.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},de.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,ge.DEFAULT_CHARSET)},de.prototype.selectCharset=function(ve){ve.length===2?ve[0]!=="/"&&this._charsetService.setgCharset(b[ve[0]],ge.CHARSETS[ve[1]]||ge.DEFAULT_CHARSET):this.selectDefaultCharset()},de.prototype.index=function(){this._restrictCursor();var ve=this._bufferService.buffer;this._bufferService.buffer.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),this._restrictCursor()},de.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},de.prototype.reverseIndex=function(){this._restrictCursor();var ve=this._bufferService.buffer;if(ve.y===ve.scrollTop){var Se=ve.scrollBottom-ve.scrollTop;ve.lines.shiftElements(ve.ybase+ve.y,Se,1),ve.lines.set(ve.ybase+ve.y,ve.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(ve.scrollTop,ve.scrollBottom)}else ve.y--,this._restrictCursor()},de.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},de.prototype.reset=function(){this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(ve){this._charsetService.setgLevel(ve)},de.prototype.screenAlignmentPattern=function(){var ve=new ne.CellData;ve.content=1<<22|69,ve.fg=this._curAttrData.fg,ve.bg=this._curAttrData.bg;var Se=this._bufferService.buffer;this._setCursor(0,0);for(var Le=0;Le<this._bufferService.rows;++Le){var Ee=Se.ybase+Se.y+Le,Fe=Se.lines.get(Ee);Fe&&(Fe.fill(ve),Fe.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},de}(ue.Disposable);ee.InputHandler=re},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DEFAULT_CHARSET=ee.CHARSETS=void 0,ee.CHARSETS={},ee.DEFAULT_CHARSET=ee.CHARSETS.B,ee.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},ee.CHARSETS.A={"#":"\xA3"},ee.CHARSETS.B=void 0,ee.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ee.CHARSETS.C=ee.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ee.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ee.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ee.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ee.CHARSETS.E=ee.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ee.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ee.CHARSETS.H=ee.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Params=void 0;var fe=function(){function be(ye,he){if(ye===void 0&&(ye=32),he===void 0&&(he=32),this.maxLength=ye,this.maxSubParamsLength=he,he>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ye),this.length=0,this._subParams=new Int32Array(he),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ye),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ye){var he=new be;if(!ye.length)return he;for(var ge=ye[0]instanceof Array?1:0;ge<ye.length;++ge){var ie=ye[ge];if(ie instanceof Array)for(var ue=0;ue<ie.length;++ue)he.addSubParam(ie[ue]);else he.addParam(ie)}return he},be.prototype.clone=function(){var ye=new be(this.maxLength,this.maxSubParamsLength);return ye.params.set(this.params),ye.length=this.length,ye._subParams.set(this._subParams),ye._subParamsLength=this._subParamsLength,ye._subParamsIdx.set(this._subParamsIdx),ye._rejectDigits=this._rejectDigits,ye._rejectSubDigits=this._rejectSubDigits,ye._digitIsSub=this._digitIsSub,ye},be.prototype.toArray=function(){for(var ye=[],he=0;he<this.length;++he){ye.push(this.params[he]);var ge=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-ge>0&&ye.push(Array.prototype.slice.call(this._subParams,ge,ie))}return ye},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(ye){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(ye<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=ye>2147483647?2147483647:ye}},be.prototype.addSubParam=function(ye){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(ye<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=ye>2147483647?2147483647:ye,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(ye){return(255&this._subParamsIdx[ye])-(this._subParamsIdx[ye]>>8)>0},be.prototype.getSubParams=function(ye){var he=this._subParamsIdx[ye]>>8,ge=255&this._subParamsIdx[ye];return ge-he>0?this._subParams.subarray(he,ge):null},be.prototype.getSubParamsAll=function(){for(var ye={},he=0;he<this.length;++he){var ge=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-ge>0&&(ye[he]=this._subParams.slice(ge,ie))}return ye},be.prototype.addDigit=function(ye){var he;if(!(this._rejectDigits||!(he=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var ge=this._digitIsSub?this._subParams:this.params,ie=ge[he-1];ge[he-1]=~ie?Math.min(10*ie+ye,2147483647):ye}},be}();ee.Params=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OscHandler=ee.OscParser=void 0;var fe=te(23),be=te(8),ye=function(){function ge(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return ge.prototype.addHandler=function(ie,ue){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var ce=this._handlers[ie];return ce.push(ue),{dispose:function(){var me=ce.indexOf(ue);me!==-1&&ce.splice(me,1)}}},ge.prototype.setHandler=function(ie,ue){this._handlers[ie]=[ue]},ge.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},ge.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},ge.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ge.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},ge.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var ue=ie.length-1;ue>=0;ue--)ie[ue].start();else this._handlerFb(this._id,"START")},ge.prototype._put=function(ie,ue,ce){var me=this._handlers[this._id];if(me)for(var se=me.length-1;se>=0;se--)me[se].put(ie,ue,ce);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,ue,ce))},ge.prototype._end=function(ie){var ue=this._handlers[this._id];if(ue){for(var ce=ue.length-1;ce>=0&&ue[ce].end(ie)===!1;ce--);for(ce--;ce>=0;ce--)ue[ce].end(!1)}else this._handlerFb(this._id,"END",ie)},ge.prototype.start=function(){this.reset(),this._id=-1,this._state=1},ge.prototype.put=function(ie,ue,ce){if(this._state!==3){if(this._state===1)for(;ue<ce;){var me=ie[ue++];if(me===59){this._state=2,this._start();break}if(me<48||57<me)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+me-48}this._state===2&&ce-ue>0&&this._put(ie,ue,ce)}},ge.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},ge}();ee.OscParser=ye;var he=function(){function ge(ie){this._handler=ie,this._data="",this._hitLimit=!1}return ge.prototype.start=function(){this._data="",this._hitLimit=!1},ge.prototype.put=function(ie,ue,ce){this._hitLimit||(this._data+=be.utf32ToString(ie,ue,ce),this._data.length>fe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ge.prototype.end=function(ie){var ue;return this._hitLimit?ue=!1:ie&&(ue=this._handler(this._data)),this._data="",this._hitLimit=!1,ue},ge}();ee.OscHandler=he},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.PAYLOAD_LIMIT=void 0,ee.PAYLOAD_LIMIT=1e7},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DcsHandler=ee.DcsParser=void 0;var fe=te(8),be=te(21),ye=te(23),he=[],ge=function(){function ue(){this._handlers=Object.create(null),this._active=he,this._ident=0,this._handlerFb=function(){}}return ue.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ue.prototype.addHandler=function(ce,me){this._handlers[ce]===void 0&&(this._handlers[ce]=[]);var se=this._handlers[ce];return se.push(me),{dispose:function(){var pe=se.indexOf(me);pe!==-1&&se.splice(pe,1)}}},ue.prototype.setHandler=function(ce,me){this._handlers[ce]=[me]},ue.prototype.clearHandler=function(ce){this._handlers[ce]&&delete this._handlers[ce]},ue.prototype.setHandlerFallback=function(ce){this._handlerFb=ce},ue.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=he,this._ident=0},ue.prototype.hook=function(ce,me){if(this.reset(),this._ident=ce,this._active=this._handlers[ce]||he,this._active.length)for(var se=this._active.length-1;se>=0;se--)this._active[se].hook(me);else this._handlerFb(this._ident,"HOOK",me)},ue.prototype.put=function(ce,me,se){if(this._active.length)for(var pe=this._active.length-1;pe>=0;pe--)this._active[pe].put(ce,me,se);else this._handlerFb(this._ident,"PUT",fe.utf32ToString(ce,me,se))},ue.prototype.unhook=function(ce){if(this._active.length){for(var me=this._active.length-1;me>=0&&this._active[me].unhook(ce)===!1;me--);for(me--;me>=0;me--)this._active[me].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ce);this._active=he,this._ident=0},ue}();ee.DcsParser=ge;var ie=function(){function ue(ce){this._handler=ce,this._data="",this._hitLimit=!1}return ue.prototype.hook=function(ce){this._params=ce.clone(),this._data="",this._hitLimit=!1},ue.prototype.put=function(ce,me,se){this._hitLimit||(this._data+=fe.utf32ToString(ce,me,se),this._data.length>ye.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ue.prototype.unhook=function(ce){var me;return this._hitLimit?me=!1:ce&&(me=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,me},ue}();ee.DcsHandler=ie},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeTerminalFromCache=ee.acquireCharAtlas=void 0;var fe=te(26),be=te(43),ye=[];ee.acquireCharAtlas=function(he,ge,ie,ue,ce){for(var me=fe.generateConfig(ue,ce,he,ie),se=0;se<ye.length;se++){var pe=(oe=ye[se]).ownedBy.indexOf(ge);if(pe>=0){if(fe.configEquals(oe.config,me))return oe.atlas;oe.ownedBy.length===1?(oe.atlas.dispose(),ye.splice(se,1)):oe.ownedBy.splice(pe,1);break}}for(se=0;se<ye.length;se++){var oe=ye[se];if(fe.configEquals(oe.config,me))return oe.ownedBy.push(ge),oe.atlas}var ne={atlas:new be.DynamicCharAtlas(document,me),config:me,ownedBy:[ge]};return ye.push(ne),ne.atlas},ee.removeTerminalFromCache=function(he){for(var ge=0;ge<ye.length;ge++){var ie=ye[ge].ownedBy.indexOf(he);if(ie!==-1){ye[ge].ownedBy.length===1?(ye[ge].atlas.dispose(),ye.splice(ge,1)):ye[ge].ownedBy.splice(ie,1);break}}}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.is256Color=ee.configEquals=ee.generateConfig=void 0;var fe=te(3);ee.generateConfig=function(be,ye,he,ge){var ie={foreground:ge.foreground,background:ge.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:ge.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ye,fontFamily:he.fontFamily,fontSize:he.fontSize,fontWeight:he.fontWeight,fontWeightBold:he.fontWeightBold,allowTransparency:he.allowTransparency,colors:ie}},ee.configEquals=function(be,ye){for(var he=0;he<be.colors.ansi.length;he++)if(be.colors.ansi[he].rgba!==ye.colors.ansi[he].rgba)return!1;return be.devicePixelRatio===ye.devicePixelRatio&&be.fontFamily===ye.fontFamily&&be.fontSize===ye.fontSize&&be.fontWeight===ye.fontWeight&&be.fontWeightBold===ye.fontWeightBold&&be.allowTransparency===ye.allowTransparency&&be.scaledCharWidth===ye.scaledCharWidth&&be.scaledCharHeight===ye.scaledCharHeight&&be.colors.foreground===ye.colors.foreground&&be.colors.background===ye.colors.background},ee.is256Color=function(be){return be<fe.DEFAULT_COLOR}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorManager=ee.DEFAULT_ANSI_COLORS=void 0;var fe=te(10),be=te(45),ye=fe.css.toColor("#ffffff"),he=fe.css.toColor("#000000"),ge=fe.css.toColor("#ffffff"),ie=fe.css.toColor("#000000"),ue={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ee.DEFAULT_ANSI_COLORS=function(){for(var me=[fe.css.toColor("#2e3436"),fe.css.toColor("#cc0000"),fe.css.toColor("#4e9a06"),fe.css.toColor("#c4a000"),fe.css.toColor("#3465a4"),fe.css.toColor("#75507b"),fe.css.toColor("#06989a"),fe.css.toColor("#d3d7cf"),fe.css.toColor("#555753"),fe.css.toColor("#ef2929"),fe.css.toColor("#8ae234"),fe.css.toColor("#fce94f"),fe.css.toColor("#729fcf"),fe.css.toColor("#ad7fa8"),fe.css.toColor("#34e2e2"),fe.css.toColor("#eeeeec")],se=[0,95,135,175,215,255],pe=0;pe<216;pe++){var oe=se[pe/36%6|0],ne=se[pe/6%6|0],a=se[pe%6];me.push({css:fe.channels.toCss(oe,ne,a),rgba:fe.channels.toRgba(oe,ne,a)})}for(pe=0;pe<24;pe++){var y=8+10*pe;me.push({css:fe.channels.toCss(y,y,y),rgba:fe.channels.toRgba(y,y,y)})}return me}();var ce=function(){function me(se,pe){this.allowTransparency=pe;var oe=se.createElement("canvas");oe.width=1,oe.height=1;var ne=oe.getContext("2d");if(!ne)throw new Error("Could not get rendering context");this._ctx=ne,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new be.ColorContrastCache,this.colors={foreground:ye,background:he,cursor:ge,cursorAccent:ie,selectionTransparent:ue,selectionOpaque:fe.color.blend(he,ue),ansi:ee.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return me.prototype.onOptionsChange=function(se){se==="minimumContrastRatio"&&this._contrastCache.clear()},me.prototype.setTheme=function(se){se===void 0&&(se={}),this.colors.foreground=this._parseColor(se.foreground,ye),this.colors.background=this._parseColor(se.background,he),this.colors.cursor=this._parseColor(se.cursor,ge,!0),this.colors.cursorAccent=this._parseColor(se.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(se.selection,ue,!0),this.colors.selectionOpaque=fe.color.blend(this.colors.background,this.colors.selectionTransparent),fe.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=fe.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(se.black,ee.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(se.red,ee.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(se.green,ee.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(se.yellow,ee.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(se.blue,ee.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(se.magenta,ee.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(se.cyan,ee.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(se.white,ee.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(se.brightBlack,ee.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(se.brightRed,ee.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(se.brightGreen,ee.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(se.brightYellow,ee.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(se.brightBlue,ee.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(se.brightMagenta,ee.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(se.brightCyan,ee.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(se.brightWhite,ee.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},me.prototype._parseColor=function(se,pe,oe){if(oe===void 0&&(oe=this.allowTransparency),se===void 0)return pe;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=se,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+se+" is invalid using fallback "+pe.css),pe;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!oe)return console.warn("Color: "+se+" is using transparency, but allowTransparency is false. Using fallback "+pe.css+"."),pe;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(re){return Number(re)}),y=a[0],E=a[1],b=a[2],x=a[3],z=Math.round(255*x);return{rgba:fe.channels.toRgba(y,E,b,z),css:se}}return{css:this._ctx.fillStyle,rgba:fe.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},me}();ee.ColorManager=ce},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.throwIfFalsy=void 0,ee.throwIfFalsy=function(fe){if(!fe)throw new Error("value must not be falsy");return fe}},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ce,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,pe){se.__proto__=pe}||function(se,pe){for(var oe in pe)pe.hasOwnProperty(oe)&&(se[oe]=pe[oe])})(ce,me)},function(ce,me){function se(){this.constructor=ce}fe(ce,me),ce.prototype=me===null?Object.create(me):(se.prototype=me.prototype,new se)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharacterJoinerRegistry=ee.JoinedCellData=void 0;var ye=te(6),he=te(3),ge=te(4),ie=function(ce){function me(se,pe,oe){var ne=ce.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=se.fg,ne.bg=se.bg,ne.combinedData=pe,ne._width=oe,ne}return be(me,ce),me.prototype.isCombined=function(){return 2097152},me.prototype.getWidth=function(){return this._width},me.prototype.getChars=function(){return this.combinedData},me.prototype.getCode=function(){return 2097151},me.prototype.setFromCharData=function(se){throw new Error("not implemented")},me.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},me}(ye.AttributeData);ee.JoinedCellData=ie;var ue=function(){function ce(me){this._bufferService=me,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new ge.CellData}return ce.prototype.registerCharacterJoiner=function(me){var se={id:this._nextCharacterJoinerId++,handler:me};return this._characterJoiners.push(se),se.id},ce.prototype.deregisterCharacterJoiner=function(me){for(var se=0;se<this._characterJoiners.length;se++)if(this._characterJoiners[se].id===me)return this._characterJoiners.splice(se,1),!0;return!1},ce.prototype.getJoinedCharacters=function(me){if(this._characterJoiners.length===0)return[];var se=this._bufferService.buffer.lines.get(me);if(!se||se.length===0)return[];for(var pe=[],oe=se.translateToString(!0),ne=0,a=0,y=0,E=se.getFg(0),b=se.getBg(0),x=0;x<se.getTrimmedLength();x++)if(se.loadCell(x,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(x-ne>1)for(var z=this._getJoinedRanges(oe,y,a,se,ne),re=0;re<z.length;re++)pe.push(z[re]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||he.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(oe,y,a,se,ne),re=0;re<z.length;re++)pe.push(z[re]);return pe},ce.prototype._getJoinedRanges=function(me,se,pe,oe,ne){for(var a=me.substring(se,pe),y=this._characterJoiners[0].handler(a),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(a),x=0;x<b.length;x++)ce._mergeRanges(y,b[x]);return this._stringRangesToCellRanges(y,oe,ne),y},ce.prototype._stringRangesToCellRanges=function(me,se,pe){var oe=0,ne=!1,a=0,y=me[oe];if(y){for(var E=pe;E<this._bufferService.cols;E++){var b=se.getWidth(E),x=se.getString(E).length||he.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&y[0]<=a&&(y[0]=E,ne=!0),y[1]<=a){if(y[1]=E,!(y=me[++oe]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},ce._mergeRanges=function(me,se){for(var pe=!1,oe=0;oe<me.length;oe++){var ne=me[oe];if(pe){if(se[1]<=ne[0])return me[oe-1][1]=se[1],me;if(se[1]<=ne[1])return me[oe-1][1]=Math.max(se[1],ne[1]),me.splice(oe,1),me;me.splice(oe,1),oe--}else{if(se[1]<=ne[0])return me.splice(oe,0,se),me;if(se[1]<=ne[1])return ne[0]=Math.min(se[0],ne[0]),me;se[0]<ne[1]&&(ne[0]=Math.min(se[0],ne[0]),pe=!0)}}return pe?me[me.length-1][1]=se[1]:me.push(se),me},ce}();ee.CharacterJoinerRegistry=ue},function(Ke,ee,te){"use strict";function fe(be,ye){var he=ye.getBoundingClientRect();return[be.clientX-he.left,be.clientY-he.top]}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getRawByteCoords=ee.getCoords=ee.getCoordsRelativeToElement=void 0,ee.getCoordsRelativeToElement=fe,ee.getCoords=function(be,ye,he,ge,ie,ue,ce,me){if(ie){var se=fe(be,ye);if(se)return se[0]=Math.ceil((se[0]+(me?ue/2:0))/ue),se[1]=Math.ceil(se[1]/ce),se[0]=Math.min(Math.max(se[0],1),he+(me?1:0)),se[1]=Math.min(Math.max(se[1],1),ge),se}},ee.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderDebouncer=void 0;var fe=function(){function be(ye){this._renderCallback=ye}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(ye,he,ge){var ie=this;this._rowCount=ge,ye=ye!==void 0?ye:0,he=he!==void 0?he:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,ye):ye,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,he):he,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ie._innerRefresh()}))},be.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var ye=Math.max(this._rowStart,0),he=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ye,he)}},be}();ee.RenderDebouncer=fe},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(he,ge){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var ce in ue)ue.hasOwnProperty(ce)&&(ie[ce]=ue[ce])})(he,ge)},function(he,ge){function ie(){this.constructor=he}fe(he,ge),he.prototype=ge===null?Object.create(ge):(ie.prototype=ge.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.ScreenDprMonitor=void 0;var ye=function(he){function ge(){var ie=he!==null&&he.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(ge,he),ge.prototype.setListener=function(ie){var ue=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){ue._listener&&(ue._listener(window.devicePixelRatio,ue._currentDevicePixelRatio),ue._updateDpr())},this._updateDpr()},ge.prototype.dispose=function(){he.prototype.dispose.call(this),this.clearListener()},ge.prototype._updateDpr=function(){var ie;this._outerListener&&((ie=this._resolutionMediaMatchList)===null||ie===void 0||ie.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},ge.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},ge}(te(2).Disposable);ee.ScreenDprMonitor=ye},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.clone=void 0,ee.clone=function fe(be,ye){if(ye===void 0&&(ye=5),typeof be!="object")return be;var he=Array.isArray(be)?[]:{};for(var ge in be)he[ge]=ye<=1?be[ge]:be[ge]?fe(be[ge],ye-1):be[ge];return he}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var fe=te(4),be=te(35),ye=te(18),he=te(0),ge=te(83),ie=function(){function oe(ne){this._core=new be.Terminal(ne),this._addonManager=new ge.AddonManager}return oe.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(oe.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new se(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"unicode",{get:function(){return this._checkProposedApi(),new pe(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffer",{get:function(){return this._checkProposedApi(),new ce(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),oe.prototype.blur=function(){this._core.blur()},oe.prototype.focus=function(){this._core.focus()},oe.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},oe.prototype.open=function(ne){this._core.open(ne)},oe.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},oe.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},oe.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},oe.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},oe.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},oe.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},oe.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},oe.prototype.addMarker=function(ne){return this.registerMarker(ne)},oe.prototype.hasSelection=function(){return this._core.hasSelection()},oe.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},oe.prototype.getSelection=function(){return this._core.getSelection()},oe.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},oe.prototype.clearSelection=function(){this._core.clearSelection()},oe.prototype.selectAll=function(){this._core.selectAll()},oe.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},oe.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},oe.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},oe.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},oe.prototype.scrollToTop=function(){this._core.scrollToTop()},oe.prototype.scrollToBottom=function(){this._core.scrollToBottom()},oe.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},oe.prototype.clear=function(){this._core.clear()},oe.prototype.write=function(ne,a){this._core.write(ne,a)},oe.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},oe.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
|
|
|
`,a)},oe.prototype.paste=function(ne){this._core.paste(ne)},oe.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},oe.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},oe.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},oe.prototype.reset=function(){this._core.reset()},oe.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(oe,"strings",{get:function(){return ye},enumerable:!1,configurable:!0}),oe.prototype._verifyIntegers=function(){for(var ne=[],a=0;a<arguments.length;a++)ne[a]=arguments[a];for(var y=0,E=ne;y<E.length;y++){var b=E[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},oe}();ee.Terminal=ie;var ue=function(){function oe(ne,a){this._buffer=ne,this.type=a}return oe.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(oe.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),oe.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new me(a)},oe.prototype.getNullCell=function(){return new fe.CellData},oe}(),ce=function(){function oe(ne){var a=this;this._buffers=ne,this._onBufferChange=new he.EventEmitter,this._normal=new ue(this._buffers.normal,"normal"),this._alternate=new ue(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(oe.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),oe}(),me=function(){function oe(ne){this._line=ne}return Object.defineProperty(oe.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),oe.prototype.getCell=function(ne,a){if(!(ne<0||ne>=this._line.length))return a?(this._line.loadCell(ne,a),a):this._line.loadCell(ne,new fe.CellData)},oe.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},oe}(),se=function(){function oe(ne){this._core=ne}return oe.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},oe.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},oe.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},oe.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},oe.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},oe.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},oe.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},oe.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},oe}(),pe=function(){function oe(ne){this._core=ne}return oe.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(oe.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),oe}()},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ht,we){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,He){je.__proto__=He}||function(je,He){for(var Je in He)He.hasOwnProperty(Je)&&(je[Je]=He[Je])})(ht,we)},function(ht,we){function je(){this.constructor=ht}fe(ht,we),ht.prototype=we===null?Object.create(we):(je.prototype=we.prototype,new je)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ye=te(36),he=te(37),ge=te(38),ie=te(12),ue=te(19),ce=te(40),me=te(50),se=te(51),pe=te(11),oe=te(7),ne=te(18),a=te(54),y=te(55),E=te(56),b=te(57),x=te(59),z=te(0),re=te(16),le=te(27),de=te(60),ve=te(5),Se=te(61),Le=te(62),Ee=te(63),Fe=te(64),xe=te(65),lt=typeof window!="undefined"?window.document:null,Ye=function(ht){function we(je){je===void 0&&(je={});var He=ht.call(this,je)||this;return He.browser=pe,He._keyDownHandled=!1,He._onCursorMove=new z.EventEmitter,He._onKey=new z.EventEmitter,He._onRender=new z.EventEmitter,He._onSelectionChange=new z.EventEmitter,He._onTitleChange=new z.EventEmitter,He._onFocus=new z.EventEmitter,He._onBlur=new z.EventEmitter,He._onA11yCharEmitter=new z.EventEmitter,He._onA11yTabEmitter=new z.EventEmitter,He._setup(),He.linkifier=He._instantiationService.createInstance(me.Linkifier),He.linkifier2=He.register(He._instantiationService.createInstance(Ee.Linkifier2)),He.register(He._inputHandler.onRequestBell(function(){return He.bell()})),He.register(He._inputHandler.onRequestRefreshRows(function(Je,$e){return He.refresh(Je,$e)})),He.register(He._inputHandler.onRequestReset(function(){return He.reset()})),He.register(He._inputHandler.onRequestScroll(function(Je,$e){return He.scroll(Je,$e||void 0)})),He.register(He._inputHandler.onRequestWindowsOptionsReport(function(Je){return He._reportWindowsOptions(Je)})),He.register(z.forwardEvent(He._inputHandler.onCursorMove,He._onCursorMove)),He.register(z.forwardEvent(He._inputHandler.onTitleChange,He._onTitleChange)),He.register(z.forwardEvent(He._inputHandler.onA11yChar,He._onA11yCharEmitter)),He.register(z.forwardEvent(He._inputHandler.onA11yTab,He._onA11yTabEmitter)),He.register(He._bufferService.onResize(function(Je){return He._afterResize(Je.cols,Je.rows)})),He}return be(we,ht),Object.defineProperty(we.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),we.prototype.dispose=function(){var je,He,Je;this._isDisposed||(ht.prototype.dispose.call(this),(je=this._renderService)===null||je===void 0||je.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Je=(He=this.element)===null||He===void 0?void 0:He.parentNode)===null||Je===void 0||Je.removeChild(this.element))},we.prototype._setup=function(){ht.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(we.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),we.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},we.prototype._updateOptions=function(je){var He,Je,$e,mt;switch(ht.prototype._updateOptions.call(this,je),je){case"fontFamily":case"fontSize":(He=this._renderService)===null||He===void 0||He.clear(),(Je=this._charSizeService)===null||Je===void 0||Je.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":($e=this.viewport)===null||$e===void 0||$e.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((mt=this._accessibilityManager)===null||mt===void 0||mt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},we.prototype._onTextAreaFocus=function(je){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(je),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},we.prototype.blur=function(){var je;return(je=this.textarea)===null||je===void 0?void 0:je.blur()},we.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},we.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var je=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),He=this._bufferService.buffer.y*je,Je=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=Je+"px",this.textarea.style.top=He+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=je+"px",this.textarea.style.lineHeight=je+"px",this.textarea.style.zIndex="-5"}},we.prototype._initGlobal=function(){var je=this;this._bindKeys(),this.register(oe.addDisposableDomListener(this.element,"copy",function(Je){je.hasSelection()&&ge.copyHandler(Je,je._selectionService)}));var He=function(Je){return ge.handlePasteEvent(Je,je.textarea,je._coreService)};this.register(oe.addDisposableDomListener(this.textarea,"paste",He)),this.register(oe.addDisposableDomListener(this.element,"paste",He)),pe.isFirefox?this.register(oe.addDisposableDomListener(this.element,"mousedown",function(Je){Je.button===2&&ge.rightClickHandler(Je,je.textarea,je.screenElement,je._selectionService,je.options.rightClickSelectsWord)})):this.register(oe.addDisposableDomListener(this.element,"contextmenu",function(Je){ge.rightClickHandler(Je,je.textarea,je.screenElement,je._selectionService,je.options.rightClickSelectsWord)})),pe.isLinux&&this.register(oe.addDisposableDomListener(this.element,"auxclick",function(Je){Je.button===1&&ge.moveTextAreaUnderMouseCursor(Je,je.textarea,je.screenElement)}))},we.prototype._bindKeys=function(){var je=this;this.register(oe.addDisposableDomListener(this.textarea,"keyup",function(He){return je._keyUp(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keydown",function(He){return je._keyDown(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keypress",function(He){return je._keyPress(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"compositionstart",function(){return je._compositionHelper.compositionstart()})),this.register(oe.addDisposableDomListener(this.textarea,"compositionupdate",function(He){return je._compositionHelper.compositionupdate(He)})),this.register(oe.addDisposableDomListener(this.textarea,"compositionend",function(){return je._compositionHelper.compositionend()})),this.register(this.onRender(function(){return je._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(He){return je._queueLinkification(He.start,He.end)}))},we.prototype.open=function(je){var He=this;if(!je)throw new Error("Terminal requires a parent element.");lt.body.contains(je)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=je.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),je.appendChild(this.element);var Je=lt.createDocumentFragment();this._viewportElement=lt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Je.appendChild(this._viewportElement),this._viewportScrollArea=lt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=lt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=lt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Je.appendChild(this.screenElement),this.textarea=lt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",ne.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(oe.addDisposableDomListener(this.textarea,"focus",function(Pt){return He._onTextAreaFocus(Pt)})),this.register(oe.addDisposableDomListener(this.textarea,"blur",function(){return He._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var $e=this._instantiationService.createInstance(Fe.CoreBrowserService,this.textarea);this._instantiationService.setService(ve.ICoreBrowserService,$e),this._charSizeService=this._instantiationService.createInstance(Se.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ve.ICharSizeService,this._charSizeService),this._compositionView=lt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ye.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(Je),this._theme=this.options.theme||this._theme,this._colorManager=new le.ColorManager(lt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Pt){return He._colorManager.onOptionsChange(Pt)})),this._colorManager.setTheme(this._theme);var mt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(de.RenderService,mt,this.rows,this.screenElement)),this._instantiationService.setService(ve.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Pt){return He._onRender.fire(Pt)})),this.onResize(function(Pt){return He._renderService.resize(Pt.cols,Pt.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(ve.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Le.MouseService),this._instantiationService.setService(ve.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(he.Viewport,function(Pt,At){return He.scrollLines(Pt,At)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return He.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){He._renderService.onCursorMove(),He._syncTextArea()})),this.register(this.onResize(function(){return He._renderService.onResize(He.cols,He.rows)})),this.register(this.onBlur(function(){return He._renderService.onBlur()})),this.register(this.onFocus(function(){return He._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return He.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(se.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(ve.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Pt){return He.scrollLines(Pt.amount,Pt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return He._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Pt){return He._renderService.onSelectionChanged(Pt.start,Pt.end,Pt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Pt){He.textarea.value=Pt,He.textarea.focus(),He.textarea.select()})),this.register(this.onScroll(function(){He.viewport.syncScrollArea(),He._selectionService.refresh()})),this.register(oe.addDisposableDomListener(this._viewportElement,"scroll",function(){return He._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return He._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(oe.addDisposableDomListener(this.element,"mousedown",function(Pt){return He._selectionService.onMouseDown(Pt)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},we.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ce.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},we.prototype._setTheme=function(je){var He,Je,$e;this._theme=je,(He=this._colorManager)===null||He===void 0||He.setTheme(je),(Je=this._renderService)===null||Je===void 0||Je.setColors(this._colorManager.colors),($e=this.viewport)===null||$e===void 0||$e.onThemeChange(this._colorManager.colors)},we.prototype.bindMouse=function(){var je=this,He=this,Je=this.element;function $e(Xe){var Ct,Ht,Et=He._mouseService.getRawByteCoords(Xe,He.screenElement,He.cols,He.rows);if(!Et)return!1;switch(Xe.overrideType||Xe.type){case"mousemove":Ht=32,Xe.buttons===void 0?(Ct=3,Xe.button!==void 0&&(Ct=Xe.button<3?Xe.button:3)):Ct=1&Xe.buttons?0:4&Xe.buttons?1:2&Xe.buttons?2:3;break;case"mouseup":Ht=0,Ct=Xe.button<3?Xe.button:3;break;case"mousedown":Ht=1,Ct=Xe.button<3?Xe.button:3;break;case"wheel":Xe.deltaY!==0&&(Ht=Xe.deltaY<0?0:1),Ct=4;break;default:return!1}return!(Ht===void 0||Ct===void 0||Ct>4)&&He._coreMouseService.triggerMouseEvent({col:Et.x-33,row:Et.y-33,button:Ct,action:Ht,ctrl:Xe.ctrlKey,alt:Xe.altKey,shift:Xe.shiftKey})}var mt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Pt=function(Xe){return $e(Xe),Xe.buttons||(je._document.removeEventListener("mouseup",mt.mouseup),mt.mousedrag&&je._document.removeEventListener("mousemove",mt.mousedrag)),je.cancel(Xe)},At=function(Xe){return $e(Xe),Xe.preventDefault(),je.cancel(Xe)},Nt=function(Xe){Xe.buttons&&$e(Xe)},rt=function(Xe){Xe.buttons||$e(Xe)};this.register(this._coreMouseService.onProtocolChange(function(Xe){Xe?(je.optionsService.options.logLevel==="debug"&&je._logService.debug("Binding to mouse events:",je._coreMouseService.explainEvents(Xe)),je.element.classList.add("enable-mouse-events"),je._selectionService.disable()):(je._logService.debug("Unbinding from mouse events."),je.element.classList.remove("enable-mouse-events"),je._selectionService.enable()),8&Xe?mt.mousemove||(Je.addEventListener("mousemove",rt),mt.mousemove=rt):(Je.removeEventListener("mousemove",mt.mousemove),mt.mousemove=null),16&Xe?mt.wheel||(Je.addEventListener("wheel",At,{passive:!1}),mt.wheel=At):(Je.removeEventListener("wheel",mt.wheel),mt.wheel=null),2&Xe?mt.mouseup||(mt.mouseup=Pt):(je._document.removeEventListener("mouseup",mt.mouseup),mt.mouseup=null),4&Xe?mt.mousedrag||(mt.mousedrag=Nt):(je._document.removeEventListener("mousemove",mt.mousedrag),mt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(oe.addDisposableDomListener(Je,"mousedown",function(Xe){if(Xe.preventDefault(),je.focus(),je._coreMouseService.areMouseEventsActive&&!je._selectionService.shouldForceSelection(Xe))return $e(Xe),mt.mouseup&&je._document.addEventListener("mouseup",mt.mouseup),mt.mousedrag&&je._document.addEventListener("mousemove",mt.mousedrag),je.cancel(Xe)})),this.register(oe.addDisposableDomListener(Je,"wheel",function(Xe){if(!mt.wheel){if(!je.buffer.hasScrollback){var Ct=je.viewport.getLinesScrolled(Xe);if(Ct===0)return;for(var Ht=ie.C0.ESC+(je._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Xe.deltaY<0?"A":"B"),Et="",rn=0;rn<Math.abs(Ct);rn++)Et+=Ht;je._coreService.triggerDataEvent(Et,!0)}}},{passive:!0})),this.register(oe.addDisposableDomListener(Je,"wheel",function(Xe){if(!mt.wheel)return je.viewport.onWheel(Xe)?void 0:je.cancel(Xe)},{passive:!1})),this.register(oe.addDisposableDomListener(Je,"touchstart",function(Xe){if(!je._coreMouseService.areMouseEventsActive)return je.viewport.onTouchStart(Xe),je.cancel(Xe)},{passive:!0})),this.register(oe.addDisposableDomListener(Je,"touchmove",function(Xe){if(!je._coreMouseService.areMouseEventsActive)return je.viewport.onTouchMove(Xe)?void 0:je.cancel(Xe)},{passive:!1}))},we.prototype.refresh=function(je,He){var Je;(Je=this._renderService)===null||Je===void 0||Je.refreshRows(je,He)},we.prototype._queueLinkification=function(je,He){var Je;(Je=this.linkifier)===null||Je===void 0||Je.linkifyRows(je,He)},we.prototype.updateCursorStyle=function(je){this._selectionService&&this._selectionService.shouldColumnSelect(je)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},we.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},we.prototype.scrollLines=function(je,He){ht.prototype.scrollLines.call(this,je,He),this.refresh(0,this.rows-1)},we.prototype.paste=function(je){ge.paste(je,this.textarea,this._coreService)},we.prototype.attachCustomKeyEventHandler=function(je){this._customKeyEventHandler=je},we.prototype.registerLinkMatcher=function(je,He,Je){var $e=this.linkifier.registerLinkMatcher(je,He,Je);return this.refresh(0,this.rows-1),$e},we.prototype.deregisterLinkMatcher=function(je){this.linkifier.deregisterLinkMatcher(je)&&this.refresh(0,this.rows-1)},we.prototype.registerLinkProvider=function(je){return this.linkifier2.registerLinkProvider(je)},we.prototype.registerCharacterJoiner=function(je){var He=this._renderService.registerCharacterJoiner(je);return this.refresh(0,this.rows-1),He},we.prototype.deregisterCharacterJoiner=function(je){this._renderService.deregisterCharacterJoiner(je)&&this.refresh(0,this.rows-1)},Object.defineProperty(we.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),we.prototype.addMarker=function(je){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+je)},we.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},we.prototype.select=function(je,He,Je){this._selectionService.setSelection(je,He,Je)},we.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},we.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},we.prototype.clearSelection=function(){var je;(je=this._selectionService)===null||je===void 0||je.clearSelection()},we.prototype.selectAll=function(){var je;(je=this._selectionService)===null||je===void 0||je.selectAll()},we.prototype.selectLines=function(je,He){var Je;(Je=this._selectionService)===null||Je===void 0||Je.selectLines(je,He)},we.prototype._keyDown=function(je){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(je)===!1)return!1;if(!this._compositionHelper.keydown(je))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var He=x.evaluateKeyboardEvent(je,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(je),He.type===3||He.type===2){var Je=this.rows-1;return this.scrollLines(He.type===2?-Je:Je),this.cancel(je,!0)}return He.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,je)||(He.cancel&&this.cancel(je,!0),!He.key||(He.key!==ie.C0.ETX&&He.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:He.key,domEvent:je}),this._showCursor(),this._coreService.triggerDataEvent(He.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(je,!0)))},we.prototype._isThirdLevelShift=function(je,He){var Je=je.isMac&&!this.options.macOptionIsMeta&&He.altKey&&!He.ctrlKey&&!He.metaKey||je.isWindows&&He.altKey&&He.ctrlKey&&!He.metaKey;return He.type==="keypress"?Je:Je&&(!He.keyCode||He.keyCode>47)},we.prototype._keyUp=function(je){this._customKeyEventHandler&&this._customKeyEventHandler(je)===!1||(function(He){return He.keyCode===16||He.keyCode===17||He.keyCode===18}(je)||this.focus(),this.updateCursorStyle(je))},we.prototype._keyPress=function(je){var He;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(je)===!1)return!1;if(this.cancel(je),je.charCode)He=je.charCode;else if(je.which===null||je.which===void 0)He=je.keyCode;else{if(je.which===0||je.charCode===0)return!1;He=je.which}return!(!He||(je.altKey||je.ctrlKey||je.metaKey)&&!this._isThirdLevelShift(this.browser,je))&&(He=String.fromCharCode(He),this._onKey.fire({key:He,domEvent:je}),this._showCursor(),this._coreService.triggerDataEvent(He,!0),!0)},we.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},we.prototype.resize=function(je,He){je!==this.cols||He!==this.rows?ht.prototype.resize.call(this,je,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},we.prototype._afterResize=function(je,He){var Je,$e;(Je=this._charSizeService)===null||Je===void 0||Je.measure(),($e=this.viewport)===null||$e===void 0||$e.syncScrollArea(!0)},we.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var je=1;je<this.rows;je++)this.buffer.lines.push(this.buffer.getBlankLine(re.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},we.prototype.reset=function(){var je,He;this.options.rows=this.rows,this.options.cols=this.cols;var Je=this._customKeyEventHandler;this._setup(),ht.prototype.reset.call(this),(je=this._selectionService)===null||je===void 0||je.reset(),this._customKeyEventHandler=Je,this.refresh(0,this.rows-1),(He=this.viewport)===null||He===void 0||He.syncScrollArea()},we.prototype._reportWindowsOptions=function(je){if(this._renderService)switch(je){case ue.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var He=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),Je=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+Je+";"+He+"t");break;case ue.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var $e=this._renderService.dimensions.scaledCellWidth.toFixed(0),mt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+mt+";"+$e+"t")}},we.prototype.cancel=function(je,He){if(this.options.cancelEvents||He)return je.preventDefault(),je.stopPropagation(),!1},we.prototype._visualBell=function(){return!1},we.prototype._soundBell=function(){return this.options.bellStyle==="sound"},we}(xe.CoreTerminal);ee.Terminal=Ye},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ie,ue,ce,me){var se,pe=arguments.length,oe=pe<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,ce):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,ce,me);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(oe=(pe<3?se(oe):pe>3?se(ue,ce,oe):se(ue,ce))||oe);return pe>3&&oe&&Object.defineProperty(ue,ce,oe),oe},be=this&&this.__param||function(ie,ue){return function(ce,me){ue(ce,me,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CompositionHelper=void 0;var ye=te(5),he=te(1),ge=function(){function ie(ue,ce,me,se,pe,oe){this._textarea=ue,this._compositionView=ce,this._bufferService=me,this._optionsService=se,this._charSizeService=pe,this._coreService=oe,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ie.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ie.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ie.prototype.compositionupdate=function(ue){var ce=this;this._compositionView.textContent=ue.data,this.updateCompositionElements(),setTimeout(function(){ce._compositionPosition.end=ce._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(ue){if(this._isComposing||this._isSendingComposition){if(ue.keyCode===229||ue.keyCode===16||ue.keyCode===17||ue.keyCode===18)return!1;this._finalizeComposition(!1)}return ue.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(ue){var ce=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,ue){var me={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(ce._isSendingComposition){ce._isSendingComposition=!1;var pe=void 0;pe=ce._isComposing?ce._textarea.value.substring(me.start,me.end):ce._textarea.value.substring(me.start),ce._coreService.triggerDataEvent(pe,!0)}},0)}else{this._isSendingComposition=!1;var se=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(se,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var ue=this,ce=this._textarea.value;setTimeout(function(){if(!ue._isComposing){var me=ue._textarea.value.replace(ce,"");me.length>0&&ue._coreService.triggerDataEvent(me,!0)}},0)},ie.prototype.updateCompositionElements=function(ue){var ce=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var me=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),se=this._bufferService.buffer.y*me,pe=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=pe+"px",this._compositionView.style.top=se+"px",this._compositionView.style.height=me+"px",this._compositionView.style.lineHeight=me+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var oe=this._compositionView.getBoundingClientRect();this._textarea.style.left=pe+"px",this._textarea.style.top=se+"px",this._textarea.style.width=oe.width+"px",this._textarea.style.height=oe.height+"px",this._textarea.style.lineHeight=oe.height+"px"}ue||setTimeout(function(){return ce.updateCompositionElements(!0)},0)}},ie=fe([be(2,he.IBufferService),be(3,he.IOptionsService),be(4,ye.ICharSizeService),be(5,he.ICoreService)],ie)}();ee.CompositionHelper=ge},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var a,y=arguments.length,E=y<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(pe,oe,E):a(pe,oe))||E);return y>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Viewport=void 0;var ge=te(2),ie=te(7),ue=te(5),ce=te(1),me=function(se){function pe(oe,ne,a,y,E,b,x){var z=se.call(this)||this;return z._scrollLines=oe,z._viewportElement=ne,z._scrollArea=a,z._bufferService=y,z._optionsService=E,z._charSizeService=b,z._renderService=x,z.scrollBarWidth=0,z._currentRowHeight=0,z._lastRecordedBufferLength=0,z._lastRecordedViewportHeight=0,z._lastRecordedBufferHeight=0,z._lastTouchY=0,z._lastScrollTop=0,z._wheelPartialScroll=0,z._refreshAnimationFrame=null,z._ignoreNextScrollEvent=!1,z.scrollBarWidth=z._viewportElement.offsetWidth-z._scrollArea.offsetWidth||15,z.register(ie.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(pe,se),pe.prototype.onThemeChange=function(oe){this._viewportElement.style.backgroundColor=oe.background.css},pe.prototype._refresh=function(oe){var ne=this;if(oe)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},pe.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var oe=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==oe&&(this._lastRecordedBufferHeight=oe,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ne&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ne),this._refreshAnimationFrame=null},pe.prototype.syncScrollArea=function(oe){if(oe===void 0&&(oe=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(oe);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===ne&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(oe)}else this._refresh(oe)},pe.prototype._onScroll=function(oe){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ne=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ne,!0)}},pe.prototype._bubbleScroll=function(oe,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(oe.cancelable&&oe.preventDefault(),!1)},pe.prototype.onWheel=function(oe){var ne=this._getPixelsScrolled(oe);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},pe.prototype._getPixelsScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},pe.prototype.getLinesScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(ne/=this._currentRowHeight+0,this._wheelPartialScroll+=ne,ne=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},pe.prototype._applyScrollModifier=function(oe,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?oe*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:oe*this._optionsService.options.scrollSensitivity},pe.prototype.onTouchStart=function(oe){this._lastTouchY=oe.touches[0].pageY},pe.prototype.onTouchMove=function(oe){var ne=this._lastTouchY-oe.touches[0].pageY;return this._lastTouchY=oe.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},pe=ye([he(3,ce.IBufferService),he(4,ce.IOptionsService),he(5,ue.ICharSizeService),he(6,ue.IRenderService)],pe)}(ge.Disposable);ee.Viewport=me},function(Ke,ee,te){"use strict";function fe(ge){return ge.replace(/\r?\n/g,"\r")}function be(ge,ie){return ie?"\x1B[200~"+ge+"\x1B[201~":ge}function ye(ge,ie,ue){ge=be(ge=fe(ge),ue.decPrivateModes.bracketedPasteMode),ue.triggerDataEvent(ge,!0),ie.value=""}function he(ge,ie,ue){var ce=ue.getBoundingClientRect(),me=ge.clientX-ce.left-10,se=ge.clientY-ce.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=me+"px",ie.style.top=se+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(ee,"__esModule",{value:!0}),ee.rightClickHandler=ee.moveTextAreaUnderMouseCursor=ee.paste=ee.handlePasteEvent=ee.copyHandler=ee.bracketTextForPaste=ee.prepareTextForTerminal=void 0,ee.prepareTextForTerminal=fe,ee.bracketTextForPaste=be,ee.copyHandler=function(ge,ie){ge.clipboardData&&ge.clipboardData.setData("text/plain",ie.selectionText),ge.preventDefault()},ee.handlePasteEvent=function(ge,ie,ue){ge.stopPropagation(),ge.clipboardData&&ye(ge.clipboardData.getData("text/plain"),ie,ue)},ee.paste=ye,ee.moveTextAreaUnderMouseCursor=he,ee.rightClickHandler=function(ge,ie,ue,ce,me){he(ge,ie,ue),me&&!ce.isClickInSelection(ge)&&ce.selectWordAtCursor(ge),ie.value=ce.selectionText,ie.select()}},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.EscapeSequenceParser=ee.VT500_TRANSITION_TABLE=ee.TransitionTable=void 0;var ye=te(2),he=te(15),ge=te(21),ie=te(22),ue=te(24),ce=function(){function se(pe){this.table=new Uint8Array(pe)}return se.prototype.setDefault=function(pe,oe){he.fill(this.table,pe<<4|oe)},se.prototype.add=function(pe,oe,ne,a){this.table[oe<<8|pe]=ne<<4|a},se.prototype.addMany=function(pe,oe,ne,a){for(var y=0;y<pe.length;y++)this.table[oe<<8|pe[y]]=ne<<4|a},se}();ee.TransitionTable=ce,ee.VT500_TRANSITION_TABLE=function(){var se=new ce(4095),pe=Array.apply(null,Array(256)).map(function(b,x){return x}),oe=function(b,x){return pe.slice(b,x)},ne=oe(32,127),a=oe(0,24);a.push(25),a.push.apply(a,oe(28,32));var y,E=oe(0,14);for(y in se.setDefault(1,0),se.addMany(ne,0,2,0),E)se.addMany([24,26,153,154],y,3,0),se.addMany(oe(128,144),y,3,0),se.addMany(oe(144,152),y,3,0),se.add(156,y,0,0),se.add(27,y,11,1),se.add(157,y,4,8),se.addMany([152,158,159],y,0,7),se.add(155,y,11,3),se.add(144,y,11,9);return se.addMany(a,0,3,0),se.addMany(a,1,3,1),se.add(127,1,0,1),se.addMany(a,8,0,8),se.addMany(a,3,3,3),se.add(127,3,0,3),se.addMany(a,4,3,4),se.add(127,4,0,4),se.addMany(a,6,3,6),se.addMany(a,5,3,5),se.add(127,5,0,5),se.addMany(a,2,3,2),se.add(127,2,0,2),se.add(93,1,4,8),se.addMany(ne,8,5,8),se.add(127,8,5,8),se.addMany([156,27,24,26,7],8,6,0),se.addMany(oe(28,32),8,0,8),se.addMany([88,94,95],1,0,7),se.addMany(ne,7,0,7),se.addMany(a,7,0,7),se.add(156,7,0,0),se.add(127,7,0,7),se.add(91,1,11,3),se.addMany(oe(64,127),3,7,0),se.addMany(oe(48,60),3,8,4),se.addMany([60,61,62,63],3,9,4),se.addMany(oe(48,60),4,8,4),se.addMany(oe(64,127),4,7,0),se.addMany([60,61,62,63],4,0,6),se.addMany(oe(32,64),6,0,6),se.add(127,6,0,6),se.addMany(oe(64,127),6,0,0),se.addMany(oe(32,48),3,9,5),se.addMany(oe(32,48),5,9,5),se.addMany(oe(48,64),5,0,6),se.addMany(oe(64,127),5,7,0),se.addMany(oe(32,48),4,9,5),se.addMany(oe(32,48),1,9,2),se.addMany(oe(32,48),2,9,2),se.addMany(oe(48,127),2,10,0),se.addMany(oe(48,80),1,10,0),se.addMany(oe(81,88),1,10,0),se.addMany([89,90,92],1,10,0),se.addMany(oe(96,127),1,10,0),se.add(80,1,11,9),se.addMany(a,9,0,9),se.add(127,9,0,9),se.addMany(oe(28,32),9,0,9),se.addMany(oe(32,48),9,9,12),se.addMany(oe(48,60),9,8,10),se.addMany([60,61,62,63],9,9,10),se.addMany(a,11,0,11),se.addMany(oe(32,128),11,0,11),se.addMany(oe(28,32),11,0,11),se.addMany(a,10,0,10),se.add(127,10,0,10),se.addMany(oe(28,32),10,0,10),se.addMany(oe(48,60),10,8,10),se.addMany([60,61,62,63],10,0,11),se.addMany(oe(32,48),10,9,12),se.addMany(a,12,0,12),se.add(127,12,0,12),se.addMany(oe(28,32),12,0,12),se.addMany(oe(32,48),12,9,12),se.addMany(oe(48,64),12,0,11),se.addMany(oe(64,127),12,12,13),se.addMany(oe(64,127),10,12,13),se.addMany(oe(64,127),9,12,13),se.addMany(a,13,13,13),se.addMany(ne,13,13,13),se.add(127,13,0,13),se.addMany([27,156,24,26],13,14,0),se.add(160,0,2,0),se.add(160,8,5,8),se.add(160,6,0,6),se.add(160,11,0,11),se.add(160,13,13,13),se}();var me=function(se){function pe(oe){oe===void 0&&(oe=ee.VT500_TRANSITION_TABLE);var ne=se.call(this)||this;return ne._transitions=oe,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new ge.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(a,y,E){},ne._executeHandlerFb=function(a){},ne._csiHandlerFb=function(a,y){},ne._escHandlerFb=function(a){},ne._errorHandlerFb=function(a){return a},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ie.OscParser,ne._dcsParser=new ue.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(pe,se),pe.prototype._identifier=function(oe,ne){ne===void 0&&(ne=[64,126]);var a=0;if(oe.prefix){if(oe.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=oe.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(oe.intermediates){if(oe.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<oe.intermediates.length;++y){var E=oe.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(oe.final.length!==1)throw new Error("final must be a single byte");var b=oe.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return a<<=8,a|=b},pe.prototype.identToString=function(oe){for(var ne=[];oe;)ne.push(String.fromCharCode(255&oe)),oe>>=8;return ne.reverse().join("")},pe.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},pe.prototype.setPrintHandler=function(oe){this._printHandler=oe},pe.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},pe.prototype.addEscHandler=function(oe,ne){var a=this._identifier(oe,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},pe.prototype.setEscHandler=function(oe,ne){this._escHandlers[this._identifier(oe,[48,126])]=[ne]},pe.prototype.clearEscHandler=function(oe){this._escHandlers[this._identifier(oe,[48,126])]&&delete this._escHandlers[this._identifier(oe,[48,126])]},pe.prototype.setEscHandlerFallback=function(oe){this._escHandlerFb=oe},pe.prototype.setExecuteHandler=function(oe,ne){this._executeHandlers[oe.charCodeAt(0)]=ne},pe.prototype.clearExecuteHandler=function(oe){this._executeHandlers[oe.charCodeAt(0)]&&delete this._executeHandlers[oe.charCodeAt(0)]},pe.prototype.setExecuteHandlerFallback=function(oe){this._executeHandlerFb=oe},pe.prototype.addCsiHandler=function(oe,ne){var a=this._identifier(oe);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},pe.prototype.setCsiHandler=function(oe,ne){this._csiHandlers[this._identifier(oe)]=[ne]},pe.prototype.clearCsiHandler=function(oe){this._csiHandlers[this._identifier(oe)]&&delete this._csiHandlers[this._identifier(oe)]},pe.prototype.setCsiHandlerFallback=function(oe){this._csiHandlerFb=oe},pe.prototype.addDcsHandler=function(oe,ne){return this._dcsParser.addHandler(this._identifier(oe),ne)},pe.prototype.setDcsHandler=function(oe,ne){this._dcsParser.setHandler(this._identifier(oe),ne)},pe.prototype.clearDcsHandler=function(oe){this._dcsParser.clearHandler(this._identifier(oe))},pe.prototype.setDcsHandlerFallback=function(oe){this._dcsParser.setHandlerFallback(oe)},pe.prototype.addOscHandler=function(oe,ne){return this._oscParser.addHandler(oe,ne)},pe.prototype.setOscHandler=function(oe,ne){this._oscParser.setHandler(oe,ne)},pe.prototype.clearOscHandler=function(oe){this._oscParser.clearHandler(oe)},pe.prototype.setOscHandlerFallback=function(oe){this._oscParser.setHandlerFallback(oe)},pe.prototype.setErrorHandler=function(oe){this._errorHandler=oe},pe.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},pe.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},pe.prototype.parse=function(oe,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,re=this._params,le=this._transitions.table,de=0;de<ne;++de){switch((y=le[E<<8|((a=oe[de])<160?a:160)])>>4){case 2:for(var ve=de+1;;++ve){if(ve>=ne||(a=oe[ve])<32||a>126&&a<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(a=oe[ve])<32||a>126&&a<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(a=oe[ve])<32||a>126&&a<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(a=oe[ve])<32||a>126&&a<160){this._printHandler(oe,de,ve),de=ve-1;break}}break;case 3:this._executeHandlers[a]?this._executeHandlers[a]():this._executeHandlerFb(a),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:de,code:a,currentState:E,collect:z,params:re,abort:!1}).abort)return;break;case 7:for(var Se=this._csiHandlers[z<<8|a],Le=Se?Se.length-1:-1;Le>=0&&Se[Le](re)===!1;Le--);Le<0&&this._csiHandlerFb(z<<8|a,re),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:re.addParam(0);break;case 58:re.addSubParam(-1);break;default:re.addDigit(a-48)}while(++de<ne&&(a=oe[de])>47&&a<60);de--;break;case 9:z<<=8,z|=a;break;case 10:for(var Ee=this._escHandlers[z<<8|a],Fe=Ee?Ee.length-1:-1;Fe>=0&&Ee[Fe]()===!1;Fe--);Fe<0&&this._escHandlerFb(z<<8|a),this.precedingCodepoint=0;break;case 11:re.reset(),re.addParam(0),z=0;break;case 12:x.hook(z<<8|a,re);break;case 13:for(var xe=de+1;;++xe)if(xe>=ne||(a=oe[xe])===24||a===26||a===27||a>127&&a<160){x.put(oe,de,xe),de=xe-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var lt=de+1;;lt++)if(lt>=ne||(a=oe[lt])<32||a>127&&a<=159){b.put(oe,de,lt),de=lt-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0}E=15&y}this._collect=z,this.currentState=E},pe}(ye.Disposable);ee.EscapeSequenceParser=me},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var le in re)re.hasOwnProperty(le)&&(z[le]=re[le])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var le,de=arguments.length,ve=de<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(le=b[Se])&&(ve=(de<3?le(ve):de>3?le(x,z,ve):le(x,z))||ve);return de>3&&ve&&Object.defineProperty(x,z,ve),ve},he=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Renderer=void 0;var ge=te(41),ie=te(47),ue=te(48),ce=te(49),me=te(29),se=te(2),pe=te(5),oe=te(1),ne=te(25),a=te(0),y=1,E=function(b){function x(z,re,le,de,ve,Se,Le,Ee,Fe){var xe=b.call(this)||this;xe._colors=z,xe._screenElement=re,xe._bufferService=ve,xe._charSizeService=Se,xe._optionsService=Le,xe._id=y++,xe._onRequestRedraw=new a.EventEmitter;var lt=xe._optionsService.options.allowTransparency;return xe._characterJoinerRegistry=new me.CharacterJoinerRegistry(xe._bufferService),xe._renderLayers=[new ge.TextRenderLayer(xe._screenElement,0,xe._colors,xe._characterJoinerRegistry,lt,xe._id,xe._bufferService,Le),new ie.SelectionRenderLayer(xe._screenElement,1,xe._colors,xe._id,xe._bufferService,Le),new ce.LinkRenderLayer(xe._screenElement,2,xe._colors,xe._id,le,de,xe._bufferService,Le),new ue.CursorRenderLayer(xe._screenElement,3,xe._colors,xe._id,xe._onRequestRedraw,xe._bufferService,Le,Ee,Fe)],xe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},xe._devicePixelRatio=window.devicePixelRatio,xe._updateDimensions(),xe.onOptionsChanged(),xe}return be(x,b),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var z=0,re=this._renderLayers;z<re.length;z++)re[z].dispose();b.prototype.dispose.call(this),ne.removeTerminalFromCache(this._id)},x.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},x.prototype.setColors=function(z){this._colors=z;for(var re=0,le=this._renderLayers;re<le.length;re++){var de=le[re];de.setColors(this._colors),de.reset()}},x.prototype.onResize=function(z,re){this._updateDimensions();for(var le=0,de=this._renderLayers;le<de.length;le++)de[le].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},x.prototype.onBlur=function(){this._runOperation(function(z){return z.onBlur()})},x.prototype.onFocus=function(){this._runOperation(function(z){return z.onFocus()})},x.prototype.onSelectionChanged=function(z,re,le){le===void 0&&(le=!1),this._runOperation(function(de){return de.onSelectionChanged(z,re,le)})},x.prototype.onCursorMove=function(){this._runOperation(function(z){return z.onCursorMove()})},x.prototype.onOptionsChanged=function(){this._runOperation(function(z){return z.onOptionsChanged()})},x.prototype.clear=function(){this._runOperation(function(z){return z.reset()})},x.prototype._runOperation=function(z){for(var re=0,le=this._renderLayers;re<le.length;re++)z(le[re])},x.prototype.renderRows=function(z,re){for(var le=0,de=this._renderLayers;le<de.length;le++)de[le].onGridChanged(z,re)},x.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},x.prototype.registerCharacterJoiner=function(z){return this._characterJoinerRegistry.registerCharacterJoiner(z)},x.prototype.deregisterCharacterJoiner=function(z){return this._characterJoinerRegistry.deregisterCharacterJoiner(z)},x=ye([he(4,oe.IBufferService),he(5,pe.ICharSizeService),he(6,oe.IOptionsService),he(7,oe.ICoreService),he(8,pe.ICoreBrowserService)],x)}(se.Disposable);ee.Renderer=E},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.TextRenderLayer=void 0;var ye=te(42),he=te(13),ge=te(6),ie=te(3),ue=te(29),ce=te(4),me=function(se){function pe(oe,ne,a,y,E,b,x,z){var re=se.call(this,oe,"text",ne,E,a,b,x,z)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new ce.CellData,re._state=new ye.GridCache,re._characterJoinerRegistry=y,re}return be(pe,se),pe.prototype.resize=function(oe){se.prototype.resize.call(this,oe);var ne=this._getFont(!1,!1);this._characterWidth===oe.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=oe.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},pe.prototype.reset=function(){this._state.clear(),this._clearAll()},pe.prototype._forEachCell=function(oe,ne,a,y){for(var E=oe;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=a?a.getJoinedCharacters(b):[],re=0;re<this._bufferService.cols;re++){x.loadCell(re,this._workCell);var le=this._workCell,de=!1,ve=re;if(le.getWidth()!==0){if(z.length>0&&re===z[0][0]){de=!0;var Se=z.shift();le=new ue.JoinedCellData(this._workCell,x.translateToString(!0,Se[0],Se[1]),Se[1]-Se[0]),ve=Se[1]-1}!de&&this._isOverlapping(le)&&ve<x.length-1&&x.getCodePoint(ve+1)===ie.NULL_CELL_CODE&&(le.content&=-12582913,le.content|=2<<22),y(le,re,E),re=ve}}},pe.prototype._drawBackground=function(oe,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;y.save(),this._forEachCell(oe,ne,null,function(re,le,de){var ve=null;re.isInverse()?ve=re.isFgDefault()?a._colors.foreground.css:re.isFgRGB()?"rgb("+ge.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":a._colors.ansi[re.getFgColor()].css:re.isBgRGB()?ve="rgb("+ge.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(ve=a._colors.ansi[re.getBgColor()].css),z===null&&(b=le,x=de),de!==x?(y.fillStyle=z||"",a._fillCells(b,x,E-b,1),b=le,x=de):z!==ve&&(y.fillStyle=z||"",a._fillCells(b,x,le-b,1),b=le,x=de),z=ve}),z!==null&&(y.fillStyle=z,this._fillCells(b,x,E-b,1)),y.restore()},pe.prototype._drawForeground=function(oe,ne){var a=this;this._forEachCell(oe,ne,this._characterJoinerRegistry,function(y,E,b){if(!y.isInvisible()&&(a._drawChars(y,E,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+ge.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var x=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&x<8&&(x+=8),a._ctx.fillStyle=a._colors.ansi[x].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+ge.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var z=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&z<8&&(z+=8),a._ctx.fillStyle=a._colors.ansi[z].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},pe.prototype.onGridChanged=function(oe,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,oe,this._bufferService.cols,ne-oe+1),this._drawBackground(oe,ne),this._drawForeground(oe,ne))},pe.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},pe.prototype._isOverlapping=function(oe){if(oe.getWidth()!==1||oe.getCode()<256)return!1;var ne=oe.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},pe}(he.BaseRenderLayer);ee.TextRenderLayer=me},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.GridCache=void 0;var fe=function(){function be(){this.cache=[]}return be.prototype.resize=function(ye,he){for(var ge=0;ge<ye;ge++){this.cache.length<=ge&&this.cache.push([]);for(var ie=this.cache[ge].length;ie<he;ie++)this.cache[ge].push(void 0);this.cache[ge].length=he}this.cache.length=ye},be.prototype.clear=function(){for(var ye=0;ye<this.cache.length;ye++)for(var he=0;he<this.cache[ye].length;he++)this.cache[ye][he]=void 0},be}();ee.GridCache=fe},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(a,y){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x])})(a,y)},function(a,y){function E(){this.constructor=a}fe(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.NoneCharAtlas=ee.DynamicCharAtlas=ee.getGlyphCacheKey=void 0;var ye=te(9),he=te(44),ge=te(27),ie=te(46),ue=te(11),ce=te(28),me=te(10),se={css:"rgba(0, 0, 0, 0)",rgba:0};function pe(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}ee.getGlyphCacheKey=pe;var oe=function(a){function y(E,b){var x=a.call(this)||this;x._config=b,x._drawToCacheCount=0,x._glyphsWaitingOnBitmap=[],x._bitmapCommitTimeout=null,x._bitmap=null,x._cacheCanvas=E.createElement("canvas"),x._cacheCanvas.width=1024,x._cacheCanvas.height=1024,x._cacheCtx=ce.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=ce.throwIfFalsy(z.getContext("2d",{alpha:x._config.allowTransparency})),x._width=Math.floor(1024/x._config.scaledCharWidth),x._height=Math.floor(1024/x._config.scaledCharHeight);var re=x._width*x._height;return x._cacheMap=new ie.LRUMap(re),x._cacheMap.prealloc(re),x}return be(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.draw=function(E,b,x,z){if(b.code===32)return!0;if(!this._canCache(b))return!1;var re=pe(b),le=this._cacheMap.get(re);if(le!=null)return this._drawFromCache(E,le,x,z),!0;if(this._drawToCacheCount<100){var de=void 0;de=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ve=this._drawToCache(b,de);return this._cacheMap.set(re,ve),this._drawFromCache(E,ve,x,z),!0}return!1},y.prototype._canCache=function(E){return E.code<256},y.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(E,b,x,z){if(!b.isEmpty){var re=this._toCoordinateX(b.index),le=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,le,this._config.scaledCharWidth,this._config.scaledCharHeight,x,z,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:ge.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?se:E.bg===ye.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},y.prototype._getForegroundColor=function(E){return E.fg===ye.INVERTED_DEFAULT_COLOR?me.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},y.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var x=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var z=E.bold?this._config.fontWeightBold:this._config.fontWeight,re=E.italic?"italic":"";this._tmpCtx.font=re+" "+z+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(E).css,E.dim&&(this._tmpCtx.globalAlpha=ye.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var le=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),de=!1;this._config.allowTransparency||(de=function(Ee,Fe){for(var xe=!0,lt=Fe.rgba>>>24,Ye=Fe.rgba>>>16&255,ht=Fe.rgba>>>8&255,we=0;we<Ee.data.length;we+=4)Ee.data[we]===lt&&Ee.data[we+1]===Ye&&Ee.data[we+2]===ht?Ee.data[we+3]=0:xe=!1;return xe}(le,x));var ve=this._toCoordinateX(b),Se=this._toCoordinateY(b);this._cacheCtx.putImageData(le,ve,Se);var Le={index:b,isEmpty:de,inBitmap:!1};return this._addGlyphToBitmap(Le),Le},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||ue.isFirefox||ue.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(x){E._bitmap=x;for(var z=0;z<b.length;z++)b[z].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(he.BaseCharAtlas);ee.DynamicCharAtlas=oe;var ne=function(a){function y(E,b){return a.call(this)||this}return be(y,a),y.prototype.draw=function(E,b,x,z){return!1},y}(he.BaseCharAtlas);ee.NoneCharAtlas=ne},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseCharAtlas=void 0;var fe=function(){function be(){this._didWarmUp=!1}return be.prototype.dispose=function(){},be.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},be.prototype._doWarmUp=function(){},be.prototype.beginFrame=function(){},be}();ee.BaseCharAtlas=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorContrastCache=void 0;var fe=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(ye,he,ge){this._rgba[ye]||(this._rgba[ye]={}),this._rgba[ye][he]=ge},be.prototype.getCss=function(ye,he){return this._rgba[ye]?this._rgba[ye][he]:void 0},be.prototype.setColor=function(ye,he,ge){this._color[ye]||(this._color[ye]={}),this._color[ye][he]=ge},be.prototype.getColor=function(ye,he){return this._color[ye]?this._color[ye][he]:void 0},be}();ee.ColorContrastCache=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.LRUMap=void 0;var fe=function(){function be(ye){this.capacity=ye,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(ye){var he=ye.prev,ge=ye.next;ye===this._head&&(this._head=ge),ye===this._tail&&(this._tail=he),he!==null&&(he.next=ge),ge!==null&&(ge.prev=he)},be.prototype._appendNode=function(ye){var he=this._tail;he!==null&&(he.next=ye),ye.prev=he,ye.next=null,this._tail=ye,this._head===null&&(this._head=ye)},be.prototype.prealloc=function(ye){for(var he=this._nodePool,ge=0;ge<ye;ge++)he.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ye){var he=this._map[ye];return he!==void 0?(this._unlinkNode(he),this._appendNode(he),he.value):null},be.prototype.peekValue=function(ye){var he=this._map[ye];return he!==void 0?he.value:null},be.prototype.peek=function(){var ye=this._head;return ye===null?null:ye.value},be.prototype.set=function(ye,he){var ge=this._map[ye];if(ge!==void 0)ge=this._map[ye],this._unlinkNode(ge),ge.value=he;else if(this.size>=this.capacity)ge=this._head,this._unlinkNode(ge),delete this._map[ge.key],ge.key=ye,ge.value=he,this._map[ye]=ge;else{var ie=this._nodePool;ie.length>0?((ge=ie.pop()).key=ye,ge.value=he):ge={prev:null,next:null,key:ye,value:he},this._map[ye]=ge,this.size++}this._appendNode(ge)},be}();ee.LRUMap=fe},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(he,ge){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var ce in ue)ue.hasOwnProperty(ce)&&(ie[ce]=ue[ce])})(he,ge)},function(he,ge){function ie(){this.constructor=he}fe(he,ge),he.prototype=ge===null?Object.create(ge):(ie.prototype=ge.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionRenderLayer=void 0;var ye=function(he){function ge(ie,ue,ce,me,se,pe){var oe=he.call(this,ie,"selection",ue,!0,ce,me,se,pe)||this;return oe._clearState(),oe}return be(ge,he),ge.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},ge.prototype.resize=function(ie){he.prototype.resize.call(this,ie),this._clearState()},ge.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},ge.prototype.onSelectionChanged=function(ie,ue,ce){if(this._didStateChange(ie,ue,ce,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&ue){var me=ie[1]-this._bufferService.buffer.ydisp,se=ue[1]-this._bufferService.buffer.ydisp,pe=Math.max(me,0),oe=Math.min(se,this._bufferService.rows-1);if(!(pe>=this._bufferService.rows||oe<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ce){var ne=ie[0],a=ue[0]-ne,y=oe-pe+1;this._fillCells(ne,pe,a,y)}else{ne=me===pe?ie[0]:0;var E=pe===oe?ue[0]:this._bufferService.cols;this._fillCells(ne,pe,E-ne,1);var b=Math.max(oe-pe-1,0);if(this._fillCells(0,pe+1,this._bufferService.cols,b),pe!==oe){var x=se===oe?ue[0]:this._bufferService.cols;this._fillCells(0,oe,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[ue[0],ue[1]],this._state.columnSelectMode=ce,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},ge.prototype._didStateChange=function(ie,ue,ce,me){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(ue,this._state.end)||ce!==this._state.columnSelectMode||me!==this._state.ydisp},ge.prototype._areCoordinatesEqual=function(ie,ue){return!(!ie||!ue)&&ie[0]===ue[0]&&ie[1]===ue[1]},ge}(te(13).BaseRenderLayer);ee.SelectionRenderLayer=ye},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CursorRenderLayer=void 0;var ye=te(13),he=te(4),ge=function(ue){function ce(me,se,pe,oe,ne,a,y,E,b){var x=ue.call(this,me,"cursor",se,!0,pe,oe,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new he.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return be(ce,ue),ce.prototype.resize=function(me){ue.prototype.resize.call(this,me),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ce.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ce.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onOptionsChanged=function(){var me,se=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){se._render(!0)})):((me=this._cursorBlinkStateManager)===null||me===void 0||me.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype.onGridChanged=function(me,se){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype._render=function(me){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,pe=se-this._bufferService.buffer.ydisp;if(pe<0||pe>=this._bufferService.rows)this._clearCursor();else{var oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(se).loadCell(oe,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ne=this._optionsService.options.cursorStyle;return ne&&ne!=="block"?this._cursorRenderers[ne](oe,pe,this._cell):this._renderBlurCursor(oe,pe,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=pe,this._state.isFocused=!1,this._state.style=ne,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===oe&&this._state.y===pe&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](oe,pe,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=pe,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ce.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},ce.prototype._renderBarCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(me,se,this._optionsService.options.cursorWidth),this._ctx.restore()},ce.prototype._renderBlockCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(me,se,pe.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(pe,me,se),this._ctx.restore()},ce.prototype._renderUnderlineCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(me,se),this._ctx.restore()},ce.prototype._renderBlurCursor=function(me,se,pe){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(me,se,pe.getWidth(),1),this._ctx.restore()},ce}(ye.BaseRenderLayer);ee.CursorRenderLayer=ge;var ie=function(){function ue(ce,me){this._renderCallback=me,this.isCursorVisible=!0,ce&&this._restartInterval()}return Object.defineProperty(ue.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),ue.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},ue.prototype.restartBlinkAnimation=function(){var ce=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._animationFrame=void 0})))},ue.prototype._restartInterval=function(ce){var me=this;ce===void 0&&(ce=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(me._animationTimeRestarted){var se=600-(Date.now()-me._animationTimeRestarted);if(me._animationTimeRestarted=void 0,se>0)return void me._restartInterval(se)}me.isCursorVisible=!1,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0}),me._blinkInterval=window.setInterval(function(){if(me._animationTimeRestarted){var pe=600-(Date.now()-me._animationTimeRestarted);return me._animationTimeRestarted=void 0,void me._restartInterval(pe)}me.isCursorVisible=!me.isCursorVisible,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0})},600)},ce)},ue.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},ue.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},ue}()},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.LinkRenderLayer=void 0;var ye=te(13),he=te(9),ge=te(26),ie=function(ue){function ce(me,se,pe,oe,ne,a,y,E){var b=ue.call(this,me,"link",se,!0,pe,oe,y,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),a.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),a.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return be(ce,ue),ce.prototype.resize=function(me){ue.prototype.resize.call(this,me),this._state=void 0},ce.prototype.reset=function(){this._clearCurrentLink()},ce.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var me=this._state.y2-this._state.y1-1;me>0&&this._clearCells(0,this._state.y1+1,this._state.cols,me),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},ce.prototype._onShowLinkUnderline=function(me){if(me.fg===he.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:me.fg&&ge.is256Color(me.fg)?this._ctx.fillStyle=this._colors.ansi[me.fg].css:this._ctx.fillStyle=this._colors.foreground.css,me.y1===me.y2)this._fillBottomLineAtCells(me.x1,me.y1,me.x2-me.x1);else{this._fillBottomLineAtCells(me.x1,me.y1,me.cols-me.x1);for(var se=me.y1+1;se<me.y2;se++)this._fillBottomLineAtCells(0,se,me.cols);this._fillBottomLineAtCells(0,me.y2,me.x2)}this._state=me},ce.prototype._onHideLinkUnderline=function(me){this._clearCurrentLink()},ce}(ye.BaseRenderLayer);ee.LinkRenderLayer=ie},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ue,ce,me,se){var pe,oe=arguments.length,ne=oe<3?ce:se===null?se=Object.getOwnPropertyDescriptor(ce,me):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,ce,me,se);else for(var a=ue.length-1;a>=0;a--)(pe=ue[a])&&(ne=(oe<3?pe(ne):oe>3?pe(ce,me,ne):pe(ce,me))||ne);return oe>3&&ne&&Object.defineProperty(ce,me,ne),ne},be=this&&this.__param||function(ue,ce){return function(me,se){ce(me,se,ue)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZone=ee.Linkifier=void 0;var ye=te(0),he=te(1),ge=function(){function ue(ce,me,se){this._bufferService=ce,this._logService=me,this._unicodeService=se,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new ye.EventEmitter,this._onHideLinkUnderline=new ye.EventEmitter,this._onLinkTooltip=new ye.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(ue.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),ue.prototype.attachToDom=function(ce,me){this._element=ce,this._mouseZoneManager=me},ue.prototype.linkifyRows=function(ce,me){var se=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ce,this._rowsToLinkify.end=me):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ce),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,me)),this._mouseZoneManager.clearAll(ce,me),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return se._linkifyRows()},ue._timeBeforeLatency))},ue.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ce=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var me=ce.ydisp+this._rowsToLinkify.start;if(!(me>=ce.lines.length)){for(var se=ce.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,pe=Math.ceil(2e3/this._bufferService.cols),oe=this._bufferService.buffer.iterator(!1,me,se,pe,pe);oe.hasNext();)for(var ne=oe.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},ue.prototype.registerLinkMatcher=function(ce,me,se){if(se===void 0&&(se={}),!me)throw new Error("handler must be defined");var pe={id:this._nextLinkMatcherId++,regex:ce,handler:me,matchIndex:se.matchIndex,validationCallback:se.validationCallback,hoverTooltipCallback:se.tooltipCallback,hoverLeaveCallback:se.leaveCallback,willLinkActivate:se.willLinkActivate,priority:se.priority||0};return this._addLinkMatcherToList(pe),pe.id},ue.prototype._addLinkMatcherToList=function(ce){if(this._linkMatchers.length!==0){for(var me=this._linkMatchers.length-1;me>=0;me--)if(ce.priority<=this._linkMatchers[me].priority)return void this._linkMatchers.splice(me+1,0,ce);this._linkMatchers.splice(0,0,ce)}else this._linkMatchers.push(ce)},ue.prototype.deregisterLinkMatcher=function(ce){for(var me=0;me<this._linkMatchers.length;me++)if(this._linkMatchers[me].id===ce)return this._linkMatchers.splice(me,1),!0;return!1},ue.prototype._doLinkifyRow=function(ce,me,se){for(var pe,oe=this,ne=new RegExp(se.regex.source,(se.regex.flags||"")+"g"),a=-1,y=function(){var b=pe[typeof se.matchIndex!="number"?0:se.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",pe,se),"break";if(a=me.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(ce,a);if(x[0]<0)return"break";var z=E._bufferService.buffer.lines.get(x[0]);if(!z)return"break";var re=z.getFg(x[1]),le=re?re>>9&511:void 0;se.validationCallback?se.validationCallback(b,function(de){oe._rowsTimeoutId||de&&oe._addLink(x[1],x[0]-oe._bufferService.buffer.ydisp,b,se,le)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,se,le)},E=this;(pe=ne.exec(me))!==null&&y()!=="break";);},ue.prototype._addLink=function(ce,me,se,pe,oe){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(se),y=ce%this._bufferService.cols,E=me+Math.floor(ce/this._bufferService.cols),b=(y+a)%this._bufferService.cols,x=E+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ie(y+1,E+1,b+1,x+1,function(z){if(pe.handler)return pe.handler(z,se);var re=window.open();re?(re.opener=null,re.location.href=se):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),pe.hoverTooltipCallback&&pe.hoverTooltipCallback(z,se,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.remove("xterm-cursor-pointer"),pe.hoverLeaveCallback&&pe.hoverLeaveCallback()},function(z){return!pe.willLinkActivate||pe.willLinkActivate(z,se)}))}},ue.prototype._createLinkHoverEvent=function(ce,me,se,pe,oe){return{x1:ce,y1:me,x2:se,y2:pe,cols:this._bufferService.cols,fg:oe}},ue._timeBeforeLatency=200,ue=fe([be(0,he.IBufferService),be(1,he.ILogService),be(2,he.IUnicodeService)],ue)}();ee.Linkifier=ge;var ie=function(ue,ce,me,se,pe,oe,ne,a,y){this.x1=ue,this.y1=ce,this.x2=me,this.y2=se,this.clickCallback=pe,this.hoverCallback=oe,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};ee.MouseZone=ie},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var le in re)re.hasOwnProperty(le)&&(z[le]=re[le])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var le,de=arguments.length,ve=de<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(le=b[Se])&&(ve=(de<3?le(ve):de>3?le(x,z,ve):le(x,z))||ve);return de>3&&ve&&Object.defineProperty(x,z,ve),ve},he=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionService=void 0;var ge=te(11),ie=te(52),ue=te(4),ce=te(0),me=te(5),se=te(1),pe=te(30),oe=te(53),ne=te(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(z,re,le,de,ve,Se,Le){var Ee=b.call(this)||this;return Ee._element=z,Ee._screenElement=re,Ee._bufferService=le,Ee._coreService=de,Ee._mouseService=ve,Ee._optionsService=Se,Ee._renderService=Le,Ee._dragScrollAmount=0,Ee._enabled=!0,Ee._workCell=new ue.CellData,Ee._mouseDownTimeStamp=0,Ee._onLinuxMouseSelection=Ee.register(new ce.EventEmitter),Ee._onRedrawRequest=Ee.register(new ce.EventEmitter),Ee._onSelectionChange=Ee.register(new ce.EventEmitter),Ee._onRequestScrollLines=Ee.register(new ce.EventEmitter),Ee._mouseMoveListener=function(Fe){return Ee._onMouseMove(Fe)},Ee._mouseUpListener=function(Fe){return Ee._onMouseUp(Fe)},Ee._coreService.onUserInput(function(){Ee.hasSelection&&Ee.clearSelection()}),Ee._trimListener=Ee._bufferService.buffer.lines.onTrim(function(Fe){return Ee._onTrim(Fe)}),Ee.register(Ee._bufferService.buffers.onBufferActivate(function(Fe){return Ee._onBufferActivate(Fe)})),Ee.enable(),Ee._model=new ie.SelectionModel(Ee._bufferService),Ee._activeSelectionMode=0,Ee}return be(x,b),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var z=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;return!(!z||!re)&&(z[0]!==re[0]||z[1]!==re[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var z=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;if(!z||!re)return"";var le=this._bufferService.buffer,de=[];if(this._activeSelectionMode===3){if(z[0]===re[0])return"";for(var ve=z[1];ve<=re[1];ve++){var Se=le.translateBufferLineToString(ve,!0,z[0],re[0]);de.push(Se)}}else{var Le=z[1]===re[1]?re[0]:void 0;for(de.push(le.translateBufferLineToString(z[1],!0,z[0],Le)),ve=z[1]+1;ve<=re[1]-1;ve++){var Ee=le.lines.get(ve);Se=le.translateBufferLineToString(ve,!0),Ee&&Ee.isWrapped?de[de.length-1]+=Se:de.push(Se)}z[1]!==re[1]&&(Ee=le.lines.get(re[1]),Se=le.translateBufferLineToString(re[1],!0,0,re[0]),Ee&&Ee.isWrapped?de[de.length-1]+=Se:de.push(Se))}return de.map(function(Fe){return Fe.replace(y," ")}).join(ge.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(z){var re=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return re._refresh()})),ge.isLinux&&z&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},x.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},x.prototype.isClickInSelection=function(z){var re=this._getMouseBufferCoords(z),le=this._model.finalSelectionStart,de=this._model.finalSelectionEnd;return!!(le&&de&&re)&&this._areCoordsInSelection(re,le,de)},x.prototype._areCoordsInSelection=function(z,re,le){return z[1]>re[1]&&z[1]<le[1]||re[1]===le[1]&&z[1]===re[1]&&z[0]>=re[0]&&z[0]<le[0]||re[1]<le[1]&&z[1]===le[1]&&z[0]<le[0]||re[1]<le[1]&&z[1]===re[1]&&z[0]>=re[0]},x.prototype.selectWordAtCursor=function(z){var re=this._getMouseBufferCoords(z);re&&(this._selectWordAt(re,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(z,re){this._model.clearSelection(),z=Math.max(z,0),re=Math.min(re,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,z],this._model.selectionEnd=[this._bufferService.cols,re],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(z){this._model.onTrim(z)&&this.refresh()},x.prototype._getMouseBufferCoords=function(z){var re=this._mouseService.getCoords(z,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(re)return re[0]--,re[1]--,re[1]+=this._bufferService.buffer.ydisp,re},x.prototype._getMouseEventScrollAmount=function(z){var re=pe.getCoordsRelativeToElement(z,this._screenElement)[1],le=this._renderService.dimensions.canvasHeight;return re>=0&&re<=le?0:(re>le&&(re-=le),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},x.prototype.shouldForceSelection=function(z){return ge.isMac?z.altKey&&this._optionsService.options.macOptionClickForcesSelection:z.shiftKey},x.prototype.onMouseDown=function(z){if(this._mouseDownTimeStamp=z.timeStamp,(z.button!==2||!this.hasSelection)&&z.button===0){if(!this._enabled){if(!this.shouldForceSelection(z))return;z.stopPropagation()}z.preventDefault(),this._dragScrollAmount=0,this._enabled&&z.shiftKey?this._onIncrementalClick(z):z.detail===1?this._onSingleClick(z):z.detail===2?this._onDoubleClick(z):z.detail===3&&this._onTripleClick(z),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var z=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return z._dragScroll()},50)},x.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},x.prototype._onIncrementalClick=function(z){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(z))},x.prototype._onSingleClick=function(z){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(z)?3:0,this._model.selectionStart=this._getMouseBufferCoords(z),this._model.selectionStart){this._model.selectionEnd=void 0;var re=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);re&&re.length!==this._model.selectionStart[0]&&re.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=1,this._selectWordAt(re,!0))},x.prototype._onTripleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=2,this._selectLineAt(re[1]))},x.prototype.shouldColumnSelect=function(z){return z.altKey&&!(ge.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(z){if(z.stopImmediatePropagation(),this._model.selectionStart){var re=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(z),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(z),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var le=this._bufferService.buffer;if(this._model.selectionEnd[1]<le.lines.length){var de=le.lines.get(this._model.selectionEnd[1]);de&&de.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}re&&re[0]===this._model.selectionEnd[0]&&re[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},x.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var z=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(z.ydisp+this._bufferService.rows,z.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=z.ydisp),this.refresh()}},x.prototype._onMouseUp=function(z){var re=z.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&re<500&&z.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var le=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(le&&le[0]!==void 0&&le[1]!==void 0){var de=oe.moveToCellSequence(le[0]-1,le[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(de,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(z){var re=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=z.activeBuffer.lines.onTrim(function(le){return re._onTrim(le)})},x.prototype._convertViewportColToCharacterIndex=function(z,re){for(var le=re[0],de=0;re[0]>=de;de++){var ve=z.loadCell(de,this._workCell).getChars().length;this._workCell.getWidth()===0?le--:ve>1&&re[0]!==de&&(le+=ve-1)}return le},x.prototype.setSelection=function(z,re,le){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,re],this._model.selectionStartLength=le,this.refresh()},x.prototype._getWordAt=function(z,re,le,de){if(le===void 0&&(le=!0),de===void 0&&(de=!0),!(z[0]>=this._bufferService.cols)){var ve=this._bufferService.buffer,Se=ve.lines.get(z[1]);if(Se){var Le=ve.translateBufferLineToString(z[1],!1),Ee=this._convertViewportColToCharacterIndex(Se,z),Fe=Ee,xe=z[0]-Ee,lt=0,Ye=0,ht=0,we=0;if(Le.charAt(Ee)===" "){for(;Ee>0&&Le.charAt(Ee-1)===" ";)Ee--;for(;Fe<Le.length&&Le.charAt(Fe+1)===" ";)Fe++}else{var je=z[0],He=z[0];Se.getWidth(je)===0&&(lt++,je--),Se.getWidth(He)===2&&(Ye++,He++);var Je=Se.getString(He).length;for(Je>1&&(we+=Je-1,Fe+=Je-1);je>0&&Ee>0&&!this._isCharWordSeparator(Se.loadCell(je-1,this._workCell));){Se.loadCell(je-1,this._workCell);var $e=this._workCell.getChars().length;this._workCell.getWidth()===0?(lt++,je--):$e>1&&(ht+=$e-1,Ee-=$e-1),Ee--,je--}for(;He<Se.length&&Fe+1<Le.length&&!this._isCharWordSeparator(Se.loadCell(He+1,this._workCell));){Se.loadCell(He+1,this._workCell);var mt=this._workCell.getChars().length;this._workCell.getWidth()===2?(Ye++,He++):mt>1&&(we+=mt-1,Fe+=mt-1),Fe++,He++}}Fe++;var Pt=Ee+xe-lt+ht,At=Math.min(this._bufferService.cols,Fe-Ee+lt+Ye-ht-we);if(re||Le.slice(Ee,Fe).trim()!==""){if(le&&Pt===0&&Se.getCodePoint(0)!==32){var Nt=ve.lines.get(z[1]-1);if(Nt&&Se.isWrapped&&Nt.getCodePoint(this._bufferService.cols-1)!==32){var rt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(rt){var Xe=this._bufferService.cols-rt.start;Pt-=Xe,At+=Xe}}}if(de&&Pt+At===this._bufferService.cols&&Se.getCodePoint(this._bufferService.cols-1)!==32){var Ct=ve.lines.get(z[1]+1);if(Ct&&Ct.isWrapped&&Ct.getCodePoint(0)!==32){var Ht=this._getWordAt([0,z[1]+1],!1,!1,!0);Ht&&(At+=Ht.length)}}return{start:Pt,length:At}}}}},x.prototype._selectWordAt=function(z,re){var le=this._getWordAt(z,re);if(le){for(;le.start<0;)le.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[le.start,z[1]],this._model.selectionStartLength=le.length}},x.prototype._selectToWordAt=function(z){var re=this._getWordAt(z,!0);if(re){for(var le=z[1];re.start<0;)re.start+=this._bufferService.cols,le--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,le++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,le]}},x.prototype._isCharWordSeparator=function(z){return z.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(z.getChars())>=0},x.prototype._selectLineAt=function(z){var re=this._bufferService.buffer.getWrappedRangeForLine(z);this._model.selectionStart=[0,re.first],this._model.selectionEnd=[this._bufferService.cols,re.last],this._model.selectionStartLength=0},x=ye([he(2,se.IBufferService),he(3,se.ICoreService),he(4,me.IMouseService),he(5,se.IOptionsService),he(6,me.IRenderService)],x)}(ne.Disposable);ee.SelectionService=E},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionModel=void 0;var fe=function(){function be(ye){this._bufferService=ye,this.isSelectAllActive=!1,this.selectionStartLength=0}return be.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(be.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var ye=this.selectionStart[0]+this.selectionStartLength;return ye>this._bufferService.cols?[ye%this._bufferService.cols,this.selectionStart[1]+Math.floor(ye/this._bufferService.cols)]:[ye,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),be.prototype.areSelectionValuesReversed=function(){var ye=this.selectionStart,he=this.selectionEnd;return!(!ye||!he)&&(ye[1]>he[1]||ye[1]===he[1]&&ye[0]>he[0])},be.prototype.onTrim=function(ye){return this.selectionStart&&(this.selectionStart[1]-=ye),this.selectionEnd&&(this.selectionEnd[1]-=ye),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();ee.SelectionModel=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.moveToCellSequence=void 0;var fe=te(12);function be(ce,me,se,pe){var oe=ce-ye(se,ce),ne=me-ye(se,me);return ue(Math.abs(oe-ne)-function(a,y,E){for(var b=0,x=a-ye(E,a),z=y-ye(E,y),re=0;re<Math.abs(x-z);re++){var le=he(a,y)==="A"?-1:1,de=E.buffer.lines.get(x+le*re);de&&de.isWrapped&&b++}return b}(ce,me,se),ie(he(ce,me),pe))}function ye(ce,me){for(var se=0,pe=ce.buffer.lines.get(me),oe=pe&&pe.isWrapped;oe&&me>=0&&me<ce.rows;)se++,oe=(pe=ce.buffer.lines.get(--me))&&pe.isWrapped;return se}function he(ce,me){return ce>me?"A":"B"}function ge(ce,me,se,pe,oe,ne){for(var a=ce,y=me,E="";a!==se||y!==pe;)a+=oe?1:-1,oe&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,ce,a),a=0,ce=0,y++):!oe&&a<0&&(E+=ne.buffer.translateBufferLineToString(y,!1,0,ce+1),ce=a=ne.cols-1,y--);return E+ne.buffer.translateBufferLineToString(y,!1,ce,a)}function ie(ce,me){var se=me?"O":"[";return fe.C0.ESC+se+ce}function ue(ce,me){ce=Math.floor(ce);for(var se="",pe=0;pe<ce;pe++)se+=me;return se}ee.moveToCellSequence=function(ce,me,se,pe){var oe,ne=se.buffer.x,a=se.buffer.y;if(!se.buffer.hasScrollback)return function(E,b,x,z,re,le){return be(b,z,re,le).length===0?"":ue(ge(E,b,E,b-ye(re,b),!1,re).length,ie("D",le))}(ne,a,0,me,se,pe)+be(a,me,se,pe)+function(E,b,x,z,re,le){var de;de=be(b,z,re,le).length>0?z-ye(re,z):b;var ve=z,Se=function(Le,Ee,Fe,xe,lt,Ye){var ht;return ht=be(Fe,xe,lt,Ye).length>0?xe-ye(lt,xe):Ee,Le<Fe&&ht<=xe||Le>=Fe&&ht<xe?"C":"D"}(E,b,x,z,re,le);return ue(ge(E,de,x,ve,Se==="C",re).length,ie(Se,le))}(ne,a,ce,me,se,pe);if(a===me)return oe=ne>ce?"D":"C",ue(Math.abs(ne-ce),ie(oe,pe));oe=a>me?"D":"C";var y=Math.abs(a-me);return ue(function(E,b){return b.cols-E}(a>me?ce:ne,se)+(y-1)*se.cols+1+((a>me?ne:ce)-1),ie(oe,pe))}},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ge,ie,ue,ce){var me,se=arguments.length,pe=se<3?ie:ce===null?ce=Object.getOwnPropertyDescriptor(ie,ue):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(ge,ie,ue,ce);else for(var oe=ge.length-1;oe>=0;oe--)(me=ge[oe])&&(pe=(se<3?me(pe):se>3?me(ie,ue,pe):me(ie,ue))||pe);return se>3&&pe&&Object.defineProperty(ie,ue,pe),pe},be=this&&this.__param||function(ge,ie){return function(ue,ce){ie(ue,ce,ge)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SoundService=void 0;var ye=te(1),he=function(){function ge(ie){this._optionsService=ie}return Object.defineProperty(ge,"audioContext",{get:function(){if(!ge._audioContext){var ie=window.AudioContext||window.webkitAudioContext;if(!ie)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;ge._audioContext=new ie}return ge._audioContext},enumerable:!1,configurable:!0}),ge.prototype.playBellSound=function(){var ie=ge.audioContext;if(ie){var ue=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ce){ue.buffer=ce,ue.connect(ie.destination),ue.start(0)})}},ge.prototype._base64ToArrayBuffer=function(ie){for(var ue=window.atob(ie),ce=ue.length,me=new Uint8Array(ce),se=0;se<ce;se++)me[se]=ue.charCodeAt(se);return me.buffer},ge.prototype._removeMimeType=function(ie){return ie.split(",")[1]},ge=fe([be(0,ye.IOptionsService)],ge)}();ee.SoundService=he},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var a,y=arguments.length,E=y<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(pe,oe,E):a(pe,oe))||E);return y>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZoneManager=void 0;var ge=te(2),ie=te(7),ue=te(5),ce=te(1),me=function(se){function pe(oe,ne,a,y,E,b){var x=se.call(this)||this;return x._element=oe,x._screenElement=ne,x._bufferService=a,x._mouseService=y,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(ie.addDisposableDomListener(x._element,"mousedown",function(z){return x._onMouseDown(z)})),x._mouseMoveListener=function(z){return x._onMouseMove(z)},x._mouseLeaveListener=function(z){return x._onMouseLeave(z)},x._clickListener=function(z){return x._onClick(z)},x}return be(pe,se),pe.prototype.dispose=function(){se.prototype.dispose.call(this),this._deactivate()},pe.prototype.add=function(oe){this._zones.push(oe),this._zones.length===1&&this._activate()},pe.prototype.clearAll=function(oe,ne){if(this._zones.length!==0){oe&&ne||(oe=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>oe&&y.y1<=ne+1||y.y2>oe&&y.y2<=ne+1||y.y1<oe&&y.y2>ne+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,1))}this._zones.length===0&&this._deactivate()}},pe.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},pe.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},pe.prototype._onMouseMove=function(oe){this._lastHoverCoords[0]===oe.pageX&&this._lastHoverCoords[1]===oe.pageY||(this._onHover(oe),this._lastHoverCoords=[oe.pageX,oe.pageY])},pe.prototype._onHover=function(oe){var ne=this,a=this._findZoneEventAt(oe);a!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),a&&(this._currentZone=a,a.hoverCallback&&a.hoverCallback(oe),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(oe)},this._optionsService.options.linkTooltipHoverDuration)))},pe.prototype._onTooltip=function(oe){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(oe);ne&&ne.tooltipCallback&&ne.tooltipCallback(oe)},pe.prototype._onMouseDown=function(oe){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(oe);ne!=null&&ne.willLinkActivate(oe)&&(oe.preventDefault(),oe.stopImmediatePropagation())}},pe.prototype._onMouseLeave=function(oe){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},pe.prototype._onClick=function(oe){var ne=this._findZoneEventAt(oe),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(oe),oe.preventDefault(),oe.stopImmediatePropagation())},pe.prototype._getSelectionLength=function(){var oe=this._selectionService.selectionText;return oe?oe.length:0},pe.prototype._findZoneEventAt=function(oe){var ne=this._mouseService.getCoords(oe,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},pe=ye([he(2,ce.IBufferService),he(3,ue.IMouseService),he(4,ue.ISelectionService),he(5,ce.IOptionsService)],pe)}(ge.Disposable);ee.MouseZoneManager=me},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(pe,oe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,a){ne.__proto__=a}||function(ne,a){for(var y in a)a.hasOwnProperty(y)&&(ne[y]=a[y])})(pe,oe)},function(pe,oe){function ne(){this.constructor=pe}fe(pe,oe),pe.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AccessibilityManager=void 0;var ye=te(18),he=te(11),ge=te(31),ie=te(7),ue=te(2),ce=te(32),me=te(17),se=function(pe){function oe(ne,a){var y=pe.call(this)||this;y._terminal=ne,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var E=0;E<y._terminal.rows;E++)y._rowElements[E]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[E]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new ge.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
|
|
|
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new ce.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(ie.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return be(oe,pe),oe.prototype.dispose=function(){pe.prototype.dispose.call(this),me.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},oe.prototype._onBoundaryFocus=function(ne,a){var y=ne.target,E=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(a===0?(b=y,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){var z=this._createAccessibilityTreeNode();this._rowElements.unshift(z),this._rowContainer.insertAdjacentElement("afterbegin",z)}else z=this._createAccessibilityTreeNode(),this._rowElements.push(z),this._rowContainer.appendChild(z);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},oe.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},oe.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},oe.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},oe.prototype._onChar=function(ne){var a=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=ye.tooMuchOutput)),he.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},oe.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,he.isMac&&me.removeElementFromParent(this._liveRegion)},oe.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},oe.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},oe.prototype._renderRows=function(ne,a){for(var y=this._terminal.buffer,E=y.lines.length.toString(),b=ne;b<=a;b++){var x=y.translateBufferLineToString(y.ydisp+b,!0),z=(y.ydisp+b+1).toString(),re=this._rowElements[b];re&&(x.length===0?re.innerHTML=" ":re.textContent=x,re.setAttribute("aria-posinset",z),re.setAttribute("aria-setsize",E))}this._announceCharacters()},oe.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ne=0;ne<this._terminal.rows;ne++)this._refreshRowDimensions(this._rowElements[ne])}},oe.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},oe.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},oe}(ue.Disposable);ee.AccessibilityManager=se},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(y,E){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var z in x)x.hasOwnProperty(z)&&(b[z]=x[z])})(y,E)},function(y,E){function b(){this.constructor=y}fe(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),ye=this&&this.__decorate||function(y,E,b,x){var z,re=arguments.length,le=re<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(y,E,b,x);else for(var de=y.length-1;de>=0;de--)(z=y[de])&&(le=(re<3?z(le):re>3?z(E,b,le):z(E,b))||le);return re>3&&le&&Object.defineProperty(E,b,le),le},he=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRenderer=void 0;var ge=te(58),ie=te(9),ue=te(2),ce=te(5),me=te(1),se=te(0),pe=te(10),oe=te(17),ne=1,a=function(y){function E(b,x,z,re,le,de,ve,Se,Le){var Ee=y.call(this)||this;return Ee._colors=b,Ee._element=x,Ee._screenElement=z,Ee._viewportElement=re,Ee._linkifier=le,Ee._linkifier2=de,Ee._charSizeService=ve,Ee._optionsService=Se,Ee._bufferService=Le,Ee._terminalClass=ne++,Ee._rowElements=[],Ee._rowContainer=document.createElement("div"),Ee._rowContainer.classList.add("xterm-rows"),Ee._rowContainer.style.lineHeight="normal",Ee._rowContainer.setAttribute("aria-hidden","true"),Ee._refreshRowElements(Ee._bufferService.cols,Ee._bufferService.rows),Ee._selectionContainer=document.createElement("div"),Ee._selectionContainer.classList.add("xterm-selection"),Ee._selectionContainer.setAttribute("aria-hidden","true"),Ee.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Ee._updateDimensions(),Ee._injectCss(),Ee._rowFactory=new ge.DomRendererRowFactory(document,Ee._optionsService,Ee._colors),Ee._element.classList.add("xterm-dom-renderer-owner-"+Ee._terminalClass),Ee._screenElement.appendChild(Ee._rowContainer),Ee._screenElement.appendChild(Ee._selectionContainer),Ee._linkifier.onShowLinkUnderline(function(Fe){return Ee._onLinkHover(Fe)}),Ee._linkifier.onHideLinkUnderline(function(Fe){return Ee._onLinkLeave(Fe)}),Ee._linkifier2.onShowLinkUnderline(function(Fe){return Ee._onLinkHover(Fe)}),Ee._linkifier2.onHideLinkUnderline(function(Fe){return Ee._onLinkLeave(Fe)}),Ee}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new se.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),oe.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},E.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var b=0,x=this._rowElements;b<x.length;b++){var z=x[b];z.style.width=this.dimensions.canvasWidth+"px",z.style.height=this.dimensions.actualCellHeight+"px",z.style.lineHeight=this.dimensions.actualCellHeight+"px",z.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var re=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=re,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},E.prototype.setColors=function(b){this._colors=b,this._injectCss()},E.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var x=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";x+=this._terminalSelector+" span:not(."+ge.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+ge.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+ge.ITALIC_CLASS+" { font-style: italic;}",x+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",x+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",x+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_BLINK_CLASS+":not(."+ge.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_BLINK_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",x+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(z,re){x+=b._terminalSelector+" .xterm-fg-"+re+" { color: "+z.css+"; }"+b._terminalSelector+" .xterm-bg-"+re+" { background-color: "+z.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ie.INVERTED_DEFAULT_COLOR+" { color: "+pe.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ie.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=x},E.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},E.prototype._refreshRowElements=function(b,x){for(var z=this._rowElements.length;z<=x;z++){var re=document.createElement("div");this._rowContainer.appendChild(re),this._rowElements.push(re)}for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(b,x){this._refreshRowElements(b,x),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},E.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},E.prototype.onSelectionChanged=function(b,x,z){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&x){var re=b[1]-this._bufferService.buffer.ydisp,le=x[1]-this._bufferService.buffer.ydisp,de=Math.max(re,0),ve=Math.min(le,this._bufferService.rows-1);if(!(de>=this._bufferService.rows||ve<0)){var Se=document.createDocumentFragment();if(z)Se.appendChild(this._createSelectionElement(de,b[0],x[0],ve-de+1));else{var Le=re===de?b[0]:0,Ee=de===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(de,Le,Ee));var Fe=ve-de-1;if(Se.appendChild(this._createSelectionElement(de+1,0,this._bufferService.cols,Fe)),de!==ve){var xe=le===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(ve,0,xe))}}this._selectionContainer.appendChild(Se)}}},E.prototype._createSelectionElement=function(b,x,z,re){re===void 0&&(re=1);var le=document.createElement("div");return le.style.height=re*this.dimensions.actualCellHeight+"px",le.style.top=b*this.dimensions.actualCellHeight+"px",le.style.left=x*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(z-x)+"px",le},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var b=0,x=this._rowElements;b<x.length;b++)x[b].innerHTML=""},E.prototype.renderRows=function(b,x){for(var z=this._bufferService.buffer.ybase+this._bufferService.buffer.y,re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),le=this._optionsService.options.cursorBlink,de=b;de<=x;de++){var ve=this._rowElements[de];ve.innerHTML="";var Se=de+this._bufferService.buffer.ydisp,Le=this._bufferService.buffer.lines.get(Se),Ee=this._optionsService.options.cursorStyle;ve.appendChild(this._rowFactory.createRow(Le,Se===z,Ee,re,le,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(E.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),E.prototype.registerCharacterJoiner=function(b){return-1},E.prototype.deregisterCharacterJoiner=function(b){return!1},E.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},E.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},E.prototype._setCellUnderline=function(b,x,z,re,le,de){for(;b!==x||z!==re;){var ve=this._rowElements[z];if(!ve)return;var Se=ve.children[b];Se&&(Se.style.textDecoration=de?"underline":"none"),++b>=le&&(b=0,z++)}},E=ye([he(6,ce.ICharSizeService),he(7,me.IOptionsService),he(8,me.IBufferService)],E)}(ue.Disposable);ee.DomRenderer=a},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRendererRowFactory=ee.CURSOR_STYLE_UNDERLINE_CLASS=ee.CURSOR_STYLE_BAR_CLASS=ee.CURSOR_STYLE_BLOCK_CLASS=ee.CURSOR_BLINK_CLASS=ee.CURSOR_CLASS=ee.UNDERLINE_CLASS=ee.ITALIC_CLASS=ee.DIM_CLASS=ee.BOLD_CLASS=void 0;var fe=te(9),be=te(3),ye=te(4),he=te(10);ee.BOLD_CLASS="xterm-bold",ee.DIM_CLASS="xterm-dim",ee.ITALIC_CLASS="xterm-italic",ee.UNDERLINE_CLASS="xterm-underline",ee.CURSOR_CLASS="xterm-cursor",ee.CURSOR_BLINK_CLASS="xterm-cursor-blink",ee.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ee.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ee.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var ge=function(){function ue(ce,me,se){this._document=ce,this._optionsService=me,this._colors=se,this._workCell=new ye.CellData}return ue.prototype.setColors=function(ce){this._colors=ce},ue.prototype.createRow=function(ce,me,se,pe,oe,ne,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(ce.length,a)-1;b>=0;b--)if(ce.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||me&&b===pe){E=b+1;break}for(b=0;b<E;b++){ce.loadCell(b,this._workCell);var x=this._workCell.getWidth();if(x!==0){var z=this._document.createElement("span");if(x>1&&(z.style.width=ne*x+"px"),me&&b===pe)switch(z.classList.add(ee.CURSOR_CLASS),oe&&z.classList.add(ee.CURSOR_BLINK_CLASS),se){case"bar":z.classList.add(ee.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(ee.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(ee.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(ee.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(ee.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(ee.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(ee.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var re=this._workCell.getFgColor(),le=this._workCell.getFgColorMode(),de=this._workCell.getBgColor(),ve=this._workCell.getBgColorMode(),Se=!!this._workCell.isInverse();if(Se){var Le=re;re=de,de=Le;var Ee=le;le=ve,ve=Ee}switch(le){case 16777216:case 33554432:this._workCell.isBold()&&re<8&&this._optionsService.options.drawBoldTextInBrightColors&&(re+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[re])||z.classList.add("xterm-fg-"+re);break;case 50331648:var Fe=he.rgba.toColor(re>>16&255,re>>8&255,255&re);this._applyMinimumContrast(z,this._colors.background,Fe)||this._addStyle(z,"color:#"+ie(re.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||Se&&z.classList.add("xterm-fg-"+fe.INVERTED_DEFAULT_COLOR)}switch(ve){case 16777216:case 33554432:z.classList.add("xterm-bg-"+de);break;case 50331648:this._addStyle(z,"background-color:#"+ie(de.toString(16),"0",6));break;case 0:default:Se&&z.classList.add("xterm-bg-"+fe.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},ue.prototype._applyMinimumContrast=function(ce,me,se){if(this._optionsService.options.minimumContrastRatio===1)return!1;var pe=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return pe===void 0&&(pe=he.color.ensureContrastRatio(me,se,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,pe!=null?pe:null)),!!pe&&(this._addStyle(ce,"color:"+pe.css),!0)},ue.prototype._addStyle=function(ce,me){ce.setAttribute("style",""+(ce.getAttribute("style")||"")+me+";")},ue}();function ie(ue,ce,me){for(;ue.length<me;)ue=ce+ue;return ue}ee.DomRendererRowFactory=ge},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.evaluateKeyboardEvent=void 0;var fe=te(12),be={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ee.evaluateKeyboardEvent=function(ye,he,ge,ie){var ue={type:0,cancel:!1,key:void 0},ce=(ye.shiftKey?1:0)|(ye.altKey?2:0)|(ye.ctrlKey?4:0)|(ye.metaKey?8:0);switch(ye.keyCode){case 0:ye.key==="UIKeyInputUpArrow"?ue.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A":ye.key==="UIKeyInputLeftArrow"?ue.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D":ye.key==="UIKeyInputRightArrow"?ue.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C":ye.key==="UIKeyInputDownArrow"&&(ue.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B");break;case 8:if(ye.shiftKey){ue.key=fe.C0.BS;break}if(ye.altKey){ue.key=fe.C0.ESC+fe.C0.DEL;break}ue.key=fe.C0.DEL;break;case 9:if(ye.shiftKey){ue.key=fe.C0.ESC+"[Z";break}ue.key=fe.C0.HT,ue.cancel=!0;break;case 13:ue.key=ye.altKey?fe.C0.ESC+fe.C0.CR:fe.C0.CR,ue.cancel=!0;break;case 27:ue.key=fe.C0.ESC,ye.altKey&&(ue.key=fe.C0.ESC+fe.C0.ESC),ue.cancel=!0;break;case 37:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"D",ue.key===fe.C0.ESC+"[1;3D"&&(ue.key=fe.C0.ESC+(ge?"b":"[1;5D"))):ue.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D";break;case 39:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"C",ue.key===fe.C0.ESC+"[1;3C"&&(ue.key=fe.C0.ESC+(ge?"f":"[1;5C"))):ue.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C";break;case 38:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"A",ge||ue.key!==fe.C0.ESC+"[1;3A"||(ue.key=fe.C0.ESC+"[1;5A")):ue.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A";break;case 40:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"B",ge||ue.key!==fe.C0.ESC+"[1;3B"||(ue.key=fe.C0.ESC+"[1;5B")):ue.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B";break;case 45:ye.shiftKey||ye.ctrlKey||(ue.key=fe.C0.ESC+"[2~");break;case 46:ue.key=ce?fe.C0.ESC+"[3;"+(ce+1)+"~":fe.C0.ESC+"[3~";break;case 36:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"H":he?fe.C0.ESC+"OH":fe.C0.ESC+"[H";break;case 35:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"F":he?fe.C0.ESC+"OF":fe.C0.ESC+"[F";break;case 33:ye.shiftKey?ue.type=2:ue.key=fe.C0.ESC+"[5~";break;case 34:ye.shiftKey?ue.type=3:ue.key=fe.C0.ESC+"[6~";break;case 112:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"P":fe.C0.ESC+"OP";break;case 113:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"Q":fe.C0.ESC+"OQ";break;case 114:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"R":fe.C0.ESC+"OR";break;case 115:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"S":fe.C0.ESC+"OS";break;case 116:ue.key=ce?fe.C0.ESC+"[15;"+(ce+1)+"~":fe.C0.ESC+"[15~";break;case 117:ue.key=ce?fe.C0.ESC+"[17;"+(ce+1)+"~":fe.C0.ESC+"[17~";break;case 118:ue.key=ce?fe.C0.ESC+"[18;"+(ce+1)+"~":fe.C0.ESC+"[18~";break;case 119:ue.key=ce?fe.C0.ESC+"[19;"+(ce+1)+"~":fe.C0.ESC+"[19~";break;case 120:ue.key=ce?fe.C0.ESC+"[20;"+(ce+1)+"~":fe.C0.ESC+"[20~";break;case 121:ue.key=ce?fe.C0.ESC+"[21;"+(ce+1)+"~":fe.C0.ESC+"[21~";break;case 122:ue.key=ce?fe.C0.ESC+"[23;"+(ce+1)+"~":fe.C0.ESC+"[23~";break;case 123:ue.key=ce?fe.C0.ESC+"[24;"+(ce+1)+"~":fe.C0.ESC+"[24~";break;default:if(!ye.ctrlKey||ye.shiftKey||ye.altKey||ye.metaKey)if(ge&&!ie||!ye.altKey||ye.metaKey)ge&&!ye.altKey&&!ye.ctrlKey&&ye.metaKey?ye.keyCode===65&&(ue.type=1):ye.key&&!ye.ctrlKey&&!ye.altKey&&!ye.metaKey&&ye.keyCode>=48&&ye.key.length===1?ue.key=ye.key:ye.key&&ye.ctrlKey&&ye.key==="_"&&(ue.key=fe.C0.US);else{var me=be[ye.keyCode],se=me&&me[ye.shiftKey?1:0];if(se)ue.key=fe.C0.ESC+se;else if(ye.keyCode>=65&&ye.keyCode<=90){var pe=ye.ctrlKey?ye.keyCode-64:ye.keyCode+32;ue.key=fe.C0.ESC+String.fromCharCode(pe)}}else ye.keyCode>=65&&ye.keyCode<=90?ue.key=String.fromCharCode(ye.keyCode-64):ye.keyCode===32?ue.key=fe.C0.NUL:ye.keyCode>=51&&ye.keyCode<=55?ue.key=String.fromCharCode(ye.keyCode-51+27):ye.keyCode===56?ue.key=fe.C0.DEL:ye.keyCode===219?ue.key=fe.C0.ESC:ye.keyCode===220?ue.key=fe.C0.FS:ye.keyCode===221&&(ue.key=fe.C0.GS)}return ue}},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ne,a){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var b in E)E.hasOwnProperty(b)&&(y[b]=E[b])})(ne,a)},function(ne,a){function y(){this.constructor=ne}fe(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),ye=this&&this.__decorate||function(ne,a,y,E){var b,x=arguments.length,z=x<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ne,a,y,E);else for(var re=ne.length-1;re>=0;re--)(b=ne[re])&&(z=(x<3?b(z):x>3?b(a,y,z):b(a,y))||z);return x>3&&z&&Object.defineProperty(a,y,z),z},he=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderService=void 0;var ge=te(31),ie=te(0),ue=te(2),ce=te(32),me=te(7),se=te(1),pe=te(5),oe=function(ne){function a(y,E,b,x,z,re){var le=ne.call(this)||this;if(le._renderer=y,le._rowCount=E,le._isPaused=!1,le._needsFullRefresh=!1,le._isNextRenderRedrawOnly=!0,le._needsSelectionRefresh=!1,le._canvasWidth=0,le._canvasHeight=0,le._selectionState={start:void 0,end:void 0,columnSelectMode:!1},le._onDimensionsChange=new ie.EventEmitter,le._onRender=new ie.EventEmitter,le._onRefreshRequest=new ie.EventEmitter,le.register({dispose:function(){return le._renderer.dispose()}}),le._renderDebouncer=new ge.RenderDebouncer(function(ve,Se){return le._renderRows(ve,Se)}),le.register(le._renderDebouncer),le._screenDprMonitor=new ce.ScreenDprMonitor,le._screenDprMonitor.setListener(function(){return le.onDevicePixelRatioChange()}),le.register(le._screenDprMonitor),le.register(re.onResize(function(ve){return le._fullRefresh()})),le.register(x.onOptionChange(function(){return le._renderer.onOptionsChanged()})),le.register(z.onCharSizeChange(function(){return le.onCharSizeChanged()})),le._renderer.onRequestRedraw(function(ve){return le.refreshRows(ve.start,ve.end,!0)}),le.register(me.addDisposableDomListener(window,"resize",function(){return le.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var de=new IntersectionObserver(function(ve){return le._onIntersectionChange(ve[ve.length-1])},{threshold:0});de.observe(b),le.register({dispose:function(){return de.disconnect()}})}return le}return be(a,ne),Object.defineProperty(a.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),a.prototype._onIntersectionChange=function(y){this._isPaused=y.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},a.prototype.refreshRows=function(y,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,E,this._rowCount))},a.prototype._renderRows=function(y,E){this._renderer.renderRows(y,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:y,end:E}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,E){this._rowCount=E,this._fireOnCanvasResize()},a.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},a.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},a.prototype.dispose=function(){ne.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var E=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},a.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},a.prototype.setColors=function(y){this._renderer.setColors(y),this._fullRefresh()},a.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},a.prototype.onResize=function(y,E){this._renderer.onResize(y,E),this._fullRefresh()},a.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},a.prototype.onBlur=function(){this._renderer.onBlur()},a.prototype.onFocus=function(){this._renderer.onFocus()},a.prototype.onSelectionChanged=function(y,E,b){this._selectionState.start=y,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,E,b)},a.prototype.onCursorMove=function(){this._renderer.onCursorMove()},a.prototype.clear=function(){this._renderer.clear()},a.prototype.registerCharacterJoiner=function(y){return this._renderer.registerCharacterJoiner(y)},a.prototype.deregisterCharacterJoiner=function(y){return this._renderer.deregisterCharacterJoiner(y)},a=ye([he(3,se.IOptionsService),he(4,pe.ICharSizeService),he(5,se.IBufferService)],a)}(ue.Disposable);ee.RenderService=oe},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ue,ce,me,se){var pe,oe=arguments.length,ne=oe<3?ce:se===null?se=Object.getOwnPropertyDescriptor(ce,me):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,ce,me,se);else for(var a=ue.length-1;a>=0;a--)(pe=ue[a])&&(ne=(oe<3?pe(ne):oe>3?pe(ce,me,ne):pe(ce,me))||ne);return oe>3&&ne&&Object.defineProperty(ce,me,ne),ne},be=this&&this.__param||function(ue,ce){return function(me,se){ce(me,se,ue)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharSizeService=void 0;var ye=te(1),he=te(0),ge=function(){function ue(ce,me,se){this._optionsService=se,this.width=0,this.height=0,this._onCharSizeChange=new he.EventEmitter,this._measureStrategy=new ie(ce,me,this._optionsService)}return Object.defineProperty(ue.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),ue.prototype.measure=function(){var ce=this._measureStrategy.measure();ce.width===this.width&&ce.height===this.height||(this.width=ce.width,this.height=ce.height,this._onCharSizeChange.fire())},ue=fe([be(2,ye.IOptionsService)],ue)}();ee.CharSizeService=ge;var ie=function(){function ue(ce,me,se){this._document=ce,this._parentElement=me,this._optionsService=se,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return ue.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ce=this._measureElement.getBoundingClientRect();return ce.width!==0&&ce.height!==0&&(this._result.width=ce.width,this._result.height=Math.ceil(ce.height)),this._result},ue}()},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ie,ue,ce,me){var se,pe=arguments.length,oe=pe<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,ce):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,ce,me);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(oe=(pe<3?se(oe):pe>3?se(ue,ce,oe):se(ue,ce))||oe);return pe>3&&oe&&Object.defineProperty(ue,ce,oe),oe},be=this&&this.__param||function(ie,ue){return function(ce,me){ue(ce,me,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseService=void 0;var ye=te(5),he=te(30),ge=function(){function ie(ue,ce){this._renderService=ue,this._charSizeService=ce}return ie.prototype.getCoords=function(ue,ce,me,se,pe){return he.getCoords(ue,ce,me,se,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,pe)},ie.prototype.getRawByteCoords=function(ue,ce,me,se){var pe=this.getCoords(ue,ce,me,se);return he.getRawByteCoords(pe)},ie=fe([be(0,ye.IRenderService),be(1,ye.ICharSizeService)],ie)}();ee.MouseService=ge},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var a,y=arguments.length,E=y<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(pe,oe,E):a(pe,oe))||E);return y>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Linkifier2=void 0;var ge=te(1),ie=te(0),ue=te(2),ce=te(7),me=function(se){function pe(oe){var ne=se.call(this)||this;return ne._bufferService=oe,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ie.EventEmitter),ne._onHideLinkUnderline=ne.register(new ie.EventEmitter),ne.register(ue.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(pe,se),Object.defineProperty(pe.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),pe.prototype.registerLinkProvider=function(oe){var ne=this;return this._linkProviders.push(oe),{dispose:function(){var a=ne._linkProviders.indexOf(oe);a!==-1&&ne._linkProviders.splice(a,1)}}},pe.prototype.attachToDom=function(oe,ne,a){var y=this;this._element=oe,this._mouseService=ne,this._renderService=a,this.register(ce.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(ce.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ce.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},pe.prototype._onMouseMove=function(oe){if(this._lastMouseEvent=oe,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=oe.composedPath(),y=0;y<a.length;y++){var E=a[y];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},pe.prototype._onHover=function(oe){if(this._activeLine!==oe.y)return this._clearCurrentLink(),void this._askForLink(oe,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,oe)||(this._clearCurrentLink(),this._askForLink(oe,!0))},pe.prototype._askForLink=function(oe,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=oe.y);var y=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=a._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(y=a._checkLinkProviderResult(b,oe,y)):E.provideLinks(oe.y,function(z){var re,le;if(!a._isMouseOut){var de=z==null?void 0:z.map(function(ve){return{link:ve}});(re=a._activeProviderReplies)===null||re===void 0||re.set(b,de),y=a._checkLinkProviderResult(b,oe,y),((le=a._activeProviderReplies)===null||le===void 0?void 0:le.size)===a._linkProviders.length&&a._removeIntersectingLinks(oe.y,a._activeProviderReplies)}})})},pe.prototype._removeIntersectingLinks=function(oe,ne){for(var a=new Set,y=0;y<ne.size;y++){var E=ne.get(y);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],z=x.link.range.start.y<oe?0:x.link.range.start.x,re=x.link.range.end.y>oe?this._bufferService.cols:x.link.range.end.x,le=z;le<=re;le++){if(a.has(le)){E.splice(b--,1);break}a.add(le)}}},pe.prototype._checkLinkProviderResult=function(oe,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(oe),x=!1,z=0;z<oe;z++)this._activeProviderReplies.has(z)&&!this._activeProviderReplies.get(z)||(x=!0);if(!x&&b){var re=b.find(function(de){return E._linkAtPosition(de.link,ne)});re&&(a=!0,this._handleNewLink(re))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(z=0;z<this._activeProviderReplies.size;z++){var le=(y=this._activeProviderReplies.get(z))===null||y===void 0?void 0:y.find(function(de){return E._linkAtPosition(de.link,ne)});if(le){a=!0,this._handleNewLink(le);break}}return a},pe.prototype._onClick=function(oe){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(oe,this._currentLink.link.text)}},pe.prototype._clearCurrentLink=function(oe,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!oe||!ne||this._currentLink.link.range.start.y>=oe&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,ue.disposeArray(this._linkCacheDisposables))},pe.prototype._handleNewLink=function(oe){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(oe.link,a)&&(this._currentLink=oe,this._currentLink.state={decorations:{underline:oe.link.decorations===void 0||oe.link.decorations.underline,pointerCursor:oe.link.decorations===void 0||oe.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,oe.link,this._lastMouseEvent),oe.link.decorations={},Object.defineProperties(oe.link.decorations,{pointerCursor:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(y){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==y&&(ne._currentLink.state.decorations.pointerCursor=y,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.underline},set:function(y){var E,b,x;!((E=ne._currentLink)===null||E===void 0)&&E.state&&((x=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==y&&(ne._currentLink.state.decorations.underline=y,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(oe.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var E=y.start===0?0:y.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,y.end+1+ne._bufferService.buffer.ydisp)})))}},pe.prototype._linkHover=function(oe,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&oe.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},pe.prototype._fireUnderlineEvent=function(oe,ne){var a=oe.range,y=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},pe.prototype._linkLeave=function(oe,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&oe.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},pe.prototype._linkAtPosition=function(oe,ne){var a=oe.range.start.y===oe.range.end.y,y=oe.range.start.y<ne.y,E=oe.range.end.y>ne.y;return(a&&oe.range.start.x<=ne.x&&oe.range.end.x>=ne.x||y&&oe.range.end.x>=ne.x||E&&oe.range.start.x<=ne.x||y&&E)&&oe.range.start.y<=ne.y&&oe.range.end.y>=ne.y},pe.prototype._positionFromMouseEvent=function(oe,ne,a){var y=a.getCoords(oe,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},pe.prototype._createLinkUnderlineEvent=function(oe,ne,a,y,E){return{x1:oe,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},pe=ye([he(0,ge.IBufferService)],pe)}(ue.Disposable);ee.Linkifier2=me},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreBrowserService=void 0;var fe=function(){function be(ye){this._textarea=ye}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();ee.CoreBrowserService=fe},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(z,re){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var ve in de)de.hasOwnProperty(ve)&&(le[ve]=de[ve])})(z,re)},function(z,re){function le(){this.constructor=z}fe(z,re),z.prototype=re===null?Object.create(re):(le.prototype=re.prototype,new le)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreTerminal=void 0;var ye=te(2),he=te(1),ge=te(66),ie=te(67),ue=te(68),ce=te(74),me=te(75),se=te(0),pe=te(76),oe=te(77),ne=te(78),a=te(80),y=te(81),E=te(19),b=te(82),x=function(z){function re(le){var de=z.call(this)||this;return de._onBinary=new se.EventEmitter,de._onData=new se.EventEmitter,de._onLineFeed=new se.EventEmitter,de._onResize=new se.EventEmitter,de._onScroll=new se.EventEmitter,de._instantiationService=new ge.InstantiationService,de.optionsService=new ce.OptionsService(le),de._instantiationService.setService(he.IOptionsService,de.optionsService),de._bufferService=de.register(de._instantiationService.createInstance(ue.BufferService)),de._instantiationService.setService(he.IBufferService,de._bufferService),de._logService=de._instantiationService.createInstance(ie.LogService),de._instantiationService.setService(he.ILogService,de._logService),de._coreService=de.register(de._instantiationService.createInstance(me.CoreService,function(){return de.scrollToBottom()})),de._instantiationService.setService(he.ICoreService,de._coreService),de._coreMouseService=de._instantiationService.createInstance(pe.CoreMouseService),de._instantiationService.setService(he.ICoreMouseService,de._coreMouseService),de._dirtyRowService=de._instantiationService.createInstance(oe.DirtyRowService),de._instantiationService.setService(he.IDirtyRowService,de._dirtyRowService),de.unicodeService=de._instantiationService.createInstance(ne.UnicodeService),de._instantiationService.setService(he.IUnicodeService,de.unicodeService),de._charsetService=de._instantiationService.createInstance(a.CharsetService),de._instantiationService.setService(he.ICharsetService,de._charsetService),de._inputHandler=new E.InputHandler(de._bufferService,de._charsetService,de._coreService,de._dirtyRowService,de._logService,de.optionsService,de._coreMouseService,de.unicodeService),de.register(se.forwardEvent(de._inputHandler.onLineFeed,de._onLineFeed)),de.register(de._inputHandler),de.register(se.forwardEvent(de._bufferService.onResize,de._onResize)),de.register(se.forwardEvent(de._coreService.onData,de._onData)),de.register(se.forwardEvent(de._coreService.onBinary,de._onBinary)),de.register(de.optionsService.onOptionChange(function(ve){return de._updateOptions(ve)})),de._writeBuffer=new b.WriteBuffer(function(ve){return de._inputHandler.parse(ve)}),de}return be(re,z),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),re.prototype.dispose=function(){var le;this._isDisposed||(z.prototype.dispose.call(this),(le=this._windowsMode)===null||le===void 0||le.dispose(),this._windowsMode=void 0)},re.prototype.write=function(le,de){this._writeBuffer.write(le,de)},re.prototype.writeSync=function(le){this._writeBuffer.writeSync(le)},re.prototype.resize=function(le,de){isNaN(le)||isNaN(de)||(le=Math.max(le,ue.MINIMUM_COLS),de=Math.max(de,ue.MINIMUM_ROWS),this._bufferService.resize(le,de))},re.prototype.scroll=function(le,de){de===void 0&&(de=!1);var ve,Se=this._bufferService.buffer;(ve=this._cachedBlankLine)&&ve.length===this.cols&&ve.getFg(0)===le.fg&&ve.getBg(0)===le.bg||(ve=Se.getBlankLine(le,de),this._cachedBlankLine=ve),ve.isWrapped=de;var Le=Se.ybase+Se.scrollTop,Ee=Se.ybase+Se.scrollBottom;if(Se.scrollTop===0){var Fe=Se.lines.isFull;Ee===Se.lines.length-1?Fe?Se.lines.recycle().copyFrom(ve):Se.lines.push(ve.clone()):Se.lines.splice(Ee+1,0,ve.clone()),Fe?this._bufferService.isUserScrolling&&(Se.ydisp=Math.max(Se.ydisp-1,0)):(Se.ybase++,this._bufferService.isUserScrolling||Se.ydisp++)}else{var xe=Ee-Le+1;Se.lines.shiftElements(Le+1,xe-1,-1),Se.lines.set(Ee,ve.clone())}this._bufferService.isUserScrolling||(Se.ydisp=Se.ybase),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom),this._onScroll.fire(Se.ydisp)},re.prototype.scrollLines=function(le,de){var ve=this._bufferService.buffer;if(le<0){if(ve.ydisp===0)return;this._bufferService.isUserScrolling=!0}else le+ve.ydisp>=ve.ybase&&(this._bufferService.isUserScrolling=!1);var Se=ve.ydisp;ve.ydisp=Math.max(Math.min(ve.ydisp+le,ve.ybase),0),Se!==ve.ydisp&&(de||this._onScroll.fire(ve.ydisp))},re.prototype.scrollPages=function(le){this.scrollLines(le*(this.rows-1))},re.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},re.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},re.prototype.scrollToLine=function(le){var de=le-this._bufferService.buffer.ydisp;de!==0&&this.scrollLines(de)},re.prototype.addEscHandler=function(le,de){return this._inputHandler.addEscHandler(le,de)},re.prototype.addDcsHandler=function(le,de){return this._inputHandler.addDcsHandler(le,de)},re.prototype.addCsiHandler=function(le,de){return this._inputHandler.addCsiHandler(le,de)},re.prototype.addOscHandler=function(le,de){return this._inputHandler.addOscHandler(le,de)},re.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},re.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},re.prototype._updateOptions=function(le){var de;switch(le){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((de=this._windowsMode)===null||de===void 0||de.dispose(),this._windowsMode=void 0)}},re.prototype._enableWindowsMode=function(){var le=this;if(!this._windowsMode){var de=[];de.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),de.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(le._bufferService),!1})),this._windowsMode={dispose:function(){for(var ve=0,Se=de;ve<Se.length;ve++)Se[ve].dispose()}}}},re}(ye.Disposable);ee.CoreTerminal=x},function(Ke,ee,te){"use strict";var fe=this&&this.__spreadArrays||function(){for(var ie=0,ue=0,ce=arguments.length;ue<ce;ue++)ie+=arguments[ue].length;var me=Array(ie),se=0;for(ue=0;ue<ce;ue++)for(var pe=arguments[ue],oe=0,ne=pe.length;oe<ne;oe++,se++)me[se]=pe[oe];return me};Object.defineProperty(ee,"__esModule",{value:!0}),ee.InstantiationService=ee.ServiceCollection=void 0;var be=te(1),ye=te(14),he=function(){function ie(){for(var ue=[],ce=0;ce<arguments.length;ce++)ue[ce]=arguments[ce];this._entries=new Map;for(var me=0,se=ue;me<se.length;me++){var pe=se[me],oe=pe[0],ne=pe[1];this.set(oe,ne)}}return ie.prototype.set=function(ue,ce){var me=this._entries.get(ue);return this._entries.set(ue,ce),me},ie.prototype.forEach=function(ue){this._entries.forEach(function(ce,me){return ue(me,ce)})},ie.prototype.has=function(ue){return this._entries.has(ue)},ie.prototype.get=function(ue){return this._entries.get(ue)},ie}();ee.ServiceCollection=he;var ge=function(){function ie(){this._services=new he,this._services.set(be.IInstantiationService,this)}return ie.prototype.setService=function(ue,ce){this._services.set(ue,ce)},ie.prototype.getService=function(ue){return this._services.get(ue)},ie.prototype.createInstance=function(ue){for(var ce=[],me=1;me<arguments.length;me++)ce[me-1]=arguments[me];for(var se=ye.getServiceDependencies(ue).sort(function(b,x){return b.index-x.index}),pe=[],oe=0,ne=se;oe<ne.length;oe++){var a=ne[oe],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+ue.name+" depends on UNKNOWN service "+a.id+".");pe.push(y)}var E=se.length>0?se[0].index:ce.length;if(ce.length!==E)throw new Error("[createInstance] First service dependency of "+ue.name+" at position "+(E+1)+" conflicts with "+ce.length+" static arguments");return new(ue.bind.apply(ue,fe([void 0],fe(ce,pe))))},ie}();ee.InstantiationService=ge},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ce,me,se,pe){var oe,ne=arguments.length,a=ne<3?me:pe===null?pe=Object.getOwnPropertyDescriptor(me,se):pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(ce,me,se,pe);else for(var y=ce.length-1;y>=0;y--)(oe=ce[y])&&(a=(ne<3?oe(a):ne>3?oe(me,se,a):oe(me,se))||a);return ne>3&&a&&Object.defineProperty(me,se,a),a},be=this&&this.__param||function(ce,me){return function(se,pe){me(se,pe,ce)}},ye=this&&this.__spreadArrays||function(){for(var ce=0,me=0,se=arguments.length;me<se;me++)ce+=arguments[me].length;var pe=Array(ce),oe=0;for(me=0;me<se;me++)for(var ne=arguments[me],a=0,y=ne.length;a<y;a++,oe++)pe[oe]=ne[a];return pe};Object.defineProperty(ee,"__esModule",{value:!0}),ee.LogService=ee.LogLevel=void 0;var he,ge=te(1);(function(ce){ce[ce.DEBUG=0]="DEBUG",ce[ce.INFO=1]="INFO",ce[ce.WARN=2]="WARN",ce[ce.ERROR=3]="ERROR",ce[ce.OFF=4]="OFF"})(he=ee.LogLevel||(ee.LogLevel={}));var ie={debug:he.DEBUG,info:he.INFO,warn:he.WARN,error:he.ERROR,off:he.OFF},ue=function(){function ce(me){var se=this;this._optionsService=me,this._updateLogLevel(),this._optionsService.onOptionChange(function(pe){pe==="logLevel"&&se._updateLogLevel()})}return ce.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},ce.prototype._evalLazyOptionalParams=function(me){for(var se=0;se<me.length;se++)typeof me[se]=="function"&&(me[se]=me[se]())},ce.prototype._log=function(me,se,pe){this._evalLazyOptionalParams(pe),me.call.apply(me,ye([console,"xterm.js: "+se],pe))},ce.prototype.debug=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.DEBUG&&this._log(console.log,me,se)},ce.prototype.info=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.INFO&&this._log(console.info,me,se)},ce.prototype.warn=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.WARN&&this._log(console.warn,me,se)},ce.prototype.error=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.ERROR&&this._log(console.error,me,se)},ce=fe([be(0,ge.IOptionsService)],ce)}();ee.LogService=ue},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var a,y=arguments.length,E=y<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(pe,oe,E):a(pe,oe))||E);return y>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferService=ee.MINIMUM_ROWS=ee.MINIMUM_COLS=void 0;var ge=te(1),ie=te(69),ue=te(0),ce=te(2);ee.MINIMUM_COLS=2,ee.MINIMUM_ROWS=1;var me=function(se){function pe(oe){var ne=se.call(this)||this;return ne._optionsService=oe,ne.isUserScrolling=!1,ne._onResize=new ue.EventEmitter,ne.cols=Math.max(oe.options.cols,ee.MINIMUM_COLS),ne.rows=Math.max(oe.options.rows,ee.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(oe,ne),ne}return be(pe,se),Object.defineProperty(pe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),pe.prototype.dispose=function(){se.prototype.dispose.call(this),this.buffers.dispose()},pe.prototype.resize=function(oe,ne){this.cols=oe,this.rows=ne,this.buffers.resize(oe,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:oe,rows:ne})},pe.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},pe=ye([he(0,ge.IOptionsService)],pe)}(ce.Disposable);ee.BufferService=me},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ie,ue){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,me){ce.__proto__=me}||function(ce,me){for(var se in me)me.hasOwnProperty(se)&&(ce[se]=me[se])})(ie,ue)},function(ie,ue){function ce(){this.constructor=ie}fe(ie,ue),ie.prototype=ue===null?Object.create(ue):(ce.prototype=ue.prototype,new ce)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferSet=void 0;var ye=te(70),he=te(0),ge=function(ie){function ue(ce,me){var se=ie.call(this)||this;return se._onBufferActivate=se.register(new he.EventEmitter),se._normal=new ye.Buffer(!0,ce,me),se._normal.fillViewportRows(),se._alt=new ye.Buffer(!1,ce,me),se._activeBuffer=se._normal,se.setupTabStops(),se}return be(ue,ie),Object.defineProperty(ue.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),ue.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},ue.prototype.activateAltBuffer=function(ce){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ce),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},ue.prototype.resize=function(ce,me){this._normal.resize(ce,me),this._alt.resize(ce,me)},ue.prototype.setupTabStops=function(ce){this._normal.setupTabStops(ce),this._alt.setupTabStops(ce)},ue}(te(2).Disposable);ee.BufferSet=ge},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferStringIterator=ee.Buffer=ee.MAX_BUFFER_SIZE=void 0;var fe=te(71),be=te(16),ye=te(4),he=te(3),ge=te(72),ie=te(73),ue=te(20),ce=te(6);ee.MAX_BUFFER_SIZE=4294967295;var me=function(){function pe(oe,ne,a){this._hasScrollback=oe,this._optionsService=ne,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=be.DEFAULT_ATTR_DATA.clone(),this.savedCharset=ue.DEFAULT_CHARSET,this.markers=[],this._nullCell=ye.CellData.fromCharData([0,he.NULL_CELL_CHAR,he.NULL_CELL_WIDTH,he.NULL_CELL_CODE]),this._whitespaceCell=ye.CellData.fromCharData([0,he.WHITESPACE_CELL_CHAR,he.WHITESPACE_CELL_WIDTH,he.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return pe.prototype.getNullCell=function(oe){return oe?(this._nullCell.fg=oe.fg,this._nullCell.bg=oe.bg,this._nullCell.extended=oe.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new ce.ExtendedAttrs),this._nullCell},pe.prototype.getWhitespaceCell=function(oe){return oe?(this._whitespaceCell.fg=oe.fg,this._whitespaceCell.bg=oe.bg,this._whitespaceCell.extended=oe.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new ce.ExtendedAttrs),this._whitespaceCell},pe.prototype.getBlankLine=function(oe,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(oe),ne)},Object.defineProperty(pe.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isCursorInViewport",{get:function(){var oe=this.ybase+this.y-this.ydisp;return oe>=0&&oe<this._rows},enumerable:!1,configurable:!0}),pe.prototype._getCorrectBufferLength=function(oe){if(!this._hasScrollback)return oe;var ne=oe+this._optionsService.options.scrollback;return ne>ee.MAX_BUFFER_SIZE?ee.MAX_BUFFER_SIZE:ne},pe.prototype.fillViewportRows=function(oe){if(this.lines.length===0){oe===void 0&&(oe=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(oe))}},pe.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},pe.prototype.resize=function(oe,ne){var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ne);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<oe)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,a);var b=0;if(this._rows<ne)for(var x=this._rows;x<ne;x++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new be.BufferLine(oe,a)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new be.BufferLine(oe,a)));else for(x=this._rows;x>ne;x--)this.lines.length>ne+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(y<this.lines.maxLength){var z=this.lines.length-y;z>0&&(this.lines.trimStart(z),this.ybase=Math.max(this.ybase-z,0),this.ydisp=Math.max(this.ydisp-z,0),this.savedY=Math.max(this.savedY-z,0)),this.lines.maxLength=y}this.x=Math.min(this.x,oe-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,oe-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(oe,ne),this._cols>oe))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,a);this._cols=oe,this._rows=ne},Object.defineProperty(pe.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),pe.prototype._reflow=function(oe,ne){this._cols!==oe&&(oe>this._cols?this._reflowLarger(oe,ne):this._reflowSmaller(oe,ne))},pe.prototype._reflowLarger=function(oe,ne){var a=ge.reflowLargerGetLinesToRemove(this.lines,this._cols,oe,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=ge.reflowLargerCreateNewLayout(this.lines,a);ge.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(oe,ne,y.countRemoved)}},pe.prototype._reflowLargerAdjustViewport=function(oe,ne,a){for(var y=this.getNullCell(be.DEFAULT_ATTR_DATA),E=a;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new be.BufferLine(oe,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},pe.prototype._reflowSmaller=function(oe,ne){for(var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=oe)){for(var z=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),z.unshift(x);var re=this.ybase+this.y;if(!(re>=b&&re<b+z.length)){var le=z[z.length-1].getTrimmedLength(),de=ge.reflowSmallerGetNewLineLengths(z,this._cols,oe),ve=de.length-z.length,Se=void 0;Se=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ve):Math.max(0,this.lines.length-this.lines.maxLength+ve);for(var Le=[],Ee=0;Ee<ve;Ee++){var Fe=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);Le.push(Fe)}Le.length>0&&(y.push({start:b+z.length+E,newLines:Le}),E+=Le.length),z.push.apply(z,Le);var xe=de.length-1,lt=de[xe];lt===0&&(lt=de[--xe]);for(var Ye=z.length-ve-1,ht=le;Ye>=0;){var we=Math.min(ht,lt);if(z[xe].copyCellsFrom(z[Ye],ht-we,lt-we,we,!0),(lt-=we)===0&&(lt=de[--xe]),(ht-=we)===0){Ye--;var je=Math.max(Ye,0);ht=ge.getWrappedLineTrimmedLength(z,je,this._cols)}}for(Ee=0;Ee<z.length;Ee++)de[Ee]<oe&&z[Ee].setCell(de[Ee],a);for(var He=ve-Se;He-- >0;)this.ybase===0?this.y<ne-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-ne&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ve,this.ybase+ne-1)}}}if(y.length>0){var Je=[],$e=[];for(Ee=0;Ee<this.lines.length;Ee++)$e.push(this.lines.get(Ee));var mt=this.lines.length,Pt=mt-1,At=0,Nt=y[At];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var rt=0;for(Ee=Math.min(this.lines.maxLength-1,mt+E-1);Ee>=0;Ee--)if(Nt&&Nt.start>Pt+rt){for(var Xe=Nt.newLines.length-1;Xe>=0;Xe--)this.lines.set(Ee--,Nt.newLines[Xe]);Ee++,Je.push({index:Pt+1,amount:Nt.newLines.length}),rt+=Nt.newLines.length,Nt=y[++At]}else this.lines.set(Ee,$e[Pt--]);var Ct=0;for(Ee=Je.length-1;Ee>=0;Ee--)Je[Ee].index+=Ct,this.lines.onInsertEmitter.fire(Je[Ee]),Ct+=Je[Ee].amount;var Ht=Math.max(0,mt+E-this.lines.maxLength);Ht>0&&this.lines.onTrimEmitter.fire(Ht)}},pe.prototype.stringIndexToBufferIndex=function(oe,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(oe);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[he.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[he.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[oe,b];oe++}return[oe,0]},pe.prototype.translateBufferLineToString=function(oe,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(oe);return E?E.translateToString(ne,a,y):""},pe.prototype.getWrappedRangeForLine=function(oe){for(var ne=oe,a=oe;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:ne,last:a}},pe.prototype.setupTabStops=function(oe){for(oe!=null?this.tabs[oe]||(oe=this.prevStop(oe)):(this.tabs={},oe=0);oe<this._cols;oe+=this._optionsService.options.tabStopWidth)this.tabs[oe]=!0},pe.prototype.prevStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[--oe]&&oe>0;);return oe>=this._cols?this._cols-1:oe<0?0:oe},pe.prototype.nextStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[++oe]&&oe<this._cols;);return oe>=this._cols?this._cols-1:oe<0?0:oe},pe.prototype.addMarker=function(oe){var ne=this,a=new ie.Marker(oe);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},pe.prototype._removeMarker=function(oe){this.markers.splice(this.markers.indexOf(oe),1)},pe.prototype.iterator=function(oe,ne,a,y,E){return new se(this,oe,ne,a,y,E)},pe}();ee.Buffer=me;var se=function(){function pe(oe,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=oe.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=oe,this._trimRight=ne,this._startIndex=a,this._endIndex=y,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return pe.prototype.hasNext=function(){return this._current<this._endIndex},pe.prototype.next=function(){var oe=this._buffer.getWrappedRangeForLine(this._current);oe.first<this._startIndex-this._startOverscan&&(oe.first=this._startIndex-this._startOverscan),oe.last>this._endIndex+this._endOverscan&&(oe.last=this._endIndex+this._endOverscan),oe.first=Math.max(oe.first,0),oe.last=Math.min(oe.last,this._buffer.lines.length);for(var ne="",a=oe.first;a<=oe.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=oe.last+1,{range:oe,content:ne}},pe}();ee.BufferStringIterator=se},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CircularList=void 0;var fe=te(0),be=function(){function ye(he){this._maxLength=he,this.onDeleteEmitter=new fe.EventEmitter,this.onInsertEmitter=new fe.EventEmitter,this.onTrimEmitter=new fe.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(ye.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"maxLength",{get:function(){return this._maxLength},set:function(he){if(this._maxLength!==he){for(var ge=new Array(he),ie=0;ie<Math.min(he,this.length);ie++)ge[ie]=this._array[this._getCyclicIndex(ie)];this._array=ge,this._maxLength=he,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"length",{get:function(){return this._length},set:function(he){if(he>this._length)for(var ge=this._length;ge<he;ge++)this._array[ge]=void 0;this._length=he},enumerable:!1,configurable:!0}),ye.prototype.get=function(he){return this._array[this._getCyclicIndex(he)]},ye.prototype.set=function(he,ge){this._array[this._getCyclicIndex(he)]=ge},ye.prototype.push=function(he){this._array[this._getCyclicIndex(this._length)]=he,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},ye.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(ye.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),ye.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},ye.prototype.splice=function(he,ge){for(var ie=[],ue=2;ue<arguments.length;ue++)ie[ue-2]=arguments[ue];if(ge){for(var ce=he;ce<this._length-ge;ce++)this._array[this._getCyclicIndex(ce)]=this._array[this._getCyclicIndex(ce+ge)];this._length-=ge}for(ce=this._length-1;ce>=he;ce--)this._array[this._getCyclicIndex(ce+ie.length)]=this._array[this._getCyclicIndex(ce)];for(ce=0;ce<ie.length;ce++)this._array[this._getCyclicIndex(he+ce)]=ie[ce];if(this._length+ie.length>this._maxLength){var me=this._length+ie.length-this._maxLength;this._startIndex+=me,this._length=this._maxLength,this.onTrimEmitter.fire(me)}else this._length+=ie.length},ye.prototype.trimStart=function(he){he>this._length&&(he=this._length),this._startIndex+=he,this._length-=he,this.onTrimEmitter.fire(he)},ye.prototype.shiftElements=function(he,ge,ie){if(!(ge<=0)){if(he<0||he>=this._length)throw new Error("start argument out of range");if(he+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var ue=ge-1;ue>=0;ue--)this.set(he+ue+ie,this.get(he+ue));var ce=he+ge+ie-this._length;if(ce>0)for(this._length+=ce;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(ue=0;ue<ge;ue++)this.set(he+ue+ie,this.get(he+ue))}},ye.prototype._getCyclicIndex=function(he){return(this._startIndex+he)%this._maxLength},ye}();ee.CircularList=be},function(Ke,ee,te){"use strict";function fe(be,ye,he){if(ye===be.length-1)return be[ye].getTrimmedLength();var ge=!be[ye].hasContent(he-1)&&be[ye].getWidth(he-1)===1,ie=be[ye+1].getWidth(0)===2;return ge&&ie?he-1:he}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getWrappedLineTrimmedLength=ee.reflowSmallerGetNewLineLengths=ee.reflowLargerApplyNewLayout=ee.reflowLargerCreateNewLayout=ee.reflowLargerGetLinesToRemove=void 0,ee.reflowLargerGetLinesToRemove=function(be,ye,he,ge,ie){for(var ue=[],ce=0;ce<be.length-1;ce++){var me=ce,se=be.get(++me);if(se.isWrapped){for(var pe=[be.get(ce)];me<be.length&&se.isWrapped;)pe.push(se),se=be.get(++me);if(ge>=ce&&ge<me)ce+=pe.length-1;else{for(var oe=0,ne=fe(pe,oe,ye),a=1,y=0;a<pe.length;){var E=fe(pe,a,ye),b=E-y,x=he-ne,z=Math.min(b,x);pe[oe].copyCellsFrom(pe[a],y,ne,z,!1),(ne+=z)===he&&(oe++,ne=0),(y+=z)===E&&(a++,y=0),ne===0&&oe!==0&&pe[oe-1].getWidth(he-1)===2&&(pe[oe].copyCellsFrom(pe[oe-1],he-1,ne++,1,!1),pe[oe-1].setCell(he-1,ie))}pe[oe].replaceCells(ne,he,ie);for(var re=0,le=pe.length-1;le>0&&(le>oe||pe[le].getTrimmedLength()===0);le--)re++;re>0&&(ue.push(ce+pe.length-re),ue.push(re)),ce+=pe.length-1}}}return ue},ee.reflowLargerCreateNewLayout=function(be,ye){for(var he=[],ge=0,ie=ye[ge],ue=0,ce=0;ce<be.length;ce++)if(ie===ce){var me=ye[++ge];be.onDeleteEmitter.fire({index:ce-ue,amount:me}),ce+=me-1,ue+=me,ie=ye[++ge]}else he.push(ce);return{layout:he,countRemoved:ue}},ee.reflowLargerApplyNewLayout=function(be,ye){for(var he=[],ge=0;ge<ye.length;ge++)he.push(be.get(ye[ge]));for(ge=0;ge<he.length;ge++)be.set(ge,he[ge]);be.length=ye.length},ee.reflowSmallerGetNewLineLengths=function(be,ye,he){for(var ge=[],ie=be.map(function(ne,a){return fe(be,a,ye)}).reduce(function(ne,a){return ne+a}),ue=0,ce=0,me=0;me<ie;){if(ie-me<he){ge.push(ie-me);break}ue+=he;var se=fe(be,ce,ye);ue>se&&(ue-=se,ce++);var pe=be[ce].getWidth(ue-1)===2;pe&&ue--;var oe=pe?he-1:he;ge.push(oe),me+=oe}return ge},ee.getWrappedLineTrimmedLength=fe},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ge,ie){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ce){ue.__proto__=ce}||function(ue,ce){for(var me in ce)ce.hasOwnProperty(me)&&(ue[me]=ce[me])})(ge,ie)},function(ge,ie){function ue(){this.constructor=ge}fe(ge,ie),ge.prototype=ie===null?Object.create(ie):(ue.prototype=ie.prototype,new ue)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Marker=void 0;var ye=te(0),he=function(ge){function ie(ue){var ce=ge.call(this)||this;return ce.line=ue,ce._id=ie._nextId++,ce.isDisposed=!1,ce._onDispose=new ye.EventEmitter,ce}return be(ie,ge),Object.defineProperty(ie.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ie._nextId=1,ie}(te(2).Disposable);ee.Marker=he},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OptionsService=ee.DEFAULT_OPTIONS=ee.DEFAULT_BELL_SOUND=void 0;var fe=te(0),be=te(11),ye=te(33);ee.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ee.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ee.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:be.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var he=["cols","rows"],ge=function(){function ie(ue){this._onOptionChange=new fe.EventEmitter,this.options=ye.clone(ee.DEFAULT_OPTIONS);for(var ce=0,me=Object.keys(ue);ce<me.length;ce++){var se=me[ce];if(se in this.options){var pe=ue[se];this.options[se]=pe}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(ue,ce){if(!(ue in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');if(he.indexOf(ue)!==-1)throw new Error('Option "'+ue+'" can only be set in the constructor');this.options[ue]!==ce&&(ce=this._sanitizeAndValidateOption(ue,ce),this.options[ue]!==ce&&(this.options[ue]=ce,this._onOptionChange.fire(ue)))},ie.prototype._sanitizeAndValidateOption=function(ue,ce){switch(ue){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ce||(ce=ee.DEFAULT_OPTIONS[ue]);break;case"cursorWidth":ce=Math.floor(ce);case"lineHeight":case"tabStopWidth":if(ce<1)throw new Error(ue+" cannot be less than 1, value: "+ce);break;case"minimumContrastRatio":ce=Math.max(1,Math.min(21,Math.round(10*ce)/10));break;case"scrollback":if((ce=Math.min(ce,4294967295))<0)throw new Error(ue+" cannot be less than 0, value: "+ce);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ce<=0)throw new Error(ue+" cannot be less than or equal to 0, value: "+ce)}return ce},ie.prototype.getOption=function(ue){if(!(ue in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');return this.options[ue]},ie}();ee.OptionsService=ge},function(Ke,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(oe,ne){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var E in y)y.hasOwnProperty(E)&&(a[E]=y[E])})(oe,ne)},function(oe,ne){function a(){this.constructor=oe}fe(oe,ne),oe.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ye=this&&this.__decorate||function(oe,ne,a,y){var E,b=arguments.length,x=b<3?ne:y===null?y=Object.getOwnPropertyDescriptor(ne,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(oe,ne,a,y);else for(var z=oe.length-1;z>=0;z--)(E=oe[z])&&(x=(b<3?E(x):b>3?E(ne,a,x):E(ne,a))||x);return b>3&&x&&Object.defineProperty(ne,a,x),x},he=this&&this.__param||function(oe,ne){return function(a,y){ne(a,y,oe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreService=void 0;var ge=te(1),ie=te(0),ue=te(33),ce=te(2),me=Object.freeze({insertMode:!1}),se=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),pe=function(oe){function ne(a,y,E,b){var x=oe.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ie.EventEmitter),x._onUserInput=x.register(new ie.EventEmitter),x._onBinary=x.register(new ie.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=ue.clone(me),x.decPrivateModes=ue.clone(se),x}return be(ne,oe),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),ne.prototype.reset=function(){this.modes=ue.clone(me),this.decPrivateModes=ue.clone(se)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},ne.prototype.triggerBinaryEvent=function(a){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+a+'"',function(){return a.split("").map(function(y){return y.charCodeAt(0)})}),this._onBinary.fire(a))},ne=ye([he(1,ge.IBufferService),he(2,ge.ILogService),he(3,ge.IOptionsService)],ne)}(ce.Disposable);ee.CoreService=pe},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(se,pe,oe,ne){var a,y=arguments.length,E=y<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(pe,oe,E):a(pe,oe))||E);return y>3&&E&&Object.defineProperty(pe,oe,E),E},be=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreMouseService=void 0;var ye=te(1),he=te(0),ge={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(se){return se.button!==4&&se.action===1&&(se.ctrl=!1,se.alt=!1,se.shift=!1,!0)}},VT200:{events:19,restrict:function(se){return se.action!==32}},DRAG:{events:23,restrict:function(se){return se.action!==32||se.button!==3}},ANY:{events:31,restrict:function(se){return!0}}};function ie(se,pe){var oe=(se.ctrl?16:0)|(se.shift?4:0)|(se.alt?8:0);return se.button===4?(oe|=64,oe|=se.action):(oe|=3&se.button,4&se.button&&(oe|=64),8&se.button&&(oe|=128),se.action===32?oe|=32:se.action!==0||pe||(oe|=3)),oe}var ue=String.fromCharCode,ce={DEFAULT:function(se){var pe=[ie(se,!1)+32,se.col+32,se.row+32];return pe[0]>255||pe[1]>255||pe[2]>255?"":"\x1B[M"+ue(pe[0])+ue(pe[1])+ue(pe[2])},SGR:function(se){var pe=se.action===0&&se.button!==4?"m":"M";return"\x1B[<"+ie(se,!0)+";"+se.col+";"+se.row+pe}},me=function(){function se(pe,oe){this._bufferService=pe,this._coreService=oe,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new he.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(ge);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,ge[y])}for(var E=0,b=Object.keys(ce);E<b.length;E++){var x=b[E];this.addEncoding(x,ce[x])}this.reset()}return se.prototype.addProtocol=function(pe,oe){this._protocols[pe]=oe},se.prototype.addEncoding=function(pe,oe){this._encodings[pe]=oe},Object.defineProperty(se.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(pe){if(!this._protocols[pe])throw new Error('unknown protocol "'+pe+'"');this._activeProtocol=pe,this._onProtocolChange.fire(this._protocols[pe].events)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(pe){if(!this._encodings[pe])throw new Error('unknown encoding "'+pe+'"');this._activeEncoding=pe},enumerable:!1,configurable:!0}),se.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(se.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),se.prototype.triggerMouseEvent=function(pe){if(pe.col<0||pe.col>=this._bufferService.cols||pe.row<0||pe.row>=this._bufferService.rows||pe.button===4&&pe.action===32||pe.button===3&&pe.action!==32||pe.button!==4&&(pe.action===2||pe.action===3)||(pe.col++,pe.row++,pe.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,pe))||!this._protocols[this._activeProtocol].restrict(pe))return!1;var oe=this._encodings[this._activeEncoding](pe);return oe&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(oe):this._coreService.triggerDataEvent(oe,!0)),this._lastEvent=pe,!0},se.prototype.explainEvents=function(pe){return{down:!!(1&pe),up:!!(2&pe),drag:!!(4&pe),move:!!(8&pe),wheel:!!(16&pe)}},se.prototype._compareEvents=function(pe,oe){return pe.col===oe.col&&pe.row===oe.row&&pe.button===oe.button&&pe.action===oe.action&&pe.ctrl===oe.ctrl&&pe.alt===oe.alt&&pe.shift===oe.shift},se=fe([be(0,ye.IBufferService),be(1,ye.ICoreService)],se)}();ee.CoreMouseService=me},function(Ke,ee,te){"use strict";var fe=this&&this.__decorate||function(ge,ie,ue,ce){var me,se=arguments.length,pe=se<3?ie:ce===null?ce=Object.getOwnPropertyDescriptor(ie,ue):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(ge,ie,ue,ce);else for(var oe=ge.length-1;oe>=0;oe--)(me=ge[oe])&&(pe=(se<3?me(pe):se>3?me(ie,ue,pe):me(ie,ue))||pe);return se>3&&pe&&Object.defineProperty(ie,ue,pe),pe},be=this&&this.__param||function(ge,ie){return function(ue,ce){ie(ue,ce,ge)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DirtyRowService=void 0;var ye=te(1),he=function(){function ge(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(ge.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),ge.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},ge.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},ge.prototype.markRangeDirty=function(ie,ue){if(ie>ue){var ce=ie;ie=ue,ue=ce}ie<this._start&&(this._start=ie),ue>this._end&&(this._end=ue)},ge.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},ge=fe([be(0,ye.IBufferService)],ge)}();ee.DirtyRowService=he},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeService=void 0;var fe=te(0),be=te(79),ye=function(){function he(){this._providers=Object.create(null),this._active="",this._onChange=new fe.EventEmitter;var ge=new be.UnicodeV6;this.register(ge),this._active=ge.version,this._activeProvider=ge}return Object.defineProperty(he.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"activeVersion",{get:function(){return this._active},set:function(ge){if(!this._providers[ge])throw new Error('unknown Unicode version "'+ge+'"');this._active=ge,this._activeProvider=this._providers[ge],this._onChange.fire(ge)},enumerable:!1,configurable:!0}),he.prototype.register=function(ge){this._providers[ge.version]=ge},he.prototype.wcwidth=function(ge){return this._activeProvider.wcwidth(ge)},he.prototype.getStringCellWidth=function(ge){for(var ie=0,ue=ge.length,ce=0;ce<ue;++ce){var me=ge.charCodeAt(ce);if(55296<=me&&me<=56319){if(++ce>=ue)return ie+this.wcwidth(me);var se=ge.charCodeAt(ce);56320<=se&&se<=57343?me=1024*(me-55296)+se-56320+65536:ie+=this.wcwidth(se)}ie+=this.wcwidth(me)}return ie},he}();ee.UnicodeService=ye},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeV6=void 0;var fe,be=te(15),ye=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],he=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],ge=function(){function ie(){if(this.version="6",!fe){fe=new Uint8Array(65536),be.fill(fe,1),fe[0]=0,be.fill(fe,0,1,32),be.fill(fe,0,127,160),be.fill(fe,2,4352,4448),fe[9001]=2,fe[9002]=2,be.fill(fe,2,11904,42192),fe[12351]=1,be.fill(fe,2,44032,55204),be.fill(fe,2,63744,64256),be.fill(fe,2,65040,65050),be.fill(fe,2,65072,65136),be.fill(fe,2,65280,65377),be.fill(fe,2,65504,65511);for(var ue=0;ue<ye.length;++ue)be.fill(fe,0,ye[ue][0],ye[ue][1]+1)}}return ie.prototype.wcwidth=function(ue){return ue<32?0:ue<127?1:ue<65536?fe[ue]:function(ce,me){var se,pe=0,oe=me.length-1;if(ce<me[0][0]||ce>me[oe][1])return!1;for(;oe>=pe;)if(ce>me[se=pe+oe>>1][1])pe=se+1;else{if(!(ce<me[se][0]))return!0;oe=se-1}return!1}(ue,he)?0:ue>=131072&&ue<=196605||ue>=196608&&ue<=262141?2:1},ie}();ee.UnicodeV6=ge},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharsetService=void 0;var fe=function(){function be(){this.glevel=0,this._charsets=[]}return be.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},be.prototype.setgLevel=function(ye){this.glevel=ye,this.charset=this._charsets[ye]},be.prototype.setgCharset=function(ye,he){this._charsets[ye]=he,this.glevel===ye&&(this.charset=he)},be}();ee.CharsetService=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.updateWindowsModeWrappedState=void 0;var fe=te(3);ee.updateWindowsModeWrappedState=function(be){var ye=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),he=ye==null?void 0:ye.get(be.cols-1),ge=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);ge&&he&&(ge.isWrapped=he[fe.CHAR_DATA_CODE_INDEX]!==fe.NULL_CELL_CODE&&he[fe.CHAR_DATA_CODE_INDEX]!==fe.WHITESPACE_CELL_CODE)}},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WriteBuffer=void 0;var fe=function(){function be(ye){this._action=ye,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(ye){if(this._writeBuffer.length){for(var he=this._bufferOffset;he<this._writeBuffer.length;++he){var ge=this._writeBuffer[he],ie=this._callbacks[he];this._action(ge),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ye)},be.prototype.write=function(ye,he){var ge=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return ge._innerWrite()})),this._pendingData+=ye.length,this._writeBuffer.push(ye),this._callbacks.push(he)},be.prototype._innerWrite=function(){for(var ye=this,he=Date.now();this._writeBuffer.length>this._bufferOffset;){var ge=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(ge),this._pendingData-=ge.length,ie&&ie(),Date.now()-he>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return ye._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();ee.WriteBuffer=fe},function(Ke,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.AddonManager=void 0;var fe=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var ye=this._addons.length-1;ye>=0;ye--)this._addons[ye].instance.dispose()},be.prototype.loadAddon=function(ye,he){var ge=this,ie={instance:he,dispose:he.dispose,isDisposed:!1};this._addons.push(ie),he.dispose=function(){return ge._wrappedAddonDispose(ie)},he.activate(ye)},be.prototype._wrappedAddonDispose=function(ye){if(!ye.isDisposed){for(var he=-1,ge=0;ge<this._addons.length;ge++)if(this._addons[ge]===ye){he=ge;break}if(he===-1)throw new Error("Could not dispose an addon that has not been loaded");ye.isDisposed=!0,ye.dispose.apply(ye.instance),this._addons.splice(he,1)}},be}();ee.AddonManager=fe}])})},62522:function(ft){"use strict";ft.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFneIFZztMVw25Zt7k08Jcpx7p9d6lAPD5BMHkKY/K33V9e8MSXSe+berf+zYmdEZO3VpZUnf6/5od35tTloyTkO15bz5t8bP89CrV7/bsTvg+B+2yOoWUjJq36pvomms/4aStugxTne6A4td/RfU+4ijHxbZVnc8l3SwbGP0ng0gIN6TDgXhv896Wjbli+uTT0xpZj7ZihR0gmJwPoocmH/E33GQv+sLHpfBvP18+eOBFS3sAYplWOnHTst1GGbyvPs5/5oqvjOGphZmBP3X1sv+MLAuOsCVM4w2sVIyfd9m2V1c93/D+XHQWBS7Kl8e8/cGhPsob/z3+2WGCsnz3hcEg8X7QHpUwxxi6uHDXpzi2tl2tG7z4ky8UcAHG/7BJ4vueM+d/fEupSN2viSwzyIAbMqxw1qSBj2hLqsallPGPqshYGlDCGP959TP9fR9ORn1yUaKy1llQ4bCf2LYnQm1q3/5X3tlhgbPrg4h6ilR0NoBJgO0vIsQB2zBuEUl5WvedN121JHbruoKHXCSlNZ986Bjat+4wPztgS6tEwa8JqSUyXyb9VjbzpvC2hzF9lGcdPXbYSQG8p+ZH3HNf32WjaTbMvPsQFP7xq5I2XfJX5bkvrq2uBLRYYC4on7168JxPsCgkcGdxnEFzKMRWjbnrtq2u2rzeltWOHPCKBU1QuDNNjrOXkzi99Wv/15vrVpV4/awL539mc48qKEZOu/upS3jJSGj91+ceA3D4Vk90f/sGA2mip62dPuF5IPNBp1KT/bhk1+t8r5VYFjH73Ncye8CspEbBECTxVPWpSQV3P5tjla8cOeVMCezNgJUtnd+v2xkeNm2M5i5WpbtaEJgaUMc4urxxx45+2pLJ/FWU9Y+qyxUz5MPY7uFB6DbMn/LNy5CSSdrZ9NtMW2CqBUT52otWwXZ80AMtr9wVVoyZpd4TN/LNu/916iZhFRiMLjP22x8sf/H4zL3Je8RpmT3xfSjlUQl5fPeqmX2xp5f+y5R0/bdkqJnDF3cf1J+NZ6FP3/mWdrHT69xUjb7zoy+az7f2vrwW2SmCsfeOCATxmf0ZOWV7TPV01avNfoSXA144d8iSAY6jcUoq9er6y0Hf9+PpGwVeccv27E2+DkOcD7M2qUTfSlrf/mc/oV6S9Q92KVY1Z9H/8pH55vom170w8llbryj1vJN/BbZ/NtAW2SmBsmD3xH1LKM/02t5j8XvnIm/69mfaBKtYXhwwZYbns94A83Ctn4/L6RJcRc+Zscftl62dPHAUp/8gku/1/DQDGP7XiO5KJI+85tn9B16r6WRNulen0b6r3vyNP97g5j89vs2xrxgw5jjGc0W3G/KMYIL+Jsmx1wNjwzoS9JZNvBGyR4f6qkZNO+yYa88vksWbskPcBDDXSeKrHjPlbjF70y9R9a3p3/NSlxyezpdNvP6l7U6F61c+e+EjVyBvHbWqdT3/mi10t1zlTSowF5E4ASwJYx4A5kvEn7L59HrlzBNviFtNi7bF27ODnJZhPFu5Yt1pMGLJw4dcevHfrA8bZE5+QUvqAslzEsHun706q29SB+E29t3bMkMslwzWUH62KEjisx4z5L37d+cvHYKEbZYlyoMJuqXFjpby8NCvczjEeY04qYYML2+ash+uyOMAtBlYGLsshEQNYDC6LcUtWA7Ic4EwIxjizOJjkAsxidJGJCsncwVLCBhhnknFIFWiBQzAOFuiDAbrHyKddswPJpNADlUkwSbsyBJikLWt0X0gmXMaRhbBWMmmtEKBnJHkjuABzIaUEE6SpqBdSNoOLLIfMgCHrZuM1YI4DLh3Eso4U1hqb7nGRzXJHCJltTJSiEYl0Fk5jFp+iBWdDMIaCW+bOfnpl/zuP6rOsUL81vTtxqCvkiVWjJl25Kf3q7cMm9yde7H0GLHGZnHjvMQOe2ZQ8Nrd31o4dulJC9vbLxYAVYHig+8vz/+/rLOtWBYzyldOTDWXVtBE/Ro3GGT+hYuQNpLPb7D9LDt6hqlyUUrTmnTjDn7q9PP/6YoWWr8BGBVhtLUqTtSXlJYmycgi7Ck4sASa7u+lYGWDFmO30hcNLYKE7wBOMsTgYejLJ4hDclpIiRYsqSG4ziVJIZlFUGElgxRnBkCLeGp0UYOuP1MidGzxaujGvqVdzjxf5bqCftyKY+UTTMB7JS89/1pezKO/Q+8wvT2TI0yoU3DMKHVSU6iUlY3AkAS1nrWDCYWA1krEWMAWiDgTWSMgUlzIlpFwvuJuyZXwFIFKIpzOOK1en+x1xmpVe+4ps/M+MkuSGJnRCC4YXB9lo/585bfmVUsqrAKxnDA8I4AMmmC0hhzOGEwB00esH9Zz8e1m834RbjmBkhNxiP6vHDrmCAaZaYi1n1v7dXp738ddZqa0KGGvfmrAdt/CZbjBWXzlyRRfGHt88N8MT9wFY7Us7VKRSg7O9GlsqYGdLIXgP1121I+OpXnDRHdyuZpbsxJjVSQpWCclKmJQ9pFBglpRSJomAqWmv0MDXwtDcMJAp+BGFq2KQYsJQ9Huh3/41Dzl1HxSARq93FHCZMFbovWLXjCnhI6AHZBpqc5/QbR/sdENFytce7Ppp5upEeekSRurhP+Lb/ug3Y2jpNxKly94hMktAm5IMKTCWAU9+zJCth4y3CCHXcJlOwyIWm21yXb4STDaCZ1rSPLH2Bvu2C/YQ//7znuL6Fd0WoIVdpTKXJz42P15hV10Mhis1c1f1md0Fy8b9fPG+q+OVxNSBRhc8ZsHiApylwUorIRprIMuTiv8z4cKVaV0hYUGIVkiXQ4hmSLcesu/2EIsBpDdApnpDDv8CEoMhscBodl0mfwR8KZ0gzZF1Ywf/SoKRzSDOwY/rNuP9uUYXfy1ftypglO9eWtUgUrXekrmyetSkvl9FqylxE4ivWwfLcsFdC6LbWjUog832xOLqllaXV9t2SUZaXTi3ezAZJ5GzJ3N5FzDeFRI9mc07A6ySwA2CE0urUF5FUiQhpS0J49RQ9yjYV1GB/4U08hFws6p1troPRLIcidUfdbxcHqAGOA6pYqZIiQyYbAVjDYDbCMbXCVc0AW7dYj4ocV/ZFUeu4X1I90gagvoRLf+87uQNl7/tSrdFZLJpIeBK+geImJWQkkHINIRwmCsAkYgxtyVLugomShgTMt0kZQLSlRAiDVkhITYkId1WyGoBIco1aKYciIGdIeesgmzsBbluIeSJj+s58k0ZTTreuG0/uVUBI1W1ftYE2mM8jCRAy2Kjyobd+O6mNNZvfwv+i8HlXbK1sifSvNrm8c7cinWyLd6VMbu7xa1qzqxO4LyLBOvCGKohUQnBysBo7Y0OB4PB+ZjnPRPmOLq0Siw1eifKrfw6mbxHsxdTxM3VPPe+yZY01zF5nS61foamIf2NDpIoI/OoapBZsbL65TPYROid/HLk6rOxvDZXyxxiFqqr10u6zY26FypYobbVdfV5ajgvP21SmTbvtD9Klr0HKxUOuZjPbr20aLiwMP+lnggUr6Fcw6QszUtxZ8mlmBffW1eDMTky/Urr8al76rq4XzRKiRop3TrhoEYKd42Q7jrhOGuyWacWqUxNS1OmkWWd1kw6kxbSW/yTQCKblK02kwkJ0ZxlMiGYcAUTMgaZtJtcR0JUuhCuC+E4EM0JuCs6w1UAOQgSV+XkmU2Zk9/kO1sdMDbOnnCClOwByeRKKXF39ahJ10YbVOno0n0rG+viXUsEujPBezLGegsXfTh4HyZZDylkD0antUlUMrBySXrLnOwUiKlqSHrj0pdkc0o5z4ziI1wIMQpN9RBihpV6vknGm4hRNAugTOkE1axStooc8nldHczuQmKsLm8Ah+qL94JWOOZLoAaaUTVDeftlNhE+QCC/jB6squS9awFa5Z4JkMtEMm8FYVRnszlVmbz6UTtoSVbZYAKVQyQ7PwFdB7NP9QoVXAuht7d6+Te9l0nFp1rRu57pviPc8i4o+Wx2MBT9quaqXAB28/oqVy4Fxt7w0gpg0gl7+aqsGZ4qGY9/lVDsWV1osi/tkX0Luzrz0N39Akm0YKCz0APPQEpxwVhKSlnPGKsTUtRIR9RIIdesRo+113e6uef2rR988qMVv56damiuyWRaW9GUTrkMrisgkjakEGUiVmFlU2sbnLIyOCGAfBxkSAsj+TeJeB3Ma6sDxkL1llMGHipS1rGMyb6Q6A3BukOgE5R+jmkLnz+PNvsuM2tYiMN0sOc3y8c2k/q0KZZvXBndss5o3XEUkkvnwG74OsKEtl2e9+L74v7yCWji1Xk9/oOWB3F0y30dGgkEwv8uOQ5TSnVMkCGZ2eLCxiszNnMaIOUGIeU615Fr4IgFaz9fMzXT4NZx28rYaSuTSDRkurXAmROHO5w051sAc9zqgdF9aKffs1b+a9J3RyHFJx8B2QgTigAvFVkymEqUaxVK1385yLRAS0eIhrYCe/YTM02TpAQkMELeTHDPk30NohGQqUh5FJnymZXHMXxx3rc2q+YxlvsgiUi5i+UR1ClCBAtaS6IEt+CKF1ZehfI18CJEJs2yRtQVfhbm2hgdNAER9wh5MfsSpSHjpWjdaS+wdAtKF7+dI+9RYlxkrQus/GZbRHDQJ9rm+Izaghp4Nf5ZejreSB4GlykbjPpcWvcz7JhZGGh9cgO+sE7mxqrrsDA+PHj/qOZ7cWTLg6GeUTRD4LP1S9b9JF3XsiZt8VSpY7c2JxozdiMyS5fCGT0T7ubOGrdqYEw/OmC3WGNinnClct+Jgk1uAhSnCG2Sh0KT9Ute+6bza7e4aoR4ui0PGUMLRQhoDEjx5LyNrU8gxptIv7GJtFsp/4G2EjbvheRn7+VcSc2F0v8uyqqR2mE4eUKh5KM3wFPk7/31VCSaarFcNvAemJM8EKutvqiUdTiq6T7wwu6YRVtwXmJv3F15OVK8DF3dL3DN+h/n1Yu63kk7Tyx/f8WfrCRrjgurWTK7pU42prEOmcGD4JiGyw531zf44FYNjM7kHU9mGf6oJN9eY7T4SuygnX32Za7GhUZ7VEHvqxA9lhcARjsd6LOOfKJg6AWV+42hIywg4gfF7cDMIEW+0h+a7eB9z12LgEGR0RFisKbay9N1hfSSAV0LJ+abdvKXq+KNp97xgDpfS9WeiBvpUJ/+muYnkxrr9SCY9CH2JrUeN795cu3XOmh/iJIKJJbMhVW3us1nzaIEY2MTMFTXMLy05I+x3JXAf9Nf3DyJQOmnTcU5vWKMv5fLjsOUygsRlyncsvqIXN2M14SUi5fPXXluvJQ1Omm3IcOtxngy0WyvrEv3BTLYzHWNWzUwtt65ww/jLn9QEDCaKBiwEV1909Jn8KO8GRoeqznbrX6wLXTK3StkVzRFvVw6+fBTeK5EmYtZp0JMJ1zW8DQKrwy5t3NukhD+hhPaz+IHL9ItEF1L/PIWneO0QYU2uXhGg8A6X2BUBj0YEn/1GxE4D4msyhwkhVYle3qA0Dv+4qDsTLRhxtXpcRI5zYKYsGMODbNvc22Q7bUzrOZa8Ib1hlwabqFC7VK4x8Iek+EeD/VSpA/yx3d0/CkzDQG9t6rnl8m7YtiZaqweuLf6Uvyg8T7skpkXeC+YI4tJ+fnn81b83OWsgUlrQ0yI2qxrN6WbmlpTnZAefifoCJICy/03SAvbyGqrBUbyPUxt6D8+LmJ3amAsNk2LgYffatH32gLAQgAZGi5eosWms5mnDzXR8hXLn7zSPF922sCilD2FaG9RGMkfJpX9wfrtDayaC1m3RN23xlwDlHSFXP8R5Nt/Arjt7XjRrDywDkdTi2KMlQAffhHQZWeIF84DpAO+ywmQiQrPckxT2N/5VoCf1X8KufQlr55ha63GM822Wbch4PtcCvHGNZDrFxVHcMq1/wHgIy4E3CzEa78Daj/xDMvR/or2abElAUBJN10WNw1k/LCaxSCxEE60u7y0IaIXXZK83il2v1Ce7aUV6XAhVi6dv/pKxniNbcu1krs16Ra7wSpraUqvRurxx+FcRdrIzfSzVQLjF8/0LpULM/0qZfx7JeXJmzVe+G4o+X57bfdNeJDkGsznN20xCZ+NRlmFv6eOtgSHffWizLNt2DbSregH65C/ALESiDf/AvH5zHzGyyy1DdkHTJNr5IRDT0Sk3W+H3Qq+y5GQzevh3rs/2K7HwDpIez+JFy6E/PRfHt8mNkZfuQJKxcyyzWFcDpVGgg0aB2vMH3VaC5+EePkXsE57A6wy2BbbZreIT56DeOF8nZ/6FBjK8QpYp/8HLF6uvI3dx44BBM1F3WdR4ZvtdgKsg3V8Y+fRo4F1tJ2DGJX/fI6r+e/7eftSR2jZES6scc+BdR8M8fnrcKf9UJW3raU1l4MpqvsuWDSQuUd8zZEYxnuz4Uy5xmSLhcZVWxDsv5v/np9DWPKSQqxa/uHqaxnnG6SUqzmz1ieYqM3EE42OW9f64C3IbgPGb3BV+OLvKE0vLqt0m53ybj26HF7WKXGzIB//Dn/aY4TRhIo8b8UB2rJMcQzShlNvshP40B+CJavgzv0H0LwmkmAhRuc9YieA8t5qosMmj9sqsEQ5ECsFq9oOfMRZGmhWzgGaVwP0fKwcLFain7dLIT5+FuKNP3lMqwAL8EY+6z4U9slTlbjs/udPkB9OhfWj6WAl2u1DNq7SaRA75RYYidWKqVqQGz6B+9gP9G+FWTofk1cRteSH3gq+sz7fy33tj5CpGlU3PvgUINkJ4oOHgHSt1o1W7wA2+ESwRKVidO67t0O8c6PO23TXNFtTuOD7/Rp8+E91Hm/8GfLd2zSr9T4KchTZlWC7nwbrIL0t17n/IMiaxV7ZuUeFiwwiagdKhPpaJe5lIBzYp78K1nVniMX/gvvPM2kLe2EQz0s60jcl3WDtcwmQqoNMNwKpWv03XQ+01kDWL1eLInNaIZ1WQDiA6xi6QlKH5FQfG8n/iigsik0qBibE6s8/WnujZfO1rovVUsq1Nhc1djbe4LgNLdsNQGZzNsBsVYyRxOc1s5Bsaiov4yzbqUvP6sPKqkomuT4wBh6x5rocFbLDQyb8pM8Pciu0b7jweaOaaDQhTnocvO9IiA+fhvPCxZ4uDUD1AMTO1MfPZB86CnLVewGoqGAwBZTnvkKe9d0H9okPKZFZkmjmZIBsi/7nZsG676Ymslj9AeTaBWBOC2SmFcg0AdlGyEwKsuYTyDV01Ehupc/l6Rl8mAV73D/BegyBbK2Dc/d+sI67D7z3cD3xnbQCAaqnEt/pn3TAynuoeso18+E8eoTB5nLtFtL22iWwTnkesnk1xMuXQ9Z+ohYT6+C/gg08FHBaIeY/Cla9Hfh2YyEzjRCLnoCYdw/QsAygxUehdAH6511jJZ1hETjFyyBXzIb4/FXwXY/yyu2V381CiixYWXewLgP14vLpTA0+6z+EePcOSGJqGuVDIE8AZB9xK1i/vVR5Vds4aUgnpVgzXWexUsjapZBLXoTMpnR/ZBohs9Q3zQqAZZ23xT+AzVw+Kt8uuyB22nRISnvtIr0gJjuBlXWB3LAEYtFUWPv+XAGiyjvTAmQaIFMaRClPd/Ydqj455pj/zWSNftNG4c+fEwFLVg72YclJCrl2xeK1t0DytczCSjCsdaS7oYzH62W8saXvjUizbaJ0sZXlq70uT4S1ZgCSLXVl5Yg51V26Vx9eVpW8MQDG3Lje9IwLEUR/BBFK0mTlcdhH3wk+YB/F3sS7d4OVdVK6OVT0gjX0FK2PW/8J7ZEGEhUaTKaekQcmoYLacbBEJ0iaWG5Ki4WK7nCgtDPi57wDWDbcWXdCLHgCiJcCsSRYvBIgYGhaBbn8zQLOf0YuUsA64ApYo87VmNO4GuK/98PaXx9a6L76B4gPHlQTk0RPWAnIT54D67ITrCNuV6DhPD0ekkT56I6fvJkmgdJuQOt6NaH5/leC9dhdM8QuO4OVds4VjAw0NZ9Ctm7Q4LvybYi3/wzJSDTNbW1U4rHPIGlFIda472UqTfHW9bAO+A34sNM73P/is9fgPDEOMPz/Qi+rRXAK+Hb7dTjN6IPurL/BfY0izhmBQCJmJdZ7BGKnPglZsxTZe8eqvuc7HAL7uLvUGHMeP1UvTKQ+GHsVeN8Reux9+gpYCY29LhAeMLZb0I2nk3lJMinWLl+y/jYKSk9nF4HJNSIrakqteJ1b1tjctxLp/1nGKB8bPBCuHAQpi8aPa7eTog/45jO1rBuj1XVBLlmZjGOJtBt3Um4ZHGdEMmH9lHbG+5+8Po9cMBlgVKj10yjozWAnED/jZQVQSnSNWGwL1pNAzVvh5cq5cB4bFwBjSOw0zSjVA2Af9hc1AVi8RInRsElUToDFEjnQI0bnZgE3o1lMthViyb/hvnylLpsPHqbMQNvKuuyK2OkvBEYN2VqD7B3DwYefDZaogniboqE5YBX9YJ/5uqqW89y5kKvngX/nNCXquXNuU2JbSBzxK+Qp9iSBunpAX6DwhtYxD4JvN0axaLF0plI38O+OV/VQrE1kYe14OFj3QSAdo/PcOQCPhZSFwRY7SlYIFYZRZa1CM3LwwaeCb7e/Bm0Sa0lHyWkxs8Gq+oFV9dELQs2nqlxixbtwFePXuswQ41UXBPiw8WBdd1GirFJfWDEwuwSs1x5gSTIm6Y9ib9TGavGkfPW0cF67HuLtSYEDkKnH87+zHQ5C7IR7FMATawSxQiphSTXEp6/CeeInavFDNoXY+JfAuuwAZ/rlcOdOzhmolH7T15WEtQPqqsf88vWI+Xp5s28LmhKlrFu3vOH5eNKqY3G7JlZi11rxWGOs1G7hiVjGSjBhKck+7Nmw0XgQfYGpEBkL2GkffqmwZF+LKK222z465M9w5cVqj7HpEqbcIjyBxHfV8xCo0IAwLZ0+EwjSMxuFGBhZn10JmRWQGQGRykJkSM/yDXy4hfhPZ6pJIVtrwUq7gFX2gkw1wJ17H9Bap9lOayPsH9wAVlIF57Ub4M6ZrEUwEktVDNZ2PiVdYA0frydGlpgjibQEABQrinR8HmWykmBq4nMNnrEyuO/cCqSKn8Kq2p/biJ3zpmKxxApJj5W9bQ8l9lm7/wjW3hfCfeV3kGs/QOzsWWoyOdN/AT5gP7AdD4Xzr4shl7wQ7LQMgYmBKvaJT4GVddWTlvJ4+FDYR98Lvv1BEIunQ3zwAFDWA/b3rldA4D5/gWLJfNg54AP2V7pS59lzizNs4cA66DrwPqNUu0rhQrxzG8RHTytWb+09AeKDRz0Rlqk2tPf7Jaz9LlEDNHPLd4GWdZ6xyke2In2j+s3XK2rDGuszArEfPQEWU0Fu1Mf98F9wpp2r+4PAkwA5VqbGi0xt0NHjinz4bkcjdvStECvmwvn3FWCl3cAHHwtryLFwFz4N8eGziB11qxKjlZhN8X/XLAQavoBM1UEseRli0TPhyCTtjbUvcV86AulaB3aJDavMhl1qgyUssBhX/2B5BjvfDchD17Z8gUO+JV5TBTu2qAdyOEKBh++AvXBi3e17VGRY9iIwdgwDSE9Cr3wEiSeYFHd0n7mwYKT1rwcYH9h1nJT8YSMoV0GfsHC7FytKIe4U2UDviSAaGAVEVkJkXIi0A2Q1MJq6k0JOLB0dA4XSCd4lJiZcMDcDa9+JsMdeDtm4Bumbh+UsiVIgfv5b4J0GwPnPJDiveae8+vvvPKZVzFxEYiMxFPvAn2uWSOxDKdU99kkskUDTyWgdFgR4lx1VEdN3HQK5blFBCddnDFR+a+S5kM3rEDvmFpVG5ubdwfvvA/u4fyiwdT98Fu7L/4f4+f9VE9B58TLw7Q4E3/lwBfDOi5dCLHzUK1euxXILn0Rs/Fs5dtZSg+zfvwP76HvAdzhYMyLSmxK7SlJgcAoBS0HYaZktA7MTEB8RMBJjzG1xC/WrcBA75gHwHccG3ZN94VeQn0xH7IdTFaMia7vzxGkQa96nOOCwD7wc1t4XqD5M37wH0Oody+I78kf87fP0cb5es6IX4uOfA6vonjesss9eCnfu/XpBUM+TTloTJ27nC1YaDHSfxw67GrJuBdyPXlDMnPUdAWvHMXDnPgCxej5iR1wHsfQNuHMfBMq6qrbjuxwG3nMwnNdvgfPqtR4wdnzaB0+amxk6YIqRjkRrTVYBokX/SmzwhAUe46qeKq57QF4L2vQjiuNCMyJsc881NgVrZ2hdgL83zWbHA6xroflNIr4Q7gk9Zy56O3pfFW3D2xdV2sK2K/e+obbhrUs6WXGMEILIOErHAAAgAElEQVQNqBx1w10dBQzzOfnQoGkyI8Pn5vpwvykJtvdOIJ5JFTSOVisFjKkcMLaXxJe/T8Cko+4TxtnDfozYkddDppuRuW0fSIv0g+VAohLxo28G6zwAYvm7EJ+/qXVp8XKIms/hzrymbT0j8cLv/hix718H6WaQuedoyJYNSomvxGYCRkFHfngiavchSJw9XQPj5CMhV7Ud41NLt5rxxM94GtLJIPvYaYidcDdYvBRi1ftwnrkQrKInYqdM8RjjZRDzH4F99GTwgQcpcMw8cITyGwxEt0gDWwf+BqzrrkqsJQNP5o6hiNH7Ox4Cd+49cF75NVjlAMTPelOD8x17KAOCfdhNsIacAPHhM8g+d64WcYM5Y0weSQB/IVjvYbB2OlTlnn1mAsSCJ2GNOg/2mMu16JhqQPaJ8RCfv4HYIX+ANepM1YbpG4dqXa5qD49ntDVIfANQsjPi46eBd90RYsV/wXsP1Zb9T9+AtcO+yviSuf8UiOUUsFYdzKD/UsT0eDGNk1SMnA8+RvUBklVg8QogSeqUcjjvPUxCP+wxl8KZfQ/ceY9p4F/2NuzRl8P6zgnITr8S7ux/dNAi/uVng3AkUrUOrFILdmkMPGnBImCMW+A2qRMIGDsC0JsOHHXTObKk4Sz+yYCxST1e/uDSgsDYOHviLULKC82bDJhROWrSQZvSRPKBXQ6Dw6YJgUTeqlogQf+ZYnmZ99v8TqsvRdPMEjBqUZoYY6H0o8wv90yuI/LZYW4zYTRNThNw2KlK56P+VfcHq+6riTuJyaQLa2cciGWzkL77CCXqFdt0Rm1kDToa8RPuUCKi+8E0rTMk0VfpHMuV0UWJcMpFpwQsUaqB8f4TFBDnPiHhRF32daykx0uc85LKI33zSFijLwPvNRSZR05F4uyZYCWVQTKZB4+F/GK2Knfs2Mlw339YibrayTxaaa0/IVUQ2+4AxE56BLK1HpnbCRj/AT7we5Ak7jev1+JmdX8tCtct021JTChRAZes/c94wFhk4JCVn5X2QuICHZIzO+0CBagkVtt7XajAUTZ+gezTF0N89h/YR/wF9vAfK/AiYITTkktZScse8EaiuvnAycp7In7a4+DdBkLWLkfm4TOQuOAllUbmiYtgDT0G1i4HQbbUIn3PCZBfzM9593AGnsgBY0hOKusK3mUn5c4k0y1K9UBSAS2MSncqXMQOvRr23ucg+8pfwUo7wd7zTGSmTYC16+Gwdj0Umacugjv/iSKRIwsqsUKt2pakVGh+CUcgVedqxkjidIkHjDELzGOMxXCxmERXDEuimKAKzlm2cRZ/MvURO8WrCHVmA4USlJAlYJjEXPmX7jMXri40fJhii9xaAYo9aH6krK18vroru+qqDii+8pN279v1IubImzuiNivo8UpJRtlzm3KsjreXY4wColUDY9SFOn+y5gNEGDz8X4WQTReS7/p9JE65O3iNDAbMd3amePHL5yg9I4m/1sAD1XNi+Xtw3rxNsUrli9ZSqwHAlF9yKQbfeL+9YB90GcgVhXXdAcyy4Mx9HLJ+mU4r06z0m7HRExUIuO89BueNWyDrV+jJrvwNCwCW0Y0K3PuM0MYh8pGzbCXeypoliP/4SfBee0B89qpya3HnP6aNEF0GQjathnSaQ04nofbWMrtus377IDZuigLCzK0EjHeB73QoxLK34C6aBlbSBfYBv1LGF2fG75Uu1tr9VPA+w+Au+iecZ84L+eapRI3thWoZq+yLxLlvaWB86ly4BNhUAgLmIScp0VoxbikQG/corJ0OVm2Yvml3lZ+pw1KqIaVCNJmpNsCwXsOQOPUesMqeCujTdx2tdrskJ+q8Mw+fBffzt5G8aAZYeTcNjg+cAbGEDFgcFLmdE40INq7nwIrv9n3Ej7lZq06U6oDGOY1t7RLkLn9P6Y7t4eOQefYyWP33hLX7sUg/MA72AZfAGjASaWKp5IIUDK6oySTXL21PPH+QROdMGM6IC6TqXc0YCRiTNniSxGjNGEFHqpljMIquHWZD5qDV/aPdStkvNzwcmwUmf+JKcWfPLgvnsMfhytGj7XprQ//qlz8g61rRD2ucM+E44eIeOgNcG6XYUgb5Ghjuqhw56Y22Xm7vnnvPznfCwVlqS6y5KBWw7oUw0A/p5CtUI3UPdY25eitgJJc6ATframDMeCdJRhi5and1zQSIIp0dvBs5vCkoF9Mg1XMI0LIesrUB9l5nIbbv2Sr97L9+j+ysycp1Bs0bEDvkN4gdcJG65372JpxX/gJ36dtaFCbLYRBsthDhot0lxD457GE/RPwHeveI8/5UOHMeUVZQsorb+5yjxTgp4cx/VgMiufvEyuG88w+4S8idxq+AHz3Hm5jCQfz4v4F16g/33fthj/kleOf+yL78JwUa8cOv0oD79l1w/vNnZfW2Rp4Fe8xlkKveR2bKOL0FzmyfCA4r6bHfnoj/8CllrU3fMhixo++EtfNhcN+7D9kXL1dW4sS570BmWpB9bgJYshL23heDVfeDu3Aask+fF1Y7KCdrhY66X0lHWdEfifP0MM48+VOIj2m3Dj3iwP7BLeB9hmuDFG1R7KH9QGXTeqRu2UNbtf0Atyq8qpd+kI/eTxXb+1y9UMUSui73joNY+jZ47+8g+bOXVXbpyePgfvIy+Pb7ITH+UTA7rnSp2eeuRvY/f8uJ0iRSGztz/Ca0Bh4CRscjrPwv4if/A7xzP2Rn3gixar7yOLCGjYM95Eikp5yL2P4XgvcegtTNByB+8p3gPXZF6u+HQ6x8L5h50V0weSzNuJD/rIdaoWgo+pruZgaXGGODgE1MUTFGW4vSpGMkw4vaiu4fuFbA2u/TGdN7wpzDxrz3iZUqji7A/fysj0//Mnuxg+Eq5/2iDNmGDBtx51d2Jq2krXlryl8RjhyV7+cQgVUTGf1o0d4Yz9vLHwHZoGECxkjiNAGjA6QzoUVSRxQxNMn6FI0gzmA09mJQypBsEyGhweomgNIuiB/1V9hDj1RMIjP9j0qsip94q9qJ0HrtborRWbsdgfhRfwKr0lvgRN0KiKWzkH3tZsg1C4MA3N44038qeiNJohkBrEWGFy/Qge+a47nlKCfibAoyTY7dzcqxWzuC0/e00kHRJCkgSOvqxkpQ8qt5ynKenf5HWMNOVuIhiWlUvviJf4M96Ailn8s89CPIbDOs7fZD7NCrVFu7i19B5vGf0GF6hm+e15IGQPIdRiN+ysMK+NI3D0HsyNtg7XI43PfuR/ZflyoxOnHeO5DZFoiPXoQ15JigO5y5DyA7/Vdg3m4OXRfj+AhvceGdBiJxzqsaGJ8gYHzeD+etfDVjB+efZOrMfRDZ5y4J3Jo0kCr1sbJeB2OZRNjD/ojYfufoR9JNECs+gFyzCJJYe2ln2KN+qO5lX/orBInOrQ2wdjsUsf1+Grh0Zd9+COkpF4KXeuqWaLxK10H8Rw/CHnwEUveeivhxN4BX9oQz7ymIlfPgLnoB9sjTwAeMgjN3CuJHXwekm9B67RAkfz4LvKoXWm/YE3LDZ4EVMjqcQ9ZJv74eMQlNR/90yGKRpbz+VTpGAkYlSlvgSQMYycikHCh8v82INUcNdgMFQ9gQsckYZaWvnOM95tQdwC5YV9DaHEGdoj/b0Xp1NJniz7XevdMOiayc5Qp0UZn5QTr9KClm/UNHcuYmUl5gAq+hAv9h3/1HWfgIFCPAqBo6V8agHP71cFSynAnbfC8qeUSov5oEe56O2H7nKh0PsYv0Uz+H885kWLsdhuQZjypdUMs1g8G67QS56gOgvCeSP31KDVy1Y6XuC7TesJdiACFA9McCsZqBo/VuidYGSNoO5oGe2u2gdqF4/oEkT5COjqzWtnYLYdKBILHY1/3lKYf0BXvoMUiMu0ul1fLXkUj+5EHwnrsh+/odyDz3f0p8jR9yBZz50xTzSZz9HJzXb1NuKLF9ztELwtQL4c5/MvChCw00+pGoQOLM6WCdt1dVFcvegVizSIE3+Q6SzyUZqqzvjPO2txEI/UHrGxtWI/3YjyHXfeT5J1KCBYYyjyFxyiPg2+mzT2T9SmSe/xXkZ68q/RwZf2KjL/UAima6C3fFbLiz71QGGO1W5qVN45ZEaXKKpbHgT9ZkJ5T87FWgtBqp+36ExFHXgnffqc2J4342G86cx5E4/jrd55O+pxzplfHFrIb/3XGUCG71+y7SUy5A/Khr1KJFxh3JY8i+eA3cRc+p7ZKJs/6pnpOuA+fNu5B98x+KyZJhT0kk/sfre/UnSjSKld58zhw7/nej7ASM6UapdYtKlPZ1jCROkyit9alF9YzGfAt8iw0cDaauAZqWjVomxZ7s3E8/+bLI9bUDIxXQuX1H8iF6gjxBQt64QekLLQkGapkoEXonPLOVhEMOvWR8oX8kSqfDBDgiUbfbfnkrqxeJL9pwNMFLLvgXWFlnOB88B9Z1R/BOfZCZfg3E8jkouejfevfFuiXg3QciM/MWiDUfIXnyrQqAMtP/BPez1yE+fyeY5OGy5n5R2rH9zgNL0j5pMq5UALQThYwvcdobnQTI2Vs5EpO/nPZvdBZNR2rySdq/0fuE6kcjULhInvcvWNuNgvv5u2i9ZYya+Fb/YZBNG+DMI7CzdNrxUmVp5VU9VWqpxy6E1W+4EtPJpUc7ufvCldHUUiDxw4dg7UqGlkY1YWlrmwIv2srmLwwBpyWLU1w7S7uO3iMsXDhv3AbnndsVTciBmEpF/Zc49m8hlhnUuXGNcnshVqe2zSlLvrc9UKE0bRZIAyIDd8V7cOdP1fVQHg++OJ1rQWvH0aqdnQ+no+SC6eCd+mtH73gy5Mfov+F+9Bpabz0C9t5nQCz7L8SqBVpCiOsAEXkfK4bSKxaq3VNKd632p3O0/HkkxLpPtIph6NGIfe9y8OreSsep+j1RCrFyPlIPnQGxfknIt7TYwO/I/MifEzo18zrFJ0g1SdjEFAkck1bIXYcCJwWxNc2zfkIFi+KCeTN8jzZDAfKH9gWfPtLupO7AA98IMFI5sjdvfxOAnwUBPyMNaVazrXLnkZxIWymrNLnrBMBIq+TXUc3IEKKgCANGqd7m1X2R/NFdSg/XesuhyrhQdqk+CCnz4l8R/94vlOWz5c97IXHsn2EP+h5Ewxq0Xr+vUsq397H6D0fJRS+qx8joQqxDMUjSlZHxJdUImW5Q+6RlayMSx/wR9q4Hwf3kdbT+jazeOd+/PIpCi/n2+8EefjLcj2fCeW8KEifehtieWiQs9hH1q9Dy51F6H7Cn38ub5T4zJ3eFk25HbOQpSE25UDGf5Kn/AO+1a3tVz92ntr1xL22sCoy5xuiQLuLH/x32d46HWL1IuUbZI37UQReRXDbpx86ES47RKlQj7RPXfoehcajiOHr0R9FK2tViwR52EpKn3KwSa73xEIiWWu1mk01BrP7QA3CPkZKlPmYwX1+soeBrvQajdOJrehFReuKEyq/56sGKxpZe8h+wCu2qR+MoNXmcWoSTZzzkAWUD0lMugrPgaWXo+SY+tLakm0SOLXqMkZy7lbuOdxQ6laXQnI6SU7/MhXBCJcXY3dZFn+poIV/B5+tAjILFkn/vXSpSiXdcIYeoBwosTb6Pc4frFVm61Pj0GCMpf2UrsQsyAhRgLcbxoL7A5OupcirksPycC1yWn6L/LlmDS3/xhlrds7MeRfqRs1UorbLfLVKTsvX2YxA/+mpYfYYi+940pKddirLLZumdMPNfQCsNau98rvyjMnWFrZ6DUfpLvR0v9fBFELWfKdZAaShXHfJzI3ZF3xNlsHY6UCnr3c/nomXSgYox6pS0+5H5Ca4Qg1LRc7jaoZI4+Vbw/t/V7h4UtcXbbkgiqVy3BOl/XQuxZkFuEVLJ5tLWUWw8h1zyv+09FPEDL0DqYTJQ0WTlsLbfG9aAEWDlxB7bXAIhm2uQfeV6r4za4T8YV1638e33QfywK5C69xQV4Yj3GwVr6NHgXQbobZvEeok9q10oxIJt75/e1kdMtvX2AzWLVZsHSJQ29ZjeOPaNMV4ZVPbky7rXaUiedKOSCJqu3A2yaa0qIvO2uAftTu+ppjbkW6/tyOUoccx1iB9wLrJznoCz6EUkx92m+pDGS/aNu8F33A/x0efDefdxpJ/9DWQTHbolQe5DJec8Cd5zF6QeOAvu/GfUTp5ceF9/IvpNZ/aXP0V1LMyctGzuS89d1d9yM4SMoHSagzK+EFv0RWmbaUd2ZZXOjbzo3PfVZ8EjxlyPQofF2GKeYiPYZZ8W39bVYVDRD35jwEiZNV/Xb0Qixl93BWhTbwc/hci9iYi5+8qNQjFGjzUq44tpHY1mGV2XzJN7zYlpPtdGsel8j/OegT1wb8imGqQeOh9IlMDabk/ER+ugDK33nq4mSsn4+zWjvPFg8H7fRfKkG9Qq33Lb0RBLXvPdsyP2SQ/gO/VH+ZXzNA44eqeLzFIg1FbtlEx/lb9bg2KmVp/dwXsMhLtqEVr+NDLHGINN3/4uhNxADwtGXhBcK+HhlTezVVQdan9COo+FFhxR5gzwtoTSrKB3yBldJeHFqNT+MLl9owHAhhcpVRAF3JH+MIcGgR3lYerWaPX0YzIqZmvMArKSKpDSoio5XetAHb7xxRCjA5OngYYhC6NE/IDzkTj2GrWQNF0xEGjx521kTBOKBm46EcUbAeOJNyO+7+lovf+ncOY8BmvnMUiefBN41+08RKMtjwJoqVPO8MQslThN/ygqUHUvZP59PZx5Uw3G3PbCk4OHqDhb7Hd4LhG7TjVD6xb9fwmufBjVzhfl4to+/OgnpDpjO899jzY7WDybzboHlfxq+X86CCgdeqz9knUomY4/lP1Lvz9IsCuUz6H3WiHY8Z0WfEujryA2VxDTwqwajtgiGV8IGGm/NDl4k1U6cCQwGVKYlIcPlw+vf9EhlA8furS83zCUnj8VrLQarfefDWunAxDf+0ehxmm5/Vg4H81E2S9ehfvpW0i/+Fe1wpeMuw2Ztx+A++mb2o3BeMuEBHWnpBolZz4MpBqQnnEzxOfvqhBgjMKRKUtw7qPmfef+yulcttRBNHwRWODNsz18C6F5Ho5ieKZ1sJBjqcGW8vqz4Nwzw3x7NTPdYPIKX0TU8t1ofC8DD1uD1T6MxSrVQrAfPO9bYNUFj1P5MX2D8kWsqH5Zi4E3xckkR3irBLL2cyNqQ35sygAqC5WbMSROuR3pJ3+hw4mprVVxZd22B+4D1nV7ZcBj5bQNkBz8adtk+Py3ltuPg/vRyx778+Ubz5JfcKzlH6fgPxaMEc9dR6fmzxndzrRmppoZrCRXOkZb7XrxQDGWE6VDwytvjfOIQEAnfTlHP8j1PJkU++WyiR1HoI49+Y0Do7yhb4mTBVmptUj9ZT6RiWcaX1zSBRnAGMqmEAn9MuXI+QuBd+qL2N6nI/381bCHnYjS8fcoVkeg5Lz7BFLTLtfmTRLjyMjgR+GhkdSRiDx+OUmUVaPDi5i9UeUvhFi5vavmfA8tH1HSRg+aLgOh0WQ2cqTBDWlUgTO5SxlO04GwZu4aK4ZqJuKFQLUdRtTGbd/xOCiHiooSnEgTRtgQEhdoIL9Z1QFaHsFVeftRf1QjFuk9o5DF9EyKAXtxPGkskFqAouwkCJRpF1aVMmw5C6d7W0U3aqDohzdhvvjAaCu2yLUPY0IDo7JKk7/mpqKP1yycs8X1aB3W7dL1/pkRm1C5wq9satG+VAFar+m1vw02wxHKzVN93J12h6juDN7UCL58MVgTiQHGwAhNDDMsj/+YjsRMrDEkSmc0Y2yrooUE87YEhsKCvOeKpAaSACNLaawEvKKH2gusDCJkfS0AfoXwJupkWIi1RjtBY4tmeUEZjUEdGt8+WQsxKd1KodPjvIzz5kYAbsaREb5jut/aClC07kmLvl5PBCDoiUeBGO31kgeIXnVCTK/QPG1v3hbtrzZHsdniOaaYl5c/sEJKzvDxaiH+71Ok0O4ZjwkZB05pQ60uQ6QkoaHhA1cUZMwxFTX6mnOh0DgvNFfMNizWbH6VPOcGtDYzaGD0wJGs7krHaACjP9iCAhs5hQoeLoHFIQQThycvX6WtkF/x51sBRqpD5g+97hISP6XGFD37wdljn1zVhID14VzwZfoAJhPY2upInzH6ojQFkWAeMAYJFZtFHen5jjR+W7O0vRlcKP3QCPceaKsORXu0HQbV7vIRKZw3C0K7morm7TVu4HiaS0tH7MpRSK3jy2evHWn6dp8phDBFXsp/tI2p4gN+gZhZ/ltRcA4t+iZItlcJ1fdt9KU5NqLjpNgYb29cRt9r73lflG4hpsgDxmgpUZopcPSt0ib2hbiP0Q7RvlDqacYeif/6i1Pba65Nvf+tAWPT/3XvEUvyBeT4LZNlWq/TpTvcgYOB0jJVH+v9WeDL29zSGKp3IEordx2pwo75wNheX0bHUxSQ/d+FxlZHMLWtMekDf1vMpth4b69eZrmLMQF1XWVOu4C8H74hQiWQO6XP45TaUZ+e9Qvti9SBf5oBfjkiGGY79K6y49DqaJBKz0Ibqlu08MYKWbQN2hjd6p22Ot1IP1eTcII5K6wpFhqJdnR2bQwwFpjpHV0nOzpWollsypgnUbq1hcM2gJHHmLcl0NsrHR34HZTZbQv1TjoztPSPNcs3Ffjae6+jXddeOht9X/62c2Vaxpa4UnYNtUcsDnfEAZBduyuLoPXOTLD1RgAMf39mgV5W4yuwSoeBcaML2MEXOsLDOphU6LGNSndTR7yZowdyoTnq6/iKjRLf7cQDRUVkzH/tVdwHV2U00yCrPXeIURieP/5uqejq5E+s9vLpyP0oEBbpgDb7JdpOHVaiGYy5DY1jR6qxuTxDRvLWZgJG2vHClI7Rimu2GPgxmsBoLp7FFizveQtoyDp8YMW1q8kv6Wv5fGvA2Hx5tzMtjn/QRgJzfKufsRjcAw4FKqqAbAbWay+CNdbled3ltR+NLwpUSzvjlPHFAcsa26C8JizEvtpadTsy/wq93xG86ggT9J8pNHcVczN1qF6PtsmiCrIh32iam/pRybc9SZlA0WQXxepWcCSb9TAy6kgbRvG9LWbcXnp590N0yQsGFzzkHQLVluRfTPlnFFrt1S8wNovN+I1qVzMf73sU3Iv1ayGmGF2bouKvn5ZmjB4okvElrv/5sRiVp5XXNu0x3mh9KZSjI3BxxbXrtPf81/D5VoBR/hY8k+k6Kyvk8KKdX1UNMeZw7XOXSYPNmw2+fKnh8qDfDDWavyVQnRwpINNuDhgLjYaCANEBqtAubTDQvhgKb2xnbhSF3NjEizwfHfX+Y+YsNl7VkWg6kHexBztax0LPFSlTB0qT5w9UrBgdLV6QZ97sMhvUG70daS+zEsXqXiidQqhVbJX1N+60lU575TDua8ZIbjqenjHhidHEGGmn6JexStPeIs4Wzt+wfo8Rd+IrC3oTrV6Hxs5X+VDTJVUHWbb1b0e07WAutx8IOdIwyqRagYZ68E8+BL6gwKXhUmmdl9DbXsmXMeOCF2CMAaLSl+jgLbocR0ZkdJkrsOypSwa78Db06kyDm5El3SxPG2kGluNIx+R7dURi0kfr3N5yba4+HahzUJz2qFlBW2sbM69Q3gX6L+d76aVl0J5wfxRwQ2m3zJvmutKhuRONqGO+ZI4hf9AXpXPGOI2CXHRs5bVfcfaQ1zTGBb9dyYruOzUpxthMjJGAkURpDouMLqRnJMqnfPN1gYJ1MpK9/lm4UygGheOIoytvqKN9jl/551thjM0/r35RCBwSuG8YSBV1ixO7DQV2HxbykmdPPw7W0qwNAJHO1g7etCPEA0Y6+6SDzWb2S+F4dW0v1x1hFOFncr/ChKcjKRWrlF/y/DSieYedSvIdqcPt4TuO+PmGW9Usf87ZN1w/cy4Xw1gzVf128RiY/spYjCxG38yvj48MujTR9tA1Ldxjha621WvF26TYiMj1b+F0275aCAML1ye/1n7KbY1Vc0NE/kiQ5EuD1iYtSivWGCfG6OkXaTugxxgDA5Y3IMwRQ76tCmw95NX5eH6vKkAPe6Pkr7X7f5m4i34rN8ye+EdIwSua669iY+5NfePA2PCziv0si7/qio7vZpc9egGDhgCdOgPNTWDTnyuMCurYFR2sVjNGB5y2zKnWNro5mEkFhoC/9Sg4klA/83GP/fDgnrfA4TH0qV+E4Z9PxYilT8D2z1cJXCgKyJN5oqPvh+kvlx4tM5/zv7crn3qVMV1FzLoGLVWorv5N754aeQbMRN1C/PshhPENB5EjH6M+qN6AjkYsVkkVCHgaKoc3IbRrR1SpaoBX0fhZHVhoCrWzaorotCsA737bh9rdbG+vfyPNG4Y+T7wIrQyFdBNmFGcvwbzjM83dRZF0g6YIPM/DiuGgqAXu5y0URh1VW+XGghKlPWBUbNEAxoAxlpVD7rob0LMPUFau31+zGuxVHdw37xPpRosR/5GHV93UoA812sSPfOxEq2G7Pp8B6McYFnGJn200MNKu2LVjBl8Bxn4CyL7dZywoo814HSkTGR2bL6qY4YKNDnZMmMt9Macmv7M8uVStJN7ECzCPnhF0DKYEhTxS4JjRJ/aZm5t0dv6JKvqXz14KSR76nsSTw6/B2zuMC1WzqmUVjpp3NYau0FGh/dTCGw8NB2gDdHLP5FxhwvPGZzFmljmeZVsUXVoi49D5zbnJmnPtzokq+m5OwR+wIH81VuZgcxIauzz0i8Lz2CHlhzq+SfW5vq7/MrjSu0fXKLykMjoztadFvxN+V8UG8zaEUBGD5veu5drULLpn96ZgNPosOKXX1LvDJJ0RoL8zhbbaI1I9R9cBLumMWf+7vk42ALquvkum0qB3PViMUBlzDSkw6HNjKddXuUnmj6Yw7JutnQtgEu13nz371/2ezrmPm3n74zyXSi4YRM79KuBgxujNjZXoBlpznIWFXHPkewOGROkoY/R8GHsD+/wAABucSURBVFUUPPI6OHEcUKLPIwo+ixYA71LovSJqi9woUWW2OWaVrmrYh44t6AgGFXqmftYECh31YHCP4bmNBsa1Y4dMkcBJfiKJDOtc/foH7cfKAlB7QenRMfCpjg6YnQdI5n5LP/1CBTTX7CiwqR1SZJH29ktzP0hBCIAjPhFmAMzIObf+dP37mIfRlOiC9RXbwaXzgI3P7sufwwmzL0PSMYIGm2gbraxZljAa6g0i5pY5owH8r7YlUZIQZJlDayp0YLkKpapOryegAhw6WUEyRsZ/VzCWVYGzGMvScdCS0z04YCwrmHrWEf67HA4kpcOFpANS6Oh6AkDun3ziez4GJ0To4328+cppFkU6L1Qvg1/Qa9625LxQAR1acY2+iIroqkjGGhME3aLzuCRhKEG3Bk9IySm8AZNCOQ1JAZtLWLQzmUnYELC4pO+SwhPFoP/SM+o3h9SnmUgZk3SN4o8JWAS8+tBvLSVFu98HAX8BC4edCW1Nymd3+fipr5htHx2Lhd6JElx/Yvlp5es4cjhSYPs76RhbmizYcdIvMs8iTTtY9QmByir9vcOB3n1Cc0k+Ow1s/froxq/gGbN/6Ts1rhDih1V3ND+8KcAo559f3tgS/1ACfkEcbmH3jQLGNQcPPh6CPeG12Ycc7JLuMz54oSMFkhNR0pQqf8+VcpdgNSgACgUVgtFOLvSeVyi9dVRvC6SAtQoYTZSN0kNTtDAzD6homEc6PIHPuo3AGzudjoV9Dg50n10al+K0189Bz/qP2m8OXxqKgDUxKwZGgOaCSYpImiHwAkNGgGckZMayZLLKcreXHM11sP+bgUX7RDPCoueYSyDImHRIzUrbplQoNg6a6WFG5iMOU+cwqXv6EpEm9Vtdo3vK95o8U9TZPSpJdd3rBvVXNavnjmi+5z/nNwpBrHnNZIfRhgu3vE4/UMDkwW74bfKAiUYeFN47/nUCRg+RVU/4bpT0HD2j/qqDlbyFnMDUg5zgvtbSqKWDnvU4sGKcHqMlMLWYgC0JVIWkqItxLhBnAjEpBJ0NmGASCehTNeNcihiBrQQSBL5Mg2oArCFcizZStBGD8d3+sGz7iY1LyAdGHxR1dDfPj9H3U917HyCbBdatA0jlVVoKLPaCb5vspxDJMOa0zbC0Nd28e7fJ2Og90w2zJt4pIc8ykPeqqj0n/W6jgHH12CFEMY9gwPPdEqnj2AuL24rpFWrn+rNLf8OA39OsjwzhQPGthVb/E9m4X2ANKdRVKh4jBWAmcZrgROrjU/XHTD0navqiRTh3X+AsZoZhWNp1OJ4cdS3WVO2sUo87zThh1qXY4/NnNbL48CIgWZKtI320YCwNsLS00CoZUi7jadholUBGcmJujBidQ/GiiZ35sQY0sAn0yKaPtaQsXReLT81YVoMXkUmLutSSHqPzJqpQXE+zNw10mv7RZJacUWPpe/4z6j0tDWnA01oHDZ7+tZwUl2tQxbsM8KUSEcE0G9UvQ0hSz+lh1LMeYG8sUwyNqQhomkCn2sADPaYDIPpDgwRq4ssKgujQQ2/I+HIitVYAlKo1KLShHlZ+7RmtbNRaOuiPar3gPXVqLEG757/uxaZQ95nWClCHqzw8xqrst8RSIYidyhiXMsEEkkyKJHNRYgkkpZRJLmWJbJX9KdyiytyD5lwFw+ojv9JRBUtunvhVy7VsWJTOCdO5J3OGHOF6xhdijN4/Yosq5okPjF7SbUNuIRkgjCBaXyKvq7yr9bIIuLT5s37Wxb8G2NXGQ29Ujlx5IGOPuxsFjGvGDFnLGLrEhLNjp5kfLu1oIRrPiA9iFp+VldB7/Tbp0/6K5QORYoykY8ySHESEK9fdZtaFiCjdN3MK5eqHCvRC+pEaK4Mknh3xa8wdmgsvtseiKRjzn+tQ0lqraQjN/Z1j9yLGUwQy68p3Kuve/EmTJhpCcpoPNJ3ImOfp3bgHWEpbpvV4ssJJ71LlusfV27HJTZa1wtPzqbWAJAoveoTS21GaaocfAZQPah7AabDTQMaZSz7xckPlrmUPDf7bOQctvfHRoeueXk7vkXJbPavCxitKqQBSKXO4vu9SUCB/xvjPqUb0LBIUstG7bxn3Ff7471Ei3kd/s9RpBRszTOhAP/N5oldueNYH91XN1X1trfF/e3VkLleHNyjAI9BS36mzci2pAFA/o6LvUsQ3RpK2pQBTarDTayp1sgJDyodkdQW66h61jMUYl8wR4MpQS897ek71vgZogliS8VVa6rr3jA+uTLCY/DhzjmKlvjHIDzfJPUUqFc4LY0lo68Uh1opYb6dRVKKOEreO9kk2zZBJaaOLb3ghl2S180XHPw6oTi5NM/eOdr/uVovJtHDdfarvyc5tr4xS/taun1X/R8bwS0Pp8BG33f0rht2idtNsHDCOHUKHEn/aY8YHHQ4ZJk9EvKE8/qoA2ysnc0UUq1Hx1kSnQqgW7T2/JbwDi7QBRusa1bZC5oVlUs95Da7S0AnpPdakqyC2SX+9397ZUvq+vmakoL772+AW7XQEnj/oWqQT+iD6ZKoOw+Y/gt0Wv4AeNYsE286etLz7qOTbA04btrjb6BGjP7nxsX0+u2uRMhkxRpFGKWsFaASQJP4qwCMxWDJlT+qdbbnEYWzeukTiX8rsQUyPnieW6AGpAlHJSFkm6JvUpgR11f+uAM8DRmoZx7Jw28iXftMQ7zWcSTc7aMOLt5308c/+TXilwMsDKfW+B2gK2ChXPz6SoANJlQtFbkT7z3MPTP1QkfSO953AMhxBMjesbbI6ej/NwxjMgU/66uhE8J91BRi9T799TWxagJn3FVgLMFdIRmV3XeoC/WE+2HrMkNLzQdTi9A79ttSSRGBqS+8aMU+PUVIa5IFhWSo6GCdIVODnSjpFlERzbkmLCSa5YpuOBk0Swwm7lDFIU1Ddk3RPA6syJtEt6m7pIGEtzVzu6TZzZ197veF3ivJz9XXYEezRyK1BS8Xp9b4zLpVTNt1XbLZAfGCzD2ieNDfQ6sKU+ExitHbVocp6+kWz13wdfyEcCDqjDWOM9z4H/tvQlN6n3+PwTpMrDJH1syY8Rqaf4K7EJzHGDyoddUOw93qjgHH1mCGLOLC++yvz928Plf37tT+J/55x/IYOVwuAxHdmLbIomKuUD0SFvGECNud9UX+IzamtgdqfUekaSX5R2OOdc+Qw7c7jgV14t4ZWAPqBW4N+8VvK+xvs9PJ/A2go74nnxlyLxQNGh5pHhWZQTDCn9ko6jWsunrnPry3XcTgnzkZ6QEYSSMAg9TUlXYlymdmx0nEuWZOIn5/lzLE0eGrA84Dvk96Hdtll3YtrbQ+k6D49p80KZEohxSXtGtBgR3/p923DX/5VTbzvsVTomGj9+IhPr75kZN1Ta+i3gywVSHWJ7ernY2TXNT5kdTA3XobuW/khZ0LPuvnM0NcKk/Uia9i5VLoZIEumJe8T5KUKlitUNmU8Q+n4t/1n6Lx6Lx3KIks2de+TFWDqMTrNlMCR8rT0NdqUwATNco91kgnLLwsBsaWBVz8H5nDJYtqur8BTid2UJgGra3HvpIHgGgEkKVGUSOyCu0zqZyg9BgJPrhwS6LuUlgJaYXHhyJLYisxNkkptgqH/3R/kAUKaSmddgdA88Pex+xMwoBSeyT4ATg2WCjg1+IPYoioggSKBIQGjJ0YrWuwFGgmxUcM7KIotUTwohj1KGcHl9dX3ZH/RFj7J9y/r1JROnS8kjmMMq1wbP+r03Ul15jsbBYxrxg6+k2xJPWbM92Kqtw2PG35of8+22LOOgDrmJzSbom5vCjULMEn/utFBeRY3490cu/NZo+fTqEDSi1Sv5FWv7N4qpWUq739B6ED9UACSBggGZaBONtQgBJif9dkHb3znLHzaZz8IP+S/l50t0mu7NS15+ZCPr31mQO27tcRpCbwc4UrLUjpFQeOLmI4StMBElkH2TbdOdCwsqk2WPgtXAx39s+k+gJk7/GyHFC+3f7DkqkXSAk0ZGXc0YKnfHgBJi6nrpByOW5DXj/jPFQ3xnqdR8eKyZeapSy64eOem15tM5XHCZjLlX/AOpUiQzdr/JIFkDLI1BSTt8HV1LcbU8Tv0DDlntJAY29rquInCLhZEUIjAm6PLShPpKyN0Co1ZRq3gfYg+0VeiCyXeX5YFS9LZONGh6j9E17OS0X16znyQ2eG8MmlweiZtaxClpiCPMDVGfFW2C0bvBddtSQDHFAgToFkaGDUYx4xrksG/t7LHWNaaPDnbecM1TufGLwgYHQJJR/IYPaP1iJyAkyiYSyCZlqUla9NTpEQ8b1umyRBDQYINQIwCZh6g5vSH1MOv7nUJRvz3PpS2bvAS0fNHhQTzWKFmiNroooFT6x8UgG0M8kTBw3w3gpqW0pCIEzo96E5rG53avrsxxcOaMYP3BWOvS5sP7fni+/PbSrruVOzALfutrIvuPqaZUnHBkHLG7jU/bYU5eahaPGcFjL7oS6xRue94Ry6TPKpYYthXJADFAmwwaCDtHOf1fg5D1WDwixN5P2uXYE3nndGa7Cw+Hjj60qrWxYtHLpvyBTFAy4bIusTamAKtWIyipGUVoMU8NihdNe0lTaS+TnrKChsnu3bCIWAjgJMeCMks5F9Hz/nrOfOO+FWXzNqsjwxKXZ9lssR7rhlAaYxJ9TcO9feGnV6/qCXW5bK4aH7gwiWHX97FWRoo/GQcsjwJKTOQDSTzpyFLyY3H+2Rb4TZ31uA2cANcDIbEib5xO2/h6ajSaJPHc6FjyfEY+OLVsJMOeIyAxAfRJrBupWA1JWANLng1gLo6fb5fUIAqgHnMk5M7bOTTnAYrBzkmA82kyi4H+Q4wNBOE608L+QrEJeMecLY6GlRpgaAYJ6VxsJQjWToGVuKClSzvcyRrLbkWahWQNbKq4YzmLms/JLAlIM4yybNZcALYhB1j/neWFaWJdZkZkqzbxuQJ1Fc+MSkCgGqO+tvO6BkFoDkUNcH23UGn4vkD/4B95/4NY9/8c7ASBrxCsUmyQHvH5xAYWp5u0TtRN9qYphTtz/eQ378xx5Q6IDy8cj3DyLcKtdmss2/XKSBV1SZ9NgoYKYe1Y4e8CIaa7i/PP6VYjqtORLfSGJ/pSDYoqLDBqtR7oZbwfCV8tZ/RsXmWk+hqYbLMYJXzwJEU/8pQ4jl8EyB6orYyisg4Ym4vMJRA8Do49uqANKoiFANKowzR4Cn6t7E7QQE7c5vL+V4yzuticQgCKwK1uIAgpiLJM86CTNIZ7zaTIgNJrCpZwoRIM9lLNu1puTi4pqriavJHKEtByjiTFOO8ItEgp+xyz4CPq0bfd8Vr2x9YlYAkp9LqZI651dDvUv2b1vfOLZC0XIkWSNEMefegx3ocvvCkNT0qIft28t4j09poOGxMDgg3aYRtwS+RYWPxzxC3O+dA0a4CsxrCIMnLwKgd/aquawLr4f2gezWtYJ1LIOkvnX9Y1wryRVAjhZeCNabBqlClQDW2rO8vmMsvzzWbXO12qxmbqmioYXEwAtbyOJTvAgFrmktO7NgSoqykxn1Pu/gYjR5gm/7iy0DGj9DX4BkjDQLM1kQ1VncehLcHn44Ptz9UZdB9w4c47/HDQqKgr3P3nbiVvtJnkL6Bx2eMJiaYUldUujTHUPSd6Pjy9Y1MLnFSYv9uT2HVpgzBjQbGdWN230VAvMcYO637jA8eL5Rp3SnsSRfsuA5FWtmUUrfzjm+dVuzQY4+kdyRuoxmlbl07vSOYzC2wbuJzSN4cBkQTBA2wDAFn9LrPcv3JwZBNlcQGpWKx+pJSJmRKg1pZBRfEUirjdVIkIKtLIDes1y917ge5dh3glkLuWo8rHeCJmnIolu5UhrUS13xnye8E7GGXvTLgyHRnyMEAFiwEUp0gh/eCfHwhZLdBtN0IAlfpU1a+hmb/n0nSJyzeeVwMvwPDwgijHJT7PVOtMcCcVWAUTmpBLRgG6eZK1ITfsxvBSpcNIWdlpfNVHy4fkXssUL52vAWsphzM8sC1IQNWjWpkRLqsc0v6EylREurcEMAV6CKfTNAtg00GPz0gmnzow/i0dy6gS2mqBmc+cyK61S1WcykXvIQMODpwr69L9A06PmhGycTXNXAsJmd2elSO2ZT0NxoYKZO1Y4eeLiFvZVwc1v2lhfqAY+Oz4URcyRi7SslY5smQHruLxppV/WGIy37DmWKAfz94zPui/pisUeXpxcnzxWpKyDsFU62IVCa3AjzVP1RuaddDJlfoa9oRTRt7DVk5d2qeN4qiwOmnaFy3ORYtT8qR2RLIHmWQTi2kU5EDp/RqSAIxerXxY0iaRDMPzBVt3y/wQKw3cifeX+V7LepynvnUso/AsGDysf1zk2lTRsO2d76xFigo9nsjr/bgoYOzQr5vFMa17MyQLpmPCYUwZ2cNpslasERP/Z3GUB+wN7MSOpRfCB1zkysqhkafDc05rwD0zufdR+DOI55UV8pa1+P0F09Drw2eNi0kDXoqJ0/fqOaOZ2wJVGL+6Yv+tI+gUO5YHC8tE7wjPeTPf/XXn5IeaxSQ13d7DG0aYop1+CYBIyW2ZuyQ3wH4OYCf9Jgxf6qZQe0xqJZxzIRk3/GP9NA+w74C10DBApYU9VxQUx8BTZ7j93rOzh9OO6oj0SuaYoq+8THVByxLmiX6CCC5BojVEWLmUNoExADho02pfcT88EjaNU+XmQaCzdHsuji+8xD8+/GFYCcOgsRVADXe7/KHbx6Tk+ehk+vg9/ZduKhQJ/7kqRU720x8BMamTj6m33Hf2MzeltHX2gJrxw5ZLoG+QSZMXt3j5QVXmplGwXXdcdg/buFZR6IiEJl9pAvp78OGFOM83WDs5nlqQOLB0XcikW3CoXOvQ0XLGm/06kmiR32uRFqjpOenvu7r6M0a5EzRsrknZKoLwLNg8QawkvXKouWtFQHSezOr6L5ZJaVrr5IPbVvuX/kIPBls47prk4FRgeOYIbcBOE8yXNNDzP8dm5nTR607ChU8jjMZMCKI4rBxZdvkp42AyH6P+b3n15e5dbseL6VNqmCHlS3/J4vXu8qpWrvA5FTw+iySnGomNwpC5TOh3hsT5DG0hkvc3eVJLNjUyjhn4xjCWPsuhBYfP70zpi07g0lMBvDS5GP7H7Kp+Wx7b/NqgTVjhrwFhr38UjHgje4z5u/XXinXHYVdEMNPLaB3ofhV5txgMUXlgp040WGvniXPeXJkJP9JY0ulvzVSbRNVPmOhkpGXrN4PRN60yoEu9/GO7VYX1C4kmoQ1u54opXEYNs/CLl85h8WaOrDH1khcO5z8lzv4x/+3d7WxTZVR+Dn9WBk4BjLWDdmmyBC2zg9C4g+/YIUpxAxKVIjGIKUgiBKJP4zEECDRxBh/kCEJbN0w/jAGYkdggsC6KUJUVJB1w8wfaiewdW5B0cDW9R7z9mN00G39uGs3ec/P3vOec97nNufe956vybUYkIIzHHY3uexY2G/l7VxQvFkheh+MCwro1dyGpi8Tkzjyqz0Lix5lRXMy4ON4V46zOeLb2MhbMryGXht2XmNsz7RDxFBuIWutexcYGwH8WG3JH7Qj+vCaJMdoQsBjNp1lxoNhNnUbnS4Ru/nfUffCGZm9yngHAY+H5eKLfV7TMy+6s6H5VLI3ndAbY8hYj7n4KWaqgnhKEY4R086pzqajo/Ej/y+LZxom9o5rBAefxoQyY73reLKBj1afdy0+01di0COytdZ9HAzRzaKz2pLnT42SNLYR4Geh9XSZPARkMOMKCK1E+Cq73rVlbO9saOuDgd1dIPF/7qeuNEU3b3LjuahLkNXASBXHKAzxzC+6gzUa0ZVikz/7HvwbgQ5B4c97DPgu74vmiG88Yi0XFaW1G1GY29AS95EzGjDaF5aUaBSuYKA/tKFVaE5WY9PP0axPNg/bMKeP8LK+Eq8PpntNrdvFjGJxbJmQNn5SxZIpIuVQkkRgTCIgSiH/LDV9qADrb2yATxqdzeJtMmmkmmMMWdxuLplB4PVgrAaQFfqdwJdEWhgBfzHoKqCkgWkSCCLl6z4Rp0g36HMyjpwdkZGIHWbTWQw8mgjT/s02XJ8SS5egpN0ZkcxrwzZinNHZMUjLcsBa2+YGc57/AUPaR2qW3XU6mTZKXRIBtREQzrGz1HSCgfBUm+U3B3nV1hsuT3XHGBL+6/y7x2VQxpNM/JgCiNrqB4JVVAP3w+gE+DS0dMrX11szrbE1rijScCB1mIv3gGld2FNIYdZsyGlo2jvc2lRcF8cpbyZa9T24nz4WtRSRyepwi5TIQOcK0KZqS15FKuyVOiUCaiLQZS4u6lPIFQrcMqEup971tJo6hpI1Yo4xktKuxTMn9vWMm8qKL12rV7qv6HxdhTH0dEwEFM8Ck5UJ9qAD+VYL2pLlPO9MROZIru2x4RkwrAY7lgylx+po2wZQAUi5zhpNXU359MMjaZeULREIIbC61r0CjPVareatqvLp38SDzKX5s7J02rSlYCXdpyiHc8PaGd4UgOoyOl39J9B4dMWyJqmOMRbD1ObtNM+exay1KMyNOQ0twaESamtRRx6/BoP3Gs4zY7vBjrhatqtjiZQiERgcAavDLYZQlfm/4hB9YF+WJ/obRk2dpXPm+qA5RoFKSXHiqTc6m/oDL+1m0xlizAtc47+NzubMqIUnyHjbOMYEcUrq8l4b9hBhpY6QS3v9zWgkSQRGHQJWh1t89vI7NQKO2y35wklGTZ5SU2N4IJSAq41TXJOf2w9fMFAqar8DrTQZJ4wNrqTl6UrHGPVtTA6jdy22M2MrAe/oq/B2crRKLRKB2BGwOtzioS16WAi6XG3JnxaLlI5Sk+iJ4m9PxODNOsKp9sv8U3YWilmnEbOlZgTliT7nZVn1TSdikZ8Ir3SMiaCn4lp+ERO8BohKolUEdOv6cC/tiz9zX0XTpCiJQEQErI62VoALQxcV+B7aZ7nnXLRweUpNFxiY7XeMGlomBjURaVcCLKaQ3hh/ybzV2NAcPpslWhVx80nHGDd06izkddB7FYiB1TsAFPilEjamVWK3OhqkFInAyCCw5qB7NyvYECbdXm3Jt0WrLdiMpmYI/otEeCO73vVptDLV4pOOUS0kY5TjXYs3WfGXfC0CBb7TBOmTtCo8H6M4yS4RSDoCLx1qK9T4+Dw40Pzc39Bcy3M/Ki+IulCjw1zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="}}]);
|